@realsee/dnalogel 2.13.2-dev.0 → 2.13.2-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/dist/index.cjs.js +34 -34
  2. package/dist/index.js +1375 -1374
  3. package/dist/index.umd.js +27 -27
  4. package/docs/classes/CSS3DRender.html +31 -31
  5. package/docs/classes/CruisePluginController.html +25 -25
  6. package/docs/classes/Magnifier.html +20 -20
  7. package/docs/classes/ModelRoomLabelController.html +11 -11
  8. package/docs/classes/Object3DHelperController.html +25 -25
  9. package/docs/classes/PaintBrush.html +15 -15
  10. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  11. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  12. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  13. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  14. package/docs/classes/PanoTagPluginController.html +45 -45
  15. package/docs/classes/Util.BetterTween.html +8 -8
  16. package/docs/classes/Util.FivePointSelector.html +12 -12
  17. package/docs/classes/Util.Interval.html +12 -12
  18. package/docs/classes/Util.Magnifier.html +17 -17
  19. package/docs/classes/Util.PointDomHelper.html +11 -11
  20. package/docs/classes/Util.PointHelper.html +11 -11
  21. package/docs/classes/Util.Rectangle.html +13 -13
  22. package/docs/enums/CameraMovementEffect.html +7 -7
  23. package/docs/enums/ContentType.html +19 -19
  24. package/docs/enums/DIRECTION.html +9 -9
  25. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  26. package/docs/enums/DimensionType.html +7 -7
  27. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  28. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  29. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  30. package/docs/enums/PointType.html +7 -7
  31. package/docs/enums/Rotation.html +8 -8
  32. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  33. package/docs/functions/CameraMovementPlugin.html +4 -4
  34. package/docs/functions/CruisePlugin.html +4 -4
  35. package/docs/functions/GuideLinePlugin.html +5 -5
  36. package/docs/functions/ItemLabelPlugin.html +4 -4
  37. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  38. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  39. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  40. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  41. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  42. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  43. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  44. package/docs/functions/ModelViewPlugin.html +4 -4
  45. package/docs/functions/Object3DHelperPlugin.html +4 -4
  46. package/docs/functions/PanoCompassPlugin.html +4 -4
  47. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  48. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  49. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  50. package/docs/functions/PanoMeasurePlugin.html +4 -4
  51. package/docs/functions/PanoRulerPlugin.html +4 -4
  52. package/docs/functions/PanoRulerProPlugin.html +4 -4
  53. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  54. package/docs/functions/PanoTagPlugin.html +4 -4
  55. package/docs/functions/PanoVideoPlugin.html +4 -4
  56. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  57. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  58. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  59. package/docs/functions/Util.getFrameTime.html +5 -5
  60. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  61. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  62. package/docs/functions/Util.isNil.html +5 -5
  63. package/docs/functions/Util.nextFrame.html +5 -5
  64. package/docs/functions/Util.notNil.html +5 -5
  65. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  66. package/docs/functions/Util.tweenProgress.html +5 -5
  67. package/docs/functions/pluginFlag.html +5 -5
  68. package/docs/index.html +4 -4
  69. package/docs/interfaces/AddTagConfig.html +6 -6
  70. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  71. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  72. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  73. package/docs/interfaces/EventMap.html +15 -15
  74. package/docs/interfaces/FloorplanBounding.html +8 -8
  75. package/docs/interfaces/FloorplanData.html +10 -10
  76. package/docs/interfaces/FloorplanEntrance.html +11 -11
  77. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  78. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  79. package/docs/interfaces/FloorplanFloorData.html +9 -9
  80. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  81. package/docs/interfaces/FloorplanObserver.html +9 -9
  82. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  83. package/docs/interfaces/FloorplanPosition.html +7 -7
  84. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  85. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  86. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  87. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  88. package/docs/interfaces/FloorplanServerData.html +7 -7
  89. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  90. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  91. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  92. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  93. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  94. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  95. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  96. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  97. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  98. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  99. package/docs/interfaces/HelperOffset.html +8 -8
  100. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  101. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  102. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  103. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  104. package/docs/interfaces/MinMax.html +7 -7
  105. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  106. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  107. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  108. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  109. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  110. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  111. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  112. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  113. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  114. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  115. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  116. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  117. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  118. package/docs/interfaces/Object3DHelperState.html +8 -8
  119. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  120. package/docs/interfaces/PaintBrushAction.html +12 -12
  121. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  122. package/docs/interfaces/PaintBrushState.html +10 -10
  123. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  124. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  125. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  126. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  127. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  128. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  129. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  130. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  131. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  132. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  133. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  134. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  135. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  136. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  137. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  138. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  139. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  140. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  141. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  142. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  143. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  144. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  145. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  146. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  147. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  148. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  149. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  150. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  151. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  152. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  153. package/docs/interfaces/Point.html +8 -8
  154. package/docs/interfaces/Room.html +9 -9
  155. package/docs/interfaces/RoomInfo.html +7 -7
  156. package/docs/interfaces/RoomLabel.html +14 -14
  157. package/docs/interfaces/RoomRules.html +5 -5
  158. package/docs/interfaces/Rooms.html +5 -5
  159. package/docs/interfaces/Scissor.html +9 -9
  160. package/docs/interfaces/State.html +8 -8
  161. package/docs/interfaces/TagCacheInterface.html +12 -12
  162. package/docs/interfaces/TagConfig.html +11 -11
  163. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  164. package/docs/interfaces/TagIconUrl.html +11 -11
  165. package/docs/interfaces/TagObjectGroup.html +6 -6
  166. package/docs/interfaces/TagStyle.html +6 -6
  167. package/docs/interfaces/Tags.html +9 -9
  168. package/docs/interfaces/TemporaryState.html +6 -6
  169. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  170. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  171. package/docs/modules/PanoVideoPluginType.html +5 -5
  172. package/docs/modules/Util.html +5 -5
  173. package/docs/modules.html +4 -4
  174. package/docs/types/ArrayPosition.html +5 -5
  175. package/docs/types/AudioAppearance.html +5 -5
  176. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  177. package/docs/types/CSS3DRenderExportType.html +5 -5
  178. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  179. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  180. package/docs/types/ClassFunctionParameters.html +5 -5
  181. package/docs/types/Color.html +5 -5
  182. package/docs/types/ContentTypeConfigKey.html +5 -5
  183. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  184. package/docs/types/ContentTypeMap.html +5 -5
  185. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  186. package/docs/types/Create3DElementReturnType.html +5 -5
  187. package/docs/types/CruisePluginExportType.html +5 -5
  188. package/docs/types/Direction-1.html +5 -5
  189. package/docs/types/Direction4.html +5 -5
  190. package/docs/types/FloorplanRuleLabels.html +5 -5
  191. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  192. package/docs/types/GuideLinePluginExportType.html +5 -5
  193. package/docs/types/HelperEventMap.html +5 -5
  194. package/docs/types/LoadTagConfig.html +5 -5
  195. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  196. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  197. package/docs/types/MediaData.html +5 -5
  198. package/docs/types/MediaStore.html +5 -5
  199. package/docs/types/ModelElement.html +5 -5
  200. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  201. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  202. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  203. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  204. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  205. package/docs/types/MoveArgs.html +5 -5
  206. package/docs/types/MoveOpts.html +5 -5
  207. package/docs/types/Object3DHelperEventMap.html +5 -5
  208. package/docs/types/ObjectFit.html +5 -5
  209. package/docs/types/PaintBrushEventMap.html +5 -5
  210. package/docs/types/PanoCompassPluginData.html +5 -5
  211. package/docs/types/PanoCompassPluginExportType.html +5 -5
  212. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  213. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  214. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  215. package/docs/types/PanoIndex.html +5 -5
  216. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  217. package/docs/types/PanoMeasureReturnType.html +5 -5
  218. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  219. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  220. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  221. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  222. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  223. package/docs/types/PlaneTag.html +5 -5
  224. package/docs/types/PlaneTagElement.html +5 -5
  225. package/docs/types/Point2DElement.html +5 -5
  226. package/docs/types/Point2DTag.html +5 -5
  227. package/docs/types/Point3DElement.html +5 -5
  228. package/docs/types/Point3DTag.html +5 -5
  229. package/docs/types/PointTag.html +5 -5
  230. package/docs/types/PointTagElement.html +5 -5
  231. package/docs/types/Position.html +5 -5
  232. package/docs/types/RotateArgs.html +5 -5
  233. package/docs/types/RotateOpts.html +5 -5
  234. package/docs/types/RuleLabelsKey.html +5 -5
  235. package/docs/types/RuleLabelsValue.html +5 -5
  236. package/docs/types/StickType.html +5 -5
  237. package/docs/types/Tag.html +5 -5
  238. package/docs/types/Tag2D.html +5 -5
  239. package/docs/types/Tag3D.html +5 -5
  240. package/docs/types/TagContentType.html +5 -5
  241. package/docs/types/TagDimensionType.html +5 -5
  242. package/docs/types/TagElement.html +5 -5
  243. package/docs/types/TagEvents.html +5 -5
  244. package/docs/types/TagGLTFObject.html +5 -5
  245. package/docs/types/TagHooks.html +5 -5
  246. package/docs/types/TagIconSize.html +5 -5
  247. package/docs/types/TagId.html +5 -5
  248. package/docs/types/TagPointType.html +5 -5
  249. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  250. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  251. package/docs/types/WorkCode.html +5 -5
  252. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  253. package/docs/variables/PLUGIN.html +5 -5
  254. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  255. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  256. package/docs/variables/VERSION.html +5 -5
  257. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  258. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  259. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  260. package/libs/base/BasePlugin.js +1 -1
  261. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +47 -47
  262. package/libs/shared-utils/svelte/resizeObserver.js +9 -8
  263. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var oc=Object.defineProperty,sc=Object.defineProperties;var rc=Object.getOwnPropertyDescriptors;var To=Object.getOwnPropertySymbols;var ac=Object.prototype.hasOwnProperty,lc=Object.prototype.propertyIsEnumerable;var ki=(i,t,e)=>t in i?oc(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Q=(i,t)=>{for(var e in t||(t={}))ac.call(t,e)&&ki(i,e,t[e]);if(To)for(var e of To(t))lc.call(t,e)&&ki(i,e,t[e]);return i},fe=(i,t)=>sc(i,rc(t));var f=(i,t,e)=>(ki(i,typeof t!="symbol"?t+"":t,e),e);var W=(i,t,e)=>new Promise((n,o)=>{var s=l=>{try{a(e.next(l))}catch(c){o(c)}},r=l=>{try{a(e.throw(l))}catch(c){o(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,r);a((e=e.apply(i,t)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Zn=require("@tweenjs/tween.js"),Ce=require("@realsee/five"),V=require("three"),Kn=require("three/examples/jsm/renderers/CSS3DRenderer"),ma=require("@realsee/five/line"),pa=require("three/examples/jsm/loaders/FBXLoader"),cc=require("hammerjs"),uc=require("classnames"),dc=require("polyline-normals"),hc=require("object-assign-deep"),fc=require("animejs"),mc=require("lodash.get"),pc=require("lodash.clonedeep"),gc=require("lodash.isequal"),Ac=require("@realsee/five/gltf-loader"),ut=i=>i&&typeof i=="object"&&"default"in i?i:{default:i};function ga(i){if(i&&i.__esModule)return i;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const e in i)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>i[e]})}}return t.default=i,Object.freeze(t)}const bn=ut(Zn),di=ga(Zn),I=ga(V),Pn=ut(cc),Ke=ut(uc),vc=ut(dc),ft=ut(hc),zo=ut(fc),Ln=ut(mc),bc=ut(pc),yc=ut(gc);function Aa(){}const Bo=()=>Promise.resolve(),jo={__queue:Promise.resolve()};function wc(i=Bo){jo.__queue=jo.__queue.then(i).catch(Bo)}function Sn(i,t,e){const n=i.x,o=i.y,s=Math.floor(n/t*1e4)/1e4,r=Math.floor(o/e*1e4)/1e4;return{x:s,y:r}}function xi(i,t,e){const{x:n,y:o}=i,s=n*t,r=o*e;return{x:s,y:r}}function Mn(i){if(i.length<2)return{};const t=i.slice(-2),e=t[0],n={x:(t[0].x+t[1].x)/2,y:(t[0].y+t[1].y)/2};return{control:e,end:n}}function Cc(i,t,e=Aa){new Promise(n=>{setTimeout(()=>{e(),n(!0)},t*i)})}const Ec=window,Vo=window.requestAnimationFrame||Ec.webkitRequestAnimationFrame||(i=>setTimeout(i,16));function Yn(i,t=0){t<=0?Vo(i):Vo(()=>Yn(i,t-1))}function Pc(i,t,e,n=Zn.Easing.Linear.None){const o=new Zn.Tween(i).to(t,e).easing(n).start();function s(r){!o.update(r)||requestAnimationFrame(s)}return requestAnimationFrame(s),o}var ot=(i=>(i.Drawline="Drawline",i.Undo="Undo",i.Exit="Exit",i))(ot||{});const pn=Symbol("$$PAINT_BRUSH_EVENT$$");function Tn(i){return i[pn]||(i[pn]={}),i[pn]}function Ic(i){i[pn]||delete i[pn]}class kc{hasListener(t){const e=Tn(this);return e&&e[t]&&e[t].length>0}on(t,e,n){const o=Tn(this);return o[t]||(o[t]=[]),o[t].push([e,n||!1]),()=>this.off(t,e)}once(t,e){return this.on(t,e,!0)}off(t,e){if(t===void 0){Ic(this);return}const n=Tn(this);if(n[t]||(n[t]=[]),e===void 0){n[t].length=0;return}let o=0;for(;o<n[t].length&&n[t][o][0]!==e;o++);o<n[t].length&&n[t].splice(o,1)}emit(t,...e){let n=!1;const s=Tn(this)[t]||[];for(let r of s.slice()){const[a,l=!1]=r,c=a(...e);l&&this.off(t,a),c===!1&&(n=!0)}return n}}function dt(){return((1+Math.random())*65536|0).toString(16).substring(1)}function _e(){return(dt()+dt()+"-"+dt()+"-4"+dt().substr(0,3)+"-"+dt()+"-"+dt()+dt()+dt()).toLowerCase()}const xc=`
1
+ "use strict";var oc=Object.defineProperty,sc=Object.defineProperties;var rc=Object.getOwnPropertyDescriptors;var To=Object.getOwnPropertySymbols;var ac=Object.prototype.hasOwnProperty,lc=Object.prototype.propertyIsEnumerable;var ki=(i,t,e)=>t in i?oc(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Q=(i,t)=>{for(var e in t||(t={}))ac.call(t,e)&&ki(i,e,t[e]);if(To)for(var e of To(t))lc.call(t,e)&&ki(i,e,t[e]);return i},fe=(i,t)=>sc(i,rc(t));var f=(i,t,e)=>(ki(i,typeof t!="symbol"?t+"":t,e),e);var W=(i,t,e)=>new Promise((n,o)=>{var s=l=>{try{a(e.next(l))}catch(c){o(c)}},r=l=>{try{a(e.throw(l))}catch(c){o(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,r);a((e=e.apply(i,t)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Zn=require("@tweenjs/tween.js"),Ce=require("@realsee/five"),V=require("three"),Kn=require("three/examples/jsm/renderers/CSS3DRenderer"),ma=require("@realsee/five/line"),pa=require("three/examples/jsm/loaders/FBXLoader"),cc=require("hammerjs"),uc=require("classnames"),dc=require("polyline-normals"),hc=require("object-assign-deep"),fc=require("animejs"),mc=require("lodash.get"),pc=require("lodash.clonedeep"),gc=require("lodash.isequal"),Ac=require("@realsee/five/gltf-loader"),ut=i=>i&&typeof i=="object"&&"default"in i?i:{default:i};function ga(i){if(i&&i.__esModule)return i;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const e in i)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>i[e]})}}return t.default=i,Object.freeze(t)}const bn=ut(Zn),di=ga(Zn),k=ga(V),Pn=ut(cc),Ke=ut(uc),vc=ut(dc),ft=ut(hc),zo=ut(fc),Ln=ut(mc),bc=ut(pc),yc=ut(gc);function Aa(){}const Bo=()=>Promise.resolve(),jo={__queue:Promise.resolve()};function wc(i=Bo){jo.__queue=jo.__queue.then(i).catch(Bo)}function Sn(i,t,e){const n=i.x,o=i.y,s=Math.floor(n/t*1e4)/1e4,r=Math.floor(o/e*1e4)/1e4;return{x:s,y:r}}function xi(i,t,e){const{x:n,y:o}=i,s=n*t,r=o*e;return{x:s,y:r}}function Mn(i){if(i.length<2)return{};const t=i.slice(-2),e=t[0],n={x:(t[0].x+t[1].x)/2,y:(t[0].y+t[1].y)/2};return{control:e,end:n}}function Cc(i,t,e=Aa){new Promise(n=>{setTimeout(()=>{e(),n(!0)},t*i)})}const Ec=window,Vo=window.requestAnimationFrame||Ec.webkitRequestAnimationFrame||(i=>setTimeout(i,16));function Yn(i,t=0){t<=0?Vo(i):Vo(()=>Yn(i,t-1))}function Pc(i,t,e,n=Zn.Easing.Linear.None){const o=new Zn.Tween(i).to(t,e).easing(n).start();function s(r){!o.update(r)||requestAnimationFrame(s)}return requestAnimationFrame(s),o}var ot=(i=>(i.Drawline="Drawline",i.Undo="Undo",i.Exit="Exit",i))(ot||{});const pn=Symbol("$$PAINT_BRUSH_EVENT$$");function Tn(i){return i[pn]||(i[pn]={}),i[pn]}function Ic(i){i[pn]||delete i[pn]}class kc{hasListener(t){const e=Tn(this);return e&&e[t]&&e[t].length>0}on(t,e,n){const o=Tn(this);return o[t]||(o[t]=[]),o[t].push([e,n||!1]),()=>this.off(t,e)}once(t,e){return this.on(t,e,!0)}off(t,e){if(t===void 0){Ic(this);return}const n=Tn(this);if(n[t]||(n[t]=[]),e===void 0){n[t].length=0;return}let o=0;for(;o<n[t].length&&n[t][o][0]!==e;o++);o<n[t].length&&n[t].splice(o,1)}emit(t,...e){let n=!1;const s=Tn(this)[t]||[];for(let r of s.slice()){const[a,l=!1]=r,c=a(...e);l&&this.off(t,a),c===!1&&(n=!0)}return n}}function dt(){return((1+Math.random())*65536|0).toString(16).substring(1)}function _e(){return(dt()+dt()+"-"+dt()+"-4"+dt().substr(0,3)+"-"+dt()+"-"+dt()+dt()+dt()).toLowerCase()}const xc=`
2
2
  <style type="text/css">
3
3
 
4
4
  #_gl_paintBrush {
@@ -98,10 +98,10 @@ transition: all 500ms;
98
98
  }
99
99
 
100
100
  </style>
101
- `;class Dc extends kc{constructor(e){super();f(this,"configs");f(this,"clientWidth");f(this,"clientHeight");f(this,"ready",!1);f(this,"uuid",_e());f(this,"tween");f(this,"tweening",!1);f(this,"container");f(this,"canvas");f(this,"data",{});f(this,"tempLine",{});this.configs=e,this.clientWidth=document.body.clientWidth,this.clientHeight=document.body.clientHeight,this.container=this.ifInsertToDOM(),this.canvas={},this.initCtrl()}get color(){return this.configs.currentColor}get state(){return this.data}get dpr(){return this.configs.DPR||1}ifInsertToDOM(){if(this.container)return this.container;if(this.configs.container)this.configs.container.id="_gl_paintBrush",this.container=this.configs.container;else if(document.getElementById("_gl_paintBrush"))this.container=document.getElementById("_gl_paintBrush");else{const e=document.createElement("div");e.id="_gl_paintBrush",document.body.appendChild(e),this.container=e}return this.container.innerHTML=xc,this.container}initCanvas(e){const n=document.createElement("canvas");n.className=e,n.width=this.clientWidth,n.height=this.clientHeight;const o=n.getContext("2d");if(!!o)return o.lineWidth=5*this.dpr,o.lineCap="round",o.lineJoin="round",this.container.appendChild(n),n}initCtrl(){const e=document.createElement("div");e.className="_paintBrush-ctrl";const n=document.createElement("div");n.className="_paintBrush-ctrlinner";const o=document.createElement("a");o.className="_paintBrush-ctrlitem _paintBrush-ctrlitem--undo",o.addEventListener("click",a=>{var h;if(a.stopPropagation(),this.configs.onClickUndo&&this.configs.onClickUndo(),!this.canvas[this.uuid]||!this.data[this.uuid]||this.data[this.uuid].length===0)return;const l=this.data[this.uuid].pop();l&&this.emitStateChange({type:ot.Undo,color:this.color,ready:this.ready,state:l,uuid:this.uuid});const c=(h=this.canvas[this.uuid])==null?void 0:h.getContext("2d");if(!this.canvas[this.uuid])return;const{width:u,height:d}=this.canvas[this.uuid];c&&c.clearRect(0,0,u,d),this.data[this.uuid].forEach(m=>this.handleDrawLine(this.uuid,m,{withUndo:!0}))});const s=document.createElement("a");return s.className="_paintBrush-ctrlitem _paintBrush-ctrlitem--close",s.addEventListener("click",a=>{a.stopPropagation(),this.closeBrush(),this.configs.onClickClose&&this.configs.onClickClose()}),[o,s].forEach(a=>{const l=document.createElement("i");l.className="brush-icon";const c=document.createElement("span");c.className="brush-txt",c.innerText=a.className.endsWith("undo")?this.configs.onUndoText:this.configs.onExitText,a.appendChild(l),a.appendChild(c)}),n.appendChild(o),n.appendChild(s),e.appendChild(n),this.container.appendChild(e),e}openBrush(){if(this.ready)return;this.canvas[this.uuid]||(this.canvas[this.uuid]=this.initCanvas("_paintBrush-canvas")),this.container.className="brushing";const e=this.canvas[this.uuid];e.getContext("2d").clearRect(0,0,e.width,e.height),this.openBrushHandle(),this.ready=!0,this.emit("readyChange",!0)}closeBrush(){!this.ready||(this.container.className="",this.data={},this.tempLine={},Object.keys(this.canvas).forEach(e=>{this.canvas[e].ontouchstart=()=>!1,this.canvas[e].ontouchmove=()=>!1,this.canvas[e].ontouchend=()=>!1,this.canvas[e].ontouchcancel=()=>!1;const n=this.canvas[e].getContext("2d");n&&n.clearRect(0,0,this.canvas[e].width,this.canvas[e].height)}),this.ready=!1,this.emit("readyChange",!1),this.emitStateChange({type:ot.Exit,color:this.color,ready:!1,uuid:this.uuid}))}updateCurrentColor(e){const n=this.canvas[this.uuid];if(!n)return;const o=n.getContext("2d");!o||(this.configs.currentColor=e,o.strokeStyle=e)}openBrushHandle(){const e=this.canvas[this.uuid];if(!e)return;const n=e.getContext("2d");if(!n)return;const o=this.color||"#6D92FF";n.strokeStyle=o;let s=null,r=[],a,l=[],c=0;const u=(d,h,m)=>{const A=this.color||"#ff0000";n.strokeStyle=A,n.beginPath(),n.moveTo(d.x,d.y),n.quadraticCurveTo(h.x,h.y,m.x,m.y),n.stroke()};e.onmousedown=d=>{d.preventDefault(),c=Date.now();const h=d.clientX,m=d.clientY;r=[],r.push({x:h,y:m}),s={x:h,y:m},a=Sn({x:h,y:m},this.clientWidth,this.clientHeight),l=[]},e.onmousemove=d=>{if(d.preventDefault(),!s)return;const h=Number(d.clientX),m=Number(d.clientY);if(Math.abs(h-s.x)<5&&Math.abs(m-s.y)<5||(r.push({x:h,y:m}),l.push(Sn({x:h,y:m},this.clientWidth,this.clientHeight)),r.length<3))return;const{control:A,end:v}=Mn(r);!A||!v||(u(s,A,v),s=v)},e.onmouseup=d=>{if(d.preventDefault(),s=null,r.length<3)return;this.data[this.uuid]||(this.data[this.uuid]=[]);const h=Date.now()-c,m={move:Object.assign({},a),uuid:this.uuid,line:[...l],color:this.color,duration:h<1280?h:h<2e3?1280:0};this.data[this.uuid].push(m),Yn(()=>{this.emitStateChange({type:ot.Drawline,color:this.color,ready:this.ready,state:m,uuid:this.uuid})})},e.ontouchstart=d=>{d.preventDefault(),c=Date.now();const h=d.touches[0].clientX,m=d.touches[0].clientY;r=[],r.push({x:h,y:m}),s={x:h,y:m},a=Sn({x:h,y:m},this.clientWidth,this.clientHeight),l=[]},e.ontouchmove=d=>{if(d.preventDefault(),!s)return;const h=Number(d.touches[0].clientX),m=Number(d.touches[0].clientY);if(Math.abs(h-s.x)<5&&Math.abs(m-s.y)<5||(r.push({x:h,y:m}),l.push(Sn({x:h,y:m},this.clientWidth,this.clientHeight)),r.length<3))return;const{control:A,end:v}=Mn(r);!A||!v||(u(s,A,v),s=v)},e.ontouchend=e.ontouchcancel=d=>{if(d.preventDefault(),s=null,r.length<3)return;this.data[this.uuid]||(this.data[this.uuid]=[]);const h=Date.now()-c,m={move:Object.assign({},a),line:[...l],uuid:this.uuid,color:this.color,duration:h<1280?h:h<2e3?1280:0};this.data[this.uuid].push(m),Yn(()=>{this.emitStateChange({type:ot.Drawline,color:this.color,ready:this.ready,state:m,uuid:this.uuid})})}}emitStateChange(e,n=!0){if(e.type!==ot.Drawline){this.emit("stateChange",e,n);return}const o=Date.now(),s=e.state;if(!s||!s.line)return;const r=Math.ceil(s.line.length/100);for(let a=0;a<r;a++){const l={uuid:this.uuid,color:this.color,ready:this.ready,type:e.type,state:{uuid:this.uuid,move:s.move,duration:s.duration,color:this.color,line:s.line.slice(a*100,(a+1)*100)},timestamp:o,end:a===r-1};Cc(a,20,()=>{this.emit("stateChange",l,n)})}}action(e){const{ready:n,type:o,uuid:s}=e;if(!n&&this.ready){this.closeBrush();return}if(n&&!this.ready){this.openBrush();return}if(!!this.ready)switch(o){case ot.Drawline:const{state:r,timestamp:a,end:l}=e;if(!a||!r)return;this.tempLine[a]=[].concat(this.tempLine[a]||[],r.line),l&&(Object.assign(r,{line:this.tempLine[a]}),this.handleDrawLine(s,r,{},()=>delete this.tempLine[a]));break;case ot.Undo:this.handleUndo(s);break}}handleDrawLine(e,n,{withUndo:o=!1},s=Aa){!n||Object.prototype.toString.call(n)!="[object Object]"||Object.keys(n).length===0||wc(()=>new Promise(r=>{if(o||(this.canvas[e]||(this.canvas[e]=this.initCanvas("_paintBrush-canvas--sync")),this.data[e]||(this.data[e]=[]),this.data[e].push(n)),!this.canvas[e])return;const a=this.canvas[e].getContext("2d");if(!a)return;const{line:l=[],color:c="black",duration:u=0,uuid:d}=n,h=xi(n.move||{},this.clientWidth,this.clientHeight);let m=[h];if(a.strokeStyle=c,a.beginPath(),a.moveTo(h.x,h.y),u&&!o){let A=[];const v=this;v.tween=Pc({step:0},{step:l.length-1},u).onUpdate(({step:p})=>{var b;if(v.tweening=!0,!v.ready)return a.clearRect(0,0,v.canvas[d].width,v.canvas[d].height),(b=v.tween)==null?void 0:b.stop();const g=Math.floor(p);if(!A.find(w=>w===g)){if(A.push(g),m.push(xi(l[g],v.clientWidth,v.clientHeight)),m.length<3)return;const{control:w,end:x}=Mn(m);if(!w||!x)return;a.quadraticCurveTo(w.x,w.y,x.x,x.y),a.stroke()}}).onComplete(p=>{v.tween=void 0,v.tweening=!1,A=[],m=[],s&&s(),r()})}else{for(let A=0;A<l.length;A++){if(m.push(xi(l[A],this.clientWidth,this.clientHeight)),m.length<3)continue;const{control:v,end:p}=Mn(m);!v||!p||a.quadraticCurveTo(v.x,v.y,p.x,p.y)}a.stroke(),m=[],s&&s(),r()}}))}handleUndo(e){if(!this.canvas[e]||!this.data[e]||this.data[e].length===0)return;this.data[e].pop();const n=()=>{var s;const o=(s=this.canvas[e])==null?void 0:s.getContext("2d");o&&o.clearRect(0,0,this.canvas[e].width,this.canvas[e].height),this.data[e].forEach(r=>this.handleDrawLine(e,r,{withUndo:!0}))};if(this.tween&&this.tweening){this.tween.stop(),Yn(n,60);return}n()}destroyBrush(){this.closeBrush(),this.ready=!1,this.emit("readyChange",!0)}}class Lc{constructor(t={}){f(this,"controller");const e=Object.assign({currentColor:"#f44336",onUndoText:"\u56DE\u9000",onExitText:"\u5173\u95ED"},t);this.controller=new Dc(e)}on(t,e){this.controller.on(t,e)}off(t,e){this.controller.off(t,e)}once(t,e){this.controller.once(t,e)}show(){this.controller.openBrush()}action(t){this.controller.action(t)}get state(){return this.controller.state}get configs(){return this.controller.configs}dispose(){return this.controller.destroyBrush()}setCurrentColor(t){this.controller.updateCurrentColor(t)}}const Sc=(i,t)=>{var H,B;let e=(B=(H=t==null?void 0:t.initialState)==null?void 0:H.enabled)!=null?B:!0,n=!1,o=!0,s=null;const a=Q(Q({},{lookAtCurrentCamera:!1,lockedPanoIndex:null,lockedLatitude:null,lockedLongitude:null}),t==null?void 0:t.config),l=new I.Scene,c=new Ce.Camera(60);let u=new I.Object3D,d,h;{const F=new I.DirectionalLight(16777215,.5);F.position.copy(new I.Vector3(1,1,1)),l.add(F)}{const F=new I.DirectionalLight(16777215,.3);l.add(F)}{const F=new I.AmbientLight(16777215,.3);l.add(F)}l.add(u);const m=()=>{if(n)return;d=k(i.model,c.fov,c.aspect),h=i.model.bounding.getCenter(new I.Vector3),l.remove(u),u=R(i.model),l.add(u),n=!0,D();function F(N){const _=N.clone();return _.uniforms.modelAlpha.value=1,_.uniforms.map.value&&(_.uniforms.map.value.needsUpdate=!0),_}function R(N){if(N instanceof I.Mesh){const _=N.geometry,$=Array.isArray(N.material)?N.material.map(F):F(N.material);return new I.Mesh(_,$)}else if(N instanceof I.Group){const _=new I.Group;return N.children.forEach($=>_.add(R($))),_}else{const _=new I.Object3D;return N.children.forEach($=>_.add(R($))),_}}},A=()=>{if(!!i.renderer)return s||(s=new I.WebGLRenderer({antialias:!1,alpha:!0}),s.setPixelRatio(i.renderer.getPixelRatio()),s.outputEncoding=I.sRGBEncoding,s.setClearColor(1579548,0),s.autoClear=!0),s},v=()=>{u.traverse(F=>{F instanceof I.Mesh&&[].concat(F.material).forEach(N=>N.dispose())}),l.remove(u),u=new I.Object3D,l.add(u),n=!1,D()},p=()=>{!e||n||m()},g=()=>{e||(e=!0,l.add(u),!n&&i.model.loaded&&m(),D())},b=()=>{!e||(l.remove(u),o=!0,E(),e=!1)},w=(F,R={})=>{const N=A();if(!N)return;F.appendChild(N.domElement),x(R);const _=window.getComputedStyle(F).position;_!=="relative"&&_!=="absolute"&&_!=="fixed"&&_!=="sticky"&&(F.style.position="relative")},x=(F={})=>{if(!s)return;const N=s.domElement.parentNode;if(N!=null&&N.nodeName){const{width:_=N.offsetWidth,height:$=N.offsetHeight}=F;s.setSize(_,$),c.aspect=_/$,c.updateProjectionMatrix()}D()};function k(F,R,N){const _=F.bounding,$=Math.pow(Math.pow(_.max.x-_.min.x+1,2)+Math.pow(_.max.y-_.min.y+1,2)+Math.pow(_.max.z-_.min.z+1,2),1/2);let Y=$/2/Math.tan(Math.PI*R/360);return N<1&&(Y=Y/N),isNaN(Y)?$:Y}function C(F){return i.work.observers[F].standingPosition.clone()}const D=()=>{if(!e||!d||!h)return;const F=i.getPose();F.fov=c.fov,F.offset=h,F.distance=d,typeof a.lockedLatitude=="number"&&(F.latitude=a.lockedLatitude),typeof a.lockedLongitude=="number"&&(F.longitude=a.lockedLongitude),typeof a.lockedPanoIndex=="number"&&(F.offset=C(a.lockedPanoIndex)),a.lookAtCurrentCamera&&(F.offset=i.camera.position.clone().setY(i.camera.position.y+1)),c.setFromPose(F),o=!0},E=()=>{!e||o!==!0||!s||!s.domElement.parentNode||s.domElement.parentNode.offsetWidth===0||(s.render(l,c),o=!1)},O=()=>{s&&s.dispose(),s=null},G=F=>{Object.assign(a,F),D()},X=()=>({enabled:e});return Object.assign(window,{camera:c}),i.on("modelLoaded",p),i.on("modelWillLoad",v),i.on("cameraDirectionUpdate",D),i.on("dispose",O),i.on("renderFrame",E),i.on("cameraPositionUpdate",D),{appendTo:w,refresh:x,changeConfigs:G,enable:g,disable:b,getCurrentState:X}};function gt(...i){const t=[];return i.forEach(e=>{e.isCSS3DObjectPlus?t.push(e):t.push(...gt(...e.children))}),t}function $n(i,t){const e=Math.round(i);return e%2===0?e:e+Number(t!=null&&t.floor?-1:1)}function Mc(i,t,e=!0){if(!i)return console.error("createResizeObserver: element is undefined"),{observe:()=>{},unobserve:()=>{}};const n=()=>{const s=$n(i.clientWidth,{floor:!0}),r=$n(i.clientHeight,{floor:!0});t(s,r)};if(typeof ResizeObserver=="undefined"||!ResizeObserver)return console.warn("createResizeObserver: ResizeObserver is undefined"),{observe:()=>n(),unobserve:()=>{}};const o=new ResizeObserver(n);return e&&n(),{observe:()=>o.observe(i),unobserve:()=>o.unobserve(i)}}class Oo extends Kn.CSS3DRenderer{constructor(){super();f(this,"wrapper");f(this,"requestAnimationFrameId");f(this,"resizeDisoper");this.domElement.style.position="absolute",this.domElement.style.top="0",this.domElement.style.left="0",this.domElement.style.userSelect="none",this.domElement.style.pointerEvents="none"}setWrapper(e){if(!e)throw new Error("CSS3DRenderer: wrapper is required");if(e.contains(this.domElement))return;const n=this.wrapper;return n&&n.contains(this.domElement)&&this.domElement.remove(),this.appendToElement(e),this.wrapper=e,this}appendToElement(e){e.appendChild(this.domElement);const n=(r,a)=>this.setSize(r,a),{observe:o,unobserve:s}=Mc(e,n,!0);o(),this.resizeDisoper=s,this.wrapper=e}renderEveryFrame(e,n){if(this.wrapper||console.warn("wrapper is not find, creating a html element and call setWrapper(wrapper)",this,e),this.requestAnimationFrameId)return;const o=()=>{this.requestAnimationFrameId=requestAnimationFrame(o),!!e.visible&&gt(e).length!==0&&this.render(e,n)};o()}stopRender(){this.requestAnimationFrameId&&cancelAnimationFrame(this.requestAnimationFrameId)}dispose(){var e;this.stopRender(),(e=this.resizeDisoper)==null||e.call(this),this.domElement.remove()}}function Tc(i){return typeof Symbol=="undefined"?`$Symbol<${i}>$`:Symbol(i)}const gn=Tc("$$EVENT$$");function zn(i){return i[gn]||(i[gn]={}),i[gn]}function zc(i){i[gn]||delete i[gn]}class Zt{hasListener(t){const e=zn(this);return Boolean((e==null?void 0:e[t])&&e[t].length>0)}on(t,e,n){const o=zn(this);return o[t]||(o[t]=[]),o[t].push([e,n||!1]),()=>this.off(t,e)}once(t,e){return this.on(t,e,!0)}off(t,e){if(t===void 0){zc(this);return}const n=zn(this);if(n[t]||(n[t]=[]),e===void 0){n[t].length=0;return}let o=0;for(;o<n[t].length&&n[t][o][0]!==e;o++);o<n[t].length&&n[t].splice(o,1)}emit(t,...e){let n=!1;const s=zn(this)[t]||[];for(let r of s.slice()){const[a,l=!1]=r,c=a(...e);l&&this.off(t,a),c===!1&&(n=!0)}return n}}const Bc=({x:i,y:t,z:e})=>new V.Vector3(i,t,e),st=i=>new V.Vector3().fromArray(i),yn=i=>i instanceof V.Vector3?i:Array.isArray(i)?st(i):Bc(i);class jc extends I.Mesh{constructor(e,n){const o=new I.MeshBasicMaterial({opacity:0,color:0,transparent:!1,side:I.DoubleSide}),s=new I.PlaneGeometry(e,n);super(s,o);f(this,"name","opacity-mesh")}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}}function hi(...i){const t=new V.Vector3;return i.forEach(e=>{t.add(e)}),t.divideScalar(i.length),t}const va=1,Vc=`CSS3DObjectPlus@${va}`,Oc=.00216,Rc=.003;class Qc extends Kn.CSS3DObject{constructor(e){var k,C,D;const n=e.container,o=e.cornerPoints,s=(k=e.ratio)!=null?k:Rc,r=(C=e.dpr)!=null?C:1,a=(D=e.pointerEvents)!=null?D:"auto",l=Math.max(Oc,s),c=o[0].distanceTo(o[1]),u=o[1].distanceTo(o[2]),d=$n(c/s*r),h=$n(u/s*r),m=hi(...o);let A;if(l===s)n.style.width=`${d}px`,n.style.height=`${h}px`,A=n;else{const E=document.createElement("div");E.style.width=`${d}px`,E.style.height=`${h}px`,E.style.pointerEvents="none";const O=s/l;n.style.position="absolute",n.style.left="0",n.style.top="0",n.style.width=`${O*d}px`,n.style.height=`${O*h}px`,E.appendChild(n),A=E}super(A);f(this,"version",va);f(this,"isCSS3DObjectPlus",!0);f(this,"container");f(this,"width");f(this,"height");f(this,"domWidthPx");f(this,"domHeightPx");f(this,"cornerPoints");f(this,"centerPosition");f(this,"ratio");f(this,"mode","front");f(this,"hooks",new Zt);f(this,"opacityMesh");f(this,"selfVisible",!0);f(this,"parentVisibleListenerDisposer");f(this,"createOpacityMesh",e=>{const{domWidthPx:n,domHeightPx:o}=e,s=new jc(n,o);return s.position.copy(e.position),s.rotation.copy(e.rotation),s.scale.copy(e.scale),s});f(this,"addParentVisibleListener",()=>{var e;if((e=this.parent)!=null&&e.isCSS3DGroup){const n=this.parent,o=s=>{this.setVisible(s&&this.selfVisible,{setSelfVisible:!1})};n.hooks.on("visibleChange",o),this.parentVisibleListenerDisposer=()=>n.hooks.off("visibleChange",o)}});f(this,"removeParentVisibleListener",()=>{var e;(e=this.parentVisibleListenerDisposer)==null||e.call(this)});if(n.style.pointerEvents=a,this.scale.set(l,l,l),this.cornerPoints=o,this.ratio=s,this.container=n,e.mode&&(this.mode=e.mode),l===s)this.width=c,this.height=u,this.domWidthPx=d,this.domHeightPx=h,this.centerPosition=m;else{const E=s/l;this.width=E*c,this.height=E*u,this.domWidthPx=E*d,this.domHeightPx=E*h,this.centerPosition=new V.Vector3().subVectors(m,o[0]).multiplyScalar(E).add(o[0])}n.classList.add(`${Vc}__container`);const v=new V.Vector3().subVectors(o[1],o[0]),p=new V.Vector3().subVectors(o[3],o[0]),g=new V.Vector3().crossVectors(v,p).normalize();this.lookAt(g);const b=this.up.clone().applyQuaternion(this.quaternion),w=p.clone(),x=new V.Vector3().crossVectors(b,w).normalize();this.rotateOnWorldAxis(x,b.angleTo(w)),this.position.copy(m),this.addEventListener("added",()=>{var E;this.mode==="front"&&((E=this.opacityMesh)==null||E.removeFromParent()),this.addParentVisibleListener()}),this.addEventListener("removed",()=>{var E;(E=this.opacityMesh)==null||E.removeFromParent(),this.removeParentVisibleListener()})}setVisible(e,n={setSelfVisible:!0}){n.setSelfVisible&&(this.selfVisible=e),this.visible=e,this.opacityMesh&&(this.opacityMesh.visible=e)}removeFromParent(){var n;const e=this.parent;return e!==null&&e.remove(this),(n=this.opacityMesh)==null||n.removeFromParent(),this}removeOpacityMesh(){var e;return(e=this.opacityMesh)==null||e.removeFromParent(),this.opacityMesh=void 0,this}dispose(){var e;this.container.remove(),this.removeFromParent(),(e=this.opacityMesh)==null||e.removeFromParent()}getOpacityMesh(){if(this.opacityMesh)return this.opacityMesh;{const e=this.createOpacityMesh(this);return this.opacityMesh=e,e}}applyMatrix4(e){var n;super.applyMatrix4(e),(n=this.opacityMesh)==null||n.applyMatrix4(e)}applyQuaternion(e){var n;return super.applyQuaternion(e),(n=this.opacityMesh)==null||n.applyQuaternion(e),this}applyScaleMatrix4(e){var n;this.scale.applyMatrix4(e),(n=this.opacityMesh)==null||n.scale.applyMatrix4(e)}}class Fc extends I.Scene{constructor(){super()}add(...t){return super.add(...t),gt(...t).forEach(e=>{e.mode="front"}),this}}class Hc extends I.Scene{constructor(e){super();f(this,"scene");if(!e)throw new Error("CSS3DBehindScene: scene is required");this.scene=e}add(...e){return super.add(...e),gt(...e).forEach(n=>{n.mode="behind",this.scene.add(n.getOpacityMesh())}),this}remove(...e){return gt(...e).forEach(n=>{var o;(o=n.opacityMesh)==null||o.removeFromParent()}),super.remove(...e),this}}class ba extends I.Group{constructor(e){super();f(this,"isCSS3DGroup",!0);f(this,"mode");f(this,"CSS3DObjectLength",0);f(this,"hooks",new Zt);this.mode=e}add(...e){return gt(...e).forEach(n=>{n.mode=this.mode}),super.add(...e),this.updateLength(),this}setVisible(e){this.visible=e,this.hooks.emit("visibleChange",e)}remove(...e){return super.remove(...e),this.updateLength(),this}updateLength(){this.CSS3DObjectLength=gt(this).length}}class _c extends ba{constructor(){super("front")}}class Gc extends ba{constructor(e){super("behind");f(this,"scene");if(!e)throw new Error("CSS3DBehindScene: scene is required");this.scene=e}add(...e){return gt(...e).forEach(n=>{this.scene.add(n.getOpacityMesh())}),super.add(...e),this}}const Wc=3,Xi="CSS3DRenderer",fn=`${Xi}@${Wc}`,Vt=()=>{console.error(`${fn} is disposed`)},Le={css3DObjects:[],frontModeStore:{css3DRenderer:new Oo},behindModeStore:{css3DRenderer:new Oo}};function Ro(i){return Le.css3DObjects.find(t=>t.id===i)}function Nc(i){Le.frontModeStore.css3DRenderer.setWrapper(i)}function Xc(i){Le.behindModeStore.css3DRenderer.setWrapper(i)}class Nt{constructor(t){f(this,"hooks",new Zt);f(this,"state",{enabled:!0,visible:!0,disposed:!1});f(this,"_scene");f(this,"store",{frontModeGroup:new _c});f(this,"create3DElement",(t,e,n)=>{if(this.state.disposed)return Vt();const o=(()=>{const x={ratio:.00216,devicePixelRatio:1,mode:"front",autoRender:!0,container:document.createElement("div"),pointerEvents:"none"};return Object.assign(x,n)})(),s=e.map(yn);if((s==null?void 0:s.length)<4)return console.error(`${fn}: requires 4 point but params may have fewer`);const{ratio:r,devicePixelRatio:a,mode:l,autoRender:c,container:u,pointerEvents:d}=o;let h=!1;const m=this.createObject(s,{ratio:r,dpr:a,container:u,mode:l,pointerEvents:d});Le.css3DObjects.push(m),o.scene&&this.setScene(o.scene);const A=()=>{if(h)return;const x=m.mode==="front"?this.getFrontCSS3DObjectGroup():this.getBehindCSS3DObjectGroup();!x||x.add(m)},v=()=>{h||(A(),this.render(t))},p=x=>this.setVisibleById(m.id,x),g=x=>this.setEnabledById(m.id,x),b=()=>(h=!0,m.removeFromParent(),!0),w=l==="front"?Le.frontModeStore.css3DRenderer:Le.behindModeStore.css3DRenderer;return c&&v(),{id:m.uuid,container:u,css3DObject:m,render:c?void 0:v,show:()=>p(!0),hide:()=>p(!1),setVisible:p,enable:()=>g(!0),disable:()=>g(!1),setEnabled:g,dispose:b,appendToElement:x=>w.setWrapper(x)}});f(this,"setVisibleById",(t,e)=>{var n;(n=Ro(t))==null||n.setVisible(e)});f(this,"setEnabledById",(t,e)=>{const n=Ro(t);if(!n)return;const o=n.mode==="front"?this.getFrontCSS3DObjectGroup({addGroupIfNotExists:!1}):this.getBehindCSS3DObjectGroup({addGroupIfNotExists:!1});!o||(e?o.add(n):o.remove(n))});f(this,"createObject",(t,e)=>{const n=new Qc(Q({cornerPoints:t},e));return n.element.classList.add(`${Xi}__container`),n.element.id=`${Xi}__container--${n.uuid}`,n});t&&this.setScene(t)}get scene(){return this._scene||console.error("scene doesn't exist!, please call setScene(scene) first"),this._scene}static get frontModeCSS3DRenderer(){return Le.frontModeStore.css3DRenderer}static get behindModeCSS3DRenderer(){return Le.behindModeStore.css3DRenderer}get frontModeCSS3DRenderer(){return Le.frontModeStore.css3DRenderer}get behindModeCSS3DRenderer(){return Le.behindModeStore.css3DRenderer}setScene(t){this._scene=t}getCurrentState(){return this.state}setState(t,e={userAction:!0}){if(this.state.disposed)return Vt();const n=Q({},this.state);this.state=Object.assign(this.state,t),n.visible!==this.state.visible&&(t.visible?this.handleShow():this.handleHide()),n.enabled!==this.state.enabled&&(t.enabled?this.handleEnable():this.handleDisable()),n.disposed!==this.state.disposed&&this.handleDispose(),this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:e.userAction})}dispose(){this.setState({disposed:!0}),this.hooks.emit("dispose")}show(){return W(this,arguments,function*({userAction:t}={userAction:!0}){if(this.state.disposed)return Vt();this.setState({visible:!0},{userAction:t}),this.hooks.emit("show",{userAction:t})})}hide(){return W(this,arguments,function*({userAction:t}={userAction:!0}){if(this.state.disposed)return Vt();this.setState({visible:!1},{userAction:t}),this.hooks.emit("hide",{userAction:t})})}enable({userAction:t}={userAction:!0}){if(this.state.disposed)return Vt();this.setState({enabled:!0},{userAction:t}),this.hooks.emit("enable",{userAction:t})}disable({userAction:t}={userAction:!0}){if(this.state.disposed)return Vt();this.setState({enabled:!1},{userAction:t}),this.hooks.emit("disable",{userAction:t})}getFrontCSS3DScene({createSceneIfNotExists:t=!1}={}){var n;const e=(n=Le.frontModeStore)==null?void 0:n.css3DScene;if(e)return e;if(t){const o=new Fc;Le.frontModeStore.css3DScene=o}return Le.frontModeStore.css3DScene}getBehindCSS3DScene({createSceneIfNotExists:t=!1}={}){var n,o;const e=(n=Le.behindModeStore)==null?void 0:n.css3DScene;if(e)return e;if(t){const s=(o=Le.behindModeStore.scene)!=null?o:this.scene;if(!s){console.error(`${fn}: scene is required when mode is behind`);return}const r=new Hc(s);Le.behindModeStore.css3DScene=r,Le.behindModeStore.scene=s}return Le.behindModeStore.css3DScene}getFrontCSS3DObjectGroup({addGroupIfNotExists:t=!0}={}){const e=this.getFrontCSS3DScene({createSceneIfNotExists:t});return t&&e&&(e.getObjectById(this.store.frontModeGroup.id)||e.add(this.store.frontModeGroup)),this.store.frontModeGroup}getBehindCSS3DObjectGroup({addGroupIfNotExists:t=!0}={}){var n;const e=this.getBehindCSS3DScene({createSceneIfNotExists:t});if(t&&e&&this.scene){const o=(n=this.store.behindModeGroup)!=null?n:new Gc(this.scene);this.store.behindModeGroup=o,e.getObjectById(o.id)||e.add(o)}return this.store.behindModeGroup}render(t){var e,n;if(this.getFrontCSS3DObjectGroup({addGroupIfNotExists:!1}).CSS3DObjectLength>0){const o=this.getFrontCSS3DScene({createSceneIfNotExists:!0});if(!o)return console.error(`${fn}: css3DScene is required when mode is front`);Le.frontModeStore.css3DRenderer.renderEveryFrame(o,t)}if(((n=(e=this.getBehindCSS3DObjectGroup({addGroupIfNotExists:!1}))==null?void 0:e.CSS3DObjectLength)!=null?n:0)>0){const o=this.getBehindCSS3DScene({createSceneIfNotExists:!0});if(!o)return console.error(`${fn}: css3DScene is required when mode is behind`);Le.behindModeStore.css3DRenderer.renderEveryFrame(o,t)}}handleShow(){return W(this,null,function*(){var t;this.store.frontModeGroup.setVisible(!0),(t=this.store.behindModeGroup)==null||t.setVisible(!0)})}handleHide(){return W(this,null,function*(){var t;this.store.frontModeGroup.setVisible(!1),(t=this.store.behindModeGroup)==null||t.setVisible(!1)})}handleEnable(){var t,e;(t=this.getFrontCSS3DScene())==null||t.add(this.store.frontModeGroup),this.store.behindModeGroup&&((e=this.getBehindCSS3DScene())==null||e.add(this.store.behindModeGroup))}handleDisable(){var t,e,n;this.store.frontModeGroup.children.forEach(o=>{o instanceof Kn.CSS3DObject&&o.element instanceof Element&&o.element.parentNode!==null&&o.element.remove()}),(t=this.store.behindModeGroup)==null||t.children.forEach(o=>{o instanceof Kn.CSS3DObject&&o.element instanceof Element&&o.element.parentNode!==null&&o.element.remove()}),(e=this.getFrontCSS3DScene())==null||e.remove(this.store.frontModeGroup),this.store.behindModeGroup&&((n=this.getBehindCSS3DScene())==null||n.remove(this.store.behindModeGroup))}handleDispose(){this.handleDisable()}}f(Nt,"setFrontModeContainer",Nc),f(Nt,"setBehindModeContainer",Xc);function ya(i){return W(this,null,function*(){return new Promise(t=>{var e;if((e=i.model)!=null&&e.loaded){t();return}else i.once("modelLoaded",()=>t())})})}const lt=document.createElement("div");lt.classList.add("behindFiveElement");lt.style.position="absolute";lt.style.top="0";lt.style.left="0";lt.style.width="100%";lt.style.height="100%";lt.style.pointerEvents="none";function wa(i){var e,n,o,s,r;const t=(r=(n=Di(i.getElement()))!=null?n:Di((e=i.getElement())==null?void 0:e.parentElement))!=null?r:Di((s=(o=i.getElement())==null?void 0:o.parentElement)==null?void 0:s.parentElement);if(t!=null&&t.parentElement)return t.parentElement.insertBefore(lt,t),lt;console.error("Can not find a valid element to insert behindFiveElement. How to fix it: https://github.com/realsee-developer/dnalogel/tree/main/plugins/src/CSS3DRenderPlugin/README.md")}function Di(i){var a;if(!i)return;const t=(a=i.style.position)!=null?a:getComputedStyle(i).position;if(t!=="fixed"&&t!=="absolute"&&t!=="relative")return;const e=getComputedStyle(i),n=e.backgroundColor,o=e.backgroundImage;if(!(n!=="transparent"&&n!=="rgba(0, 0, 0, 0)"&&n!==""||o!=="none"&&o!==""))return i}const Ca="v2.0.1",Li=`CSS3DRenderPlugin@${Ca}`;class Yc extends Nt{constructor(e){super();f(this,"five");f(this,"behindFiveContainer");f(this,"VERSION",Ca);f(this,"staticPrefix","//vrlab-static.ljcdn.com");f(this,"create3DDomContainer",(e,n)=>{if(this.state.disposed)return;const o=(()=>{var d;(n==null?void 0:n.dpr)!==void 0&&console.warn(`${Li}: please use "config.devicePixelRatio" replace "config.dpr"`);const u={ratio:.00216,devicePixelRatio:(d=n==null?void 0:n.dpr)!=null?d:1,mode:"front",autoRender:!0};return Object.assign(u,n,(n==null?void 0:n.mode)==="behind"?{scene:this.five.scene}:void 0)})(),s=this.five.getElement();if(!s){console.error(`${Li}: five.getElement() is ${s}`);return}const{autoRender:r}=o;o.mode==="behind"&&o.behindFiveContainer&&(this.behindFiveContainer=o.behindFiveContainer);const a=this.create3DElement(this.five.camera,e,fe(Q({},o),{autoRender:!1}));if(!a)return;const l=()=>{const u=a.css3DObject.mode==="front"?s.parentElement:this.getBehindFiveElement();if(!u)return console.error(`${Li}: wrapper is ${u}`);a.appendToElement(u),a.render()},c=()=>{a.css3DObject.mode==="front"&&l(),a.css3DObject.mode==="behind"&&ya(this.five).then(()=>{l()})};return r&&c(),fe(Q({},a),{render:r?void 0:c})});this.five=e}disposeAll(){return this.dispose()}setState(...e){const n=super.setState(...e);return this.five.needsRender=!0,n}getBehindFiveElement(){return this.behindFiveContainer?this.behindFiveContainer:(this.behindFiveContainer=wa(this.five),this.behindFiveContainer)}}const Kt=i=>new Yc(i);function Si(i,t,e=new V.Vector3(1,1,1),n=!1){const o=new ma.Line(i,t);return o.setMaterial({dashed:n,color:e,linewidth:1}),o.remove(o.points),o}const Uc=i=>{const t={intersection:null,disposers:[]},e=u=>{t.intersection=u},n=()=>{t.intersection=null};i.on("modelLoaded",()=>{i.on("intersectionOnModelUpdate",e),i.on("intersectionHidden",n)}),i.on("dispose",()=>{i.off("intersectionOnModelUpdate",e),i.off("intersectionHidden",n)});const o=(u,d=2,h=.1)=>{const m=d/2,v=c(u,h),p=new V.Group;p.add(Si(new V.Vector3(v.x+m,v.y,v.z),new V.Vector3(v.x-m,v.y,v.z),new V.Vector3(1,0,0)),Si(new V.Vector3(v.x,v.y+m,v.z),new V.Vector3(v.x,v.y-m,v.z),new V.Vector3(0,1,0)),Si(new V.Vector3(v.x,v.y,v.z+m),new V.Vector3(v.x,v.y,v.z-m),new V.Vector3(0,0,1))),i.scene.add(p),i.needsRender=!0;const g=()=>{i.scene.remove(p)};return t.disposers.push(g),{clear:g,pointAxesHelperMesh:p}},s=(u,d=0)=>{var g,b;const h=(g=i==null?void 0:i.camera)==null?void 0:g.position;if(!h)return!1;const m=u.distanceTo(h),A=u.sub(h).normalize(),v=new V.Raycaster(h,A),p=(b=i.model.intersectRaycaster(v))==null?void 0:b[0];return!(p&&p.distance+d<m)},r=()=>t.intersection,a=()=>{var u,d;(d=(u=t.disposers)==null?void 0:u.forEach)==null||d.call(u,h=>h==null?void 0:h()),i.off("intersectionOnModelUpdate",e),i.off("intersectionHidden",n)},l=a,c=(u,d)=>{const h=u.clone();return i.camera.position.clone().sub(h).setLength(d).add(h)};return{intersection:r,pointAxesHelper:o,movePointTowardsCamera:c,destroy:a,dispose:l,canSeePoint:s}};function U(){}const At=i=>i;function Be(i,t){for(const e in t)i[e]=t[e];return i}function qc(i){return i&&typeof i=="object"&&typeof i.then=="function"}function Ea(i){return i()}function Qo(){return Object.create(null)}function He(i){i.forEach(Ea)}function $t(i){return typeof i=="function"}function ne(i,t){return i!=i?t==t:i!==t||i&&typeof i=="object"||typeof i=="function"}let Bn;function Ne(i,t){return Bn||(Bn=document.createElement("a")),Bn.href=t,i===Bn.href}function Jc(i){return Object.keys(i).length===0}function en(i,t,e,n){if(i){const o=Pa(i,t,e,n);return i[0](o)}}function Pa(i,t,e,n){return i[1]&&n?Be(e.ctx.slice(),i[1](n(t))):e.ctx}function tn(i,t,e,n){if(i[2]&&n){const o=i[2](n(e));if(t.dirty===void 0)return o;if(typeof o=="object"){const s=[],r=Math.max(t.dirty.length,o.length);for(let a=0;a<r;a+=1)s[a]=t.dirty[a]|o[a];return s}return t.dirty|o}return t.dirty}function nn(i,t,e,n,o,s){if(o){const r=Pa(t,e,n,s);i.p(r,o)}}function on(i){if(i.ctx.length>32){const t=[],e=i.ctx.length/32;for(let n=0;n<e;n++)t[n]=-1;return t}return-1}function Te(i){return i==null?"":i}function at(i){return i&&$t(i.destroy)?i.destroy:U}const Ia=typeof window!="undefined";let ka=Ia?()=>window.performance.now():()=>Date.now(),lo=Ia?i=>requestAnimationFrame(i):U;const _t=new Set;function xa(i){_t.forEach(t=>{t.c(i)||(_t.delete(t),t.f())}),_t.size!==0&&lo(xa)}function Da(i){let t;return _t.size===0&&lo(xa),{promise:new Promise(e=>{_t.add(t={c:i,f:e})}),abort(){_t.delete(t)}}}function j(i,t){i.appendChild(t)}function le(i,t,e){const n=co(i);if(!n.getElementById(t)){const o=z("style");o.id=t,o.textContent=e,La(n,o)}}function co(i){if(!i)return document;const t=i.getRootNode?i.getRootNode():i.ownerDocument;return t&&t.host?t:i.ownerDocument}function Zc(i){const t=z("style");return La(co(i),t),t.sheet}function La(i,t){return j(i.head||i,t),t.sheet}function M(i,t,e){i.insertBefore(t,e||null)}function S(i){i.parentNode&&i.parentNode.removeChild(i)}function ct(i,t){for(let e=0;e<i.length;e+=1)i[e]&&i[e].d(t)}function z(i){return document.createElement(i)}function we(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ke(i){return document.createTextNode(i)}function ee(){return ke(" ")}function me(){return ke("")}function ge(i,t,e,n){return i.addEventListener(t,e,n),()=>i.removeEventListener(t,e,n)}function Sa(i){return function(t){return t.stopPropagation(),i.call(this,t)}}function y(i,t,e){e==null?i.removeAttribute(t):i.getAttribute(t)!==e&&i.setAttribute(t,e)}function Kc(i){return Array.from(i.childNodes)}function Se(i,t){t=""+t,i.wholeText!==t&&(i.data=t)}function T(i,t,e,n){e===null?i.style.removeProperty(t):i.style.setProperty(t,e,n?"important":"")}let jn;function $c(){if(jn===void 0){jn=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){jn=!0}}return jn}function fi(i,t){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=z("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=$c();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=ge(window,"message",r=>{r.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{s=ge(n.contentWindow,"resize",t)}),j(i,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function q(i,t,e){i.classList[e?"add":"remove"](t)}function Ma(i,t,{bubbles:e=!1,cancelable:n=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(i,e,n,t),o}class ei{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){this.e||(this.is_svg?this.e=we(e.nodeName):this.e=z(e.nodeName),this.t=e,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)M(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(S)}}const ti=new Map;let ni=0;function eu(i){let t=5381,e=i.length;for(;e--;)t=(t<<5)-t^i.charCodeAt(e);return t>>>0}function tu(i,t){const e={stylesheet:Zc(t),rules:{}};return ti.set(i,e),e}function Ta(i,t,e,n,o,s,r,a=0){const l=16.666/n;let c=`{
101
+ `;class Dc extends kc{constructor(e){super();f(this,"configs");f(this,"clientWidth");f(this,"clientHeight");f(this,"ready",!1);f(this,"uuid",_e());f(this,"tween");f(this,"tweening",!1);f(this,"container");f(this,"canvas");f(this,"data",{});f(this,"tempLine",{});this.configs=e,this.clientWidth=document.body.clientWidth,this.clientHeight=document.body.clientHeight,this.container=this.ifInsertToDOM(),this.canvas={},this.initCtrl()}get color(){return this.configs.currentColor}get state(){return this.data}get dpr(){return this.configs.DPR||1}ifInsertToDOM(){if(this.container)return this.container;if(this.configs.container)this.configs.container.id="_gl_paintBrush",this.container=this.configs.container;else if(document.getElementById("_gl_paintBrush"))this.container=document.getElementById("_gl_paintBrush");else{const e=document.createElement("div");e.id="_gl_paintBrush",document.body.appendChild(e),this.container=e}return this.container.innerHTML=xc,this.container}initCanvas(e){const n=document.createElement("canvas");n.className=e,n.width=this.clientWidth,n.height=this.clientHeight;const o=n.getContext("2d");if(!!o)return o.lineWidth=5*this.dpr,o.lineCap="round",o.lineJoin="round",this.container.appendChild(n),n}initCtrl(){const e=document.createElement("div");e.className="_paintBrush-ctrl";const n=document.createElement("div");n.className="_paintBrush-ctrlinner";const o=document.createElement("a");o.className="_paintBrush-ctrlitem _paintBrush-ctrlitem--undo",o.addEventListener("click",a=>{var h;if(a.stopPropagation(),this.configs.onClickUndo&&this.configs.onClickUndo(),!this.canvas[this.uuid]||!this.data[this.uuid]||this.data[this.uuid].length===0)return;const l=this.data[this.uuid].pop();l&&this.emitStateChange({type:ot.Undo,color:this.color,ready:this.ready,state:l,uuid:this.uuid});const c=(h=this.canvas[this.uuid])==null?void 0:h.getContext("2d");if(!this.canvas[this.uuid])return;const{width:u,height:d}=this.canvas[this.uuid];c&&c.clearRect(0,0,u,d),this.data[this.uuid].forEach(m=>this.handleDrawLine(this.uuid,m,{withUndo:!0}))});const s=document.createElement("a");return s.className="_paintBrush-ctrlitem _paintBrush-ctrlitem--close",s.addEventListener("click",a=>{a.stopPropagation(),this.closeBrush(),this.configs.onClickClose&&this.configs.onClickClose()}),[o,s].forEach(a=>{const l=document.createElement("i");l.className="brush-icon";const c=document.createElement("span");c.className="brush-txt",c.innerText=a.className.endsWith("undo")?this.configs.onUndoText:this.configs.onExitText,a.appendChild(l),a.appendChild(c)}),n.appendChild(o),n.appendChild(s),e.appendChild(n),this.container.appendChild(e),e}openBrush(){if(this.ready)return;this.canvas[this.uuid]||(this.canvas[this.uuid]=this.initCanvas("_paintBrush-canvas")),this.container.className="brushing";const e=this.canvas[this.uuid];e.getContext("2d").clearRect(0,0,e.width,e.height),this.openBrushHandle(),this.ready=!0,this.emit("readyChange",!0)}closeBrush(){!this.ready||(this.container.className="",this.data={},this.tempLine={},Object.keys(this.canvas).forEach(e=>{this.canvas[e].ontouchstart=()=>!1,this.canvas[e].ontouchmove=()=>!1,this.canvas[e].ontouchend=()=>!1,this.canvas[e].ontouchcancel=()=>!1;const n=this.canvas[e].getContext("2d");n&&n.clearRect(0,0,this.canvas[e].width,this.canvas[e].height)}),this.ready=!1,this.emit("readyChange",!1),this.emitStateChange({type:ot.Exit,color:this.color,ready:!1,uuid:this.uuid}))}updateCurrentColor(e){const n=this.canvas[this.uuid];if(!n)return;const o=n.getContext("2d");!o||(this.configs.currentColor=e,o.strokeStyle=e)}openBrushHandle(){const e=this.canvas[this.uuid];if(!e)return;const n=e.getContext("2d");if(!n)return;const o=this.color||"#6D92FF";n.strokeStyle=o;let s=null,r=[],a,l=[],c=0;const u=(d,h,m)=>{const A=this.color||"#ff0000";n.strokeStyle=A,n.beginPath(),n.moveTo(d.x,d.y),n.quadraticCurveTo(h.x,h.y,m.x,m.y),n.stroke()};e.onmousedown=d=>{d.preventDefault(),c=Date.now();const h=d.clientX,m=d.clientY;r=[],r.push({x:h,y:m}),s={x:h,y:m},a=Sn({x:h,y:m},this.clientWidth,this.clientHeight),l=[]},e.onmousemove=d=>{if(d.preventDefault(),!s)return;const h=Number(d.clientX),m=Number(d.clientY);if(Math.abs(h-s.x)<5&&Math.abs(m-s.y)<5||(r.push({x:h,y:m}),l.push(Sn({x:h,y:m},this.clientWidth,this.clientHeight)),r.length<3))return;const{control:A,end:v}=Mn(r);!A||!v||(u(s,A,v),s=v)},e.onmouseup=d=>{if(d.preventDefault(),s=null,r.length<3)return;this.data[this.uuid]||(this.data[this.uuid]=[]);const h=Date.now()-c,m={move:Object.assign({},a),uuid:this.uuid,line:[...l],color:this.color,duration:h<1280?h:h<2e3?1280:0};this.data[this.uuid].push(m),Yn(()=>{this.emitStateChange({type:ot.Drawline,color:this.color,ready:this.ready,state:m,uuid:this.uuid})})},e.ontouchstart=d=>{d.preventDefault(),c=Date.now();const h=d.touches[0].clientX,m=d.touches[0].clientY;r=[],r.push({x:h,y:m}),s={x:h,y:m},a=Sn({x:h,y:m},this.clientWidth,this.clientHeight),l=[]},e.ontouchmove=d=>{if(d.preventDefault(),!s)return;const h=Number(d.touches[0].clientX),m=Number(d.touches[0].clientY);if(Math.abs(h-s.x)<5&&Math.abs(m-s.y)<5||(r.push({x:h,y:m}),l.push(Sn({x:h,y:m},this.clientWidth,this.clientHeight)),r.length<3))return;const{control:A,end:v}=Mn(r);!A||!v||(u(s,A,v),s=v)},e.ontouchend=e.ontouchcancel=d=>{if(d.preventDefault(),s=null,r.length<3)return;this.data[this.uuid]||(this.data[this.uuid]=[]);const h=Date.now()-c,m={move:Object.assign({},a),line:[...l],uuid:this.uuid,color:this.color,duration:h<1280?h:h<2e3?1280:0};this.data[this.uuid].push(m),Yn(()=>{this.emitStateChange({type:ot.Drawline,color:this.color,ready:this.ready,state:m,uuid:this.uuid})})}}emitStateChange(e,n=!0){if(e.type!==ot.Drawline){this.emit("stateChange",e,n);return}const o=Date.now(),s=e.state;if(!s||!s.line)return;const r=Math.ceil(s.line.length/100);for(let a=0;a<r;a++){const l={uuid:this.uuid,color:this.color,ready:this.ready,type:e.type,state:{uuid:this.uuid,move:s.move,duration:s.duration,color:this.color,line:s.line.slice(a*100,(a+1)*100)},timestamp:o,end:a===r-1};Cc(a,20,()=>{this.emit("stateChange",l,n)})}}action(e){const{ready:n,type:o,uuid:s}=e;if(!n&&this.ready){this.closeBrush();return}if(n&&!this.ready){this.openBrush();return}if(!!this.ready)switch(o){case ot.Drawline:const{state:r,timestamp:a,end:l}=e;if(!a||!r)return;this.tempLine[a]=[].concat(this.tempLine[a]||[],r.line),l&&(Object.assign(r,{line:this.tempLine[a]}),this.handleDrawLine(s,r,{},()=>delete this.tempLine[a]));break;case ot.Undo:this.handleUndo(s);break}}handleDrawLine(e,n,{withUndo:o=!1},s=Aa){!n||Object.prototype.toString.call(n)!="[object Object]"||Object.keys(n).length===0||wc(()=>new Promise(r=>{if(o||(this.canvas[e]||(this.canvas[e]=this.initCanvas("_paintBrush-canvas--sync")),this.data[e]||(this.data[e]=[]),this.data[e].push(n)),!this.canvas[e])return;const a=this.canvas[e].getContext("2d");if(!a)return;const{line:l=[],color:c="black",duration:u=0,uuid:d}=n,h=xi(n.move||{},this.clientWidth,this.clientHeight);let m=[h];if(a.strokeStyle=c,a.beginPath(),a.moveTo(h.x,h.y),u&&!o){let A=[];const v=this;v.tween=Pc({step:0},{step:l.length-1},u).onUpdate(({step:p})=>{var b;if(v.tweening=!0,!v.ready)return a.clearRect(0,0,v.canvas[d].width,v.canvas[d].height),(b=v.tween)==null?void 0:b.stop();const g=Math.floor(p);if(!A.find(w=>w===g)){if(A.push(g),m.push(xi(l[g],v.clientWidth,v.clientHeight)),m.length<3)return;const{control:w,end:P}=Mn(m);if(!w||!P)return;a.quadraticCurveTo(w.x,w.y,P.x,P.y),a.stroke()}}).onComplete(p=>{v.tween=void 0,v.tweening=!1,A=[],m=[],s&&s(),r()})}else{for(let A=0;A<l.length;A++){if(m.push(xi(l[A],this.clientWidth,this.clientHeight)),m.length<3)continue;const{control:v,end:p}=Mn(m);!v||!p||a.quadraticCurveTo(v.x,v.y,p.x,p.y)}a.stroke(),m=[],s&&s(),r()}}))}handleUndo(e){if(!this.canvas[e]||!this.data[e]||this.data[e].length===0)return;this.data[e].pop();const n=()=>{var s;const o=(s=this.canvas[e])==null?void 0:s.getContext("2d");o&&o.clearRect(0,0,this.canvas[e].width,this.canvas[e].height),this.data[e].forEach(r=>this.handleDrawLine(e,r,{withUndo:!0}))};if(this.tween&&this.tweening){this.tween.stop(),Yn(n,60);return}n()}destroyBrush(){this.closeBrush(),this.ready=!1,this.emit("readyChange",!0)}}class Lc{constructor(t={}){f(this,"controller");const e=Object.assign({currentColor:"#f44336",onUndoText:"\u56DE\u9000",onExitText:"\u5173\u95ED"},t);this.controller=new Dc(e)}on(t,e){this.controller.on(t,e)}off(t,e){this.controller.off(t,e)}once(t,e){this.controller.once(t,e)}show(){this.controller.openBrush()}action(t){this.controller.action(t)}get state(){return this.controller.state}get configs(){return this.controller.configs}dispose(){return this.controller.destroyBrush()}setCurrentColor(t){this.controller.updateCurrentColor(t)}}const Sc=(i,t)=>{var H,B;let e=(B=(H=t==null?void 0:t.initialState)==null?void 0:H.enabled)!=null?B:!0,n=!1,o=!0,s=null;const a=Q(Q({},{lookAtCurrentCamera:!1,lockedPanoIndex:null,lockedLatitude:null,lockedLongitude:null}),t==null?void 0:t.config),l=new k.Scene,c=new Ce.Camera(60);let u=new k.Object3D,d,h;{const F=new k.DirectionalLight(16777215,.5);F.position.copy(new k.Vector3(1,1,1)),l.add(F)}{const F=new k.DirectionalLight(16777215,.3);l.add(F)}{const F=new k.AmbientLight(16777215,.3);l.add(F)}l.add(u);const m=()=>{if(n)return;d=x(i.model,c.fov,c.aspect),h=i.model.bounding.getCenter(new k.Vector3),l.remove(u),u=R(i.model),l.add(u),n=!0,D();function F(N){const _=N.clone();return _.uniforms.modelAlpha.value=1,_.uniforms.map.value&&(_.uniforms.map.value.needsUpdate=!0),_}function R(N){if(N instanceof k.Mesh){const _=N.geometry,$=Array.isArray(N.material)?N.material.map(F):F(N.material);return new k.Mesh(_,$)}else if(N instanceof k.Group){const _=new k.Group;return N.children.forEach($=>_.add(R($))),_}else{const _=new k.Object3D;return N.children.forEach($=>_.add(R($))),_}}},A=()=>{if(!!i.renderer)return s||(s=new k.WebGLRenderer({antialias:!1,alpha:!0}),s.setPixelRatio(i.renderer.getPixelRatio()),s.outputEncoding=k.sRGBEncoding,s.setClearColor(1579548,0),s.autoClear=!0),s},v=()=>{u.traverse(F=>{F instanceof k.Mesh&&[].concat(F.material).forEach(N=>N.dispose())}),l.remove(u),u=new k.Object3D,l.add(u),n=!1,D()},p=()=>{!e||n||m()},g=()=>{e||(e=!0,l.add(u),!n&&i.model.loaded&&m(),D())},b=()=>{!e||(l.remove(u),o=!0,E(),e=!1)},w=(F,R={})=>{const N=A();if(!N)return;F.appendChild(N.domElement),P(R);const _=window.getComputedStyle(F).position;_!=="relative"&&_!=="absolute"&&_!=="fixed"&&_!=="sticky"&&(F.style.position="relative")},P=(F={})=>{if(!s)return;const N=s.domElement.parentNode;if(N!=null&&N.nodeName){const{width:_=N.offsetWidth,height:$=N.offsetHeight}=F;s.setSize(_,$),c.aspect=_/$,c.updateProjectionMatrix()}D()};function x(F,R,N){const _=F.bounding,$=Math.pow(Math.pow(_.max.x-_.min.x+1,2)+Math.pow(_.max.y-_.min.y+1,2)+Math.pow(_.max.z-_.min.z+1,2),1/2);let Y=$/2/Math.tan(Math.PI*R/360);return N<1&&(Y=Y/N),isNaN(Y)?$:Y}function C(F){return i.work.observers[F].standingPosition.clone()}const D=()=>{if(!e||!d||!h)return;const F=i.getPose();F.fov=c.fov,F.offset=h,F.distance=d,typeof a.lockedLatitude=="number"&&(F.latitude=a.lockedLatitude),typeof a.lockedLongitude=="number"&&(F.longitude=a.lockedLongitude),typeof a.lockedPanoIndex=="number"&&(F.offset=C(a.lockedPanoIndex)),a.lookAtCurrentCamera&&(F.offset=i.camera.position.clone().setY(i.camera.position.y+1)),c.setFromPose(F),o=!0},E=()=>{!e||o!==!0||!s||!s.domElement.parentNode||s.domElement.parentNode.offsetWidth===0||(s.render(l,c),o=!1)},O=()=>{s&&s.dispose(),s=null},G=F=>{Object.assign(a,F),D()},X=()=>({enabled:e});return Object.assign(window,{camera:c}),i.on("modelLoaded",p),i.on("modelWillLoad",v),i.on("cameraDirectionUpdate",D),i.on("dispose",O),i.on("renderFrame",E),i.on("cameraPositionUpdate",D),{appendTo:w,refresh:P,changeConfigs:G,enable:g,disable:b,getCurrentState:X}};function gt(...i){const t=[];return i.forEach(e=>{e.isCSS3DObjectPlus?t.push(e):t.push(...gt(...e.children))}),t}function $n(i,t){const e=Math.round(i);return e%2===0?e:e+Number(t!=null&&t.floor?-1:1)}function Mc(i,t,e=!0){if(!i)return console.error("createResizeObserver: element is undefined"),{observe:()=>{},unobserve:()=>{}};const n=()=>{const s=$n(i.clientWidth,{floor:!0}),r=$n(i.clientHeight,{floor:!0});t(s,r)};if(typeof ResizeObserver=="undefined"||!ResizeObserver)return console.warn("createResizeObserver: ResizeObserver is undefined"),{observe:()=>n(),unobserve:()=>{}};const o=new ResizeObserver(n);return e&&n(),{observe:()=>o.observe(i),unobserve:()=>o.unobserve(i)}}class Oo extends Kn.CSS3DRenderer{constructor(){super();f(this,"wrapper");f(this,"requestAnimationFrameId");f(this,"resizeDisoper");this.domElement.style.position="absolute",this.domElement.style.top="0",this.domElement.style.left="0",this.domElement.style.userSelect="none",this.domElement.style.pointerEvents="none"}setWrapper(e){if(!e)throw new Error("CSS3DRenderer: wrapper is required");if(e.contains(this.domElement))return;const n=this.wrapper;return n&&n.contains(this.domElement)&&this.domElement.remove(),this.appendToElement(e),this.wrapper=e,this}appendToElement(e){e.appendChild(this.domElement);const n=(r,a)=>this.setSize(r,a),{observe:o,unobserve:s}=Mc(e,n,!0);o(),this.resizeDisoper=s,this.wrapper=e}renderEveryFrame(e,n){if(this.wrapper||console.warn("wrapper is not find, creating a html element and call setWrapper(wrapper)",this,e),this.requestAnimationFrameId)return;const o=()=>{this.requestAnimationFrameId=requestAnimationFrame(o),!!e.visible&&gt(e).length!==0&&this.render(e,n)};o()}stopRender(){this.requestAnimationFrameId&&cancelAnimationFrame(this.requestAnimationFrameId)}dispose(){var e;this.stopRender(),(e=this.resizeDisoper)==null||e.call(this),this.domElement.remove()}}function Tc(i){return typeof Symbol=="undefined"?`$Symbol<${i}>$`:Symbol(i)}const gn=Tc("$$EVENT$$");function zn(i){return i[gn]||(i[gn]={}),i[gn]}function zc(i){i[gn]||delete i[gn]}class Zt{hasListener(t){const e=zn(this);return Boolean((e==null?void 0:e[t])&&e[t].length>0)}on(t,e,n){const o=zn(this);return o[t]||(o[t]=[]),o[t].push([e,n||!1]),()=>this.off(t,e)}once(t,e){return this.on(t,e,!0)}off(t,e){if(t===void 0){zc(this);return}const n=zn(this);if(n[t]||(n[t]=[]),e===void 0){n[t].length=0;return}let o=0;for(;o<n[t].length&&n[t][o][0]!==e;o++);o<n[t].length&&n[t].splice(o,1)}emit(t,...e){let n=!1;const s=zn(this)[t]||[];for(let r of s.slice()){const[a,l=!1]=r,c=a(...e);l&&this.off(t,a),c===!1&&(n=!0)}return n}}const Bc=({x:i,y:t,z:e})=>new V.Vector3(i,t,e),st=i=>new V.Vector3().fromArray(i),yn=i=>i instanceof V.Vector3?i:Array.isArray(i)?st(i):Bc(i);class jc extends k.Mesh{constructor(e,n){const o=new k.MeshBasicMaterial({opacity:0,color:0,transparent:!1,side:k.DoubleSide}),s=new k.PlaneGeometry(e,n);super(s,o);f(this,"name","opacity-mesh")}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}}function hi(...i){const t=new V.Vector3;return i.forEach(e=>{t.add(e)}),t.divideScalar(i.length),t}const va=1,Vc=`CSS3DObjectPlus@${va}`,Oc=.00216,Rc=.003;class Qc extends Kn.CSS3DObject{constructor(e){var x,C,D;const n=e.container,o=e.cornerPoints,s=(x=e.ratio)!=null?x:Rc,r=(C=e.dpr)!=null?C:1,a=(D=e.pointerEvents)!=null?D:"auto",l=Math.max(Oc,s),c=o[0].distanceTo(o[1]),u=o[1].distanceTo(o[2]),d=$n(c/s*r),h=$n(u/s*r),m=hi(...o);let A;if(l===s)n.style.width=`${d}px`,n.style.height=`${h}px`,A=n;else{const E=document.createElement("div");E.style.width=`${d}px`,E.style.height=`${h}px`,E.style.pointerEvents="none";const O=s/l;n.style.position="absolute",n.style.left="0",n.style.top="0",n.style.width=`${O*d}px`,n.style.height=`${O*h}px`,E.appendChild(n),A=E}super(A);f(this,"version",va);f(this,"isCSS3DObjectPlus",!0);f(this,"container");f(this,"width");f(this,"height");f(this,"domWidthPx");f(this,"domHeightPx");f(this,"cornerPoints");f(this,"centerPosition");f(this,"ratio");f(this,"mode","front");f(this,"hooks",new Zt);f(this,"opacityMesh");f(this,"selfVisible",!0);f(this,"parentVisibleListenerDisposer");f(this,"createOpacityMesh",e=>{const{domWidthPx:n,domHeightPx:o}=e,s=new jc(n,o);return s.position.copy(e.position),s.rotation.copy(e.rotation),s.scale.copy(e.scale),s});f(this,"addParentVisibleListener",()=>{var e;if((e=this.parent)!=null&&e.isCSS3DGroup){const n=this.parent,o=s=>{this.setVisible(s&&this.selfVisible,{setSelfVisible:!1})};n.hooks.on("visibleChange",o),this.parentVisibleListenerDisposer=()=>n.hooks.off("visibleChange",o)}});f(this,"removeParentVisibleListener",()=>{var e;(e=this.parentVisibleListenerDisposer)==null||e.call(this)});if(n.style.pointerEvents=a,this.scale.set(l,l,l),this.cornerPoints=o,this.ratio=s,this.container=n,e.mode&&(this.mode=e.mode),l===s)this.width=c,this.height=u,this.domWidthPx=d,this.domHeightPx=h,this.centerPosition=m;else{const E=s/l;this.width=E*c,this.height=E*u,this.domWidthPx=E*d,this.domHeightPx=E*h,this.centerPosition=new V.Vector3().subVectors(m,o[0]).multiplyScalar(E).add(o[0])}n.classList.add(`${Vc}__container`);const v=new V.Vector3().subVectors(o[1],o[0]),p=new V.Vector3().subVectors(o[3],o[0]),g=new V.Vector3().crossVectors(v,p).normalize();this.lookAt(g);const b=this.up.clone().applyQuaternion(this.quaternion),w=p.clone(),P=new V.Vector3().crossVectors(b,w).normalize();this.rotateOnWorldAxis(P,b.angleTo(w)),this.position.copy(m),this.addEventListener("added",()=>{var E;this.mode==="front"&&((E=this.opacityMesh)==null||E.removeFromParent()),this.addParentVisibleListener()}),this.addEventListener("removed",()=>{var E;(E=this.opacityMesh)==null||E.removeFromParent(),this.removeParentVisibleListener()})}setVisible(e,n={setSelfVisible:!0}){n.setSelfVisible&&(this.selfVisible=e),this.visible=e,this.opacityMesh&&(this.opacityMesh.visible=e)}removeFromParent(){var n;const e=this.parent;return e!==null&&e.remove(this),(n=this.opacityMesh)==null||n.removeFromParent(),this}removeOpacityMesh(){var e;return(e=this.opacityMesh)==null||e.removeFromParent(),this.opacityMesh=void 0,this}dispose(){var e;this.container.remove(),this.removeFromParent(),(e=this.opacityMesh)==null||e.removeFromParent()}getOpacityMesh(){if(this.opacityMesh)return this.opacityMesh;{const e=this.createOpacityMesh(this);return this.opacityMesh=e,e}}applyMatrix4(e){var n;super.applyMatrix4(e),(n=this.opacityMesh)==null||n.applyMatrix4(e)}applyQuaternion(e){var n;return super.applyQuaternion(e),(n=this.opacityMesh)==null||n.applyQuaternion(e),this}applyScaleMatrix4(e){var n;this.scale.applyMatrix4(e),(n=this.opacityMesh)==null||n.scale.applyMatrix4(e)}}class Fc extends k.Scene{constructor(){super()}add(...t){return super.add(...t),gt(...t).forEach(e=>{e.mode="front"}),this}}class Hc extends k.Scene{constructor(e){super();f(this,"scene");if(!e)throw new Error("CSS3DBehindScene: scene is required");this.scene=e}add(...e){return super.add(...e),gt(...e).forEach(n=>{n.mode="behind",this.scene.add(n.getOpacityMesh())}),this}remove(...e){return gt(...e).forEach(n=>{var o;(o=n.opacityMesh)==null||o.removeFromParent()}),super.remove(...e),this}}class ba extends k.Group{constructor(e){super();f(this,"isCSS3DGroup",!0);f(this,"mode");f(this,"CSS3DObjectLength",0);f(this,"hooks",new Zt);this.mode=e}add(...e){return gt(...e).forEach(n=>{n.mode=this.mode}),super.add(...e),this.updateLength(),this}setVisible(e){this.visible=e,this.hooks.emit("visibleChange",e)}remove(...e){return super.remove(...e),this.updateLength(),this}updateLength(){this.CSS3DObjectLength=gt(this).length}}class _c extends ba{constructor(){super("front")}}class Gc extends ba{constructor(e){super("behind");f(this,"scene");if(!e)throw new Error("CSS3DBehindScene: scene is required");this.scene=e}add(...e){return gt(...e).forEach(n=>{this.scene.add(n.getOpacityMesh())}),super.add(...e),this}}const Wc=3,Xi="CSS3DRenderer",fn=`${Xi}@${Wc}`,Vt=()=>{console.error(`${fn} is disposed`)},Le={css3DObjects:[],frontModeStore:{css3DRenderer:new Oo},behindModeStore:{css3DRenderer:new Oo}};function Ro(i){return Le.css3DObjects.find(t=>t.id===i)}function Nc(i){Le.frontModeStore.css3DRenderer.setWrapper(i)}function Xc(i){Le.behindModeStore.css3DRenderer.setWrapper(i)}class Nt{constructor(t){f(this,"hooks",new Zt);f(this,"state",{enabled:!0,visible:!0,disposed:!1});f(this,"_scene");f(this,"store",{frontModeGroup:new _c});f(this,"create3DElement",(t,e,n)=>{if(this.state.disposed)return Vt();const o=(()=>{const P={ratio:.00216,devicePixelRatio:1,mode:"front",autoRender:!0,container:document.createElement("div"),pointerEvents:"none"};return Object.assign(P,n)})(),s=e.map(yn);if((s==null?void 0:s.length)<4)return console.error(`${fn}: requires 4 point but params may have fewer`);const{ratio:r,devicePixelRatio:a,mode:l,autoRender:c,container:u,pointerEvents:d}=o;let h=!1;const m=this.createObject(s,{ratio:r,dpr:a,container:u,mode:l,pointerEvents:d});Le.css3DObjects.push(m),o.scene&&this.setScene(o.scene);const A=()=>{if(h)return;const P=m.mode==="front"?this.getFrontCSS3DObjectGroup():this.getBehindCSS3DObjectGroup();!P||P.add(m)},v=()=>{h||(A(),this.render(t))},p=P=>this.setVisibleById(m.id,P),g=P=>this.setEnabledById(m.id,P),b=()=>(h=!0,m.removeFromParent(),!0),w=l==="front"?Le.frontModeStore.css3DRenderer:Le.behindModeStore.css3DRenderer;return c&&v(),{id:m.uuid,container:u,css3DObject:m,render:c?void 0:v,show:()=>p(!0),hide:()=>p(!1),setVisible:p,enable:()=>g(!0),disable:()=>g(!1),setEnabled:g,dispose:b,appendToElement:P=>w.setWrapper(P)}});f(this,"setVisibleById",(t,e)=>{var n;(n=Ro(t))==null||n.setVisible(e)});f(this,"setEnabledById",(t,e)=>{const n=Ro(t);if(!n)return;const o=n.mode==="front"?this.getFrontCSS3DObjectGroup({addGroupIfNotExists:!1}):this.getBehindCSS3DObjectGroup({addGroupIfNotExists:!1});!o||(e?o.add(n):o.remove(n))});f(this,"createObject",(t,e)=>{const n=new Qc(Q({cornerPoints:t},e));return n.element.classList.add(`${Xi}__container`),n.element.id=`${Xi}__container--${n.uuid}`,n});t&&this.setScene(t)}get scene(){return this._scene||console.error("scene doesn't exist!, please call setScene(scene) first"),this._scene}static get frontModeCSS3DRenderer(){return Le.frontModeStore.css3DRenderer}static get behindModeCSS3DRenderer(){return Le.behindModeStore.css3DRenderer}get frontModeCSS3DRenderer(){return Le.frontModeStore.css3DRenderer}get behindModeCSS3DRenderer(){return Le.behindModeStore.css3DRenderer}setScene(t){this._scene=t}getCurrentState(){return this.state}setState(t,e={userAction:!0}){if(this.state.disposed)return Vt();const n=Q({},this.state);this.state=Object.assign(this.state,t),n.visible!==this.state.visible&&(t.visible?this.handleShow():this.handleHide()),n.enabled!==this.state.enabled&&(t.enabled?this.handleEnable():this.handleDisable()),n.disposed!==this.state.disposed&&this.handleDispose(),this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:e.userAction})}dispose(){this.setState({disposed:!0}),this.hooks.emit("dispose")}show(){return W(this,arguments,function*({userAction:t}={userAction:!0}){if(this.state.disposed)return Vt();this.setState({visible:!0},{userAction:t}),this.hooks.emit("show",{userAction:t})})}hide(){return W(this,arguments,function*({userAction:t}={userAction:!0}){if(this.state.disposed)return Vt();this.setState({visible:!1},{userAction:t}),this.hooks.emit("hide",{userAction:t})})}enable({userAction:t}={userAction:!0}){if(this.state.disposed)return Vt();this.setState({enabled:!0},{userAction:t}),this.hooks.emit("enable",{userAction:t})}disable({userAction:t}={userAction:!0}){if(this.state.disposed)return Vt();this.setState({enabled:!1},{userAction:t}),this.hooks.emit("disable",{userAction:t})}getFrontCSS3DScene({createSceneIfNotExists:t=!1}={}){var n;const e=(n=Le.frontModeStore)==null?void 0:n.css3DScene;if(e)return e;if(t){const o=new Fc;Le.frontModeStore.css3DScene=o}return Le.frontModeStore.css3DScene}getBehindCSS3DScene({createSceneIfNotExists:t=!1}={}){var n,o;const e=(n=Le.behindModeStore)==null?void 0:n.css3DScene;if(e)return e;if(t){const s=(o=Le.behindModeStore.scene)!=null?o:this.scene;if(!s){console.error(`${fn}: scene is required when mode is behind`);return}const r=new Hc(s);Le.behindModeStore.css3DScene=r,Le.behindModeStore.scene=s}return Le.behindModeStore.css3DScene}getFrontCSS3DObjectGroup({addGroupIfNotExists:t=!0}={}){const e=this.getFrontCSS3DScene({createSceneIfNotExists:t});return t&&e&&(e.getObjectById(this.store.frontModeGroup.id)||e.add(this.store.frontModeGroup)),this.store.frontModeGroup}getBehindCSS3DObjectGroup({addGroupIfNotExists:t=!0}={}){var n;const e=this.getBehindCSS3DScene({createSceneIfNotExists:t});if(t&&e&&this.scene){const o=(n=this.store.behindModeGroup)!=null?n:new Gc(this.scene);this.store.behindModeGroup=o,e.getObjectById(o.id)||e.add(o)}return this.store.behindModeGroup}render(t){var e,n;if(this.getFrontCSS3DObjectGroup({addGroupIfNotExists:!1}).CSS3DObjectLength>0){const o=this.getFrontCSS3DScene({createSceneIfNotExists:!0});if(!o)return console.error(`${fn}: css3DScene is required when mode is front`);Le.frontModeStore.css3DRenderer.renderEveryFrame(o,t)}if(((n=(e=this.getBehindCSS3DObjectGroup({addGroupIfNotExists:!1}))==null?void 0:e.CSS3DObjectLength)!=null?n:0)>0){const o=this.getBehindCSS3DScene({createSceneIfNotExists:!0});if(!o)return console.error(`${fn}: css3DScene is required when mode is behind`);Le.behindModeStore.css3DRenderer.renderEveryFrame(o,t)}}handleShow(){return W(this,null,function*(){var t;this.store.frontModeGroup.setVisible(!0),(t=this.store.behindModeGroup)==null||t.setVisible(!0)})}handleHide(){return W(this,null,function*(){var t;this.store.frontModeGroup.setVisible(!1),(t=this.store.behindModeGroup)==null||t.setVisible(!1)})}handleEnable(){var t,e;(t=this.getFrontCSS3DScene())==null||t.add(this.store.frontModeGroup),this.store.behindModeGroup&&((e=this.getBehindCSS3DScene())==null||e.add(this.store.behindModeGroup))}handleDisable(){var t,e,n;this.store.frontModeGroup.children.forEach(o=>{o instanceof Kn.CSS3DObject&&o.element instanceof Element&&o.element.parentNode!==null&&o.element.remove()}),(t=this.store.behindModeGroup)==null||t.children.forEach(o=>{o instanceof Kn.CSS3DObject&&o.element instanceof Element&&o.element.parentNode!==null&&o.element.remove()}),(e=this.getFrontCSS3DScene())==null||e.remove(this.store.frontModeGroup),this.store.behindModeGroup&&((n=this.getBehindCSS3DScene())==null||n.remove(this.store.behindModeGroup))}handleDispose(){this.handleDisable()}}f(Nt,"setFrontModeContainer",Nc),f(Nt,"setBehindModeContainer",Xc);function ya(i){return W(this,null,function*(){return new Promise(t=>{var e;if((e=i.model)!=null&&e.loaded){t();return}else i.once("modelLoaded",()=>t())})})}const lt=document.createElement("div");lt.classList.add("behindFiveElement");lt.style.position="absolute";lt.style.top="0";lt.style.left="0";lt.style.width="100%";lt.style.height="100%";lt.style.pointerEvents="none";function wa(i){var e,n,o,s,r;const t=(r=(n=Di(i.getElement()))!=null?n:Di((e=i.getElement())==null?void 0:e.parentElement))!=null?r:Di((s=(o=i.getElement())==null?void 0:o.parentElement)==null?void 0:s.parentElement);if(t!=null&&t.parentElement)return t.parentElement.insertBefore(lt,t),lt;console.error("Can not find a valid element to insert behindFiveElement. How to fix it: https://github.com/realsee-developer/dnalogel/tree/main/plugins/src/CSS3DRenderPlugin/README.md")}function Di(i){var a;if(!i)return;const t=(a=i.style.position)!=null?a:getComputedStyle(i).position;if(t!=="fixed"&&t!=="absolute"&&t!=="relative")return;const e=getComputedStyle(i),n=e.backgroundColor,o=e.backgroundImage;if(!(n!=="transparent"&&n!=="rgba(0, 0, 0, 0)"&&n!==""||o!=="none"&&o!==""))return i}const Ca="v2.0.1",Li=`CSS3DRenderPlugin@${Ca}`;class Yc extends Nt{constructor(e){super();f(this,"five");f(this,"behindFiveContainer");f(this,"VERSION",Ca);f(this,"staticPrefix","//vrlab-static.ljcdn.com");f(this,"create3DDomContainer",(e,n)=>{if(this.state.disposed)return;const o=(()=>{var d;(n==null?void 0:n.dpr)!==void 0&&console.warn(`${Li}: please use "config.devicePixelRatio" replace "config.dpr"`);const u={ratio:.00216,devicePixelRatio:(d=n==null?void 0:n.dpr)!=null?d:1,mode:"front",autoRender:!0};return Object.assign(u,n,(n==null?void 0:n.mode)==="behind"?{scene:this.five.scene}:void 0)})(),s=this.five.getElement();if(!s){console.error(`${Li}: five.getElement() is ${s}`);return}const{autoRender:r}=o;o.mode==="behind"&&o.behindFiveContainer&&(this.behindFiveContainer=o.behindFiveContainer);const a=this.create3DElement(this.five.camera,e,fe(Q({},o),{autoRender:!1}));if(!a)return;const l=()=>{const u=a.css3DObject.mode==="front"?s.parentElement:this.getBehindFiveElement();if(!u)return console.error(`${Li}: wrapper is ${u}`);a.appendToElement(u),a.render()},c=()=>{a.css3DObject.mode==="front"&&l(),a.css3DObject.mode==="behind"&&ya(this.five).then(()=>{l()})};return r&&c(),fe(Q({},a),{render:r?void 0:c})});this.five=e}disposeAll(){return this.dispose()}setState(...e){const n=super.setState(...e);return this.five.needsRender=!0,n}getBehindFiveElement(){return this.behindFiveContainer?this.behindFiveContainer:(this.behindFiveContainer=wa(this.five),this.behindFiveContainer)}}const Kt=i=>new Yc(i);function Si(i,t,e=new V.Vector3(1,1,1),n=!1){const o=new ma.Line(i,t);return o.setMaterial({dashed:n,color:e,linewidth:1}),o.remove(o.points),o}const Uc=i=>{const t={intersection:null,disposers:[]},e=u=>{t.intersection=u},n=()=>{t.intersection=null};i.on("modelLoaded",()=>{i.on("intersectionOnModelUpdate",e),i.on("intersectionHidden",n)}),i.on("dispose",()=>{i.off("intersectionOnModelUpdate",e),i.off("intersectionHidden",n)});const o=(u,d=2,h=.1)=>{const m=d/2,v=c(u,h),p=new V.Group;p.add(Si(new V.Vector3(v.x+m,v.y,v.z),new V.Vector3(v.x-m,v.y,v.z),new V.Vector3(1,0,0)),Si(new V.Vector3(v.x,v.y+m,v.z),new V.Vector3(v.x,v.y-m,v.z),new V.Vector3(0,1,0)),Si(new V.Vector3(v.x,v.y,v.z+m),new V.Vector3(v.x,v.y,v.z-m),new V.Vector3(0,0,1))),i.scene.add(p),i.needsRender=!0;const g=()=>{i.scene.remove(p)};return t.disposers.push(g),{clear:g,pointAxesHelperMesh:p}},s=(u,d=0)=>{var g,b;const h=(g=i==null?void 0:i.camera)==null?void 0:g.position;if(!h)return!1;const m=u.distanceTo(h),A=u.sub(h).normalize(),v=new V.Raycaster(h,A),p=(b=i.model.intersectRaycaster(v))==null?void 0:b[0];return!(p&&p.distance+d<m)},r=()=>t.intersection,a=()=>{var u,d;(d=(u=t.disposers)==null?void 0:u.forEach)==null||d.call(u,h=>h==null?void 0:h()),i.off("intersectionOnModelUpdate",e),i.off("intersectionHidden",n)},l=a,c=(u,d)=>{const h=u.clone();return i.camera.position.clone().sub(h).setLength(d).add(h)};return{intersection:r,pointAxesHelper:o,movePointTowardsCamera:c,destroy:a,dispose:l,canSeePoint:s}};function U(){}const At=i=>i;function Be(i,t){for(const e in t)i[e]=t[e];return i}function qc(i){return i&&typeof i=="object"&&typeof i.then=="function"}function Ea(i){return i()}function Qo(){return Object.create(null)}function He(i){i.forEach(Ea)}function $t(i){return typeof i=="function"}function ne(i,t){return i!=i?t==t:i!==t||i&&typeof i=="object"||typeof i=="function"}let Bn;function Ne(i,t){return Bn||(Bn=document.createElement("a")),Bn.href=t,i===Bn.href}function Jc(i){return Object.keys(i).length===0}function en(i,t,e,n){if(i){const o=Pa(i,t,e,n);return i[0](o)}}function Pa(i,t,e,n){return i[1]&&n?Be(e.ctx.slice(),i[1](n(t))):e.ctx}function tn(i,t,e,n){if(i[2]&&n){const o=i[2](n(e));if(t.dirty===void 0)return o;if(typeof o=="object"){const s=[],r=Math.max(t.dirty.length,o.length);for(let a=0;a<r;a+=1)s[a]=t.dirty[a]|o[a];return s}return t.dirty|o}return t.dirty}function nn(i,t,e,n,o,s){if(o){const r=Pa(t,e,n,s);i.p(r,o)}}function on(i){if(i.ctx.length>32){const t=[],e=i.ctx.length/32;for(let n=0;n<e;n++)t[n]=-1;return t}return-1}function Te(i){return i==null?"":i}function at(i){return i&&$t(i.destroy)?i.destroy:U}const Ia=typeof window!="undefined";let ka=Ia?()=>window.performance.now():()=>Date.now(),lo=Ia?i=>requestAnimationFrame(i):U;const _t=new Set;function xa(i){_t.forEach(t=>{t.c(i)||(_t.delete(t),t.f())}),_t.size!==0&&lo(xa)}function Da(i){let t;return _t.size===0&&lo(xa),{promise:new Promise(e=>{_t.add(t={c:i,f:e})}),abort(){_t.delete(t)}}}function j(i,t){i.appendChild(t)}function le(i,t,e){const n=co(i);if(!n.getElementById(t)){const o=z("style");o.id=t,o.textContent=e,La(n,o)}}function co(i){if(!i)return document;const t=i.getRootNode?i.getRootNode():i.ownerDocument;return t&&t.host?t:i.ownerDocument}function Zc(i){const t=z("style");return La(co(i),t),t.sheet}function La(i,t){return j(i.head||i,t),t.sheet}function M(i,t,e){i.insertBefore(t,e||null)}function S(i){i.parentNode&&i.parentNode.removeChild(i)}function ct(i,t){for(let e=0;e<i.length;e+=1)i[e]&&i[e].d(t)}function z(i){return document.createElement(i)}function we(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ke(i){return document.createTextNode(i)}function ee(){return ke(" ")}function me(){return ke("")}function ge(i,t,e,n){return i.addEventListener(t,e,n),()=>i.removeEventListener(t,e,n)}function Sa(i){return function(t){return t.stopPropagation(),i.call(this,t)}}function y(i,t,e){e==null?i.removeAttribute(t):i.getAttribute(t)!==e&&i.setAttribute(t,e)}function Kc(i){return Array.from(i.childNodes)}function Se(i,t){t=""+t,i.wholeText!==t&&(i.data=t)}function T(i,t,e,n){e===null?i.style.removeProperty(t):i.style.setProperty(t,e,n?"important":"")}let jn;function $c(){if(jn===void 0){jn=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){jn=!0}}return jn}function fi(i,t){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=z("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=$c();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=ge(window,"message",r=>{r.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{s=ge(n.contentWindow,"resize",t)}),j(i,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function q(i,t,e){i.classList[e?"add":"remove"](t)}function Ma(i,t,{bubbles:e=!1,cancelable:n=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(i,e,n,t),o}class ei{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){this.e||(this.is_svg?this.e=we(e.nodeName):this.e=z(e.nodeName),this.t=e,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)M(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(S)}}const ti=new Map;let ni=0;function eu(i){let t=5381,e=i.length;for(;e--;)t=(t<<5)-t^i.charCodeAt(e);return t>>>0}function tu(i,t){const e={stylesheet:Zc(t),rules:{}};return ti.set(i,e),e}function Ta(i,t,e,n,o,s,r,a=0){const l=16.666/n;let c=`{
102
102
  `;for(let p=0;p<=1;p+=l){const g=t+(e-t)*s(p);c+=p*100+`%{${r(g,1-g)}}
103
103
  `}const u=c+`100% {${r(e,1-e)}}
104
- }`,d=`__svelte_${eu(u)}_${a}`,h=co(i),{stylesheet:m,rules:A}=ti.get(h)||tu(h,i);A[d]||(A[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length));const v=i.style.animation||"";return i.style.animation=`${v?`${v}, `:""}${d} ${n}ms linear ${o}ms 1 both`,ni+=1,d}function Yi(i,t){const e=(i.style.animation||"").split(", "),n=e.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),o=e.length-n.length;o&&(i.style.animation=n.join(", "),ni-=o,ni||nu())}function nu(){lo(()=>{ni||(ti.forEach(i=>{const{ownerNode:t}=i.stylesheet;t&&S(t)}),ti.clear())})}let wn;function rt(i){wn=i}function Ct(){if(!wn)throw new Error("Function called outside component initialization");return wn}function za(i){Ct().$$.before_update.push(i)}function Ue(i){Ct().$$.on_mount.push(i)}function Ba(i){Ct().$$.after_update.push(i)}function Et(i){Ct().$$.on_destroy.push(i)}function mi(){const i=Ct();return(t,e,{cancelable:n=!1}={})=>{const o=i.$$.callbacks[t];if(o){const s=Ma(t,e,{cancelable:n});return o.slice().forEach(r=>{r.call(i,s)}),!s.defaultPrevented}return!0}}function Ui(i,t){return Ct().$$.context.set(i,t),t}function St(i){return Ct().$$.context.get(i)}function sn(i,t){const e=i.$$.callbacks[t.type];e&&e.slice().forEach(n=>n.call(this,t))}const mn=[],Ve=[],Un=[],qi=[],ja=Promise.resolve();let Ji=!1;function Va(){Ji||(Ji=!0,ja.then(uo))}function Fo(){return Va(),ja}function Oe(i){Un.push(i)}function iu(i){qi.push(i)}const Mi=new Set;let Vn=0;function uo(){const i=wn;do{for(;Vn<mn.length;){const t=mn[Vn];Vn++,rt(t),ou(t.$$)}for(rt(null),mn.length=0,Vn=0;Ve.length;)Ve.pop()();for(let t=0;t<Un.length;t+=1){const e=Un[t];Mi.has(e)||(Mi.add(e),e())}Un.length=0}while(mn.length);for(;qi.length;)qi.pop()();Ji=!1,Mi.clear(),rt(i)}function ou(i){if(i.fragment!==null){i.update(),He(i.before_update);const t=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,t),i.after_update.forEach(Oe)}}let cn;function Oa(){return cn||(cn=Promise.resolve(),cn.then(()=>{cn=null})),cn}function ii(i,t,e){i.dispatchEvent(Ma(`${t?"intro":"outro"}${e}`))}const qn=new Set;let mt;function se(){mt={r:0,c:[],p:mt}}function re(){mt.r||He(mt.c),mt=mt.p}function P(i,t){i&&i.i&&(qn.delete(i),i.i(t))}function L(i,t,e,n){if(i&&i.o){if(qn.has(i))return;qn.add(i),mt.c.push(()=>{qn.delete(i),n&&(e&&i.d(1),n())}),i.o(t)}else n&&n()}const Ra={duration:0};function Tt(i,t,e){let n=t(i,e),o=!1,s,r,a=0;function l(){s&&Yi(i,s)}function c(){const{delay:d=0,duration:h=300,easing:m=At,tick:A=U,css:v}=n||Ra;v&&(s=Ta(i,0,1,h,d,m,v,a++)),A(0,1);const p=ka()+d,g=p+h;r&&r.abort(),o=!0,Oe(()=>ii(i,!0,"start")),r=Da(b=>{if(o){if(b>=g)return A(1,0),ii(i,!0,"end"),l(),o=!1;if(b>=p){const w=m((b-p)/h);A(w,1-w)}}return o})}let u=!1;return{start(){u||(u=!0,Yi(i),$t(n)?(n=n(),Oa().then(c)):c())},invalidate(){u=!1},end(){o&&(l(),o=!1)}}}function rn(i,t,e){let n=t(i,e),o=!0,s;const r=mt;r.r+=1;function a(){const{delay:l=0,duration:c=300,easing:u=At,tick:d=U,css:h}=n||Ra;h&&(s=Ta(i,1,0,c,l,u,h));const m=ka()+l,A=m+c;Oe(()=>ii(i,!1,"start")),Da(v=>{if(o){if(v>=A)return d(0,1),ii(i,!1,"end"),--r.r||He(r.c),!1;if(v>=m){const p=u((v-m)/c);d(1-p,p)}}return o})}return $t(n)?Oa().then(()=>{n=n(),a()}):a(),{end(l){l&&n.tick&&n.tick(1,0),o&&(s&&Yi(i,s),o=!1)}}}function oi(i,t){const e=t.token={};function n(o,s,r,a){if(t.token!==e)return;t.resolved=a;let l=t.ctx;r!==void 0&&(l=l.slice(),l[r]=a);const c=o&&(t.current=o)(l);let u=!1;t.block&&(t.blocks?t.blocks.forEach((d,h)=>{h!==s&&d&&(se(),L(d,1,1,()=>{t.blocks[h]===d&&(t.blocks[h]=null)}),re())}):t.block.d(1),c.c(),P(c,1),c.m(t.mount(),t.anchor),u=!0),t.block=c,t.blocks&&(t.blocks[s]=c),u&&uo()}if(qc(i)){const o=Ct();if(i.then(s=>{rt(o),n(t.then,1,t.value,s),rt(null)},s=>{if(rt(o),n(t.catch,2,t.error,s),rt(null),!t.hasCatch)throw s}),t.current!==t.pending)return n(t.pending,0),!0}else{if(t.current!==t.then)return n(t.then,1,t.value,i),!0;t.resolved=i}}function Qa(i,t,e){const n=t.slice(),{resolved:o}=i;i.current===i.then&&(n[i.value]=o),i.current===i.catch&&(n[i.error]=o),i.block.p(n,e)}const su=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function ho(i,t){i.d(1),t.delete(i.key)}function Pt(i,t){L(i,1,1,()=>{t.delete(i.key)})}function qe(i,t,e,n,o,s,r,a,l,c,u,d){let h=i.length,m=s.length,A=h;const v={};for(;A--;)v[i[A].key]=A;const p=[],g=new Map,b=new Map;for(A=m;A--;){const C=d(o,s,A),D=e(C);let E=r.get(D);E?n&&E.p(C,t):(E=c(D,C),E.c()),g.set(D,p[A]=E),D in v&&b.set(D,Math.abs(A-v[D]))}const w=new Set,x=new Set;function k(C){P(C,1),C.m(a,u),r.set(C.key,C),u=C.first,m--}for(;h&&m;){const C=p[m-1],D=i[h-1],E=C.key,O=D.key;C===D?(u=C.first,h--,m--):g.has(O)?!r.has(E)||w.has(E)?k(C):x.has(O)?h--:b.get(E)>b.get(O)?(x.add(E),k(C)):(w.add(O),h--):(l(D,r),h--)}for(;h--;){const C=i[h];g.has(C.key)||l(C,r)}for(;m;)k(p[m-1]);return p}function Re(i,t){const e={},n={},o={$$scope:1};let s=i.length;for(;s--;){const r=i[s],a=t[s];if(a){for(const l in r)l in a||(n[l]=1);for(const l in a)o[l]||(e[l]=a[l],o[l]=1);i[s]=a}else for(const l in r)o[l]=1}for(const r in n)r in e||(e[r]=void 0);return e}function Fa(i){return typeof i=="object"&&i!==null?i:{}}function ru(i,t,e){const n=i.$$.props[t];n!==void 0&&(i.$$.bound[n]=e,e(i.$$.ctx[n]))}function K(i){i&&i.c()}function J(i,t,e,n){const{fragment:o,after_update:s}=i.$$;o&&o.m(t,e),n||Oe(()=>{const r=i.$$.on_mount.map(Ea).filter($t);i.$$.on_destroy?i.$$.on_destroy.push(...r):He(r),i.$$.on_mount=[]}),s.forEach(Oe)}function Z(i,t){const e=i.$$;e.fragment!==null&&(He(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function au(i,t){i.$$.dirty[0]===-1&&(mn.push(i),Va(),i.$$.dirty.fill(0)),i.$$.dirty[t/31|0]|=1<<t%31}function ie(i,t,e,n,o,s,r,a=[-1]){const l=wn;rt(i);const c=i.$$={fragment:null,ctx:[],props:s,update:U,not_equal:o,bound:Qo(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Qo(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};r&&r(c.root);let u=!1;if(c.ctx=e?e(i,t.props||{},(d,h,...m)=>{const A=m.length?m[0]:h;return c.ctx&&o(c.ctx[d],c.ctx[d]=A)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](A),u&&au(i,d)),h}):[],c.update(),u=!0,He(c.before_update),c.fragment=n?n(c.ctx):!1,t.target){if(t.hydrate){const d=Kc(t.target);c.fragment&&c.fragment.l(d),d.forEach(S)}else c.fragment&&c.fragment.c();t.intro&&P(i.$$.fragment),J(i,t.target,t.anchor,t.customElement),uo()}rt(l)}class oe{$destroy(){Z(this,1),this.$destroy=U}$on(t,e){if(!$t(e))return U;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const o=n.indexOf(e);o!==-1&&n.splice(o,1)}}$set(t){this.$$set&&!Jc(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const lu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAg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Cy8ASOh6IC534Qf126Au6Aq7S+0P9jOJ/f/jhh7dfeeWVN1C4c+cOv5zoxsQgKD7O/OgIT3OLgrrkLAMR9EuQYsXLlWO5ePNMJ25s7Fhv8EIraduDDOJI7kfh6FT98M6Ka/GrLbE0/131X79+/YVXX331+tNPP32b3nt1tGhXP/rooz/ruf9N/YzWQ/2e2c8Cfg7Wz8RC9WkeE8pj/rQltMRH/jXdsdreAEp04mg8u22zYhvZ9IPueLE4puMLfnjRKzKCbD4ZHv9oK/mwaPOlm/ukkbFwjKLj428j8t8DEEvN9xJoJuhsDI9lxOeHXr3zE8cGm7fpQMfNgR54ntXmYXzx1ltvbX64VUl4SH//66+/fl2/5ndLC/BHMV/Q6ypN06Bm3lgFaKMcEbj+bDHN88/curvewF4hjhNWasrwhy/0waIPjylyYjp49Ag++NhFhi7F+jeEFcc/H6w5TYbnxo2OoufXmNPcX+XWv4QLMo+taJkfeY4gvtRs/n8vzY/cssxB5CyKxi96/aB+/Y9+KfE/X3vttS8lI7e9/wfu514OAjYP0QAAAABJRU5ErkJggg==";function cu(i){le(i,"svelte-1d7uzh5",".room-label-item.svelte-1d7uzh5{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-1d7uzh5{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1d7uzh5{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1d7uzh5{font-size:0.625rem}")}function uu(i){let t,e,n=i[0].name+"",o,s,r,a,l;return{c(){t=z("div"),e=z("span"),o=ke(n),s=ee(),r=z("div"),y(e,"class","room-label-item__text svelte-1d7uzh5"),T(e,"background-image","url("+lu+")"),q(e,"wide",i[0].name.length>3),y(r,"class","room-label-item__bar svelte-1d7uzh5"),y(t,"class","room-label-item svelte-1d7uzh5"),T(t,"z-index",i[0].zIndex),T(t,"transform",i[0].transform),T(t,"opacity",i[0].visible?1:0)},m(c,u){M(c,t,u),j(t,e),j(e,o),j(t,s),j(t,r),a||(l=ge(e,"click",i[1]),a=!0)},p(c,[u]){u&1&&n!==(n=c[0].name+"")&&Se(o,n),u&1&&q(e,"wide",c[0].name.length>3),u&1&&T(t,"z-index",c[0].zIndex),u&1&&T(t,"transform",c[0].transform),u&1&&T(t,"opacity",c[0].visible?1:0)},i:U,o:U,d(c){c&&S(t),a=!1,l()}}}function du(i,t,e){let{five:n}=t,{roomLabel:o}=t;function s(){n.setState({panoIndex:o.panoIndex,mode:"Panorama",longitude:o.longitude})}return i.$$set=r=>{"five"in r&&e(2,n=r.five),"roomLabel"in r&&e(0,o=r.roomLabel)},[o,s,n]}class hu extends oe{constructor(t){super(),ie(this,t,du,uu,ne,{five:2,roomLabel:0},cu)}}var Ha=function(){if(typeof Map!="undefined")return Map;function i(t,e){var n=-1;return t.some(function(o,s){return o[0]===e?(n=s,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var n=i(this.__entries__,e),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(e,n){var o=i(this.__entries__,e);~o?this.__entries__[o][1]=n:this.__entries__.push([e,n])},t.prototype.delete=function(e){var n=this.__entries__,o=i(n,e);~o&&n.splice(o,1)},t.prototype.has=function(e){return!!~i(this.__entries__,e)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,n){n===void 0&&(n=null);for(var o=0,s=this.__entries__;o<s.length;o++){var r=s[o];e.call(n,r[1],r[0])}},t}()}(),Zi=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,si=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),fu=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(si):function(i){return setTimeout(function(){return i(Date.now())},1e3/60)}}(),mu=2;function pu(i,t){var e=!1,n=!1,o=0;function s(){e&&(e=!1,i()),n&&a()}function r(){fu(s)}function a(){var l=Date.now();if(e){if(l-o<mu)return;n=!0}else e=!0,n=!1,setTimeout(r,t);o=l}return a}var gu=20,Au=["top","right","bottom","left","width","height","size","weight"],vu=typeof MutationObserver!="undefined",bu=function(){function i(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=pu(this.refresh.bind(this),gu)}return i.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},i.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},i.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},i.prototype.updateObservers_=function(){var t=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return t.forEach(function(e){return e.broadcastActive()}),t.length>0},i.prototype.connect_=function(){!Zi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vu?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},i.prototype.disconnect_=function(){!Zi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},i.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=e===void 0?"":e,o=Au.some(function(s){return!!~n.indexOf(s)});o&&this.refresh()},i.getInstance=function(){return this.instance_||(this.instance_=new i),this.instance_},i.instance_=null,i}(),_a=function(i,t){for(var e=0,n=Object.keys(t);e<n.length;e++){var o=n[e];Object.defineProperty(i,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return i},Xt=function(i){var t=i&&i.ownerDocument&&i.ownerDocument.defaultView;return t||si},Ga=pi(0,0,0,0);function ri(i){return parseFloat(i)||0}function Ho(i){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t.reduce(function(n,o){var s=i["border-"+o+"-width"];return n+ri(s)},0)}function yu(i){for(var t=["top","right","bottom","left"],e={},n=0,o=t;n<o.length;n++){var s=o[n],r=i["padding-"+s];e[s]=ri(r)}return e}function wu(i){var t=i.getBBox();return pi(0,0,t.width,t.height)}function Cu(i){var t=i.clientWidth,e=i.clientHeight;if(!t&&!e)return Ga;var n=Xt(i).getComputedStyle(i),o=yu(n),s=o.left+o.right,r=o.top+o.bottom,a=ri(n.width),l=ri(n.height);if(n.boxSizing==="border-box"&&(Math.round(a+s)!==t&&(a-=Ho(n,"left","right")+s),Math.round(l+r)!==e&&(l-=Ho(n,"top","bottom")+r)),!Pu(i)){var c=Math.round(a+s)-t,u=Math.round(l+r)-e;Math.abs(c)!==1&&(a-=c),Math.abs(u)!==1&&(l-=u)}return pi(o.left,o.top,a,l)}var Eu=function(){return typeof SVGGraphicsElement!="undefined"?function(i){return i instanceof Xt(i).SVGGraphicsElement}:function(i){return i instanceof Xt(i).SVGElement&&typeof i.getBBox=="function"}}();function Pu(i){return i===Xt(i).document.documentElement}function Iu(i){return Zi?Eu(i)?wu(i):Cu(i):Ga}function ku(i){var t=i.x,e=i.y,n=i.width,o=i.height,s=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,r=Object.create(s.prototype);return _a(r,{x:t,y:e,width:n,height:o,top:e,right:t+n,bottom:o+e,left:t}),r}function pi(i,t,e,n){return{x:i,y:t,width:e,height:n}}var xu=function(){function i(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=pi(0,0,0,0),this.target=t}return i.prototype.isActive=function(){var t=Iu(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},i.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},i}(),Du=function(){function i(t,e){var n=ku(e);_a(this,{target:t,contentRect:n})}return i}(),Lu=function(){function i(t,e,n){if(this.activeObservations_=[],this.observations_=new Ha,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return i.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof Xt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new xu(t)),this.controller_.addObserver(this),this.controller_.refresh())}},i.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof Xt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;!e.has(t)||(e.delete(t),e.size||this.controller_.removeObserver(this))}},i.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},i.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},i.prototype.broadcastActive=function(){if(!!this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(n){return new Du(n.target,n.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},i.prototype.clearActive=function(){this.activeObservations_.splice(0)},i.prototype.hasActive=function(){return this.activeObservations_.length>0},i}(),Wa=typeof WeakMap!="undefined"?new WeakMap:new Ha,Na=function(){function i(t){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=bu.getInstance(),n=new Lu(t,e,this);Wa.set(this,n)}return i}();["observe","unobserve","disconnect"].forEach(function(i){Na.prototype[i]=function(){var t;return(t=Wa.get(this))[i].apply(t,arguments)}});var Su=function(){return typeof si.ResizeObserver!="undefined"?si.ResizeObserver:Na}();function an(i){new Su((e,n)=>{for(const o of e){const{borderBoxSize:s}=o,r=s[0].inlineSize,a=s[0].blockSize;i.dispatchEvent(new CustomEvent("clientWidth",{detail:r})),i.dispatchEvent(new CustomEvent("clientHeight",{detail:a}))}}).observe(i)}const{Map:Mu}=su;function Tu(i){le(i,"svelte-9eg4zi",".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}")}function _o(i,t,e){const n=i.slice();return n[13]=t[e],n}function Go(i,t){let e,n,o;return n=new hu({props:{roomLabel:t[13],five:t[1]}}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(s,r){M(s,e,r),J(n,s,r),o=!0},p(s,r){t=s;const a={};r&1&&(a.roomLabel=t[13]),r&2&&(a.five=t[1]),n.$set(a)},i(s){o||(P(n.$$.fragment,s),o=!0)},o(s){L(n.$$.fragment,s),o=!1},d(s){s&&S(e),Z(n,s)}}}function zu(i){let t,e=[],n=new Mu,o,s,r,a=i[0];const l=c=>c[13].id;for(let c=0;c<a.length;c+=1){let u=_o(i,a,c),d=l(u);n.set(d,e[c]=Go(d,u))}return{c(){t=z("div");for(let c=0;c<e.length;c+=1)e[c].c();y(t,"class","room-labels-container svelte-9eg4zi")},m(c,u){M(c,t,u);for(let d=0;d<e.length;d+=1)e[d].m(t,null);o=!0,s||(r=[at(an.call(null,t)),ge(t,"clientWidth",i[6]),ge(t,"clientHeight",i[7])],s=!0)},p(c,[u]){u&3&&(a=c[0],se(),e=qe(e,u,l,1,c,a,n,t,Pt,Go,null,_o),re())},i(c){if(!o){for(let u=0;u<a.length;u+=1)P(e[u]);o=!0}},o(c){for(let u=0;u<e.length;u+=1)L(e[u]);o=!1},d(c){c&&S(t);for(let u=0;u<e.length;u+=1)e[u].d();s=!1,He(r)}}}function Bu(i,t,e){var p;let n,{five:o}=t,{roomLabels:s}=t,r,a,l=(p=o.model.shownFloor)!=null?p:null;function c(g){if(!(l===null||g.floorIndex===l))return!1;const w=new V.Raycaster,x=o.camera.position.clone(),k=new V.Vector3(g.position.x,g.position.y,g.position.z),C=k.distanceTo(x);w.set(x.clone(),k.clone().sub(x).normalize());const[D]=o.model.intersectRaycaster(w);return!(D&&D.distance+1<C)}function u(g,b){const x=new V.Vector3(g.position.x,g.position.y,g.position.z).clone().project(o.camera),k=Math.ceil((x.x+1)/2*b.x),C=Math.ceil((-x.y+1)/2*b.y);return`translate(${k}px, ${C}px)`}function d(g){const{rendererSize:b,shownFloor:w}=g,x=new Map;function k(D){const E=x.get(D.id);if(E)return E;const{x:O,y:G,z:X}=D.position,H=new V.Vector3(O,G,X).clone().distanceTo(o.camera.position);return x.set(D.id,H),H}return s.map(D=>{const E=c(D),O=E?u(D,b):D.transform,G=k(D),H=s.filter(B=>B.visible&&k(B)<G).length*10;return fe(Q({},D),{visible:E,transform:O,zIndex:H})})}function h(){e(0,s=d({rendererSize:n,shownFloor:l}))}function m(g){e(4,l=g)}o.on("cameraUpdate",h),o.on("modelShownFloorChange",m),Ba(()=>{e(0,s=d({rendererSize:n,shownFloor:l}))}),Et(()=>{o.off("cameraUpdate",h),o.off("modelShownFloorChange",m)});const A=g=>{e(2,r=g.detail)},v=g=>{e(3,a=g.detail)};return i.$$set=g=>{"five"in g&&e(1,o=g.five),"roomLabels"in g&&e(0,s=g.roomLabels)},i.$$.update=()=>{i.$$.dirty&12&&e(5,n={x:r,y:a}),i.$$.dirty&48&&e(0,s=d({rendererSize:n,shownFloor:l}))},[s,o,r,a,l,n,A,v]}class ju extends oe{constructor(t){super(),ie(this,t,Bu,zu,ne,{five:1,roomLabels:0},Tu)}}function Vu(i){return i.model_room_labels.map(({id:t,pano_index:e,floor_index:n,name:o,position:s,longitude:r})=>({id:t,name:o,position:s,longitude:r,panoIndex:e,floorIndex:n,zIndex:0,visible:!1,transform:""}))}class Ou{constructor(t){f(this,"five");f(this,"enabled",!0);f(this,"fiveModeEnabled");f(this,"app");f(this,"wrapper");f(this,"roomLabels",[]);f(this,"container",document.createElement("div"));f(this,"onFiveModeChange",t=>{if(!this.checkFiveMode(t)){this.fiveModeEnabled=!1,this.render();return}this.five.once("initAnimationEnded",()=>{this.fiveModeEnabled=this.checkFiveMode(this.five.getCurrentState().mode),this.render()})});this.five=t,this.fiveModeEnabled=this.checkFiveMode(t.getCurrentState().mode),this.container.classList.add("model-room-label-plugin-container"),this.container.style.width="100%",this.container.style.height="100%",this.container.style.position="absolute",this.container.style.pointerEvents="none",this.container.style.left="0",this.container.style.top="0",this.container.style.zIndex="5",this.five.once("dispose",()=>this.dispose()),this.five.on("modeChange",this.onFiveModeChange),this.render()}dispose(){this.five.off("modeChange",this.onFiveModeChange),this.container.remove()}load(t){this.roomLabels=Vu(t),this.render()}appendTo(t){return this.wrapper=t,t.appendChild(this.container),this.render(),this}disable(){return this.enabled=!1,this.render(),this}enable(){return this.enabled=!0,this.render(),this}checkFiveMode(t){return t==="Floorplan"||t==="Mapview"}render(){var t;if(!!this.wrapper){if(!this.enabled||!this.fiveModeEnabled){(t=this.app)==null||t.$destroy(),this.app=void 0;return}this.app?this.app.$set({five:this.five,roomLabels:this.roomLabels}):this.app=new ju({target:this.container,props:{five:this.five,roomLabels:this.roomLabels}})}}}const Ru=i=>new Ou(i),Qu={name:"ModelRoomLabelPlugin",version:0};var pt=(i=>(i[i.FLOOR=1]="FLOOR",i[i.CEILING=2]="CEILING",i[i.BOUNDING_CENTER=3]="BOUNDING_CENTER",i))(pt||{});function ai(i){return W(this,null,function*(){try{return[null,yield i]}catch(t){return t instanceof Error?[t,null]:[new Error(""),null]}})}function li(i){return Object.prototype.toString.call(i)==="[object Object]"}function gi(i,t){return i===t?!0:typeof i!=typeof t?!1:!!(Number.isNaN(i)&&Number.isNaN(t))}function Fu(i,t){const e=Object.getOwnPropertyNames(i),n=Object.getOwnPropertyNames(t);if(e.length!==n.length)return!1;for(let o=0,s=e.length;o<s;o++){const r=e[o];if(!gi(i[r],t[r]))return!1}return!0}function Hu(i,t){if(i.length!==t.length)return!1;for(let e=0,n=i.length;e<n;e++)if(!gi(i[e],t[e]))return!1;return!0}function _u(i,t){return gi(i,t)?!0:li(i)&&li(t)?Fu(i,t):Array.isArray(i)&&Array.isArray(t)?Hu(i,t):!1}function fo(i,t){return gi(i,t)?!0:li(i)&&li(t)?Wu(i,t):Array.isArray(i)&&Array.isArray(t)?Gu(i,t):!1}function Gu(i,t){if(i.length!==t.length)return!1;for(let e=0,n=i.length;e<n;e++)if(!fo(i[e],t[e]))return!1;return!0}function Wu(i,t){const e=Object.getOwnPropertyNames(i),n=Object.getOwnPropertyNames(t);if(e.length!==n.length)return!1;for(let o=0,s=e.length;o<s;o++){const r=e[o];if(!fo(i[r],t[r]))return!1}return!0}function et(i,t,e={deep:!1}){return e.deep?fo(i,t):_u(i,t)}function Yt(i){return i<.5?4*i*i*i:.5*Math.pow(2*i-2,3)+1}function Xa(i){const t=i-1;return t*t*t+1}function Mt(i,{delay:t=0,duration:e=400,easing:n=At}={}){const o=+getComputedStyle(i).opacity;return{delay:t,duration:e,easing:n,css:s=>`opacity: ${s*o}`}}function Wo(i,{delay:t=0,duration:e=400,easing:n=Xa,x:o=0,y:s=0,opacity:r=0}={}){const a=getComputedStyle(i),l=+a.opacity,c=a.transform==="none"?"":a.transform,u=l*(1-r);return{delay:t,duration:e,easing:n,css:(d,h)=>`
104
+ }`,d=`__svelte_${eu(u)}_${a}`,h=co(i),{stylesheet:m,rules:A}=ti.get(h)||tu(h,i);A[d]||(A[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length));const v=i.style.animation||"";return i.style.animation=`${v?`${v}, `:""}${d} ${n}ms linear ${o}ms 1 both`,ni+=1,d}function Yi(i,t){const e=(i.style.animation||"").split(", "),n=e.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),o=e.length-n.length;o&&(i.style.animation=n.join(", "),ni-=o,ni||nu())}function nu(){lo(()=>{ni||(ti.forEach(i=>{const{ownerNode:t}=i.stylesheet;t&&S(t)}),ti.clear())})}let wn;function rt(i){wn=i}function Ct(){if(!wn)throw new Error("Function called outside component initialization");return wn}function za(i){Ct().$$.before_update.push(i)}function Ue(i){Ct().$$.on_mount.push(i)}function Ba(i){Ct().$$.after_update.push(i)}function Et(i){Ct().$$.on_destroy.push(i)}function mi(){const i=Ct();return(t,e,{cancelable:n=!1}={})=>{const o=i.$$.callbacks[t];if(o){const s=Ma(t,e,{cancelable:n});return o.slice().forEach(r=>{r.call(i,s)}),!s.defaultPrevented}return!0}}function Ui(i,t){return Ct().$$.context.set(i,t),t}function St(i){return Ct().$$.context.get(i)}function sn(i,t){const e=i.$$.callbacks[t.type];e&&e.slice().forEach(n=>n.call(this,t))}const mn=[],Ve=[],Un=[],qi=[],ja=Promise.resolve();let Ji=!1;function Va(){Ji||(Ji=!0,ja.then(uo))}function Fo(){return Va(),ja}function Oe(i){Un.push(i)}function iu(i){qi.push(i)}const Mi=new Set;let Vn=0;function uo(){const i=wn;do{for(;Vn<mn.length;){const t=mn[Vn];Vn++,rt(t),ou(t.$$)}for(rt(null),mn.length=0,Vn=0;Ve.length;)Ve.pop()();for(let t=0;t<Un.length;t+=1){const e=Un[t];Mi.has(e)||(Mi.add(e),e())}Un.length=0}while(mn.length);for(;qi.length;)qi.pop()();Ji=!1,Mi.clear(),rt(i)}function ou(i){if(i.fragment!==null){i.update(),He(i.before_update);const t=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,t),i.after_update.forEach(Oe)}}let cn;function Oa(){return cn||(cn=Promise.resolve(),cn.then(()=>{cn=null})),cn}function ii(i,t,e){i.dispatchEvent(Ma(`${t?"intro":"outro"}${e}`))}const qn=new Set;let mt;function se(){mt={r:0,c:[],p:mt}}function re(){mt.r||He(mt.c),mt=mt.p}function I(i,t){i&&i.i&&(qn.delete(i),i.i(t))}function L(i,t,e,n){if(i&&i.o){if(qn.has(i))return;qn.add(i),mt.c.push(()=>{qn.delete(i),n&&(e&&i.d(1),n())}),i.o(t)}else n&&n()}const Ra={duration:0};function Tt(i,t,e){let n=t(i,e),o=!1,s,r,a=0;function l(){s&&Yi(i,s)}function c(){const{delay:d=0,duration:h=300,easing:m=At,tick:A=U,css:v}=n||Ra;v&&(s=Ta(i,0,1,h,d,m,v,a++)),A(0,1);const p=ka()+d,g=p+h;r&&r.abort(),o=!0,Oe(()=>ii(i,!0,"start")),r=Da(b=>{if(o){if(b>=g)return A(1,0),ii(i,!0,"end"),l(),o=!1;if(b>=p){const w=m((b-p)/h);A(w,1-w)}}return o})}let u=!1;return{start(){u||(u=!0,Yi(i),$t(n)?(n=n(),Oa().then(c)):c())},invalidate(){u=!1},end(){o&&(l(),o=!1)}}}function rn(i,t,e){let n=t(i,e),o=!0,s;const r=mt;r.r+=1;function a(){const{delay:l=0,duration:c=300,easing:u=At,tick:d=U,css:h}=n||Ra;h&&(s=Ta(i,1,0,c,l,u,h));const m=ka()+l,A=m+c;Oe(()=>ii(i,!1,"start")),Da(v=>{if(o){if(v>=A)return d(0,1),ii(i,!1,"end"),--r.r||He(r.c),!1;if(v>=m){const p=u((v-m)/c);d(1-p,p)}}return o})}return $t(n)?Oa().then(()=>{n=n(),a()}):a(),{end(l){l&&n.tick&&n.tick(1,0),o&&(s&&Yi(i,s),o=!1)}}}function oi(i,t){const e=t.token={};function n(o,s,r,a){if(t.token!==e)return;t.resolved=a;let l=t.ctx;r!==void 0&&(l=l.slice(),l[r]=a);const c=o&&(t.current=o)(l);let u=!1;t.block&&(t.blocks?t.blocks.forEach((d,h)=>{h!==s&&d&&(se(),L(d,1,1,()=>{t.blocks[h]===d&&(t.blocks[h]=null)}),re())}):t.block.d(1),c.c(),I(c,1),c.m(t.mount(),t.anchor),u=!0),t.block=c,t.blocks&&(t.blocks[s]=c),u&&uo()}if(qc(i)){const o=Ct();if(i.then(s=>{rt(o),n(t.then,1,t.value,s),rt(null)},s=>{if(rt(o),n(t.catch,2,t.error,s),rt(null),!t.hasCatch)throw s}),t.current!==t.pending)return n(t.pending,0),!0}else{if(t.current!==t.then)return n(t.then,1,t.value,i),!0;t.resolved=i}}function Qa(i,t,e){const n=t.slice(),{resolved:o}=i;i.current===i.then&&(n[i.value]=o),i.current===i.catch&&(n[i.error]=o),i.block.p(n,e)}const su=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function ho(i,t){i.d(1),t.delete(i.key)}function Pt(i,t){L(i,1,1,()=>{t.delete(i.key)})}function qe(i,t,e,n,o,s,r,a,l,c,u,d){let h=i.length,m=s.length,A=h;const v={};for(;A--;)v[i[A].key]=A;const p=[],g=new Map,b=new Map;for(A=m;A--;){const C=d(o,s,A),D=e(C);let E=r.get(D);E?n&&E.p(C,t):(E=c(D,C),E.c()),g.set(D,p[A]=E),D in v&&b.set(D,Math.abs(A-v[D]))}const w=new Set,P=new Set;function x(C){I(C,1),C.m(a,u),r.set(C.key,C),u=C.first,m--}for(;h&&m;){const C=p[m-1],D=i[h-1],E=C.key,O=D.key;C===D?(u=C.first,h--,m--):g.has(O)?!r.has(E)||w.has(E)?x(C):P.has(O)?h--:b.get(E)>b.get(O)?(P.add(E),x(C)):(w.add(O),h--):(l(D,r),h--)}for(;h--;){const C=i[h];g.has(C.key)||l(C,r)}for(;m;)x(p[m-1]);return p}function Re(i,t){const e={},n={},o={$$scope:1};let s=i.length;for(;s--;){const r=i[s],a=t[s];if(a){for(const l in r)l in a||(n[l]=1);for(const l in a)o[l]||(e[l]=a[l],o[l]=1);i[s]=a}else for(const l in r)o[l]=1}for(const r in n)r in e||(e[r]=void 0);return e}function Fa(i){return typeof i=="object"&&i!==null?i:{}}function ru(i,t,e){const n=i.$$.props[t];n!==void 0&&(i.$$.bound[n]=e,e(i.$$.ctx[n]))}function K(i){i&&i.c()}function J(i,t,e,n){const{fragment:o,after_update:s}=i.$$;o&&o.m(t,e),n||Oe(()=>{const r=i.$$.on_mount.map(Ea).filter($t);i.$$.on_destroy?i.$$.on_destroy.push(...r):He(r),i.$$.on_mount=[]}),s.forEach(Oe)}function Z(i,t){const e=i.$$;e.fragment!==null&&(He(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function au(i,t){i.$$.dirty[0]===-1&&(mn.push(i),Va(),i.$$.dirty.fill(0)),i.$$.dirty[t/31|0]|=1<<t%31}function ie(i,t,e,n,o,s,r,a=[-1]){const l=wn;rt(i);const c=i.$$={fragment:null,ctx:[],props:s,update:U,not_equal:o,bound:Qo(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Qo(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};r&&r(c.root);let u=!1;if(c.ctx=e?e(i,t.props||{},(d,h,...m)=>{const A=m.length?m[0]:h;return c.ctx&&o(c.ctx[d],c.ctx[d]=A)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](A),u&&au(i,d)),h}):[],c.update(),u=!0,He(c.before_update),c.fragment=n?n(c.ctx):!1,t.target){if(t.hydrate){const d=Kc(t.target);c.fragment&&c.fragment.l(d),d.forEach(S)}else c.fragment&&c.fragment.c();t.intro&&I(i.$$.fragment),J(i,t.target,t.anchor,t.customElement),uo()}rt(l)}class oe{$destroy(){Z(this,1),this.$destroy=U}$on(t,e){if(!$t(e))return U;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const o=n.indexOf(e);o!==-1&&n.splice(o,1)}}$set(t){this.$$set&&!Jc(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const lu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAA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11okBF6m3yjdfze9eM7sbPQIC8sg8detlPdP7XCy8ASOh6IC534Qf126Au6Aq7S+0P9jOJ/f/jhh7dfeeWVN1C4c+cOv5zoxsQgKD7O/OgIT3OLgrrkLAMR9EuQYsXLlWO5ePNMJ25s7Fhv8EIraduDDOJI7kfh6FT98M6Ka/GrLbE0/131X79+/YVXX331+tNPP32b3nt1tGhXP/rooz/ruf9N/YzWQ/2e2c8Cfg7Wz8RC9WkeE8pj/rQltMRH/jXdsdreAEp04mg8u22zYhvZ9IPueLE4puMLfnjRKzKCbD4ZHv9oK/mwaPOlm/ukkbFwjKLj428j8t8DEEvN9xJoJuhsDI9lxOeHXr3zE8cGm7fpQMfNgR54ntXmYXzx1ltvbX64VUl4SH//66+/fl2/5ndLC/BHMV/Q6ypN06Bm3lgFaKMcEbj+bDHN88/curvewF4hjhNWasrwhy/0waIPjylyYjp49Ag++NhFhi7F+jeEFcc/H6w5TYbnxo2OoufXmNPcX+XWv4QLMo+taJkfeY4gvtRs/n8vzY/cssxB5CyKxi96/aB+/Y9+KfE/X3vttS8lI7e9/wfu514OAjYP0QAAAABJRU5ErkJggg==";function cu(i){le(i,"svelte-1d7uzh5",".room-label-item.svelte-1d7uzh5{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-1d7uzh5{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1d7uzh5{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1d7uzh5{font-size:0.625rem}")}function uu(i){let t,e,n=i[0].name+"",o,s,r,a,l;return{c(){t=z("div"),e=z("span"),o=ke(n),s=ee(),r=z("div"),y(e,"class","room-label-item__text svelte-1d7uzh5"),T(e,"background-image","url("+lu+")"),q(e,"wide",i[0].name.length>3),y(r,"class","room-label-item__bar svelte-1d7uzh5"),y(t,"class","room-label-item svelte-1d7uzh5"),T(t,"z-index",i[0].zIndex),T(t,"transform",i[0].transform),T(t,"opacity",i[0].visible?1:0)},m(c,u){M(c,t,u),j(t,e),j(e,o),j(t,s),j(t,r),a||(l=ge(e,"click",i[1]),a=!0)},p(c,[u]){u&1&&n!==(n=c[0].name+"")&&Se(o,n),u&1&&q(e,"wide",c[0].name.length>3),u&1&&T(t,"z-index",c[0].zIndex),u&1&&T(t,"transform",c[0].transform),u&1&&T(t,"opacity",c[0].visible?1:0)},i:U,o:U,d(c){c&&S(t),a=!1,l()}}}function du(i,t,e){let{five:n}=t,{roomLabel:o}=t;function s(){n.setState({panoIndex:o.panoIndex,mode:"Panorama",longitude:o.longitude})}return i.$$set=r=>{"five"in r&&e(2,n=r.five),"roomLabel"in r&&e(0,o=r.roomLabel)},[o,s,n]}class hu extends oe{constructor(t){super(),ie(this,t,du,uu,ne,{five:2,roomLabel:0},cu)}}var Ha=function(){if(typeof Map!="undefined")return Map;function i(t,e){var n=-1;return t.some(function(o,s){return o[0]===e?(n=s,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var n=i(this.__entries__,e),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(e,n){var o=i(this.__entries__,e);~o?this.__entries__[o][1]=n:this.__entries__.push([e,n])},t.prototype.delete=function(e){var n=this.__entries__,o=i(n,e);~o&&n.splice(o,1)},t.prototype.has=function(e){return!!~i(this.__entries__,e)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,n){n===void 0&&(n=null);for(var o=0,s=this.__entries__;o<s.length;o++){var r=s[o];e.call(n,r[1],r[0])}},t}()}(),Zi=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,si=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),fu=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(si):function(i){return setTimeout(function(){return i(Date.now())},1e3/60)}}(),mu=2;function pu(i,t){var e=!1,n=!1,o=0;function s(){e&&(e=!1,i()),n&&a()}function r(){fu(s)}function a(){var l=Date.now();if(e){if(l-o<mu)return;n=!0}else e=!0,n=!1,setTimeout(r,t);o=l}return a}var gu=20,Au=["top","right","bottom","left","width","height","size","weight"],vu=typeof MutationObserver!="undefined",bu=function(){function i(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=pu(this.refresh.bind(this),gu)}return i.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},i.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},i.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},i.prototype.updateObservers_=function(){var t=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return t.forEach(function(e){return e.broadcastActive()}),t.length>0},i.prototype.connect_=function(){!Zi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vu?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},i.prototype.disconnect_=function(){!Zi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},i.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=e===void 0?"":e,o=Au.some(function(s){return!!~n.indexOf(s)});o&&this.refresh()},i.getInstance=function(){return this.instance_||(this.instance_=new i),this.instance_},i.instance_=null,i}(),_a=function(i,t){for(var e=0,n=Object.keys(t);e<n.length;e++){var o=n[e];Object.defineProperty(i,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return i},Xt=function(i){var t=i&&i.ownerDocument&&i.ownerDocument.defaultView;return t||si},Ga=pi(0,0,0,0);function ri(i){return parseFloat(i)||0}function Ho(i){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t.reduce(function(n,o){var s=i["border-"+o+"-width"];return n+ri(s)},0)}function yu(i){for(var t=["top","right","bottom","left"],e={},n=0,o=t;n<o.length;n++){var s=o[n],r=i["padding-"+s];e[s]=ri(r)}return e}function wu(i){var t=i.getBBox();return pi(0,0,t.width,t.height)}function Cu(i){var t=i.clientWidth,e=i.clientHeight;if(!t&&!e)return Ga;var n=Xt(i).getComputedStyle(i),o=yu(n),s=o.left+o.right,r=o.top+o.bottom,a=ri(n.width),l=ri(n.height);if(n.boxSizing==="border-box"&&(Math.round(a+s)!==t&&(a-=Ho(n,"left","right")+s),Math.round(l+r)!==e&&(l-=Ho(n,"top","bottom")+r)),!Pu(i)){var c=Math.round(a+s)-t,u=Math.round(l+r)-e;Math.abs(c)!==1&&(a-=c),Math.abs(u)!==1&&(l-=u)}return pi(o.left,o.top,a,l)}var Eu=function(){return typeof SVGGraphicsElement!="undefined"?function(i){return i instanceof Xt(i).SVGGraphicsElement}:function(i){return i instanceof Xt(i).SVGElement&&typeof i.getBBox=="function"}}();function Pu(i){return i===Xt(i).document.documentElement}function Iu(i){return Zi?Eu(i)?wu(i):Cu(i):Ga}function ku(i){var t=i.x,e=i.y,n=i.width,o=i.height,s=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,r=Object.create(s.prototype);return _a(r,{x:t,y:e,width:n,height:o,top:e,right:t+n,bottom:o+e,left:t}),r}function pi(i,t,e,n){return{x:i,y:t,width:e,height:n}}var xu=function(){function i(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=pi(0,0,0,0),this.target=t}return i.prototype.isActive=function(){var t=Iu(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},i.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},i}(),Du=function(){function i(t,e){var n=ku(e);_a(this,{target:t,contentRect:n})}return i}(),Lu=function(){function i(t,e,n){if(this.activeObservations_=[],this.observations_=new Ha,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return i.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof Xt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new xu(t)),this.controller_.addObserver(this),this.controller_.refresh())}},i.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof Xt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;!e.has(t)||(e.delete(t),e.size||this.controller_.removeObserver(this))}},i.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},i.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},i.prototype.broadcastActive=function(){if(!!this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(n){return new Du(n.target,n.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},i.prototype.clearActive=function(){this.activeObservations_.splice(0)},i.prototype.hasActive=function(){return this.activeObservations_.length>0},i}(),Wa=typeof WeakMap!="undefined"?new WeakMap:new Ha,Na=function(){function i(t){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=bu.getInstance(),n=new Lu(t,e,this);Wa.set(this,n)}return i}();["observe","unobserve","disconnect"].forEach(function(i){Na.prototype[i]=function(){var t;return(t=Wa.get(this))[i].apply(t,arguments)}});var Su=function(){return typeof si.ResizeObserver!="undefined"?si.ResizeObserver:Na}();function an(i){new Su((e,n)=>{var o,s,r,a,l,c;for(const u of e){const{borderBoxSize:d,contentRect:h}=u,m=(r=(s=(o=d==null?void 0:d[0])==null?void 0:o.inlineSize)!=null?s:h.width)!=null?r:i.clientWidth,A=(c=(l=(a=d==null?void 0:d[0])==null?void 0:a.blockSize)!=null?l:h.height)!=null?c:i.clientHeight;i.dispatchEvent(new CustomEvent("clientWidth",{detail:m})),i.dispatchEvent(new CustomEvent("clientHeight",{detail:A}))}}).observe(i)}const{Map:Mu}=su;function Tu(i){le(i,"svelte-9eg4zi",".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}")}function _o(i,t,e){const n=i.slice();return n[13]=t[e],n}function Go(i,t){let e,n,o;return n=new hu({props:{roomLabel:t[13],five:t[1]}}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(s,r){M(s,e,r),J(n,s,r),o=!0},p(s,r){t=s;const a={};r&1&&(a.roomLabel=t[13]),r&2&&(a.five=t[1]),n.$set(a)},i(s){o||(I(n.$$.fragment,s),o=!0)},o(s){L(n.$$.fragment,s),o=!1},d(s){s&&S(e),Z(n,s)}}}function zu(i){let t,e=[],n=new Mu,o,s,r,a=i[0];const l=c=>c[13].id;for(let c=0;c<a.length;c+=1){let u=_o(i,a,c),d=l(u);n.set(d,e[c]=Go(d,u))}return{c(){t=z("div");for(let c=0;c<e.length;c+=1)e[c].c();y(t,"class","room-labels-container svelte-9eg4zi")},m(c,u){M(c,t,u);for(let d=0;d<e.length;d+=1)e[d].m(t,null);o=!0,s||(r=[at(an.call(null,t)),ge(t,"clientWidth",i[6]),ge(t,"clientHeight",i[7])],s=!0)},p(c,[u]){u&3&&(a=c[0],se(),e=qe(e,u,l,1,c,a,n,t,Pt,Go,null,_o),re())},i(c){if(!o){for(let u=0;u<a.length;u+=1)I(e[u]);o=!0}},o(c){for(let u=0;u<e.length;u+=1)L(e[u]);o=!1},d(c){c&&S(t);for(let u=0;u<e.length;u+=1)e[u].d();s=!1,He(r)}}}function Bu(i,t,e){var p;let n,{five:o}=t,{roomLabels:s}=t,r,a,l=(p=o.model.shownFloor)!=null?p:null;function c(g){if(!(l===null||g.floorIndex===l))return!1;const w=new V.Raycaster,P=o.camera.position.clone(),x=new V.Vector3(g.position.x,g.position.y,g.position.z),C=x.distanceTo(P);w.set(P.clone(),x.clone().sub(P).normalize());const[D]=o.model.intersectRaycaster(w);return!(D&&D.distance+1<C)}function u(g,b){const P=new V.Vector3(g.position.x,g.position.y,g.position.z).clone().project(o.camera),x=Math.ceil((P.x+1)/2*b.x),C=Math.ceil((-P.y+1)/2*b.y);return`translate(${x}px, ${C}px)`}function d(g){const{rendererSize:b,shownFloor:w}=g,P=new Map;function x(D){const E=P.get(D.id);if(E)return E;const{x:O,y:G,z:X}=D.position,H=new V.Vector3(O,G,X).clone().distanceTo(o.camera.position);return P.set(D.id,H),H}return s.map(D=>{const E=c(D),O=E?u(D,b):D.transform,G=x(D),H=s.filter(B=>B.visible&&x(B)<G).length*10;return fe(Q({},D),{visible:E,transform:O,zIndex:H})})}function h(){e(0,s=d({rendererSize:n,shownFloor:l}))}function m(g){e(4,l=g)}o.on("cameraUpdate",h),o.on("modelShownFloorChange",m),Ba(()=>{e(0,s=d({rendererSize:n,shownFloor:l}))}),Et(()=>{o.off("cameraUpdate",h),o.off("modelShownFloorChange",m)});const A=g=>{e(2,r=g.detail)},v=g=>{e(3,a=g.detail)};return i.$$set=g=>{"five"in g&&e(1,o=g.five),"roomLabels"in g&&e(0,s=g.roomLabels)},i.$$.update=()=>{i.$$.dirty&12&&e(5,n={x:r,y:a}),i.$$.dirty&48&&e(0,s=d({rendererSize:n,shownFloor:l}))},[s,o,r,a,l,n,A,v]}class ju extends oe{constructor(t){super(),ie(this,t,Bu,zu,ne,{five:1,roomLabels:0},Tu)}}function Vu(i){return i.model_room_labels.map(({id:t,pano_index:e,floor_index:n,name:o,position:s,longitude:r})=>({id:t,name:o,position:s,longitude:r,panoIndex:e,floorIndex:n,zIndex:0,visible:!1,transform:""}))}class Ou{constructor(t){f(this,"five");f(this,"enabled",!0);f(this,"fiveModeEnabled");f(this,"app");f(this,"wrapper");f(this,"roomLabels",[]);f(this,"container",document.createElement("div"));f(this,"onFiveModeChange",t=>{if(!this.checkFiveMode(t)){this.fiveModeEnabled=!1,this.render();return}this.five.once("initAnimationEnded",()=>{this.fiveModeEnabled=this.checkFiveMode(this.five.getCurrentState().mode),this.render()})});this.five=t,this.fiveModeEnabled=this.checkFiveMode(t.getCurrentState().mode),this.container.classList.add("model-room-label-plugin-container"),this.container.style.width="100%",this.container.style.height="100%",this.container.style.position="absolute",this.container.style.pointerEvents="none",this.container.style.left="0",this.container.style.top="0",this.container.style.zIndex="5",this.five.once("dispose",()=>this.dispose()),this.five.on("modeChange",this.onFiveModeChange),this.render()}dispose(){this.five.off("modeChange",this.onFiveModeChange),this.container.remove()}load(t){this.roomLabels=Vu(t),this.render()}appendTo(t){return this.wrapper=t,t.appendChild(this.container),this.render(),this}disable(){return this.enabled=!1,this.render(),this}enable(){return this.enabled=!0,this.render(),this}checkFiveMode(t){return t==="Floorplan"||t==="Mapview"}render(){var t;if(!!this.wrapper){if(!this.enabled||!this.fiveModeEnabled){(t=this.app)==null||t.$destroy(),this.app=void 0;return}this.app?this.app.$set({five:this.five,roomLabels:this.roomLabels}):this.app=new ju({target:this.container,props:{five:this.five,roomLabels:this.roomLabels}})}}}const Ru=i=>new Ou(i),Qu={name:"ModelRoomLabelPlugin",version:0};var pt=(i=>(i[i.FLOOR=1]="FLOOR",i[i.CEILING=2]="CEILING",i[i.BOUNDING_CENTER=3]="BOUNDING_CENTER",i))(pt||{});function ai(i){return W(this,null,function*(){try{return[null,yield i]}catch(t){return t instanceof Error?[t,null]:[new Error(""),null]}})}function li(i){return Object.prototype.toString.call(i)==="[object Object]"}function gi(i,t){return i===t?!0:typeof i!=typeof t?!1:!!(Number.isNaN(i)&&Number.isNaN(t))}function Fu(i,t){const e=Object.getOwnPropertyNames(i),n=Object.getOwnPropertyNames(t);if(e.length!==n.length)return!1;for(let o=0,s=e.length;o<s;o++){const r=e[o];if(!gi(i[r],t[r]))return!1}return!0}function Hu(i,t){if(i.length!==t.length)return!1;for(let e=0,n=i.length;e<n;e++)if(!gi(i[e],t[e]))return!1;return!0}function _u(i,t){return gi(i,t)?!0:li(i)&&li(t)?Fu(i,t):Array.isArray(i)&&Array.isArray(t)?Hu(i,t):!1}function fo(i,t){return gi(i,t)?!0:li(i)&&li(t)?Wu(i,t):Array.isArray(i)&&Array.isArray(t)?Gu(i,t):!1}function Gu(i,t){if(i.length!==t.length)return!1;for(let e=0,n=i.length;e<n;e++)if(!fo(i[e],t[e]))return!1;return!0}function Wu(i,t){const e=Object.getOwnPropertyNames(i),n=Object.getOwnPropertyNames(t);if(e.length!==n.length)return!1;for(let o=0,s=e.length;o<s;o++){const r=e[o];if(!fo(i[r],t[r]))return!1}return!0}function et(i,t,e={deep:!1}){return e.deep?fo(i,t):_u(i,t)}function Yt(i){return i<.5?4*i*i*i:.5*Math.pow(2*i-2,3)+1}function Xa(i){const t=i-1;return t*t*t+1}function Mt(i,{delay:t=0,duration:e=400,easing:n=At}={}){const o=+getComputedStyle(i).opacity;return{delay:t,duration:e,easing:n,css:s=>`opacity: ${s*o}`}}function Wo(i,{delay:t=0,duration:e=400,easing:n=Xa,x:o=0,y:s=0,opacity:r=0}={}){const a=getComputedStyle(i),l=+a.opacity,c=a.transform==="none"?"":a.transform,u=l*(1-r);return{delay:t,duration:e,easing:n,css:(d,h)=>`
105
105
  transform: ${c} translate(${(1-d)*o}px, ${(1-d)*s}px);
106
106
  opacity: ${l-u*h}`}}function ci(i,{delay:t=0,speed:e,duration:n,easing:o=Yt}={}){let s=i.getTotalLength();const r=getComputedStyle(i);return r.strokeLinecap!=="butt"&&(s+=parseInt(r.strokeWidth)),n===void 0?e===void 0?n=800:n=s/e:typeof n=="function"&&(n=n(s)),{delay:t,duration:n,easing:o,css:(a,l)=>`stroke-dasharray: ${a*s} ${l*s}`}}const vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAMAAAANf8AYAAAC2VBMVEUAAACCnP+Dn/+Enf+HqP+Gp/+Fof+Gpf+IrP+Lsf+Dof+Cmv+Lsv+Mtf+Eo/+Bmf+JrP+Hqf+Env+Krv+Fo/+Pu/+Ms/+Qvv+Hqf+RwP+KsP+Fpf+Mtv+Gov+Bnf+Qv/+Nt/+Krv+Ho/+Rwf+Ouv+Emv+Amv+SxP+Sw/+NuP+Mtf/G0f6huP+Ot/+JrP+Jqv+Dnv+crf6Uqv////+QvP+PvP+Ms//J0/3p9/+Ux/+Ouf+Krf+Iqf+Fpv+/zf6WsP+MpP+RqP+Uyf+Jy//V3P6Yuf+Qqf+Rqv/5/f+Sxf+Jy/////+Lx/+Ouf+Nw/+Owv+PwP+Jr/+Jq/+VvP+Vuv/c4v+Fnf+btP+InP+Blf/3+P6Txf+Jzf+Jyf+NxP+Qwf/t8/6Svv+Tvf/O1f7Czv3T2f6cu/+qvP7a4fvo7v77/v/o9//p9//0+v////+Vy//w9//k8/+B1f/v9/+D0/+UyP/u9v+D0v/i8f+F0v/g7/+G0P+KzP+Hz/////+Lx//s8/+Puf/h7P+Mxv/w9f7q8v/q8f2RwP/r8f6JrP/t8v6RvP/l6f7////j6P6VvP/f5/7q8P7a4P/U2f6au/+ZuP+ewf+auP+iu//n6f2Fn//j6P/h4fn9/v/4/P/3/P/o9v/l9P+F1P+B1f/i8v+UyP+J0f+E0f/h7//r8v6Izf/g7v/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CubfmpqkjMMNo6KOJ5uqe+f58C9GoaD29XyVSYS1h4DftKeWDDN4AbACZMZAsExEKghWUNKXWhlPfA2P1qjmUT556a9jmQotWi/VOFael1lR7ep4JfRZy8nhpwtG4wMMB/gdi9/nNH+vhezsmJ+fG5quX12fomHl6J+KFy88uA2RJyJPE4wkL4wIPBfgXxO5HxGN7zNw5W2bNnLZhio+OmaR3LD6tplrLfKeYAwX7/O6Dje/2dpniwuKiwoMHH+bn7723Z8/uHTu2fpg9+3p29sYrWVnr1l1cO2HCUFCGT+tshUcWLPj6IDf37ued27Z9unXz2owZU6dOnnxp4sQ1q1ePH79KN6vbQWc1SrfrTit6lO5NO6/F8yZNmofBfgNTwRQLsPLsHQAAAABJRU5ErkJggg==";function Ya(i){return i*180/Math.PI}function Nu(i){le(i,"svelte-17cl35n",".floorplan__camera-position.svelte-17cl35n{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-17cl35n{position:absolute;background-repeat:no-repeat;background-size:100%}")}function Xu(i){let t,e;return{c(){t=z("div"),e=z("div"),y(e,"class","floorplan__camera-rotate svelte-17cl35n"),T(e,"background-image",`url(${i[0]||vt})`),T(e,"width",i[4]),T(e,"height",i[4]),T(e,"left","-"+i[4]),T(e,"top","-"+i[4]),T(e,"transform",`rotate(${i[3]}deg)`),T(e,"transform-origin",`${i[4]} ${i[4]}`),y(t,"class","floorplan__camera-position svelte-17cl35n"),T(t,"left",i[1]),T(t,"top",i[2])},m(n,o){M(n,t,o),j(t,e)},p(n,[o]){o&1&&T(e,"background-image",`url(${n[0]||vt})`)},i:U,o:U,d(n){n&&S(t)}}}function Yu(i,t,e){let{panoIndex:n}=t,{floorplanData:o}=t,{lastPanoramaLongitude:s}=t,{cameraImageUrl:r}=t;const{observers:a}=o,l=a[n],c=l.positionInImage.x,u=l.positionInImage.y,d=c*100+"%",h=u*100+"%",m=-Ya(s)+45,A=document.body.clientWidth,v=document.body.clientHeight,g=`${(A<500||v<500?17:37)/16}rem`;return i.$$set=b=>{"panoIndex"in b&&e(5,n=b.panoIndex),"floorplanData"in b&&e(6,o=b.floorplanData),"lastPanoramaLongitude"in b&&e(7,s=b.lastPanoramaLongitude),"cameraImageUrl"in b&&e(0,r=b.cameraImageUrl)},[r,d,h,m,g,n,o,s]}class Uu extends oe{constructor(t){super(),ie(this,t,Yu,Xu,ne,{panoIndex:5,floorplanData:6,lastPanoramaLongitude:7,cameraImageUrl:0},Nu)}}const qu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArUAAAB7CAMAAABdA4ieAAAC91BMVEUAAACOpP/H0P+yxP/a4/+asv/W3/+/z/+cs//S3f+mu//Q2//5+v/H1P/d5f/l6//y9f++zf/i6f+ww/+ovP/7/P/u8v/N2f+Mp//q7/+4yf+uwf+Wr/+7y/+1xv+Ho//x9P+9zP+2x/+swP+gt/+Oqf/Y4v/r8P/l7P/b4//F0/+juf+Zsv+XsP+Trf/p7v97mv9wj/+kuv+ftf/x9P92lf/3+f/I1f+5yv+Eof98m//8/f/4+f90lf+9zf/j6f/T3f/L1/+Bnv/6+/+SrP/m7P/f5v/O2v/L2P/E0v/Az//+///s8P/e5v+rv/+pvv+Anv+qvv+Pqv+Kpv+CoP93l/9xlP/z9v/p7v90lf9uj//P2//v8//o7f/k6v/K1v+6yv9rjv98nv/E0v/9/v/09//h6P/X4f9pjP/9/f/N2f/K1v/C0f+Ho/99nP/1+P9sj//6+//u8/+iuP/u8//g6P/U3v+3x/+0xv+etf+Vrv9pjf/B0P9ukf+ht/+Vr/94mP/G0/+8zP+2x//+/v/09v/W4f9ojv/c5P+xxP/d5v+xw/+vwv+Jo//g6P+nvP+SrP/R3P/1+f/W3//U3//C0P+Jp/9nh/+Kpv+Fov/Y4f/J1/+Pqf+rv/+Oqv+Oqv+muv+twP/f5//t8P97mf/h5/+twP+kuf/L2P+juP+Ipf+huP+Pqf/d5v+zxf+cs/+Zsf+wwv/V3v+8zP+Go/+zxP+GpP/T3f/r8P/u8v/o7f/d5P/m7P/H1P/w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yEMa0n8yHb93Er1oXjnoMVyFn3KQVcP7VRpFn+sDiznaiuHNufsHnkIwy7aPA/r5jbFGW3m7S12ku55WPN7Li1PPIRhN6sjtBjTmm+KmYcwPEOKs9tHF1JDHCoHLZ5DQ8yPBic9DoHjAKvsb85qjbFxHOCprMZaf5qdhlorxwGeTsPIttvPlno0y3GAZfbHp6n3ynGAV0m99u/2J6H3znGAvW4n+J25tdY7xwFey1pvQe6/DlrjOMDLqfXW7N5pbs0YWhxgtpj0rl1uiaHFISzccSWohUCzOIemm0VKChwHOMutKCVwHOA4av/JVi0xtDiRpCRfRcvQ4lBfxSnG0OJc/+xTjKHFyVRMP38iDC0O92lZVRhanO+vcVWGFu9BRWkW7+Z3rapEizdy7ZVm8V5Gtr8AtSnix59eOmYAAAAASUVORK5CYII=";function Ju(i){le(i,"svelte-rpkaro",".floorplan-plugin__compass.svelte-rpkaro{position:absolute;left:50%;top:-2.875rem;width:14.4375rem;height:2.5625rem;will-change:opacity;transform-origin:center 11.5rem}.floorplan-plugin__compass-image.svelte-rpkaro{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0.1;background-repeat:no-repeat;background-size:100% 100%}.floorplan-plugin__compass-text.svelte-rpkaro{position:absolute;left:50%;top:0.9375rem;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:0.625rem;color:#fff}")}function Zu(i){let t,e,n,o,s;return{c(){t=z("div"),e=z("div"),n=ee(),o=z("span"),s=ke(i[0]),y(e,"class","floorplan-plugin__compass-image svelte-rpkaro"),T(e,"background-image",`url(${qu})`),y(o,"class","floorplan-plugin__compass-text svelte-rpkaro"),y(t,"class","floorplan-plugin__compass svelte-rpkaro"),T(t,"transform",i[2])},m(r,a){M(r,t,a),j(t,e),j(t,n),j(t,o),j(o,s)},p(r,a){a&1&&Se(s,r[0])},d(r){r&&S(t)}}}function Ku(i){let t,e=i[1]&&Zu(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),M(n,t,o)},p(n,[o]){n[1]&&e.p(n,o)},i:U,o:U,d(n){e&&e.d(n),n&&S(t)}}}function $u(i){return i/Math.PI*180}function ed(i,t,e){var c;let{floorplanData:n}=t,{northDesc:o}=t;const s=(c=n.entrance)==null?void 0:c.northRad,r=typeof s=="number",l=`translateX(-50%) translateZ(10px) rotate(${-(s?$u(s):0)+90}deg)`;return i.$$set=u=>{"floorplanData"in u&&e(3,n=u.floorplanData),"northDesc"in u&&e(0,o=u.northDesc)},[o,r,l,n]}class td extends oe{constructor(t){super(),ie(this,t,ed,Ku,ne,{floorplanData:3,northDesc:0},Ju)}}const Ot=[];function mo(i,t=U){let e;const n=new Set;function o(a){if(ne(i,a)&&(i=a,e)){const l=!Ot.length;for(const c of n)c[1](),Ot.push(c,i);if(l){for(let c=0;c<Ot.length;c+=2)Ot[c][0](Ot[c+1]);Ot.length=0}}}function s(a){o(a(i))}function r(a,l=U){const c=[a,l];return n.add(c),n.size===1&&(e=t(o)||U),a(i),()=>{n.delete(c),n.size===0&&(e(),e=null)}}return{set:o,update:s,subscribe:r}}function nd(i){le(i,"svelte-1gfoniz","img.svelte-1gfoniz{width:100%;height:100%}")}function id(i){let t,e;return{c(){t=z("img"),Ne(t.src,e=i[0])||y(t,"src",e),y(t,"alt","floorplan iamge"),y(t,"class","svelte-1gfoniz")},m(n,o){M(n,t,o)},p(n,[o]){o&1&&!Ne(t.src,e=n[0])&&y(t,"src",e)},i:U,o:U,d(n){n&&S(t)}}}function od(i,t,e){let{url:n}=t;return i.$$set=o=>{"url"in o&&e(0,n=o.url)},[n]}class sd extends oe{constructor(t){super(),ie(this,t,od,id,ne,{url:0},nd)}}function rd(i){le(i,"svelte-ub47ya",".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}")}function ad(i){let t,e,n,o;return{c(){t=z("div"),e=new ei(!1),n=ee(),o=new ei(!1),e.a=n,o.a=null,y(t,"class","floorplan-plugin__base-image svelte-ub47ya")},m(s,r){M(s,t,r),e.m(i[1],t),j(t,n),o.m(i[0],t)},p(s,[r]){r&1&&o.p(s[0])},i:U,o:U,d(s){s&&S(t)}}}function ld(i,t,e){let{content:n}=t;const o=`
107
107
  <style>
@@ -112,7 +112,7 @@ transition: all 500ms;
112
112
  svg [type='lineItemGroup'] g g g g {
113
113
  stroke: #ffffff;
114
114
  }</style>
115
- `;return i.$$set=s=>{"content"in s&&e(0,n=s.content)},[n,o]}class cd extends oe{constructor(t){super(),ie(this,t,ld,ad,ne,{content:0},rd)}}function ud(i){le(i,"svelte-ozpg4a",".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}")}function dd(i){let t,e;return t=new sd({props:{url:i[1].url}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.url=n[1].url),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function hd(i){let t,e;return t=new cd({props:{content:i[0]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.content=n[0]),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function fd(i){let t,e,n,o;const s=[hd,dd],r=[];function a(l,c){return l[0]?0:l[1]?1:-1}return~(e=a(i))&&(n=r[e]=s[e](i)),{c(){t=z("div"),n&&n.c(),y(t,"class","floorplan-plugin__base-image svelte-ozpg4a")},m(l,c){M(l,t,c),~e&&r[e].m(t,null),o=!0},p(l,[c]){let u=e;e=a(l),e===u?~e&&r[e].p(l,c):(n&&(se(),L(r[u],1,1,()=>{r[u]=null}),re()),~e?(n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),P(n,1),n.m(t,null)):n=null)},i(l){o||(P(n),o=!0)},o(l){L(n),o=!1},d(l){l&&S(t),~e&&r[e].d()}}}function md(i,t,e){let n,o,{floorIndex:s}=t,{floorplanData:r}=t;return i.$$set=a=>{"floorIndex"in a&&e(2,s=a.floorIndex),"floorplanData"in a&&e(3,r=a.floorplanData)},i.$$.update=()=>{var a,l;i.$$.dirty&12&&e(1,n=r.outlines[s]),i.$$.dirty&12&&e(0,o=(l=(a=r.outlines)==null?void 0:a[s])==null?void 0:l.svgContent)},[o,n,s,r]}class Ua extends oe{constructor(t){super(),ie(this,t,md,fd,ne,{floorIndex:2,floorplanData:3},ud)}}function pd(i){le(i,"svelte-12pzct5",".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}")}function gd(i){let t,e=i[8].outerHTML+"",n;return{c(){t=new ei(!1),n=me(),t.a=n},m(o,s){t.m(e,o,s),M(o,n,s)},p(o,s){s&256&&e!==(e=o[8].outerHTML+"")&&t.p(e)},d(o){o&&S(n),o&&t.d()}}}function Ad(i){let t,e,n=i[1]&&No(i),o=i[0]&&Xo(i);return{c(){n&&n.c(),t=ee(),o&&o.c(),e=me()},m(s,r){n&&n.m(s,r),M(s,t,r),o&&o.m(s,r),M(s,e,r)},p(s,r){s[1]?n?n.p(s,r):(n=No(s),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),s[0]?o?o.p(s,r):(o=Xo(s),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(s){n&&n.d(s),s&&S(t),o&&o.d(s),s&&S(e)}}}function No(i){let t,e=i[2].name+"",n;return{c(){t=z("span"),n=ke(e),y(t,"class","floorplan-plugin__room-name")},m(o,s){M(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[2].name+"")&&Se(n,e)},d(o){o&&S(t)}}}function Xo(i){let t,e;return{c(){t=z("span"),e=ke(i[7]),y(t,"class","floorplan-plugin__room-size svelte-12pzct5")},m(n,o){M(n,t,o),j(t,e)},p(n,o){o&128&&Se(e,n[7])},d(n){n&&S(t)}}}function vd(i){let t,e,n;function o(a,l){if(a[3]===void 0)return Ad;if(a[8])return gd}let s=o(i),r=s&&s(i);return{c(){t=z("div"),r&&r.c(),y(t,"class","floorplan-plugin__room-label-item svelte-12pzct5"),T(t,"left",i[9]),T(t,"top",i[10]),T(t,"font-size",i[11]),T(t,"opacity",i[6]?"1":"0")},m(a,l){M(a,t,l),r&&r.m(t,null),e||(n=[at(an.call(null,t)),ge(t,"clientWidth",i[19]),ge(t,"clientHeight",i[20])],e=!0)},p(a,[l]){s===(s=o(a))&&r?r.p(a,l):(r&&r.d(1),r=s&&s(a),r&&(r.c(),r.m(t,null))),l&64&&T(t,"opacity",a[6]?"1":"0")},i:U,o:U,d(a){a&&S(t),r&&r.d(),e=!1,He(n)}}}function bd(i,t){const e=i[0],n=i[1];let o=!1;for(let s=0,r=t.length-1;s<t.length;r=s++){const a=t[s][0],l=t[s][1],c=t[r][0],u=t[r][1];l>n!=u>n&&e<(c-a)*(n-l)/(u-l)+a&&(o=!o)}return o}function yd(i,t,e){let n,o,s,r,a,{pxmm:l}=t,{roomAreaEnable:c}=t,{roomNameEnable:u}=t,{room:d}=t,{hoveredRoom:h}=t,{getRoomAreaText:m}=t,{getLabelElement:A}=t,{adaptiveRoomLabelVisibleEnable:v}=t;function p(H,B){if(B.width===0||B.height===0)return()=>!1;const F=H.path.map(({x:de,y:pe})=>[de,pe]),R=H.roomLabel.position,{x:N,y:_}=R,{width:$,height:Y}=B,ae=$/2,he=Y/2;return function(pe){const Pe=N*pe,Ie=_*pe,Me=F.map(([Ae,Ee])=>[Ae*pe,Ee*pe]);return[[Pe+ae,Ie-he],[Pe-ae,Ie-he],[Pe-ae,Ie+he],[Pe+ae,Ie+he]].every(Ae=>bd(Ae,Me))}}const g=document.body.clientWidth,b=document.body.clientHeight,w=d.roomLabel,x=w.positionInImage.x*100+"%",k=w.positionInImage.y*100+"%",C=(g<500||b<500?10:14)+"px";let D=0,E=0,O=!1;h.subscribe(function(B){e(16,O=!!B&&B.id===d.id)});const G=H=>{e(4,D=H.detail)},X=H=>{e(5,E=H.detail)};return i.$$set=H=>{"pxmm"in H&&e(12,l=H.pxmm),"roomAreaEnable"in H&&e(0,c=H.roomAreaEnable),"roomNameEnable"in H&&e(1,u=H.roomNameEnable),"room"in H&&e(2,d=H.room),"hoveredRoom"in H&&e(13,h=H.hoveredRoom),"getRoomAreaText"in H&&e(14,m=H.getRoomAreaText),"getLabelElement"in H&&e(3,A=H.getLabelElement),"adaptiveRoomLabelVisibleEnable"in H&&e(15,v=H.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{i.$$.dirty&12&&e(8,n=A==null?void 0:A(d)),i.$$.dirty&16388&&e(7,o=d.size?m(d.size):""),i.$$.dirty&48&&e(18,s={width:D,height:E}),i.$$.dirty&262148&&e(17,r=s?p(d,s):void 0),i.$$.dirty&233472&&e(6,a=v?O?!0:!!(r!=null&&r(l)):!0)},[c,u,d,A,D,E,a,o,n,x,k,C,l,h,m,v,O,r,s,G,X]}class wd extends oe{constructor(t){super(),ie(this,t,yd,vd,ne,{pxmm:12,roomAreaEnable:0,roomNameEnable:1,room:2,hoveredRoom:13,getRoomAreaText:14,getLabelElement:3,adaptiveRoomLabelVisibleEnable:15},pd)}}function Cd(i){le(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}")}function Yo(i,t,e){const n=i.slice();return n[12]=t[e],n}function Uo(i){let t,e=[],n=new Map,o,s,r,a=i[8];const l=c=>c[12].id;for(let c=0;c<a.length;c+=1){let u=Yo(i,a,c),d=l(u);n.set(d,e[c]=qo(d,u))}return{c(){t=z("div");for(let c=0;c<e.length;c+=1)e[c].c();y(t,"class","floorplan-plugin__room-labels svelte-13xux0b")},m(c,u){M(c,t,u);for(let d=0;d<e.length;d+=1)e[d].m(t,null);o=!0,s||(r=[at(an.call(null,t)),ge(t,"clientWidth",i[11])],s=!0)},p(c,u){u&447&&(a=c[8],se(),e=qe(e,u,l,1,c,a,n,t,Pt,qo,null,Yo),re())},i(c){if(!o){for(let u=0;u<a.length;u+=1)P(e[u]);o=!0}},o(c){for(let u=0;u<e.length;u+=1)L(e[u]);o=!1},d(c){c&&S(t);for(let u=0;u<e.length;u+=1)e[u].d();s=!1,He(r)}}}function qo(i,t){let e,n,o;const s=[{pxmm:t[7],room:t[12],hoveredRoom:t[2],roomAreaEnable:t[0],roomNameEnable:t[1],getLabelElement:t[4],getRoomAreaText:t[3],adaptiveRoomLabelVisibleEnable:t[5]}];let r={};for(let a=0;a<s.length;a+=1)r=Be(r,s[a]);return n=new wd({props:r}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(a,l){M(a,e,l),J(n,a,l),o=!0},p(a,l){t=a;const c=l&447?Re(s,[{pxmm:t[7],room:t[12],hoveredRoom:t[2],roomAreaEnable:t[0],roomNameEnable:t[1],getLabelElement:t[4],getRoomAreaText:t[3],adaptiveRoomLabelVisibleEnable:t[5]}]):{};n.$set(c)},i(a){o||(P(n.$$.fragment,a),o=!0)},o(a){L(n.$$.fragment,a),o=!1},d(a){a&&S(e),Z(n,a)}}}function Ed(i){let t,e,n=i[8]&&Uo(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[8]?n?(n.p(o,s),s&256&&P(n,1)):(n=Uo(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function Pd(i,t,e){let n,{floorIndex:o}=t,{roomAreaEnable:s}=t,{roomNameEnable:r}=t,{floorplanData:a}=t,{hoveredRoom:l}=t,{getRoomAreaText:c}=t,{getLabelElement:u}=t,{adaptiveRoomLabelVisibleEnable:d}=t,h=0,m=0;const A=v=>{e(6,h=v.detail)};return i.$$set=v=>{"floorIndex"in v&&e(9,o=v.floorIndex),"roomAreaEnable"in v&&e(0,s=v.roomAreaEnable),"roomNameEnable"in v&&e(1,r=v.roomNameEnable),"floorplanData"in v&&e(10,a=v.floorplanData),"hoveredRoom"in v&&e(2,l=v.hoveredRoom),"getRoomAreaText"in v&&e(3,c=v.getRoomAreaText),"getLabelElement"in v&&e(4,u=v.getLabelElement),"adaptiveRoomLabelVisibleEnable"in v&&e(5,d=v.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{if(i.$$.dirty&1536&&e(8,n=a.floorDatas[o].rooms),i.$$.dirty&1088){const{max:v,min:p}=a.bounding,g=v.x-p.x;e(7,m=h/g)}},[s,r,l,c,u,d,h,m,n,o,a,A]}class Id extends oe{constructor(t){super(),ie(this,t,Pd,Ed,ne,{floorIndex:9,roomAreaEnable:0,roomNameEnable:1,floorplanData:10,hoveredRoom:2,getRoomAreaText:3,getLabelElement:4,adaptiveRoomLabelVisibleEnable:5},Cd)}}function kd(i){le(i,"svelte-djlmk4",".floorplan-plugin__rule-labels.svelte-djlmk4.svelte-djlmk4{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-djlmk4.svelte-djlmk4{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4.svelte-djlmk4{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4.svelte-djlmk4{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4.svelte-djlmk4{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-djlmk4.svelte-djlmk4{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale-wrapper.svelte-djlmk4{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-djlmk4.svelte-djlmk4{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale.svelte-djlmk4{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute}.floorplan-plugin__rule-labels--top.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-djlmk4.svelte-djlmk4{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-text-item.svelte-djlmk4{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-djlmk4.svelte-djlmk4{width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}")}function Jo(i,t,e){const n=i.slice();return n[11]=t[e],n[13]=e,n}function Zo(i,t,e){const n=i.slice();return n[14]=t[e],n}function Ko(i){let t;return{c(){t=z("div"),y(t,"class","floorplan-plugin__rule-scale svelte-djlmk4"),T(t,"left",i[14].left*100+"%"),T(t,"bottom",i[14].bottom*100+"%")},m(e,n){M(e,t,n)},p:U,d(e){e&&S(t)}}}function $o(i,t){let e,n,o=t[1](t[11].distance)+"",s,r;return{key:i,first:null,c(){e=z("div"),n=z("div"),s=ke(o),r=ee(),y(n,"class","floorplan-plugin__rule-text svelte-djlmk4"),q(n,"is-row",t[2]),y(e,"class","floorplan-plugin__rule-text-item svelte-djlmk4"),T(e,"left",t[11].left*100+"%"),T(e,"bottom",t[11].bottom*100+"%"),this.first=e},m(a,l){M(a,e,l),j(e,n),j(n,s),j(e,r)},p(a,l){t=a,l&2&&o!==(o=t[1](t[11].distance)+"")&&Se(s,o)},d(a){a&&S(e)}}}function xd(i){let t,e,n,o,s,r,a=[],l=new Map,c,u=i[3],d=[];for(let A=0;A<u.length;A+=1)d[A]=Ko(Zo(i,u,A));let h=i[4];const m=A=>A[13];for(let A=0;A<h.length;A+=1){let v=Jo(i,h,A),p=m(v);l.set(p,a[A]=$o(p,v))}return{c(){t=z("div"),e=z("div"),n=ee(),o=z("div");for(let A=0;A<d.length;A+=1)d[A].c();s=ee(),r=z("div");for(let A=0;A<a.length;A+=1)a[A].c();y(e,"class","floorplan-plugin__rule-line svelte-djlmk4"),y(o,"class","floorplan-plugin__rule-scale-wrapper svelte-djlmk4"),q(o,"is-row",i[2]),y(r,"class","floorplan-plugin__rule-text-wrapper svelte-djlmk4"),y(t,"class",c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+i[0]+" svelte-djlmk4"),q(t,"is-row",i[2]),T(t,"width",i[2]?"100%":1/16+"rem"),T(t,"height",i[2]?1/16+"rem":"100%")},m(A,v){M(A,t,v),j(t,e),j(t,n),j(t,o);for(let p=0;p<d.length;p+=1)d[p].m(o,null);j(t,s),j(t,r);for(let p=0;p<a.length;p+=1)a[p].m(r,null)},p(A,[v]){if(v&8){u=A[3];let p;for(p=0;p<u.length;p+=1){const g=Zo(A,u,p);d[p]?d[p].p(g,v):(d[p]=Ko(g),d[p].c(),d[p].m(o,null))}for(;p<d.length;p+=1)d[p].d(1);d.length=u.length}v&22&&(h=A[4],a=qe(a,v,m,1,A,h,l,r,ho,$o,null,Jo)),v&1&&c!==(c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+A[0]+" svelte-djlmk4")&&y(t,"class",c),v&5&&q(t,"is-row",A[2])},i:U,o:U,d(A){A&&S(t),ct(d,A);for(let v=0;v<a.length;v+=1)a[v].d()}}}const Rt=1e3,Qt=180;function Dd(i,t,e){let{type:n}=t,{data:o}=t,{bounding:s}=t,{getRuleDistanceText:r}=t;const a=n==="top"||n==="bottom",l=s.max.x-s.min.x-(Rt-Qt)*2,c=s.max.y-s.min.y-(Rt-Qt)*2,u=o.map(([A,v])=>a?[A.x,v.x]:[A.y,v.y]).flat().sort().filter((A,v,p)=>v===0?!0:A!==p[v-1]),d=u.map(A=>{const v=a?(A-s.min.x-Rt+Qt)/l:0,p=a?0:(A-s.min.y-Rt+Qt)/c;return{left:v,bottom:p}});d.unshift({left:0,bottom:0}),d.push(a?{left:1,bottom:0}:{left:0,bottom:1});const h=u[u.length-1]-u[0],m=u.map((A,v,p)=>{const g=v===0?0:A-p[v-1],b=v===0?0:(A+p[v-1])/2,w=a?(b-s.min.x-Rt+Qt)/l:0,x=a?0:(b-s.min.y-Rt+Qt)/c;return{left:w,bottom:x,distance:g}}).filter(({distance:A})=>A/h>.1);return i.$$set=A=>{"type"in A&&e(0,n=A.type),"data"in A&&e(5,o=A.data),"bounding"in A&&e(6,s=A.bounding),"getRuleDistanceText"in A&&e(1,r=A.getRuleDistanceText)},[n,r,a,d,m,o,s]}class Ld extends oe{constructor(t){super(),ie(this,t,Dd,xd,ne,{type:0,data:5,bounding:6,getRuleDistanceText:1},kd)}}function Sd(i){le(i,"svelte-1mzj9p3",".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}")}function es(i,t,e){const n=i.slice();return n[13]=t[e][0],n[14]=t[e][1],n}function ts(i,t){let e,n,o;const s=[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}];let r={};for(let a=0;a<s.length;a+=1)r=Be(r,s[a]);return n=new Ld({props:r}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(a,l){M(a,e,l),J(n,a,l),o=!0},p(a,l){t=a;const c=l&19?Re(s,[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}]):{};n.$set(c)},i(a){o||(P(n.$$.fragment,a),o=!0)},o(a){L(n.$$.fragment,a),o=!1},d(a){a&&S(e),Z(n,a)}}}function Md(i){let t,e=[],n=new Map,o,s=i[4];const r=a=>a[13];for(let a=0;a<s.length;a+=1){let l=es(i,s,a),c=r(l);n.set(c,e[a]=ts(c,l))}return{c(){t=z("div");for(let a=0;a<e.length;a+=1)e[a].c();y(t,"class","floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"),T(t,"width",i[3]),T(t,"height",i[2])},m(a,l){M(a,t,l);for(let c=0;c<e.length;c+=1)e[c].m(t,null);o=!0},p(a,[l]){l&19&&(s=a[4],se(),e=qe(e,l,r,1,a,s,n,t,Pt,ts,null,es),re()),l&8&&T(t,"width",a[3]),l&4&&T(t,"height",a[2])},i(a){if(!o){for(let l=0;l<s.length;l+=1)P(e[l]);o=!0}},o(a){for(let l=0;l<e.length;l+=1)L(e[l]);o=!1},d(a){a&&S(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}const ns=1e3,is=180;function Td(i,t,e){let n,o,s,r,a,l,c,u,d,h,{floorIndex:m}=t,{floorplanData:A}=t,{getRuleDistanceText:v}=t;return i.$$set=p=>{"floorIndex"in p&&e(5,m=p.floorIndex),"floorplanData"in p&&e(6,A=p.floorplanData),"getRuleDistanceText"in p&&e(0,v=p.getRuleDistanceText)},i.$$.update=()=>{i.$$.dirty&64&&e(1,n=A.bounding),i.$$.dirty&96&&e(11,o=A.floorDatas[m].rules),i.$$.dirty&2048&&e(12,s=Object.keys(o)),i.$$.dirty&6144&&e(4,r=s.map(p=>[p,o[p]])),i.$$.dirty&2&&e(9,a=n.max.x-n.min.x),i.$$.dirty&2&&e(7,l=n.max.y-n.min.y),i.$$.dirty&2&&e(10,c=n.max.x-n.min.x-(ns-is)*2),i.$$.dirty&2&&e(8,u=n.max.y-n.min.y-(ns-is)*2),i.$$.dirty&1536&&e(3,d=c/a*100+"%"),i.$$.dirty&384&&e(2,h=u/l*100+"%")},[v,n,h,d,r,m,A,l,u,a,c,o,s]}class zd extends oe{constructor(t){super(),ie(this,t,Td,Md,ne,{floorIndex:5,floorplanData:6,getRuleDistanceText:0},Sd)}}function Ai(i,t={}){let e="";const{needZ:n,needA:o}=t;return(n?i.slice().concat(i[0]):i.slice()).forEach((r,a)=>{const{x:l,y:c}=t.format?t.format(r):r,u=l+","+c;return a===0?(e+="M"+u,e):o!=null&&o[a]?(e+="A"+o[a]+","+u,e):(e+="L"+u,e)}),e+(n?"Z":"")}function qa({x:i,y:t},e){const{max:n,min:o}=e;return{x:i-o.x,y:n.y-t}}function Bd(i,t){const e=i.x*1e3+t.bounding.origin.x,n=-i.z*1e3+t.bounding.origin.y;return{x:e,y:n}}function jd(i,t){const e=t.bounding,n=e.max.x-e.min.x,o=e.max.y-e.min.y;return{x:(i.x-e.min.x)/n,y:(e.max.y-i.y)/o}}function Vd(i,t){return Math.max(...t.work.observers.map(n=>i.z>=n.standingPosition.z?n.floorIndex:0))}function Od(i){let t;return{c(){t=we("path"),y(t,"d",i[0]),y(t,"fill","#2F313A")},m(e,n){M(e,t,n)},p(e,[n]){n&1&&y(t,"d",e[0])},i:U,o:U,d(e){e&&S(t)}}}function Rd(i,t,e){let n,{path:o}=t;return i.$$set=s=>{"path"in s&&e(1,o=s.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=Ai(o,{needZ:!0}))},[n,o]}class Qd extends oe{constructor(t){super(),ie(this,t,Rd,Od,ne,{path:1})}}function Fd(i){let t,e,n,o,s,r;return{c(){t=we("defs"),e=we("pattern"),n=we("rect"),o=we("path"),s=ee(),r=we("path"),y(n,"x","0"),y(n,"y","0"),y(n,"width",i[1]),y(n,"height",i[1]),y(n,"fill","#323747"),y(o,"d",i[2]),y(o,"stroke","#ffffff"),y(o,"stroke-opacity","0.06"),y(o,"stroke-width","0.5"),y(o,"fill","none"),y(e,"id","fpm-room-pattern-0"),y(e,"x","0"),y(e,"y","0"),y(e,"width",i[1]),y(e,"height",i[1]),y(e,"patternUnits","userSpaceOnUse"),y(e,"patternTransform","scale(50 50)"),y(r,"d",i[0]),y(r,"fill","url(#fpm-room-pattern-0)")},m(a,l){M(a,t,l),j(t,e),j(e,n),j(e,o),M(a,s,l),M(a,r,l)},p(a,[l]){l&1&&y(r,"d",a[0])},i:U,o:U,d(a){a&&S(t),a&&S(s),a&&S(r)}}}const Ti=6;function Hd(i,t,e){let n,{path:o}=t;const s=Ti*2,r=`M0 ${Ti} h ${s} M${Ti} 0 v ${s}`;return i.$$set=a=>{"path"in a&&e(3,o=a.path)},i.$$.update=()=>{i.$$.dirty&8&&e(0,n=Ai(o,{needZ:!0}))},[n,s,r,o]}class _d extends oe{constructor(t){super(),ie(this,t,Hd,Fd,ne,{path:3})}}function Gd(i){let t,e,n,o,s,r,a,l,c,u,d;return{c(){t=we("defs"),e=we("pattern"),n=we("rect"),o=we("pattern"),s=we("rect"),r=ee(),a=we("path"),l=ee(),c=we("path"),u=ee(),d=we("path"),y(n,"x","0"),y(n,"y","0"),y(n,"width","6"),y(n,"height","50"),y(n,"fill","none"),y(n,"stroke","#4B4B57"),y(n,"stroke-width","0.5"),y(e,"id","room-material-pattern-1"),y(e,"x","0"),y(e,"y","0"),y(e,"width","12"),y(e,"height","50"),y(e,"patternUnits","userSpaceOnUse"),y(e,"patternTransform","scale(50 50)"),y(s,"x","0"),y(s,"y","0"),y(s,"width","6"),y(s,"height","50"),y(s,"fill","none"),y(s,"stroke","#4B4B57"),y(s,"stroke-width","0.5"),y(o,"id","room-material-pattern-2"),y(o,"x","6"),y(o,"y","25"),y(o,"width","12"),y(o,"height","50"),y(o,"patternUnits","userSpaceOnUse"),y(o,"patternTransform","scale(50 50)"),y(a,"d",i[0]),y(a,"fill","#43434D"),y(c,"d",i[0]),y(c,"fill","url(#room-material-pattern-1)"),y(d,"d",i[0]),y(d,"fill","url(#room-material-pattern-2)")},m(h,m){M(h,t,m),j(t,e),j(e,n),j(t,o),j(o,s),M(h,r,m),M(h,a,m),M(h,l,m),M(h,c,m),M(h,u,m),M(h,d,m)},p(h,[m]){m&1&&y(a,"d",h[0]),m&1&&y(c,"d",h[0]),m&1&&y(d,"d",h[0])},i:U,o:U,d(h){h&&S(t),h&&S(r),h&&S(a),h&&S(l),h&&S(c),h&&S(u),h&&S(d)}}}function Wd(i,t,e){let n,{path:o}=t;return i.$$set=s=>{"path"in s&&e(1,o=s.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=Ai(o,{needZ:!0}))},[n,o]}class Nd extends oe{constructor(t){super(),ie(this,t,Wd,Gd,ne,{path:1})}}function Xd(i){le(i,"svelte-1dykexu",".floorplan-plugin__room-material.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%}svg.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}")}function os(i,t,e){const n=i.slice();return n[5]=t[e],n}function Yd(i){let t,e;return t=new _d({props:{path:i[5].path}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Ud(i){let t,e;return t=new Nd({props:{path:i[5].path}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function qd(i){let t,e;return t=new Qd({props:{path:i[5].path}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function ss(i){let t,e,n,o;const s=[qd,Ud,Yd],r=[];function a(l,c){return l[5].floorType===1?0:l[5].floorType===0?1:2}return e=a(i),n=r[e]=s[e](i),{c(){t=we("svg"),n.c(),y(t,"width","100%"),y(t,"height","100%"),y(t,"viewBox",`0 0 ${i[1]} ${i[2]}`),y(t,"class","svelte-1dykexu")},m(l,c){M(l,t,c),r[e].m(t,null),o=!0},p(l,c){let u=e;e=a(l),e===u?r[e].p(l,c):(se(),L(r[u],1,1,()=>{r[u]=null}),re(),n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),P(n,1),n.m(t,null))},i(l){o||(P(n),o=!0)},o(l){L(n),o=!1},d(l){l&&S(t),r[e].d()}}}function Jd(i){let t,e,n=i[0],o=[];for(let r=0;r<n.length;r+=1)o[r]=ss(os(i,n,r));const s=r=>L(o[r],1,1,()=>{o[r]=null});return{c(){t=z("div");for(let r=0;r<o.length;r+=1)o[r].c();y(t,"class","floorplan-plugin__room-material svelte-1dykexu")},m(r,a){M(r,t,a);for(let l=0;l<o.length;l+=1)o[l].m(t,null);e=!0},p(r,[a]){if(a&7){n=r[0];let l;for(l=0;l<n.length;l+=1){const c=os(r,n,l);o[l]?(o[l].p(c,a),P(o[l],1)):(o[l]=ss(c),o[l].c(),P(o[l],1),o[l].m(t,null))}for(se(),l=n.length;l<o.length;l+=1)s(l);re()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)P(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)L(o[a]);e=!1},d(r){r&&S(t),ct(o,r)}}}function Zd(i,t,e){let n,{floorIndex:o}=t,{floorplanData:s}=t;const r=s.bounding.max.x-s.bounding.min.x,a=s.bounding.max.y-s.bounding.min.y;return i.$$set=l=>{"floorIndex"in l&&e(3,o=l.floorIndex),"floorplanData"in l&&e(4,s=l.floorplanData)},i.$$.update=()=>{i.$$.dirty&24&&e(0,n=s.floorDatas[o].rooms.map(l=>fe(Q({},l),{path:l.path.map(c=>qa(c,s.bounding))})))},[n,r,a,o,s]}class Kd extends oe{constructor(t){super(),ie(this,t,Zd,Jd,ne,{floorIndex:3,floorplanData:4},Xd)}}function $d(i){le(i,"svelte-qq2273","path.svelte-qq2273{--opacity:0;opacity:var(--opacity)}path.svelte-qq2273:hover{opacity:calc(var(--opacity) + 0.1)}")}function eh(i){let t,e,n,o;return{c(){t=we("path"),y(t,"d",i[5]),y(t,"fill","#fff"),y(t,"style",i[2]),y(t,"id",e=`${i[1]}_${i[0].id}`),y(t,"class","svelte-qq2273")},m(s,r){M(s,t,r),n||(o=[ge(t,"mouseenter",i[3]),ge(t,"mouseleave",i[4])],n=!0)},p(s,[r]){r&4&&y(t,"style",s[2]),r&3&&e!==(e=`${s[1]}_${s[0].id}`)&&y(t,"id",e)},i:U,o:U,d(s){s&&S(t),n=!1,He(o)}}}function th(i,t,e){let n,o,{room:s}=t,{floorIndex:r}=t,{floorplanData:a}=t,{hoveredRoom:l}=t,{highlightData:c}=t;function u(){l.set(s)}function d(){l.set(void 0)}const{bounding:h}=a,m=Ai(s.path,{needZ:!0,format:A=>qa(A,h)});return i.$$set=A=>{"room"in A&&e(0,s=A.room),"floorIndex"in A&&e(1,r=A.floorIndex),"floorplanData"in A&&e(6,a=A.floorplanData),"hoveredRoom"in A&&e(7,l=A.hoveredRoom),"highlightData"in A&&e(8,c=A.highlightData)},i.$$.update=()=>{i.$$.dirty&259&&e(9,n=c[`${r}_${s.id}`]),i.$$.dirty&512&&e(2,o=n?`fill: ${n.color}; --opacity: ${n.opacity}; pointer-events: ${n.disabled?"none":"auto"}`:null)},[s,r,o,u,d,m,a,l,c,n]}class nh extends oe{constructor(t){super(),ie(this,t,th,eh,ne,{room:0,floorIndex:1,floorplanData:6,hoveredRoom:7,highlightData:8},$d)}}function ih(i){le(i,"svelte-1kqo6e4",".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}")}function rs(i,t,e){const n=i.slice();return n[6]=t[e],n}function as(i,t){let e,n,o;const s=[{room:t[6],floorplanData:t[1],hoveredRoom:t[2],floorIndex:t[0],highlightData:t[3]}];let r={};for(let a=0;a<s.length;a+=1)r=Be(r,s[a]);return n=new nh({props:r}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(a,l){M(a,e,l),J(n,a,l),o=!0},p(a,l){t=a;const c=l&15?Re(s,[{room:t[6],floorplanData:t[1],hoveredRoom:t[2],floorIndex:t[0],highlightData:t[3]}]):{};n.$set(c)},i(a){o||(P(n.$$.fragment,a),o=!0)},o(a){L(n.$$.fragment,a),o=!1},d(a){a&&S(e),Z(n,a)}}}function oh(i){let t,e,n=[],o=new Map,s,r=i[1].floorDatas[i[0]].rooms;const a=l=>l[6].id;for(let l=0;l<r.length;l+=1){let c=rs(i,r,l),u=a(c);o.set(u,n[l]=as(u,c))}return{c(){t=z("div"),e=we("svg");for(let l=0;l<n.length;l+=1)n[l].c();y(e,"width","100%"),y(e,"height","100%"),y(e,"viewBox",`0 0 ${i[4]} ${i[5]}`),y(e,"class","svelte-1kqo6e4"),y(t,"class","floorplan-plugin__room-highlight svelte-1kqo6e4")},m(l,c){M(l,t,c),j(t,e);for(let u=0;u<n.length;u+=1)n[u].m(e,null);s=!0},p(l,[c]){c&15&&(r=l[1].floorDatas[l[0]].rooms,se(),n=qe(n,c,a,1,l,r,o,e,Pt,as,null,rs),re())},i(l){if(!s){for(let c=0;c<r.length;c+=1)P(n[c]);s=!0}},o(l){for(let c=0;c<n.length;c+=1)L(n[c]);s=!1},d(l){l&&S(t);for(let c=0;c<n.length;c+=1)n[c].d()}}}function sh(i,t,e){let{floorIndex:n}=t,{floorplanData:o}=t,{hoveredRoom:s}=t,{highlightData:r}=t;const a=o.bounding.max.x-o.bounding.min.x,l=o.bounding.max.y-o.bounding.min.y;return i.$$set=c=>{"floorIndex"in c&&e(0,n=c.floorIndex),"floorplanData"in c&&e(1,o=c.floorplanData),"hoveredRoom"in c&&e(2,s=c.hoveredRoom),"highlightData"in c&&e(3,r=c.highlightData)},[n,o,s,r,a,l]}class Ja extends oe{constructor(t){super(),ie(this,t,sh,oh,ne,{floorIndex:0,floorplanData:1,hoveredRoom:2,highlightData:3},ih)}}function rh(i){le(i,"svelte-bl8zrz",".floorplan-plugin__floor.svelte-bl8zrz{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-bl8zrz{opacity:1;pointer-events:auto}")}function ls(i){let t,e;const n=[{floorIndex:i[1],floorplanData:i[8],hoveredRoom:i[14],highlightData:i[13]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new Ja({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&24834?Re(n,[{floorIndex:s[1],floorplanData:s[8],hoveredRoom:s[14],highlightData:s[13]}]):{};t.$set(a)},i(s){e||(P(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function cs(i){let t,e;const n=[{floorplanData:i[8],roomAreaEnable:i[5],roomNameEnable:i[6],floorIndex:i[1],getRoomAreaText:i[9],getLabelElement:i[10],hoveredRoom:i[14],adaptiveRoomLabelVisibleEnable:i[12]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new Id({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&22370?Re(n,[{floorplanData:s[8],roomAreaEnable:s[5],roomNameEnable:s[6],floorIndex:s[1],getRoomAreaText:s[9],getLabelElement:s[10],hoveredRoom:s[14],adaptiveRoomLabelVisibleEnable:s[12]}]):{};t.$set(a)},i(s){e||(P(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function us(i){let t,e;const n=[{floorplanData:i[8],floorIndex:i[1],getRuleDistanceText:i[11]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new zd({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&2306?Re(n,[{floorplanData:s[8],floorIndex:s[1],getRuleDistanceText:s[11]}]):{};t.$set(a)},i(s){e||(P(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function ah(i){let t,e,n,o,s,r,a,l,c;const u=[{floorIndex:i[1],floorplanData:i[8]}];let d={};for(let g=0;g<u.length;g+=1)d=Be(d,u[g]);e=new Kd({props:d});let h=(i[2]||i[3])&&ls(i);const m=[{floorplanData:i[8],floorIndex:i[1]}];let A={};for(let g=0;g<m.length;g+=1)A=Be(A,m[g]);s=new Ua({props:A});let v=i[4]&&cs(i),p=i[7]&&us(i);return{c(){t=z("div"),K(e.$$.fragment),n=ee(),h&&h.c(),o=ee(),K(s.$$.fragment),r=ee(),v&&v.c(),a=ee(),p&&p.c(),y(t,"class",l=Te(`floorplan-plugin__floor${i[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz")},m(g,b){M(g,t,b),J(e,t,null),j(t,n),h&&h.m(t,null),j(t,o),J(s,t,null),j(t,r),v&&v.m(t,null),j(t,a),p&&p.m(t,null),c=!0},p(g,[b]){const w=b&258?Re(u,[{floorIndex:g[1],floorplanData:g[8]}]):{};e.$set(w),g[2]||g[3]?h?(h.p(g,b),b&12&&P(h,1)):(h=ls(g),h.c(),P(h,1),h.m(t,o)):h&&(se(),L(h,1,1,()=>{h=null}),re());const x=b&258?Re(m,[{floorplanData:g[8],floorIndex:g[1]}]):{};s.$set(x),g[4]?v?(v.p(g,b),b&16&&P(v,1)):(v=cs(g),v.c(),P(v,1),v.m(t,a)):v&&(se(),L(v,1,1,()=>{v=null}),re()),g[7]?p?(p.p(g,b),b&128&&P(p,1)):(p=us(g),p.c(),P(p,1),p.m(t,null)):p&&(se(),L(p,1,1,()=>{p=null}),re()),(!c||b&1&&l!==(l=Te(`floorplan-plugin__floor${g[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz"))&&y(t,"class",l)},i(g){c||(P(e.$$.fragment,g),P(h),P(s.$$.fragment,g),P(v),P(p),c=!0)},o(g){L(e.$$.fragment,g),L(h),L(s.$$.fragment,g),L(v),L(p),c=!1},d(g){g&&S(t),Z(e),h&&h.d(),Z(s),v&&v.d(),p&&p.d()}}}function lh(i,t,e){let{isCurrent:n}=t,{floorIndex:o}=t,{highlightEnable:s}=t,{hoverEnable:r}=t,{roomLabelsEnable:a}=t,{roomAreaEnable:l}=t,{roomNameEnable:c}=t,{ruleLabelsEnable:u}=t,{floorplanData:d}=t,{getRoomAreaText:h}=t,{getLabelElement:m}=t,{getRuleDistanceText:A}=t,{adaptiveRoomLabelVisibleEnable:v}=t,{highlightData:p}=t;const g=mo(void 0);return i.$$set=b=>{"isCurrent"in b&&e(0,n=b.isCurrent),"floorIndex"in b&&e(1,o=b.floorIndex),"highlightEnable"in b&&e(2,s=b.highlightEnable),"hoverEnable"in b&&e(3,r=b.hoverEnable),"roomLabelsEnable"in b&&e(4,a=b.roomLabelsEnable),"roomAreaEnable"in b&&e(5,l=b.roomAreaEnable),"roomNameEnable"in b&&e(6,c=b.roomNameEnable),"ruleLabelsEnable"in b&&e(7,u=b.ruleLabelsEnable),"floorplanData"in b&&e(8,d=b.floorplanData),"getRoomAreaText"in b&&e(9,h=b.getRoomAreaText),"getLabelElement"in b&&e(10,m=b.getLabelElement),"getRuleDistanceText"in b&&e(11,A=b.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in b&&e(12,v=b.adaptiveRoomLabelVisibleEnable),"highlightData"in b&&e(13,p=b.highlightData)},[n,o,s,r,a,l,c,u,d,h,m,A,v,p,g]}class ch extends oe{constructor(t){super(),ie(this,t,lh,ah,ne,{isCurrent:0,floorIndex:1,highlightEnable:2,hoverEnable:3,roomLabelsEnable:4,roomAreaEnable:5,roomNameEnable:6,ruleLabelsEnable:7,floorplanData:8,getRoomAreaText:9,getLabelElement:10,getRuleDistanceText:11,adaptiveRoomLabelVisibleEnable:12,highlightData:13},rh)}}function uh(i){le(i,"svelte-86bqav",".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}")}function ds(i,t,e){const n=i.slice();return n[21]=t[e],n}function hs(i){let t,e,n,o,s,r=i[13].floorDatas,a=[];for(let d=0;d<r.length;d+=1)a[d]=fs(ds(i,r,d));const l=d=>L(a[d],1,1,()=>{a[d]=null});let c=i[5]&&ms(i),u=i[8]&&ps(i);return{c(){t=z("div");for(let d=0;d<a.length;d+=1)a[d].c();e=ee(),c&&c.c(),n=ee(),u&&u.c(),y(t,"class","floorplan-main svelte-86bqav")},m(d,h){M(d,t,h);for(let m=0;m<a.length;m+=1)a[m].m(t,null);j(t,e),c&&c.m(t,null),j(t,n),u&&u.m(t,null),s=!0},p(d,h){if(i=d,h&2047696){r=i[13].floorDatas;let m;for(m=0;m<r.length;m+=1){const A=ds(i,r,m);a[m]?(a[m].p(A,h),P(a[m],1)):(a[m]=fs(A),a[m].c(),P(a[m],1),a[m].m(t,e))}for(se(),m=r.length;m<a.length;m+=1)l(m);re()}i[5]?c?(c.p(i,h),h&32&&P(c,1)):(c=ms(i),c.c(),P(c,1),c.m(t,n)):c&&(se(),L(c,1,1,()=>{c=null}),re()),i[8]?u?(u.p(i,h),h&256&&P(u,1)):(u=ps(i),u.c(),P(u,1),u.m(t,null)):u&&(se(),L(u,1,1,()=>{u=null}),re())},i(d){if(!s){for(let h=0;h<r.length;h+=1)P(a[h]);P(c),P(u),o||Oe(()=>{o=Tt(t,Mt,{duration:i[0],easing:At}),o.start()}),s=!0}},o(d){a=a.filter(Boolean);for(let h=0;h<a.length;h+=1)L(a[h]);L(c),L(u),s=!1},d(d){d&&S(t),ct(a,d),c&&c.d(),u&&u.d()}}}function fs(i){let t,e;const n=[{hoverEnable:i[6],highlightEnable:i[7],floorplanData:i[13],getRoomAreaText:i[16],getLabelElement:i[17],getRuleDistanceText:i[18],roomLabelsEnable:i[9],roomAreaEnable:i[10],roomNameEnable:i[11],ruleLabelsEnable:i[12],adaptiveRoomLabelVisibleEnable:i[19],highlightData:i[20]},{floorIndex:i[21].floorIndex},{isCurrent:i[21].floorIndex===i[4]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new ch({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&2047696?Re(n,[r&2047680&&{hoverEnable:s[6],highlightEnable:s[7],floorplanData:s[13],getRoomAreaText:s[16],getLabelElement:s[17],getRuleDistanceText:s[18],roomLabelsEnable:s[9],roomAreaEnable:s[10],roomNameEnable:s[11],ruleLabelsEnable:s[12],adaptiveRoomLabelVisibleEnable:s[19],highlightData:s[20]},r&8192&&{floorIndex:s[21].floorIndex},r&8208&&{isCurrent:s[21].floorIndex===s[4]}]):{};t.$set(a)},i(s){e||(P(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function ms(i){let t,e;const n=[{panoIndex:i[3],floorplanData:i[13],lastPanoramaLongitude:i[14],cameraImageUrl:i[15]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new Uu({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&57352?Re(n,[{panoIndex:s[3],floorplanData:s[13],lastPanoramaLongitude:s[14],cameraImageUrl:s[15]}]):{};t.$set(a)},i(s){e||(P(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function ps(i){let t,e;return t=new td({props:{floorplanData:i[13],northDesc:i[2]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&8192&&(s.floorplanData=n[13]),o&4&&(s.northDesc=n[2]),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function dh(i){let t,e,n=i[1]&&hs(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&P(n,1)):(n=hs(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function hh(i,t,e){let{duration:n=0}=t,{visible:o}=t,{northDesc:s}=t,{panoIndex:r}=t,{floorIndex:a}=t,{cameraEnable:l}=t,{hoverEnable:c}=t,{highlightEnable:u}=t,{compassEnable:d}=t,{roomLabelsEnable:h}=t,{roomAreaEnable:m}=t,{roomNameEnable:A}=t,{ruleLabelsEnable:v}=t,{floorplanData:p}=t,{lastPanoramaLongitude:g}=t,{cameraImageUrl:b}=t,{getRoomAreaText:w}=t,{getLabelElement:x}=t,{getRuleDistanceText:k}=t,{adaptiveRoomLabelVisibleEnable:C}=t,{highlightData:D}=t;return i.$$set=E=>{"duration"in E&&e(0,n=E.duration),"visible"in E&&e(1,o=E.visible),"northDesc"in E&&e(2,s=E.northDesc),"panoIndex"in E&&e(3,r=E.panoIndex),"floorIndex"in E&&e(4,a=E.floorIndex),"cameraEnable"in E&&e(5,l=E.cameraEnable),"hoverEnable"in E&&e(6,c=E.hoverEnable),"highlightEnable"in E&&e(7,u=E.highlightEnable),"compassEnable"in E&&e(8,d=E.compassEnable),"roomLabelsEnable"in E&&e(9,h=E.roomLabelsEnable),"roomAreaEnable"in E&&e(10,m=E.roomAreaEnable),"roomNameEnable"in E&&e(11,A=E.roomNameEnable),"ruleLabelsEnable"in E&&e(12,v=E.ruleLabelsEnable),"floorplanData"in E&&e(13,p=E.floorplanData),"lastPanoramaLongitude"in E&&e(14,g=E.lastPanoramaLongitude),"cameraImageUrl"in E&&e(15,b=E.cameraImageUrl),"getRoomAreaText"in E&&e(16,w=E.getRoomAreaText),"getLabelElement"in E&&e(17,x=E.getLabelElement),"getRuleDistanceText"in E&&e(18,k=E.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in E&&e(19,C=E.adaptiveRoomLabelVisibleEnable),"highlightData"in E&&e(20,D=E.highlightData)},[n,o,s,r,a,l,c,u,d,h,m,A,v,p,g,b,w,x,k,C,D]}class po extends oe{constructor(t){super(),ie(this,t,hh,dh,ne,{duration:0,visible:1,northDesc:2,panoIndex:3,floorIndex:4,cameraEnable:5,hoverEnable:6,highlightEnable:7,compassEnable:8,roomLabelsEnable:9,roomAreaEnable:10,roomNameEnable:11,ruleLabelsEnable:12,floorplanData:13,lastPanoramaLongitude:14,cameraImageUrl:15,getRoomAreaText:16,getLabelElement:17,getRuleDistanceText:18,adaptiveRoomLabelVisibleEnable:19,highlightData:20},uh)}}const fh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a25MOnGRcBtx+6Rlo9SL08G4EooFnxa8Yiivox5/h5Ys/4cl7NVorNDRnngX+0MIkVMeMSf23zyKML8J7/Dy8hwF2Buh9CnS+AEQIdLspBuGb+M7/qLW4qJrNpsLapjYhpwVnx3BMfCtNNx3Etc9xywvnMf80wG8HmQainw0RxSGrnmeBp+8k5/j9S0HbvXb5io0Lz880/0wPHV1NlhLd316He+4xOCv5ragF7L9PrH1qBJyB0626x/lC+qrSvH5r/W+n1WpxUM5nMY4GPeH8lHJaPgfeAFQHCL+ntkXT+vnUc3W6pvTIwC0wy3rA4dwLmK2avZ7Eo9uKBuYJfgJscbs8dLCxDMt+EOEPBEZNEWyBYHqTz6bPXrzUnNrSShxHIsYiOL69zrCGLLcLqJP68tB+9w5wj+YhWDafQ2s61wNqxjZhmrQ2pvMFCEvXuCUZ7wqH794ZWs28LJqlTXSUyuksF2M/yOwqgkx2c1ADa4wLAQRk2sAGQQakhN6yFC2hltfz5kSY44NKQeeh+vtI/SSzWhg2CzCgmWISmKUGmaYFBDfCSymnfxJ6/+ospVcWOLLp5DGP/y0P/Rp66O99DQNq7Po3Ds0a0wY+My2QSv2N2mO/OyxR2o6UQk+Lv7yJ06JYSnnolZVU9cUn2O9SmaMWGFBqYXRwbqAJWIi94TX5biotpcGl1DXZ6LnqIbNDTnmUgi52Mv5l5ysMxIcZcGjy2DTK4ZHlcBC14zeSge4qphICjj3bS0A7o9nSp2TOkm7aZ8bGZy/jxhO87V91G0+dfY/Z7BWIIK9KYUi5qy/Hf8YfBG3sqJTHiQWhmTVkbip+wX3x6volVSx+LPAxF+VLXhZ8VQ+iP2Rta/iWe5v42Fngj0BbdnRTXh12ZIcKhTaGbcYjybRwXBU1lu9KlndXp04NM52poKWO0RZsviNaP9a6grkO972+st05pXhE5c1hTEluJy7XUejGUQNLMbAmTdWY1rKBLW3aTJqBZ7nZkb36DhYCreeYHbMUXHvaYi5XDK70EcgulmRjm77wNtenzuXCbmnTRaAx493rbGf3Jr/njMzj920CnKdUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";function mh(i){return W(this,null,function*(){const t=new Headers({"Content-Type":"text/plain"}),e=function(o){return W(this,null,function*(){const s={index:o.index,url:o.url,svgUrl:o.svg_url};if(o.svg_url){const r=yield fetch(o.svg_url,{headers:t}).then(a=>a.text());s.svgContent=r}return s})};return yield Promise.all(i.map(e))})}function ph(i){return{id:i.id,size:i.size,name:i.name,path:i.path,roomType:i.room_type,floorType:i.floor_type,roomLabel:{position:i.room_label.position,positionInImage:i.room_label.position_in_image},observerIndexs:i.observer_indexs}}function gh(i){return{floorName:i.floor_name,floorIndex:i.floor_index,rooms:i.rooms.map(ph),rules:i.rules}}function Ah(i){return{index:i.index,floorIndex:i.floor_index,position:i.position,positionInImage:i.position_in_image}}function vh(i){return{rad:i.rad,position:i.position,positionInImage:i.position_in_image,northRad:i.north_rad,roomId:i.room_id,floorIndex:i.floor_index}}function bt(i){return W(this,null,function*(){const t=yield mh(i.outlines),e=i.computed_data.bounding,n=i.computed_data.floor_datas.map(gh),o=i.computed_data.entrance?vh(i.computed_data.entrance):null;return{outlines:t,entrance:o,bounding:e,floorDatas:n,observers:i.computed_data.observers.map(Ah)}})}function bh(i,t,e){return i.map(o=>{const s=o.position,r=o.icon?o.icon:{url:fh,width:45,height:48},a=Vd(s,t),l=Bd(s,e),c=jd(l,e);return{floorIndex:a,icon:r,id:o.id,position:l,positionInImage:c}})}function yh(i,t){return t(i),i}function vi(i,t){return yh({},e=>{for(const n in i)t.indexOf(n)===-1&&(e[n]=i[n])})}function gs(i,t){const e=Math.max(...i.work.observers.map(n=>n.floorIndex));return t>e?i.model.bounding.max.y:Math.max(...i.work.observers.filter(n=>n.floorIndex===t).map(n=>n.standingPosition.y))}function go(i,t,e=pt.BOUNDING_CENTER){const n=gs(i,t),o=gs(i,t+1);return e===pt.BOUNDING_CENTER?(i.model.bounding.max.y+i.model.bounding.min.y)/2:e===pt.CEILING?o:n}function Ao(i,t,e,n){const o=go(i,e,n==null?void 0:n.attachedTo),s=new I.Vector3(0,o,0),r=new I.Vector3(1,o,0),a=s.clone().project(i.camera),l=r.clone().project(i.camera);return Math.abs((l.x-a.x)/1e3)*(t.getBoundingClientRect().width/2)}class In{constructor(t,e){f(this,"VERSION","2.13.2-dev.0");f(this,"five");f(this,"hooks",new Zt);f(this,"staticPrefix","//vrlab-static.ljcdn.com");this.five=t,e!=null&&e.staticPrefix&&(this.staticPrefix=e.staticPrefix)}getCurrentState(){return this.state}}class zt extends In{}var Ge=(i=>(i.UnknownError="UnknownError",i.DataNotLoaded="DataNotLoaded",i.BreakOffByHide="BreakOffByHide",i.BreakOffByDisable="BreakOffByDisable",i.ModelNotLoaded="ModelNotLoaded",i.ChangeModeError="ChangeModeError",i.UpdateCameraError="UpdateCameraError",i))(Ge||{});const Za=500,wh=80;function Ki(i,t,e=4){return Math.floor(i*Math.pow(10,e))===Math.floor(t*Math.pow(10,e))}function Ka(i,t){return W(this,null,function*(){yield new Promise((e,n)=>{i.changeMode(...t).catch(o=>n(o)),i.once("initAnimationEnded",()=>{const o=i.getCurrentState(),s=t[0];o.mode!==s&&n(new Error("mode \u4E0E\u9884\u671F\u4E0D\u7B26")),(()=>{const l=t[1];return l?Object.keys(l).every(c=>{const u=o[c];if(u===void 0)return!0;const d=l[c];return typeof u=="number"&&typeof d=="number"?Ki(u,d,2):u===d}):!0})()||n(new Error("five pose \u4E0E\u9884\u671F\u4E0D\u7B26")),e()})})})}function vo(i,t){if(i.currentMode!==t.mode)return!1;const{latitude:e,longitude:n,fov:o}=t,{latitude:s,longitude:r}=i.getCurrentState(),a=i.camera.fov;return!(!Ki(e,s,2)||!Ki(n,r,2)||o!==a)}function $a(i,t,e=!0){return W(this,null,function*(){if(vo(i,t)===!0)return;const o=i.getCurrentState();if(o.mode!==t.mode){const[u]=yield ai(Ka(i,[t.mode,t,void 0,e]));if(u)throw new Error(Ge.ChangeModeError);return}const{latitude:s,longitude:r,fov:a}=o,l=Math.min(1e3,Math.max(200,Math.abs(s-Math.PI/2)*1e3,(r>Math.PI?2*Math.PI-r:r)*500,Math.abs(a-t.fov)*10)),[c]=yield ai(i.updateCamera(t,l,e));if(c)throw new Error(Ge.UpdateCameraError)})}function Ut(i,t,e=300){const n=i.getElement();!n||(n.style.opacity=t+"",n.style.transition=e===0?"none":`opacity ${e}ms linear`,e!==0&&Promise.race([new Promise(o=>n.addEventListener("transitionend",o,{once:!0})),new Promise(o=>setTimeout(o,e))]).then(()=>{n.style.transition="none"}))}function Ch(i){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);return n||o}function Eh(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,o=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&o}class Ph extends zt{constructor(e,n){var a;super(e);f(this,"name","modelFloorplanPlugin");f(this,"state");f(this,"data");f(this,"showState");f(this,"showPromise");f(this,"app");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"selector");f(this,"showRejection");f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"show",(...n)=>W(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show(e)}));f(this,"hide",(...n)=>W(this,[...n],function*(e={}){!this.state.enabled||(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));f(this,"updateSize",()=>{if(!this.data||!vo(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ao(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"highlight",e=>{!this.state.config.highlightEnable||(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(o=this.showRejection)==null||o.call(this,Ge.BreakOffByDisable),this.showPromise=void 0,(s=this.app)==null||s.$destroy(),this.app=void 0,(r=this.container)==null||r.remove(),this.removeEventListener()});f(this,"_enable",e=>{const{userAction:n}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n}))});f(this,"_show",e=>W(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(Ge.ModelNotLoaded);if(!this.data)throw new Error(Ge.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},o=Q(Q({},n),e),s=()=>W(this,null,function*(){this.hooks.emit("show",{userAction:o.userAction,auto:o.isAutoShow});let a=!1,l;this.showRejection=h=>{a=!0,l=h};const[c]=yield ai($a(this.five,this.showState,o.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(Ge.UnknownError);this.updateSize(),this.floorIndex=o.floorIndex,this.five.model.show(this.floorIndex);const u=o.modelOpacity,d=o.immediately?0:Za;Ut(this.five,u,d),this.render(d)});return this.showPromise=s().then(()=>{this.hooks.emit("showAnimationEnded",{auto:o.isAutoShow,userAction:o.userAction})}).catch(a=>{if(this.updateState({visible:!1},o.userAction),!o.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var s;(s=this.showRejection)==null||s.call(this,Ge.BreakOffByHide),this.showPromise=void 0;const o=Q(Q({},{userAction:!0,isAutoHide:!1}),e);Ut(this.five,1,0),this.hooks.emit("hide",{auto:o.isAutoHide,userAction:o.userAction}),this.render()});f(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});f(this,"onFiveInteriaPan",(e,n)=>{if(!n||this.state.config.autoShowEnable===!1||this.isHiddenByHideFunc)return;const o=this.five.getCurrentState();o.mode==="Floorplan"&&(this.state.visible||Eh(o)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})))});f(this,"onFivePanoArrived",e=>{var n;!((n=this.five)!=null&&n.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{if(!this.state.visible||this.showPromise)return;const o=this.five.getCurrentState();Ch(o)&&(this.updateState({visible:!1},n),this._hide({userAction:n,isAutoHide:!0}))});f(this,"onFiveWantsGesture",(e,n)=>{if(!!this.state.visible&&(n.length>1||e==="mouseWheel"))return!1});f(this,"onFiveWantsPanGesture",(e,n)=>{if(this.five.getCurrentState().mode==="Floorplan"&&this.state.config.autoShowEnable!==!1&&n&&this.state.visible)return this.five.updateCamera(this.showState,0),!1});f(this,"onFiveWantsTapGesture",()=>this.handleClick());f(this,"onFiveWantsChangeMode",(e,n)=>{n==="Panorama"&&e==="Floorplan"&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5")),this.showState={mode:"Floorplan",longitude:0,latitude:Math.PI/2,fov:wh/((a=n==null?void 0:n.scale)!=null?a:1)};const o={northDesc:"\u5317",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,adaptiveRoomLabelVisibleEnable:!0,cameraImageUrl:vt,attachedTo:pt.BOUNDING_CENTER,getLabelElement:void 0,getRoomAreaText:l=>(l/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:l=>l.toString()},s=n?vi(n,["selector","scale"]):{},r=Q(Q({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return W(this,null,function*(){function s(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const r=e;r&&!r.version&&console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield bt(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled&&(e.enabled?this._enable({userAction:s}):this._disable({userAction:s})),e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}this.render()}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return W(this,null,function*(){return yield bt(e.data)})}updateState(e,n){const o=this.state,s=e.config?Q(Q({},o.config),e.config):o.config;this.state=fe(Q(Q({},this.state),e),{config:s}),!et(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:10,pointerEvents:"none"}),this.five.addExtraElement(this.container)}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("interiaPan",this.onFiveInteriaPan),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsGesture",this.onFiveWantsGesture),e.on("wantsPanGesture",this.onFiveWantsPanGesture),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsChangeMode",this.onFiveWantsChangeMode),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modelLoaded",this.onFiveModelLoaded),e.off("modeChange",this.onFiveModeChange),e.off("interiaPan",this.onFiveInteriaPan),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsGesture",this.onFiveWantsGesture),e.off("wantsPanGesture",this.onFiveWantsPanGesture),e.off("wantsTapGesture",this.onFiveWantsTapGesture),e.off("wantsChangeMode",this.onFiveWantsChangeMode),e.off("modelShownFloorChange",this.onModelShownFloorChange)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=fe(Q({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new po({target:this.container,intro:!0,props:n})}}const Ih=(i,t)=>new Ph(i,t);function kh(i){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);return n||o}function xh(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,o=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&o}class Dh extends zt{constructor(e,n){super(e);f(this,"name","modelFloorplanPlugin");f(this,"state");f(this,"data");f(this,"showState");f(this,"showPromise");f(this,"app");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"selector");f(this,"showRejection");f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"show",(...n)=>W(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show(e)}));f(this,"hide",(...n)=>W(this,[...n],function*(e={}){!this.state.enabled||(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));f(this,"updateSize",()=>{if(!this.data||!vo(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ao(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"highlight",e=>{!this.state.config.highlightEnable||(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(o=this.showRejection)==null||o.call(this,Ge.BreakOffByDisable),this.showPromise=void 0,(s=this.app)==null||s.$destroy(),this.app=void 0,(r=this.container)==null||r.remove(),this.removeEventListener()});f(this,"_enable",e=>{const{userAction:n}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n}))});f(this,"_show",e=>W(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(Ge.ModelNotLoaded);if(!this.data)throw new Error(Ge.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},o=Q(Q({},n),e),s=()=>W(this,null,function*(){this.hooks.emit("show",{userAction:o.userAction,auto:o.isAutoShow});let a=!1,l;this.showRejection=h=>{a=!0,l=h};const[c]=yield ai($a(this.five,this.showState,o.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(Ge.UnknownError);this.updateSize(),this.updatePosition(),this.floorIndex=o.floorIndex,this.five.model.show(this.floorIndex);const u=o.modelOpacity,d=o.immediately?0:Za;Ut(this.five,u,d),this.render(d)});return this.showPromise=s().then(()=>{this.hooks.emit("showAnimationEnded",{auto:o.isAutoShow,userAction:o.userAction})}).catch(a=>{if(this.updateState({visible:!1},o.userAction),!o.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var s;(s=this.showRejection)==null||s.call(this,Ge.BreakOffByHide),this.showPromise=void 0;const o=Q(Q({},{userAction:!0,isAutoHide:!1}),e);Ut(this.five,1,0),this.hooks.emit("hide",{auto:o.isAutoHide,userAction:o.userAction}),this.render()});f(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});f(this,"onFivePanoArrived",e=>{var n;!((n=this.five)!=null&&n.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{if(!this.state.visible||this.showPromise)return;const o=this.five.getCurrentState();this.updatePosition(),this.updateSize(),kh(o)&&(this.updateState({visible:!1},n),this._hide({userAction:n}))});f(this,"onFiveWantsPanGesture",(e,n)=>{if(this.five.getCurrentState().mode===this.showState.mode&&this.state.config.autoShowEnable!==!1){if(n&&this.state.visible)return this.five.updateCamera(this.showState,0),!1;if(n&&!this.state.visible){if(this.isHiddenByHideFunc)return;const o=this.five.getCurrentState();return o.mode!==this.showState.mode||this.state.visible?void 0:(xh(o)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})),!1)}}});f(this,"onFiveWantsTapGesture",()=>this.handleClick());f(this,"onFiveWantsChangeMode",(e,n)=>{n==="Panorama"&&e===this.showState.mode&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5")),this.showState={mode:"Mapview",longitude:0,latitude:Math.PI/2,fov:90};const o={northDesc:"\u5317",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:vt,attachedTo:pt.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:a=>a.toString()},s=n?vi(n,["selector","scale"]):{},r=Q(Q({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return W(this,null,function*(){function s(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const r=e;r&&!r.version&&console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield bt(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled&&(e.enabled?this._enable({userAction:s}):this._disable({userAction:s})),e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}updatePosition(){var a;const e=go(this.five,this.floorIndex,this.state.config.attachedTo),n=(a=this.five.model)==null?void 0:a.bounding.getCenter(new I.Vector3).setY(e);if(!n)return;const o=n.clone().project(this.five.camera),s=(o.x+1)/2,r=-(o.y-1)/2;this.container.style.left=s*100+"%",this.container.style.top=r*100+"%"}formatData(e){return W(this,null,function*(){return yield bt(e.data)})}updateState(e,n){const o=this.state,s=e.config?Q(Q({},o.config),e.config):o.config;this.state=fe(Q(Q({},this.state),e),{config:s}),!et(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:10,pointerEvents:"none"}),this.five.addExtraElement(this.container)}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsPanGesture",this.onFiveWantsPanGesture),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsChangeMode",this.onFiveWantsChangeMode),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modelLoaded",this.onFiveModelLoaded),e.off("modeChange",this.onFiveModeChange),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsPanGesture",this.onFiveWantsPanGesture),e.off("wantsTapGesture",this.onFiveWantsTapGesture),e.off("wantsChangeMode",this.onFiveWantsChangeMode),e.off("modelShownFloorChange",this.onModelShownFloorChange)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=fe(Q({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new po({target:this.container,intro:!0,props:n})}}const Lh=(i,t)=>new Dh(i,t);class Sh extends zt{constructor(e,n){super(e);f(this,"name","topviewFloorplanPlugin");f(this,"state");f(this,"data");f(this,"app");f(this,"selector");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"updateSize",()=>{if(!this.data||!this.container||!this.wrapper||this.five.getCurrentState().mode!=="Topview")return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ao(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"highlight",e=>{!this.state.config.highlightEnable||(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s;const{userAction:n}=e;(o=this.app)==null||o.$destroy(),this.app=void 0,(s=this.container)==null||s.remove(),this.removeEventListener(),this.hooks.emit("disable",{userAction:n})});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",(...[e,,,,n])=>{e!=="Topview"&&this.state.visible&&(this.updateState({visible:!1},n),this._hide({userAction:n}))});f(this,"onFivePanoArrived",e=>{var n;!((n=this.five)!=null&&n.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{!this.state.visible||(this.updatePosition(),this.updateSize())});f(this,"onFiveWantsGesture",e=>{if(!(e!=="pan"&&e!=="pinch"&&e!=="mouseWheel")&&this.state.visible&&!this.state.config.gestureEnable)return!1});f(this,"onFiveWantsMoveToPano",()=>{if(this.state.visible&&this.state.config.preventRoomClick)return!1});f(this,"onFiveInitAnimationEnded",(...[,,e])=>{const{mode:n}=this.five.getCurrentState();n==="Topview"&&!this.isHiddenByHideFunc&&!this.state.visible&&this.state.config.autoShowEnable&&(this.updateState({visible:!0},e),this._show({userAction:e}))});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"));const o={northDesc:"\u5317",modelOpacity:1,cameraEnable:!0,hoverEnable:!0,highlightEnable:!1,compassEnable:!0,gestureEnable:!1,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:vt,attachedTo:pt.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:a=>a.toString()},s=n?vi(n,["selector","scale"]):{},r=Q(Q({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return W(this,null,function*(){function s(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const r=e;r&&!r.version&&console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield bt(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}updatePosition(){var a;const e=go(this.five,this.floorIndex,this.state.config.attachedTo),n=(a=this.five.model)==null?void 0:a.bounding.getCenter(new I.Vector3).setY(e);if(!n)return;const o=n.clone().project(this.five.camera),s=(o.x+1)/2,r=-(o.y-1)/2;this.container.style.left=s*100+"%",this.container.style.top=r*100+"%"}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}show(){return W(this,arguments,function*(e={}){if(this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show({userAction:n})})}hide(){return W(this,arguments,function*(e={}){if(this.isHiddenByHideFunc=!0,!this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},n),this._hide({userAction:n})})}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled){const r={userAction:s};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return W(this,null,function*(){return yield bt(e.data)})}_show(e){return W(this,null,function*(){if(!this.state.enabled)return;this.isHiddenByHideFunc=!1;const{userAction:n}=e;this.hooks.emit("show",{userAction:n,auto:!1}),this.five.getCurrentState().mode!=="Topview"&&(yield Ka(this.five,["Topview",void 0,void 0,n])),this.five.model.show(this.floorIndex),this.updatePosition(),this.updateSize();const o=500,s=this.state.config.modelOpacity;Ut(this.five,s,o),this.hooks.emit("showAnimationEnded",{userAction:n,auto:!1}),this.render()})}_hide(e){return W(this,null,function*(){if(!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("hide",{userAction:n,auto:!1});const o=1,s=0;Ut(this.five,o,s),this.render()})}_enable(e){const{userAction:n}=e;this.addEventListener(),this.wrapper&&this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n})}updateState(e,n){const o=this.state,s=e.config?Q(Q({},o.config),e.config):o.config;this.state=fe(Q(Q({},this.state),e),{config:s}),!et(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsGesture",this.onFiveWantsGesture),e.on("wantsMoveToPano",this.onFiveWantsMoveToPano),e.on("initAnimationEnded",this.onFiveInitAnimationEnded),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modeChange",this.onFiveModeChange),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsGesture",this.onFiveWantsGesture),e.off("wantsMoveToPano",this.onFiveWantsMoveToPano),e.off("initAnimationEnded",this.onFiveInitAnimationEnded),e.off("modelShownFloorChange",this.onModelShownFloorChange)}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate3d(-50%, -50%, 10px)",zIndex:10,pointerEvents:"none","will-change":"width, height"}),this.five.addExtraElement(this.container)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=fe(Q({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new po({target:this.container,intro:!0,props:n})}}const Mh=(i,t)=>new Sh(i,t);function bo(i,t=200){let e;return function(...n){e||(i(...n),e=setTimeout(function(){e=null},t))}}function Th(i){le(i,"svelte-1nqrlxd",".plugin-radar__camera-wrapper.svelte-1nqrlxd{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1nqrlxd{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1nqrlxd{position:absolute;left:-0.9375rem;top:-0.9375rem;width:1.0625rem;height:1.0625rem;transform-origin:0.9375rem 0.9375rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}")}function zh(i){let t,e,n;return{c(){t=z("div"),e=z("div"),n=z("div"),y(n,"class","plugin-radar__camera-rotate svelte-1nqrlxd"),T(n,"background-image","url("+(i[0]||vt)+")"),T(n,"transform",i[1]),y(e,"class","plugin-radar__camera-position svelte-1nqrlxd"),T(e,"transform",i[2]),y(t,"class","plugin-radar__camera-wrapper svelte-1nqrlxd")},m(o,s){M(o,t,s),j(t,e),j(e,n)},p(o,[s]){s&1&&T(n,"background-image","url("+(o[0]||vt)+")"),s&2&&T(n,"transform",o[1]),s&4&&T(e,"transform",o[2])},i:U,o:U,d(o){o&&S(t)}}}function Bh(i){return`rotate(${Math.floor(i/Math.PI*180)*-1+45}deg)`}function jh(i,t,e){let n,o,{five:s}=t,{pxmm:r}=t,{floorplanData:a}=t,{cameraImageUrl:l}=t,c=s.getCurrentState().panoIndex,u=s.getCurrentState().longitude;function d(A,v){const p=A.bounding,g=A.observers[v];if(!g)return"";const b=(p.max.x-p.min.x)*r,w=(p.max.y-p.min.y)*r,x=Math.floor(g.positionInImage.x*b),k=Math.floor(g.positionInImage.y*w);return`translate(${x}px, ${k}px)`}function h(A){e(6,c=A)}const m=bo(A=>{e(7,u=A.longitude)},1e3/60);return Ue(()=>(s.on("panoWillArrive",h),s.on("cameraDirectionUpdate",m),function(){s.off("panoWillArrive",h),s.off("cameraDirectionUpdate",m)})),i.$$set=A=>{"five"in A&&e(3,s=A.five),"pxmm"in A&&e(4,r=A.pxmm),"floorplanData"in A&&e(5,a=A.floorplanData),"cameraImageUrl"in A&&e(0,l=A.cameraImageUrl)},i.$$.update=()=>{i.$$.dirty&96&&e(2,n=d(a,c)),i.$$.dirty&128&&e(1,o=Bh(u))},[l,o,n,s,r,a,c,u]}class Vh extends oe{constructor(t){super(),ie(this,t,jh,zh,ne,{five:3,pxmm:4,floorplanData:5,cameraImageUrl:0},Th)}}function Oh(i){le(i,"svelte-1i87fz7",".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}")}function As(i,t,e){const n=i.slice();return n[1]=t[e],n}function vs(i,t){let e,n,o=`${t[1].icon.width/16}rem`,s=`${t[1].icon.height/16}rem`,r,a=`${t[1].positionInImage.y*100}%`,l=`${t[1].positionInImage.x*100}%`;return{key:i,first:null,c(){e=z("div"),n=z("div"),r=ee(),y(n,"class","plugin-pano-floorplan__extra-object-item svelte-1i87fz7"),T(n,"background-image",`url(${t[1].icon.url})`),T(n,"width",o),T(n,"height",s),y(e,"class","plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"),T(e,"top",a),T(e,"left",l),this.first=e},m(c,u){M(c,e,u),j(e,n),j(e,r)},p(c,u){t=c,u&1&&T(n,"background-image",`url(${t[1].icon.url})`),u&1&&o!==(o=`${t[1].icon.width/16}rem`)&&T(n,"width",o),u&1&&s!==(s=`${t[1].icon.height/16}rem`)&&T(n,"height",s),u&1&&a!==(a=`${t[1].positionInImage.y*100}%`)&&T(e,"top",a),u&1&&l!==(l=`${t[1].positionInImage.x*100}%`)&&T(e,"left",l)},d(c){c&&S(e)}}}function Rh(i){let t,e=[],n=new Map,o=i[0];const s=r=>r[1].id;for(let r=0;r<o.length;r+=1){let a=As(i,o,r),l=s(a);n.set(l,e[r]=vs(l,a))}return{c(){t=z("div");for(let r=0;r<e.length;r+=1)e[r].c();y(t,"class","plugin-pano-floorplan__extra-objects svelte-1i87fz7")},m(r,a){M(r,t,a);for(let l=0;l<e.length;l+=1)e[l].m(t,null)},p(r,[a]){a&1&&(o=r[0],e=qe(e,a,s,1,r,o,n,t,ho,vs,null,As))},i:U,o:U,d(r){r&&S(t);for(let a=0;a<e.length;a+=1)e[a].d()}}}function Qh(i,t,e){let{extraObjects:n=[]}=t;return i.$$set=o=>{"extraObjects"in o&&e(0,n=o.extraObjects)},[n]}class Fh extends oe{constructor(t){super(),ie(this,t,Qh,Rh,ne,{extraObjects:0},Oh)}}function bs(i){let t,e;const n=[{five:i[0],pxmm:i[1],floorIndex:i[2],floorplanData:i[4],onRoomHeightClick:i[6]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new Ja({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&87?Re(n,[{five:s[0],pxmm:s[1],floorIndex:s[2],floorplanData:s[4],onRoomHeightClick:s[6]}]):{};t.$set(a)},i(s){e||(P(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function Hh(i){let t,e,n,o,s,r;const a=[{floorIndex:i[2],floorplanData:i[4]}];let l={};for(let u=0;u<a.length;u+=1)l=Be(l,a[u]);t=new Ua({props:l}),n=new Fh({props:{extraObjects:i[5]}});let c=i[3]&&bs(i);return{c(){K(t.$$.fragment),e=ee(),K(n.$$.fragment),o=ee(),c&&c.c(),s=me()},m(u,d){J(t,u,d),M(u,e,d),J(n,u,d),M(u,o,d),c&&c.m(u,d),M(u,s,d),r=!0},p(u,[d]){const h=d&20?Re(a,[{floorIndex:u[2],floorplanData:u[4]}]):{};t.$set(h);const m={};d&32&&(m.extraObjects=u[5]),n.$set(m),u[3]?c?(c.p(u,d),d&8&&P(c,1)):(c=bs(u),c.c(),P(c,1),c.m(s.parentNode,s)):c&&(se(),L(c,1,1,()=>{c=null}),re())},i(u){r||(P(t.$$.fragment,u),P(n.$$.fragment,u),P(c),r=!0)},o(u){L(t.$$.fragment,u),L(n.$$.fragment,u),L(c),r=!1},d(u){Z(t,u),u&&S(e),Z(n,u),u&&S(o),c&&c.d(u),u&&S(s)}}}function _h(i,t,e){let n,{five:o}=t,{pxmm:s}=t,{floorIndex:r}=t,{hoverEnable:a}=t,{floorplanData:l}=t,{extraObjects:c=[]}=t;const u=void 0;return i.$$set=d=>{"five"in d&&e(0,o=d.five),"pxmm"in d&&e(1,s=d.pxmm),"floorIndex"in d&&e(2,r=d.floorIndex),"hoverEnable"in d&&e(3,a=d.hoverEnable),"floorplanData"in d&&e(4,l=d.floorplanData),"extraObjects"in d&&e(7,c=d.extraObjects)},i.$$.update=()=>{i.$$.dirty&132&&e(5,n=c==null?void 0:c.filter(d=>d.floorIndex===r))},[o,s,r,a,l,n,u,c]}class Gh extends oe{constructor(t){super(),ie(this,t,_h,Hh,ne,{five:0,pxmm:1,floorIndex:2,hoverEnable:3,floorplanData:4,extraObjects:7})}}function Wh(i){le(i,"svelte-1mvqyqq",".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}")}function ys(i){let t,e,n,o,s=i[6]!==0&&ws(i);return{c(){t=z("div"),s&&s.c(),y(t,"class","plugin-floorplan-radar svelte-1mvqyqq")},m(r,a){M(r,t,a),s&&s.m(t,null),e=!0,n||(o=[at(an.call(null,t)),ge(t,"clientWidth",i[11]),ge(t,"clientHeight",i[12])],n=!0)},p(r,a){r[6]!==0?s?(s.p(r,a),a&64&&P(s,1)):(s=ws(r),s.c(),P(s,1),s.m(t,null)):s&&(se(),L(s,1,1,()=>{s=null}),re())},i(r){e||(P(s),e=!0)},o(r){L(s),e=!1},d(r){r&&S(t),s&&s.d(),n=!1,He(o)}}}function ws(i){let t,e,n,o,s=`${i[7]}px`,r=`${i[10]}px`,a;const l=[{five:i[0],pxmm:i[8],floorIndex:i[9],floorplanData:i[3],hoverEnable:i[2],extraObjects:i[5]}];let c={};for(let h=0;h<l.length;h+=1)c=Be(c,l[h]);e=new Gh({props:c});const u=[{pxmm:i[8],five:i[0],floorplanData:i[3],cameraImageUrl:i[4]}];let d={};for(let h=0;h<u.length;h+=1)d=Be(d,u[h]);return o=new Vh({props:d}),{c(){t=z("div"),K(e.$$.fragment),n=ee(),K(o.$$.fragment),y(t,"class","plugin-floorplan-radar-container svelte-1mvqyqq"),T(t,"width",s),T(t,"height",r)},m(h,m){M(h,t,m),J(e,t,null),j(t,n),J(o,t,null),a=!0},p(h,m){const A=m&813?Re(l,[{five:h[0],pxmm:h[8],floorIndex:h[9],floorplanData:h[3],hoverEnable:h[2],extraObjects:h[5]}]):{};e.$set(A);const v=m&281?Re(u,[{pxmm:h[8],five:h[0],floorplanData:h[3],cameraImageUrl:h[4]}]):{};o.$set(v),m&128&&s!==(s=`${h[7]}px`)&&T(t,"width",s),m&1024&&r!==(r=`${h[10]}px`)&&T(t,"height",r)},i(h){a||(P(e.$$.fragment,h),P(o.$$.fragment,h),a=!0)},o(h){L(e.$$.fragment,h),L(o.$$.fragment,h),a=!1},d(h){h&&S(t),Z(e),Z(o)}}}function Nh(i){let t,e,n=i[1]&&ys(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&P(n,1)):(n=ys(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}let Xh=0;function Yh(i,t,e){var g,b;let{five:n}=t,{visible:o}=t,{hoverEnable:s}=t,{floorplanData:r}=t,{cameraImageUrl:a}=t,{extraObjects:l=[]}=t,c=0,u=(b=(g=n.work.observers[n.getCurrentState().panoIndex])==null?void 0:g.floorIndex)!=null?b:0,d=0,h=0,m=0;function A(w){e(9,u=n.work.observers[w].floorIndex)}Ue(()=>(n.on("panoArrived",A),()=>{n.off("panoArrived",A)}));const v=w=>{e(6,d=w.detail)},p=w=>{e(10,m=w.detail)};return i.$$set=w=>{"five"in w&&e(0,n=w.five),"visible"in w&&e(1,o=w.visible),"hoverEnable"in w&&e(2,s=w.hoverEnable),"floorplanData"in w&&e(3,r=w.floorplanData),"cameraImageUrl"in w&&e(4,a=w.cameraImageUrl),"extraObjects"in w&&e(5,l=w.extraObjects)},i.$$.update=()=>{if(i.$$.dirty&200){const w=Math.min(d,Xh),{max:x,min:k}=r.bounding,C=x.x-k.x,D=x.y-k.y,E=function(){return C>D?[w,w/C*D]:[w/D*C,w]}();e(7,h=E[0]),e(10,m=E[1]),e(8,c=h/C)}},[n,o,s,r,a,l,d,h,c,u,m,v,p]}class Uh extends oe{constructor(t){super(),ie(this,t,Yh,Nh,ne,{five:0,visible:1,hoverEnable:2,floorplanData:3,cameraImageUrl:4,extraObjects:5},Wh)}}class qh extends zt{constructor(e,n){super(e);f(this,"name","panoFloorplanRadarPlugin");f(this,"state");f(this,"data");f(this,"app");f(this,"wrapperSelector","");f(this,"wrapper",null);f(this,"disposed",!1);f(this,"extraObjects",[]);f(this,"dispose",()=>{var e;this.disposed=!0,(e=this.app)==null||e.$destroy(),this.wrapper=null,this.wrapperSelector="",this.hooks.emit("dispose")});f(this,"_disable",e=>{var o;const{userAction:n}=e;(o=this.app)==null||o.$destroy(),this.app=void 0,this.hooks.emit("disable",{userAction:n})});this.five=e;const o={hoverEnable:!1,cameraImageUrl:vt},s=n!=null&&n.configs?n.configs:{},r=Q(Q({},o),s);this.state={enabled:!0,visible:!0,config:r},n!=null&&n.wrapper&&console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"),typeof(n==null?void 0:n.wrapper)=="string"?this.wrapperSelector=n.wrapper:(n==null?void 0:n.wrapper)instanceof Element&&(this.wrapper=n.wrapper),e.once("dispose",this.dispose)}load(e,n,o=!0){return W(this,null,function*(){function s(c){return Object.prototype.hasOwnProperty.apply(c,["version"])}const r=JSON.parse(JSON.stringify(e)),a=s(r)?r.data:r,l=this.data;this.data=yield bt(a),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,l),n&&this.updateState(n,o),this.render()})}show(){return W(this,arguments,function*(e={}){if(this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show({userAction:n})})}hide(){return W(this,arguments,function*(e={}){if(!this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},n),this._hide({userAction:n})})}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled){const r={userAction:s};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}appendTo(e){this.wrapper=e,this.render()}changeConfigs(e,n=!0){this.setState({config:e},{userAction:n}),this.render()}setExtraObjectsWith3DPositions(e){!this.data||(this.extraObjects=bh(e,this.five,this.data),this.render())}formatData(e){return W(this,null,function*(){return yield bt(e.data)})}_enable(e){const{userAction:n}=e;this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n})}_show(e){if(this.disposed||!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("show",{userAction:n}),this.render()}_hide(e){if(this.disposed||!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("hide",{userAction:n}),this.render()}updateState(e,n){const o=this.state;this.state=Q(Q({},this.state),e),!et(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}render(){if(this.disposed||!this.state.enabled)return;if(!this.wrapper&&this.wrapperSelector){const n=document.querySelector(this.wrapperSelector);this.wrapper=n}if(!this.data||!this.wrapper)return;const e=fe(Q({},this.state.config),{five:this.five,floorplanData:this.data,visible:this.state.visible,extraObjects:this.extraObjects});this.app?this.app.$set(e):this.app=new Uh({target:this.wrapper,props:e})}}const Jh=(i,t)=>new qh(i,t),Zh=[{type:0,floorType:1,roomType:"100900000012",name:"\u5176\u4ED6"},{type:1,floorType:1,roomType:"100900000002",name:"\u5BA2\u5385"},{type:2,floorType:1,roomType:"100900000002",name:"\u9910\u5385"},{type:3,floorType:0,roomType:"100900000001",name:"\u5367\u5BA4"},{type:4,floorType:0,roomType:"100900000001",name:"\u4E66\u623F"},{type:5,floorType:3,roomType:"100900000004",name:"\u536B\u751F\u95F4"},{type:6,floorType:3,roomType:"100900000004",name:"\u6DCB\u6D74\u95F4"},{type:7,floorType:3,roomType:"100900000004",name:"\u6D17\u624B\u95F4"},{type:8,floorType:3,roomType:"100900000003",name:"\u53A8\u623F"},{type:9,floorType:1,roomType:"100900000003",name:"\u5F00\u653E\u53A8\u623F",onlySubArea:!0},{type:10,floorType:0,roomType:"100900000001",name:"\u591A\u529F\u80FD\u95F4"},{type:11,floorType:0,roomType:"100900000009",name:"\u4FDD\u59C6\u95F4"},{type:12,floorType:4,roomType:"100900000005",name:"\u9633\u53F0"},{type:13,floorType:4,roomType:"100900000006",name:"\u9732\u53F0"},{type:14,floorType:0,roomType:"100900000008",name:"\u50A8\u7269\u95F4"},{type:15,floorType:0,roomType:"100900000013",name:"\u8863\u5E3D\u95F4"},{type:16,floorType:0,roomType:"100900000011",name:"\u9601\u697C"},{type:17,floorType:2,roomType:"100900000007",name:"\u82B1\u56ED"},{type:18,floorType:5,roomType:"100900000010",name:"\u8F66\u5E93"},{type:19,floorType:1,roomType:"100900000012",name:"\u7535\u68AF"},{type:20,floorType:1,roomType:"100900000012",name:"\u5730\u4E0B\u5BA4"},{type:21,floorType:1,roomType:"100900000012",name:"\u5929\u4E95"},{type:22,floorType:1,roomType:"100900000012",name:"\u9633\u5149\u623F"},{type:23,floorType:1,roomType:"100900000012",name:"\u8FC7\u9053"},{type:24,floorType:1,roomType:"100900000012",name:"\u697C\u68AF\u95F4"},{type:25,floorType:1,roomType:"100900000012",name:"\u95E8\u5385"},{type:26,floorType:2,roomType:"100900000012",name:"\u5165\u6237\u82B1\u56ED"},{type:27,floorType:1,roomType:"100900000012",name:"\u7384\u5173"},{type:28,floorType:1,roomType:"100900000012",name:"\u6311\u7A7A"},{type:29,floorType:4,roomType:"100900000012",name:"\u667E\u6652\u533A"},{type:30,floorType:4,roomType:"100900000012",name:"\u6D17\u8863\u623F"},{type:31,floorType:0,roomType:"100900000012",name:"\u5A31\u4E50\u533A"},{type:32,floorType:0,roomType:"100900000012",name:"\u5065\u8EAB\u533A"},{type:33,floorType:0,roomType:"100900000012",name:"\u63A5\u5F85\u533A"},{type:34,floorType:0,roomType:"100900000012",name:"\u5F71\u97F3\u533A"},{type:35,floorType:1,roomType:"100900000012",name:"\u9910\u996E\u533A"},{type:36,floorType:1,roomType:"100900000012",name:"\u5176\u4ED6",onlySubArea:!0},{type:37,floorType:1,roomType:"100900000002",name:"\u8D77\u5C45\u5BA4"},{type:38,floorType:0,roomType:"100900000001",name:"\u4E3B\u5367"},{type:39,floorType:0,roomType:"100900000001",name:"\u6B21\u5367"},{type:40,floorType:0,roomType:"100900000001",name:"\u4F18\u5316\u95F4"},{type:41,floorType:0,roomType:"100900000001",name:"\u529E\u516C\u5BA4"},{type:42,floorType:0,roomType:"100900000001",name:"\u4F1A\u8BAE\u5BA4"},{type:43,floorType:0,roomType:"100900000001",name:"\u6D3D\u8C08\u95F4"},{type:44,floorType:1,roomType:"100900000002",name:"\u5171\u4EAB\u5927\u5385"},{type:45,floorType:1,roomType:"100900000012",name:"\u6C34\u5427"},{type:46,floorType:0,roomType:"100900000015",name:"\u51FA\u5165\u53E3"},{type:47,floorType:0,roomType:"100900000015",name:"\u5927\u5385"},{type:48,floorType:0,roomType:"100900000015",name:"\u5305\u53A2"},{type:49,floorType:0,roomType:"100900000015",name:"\u5176\u4ED6"},{type:50,floorType:0,roomType:"100900000016",name:"\u51FA\u5165\u53E3"},{type:51,floorType:0,roomType:"100900000016",name:"\u529E\u516C\u533A"},{type:52,floorType:0,roomType:"100900000016",name:"\u8001\u677F\u95F4"},{type:53,floorType:0,roomType:"100900000016",name:"\u4F1A\u8BAE\u5BA4"},{type:54,floorType:0,roomType:"100900000016",name:"\u4F11\u606F\u533A/\u6C34\u5427"},{type:55,floorType:0,roomType:"100900000016",name:"\u5176\u4ED6"},{type:56,floorType:2,roomType:"100900000012",name:"\u7A7A\u4E2D\u82B1\u56ED"},{type:57,floorType:0,roomType:"100900000001",name:"\u6D0B\u5BA4"},{type:58,floorType:0,roomType:"100900000001",name:"\u548C\u5BA4"}],Kh=[{type:0,description:"\u6728\u8D28\u5730\u677F"},{type:1,description:"\u74F7\u7816\u5730\u9762"},{type:2,description:"\u6237\u5916\u5730\u9762"},{type:3,description:"\u536B\u751F\u95F4\u5730\u9762"},{type:4,description:"\u9633\u53F0\u5730\u9762"},{type:5,description:"\u8F66\u5E93\u5730\u9762"}],$h=[{roomType:"100900000001",description:"\u5BA4"},{roomType:"100900000002",description:"\u5385"},{roomType:"100900000003",description:"\u53A8"},{roomType:"100900000004",description:"\u536B"},{roomType:"100900000005",description:"\u9633\u53F0"},{roomType:"100900000006",description:"\u9732\u53F0"},{roomType:"100900000007",description:"\u82B1\u56ED"},{roomType:"100900000008",description:"\u50A8"},{roomType:"100900000009",description:"\u4FDD\u59C6\u95F4"},{roomType:"100900000010",description:"\u8F66\u5E93"},{roomType:"100900000011",description:"\u9601\u697C"},{roomType:"100900000012",description:"\u5176\u4ED6"},{roomType:"100900000013",description:"\u8863"},{roomType:"100900000015",description:"\u5546\u94FA"},{roomType:"100900000016",description:"\u5199\u5B57\u697C"}],zi=(i,t,e)=>{const n=new I.Matrix4,o=new I.Euler(i,t,e,"YXZ");return n.makeRotationFromEuler(o),n},ef=(i,{scale:t,rotation:e,position:n})=>{if(t&&i.scale.set(t,t,t),e){const[o,s,r]=e;o&&i.applyMatrix4(zi(o,0,0)),s&&i.applyMatrix4(zi(0,s,0)),r&&i.applyMatrix4(zi(0,0,r))}return n&&i.position.set(n.x,n.y,n.z),i};function el(i,t){i.traverse(e=>{var n;if(e.type==="Mesh"){const o=e,s=Q({map:o.material.map||{}},t);o.material=new V.MeshBasicMaterial(s),o.renderOrder=1,((n=e.parent)==null?void 0:n.type)==="Mesh"&&(e.renderOrder=e.parent.renderOrder+1)}})}const tf=(i,t)=>{var u;const e=t.fbx_url||"//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX",n=(u=t.north_rad)!=null?u:void 0,o={},s=d=>W(exports,null,function*(){var H;const h=(d==null?void 0:d.fbx_url)||e,m=(H=d==null?void 0:d.north_rad)!=null?H:n;if(typeof m!="number")throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');const A=i.model.bounding,v=A.max.x-A.min.x,p=A.max.z-A.min.z,g=Math.max(v,p),w=yield new pa.FBXLoader().loadAsync(h);el(w,{transparent:!0,side:I.DoubleSide,blending:I.AdditiveBlending});const x=[0,m-Math.PI/2,0],{model:{bounding:{max:{x:k,z:C},min:{x:D,y:E,z:O}}}}=i;o.yBase=E;const G={x:(k+D)/2,y:E-1.6,z:(C+O)/2},X=.0045*g;return ef(w,{position:G,rotation:x,scale:X}),o.object=w,!0}),r=({latitude:d})=>{if(!o.object)return;const h=a(d);h&&(o.object.position.y=h)},a=d=>{if(o.yBase===void 0)return;const h=.6;if(d>=Math.PI/4)return o.yBase-(h+1.6);const m=d*(4/Math.PI);return o.yBase-(h*m+1.6)};return{load:s,disable:()=>{!o.object||(i.scene.remove(o.object),i.needsRender=!0,i.off("cameraDirectionUpdate",r))},enable:()=>{if(!o.object)return;const d=a(i.getPose().latitude);d&&(o.object.position.y=d),i.scene.add(o.object),i.needsRender=!0,i.on("cameraDirectionUpdate",r)}}};function nf(i,t){var c,u,d,h,m;const e=(c=t==null?void 0:t.size)!=null?c:512,n=(u=t==null?void 0:t.fontSize)!=null?u:e*(35/256)*1.2,o=(d=t==null?void 0:t.backgroundColor)!=null?d:"rgba(0,0,0,0)",s=(h=t==null?void 0:t.fontColor)!=null?h:"#fff",r=(m=t==null?void 0:t.textAlign)!=null?m:"center",a=document.createElement("canvas");a.setAttribute("width",e+""),a.setAttribute("height",e+"");const l=a.getContext("2d");return l.fillStyle=o,l.fillRect(0,0,e,e),l.font=`${n}px "\u5FAE\u8F6F\u96C5\u9ED1"`,l.textAlign=r,l.fillStyle=s,l.fillText(i,e/2,e*.7),new V.CanvasTexture(a)}const of=({x:i,y:t,z:e})=>new V.Vector3(i,t,e),sf=(i,t)=>{var v,p,g;const e={},n=(v=t.animationEnabled)!=null?v:!0,o=(p=t.position)!=null?p:void 0,s=(g=t.rad)!=null?g:void 0,r=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx",a=[],l=b=>W(exports,null,function*(){var G,X,H,B,F,R,N,_;const w=(G=b==null?void 0:b.position)!=null?G:o;if(!w)return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));const x=of(w),k=(X=b==null?void 0:b.rad)!=null?X:s,C=(H=b==null?void 0:b.fbx_url)!=null?H:r;if(e.rad=k,k===void 0)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${k}`));const D=yield new pa.FBXLoader().loadAsync(C);D.position.copy(x),D.rotation.z=k,D.scale.set(.8,.8,.8),el(D,{transparent:!0,side:I.DoubleSide});const E=(N=(R=(F=(B=D.children)==null?void 0:B[0])==null?void 0:F.children)==null?void 0:R[3])==null?void 0:N.clone();if(!E)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${E}`));const O=(_=t.name)!=null?_:"\u5165\u6237\u95E8";return E.material=new V.MeshBasicMaterial({transparent:!0,map:nf(O)}),E.renderOrder=3,D.children[0].add(E),e.object=D,!0}),c=()=>{if(e.animation)return;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ",e.object);const b=1,w=new V.AnimationMixer(e.object);a.push(w);const x=w.clipAction(e.object.animations[0]);x.timeScale=b;let k;const C=()=>{let G=0,X=0;const H=1e3/30,B=F=>{G=requestAnimationFrame(B);const R=F-X;R<H||(X=F,a.forEach(N=>N.update(R/1e3)),i.needsRender=!0)};return G=requestAnimationFrame(B),()=>{cancelAnimationFrame(G)}},O={play:()=>{k||(x.play(),k=C(),requestAnimationFrame(()=>{e.object&&e.object.rotation.z!==e.rad&&(e.object.rotation.z=e.rad)}))},stop:()=>{x.stop(),k==null||k(),k=void 0}};e.animation=O},u=b=>{var x;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.enable(): object is ",e.object);((x=b==null?void 0:b.animationEnable)!=null?x:n)&&(e.animation||c(),e.animation.play()),i.scene.add(e.object),i.needsRender=!0},d=()=>{!e.object||(e.animation&&e.animation.stop(),i.scene.remove(e.object),i.needsRender=!0)},h=b=>b==="Floorplan"?u():d();return{load:l,enable:b=>(e.enabled||(e.enabled=!0,h(i.currentMode),i.on("modeChange",h),u(b)),!0),disable:()=>(e.enabled&&(e.enabled=!1,d(),i.off("modeChange",h)),!0)}};class yo extends bn.default.Tween{constructor(){super(...arguments);f(this,"disposeMethods",[]);f(this,"animationFrameDisposer");f(this,"onDispose",e=>(this.disposeMethods.push(e),this));f(this,"play",()=>(this.start(0),this.animationFrameDisposer=kn(e=>this.update(e)),this));f(this,"dispose",()=>{var e;this.stop(),(e=this.animationFrameDisposer)==null||e.call(this),this.disposeMethods.forEach(n=>n()),this.disposeMethods=[],bn.default.remove(this)})}}function tl(i,t=bn.default.Easing.Linear.None){const e=new yo({progress:0}).to({progress:1});return i!==void 0&&e.duration(i),t!==void 0&&e.easing(t),e}const Cn=window.requestAnimationFrame||(i=>setTimeout(i,16)),rf=window.cancelAnimationFrame||clearTimeout;function bi(i,t=0){t<=0?Cn(i):Cn(()=>bi(i,t-1))}function kn(i,t=60){let e=-1,n=0,o=-1;const s=1e3/t;function r(a){o===-1&&(o=a),e=Cn(r),!(a-n<s)&&(n=a,i&&i(a-o))}return e=Cn(r),function(){rf(e)}}function af(){const i=Date.now();return new Promise(t=>{Cn(()=>{t(Date.now()-i)})})}const lf=di.Easing;function cf(i,t,e,n=lf.Linear.None){const o=new di.Tween(i).to(t,e).easing(n);bi(()=>o.start(0));const s=kn(a=>{o.update(a)===!1&&s()}),r=[];return o.onDestroy=a=>(r.push(a),o),o.destroy=function(){this.stop(),Object.assign(o,{_onStartCallback:null,_onUpdateCallback:null,_onCompleteCallback:null,_onStopCallbackL:null});let a;for(;a=r.shift();)a();s()},o}function uf(i,t){return cf({progress:0},{progress:1},i,t)}var nl=(i=>(i.Move="Move",i.Rotate="Rotate",i))(nl||{}),$e=(i=>(i.Clockwise="Clockwise",i.Anticlockwise="Anticlockwise",i.Loop="Loop",i))($e||{});const Jn=Math.PI*2;function Cs(i){return(i%Jn+Jn)%Jn}function Es(i){return i%Jn}function Bi(i,t,e){return i+(t-i)*e}const $i=(i,t,e)=>{const n=Math.PI,o=n*2;return i=Cs(i),t=Cs(t),e===$e.Anticlockwise&&i<t&&(i+=o),e===$e.Clockwise&&t<i&&(t+=o),e===$e.Loop&&t-i>n?$i(i,t,$e.Anticlockwise):e===$e.Loop&&i-t>n?$i(i,t,$e.Clockwise):{from:i,to:t}},df=i=>{const t={},e=(l,c,...u)=>W(exports,[l,c,...u],function*(s,r,a={preload:!0}){return t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),s.mode&&s.mode!==i.currentMode&&(yield i.changeMode(s.mode)),a.preload&&s.panoIndex!==void 0&&s.panoIndex!==i.panoIndex&&(yield i.preloadPano(s.panoIndex)),a.asyncEndCallback&&(yield a.asyncEndCallback()),s.panoIndex===void 0&&s.fov===void 0&&s.latitude===void 0&&s.longitude===void 0?!0:yield new Promise((d,h)=>{const m=s.panoIndex!==void 0?s.panoIndex:i.panoIndex;m!==void 0?i.moveToPano(m,Object.assign({duration:r,moveEndCallback:()=>d(!0),moveCancelCallback:()=>h(!1)},s)):h(!1)})}),n=s=>{const r=i.state,a=Es(r.latitude),l=Es(s.latitude),{from:c,to:u}=$i(r.longitude,s.longitude,s.rotation||$e.Loop),d=r.fov,h=s.fov;return{from:{latitude:a,longitude:c,fov:d},to:{latitude:l,longitude:u,fov:h}}};return{move:e,rotate:(l,c,...u)=>W(exports,[l,c,...u],function*(s,r,a={}){t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),i.currentMode!==Ce.Five.Mode.Panorama&&(yield i.changeMode(Ce.Five.Mode.Panorama)),s.panoIndex!==void 0&&s.panoIndex!==i.panoIndex&&(a.preload&&(yield i.preloadPano(s.panoIndex)),yield new Promise((m,A)=>{if(!s.panoIndex){m(!0);return}i.moveToPano(s.panoIndex,{moveEndCallback:()=>m(!0),moveCancelCallback:()=>A(!1)})})),a.asyncEndCallback&&(yield a.asyncEndCallback());const{from:d,to:h}=n(s);return yield new Promise(m=>{const A=({progress:w})=>{const x={};x.longitude=Bi(d.longitude,h.longitude,w),x.latitude=Bi(d.latitude,h.latitude,w),x.fov=Bi(d.fov,h.fov,w),i.setState(x,!0)},v=()=>{m(!0)},p=()=>{m(!1)},g=s.rotateSpeed?Math.ceil(Math.abs(h.longitude-d.longitude)/s.rotateSpeed*1e3):r,b=uf(g,di.Easing.Linear.None).onUpdate(A).onComplete(v).onDestroy(p);s.rotation===$e.Loop&&b.repeat(1/0).yoyo(!0),t.interruptCallback=(w=!0)=>{b.destroy(),t.interruptCallback=void 0,t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=void 0),m(w)},t.timeoutId=setTimeout(()=>{t.interruptCallback&&t.interruptCallback(!0)},r)})})}};function Ps(i,t){return i.x===t.x&&i.y===t.y}function il(i,t){return Math.abs(i)===1/0&&Math.abs(t)===1/0?!0:Math.abs(i-t)<.001}function ui(i,t){return(t.y-i.y)/(t.x-i.x)}function ol(i,t,e){const n=ui(i[1],i[0]),o=ui(t[1],t[0]);if(isNaN(n)||isNaN(o)||il(n,o))return!1;if(On(i[0],t))return i[0];if(On(i[1],t))return i[1];if(On(t[0],i))return t[0];if(On(t[1],i))return t[1];if(e&&!hf(i,t))return!1;const s=i[0],r=t[0];if(Math.abs(n)===1/0)return{x:s.x,y:t[1].y-(t[1].x-s.x)*o};if(Math.abs(o)===1/0)return{x:r.x,y:i[1].y-(i[1].x-r.x)*n};const a=(r.y-s.y+n*s.x-o*r.x)/(n-o),l=n*a-n*s.x+s.y;return{x:a,y:l}}function On(i,t){return Ps(i,t[0])||Ps(i,t[1])?!0:(t[0].x-i.x)*(i.x-t[1].x)>=0&&(t[0].y-i.y)*(i.y-t[1].y)>=0&&il(ui(t[0],i),ui(i,t[1]))}function Rn(i,t,e){return(i.x-e.x)*(t.y-e.y)-(t.x-e.x)*(i.y-e.y)}function hf(i,t){return Math.max(i[0].x,i[1].x)>=Math.min(t[0].x,t[1].x)&&Math.max(t[0].x,t[1].x)>=Math.min(i[0].x,i[1].x)&&Math.max(i[0].y,i[1].y)>=Math.min(t[0].y,t[1].y)&&Rn(t[0],i[1],i[0])*Rn(i[1],t[1],i[0])>0&&Rn(i[0],t[1],t[0])*Rn(t[1],i[1],t[0])>0?1:0}function sl(i,t=0){t<=0?requestAnimationFrame(i):requestAnimationFrame(()=>sl(i,t-1))}const ff=`<style type="text/css">
115
+ `;return i.$$set=s=>{"content"in s&&e(0,n=s.content)},[n,o]}class cd extends oe{constructor(t){super(),ie(this,t,ld,ad,ne,{content:0},rd)}}function ud(i){le(i,"svelte-ozpg4a",".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}")}function dd(i){let t,e;return t=new sd({props:{url:i[1].url}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.url=n[1].url),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function hd(i){let t,e;return t=new cd({props:{content:i[0]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.content=n[0]),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function fd(i){let t,e,n,o;const s=[hd,dd],r=[];function a(l,c){return l[0]?0:l[1]?1:-1}return~(e=a(i))&&(n=r[e]=s[e](i)),{c(){t=z("div"),n&&n.c(),y(t,"class","floorplan-plugin__base-image svelte-ozpg4a")},m(l,c){M(l,t,c),~e&&r[e].m(t,null),o=!0},p(l,[c]){let u=e;e=a(l),e===u?~e&&r[e].p(l,c):(n&&(se(),L(r[u],1,1,()=>{r[u]=null}),re()),~e?(n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),I(n,1),n.m(t,null)):n=null)},i(l){o||(I(n),o=!0)},o(l){L(n),o=!1},d(l){l&&S(t),~e&&r[e].d()}}}function md(i,t,e){let n,o,{floorIndex:s}=t,{floorplanData:r}=t;return i.$$set=a=>{"floorIndex"in a&&e(2,s=a.floorIndex),"floorplanData"in a&&e(3,r=a.floorplanData)},i.$$.update=()=>{var a,l;i.$$.dirty&12&&e(1,n=r.outlines[s]),i.$$.dirty&12&&e(0,o=(l=(a=r.outlines)==null?void 0:a[s])==null?void 0:l.svgContent)},[o,n,s,r]}class Ua extends oe{constructor(t){super(),ie(this,t,md,fd,ne,{floorIndex:2,floorplanData:3},ud)}}function pd(i){le(i,"svelte-12pzct5",".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}")}function gd(i){let t,e=i[8].outerHTML+"",n;return{c(){t=new ei(!1),n=me(),t.a=n},m(o,s){t.m(e,o,s),M(o,n,s)},p(o,s){s&256&&e!==(e=o[8].outerHTML+"")&&t.p(e)},d(o){o&&S(n),o&&t.d()}}}function Ad(i){let t,e,n=i[1]&&No(i),o=i[0]&&Xo(i);return{c(){n&&n.c(),t=ee(),o&&o.c(),e=me()},m(s,r){n&&n.m(s,r),M(s,t,r),o&&o.m(s,r),M(s,e,r)},p(s,r){s[1]?n?n.p(s,r):(n=No(s),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),s[0]?o?o.p(s,r):(o=Xo(s),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(s){n&&n.d(s),s&&S(t),o&&o.d(s),s&&S(e)}}}function No(i){let t,e=i[2].name+"",n;return{c(){t=z("span"),n=ke(e),y(t,"class","floorplan-plugin__room-name")},m(o,s){M(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[2].name+"")&&Se(n,e)},d(o){o&&S(t)}}}function Xo(i){let t,e;return{c(){t=z("span"),e=ke(i[7]),y(t,"class","floorplan-plugin__room-size svelte-12pzct5")},m(n,o){M(n,t,o),j(t,e)},p(n,o){o&128&&Se(e,n[7])},d(n){n&&S(t)}}}function vd(i){let t,e,n;function o(a,l){if(a[3]===void 0)return Ad;if(a[8])return gd}let s=o(i),r=s&&s(i);return{c(){t=z("div"),r&&r.c(),y(t,"class","floorplan-plugin__room-label-item svelte-12pzct5"),T(t,"left",i[9]),T(t,"top",i[10]),T(t,"font-size",i[11]),T(t,"opacity",i[6]?"1":"0")},m(a,l){M(a,t,l),r&&r.m(t,null),e||(n=[at(an.call(null,t)),ge(t,"clientWidth",i[19]),ge(t,"clientHeight",i[20])],e=!0)},p(a,[l]){s===(s=o(a))&&r?r.p(a,l):(r&&r.d(1),r=s&&s(a),r&&(r.c(),r.m(t,null))),l&64&&T(t,"opacity",a[6]?"1":"0")},i:U,o:U,d(a){a&&S(t),r&&r.d(),e=!1,He(n)}}}function bd(i,t){const e=i[0],n=i[1];let o=!1;for(let s=0,r=t.length-1;s<t.length;r=s++){const a=t[s][0],l=t[s][1],c=t[r][0],u=t[r][1];l>n!=u>n&&e<(c-a)*(n-l)/(u-l)+a&&(o=!o)}return o}function yd(i,t,e){let n,o,s,r,a,{pxmm:l}=t,{roomAreaEnable:c}=t,{roomNameEnable:u}=t,{room:d}=t,{hoveredRoom:h}=t,{getRoomAreaText:m}=t,{getLabelElement:A}=t,{adaptiveRoomLabelVisibleEnable:v}=t;function p(H,B){if(B.width===0||B.height===0)return()=>!1;const F=H.path.map(({x:de,y:pe})=>[de,pe]),R=H.roomLabel.position,{x:N,y:_}=R,{width:$,height:Y}=B,ae=$/2,he=Y/2;return function(pe){const Pe=N*pe,Ie=_*pe,Me=F.map(([Ae,Ee])=>[Ae*pe,Ee*pe]);return[[Pe+ae,Ie-he],[Pe-ae,Ie-he],[Pe-ae,Ie+he],[Pe+ae,Ie+he]].every(Ae=>bd(Ae,Me))}}const g=document.body.clientWidth,b=document.body.clientHeight,w=d.roomLabel,P=w.positionInImage.x*100+"%",x=w.positionInImage.y*100+"%",C=(g<500||b<500?10:14)+"px";let D=0,E=0,O=!1;h.subscribe(function(B){e(16,O=!!B&&B.id===d.id)});const G=H=>{e(4,D=H.detail)},X=H=>{e(5,E=H.detail)};return i.$$set=H=>{"pxmm"in H&&e(12,l=H.pxmm),"roomAreaEnable"in H&&e(0,c=H.roomAreaEnable),"roomNameEnable"in H&&e(1,u=H.roomNameEnable),"room"in H&&e(2,d=H.room),"hoveredRoom"in H&&e(13,h=H.hoveredRoom),"getRoomAreaText"in H&&e(14,m=H.getRoomAreaText),"getLabelElement"in H&&e(3,A=H.getLabelElement),"adaptiveRoomLabelVisibleEnable"in H&&e(15,v=H.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{i.$$.dirty&12&&e(8,n=A==null?void 0:A(d)),i.$$.dirty&16388&&e(7,o=d.size?m(d.size):""),i.$$.dirty&48&&e(18,s={width:D,height:E}),i.$$.dirty&262148&&e(17,r=s?p(d,s):void 0),i.$$.dirty&233472&&e(6,a=v?O?!0:!!(r!=null&&r(l)):!0)},[c,u,d,A,D,E,a,o,n,P,x,C,l,h,m,v,O,r,s,G,X]}class wd extends oe{constructor(t){super(),ie(this,t,yd,vd,ne,{pxmm:12,roomAreaEnable:0,roomNameEnable:1,room:2,hoveredRoom:13,getRoomAreaText:14,getLabelElement:3,adaptiveRoomLabelVisibleEnable:15},pd)}}function Cd(i){le(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}")}function Yo(i,t,e){const n=i.slice();return n[12]=t[e],n}function Uo(i){let t,e=[],n=new Map,o,s,r,a=i[8];const l=c=>c[12].id;for(let c=0;c<a.length;c+=1){let u=Yo(i,a,c),d=l(u);n.set(d,e[c]=qo(d,u))}return{c(){t=z("div");for(let c=0;c<e.length;c+=1)e[c].c();y(t,"class","floorplan-plugin__room-labels svelte-13xux0b")},m(c,u){M(c,t,u);for(let d=0;d<e.length;d+=1)e[d].m(t,null);o=!0,s||(r=[at(an.call(null,t)),ge(t,"clientWidth",i[11])],s=!0)},p(c,u){u&447&&(a=c[8],se(),e=qe(e,u,l,1,c,a,n,t,Pt,qo,null,Yo),re())},i(c){if(!o){for(let u=0;u<a.length;u+=1)I(e[u]);o=!0}},o(c){for(let u=0;u<e.length;u+=1)L(e[u]);o=!1},d(c){c&&S(t);for(let u=0;u<e.length;u+=1)e[u].d();s=!1,He(r)}}}function qo(i,t){let e,n,o;const s=[{pxmm:t[7],room:t[12],hoveredRoom:t[2],roomAreaEnable:t[0],roomNameEnable:t[1],getLabelElement:t[4],getRoomAreaText:t[3],adaptiveRoomLabelVisibleEnable:t[5]}];let r={};for(let a=0;a<s.length;a+=1)r=Be(r,s[a]);return n=new wd({props:r}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(a,l){M(a,e,l),J(n,a,l),o=!0},p(a,l){t=a;const c=l&447?Re(s,[{pxmm:t[7],room:t[12],hoveredRoom:t[2],roomAreaEnable:t[0],roomNameEnable:t[1],getLabelElement:t[4],getRoomAreaText:t[3],adaptiveRoomLabelVisibleEnable:t[5]}]):{};n.$set(c)},i(a){o||(I(n.$$.fragment,a),o=!0)},o(a){L(n.$$.fragment,a),o=!1},d(a){a&&S(e),Z(n,a)}}}function Ed(i){let t,e,n=i[8]&&Uo(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[8]?n?(n.p(o,s),s&256&&I(n,1)):(n=Uo(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function Pd(i,t,e){let n,{floorIndex:o}=t,{roomAreaEnable:s}=t,{roomNameEnable:r}=t,{floorplanData:a}=t,{hoveredRoom:l}=t,{getRoomAreaText:c}=t,{getLabelElement:u}=t,{adaptiveRoomLabelVisibleEnable:d}=t,h=0,m=0;const A=v=>{e(6,h=v.detail)};return i.$$set=v=>{"floorIndex"in v&&e(9,o=v.floorIndex),"roomAreaEnable"in v&&e(0,s=v.roomAreaEnable),"roomNameEnable"in v&&e(1,r=v.roomNameEnable),"floorplanData"in v&&e(10,a=v.floorplanData),"hoveredRoom"in v&&e(2,l=v.hoveredRoom),"getRoomAreaText"in v&&e(3,c=v.getRoomAreaText),"getLabelElement"in v&&e(4,u=v.getLabelElement),"adaptiveRoomLabelVisibleEnable"in v&&e(5,d=v.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{if(i.$$.dirty&1536&&e(8,n=a.floorDatas[o].rooms),i.$$.dirty&1088){const{max:v,min:p}=a.bounding,g=v.x-p.x;e(7,m=h/g)}},[s,r,l,c,u,d,h,m,n,o,a,A]}class Id extends oe{constructor(t){super(),ie(this,t,Pd,Ed,ne,{floorIndex:9,roomAreaEnable:0,roomNameEnable:1,floorplanData:10,hoveredRoom:2,getRoomAreaText:3,getLabelElement:4,adaptiveRoomLabelVisibleEnable:5},Cd)}}function kd(i){le(i,"svelte-djlmk4",".floorplan-plugin__rule-labels.svelte-djlmk4.svelte-djlmk4{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-djlmk4.svelte-djlmk4{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4.svelte-djlmk4{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4.svelte-djlmk4{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4.svelte-djlmk4{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-djlmk4.svelte-djlmk4{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale-wrapper.svelte-djlmk4{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-djlmk4.svelte-djlmk4{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale.svelte-djlmk4{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute}.floorplan-plugin__rule-labels--top.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-djlmk4.svelte-djlmk4{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-text-item.svelte-djlmk4{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-djlmk4.svelte-djlmk4{width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}")}function Jo(i,t,e){const n=i.slice();return n[11]=t[e],n[13]=e,n}function Zo(i,t,e){const n=i.slice();return n[14]=t[e],n}function Ko(i){let t;return{c(){t=z("div"),y(t,"class","floorplan-plugin__rule-scale svelte-djlmk4"),T(t,"left",i[14].left*100+"%"),T(t,"bottom",i[14].bottom*100+"%")},m(e,n){M(e,t,n)},p:U,d(e){e&&S(t)}}}function $o(i,t){let e,n,o=t[1](t[11].distance)+"",s,r;return{key:i,first:null,c(){e=z("div"),n=z("div"),s=ke(o),r=ee(),y(n,"class","floorplan-plugin__rule-text svelte-djlmk4"),q(n,"is-row",t[2]),y(e,"class","floorplan-plugin__rule-text-item svelte-djlmk4"),T(e,"left",t[11].left*100+"%"),T(e,"bottom",t[11].bottom*100+"%"),this.first=e},m(a,l){M(a,e,l),j(e,n),j(n,s),j(e,r)},p(a,l){t=a,l&2&&o!==(o=t[1](t[11].distance)+"")&&Se(s,o)},d(a){a&&S(e)}}}function xd(i){let t,e,n,o,s,r,a=[],l=new Map,c,u=i[3],d=[];for(let A=0;A<u.length;A+=1)d[A]=Ko(Zo(i,u,A));let h=i[4];const m=A=>A[13];for(let A=0;A<h.length;A+=1){let v=Jo(i,h,A),p=m(v);l.set(p,a[A]=$o(p,v))}return{c(){t=z("div"),e=z("div"),n=ee(),o=z("div");for(let A=0;A<d.length;A+=1)d[A].c();s=ee(),r=z("div");for(let A=0;A<a.length;A+=1)a[A].c();y(e,"class","floorplan-plugin__rule-line svelte-djlmk4"),y(o,"class","floorplan-plugin__rule-scale-wrapper svelte-djlmk4"),q(o,"is-row",i[2]),y(r,"class","floorplan-plugin__rule-text-wrapper svelte-djlmk4"),y(t,"class",c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+i[0]+" svelte-djlmk4"),q(t,"is-row",i[2]),T(t,"width",i[2]?"100%":1/16+"rem"),T(t,"height",i[2]?1/16+"rem":"100%")},m(A,v){M(A,t,v),j(t,e),j(t,n),j(t,o);for(let p=0;p<d.length;p+=1)d[p].m(o,null);j(t,s),j(t,r);for(let p=0;p<a.length;p+=1)a[p].m(r,null)},p(A,[v]){if(v&8){u=A[3];let p;for(p=0;p<u.length;p+=1){const g=Zo(A,u,p);d[p]?d[p].p(g,v):(d[p]=Ko(g),d[p].c(),d[p].m(o,null))}for(;p<d.length;p+=1)d[p].d(1);d.length=u.length}v&22&&(h=A[4],a=qe(a,v,m,1,A,h,l,r,ho,$o,null,Jo)),v&1&&c!==(c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+A[0]+" svelte-djlmk4")&&y(t,"class",c),v&5&&q(t,"is-row",A[2])},i:U,o:U,d(A){A&&S(t),ct(d,A);for(let v=0;v<a.length;v+=1)a[v].d()}}}const Rt=1e3,Qt=180;function Dd(i,t,e){let{type:n}=t,{data:o}=t,{bounding:s}=t,{getRuleDistanceText:r}=t;const a=n==="top"||n==="bottom",l=s.max.x-s.min.x-(Rt-Qt)*2,c=s.max.y-s.min.y-(Rt-Qt)*2,u=o.map(([A,v])=>a?[A.x,v.x]:[A.y,v.y]).flat().sort().filter((A,v,p)=>v===0?!0:A!==p[v-1]),d=u.map(A=>{const v=a?(A-s.min.x-Rt+Qt)/l:0,p=a?0:(A-s.min.y-Rt+Qt)/c;return{left:v,bottom:p}});d.unshift({left:0,bottom:0}),d.push(a?{left:1,bottom:0}:{left:0,bottom:1});const h=u[u.length-1]-u[0],m=u.map((A,v,p)=>{const g=v===0?0:A-p[v-1],b=v===0?0:(A+p[v-1])/2,w=a?(b-s.min.x-Rt+Qt)/l:0,P=a?0:(b-s.min.y-Rt+Qt)/c;return{left:w,bottom:P,distance:g}}).filter(({distance:A})=>A/h>.1);return i.$$set=A=>{"type"in A&&e(0,n=A.type),"data"in A&&e(5,o=A.data),"bounding"in A&&e(6,s=A.bounding),"getRuleDistanceText"in A&&e(1,r=A.getRuleDistanceText)},[n,r,a,d,m,o,s]}class Ld extends oe{constructor(t){super(),ie(this,t,Dd,xd,ne,{type:0,data:5,bounding:6,getRuleDistanceText:1},kd)}}function Sd(i){le(i,"svelte-1mzj9p3",".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}")}function es(i,t,e){const n=i.slice();return n[13]=t[e][0],n[14]=t[e][1],n}function ts(i,t){let e,n,o;const s=[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}];let r={};for(let a=0;a<s.length;a+=1)r=Be(r,s[a]);return n=new Ld({props:r}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(a,l){M(a,e,l),J(n,a,l),o=!0},p(a,l){t=a;const c=l&19?Re(s,[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}]):{};n.$set(c)},i(a){o||(I(n.$$.fragment,a),o=!0)},o(a){L(n.$$.fragment,a),o=!1},d(a){a&&S(e),Z(n,a)}}}function Md(i){let t,e=[],n=new Map,o,s=i[4];const r=a=>a[13];for(let a=0;a<s.length;a+=1){let l=es(i,s,a),c=r(l);n.set(c,e[a]=ts(c,l))}return{c(){t=z("div");for(let a=0;a<e.length;a+=1)e[a].c();y(t,"class","floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"),T(t,"width",i[3]),T(t,"height",i[2])},m(a,l){M(a,t,l);for(let c=0;c<e.length;c+=1)e[c].m(t,null);o=!0},p(a,[l]){l&19&&(s=a[4],se(),e=qe(e,l,r,1,a,s,n,t,Pt,ts,null,es),re()),l&8&&T(t,"width",a[3]),l&4&&T(t,"height",a[2])},i(a){if(!o){for(let l=0;l<s.length;l+=1)I(e[l]);o=!0}},o(a){for(let l=0;l<e.length;l+=1)L(e[l]);o=!1},d(a){a&&S(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}const ns=1e3,is=180;function Td(i,t,e){let n,o,s,r,a,l,c,u,d,h,{floorIndex:m}=t,{floorplanData:A}=t,{getRuleDistanceText:v}=t;return i.$$set=p=>{"floorIndex"in p&&e(5,m=p.floorIndex),"floorplanData"in p&&e(6,A=p.floorplanData),"getRuleDistanceText"in p&&e(0,v=p.getRuleDistanceText)},i.$$.update=()=>{i.$$.dirty&64&&e(1,n=A.bounding),i.$$.dirty&96&&e(11,o=A.floorDatas[m].rules),i.$$.dirty&2048&&e(12,s=Object.keys(o)),i.$$.dirty&6144&&e(4,r=s.map(p=>[p,o[p]])),i.$$.dirty&2&&e(9,a=n.max.x-n.min.x),i.$$.dirty&2&&e(7,l=n.max.y-n.min.y),i.$$.dirty&2&&e(10,c=n.max.x-n.min.x-(ns-is)*2),i.$$.dirty&2&&e(8,u=n.max.y-n.min.y-(ns-is)*2),i.$$.dirty&1536&&e(3,d=c/a*100+"%"),i.$$.dirty&384&&e(2,h=u/l*100+"%")},[v,n,h,d,r,m,A,l,u,a,c,o,s]}class zd extends oe{constructor(t){super(),ie(this,t,Td,Md,ne,{floorIndex:5,floorplanData:6,getRuleDistanceText:0},Sd)}}function Ai(i,t={}){let e="";const{needZ:n,needA:o}=t;return(n?i.slice().concat(i[0]):i.slice()).forEach((r,a)=>{const{x:l,y:c}=t.format?t.format(r):r,u=l+","+c;return a===0?(e+="M"+u,e):o!=null&&o[a]?(e+="A"+o[a]+","+u,e):(e+="L"+u,e)}),e+(n?"Z":"")}function qa({x:i,y:t},e){const{max:n,min:o}=e;return{x:i-o.x,y:n.y-t}}function Bd(i,t){const e=i.x*1e3+t.bounding.origin.x,n=-i.z*1e3+t.bounding.origin.y;return{x:e,y:n}}function jd(i,t){const e=t.bounding,n=e.max.x-e.min.x,o=e.max.y-e.min.y;return{x:(i.x-e.min.x)/n,y:(e.max.y-i.y)/o}}function Vd(i,t){return Math.max(...t.work.observers.map(n=>i.z>=n.standingPosition.z?n.floorIndex:0))}function Od(i){let t;return{c(){t=we("path"),y(t,"d",i[0]),y(t,"fill","#2F313A")},m(e,n){M(e,t,n)},p(e,[n]){n&1&&y(t,"d",e[0])},i:U,o:U,d(e){e&&S(t)}}}function Rd(i,t,e){let n,{path:o}=t;return i.$$set=s=>{"path"in s&&e(1,o=s.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=Ai(o,{needZ:!0}))},[n,o]}class Qd extends oe{constructor(t){super(),ie(this,t,Rd,Od,ne,{path:1})}}function Fd(i){let t,e,n,o,s,r;return{c(){t=we("defs"),e=we("pattern"),n=we("rect"),o=we("path"),s=ee(),r=we("path"),y(n,"x","0"),y(n,"y","0"),y(n,"width",i[1]),y(n,"height",i[1]),y(n,"fill","#323747"),y(o,"d",i[2]),y(o,"stroke","#ffffff"),y(o,"stroke-opacity","0.06"),y(o,"stroke-width","0.5"),y(o,"fill","none"),y(e,"id","fpm-room-pattern-0"),y(e,"x","0"),y(e,"y","0"),y(e,"width",i[1]),y(e,"height",i[1]),y(e,"patternUnits","userSpaceOnUse"),y(e,"patternTransform","scale(50 50)"),y(r,"d",i[0]),y(r,"fill","url(#fpm-room-pattern-0)")},m(a,l){M(a,t,l),j(t,e),j(e,n),j(e,o),M(a,s,l),M(a,r,l)},p(a,[l]){l&1&&y(r,"d",a[0])},i:U,o:U,d(a){a&&S(t),a&&S(s),a&&S(r)}}}const Ti=6;function Hd(i,t,e){let n,{path:o}=t;const s=Ti*2,r=`M0 ${Ti} h ${s} M${Ti} 0 v ${s}`;return i.$$set=a=>{"path"in a&&e(3,o=a.path)},i.$$.update=()=>{i.$$.dirty&8&&e(0,n=Ai(o,{needZ:!0}))},[n,s,r,o]}class _d extends oe{constructor(t){super(),ie(this,t,Hd,Fd,ne,{path:3})}}function Gd(i){let t,e,n,o,s,r,a,l,c,u,d;return{c(){t=we("defs"),e=we("pattern"),n=we("rect"),o=we("pattern"),s=we("rect"),r=ee(),a=we("path"),l=ee(),c=we("path"),u=ee(),d=we("path"),y(n,"x","0"),y(n,"y","0"),y(n,"width","6"),y(n,"height","50"),y(n,"fill","none"),y(n,"stroke","#4B4B57"),y(n,"stroke-width","0.5"),y(e,"id","room-material-pattern-1"),y(e,"x","0"),y(e,"y","0"),y(e,"width","12"),y(e,"height","50"),y(e,"patternUnits","userSpaceOnUse"),y(e,"patternTransform","scale(50 50)"),y(s,"x","0"),y(s,"y","0"),y(s,"width","6"),y(s,"height","50"),y(s,"fill","none"),y(s,"stroke","#4B4B57"),y(s,"stroke-width","0.5"),y(o,"id","room-material-pattern-2"),y(o,"x","6"),y(o,"y","25"),y(o,"width","12"),y(o,"height","50"),y(o,"patternUnits","userSpaceOnUse"),y(o,"patternTransform","scale(50 50)"),y(a,"d",i[0]),y(a,"fill","#43434D"),y(c,"d",i[0]),y(c,"fill","url(#room-material-pattern-1)"),y(d,"d",i[0]),y(d,"fill","url(#room-material-pattern-2)")},m(h,m){M(h,t,m),j(t,e),j(e,n),j(t,o),j(o,s),M(h,r,m),M(h,a,m),M(h,l,m),M(h,c,m),M(h,u,m),M(h,d,m)},p(h,[m]){m&1&&y(a,"d",h[0]),m&1&&y(c,"d",h[0]),m&1&&y(d,"d",h[0])},i:U,o:U,d(h){h&&S(t),h&&S(r),h&&S(a),h&&S(l),h&&S(c),h&&S(u),h&&S(d)}}}function Wd(i,t,e){let n,{path:o}=t;return i.$$set=s=>{"path"in s&&e(1,o=s.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=Ai(o,{needZ:!0}))},[n,o]}class Nd extends oe{constructor(t){super(),ie(this,t,Wd,Gd,ne,{path:1})}}function Xd(i){le(i,"svelte-1dykexu",".floorplan-plugin__room-material.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%}svg.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}")}function os(i,t,e){const n=i.slice();return n[5]=t[e],n}function Yd(i){let t,e;return t=new _d({props:{path:i[5].path}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Ud(i){let t,e;return t=new Nd({props:{path:i[5].path}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function qd(i){let t,e;return t=new Qd({props:{path:i[5].path}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function ss(i){let t,e,n,o;const s=[qd,Ud,Yd],r=[];function a(l,c){return l[5].floorType===1?0:l[5].floorType===0?1:2}return e=a(i),n=r[e]=s[e](i),{c(){t=we("svg"),n.c(),y(t,"width","100%"),y(t,"height","100%"),y(t,"viewBox",`0 0 ${i[1]} ${i[2]}`),y(t,"class","svelte-1dykexu")},m(l,c){M(l,t,c),r[e].m(t,null),o=!0},p(l,c){let u=e;e=a(l),e===u?r[e].p(l,c):(se(),L(r[u],1,1,()=>{r[u]=null}),re(),n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),I(n,1),n.m(t,null))},i(l){o||(I(n),o=!0)},o(l){L(n),o=!1},d(l){l&&S(t),r[e].d()}}}function Jd(i){let t,e,n=i[0],o=[];for(let r=0;r<n.length;r+=1)o[r]=ss(os(i,n,r));const s=r=>L(o[r],1,1,()=>{o[r]=null});return{c(){t=z("div");for(let r=0;r<o.length;r+=1)o[r].c();y(t,"class","floorplan-plugin__room-material svelte-1dykexu")},m(r,a){M(r,t,a);for(let l=0;l<o.length;l+=1)o[l].m(t,null);e=!0},p(r,[a]){if(a&7){n=r[0];let l;for(l=0;l<n.length;l+=1){const c=os(r,n,l);o[l]?(o[l].p(c,a),I(o[l],1)):(o[l]=ss(c),o[l].c(),I(o[l],1),o[l].m(t,null))}for(se(),l=n.length;l<o.length;l+=1)s(l);re()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)I(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)L(o[a]);e=!1},d(r){r&&S(t),ct(o,r)}}}function Zd(i,t,e){let n,{floorIndex:o}=t,{floorplanData:s}=t;const r=s.bounding.max.x-s.bounding.min.x,a=s.bounding.max.y-s.bounding.min.y;return i.$$set=l=>{"floorIndex"in l&&e(3,o=l.floorIndex),"floorplanData"in l&&e(4,s=l.floorplanData)},i.$$.update=()=>{i.$$.dirty&24&&e(0,n=s.floorDatas[o].rooms.map(l=>fe(Q({},l),{path:l.path.map(c=>qa(c,s.bounding))})))},[n,r,a,o,s]}class Kd extends oe{constructor(t){super(),ie(this,t,Zd,Jd,ne,{floorIndex:3,floorplanData:4},Xd)}}function $d(i){le(i,"svelte-qq2273","path.svelte-qq2273{--opacity:0;opacity:var(--opacity)}path.svelte-qq2273:hover{opacity:calc(var(--opacity) + 0.1)}")}function eh(i){let t,e,n,o;return{c(){t=we("path"),y(t,"d",i[5]),y(t,"fill","#fff"),y(t,"style",i[2]),y(t,"id",e=`${i[1]}_${i[0].id}`),y(t,"class","svelte-qq2273")},m(s,r){M(s,t,r),n||(o=[ge(t,"mouseenter",i[3]),ge(t,"mouseleave",i[4])],n=!0)},p(s,[r]){r&4&&y(t,"style",s[2]),r&3&&e!==(e=`${s[1]}_${s[0].id}`)&&y(t,"id",e)},i:U,o:U,d(s){s&&S(t),n=!1,He(o)}}}function th(i,t,e){let n,o,{room:s}=t,{floorIndex:r}=t,{floorplanData:a}=t,{hoveredRoom:l}=t,{highlightData:c}=t;function u(){l.set(s)}function d(){l.set(void 0)}const{bounding:h}=a,m=Ai(s.path,{needZ:!0,format:A=>qa(A,h)});return i.$$set=A=>{"room"in A&&e(0,s=A.room),"floorIndex"in A&&e(1,r=A.floorIndex),"floorplanData"in A&&e(6,a=A.floorplanData),"hoveredRoom"in A&&e(7,l=A.hoveredRoom),"highlightData"in A&&e(8,c=A.highlightData)},i.$$.update=()=>{i.$$.dirty&259&&e(9,n=c[`${r}_${s.id}`]),i.$$.dirty&512&&e(2,o=n?`fill: ${n.color}; --opacity: ${n.opacity}; pointer-events: ${n.disabled?"none":"auto"}`:null)},[s,r,o,u,d,m,a,l,c,n]}class nh extends oe{constructor(t){super(),ie(this,t,th,eh,ne,{room:0,floorIndex:1,floorplanData:6,hoveredRoom:7,highlightData:8},$d)}}function ih(i){le(i,"svelte-1kqo6e4",".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}")}function rs(i,t,e){const n=i.slice();return n[6]=t[e],n}function as(i,t){let e,n,o;const s=[{room:t[6],floorplanData:t[1],hoveredRoom:t[2],floorIndex:t[0],highlightData:t[3]}];let r={};for(let a=0;a<s.length;a+=1)r=Be(r,s[a]);return n=new nh({props:r}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(a,l){M(a,e,l),J(n,a,l),o=!0},p(a,l){t=a;const c=l&15?Re(s,[{room:t[6],floorplanData:t[1],hoveredRoom:t[2],floorIndex:t[0],highlightData:t[3]}]):{};n.$set(c)},i(a){o||(I(n.$$.fragment,a),o=!0)},o(a){L(n.$$.fragment,a),o=!1},d(a){a&&S(e),Z(n,a)}}}function oh(i){let t,e,n=[],o=new Map,s,r=i[1].floorDatas[i[0]].rooms;const a=l=>l[6].id;for(let l=0;l<r.length;l+=1){let c=rs(i,r,l),u=a(c);o.set(u,n[l]=as(u,c))}return{c(){t=z("div"),e=we("svg");for(let l=0;l<n.length;l+=1)n[l].c();y(e,"width","100%"),y(e,"height","100%"),y(e,"viewBox",`0 0 ${i[4]} ${i[5]}`),y(e,"class","svelte-1kqo6e4"),y(t,"class","floorplan-plugin__room-highlight svelte-1kqo6e4")},m(l,c){M(l,t,c),j(t,e);for(let u=0;u<n.length;u+=1)n[u].m(e,null);s=!0},p(l,[c]){c&15&&(r=l[1].floorDatas[l[0]].rooms,se(),n=qe(n,c,a,1,l,r,o,e,Pt,as,null,rs),re())},i(l){if(!s){for(let c=0;c<r.length;c+=1)I(n[c]);s=!0}},o(l){for(let c=0;c<n.length;c+=1)L(n[c]);s=!1},d(l){l&&S(t);for(let c=0;c<n.length;c+=1)n[c].d()}}}function sh(i,t,e){let{floorIndex:n}=t,{floorplanData:o}=t,{hoveredRoom:s}=t,{highlightData:r}=t;const a=o.bounding.max.x-o.bounding.min.x,l=o.bounding.max.y-o.bounding.min.y;return i.$$set=c=>{"floorIndex"in c&&e(0,n=c.floorIndex),"floorplanData"in c&&e(1,o=c.floorplanData),"hoveredRoom"in c&&e(2,s=c.hoveredRoom),"highlightData"in c&&e(3,r=c.highlightData)},[n,o,s,r,a,l]}class Ja extends oe{constructor(t){super(),ie(this,t,sh,oh,ne,{floorIndex:0,floorplanData:1,hoveredRoom:2,highlightData:3},ih)}}function rh(i){le(i,"svelte-bl8zrz",".floorplan-plugin__floor.svelte-bl8zrz{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-bl8zrz{opacity:1;pointer-events:auto}")}function ls(i){let t,e;const n=[{floorIndex:i[1],floorplanData:i[8],hoveredRoom:i[14],highlightData:i[13]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new Ja({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&24834?Re(n,[{floorIndex:s[1],floorplanData:s[8],hoveredRoom:s[14],highlightData:s[13]}]):{};t.$set(a)},i(s){e||(I(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function cs(i){let t,e;const n=[{floorplanData:i[8],roomAreaEnable:i[5],roomNameEnable:i[6],floorIndex:i[1],getRoomAreaText:i[9],getLabelElement:i[10],hoveredRoom:i[14],adaptiveRoomLabelVisibleEnable:i[12]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new Id({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&22370?Re(n,[{floorplanData:s[8],roomAreaEnable:s[5],roomNameEnable:s[6],floorIndex:s[1],getRoomAreaText:s[9],getLabelElement:s[10],hoveredRoom:s[14],adaptiveRoomLabelVisibleEnable:s[12]}]):{};t.$set(a)},i(s){e||(I(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function us(i){let t,e;const n=[{floorplanData:i[8],floorIndex:i[1],getRuleDistanceText:i[11]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new zd({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&2306?Re(n,[{floorplanData:s[8],floorIndex:s[1],getRuleDistanceText:s[11]}]):{};t.$set(a)},i(s){e||(I(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function ah(i){let t,e,n,o,s,r,a,l,c;const u=[{floorIndex:i[1],floorplanData:i[8]}];let d={};for(let g=0;g<u.length;g+=1)d=Be(d,u[g]);e=new Kd({props:d});let h=(i[2]||i[3])&&ls(i);const m=[{floorplanData:i[8],floorIndex:i[1]}];let A={};for(let g=0;g<m.length;g+=1)A=Be(A,m[g]);s=new Ua({props:A});let v=i[4]&&cs(i),p=i[7]&&us(i);return{c(){t=z("div"),K(e.$$.fragment),n=ee(),h&&h.c(),o=ee(),K(s.$$.fragment),r=ee(),v&&v.c(),a=ee(),p&&p.c(),y(t,"class",l=Te(`floorplan-plugin__floor${i[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz")},m(g,b){M(g,t,b),J(e,t,null),j(t,n),h&&h.m(t,null),j(t,o),J(s,t,null),j(t,r),v&&v.m(t,null),j(t,a),p&&p.m(t,null),c=!0},p(g,[b]){const w=b&258?Re(u,[{floorIndex:g[1],floorplanData:g[8]}]):{};e.$set(w),g[2]||g[3]?h?(h.p(g,b),b&12&&I(h,1)):(h=ls(g),h.c(),I(h,1),h.m(t,o)):h&&(se(),L(h,1,1,()=>{h=null}),re());const P=b&258?Re(m,[{floorplanData:g[8],floorIndex:g[1]}]):{};s.$set(P),g[4]?v?(v.p(g,b),b&16&&I(v,1)):(v=cs(g),v.c(),I(v,1),v.m(t,a)):v&&(se(),L(v,1,1,()=>{v=null}),re()),g[7]?p?(p.p(g,b),b&128&&I(p,1)):(p=us(g),p.c(),I(p,1),p.m(t,null)):p&&(se(),L(p,1,1,()=>{p=null}),re()),(!c||b&1&&l!==(l=Te(`floorplan-plugin__floor${g[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz"))&&y(t,"class",l)},i(g){c||(I(e.$$.fragment,g),I(h),I(s.$$.fragment,g),I(v),I(p),c=!0)},o(g){L(e.$$.fragment,g),L(h),L(s.$$.fragment,g),L(v),L(p),c=!1},d(g){g&&S(t),Z(e),h&&h.d(),Z(s),v&&v.d(),p&&p.d()}}}function lh(i,t,e){let{isCurrent:n}=t,{floorIndex:o}=t,{highlightEnable:s}=t,{hoverEnable:r}=t,{roomLabelsEnable:a}=t,{roomAreaEnable:l}=t,{roomNameEnable:c}=t,{ruleLabelsEnable:u}=t,{floorplanData:d}=t,{getRoomAreaText:h}=t,{getLabelElement:m}=t,{getRuleDistanceText:A}=t,{adaptiveRoomLabelVisibleEnable:v}=t,{highlightData:p}=t;const g=mo(void 0);return i.$$set=b=>{"isCurrent"in b&&e(0,n=b.isCurrent),"floorIndex"in b&&e(1,o=b.floorIndex),"highlightEnable"in b&&e(2,s=b.highlightEnable),"hoverEnable"in b&&e(3,r=b.hoverEnable),"roomLabelsEnable"in b&&e(4,a=b.roomLabelsEnable),"roomAreaEnable"in b&&e(5,l=b.roomAreaEnable),"roomNameEnable"in b&&e(6,c=b.roomNameEnable),"ruleLabelsEnable"in b&&e(7,u=b.ruleLabelsEnable),"floorplanData"in b&&e(8,d=b.floorplanData),"getRoomAreaText"in b&&e(9,h=b.getRoomAreaText),"getLabelElement"in b&&e(10,m=b.getLabelElement),"getRuleDistanceText"in b&&e(11,A=b.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in b&&e(12,v=b.adaptiveRoomLabelVisibleEnable),"highlightData"in b&&e(13,p=b.highlightData)},[n,o,s,r,a,l,c,u,d,h,m,A,v,p,g]}class ch extends oe{constructor(t){super(),ie(this,t,lh,ah,ne,{isCurrent:0,floorIndex:1,highlightEnable:2,hoverEnable:3,roomLabelsEnable:4,roomAreaEnable:5,roomNameEnable:6,ruleLabelsEnable:7,floorplanData:8,getRoomAreaText:9,getLabelElement:10,getRuleDistanceText:11,adaptiveRoomLabelVisibleEnable:12,highlightData:13},rh)}}function uh(i){le(i,"svelte-86bqav",".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}")}function ds(i,t,e){const n=i.slice();return n[21]=t[e],n}function hs(i){let t,e,n,o,s,r=i[13].floorDatas,a=[];for(let d=0;d<r.length;d+=1)a[d]=fs(ds(i,r,d));const l=d=>L(a[d],1,1,()=>{a[d]=null});let c=i[5]&&ms(i),u=i[8]&&ps(i);return{c(){t=z("div");for(let d=0;d<a.length;d+=1)a[d].c();e=ee(),c&&c.c(),n=ee(),u&&u.c(),y(t,"class","floorplan-main svelte-86bqav")},m(d,h){M(d,t,h);for(let m=0;m<a.length;m+=1)a[m].m(t,null);j(t,e),c&&c.m(t,null),j(t,n),u&&u.m(t,null),s=!0},p(d,h){if(i=d,h&2047696){r=i[13].floorDatas;let m;for(m=0;m<r.length;m+=1){const A=ds(i,r,m);a[m]?(a[m].p(A,h),I(a[m],1)):(a[m]=fs(A),a[m].c(),I(a[m],1),a[m].m(t,e))}for(se(),m=r.length;m<a.length;m+=1)l(m);re()}i[5]?c?(c.p(i,h),h&32&&I(c,1)):(c=ms(i),c.c(),I(c,1),c.m(t,n)):c&&(se(),L(c,1,1,()=>{c=null}),re()),i[8]?u?(u.p(i,h),h&256&&I(u,1)):(u=ps(i),u.c(),I(u,1),u.m(t,null)):u&&(se(),L(u,1,1,()=>{u=null}),re())},i(d){if(!s){for(let h=0;h<r.length;h+=1)I(a[h]);I(c),I(u),o||Oe(()=>{o=Tt(t,Mt,{duration:i[0],easing:At}),o.start()}),s=!0}},o(d){a=a.filter(Boolean);for(let h=0;h<a.length;h+=1)L(a[h]);L(c),L(u),s=!1},d(d){d&&S(t),ct(a,d),c&&c.d(),u&&u.d()}}}function fs(i){let t,e;const n=[{hoverEnable:i[6],highlightEnable:i[7],floorplanData:i[13],getRoomAreaText:i[16],getLabelElement:i[17],getRuleDistanceText:i[18],roomLabelsEnable:i[9],roomAreaEnable:i[10],roomNameEnable:i[11],ruleLabelsEnable:i[12],adaptiveRoomLabelVisibleEnable:i[19],highlightData:i[20]},{floorIndex:i[21].floorIndex},{isCurrent:i[21].floorIndex===i[4]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new ch({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&2047696?Re(n,[r&2047680&&{hoverEnable:s[6],highlightEnable:s[7],floorplanData:s[13],getRoomAreaText:s[16],getLabelElement:s[17],getRuleDistanceText:s[18],roomLabelsEnable:s[9],roomAreaEnable:s[10],roomNameEnable:s[11],ruleLabelsEnable:s[12],adaptiveRoomLabelVisibleEnable:s[19],highlightData:s[20]},r&8192&&{floorIndex:s[21].floorIndex},r&8208&&{isCurrent:s[21].floorIndex===s[4]}]):{};t.$set(a)},i(s){e||(I(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function ms(i){let t,e;const n=[{panoIndex:i[3],floorplanData:i[13],lastPanoramaLongitude:i[14],cameraImageUrl:i[15]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new Uu({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&57352?Re(n,[{panoIndex:s[3],floorplanData:s[13],lastPanoramaLongitude:s[14],cameraImageUrl:s[15]}]):{};t.$set(a)},i(s){e||(I(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function ps(i){let t,e;return t=new td({props:{floorplanData:i[13],northDesc:i[2]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&8192&&(s.floorplanData=n[13]),o&4&&(s.northDesc=n[2]),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function dh(i){let t,e,n=i[1]&&hs(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&I(n,1)):(n=hs(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function hh(i,t,e){let{duration:n=0}=t,{visible:o}=t,{northDesc:s}=t,{panoIndex:r}=t,{floorIndex:a}=t,{cameraEnable:l}=t,{hoverEnable:c}=t,{highlightEnable:u}=t,{compassEnable:d}=t,{roomLabelsEnable:h}=t,{roomAreaEnable:m}=t,{roomNameEnable:A}=t,{ruleLabelsEnable:v}=t,{floorplanData:p}=t,{lastPanoramaLongitude:g}=t,{cameraImageUrl:b}=t,{getRoomAreaText:w}=t,{getLabelElement:P}=t,{getRuleDistanceText:x}=t,{adaptiveRoomLabelVisibleEnable:C}=t,{highlightData:D}=t;return i.$$set=E=>{"duration"in E&&e(0,n=E.duration),"visible"in E&&e(1,o=E.visible),"northDesc"in E&&e(2,s=E.northDesc),"panoIndex"in E&&e(3,r=E.panoIndex),"floorIndex"in E&&e(4,a=E.floorIndex),"cameraEnable"in E&&e(5,l=E.cameraEnable),"hoverEnable"in E&&e(6,c=E.hoverEnable),"highlightEnable"in E&&e(7,u=E.highlightEnable),"compassEnable"in E&&e(8,d=E.compassEnable),"roomLabelsEnable"in E&&e(9,h=E.roomLabelsEnable),"roomAreaEnable"in E&&e(10,m=E.roomAreaEnable),"roomNameEnable"in E&&e(11,A=E.roomNameEnable),"ruleLabelsEnable"in E&&e(12,v=E.ruleLabelsEnable),"floorplanData"in E&&e(13,p=E.floorplanData),"lastPanoramaLongitude"in E&&e(14,g=E.lastPanoramaLongitude),"cameraImageUrl"in E&&e(15,b=E.cameraImageUrl),"getRoomAreaText"in E&&e(16,w=E.getRoomAreaText),"getLabelElement"in E&&e(17,P=E.getLabelElement),"getRuleDistanceText"in E&&e(18,x=E.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in E&&e(19,C=E.adaptiveRoomLabelVisibleEnable),"highlightData"in E&&e(20,D=E.highlightData)},[n,o,s,r,a,l,c,u,d,h,m,A,v,p,g,b,w,P,x,C,D]}class po extends oe{constructor(t){super(),ie(this,t,hh,dh,ne,{duration:0,visible:1,northDesc:2,panoIndex:3,floorIndex:4,cameraEnable:5,hoverEnable:6,highlightEnable:7,compassEnable:8,roomLabelsEnable:9,roomAreaEnable:10,roomNameEnable:11,ruleLabelsEnable:12,floorplanData:13,lastPanoramaLongitude:14,cameraImageUrl:15,getRoomAreaText:16,getLabelElement:17,getRuleDistanceText:18,adaptiveRoomLabelVisibleEnable:19,highlightData:20},uh)}}const fh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a25MOnGRcBtx+6Rlo9SL08G4EooFnxa8Yiivox5/h5Ys/4cl7NVorNDRnngX+0MIkVMeMSf23zyKML8J7/Dy8hwF2Buh9CnS+AEQIdLspBuGb+M7/qLW4qJrNpsLapjYhpwVnx3BMfCtNNx3Etc9xywvnMf80wG8HmQainw0RxSGrnmeBp+8k5/j9S0HbvXb5io0Lz880/0wPHV1NlhLd316He+4xOCv5ragF7L9PrH1qBJyB0626x/lC+qrSvH5r/W+n1WpxUM5nMY4GPeH8lHJaPgfeAFQHCL+ntkXT+vnUc3W6pvTIwC0wy3rA4dwLmK2avZ7Eo9uKBuYJfgJscbs8dLCxDMt+EOEPBEZNEWyBYHqTz6bPXrzUnNrSShxHIsYiOL69zrCGLLcLqJP68tB+9w5wj+YhWDafQ2s61wNqxjZhmrQ2pvMFCEvXuCUZ7wqH794ZWs28LJqlTXSUyuksF2M/yOwqgkx2c1ADa4wLAQRk2sAGQQakhN6yFC2hltfz5kSY44NKQeeh+vtI/SSzWhg2CzCgmWISmKUGmaYFBDfCSymnfxJ6/+ospVcWOLLp5DGP/y0P/Rp66O99DQNq7Po3Ds0a0wY+My2QSv2N2mO/OyxR2o6UQk+Lv7yJ06JYSnnolZVU9cUn2O9SmaMWGFBqYXRwbqAJWIi94TX5biotpcGl1DXZ6LnqIbNDTnmUgi52Mv5l5ysMxIcZcGjy2DTK4ZHlcBC14zeSge4qphICjj3bS0A7o9nSp2TOkm7aZ8bGZy/jxhO87V91G0+dfY/Z7BWIIK9KYUi5qy/Hf8YfBG3sqJTHiQWhmTVkbip+wX3x6volVSx+LPAxF+VLXhZ8VQ+iP2Rta/iWe5v42Fngj0BbdnRTXh12ZIcKhTaGbcYjybRwXBU1lu9KlndXp04NM52poKWO0RZsviNaP9a6grkO972+st05pXhE5c1hTEluJy7XUejGUQNLMbAmTdWY1rKBLW3aTJqBZ7nZkb36DhYCreeYHbMUXHvaYi5XDK70EcgulmRjm77wNtenzuXCbmnTRaAx493rbGf3Jr/njMzj920CnKdUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";function mh(i){return W(this,null,function*(){const t=new Headers({"Content-Type":"text/plain"}),e=function(o){return W(this,null,function*(){const s={index:o.index,url:o.url,svgUrl:o.svg_url};if(o.svg_url){const r=yield fetch(o.svg_url,{headers:t}).then(a=>a.text());s.svgContent=r}return s})};return yield Promise.all(i.map(e))})}function ph(i){return{id:i.id,size:i.size,name:i.name,path:i.path,roomType:i.room_type,floorType:i.floor_type,roomLabel:{position:i.room_label.position,positionInImage:i.room_label.position_in_image},observerIndexs:i.observer_indexs}}function gh(i){return{floorName:i.floor_name,floorIndex:i.floor_index,rooms:i.rooms.map(ph),rules:i.rules}}function Ah(i){return{index:i.index,floorIndex:i.floor_index,position:i.position,positionInImage:i.position_in_image}}function vh(i){return{rad:i.rad,position:i.position,positionInImage:i.position_in_image,northRad:i.north_rad,roomId:i.room_id,floorIndex:i.floor_index}}function bt(i){return W(this,null,function*(){const t=yield mh(i.outlines),e=i.computed_data.bounding,n=i.computed_data.floor_datas.map(gh),o=i.computed_data.entrance?vh(i.computed_data.entrance):null;return{outlines:t,entrance:o,bounding:e,floorDatas:n,observers:i.computed_data.observers.map(Ah)}})}function bh(i,t,e){return i.map(o=>{const s=o.position,r=o.icon?o.icon:{url:fh,width:45,height:48},a=Vd(s,t),l=Bd(s,e),c=jd(l,e);return{floorIndex:a,icon:r,id:o.id,position:l,positionInImage:c}})}function yh(i,t){return t(i),i}function vi(i,t){return yh({},e=>{for(const n in i)t.indexOf(n)===-1&&(e[n]=i[n])})}function gs(i,t){const e=Math.max(...i.work.observers.map(n=>n.floorIndex));return t>e?i.model.bounding.max.y:Math.max(...i.work.observers.filter(n=>n.floorIndex===t).map(n=>n.standingPosition.y))}function go(i,t,e=pt.BOUNDING_CENTER){const n=gs(i,t),o=gs(i,t+1);return e===pt.BOUNDING_CENTER?(i.model.bounding.max.y+i.model.bounding.min.y)/2:e===pt.CEILING?o:n}function Ao(i,t,e,n){const o=go(i,e,n==null?void 0:n.attachedTo),s=new k.Vector3(0,o,0),r=new k.Vector3(1,o,0),a=s.clone().project(i.camera),l=r.clone().project(i.camera);return Math.abs((l.x-a.x)/1e3)*(t.getBoundingClientRect().width/2)}class In{constructor(t,e){f(this,"VERSION","2.13.2-dev.2");f(this,"five");f(this,"hooks",new Zt);f(this,"staticPrefix","//vrlab-static.ljcdn.com");this.five=t,e!=null&&e.staticPrefix&&(this.staticPrefix=e.staticPrefix)}getCurrentState(){return this.state}}class zt extends In{}var Ge=(i=>(i.UnknownError="UnknownError",i.DataNotLoaded="DataNotLoaded",i.BreakOffByHide="BreakOffByHide",i.BreakOffByDisable="BreakOffByDisable",i.ModelNotLoaded="ModelNotLoaded",i.ChangeModeError="ChangeModeError",i.UpdateCameraError="UpdateCameraError",i))(Ge||{});const Za=500,wh=80;function Ki(i,t,e=4){return Math.floor(i*Math.pow(10,e))===Math.floor(t*Math.pow(10,e))}function Ka(i,t){return W(this,null,function*(){yield new Promise((e,n)=>{i.changeMode(...t).catch(o=>n(o)),i.once("initAnimationEnded",()=>{const o=i.getCurrentState(),s=t[0];o.mode!==s&&n(new Error("mode \u4E0E\u9884\u671F\u4E0D\u7B26")),(()=>{const l=t[1];return l?Object.keys(l).every(c=>{const u=o[c];if(u===void 0)return!0;const d=l[c];return typeof u=="number"&&typeof d=="number"?Ki(u,d,2):u===d}):!0})()||n(new Error("five pose \u4E0E\u9884\u671F\u4E0D\u7B26")),e()})})})}function vo(i,t){if(i.currentMode!==t.mode)return!1;const{latitude:e,longitude:n,fov:o}=t,{latitude:s,longitude:r}=i.getCurrentState(),a=i.camera.fov;return!(!Ki(e,s,2)||!Ki(n,r,2)||o!==a)}function $a(i,t,e=!0){return W(this,null,function*(){if(vo(i,t)===!0)return;const o=i.getCurrentState();if(o.mode!==t.mode){const[u]=yield ai(Ka(i,[t.mode,t,void 0,e]));if(u)throw new Error(Ge.ChangeModeError);return}const{latitude:s,longitude:r,fov:a}=o,l=Math.min(1e3,Math.max(200,Math.abs(s-Math.PI/2)*1e3,(r>Math.PI?2*Math.PI-r:r)*500,Math.abs(a-t.fov)*10)),[c]=yield ai(i.updateCamera(t,l,e));if(c)throw new Error(Ge.UpdateCameraError)})}function Ut(i,t,e=300){const n=i.getElement();!n||(n.style.opacity=t+"",n.style.transition=e===0?"none":`opacity ${e}ms linear`,e!==0&&Promise.race([new Promise(o=>n.addEventListener("transitionend",o,{once:!0})),new Promise(o=>setTimeout(o,e))]).then(()=>{n.style.transition="none"}))}function Ch(i){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);return n||o}function Eh(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,o=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&o}class Ph extends zt{constructor(e,n){var a;super(e);f(this,"name","modelFloorplanPlugin");f(this,"state");f(this,"data");f(this,"showState");f(this,"showPromise");f(this,"app");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"selector");f(this,"showRejection");f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"show",(...n)=>W(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show(e)}));f(this,"hide",(...n)=>W(this,[...n],function*(e={}){!this.state.enabled||(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));f(this,"updateSize",()=>{if(!this.data||!vo(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ao(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"highlight",e=>{!this.state.config.highlightEnable||(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(o=this.showRejection)==null||o.call(this,Ge.BreakOffByDisable),this.showPromise=void 0,(s=this.app)==null||s.$destroy(),this.app=void 0,(r=this.container)==null||r.remove(),this.removeEventListener()});f(this,"_enable",e=>{const{userAction:n}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n}))});f(this,"_show",e=>W(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(Ge.ModelNotLoaded);if(!this.data)throw new Error(Ge.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},o=Q(Q({},n),e),s=()=>W(this,null,function*(){this.hooks.emit("show",{userAction:o.userAction,auto:o.isAutoShow});let a=!1,l;this.showRejection=h=>{a=!0,l=h};const[c]=yield ai($a(this.five,this.showState,o.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(Ge.UnknownError);this.updateSize(),this.floorIndex=o.floorIndex,this.five.model.show(this.floorIndex);const u=o.modelOpacity,d=o.immediately?0:Za;Ut(this.five,u,d),this.render(d)});return this.showPromise=s().then(()=>{this.hooks.emit("showAnimationEnded",{auto:o.isAutoShow,userAction:o.userAction})}).catch(a=>{if(this.updateState({visible:!1},o.userAction),!o.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var s;(s=this.showRejection)==null||s.call(this,Ge.BreakOffByHide),this.showPromise=void 0;const o=Q(Q({},{userAction:!0,isAutoHide:!1}),e);Ut(this.five,1,0),this.hooks.emit("hide",{auto:o.isAutoHide,userAction:o.userAction}),this.render()});f(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});f(this,"onFiveInteriaPan",(e,n)=>{if(!n||this.state.config.autoShowEnable===!1||this.isHiddenByHideFunc)return;const o=this.five.getCurrentState();o.mode==="Floorplan"&&(this.state.visible||Eh(o)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})))});f(this,"onFivePanoArrived",e=>{var n;!((n=this.five)!=null&&n.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{if(!this.state.visible||this.showPromise)return;const o=this.five.getCurrentState();Ch(o)&&(this.updateState({visible:!1},n),this._hide({userAction:n,isAutoHide:!0}))});f(this,"onFiveWantsGesture",(e,n)=>{if(!!this.state.visible&&(n.length>1||e==="mouseWheel"))return!1});f(this,"onFiveWantsPanGesture",(e,n)=>{if(this.five.getCurrentState().mode==="Floorplan"&&this.state.config.autoShowEnable!==!1&&n&&this.state.visible)return this.five.updateCamera(this.showState,0),!1});f(this,"onFiveWantsTapGesture",()=>this.handleClick());f(this,"onFiveWantsChangeMode",(e,n)=>{n==="Panorama"&&e==="Floorplan"&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5")),this.showState={mode:"Floorplan",longitude:0,latitude:Math.PI/2,fov:wh/((a=n==null?void 0:n.scale)!=null?a:1)};const o={northDesc:"\u5317",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,adaptiveRoomLabelVisibleEnable:!0,cameraImageUrl:vt,attachedTo:pt.BOUNDING_CENTER,getLabelElement:void 0,getRoomAreaText:l=>(l/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:l=>l.toString()},s=n?vi(n,["selector","scale"]):{},r=Q(Q({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return W(this,null,function*(){function s(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const r=e;r&&!r.version&&console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield bt(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled&&(e.enabled?this._enable({userAction:s}):this._disable({userAction:s})),e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}this.render()}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return W(this,null,function*(){return yield bt(e.data)})}updateState(e,n){const o=this.state,s=e.config?Q(Q({},o.config),e.config):o.config;this.state=fe(Q(Q({},this.state),e),{config:s}),!et(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:10,pointerEvents:"none"}),this.five.addExtraElement(this.container)}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("interiaPan",this.onFiveInteriaPan),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsGesture",this.onFiveWantsGesture),e.on("wantsPanGesture",this.onFiveWantsPanGesture),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsChangeMode",this.onFiveWantsChangeMode),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modelLoaded",this.onFiveModelLoaded),e.off("modeChange",this.onFiveModeChange),e.off("interiaPan",this.onFiveInteriaPan),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsGesture",this.onFiveWantsGesture),e.off("wantsPanGesture",this.onFiveWantsPanGesture),e.off("wantsTapGesture",this.onFiveWantsTapGesture),e.off("wantsChangeMode",this.onFiveWantsChangeMode),e.off("modelShownFloorChange",this.onModelShownFloorChange)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=fe(Q({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new po({target:this.container,intro:!0,props:n})}}const Ih=(i,t)=>new Ph(i,t);function kh(i){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);return n||o}function xh(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,o=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&o}class Dh extends zt{constructor(e,n){super(e);f(this,"name","modelFloorplanPlugin");f(this,"state");f(this,"data");f(this,"showState");f(this,"showPromise");f(this,"app");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"selector");f(this,"showRejection");f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"show",(...n)=>W(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show(e)}));f(this,"hide",(...n)=>W(this,[...n],function*(e={}){!this.state.enabled||(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));f(this,"updateSize",()=>{if(!this.data||!vo(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ao(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"highlight",e=>{!this.state.config.highlightEnable||(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(o=this.showRejection)==null||o.call(this,Ge.BreakOffByDisable),this.showPromise=void 0,(s=this.app)==null||s.$destroy(),this.app=void 0,(r=this.container)==null||r.remove(),this.removeEventListener()});f(this,"_enable",e=>{const{userAction:n}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n}))});f(this,"_show",e=>W(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(Ge.ModelNotLoaded);if(!this.data)throw new Error(Ge.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},o=Q(Q({},n),e),s=()=>W(this,null,function*(){this.hooks.emit("show",{userAction:o.userAction,auto:o.isAutoShow});let a=!1,l;this.showRejection=h=>{a=!0,l=h};const[c]=yield ai($a(this.five,this.showState,o.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(Ge.UnknownError);this.updateSize(),this.updatePosition(),this.floorIndex=o.floorIndex,this.five.model.show(this.floorIndex);const u=o.modelOpacity,d=o.immediately?0:Za;Ut(this.five,u,d),this.render(d)});return this.showPromise=s().then(()=>{this.hooks.emit("showAnimationEnded",{auto:o.isAutoShow,userAction:o.userAction})}).catch(a=>{if(this.updateState({visible:!1},o.userAction),!o.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var s;(s=this.showRejection)==null||s.call(this,Ge.BreakOffByHide),this.showPromise=void 0;const o=Q(Q({},{userAction:!0,isAutoHide:!1}),e);Ut(this.five,1,0),this.hooks.emit("hide",{auto:o.isAutoHide,userAction:o.userAction}),this.render()});f(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});f(this,"onFivePanoArrived",e=>{var n;!((n=this.five)!=null&&n.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{if(!this.state.visible||this.showPromise)return;const o=this.five.getCurrentState();this.updatePosition(),this.updateSize(),kh(o)&&(this.updateState({visible:!1},n),this._hide({userAction:n}))});f(this,"onFiveWantsPanGesture",(e,n)=>{if(this.five.getCurrentState().mode===this.showState.mode&&this.state.config.autoShowEnable!==!1){if(n&&this.state.visible)return this.five.updateCamera(this.showState,0),!1;if(n&&!this.state.visible){if(this.isHiddenByHideFunc)return;const o=this.five.getCurrentState();return o.mode!==this.showState.mode||this.state.visible?void 0:(xh(o)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})),!1)}}});f(this,"onFiveWantsTapGesture",()=>this.handleClick());f(this,"onFiveWantsChangeMode",(e,n)=>{n==="Panorama"&&e===this.showState.mode&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5")),this.showState={mode:"Mapview",longitude:0,latitude:Math.PI/2,fov:90};const o={northDesc:"\u5317",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:vt,attachedTo:pt.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:a=>a.toString()},s=n?vi(n,["selector","scale"]):{},r=Q(Q({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return W(this,null,function*(){function s(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const r=e;r&&!r.version&&console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield bt(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled&&(e.enabled?this._enable({userAction:s}):this._disable({userAction:s})),e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}updatePosition(){var a;const e=go(this.five,this.floorIndex,this.state.config.attachedTo),n=(a=this.five.model)==null?void 0:a.bounding.getCenter(new k.Vector3).setY(e);if(!n)return;const o=n.clone().project(this.five.camera),s=(o.x+1)/2,r=-(o.y-1)/2;this.container.style.left=s*100+"%",this.container.style.top=r*100+"%"}formatData(e){return W(this,null,function*(){return yield bt(e.data)})}updateState(e,n){const o=this.state,s=e.config?Q(Q({},o.config),e.config):o.config;this.state=fe(Q(Q({},this.state),e),{config:s}),!et(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:10,pointerEvents:"none"}),this.five.addExtraElement(this.container)}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsPanGesture",this.onFiveWantsPanGesture),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsChangeMode",this.onFiveWantsChangeMode),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modelLoaded",this.onFiveModelLoaded),e.off("modeChange",this.onFiveModeChange),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsPanGesture",this.onFiveWantsPanGesture),e.off("wantsTapGesture",this.onFiveWantsTapGesture),e.off("wantsChangeMode",this.onFiveWantsChangeMode),e.off("modelShownFloorChange",this.onModelShownFloorChange)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=fe(Q({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new po({target:this.container,intro:!0,props:n})}}const Lh=(i,t)=>new Dh(i,t);class Sh extends zt{constructor(e,n){super(e);f(this,"name","topviewFloorplanPlugin");f(this,"state");f(this,"data");f(this,"app");f(this,"selector");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"updateSize",()=>{if(!this.data||!this.container||!this.wrapper||this.five.getCurrentState().mode!=="Topview")return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ao(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"highlight",e=>{!this.state.config.highlightEnable||(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s;const{userAction:n}=e;(o=this.app)==null||o.$destroy(),this.app=void 0,(s=this.container)==null||s.remove(),this.removeEventListener(),this.hooks.emit("disable",{userAction:n})});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",(...[e,,,,n])=>{e!=="Topview"&&this.state.visible&&(this.updateState({visible:!1},n),this._hide({userAction:n}))});f(this,"onFivePanoArrived",e=>{var n;!((n=this.five)!=null&&n.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{!this.state.visible||(this.updatePosition(),this.updateSize())});f(this,"onFiveWantsGesture",e=>{if(!(e!=="pan"&&e!=="pinch"&&e!=="mouseWheel")&&this.state.visible&&!this.state.config.gestureEnable)return!1});f(this,"onFiveWantsMoveToPano",()=>{if(this.state.visible&&this.state.config.preventRoomClick)return!1});f(this,"onFiveInitAnimationEnded",(...[,,e])=>{const{mode:n}=this.five.getCurrentState();n==="Topview"&&!this.isHiddenByHideFunc&&!this.state.visible&&this.state.config.autoShowEnable&&(this.updateState({visible:!0},e),this._show({userAction:e}))});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"));const o={northDesc:"\u5317",modelOpacity:1,cameraEnable:!0,hoverEnable:!0,highlightEnable:!1,compassEnable:!0,gestureEnable:!1,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:vt,attachedTo:pt.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:a=>a.toString()},s=n?vi(n,["selector","scale"]):{},r=Q(Q({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return W(this,null,function*(){function s(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const r=e;r&&!r.version&&console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield bt(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}updatePosition(){var a;const e=go(this.five,this.floorIndex,this.state.config.attachedTo),n=(a=this.five.model)==null?void 0:a.bounding.getCenter(new k.Vector3).setY(e);if(!n)return;const o=n.clone().project(this.five.camera),s=(o.x+1)/2,r=-(o.y-1)/2;this.container.style.left=s*100+"%",this.container.style.top=r*100+"%"}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}show(){return W(this,arguments,function*(e={}){if(this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show({userAction:n})})}hide(){return W(this,arguments,function*(e={}){if(this.isHiddenByHideFunc=!0,!this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},n),this._hide({userAction:n})})}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled){const r={userAction:s};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return W(this,null,function*(){return yield bt(e.data)})}_show(e){return W(this,null,function*(){if(!this.state.enabled)return;this.isHiddenByHideFunc=!1;const{userAction:n}=e;this.hooks.emit("show",{userAction:n,auto:!1}),this.five.getCurrentState().mode!=="Topview"&&(yield Ka(this.five,["Topview",void 0,void 0,n])),this.five.model.show(this.floorIndex),this.updatePosition(),this.updateSize();const o=500,s=this.state.config.modelOpacity;Ut(this.five,s,o),this.hooks.emit("showAnimationEnded",{userAction:n,auto:!1}),this.render()})}_hide(e){return W(this,null,function*(){if(!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("hide",{userAction:n,auto:!1});const o=1,s=0;Ut(this.five,o,s),this.render()})}_enable(e){const{userAction:n}=e;this.addEventListener(),this.wrapper&&this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n})}updateState(e,n){const o=this.state,s=e.config?Q(Q({},o.config),e.config):o.config;this.state=fe(Q(Q({},this.state),e),{config:s}),!et(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsGesture",this.onFiveWantsGesture),e.on("wantsMoveToPano",this.onFiveWantsMoveToPano),e.on("initAnimationEnded",this.onFiveInitAnimationEnded),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modeChange",this.onFiveModeChange),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsGesture",this.onFiveWantsGesture),e.off("wantsMoveToPano",this.onFiveWantsMoveToPano),e.off("initAnimationEnded",this.onFiveInitAnimationEnded),e.off("modelShownFloorChange",this.onModelShownFloorChange)}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate3d(-50%, -50%, 10px)",zIndex:10,pointerEvents:"none","will-change":"width, height"}),this.five.addExtraElement(this.container)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=fe(Q({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new po({target:this.container,intro:!0,props:n})}}const Mh=(i,t)=>new Sh(i,t);function bo(i,t=200){let e;return function(...n){e||(i(...n),e=setTimeout(function(){e=null},t))}}function Th(i){le(i,"svelte-1nqrlxd",".plugin-radar__camera-wrapper.svelte-1nqrlxd{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1nqrlxd{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1nqrlxd{position:absolute;left:-0.9375rem;top:-0.9375rem;width:1.0625rem;height:1.0625rem;transform-origin:0.9375rem 0.9375rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}")}function zh(i){let t,e,n;return{c(){t=z("div"),e=z("div"),n=z("div"),y(n,"class","plugin-radar__camera-rotate svelte-1nqrlxd"),T(n,"background-image","url("+(i[0]||vt)+")"),T(n,"transform",i[1]),y(e,"class","plugin-radar__camera-position svelte-1nqrlxd"),T(e,"transform",i[2]),y(t,"class","plugin-radar__camera-wrapper svelte-1nqrlxd")},m(o,s){M(o,t,s),j(t,e),j(e,n)},p(o,[s]){s&1&&T(n,"background-image","url("+(o[0]||vt)+")"),s&2&&T(n,"transform",o[1]),s&4&&T(e,"transform",o[2])},i:U,o:U,d(o){o&&S(t)}}}function Bh(i){return`rotate(${Math.floor(i/Math.PI*180)*-1+45}deg)`}function jh(i,t,e){let n,o,{five:s}=t,{pxmm:r}=t,{floorplanData:a}=t,{cameraImageUrl:l}=t,c=s.getCurrentState().panoIndex,u=s.getCurrentState().longitude;function d(A,v){const p=A.bounding,g=A.observers[v];if(!g)return"";const b=(p.max.x-p.min.x)*r,w=(p.max.y-p.min.y)*r,P=Math.floor(g.positionInImage.x*b),x=Math.floor(g.positionInImage.y*w);return`translate(${P}px, ${x}px)`}function h(A){e(6,c=A)}const m=bo(A=>{e(7,u=A.longitude)},1e3/60);return Ue(()=>(s.on("panoWillArrive",h),s.on("cameraDirectionUpdate",m),function(){s.off("panoWillArrive",h),s.off("cameraDirectionUpdate",m)})),i.$$set=A=>{"five"in A&&e(3,s=A.five),"pxmm"in A&&e(4,r=A.pxmm),"floorplanData"in A&&e(5,a=A.floorplanData),"cameraImageUrl"in A&&e(0,l=A.cameraImageUrl)},i.$$.update=()=>{i.$$.dirty&96&&e(2,n=d(a,c)),i.$$.dirty&128&&e(1,o=Bh(u))},[l,o,n,s,r,a,c,u]}class Vh extends oe{constructor(t){super(),ie(this,t,jh,zh,ne,{five:3,pxmm:4,floorplanData:5,cameraImageUrl:0},Th)}}function Oh(i){le(i,"svelte-1i87fz7",".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}")}function As(i,t,e){const n=i.slice();return n[1]=t[e],n}function vs(i,t){let e,n,o=`${t[1].icon.width/16}rem`,s=`${t[1].icon.height/16}rem`,r,a=`${t[1].positionInImage.y*100}%`,l=`${t[1].positionInImage.x*100}%`;return{key:i,first:null,c(){e=z("div"),n=z("div"),r=ee(),y(n,"class","plugin-pano-floorplan__extra-object-item svelte-1i87fz7"),T(n,"background-image",`url(${t[1].icon.url})`),T(n,"width",o),T(n,"height",s),y(e,"class","plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"),T(e,"top",a),T(e,"left",l),this.first=e},m(c,u){M(c,e,u),j(e,n),j(e,r)},p(c,u){t=c,u&1&&T(n,"background-image",`url(${t[1].icon.url})`),u&1&&o!==(o=`${t[1].icon.width/16}rem`)&&T(n,"width",o),u&1&&s!==(s=`${t[1].icon.height/16}rem`)&&T(n,"height",s),u&1&&a!==(a=`${t[1].positionInImage.y*100}%`)&&T(e,"top",a),u&1&&l!==(l=`${t[1].positionInImage.x*100}%`)&&T(e,"left",l)},d(c){c&&S(e)}}}function Rh(i){let t,e=[],n=new Map,o=i[0];const s=r=>r[1].id;for(let r=0;r<o.length;r+=1){let a=As(i,o,r),l=s(a);n.set(l,e[r]=vs(l,a))}return{c(){t=z("div");for(let r=0;r<e.length;r+=1)e[r].c();y(t,"class","plugin-pano-floorplan__extra-objects svelte-1i87fz7")},m(r,a){M(r,t,a);for(let l=0;l<e.length;l+=1)e[l].m(t,null)},p(r,[a]){a&1&&(o=r[0],e=qe(e,a,s,1,r,o,n,t,ho,vs,null,As))},i:U,o:U,d(r){r&&S(t);for(let a=0;a<e.length;a+=1)e[a].d()}}}function Qh(i,t,e){let{extraObjects:n=[]}=t;return i.$$set=o=>{"extraObjects"in o&&e(0,n=o.extraObjects)},[n]}class Fh extends oe{constructor(t){super(),ie(this,t,Qh,Rh,ne,{extraObjects:0},Oh)}}function bs(i){let t,e;const n=[{five:i[0],pxmm:i[1],floorIndex:i[2],floorplanData:i[4],onRoomHeightClick:i[6]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new Ja({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&87?Re(n,[{five:s[0],pxmm:s[1],floorIndex:s[2],floorplanData:s[4],onRoomHeightClick:s[6]}]):{};t.$set(a)},i(s){e||(I(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function Hh(i){let t,e,n,o,s,r;const a=[{floorIndex:i[2],floorplanData:i[4]}];let l={};for(let u=0;u<a.length;u+=1)l=Be(l,a[u]);t=new Ua({props:l}),n=new Fh({props:{extraObjects:i[5]}});let c=i[3]&&bs(i);return{c(){K(t.$$.fragment),e=ee(),K(n.$$.fragment),o=ee(),c&&c.c(),s=me()},m(u,d){J(t,u,d),M(u,e,d),J(n,u,d),M(u,o,d),c&&c.m(u,d),M(u,s,d),r=!0},p(u,[d]){const h=d&20?Re(a,[{floorIndex:u[2],floorplanData:u[4]}]):{};t.$set(h);const m={};d&32&&(m.extraObjects=u[5]),n.$set(m),u[3]?c?(c.p(u,d),d&8&&I(c,1)):(c=bs(u),c.c(),I(c,1),c.m(s.parentNode,s)):c&&(se(),L(c,1,1,()=>{c=null}),re())},i(u){r||(I(t.$$.fragment,u),I(n.$$.fragment,u),I(c),r=!0)},o(u){L(t.$$.fragment,u),L(n.$$.fragment,u),L(c),r=!1},d(u){Z(t,u),u&&S(e),Z(n,u),u&&S(o),c&&c.d(u),u&&S(s)}}}function _h(i,t,e){let n,{five:o}=t,{pxmm:s}=t,{floorIndex:r}=t,{hoverEnable:a}=t,{floorplanData:l}=t,{extraObjects:c=[]}=t;const u=void 0;return i.$$set=d=>{"five"in d&&e(0,o=d.five),"pxmm"in d&&e(1,s=d.pxmm),"floorIndex"in d&&e(2,r=d.floorIndex),"hoverEnable"in d&&e(3,a=d.hoverEnable),"floorplanData"in d&&e(4,l=d.floorplanData),"extraObjects"in d&&e(7,c=d.extraObjects)},i.$$.update=()=>{i.$$.dirty&132&&e(5,n=c==null?void 0:c.filter(d=>d.floorIndex===r))},[o,s,r,a,l,n,u,c]}class Gh extends oe{constructor(t){super(),ie(this,t,_h,Hh,ne,{five:0,pxmm:1,floorIndex:2,hoverEnable:3,floorplanData:4,extraObjects:7})}}function Wh(i){le(i,"svelte-1mvqyqq",".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}")}function ys(i){let t,e,n,o,s=i[6]!==0&&ws(i);return{c(){t=z("div"),s&&s.c(),y(t,"class","plugin-floorplan-radar svelte-1mvqyqq")},m(r,a){M(r,t,a),s&&s.m(t,null),e=!0,n||(o=[at(an.call(null,t)),ge(t,"clientWidth",i[12]),ge(t,"clientHeight",i[13])],n=!0)},p(r,a){r[6]!==0?s?(s.p(r,a),a&64&&I(s,1)):(s=ws(r),s.c(),I(s,1),s.m(t,null)):s&&(se(),L(s,1,1,()=>{s=null}),re())},i(r){e||(I(s),e=!0)},o(r){L(s),e=!1},d(r){r&&S(t),s&&s.d(),n=!1,He(o)}}}function ws(i){let t,e,n,o,s=`${i[8]}px`,r=`${i[11]}px`,a;const l=[{five:i[0],pxmm:i[9],floorIndex:i[10],floorplanData:i[3],hoverEnable:i[2],extraObjects:i[5]}];let c={};for(let h=0;h<l.length;h+=1)c=Be(c,l[h]);e=new Gh({props:c});const u=[{pxmm:i[9],five:i[0],floorplanData:i[3],cameraImageUrl:i[4]}];let d={};for(let h=0;h<u.length;h+=1)d=Be(d,u[h]);return o=new Vh({props:d}),{c(){t=z("div"),K(e.$$.fragment),n=ee(),K(o.$$.fragment),y(t,"class","plugin-floorplan-radar-container svelte-1mvqyqq"),T(t,"width",s),T(t,"height",r)},m(h,m){M(h,t,m),J(e,t,null),j(t,n),J(o,t,null),a=!0},p(h,m){const A=m&1581?Re(l,[{five:h[0],pxmm:h[9],floorIndex:h[10],floorplanData:h[3],hoverEnable:h[2],extraObjects:h[5]}]):{};e.$set(A);const v=m&537?Re(u,[{pxmm:h[9],five:h[0],floorplanData:h[3],cameraImageUrl:h[4]}]):{};o.$set(v),m&256&&s!==(s=`${h[8]}px`)&&T(t,"width",s),m&2048&&r!==(r=`${h[11]}px`)&&T(t,"height",r)},i(h){a||(I(e.$$.fragment,h),I(o.$$.fragment,h),a=!0)},o(h){L(e.$$.fragment,h),L(o.$$.fragment,h),a=!1},d(h){h&&S(t),Z(e),Z(o)}}}function Nh(i){let t,e,n=i[1]&&ys(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&I(n,1)):(n=ys(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function Xh(i,t,e){var b,w;let{five:n}=t,{visible:o}=t,{hoverEnable:s}=t,{floorplanData:r}=t,{cameraImageUrl:a}=t,{extraObjects:l=[]}=t,c=0,u=(w=(b=n.work.observers[n.getCurrentState().panoIndex])==null?void 0:b.floorIndex)!=null?w:0,d=0,h=0,m=0,A=0;function v(P){e(10,u=n.work.observers[P].floorIndex)}Ue(()=>(n.on("panoArrived",v),()=>{n.off("panoArrived",v)}));const p=P=>{e(6,d=P.detail)},g=P=>{e(7,h=P.detail)};return i.$$set=P=>{"five"in P&&e(0,n=P.five),"visible"in P&&e(1,o=P.visible),"hoverEnable"in P&&e(2,s=P.hoverEnable),"floorplanData"in P&&e(3,r=P.floorplanData),"cameraImageUrl"in P&&e(4,a=P.cameraImageUrl),"extraObjects"in P&&e(5,l=P.extraObjects)},i.$$.update=()=>{if(i.$$.dirty&456){const P=Math.min(d,h),{max:x,min:C}=r.bounding,D=x.x-C.x,E=x.y-C.y,O=function(){return D>E?[P,P/D*E]:[P/E*D,P]}();e(8,m=O[0]),e(11,A=O[1]),e(9,c=m/D)}},[n,o,s,r,a,l,d,h,m,c,u,A,p,g]}class Yh extends oe{constructor(t){super(),ie(this,t,Xh,Nh,ne,{five:0,visible:1,hoverEnable:2,floorplanData:3,cameraImageUrl:4,extraObjects:5},Wh)}}class Uh extends zt{constructor(e,n){super(e);f(this,"name","panoFloorplanRadarPlugin");f(this,"state");f(this,"data");f(this,"app");f(this,"wrapperSelector","");f(this,"wrapper",null);f(this,"disposed",!1);f(this,"extraObjects",[]);f(this,"dispose",()=>{var e;this.disposed=!0,(e=this.app)==null||e.$destroy(),this.wrapper=null,this.wrapperSelector="",this.hooks.emit("dispose")});f(this,"_disable",e=>{var o;const{userAction:n}=e;(o=this.app)==null||o.$destroy(),this.app=void 0,this.hooks.emit("disable",{userAction:n})});this.five=e;const o={hoverEnable:!1,cameraImageUrl:vt},s=n!=null&&n.configs?n.configs:{},r=Q(Q({},o),s);this.state={enabled:!0,visible:!0,config:r},n!=null&&n.wrapper&&console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"),typeof(n==null?void 0:n.wrapper)=="string"?this.wrapperSelector=n.wrapper:(n==null?void 0:n.wrapper)instanceof Element&&(this.wrapper=n.wrapper),e.once("dispose",this.dispose)}load(e,n,o=!0){return W(this,null,function*(){function s(c){return Object.prototype.hasOwnProperty.apply(c,["version"])}const r=JSON.parse(JSON.stringify(e)),a=s(r)?r.data:r,l=this.data;this.data=yield bt(a),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,l),n&&this.updateState(n,o),this.render()})}show(){return W(this,arguments,function*(e={}){if(this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show({userAction:n})})}hide(){return W(this,arguments,function*(e={}){if(!this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},n),this._hide({userAction:n})})}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled){const r={userAction:s};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}appendTo(e){this.wrapper=e,this.render()}changeConfigs(e,n=!0){this.setState({config:e},{userAction:n}),this.render()}setExtraObjectsWith3DPositions(e){!this.data||(this.extraObjects=bh(e,this.five,this.data),this.render())}formatData(e){return W(this,null,function*(){return yield bt(e.data)})}_enable(e){const{userAction:n}=e;this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n})}_show(e){if(this.disposed||!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("show",{userAction:n}),this.render()}_hide(e){if(this.disposed||!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("hide",{userAction:n}),this.render()}updateState(e,n){const o=this.state;this.state=Q(Q({},this.state),e),!et(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}render(){if(this.disposed||!this.state.enabled)return;if(!this.wrapper&&this.wrapperSelector){const n=document.querySelector(this.wrapperSelector);this.wrapper=n}if(!this.data||!this.wrapper)return;const e=fe(Q({},this.state.config),{five:this.five,floorplanData:this.data,visible:this.state.visible,extraObjects:this.extraObjects});this.app?this.app.$set(e):this.app=new Yh({target:this.wrapper,props:e})}}const qh=(i,t)=>new Uh(i,t),Jh=[{type:0,floorType:1,roomType:"100900000012",name:"\u5176\u4ED6"},{type:1,floorType:1,roomType:"100900000002",name:"\u5BA2\u5385"},{type:2,floorType:1,roomType:"100900000002",name:"\u9910\u5385"},{type:3,floorType:0,roomType:"100900000001",name:"\u5367\u5BA4"},{type:4,floorType:0,roomType:"100900000001",name:"\u4E66\u623F"},{type:5,floorType:3,roomType:"100900000004",name:"\u536B\u751F\u95F4"},{type:6,floorType:3,roomType:"100900000004",name:"\u6DCB\u6D74\u95F4"},{type:7,floorType:3,roomType:"100900000004",name:"\u6D17\u624B\u95F4"},{type:8,floorType:3,roomType:"100900000003",name:"\u53A8\u623F"},{type:9,floorType:1,roomType:"100900000003",name:"\u5F00\u653E\u53A8\u623F",onlySubArea:!0},{type:10,floorType:0,roomType:"100900000001",name:"\u591A\u529F\u80FD\u95F4"},{type:11,floorType:0,roomType:"100900000009",name:"\u4FDD\u59C6\u95F4"},{type:12,floorType:4,roomType:"100900000005",name:"\u9633\u53F0"},{type:13,floorType:4,roomType:"100900000006",name:"\u9732\u53F0"},{type:14,floorType:0,roomType:"100900000008",name:"\u50A8\u7269\u95F4"},{type:15,floorType:0,roomType:"100900000013",name:"\u8863\u5E3D\u95F4"},{type:16,floorType:0,roomType:"100900000011",name:"\u9601\u697C"},{type:17,floorType:2,roomType:"100900000007",name:"\u82B1\u56ED"},{type:18,floorType:5,roomType:"100900000010",name:"\u8F66\u5E93"},{type:19,floorType:1,roomType:"100900000012",name:"\u7535\u68AF"},{type:20,floorType:1,roomType:"100900000012",name:"\u5730\u4E0B\u5BA4"},{type:21,floorType:1,roomType:"100900000012",name:"\u5929\u4E95"},{type:22,floorType:1,roomType:"100900000012",name:"\u9633\u5149\u623F"},{type:23,floorType:1,roomType:"100900000012",name:"\u8FC7\u9053"},{type:24,floorType:1,roomType:"100900000012",name:"\u697C\u68AF\u95F4"},{type:25,floorType:1,roomType:"100900000012",name:"\u95E8\u5385"},{type:26,floorType:2,roomType:"100900000012",name:"\u5165\u6237\u82B1\u56ED"},{type:27,floorType:1,roomType:"100900000012",name:"\u7384\u5173"},{type:28,floorType:1,roomType:"100900000012",name:"\u6311\u7A7A"},{type:29,floorType:4,roomType:"100900000012",name:"\u667E\u6652\u533A"},{type:30,floorType:4,roomType:"100900000012",name:"\u6D17\u8863\u623F"},{type:31,floorType:0,roomType:"100900000012",name:"\u5A31\u4E50\u533A"},{type:32,floorType:0,roomType:"100900000012",name:"\u5065\u8EAB\u533A"},{type:33,floorType:0,roomType:"100900000012",name:"\u63A5\u5F85\u533A"},{type:34,floorType:0,roomType:"100900000012",name:"\u5F71\u97F3\u533A"},{type:35,floorType:1,roomType:"100900000012",name:"\u9910\u996E\u533A"},{type:36,floorType:1,roomType:"100900000012",name:"\u5176\u4ED6",onlySubArea:!0},{type:37,floorType:1,roomType:"100900000002",name:"\u8D77\u5C45\u5BA4"},{type:38,floorType:0,roomType:"100900000001",name:"\u4E3B\u5367"},{type:39,floorType:0,roomType:"100900000001",name:"\u6B21\u5367"},{type:40,floorType:0,roomType:"100900000001",name:"\u4F18\u5316\u95F4"},{type:41,floorType:0,roomType:"100900000001",name:"\u529E\u516C\u5BA4"},{type:42,floorType:0,roomType:"100900000001",name:"\u4F1A\u8BAE\u5BA4"},{type:43,floorType:0,roomType:"100900000001",name:"\u6D3D\u8C08\u95F4"},{type:44,floorType:1,roomType:"100900000002",name:"\u5171\u4EAB\u5927\u5385"},{type:45,floorType:1,roomType:"100900000012",name:"\u6C34\u5427"},{type:46,floorType:0,roomType:"100900000015",name:"\u51FA\u5165\u53E3"},{type:47,floorType:0,roomType:"100900000015",name:"\u5927\u5385"},{type:48,floorType:0,roomType:"100900000015",name:"\u5305\u53A2"},{type:49,floorType:0,roomType:"100900000015",name:"\u5176\u4ED6"},{type:50,floorType:0,roomType:"100900000016",name:"\u51FA\u5165\u53E3"},{type:51,floorType:0,roomType:"100900000016",name:"\u529E\u516C\u533A"},{type:52,floorType:0,roomType:"100900000016",name:"\u8001\u677F\u95F4"},{type:53,floorType:0,roomType:"100900000016",name:"\u4F1A\u8BAE\u5BA4"},{type:54,floorType:0,roomType:"100900000016",name:"\u4F11\u606F\u533A/\u6C34\u5427"},{type:55,floorType:0,roomType:"100900000016",name:"\u5176\u4ED6"},{type:56,floorType:2,roomType:"100900000012",name:"\u7A7A\u4E2D\u82B1\u56ED"},{type:57,floorType:0,roomType:"100900000001",name:"\u6D0B\u5BA4"},{type:58,floorType:0,roomType:"100900000001",name:"\u548C\u5BA4"}],Zh=[{type:0,description:"\u6728\u8D28\u5730\u677F"},{type:1,description:"\u74F7\u7816\u5730\u9762"},{type:2,description:"\u6237\u5916\u5730\u9762"},{type:3,description:"\u536B\u751F\u95F4\u5730\u9762"},{type:4,description:"\u9633\u53F0\u5730\u9762"},{type:5,description:"\u8F66\u5E93\u5730\u9762"}],Kh=[{roomType:"100900000001",description:"\u5BA4"},{roomType:"100900000002",description:"\u5385"},{roomType:"100900000003",description:"\u53A8"},{roomType:"100900000004",description:"\u536B"},{roomType:"100900000005",description:"\u9633\u53F0"},{roomType:"100900000006",description:"\u9732\u53F0"},{roomType:"100900000007",description:"\u82B1\u56ED"},{roomType:"100900000008",description:"\u50A8"},{roomType:"100900000009",description:"\u4FDD\u59C6\u95F4"},{roomType:"100900000010",description:"\u8F66\u5E93"},{roomType:"100900000011",description:"\u9601\u697C"},{roomType:"100900000012",description:"\u5176\u4ED6"},{roomType:"100900000013",description:"\u8863"},{roomType:"100900000015",description:"\u5546\u94FA"},{roomType:"100900000016",description:"\u5199\u5B57\u697C"}],zi=(i,t,e)=>{const n=new k.Matrix4,o=new k.Euler(i,t,e,"YXZ");return n.makeRotationFromEuler(o),n},$h=(i,{scale:t,rotation:e,position:n})=>{if(t&&i.scale.set(t,t,t),e){const[o,s,r]=e;o&&i.applyMatrix4(zi(o,0,0)),s&&i.applyMatrix4(zi(0,s,0)),r&&i.applyMatrix4(zi(0,0,r))}return n&&i.position.set(n.x,n.y,n.z),i};function el(i,t){i.traverse(e=>{var n;if(e.type==="Mesh"){const o=e,s=Q({map:o.material.map||{}},t);o.material=new V.MeshBasicMaterial(s),o.renderOrder=1,((n=e.parent)==null?void 0:n.type)==="Mesh"&&(e.renderOrder=e.parent.renderOrder+1)}})}const ef=(i,t)=>{var u;const e=t.fbx_url||"//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX",n=(u=t.north_rad)!=null?u:void 0,o={},s=d=>W(exports,null,function*(){var H;const h=(d==null?void 0:d.fbx_url)||e,m=(H=d==null?void 0:d.north_rad)!=null?H:n;if(typeof m!="number")throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');const A=i.model.bounding,v=A.max.x-A.min.x,p=A.max.z-A.min.z,g=Math.max(v,p),w=yield new pa.FBXLoader().loadAsync(h);el(w,{transparent:!0,side:k.DoubleSide,blending:k.AdditiveBlending});const P=[0,m-Math.PI/2,0],{model:{bounding:{max:{x,z:C},min:{x:D,y:E,z:O}}}}=i;o.yBase=E;const G={x:(x+D)/2,y:E-1.6,z:(C+O)/2},X=.0045*g;return $h(w,{position:G,rotation:P,scale:X}),o.object=w,!0}),r=({latitude:d})=>{if(!o.object)return;const h=a(d);h&&(o.object.position.y=h)},a=d=>{if(o.yBase===void 0)return;const h=.6;if(d>=Math.PI/4)return o.yBase-(h+1.6);const m=d*(4/Math.PI);return o.yBase-(h*m+1.6)};return{load:s,disable:()=>{!o.object||(i.scene.remove(o.object),i.needsRender=!0,i.off("cameraDirectionUpdate",r))},enable:()=>{if(!o.object)return;const d=a(i.getPose().latitude);d&&(o.object.position.y=d),i.scene.add(o.object),i.needsRender=!0,i.on("cameraDirectionUpdate",r)}}};function tf(i,t){var c,u,d,h,m;const e=(c=t==null?void 0:t.size)!=null?c:512,n=(u=t==null?void 0:t.fontSize)!=null?u:e*(35/256)*1.2,o=(d=t==null?void 0:t.backgroundColor)!=null?d:"rgba(0,0,0,0)",s=(h=t==null?void 0:t.fontColor)!=null?h:"#fff",r=(m=t==null?void 0:t.textAlign)!=null?m:"center",a=document.createElement("canvas");a.setAttribute("width",e+""),a.setAttribute("height",e+"");const l=a.getContext("2d");return l.fillStyle=o,l.fillRect(0,0,e,e),l.font=`${n}px "\u5FAE\u8F6F\u96C5\u9ED1"`,l.textAlign=r,l.fillStyle=s,l.fillText(i,e/2,e*.7),new V.CanvasTexture(a)}const nf=({x:i,y:t,z:e})=>new V.Vector3(i,t,e),of=(i,t)=>{var v,p,g;const e={},n=(v=t.animationEnabled)!=null?v:!0,o=(p=t.position)!=null?p:void 0,s=(g=t.rad)!=null?g:void 0,r=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx",a=[],l=b=>W(exports,null,function*(){var G,X,H,B,F,R,N,_;const w=(G=b==null?void 0:b.position)!=null?G:o;if(!w)return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));const P=nf(w),x=(X=b==null?void 0:b.rad)!=null?X:s,C=(H=b==null?void 0:b.fbx_url)!=null?H:r;if(e.rad=x,x===void 0)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${x}`));const D=yield new pa.FBXLoader().loadAsync(C);D.position.copy(P),D.rotation.z=x,D.scale.set(.8,.8,.8),el(D,{transparent:!0,side:k.DoubleSide});const E=(N=(R=(F=(B=D.children)==null?void 0:B[0])==null?void 0:F.children)==null?void 0:R[3])==null?void 0:N.clone();if(!E)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${E}`));const O=(_=t.name)!=null?_:"\u5165\u6237\u95E8";return E.material=new V.MeshBasicMaterial({transparent:!0,map:tf(O)}),E.renderOrder=3,D.children[0].add(E),e.object=D,!0}),c=()=>{if(e.animation)return;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ",e.object);const b=1,w=new V.AnimationMixer(e.object);a.push(w);const P=w.clipAction(e.object.animations[0]);P.timeScale=b;let x;const C=()=>{let G=0,X=0;const H=1e3/30,B=F=>{G=requestAnimationFrame(B);const R=F-X;R<H||(X=F,a.forEach(N=>N.update(R/1e3)),i.needsRender=!0)};return G=requestAnimationFrame(B),()=>{cancelAnimationFrame(G)}},O={play:()=>{x||(P.play(),x=C(),requestAnimationFrame(()=>{e.object&&e.object.rotation.z!==e.rad&&(e.object.rotation.z=e.rad)}))},stop:()=>{P.stop(),x==null||x(),x=void 0}};e.animation=O},u=b=>{var P;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.enable(): object is ",e.object);((P=b==null?void 0:b.animationEnable)!=null?P:n)&&(e.animation||c(),e.animation.play()),i.scene.add(e.object),i.needsRender=!0},d=()=>{!e.object||(e.animation&&e.animation.stop(),i.scene.remove(e.object),i.needsRender=!0)},h=b=>b==="Floorplan"?u():d();return{load:l,enable:b=>(e.enabled||(e.enabled=!0,h(i.currentMode),i.on("modeChange",h),u(b)),!0),disable:()=>(e.enabled&&(e.enabled=!1,d(),i.off("modeChange",h)),!0)}};class yo extends bn.default.Tween{constructor(){super(...arguments);f(this,"disposeMethods",[]);f(this,"animationFrameDisposer");f(this,"onDispose",e=>(this.disposeMethods.push(e),this));f(this,"play",()=>(this.start(0),this.animationFrameDisposer=kn(e=>this.update(e)),this));f(this,"dispose",()=>{var e;this.stop(),(e=this.animationFrameDisposer)==null||e.call(this),this.disposeMethods.forEach(n=>n()),this.disposeMethods=[],bn.default.remove(this)})}}function tl(i,t=bn.default.Easing.Linear.None){const e=new yo({progress:0}).to({progress:1});return i!==void 0&&e.duration(i),t!==void 0&&e.easing(t),e}const Cn=window.requestAnimationFrame||(i=>setTimeout(i,16)),sf=window.cancelAnimationFrame||clearTimeout;function bi(i,t=0){t<=0?Cn(i):Cn(()=>bi(i,t-1))}function kn(i,t=60){let e=-1,n=0,o=-1;const s=1e3/t;function r(a){o===-1&&(o=a),e=Cn(r),!(a-n<s)&&(n=a,i&&i(a-o))}return e=Cn(r),function(){sf(e)}}function rf(){const i=Date.now();return new Promise(t=>{Cn(()=>{t(Date.now()-i)})})}const af=di.Easing;function lf(i,t,e,n=af.Linear.None){const o=new di.Tween(i).to(t,e).easing(n);bi(()=>o.start(0));const s=kn(a=>{o.update(a)===!1&&s()}),r=[];return o.onDestroy=a=>(r.push(a),o),o.destroy=function(){this.stop(),Object.assign(o,{_onStartCallback:null,_onUpdateCallback:null,_onCompleteCallback:null,_onStopCallbackL:null});let a;for(;a=r.shift();)a();s()},o}function cf(i,t){return lf({progress:0},{progress:1},i,t)}var nl=(i=>(i.Move="Move",i.Rotate="Rotate",i))(nl||{}),$e=(i=>(i.Clockwise="Clockwise",i.Anticlockwise="Anticlockwise",i.Loop="Loop",i))($e||{});const Jn=Math.PI*2;function Cs(i){return(i%Jn+Jn)%Jn}function Es(i){return i%Jn}function Bi(i,t,e){return i+(t-i)*e}const $i=(i,t,e)=>{const n=Math.PI,o=n*2;return i=Cs(i),t=Cs(t),e===$e.Anticlockwise&&i<t&&(i+=o),e===$e.Clockwise&&t<i&&(t+=o),e===$e.Loop&&t-i>n?$i(i,t,$e.Anticlockwise):e===$e.Loop&&i-t>n?$i(i,t,$e.Clockwise):{from:i,to:t}},uf=i=>{const t={},e=(l,c,...u)=>W(exports,[l,c,...u],function*(s,r,a={preload:!0}){return t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),s.mode&&s.mode!==i.currentMode&&(yield i.changeMode(s.mode)),a.preload&&s.panoIndex!==void 0&&s.panoIndex!==i.panoIndex&&(yield i.preloadPano(s.panoIndex)),a.asyncEndCallback&&(yield a.asyncEndCallback()),s.panoIndex===void 0&&s.fov===void 0&&s.latitude===void 0&&s.longitude===void 0?!0:yield new Promise((d,h)=>{const m=s.panoIndex!==void 0?s.panoIndex:i.panoIndex;m!==void 0?i.moveToPano(m,Object.assign({duration:r,moveEndCallback:()=>d(!0),moveCancelCallback:()=>h(!1)},s)):h(!1)})}),n=s=>{const r=i.state,a=Es(r.latitude),l=Es(s.latitude),{from:c,to:u}=$i(r.longitude,s.longitude,s.rotation||$e.Loop),d=r.fov,h=s.fov;return{from:{latitude:a,longitude:c,fov:d},to:{latitude:l,longitude:u,fov:h}}};return{move:e,rotate:(l,c,...u)=>W(exports,[l,c,...u],function*(s,r,a={}){t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),i.currentMode!==Ce.Five.Mode.Panorama&&(yield i.changeMode(Ce.Five.Mode.Panorama)),s.panoIndex!==void 0&&s.panoIndex!==i.panoIndex&&(a.preload&&(yield i.preloadPano(s.panoIndex)),yield new Promise((m,A)=>{if(!s.panoIndex){m(!0);return}i.moveToPano(s.panoIndex,{moveEndCallback:()=>m(!0),moveCancelCallback:()=>A(!1)})})),a.asyncEndCallback&&(yield a.asyncEndCallback());const{from:d,to:h}=n(s);return yield new Promise(m=>{const A=({progress:w})=>{const P={};P.longitude=Bi(d.longitude,h.longitude,w),P.latitude=Bi(d.latitude,h.latitude,w),P.fov=Bi(d.fov,h.fov,w),i.setState(P,!0)},v=()=>{m(!0)},p=()=>{m(!1)},g=s.rotateSpeed?Math.ceil(Math.abs(h.longitude-d.longitude)/s.rotateSpeed*1e3):r,b=cf(g,di.Easing.Linear.None).onUpdate(A).onComplete(v).onDestroy(p);s.rotation===$e.Loop&&b.repeat(1/0).yoyo(!0),t.interruptCallback=(w=!0)=>{b.destroy(),t.interruptCallback=void 0,t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=void 0),m(w)},t.timeoutId=setTimeout(()=>{t.interruptCallback&&t.interruptCallback(!0)},r)})})}};function Ps(i,t){return i.x===t.x&&i.y===t.y}function il(i,t){return Math.abs(i)===1/0&&Math.abs(t)===1/0?!0:Math.abs(i-t)<.001}function ui(i,t){return(t.y-i.y)/(t.x-i.x)}function ol(i,t,e){const n=ui(i[1],i[0]),o=ui(t[1],t[0]);if(isNaN(n)||isNaN(o)||il(n,o))return!1;if(On(i[0],t))return i[0];if(On(i[1],t))return i[1];if(On(t[0],i))return t[0];if(On(t[1],i))return t[1];if(e&&!df(i,t))return!1;const s=i[0],r=t[0];if(Math.abs(n)===1/0)return{x:s.x,y:t[1].y-(t[1].x-s.x)*o};if(Math.abs(o)===1/0)return{x:r.x,y:i[1].y-(i[1].x-r.x)*n};const a=(r.y-s.y+n*s.x-o*r.x)/(n-o),l=n*a-n*s.x+s.y;return{x:a,y:l}}function On(i,t){return Ps(i,t[0])||Ps(i,t[1])?!0:(t[0].x-i.x)*(i.x-t[1].x)>=0&&(t[0].y-i.y)*(i.y-t[1].y)>=0&&il(ui(t[0],i),ui(i,t[1]))}function Rn(i,t,e){return(i.x-e.x)*(t.y-e.y)-(t.x-e.x)*(i.y-e.y)}function df(i,t){return Math.max(i[0].x,i[1].x)>=Math.min(t[0].x,t[1].x)&&Math.max(t[0].x,t[1].x)>=Math.min(i[0].x,i[1].x)&&Math.max(i[0].y,i[1].y)>=Math.min(t[0].y,t[1].y)&&Rn(t[0],i[1],i[0])*Rn(i[1],t[1],i[0])>0&&Rn(i[0],t[1],t[0])*Rn(t[1],i[1],t[0])>0?1:0}function sl(i,t=0){t<=0?requestAnimationFrame(i):requestAnimationFrame(()=>sl(i,t-1))}const hf=`<style type="text/css">
116
116
  .PanoRulerPlugin-rule-line {
117
117
  position: absolute;
118
118
  transform-origin: left center;
@@ -198,14 +198,14 @@ transition: all 500ms;
198
198
  100% { transform: scaleX(1); }
199
199
  }
200
200
  </style>
201
- `,mf=(i,t)=>Math.sqrt(Math.pow(i.z-t.z,2)+Math.pow(i.x-t.x,2)),pf=(i,t)=>{const e={},n=new V.Raycaster,o=t.work;if(!o)return e;const s=i.observers;o.observers.forEach((r,a)=>{const{standingPosition:l}=r,c=new V.Vector3(l.x,l.y,l.z);n.set(c,new V.Vector3(0,1,0));const[u]=t.model.intersectRaycaster(n),d=u?u.point.y:2.7,h=s[a];if(!h)return e;const m=i.rooms[h].name;e[m]===void 0?e[m]={__roof:[d],__floor:[c.y]}:(e[m].__roof.push(d),e[m].__floor.push(c.y))});for(const r in e){const a=e[r];a.__roof.sort(),a.__floor.sort(),a.floor=a.__floor[~~(a.__floor.length/2)],a.roof=a.__roof[a.__roof.length-1]}return e},gf=(i,t)=>{const e={enable:!1,loaded:!1,options:t.options||{distanceText:v=>`${v.toFixed(1)}m`}},n=(v,p)=>{const g=`
201
+ `,ff=(i,t)=>Math.sqrt(Math.pow(i.z-t.z,2)+Math.pow(i.x-t.x,2)),mf=(i,t)=>{const e={},n=new V.Raycaster,o=t.work;if(!o)return e;const s=i.observers;o.observers.forEach((r,a)=>{const{standingPosition:l}=r,c=new V.Vector3(l.x,l.y,l.z);n.set(c,new V.Vector3(0,1,0));const[u]=t.model.intersectRaycaster(n),d=u?u.point.y:2.7,h=s[a];if(!h)return e;const m=i.rooms[h].name;e[m]===void 0?e[m]={__roof:[d],__floor:[c.y]}:(e[m].__roof.push(d),e[m].__floor.push(c.y))});for(const r in e){const a=e[r];a.__roof.sort(),a.__floor.sort(),a.floor=a.__floor[~~(a.__floor.length/2)],a.roof=a.__roof[a.__roof.length-1]}return e},pf=(i,t)=>{const e={enable:!1,loaded:!1,options:t.options||{distanceText:v=>`${v.toFixed(1)}m`}},n=(v,p)=>{const g=`
202
202
  <div class="PanoRulerPlugin-rule-line">
203
203
  <em></em>
204
204
  <div class="PanoRulerPlugin-rule-label">
205
205
  <div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(p)}</div>
206
206
  </div>
207
207
  </div>
208
- `,b=document.createElement("div");return b.setAttribute("class","PanoRulerPlugin-rule"),b.setAttribute("data-name",v),b.setAttribute("style","display: none"),b.innerHTML=g,b},o=document.createElement("div");o.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");const s=document.createElement("div");s.innerHTML=ff,o.appendChild(s);const r={},a=(v,p)=>{if(e.loaded)throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");const g=pf(v,i),b=i.work;if(!b)return!1;for(const w in p){const x=p[w],{standingPosition:k}=b.observers[0],C=x.map(({x:D,z:E,observers:O})=>{const G=O.length>0?v.rooms[v.observers[O[0]]].name:"",X=g[G]?g[G].floor:null;let H=1/0,B={index:0,x:k.x,y:k.y,z:k.z};O.forEach(Y=>{if(!b.observers[Y])return;const{standingPosition:ae}=b.observers[Y],he={index:Y,x:ae.x,y:ae.y,z:ae.z},de=mf({x:D,z:E},he);X?de<H&&Math.abs(he.y-X)<.3&&(H=de,B=he):de<H&&(H=de,B=he)});const F=new V.Vector3(D,B.y,E);Object.assign(F,{observers:O});const R=g[G]?g[G].roof:null,N=R?new V.Vector3(D,R,E):null;return N&&Object.assign(N,{observers:O}),{origin:F,vertical:N}});r[w]={origins:C.map(D=>D.origin),rules:[]};for(const{origin:D,vertical:E}of C){if(!E)continue;const O=n(w,D.distanceTo(E));o.append(O),r[w].rules.push({vertical:!0,rule:[D,E],$element:O})}for(let D=0;D<C.length;D++){let E=D+1;E>=C.length&&(E=0);const{origin:O}=C[D],{origin:G}=C[E],X=n(w,O.distanceTo(G));o.append(X),r[w].rules.push({vertical:!1,rule:[O,G],$element:X})}}return e.loaded=!0,!0},l=(v,p,g)=>W(exports,null,function*(){const b=v||t.roomInfo,w=p||t.roomRules;if(!b||!w)throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");return e.loaded=!1,e.options=Q(Q({},e.options),g||{}),i.model.loaded?a(b,w):yield new Promise(x=>i.once("modelLoaded",()=>x(a(b,w))))});t.roomInfo&&t.roomRules&&l(t.roomInfo,t.roomRules);const c=(v,p,g,b)=>{const w=[[{x:0,y:0},{x:g,y:0}],[{x:0,y:0},{x:0,y:b}],[{x:g,y:0},{x:g,y:b}],[{x:0,y:b},{x:g,y:b}]],x=[];for(let k=0;k<w.length;k++){const C=ol([v,p],[w[k][0],w[k][1]],!0);C&&x.push(C)}return x.length===0?!1:x},u=()=>{var O;const v=(O=i.getElement())==null?void 0:O.parentElement;if(!v||!e.loaded||Object.keys(r).length<=0)return;const{panoIndex:p,camera:g,currentMode:b}=i;if(p===void 0)return;let w;for(const G in r)G.split(",").indexOf(p.toString())>=0&&(w=G);if(!w){for(const G in r)for(const{$element:X}of r[G].rules)X.style.display="none";return}const x=g.position,k=g.getWorldDirection(new V.Vector3),C=v.clientWidth,D=v.clientHeight;if(b!==Ce.Five.Mode.Panorama){for(const G in r)for(const{$element:X}of r[G].rules)X.style.display="none";return}for(const G in r)for(const{$element:X}of r[G].rules)X.style.display=G===w?"block":"none";const[E]=r[w].origins.slice().filter(G=>G.observers.indexOf(p)>=0).sort((G,X)=>{const H=G.clone().setY(0).sub(x).normalize().angleTo(k.clone().setY(0)),B=X.clone().setY(0).sub(x).normalize().angleTo(k.clone().setY(0));return H-B});for(const{rule:G,vertical:X,$element:H}of r[w].rules){const[B,F]=G,R=H.querySelector(".PanoRulerPlugin-rule-line");if(!R)return;if(!E){H.style.display="none";continue}if(B!==E&&F!==E){H.style.display="none";continue}if(B.distanceTo(F)<.3){H.style.display="none";continue}if(B.observers.indexOf(p)===-1||F.observers.indexOf(p)===-1){H.style.display="none";continue}if(B.clone().sub(x).normalize().angleTo(k)>Math.PI/2){H.style.display="none";continue}if(F.clone().sub(x).normalize().angleTo(k)>Math.PI/2){H.style.display="none";continue}const $=B.distanceTo(F);if(F.clone().sub(F.clone().sub(B).divide(new V.Vector3(2,2,2))).distanceTo(x)/$>8){H.style.display="none";continue}const he=B.clone().project(g),de=(he.x+1)/2*C,pe=(-he.y+1)/2*D,Pe=F.clone().project(g),Ie=(Pe.x+1)/2*C,Me=(-Pe.y+1)/2*D,ce=Math.sqrt(Math.pow(Ie-de,2)+Math.pow(Me-pe,2));let Ae=ce,Ee=50;const ue=c({x:~~de,y:~~pe},{x:~~Ie,y:~~Me},C,D);if(ue&&ue.length===1&&(E===B?(Ae=Math.sqrt(Math.pow(ue[0].x-de,2)+Math.pow(ue[0].y-pe,2)),Ee=Ae/ce*50):E===F&&(Ae=Math.sqrt(Math.pow(ue[0].x-Ie,2)+Math.pow(ue[0].y-Me,2)),Ee=100-Ae/ce*50)),ue&&ue.length===2){const te={x:(ue[0].x+ue[1].x)/2,y:(ue[0].y+ue[1].y)/2};Ee=Math.sqrt(Math.pow(te.x-de,2)+Math.pow(te.y-pe,2))/ce*100}const it=(Math.PI/2-Math.atan2(Ie-de,pe-Me))/Math.PI*180,be=R.querySelector(".PanoRulerPlugin-rule-label"),Je=be.children[0].clientWidth;Je>=ce||Je/2>=Ee/100*ce||Je/2>=(1-Ee/100)*ce?R.style.display="none":(R.style.display="block",R.style.width=ce+"px",R.style.left=de+"px",R.style.top=pe+"px",R.style.transform=`rotate(${-it}deg)`,be.style.left=`${Ee}%`)}},d=()=>sl(u),h=()=>{var v,p;return e.loaded?(e.enable||(o.setAttribute("class","PanoRulerPlugin"+(e.options.className?" "+e.options.className:"")),(p=(v=i.getElement())==null?void 0:v.parentElement)==null||p.append(o),u(),i.on("modeChange",u),i.on("cameraUpdate",d),e.enable=!0),!0):!1},m=()=>(e.enable&&(i.off("modeChange",u),i.off("cameraUpdate",d),o&&o.remove(),e.enable=!1),!0);function A(v){if(v.distanceText&&v.distanceText!==e.options.distanceText){const p=v.distanceText;e.options.distanceText=p,Object.values(r).forEach(g=>{g.rules.forEach(b=>{const[w,x]=b.rule,k=w.distanceTo(x),C=b.$element.querySelector(".PanoRulerPlugin-rule-label-name");!C||(C.innerText=p(k))})})}}return{enable:h,disable:m,load:l,state:e,changeConfigs:A}};function Af(i){le(i,"svelte-1h27ktp",".PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp{position:absolute;transform-origin:left 0.0625rem;width:0;height:0.125rem;pointer-events:none}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::after{content:'';position:absolute;left:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::before{content:'';position:absolute;right:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1.5s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp em.svelte-1h27ktp{display:block;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;box-shadow:0 0 0.25rem rgb(0 0 0 / 40%);position:relative}.rule-mixed-line.svelte-1h27ktp.svelte-1h27ktp{display:flex;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;align-items:center}.em-solid.svelte-1h27ktp.svelte-1h27ktp{height:100%;background:#ffffff}.em-dotted.svelte-1h27ktp.svelte-1h27ktp{height:0.125rem;background:var(--background-image);background-position:center;background-repeat:repeat}.PanoRulerPlugin-rule-label.svelte-1h27ktp.svelte-1h27ktp{position:absolute;width:0;height:0;top:0.0625rem;pointer-events:none}.PanoRulerPlugin-rule-label-name.svelte-1h27ktp.svelte-1h27ktp{position:absolute;padding:0.1875rem 0.375rem;background:rgba(195, 195, 195, 0.3);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);border-radius:6.25rem;border:0.0625rem solid rgba(255, 255, 255, 0.6);white-space:nowrap;overflow:hidden;color:#ffffff;font-weight:500;font-size:0.75rem;line-height:1;animation:svelte-1h27ktp-viewport-rule-label 0.25s ease 1s;animation-fill-mode:both;box-shadow:inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3)}@keyframes svelte-1h27ktp-viewport-rule-line{0%{width:0%}100%{width:100%}}@keyframes svelte-1h27ktp-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@keyframes svelte-1h27ktp-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}")}function Is(i,t,e){const n=i.slice();return n[6]=t[e],n}function vf(i){let t,e=i[0].children,n=[];for(let o=0;o<e.length;o+=1)n[o]=ks(Is(i,e,o));return{c(){t=z("div");for(let o=0;o<n.length;o+=1)n[o].c();y(t,"class","rule-mixed-line svelte-1h27ktp")},m(o,s){M(o,t,s);for(let r=0;r<n.length;r+=1)n[r].m(t,null)},p(o,s){if(s&9){e=o[0].children;let r;for(r=0;r<e.length;r+=1){const a=Is(o,e,r);n[r]?n[r].p(a,s):(n[r]=ks(a),n[r].c(),n[r].m(t,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=e.length}},d(o){o&&S(t),ct(n,o)}}}function bf(i){let t,e;return{c(){t=z("em"),y(t,"class",e=Te(i[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),y(t,"style",i[3])},m(n,o){M(n,t,o)},p(n,o){o&1&&e!==(e=Te(n[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&y(t,"class",e),o&8&&y(t,"style",n[3])},d(n){n&&S(t)}}}function ks(i){let t,e,n=`${i[6].width}px`;return{c(){t=z("div"),y(t,"class",e=Te(i[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),y(t,"style",i[3]),T(t,"width",n)},m(o,s){M(o,t,s)},p(o,s){s&1&&e!==(e=Te(o[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&y(t,"class",e),s&8&&y(t,"style",o[3]),s&1&&n!==(n=`${o[6].width}px`)&&T(t,"width",n)},d(o){o&&S(t)}}}function yf(i){let t,e,n,o,s=i[0].labelElement+"",r,a,l=`${i[0].labelOffset}%`,c=`${i[0].width}px`,u=`${i[0].left}px`,d=`${i[0].top}px`,h=`rotate(${i[0].rotateDeg}deg)`;function m(p,g){return p[0].children.length===0?bf:vf}let A=m(i),v=A(i);return{c(){t=z("div"),v.c(),e=ee(),n=z("div"),o=z("div"),r=ke(s),y(o,"class","PanoRulerPlugin-rule-label-name svelte-1h27ktp"),Oe(()=>i[4].call(o)),y(n,"class","PanoRulerPlugin-rule-label svelte-1h27ktp"),T(n,"left",l),y(t,"class","PanoRulerPlugin-rule-line svelte-1h27ktp"),T(t,"width",c),T(t,"left",u),T(t,"top",d),T(t,"transform",h),T(t,"display",i[0].visible&&i[2]?"block":"none")},m(p,g){M(p,t,g),v.m(t,null),j(t,e),j(t,n),j(n,o),j(o,r),a=fi(o,i[4].bind(o))},p(p,[g]){A===(A=m(p))&&v?v.p(p,g):(v.d(1),v=A(p),v&&(v.c(),v.m(t,e))),g&1&&s!==(s=p[0].labelElement+"")&&Se(r,s),g&1&&l!==(l=`${p[0].labelOffset}%`)&&T(n,"left",l),g&1&&c!==(c=`${p[0].width}px`)&&T(t,"width",c),g&1&&u!==(u=`${p[0].left}px`)&&T(t,"left",u),g&1&&d!==(d=`${p[0].top}px`)&&T(t,"top",d),g&1&&h!==(h=`rotate(${p[0].rotateDeg}deg)`)&&T(t,"transform",h),g&5&&T(t,"display",p[0].visible&&p[2]?"block":"none")},i:U,o:U,d(p){p&&S(t),v.d(),a()}}}function wf(i,t,e){let n,{rulerItemProp:o}=t,s=!0,r,a="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PGZpbHRlciBpZD0icHJlZml4X19hIiBoZWlnaHQ9IjQwMCUiIHdpZHRoPSIxMzcuNCUiIHg9Ii0xOC43JSIgeT0iLTE1MCUiPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iZGlsYXRlIiByYWRpdXM9Ii41IiByZXN1bHQ9InNoYWRvd1NwcmVhZE91dGVyMSIvPjxmZU9mZnNldCBpbj0ic2hhZG93U3ByZWFkT3V0ZXIxIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiByYWRpdXM9IjEiIHJlc3VsdD0ic2hhZG93SW5uZXIiLz48ZmVPZmZzZXQgaW49InNoYWRvd0lubmVyIiByZXN1bHQ9InNoYWRvd0lubmVyIi8+PGZlQ29tcG9zaXRlIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIGluMj0ic2hhZG93SW5uZXIiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIgc3RkRGV2aWF0aW9uPSIuNSIvPjxmZUNvbG9yTWF0cml4IGluPSJzaGFkb3dCbHVyT3V0ZXIxIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMiAwIi8+PC9maWx0ZXI+PHBhdGggaWQ9InByZWZpeF9fYiIgZD0iTS44ODkgMkgxMS41OCIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1kYXNoYXJyYXk9IjUgNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBzdHJva2U9IiNmZmYiIHN0cm9rZS1vcGFjaXR5PSIuNCIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjwvZz48L3N2Zz4=";function l(){r=this.offsetWidth,e(1,r)}return i.$$set=c=>{"rulerItemProp"in c&&e(0,o=c.rulerItemProp)},i.$$.update=()=>{i.$$.dirty&3&&(r>=o.width||r/2>=o.labelOffset/100*o.width||r/2>=(1-o.labelOffset/100)*o.width?e(2,s=!1):e(2,s=!0))},e(3,n=`--background-image: url(${a})`),[o,r,s,n,l]}class Cf extends oe{constructor(t){super(),ie(this,t,wf,yf,ne,{rulerItemProp:0},Af)}}function xs(i,t,e){const n=i.slice();return n[12]=t[e],n}function Ds(i){let t,e;return t=new Cf({props:{rulerItemProp:i[12]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.rulerItemProp=n[12]),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Ef(i){let t,e,n=i[0],o=[];for(let r=0;r<n.length;r+=1)o[r]=Ds(xs(i,n,r));const s=r=>L(o[r],1,1,()=>{o[r]=null});return{c(){t=z("div");for(let r=0;r<o.length;r+=1)o[r].c()},m(r,a){M(r,t,a);for(let l=0;l<o.length;l+=1)o[l].m(t,null);e=!0},p(r,[a]){if(a&1){n=r[0];let l;for(l=0;l<n.length;l+=1){const c=xs(r,n,l);o[l]?(o[l].p(c,a),P(o[l],1)):(o[l]=Ds(c),o[l].c(),P(o[l],1),o[l].m(t,null))}for(se(),l=n.length;l<o.length;l+=1)s(l);re()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)P(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)L(o[a]);e=!1},d(r){r&&S(t),ct(o,r)}}}function Pf(i,t,e){var v,p,g,b;let{five:n}=t,{rulerDatas:o}=t,{options:s}=t,r=[];const a=((p=(v=n.getElement())==null?void 0:v.parentElement)==null?void 0:p.clientWidth)||0,l=((b=(g=n.getElement())==null?void 0:g.parentElement)==null?void 0:b.clientHeight)||0,c=(w,x)=>{const k=[[{x:0,y:0},{x:a,y:0}],[{x:0,y:0},{x:0,y:l}],[{x:a,y:0},{x:a,y:l}],[{x:0,y:l},{x:a,y:l}]],C=[];for(let D=0;D<k.length;D++){const E=ol([w,x],[k[D][0],k[D][1]],!0);E&&C.push(E)}return C.length===0?!1:C},u=(w,x)=>{const k=w.clone().project(n.camera),C=(k.x+1)/2*a,D=(-k.y+1)/2*l,E=x.clone().project(n.camera),O=(E.x+1)/2*a,G=(-E.y+1)/2*l,X=Math.sqrt(Math.pow(O-C,2)+Math.pow(G-D,2));return{startLeft:C,startTop:D,endLeft:O,endTop:G,distance:X}},d=(w,x,k)=>{const C=n.camera.position,D=n.camera.getWorldDirection(new V.Vector3),E=w.clone().sub(C).normalize().angleTo(D),O=x.clone().sub(C).normalize().angleTo(D),G=w.distanceTo(x),H=x.clone().sub(x.clone().sub(w).divide(new V.Vector3(2,2,2))).distanceTo(C),{startLeft:B,startTop:F,endLeft:R,endTop:N,distance:_}=u(w,x),Y=-((Math.PI/2-Math.atan2(R-B,F-N))/Math.PI)*180;let ae=!0;k||(ae=!1),!et(w,k)&&!et(x,k)&&(ae=!1),G<.3&&(ae=!1),E>Math.PI/2&&(ae=!1),O>Math.PI/2&&(ae=!1),H/G>8&&(ae=!1);let he=50,de=_;const pe=c({x:~~B,y:~~F},{x:~~R,y:~~N});if(pe&&pe.length===1&&(et(w,k)?(de=Math.sqrt(Math.pow(pe[0].x-B,2)+Math.pow(pe[0].y-F,2)),he=de/_*50):et(x,k)&&(de=Math.sqrt(Math.pow(pe[0].x-R,2)+Math.pow(pe[0].y-N,2)),he=100-de/_*50)),pe&&pe.length===2){const Pe={x:(pe[0].x+pe[1].x)/2,y:(pe[0].y+pe[1].y)/2};he=Math.sqrt(Math.pow(Pe.x-B,2)+Math.pow(Pe.y-F,2))/_*100}return{startLeft:B,startTop:F,distance:_,deg:Y,visible:ae,labelOffset:he,ruleLength:G}},h=()=>{const w=n.panoIndex,x=o.find(X=>X.panoIndex===w);if(!x)return e(0,r=[]);if(n.currentMode!==Ce.Five.Mode.Panorama)return e(0,r=[]);const k=n.camera.position,C=n.camera.getWorldDirection(new V.Vector3),D=x.lines.map(X=>new V.Vector3(X.start[0],-X.start[1],-X.start[2])),E=x.lines.map(X=>new V.Vector3(X.end[0],-X.end[1],-X.end[2])),[O]=D.concat(E).sort((X,H)=>{const B=X.clone().setY(0).sub(k).normalize().angleTo(C.clone().setY(0)),F=H.clone().setY(0).sub(k).normalize().angleTo(C.clone().setY(0));return B-F}),G=x.lines.map(X=>{var de,pe;const H=X.start,B=X.end,{startLeft:F,startTop:R,distance:N,deg:_,visible:$,labelOffset:Y,ruleLength:ae}=d(new V.Vector3(H[0],-H[1],-H[2]),new V.Vector3(B[0],-B[1],-B[2]),O),he=[];return X.children&&((de=X.children)==null?void 0:de.length)>0&&((pe=X.children)==null||pe.forEach(Pe=>{const Ie=Pe.start,Me=Pe.end,{distance:ce}=u(new V.Vector3(Ie[0],-Ie[1],-Ie[2]),new V.Vector3(Me[0],-Me[1],-Me[2]));he.push({width:ce,state:Pe.state})})),{width:N,left:F,top:R,rotateDeg:_,state:X.state,children:he,labelOffset:Y,visible:$,labelElement:s.distanceText(ae)}});e(0,r=G)},m=()=>bi(h),A=bo(h,80);return Ue(()=>{h(),n.on("panoArrived",h),n.on("modeChange",h),n.on("cameraDirectionUpdate",m),n.on("movingToPano",m),n.on("mouseWheel",()=>A()),n.on("pinchGesture",()=>A())}),Et(()=>{n.off("panoArrived",h),n.off("modeChange",h),n.off("cameraDirectionUpdate",m),n.off("movingToPano",m),n.off("mouseWheel",()=>A()),n.off("pinchGesture",()=>A())}),i.$$set=w=>{"five"in w&&e(1,n=w.five),"rulerDatas"in w&&e(2,o=w.rulerDatas),"options"in w&&e(3,s=w.options)},[r,n,o,s]}class If extends oe{constructor(t){super(),ie(this,t,Pf,Ef,ne,{five:1,rulerDatas:2,options:3})}}class kf{constructor(t,e){f(this,"five");f(this,"container",document.createElement("div"));f(this,"panoRulerProData");f(this,"rulerItems");f(this,"state",{enabled:!1,loaded:!1,options:{className:"",distanceText:t=>`${t.toFixed(1)}m`}});var n,o;this.five=t,this.container.classList.add("panoRulerProPlugin-container"),this.container.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"),e&&(e.data&&this.load(e.data),this.state.options=Q(Q({},this.state.options),e.options||{}),(n=e.options)!=null&&n.className&&this.container.classList.add((o=e.options)==null?void 0:o.className)),this.five.once("modelLoaded",()=>W(this,null,function*(){var s,r;(r=(s=this.five.getElement())==null?void 0:s.parentNode)==null||r.append(this.container)})),this.five.once("dispose",()=>this.dispose())}load(t){return W(this,null,function*(){if(!this.five.work)return;const e=t.data;if(!e)throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");this.panoRulerProData=e,this.state.loaded=!0})}enable(){return this.state.loaded?(this.state.enabled||(this.state.enabled=!0,this.render()),!0):!1}disable(){return this.state.enabled&&(this.state.enabled=!1,this.render()),!0}render(){return W(this,null,function*(){var t;if(this.state.enabled){if(!this.panoRulerProData||!this.container)return;this.rulerItems=new If({target:this.container,props:{five:this.five,rulerDatas:this.panoRulerProData,options:this.state.options}})}else(t=this.rulerItems)==null||t.$destroy(),this.rulerItems=void 0})}dispose(){this.container&&(this.rulerItems.$destroy(),this.rulerItems=void 0),this.container.remove()}}const xf=(i,t)=>new kf(i,t),Df="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAABCCAYAAAB9y1BhAAAAAXNSR0IArs4c6QAADh5JREFUeAHtnVuPLDcVhedwC/dACKAICDxEIBQpygNI/Ab+MX8B8YCQEAjxgBAQLsm5Jjkn58r6Sl4jT52qnu4zXd121dqSx67q7ip7eXsv721XzcVFJAgEgSAQBIJAEAgCQeC4CLx48eKbSu+RH/fKuVoQWB8Cn1tfk9KiIHAUBH6tq/xKiTwSBILADgRCJDvAyUebRuAbpfXxSDatBmn8Pgh8YZ8v5TtBYIMIvFCbSZEgEASuQSBEcg1A+XizCDzfbMvT8CBwIAIhkgMBy9c3g0CIZDNdnYbeFIEQyU0RzO/XikCIZK09m3YdHYEQydEhzQVXgkCIZCUdmWYsj0CIZHmMc4c+EchCe5/9llqfAYEQyRlAzy27QCAeSRfdlEq2gECIpIVeSB1aRAAiudVixVKnINAaAiGS1nok9WkFAUJb8Upa6Y3Uo2kEQiRNd08qd0YEQiJnBD+37guBEElf/ZXang6BEMnpsM6dOkcgRNJ5B66x+nrjLmsTX1J6bSJHZ7+o9HklynWaOse1eKcc+XVlvxYFEnlfaThWfb7mcsn5nPRM6WmVU55KfO+J0mdKj8f5rVu3skNMoET6RSBE0m/fdVNzGWII4StKXy65y18t58aEAVGcUjDkGHsL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wVRcwSFPbdu194LKt+kEdtT/SIQLS4Tddbenohy4nDwKnQGAPG4rdZALehA09KpGo8bhou9iUbbs0/jMNTscBdRgJAm0hIF1+wzWSrt52OXkQOCUC0kNsNNuHsatz24iHqI709GxLAjcmktJQEwj5WPA+aCiuWB4YHKOT4yYRkF7zUNkg0lueSI4EgbMiIJ1kZyshL9LUOjNEwkT9sXT2pBP1VyaSQiCse9Coqa27LApBIPE+BEKkLwSk32zRHESDkp0zkSDQBALF9uKdYHunnkthwo7tfXQqQjmYSNQImBACIU2xIuGreB8CIdIvAtJzNogMosHI4mYkCDSHgPTUXspU2ItoEIvzEArlxWRvIlGFWTSnsnWF+b1dKAhk8QrrHpEgsDgC0ndi0oNoEBIuiASBZhGQvnqCz/KCJ/jYZtto7DPRoUU2N11LJIXxqNyUC0VFqeCTpRlP94gEgZMhIL0nbDCIdJswQSQINI9AIRRsNRP+KfvOkgNrKEddr5660YUqw3k8EAhkbvsuCztPVSF7JDqMBIF1IKAxcOl5S8eZLEWCQDcIFBtO2Kv2UOr645lAKkex4VeIpLo5jHbls1KD4eYaWIu4R+UeyYLA2RHQWGAADiJ9P9u2StcheRB4VQSkyzgD2PQppwBH4MaEMpBFRSDcqCYQx9ggDphr0QUb3SMSBJpAQGPiciei9P6oYYAmGphKbA4B6TRrJ+j1HKHYzh8cZbpVBowXZ8bgQhzPNJAOvvD4QjkOAj0hUAbdUOVMoHrqudT1OgSk2zgLkAl2n/LYvh9s900kutYV4UIvQiBXMMlBEAgCQWA1CBRCgUjmHAkI5vk+PACR1BcZmGmfH64GzTQkCASBILBhBAqhgEC9rDFGJI7FGJEcB4EgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCm0fg/x4jQQWGalpFAAAAAElFTkSuQmCC";function Lf(){const i=document.createElement("div"),t=document.createElement("i"),e=document.createElement("span");return i.appendChild(t),i.appendChild(e),i.style.position="relative",i.style.width="100%",i.style.display="flex",i.style.flexDirection="column",i.style.alignItems="center",i.style.marginTop=`${150/16}rem`,i.style.opacity="0",i.style.transition="opacity 1000ms linear",t.style.display="block",t.style.width=`${134/16}rem`,t.style.height=`${22/16}rem`,t.style.backgroundSize="100%",t.style.backgroundRepeat="no-repeat",t.style.backgroundImage=`url(${Df})`,e.style.marginTop=`${10/16}rem`,e.style.fontSize=`${16/16}rem`,e.style.color="#fff",e.style.opacity="0.7",e.style.textShadow="0 2px 16px rgb(22 34 83 / 24%)",e.style.fontWeight="bold",{appendTo(n){n.appendChild(i)},dispose(){i.remove()},setRoom(n){e.innerHTML=n.name+" "+Math.floor(n.size/1e6)+"\u33A1"},show(){i.style.opacity="1"},hide(){i.style.opacity="0"}}}const Sf=new I.TextureLoader;function eo(i){return W(this,null,function*(){return new Promise((t,e)=>{Sf.load(i,t,void 0,e)}).then(t=>(t.encoding=I.sRGBEncoding,t.minFilter=I.LinearFilter,t))})}const Qn={userAction:!0};class Mf extends zt{constructor(e,n){super(e);f(this,"state",{visible:!0,enabled:!0,config:{compassImageUrl:"//vrlab-image4.ljcdn.com/release/web/v3/north-point-circle.96498e69.png",entryDoorImageUrl:"//vrlab-image4.ljcdn.com/release/web/enterDoor.831b8208.png"}});f(this,"data");f(this,"group",new I.Group);f(this,"roomInfoInstance");f(this,"roomInfoWrapperInstance");f(this,"compassMeshTween");f(this,"compassMesh");f(this,"entryDoorMesh");f(this,"dispose",()=>{var e,n,o,s;this.five.scene.remove(this.group),this.group.remove(...this.group.children),(n=(e=this.compassMesh)==null?void 0:e.material.map)==null||n.dispose(),(s=(o=this.entryDoorMesh)==null?void 0:o.material.map)==null||s.dispose(),this.five.off("dispose",this.dispose),this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_addEventListener",()=>{this.five.on("panoArrived",this.onFivePanoArrived),this.five.on("panoWillArrive",this.onFivePanoWillArrive),this.five.on("modeChange",this.onFiveModeChange),this.five.on("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_removeEventListener",()=>{this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("modeChange",this.onFiveModeChange),this.five.off("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_enable",()=>{this.five.scene.add(this.group),this.init(),this.onFivePanoArrived(this.five.panoIndex||0),this._addEventListener()});f(this,"_disable",()=>{this._clearCompassIfNeed(),this._clearEntryDoorIfNeed(),this.five.scene.remove(this.group),this._removeEventListener()});f(this,"_toggleVisible",()=>{this.group.visible=this.state.visible,this.five.needsRender=!0});f(this,"_clearCompassIfNeed",()=>{var e;this.compassMesh&&(this.group.remove(this.compassMesh),(e=this.compassMesh.material.map)==null||e.dispose(),this.compassMesh=null)});f(this,"_clearEntryDoorIfNeed",()=>{var e;this.entryDoorMesh&&(this.group.remove(this.entryDoorMesh),(e=this.entryDoorMesh.material.map)==null||e.dispose(),this.entryDoorMesh=null),this.roomInfoInstance&&(this.roomInfoInstance.dispose(),this.roomInfoInstance=null),this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.dispose(),this.roomInfoWrapperInstance=null)});f(this,"onFivePanoWillArrive",e=>{var n,o;e!==this.five.panoIndex&&((n=this.compassMeshTween)==null||n.dispose(),(o=this.compassMesh)==null||o.material.setValues({opacity:0}))});f(this,"onFivePanoArrived",e=>{var o,s,r,a,l,c,u;const n=(r=(s=(o=this.five.work)==null?void 0:o.observers)==null?void 0:s[e])==null?void 0:r.standingPosition;if(this.compassMesh&&(this.compassMesh.position.copy(n.clone().setY(n.y+.01)),this.compassMesh.material.opacity===0&&((a=this.compassMeshTween)==null||a.dispose(),this.compassMeshTween=tl(1e3).onUpdate(({progress:d})=>{var h;(h=this.compassMesh)==null||h.material.setValues({opacity:d}),this.five.needsRender=!0}).play())),this.entryDoorMesh){const h=new I.Vector3(this.data.entrance.position.x,this.data.entrance.position.y,this.data.entrance.position.z).clone().setY(n.y).sub(n).normalize(),m=n.clone().add(h.clone().multiplyScalar(.7)).setY(n.y+.01);this.entryDoorMesh.rotation.z=new I.Vector3(0,0,-1).angleTo(h),this.entryDoorMesh.position.copy(m),((l=this.data)==null?void 0:l.room_observers[e].room.type)===1?(c=this.entryDoorMesh)==null||c.material.setValues({opacity:1}):(u=this.entryDoorMesh)==null||u.material.setValues({opacity:0})}this.roomInfoInstance&&this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.css3DObject.position.copy(n.clone().setY(n.y+.01)),this.roomInfoInstance.setRoom(this.data.room_observers[e].room)),this.five.needsRender=!0});f(this,"onFiveCameraDirectionUpdate",({longitude:e,latitude:n})=>{var o,s;!this.roomInfoWrapperInstance||(this.roomInfoWrapperInstance.css3DObject.rotation.z=e,n>.66&&this.five.getCurrentState().mode==="Panorama"?(o=this.roomInfoInstance)==null||o.show():(s=this.roomInfoInstance)==null||s.hide())});f(this,"onFiveModeChange",(e,n,o,s,r)=>{e!==n&&this.setState({visible:e===Ce.Five.Mode.Panorama},{userAction:r})});this.five.scene.add(this.group),this.five.once("dispose",this.dispose),this.setState({visible:!0,enabled:!0,config:Q(Q({},this.state.config),n||{})})}enable(e=Qn){this.setState({enabled:!0},e)}disable(e=Qn){this.setState({enabled:!1},e)}show(e=Qn){if(!!this.state.enabled)return this.setState({visible:!0},e),Promise.resolve()}hide(e=Qn){if(!!this.state.enabled)return this.setState({visible:!1},e),Promise.resolve()}setState(e,n={userAction:!0}){var s,r;const o=JSON.parse(JSON.stringify(this.state));this.state={visible:(s=e.visible)!=null?s:o.visible,enabled:(r=e.enabled)!=null?r:o.enabled,config:Q(Q({},o.config),e.config||{})},this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n.userAction}),e.enabled===!0&&(this._enable(),this.hooks.emit("enable",n)),e.enabled===!1&&(this._disable(),this.hooks.emit("disable",n)),e.visible===!1&&(this._toggleVisible(),this.hooks.emit("hide",n)),e.visible===!0&&(this._toggleVisible(),this.hooks.emit("show",n)),e.config&&this.init()}load(e,n,o=!0){return W(this,null,function*(){const s=yield this.formatData(e);JSON.stringify(this.data)!==JSON.stringify(s)&&(this.hooks.emit("dataChange",s,this.data),this.data=Q({},s),this.init(),n&&this.setState(n,{userAction:o}),this.hooks.emit("dataLoaded",this.data))})}formatData(e){return e.version&&e.data?Promise.resolve(e.data):Promise.resolve(e)}init(){return W(this,null,function*(){var o,s,r,a;const e=(s=(o=this.data)==null?void 0:o.north_rad)!=null?s:null;this._clearCompassIfNeed(),e!==null&&(this.compassMesh=yield this.loadCompassMesh(),this.compassMesh.rotateX(-Math.PI/2),this.compassMesh.rotateZ(e-Math.PI/2),this.group.add(this.compassMesh));const n=(a=(r=this.data)==null?void 0:r.entrance)!=null?a:null;this._clearEntryDoorIfNeed(),n!==null&&(this.entryDoorMesh=yield this.loadEntryDoorMesh(),this.roomInfoWrapperInstance=this.loadRoomInfo(),this.roomInfoInstance=Lf(),this.entryDoorMesh.rotateX(-Math.PI/2),this.roomInfoWrapperInstance&&this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container),this.group.add(this.entryDoorMesh)),this.onFivePanoArrived(this.five.panoIndex||0),this.five.needsRender=!0})}loadCompassMesh(){return W(this,null,function*(){const e=this.state.config.compassImageUrl,n=yield eo(e),o=new I.CircleGeometry(.7,32),s=new I.MeshBasicMaterial({map:n,transparent:!0,opacity:0,depthTest:!1}),r=new I.Mesh(o,s);return r.name="pano-compass-mesh",r})}loadEntryDoorMesh(){return W(this,null,function*(){const e=this.state.config.entryDoorImageUrl,n=yield eo(e),o=new I.PlaneGeometry(.2,.16),s=new I.MeshBasicMaterial({map:n,transparent:!0,opacity:.8,depthTest:!1}),r=new I.Mesh(o,s);return r.name="pano-compass-entry-door",r})}loadRoomInfo(){const e=[new I.Vector3(-.7,0,-.7),new I.Vector3(.7,0,-.7),new I.Vector3(.7,0,.7),new I.Vector3(-.7,0,.7)];return Kt(this.five).create3DDomContainer(e)}}const Tf=(i,t)=>new Mf(i,t);function Fn(i,t,e){const n=i[t],o=i[e];n===void 0||o===void 0||(i[t]=o,i[e]=n)}function zf(i,t,e){const n=e/2;for(let o=1;o<=n;o++){const s=e-(o-1);for(let r=1;r<=t;r++){const a=(o-1)*t+r-1,l=(s-1)*t+r-1;Fn(i,a*4+0,l*4+0),Fn(i,a*4+1,l*4+1),Fn(i,a*4+2,l*4+2),Fn(i,a*4+3,l*4+3)}}}class rl{constructor(t,e){f(this,"width");f(this,"height");f(this,"containerDom");f(this,"hooks",new Ce.Subscribe);f(this,"canvas",document.createElement("canvas"));f(this,"five");f(this,"scale");f(this,"config");f(this,"offset",{x:0,y:0});f(this,"context");f(this,"renderCenter",new I.Vector3);f(this,"hammer");f(this,"state",{enabled:!1});f(this,"offsetRange");f(this,"isPanning",!1);f(this,"onPanstart",()=>{this.isPanning=!0,this.canvas.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)"});f(this,"onPan",t=>{if(!this.isPanning||!this.offsetRange||this.hooks.emit("wantsPanGesture",t))return;const{translateX:n,translateY:o}=this.getPanOffset(t,this.offsetRange);this.canvas.style.transform=`translate3d(${n}px, ${o}px, 100px)`});f(this,"onPanend",t=>{if(this.isPanning=!1,this.canvas.style.boxShadow="none",!this.offsetRange)return;const{translateX:e,translateY:n}=this.getPanOffset(t,this.offsetRange);this.canvas.style.transform=`translate3d(${e}px, ${n}px, 100px)`,this.offset={x:e,y:n}});var o,s,r;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(o=e==null?void 0:e.scale)!=null?o:2,this.width=(s=e==null?void 0:e.width)!=null?s:190,this.height=(r=e==null?void 0:e.height)!=null?r:190,this.config={dragEnabled:(e==null?void 0:e.dragEnabled)||!1,autoFixPCPosition:(e==null?void 0:e.autoFixPCPosition)||!1,initialPosition:(e==null?void 0:e.initialPosition)||{left:"0",top:"0"}};const n=this.canvas.getContext("2d");if(!n)throw new Error("CANNOT CREATE CONTEXT2D");this.context=n,this.config.dragEnabled&&(this.hammer=new Pn.default(this.canvas),this.hammer.on("pan",this.onPan),this.hammer.on("panstart",this.onPanstart),this.hammer.on("panend",this.onPanend)),this.initStyle()}dispose(){var t;this.clear(),this.disable(),(t=this.hammer)==null||t.destroy()}enable(){if(!this.state.enabled)return this.state.enabled=!0,this.containerDom&&this._appendTo(this.containerDom),this}disable(){if(!!this.state.enabled)return this.state.enabled=!1,this.canvas.remove(),this}appendTo(t){return this.containerDom=t,this.state.enabled&&this._appendTo(t),this}clear(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}renderWithPoint(t){!this.containerDom||!this.state.enabled||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}renderWithScreenPoint(t){!this.containerDom||!this.state.enabled||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}resetOffset(){this.offset={x:0,y:0},this.canvas.style.transform=`translate3d(${0}px, ${0}px, 100px)`}getCurrentState(){return{enabled:this.state.enabled}}getRenderCenter(){return this.renderCenter}_appendTo(t){if(this.resetOffset(),t.appendChild(this.canvas),!this.offsetRange){const e=this.canvas.getBoundingClientRect(),n=t.getBoundingClientRect(),o=n.right-e.right,s=n.bottom-e.bottom,r=n.left-e.left,a=n.top-e.top;this.offsetRange={min:{x:r,y:a},max:{x:o,y:s}}}}autoFixPCPosition(){if(!this.containerDom)return;const{width:t,height:e}=this,[n,o,s]=(()=>{if(this.renderCenter instanceof I.Vector3){const r=this.renderCenter.clone().project(this.five.camera);return[(r.x+1)/2*this.containerDom.clientWidth,-(r.x-1)/2*this.containerDom.clientWidth,-(r.y-1)/2*this.containerDom.clientHeight]}else return[this.renderCenter.x,this.containerDom.clientWidth-this.renderCenter.x,this.renderCenter.y]})();n<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):s<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):o<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=-t-90+"px"):(this.canvas.style.left=-t/2+"px",this.canvas.style.top=-e-90+"px"),this.canvas.style.transform=`translate3d(${n}px, ${s}px, 10px)`,this.offset={x:n,y:s}}render(){if(!this.five.renderer||!this.containerDom)return;const{scale:t,context:e,width:n,height:o}=this,s=this.five.renderer.getSize(new I.Vector2),[r,a]=(()=>{if(this.renderCenter instanceof I.Vector3){const p=this.renderCenter.clone().project(this.five.camera);return[(p.x+1)/2*s.x,(p.y+1)/2*s.y]}else return[this.renderCenter.x,s.y-this.renderCenter.y]})(),l=1,c=n/t,u=o/t,d=l*t,h=this.five.getPixels(r-c/2,a-c/2,c,u,d),m=Math.floor(n*l),A=Math.floor(o*l);zf(h,m,A);const v=new ImageData(m,A);v.data.set(h),e.putImageData(v,0,0)}initStyle(){const t=this.canvas;t.classList.add("five-plugin__magnifier"),t.style.position="absolute",t.style.pointerEvents="all",t.style.borderRadius="50%",t.style.zIndex="99";const e=1;t.setAttribute("width",(this.width*e).toString()),t.setAttribute("height",(this.height*e).toString()),t.style.border="2px solid rgba(255,255,255,0.20)",t.style.width=this.width+"px",t.style.height=this.height+"px",t.style.top=this.config.initialPosition.top,t.style.left=this.config.initialPosition.left,t.style.transform="translate(0,0,100px)",this.config.dragEnabled&&(this.canvas.style.cursor="pointer")}getPanOffset(t,e){const{min:{x:n,y:o},max:{x:s,y:r}}=e,a=this.offset.x+t.deltaX,l=this.offset.y+t.deltaY,c=Math.min(Math.max(a,n),s),u=Math.min(Math.max(l,o),r);return{translateX:c,translateY:u}}}class Bf{constructor(t){f(this,"edges",[]);f(this,"five");f(this,"onModelLoaded",()=>{!this.five.model||(this.edges=this.five.model.getEdges())});this.five=t,this.five.model.loaded?this.onModelLoaded():this.five.on("modelLoaded",this.onModelLoaded)}dispose(){}getAdsorbentPoint(t){if(this.edges.length===0)return null;let e=1/0,n;return this.edges.forEach(o=>{const s=o.closestPointToPoint(t.point,!0,new V.Vector3),r=s.distanceTo(t.point);r<e&&(n=s,e=r)}),e>.1?null:n||null}}function jf(i,t){for(let e=0,n=t.length;e<n;e++)if(i===t[e])return t.splice(e,1)[0]}class Ye{constructor(t){f(this,"id");f(this,"lines");f(this,"position");f(this,"type","point");this.id=_e(),this.lines=[],this.position=new V.Vector3,t instanceof V.Vector3?this.position.copy(t):this.position.fromArray(t)}toJson(){return{id:this.id,position:this.position.toArray()}}addLine(t){this.lines.push(t)}removeLine(t){jf(t,this.lines)}clone(){return new Ye(this.position)}}class yi{constructor(t){f(this,"id",_e());f(this,"lines",[]);f(this,"points",[]);f(this,"visiblePanoIndexes");f(this,"model");f(this,"type","polyline");f(this,"hook",new Ce.Subscribe);this.model=t.model}addLine(t){if(this.includes(t)){console.error(new Error("\u4E0D\u80FD\u91CD\u590D\u6DFB\u52A0\u7EBF\u6BB5"));return}const e=this.getLastPoint(),n=e&&t.findAnotherPoint(e);e?e&&n?(this.lines.push(t),this.points.push(...t.points),this.hook.emit("lineAdded",t)):console.error(new Error("\u4F20\u5165\u7EBF\u6BB5\u65E0\u6CD5\u4E0E\u5F53\u524D\u6298\u7EBF\u8FDB\u884C\u8FDE\u63A5")):(this.lines.push(t),this.points.push(...t.points),this.hook.emit("lineAdded",t))}removeLine(t){if(this.lines.length!==0){if(!this.isLastLine(t)){console.error(new Error("\u4F20\u5165\u7EBF\u6BB5\u4E0D\u662F\u5F53\u524D\u6298\u7EBF\u7684\u6700\u540E\u4E00\u6BB5"));return}this.lines.pop(),this.lines.length===0?this.points.slice(0,this.points.length):this.points.pop(),this.hook.emit("lineRemoved",t)}}isLastLine(t){const e=this.getLastLine();return e?t.id===e.id:!1}getLastLine(){return this.lines.slice(-1)[0]}clear(){this.lines.slice(0,this.lines.length),this.points.slice(0,this.points.length)}overlapWith(t){return t.type==="point"?this.includes(t):t.type==="line"?t.points.some(e=>this.includes(e)):t.type==="polyline"?t.points.some(e=>this.includes(e)):!0}includes(t){return t.type==="point"?this.points.find(({id:e})=>e===t.id)!==void 0:t.type==="line"?this.lines.find(({id:e})=>e===t.id)!==void 0:!1}isEmpty(){return this.points.length===0}getLastPoint(){return this.points.slice(-1)[0]}toJson(){return{id:this.id,lines:this.lines.map(t=>t.toJson()),visiblePanoIndexes:this.visiblePanoIndexes}}getPointByID(t){return this.points.find(({id:e})=>e===t)}fromJson(t){this.clear(),this.id=t.id;const{getPoint:e,getAllPoints:n}=r(),o=t.lines.map(a=>{const[l,c]=a.points,u=e(l),d=e(c);if(!u||!d)throw new Error("\u7EBF\u4E0A\u7684\u70B9\u4E0D\u5B58\u5728");const h=new Bt(u,d,this.model);return h.id=a.id,h.text=a.text,h}),s=n();this.points.push(...s),this.lines.push(...o),this.visiblePanoIndexes=t.visiblePanoIndexes;function r(){const a=new Map;function l(u){const d=a.get(u.id);if(d)return d;const h=new Ye(u.position);return h.id=u.id,a.set(u.id,h),h}function c(){return Array.from(a.values())}return{getPoint:l,getAllPoints:c}}return this}replace(t){this.id=t.id,this.clear(),this.lines.push(...t.lines),this.points.push(...t.points)}}const Vf=1,Of=3,Rf=new V.Color(16777215),Qf=new V.Color(6522623),Ff=new V.Color(16777215),Hf=new V.Color(6522623),_f=6,Gf=8,Wf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAIVBMVEUAAAD////////////////////////////////////////PIev5AAAACnRSTlMAG/Py2baba05un7UgfgAAAHJJREFUKM9joBpgLHVSCRdA4metAoJlCJHmVWBgAeNzroKCCVCBLpjACqgJVjCBxRBT2FbBQQJYQAohsBAsUIUQWA4WiEIILAULeCEEloAFtBACizAEMLRgGIphLabDMJ2O6TlM72MGECIIMQIZIxqoBQCPvpJ/e9FaAAAAAABJRU5ErkJggg==",al=new V.TextureLoader().load(Wf),ll={pointTexture:al,pointSize:_f,lineWidth:Vf,lineColor:Rf,pointColor:Ff,lineRenderOrder:20,pointsRenderOrder:20};fe(Q({},ll),{dashed:!0});const Nf={pointTexture:al,pointSize:Gf,lineWidth:Of,lineColor:Qf,pointColor:Hf,lineRenderOrder:10,pointsRenderOrder:10};function Xf(i,t,e){var u,d,h,m,A;const n=(u=e==null?void 0:e.lineWidth)!=null?u:2,o=(d=e==null?void 0:e.lineColor)!=null?d:new V.Color(16777215),s=(h=e==null?void 0:e.pointSize)!=null?h:5,r=(m=e==null?void 0:e.lineRenderOrder)!=null?m:10,a=(A=e==null?void 0:e.lineRenderOrder)!=null?A:20,l=new ma.Line(i,t);l.setMaterial({linewidth:n,color:o}),l.line.material.depthTest=!1,l.line.material.transparent=!0,l.line.renderOrder=r,l.points.renderOrder=a;const c=l.points.material;return c.depthTest=!1,c.size=s,e!=null&&e.pointColor&&c.color.set(e.pointColor).convertSRGBToLinear(),e!=null&&e.pointTexture&&(c.map=e.pointTexture),l}function Ls(i,t){const[e,n]=i.points,o=t==="light"?Nf:ll,s=Xf(e.position,n.position,o);return s.name="normalLine_"+i.id,s}function En(i){const{x:t,y:e,z:n}=i;return!(Math.abs(t)>1||Math.abs(e)>1||Math.abs(n)>1)}function ji(i){const{z:t}=i;return!(Math.abs(t)>1)}function Yf(){const i=document.createElement("div");return i.setAttribute("style","backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);-webkit-tap-highlight-color: rgba(0,0,0,0);"),i.style.width="max-content",i.style.padding="3px 6px",i.style.lineHeight="1",i.style.textAlign="center",i.style.transform="translate(-50%, -50%)",i.style.borderRadius="100px",i.style.fontSize="14px",i.style.color="#fff",i.style.background="rgba(195,195,195,0.70)",i.style.border="0.5px solid rgba(255,255,255,0.6)",i.style.cursor="pointer",i}function Uf(i){const t=document.createElement("div");return t.id="distance_"+i.id,t.classList.add("five-plugin-measure__distance"),t.style.opacity="0",t.style.position="absolute",t.style.left="0",t.style.top="0",t.style.width="0",t.style.height="0",t.style.transform="translate3d(0, 0, 0)",t.style.transformOrigin="left top",t}function qf(i){let t=!0;const{line:e}=i,n=e.id,o=Yf(),s=Uf(e),r=i.userDistanceItem,a=new V.Vector3(0,0,0),l={lineID:n,ndcPosition:a,update:h,appendTo:m,remove:A,highlight:u,unHighlight:d,getCurrentContent:v,setItemSelectable:p};s.style.pointerEvents=t?"all":"none",r!=null&&r.element?s.appendChild(r.element):s.appendChild(o);function c(){var g;(g=i.clickCallback)==null||g.call(i,l)}function u(){if(r)return r.highlight();o.style.border="0.5px solid #95AEFF",o.style.background="linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)"}function d(){if(r)return r.unHighlight();o.style.border="0.5px solid rgba(255,255,255,0.6)",o.style.background="rgba(195,195,195,0.70)"}function h(g){if(e.mesh.visible===!1){s.style.opacity="0",s.style.pointerEvents="none";return}const b=g.getElement();if(!b)return;const w=b.clientWidth,x=b.clientHeight,k=w/2,C=x/2;if(e.points.length<2)return;const[D,E]=e.points,O=D.position.clone().project(g.camera),G=E.position.clone().project(g.camera),X=O.clone().lerp(G,.5),H=new V.Vector2(O.x*k,O.y*C),B=new V.Vector2(G.x*k,G.y*C),F=H.distanceTo(B);if((()=>!(Math.abs(O.z)>1||Math.abs(G.z)>1||!ji(O)&&!ji(G)||!ji(X)||F===0))()===!1){s.style.opacity="0",s.style.pointerEvents="none";return}const N=(X.x+1)/2*w,_=-(X.y-1)/2*x,Y=-(Math.atan((H.y-B.y)/(H.x-B.x))*180)/Math.PI,ae=s.parentElement&&o.clientWidth>F?-20:0;s.style.transform=`translate(${N}px, ${_}px) rotate(${Y}deg) translateY(${ae}px)`,s.style.opacity="1",s.style.pointerEvents=t?"all":"none",r&&r.update({line:e,polyline:e.getPolyline()});const he=v();o.innerText=he}function m(g){g.appendChild(s),s.addEventListener("click",c)}function A(){o.removeEventListener("click",c),s.remove()}function v(){var D,E,O;if(e.points.length<2)return"";const[g,b]=e.points,w=g.position.clone().distanceTo(b.position),x=(D=i.line.text)!=null?D:i.line.model.config.defaultText,k=(O=(E=i.line.model.config)==null?void 0:E.getDistanceText)==null?void 0:O.call(E,w),C=x!=null?x:k;return C!=null?C:w.toFixed(2)+"m"}function p(g){t=g}return l}class Bt{constructor(t,e,n){f(this,"id");f(this,"selected",!1);f(this,"text");f(this,"type","line");f(this,"model");f(this,"mesh");f(this,"points");f(this,"lightMesh");f(this,"hook");f(this,"distanceItem");f(this,"polyline");var o;if(this.id=_e(),this.model=n,t.id===e.id)throw new Error("\u65E0\u6548\u7684\u7EBF\u6BB5, \u4E00\u4E2A\u70B9\u65E0\u6CD5\u6784\u6210\u7EBF\u6BB5");typeof n.config.defaultText=="string"&&(this.text=n.config.defaultText),this.hook=new Ce.Subscribe,this.points=[t,e],this.mesh=Ls(this,"normal"),this.lightMesh=Ls(this,"light"),this.distanceItem=qf({line:this,clickCallback:()=>this.hook.emit("selected",this),userDistanceItem:(o=this.model.config)!=null&&o.userDistanceItemCreator?this.model.config.userDistanceItemCreator():void 0}),t.lines.push(this),e.lines.push(this)}clear(){this.selected=!1,this.polyline=void 0}isEmpty(){return this.points.length===0}getPolyline(){if(this.polyline)return this.polyline;const t=this.model.polylines.find(e=>e.lines.includes(this));if(t)return this.polyline=t,t}findAnotherPoint(t){return this.points.find(({id:e})=>e!==t.id)}setText(t){this.text=t,this.hook.emit("textChanged",t)}toJson(){return{id:this.id,points:this.points.map(t=>t.toJson()),text:this.text}}clone(){const t=new Bt(this.points[0].clone(),this.points[1].clone(),this.model);return t.text=this.text,t}}class wi{constructor(t){f(this,"config");f(this,"polylines",[]);f(this,"hook",new Ce.Subscribe);this.config=t}addPolyline(t){if(this.includes(t)){console.error(new Error("\u4E0D\u80FD\u91CD\u590D\u6DFB\u52A0 polyline"));return}this.polylines.push(t),this.hook.emit("polylineAdded",t)}replacePolylineByID(t,e){const n=this.getPolylineByID(t);n==null||n.replace(e)}removePolyline(t){const e=this.polylines.findIndex(({id:n})=>n===t.id);if(e===-1){console.error(new Error("polyline \u4E0D\u5B58\u5728"));return}this.polylines.splice(e,1),this.hook.emit("polylineRemoved",t)}getPolylineByID(t){return this.polylines.find(e=>e.id===t)}getPolylineByLine(t){return this.polylines.find(e=>e.includes(t))}getLineByID(t){return this.getAllLines().find(e=>e.id===t)}getAllLines(){return this.polylines.map(t=>t.lines).flat(1)}getAllPoints(){return this.polylines.map(t=>t.points).flat(1)}includes(t){return this.polylines.find(({id:e})=>e===t.id)!==void 0}clear(){this.polylines.forEach(t=>this.hook.emit("polylineRemoved",t)),this.polylines.splice(0,this.polylines.length)}getClosestPoint(){}parse(t){this.clear(),this.polylines.push(...t.polylines.map(e=>new yi({model:this}).fromJson(e))),this.polylines.forEach(e=>this.hook.emit("polylineAdded",e))}toJson(){return{polylines:this.polylines.map(t=>t.toJson()).filter(t=>t.lines.length>0)}}}const Hn=i=>i.preventDefault();class Ci{constructor(t){f(this,"model");f(this,"five");f(this,"group");f(this,"config");f(this,"dashed");f(this,"disposed",!1);f(this,"isMobile");f(this,"mouseGroup");f(this,"container");f(this,"fiveHelper");f(this,"hook");f(this,"magnifier");f(this,"userDistanceItemCreator");f(this,"updateDistanceUI",()=>{this.dashed.distanceItem.update(this.five),this.model.getAllLines().forEach(t=>t.distanceItem.update(this.five))});var n,o;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 Bt(new Ye([0,0,0]),new Ye([0,0,0]),this.model),this.dashed.distanceItem.setItemSelectable(!1),this.dashed.mesh.setMaterial({dashed:!0,dashScale:100}),this.dashed.mesh.name="dashLine";const e=this.five.getElement();e&&(e.addEventListener("touchstart",Hn),e.addEventListener("contextmenu",Hn))}removeLine(t){this.group.remove(t.mesh,t.lightMesh),t.distanceItem.remove(),this.five.needsRender=!0}updateMouseGroup(t,e){if(!t)return this.mouseGroup;const n=this.fiveHelper.getAdsorbentPoint(t),o=n||t.point;if(this.mouseGroup.position.copy(o),e)this.mouseGroup.quaternion.copy(e.quaternion);else if(t.face){const r=t.face.normal.clone().multiplyScalar(.05),l=t.point.clone().add(r).clone().add(r);this.mouseGroup.lookAt(l)}return this.mouseGroup}dispose(){this.disposed=!0,this.magnifier.disable(),this.model.getAllLines().forEach(e=>this.removeLine(e));const t=this.five.getElement();t&&(t.removeEventListener("touchstart",Hn),t.removeEventListener("contextmenu",Hn))}}function to(i){const{x:t,y:e}=i.center,{clientWidth:n,clientHeight:o}=i.target,s=i.target.getBoundingClientRect(),r=new V.Vector2(t,e).sub(new V.Vector2(s.left,s.top)),a=new V.Vector2(r.x/n*2-1,-(r.y/o)*2+1);return{point:r,ndcPoint:a}}function Vi(i,t){const e=to(t).ndcPoint,n=new V.Raycaster;return n.setFromCamera(e,i.camera),i.model.intersectRaycaster(n)}class _n extends Ci{constructor(e){var o;super(e);f(this,"type","edit");f(this,"polyline");f(this,"pressPoint");f(this,"hasAppendDashed",!1);f(this,"hasAppendMouseGroup",!1);f(this,"fiveElement");f(this,"lastPoint",null);f(this,"hammer");f(this,"onIntersectionUpdate",bo((e,n)=>{var s;this.hasAppendMouseGroup===!1&&(this.group.add(this.mouseGroup),this.magnifier.appendTo(this.container),this.magnifier.enable(),this.hasAppendMouseGroup=!0);const o=this.updateMouseGroup(e,n).position;(s=this.pressPoint)==null||s.position.copy(o),this.updateDashed(),requestAnimationFrame(()=>this.magnifier.renderWithPoint(this.mouseGroup.position)),this.five.needsRender=!0},20));f(this,"revoke",()=>{if(this.polyline.lines.length===0&&this.lastPoint){this.lastPoint=null,this.hasAppendDashed=!1,this.dashed.distanceItem.remove(),this.group.remove(this.dashed.mesh),this.hook.emit("anchorChange",null),this.hook.emit("editedDashedLineChange",null),this.five.needsRender=!0;return}if(this.polyline.lines.length===0&&!this.lastPoint||!this.lastPoint)return;const e=this.polyline.lines[this.polyline.lines.length-1],n=e.findAnotherPoint(this.lastPoint);!n||(this.lastPoint=n,this.hook.emit("anchorChange",n.position),this.group.remove(e.mesh),this.polyline.removeLine(e),this.hasAppendMouseGroup=!1,this.mouseGroup.position.copy(this.lastPoint.position),this.group.remove(this.mouseGroup),e.distanceItem.remove(),this.updateDashed(),this.magnifier.disable(),this.five.needsRender=!0)});f(this,"onMouseLeave",()=>{this.magnifier.disable(),this.group.remove(this.mouseGroup),this.hasAppendMouseGroup=!1,this.lastPoint&&(this.mouseGroup.position.copy(this.lastPoint.position),this.updateDashed())});f(this,"onLineChanged",()=>{this.hook.emit("editedPolylineChange",this.polyline)});f(this,"onPress",e=>{const[n]=Vi(this.five,e);if(!(n!=null&&n.face))return;const o=new Ye(n.point);this.pressPoint=o,this.onIntersectionUpdate(n)});f(this,"onPan",e=>{if(!this.pressPoint)return;const[n]=Vi(this.five,e);!(n!=null&&n.face)||this.onIntersectionUpdate(n)});f(this,"onPanEnd",e=>{!this.pressPoint||this.onTap(e)});f(this,"onTap",e=>{this.hasAppendDashed||(this.dashed.distanceItem.appendTo(this.container),this.group.add(this.dashed.mesh)),this.hasAppendDashed=!0;const[n]=Vi(this.five,e);this.updateMouseGroup(n);const o=new Ye(this.mouseGroup.position),s=this.lastPoint;if(o&&(this.lastPoint=o),o&&s){const r=new Bt(s,o,this.model);r.distanceItem.setItemSelectable(!1),r.distanceItem.appendTo(this.container),this.polyline.addLine(r),this.group.add(r.mesh),r.distanceItem.update(this.five)}this.pressPoint=void 0,this.hasAppendMouseGroup=!1,this.magnifier.disable(),this.group.remove(this.mouseGroup),this.updateDashed(),this.five.needsRender=!0,this.hook.emit("anchorChange",o.position)});f(this,"onWantsTapGesture",()=>!1);f(this,"onWantsToMoveToPano",()=>!1);f(this,"onWantsPanGesture",()=>this.pressPoint?!1:void 0);f(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.dashed.distanceItem.update(this.five)});f(this,"updateDashed",()=>{!this.lastPoint||(this.dashed.points[0].position.copy(this.lastPoint.position),this.dashed.points[1].position.copy(this.mouseGroup.position),this.dashed.mesh.setPoints(this.lastPoint.position,this.mouseGroup.position),this.dashed.distanceItem.update(this.five),this.hook.emit("editedDashedLineChange",this.dashed))});this.model=new wi(this.config),this.polyline=new yi({model:this.model}),this.model.addPolyline(this.polyline),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsPanGesture",this.onWantsPanGesture),this.five.on("wantsTapGesture",this.onWantsTapGesture),this.five.on("wantsToMoveToPano",this.onWantsToMoveToPano),this.five.on("intersectionOnModelUpdate",this.onIntersectionUpdate),this.polyline.hook.on("lineAdded",this.onLineChanged),this.polyline.hook.on("lineRemoved",this.onLineChanged);const n=this.five.getElement();if(n){this.fiveElement=n;const s=new Pn.default(n);this.hammer=s,s.on("tap",this.onTap),s.on("pan",this.onPan),s.on("press",this.onPress),s.on("panend",this.onPanEnd)}this.five.helperVisible=!1,(o=this.fiveElement)==null||o.addEventListener("mouseleave",this.onMouseLeave),this.hook.emit("anchorChange",null),this.hook.emit("editedDashedLineChange",null),this.five.refresh()}dispose(){var e,n;super.dispose(),this.five.helperVisible=!0,this.group.remove(this.mouseGroup,this.dashed.mesh),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("wantsPanGesture",this.onWantsPanGesture),this.five.off("wantsTapGesture",this.onWantsTapGesture),this.five.off("wantsToMoveToPano",this.onWantsToMoveToPano),this.five.off("intersectionOnModelUpdate",this.onIntersectionUpdate),this.polyline.hook.off("lineAdded",this.onLineChanged),this.polyline.hook.off("lineRemoved",this.onLineChanged),(e=this.hammer)==null||e.destroy(),(n=this.fiveElement)==null||n.removeEventListener("mouseleave",this.onMouseLeave),this.magnifier.dispose(),this.dashed.distanceItem.remove(),this.five.needsRender=!0}getEditingLines(){return this.polyline.lines}}class Ss extends Ci{constructor(e){super(e);f(this,"type","view");f(this,"hammer");f(this,"polylineRemoved",e=>{e.lines.forEach(n=>this.removeLine(n)),this.hook.emit("selectedChange",this.model.getAllLines().filter(n=>n.selected).map(n=>n))});f(this,"polylineAdded",e=>{const n=this.five.getCurrentState().panoIndex;e.lines.forEach(o=>{e.visiblePanoIndexes&&!e.visiblePanoIndexes.includes(n)&&(o.mesh.visible=!1),o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)})});f(this,"onCameraUpdate",()=>{this.updateDistanceUI()});f(this,"onFivePanoWillArrive",e=>{this.model.polylines.forEach(n=>{!n.visiblePanoIndexes||n.visiblePanoIndexes.includes(e)||n.lines.forEach(o=>{o.mesh.visible=!1,o.distanceItem.update(this.five)})})});f(this,"onFivePanoArrived",e=>{this.model.polylines.forEach(n=>{!n.visiblePanoIndexes||n.visiblePanoIndexes.includes(e)&&n.lines.forEach(o=>{o.mesh.visible=!0,o.distanceItem.update(this.five)})})});this.model.getAllLines().forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)});const n=this.five.getElement();if(n){const o=new Pn.default(n);this.hammer=o}this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex),this.onFivePanoArrived(this.five.getCurrentState().panoIndex),this.updateDistanceUI(),this.five.needsRender=!0,this.model.hook.on("polylineAdded",this.polylineAdded),this.model.hook.on("polylineRemoved",this.polylineRemoved),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("panoArrived",this.onFivePanoArrived),this.five.on("panoWillArrive",this.onFivePanoWillArrive)}dispose(){var e;super.dispose(),this.model.hook.off("polylineAdded",this.polylineAdded),this.model.hook.off("polylineRemoved",this.polylineRemoved),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.needsRender=!0,this.hook.emit("selectedChange",[]),(e=this.hammer)==null||e.destroy()}}const Jf=`
208
+ `,b=document.createElement("div");return b.setAttribute("class","PanoRulerPlugin-rule"),b.setAttribute("data-name",v),b.setAttribute("style","display: none"),b.innerHTML=g,b},o=document.createElement("div");o.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");const s=document.createElement("div");s.innerHTML=hf,o.appendChild(s);const r={},a=(v,p)=>{if(e.loaded)throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");const g=mf(v,i),b=i.work;if(!b)return!1;for(const w in p){const P=p[w],{standingPosition:x}=b.observers[0],C=P.map(({x:D,z:E,observers:O})=>{const G=O.length>0?v.rooms[v.observers[O[0]]].name:"",X=g[G]?g[G].floor:null;let H=1/0,B={index:0,x:x.x,y:x.y,z:x.z};O.forEach(Y=>{if(!b.observers[Y])return;const{standingPosition:ae}=b.observers[Y],he={index:Y,x:ae.x,y:ae.y,z:ae.z},de=ff({x:D,z:E},he);X?de<H&&Math.abs(he.y-X)<.3&&(H=de,B=he):de<H&&(H=de,B=he)});const F=new V.Vector3(D,B.y,E);Object.assign(F,{observers:O});const R=g[G]?g[G].roof:null,N=R?new V.Vector3(D,R,E):null;return N&&Object.assign(N,{observers:O}),{origin:F,vertical:N}});r[w]={origins:C.map(D=>D.origin),rules:[]};for(const{origin:D,vertical:E}of C){if(!E)continue;const O=n(w,D.distanceTo(E));o.append(O),r[w].rules.push({vertical:!0,rule:[D,E],$element:O})}for(let D=0;D<C.length;D++){let E=D+1;E>=C.length&&(E=0);const{origin:O}=C[D],{origin:G}=C[E],X=n(w,O.distanceTo(G));o.append(X),r[w].rules.push({vertical:!1,rule:[O,G],$element:X})}}return e.loaded=!0,!0},l=(v,p,g)=>W(exports,null,function*(){const b=v||t.roomInfo,w=p||t.roomRules;if(!b||!w)throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");return e.loaded=!1,e.options=Q(Q({},e.options),g||{}),i.model.loaded?a(b,w):yield new Promise(P=>i.once("modelLoaded",()=>P(a(b,w))))});t.roomInfo&&t.roomRules&&l(t.roomInfo,t.roomRules);const c=(v,p,g,b)=>{const w=[[{x:0,y:0},{x:g,y:0}],[{x:0,y:0},{x:0,y:b}],[{x:g,y:0},{x:g,y:b}],[{x:0,y:b},{x:g,y:b}]],P=[];for(let x=0;x<w.length;x++){const C=ol([v,p],[w[x][0],w[x][1]],!0);C&&P.push(C)}return P.length===0?!1:P},u=()=>{var O;const v=(O=i.getElement())==null?void 0:O.parentElement;if(!v||!e.loaded||Object.keys(r).length<=0)return;const{panoIndex:p,camera:g,currentMode:b}=i;if(p===void 0)return;let w;for(const G in r)G.split(",").indexOf(p.toString())>=0&&(w=G);if(!w){for(const G in r)for(const{$element:X}of r[G].rules)X.style.display="none";return}const P=g.position,x=g.getWorldDirection(new V.Vector3),C=v.clientWidth,D=v.clientHeight;if(b!==Ce.Five.Mode.Panorama){for(const G in r)for(const{$element:X}of r[G].rules)X.style.display="none";return}for(const G in r)for(const{$element:X}of r[G].rules)X.style.display=G===w?"block":"none";const[E]=r[w].origins.slice().filter(G=>G.observers.indexOf(p)>=0).sort((G,X)=>{const H=G.clone().setY(0).sub(P).normalize().angleTo(x.clone().setY(0)),B=X.clone().setY(0).sub(P).normalize().angleTo(x.clone().setY(0));return H-B});for(const{rule:G,vertical:X,$element:H}of r[w].rules){const[B,F]=G,R=H.querySelector(".PanoRulerPlugin-rule-line");if(!R)return;if(!E){H.style.display="none";continue}if(B!==E&&F!==E){H.style.display="none";continue}if(B.distanceTo(F)<.3){H.style.display="none";continue}if(B.observers.indexOf(p)===-1||F.observers.indexOf(p)===-1){H.style.display="none";continue}if(B.clone().sub(P).normalize().angleTo(x)>Math.PI/2){H.style.display="none";continue}if(F.clone().sub(P).normalize().angleTo(x)>Math.PI/2){H.style.display="none";continue}const $=B.distanceTo(F);if(F.clone().sub(F.clone().sub(B).divide(new V.Vector3(2,2,2))).distanceTo(P)/$>8){H.style.display="none";continue}const he=B.clone().project(g),de=(he.x+1)/2*C,pe=(-he.y+1)/2*D,Pe=F.clone().project(g),Ie=(Pe.x+1)/2*C,Me=(-Pe.y+1)/2*D,ce=Math.sqrt(Math.pow(Ie-de,2)+Math.pow(Me-pe,2));let Ae=ce,Ee=50;const ue=c({x:~~de,y:~~pe},{x:~~Ie,y:~~Me},C,D);if(ue&&ue.length===1&&(E===B?(Ae=Math.sqrt(Math.pow(ue[0].x-de,2)+Math.pow(ue[0].y-pe,2)),Ee=Ae/ce*50):E===F&&(Ae=Math.sqrt(Math.pow(ue[0].x-Ie,2)+Math.pow(ue[0].y-Me,2)),Ee=100-Ae/ce*50)),ue&&ue.length===2){const te={x:(ue[0].x+ue[1].x)/2,y:(ue[0].y+ue[1].y)/2};Ee=Math.sqrt(Math.pow(te.x-de,2)+Math.pow(te.y-pe,2))/ce*100}const it=(Math.PI/2-Math.atan2(Ie-de,pe-Me))/Math.PI*180,be=R.querySelector(".PanoRulerPlugin-rule-label"),Je=be.children[0].clientWidth;Je>=ce||Je/2>=Ee/100*ce||Je/2>=(1-Ee/100)*ce?R.style.display="none":(R.style.display="block",R.style.width=ce+"px",R.style.left=de+"px",R.style.top=pe+"px",R.style.transform=`rotate(${-it}deg)`,be.style.left=`${Ee}%`)}},d=()=>sl(u),h=()=>{var v,p;return e.loaded?(e.enable||(o.setAttribute("class","PanoRulerPlugin"+(e.options.className?" "+e.options.className:"")),(p=(v=i.getElement())==null?void 0:v.parentElement)==null||p.append(o),u(),i.on("modeChange",u),i.on("cameraUpdate",d),e.enable=!0),!0):!1},m=()=>(e.enable&&(i.off("modeChange",u),i.off("cameraUpdate",d),o&&o.remove(),e.enable=!1),!0);function A(v){if(v.distanceText&&v.distanceText!==e.options.distanceText){const p=v.distanceText;e.options.distanceText=p,Object.values(r).forEach(g=>{g.rules.forEach(b=>{const[w,P]=b.rule,x=w.distanceTo(P),C=b.$element.querySelector(".PanoRulerPlugin-rule-label-name");!C||(C.innerText=p(x))})})}}return{enable:h,disable:m,load:l,state:e,changeConfigs:A}};function gf(i){le(i,"svelte-1h27ktp",".PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp{position:absolute;transform-origin:left 0.0625rem;width:0;height:0.125rem;pointer-events:none}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::after{content:'';position:absolute;left:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::before{content:'';position:absolute;right:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1.5s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp em.svelte-1h27ktp{display:block;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;box-shadow:0 0 0.25rem rgb(0 0 0 / 40%);position:relative}.rule-mixed-line.svelte-1h27ktp.svelte-1h27ktp{display:flex;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;align-items:center}.em-solid.svelte-1h27ktp.svelte-1h27ktp{height:100%;background:#ffffff}.em-dotted.svelte-1h27ktp.svelte-1h27ktp{height:0.125rem;background:var(--background-image);background-position:center;background-repeat:repeat}.PanoRulerPlugin-rule-label.svelte-1h27ktp.svelte-1h27ktp{position:absolute;width:0;height:0;top:0.0625rem;pointer-events:none}.PanoRulerPlugin-rule-label-name.svelte-1h27ktp.svelte-1h27ktp{position:absolute;padding:0.1875rem 0.375rem;background:rgba(195, 195, 195, 0.3);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);border-radius:6.25rem;border:0.0625rem solid rgba(255, 255, 255, 0.6);white-space:nowrap;overflow:hidden;color:#ffffff;font-weight:500;font-size:0.75rem;line-height:1;animation:svelte-1h27ktp-viewport-rule-label 0.25s ease 1s;animation-fill-mode:both;box-shadow:inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3)}@keyframes svelte-1h27ktp-viewport-rule-line{0%{width:0%}100%{width:100%}}@keyframes svelte-1h27ktp-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@keyframes svelte-1h27ktp-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}")}function Is(i,t,e){const n=i.slice();return n[6]=t[e],n}function Af(i){let t,e=i[0].children,n=[];for(let o=0;o<e.length;o+=1)n[o]=ks(Is(i,e,o));return{c(){t=z("div");for(let o=0;o<n.length;o+=1)n[o].c();y(t,"class","rule-mixed-line svelte-1h27ktp")},m(o,s){M(o,t,s);for(let r=0;r<n.length;r+=1)n[r].m(t,null)},p(o,s){if(s&9){e=o[0].children;let r;for(r=0;r<e.length;r+=1){const a=Is(o,e,r);n[r]?n[r].p(a,s):(n[r]=ks(a),n[r].c(),n[r].m(t,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=e.length}},d(o){o&&S(t),ct(n,o)}}}function vf(i){let t,e;return{c(){t=z("em"),y(t,"class",e=Te(i[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),y(t,"style",i[3])},m(n,o){M(n,t,o)},p(n,o){o&1&&e!==(e=Te(n[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&y(t,"class",e),o&8&&y(t,"style",n[3])},d(n){n&&S(t)}}}function ks(i){let t,e,n=`${i[6].width}px`;return{c(){t=z("div"),y(t,"class",e=Te(i[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),y(t,"style",i[3]),T(t,"width",n)},m(o,s){M(o,t,s)},p(o,s){s&1&&e!==(e=Te(o[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&y(t,"class",e),s&8&&y(t,"style",o[3]),s&1&&n!==(n=`${o[6].width}px`)&&T(t,"width",n)},d(o){o&&S(t)}}}function bf(i){let t,e,n,o,s=i[0].labelElement+"",r,a,l=`${i[0].labelOffset}%`,c=`${i[0].width}px`,u=`${i[0].left}px`,d=`${i[0].top}px`,h=`rotate(${i[0].rotateDeg}deg)`;function m(p,g){return p[0].children.length===0?vf:Af}let A=m(i),v=A(i);return{c(){t=z("div"),v.c(),e=ee(),n=z("div"),o=z("div"),r=ke(s),y(o,"class","PanoRulerPlugin-rule-label-name svelte-1h27ktp"),Oe(()=>i[4].call(o)),y(n,"class","PanoRulerPlugin-rule-label svelte-1h27ktp"),T(n,"left",l),y(t,"class","PanoRulerPlugin-rule-line svelte-1h27ktp"),T(t,"width",c),T(t,"left",u),T(t,"top",d),T(t,"transform",h),T(t,"display",i[0].visible&&i[2]?"block":"none")},m(p,g){M(p,t,g),v.m(t,null),j(t,e),j(t,n),j(n,o),j(o,r),a=fi(o,i[4].bind(o))},p(p,[g]){A===(A=m(p))&&v?v.p(p,g):(v.d(1),v=A(p),v&&(v.c(),v.m(t,e))),g&1&&s!==(s=p[0].labelElement+"")&&Se(r,s),g&1&&l!==(l=`${p[0].labelOffset}%`)&&T(n,"left",l),g&1&&c!==(c=`${p[0].width}px`)&&T(t,"width",c),g&1&&u!==(u=`${p[0].left}px`)&&T(t,"left",u),g&1&&d!==(d=`${p[0].top}px`)&&T(t,"top",d),g&1&&h!==(h=`rotate(${p[0].rotateDeg}deg)`)&&T(t,"transform",h),g&5&&T(t,"display",p[0].visible&&p[2]?"block":"none")},i:U,o:U,d(p){p&&S(t),v.d(),a()}}}function yf(i,t,e){let n,{rulerItemProp:o}=t,s=!0,r,a="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PGZpbHRlciBpZD0icHJlZml4X19hIiBoZWlnaHQ9IjQwMCUiIHdpZHRoPSIxMzcuNCUiIHg9Ii0xOC43JSIgeT0iLTE1MCUiPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iZGlsYXRlIiByYWRpdXM9Ii41IiByZXN1bHQ9InNoYWRvd1NwcmVhZE91dGVyMSIvPjxmZU9mZnNldCBpbj0ic2hhZG93U3ByZWFkT3V0ZXIxIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiByYWRpdXM9IjEiIHJlc3VsdD0ic2hhZG93SW5uZXIiLz48ZmVPZmZzZXQgaW49InNoYWRvd0lubmVyIiByZXN1bHQ9InNoYWRvd0lubmVyIi8+PGZlQ29tcG9zaXRlIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIGluMj0ic2hhZG93SW5uZXIiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIgc3RkRGV2aWF0aW9uPSIuNSIvPjxmZUNvbG9yTWF0cml4IGluPSJzaGFkb3dCbHVyT3V0ZXIxIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMiAwIi8+PC9maWx0ZXI+PHBhdGggaWQ9InByZWZpeF9fYiIgZD0iTS44ODkgMkgxMS41OCIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1kYXNoYXJyYXk9IjUgNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBzdHJva2U9IiNmZmYiIHN0cm9rZS1vcGFjaXR5PSIuNCIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjwvZz48L3N2Zz4=";function l(){r=this.offsetWidth,e(1,r)}return i.$$set=c=>{"rulerItemProp"in c&&e(0,o=c.rulerItemProp)},i.$$.update=()=>{i.$$.dirty&3&&(r>=o.width||r/2>=o.labelOffset/100*o.width||r/2>=(1-o.labelOffset/100)*o.width?e(2,s=!1):e(2,s=!0))},e(3,n=`--background-image: url(${a})`),[o,r,s,n,l]}class wf extends oe{constructor(t){super(),ie(this,t,yf,bf,ne,{rulerItemProp:0},gf)}}function xs(i,t,e){const n=i.slice();return n[12]=t[e],n}function Ds(i){let t,e;return t=new wf({props:{rulerItemProp:i[12]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.rulerItemProp=n[12]),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Cf(i){let t,e,n=i[0],o=[];for(let r=0;r<n.length;r+=1)o[r]=Ds(xs(i,n,r));const s=r=>L(o[r],1,1,()=>{o[r]=null});return{c(){t=z("div");for(let r=0;r<o.length;r+=1)o[r].c()},m(r,a){M(r,t,a);for(let l=0;l<o.length;l+=1)o[l].m(t,null);e=!0},p(r,[a]){if(a&1){n=r[0];let l;for(l=0;l<n.length;l+=1){const c=xs(r,n,l);o[l]?(o[l].p(c,a),I(o[l],1)):(o[l]=Ds(c),o[l].c(),I(o[l],1),o[l].m(t,null))}for(se(),l=n.length;l<o.length;l+=1)s(l);re()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)I(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)L(o[a]);e=!1},d(r){r&&S(t),ct(o,r)}}}function Ef(i,t,e){var v,p,g,b;let{five:n}=t,{rulerDatas:o}=t,{options:s}=t,r=[];const a=((p=(v=n.getElement())==null?void 0:v.parentElement)==null?void 0:p.clientWidth)||0,l=((b=(g=n.getElement())==null?void 0:g.parentElement)==null?void 0:b.clientHeight)||0,c=(w,P)=>{const x=[[{x:0,y:0},{x:a,y:0}],[{x:0,y:0},{x:0,y:l}],[{x:a,y:0},{x:a,y:l}],[{x:0,y:l},{x:a,y:l}]],C=[];for(let D=0;D<x.length;D++){const E=ol([w,P],[x[D][0],x[D][1]],!0);E&&C.push(E)}return C.length===0?!1:C},u=(w,P)=>{const x=w.clone().project(n.camera),C=(x.x+1)/2*a,D=(-x.y+1)/2*l,E=P.clone().project(n.camera),O=(E.x+1)/2*a,G=(-E.y+1)/2*l,X=Math.sqrt(Math.pow(O-C,2)+Math.pow(G-D,2));return{startLeft:C,startTop:D,endLeft:O,endTop:G,distance:X}},d=(w,P,x)=>{const C=n.camera.position,D=n.camera.getWorldDirection(new V.Vector3),E=w.clone().sub(C).normalize().angleTo(D),O=P.clone().sub(C).normalize().angleTo(D),G=w.distanceTo(P),H=P.clone().sub(P.clone().sub(w).divide(new V.Vector3(2,2,2))).distanceTo(C),{startLeft:B,startTop:F,endLeft:R,endTop:N,distance:_}=u(w,P),Y=-((Math.PI/2-Math.atan2(R-B,F-N))/Math.PI)*180;let ae=!0;x||(ae=!1),!et(w,x)&&!et(P,x)&&(ae=!1),G<.3&&(ae=!1),E>Math.PI/2&&(ae=!1),O>Math.PI/2&&(ae=!1),H/G>8&&(ae=!1);let he=50,de=_;const pe=c({x:~~B,y:~~F},{x:~~R,y:~~N});if(pe&&pe.length===1&&(et(w,x)?(de=Math.sqrt(Math.pow(pe[0].x-B,2)+Math.pow(pe[0].y-F,2)),he=de/_*50):et(P,x)&&(de=Math.sqrt(Math.pow(pe[0].x-R,2)+Math.pow(pe[0].y-N,2)),he=100-de/_*50)),pe&&pe.length===2){const Pe={x:(pe[0].x+pe[1].x)/2,y:(pe[0].y+pe[1].y)/2};he=Math.sqrt(Math.pow(Pe.x-B,2)+Math.pow(Pe.y-F,2))/_*100}return{startLeft:B,startTop:F,distance:_,deg:Y,visible:ae,labelOffset:he,ruleLength:G}},h=()=>{const w=n.panoIndex,P=o.find(X=>X.panoIndex===w);if(!P)return e(0,r=[]);if(n.currentMode!==Ce.Five.Mode.Panorama)return e(0,r=[]);const x=n.camera.position,C=n.camera.getWorldDirection(new V.Vector3),D=P.lines.map(X=>new V.Vector3(X.start[0],-X.start[1],-X.start[2])),E=P.lines.map(X=>new V.Vector3(X.end[0],-X.end[1],-X.end[2])),[O]=D.concat(E).sort((X,H)=>{const B=X.clone().setY(0).sub(x).normalize().angleTo(C.clone().setY(0)),F=H.clone().setY(0).sub(x).normalize().angleTo(C.clone().setY(0));return B-F}),G=P.lines.map(X=>{var de,pe;const H=X.start,B=X.end,{startLeft:F,startTop:R,distance:N,deg:_,visible:$,labelOffset:Y,ruleLength:ae}=d(new V.Vector3(H[0],-H[1],-H[2]),new V.Vector3(B[0],-B[1],-B[2]),O),he=[];return X.children&&((de=X.children)==null?void 0:de.length)>0&&((pe=X.children)==null||pe.forEach(Pe=>{const Ie=Pe.start,Me=Pe.end,{distance:ce}=u(new V.Vector3(Ie[0],-Ie[1],-Ie[2]),new V.Vector3(Me[0],-Me[1],-Me[2]));he.push({width:ce,state:Pe.state})})),{width:N,left:F,top:R,rotateDeg:_,state:X.state,children:he,labelOffset:Y,visible:$,labelElement:s.distanceText(ae)}});e(0,r=G)},m=()=>bi(h),A=bo(h,80);return Ue(()=>{h(),n.on("panoArrived",h),n.on("modeChange",h),n.on("cameraDirectionUpdate",m),n.on("movingToPano",m),n.on("mouseWheel",()=>A()),n.on("pinchGesture",()=>A())}),Et(()=>{n.off("panoArrived",h),n.off("modeChange",h),n.off("cameraDirectionUpdate",m),n.off("movingToPano",m),n.off("mouseWheel",()=>A()),n.off("pinchGesture",()=>A())}),i.$$set=w=>{"five"in w&&e(1,n=w.five),"rulerDatas"in w&&e(2,o=w.rulerDatas),"options"in w&&e(3,s=w.options)},[r,n,o,s]}class Pf extends oe{constructor(t){super(),ie(this,t,Ef,Cf,ne,{five:1,rulerDatas:2,options:3})}}class If{constructor(t,e){f(this,"five");f(this,"container",document.createElement("div"));f(this,"panoRulerProData");f(this,"rulerItems");f(this,"state",{enabled:!1,loaded:!1,options:{className:"",distanceText:t=>`${t.toFixed(1)}m`}});var n,o;this.five=t,this.container.classList.add("panoRulerProPlugin-container"),this.container.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"),e&&(e.data&&this.load(e.data),this.state.options=Q(Q({},this.state.options),e.options||{}),(n=e.options)!=null&&n.className&&this.container.classList.add((o=e.options)==null?void 0:o.className)),this.five.once("modelLoaded",()=>W(this,null,function*(){var s,r;(r=(s=this.five.getElement())==null?void 0:s.parentNode)==null||r.append(this.container)})),this.five.once("dispose",()=>this.dispose())}load(t){return W(this,null,function*(){if(!this.five.work)return;const e=t.data;if(!e)throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");this.panoRulerProData=e,this.state.loaded=!0})}enable(){return this.state.loaded?(this.state.enabled||(this.state.enabled=!0,this.render()),!0):!1}disable(){return this.state.enabled&&(this.state.enabled=!1,this.render()),!0}render(){return W(this,null,function*(){var t;if(this.state.enabled){if(!this.panoRulerProData||!this.container)return;this.rulerItems=new Pf({target:this.container,props:{five:this.five,rulerDatas:this.panoRulerProData,options:this.state.options}})}else(t=this.rulerItems)==null||t.$destroy(),this.rulerItems=void 0})}dispose(){this.container&&(this.rulerItems.$destroy(),this.rulerItems=void 0),this.container.remove()}}const kf=(i,t)=>new If(i,t),xf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAABCCAYAAAB9y1BhAAAAAXNSR0IArs4c6QAADh5JREFUeAHtnVuPLDcVhedwC/dACKAICDxEIBQpygNI/Ab+MX8B8YCQEAjxgBAQLsm5Jjkn58r6Sl4jT52qnu4zXd121dqSx67q7ip7eXsv721XzcVFJAgEgSAQBIJAEAgCQeC4CLx48eKbSu+RH/fKuVoQWB8Cn1tfk9KiIHAUBH6tq/xKiTwSBILADgRCJDvAyUebRuAbpfXxSDatBmn8Pgh8YZ8v5TtBYIMIvFCbSZEgEASuQSBEcg1A+XizCDzfbMvT8CBwIAIhkgMBy9c3g0CIZDNdnYbeFIEQyU0RzO/XikCIZK09m3YdHYEQydEhzQVXgkCIZCUdmWYsj0CIZHmMc4c+EchCe5/9llqfAYEQyRlAzy27QCAeSRfdlEq2g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PACR1BcZmGmfH64GzTQkCASBILBhBAqhgEC9rDFGJI7FGJEcB4EgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCm0fg/x4jQQWGalpFAAAAAElFTkSuQmCC";function Df(){const i=document.createElement("div"),t=document.createElement("i"),e=document.createElement("span");return i.appendChild(t),i.appendChild(e),i.style.position="relative",i.style.width="100%",i.style.display="flex",i.style.flexDirection="column",i.style.alignItems="center",i.style.marginTop=`${150/16}rem`,i.style.opacity="0",i.style.transition="opacity 1000ms linear",t.style.display="block",t.style.width=`${134/16}rem`,t.style.height=`${22/16}rem`,t.style.backgroundSize="100%",t.style.backgroundRepeat="no-repeat",t.style.backgroundImage=`url(${xf})`,e.style.marginTop=`${10/16}rem`,e.style.fontSize=`${16/16}rem`,e.style.color="#fff",e.style.opacity="0.7",e.style.textShadow="0 2px 16px rgb(22 34 83 / 24%)",e.style.fontWeight="bold",{appendTo(n){n.appendChild(i)},dispose(){i.remove()},setRoom(n){e.innerHTML=n.name+" "+Math.floor(n.size/1e6)+"\u33A1"},show(){i.style.opacity="1"},hide(){i.style.opacity="0"}}}const Lf=new k.TextureLoader;function eo(i){return W(this,null,function*(){return new Promise((t,e)=>{Lf.load(i,t,void 0,e)}).then(t=>(t.encoding=k.sRGBEncoding,t.minFilter=k.LinearFilter,t))})}const Qn={userAction:!0};class Sf extends zt{constructor(e,n){super(e);f(this,"state",{visible:!0,enabled:!0,config:{compassImageUrl:"//vrlab-image4.ljcdn.com/release/web/v3/north-point-circle.96498e69.png",entryDoorImageUrl:"//vrlab-image4.ljcdn.com/release/web/enterDoor.831b8208.png"}});f(this,"data");f(this,"group",new k.Group);f(this,"roomInfoInstance");f(this,"roomInfoWrapperInstance");f(this,"compassMeshTween");f(this,"compassMesh");f(this,"entryDoorMesh");f(this,"dispose",()=>{var e,n,o,s;this.five.scene.remove(this.group),this.group.remove(...this.group.children),(n=(e=this.compassMesh)==null?void 0:e.material.map)==null||n.dispose(),(s=(o=this.entryDoorMesh)==null?void 0:o.material.map)==null||s.dispose(),this.five.off("dispose",this.dispose),this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_addEventListener",()=>{this.five.on("panoArrived",this.onFivePanoArrived),this.five.on("panoWillArrive",this.onFivePanoWillArrive),this.five.on("modeChange",this.onFiveModeChange),this.five.on("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_removeEventListener",()=>{this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("modeChange",this.onFiveModeChange),this.five.off("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_enable",()=>{this.five.scene.add(this.group),this.init(),this.onFivePanoArrived(this.five.panoIndex||0),this._addEventListener()});f(this,"_disable",()=>{this._clearCompassIfNeed(),this._clearEntryDoorIfNeed(),this.five.scene.remove(this.group),this._removeEventListener()});f(this,"_toggleVisible",()=>{this.group.visible=this.state.visible,this.five.needsRender=!0});f(this,"_clearCompassIfNeed",()=>{var e;this.compassMesh&&(this.group.remove(this.compassMesh),(e=this.compassMesh.material.map)==null||e.dispose(),this.compassMesh=null)});f(this,"_clearEntryDoorIfNeed",()=>{var e;this.entryDoorMesh&&(this.group.remove(this.entryDoorMesh),(e=this.entryDoorMesh.material.map)==null||e.dispose(),this.entryDoorMesh=null),this.roomInfoInstance&&(this.roomInfoInstance.dispose(),this.roomInfoInstance=null),this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.dispose(),this.roomInfoWrapperInstance=null)});f(this,"onFivePanoWillArrive",e=>{var n,o;e!==this.five.panoIndex&&((n=this.compassMeshTween)==null||n.dispose(),(o=this.compassMesh)==null||o.material.setValues({opacity:0}))});f(this,"onFivePanoArrived",e=>{var o,s,r,a,l,c,u;const n=(r=(s=(o=this.five.work)==null?void 0:o.observers)==null?void 0:s[e])==null?void 0:r.standingPosition;if(this.compassMesh&&(this.compassMesh.position.copy(n.clone().setY(n.y+.01)),this.compassMesh.material.opacity===0&&((a=this.compassMeshTween)==null||a.dispose(),this.compassMeshTween=tl(1e3).onUpdate(({progress:d})=>{var h;(h=this.compassMesh)==null||h.material.setValues({opacity:d}),this.five.needsRender=!0}).play())),this.entryDoorMesh){const h=new k.Vector3(this.data.entrance.position.x,this.data.entrance.position.y,this.data.entrance.position.z).clone().setY(n.y).sub(n).normalize(),m=n.clone().add(h.clone().multiplyScalar(.7)).setY(n.y+.01);this.entryDoorMesh.rotation.z=new k.Vector3(0,0,-1).angleTo(h),this.entryDoorMesh.position.copy(m),((l=this.data)==null?void 0:l.room_observers[e].room.type)===1?(c=this.entryDoorMesh)==null||c.material.setValues({opacity:1}):(u=this.entryDoorMesh)==null||u.material.setValues({opacity:0})}this.roomInfoInstance&&this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.css3DObject.position.copy(n.clone().setY(n.y+.01)),this.roomInfoInstance.setRoom(this.data.room_observers[e].room)),this.five.needsRender=!0});f(this,"onFiveCameraDirectionUpdate",({longitude:e,latitude:n})=>{var o,s;!this.roomInfoWrapperInstance||(this.roomInfoWrapperInstance.css3DObject.rotation.z=e,n>.66&&this.five.getCurrentState().mode==="Panorama"?(o=this.roomInfoInstance)==null||o.show():(s=this.roomInfoInstance)==null||s.hide())});f(this,"onFiveModeChange",(e,n,o,s,r)=>{e!==n&&this.setState({visible:e===Ce.Five.Mode.Panorama},{userAction:r})});this.five.scene.add(this.group),this.five.once("dispose",this.dispose),this.setState({visible:!0,enabled:!0,config:Q(Q({},this.state.config),n||{})})}enable(e=Qn){this.setState({enabled:!0},e)}disable(e=Qn){this.setState({enabled:!1},e)}show(e=Qn){if(!!this.state.enabled)return this.setState({visible:!0},e),Promise.resolve()}hide(e=Qn){if(!!this.state.enabled)return this.setState({visible:!1},e),Promise.resolve()}setState(e,n={userAction:!0}){var s,r;const o=JSON.parse(JSON.stringify(this.state));this.state={visible:(s=e.visible)!=null?s:o.visible,enabled:(r=e.enabled)!=null?r:o.enabled,config:Q(Q({},o.config),e.config||{})},this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n.userAction}),e.enabled===!0&&(this._enable(),this.hooks.emit("enable",n)),e.enabled===!1&&(this._disable(),this.hooks.emit("disable",n)),e.visible===!1&&(this._toggleVisible(),this.hooks.emit("hide",n)),e.visible===!0&&(this._toggleVisible(),this.hooks.emit("show",n)),e.config&&this.init()}load(e,n,o=!0){return W(this,null,function*(){const s=yield this.formatData(e);JSON.stringify(this.data)!==JSON.stringify(s)&&(this.hooks.emit("dataChange",s,this.data),this.data=Q({},s),this.init(),n&&this.setState(n,{userAction:o}),this.hooks.emit("dataLoaded",this.data))})}formatData(e){return e.version&&e.data?Promise.resolve(e.data):Promise.resolve(e)}init(){return W(this,null,function*(){var o,s,r,a;const e=(s=(o=this.data)==null?void 0:o.north_rad)!=null?s:null;this._clearCompassIfNeed(),e!==null&&(this.compassMesh=yield this.loadCompassMesh(),this.compassMesh.rotateX(-Math.PI/2),this.compassMesh.rotateZ(e-Math.PI/2),this.group.add(this.compassMesh));const n=(a=(r=this.data)==null?void 0:r.entrance)!=null?a:null;this._clearEntryDoorIfNeed(),n!==null&&(this.entryDoorMesh=yield this.loadEntryDoorMesh(),this.roomInfoWrapperInstance=this.loadRoomInfo(),this.roomInfoInstance=Df(),this.entryDoorMesh.rotateX(-Math.PI/2),this.roomInfoWrapperInstance&&this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container),this.group.add(this.entryDoorMesh)),this.onFivePanoArrived(this.five.panoIndex||0),this.five.needsRender=!0})}loadCompassMesh(){return W(this,null,function*(){const e=this.state.config.compassImageUrl,n=yield eo(e),o=new k.CircleGeometry(.7,32),s=new k.MeshBasicMaterial({map:n,transparent:!0,opacity:0,depthTest:!1}),r=new k.Mesh(o,s);return r.name="pano-compass-mesh",r})}loadEntryDoorMesh(){return W(this,null,function*(){const e=this.state.config.entryDoorImageUrl,n=yield eo(e),o=new k.PlaneGeometry(.2,.16),s=new k.MeshBasicMaterial({map:n,transparent:!0,opacity:.8,depthTest:!1}),r=new k.Mesh(o,s);return r.name="pano-compass-entry-door",r})}loadRoomInfo(){const e=[new k.Vector3(-.7,0,-.7),new k.Vector3(.7,0,-.7),new k.Vector3(.7,0,.7),new k.Vector3(-.7,0,.7)];return Kt(this.five).create3DDomContainer(e)}}const Mf=(i,t)=>new Sf(i,t);function Fn(i,t,e){const n=i[t],o=i[e];n===void 0||o===void 0||(i[t]=o,i[e]=n)}function Tf(i,t,e){const n=e/2;for(let o=1;o<=n;o++){const s=e-(o-1);for(let r=1;r<=t;r++){const a=(o-1)*t+r-1,l=(s-1)*t+r-1;Fn(i,a*4+0,l*4+0),Fn(i,a*4+1,l*4+1),Fn(i,a*4+2,l*4+2),Fn(i,a*4+3,l*4+3)}}}class rl{constructor(t,e){f(this,"width");f(this,"height");f(this,"containerDom");f(this,"hooks",new Ce.Subscribe);f(this,"canvas",document.createElement("canvas"));f(this,"five");f(this,"scale");f(this,"config");f(this,"offset",{x:0,y:0});f(this,"context");f(this,"renderCenter",new k.Vector3);f(this,"hammer");f(this,"state",{enabled:!1});f(this,"offsetRange");f(this,"isPanning",!1);f(this,"onPanstart",()=>{this.isPanning=!0,this.canvas.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)"});f(this,"onPan",t=>{if(!this.isPanning||!this.offsetRange||this.hooks.emit("wantsPanGesture",t))return;const{translateX:n,translateY:o}=this.getPanOffset(t,this.offsetRange);this.canvas.style.transform=`translate3d(${n}px, ${o}px, 100px)`});f(this,"onPanend",t=>{if(this.isPanning=!1,this.canvas.style.boxShadow="none",!this.offsetRange)return;const{translateX:e,translateY:n}=this.getPanOffset(t,this.offsetRange);this.canvas.style.transform=`translate3d(${e}px, ${n}px, 100px)`,this.offset={x:e,y:n}});var o,s,r;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(o=e==null?void 0:e.scale)!=null?o:2,this.width=(s=e==null?void 0:e.width)!=null?s:190,this.height=(r=e==null?void 0:e.height)!=null?r:190,this.config={dragEnabled:(e==null?void 0:e.dragEnabled)||!1,autoFixPCPosition:(e==null?void 0:e.autoFixPCPosition)||!1,initialPosition:(e==null?void 0:e.initialPosition)||{left:"0",top:"0"}};const n=this.canvas.getContext("2d");if(!n)throw new Error("CANNOT CREATE CONTEXT2D");this.context=n,this.config.dragEnabled&&(this.hammer=new Pn.default(this.canvas),this.hammer.on("pan",this.onPan),this.hammer.on("panstart",this.onPanstart),this.hammer.on("panend",this.onPanend)),this.initStyle()}dispose(){var t;this.clear(),this.disable(),(t=this.hammer)==null||t.destroy()}enable(){if(!this.state.enabled)return this.state.enabled=!0,this.containerDom&&this._appendTo(this.containerDom),this}disable(){if(!!this.state.enabled)return this.state.enabled=!1,this.canvas.remove(),this}appendTo(t){return this.containerDom=t,this.state.enabled&&this._appendTo(t),this}clear(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}renderWithPoint(t){!this.containerDom||!this.state.enabled||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}renderWithScreenPoint(t){!this.containerDom||!this.state.enabled||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}resetOffset(){this.offset={x:0,y:0},this.canvas.style.transform=`translate3d(${0}px, ${0}px, 100px)`}getCurrentState(){return{enabled:this.state.enabled}}getRenderCenter(){return this.renderCenter}_appendTo(t){if(this.resetOffset(),t.appendChild(this.canvas),!this.offsetRange){const e=this.canvas.getBoundingClientRect(),n=t.getBoundingClientRect(),o=n.right-e.right,s=n.bottom-e.bottom,r=n.left-e.left,a=n.top-e.top;this.offsetRange={min:{x:r,y:a},max:{x:o,y:s}}}}autoFixPCPosition(){if(!this.containerDom)return;const{width:t,height:e}=this,[n,o,s]=(()=>{if(this.renderCenter instanceof k.Vector3){const r=this.renderCenter.clone().project(this.five.camera);return[(r.x+1)/2*this.containerDom.clientWidth,-(r.x-1)/2*this.containerDom.clientWidth,-(r.y-1)/2*this.containerDom.clientHeight]}else return[this.renderCenter.x,this.containerDom.clientWidth-this.renderCenter.x,this.renderCenter.y]})();n<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):s<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):o<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=-t-90+"px"):(this.canvas.style.left=-t/2+"px",this.canvas.style.top=-e-90+"px"),this.canvas.style.transform=`translate3d(${n}px, ${s}px, 10px)`,this.offset={x:n,y:s}}render(){if(!this.five.renderer||!this.containerDom)return;const{scale:t,context:e,width:n,height:o}=this,s=this.five.renderer.getSize(new k.Vector2),[r,a]=(()=>{if(this.renderCenter instanceof k.Vector3){const p=this.renderCenter.clone().project(this.five.camera);return[(p.x+1)/2*s.x,(p.y+1)/2*s.y]}else return[this.renderCenter.x,s.y-this.renderCenter.y]})(),l=1,c=n/t,u=o/t,d=l*t,h=this.five.getPixels(r-c/2,a-c/2,c,u,d),m=Math.floor(n*l),A=Math.floor(o*l);Tf(h,m,A);const v=new ImageData(m,A);v.data.set(h),e.putImageData(v,0,0)}initStyle(){const t=this.canvas;t.classList.add("five-plugin__magnifier"),t.style.position="absolute",t.style.pointerEvents="all",t.style.borderRadius="50%",t.style.zIndex="99";const e=1;t.setAttribute("width",(this.width*e).toString()),t.setAttribute("height",(this.height*e).toString()),t.style.border="2px solid rgba(255,255,255,0.20)",t.style.width=this.width+"px",t.style.height=this.height+"px",t.style.top=this.config.initialPosition.top,t.style.left=this.config.initialPosition.left,t.style.transform="translate(0,0,100px)",this.config.dragEnabled&&(this.canvas.style.cursor="pointer")}getPanOffset(t,e){const{min:{x:n,y:o},max:{x:s,y:r}}=e,a=this.offset.x+t.deltaX,l=this.offset.y+t.deltaY,c=Math.min(Math.max(a,n),s),u=Math.min(Math.max(l,o),r);return{translateX:c,translateY:u}}}class zf{constructor(t){f(this,"edges",[]);f(this,"five");f(this,"onModelLoaded",()=>{!this.five.model||(this.edges=this.five.model.getEdges())});this.five=t,this.five.model.loaded?this.onModelLoaded():this.five.on("modelLoaded",this.onModelLoaded)}dispose(){}getAdsorbentPoint(t){if(this.edges.length===0)return null;let e=1/0,n;return this.edges.forEach(o=>{const s=o.closestPointToPoint(t.point,!0,new V.Vector3),r=s.distanceTo(t.point);r<e&&(n=s,e=r)}),e>.1?null:n||null}}function Bf(i,t){for(let e=0,n=t.length;e<n;e++)if(i===t[e])return t.splice(e,1)[0]}class Ye{constructor(t){f(this,"id");f(this,"lines");f(this,"position");f(this,"type","point");this.id=_e(),this.lines=[],this.position=new V.Vector3,t instanceof V.Vector3?this.position.copy(t):this.position.fromArray(t)}toJson(){return{id:this.id,position:this.position.toArray()}}addLine(t){this.lines.push(t)}removeLine(t){Bf(t,this.lines)}clone(){return new Ye(this.position)}}class yi{constructor(t){f(this,"id",_e());f(this,"lines",[]);f(this,"points",[]);f(this,"visiblePanoIndexes");f(this,"model");f(this,"type","polyline");f(this,"hook",new Ce.Subscribe);this.model=t.model}addLine(t){if(this.includes(t)){console.error(new Error("\u4E0D\u80FD\u91CD\u590D\u6DFB\u52A0\u7EBF\u6BB5"));return}const e=this.getLastPoint(),n=e&&t.findAnotherPoint(e);e?e&&n?(this.lines.push(t),this.points.push(...t.points),this.hook.emit("lineAdded",t)):console.error(new Error("\u4F20\u5165\u7EBF\u6BB5\u65E0\u6CD5\u4E0E\u5F53\u524D\u6298\u7EBF\u8FDB\u884C\u8FDE\u63A5")):(this.lines.push(t),this.points.push(...t.points),this.hook.emit("lineAdded",t))}removeLine(t){if(this.lines.length!==0){if(!this.isLastLine(t)){console.error(new Error("\u4F20\u5165\u7EBF\u6BB5\u4E0D\u662F\u5F53\u524D\u6298\u7EBF\u7684\u6700\u540E\u4E00\u6BB5"));return}this.lines.pop(),this.lines.length===0?this.points.slice(0,this.points.length):this.points.pop(),this.hook.emit("lineRemoved",t)}}isLastLine(t){const e=this.getLastLine();return e?t.id===e.id:!1}getLastLine(){return this.lines.slice(-1)[0]}clear(){this.lines.slice(0,this.lines.length),this.points.slice(0,this.points.length)}overlapWith(t){return t.type==="point"?this.includes(t):t.type==="line"?t.points.some(e=>this.includes(e)):t.type==="polyline"?t.points.some(e=>this.includes(e)):!0}includes(t){return t.type==="point"?this.points.find(({id:e})=>e===t.id)!==void 0:t.type==="line"?this.lines.find(({id:e})=>e===t.id)!==void 0:!1}isEmpty(){return this.points.length===0}getLastPoint(){return this.points.slice(-1)[0]}toJson(){return{id:this.id,lines:this.lines.map(t=>t.toJson()),visiblePanoIndexes:this.visiblePanoIndexes}}getPointByID(t){return this.points.find(({id:e})=>e===t)}fromJson(t){this.clear(),this.id=t.id;const{getPoint:e,getAllPoints:n}=r(),o=t.lines.map(a=>{const[l,c]=a.points,u=e(l),d=e(c);if(!u||!d)throw new Error("\u7EBF\u4E0A\u7684\u70B9\u4E0D\u5B58\u5728");const h=new Bt(u,d,this.model);return h.id=a.id,h.text=a.text,h}),s=n();this.points.push(...s),this.lines.push(...o),this.visiblePanoIndexes=t.visiblePanoIndexes;function r(){const a=new Map;function l(u){const d=a.get(u.id);if(d)return d;const h=new Ye(u.position);return h.id=u.id,a.set(u.id,h),h}function c(){return Array.from(a.values())}return{getPoint:l,getAllPoints:c}}return this}replace(t){this.id=t.id,this.clear(),this.lines.push(...t.lines),this.points.push(...t.points)}}const jf=1,Vf=3,Of=new V.Color(16777215),Rf=new V.Color(6522623),Qf=new V.Color(16777215),Ff=new V.Color(6522623),Hf=6,_f=8,Gf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAIVBMVEUAAAD////////////////////////////////////////PIev5AAAACnRSTlMAG/Py2baba05un7UgfgAAAHJJREFUKM9joBpgLHVSCRdA4metAoJlCJHmVWBgAeNzroKCCVCBLpjACqgJVjCBxRBT2FbBQQJYQAohsBAsUIUQWA4WiEIILAULeCEEloAFtBACizAEMLRgGIphLabDMJ2O6TlM72MGECIIMQIZIxqoBQCPvpJ/e9FaAAAAAABJRU5ErkJggg==",al=new V.TextureLoader().load(Gf),ll={pointTexture:al,pointSize:Hf,lineWidth:jf,lineColor:Of,pointColor:Qf,lineRenderOrder:20,pointsRenderOrder:20};fe(Q({},ll),{dashed:!0});const Wf={pointTexture:al,pointSize:_f,lineWidth:Vf,lineColor:Rf,pointColor:Ff,lineRenderOrder:10,pointsRenderOrder:10};function Nf(i,t,e){var u,d,h,m,A;const n=(u=e==null?void 0:e.lineWidth)!=null?u:2,o=(d=e==null?void 0:e.lineColor)!=null?d:new V.Color(16777215),s=(h=e==null?void 0:e.pointSize)!=null?h:5,r=(m=e==null?void 0:e.lineRenderOrder)!=null?m:10,a=(A=e==null?void 0:e.lineRenderOrder)!=null?A:20,l=new ma.Line(i,t);l.setMaterial({linewidth:n,color:o}),l.line.material.depthTest=!1,l.line.material.transparent=!0,l.line.renderOrder=r,l.points.renderOrder=a;const c=l.points.material;return c.depthTest=!1,c.size=s,e!=null&&e.pointColor&&c.color.set(e.pointColor).convertSRGBToLinear(),e!=null&&e.pointTexture&&(c.map=e.pointTexture),l}function Ls(i,t){const[e,n]=i.points,o=t==="light"?Wf:ll,s=Nf(e.position,n.position,o);return s.name="normalLine_"+i.id,s}function En(i){const{x:t,y:e,z:n}=i;return!(Math.abs(t)>1||Math.abs(e)>1||Math.abs(n)>1)}function ji(i){const{z:t}=i;return!(Math.abs(t)>1)}function Xf(){const i=document.createElement("div");return i.setAttribute("style","backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);-webkit-tap-highlight-color: rgba(0,0,0,0);"),i.style.width="max-content",i.style.padding="3px 6px",i.style.lineHeight="1",i.style.textAlign="center",i.style.transform="translate(-50%, -50%)",i.style.borderRadius="100px",i.style.fontSize="14px",i.style.color="#fff",i.style.background="rgba(195,195,195,0.70)",i.style.border="0.5px solid rgba(255,255,255,0.6)",i.style.cursor="pointer",i}function Yf(i){const t=document.createElement("div");return t.id="distance_"+i.id,t.classList.add("five-plugin-measure__distance"),t.style.opacity="0",t.style.position="absolute",t.style.left="0",t.style.top="0",t.style.width="0",t.style.height="0",t.style.transform="translate3d(0, 0, 0)",t.style.transformOrigin="left top",t}function Uf(i){let t=!0;const{line:e}=i,n=e.id,o=Xf(),s=Yf(e),r=i.userDistanceItem,a=new V.Vector3(0,0,0),l={lineID:n,ndcPosition:a,update:h,appendTo:m,remove:A,highlight:u,unHighlight:d,getCurrentContent:v,setItemSelectable:p};s.style.pointerEvents=t?"all":"none",r!=null&&r.element?s.appendChild(r.element):s.appendChild(o);function c(){var g;(g=i.clickCallback)==null||g.call(i,l)}function u(){if(r)return r.highlight();o.style.border="0.5px solid #95AEFF",o.style.background="linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)"}function d(){if(r)return r.unHighlight();o.style.border="0.5px solid rgba(255,255,255,0.6)",o.style.background="rgba(195,195,195,0.70)"}function h(g){if(e.mesh.visible===!1){s.style.opacity="0",s.style.pointerEvents="none";return}const b=g.getElement();if(!b)return;const w=b.clientWidth,P=b.clientHeight,x=w/2,C=P/2;if(e.points.length<2)return;const[D,E]=e.points,O=D.position.clone().project(g.camera),G=E.position.clone().project(g.camera),X=O.clone().lerp(G,.5),H=new V.Vector2(O.x*x,O.y*C),B=new V.Vector2(G.x*x,G.y*C),F=H.distanceTo(B);if((()=>!(Math.abs(O.z)>1||Math.abs(G.z)>1||!ji(O)&&!ji(G)||!ji(X)||F===0))()===!1){s.style.opacity="0",s.style.pointerEvents="none";return}const N=(X.x+1)/2*w,_=-(X.y-1)/2*P,Y=-(Math.atan((H.y-B.y)/(H.x-B.x))*180)/Math.PI,ae=s.parentElement&&o.clientWidth>F?-20:0;s.style.transform=`translate(${N}px, ${_}px) rotate(${Y}deg) translateY(${ae}px)`,s.style.opacity="1",s.style.pointerEvents=t?"all":"none",r&&r.update({line:e,polyline:e.getPolyline()});const he=v();o.innerText=he}function m(g){g.appendChild(s),s.addEventListener("click",c)}function A(){o.removeEventListener("click",c),s.remove()}function v(){var D,E,O;if(e.points.length<2)return"";const[g,b]=e.points,w=g.position.clone().distanceTo(b.position),P=(D=i.line.text)!=null?D:i.line.model.config.defaultText,x=(O=(E=i.line.model.config)==null?void 0:E.getDistanceText)==null?void 0:O.call(E,w),C=P!=null?P:x;return C!=null?C:w.toFixed(2)+"m"}function p(g){t=g}return l}class Bt{constructor(t,e,n){f(this,"id");f(this,"selected",!1);f(this,"text");f(this,"type","line");f(this,"model");f(this,"mesh");f(this,"points");f(this,"lightMesh");f(this,"hook");f(this,"distanceItem");f(this,"polyline");var o;if(this.id=_e(),this.model=n,t.id===e.id)throw new Error("\u65E0\u6548\u7684\u7EBF\u6BB5, \u4E00\u4E2A\u70B9\u65E0\u6CD5\u6784\u6210\u7EBF\u6BB5");typeof n.config.defaultText=="string"&&(this.text=n.config.defaultText),this.hook=new Ce.Subscribe,this.points=[t,e],this.mesh=Ls(this,"normal"),this.lightMesh=Ls(this,"light"),this.distanceItem=Uf({line:this,clickCallback:()=>this.hook.emit("selected",this),userDistanceItem:(o=this.model.config)!=null&&o.userDistanceItemCreator?this.model.config.userDistanceItemCreator():void 0}),t.lines.push(this),e.lines.push(this)}clear(){this.selected=!1,this.polyline=void 0}isEmpty(){return this.points.length===0}getPolyline(){if(this.polyline)return this.polyline;const t=this.model.polylines.find(e=>e.lines.includes(this));if(t)return this.polyline=t,t}findAnotherPoint(t){return this.points.find(({id:e})=>e!==t.id)}setText(t){this.text=t,this.hook.emit("textChanged",t)}toJson(){return{id:this.id,points:this.points.map(t=>t.toJson()),text:this.text}}clone(){const t=new Bt(this.points[0].clone(),this.points[1].clone(),this.model);return t.text=this.text,t}}class wi{constructor(t){f(this,"config");f(this,"polylines",[]);f(this,"hook",new Ce.Subscribe);this.config=t}addPolyline(t){if(this.includes(t)){console.error(new Error("\u4E0D\u80FD\u91CD\u590D\u6DFB\u52A0 polyline"));return}this.polylines.push(t),this.hook.emit("polylineAdded",t)}replacePolylineByID(t,e){const n=this.getPolylineByID(t);n==null||n.replace(e)}removePolyline(t){const e=this.polylines.findIndex(({id:n})=>n===t.id);if(e===-1){console.error(new Error("polyline \u4E0D\u5B58\u5728"));return}this.polylines.splice(e,1),this.hook.emit("polylineRemoved",t)}getPolylineByID(t){return this.polylines.find(e=>e.id===t)}getPolylineByLine(t){return this.polylines.find(e=>e.includes(t))}getLineByID(t){return this.getAllLines().find(e=>e.id===t)}getAllLines(){return this.polylines.map(t=>t.lines).flat(1)}getAllPoints(){return this.polylines.map(t=>t.points).flat(1)}includes(t){return this.polylines.find(({id:e})=>e===t.id)!==void 0}clear(){this.polylines.forEach(t=>this.hook.emit("polylineRemoved",t)),this.polylines.splice(0,this.polylines.length)}getClosestPoint(){}parse(t){this.clear(),this.polylines.push(...t.polylines.map(e=>new yi({model:this}).fromJson(e))),this.polylines.forEach(e=>this.hook.emit("polylineAdded",e))}toJson(){return{polylines:this.polylines.map(t=>t.toJson()).filter(t=>t.lines.length>0)}}}const Hn=i=>i.preventDefault();class Ci{constructor(t){f(this,"model");f(this,"five");f(this,"group");f(this,"config");f(this,"dashed");f(this,"disposed",!1);f(this,"isMobile");f(this,"mouseGroup");f(this,"container");f(this,"fiveHelper");f(this,"hook");f(this,"magnifier");f(this,"userDistanceItemCreator");f(this,"updateDistanceUI",()=>{this.dashed.distanceItem.update(this.five),this.model.getAllLines().forEach(t=>t.distanceItem.update(this.five))});var n,o;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 Bt(new Ye([0,0,0]),new Ye([0,0,0]),this.model),this.dashed.distanceItem.setItemSelectable(!1),this.dashed.mesh.setMaterial({dashed:!0,dashScale:100}),this.dashed.mesh.name="dashLine";const e=this.five.getElement();e&&(e.addEventListener("touchstart",Hn),e.addEventListener("contextmenu",Hn))}removeLine(t){this.group.remove(t.mesh,t.lightMesh),t.distanceItem.remove(),this.five.needsRender=!0}updateMouseGroup(t,e){if(!t)return this.mouseGroup;const n=this.fiveHelper.getAdsorbentPoint(t),o=n||t.point;if(this.mouseGroup.position.copy(o),e)this.mouseGroup.quaternion.copy(e.quaternion);else if(t.face){const r=t.face.normal.clone().multiplyScalar(.05),l=t.point.clone().add(r).clone().add(r);this.mouseGroup.lookAt(l)}return this.mouseGroup}dispose(){this.disposed=!0,this.magnifier.disable(),this.model.getAllLines().forEach(e=>this.removeLine(e));const t=this.five.getElement();t&&(t.removeEventListener("touchstart",Hn),t.removeEventListener("contextmenu",Hn))}}function to(i){const{x:t,y:e}=i.center,{clientWidth:n,clientHeight:o}=i.target,s=i.target.getBoundingClientRect(),r=new V.Vector2(t,e).sub(new V.Vector2(s.left,s.top)),a=new V.Vector2(r.x/n*2-1,-(r.y/o)*2+1);return{point:r,ndcPoint:a}}function Vi(i,t){const e=to(t).ndcPoint,n=new V.Raycaster;return n.setFromCamera(e,i.camera),i.model.intersectRaycaster(n)}class _n extends Ci{constructor(e){var o;super(e);f(this,"type","edit");f(this,"polyline");f(this,"pressPoint");f(this,"hasAppendDashed",!1);f(this,"hasAppendMouseGroup",!1);f(this,"fiveElement");f(this,"lastPoint",null);f(this,"hammer");f(this,"onIntersectionUpdate",bo((e,n)=>{var s;this.hasAppendMouseGroup===!1&&(this.group.add(this.mouseGroup),this.magnifier.appendTo(this.container),this.magnifier.enable(),this.hasAppendMouseGroup=!0);const o=this.updateMouseGroup(e,n).position;(s=this.pressPoint)==null||s.position.copy(o),this.updateDashed(),requestAnimationFrame(()=>this.magnifier.renderWithPoint(this.mouseGroup.position)),this.five.needsRender=!0},20));f(this,"revoke",()=>{if(this.polyline.lines.length===0&&this.lastPoint){this.lastPoint=null,this.hasAppendDashed=!1,this.dashed.distanceItem.remove(),this.group.remove(this.dashed.mesh),this.hook.emit("anchorChange",null),this.hook.emit("editedDashedLineChange",null),this.five.needsRender=!0;return}if(this.polyline.lines.length===0&&!this.lastPoint||!this.lastPoint)return;const e=this.polyline.lines[this.polyline.lines.length-1],n=e.findAnotherPoint(this.lastPoint);!n||(this.lastPoint=n,this.hook.emit("anchorChange",n.position),this.group.remove(e.mesh),this.polyline.removeLine(e),this.hasAppendMouseGroup=!1,this.mouseGroup.position.copy(this.lastPoint.position),this.group.remove(this.mouseGroup),e.distanceItem.remove(),this.updateDashed(),this.magnifier.disable(),this.five.needsRender=!0)});f(this,"onMouseLeave",()=>{this.magnifier.disable(),this.group.remove(this.mouseGroup),this.hasAppendMouseGroup=!1,this.lastPoint&&(this.mouseGroup.position.copy(this.lastPoint.position),this.updateDashed())});f(this,"onLineChanged",()=>{this.hook.emit("editedPolylineChange",this.polyline)});f(this,"onPress",e=>{const[n]=Vi(this.five,e);if(!(n!=null&&n.face))return;const o=new Ye(n.point);this.pressPoint=o,this.onIntersectionUpdate(n)});f(this,"onPan",e=>{if(!this.pressPoint)return;const[n]=Vi(this.five,e);!(n!=null&&n.face)||this.onIntersectionUpdate(n)});f(this,"onPanEnd",e=>{!this.pressPoint||this.onTap(e)});f(this,"onTap",e=>{this.hasAppendDashed||(this.dashed.distanceItem.appendTo(this.container),this.group.add(this.dashed.mesh)),this.hasAppendDashed=!0;const[n]=Vi(this.five,e);this.updateMouseGroup(n);const o=new Ye(this.mouseGroup.position),s=this.lastPoint;if(o&&(this.lastPoint=o),o&&s){const r=new Bt(s,o,this.model);r.distanceItem.setItemSelectable(!1),r.distanceItem.appendTo(this.container),this.polyline.addLine(r),this.group.add(r.mesh),r.distanceItem.update(this.five)}this.pressPoint=void 0,this.hasAppendMouseGroup=!1,this.magnifier.disable(),this.group.remove(this.mouseGroup),this.updateDashed(),this.five.needsRender=!0,this.hook.emit("anchorChange",o.position)});f(this,"onWantsTapGesture",()=>!1);f(this,"onWantsToMoveToPano",()=>!1);f(this,"onWantsPanGesture",()=>this.pressPoint?!1:void 0);f(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.dashed.distanceItem.update(this.five)});f(this,"updateDashed",()=>{!this.lastPoint||(this.dashed.points[0].position.copy(this.lastPoint.position),this.dashed.points[1].position.copy(this.mouseGroup.position),this.dashed.mesh.setPoints(this.lastPoint.position,this.mouseGroup.position),this.dashed.distanceItem.update(this.five),this.hook.emit("editedDashedLineChange",this.dashed))});this.model=new wi(this.config),this.polyline=new yi({model:this.model}),this.model.addPolyline(this.polyline),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsPanGesture",this.onWantsPanGesture),this.five.on("wantsTapGesture",this.onWantsTapGesture),this.five.on("wantsToMoveToPano",this.onWantsToMoveToPano),this.five.on("intersectionOnModelUpdate",this.onIntersectionUpdate),this.polyline.hook.on("lineAdded",this.onLineChanged),this.polyline.hook.on("lineRemoved",this.onLineChanged);const n=this.five.getElement();if(n){this.fiveElement=n;const s=new Pn.default(n);this.hammer=s,s.on("tap",this.onTap),s.on("pan",this.onPan),s.on("press",this.onPress),s.on("panend",this.onPanEnd)}this.five.helperVisible=!1,(o=this.fiveElement)==null||o.addEventListener("mouseleave",this.onMouseLeave),this.hook.emit("anchorChange",null),this.hook.emit("editedDashedLineChange",null),this.five.refresh()}dispose(){var e,n;super.dispose(),this.five.helperVisible=!0,this.group.remove(this.mouseGroup,this.dashed.mesh),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("wantsPanGesture",this.onWantsPanGesture),this.five.off("wantsTapGesture",this.onWantsTapGesture),this.five.off("wantsToMoveToPano",this.onWantsToMoveToPano),this.five.off("intersectionOnModelUpdate",this.onIntersectionUpdate),this.polyline.hook.off("lineAdded",this.onLineChanged),this.polyline.hook.off("lineRemoved",this.onLineChanged),(e=this.hammer)==null||e.destroy(),(n=this.fiveElement)==null||n.removeEventListener("mouseleave",this.onMouseLeave),this.magnifier.dispose(),this.dashed.distanceItem.remove(),this.five.needsRender=!0}getEditingLines(){return this.polyline.lines}}class Ss extends Ci{constructor(e){super(e);f(this,"type","view");f(this,"hammer");f(this,"polylineRemoved",e=>{e.lines.forEach(n=>this.removeLine(n)),this.hook.emit("selectedChange",this.model.getAllLines().filter(n=>n.selected).map(n=>n))});f(this,"polylineAdded",e=>{const n=this.five.getCurrentState().panoIndex;e.lines.forEach(o=>{e.visiblePanoIndexes&&!e.visiblePanoIndexes.includes(n)&&(o.mesh.visible=!1),o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)})});f(this,"onCameraUpdate",()=>{this.updateDistanceUI()});f(this,"onFivePanoWillArrive",e=>{this.model.polylines.forEach(n=>{!n.visiblePanoIndexes||n.visiblePanoIndexes.includes(e)||n.lines.forEach(o=>{o.mesh.visible=!1,o.distanceItem.update(this.five)})})});f(this,"onFivePanoArrived",e=>{this.model.polylines.forEach(n=>{!n.visiblePanoIndexes||n.visiblePanoIndexes.includes(e)&&n.lines.forEach(o=>{o.mesh.visible=!0,o.distanceItem.update(this.five)})})});this.model.getAllLines().forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)});const n=this.five.getElement();if(n){const o=new Pn.default(n);this.hammer=o}this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex),this.onFivePanoArrived(this.five.getCurrentState().panoIndex),this.updateDistanceUI(),this.five.needsRender=!0,this.model.hook.on("polylineAdded",this.polylineAdded),this.model.hook.on("polylineRemoved",this.polylineRemoved),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("panoArrived",this.onFivePanoArrived),this.five.on("panoWillArrive",this.onFivePanoWillArrive)}dispose(){var e;super.dispose(),this.model.hook.off("polylineAdded",this.polylineAdded),this.model.hook.off("polylineRemoved",this.polylineRemoved),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.needsRender=!0,this.hook.emit("selectedChange",[]),(e=this.hammer)==null||e.destroy()}}const qf=`
209
209
  <svg class="fpm__delete-icon" width="16px" height="17px" viewBox="0 0 16 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
210
210
  <defs>
211
211
  <linearGradient x1="22.185491%" y1="100%" x2="66.8316686%" y2="6.67239121%" id="linearGradient-1">
@@ -215,10 +215,10 @@ transition: all 500ms;
215
215
  </defs>
216
216
  <path fill="url(#linearGradient-1)" fill-rule="nonzero" transform="translate(2.16 2.16)" d="M11.2979686,2.71818182 C11.611378,2.71818182 11.8654465,2.97561809 11.8654465,3.29318182 C11.8654465,3.58428191 11.6519584,3.82485822 11.374972,3.86293275 L11.2979686,3.86818182 L10.464,3.868 L9.7236795,10.6246222 C9.64153248,11.3737453 9.04854423,11.9512142 8.32013277,12.0165596 L8.18206028,12.0227273 L3.68338622,12.0227273 C2.89302127,12.0227273 2.22904821,11.4205655 2.141767,10.6246222 L2.141767,10.6246222 L1.4,3.868 L0.567477876,3.86818182 C0.254068499,3.86818182 0,3.61074555 0,3.29318182 C0,3.00208173 0.213488114,2.76150541 0.49047449,2.72343089 L0.567477876,2.71818182 L11.2979686,2.71818182 Z M9.322,3.868 L2.542,3.868 L3.26978106,10.4976259 C3.28762252,10.6603274 3.39528004,10.7928487 3.53932022,10.8467307 L3.61412483,10.866894 L3.68338622,10.8727273 L8.18206028,10.8727273 C8.39410941,10.8727273 8.57224853,10.7111717 8.59566544,10.4976259 L8.59566544,10.4976259 L9.322,3.868 Z M8.16824216,0 C8.48165153,0 8.73572003,0.257436269 8.73572003,0.575 C8.73572003,0.866100087 8.52223192,1.1066764 8.24524554,1.14475093 L8.16824216,1.15 L3.69720434,1.15 C3.38379497,1.15 3.12972647,0.892563731 3.12972647,0.575 C3.12972647,0.283899913 3.34321458,0.0433235966 3.62020096,0.00524907226 L3.69720434,0 L8.16824216,0 Z"></path>
217
217
  </svg>
218
- `,Ms="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTciIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZ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1L1Jmxk9vGTRF0Bvc+ts7i4JesX34YXr51vYPqY7wFG1zY9YieaKm36xS817VizJm96rSoEPa6Y0+MNUcKNp0D9l//jem4fFf6ontdHFH9Yz+3v6I3xW3qjfkDfGv2173719f+sQc/zLAb/D0EI6cG68deIAAAAAElFTkSuQmCC";class cl{constructor(t,e){f(this,"visible",!1);f(this,"five");f(this,"lines",[]);f(this,"points",[]);f(this,"onClick");f(this,"cancelDelete");f(this,"content",document.createElement("div"));f(this,"container",document.createElement("div"));f(this,"masking",document.createElement("div"));f(this,"onMouseEnter",()=>{this.content.style.backgroundImage=`url(${Zf})`});f(this,"onMouseLeave",()=>{this.content.style.backgroundImage=`url(${Ms})`});var o,s;this.five=t,this.onClick=(e==null?void 0:e.onClick)||(()=>{}),this.cancelDelete=(e==null?void 0:e.cancelDelete)||(()=>{}),this.container.classList.add("fpm__delete"),this.container.style.opacity="0",this.container.style.position="absolute",this.container.style.left="0",this.container.style.top="10px",this.container.style.transform="translate3d(0, 0, 10px)",this.container.style.pointerEvents="none",this.container.style.transition="top 200ms ease, opacity 200ms ease",this.container.style.zIndex="99",this.content.classList.add("fpm__delete-content"),this.content.style.width="62px",this.content.style.height="26px",this.content.style.display="flex",this.content.style.alignItems="center",this.content.style.justifyContent="center",this.content.style.transform="translate(-50%, -50%)",this.content.style.color="#fff",this.content.style.fontSize="12px",this.content.style.lineHeight="17px",this.content.style.borderRadius="11px",this.content.style.backgroundSize="100% 100%",this.content.style.cursor="pointer",this.content.style.userSelect="none",this.content.style.backgroundImage=`url(${Ms})`,this.content.innerHTML=`
219
- ${Jf}
218
+ `,Ms="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTciIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMC43MDYlIiB5MT0iNDIuNzQ0JSIgeDI9Ijg5LjA2NCUiIHkyPSI1Ny4yMDglIiB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fGv2173719f+sQc/zLAb/D0EI6cG68deIAAAAAElFTkSuQmCC";class cl{constructor(t,e){f(this,"visible",!1);f(this,"five");f(this,"lines",[]);f(this,"points",[]);f(this,"onClick");f(this,"cancelDelete");f(this,"content",document.createElement("div"));f(this,"container",document.createElement("div"));f(this,"masking",document.createElement("div"));f(this,"onMouseEnter",()=>{this.content.style.backgroundImage=`url(${Jf})`});f(this,"onMouseLeave",()=>{this.content.style.backgroundImage=`url(${Ms})`});var o,s;this.five=t,this.onClick=(e==null?void 0:e.onClick)||(()=>{}),this.cancelDelete=(e==null?void 0:e.cancelDelete)||(()=>{}),this.container.classList.add("fpm__delete"),this.container.style.opacity="0",this.container.style.position="absolute",this.container.style.left="0",this.container.style.top="10px",this.container.style.transform="translate3d(0, 0, 10px)",this.container.style.pointerEvents="none",this.container.style.transition="top 200ms ease, opacity 200ms ease",this.container.style.zIndex="99",this.content.classList.add("fpm__delete-content"),this.content.style.width="62px",this.content.style.height="26px",this.content.style.display="flex",this.content.style.alignItems="center",this.content.style.justifyContent="center",this.content.style.transform="translate(-50%, -50%)",this.content.style.color="#fff",this.content.style.fontSize="12px",this.content.style.lineHeight="17px",this.content.style.borderRadius="11px",this.content.style.backgroundSize="100% 100%",this.content.style.cursor="pointer",this.content.style.userSelect="none",this.content.style.backgroundImage=`url(${Ms})`,this.content.innerHTML=`
219
+ ${qf}
220
220
  <span>${(s=(o=e.i18n)==null?void 0:o.call(e,"\u5220\u9664"))!=null?s:"\u5220\u9664"}</span>
221
- `,this.container.append(this.content);const n=this.content.querySelector(".fpm__delete-icon");n&&(n.style.width="16px",n.style.height="17px",n.style.marginRight="1px"),this.content.addEventListener("click",this.onClick),this.content.addEventListener("mouseenter",this.onMouseEnter),this.content.addEventListener("mouseleave",this.onMouseLeave),this.masking.setAttribute("style","position: absolute;top: 0;left: 0;bottom: 0;right: 0;pointer-events: none;"),this.masking.addEventListener("click",this.cancelDelete),this.masking.addEventListener("touchstart",this.cancelDelete)}dispose(){this.content.removeEventListener("click",this.onClick),this.content.removeEventListener("mouseenter",this.onMouseEnter),this.content.removeEventListener("mouseleave",this.onMouseLeave),this.container.remove(),this.masking.removeEventListener("click",this.cancelDelete),this.masking.removeEventListener("touchstart",this.cancelDelete),this.masking.remove()}appendTo(t){return t.append(this.container),t.append(this.masking),this}setLines(t){return this.lines=t,this.points=Array.from(new Set(this.lines.map(e=>[e.points[0],e.points[1]]).flat(1))),this}updatePosition(){if(this.lines.length===0)return this;const t=this.points.map(h=>h.position),e=t.map(h=>h.clone().project(this.five.camera));if(e.some(h=>Math.abs(h.z)>1))return this.hide();const n=e.map(h=>h.x),o=e.map(h=>h.y),s=(Math.min(...n)+Math.max(...n))/2,r=Math.max(...o),a=this.container.parentElement;if(!a)return this;const l=(s+1)/2*a.clientWidth,c=-(r-1)/2*a.clientHeight;let u=l,d=c-34;if(this.lines.length===1&&t.length===2){const h=(o[1]-o[0])/(n[1]-n[0]),A=-((o[1]+o[0])/2-1)/2*a.clientHeight;Math.abs(h)>.4&&(u=l+57,d=A)}return this.container.style.transform=`translate3d(${u}px, ${d}px, 10px)`,this.show()}hide(){return this.visible=!1,this.masking.style.pointerEvents="none",this.container.style.opacity="0",this.container.style.top="10px",this.container.style.pointerEvents="none",this}show(){return console.trace("\u{1F436} ~ show"),this.visible=!0,this.masking.style.pointerEvents="auto",this.container.style.opacity="1",this.container.style.top="0",this.container.style.pointerEvents="auto",this}}function ul(i,t){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;let c,u;return l<0||Kf(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 V.Vector2(c,u)}function Kf(i,t){return i.x===t.x&&i.y===t.y}function $f(i,t){const e=(i.x+1)/2*t.width,n=-(i.y-1)/2*t.height;return new V.Vector2(e,n)}function em(i,t,e,n){const o=i.getElement();if(!o||t.length===0)return null;const s={width:o.clientWidth,height:o.clientHeight},r=t.map(a=>{const l=a.position.clone().project(i.camera);return En(l)?{distance:$f(l,s).distanceTo(e),point:a}:{distance:1/0,point:a}}).sort((a,l)=>a.distance-l.distance);return typeof n=="number"&&r[0].distance>n?null:r[0]}function no(i){const t=(s,r,a)=>{const l=s.lines.find(u=>u.points.findIndex(({id:h})=>h===s.id)!==r);if(!l)return a;const c=l.points[r];return c?t(c,r,a.concat(l)):a},e=t(i.points[0],1,[]),n=t(i.points[0],0,[]);return e.concat(n)}class Ts extends Ci{constructor(e){super(e);f(this,"type","watch");f(this,"deleteDom");f(this,"highlightedLines",[]);f(this,"fiveElement");f(this,"editPointState");f(this,"hammer");f(this,"onPanStart",e=>{var a;if(this.model.getAllLines().length===0||!this.fiveElement)return;const n=to(e).point,o=(a=em(this.five,this.model.getAllPoints(),n,20))==null?void 0:a.point;if(!o){this.editPointState=void 0;return}const s={point:o,associatedLines:no(o.lines[0])};this.hook.emit("wantsDragLine",{point:o.id,lines:s.associatedLines.map(({id:l})=>l)})||(this.editPointState=s,this.magnifier.appendTo(this.container),this.magnifier.enable(),this.group.add(this.mouseGroup))});f(this,"onPanEnd",()=>{!this.editPointState||(this.editPointState.point.lines.forEach(e=>e.mesh.setMaterial({dashed:!1})),this.highlightLines(this.editPointState.associatedLines),this.editPointState=void 0,this.magnifier.disable(),this.group.remove(this.mouseGroup))});f(this,"onPan",e=>{if(!this.editPointState||!this.fiveElement)return;const n=to(e).ndcPoint,o=new V.Raycaster;o.setFromCamera(n,this.five.camera);const[s]=this.five.model.intersectRaycaster(o);!s||this.onIntersectionUpdate(s)});f(this,"onIntersectionUpdate",(e,n)=>{if(!!this.editPointState){if(this.clearHighlightLines(),this.editPointState.point.position.copy(e.point),this.editPointState.point.lines.forEach(o=>{o.mesh.setPoints(o.points[0].position.clone(),o.points[1].position.clone()),o.lightMesh.setPoints(o.points[0].position.clone(),o.points[1].position.clone()),o.mesh.setMaterial({dashed:!0})}),this.updateDistanceUI(),this.magnifier.renderWithPoint(e.point),this.mouseGroup.position.copy(e.point),n)this.mouseGroup.quaternion.copy(n.quaternion);else if(e.face){const s=e.face.normal.clone().multiplyScalar(.05),a=e.point.clone().add(s).clone().add(s);this.mouseGroup.lookAt(a)}this.five.needsRender=!0,this.hook.emit("selectedChange",this.editPointState.associatedLines.map(o=>o))}});f(this,"wantsPanGesture",()=>{if(this.editPointState)return!1});f(this,"wantsTapGesture",e=>{const[n]=this.five.model.intersectRaycaster(e);if(!n)return;const o=this.five.camera,s=n.point.clone().project(o),r=this.container.clientWidth,a=this.container.clientHeight,l=new V.Vector2(s.x*r,s.y*a),c=this.model.getAllLines().map(m=>{const[A,v]=m.points,p=A.position.clone().project(o),g=v.position.clone().project(o);if(!En(p)&&!En(g))return null;const b=new V.Vector2(p.x*r,p.y*a),w=new V.Vector2(g.x*r,g.y*a);return{id:m.id,points:[b,w]}}).filter(m=>!!m);if(c.length===0)return;const d=c.map(m=>{const A=ul(l,m.points);return{id:m.id,distance:A.distanceTo(l)}}).sort((m,A)=>m.distance-A.distance)[0];if(d.distance>20)return;const h=this.model.getAllLines().find(({id:m})=>m===d.id);if(!!h)return this.chooseLine(h),!1});f(this,"chooseLine",e=>{const n=no(e);this.highlightLines(n),this.five.needsRender=!0,this.hook.emit("selectedChange",n.map(o=>o))});f(this,"polylineRemoved",e=>{e.lines.forEach(n=>this.removeLine(n)),this.hook.emit("selectedChange",this.model.getAllLines().filter(n=>n.selected).map(n=>n))});f(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.highlightedLines.length>0&&this.deleteDom.updatePosition()});f(this,"deleteDomClickCallback",()=>{const e=this.highlightedLines[0],n=this.model.getPolylineByLine(e);!n||(this.model.removePolyline(n),this.highlightedLines=[],this.deleteDom.setLines([]).hide())});f(this,"cancelDeleteClickCallback",()=>{this.clearHighlightLines()});this.deleteDom=new cl(this.five,{i18n:this.config.i18n,onClick:this.deleteDomClickCallback,cancelDelete:this.cancelDeleteClickCallback}).appendTo(this.container),this.model.getAllLines().forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),o.hook.on("selected",this.chooseLine),o.distanceItem.setItemSelectable(!0),this.group.add(o.mesh)});const n=this.five.getElement();if(n){this.fiveElement=n;const o=new Pn.default(n);this.hammer=o,o.on("pan",this.onPan),o.on("panstart",this.onPanStart),o.on("panend",this.onPanEnd)}this.updateDistanceUI(),this.five.needsRender=!0,this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.wantsTapGesture),this.five.on("wantsPanGesture",this.wantsPanGesture),this.model.hook.on("polylineRemoved",this.polylineRemoved)}dispose(){var e;super.dispose(),this.deleteDom.dispose(),this.model.hook.off("polylineRemoved",this.polylineRemoved),this.model.getAllLines().forEach(n=>n.hook.off("selected",this.chooseLine)),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("wantsPanGesture",this.wantsPanGesture),this.five.off("wantsTapGesture",this.wantsTapGesture),this.five.needsRender=!0,this.hook.emit("selectedChange",[]),(e=this.hammer)==null||e.destroy()}highlightLine(e){e.selected||(e.selected=!0,this.group.add(e.lightMesh),e.distanceItem.highlight(),this.five.needsRender=!0)}clearHighlightLines(){this.group.children.length!==0&&(this.deleteDom.setLines([]).hide(),this.model.getAllLines().forEach(e=>{e.selected=!1,e.distanceItem.unHighlight(),this.group.remove(e.lightMesh)}),this.highlightedLines=[],this.five.needsRender=!0)}highlightLines(e){this.clearHighlightLines(),this.highlightedLines=e,this.deleteDom.setLines(e).updatePosition().show(),e.forEach(n=>this.highlightLine(n))}}const dl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAYAAACJIC3tAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAA2KADAAQAAAABAAAA2AAAAADs6jNqAABAAElEQVR4Aey9C7ClZ1Wu29253yAkJGBCQoAEdBOCbkSgkIMKKg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QgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC",nm=`
221
+ `,this.container.append(this.content);const n=this.content.querySelector(".fpm__delete-icon");n&&(n.style.width="16px",n.style.height="17px",n.style.marginRight="1px"),this.content.addEventListener("click",this.onClick),this.content.addEventListener("mouseenter",this.onMouseEnter),this.content.addEventListener("mouseleave",this.onMouseLeave),this.masking.setAttribute("style","position: absolute;top: 0;left: 0;bottom: 0;right: 0;pointer-events: none;"),this.masking.addEventListener("click",this.cancelDelete),this.masking.addEventListener("touchstart",this.cancelDelete)}dispose(){this.content.removeEventListener("click",this.onClick),this.content.removeEventListener("mouseenter",this.onMouseEnter),this.content.removeEventListener("mouseleave",this.onMouseLeave),this.container.remove(),this.masking.removeEventListener("click",this.cancelDelete),this.masking.removeEventListener("touchstart",this.cancelDelete),this.masking.remove()}appendTo(t){return t.append(this.container),t.append(this.masking),this}setLines(t){return this.lines=t,this.points=Array.from(new Set(this.lines.map(e=>[e.points[0],e.points[1]]).flat(1))),this}updatePosition(){if(this.lines.length===0)return this;const t=this.points.map(h=>h.position),e=t.map(h=>h.clone().project(this.five.camera));if(e.some(h=>Math.abs(h.z)>1))return this.hide();const n=e.map(h=>h.x),o=e.map(h=>h.y),s=(Math.min(...n)+Math.max(...n))/2,r=Math.max(...o),a=this.container.parentElement;if(!a)return this;const l=(s+1)/2*a.clientWidth,c=-(r-1)/2*a.clientHeight;let u=l,d=c-34;if(this.lines.length===1&&t.length===2){const h=(o[1]-o[0])/(n[1]-n[0]),A=-((o[1]+o[0])/2-1)/2*a.clientHeight;Math.abs(h)>.4&&(u=l+57,d=A)}return this.container.style.transform=`translate3d(${u}px, ${d}px, 10px)`,this.show()}hide(){return this.visible=!1,this.masking.style.pointerEvents="none",this.container.style.opacity="0",this.container.style.top="10px",this.container.style.pointerEvents="none",this}show(){return console.trace("\u{1F436} ~ show"),this.visible=!0,this.masking.style.pointerEvents="auto",this.container.style.opacity="1",this.container.style.top="0",this.container.style.pointerEvents="auto",this}}function ul(i,t){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;let c,u;return l<0||Zf(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 V.Vector2(c,u)}function Zf(i,t){return i.x===t.x&&i.y===t.y}function Kf(i,t){const e=(i.x+1)/2*t.width,n=-(i.y-1)/2*t.height;return new V.Vector2(e,n)}function $f(i,t,e,n){const o=i.getElement();if(!o||t.length===0)return null;const s={width:o.clientWidth,height:o.clientHeight},r=t.map(a=>{const l=a.position.clone().project(i.camera);return En(l)?{distance:Kf(l,s).distanceTo(e),point:a}:{distance:1/0,point:a}}).sort((a,l)=>a.distance-l.distance);return typeof n=="number"&&r[0].distance>n?null:r[0]}function no(i){const t=(s,r,a)=>{const l=s.lines.find(u=>u.points.findIndex(({id:h})=>h===s.id)!==r);if(!l)return a;const c=l.points[r];return c?t(c,r,a.concat(l)):a},e=t(i.points[0],1,[]),n=t(i.points[0],0,[]);return e.concat(n)}class Ts extends Ci{constructor(e){super(e);f(this,"type","watch");f(this,"deleteDom");f(this,"highlightedLines",[]);f(this,"fiveElement");f(this,"editPointState");f(this,"hammer");f(this,"onPanStart",e=>{var a;if(this.model.getAllLines().length===0||!this.fiveElement)return;const n=to(e).point,o=(a=$f(this.five,this.model.getAllPoints(),n,20))==null?void 0:a.point;if(!o){this.editPointState=void 0;return}const s={point:o,associatedLines:no(o.lines[0])};this.hook.emit("wantsDragLine",{point:o.id,lines:s.associatedLines.map(({id:l})=>l)})||(this.editPointState=s,this.magnifier.appendTo(this.container),this.magnifier.enable(),this.group.add(this.mouseGroup))});f(this,"onPanEnd",()=>{!this.editPointState||(this.editPointState.point.lines.forEach(e=>e.mesh.setMaterial({dashed:!1})),this.highlightLines(this.editPointState.associatedLines),this.editPointState=void 0,this.magnifier.disable(),this.group.remove(this.mouseGroup))});f(this,"onPan",e=>{if(!this.editPointState||!this.fiveElement)return;const n=to(e).ndcPoint,o=new V.Raycaster;o.setFromCamera(n,this.five.camera);const[s]=this.five.model.intersectRaycaster(o);!s||this.onIntersectionUpdate(s)});f(this,"onIntersectionUpdate",(e,n)=>{if(!!this.editPointState){if(this.clearHighlightLines(),this.editPointState.point.position.copy(e.point),this.editPointState.point.lines.forEach(o=>{o.mesh.setPoints(o.points[0].position.clone(),o.points[1].position.clone()),o.lightMesh.setPoints(o.points[0].position.clone(),o.points[1].position.clone()),o.mesh.setMaterial({dashed:!0})}),this.updateDistanceUI(),this.magnifier.renderWithPoint(e.point),this.mouseGroup.position.copy(e.point),n)this.mouseGroup.quaternion.copy(n.quaternion);else if(e.face){const s=e.face.normal.clone().multiplyScalar(.05),a=e.point.clone().add(s).clone().add(s);this.mouseGroup.lookAt(a)}this.five.needsRender=!0,this.hook.emit("selectedChange",this.editPointState.associatedLines.map(o=>o))}});f(this,"wantsPanGesture",()=>{if(this.editPointState)return!1});f(this,"wantsTapGesture",e=>{const[n]=this.five.model.intersectRaycaster(e);if(!n)return;const o=this.five.camera,s=n.point.clone().project(o),r=this.container.clientWidth,a=this.container.clientHeight,l=new V.Vector2(s.x*r,s.y*a),c=this.model.getAllLines().map(m=>{const[A,v]=m.points,p=A.position.clone().project(o),g=v.position.clone().project(o);if(!En(p)&&!En(g))return null;const b=new V.Vector2(p.x*r,p.y*a),w=new V.Vector2(g.x*r,g.y*a);return{id:m.id,points:[b,w]}}).filter(m=>!!m);if(c.length===0)return;const d=c.map(m=>{const A=ul(l,m.points);return{id:m.id,distance:A.distanceTo(l)}}).sort((m,A)=>m.distance-A.distance)[0];if(d.distance>20)return;const h=this.model.getAllLines().find(({id:m})=>m===d.id);if(!!h)return this.chooseLine(h),!1});f(this,"chooseLine",e=>{const n=no(e);this.highlightLines(n),this.five.needsRender=!0,this.hook.emit("selectedChange",n.map(o=>o))});f(this,"polylineRemoved",e=>{e.lines.forEach(n=>this.removeLine(n)),this.hook.emit("selectedChange",this.model.getAllLines().filter(n=>n.selected).map(n=>n))});f(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.highlightedLines.length>0&&this.deleteDom.updatePosition()});f(this,"deleteDomClickCallback",()=>{const e=this.highlightedLines[0],n=this.model.getPolylineByLine(e);!n||(this.model.removePolyline(n),this.highlightedLines=[],this.deleteDom.setLines([]).hide())});f(this,"cancelDeleteClickCallback",()=>{this.clearHighlightLines()});this.deleteDom=new cl(this.five,{i18n:this.config.i18n,onClick:this.deleteDomClickCallback,cancelDelete:this.cancelDeleteClickCallback}).appendTo(this.container),this.model.getAllLines().forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),o.hook.on("selected",this.chooseLine),o.distanceItem.setItemSelectable(!0),this.group.add(o.mesh)});const n=this.five.getElement();if(n){this.fiveElement=n;const o=new Pn.default(n);this.hammer=o,o.on("pan",this.onPan),o.on("panstart",this.onPanStart),o.on("panend",this.onPanEnd)}this.updateDistanceUI(),this.five.needsRender=!0,this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.wantsTapGesture),this.five.on("wantsPanGesture",this.wantsPanGesture),this.model.hook.on("polylineRemoved",this.polylineRemoved)}dispose(){var e;super.dispose(),this.deleteDom.dispose(),this.model.hook.off("polylineRemoved",this.polylineRemoved),this.model.getAllLines().forEach(n=>n.hook.off("selected",this.chooseLine)),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("wantsPanGesture",this.wantsPanGesture),this.five.off("wantsTapGesture",this.wantsTapGesture),this.five.needsRender=!0,this.hook.emit("selectedChange",[]),(e=this.hammer)==null||e.destroy()}highlightLine(e){e.selected||(e.selected=!0,this.group.add(e.lightMesh),e.distanceItem.highlight(),this.five.needsRender=!0)}clearHighlightLines(){this.group.children.length!==0&&(this.deleteDom.setLines([]).hide(),this.model.getAllLines().forEach(e=>{e.selected=!1,e.distanceItem.unHighlight(),this.group.remove(e.lightMesh)}),this.highlightedLines=[],this.five.needsRender=!0)}highlightLines(e){this.clearHighlightLines(),this.highlightedLines=e,this.deleteDom.setLines(e).updatePosition().show(),e.forEach(n=>this.highlightLine(n))}}const dl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAYAAACJIC3tAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAA2KADAAQAAAABAAAA2AAAAADs6jNqAABAAElEQVR4Aey9C7ClZ1Wu29253yAkJGBCQoAEdBOCbkSgkIMKKgSjIJvLPket2qVyDiLi8VLiPvFSp8ACEUuUAsXN3orgQQoBUVBBvLCFjbg1CiiICSEEwiUESELu6e4znn/OZ/a7Rn//XKuTbO1e7aj65jvGO94xvu///+9bc625Vjo7d/yb/WvegZ3/QpPv/Rea59+maXfgX+oBt2kPi/DO3tsDrb+zh+jO1h8WD/VAL/JAH+KB9j8c9AdyD7eq3aqu39+tHpKt6uh/INq+nsM+vqMP8nC9cVu9X+t0dzR3IPd83aG4oznnX1ev5t9weQfWPex/u0mLO7CVezTS3BnOez/qYS5x3aYf5e4Ml/Pij3p1zWEbb/UBHk43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U87+eSTL9y1a9e5CG688cbfOOGEE36qXL4dRAfyDua7GGguObTZX7/oFY+/7Wyzm34oX3Bemz7YhwfMr9getOmr+T3vec+dn/70p1+zPFx/VAfsj+tgnXjEEUd8dR20h1e/s2vsvv322y+pbx1//8UvfvGfvupVr/pSzFPuhk3k5uqITjNnvBX0GrtWXjTPHMnt/e7v/u4TX/SiFz353ve+N4fq/Mrvquv9VOElNe7F9da793877rjjLq64HyYPloeO/gwPmtckX6mVmVsR28XJG7xdrsnryGvTB3Pk4YIn5oBNh+2000474qqrrvqt5eH6w9ps76jcjt27d9tvR2260+uwPbzwYZU6uUadvz2fuOGGGy659NJL3/PjP/7j733Xu951I3XN3FQi6Tm/lQ7D1ZqWWWOR3lyXtvexj33sCfXu+3XnnXfeI+pny6+pazi3Bl9Yrq5rvaSu828Kr6agrnFv5f5jja9bHrL/p2gPmcgcHrQ8WPgYecdELF/gtqV587fjxeW14Rvrg3nA9KcDdq973euIT33qU6+tjfXNtck4XH88ukkettJxsu5XeF5twvNKe04NNuvtxV923XXX/c+PfOQj73/Tm9700Ze85CWfKR7LjYXvGtmQ+uiwzOuL5j1AyU/F9bLz6U9/+t2e//znP/zcc899RH2r99X1LnX/4rnePXV9nyz858K/L/xEXBe9tJ1V88wKHlGH7NX1Tvafy/dA+c7lwRKp74N+2Td9ctvG+kPcNhdWF5LXhm+sD3qowNU488wzd9WHGb9dh+Vbiudgva0OifUVTr322xRuSgRVe2Rt1vvXhvTAnV00c2A3Vb9P33bbbZ/48pe//Imrr776sksuueSff/Znf/bSj370o7ctJNPrfnNELt3V2h7xiEcc+2M/9mMPuOCCCx5w6qmn3q8O0tn1DnyfGveugrsti26vtV1Z/qUc/vqC8LHyb3H9tfZ183LI+MDjEbfccst/OfbYY59fPofJQW36xH0U9W8HjJtwKNtq09VF4Bvrg/2AwR3x4Q9/+OFf+ZVf+ary71vj+hr/vcZ7alznQatNtle/eIxaNpIINxkbtzbtsbWp71t1pxd5rxqn18bG59tKajDqb61xc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E9/04n70K99tSPecyfH7buRDWoihOaK3UDGP42fUemQttyOnQtcyl99rfogrjibMvPLJc9RY3Iejt1AxTO0mb1N/gmkDtZEcdt9Q9HUbTZ735cUkfcj3GLxC18Rl1ZiXkfozz8N9eIWuiVf+Ok0j8rb4juKzs7Gb+JAXaGiurldcGrrjWK618zbuZ1750lpGEZDjPryFHss8+7qHa5XvmrgbbV2bJGfDJzm5YlKt+Xqs4mgV9moaUs51jSGTg9+L+eDig+oH7uicnEoj1kLFZLRferefQ/ptxoTYfTfyIS/Bujl7fB0nPha1frkNa4qOD2Z96KBmHR9Uf/BN0ftinPSJ79iKed5keN60yUyscyKt+efYkO86PKOG09IYLjn43s41+NCBzTo+qPZw8D7aunH0xsmbHFYbOrlJdkxo3TpUcdc24Rqet6/8jiksUrxYJLR8j43lVd+LAdiH92nyvGje2HnNvp5tz5pUOa45113G+owst0PPOHSYsz7Gz7m6Z6X1jiXnzcLv3cBZLMbAJHvWqMrp0aochtGKkePYOvw5ln3106v5PYfa5ZzZ+mM3cbYLtZp473q18oZiQ/p917wqGPU1pK+LMY5We3Le42oF/utNnePCjlnD3tzevLzevYe/N0/9j8nN45m9f9+NnP3CdSzApms7tv2mhbBp+44lmV/K2E2c3wq92xn/X+v/vnje7T4O9v4PRqxOxnwQYu4AAAAASUVORK5CYII=",em="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJ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JCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC",tm=`
222
222
  <style>
223
223
  .range-piece__container {
224
224
  position: absolute;
@@ -250,7 +250,7 @@ transition: all 500ms;
250
250
  height: 100%;
251
251
  opacity: 1;
252
252
  position: absolute;
253
- background: url(${tm}) center / contain no-repeat;
253
+ background: url(${em}) center / contain no-repeat;
254
254
  }
255
255
  @keyframes dotting {
256
256
  0% {
@@ -279,14 +279,14 @@ transition: all 500ms;
279
279
  <div class='range-piece__content'></div>
280
280
  <div class="range-piece__aim"></div>
281
281
  </div>
282
- `;function im(){}const{Vector2:om}=I;function sm(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return Object.assign(new om,{x:(i.x-s)/e*2-1,y:-(i.y-o)/n*2+1})}const rm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIA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LwRasBCzbFzN43NIQAIbCChsG6Ba8lgCCBtCxjrdWt+GZH4sKC9cAjsJKGw76Vr7NAIRMkQrc8bVvH3EaSUggQECCtsAREtI4JVAC1u/p7YCemtvjXUtAQn8JAGF7SeBGS6BNwjkW0f+/rof8boaVx3dVZw+CUjgnQQUtneCM00CFwS6Y7vY/uqyY/uKwokE5gkobPNMrXguAd43i23x6u5t3TuXllcugU0EFLZNYC17JIGIVosbEPD1evWxp5WABJ4koLA9CdB0CRQBhI1u7apTq3CnEpDADgIK2w6q1jyVQH8wJKLGunnYqTUN5xLYQEBh2wDVkscSaNF6mf/xxx9fbuNm7vZYMl64BCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC",am="data:image/png;base64,iVB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e/1FVAaRS0KGymk6kTvzO0KH/9NuHZsAEAJAEFy+/0pfY2O7EMGZq2Hhmo3+Vq9yI83sCzjhythAbIDYQGyA2EBsIDZAbCA2QGwgNhAbIDYQGyA2EBuIDRAbiA0QG4gNxAaIDcQGiA3EBmIDxAZiA8QGYgOxAWIDsQEb7ePiGN5/UYAAAAAASUVORK5CYII=",lm=`
282
+ `;function nm(){}const{Vector2:im}=k;function om(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return Object.assign(new im,{x:(i.x-s)/e*2-1,y:-(i.y-o)/n*2+1})}const sm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACE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v;
284
284
  void main() {
285
285
  vUv = uv;
286
286
  vec4 mvPosition = modelViewMatrix * vec4(position, 1);
287
287
  gl_Position = projectionMatrix * mvPosition;
288
288
  }
289
- `,cm=`
289
+ `,lm=`
290
290
  varying vec2 vUv;
291
291
  void main() {
292
292
  vec2 uv = vec2(vUv.x, vUv.y);
@@ -294,7 +294,7 @@ void main() {
294
294
  float match = 1.0 - uv.x;
295
295
  gl_FragColor = vec4(1.0,1.0,1.0,match);
296
296
  }
297
- `;function hl(i){var g,b;const t=(g=i.isMobile)!=null?g:!0,e=(b=i.useNormalVector)!=null?b:!0;let n=10349931;e&&i.ballColor>=0&&(n=i.ballColor);const o=new V.Group,s=new V.PlaneGeometry(.3,.3),r=t?rm:am,a=new V.TextureLoader().load(r);a.encoding=V.sRGBEncoding,a.minFilter=V.LinearFilter;const l=new V.MeshBasicMaterial({map:a,transparent:!0,depthTest:!1}),c=new V.Mesh(s,l),u=new V.CurvePath;u.add(new V.LineCurve3(new V.Vector3(0,0,0),new V.Vector3(0,0,.1)));const d=new V.TubeGeometry(u,8,.003),h=new V.ShaderMaterial({vertexShader:lm,fragmentShader:cm,depthTest:!1,transparent:!0}),m=new V.Mesh(d,h),A=new V.SphereGeometry(.01,20,20),v=new V.MeshBasicMaterial({color:n,depthTest:!1,transparent:!0,side:V.DoubleSide}),p=new V.Mesh(A,v);return p.position.set(0,0,.1),o.name="mouse-current",o.add(c),e&&o.add(m,p),o}class um{constructor(t){f(this,"container",document.createElement("div"));f(this,"five");f(this,"group");f(this,"mouseGroup");f(this,"hasAppendMouseGroup",!1);f(this,"fiveHelper");f(this,"hook");f(this,"content");f(this,"intersectMesh");f(this,"centerMouseXY");f(this,"raycaster",new V.Raycaster);f(this,"pieceStyl",{matrix3d:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],scale:1,opacity:.4});f(this,"onCameraDirectionUpdate",()=>{const t=this.getIntersection();if(t){this.pieceChange(t),this.updateMouseGroup(t);const e=new Ye(this.mouseGroup.position);this.hook.emit("nowPointChange",e)}});f(this,"onWillChangeState",(t,e)=>{var o;this.dotAnimation();const n=(o=this.getIntersection())==null?void 0:o.point;!n||(e==="editing"?this.hook.emit("getStartPoint",new Ye(n)):this.hook.emit("getEndPoint",new Ye(n)))});f(this,"computedCenterMouseXY",()=>{const t=this.container.querySelector(".range-piece__aim");if(!t)return null;const{left:e,top:n,width:o,height:s}=t.getBoundingClientRect(),r=Math.round(e+o/2),a=Math.round(n+s/2),c=sm({x:r,y:a},this.five.getElement());this.centerMouseXY=c});f(this,"getIntersection",()=>{if(!this.centerMouseXY)return null;this.raycaster.setFromCamera(this.centerMouseXY,this.five.camera);const t=this.five.model.intersectRaycaster(this.raycaster)[0];return t||null});this.five=t.five,this.hook=t.hook,this.group=t.group,this.mouseGroup=hl(Q({isMobile:!0},t.openParams.crossHairParameter)),this.fiveHelper=t.fiveHelper,this.container.innerHTML=nm,this.container.classList.add("range-piece-controller"),this.content=this.container.querySelector(".range-piece__content"),this.content&&(this.content.style.transform=`matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`,this.content.style.opacity=`${this.pieceStyl.opacity}`),t.container.append(this.container),this.intersectMesh=new V.Mesh(new V.RingGeometry(.04,.08,32),new V.MeshBasicMaterial({color:1245179,opacity:0,side:V.DoubleSide,transparent:!0})),this.container.addEventListener("animationend",this.computedCenterMouseXY),this.five.on("cameraUpdate",this.onCameraDirectionUpdate),this.hook.on("willChangeState",this.onWillChangeState)}dispose(){this.container.removeEventListener("animationend",this.computedCenterMouseXY),this.five.off("cameraUpdate",this.onCameraDirectionUpdate),this.hook.off("willChangeState",this.onWillChangeState),this.container.remove(),this.group.remove(this.mouseGroup),this.mouseGroup.remove(),this.hasAppendMouseGroup=!1,this.five.scene.remove(this.intersectMesh)}pieceChange(t){const e=t.face,n=t.point;if(e&&n){const s=e.normal.clone().clone().multiplyScalar(.05),r=n.clone().add(s);this.intersectMesh.position.copy(r);const a=r.clone().add(s);this.intersectMesh.lookAt(a),this.five.scene.add(this.intersectMesh);const l=this.intersectMesh.modelViewMatrix.clone().toArray();this.changePieceStyl("matrix3d",l);const c=this.calculateSize(n);this.changePieceStyl("scale",c)}}calculateSize(t){if(!t)return;const e=this.five.camera.position;let n=t.distanceTo(e);const o=4,s=1;return n>o&&(n=o),n<s&&(n=s),-.51/(o-s)*n+1}dotAnimation(){const t=bn.default.Easing.Quadratic.InOut,e={opacity:.4,scale:this.pieceStyl.scale},n={opacity:[1,.4],scale:[this.pieceStyl.scale*.8,this.pieceStyl.scale]};let o=im;const s=new bn.default.Tween(e).to(n,500).easing(t).start(0).onUpdate(({opacity:r,scale:a})=>{this.changePieceStyl("scale",a),this.changePieceStyl("opacity",r)}).onComplete(()=>{o()});o=kn(r=>{s.update(r)})}changePieceStyl(t,e){!this.content||(this.pieceStyl[t]=e,this.content.style.transform=`matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`,this.content.style.opacity=`${this.pieceStyl.opacity}`)}updateMouseGroup(t,e){if(!this.hasAppendMouseGroup){this.group.add(this.mouseGroup),this.hasAppendMouseGroup=!0;const n=this.container.querySelector(".range-piece__aim");n&&(n.style.opacity="0")}if(!t)return this.mouseGroup;if(this.mouseGroup.position.copy(t.point),e)this.mouseGroup.quaternion.copy(e.quaternion);else if(t.face){const o=t.face.normal.clone().multiplyScalar(.05),r=t.point.clone().add(o).clone().add(o);this.mouseGroup.lookAt(r)}return this.mouseGroup}}class un extends Ci{constructor(e){super(e);f(this,"state","watching");f(this,"polyline");f(this,"hasAppendDashed",!1);f(this,"mobileStartPoint",null);f(this,"mobileNowPoint",null);f(this,"highlightedLines",[]);f(this,"deleteDom");f(this,"rangePieceController");f(this,"disposers",[]);f(this,"onLineChanged",()=>{this.hook.emit("editedPolylineChange",this.polyline)});f(this,"onWantsTapGesture",e=>{if(this.state==="editing")return!1;const[n]=this.five.model.intersectRaycaster(e);if(!n)return;const o=this.five.camera,s=n.point.clone().project(o),r=this.container.clientWidth,a=this.container.clientHeight,l=new V.Vector2(s.x*r,s.y*a),c=this.polyline.lines.map(m=>{const[A,v]=m.points,p=A.position.clone().project(o),g=v.position.clone().project(o);if(!En(p)&&!En(g))return null;const b=new V.Vector2(p.x*r,p.y*a),w=new V.Vector2(g.x*r,g.y*a);return{id:m.id,points:[b,w]}}).filter(m=>!!m);if(c.length===0)return;const d=c.map(m=>{const A=ul(l,m.points);return{id:m.id,distance:A.distanceTo(l)}}).sort((m,A)=>m.distance-A.distance)[0];if(d.distance>20)return;const h=this.polyline.lines.find(({id:m})=>m===d.id);if(!!h)return this.chooseLine(h),!1});f(this,"onWantsToMoveToPano",()=>this.state==="watching");f(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.dashed.distanceItem.update(this.five)});f(this,"updateMobileDashed",()=>{!this.mobileStartPoint||!this.mobileNowPoint||(this.dashed.points[0].position.copy(this.mobileStartPoint.position),this.dashed.points[1].position.copy(this.mobileNowPoint.position),this.dashed.mesh.setPoints(this.mobileStartPoint.position,this.mobileNowPoint.position),this.dashed.distanceItem.update(this.five),this.hook.emit("editedDashedLineChange",this.dashed))});f(this,"updateMagnifier",e=>{this.magnifier.containerDom!==this.container&&this.magnifier.appendTo(this.container),this.magnifier.getCurrentState().enabled||this.magnifier.enable(),requestAnimationFrame(()=>this.magnifier.renderWithPoint(e.position)),this.five.needsRender=!0});f(this,"onGetStartPoint",e=>{this.mobileStartPoint=e});f(this,"onGetEndPoint",e=>{const n=this.mobileNowPoint;if(this.removeLine(this.dashed),this.hasAppendDashed=!1,this.mobileStartPoint&&n){const o=new Bt(this.mobileStartPoint,n,this.model);o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),o.hook.on("selected",this.chooseLine),this.disposers.push(()=>o.hook.off("selected",this.chooseLine)),this.group.add(o.mesh),this.polyline.addLine(o)}this.mobileStartPoint=null,this.mobileNowPoint=null,this.five.needsRender=!0});f(this,"onNowPointChange",e=>{if(this.state==="watching"){this.mobileNowPoint=e,this.updateMagnifier(e);return}this.hasAppendDashed||(this.dashed.distanceItem.appendTo(this.container),this.group.add(this.dashed.mesh),this.hasAppendDashed=!0),this.five.needsRender=!0,this.mobileNowPoint=e,this.updateMobileDashed(),this.updateMagnifier(e),this.five.needsRender=!0});f(this,"onWillChangeState",(e,n)=>{this.state=n,this.state==="watching"?this.five.helperVisible=!0:this.five.helperVisible=!1});f(this,"chooseLine",e=>{const n=no(e);this.highlightLines(n),this.five.needsRender=!0,this.hook.emit("selectedChange",n.map(o=>o))});f(this,"deleteDomClickCallback",()=>{this.highlightedLines.forEach(e=>{this.removeLine(e),this.polyline.removeLine(e)}),this.highlightedLines=[],this.deleteDom.setLines([]).hide()});f(this,"cancelDeleteClickCallback",()=>{this.clearHighlightLines()});this.model=new wi(this.config),this.polyline=new yi({model:this.model}),this.model.addPolyline(this.polyline),this.rangePieceController=new um(e),this.deleteDom=new cl(this.five,{i18n:this.config.i18n,onClick:this.deleteDomClickCallback,cancelDelete:this.cancelDeleteClickCallback}).appendTo(this.container),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.onWantsTapGesture),this.five.on("wantsToMoveToPano",this.onWantsToMoveToPano),this.polyline.hook.on("lineAdded",this.onLineChanged),this.polyline.hook.on("lineRemoved",this.onLineChanged),this.five.helperVisible=!1,this.hook.emit("editedDashedLineChange",null),this.hook.on("getStartPoint",this.onGetStartPoint),this.hook.on("getEndPoint",this.onGetEndPoint),this.hook.on("nowPointChange",this.onNowPointChange),this.hook.on("willChangeState",this.onWillChangeState),this.five.refresh()}dispose(){super.dispose(),this.disposers.forEach(e=>e()),this.five.helperVisible=!0,this.rangePieceController.dispose(),this.group.remove(this.mouseGroup,this.dashed.mesh),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("wantsTapGesture",this.onWantsTapGesture),this.five.off("wantsToMoveToPano",this.onWantsToMoveToPano),this.polyline.hook.off("lineAdded",this.onLineChanged),this.polyline.hook.off("lineRemoved",this.onLineChanged),this.hook.off("getStartPoint",this.onGetStartPoint),this.hook.off("getEndPoint",this.onGetEndPoint),this.hook.off("nowPointChange",this.onNowPointChange),this.hook.off("willChangeState",this.onWillChangeState),this.hook.emit("selectedChange",[]),this.dashed.distanceItem.remove(),this.five.needsRender=!0}highlightLine(e){e.selected||(e.selected=!0,this.group.add(e.lightMesh),e.distanceItem.highlight(),this.five.needsRender=!0)}clearHighlightLines(){this.group.children.length!==0&&(this.deleteDom.setLines([]).hide(),this.polyline.lines.forEach(e=>{e.selected=!1,e.distanceItem.unHighlight(),this.group.remove(e.lightMesh)}),this.highlightedLines=[],this.five.needsRender=!0)}getEditingLines(){return this.polyline.lines}addStartPoint(){}highlightLines(e){this.clearHighlightLines(),this.highlightedLines=e,this.deleteDom.setLines(e).updatePosition().show(),e.forEach(n=>this.highlightLine(n))}}const fl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTUuMyUiIHk9Ii01LjMlIiB3aWR0aD0iMTEwLjUlIiBoZWlnaHQ9IjExMC41JSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEiIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbXBvc2l0ZSBpbj0ic2hhZG93Qmx1ck91dGVyMSIgaW4yPSJTb3VyY2VBbHBoYSIgb3BlcmF0b3I9Im91dCIgcmVzdWx0PSJzaGFkb3dCbHVyT3V0ZXIxIi8+PGZl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iByeT0iNy4xMTEiLz48cGF0aCBkPSJNMzYgMEMxNi4xMTggMCAwIDE2LjExOCAwIDM2czE2LjExOCAzNiAzNiAzNiAzNi0xNi4xMTggMzYtMzZTNTUuODgyIDAgMzYgMHptMCA0LjQ0NGMxNy40MjggMCAzMS41NTYgMTQuMTI4IDMxLjU1NiAzMS41NTZTNTMuNDI4IDY3LjU1NiAzNiA2Ny41NTYgNC40NDQgNTMuNDI4IDQuNDQ0IDM2IDE4LjU3MiA0LjQ0NCAzNiA0LjQ0NHoiIGZpbGw9InVybCgjcHJlZml4X19kKSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg==",dm=`
297
+ `;function hl(i){var g,b;const t=(g=i.isMobile)!=null?g:!0,e=(b=i.useNormalVector)!=null?b:!0;let n=10349931;e&&i.ballColor>=0&&(n=i.ballColor);const o=new V.Group,s=new V.PlaneGeometry(.3,.3),r=t?sm:rm,a=new V.TextureLoader().load(r);a.encoding=V.sRGBEncoding,a.minFilter=V.LinearFilter;const l=new V.MeshBasicMaterial({map:a,transparent:!0,depthTest:!1}),c=new V.Mesh(s,l),u=new V.CurvePath;u.add(new V.LineCurve3(new V.Vector3(0,0,0),new V.Vector3(0,0,.1)));const d=new V.TubeGeometry(u,8,.003),h=new V.ShaderMaterial({vertexShader:am,fragmentShader:lm,depthTest:!1,transparent:!0}),m=new V.Mesh(d,h),A=new V.SphereGeometry(.01,20,20),v=new V.MeshBasicMaterial({color:n,depthTest:!1,transparent:!0,side:V.DoubleSide}),p=new V.Mesh(A,v);return p.position.set(0,0,.1),o.name="mouse-current",o.add(c),e&&o.add(m,p),o}class cm{constructor(t){f(this,"container",document.createElement("div"));f(this,"five");f(this,"group");f(this,"mouseGroup");f(this,"hasAppendMouseGroup",!1);f(this,"fiveHelper");f(this,"hook");f(this,"content");f(this,"intersectMesh");f(this,"centerMouseXY");f(this,"raycaster",new V.Raycaster);f(this,"pieceStyl",{matrix3d:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],scale:1,opacity:.4});f(this,"onCameraDirectionUpdate",()=>{const t=this.getIntersection();if(t){this.pieceChange(t),this.updateMouseGroup(t);const e=new Ye(this.mouseGroup.position);this.hook.emit("nowPointChange",e)}});f(this,"onWillChangeState",(t,e)=>{var o;this.dotAnimation();const n=(o=this.getIntersection())==null?void 0:o.point;!n||(e==="editing"?this.hook.emit("getStartPoint",new Ye(n)):this.hook.emit("getEndPoint",new Ye(n)))});f(this,"computedCenterMouseXY",()=>{const t=this.container.querySelector(".range-piece__aim");if(!t)return null;const{left:e,top:n,width:o,height:s}=t.getBoundingClientRect(),r=Math.round(e+o/2),a=Math.round(n+s/2),c=om({x:r,y:a},this.five.getElement());this.centerMouseXY=c});f(this,"getIntersection",()=>{if(!this.centerMouseXY)return null;this.raycaster.setFromCamera(this.centerMouseXY,this.five.camera);const t=this.five.model.intersectRaycaster(this.raycaster)[0];return t||null});this.five=t.five,this.hook=t.hook,this.group=t.group,this.mouseGroup=hl(Q({isMobile:!0},t.openParams.crossHairParameter)),this.fiveHelper=t.fiveHelper,this.container.innerHTML=tm,this.container.classList.add("range-piece-controller"),this.content=this.container.querySelector(".range-piece__content"),this.content&&(this.content.style.transform=`matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`,this.content.style.opacity=`${this.pieceStyl.opacity}`),t.container.append(this.container),this.intersectMesh=new V.Mesh(new V.RingGeometry(.04,.08,32),new V.MeshBasicMaterial({color:1245179,opacity:0,side:V.DoubleSide,transparent:!0})),this.container.addEventListener("animationend",this.computedCenterMouseXY),this.five.on("cameraUpdate",this.onCameraDirectionUpdate),this.hook.on("willChangeState",this.onWillChangeState)}dispose(){this.container.removeEventListener("animationend",this.computedCenterMouseXY),this.five.off("cameraUpdate",this.onCameraDirectionUpdate),this.hook.off("willChangeState",this.onWillChangeState),this.container.remove(),this.group.remove(this.mouseGroup),this.mouseGroup.remove(),this.hasAppendMouseGroup=!1,this.five.scene.remove(this.intersectMesh)}pieceChange(t){const e=t.face,n=t.point;if(e&&n){const s=e.normal.clone().clone().multiplyScalar(.05),r=n.clone().add(s);this.intersectMesh.position.copy(r);const a=r.clone().add(s);this.intersectMesh.lookAt(a),this.five.scene.add(this.intersectMesh);const l=this.intersectMesh.modelViewMatrix.clone().toArray();this.changePieceStyl("matrix3d",l);const c=this.calculateSize(n);this.changePieceStyl("scale",c)}}calculateSize(t){if(!t)return;const e=this.five.camera.position;let n=t.distanceTo(e);const o=4,s=1;return n>o&&(n=o),n<s&&(n=s),-.51/(o-s)*n+1}dotAnimation(){const t=bn.default.Easing.Quadratic.InOut,e={opacity:.4,scale:this.pieceStyl.scale},n={opacity:[1,.4],scale:[this.pieceStyl.scale*.8,this.pieceStyl.scale]};let o=nm;const s=new bn.default.Tween(e).to(n,500).easing(t).start(0).onUpdate(({opacity:r,scale:a})=>{this.changePieceStyl("scale",a),this.changePieceStyl("opacity",r)}).onComplete(()=>{o()});o=kn(r=>{s.update(r)})}changePieceStyl(t,e){!this.content||(this.pieceStyl[t]=e,this.content.style.transform=`matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`,this.content.style.opacity=`${this.pieceStyl.opacity}`)}updateMouseGroup(t,e){if(!this.hasAppendMouseGroup){this.group.add(this.mouseGroup),this.hasAppendMouseGroup=!0;const n=this.container.querySelector(".range-piece__aim");n&&(n.style.opacity="0")}if(!t)return this.mouseGroup;if(this.mouseGroup.position.copy(t.point),e)this.mouseGroup.quaternion.copy(e.quaternion);else if(t.face){const o=t.face.normal.clone().multiplyScalar(.05),r=t.point.clone().add(o).clone().add(o);this.mouseGroup.lookAt(r)}return this.mouseGroup}}class un extends Ci{constructor(e){super(e);f(this,"state","watching");f(this,"polyline");f(this,"hasAppendDashed",!1);f(this,"mobileStartPoint",null);f(this,"mobileNowPoint",null);f(this,"highlightedLines",[]);f(this,"deleteDom");f(this,"rangePieceController");f(this,"disposers",[]);f(this,"onLineChanged",()=>{this.hook.emit("editedPolylineChange",this.polyline)});f(this,"onWantsTapGesture",e=>{if(this.state==="editing")return!1;const[n]=this.five.model.intersectRaycaster(e);if(!n)return;const o=this.five.camera,s=n.point.clone().project(o),r=this.container.clientWidth,a=this.container.clientHeight,l=new V.Vector2(s.x*r,s.y*a),c=this.polyline.lines.map(m=>{const[A,v]=m.points,p=A.position.clone().project(o),g=v.position.clone().project(o);if(!En(p)&&!En(g))return null;const b=new V.Vector2(p.x*r,p.y*a),w=new V.Vector2(g.x*r,g.y*a);return{id:m.id,points:[b,w]}}).filter(m=>!!m);if(c.length===0)return;const d=c.map(m=>{const A=ul(l,m.points);return{id:m.id,distance:A.distanceTo(l)}}).sort((m,A)=>m.distance-A.distance)[0];if(d.distance>20)return;const h=this.polyline.lines.find(({id:m})=>m===d.id);if(!!h)return this.chooseLine(h),!1});f(this,"onWantsToMoveToPano",()=>this.state==="watching");f(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.dashed.distanceItem.update(this.five)});f(this,"updateMobileDashed",()=>{!this.mobileStartPoint||!this.mobileNowPoint||(this.dashed.points[0].position.copy(this.mobileStartPoint.position),this.dashed.points[1].position.copy(this.mobileNowPoint.position),this.dashed.mesh.setPoints(this.mobileStartPoint.position,this.mobileNowPoint.position),this.dashed.distanceItem.update(this.five),this.hook.emit("editedDashedLineChange",this.dashed))});f(this,"updateMagnifier",e=>{this.magnifier.containerDom!==this.container&&this.magnifier.appendTo(this.container),this.magnifier.getCurrentState().enabled||this.magnifier.enable(),requestAnimationFrame(()=>this.magnifier.renderWithPoint(e.position)),this.five.needsRender=!0});f(this,"onGetStartPoint",e=>{this.mobileStartPoint=e});f(this,"onGetEndPoint",e=>{const n=this.mobileNowPoint;if(this.removeLine(this.dashed),this.hasAppendDashed=!1,this.mobileStartPoint&&n){const o=new Bt(this.mobileStartPoint,n,this.model);o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),o.hook.on("selected",this.chooseLine),this.disposers.push(()=>o.hook.off("selected",this.chooseLine)),this.group.add(o.mesh),this.polyline.addLine(o)}this.mobileStartPoint=null,this.mobileNowPoint=null,this.five.needsRender=!0});f(this,"onNowPointChange",e=>{if(this.state==="watching"){this.mobileNowPoint=e,this.updateMagnifier(e);return}this.hasAppendDashed||(this.dashed.distanceItem.appendTo(this.container),this.group.add(this.dashed.mesh),this.hasAppendDashed=!0),this.five.needsRender=!0,this.mobileNowPoint=e,this.updateMobileDashed(),this.updateMagnifier(e),this.five.needsRender=!0});f(this,"onWillChangeState",(e,n)=>{this.state=n,this.state==="watching"?this.five.helperVisible=!0:this.five.helperVisible=!1});f(this,"chooseLine",e=>{const n=no(e);this.highlightLines(n),this.five.needsRender=!0,this.hook.emit("selectedChange",n.map(o=>o))});f(this,"deleteDomClickCallback",()=>{this.highlightedLines.forEach(e=>{this.removeLine(e),this.polyline.removeLine(e)}),this.highlightedLines=[],this.deleteDom.setLines([]).hide()});f(this,"cancelDeleteClickCallback",()=>{this.clearHighlightLines()});this.model=new wi(this.config),this.polyline=new yi({model:this.model}),this.model.addPolyline(this.polyline),this.rangePieceController=new cm(e),this.deleteDom=new cl(this.five,{i18n:this.config.i18n,onClick:this.deleteDomClickCallback,cancelDelete:this.cancelDeleteClickCallback}).appendTo(this.container),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.onWantsTapGesture),this.five.on("wantsToMoveToPano",this.onWantsToMoveToPano),this.polyline.hook.on("lineAdded",this.onLineChanged),this.polyline.hook.on("lineRemoved",this.onLineChanged),this.five.helperVisible=!1,this.hook.emit("editedDashedLineChange",null),this.hook.on("getStartPoint",this.onGetStartPoint),this.hook.on("getEndPoint",this.onGetEndPoint),this.hook.on("nowPointChange",this.onNowPointChange),this.hook.on("willChangeState",this.onWillChangeState),this.five.refresh()}dispose(){super.dispose(),this.disposers.forEach(e=>e()),this.five.helperVisible=!0,this.rangePieceController.dispose(),this.group.remove(this.mouseGroup,this.dashed.mesh),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("wantsTapGesture",this.onWantsTapGesture),this.five.off("wantsToMoveToPano",this.onWantsToMoveToPano),this.polyline.hook.off("lineAdded",this.onLineChanged),this.polyline.hook.off("lineRemoved",this.onLineChanged),this.hook.off("getStartPoint",this.onGetStartPoint),this.hook.off("getEndPoint",this.onGetEndPoint),this.hook.off("nowPointChange",this.onNowPointChange),this.hook.off("willChangeState",this.onWillChangeState),this.hook.emit("selectedChange",[]),this.dashed.distanceItem.remove(),this.five.needsRender=!0}highlightLine(e){e.selected||(e.selected=!0,this.group.add(e.lightMesh),e.distanceItem.highlight(),this.five.needsRender=!0)}clearHighlightLines(){this.group.children.length!==0&&(this.deleteDom.setLines([]).hide(),this.polyline.lines.forEach(e=>{e.selected=!1,e.distanceItem.unHighlight(),this.group.remove(e.lightMesh)}),this.highlightedLines=[],this.five.needsRender=!0)}getEditingLines(){return this.polyline.lines}addStartPoint(){}highlightLines(e){this.clearHighlightLines(),this.highlightedLines=e,this.deleteDom.setLines(e).updatePosition().show(),e.forEach(n=>this.highlightLine(n))}}const fl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTUuMyUiIHk9Ii01LjMlIiB3aWR0aD0iMTEwLjUlIiBoZWlnaHQ9IjExMC41JSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEiIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbXBvc2l0ZSBpbj0ic2hh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bD0iIzdDOTBEQSIgb3BhY2l0eT0iLjU5NiIgZmlsdGVyPSJ1cmwoI3ByZWZpeF9fYykiIGN4PSIzNiIgY3k9IjM2IiByeD0iMTguOTYzIiByeT0iNy4xMTEiLz48cGF0aCBkPSJNMzYgMEMxNi4xMTggMCAwIDE2LjExOCAwIDM2czE2LjExOCAzNiAzNiAzNiAzNi0xNi4xMTggMzYtMzZTNTUuODgyIDAgMzYgMHptMCA0LjQ0NGMxNy40MjggMCAzMS41NTYgMTQuMTI4IDMxLjU1NiAzMS41NTZTNTMuNDI4IDY3LjU1NiAzNiA2Ny41NTYgNC40NDQgNTMuNDI4IDQuNDQ0IDM2IDE4LjU3MiA0LjQ0NCAzNiA0LjQ0NHoiIGZpbGw9InVybCgjcHJlZml4X19kKSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg==",um=`
298
298
  <svg class="fpm__exit-icon width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
299
299
  <defs>
300
300
  <radialGradient cx="50%" cy="50%" fx="50%" fy="50%" r="86.3016741%" id="radialGradient-1">
@@ -310,7 +310,7 @@ void main() {
310
310
  <path d="M19.1859205,4.10000004 C19.3691554,4.09993923 19.5526088,4.16602323 19.6925352,4.29904206 C19.8171021,4.41745965 19.8858582,4.56899486 19.8980316,4.7239943 C19.9103475,4.88080848 19.8647874,5.04088037 19.7661957,5.16777131 L19.7661957,5.16777131 L14.3769795,11.1697063 C14.1649599,11.4058657 14.0589501,11.7029328 14.0589501,12 C14.0589501,12.2970672 14.1649599,12.5941343 14.3769795,12.8302937 L14.3769795,12.8302937 L19.6928862,18.7509889 C19.8173649,18.8694879 19.8860087,19.0210672 19.8980683,19.1760728 C19.9102693,19.3328965 19.8645908,19.4929392 19.7701664,19.6153111 C19.6099275,19.772809 19.4324896,19.8610254 19.2586274,19.8856752 C19.0810547,19.910851 18.9081905,19.8692156 18.765363,19.7704965 L18.765363,19.7704965 L11.9999322,13.2904645 L5.32508998,19.6962598 C5.16077108,19.8156635 4.99335965,19.8785989 4.83451361,19.8898888 C4.67442082,19.9012674 4.52389835,19.8596921 4.3968979,19.7731206 C4.23619359,19.588506 4.14871527,19.4164558 4.12392544,19.2589757 C4.09801173,19.094356 4.14341261,18.9485987 4.23380428,18.8322287 L4.23380428,18.8322287 L9.62302046,12.8302937 C9.81773049,12.6134147 9.92302682,12.3451662 9.93892926,12.0727274 C9.95499717,11.7974536 9.87975312,11.5179151 9.70614397,11.2737767 L9.70614397,11.2737767 L4.31595492,5.25860214 C4.17860663,5.08857057 4.11166276,4.9104714 4.11172409,4.7432513 C4.11178577,4.57506821 4.18051603,4.41972395 4.30746483,4.29904206 C4.43371817,4.17902131 4.59543385,4.11349344 4.76041858,4.10187732 L4.76041858,4.10187732 L12.0000677,10.7085251 L18.6794563,4.29937602 C18.8192839,4.16626546 19.0026873,4.10006086 19.1859205,4.10000004 Z" id="\u5F62\u72B6\u7ED3\u5408"></path>
311
311
  </g>
312
312
  </svg>
313
- `,hm=`
313
+ `,dm=`
314
314
  <style>
315
315
  .mobile .fpm__exit {
316
316
  position: absolute;
@@ -361,7 +361,7 @@ void main() {
361
361
 
362
362
  </style>
363
363
  <div class="fpm__exit">
364
- ${dm}
364
+ ${um}
365
365
  </div>
366
366
  <div class="fpm_ui-bg"></div>
367
367
  <div class="fpm_operating-space fpm_operating--mobile">
@@ -370,7 +370,7 @@ void main() {
370
370
  <div class="fpm__text fpm__main-text fpm__main-btn-text"></div>
371
371
  </div>
372
372
  </div>
373
- `,fm=`
373
+ `,hm=`
374
374
  <svg class="fpm__revoke-icon" width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
375
375
  <defs>
376
376
  <linearGradient x1="47.631%" y1="55.183%" x2="2.967%" y2="86.323%" id="fpm__revoke-a">
@@ -390,7 +390,7 @@ void main() {
390
390
  stroke-width=".5"
391
391
  />
392
392
  </svg>
393
- `,mm=`
393
+ `,fm=`
394
394
  <svg class="fpm__exit-icon width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
395
395
  <defs>
396
396
  <linearGradient x1="36.288%" y1="73.736%" x2="54.242%" y2="97.166%" id="fpm__exit-a">
@@ -411,7 +411,7 @@ void main() {
411
411
  stroke-width=".5"
412
412
  />
413
413
  </svg>
414
- `,pm=`
414
+ `,mm=`
415
415
  <style>
416
416
  .fpm__other-btn {
417
417
  height: 40px;
@@ -479,7 +479,7 @@ void main() {
479
479
  <div class="fpm_operating-space">
480
480
  <div class="fpm__other-btn">
481
481
  <div class="fpm__other-content fpm__revoke">
482
- ${fm}
482
+ ${hm}
483
483
  <span class="fpm__text fpm__revoke-text"></span>
484
484
  </div>
485
485
  </div>
@@ -489,17 +489,17 @@ void main() {
489
489
  </div>
490
490
  <div class="fpm__other-btn">
491
491
  <div class="fpm__other-content fpm__exit">
492
- ${mm}
492
+ ${fm}
493
493
  <span class="fpm__text fpm__exit-text"></span>
494
494
  </div>
495
495
  </div>
496
496
  </div>
497
- `,gm={display:"none",position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:"0",transform:"translate(0, 10px)",transition:"opacity 500ms ease-in-out, transform 500ms ease-in-out"},Am={position:"absolute",left:"50%",bottom:"32px",transform:"translateX(-50%)",height:"89px",display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"14px",pointerEvents:"all",color:"#fff",zIndex:"10"},vm={position:"absolute",bottom:"0",left:"0",opacity:"0.5",width:"100%",height:"184px",background:"linear-gradient(180deg, rgba(0,0,0,0.00) 0%, #000000 100%)",zIndex:"0"},pl={margin:"0 64px"},bm={opacity:"0.85"},gl={width:"72px",height:"72px",backgroundSize:"100%",cursor:"pointer",transition:"all 200ms ease-in-out"},ym={width:"24px",height:"24px",marginRight:"4px",backgroundSize:"100%",cursor:"pointer"},wm={userSelect:"none",pointerEvents:"none"};class Cm{constructor(t,e,n){f(this,"container");f(this,"measureController");f(this,"mainElement");f(this,"_params");f(this,"_btnTexts",{start:"\u5F00\u59CB",end:"\u7ED3\u675F",revoke:"\u64A4\u9500",exit:"\u9000\u51FA"});f(this,"onMouseEnter",()=>{const{mainItem:t}=this.mainElement;t.style.opacity="1"});f(this,"onMouseLeave",()=>{const{mainItem:t}=this.mainElement;t.style.opacity="0.85"});f(this,"onClick",()=>{this.measureController.getCurrentMode()!=="Edit"?this.measureController.changeMode("Edit"):this.measureController.save().changeMode("Watch")});f(this,"modeChangeHandler",t=>{t==="Edit"?this.change2Done():this.change2Add()});var r,a,l,c;this._params=n,this._btnTexts={start:(r=this._params.startButtonText)!=null?r:this._btnTexts.start,end:(a=this._params.endButtonText)!=null?a:this._btnTexts.end,revoke:(l=this._params.revokeButtonText)!=null?l:this._btnTexts.revoke,exit:(c=this._params.exitButtonText)!=null?c:this._btnTexts.exit},this.measureController=t,this.container=e,this.mainElement=this.getMainElement(),Object.assign(this.mainElement.mainIcon.style,gl),Object.assign(this.mainElement.mainItem.style,pl);const{revokeTextDom:o,exitTextDom:s}=this._getTextElement();o&&(o.innerText=this._btnTexts.revoke),s&&(s.innerText=this._btnTexts.exit),this.change2Add(),this.measureController.hook.on("modeChange",this.modeChangeHandler),this.mainElement.mainItem.addEventListener("click",this.onClick),this.mainElement.mainItem.addEventListener("mouseenter",this.onMouseEnter),this.mainElement.mainItem.addEventListener("mouseleave",this.onMouseLeave)}dispose(){this.measureController.hook.off("modeChange",this.modeChangeHandler),this.mainElement.mainItem.removeEventListener("click",this.onClick),this.mainElement.mainItem.removeEventListener("mouseenter",this.onMouseEnter),this.mainElement.mainItem.removeEventListener("mouseleave",this.onMouseLeave)}getMainElement(){const t=this.container.querySelector(".fpm__main-text"),e=this.container.querySelector(".fpm__main"),n=this.container.querySelector(".fpm__main-icon");if(!e||!t||!n)throw new Error("cannot find dom");return{mainTextDom:t,mainItem:e,mainIcon:n}}_getTextElement(){const t=this.container.querySelector(".fpm__revoke-text"),e=this.container.querySelector(".fpm__exit-text");return{revokeTextDom:t,exitTextDom:e}}change2Add(){const{mainIcon:t,mainTextDom:e}=this.mainElement;if(t.className.includes("fpm__main__start")){e.innerText=this._btnTexts.start;return}t.className.includes("fpm__main__end")&&(t.style.transform="scale(0.8)",e.className.includes("fpm__main-text__show")?e.classList.replace("fpm__main-text__show","fpm__main-text__hide"):e.classList.add("fpm__main-text__hide"),setTimeout(()=>{t.classList.replace("fpm__main__end","fpm__main__start"),t.style.transform="scale(1)",e.innerText=this._btnTexts.start,e.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200))}change2Done(){const{mainTextDom:t,mainIcon:e}=this.getMainElement();t.innerText!==this._btnTexts.end&&(e.className.includes("fpm__main__end")||e.className.includes("fpm__main__start")&&(e.style.transform="scale(0.8)",t.className.includes("fpm__main-text__show")?t.classList.replace("fpm__main-text__show","fpm__main-text__hide"):t.classList.add("fpm__main-text__hide"),setTimeout(()=>{e.classList.replace("fpm__main__start","fpm__main__end"),e.style.transform="scale(1)",t.innerText=this._btnTexts.end,t.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200)))}}class Em{constructor(t,e,n){f(this,"container");f(this,"measureController");f(this,"mainElement");f(this,"_params");f(this,"_btnTexts",{start:"\u5F00\u59CB",end:"\u7ED3\u675F"});f(this,"onClick",()=>{var t;this.mainElement.mainTextDom.innerText===((t=this._params.startButtonText)!=null?t:"\u5F00\u59CB")?(this.measureController.hook.emit("willChangeState","watching","editing"),this.change2Done()):(this.measureController.hook.emit("willChangeState","editing","watching"),this.change2Add())});var o,s;this._params=n,this._btnTexts={start:(o=this._params.startButtonText)!=null?o:this._btnTexts.start,end:(s=this._params.endButtonText)!=null?s:this._btnTexts.end},this.measureController=t,this.container=e,this.mainElement=this.getMainElement(),this.mainElement.mainIcon.setAttribute("style","-webkit-tap-highlight-color: rgba(0,0,0,0);"),Object.assign(this.mainElement.mainIcon.style,gl),Object.assign(this.mainElement.mainItem.style,pl),this.change2Add(),this.mainElement.mainItem.addEventListener("click",this.onClick)}dispose(){this.mainElement.mainItem.removeEventListener("click",this.onClick)}getMainElement(){const t=this.container.querySelector(".fpm__main-text"),e=this.container.querySelector(".fpm__main"),n=this.container.querySelector(".fpm__main-icon");if(!e||!t||!n)throw new Error("cannot find dom");return{mainTextDom:t,mainItem:e,mainIcon:n}}change2Add(){const{mainIcon:t,mainTextDom:e}=this.mainElement;if(t.className.includes("fpm__main__start")){e.innerText=this._btnTexts.start;return}t.className.includes("fpm__main__end")&&(t.style.transform="scale(0.8)",e.className.includes("fpm__main-text__show")?e.classList.replace("fpm__main-text__show","fpm__main-text__hide"):e.classList.add("fpm__main-text__hide"),setTimeout(()=>{t.classList.replace("fpm__main__end","fpm__main__start"),t.style.transform="scale(1)",e.innerText=this._btnTexts.start,e.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200))}change2Done(){const{mainTextDom:t,mainIcon:e}=this.mainElement;t.innerText!==this._btnTexts.end&&(e.className.includes("fpm__main__end")||e.className.includes("fpm__main__start")&&(e.style.transform="scale(0.8)",t.className.includes("fpm__main-text__show")?t.classList.replace("fpm__main-text__show","fpm__main-text__hide"):t.classList.add("fpm__main-text__hide"),setTimeout(()=>{e.classList.replace("fpm__main__start","fpm__main__end"),e.style.transform="scale(1)",t.innerText=this._btnTexts.end,t.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200)))}}class Pm{constructor(t,e){f(this,"container");f(this,"revokeIcon");f(this,"revokeItem");f(this,"measureController");f(this,"onClick",()=>{this.measureController.revoke()});f(this,"onModeChange",t=>{if(t!=="Edit"&&this.revokeItem.className.includes("enabled")){this.revokeItem.classList.remove("enabled"),this.measureController.hook.off("anchorChange",this.onAnchorChange);return}this.measureController.hook.on("anchorChange",this.onAnchorChange)});f(this,"onAnchorChange",t=>{t&&this.revokeItem.classList.add("enabled")});this.measureController=t,this.container=e;const n=this.container.querySelector(".fpm__revoke-icon"),o=this.container.querySelector(".fpm__revoke");if(!n||!o)throw new Error("\u4E0D\u6B63\u786E\u7684\u9009\u62E9\u5668");this.revokeIcon=n,this.revokeItem=o,this.revokeItem.addEventListener("click",this.onClick),t.hook.on("modeChange",this.onModeChange)}dispose(){this.revokeItem.removeEventListener("click",this.onClick),this.measureController.hook.off("modeChange",this.onModeChange)}}class zs{constructor(t,e){f(this,"revoke");f(this,"container");f(this,"mainController");f(this,"disposers",[]);f(this,"measureController");f(this,"mode");f(this,"_params");f(this,"handleExit",()=>{const t=this.container.querySelector(".fpm__exit-icon"),e=this.container.querySelector(".fpm__exit");if(!e||!t)throw new Error("cannot find dom");this.mode==="pc"&&(Object.assign(e.style,bm),Object.assign(t==null?void 0:t.style,ym));const n=()=>{e.style.opacity="1"},o=()=>{e.style.opacity="0.85"},s=()=>{this.measureController.disable()};return e.addEventListener("click",s),e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",o),()=>{e.removeEventListener("click",s),e.removeEventListener("mouseenter",n),e.removeEventListener("mouseleave",o)}});var r;this._params=e,this.measureController=t,this.mode=(r=e.mode)!=null?r:"pc",this.container=document.createElement("div"),this.container.innerHTML=this.mode==="mobile"?hm:pm,this.container.classList.add("fpm__ui-controller",this.mode),this.container.style.background="rgba(0, 0, 0, 0.15)",e.container.appendChild(this.container);const n=this.container.querySelectorAll(".fpm__text"),o=this.container.querySelector(".fpm_ui-bg"),s=this.container.querySelector(".fpm_operating-space");Object.assign(o==null?void 0:o.style,vm),Object.assign(s==null?void 0:s.style,Am),Object.assign(this.container.style,gm),n.forEach(a=>Object.assign(a.style,wm))}dispose(){this.hide(),this.container.remove()}show(){return this.container.style.display="block",this.container.style.opacity="1",this.container.style.transform="translate(0, 0)",this.mode==="pc"?(this.revoke=new Pm(this.measureController,this.container),this.mainController=new Cm(this.measureController,this.container,this._params)):this.mainController=new Em(this.measureController,this.container,this._params),this.disposers.push(this.handleExit()),this}hide(){var t,e;return this.container.style.display="none",this.container.style.opacity="0",this.container.style.transform="translate(0, 10px)",this.mode==="pc"&&((t=this.revoke)==null||t.dispose()),(e=this.mainController)==null||e.dispose(),this.disposers.forEach(n=>n()),this.disposers=[],this}}class Im{constructor(t,e){f(this,"measureController");f(this,"textDom",document.createElement("span"));f(this,"container",document.createElement("div"));f(this,"hasAnchor",!1);f(this,"hasChangedToWatch",!1);f(this,"_params");f(this,"onModelChange",t=>{var e;if(t==="View"){this.hide();return}if(t==="Watch"){this.hasChangedToWatch?(this.textDom.innerText="",this.hide()):(this.show(),this.hasChangedToWatch=!0);return}t==="Edit"&&(this.textDom.innerText=(e=this._params.firstPointTip)!=null?e:"\u8BF7\u9009\u62E9\u7B2C\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53EF\u53D6\u6D88\u9009\u62E9",this.show())});f(this,"anchorChange",t=>{var e,n;!this.hasAnchor&&!!t?(this.hasAnchor=!0,this.textDom.innerText=(e=this._params.nextPointTip)!=null?e:"\u9009\u62E9\u4E0B\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53D6\u6D88\u9009\u62E9"):t||(this.hasAnchor=!1,this.textDom.innerText=(n=this._params.firstPointTip)!=null?n:"\u8BF7\u9009\u62E9\u7B2C\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53EF\u53D6\u6D88\u9009\u62E9")});f(this,"onEditedLineChange",t=>{var e;t.lines.length===1&&(this.textDom.innerText=(e=this._params.endTip)!=null?e:"\u53EF\u4EE5\u8FDE\u7EED\u9009\u62E9\u6D4B\u91CF\u70B9\uFF0C\u6216\u70B9\u51FB\u4E0B\u65B9\u201C\u7ED3\u675F\u201D\u6309\u94AE\u5B8C\u6210\u6D4B\u91CF\uFF08Esc\u53D6\u6D88\uFF0CCommand+S\u4FDD\u5B58\uFF09")});this._params=e,this.initDom(),e.container.append(this.container),this.measureController=t,t.hook.on("modeChange",this.onModelChange),t.hook.on("anchorChange",this.anchorChange),t.hook.on("editedPolylineChange",this.onEditedLineChange)}dispose(){this.hide(),this.container.remove()}show(){return this.container.style.opacity="1",this.container.style.transform="translate(0, 0)",this}hide(){return this.container.style.opacity="0",this.container.style.transform="translate(0, -10px)",this.measureController.hook.off("modeChange",this.onModelChange),this.measureController.hook.off("anchorChange",this.anchorChange),this.measureController.hook.off("editedPolylineChange",this.onEditedLineChange),this}initDom(){var n;const t=this.container,e=this.textDom;t.classList.add("fpm__guide-container"),t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.width="100%",t.style.height="110px",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.transform="translate(0, -10px)",t.style.background="linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.00) 100%)",t.style.transition="opacity 500ms ease-in-out, transform 500ms ease-in-out",t.style.opacity="0",e.classList.add("fpm__guide-text"),e.style.color="#fff",e.style.fontSize="20px",e.innerText=(n=this._params.startTip)!=null?n:"\u70B9\u51FB\u4E0B\u65B9\u201C\u5F00\u59CB\u201D\u6309\u94AE\u5F00\u59CB\u6D4B\u8DDD",t.appendChild(e)}}class km{constructor(t,e){f(this,"five");f(this,"measureController");f(this,"onKeyDown",t=>{if(t.metaKey&&t.code==="KeyS"){this.measureController.save().changeMode("Watch"),t.preventDefault();return}if(t.code==="Escape")return this.escape()});f(this,"onMouseDown",t=>{t.button===2&&(t.preventDefault(),this.escape())});this.five=e,this.measureController=t;const n=this.five.getElement();!n||(document.body.addEventListener("keydown",this.onKeyDown),n.addEventListener("mousedown",this.onMouseDown))}dispose(){const t=this.five.getElement();!t||(document.body.removeEventListener("keydown",this.onKeyDown),t.removeEventListener("mousedown",this.onMouseDown))}escape(){return this.measureController.getCurrentMode()==="Watch"?this.measureController.disable():this.measureController.changeMode("Watch")}}class xm{constructor(t,e){f(this,"hasOpen",!1);f(this,"hook",new Ce.Subscribe);f(this,"magnifier");f(this,"five");f(this,"model");f(this,"group");f(this,"config");f(this,"isMobile");f(this,"fiveHelper");f(this,"useUIController");f(this,"params");f(this,"useGuideController");f(this,"container",document.createElement("div"));f(this,"shortcutKeyController");f(this,"controller",null);f(this,"getCurrentMode",()=>this.controller instanceof _n?"Edit":this.controller instanceof Ts?"Watch":this.controller instanceof un?"Mixed":this.controller instanceof Ss?"View":null);f(this,"changeMode",t=>{var o;if(!this.hasOpen||this.getCurrentMode()===t)return;(o=this.controller)==null||o.dispose();const e={View:Ss,Watch:Ts,Edit:_n,Mixed:un};if(!e[t])throw new Error("\u4E0D\u5B58\u5728\u7684 Mode");const n=this.createControllerParams();this.controller=new e[t](n),this.hook.emit("modeChange",t)});var o,s,r,a;this.five=t,this.params=e,this.config=vi(e,["openParams","magnifierParams"]),this.model=new wi(this.config),this.fiveHelper=new Bf(t),this.isMobile=(s=(o=e==null?void 0:e.openParams)==null?void 0:o.isMobile)!=null?s:!1,this.magnifier=new rl(t,(r=e.magnifierParams)!=null?r:{width:190,height:190,scale:2}),this.group=new V.Group,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";const n=(a=this.params.openParams)!=null?a:{};if(this.params.useUIController!==!1){const l=Q({container:this.container,openParams:n},typeof this.params.useUIController=="object"?this.params.useUIController:{});this.useUIController=new zs(this,l)}if(this.params.useGuideController!==!1){const l=Q({container:this.container},typeof this.params.useGuideController=="object"?this.params.useGuideController:{});this.useGuideController=new Im(this,l)}}appendTo(t){t.append(this.container)}dispose(){var t,e;this.disable(),(t=this.useUIController)==null||t.dispose(),(e=this.magnifier)==null||e.dispose(),this.five.needsRender=!0}load(t){this.model.parse(t),this.save()}enable(t){var e;this.hasOpen||(this.hasOpen=!0,this.five.scene.add(this.group),this.container.style.opacity="1",t!=null&&t.mode?this.changeMode(t.mode):this.isMobile?this.changeMode("Mixed"):this.changeMode("Watch"),(e=this.useUIController)==null||e.show(),this.shortcutKeyController=new km(this,this.five),this.hook.emit("enable",!0))}disable(){var t,e,n,o;this.hasOpen=!1,this.container.style.opacity="0",(t=this.controller)==null||t.dispose(),(e=this.useUIController)==null||e.hide(),(n=this.useGuideController)==null||n.hide(),(o=this.shortcutKeyController)==null||o.dispose(),this.controller=null,this.five.helperVisible=!0,this.five.scene.remove(this.group),this.five.needsRender=!0,this.hook.emit("disable",!0)}edit(){const t=this.isMobile?"Mixed":"Edit";this.changeMode(t)}revoke(){this.controller instanceof _n&&this.controller.revoke()}removePolyline(t){this.model.removePolyline(t)}removePolylineByID(t){const e=this.model.getPolylineByID(t);e&&this.model.removePolyline(e)}getPolylineByID(t){return this.model.getPolylineByID(t)}getEditedPolyline(){}highlightLine(t){if(this.getCurrentMode()!=="Watch")return!1;const e=this.model.getLineByID(t);return e?(this.controller.highlightLine(e),!0):!1}clearHighlightLines(){return this.getCurrentMode()!=="Watch"?!1:(this.controller.clearHighlightLines(),!0)}save(t){var o;if(!(this.controller instanceof _n)&&!(this.controller instanceof un))return this;const e=(o=t==null?void 0:t.mode)!=null?o:"View",n=this.controller.polyline;return this.model.addPolyline(n),this.changeMode(e),this}addStartPoint(){this.controller instanceof un&&this.hook.emit("willChangeState","watching","editing")}addEndPoint(){this.controller instanceof un&&this.hook.emit("willChangeState","editing","watching")}toJson(){return this.model.toJson()}changeIsMobile(t){var e;if(this.isMobile=t,this.params.useUIController!==!1){(e=this.useUIController)==null||e.dispose();const n=Q({container:this.container,mode:this.isMobile?"mobile":"pc"},typeof this.params.useUIController=="object"?this.params.useUIController:{});this.useUIController=new zs(this,n)}}changeConfigs(t){var e;Object.assign(this.config,t),(e=this.controller)==null||e.updateDistanceUI()}setCustomText(t,e){var o;const n=this.model.getLineByID(t);if(!n)throw new Error("\u4E0D\u5B58\u5728\u7684\u7EBF\u6BB5");n.setText(e),(o=this.controller)==null||o.updateDistanceUI()}createControllerParams(){var e;const t=(e=this.params.openParams)!=null?e:{};return t.isMobile=this.isMobile,{five:this.five,hook:this.hook,group:this.group,model:this.model,config:this.config,magnifier:this.magnifier,container:this.container,fiveHelper:this.fiveHelper,openParams:t,mouseGroup:hl(Q({},t.crossHairParameter)),userDistanceItemCreator:this.params.userDistanceItemCreator}}}const Dm=function(t,e){return new xm(t,e)},Al=mo(null);function Lm(i){le(i,"svelte-19zi46m",".PanoSpatialTagPlugin__tag-origin.svelte-19zi46m{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-19zi46m:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-19zi46m{transform:translate(-50%, -50%) scale(0.6);animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}")}function Bs(i,t,e){const n=i.slice();return n[3]=t[e],n}function js(i){let t,e=`${i[3].top}%`,n=`${i[3].left}%`,o,s;function r(){return i[2](i[3])}return{c(){t=z("i"),y(t,"class","svelte-19zi46m"),q(t,"PanoSpatialTagPlugin__tag-origin",!0),q(t,"PanoSpatialTagPlugin__tag-origin-destroy",i[3].destroying),T(t,"top",e),T(t,"left",n),T(t,"visibility",i[3].front?"visible":"hidden")},m(a,l){M(a,t,l),o||(s=ge(t,"click",r),o=!0)},p(a,l){i=a,l&1&&q(t,"PanoSpatialTagPlugin__tag-origin-destroy",i[3].destroying),l&1&&e!==(e=`${i[3].top}%`)&&T(t,"top",e),l&1&&n!==(n=`${i[3].left}%`)&&T(t,"left",n),l&1&&T(t,"visibility",i[3].front?"visible":"hidden")},d(a){a&&S(t),o=!1,s()}}}function Sm(i){let t,e=i[0],n=[];for(let o=0;o<e.length;o+=1)n[o]=js(Bs(i,e,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();t=me()},m(o,s){for(let r=0;r<n.length;r+=1)n[r].m(o,s);M(o,t,s)},p(o,[s]){if(s&3){e=o[0];let r;for(r=0;r<e.length;r+=1){const a=Bs(o,e,r);n[r]?n[r].p(a,s):(n[r]=js(a),n[r].c(),n[r].m(t.parentNode,t))}for(;r<n.length;r+=1)n[r].d(1);n.length=e.length}},i:U,o:U,d(o){ct(n,o),o&&S(t)}}}function Mm(i,t,e){let{origins:n}=t;const o=r=>{Al.update(()=>`${r}-PanoSpatialTagPlugin-${Date.now()}`)},s=r=>o(r.id);return i.$$set=r=>{"origins"in r&&e(0,n=r.origins)},[n,o,s]}class Tm extends oe{constructor(t){super(),ie(this,t,Mm,Sm,ne,{origins:0},Lm)}}function zm(i){le(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)}}")}function Bm(i){let t,e,n,o,s,r,a,l,c,u,d,h,m,A,v;return{c(){t=z("div"),e=z("div"),n=ee(),o=z("div"),s=z("i"),r=ee(),a=z("i"),l=ee(),c=z("i"),u=ee(),d=z("div"),h=z("div"),y(e,"class","PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"),T(e,"transform","translate("+i[7]/2*i[3]*3+"px, "+i[8]/2*(i[1]?-1:1)*i[3]*3+"px) scale("+1/i[3]+")"),y(s,"class","PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"),T(s,"width",i[4]+"rem"),y(a,"class","PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"),y(c,"class","PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"),y(o,"class","PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"),y(h,"class","PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"),y(d,"class","PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"),T(d,"transform","scale("+i[3]*3+")"),y(t,"id",m="PanoSpatialTagPlugin__"+i[0]),T(t,"height",20*i[5]+"rem"),y(t,"class","svelte-1i5h9zh"),q(t,"PanoSpatialTagPlugin__tag-x",!0),q(t,"PanoSpatialTagPlugin__tag-upside-down",i[1]),q(t,"PanoSpatialTagPlugin__tag-show",i[10]),q(t,"PanoSpatialTagPlugin__tag-hide",i[10]===!1||i[6])},m(p,g){M(p,t,g),j(t,e),j(t,n),j(t,o),j(o,s),j(o,r),j(o,a),j(o,l),j(o,c),j(t,u),j(t,d),j(d,h),h.innerHTML=i[2],i[16](h),A||(v=ge(h,"click",i[11]),A=!0)},p(p,[g]){g&394&&T(e,"transform","translate("+p[7]/2*p[3]*3+"px, "+p[8]/2*(p[1]?-1:1)*p[3]*3+"px) scale("+1/p[3]+")"),g&16&&T(s,"width",p[4]+"rem"),g&4&&(h.innerHTML=p[2]),g&8&&T(d,"transform","scale("+p[3]*3+")"),g&1&&m!==(m="PanoSpatialTagPlugin__"+p[0])&&y(t,"id",m),g&32&&T(t,"height",20*p[5]+"rem"),g&2&&q(t,"PanoSpatialTagPlugin__tag-upside-down",p[1]),g&1024&&q(t,"PanoSpatialTagPlugin__tag-show",p[10]),g&1088&&q(t,"PanoSpatialTagPlugin__tag-hide",p[10]===!1||p[6])},i:U,o:U,d(p){p&&S(t),i[16](null),A=!1,v()}}}function jm(i,t,e){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:d}=t,{events:h}=t,{hooks:m}=t,A=0,v=0,p,g,b=setTimeout(()=>{u||e(10,g=!0),b=void 0},100);const w=C=>{const D=Object.keys(h);let E=C.target;for(;E;){const O=E.getAttribute("class");if(!O){E=E.parentNode;continue}if(O.includes("PanoSpatialTagPlugin__tag-content")){E=null;break}D.forEach(G=>{O.includes(G)&&h[G](n)}),E=E.parentNode}};Ue(()=>{m.emit("initTag",{id:n})});const x=Al.subscribe(C=>{if(C===null)return;const[D,E]=C.split("-PanoSpatialTagPlugin-");n===D&&(m.emit("clickOrigin",{id:n,show:g}),b||(e(10,g=u),e(12,u=!u),b=setTimeout(()=>{b=void 0},1500)))});Ba(()=>{e(7,A=p.offsetWidth),e(8,v=p.offsetHeight),!b&&e(10,g=!u)}),Et(()=>{m.emit("destroyTag",{id:n}),x(),d()});function k(C){Ve[C?"unshift":"push"](()=>{p=C,e(9,p)})}return i.$$set=C=>{"id"in C&&e(0,n=C.id),"upsideDown"in C&&e(1,o=C.upsideDown),"content"in C&&e(2,s=C.content),"contentZoom"in C&&e(3,r=C.contentZoom),"lineWidthZoom"in C&&e(4,a=C.lineWidthZoom),"lineHeightZoom"in C&&e(5,l=C.lineHeightZoom),"destroying"in C&&e(6,c=C.destroying),"folded"in C&&e(12,u=C.folded),"dispose"in C&&e(13,d=C.dispose),"events"in C&&e(14,h=C.events),"hooks"in C&&e(15,m=C.hooks)},[n,o,s,r,a,l,c,A,v,p,g,w,u,d,h,m,k]}class Vm extends oe{constructor(t){super(),ie(this,t,jm,Bm,ne,{id:0,upsideDown:1,content:2,contentZoom:3,lineWidthZoom:4,lineHeightZoom:5,destroying:6,folded:12,dispose:13,events:14,hooks:15},zm)}}const Om={position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",pointerEvents:"none"},Vs="<",Os=">",Rs="%",Qs="locals",Rm="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Qm={"&":"&amp","<":"&lt",">":"&gt",'"':"&#34","'":"&#39"},Qe={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};function Fs(i){return i.replace(/;(\s*$)/,"$1")}function Fm(i,t){return new Hm(i).compileFunction()(t)}class Hm{constructor(t){f(this,"templateText");f(this,"mode",null);f(this,"truncate",!1);f(this,"currentLine",1);f(this,"source","");f(this,"regex",new RegExp(Rm));this.templateText=t}compileFunction(){let t;const e=` var __output = "";
497
+ `,pm={display:"none",position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:"0",transform:"translate(0, 10px)",transition:"opacity 500ms ease-in-out, transform 500ms ease-in-out"},gm={position:"absolute",left:"50%",bottom:"32px",transform:"translateX(-50%)",height:"89px",display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"14px",pointerEvents:"all",color:"#fff",zIndex:"10"},Am={position:"absolute",bottom:"0",left:"0",opacity:"0.5",width:"100%",height:"184px",background:"linear-gradient(180deg, rgba(0,0,0,0.00) 0%, #000000 100%)",zIndex:"0"},pl={margin:"0 64px"},vm={opacity:"0.85"},gl={width:"72px",height:"72px",backgroundSize:"100%",cursor:"pointer",transition:"all 200ms ease-in-out"},bm={width:"24px",height:"24px",marginRight:"4px",backgroundSize:"100%",cursor:"pointer"},ym={userSelect:"none",pointerEvents:"none"};class wm{constructor(t,e,n){f(this,"container");f(this,"measureController");f(this,"mainElement");f(this,"_params");f(this,"_btnTexts",{start:"\u5F00\u59CB",end:"\u7ED3\u675F",revoke:"\u64A4\u9500",exit:"\u9000\u51FA"});f(this,"onMouseEnter",()=>{const{mainItem:t}=this.mainElement;t.style.opacity="1"});f(this,"onMouseLeave",()=>{const{mainItem:t}=this.mainElement;t.style.opacity="0.85"});f(this,"onClick",()=>{this.measureController.getCurrentMode()!=="Edit"?this.measureController.changeMode("Edit"):this.measureController.save().changeMode("Watch")});f(this,"modeChangeHandler",t=>{t==="Edit"?this.change2Done():this.change2Add()});var r,a,l,c;this._params=n,this._btnTexts={start:(r=this._params.startButtonText)!=null?r:this._btnTexts.start,end:(a=this._params.endButtonText)!=null?a:this._btnTexts.end,revoke:(l=this._params.revokeButtonText)!=null?l:this._btnTexts.revoke,exit:(c=this._params.exitButtonText)!=null?c:this._btnTexts.exit},this.measureController=t,this.container=e,this.mainElement=this.getMainElement(),Object.assign(this.mainElement.mainIcon.style,gl),Object.assign(this.mainElement.mainItem.style,pl);const{revokeTextDom:o,exitTextDom:s}=this._getTextElement();o&&(o.innerText=this._btnTexts.revoke),s&&(s.innerText=this._btnTexts.exit),this.change2Add(),this.measureController.hook.on("modeChange",this.modeChangeHandler),this.mainElement.mainItem.addEventListener("click",this.onClick),this.mainElement.mainItem.addEventListener("mouseenter",this.onMouseEnter),this.mainElement.mainItem.addEventListener("mouseleave",this.onMouseLeave)}dispose(){this.measureController.hook.off("modeChange",this.modeChangeHandler),this.mainElement.mainItem.removeEventListener("click",this.onClick),this.mainElement.mainItem.removeEventListener("mouseenter",this.onMouseEnter),this.mainElement.mainItem.removeEventListener("mouseleave",this.onMouseLeave)}getMainElement(){const t=this.container.querySelector(".fpm__main-text"),e=this.container.querySelector(".fpm__main"),n=this.container.querySelector(".fpm__main-icon");if(!e||!t||!n)throw new Error("cannot find dom");return{mainTextDom:t,mainItem:e,mainIcon:n}}_getTextElement(){const t=this.container.querySelector(".fpm__revoke-text"),e=this.container.querySelector(".fpm__exit-text");return{revokeTextDom:t,exitTextDom:e}}change2Add(){const{mainIcon:t,mainTextDom:e}=this.mainElement;if(t.className.includes("fpm__main__start")){e.innerText=this._btnTexts.start;return}t.className.includes("fpm__main__end")&&(t.style.transform="scale(0.8)",e.className.includes("fpm__main-text__show")?e.classList.replace("fpm__main-text__show","fpm__main-text__hide"):e.classList.add("fpm__main-text__hide"),setTimeout(()=>{t.classList.replace("fpm__main__end","fpm__main__start"),t.style.transform="scale(1)",e.innerText=this._btnTexts.start,e.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200))}change2Done(){const{mainTextDom:t,mainIcon:e}=this.getMainElement();t.innerText!==this._btnTexts.end&&(e.className.includes("fpm__main__end")||e.className.includes("fpm__main__start")&&(e.style.transform="scale(0.8)",t.className.includes("fpm__main-text__show")?t.classList.replace("fpm__main-text__show","fpm__main-text__hide"):t.classList.add("fpm__main-text__hide"),setTimeout(()=>{e.classList.replace("fpm__main__start","fpm__main__end"),e.style.transform="scale(1)",t.innerText=this._btnTexts.end,t.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200)))}}class Cm{constructor(t,e,n){f(this,"container");f(this,"measureController");f(this,"mainElement");f(this,"_params");f(this,"_btnTexts",{start:"\u5F00\u59CB",end:"\u7ED3\u675F"});f(this,"onClick",()=>{var t;this.mainElement.mainTextDom.innerText===((t=this._params.startButtonText)!=null?t:"\u5F00\u59CB")?(this.measureController.hook.emit("willChangeState","watching","editing"),this.change2Done()):(this.measureController.hook.emit("willChangeState","editing","watching"),this.change2Add())});var o,s;this._params=n,this._btnTexts={start:(o=this._params.startButtonText)!=null?o:this._btnTexts.start,end:(s=this._params.endButtonText)!=null?s:this._btnTexts.end},this.measureController=t,this.container=e,this.mainElement=this.getMainElement(),this.mainElement.mainIcon.setAttribute("style","-webkit-tap-highlight-color: rgba(0,0,0,0);"),Object.assign(this.mainElement.mainIcon.style,gl),Object.assign(this.mainElement.mainItem.style,pl),this.change2Add(),this.mainElement.mainItem.addEventListener("click",this.onClick)}dispose(){this.mainElement.mainItem.removeEventListener("click",this.onClick)}getMainElement(){const t=this.container.querySelector(".fpm__main-text"),e=this.container.querySelector(".fpm__main"),n=this.container.querySelector(".fpm__main-icon");if(!e||!t||!n)throw new Error("cannot find dom");return{mainTextDom:t,mainItem:e,mainIcon:n}}change2Add(){const{mainIcon:t,mainTextDom:e}=this.mainElement;if(t.className.includes("fpm__main__start")){e.innerText=this._btnTexts.start;return}t.className.includes("fpm__main__end")&&(t.style.transform="scale(0.8)",e.className.includes("fpm__main-text__show")?e.classList.replace("fpm__main-text__show","fpm__main-text__hide"):e.classList.add("fpm__main-text__hide"),setTimeout(()=>{t.classList.replace("fpm__main__end","fpm__main__start"),t.style.transform="scale(1)",e.innerText=this._btnTexts.start,e.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200))}change2Done(){const{mainTextDom:t,mainIcon:e}=this.mainElement;t.innerText!==this._btnTexts.end&&(e.className.includes("fpm__main__end")||e.className.includes("fpm__main__start")&&(e.style.transform="scale(0.8)",t.className.includes("fpm__main-text__show")?t.classList.replace("fpm__main-text__show","fpm__main-text__hide"):t.classList.add("fpm__main-text__hide"),setTimeout(()=>{e.classList.replace("fpm__main__start","fpm__main__end"),e.style.transform="scale(1)",t.innerText=this._btnTexts.end,t.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200)))}}class Em{constructor(t,e){f(this,"container");f(this,"revokeIcon");f(this,"revokeItem");f(this,"measureController");f(this,"onClick",()=>{this.measureController.revoke()});f(this,"onModeChange",t=>{if(t!=="Edit"&&this.revokeItem.className.includes("enabled")){this.revokeItem.classList.remove("enabled"),this.measureController.hook.off("anchorChange",this.onAnchorChange);return}this.measureController.hook.on("anchorChange",this.onAnchorChange)});f(this,"onAnchorChange",t=>{t&&this.revokeItem.classList.add("enabled")});this.measureController=t,this.container=e;const n=this.container.querySelector(".fpm__revoke-icon"),o=this.container.querySelector(".fpm__revoke");if(!n||!o)throw new Error("\u4E0D\u6B63\u786E\u7684\u9009\u62E9\u5668");this.revokeIcon=n,this.revokeItem=o,this.revokeItem.addEventListener("click",this.onClick),t.hook.on("modeChange",this.onModeChange)}dispose(){this.revokeItem.removeEventListener("click",this.onClick),this.measureController.hook.off("modeChange",this.onModeChange)}}class zs{constructor(t,e){f(this,"revoke");f(this,"container");f(this,"mainController");f(this,"disposers",[]);f(this,"measureController");f(this,"mode");f(this,"_params");f(this,"handleExit",()=>{const t=this.container.querySelector(".fpm__exit-icon"),e=this.container.querySelector(".fpm__exit");if(!e||!t)throw new Error("cannot find dom");this.mode==="pc"&&(Object.assign(e.style,vm),Object.assign(t==null?void 0:t.style,bm));const n=()=>{e.style.opacity="1"},o=()=>{e.style.opacity="0.85"},s=()=>{this.measureController.disable()};return e.addEventListener("click",s),e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",o),()=>{e.removeEventListener("click",s),e.removeEventListener("mouseenter",n),e.removeEventListener("mouseleave",o)}});var r;this._params=e,this.measureController=t,this.mode=(r=e.mode)!=null?r:"pc",this.container=document.createElement("div"),this.container.innerHTML=this.mode==="mobile"?dm:mm,this.container.classList.add("fpm__ui-controller",this.mode),this.container.style.background="rgba(0, 0, 0, 0.15)",e.container.appendChild(this.container);const n=this.container.querySelectorAll(".fpm__text"),o=this.container.querySelector(".fpm_ui-bg"),s=this.container.querySelector(".fpm_operating-space");Object.assign(o==null?void 0:o.style,Am),Object.assign(s==null?void 0:s.style,gm),Object.assign(this.container.style,pm),n.forEach(a=>Object.assign(a.style,ym))}dispose(){this.hide(),this.container.remove()}show(){return this.container.style.display="block",this.container.style.opacity="1",this.container.style.transform="translate(0, 0)",this.mode==="pc"?(this.revoke=new Em(this.measureController,this.container),this.mainController=new wm(this.measureController,this.container,this._params)):this.mainController=new Cm(this.measureController,this.container,this._params),this.disposers.push(this.handleExit()),this}hide(){var t,e;return this.container.style.display="none",this.container.style.opacity="0",this.container.style.transform="translate(0, 10px)",this.mode==="pc"&&((t=this.revoke)==null||t.dispose()),(e=this.mainController)==null||e.dispose(),this.disposers.forEach(n=>n()),this.disposers=[],this}}class Pm{constructor(t,e){f(this,"measureController");f(this,"textDom",document.createElement("span"));f(this,"container",document.createElement("div"));f(this,"hasAnchor",!1);f(this,"hasChangedToWatch",!1);f(this,"_params");f(this,"onModelChange",t=>{var e;if(t==="View"){this.hide();return}if(t==="Watch"){this.hasChangedToWatch?(this.textDom.innerText="",this.hide()):(this.show(),this.hasChangedToWatch=!0);return}t==="Edit"&&(this.textDom.innerText=(e=this._params.firstPointTip)!=null?e:"\u8BF7\u9009\u62E9\u7B2C\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53EF\u53D6\u6D88\u9009\u62E9",this.show())});f(this,"anchorChange",t=>{var e,n;!this.hasAnchor&&!!t?(this.hasAnchor=!0,this.textDom.innerText=(e=this._params.nextPointTip)!=null?e:"\u9009\u62E9\u4E0B\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53D6\u6D88\u9009\u62E9"):t||(this.hasAnchor=!1,this.textDom.innerText=(n=this._params.firstPointTip)!=null?n:"\u8BF7\u9009\u62E9\u7B2C\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53EF\u53D6\u6D88\u9009\u62E9")});f(this,"onEditedLineChange",t=>{var e;t.lines.length===1&&(this.textDom.innerText=(e=this._params.endTip)!=null?e:"\u53EF\u4EE5\u8FDE\u7EED\u9009\u62E9\u6D4B\u91CF\u70B9\uFF0C\u6216\u70B9\u51FB\u4E0B\u65B9\u201C\u7ED3\u675F\u201D\u6309\u94AE\u5B8C\u6210\u6D4B\u91CF\uFF08Esc\u53D6\u6D88\uFF0CCommand+S\u4FDD\u5B58\uFF09")});this._params=e,this.initDom(),e.container.append(this.container),this.measureController=t,t.hook.on("modeChange",this.onModelChange),t.hook.on("anchorChange",this.anchorChange),t.hook.on("editedPolylineChange",this.onEditedLineChange)}dispose(){this.hide(),this.container.remove()}show(){return this.container.style.opacity="1",this.container.style.transform="translate(0, 0)",this}hide(){return this.container.style.opacity="0",this.container.style.transform="translate(0, -10px)",this.measureController.hook.off("modeChange",this.onModelChange),this.measureController.hook.off("anchorChange",this.anchorChange),this.measureController.hook.off("editedPolylineChange",this.onEditedLineChange),this}initDom(){var n;const t=this.container,e=this.textDom;t.classList.add("fpm__guide-container"),t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.width="100%",t.style.height="110px",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.transform="translate(0, -10px)",t.style.background="linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.00) 100%)",t.style.transition="opacity 500ms ease-in-out, transform 500ms ease-in-out",t.style.opacity="0",e.classList.add("fpm__guide-text"),e.style.color="#fff",e.style.fontSize="20px",e.innerText=(n=this._params.startTip)!=null?n:"\u70B9\u51FB\u4E0B\u65B9\u201C\u5F00\u59CB\u201D\u6309\u94AE\u5F00\u59CB\u6D4B\u8DDD",t.appendChild(e)}}class Im{constructor(t,e){f(this,"five");f(this,"measureController");f(this,"onKeyDown",t=>{if(t.metaKey&&t.code==="KeyS"){this.measureController.save().changeMode("Watch"),t.preventDefault();return}if(t.code==="Escape")return this.escape()});f(this,"onMouseDown",t=>{t.button===2&&(t.preventDefault(),this.escape())});this.five=e,this.measureController=t;const n=this.five.getElement();!n||(document.body.addEventListener("keydown",this.onKeyDown),n.addEventListener("mousedown",this.onMouseDown))}dispose(){const t=this.five.getElement();!t||(document.body.removeEventListener("keydown",this.onKeyDown),t.removeEventListener("mousedown",this.onMouseDown))}escape(){return this.measureController.getCurrentMode()==="Watch"?this.measureController.disable():this.measureController.changeMode("Watch")}}class km{constructor(t,e){f(this,"hasOpen",!1);f(this,"hook",new Ce.Subscribe);f(this,"magnifier");f(this,"five");f(this,"model");f(this,"group");f(this,"config");f(this,"isMobile");f(this,"fiveHelper");f(this,"useUIController");f(this,"params");f(this,"useGuideController");f(this,"container",document.createElement("div"));f(this,"shortcutKeyController");f(this,"controller",null);f(this,"getCurrentMode",()=>this.controller instanceof _n?"Edit":this.controller instanceof Ts?"Watch":this.controller instanceof un?"Mixed":this.controller instanceof Ss?"View":null);f(this,"changeMode",t=>{var o;if(!this.hasOpen||this.getCurrentMode()===t)return;(o=this.controller)==null||o.dispose();const e={View:Ss,Watch:Ts,Edit:_n,Mixed:un};if(!e[t])throw new Error("\u4E0D\u5B58\u5728\u7684 Mode");const n=this.createControllerParams();this.controller=new e[t](n),this.hook.emit("modeChange",t)});var o,s,r,a;this.five=t,this.params=e,this.config=vi(e,["openParams","magnifierParams"]),this.model=new wi(this.config),this.fiveHelper=new zf(t),this.isMobile=(s=(o=e==null?void 0:e.openParams)==null?void 0:o.isMobile)!=null?s:!1,this.magnifier=new rl(t,(r=e.magnifierParams)!=null?r:{width:190,height:190,scale:2}),this.group=new V.Group,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";const n=(a=this.params.openParams)!=null?a:{};if(this.params.useUIController!==!1){const l=Q({container:this.container,openParams:n},typeof this.params.useUIController=="object"?this.params.useUIController:{});this.useUIController=new zs(this,l)}if(this.params.useGuideController!==!1){const l=Q({container:this.container},typeof this.params.useGuideController=="object"?this.params.useGuideController:{});this.useGuideController=new Pm(this,l)}}appendTo(t){t.append(this.container)}dispose(){var t,e;this.disable(),(t=this.useUIController)==null||t.dispose(),(e=this.magnifier)==null||e.dispose(),this.five.needsRender=!0}load(t){this.model.parse(t),this.save()}enable(t){var e;this.hasOpen||(this.hasOpen=!0,this.five.scene.add(this.group),this.container.style.opacity="1",t!=null&&t.mode?this.changeMode(t.mode):this.isMobile?this.changeMode("Mixed"):this.changeMode("Watch"),(e=this.useUIController)==null||e.show(),this.shortcutKeyController=new Im(this,this.five),this.hook.emit("enable",!0))}disable(){var t,e,n,o;this.hasOpen=!1,this.container.style.opacity="0",(t=this.controller)==null||t.dispose(),(e=this.useUIController)==null||e.hide(),(n=this.useGuideController)==null||n.hide(),(o=this.shortcutKeyController)==null||o.dispose(),this.controller=null,this.five.helperVisible=!0,this.five.scene.remove(this.group),this.five.needsRender=!0,this.hook.emit("disable",!0)}edit(){const t=this.isMobile?"Mixed":"Edit";this.changeMode(t)}revoke(){this.controller instanceof _n&&this.controller.revoke()}removePolyline(t){this.model.removePolyline(t)}removePolylineByID(t){const e=this.model.getPolylineByID(t);e&&this.model.removePolyline(e)}getPolylineByID(t){return this.model.getPolylineByID(t)}getEditedPolyline(){}highlightLine(t){if(this.getCurrentMode()!=="Watch")return!1;const e=this.model.getLineByID(t);return e?(this.controller.highlightLine(e),!0):!1}clearHighlightLines(){return this.getCurrentMode()!=="Watch"?!1:(this.controller.clearHighlightLines(),!0)}save(t){var o;if(!(this.controller instanceof _n)&&!(this.controller instanceof un))return this;const e=(o=t==null?void 0:t.mode)!=null?o:"View",n=this.controller.polyline;return this.model.addPolyline(n),this.changeMode(e),this}addStartPoint(){this.controller instanceof un&&this.hook.emit("willChangeState","watching","editing")}addEndPoint(){this.controller instanceof un&&this.hook.emit("willChangeState","editing","watching")}toJson(){return this.model.toJson()}changeIsMobile(t){var e;if(this.isMobile=t,this.params.useUIController!==!1){(e=this.useUIController)==null||e.dispose();const n=Q({container:this.container,mode:this.isMobile?"mobile":"pc"},typeof this.params.useUIController=="object"?this.params.useUIController:{});this.useUIController=new zs(this,n)}}changeConfigs(t){var e;Object.assign(this.config,t),(e=this.controller)==null||e.updateDistanceUI()}setCustomText(t,e){var o;const n=this.model.getLineByID(t);if(!n)throw new Error("\u4E0D\u5B58\u5728\u7684\u7EBF\u6BB5");n.setText(e),(o=this.controller)==null||o.updateDistanceUI()}createControllerParams(){var e;const t=(e=this.params.openParams)!=null?e:{};return t.isMobile=this.isMobile,{five:this.five,hook:this.hook,group:this.group,model:this.model,config:this.config,magnifier:this.magnifier,container:this.container,fiveHelper:this.fiveHelper,openParams:t,mouseGroup:hl(Q({},t.crossHairParameter)),userDistanceItemCreator:this.params.userDistanceItemCreator}}}const xm=function(t,e){return new km(t,e)},Al=mo(null);function Dm(i){le(i,"svelte-19zi46m",".PanoSpatialTagPlugin__tag-origin.svelte-19zi46m{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-19zi46m:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-19zi46m{transform:translate(-50%, -50%) scale(0.6);animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}")}function Bs(i,t,e){const n=i.slice();return n[3]=t[e],n}function js(i){let t,e=`${i[3].top}%`,n=`${i[3].left}%`,o,s;function r(){return i[2](i[3])}return{c(){t=z("i"),y(t,"class","svelte-19zi46m"),q(t,"PanoSpatialTagPlugin__tag-origin",!0),q(t,"PanoSpatialTagPlugin__tag-origin-destroy",i[3].destroying),T(t,"top",e),T(t,"left",n),T(t,"visibility",i[3].front?"visible":"hidden")},m(a,l){M(a,t,l),o||(s=ge(t,"click",r),o=!0)},p(a,l){i=a,l&1&&q(t,"PanoSpatialTagPlugin__tag-origin-destroy",i[3].destroying),l&1&&e!==(e=`${i[3].top}%`)&&T(t,"top",e),l&1&&n!==(n=`${i[3].left}%`)&&T(t,"left",n),l&1&&T(t,"visibility",i[3].front?"visible":"hidden")},d(a){a&&S(t),o=!1,s()}}}function Lm(i){let t,e=i[0],n=[];for(let o=0;o<e.length;o+=1)n[o]=js(Bs(i,e,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();t=me()},m(o,s){for(let r=0;r<n.length;r+=1)n[r].m(o,s);M(o,t,s)},p(o,[s]){if(s&3){e=o[0];let r;for(r=0;r<e.length;r+=1){const a=Bs(o,e,r);n[r]?n[r].p(a,s):(n[r]=js(a),n[r].c(),n[r].m(t.parentNode,t))}for(;r<n.length;r+=1)n[r].d(1);n.length=e.length}},i:U,o:U,d(o){ct(n,o),o&&S(t)}}}function Sm(i,t,e){let{origins:n}=t;const o=r=>{Al.update(()=>`${r}-PanoSpatialTagPlugin-${Date.now()}`)},s=r=>o(r.id);return i.$$set=r=>{"origins"in r&&e(0,n=r.origins)},[n,o,s]}class Mm extends oe{constructor(t){super(),ie(this,t,Sm,Lm,ne,{origins:0},Dm)}}function Tm(i){le(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)}}")}function zm(i){let t,e,n,o,s,r,a,l,c,u,d,h,m,A,v;return{c(){t=z("div"),e=z("div"),n=ee(),o=z("div"),s=z("i"),r=ee(),a=z("i"),l=ee(),c=z("i"),u=ee(),d=z("div"),h=z("div"),y(e,"class","PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"),T(e,"transform","translate("+i[7]/2*i[3]*3+"px, "+i[8]/2*(i[1]?-1:1)*i[3]*3+"px) scale("+1/i[3]+")"),y(s,"class","PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"),T(s,"width",i[4]+"rem"),y(a,"class","PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"),y(c,"class","PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"),y(o,"class","PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"),y(h,"class","PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"),y(d,"class","PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"),T(d,"transform","scale("+i[3]*3+")"),y(t,"id",m="PanoSpatialTagPlugin__"+i[0]),T(t,"height",20*i[5]+"rem"),y(t,"class","svelte-1i5h9zh"),q(t,"PanoSpatialTagPlugin__tag-x",!0),q(t,"PanoSpatialTagPlugin__tag-upside-down",i[1]),q(t,"PanoSpatialTagPlugin__tag-show",i[10]),q(t,"PanoSpatialTagPlugin__tag-hide",i[10]===!1||i[6])},m(p,g){M(p,t,g),j(t,e),j(t,n),j(t,o),j(o,s),j(o,r),j(o,a),j(o,l),j(o,c),j(t,u),j(t,d),j(d,h),h.innerHTML=i[2],i[16](h),A||(v=ge(h,"click",i[11]),A=!0)},p(p,[g]){g&394&&T(e,"transform","translate("+p[7]/2*p[3]*3+"px, "+p[8]/2*(p[1]?-1:1)*p[3]*3+"px) scale("+1/p[3]+")"),g&16&&T(s,"width",p[4]+"rem"),g&4&&(h.innerHTML=p[2]),g&8&&T(d,"transform","scale("+p[3]*3+")"),g&1&&m!==(m="PanoSpatialTagPlugin__"+p[0])&&y(t,"id",m),g&32&&T(t,"height",20*p[5]+"rem"),g&2&&q(t,"PanoSpatialTagPlugin__tag-upside-down",p[1]),g&1024&&q(t,"PanoSpatialTagPlugin__tag-show",p[10]),g&1088&&q(t,"PanoSpatialTagPlugin__tag-hide",p[10]===!1||p[6])},i:U,o:U,d(p){p&&S(t),i[16](null),A=!1,v()}}}function Bm(i,t,e){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:d}=t,{events:h}=t,{hooks:m}=t,A=0,v=0,p,g,b=setTimeout(()=>{u||e(10,g=!0),b=void 0},100);const w=C=>{const D=Object.keys(h);let E=C.target;for(;E;){const O=E.getAttribute("class");if(!O){E=E.parentNode;continue}if(O.includes("PanoSpatialTagPlugin__tag-content")){E=null;break}D.forEach(G=>{O.includes(G)&&h[G](n)}),E=E.parentNode}};Ue(()=>{m.emit("initTag",{id:n})});const P=Al.subscribe(C=>{if(C===null)return;const[D,E]=C.split("-PanoSpatialTagPlugin-");n===D&&(m.emit("clickOrigin",{id:n,show:g}),b||(e(10,g=u),e(12,u=!u),b=setTimeout(()=>{b=void 0},1500)))});Ba(()=>{e(7,A=p.offsetWidth),e(8,v=p.offsetHeight),!b&&e(10,g=!u)}),Et(()=>{m.emit("destroyTag",{id:n}),P(),d()});function x(C){Ve[C?"unshift":"push"](()=>{p=C,e(9,p)})}return i.$$set=C=>{"id"in C&&e(0,n=C.id),"upsideDown"in C&&e(1,o=C.upsideDown),"content"in C&&e(2,s=C.content),"contentZoom"in C&&e(3,r=C.contentZoom),"lineWidthZoom"in C&&e(4,a=C.lineWidthZoom),"lineHeightZoom"in C&&e(5,l=C.lineHeightZoom),"destroying"in C&&e(6,c=C.destroying),"folded"in C&&e(12,u=C.folded),"dispose"in C&&e(13,d=C.dispose),"events"in C&&e(14,h=C.events),"hooks"in C&&e(15,m=C.hooks)},[n,o,s,r,a,l,c,A,v,p,g,w,u,d,h,m,x]}class jm extends oe{constructor(t){super(),ie(this,t,Bm,zm,ne,{id:0,upsideDown:1,content:2,contentZoom:3,lineWidthZoom:4,lineHeightZoom:5,destroying:6,folded:12,dispose:13,events:14,hooks:15},Tm)}}const Vm={position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",pointerEvents:"none"},Vs="<",Os=">",Rs="%",Qs="locals",Om="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Rm={"&":"&amp","<":"&lt",">":"&gt",'"':"&#34","'":"&#39"},Qe={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};function Fs(i){return i.replace(/;(\s*$)/,"$1")}function Qm(i,t){return new Fm(i).compileFunction()(t)}class Fm{constructor(t){f(this,"templateText");f(this,"mode",null);f(this,"truncate",!1);f(this,"currentLine",1);f(this,"source","");f(this,"regex",new RegExp(Om));this.templateText=t}compileFunction(){let t;const e=` var __output = "";
498
498
  function __append(s) { if (s !== undefined && s !== null) __output += s }
499
499
  with (`+Qs+` || {}) {
500
500
  `,n=` }
501
501
  return __output;
502
- `,o=function(s){return s==null?"":String(s).replace(/[&<>'"]/g,function(r){return Qm[r]||r})};return this._generateSource(),this.source=e+this.source+n,t=this.source,t="escapeFn = escapeFn || "+o.toString()+`;
502
+ `,o=function(s){return s==null?"":String(s).replace(/[&<>'"]/g,function(r){return Rm[r]||r})};return this._generateSource(),this.source=e+this.source+n,t=this.source,t="escapeFn = escapeFn || "+o.toString()+`;
503
503
  `+t,new Function(Qs+", escapeFn",t)}_generateSource(){this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");const t=this._parseTemplateText(),e=Rs,n=Vs,o=Os;t&&t.length&&t.forEach((s,r)=>{let a;if(s.indexOf(n+e)===0&&s.indexOf(n+e+e)!==0&&(a=t[r+2],!(a==e+o||a=="-"+e+o||a=="_"+e+o)))throw new Error('Could not find matching close tag for "'+s+'".');this._scanLine(s)})}_parseTemplateText(){let t=this.templateText;const e=this.regex;let n=e.exec(t);const o=[];let s;for(;n;)s=n.index,s!==0&&(o.push(t.substring(0,s)),t=t.slice(s)),o.push(n[0]),t=t.slice(n[0].length),n=e.exec(t);return t&&o.push(t),o}_addOutput(t){if(this.truncate&&(t=t.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!t)return t;t=t.replace(/\\/g,"\\\\"),t=t.replace(/\n/g,"\\n"),t=t.replace(/\r/g,"\\r"),t=t.replace(/"/g,'\\"'),this.source+=' ; __append("'+t+`")
504
504
  `}_scanLine(t){const e=Rs,n=Vs,o=Os;switch(t.split(`
505
505
  `).length-1,t){case n+e:case n+e+"_":this.mode=Qe.EVAL;break;case n+e+"=":this.mode=Qe.ESCAPED;break;case n+e+"-":this.mode=Qe.RAW;break;case n+e+"#":this.mode=Qe.COMMENT;break;case n+e+e:this.mode=Qe.LITERAL,this.source+=' ; __append("'+t.replace(n+e+e,n+e)+`")
@@ -509,32 +509,32 @@ void main() {
509
509
  `)}switch(this.mode){case Qe.EVAL:this.source+=" ; "+t+`
510
510
  `;break;case Qe.ESCAPED:this.source+=" ; __append(escapeFn("+Fs(t)+`))
511
511
  `;break;case Qe.RAW:this.source+=" ; __append("+Fs(t)+`)
512
- `;break;case Qe.COMMENT:break;case Qe.LITERAL:this._addOutput(t);break}}else this._addOutput(t)}}}const Oi=.001,Hs=.01,_m="https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png",Gm=(i,t)=>{var Y,ae,he,de,pe,Pe,Ie,Me;let e=t==null?void 0:t.container,n=1.4;const o=(Y=t==null?void 0:t.wait)!=null?Y:200,s=(ae=t==null?void 0:t.maxNumberOnScreen)!=null?ae:3,r=(he=t==null?void 0:t.minRad)!=null?he:Math.PI/4,a=(de=t==null?void 0:t.nearTolerance)!=null?de:100,l=(pe=t==null?void 0:t.upsideHeight)!=null?pe:1.6,c=(Pe=t==null?void 0:t.minDistance)!=null?Pe:1.2,u=(Ie=t==null?void 0:t.maxDistance)!=null?Ie:3.5,d=Kt(i),h=document.createElement("div");h.classList.add("PanoSpatialTagPlugin"),Object.assign(h.style,Om);const m=new Ce.Subscribe;let A=new Image;A.src=_m;const v={points:[],origins:[],tags:[],template:"",events:{},render:Fm,folded:!1,enabled:!0,forbidden:!0},p=new Tm({target:h,props:{origins:v.origins}}),g=(ce,Ae)=>{k(),Ae&&C()},b=()=>{v.forbidden&&(v.forbidden=!1,C())},w=(ce,Ae)=>{if(v.tags.length===0)return;const Ee=Ae.longitude-i.state.longitude,ue=i.camera.clone();ue.position.copy(Ae.offset),ue.rotateOnWorldAxis(new I.Vector3(0,1,0),Ee),ue.updateProjectionMatrix(),ue.updateMatrixWorld(!0);const Xe=new I.Frustum,it=new I.Matrix4;it.multiplyMatrices(ue.projectionMatrix,ue.matrixWorldInverse),Xe.setFromProjectionMatrix(it),v.tags.forEach(be=>{const Je=ue.position.clone().setY(n).distanceTo(be.position);if(Je<c||Je>u||!Xe.containsPoint(be.position))return be.destroying=!0;const te=be.position.clone().sub(ue.position).setY(0);if(te.angleTo(be.normal)>Math.PI/2-r&&te.angleTo(be.normal)<Math.PI/2+r)return be.destroying=!0}),v.tags.forEach(be=>{be.destroying?be.app.$set({contentZoom:.1+ue.position.distanceTo(be.position)/u,lineWidthZoom:.38*(.01+ue.position.distanceTo(be.position)/u),destroying:be.destroying}):be.app.$set({lineWidthZoom:.38*(.01+ue.position.distanceTo(be.position)/u),lineHeightZoom:.4+(ue.position.distanceTo(be.position)-c)/u*.6,contentZoom:.1+ue.position.distanceTo(be.position)/u})}),setTimeout(()=>{v.tags.forEach(be=>{be.destroying&&(be.app.$destroy(),be=null)}),v.tags=v.tags.filter(be=>!be.destroying),k()},1900)},x=ce=>{ce!==Ce.Five.Mode.Panorama&&!v.forbidden&&(p.$set({origins:[]}),v.tags.forEach(Ae=>{Ae.app.$destroy(),Ae=null}),v.origins=[],v.tags=[],v.forbidden=!0)},k=()=>{if(v.forbidden||!v.enabled)return;const ce=i.camera,Ae=ce.getWorldDirection(new I.Vector3);v.origins=v.tags.map(Ee=>{const ue=Ee.position.clone().project(ce),Xe=Ee.position.clone().sub(ce.position).setY(0).angleTo(Ae.setY(0))<Math.PI/2;return{id:Ee.id,front:Xe,left:(ue.x+1)/2*100,top:(-ue.y+1)/2*100,destroying:Ee.destroying}}),p.$set({origins:v.origins})},C=()=>{v.forbidden||!v.enabled||(v.timeoutId&&clearTimeout(v.timeoutId),v.timeoutId=setTimeout(()=>{v.timeoutId=void 0;const ce=D();ce.length&&(v.tags=v.tags.concat(ce),k())},o))},D=()=>{const{clientWidth:ce,clientHeight:Ae}=i.getElement(),Ee=[],ue=i.camera,Xe=new I.Frustum,it=new I.Matrix4,be=ue.getWorldDirection(new I.Vector3);it.multiplyMatrices(ue.projectionMatrix,ue.matrixWorldInverse),Xe.setFromProjectionMatrix(it);const Je=v.tags.filter(ve=>Xe.containsPoint(ve.position)&&!ve.destroying).length,te=v.points.reduce((ve,je)=>{if(v.tags.find(ze=>je.id===ze.id&&!ze.destroying))return ve;const Ze=ue.position.clone().setY(n).distanceTo(je.position);if(Ze<c||Ze>u||!Xe.containsPoint(je.position))return ve;const ln=je.position.clone().sub(ue.position).setY(0);if(ln.angleTo(je.normal)>Math.PI/2-r&&ln.angleTo(je.normal)<Math.PI/2+r)return ve;const jt=je.position.clone().project(ue);if(!v.tags.every(ze=>{if(ze.position.clone().sub(ue.position).setY(0).angleTo(be.setY(0))>Math.PI/2)return!0;const kt=ze.position.clone().project(ue);return Math.sqrt(Math.pow((jt.x-kt.x)/2*ce,2)+Math.pow((jt.y-kt.y)/2*Ae,2))>a}))return ve;const It={id:je.id,position:je.position,normal:je.normal,replacement:je.replacement,weight:je.weight,distance:Ze};let xe;for(let ze=0,kt=ve.length;ze<kt;ze++){const Dn=ve[ze];if(It.weight>Dn.weight){xe=ze;break}if(It.distance<Dn.distance){xe=ze;break}}return xe!==void 0?ve.splice(xe,0,It):ve.push(It),ve},[]);for(let ve=0,je=te.length;ve<je&&!(Je+Ee.length>=s);ve++){const Ze=te[ve];if(Ee.find(xe=>Ze.id===xe.id))continue;const ln=Ze.position.clone().project(ue);if(!v.tags.concat(Ee).every(xe=>{if(xe.position.clone().sub(ue.position).setY(0).angleTo(be.setY(0))>Math.PI/2)return!0;const ze=xe.position.clone().project(ue);return Math.sqrt(Math.pow((ln.x-ze.x)/2*ce,2)+Math.pow((ln.y-ze.y)/2*Ae,2))>a}))continue;const jt=new I.Raycaster(ue.position.clone().setY(n),Ze.position.clone().sub(ue.position.clone().setY(n)).normalize(),0,Ze.distance+Hs),[It]=v.intersectObjects?jt.intersectObjects(v.intersectObjects,!0):i.model.bvhs.loaded?i.model.intersectRaycaster(jt):jt.intersectObjects(i.model.children,!0);if(!!It&&Ze.distance-It.distance<Hs){const{position:xe,normal:ze,id:kt,replacement:Dn}=Ze,Kl=new I.Plane().setFromNormalAndCoplanarPoint(ze,xe),Mo=xe.clone().sub(ue.position).cross(new I.Vector3(0,1,0)).setLength(Oi),$l=[xe.clone(),xe.clone().add(Mo),xe.clone().add(new I.Vector3(0,Oi,0)).add(Mo),xe.clone().add(new I.Vector3(0,Oi,0))].map(ic=>Kl.projectPoint(ic,new I.Vector3)),{container:ec,dispose:tc}=d.create3DDomContainer($l)||{},nc=new Vm({target:ec,props:{id:kt,content:v.render(v.template,Dn),lineWidthZoom:.38*(.01+ue.position.distanceTo(xe)/u),lineHeightZoom:.4+(ue.position.distanceTo(xe)-c)/u*.6,contentZoom:.1+ue.position.distanceTo(xe)/u,upsideDown:xe.y>l,folded:v.folded,events:v.events,hooks:m,dispose:tc}});Ee.push({position:xe,normal:ze,id:kt,app:nc})}}return Ee},E=ce=>{v.points=ce.points.map(Ae=>{var Ee,ue;return{id:Ae.id,position:new I.Vector3().fromArray(Ae.position),normal:new I.Vector3().fromArray(Ae.normal),replacement:(Ee=Ae.replacement)!=null?Ee:{},weight:(ue=Ae.weight)!=null?ue:-1}}),ce.render&&(v.render=ce.render),ce.template&&(v.template=ce.template),ce.events&&(v.events=ce.events),ce.enabled===!1&&(v.enabled=ce.enabled),ce.folded===!0&&(v.folded=ce.folded)},O=ce=>{v.intersectObjects=ce,C()},G=()=>{v.enabled=!0,C()},X=()=>{v.enabled=!1,p.$set({origins:[]}),v.tags.forEach(ce=>{ce.app.$destroy(),ce=null}),v.origins=[],v.tags=[]},H=()=>{v.folded=!1,v.tags.forEach(ce=>{ce.app.$set({folded:v.folded})})},B=()=>{v.folded=!0,v.tags.forEach(ce=>{ce.app.$set({folded:v.folded})})},F=ce=>{v.tags.forEach(Ae=>{Ae.id===ce&&Ae.app.$set({folded:!1})})},R=ce=>{v.tags.forEach(Ae=>{Ae.id===ce&&Ae.app.$set({folded:!0})})},N=()=>{i.once("renderFrame",k)},_=()=>{e||(e=i.getElement().parentElement),e&&e.appendChild(h),v.forbidden=!1,n=i.model.bounding.getCenter(new I.Vector3).y,C(),i.on("panoWillArrive",w),i.on("panoArrived",b),i.on("modeChange",x),i.on("cameraUpdate",g)},$=()=>{A=null,d.disposeAll(),p.$destroy(),v.tags.forEach(ce=>{ce.app.$destroy(),ce=null}),v.origins=[],v.tags=[],i.off("modelLoaded",_),i.off("renderFrame",k),i.off("panoWillArrive",w),i.off("panoArrived",b),i.off("modeChange",x),i.off("cameraUpdate",g),i.off("dispose",$),window.removeEventListener("resize",N,!1)};return window.addEventListener("resize",N,!1),(Me=i==null?void 0:i.model)!=null&&Me.loaded?_():i.once("modelLoaded",_),i.on("dispose",$),{load:E,setIntersectObjects:O,unfoldAll:H,foldAll:B,unfold:F,fold:R,enable:G,disable:X,hooks:m,dispose:$}};var xt=(i=>(i.SMALL="small",i.MIDLLE="middle",i.LARGE="large",i.EXTRA_LARGE="x-large",i))(xt||{});function Wm(i){le(i,"svelte-1ir3cyd",`.item-label-item.svelte-1ir3cyd{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1ir3cyd{opacity:1;animation:svelte-1ir3cyd-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1ir3cyd::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-1ir3cyd{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1ir3cyd{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1ir3cyd{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1ir3cyd-fadeIn{from{opacity:0
512
+ `;break;case Qe.COMMENT:break;case Qe.LITERAL:this._addOutput(t);break}}else this._addOutput(t)}}}const Oi=.001,Hs=.01,Hm="https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png",_m=(i,t)=>{var Y,ae,he,de,pe,Pe,Ie,Me;let e=t==null?void 0:t.container,n=1.4;const o=(Y=t==null?void 0:t.wait)!=null?Y:200,s=(ae=t==null?void 0:t.maxNumberOnScreen)!=null?ae:3,r=(he=t==null?void 0:t.minRad)!=null?he:Math.PI/4,a=(de=t==null?void 0:t.nearTolerance)!=null?de:100,l=(pe=t==null?void 0:t.upsideHeight)!=null?pe:1.6,c=(Pe=t==null?void 0:t.minDistance)!=null?Pe:1.2,u=(Ie=t==null?void 0:t.maxDistance)!=null?Ie:3.5,d=Kt(i),h=document.createElement("div");h.classList.add("PanoSpatialTagPlugin"),Object.assign(h.style,Vm);const m=new Ce.Subscribe;let A=new Image;A.src=Hm;const v={points:[],origins:[],tags:[],template:"",events:{},render:Qm,folded:!1,enabled:!0,forbidden:!0},p=new Mm({target:h,props:{origins:v.origins}}),g=(ce,Ae)=>{x(),Ae&&C()},b=()=>{v.forbidden&&(v.forbidden=!1,C())},w=(ce,Ae)=>{if(v.tags.length===0)return;const Ee=Ae.longitude-i.state.longitude,ue=i.camera.clone();ue.position.copy(Ae.offset),ue.rotateOnWorldAxis(new k.Vector3(0,1,0),Ee),ue.updateProjectionMatrix(),ue.updateMatrixWorld(!0);const Xe=new k.Frustum,it=new k.Matrix4;it.multiplyMatrices(ue.projectionMatrix,ue.matrixWorldInverse),Xe.setFromProjectionMatrix(it),v.tags.forEach(be=>{const Je=ue.position.clone().setY(n).distanceTo(be.position);if(Je<c||Je>u||!Xe.containsPoint(be.position))return be.destroying=!0;const te=be.position.clone().sub(ue.position).setY(0);if(te.angleTo(be.normal)>Math.PI/2-r&&te.angleTo(be.normal)<Math.PI/2+r)return be.destroying=!0}),v.tags.forEach(be=>{be.destroying?be.app.$set({contentZoom:.1+ue.position.distanceTo(be.position)/u,lineWidthZoom:.38*(.01+ue.position.distanceTo(be.position)/u),destroying:be.destroying}):be.app.$set({lineWidthZoom:.38*(.01+ue.position.distanceTo(be.position)/u),lineHeightZoom:.4+(ue.position.distanceTo(be.position)-c)/u*.6,contentZoom:.1+ue.position.distanceTo(be.position)/u})}),setTimeout(()=>{v.tags.forEach(be=>{be.destroying&&(be.app.$destroy(),be=null)}),v.tags=v.tags.filter(be=>!be.destroying),x()},1900)},P=ce=>{ce!==Ce.Five.Mode.Panorama&&!v.forbidden&&(p.$set({origins:[]}),v.tags.forEach(Ae=>{Ae.app.$destroy(),Ae=null}),v.origins=[],v.tags=[],v.forbidden=!0)},x=()=>{if(v.forbidden||!v.enabled)return;const ce=i.camera,Ae=ce.getWorldDirection(new k.Vector3);v.origins=v.tags.map(Ee=>{const ue=Ee.position.clone().project(ce),Xe=Ee.position.clone().sub(ce.position).setY(0).angleTo(Ae.setY(0))<Math.PI/2;return{id:Ee.id,front:Xe,left:(ue.x+1)/2*100,top:(-ue.y+1)/2*100,destroying:Ee.destroying}}),p.$set({origins:v.origins})},C=()=>{v.forbidden||!v.enabled||(v.timeoutId&&clearTimeout(v.timeoutId),v.timeoutId=setTimeout(()=>{v.timeoutId=void 0;const ce=D();ce.length&&(v.tags=v.tags.concat(ce),x())},o))},D=()=>{const{clientWidth:ce,clientHeight:Ae}=i.getElement(),Ee=[],ue=i.camera,Xe=new k.Frustum,it=new k.Matrix4,be=ue.getWorldDirection(new k.Vector3);it.multiplyMatrices(ue.projectionMatrix,ue.matrixWorldInverse),Xe.setFromProjectionMatrix(it);const Je=v.tags.filter(ve=>Xe.containsPoint(ve.position)&&!ve.destroying).length,te=v.points.reduce((ve,je)=>{if(v.tags.find(ze=>je.id===ze.id&&!ze.destroying))return ve;const Ze=ue.position.clone().setY(n).distanceTo(je.position);if(Ze<c||Ze>u||!Xe.containsPoint(je.position))return ve;const ln=je.position.clone().sub(ue.position).setY(0);if(ln.angleTo(je.normal)>Math.PI/2-r&&ln.angleTo(je.normal)<Math.PI/2+r)return ve;const jt=je.position.clone().project(ue);if(!v.tags.every(ze=>{if(ze.position.clone().sub(ue.position).setY(0).angleTo(be.setY(0))>Math.PI/2)return!0;const kt=ze.position.clone().project(ue);return Math.sqrt(Math.pow((jt.x-kt.x)/2*ce,2)+Math.pow((jt.y-kt.y)/2*Ae,2))>a}))return ve;const It={id:je.id,position:je.position,normal:je.normal,replacement:je.replacement,weight:je.weight,distance:Ze};let xe;for(let ze=0,kt=ve.length;ze<kt;ze++){const Dn=ve[ze];if(It.weight>Dn.weight){xe=ze;break}if(It.distance<Dn.distance){xe=ze;break}}return xe!==void 0?ve.splice(xe,0,It):ve.push(It),ve},[]);for(let ve=0,je=te.length;ve<je&&!(Je+Ee.length>=s);ve++){const Ze=te[ve];if(Ee.find(xe=>Ze.id===xe.id))continue;const ln=Ze.position.clone().project(ue);if(!v.tags.concat(Ee).every(xe=>{if(xe.position.clone().sub(ue.position).setY(0).angleTo(be.setY(0))>Math.PI/2)return!0;const ze=xe.position.clone().project(ue);return Math.sqrt(Math.pow((ln.x-ze.x)/2*ce,2)+Math.pow((ln.y-ze.y)/2*Ae,2))>a}))continue;const jt=new k.Raycaster(ue.position.clone().setY(n),Ze.position.clone().sub(ue.position.clone().setY(n)).normalize(),0,Ze.distance+Hs),[It]=v.intersectObjects?jt.intersectObjects(v.intersectObjects,!0):i.model.bvhs.loaded?i.model.intersectRaycaster(jt):jt.intersectObjects(i.model.children,!0);if(!!It&&Ze.distance-It.distance<Hs){const{position:xe,normal:ze,id:kt,replacement:Dn}=Ze,Kl=new k.Plane().setFromNormalAndCoplanarPoint(ze,xe),Mo=xe.clone().sub(ue.position).cross(new k.Vector3(0,1,0)).setLength(Oi),$l=[xe.clone(),xe.clone().add(Mo),xe.clone().add(new k.Vector3(0,Oi,0)).add(Mo),xe.clone().add(new k.Vector3(0,Oi,0))].map(ic=>Kl.projectPoint(ic,new k.Vector3)),{container:ec,dispose:tc}=d.create3DDomContainer($l)||{},nc=new jm({target:ec,props:{id:kt,content:v.render(v.template,Dn),lineWidthZoom:.38*(.01+ue.position.distanceTo(xe)/u),lineHeightZoom:.4+(ue.position.distanceTo(xe)-c)/u*.6,contentZoom:.1+ue.position.distanceTo(xe)/u,upsideDown:xe.y>l,folded:v.folded,events:v.events,hooks:m,dispose:tc}});Ee.push({position:xe,normal:ze,id:kt,app:nc})}}return Ee},E=ce=>{v.points=ce.points.map(Ae=>{var Ee,ue;return{id:Ae.id,position:new k.Vector3().fromArray(Ae.position),normal:new k.Vector3().fromArray(Ae.normal),replacement:(Ee=Ae.replacement)!=null?Ee:{},weight:(ue=Ae.weight)!=null?ue:-1}}),ce.render&&(v.render=ce.render),ce.template&&(v.template=ce.template),ce.events&&(v.events=ce.events),ce.enabled===!1&&(v.enabled=ce.enabled),ce.folded===!0&&(v.folded=ce.folded)},O=ce=>{v.intersectObjects=ce,C()},G=()=>{v.enabled=!0,C()},X=()=>{v.enabled=!1,p.$set({origins:[]}),v.tags.forEach(ce=>{ce.app.$destroy(),ce=null}),v.origins=[],v.tags=[]},H=()=>{v.folded=!1,v.tags.forEach(ce=>{ce.app.$set({folded:v.folded})})},B=()=>{v.folded=!0,v.tags.forEach(ce=>{ce.app.$set({folded:v.folded})})},F=ce=>{v.tags.forEach(Ae=>{Ae.id===ce&&Ae.app.$set({folded:!1})})},R=ce=>{v.tags.forEach(Ae=>{Ae.id===ce&&Ae.app.$set({folded:!0})})},N=()=>{i.once("renderFrame",x)},_=()=>{e||(e=i.getElement().parentElement),e&&e.appendChild(h),v.forbidden=!1,n=i.model.bounding.getCenter(new k.Vector3).y,C(),i.on("panoWillArrive",w),i.on("panoArrived",b),i.on("modeChange",P),i.on("cameraUpdate",g)},$=()=>{A=null,d.disposeAll(),p.$destroy(),v.tags.forEach(ce=>{ce.app.$destroy(),ce=null}),v.origins=[],v.tags=[],i.off("modelLoaded",_),i.off("renderFrame",x),i.off("panoWillArrive",w),i.off("panoArrived",b),i.off("modeChange",P),i.off("cameraUpdate",g),i.off("dispose",$),window.removeEventListener("resize",N,!1)};return window.addEventListener("resize",N,!1),(Me=i==null?void 0:i.model)!=null&&Me.loaded?_():i.once("modelLoaded",_),i.on("dispose",$),{load:E,setIntersectObjects:O,unfoldAll:H,foldAll:B,unfold:F,fold:R,enable:G,disable:X,hooks:m,dispose:$}};var xt=(i=>(i.SMALL="small",i.MIDLLE="middle",i.LARGE="large",i.EXTRA_LARGE="x-large",i))(xt||{});function Gm(i){le(i,"svelte-1ir3cyd",`.item-label-item.svelte-1ir3cyd{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1ir3cyd{opacity:1;animation:svelte-1ir3cyd-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1ir3cyd::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-1ir3cyd{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1ir3cyd{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1ir3cyd{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1ir3cyd-fadeIn{from{opacity:0
513
513
  }to{opacity:1
514
- }}`)}function Nm(i){let t,e,n,o=(i[0].name.length>6?`${i[0].name.slice(0,6)}...`:i[0].name)+"",s,r,a,l,c,u;return{c(){t=z("div"),e=z("div"),n=z("span"),s=ke(o),r=ee(),a=z("div"),y(n,"class","item-label-item__text svelte-1ir3cyd"),y(e,"class","item-label-item__text-wrap svelte-1ir3cyd"),T(e,"top",`-${i[0].strokeLength+26}px`),y(a,"class","item-label-item__bar svelte-1ir3cyd"),T(a,"height",`${i[0].strokeLength}px`),y(t,"class",l=Te(Ke.default("item-label-item",{visible:i[0].visible}))+" svelte-1ir3cyd"),T(t,"z-index",i[0].zIndex),T(t,"transform",i[0].transform)},m(d,h){M(d,t,h),j(t,e),j(e,n),j(n,s),j(t,r),j(t,a),c||(u=ge(n,"click",i[1]),c=!0)},p(d,[h]){h&1&&o!==(o=(d[0].name.length>6?`${d[0].name.slice(0,6)}...`:d[0].name)+"")&&Se(s,o),h&1&&T(e,"top",`-${d[0].strokeLength+26}px`),h&1&&T(a,"height",`${d[0].strokeLength}px`),h&1&&l!==(l=Te(Ke.default("item-label-item",{visible:d[0].visible}))+" svelte-1ir3cyd")&&y(t,"class",l),h&1&&T(t,"z-index",d[0].zIndex),h&1&&T(t,"transform",d[0].transform)},i:U,o:U,d(d){d&&S(t),c=!1,u()}}}function Xm(i,t,e){let{itemLabel:n}=t,{hooks:o}=t;function s(){o.emit("onLabelClick",n)}return i.$$set=r=>{"itemLabel"in r&&e(0,n=r.itemLabel),"hooks"in r&&e(2,o=r.hooks)},[n,s,o]}class Ym extends oe{constructor(t){super(),ie(this,t,Xm,Nm,ne,{itemLabel:0,hooks:2},Wm)}}function vl(i,t=200){let e;return function(...n){clearTimeout(e),e=setTimeout(()=>{i(...n)},t)}}function Um(i){le(i,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function _s(i,t,e){const n=i.slice();return n[26]=t[e],n}function Gs(i,t){let e,n,o;return n=new Ym({props:{itemLabel:t[26],hooks:t[0]}}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(s,r){M(s,e,r),J(n,s,r),o=!0},p(s,r){t=s;const a={};r&2&&(a.itemLabel=t[26]),r&1&&(a.hooks=t[0]),n.$set(a)},i(s){o||(P(n.$$.fragment,s),o=!0)},o(s){L(n.$$.fragment,s),o=!1},d(s){s&&S(e),Z(n,s)}}}function qm(i){let t,e=[],n=new Map,o,s,r=i[1];const a=l=>l[26].id;for(let l=0;l<r.length;l+=1){let c=_s(i,r,l),u=a(c);n.set(u,e[l]=Gs(u,c))}return{c(){t=z("div");for(let l=0;l<e.length;l+=1)e[l].c();y(t,"class","item-labels-container svelte-gk8s47"),Oe(()=>i[9].call(t)),T(t,"opacity",i[4]?1:0)},m(l,c){M(l,t,c);for(let u=0;u<e.length;u+=1)e[u].m(t,null);o=fi(t,i[9].bind(t)),s=!0},p(l,[c]){c&3&&(r=l[1],se(),e=qe(e,c,a,1,l,r,n,t,Pt,Gs,null,_s),re()),c&16&&T(t,"opacity",l[4]?1:0)},i(l){if(!s){for(let c=0;c<r.length;c+=1)P(e[c]);s=!0}},o(l){for(let c=0;c<e.length;c+=1)L(e[c]);s=!1},d(l){l&&S(t);for(let c=0;c<e.length;c+=1)e[c].d();o()}}}let Ws=26,Jm=11;function Zm(i,t,e){const{Raycaster:n,Vector3:o}=I;let{five:s}=t,{modelOcclusionEnable:r}=t,{itemLabels:a}=t,{hooks:l}=t,{displayStrategyType:c}=t,u=null,d=null,h,m,A=[],v=!0;const p=(B,F)=>{const R=new n,N=B.camera.position.clone(),_=new o().fromArray(F.modelPosition),$=_.distanceTo(N);R.set(N.clone(),_.clone().sub(N).normalize());const[Y]=B.model.intersectRaycaster(R);return!(Y&&Y.distance+1<$)},g=(B,F)=>{const R=new o(F.modelPosition[0],F.modelPosition[1],F.modelPosition[2]),N=B.project2d(R),_=N==null?void 0:N.x,$=N==null?void 0:N.y;return[_,$]},b=B=>`translate(${B[0]}px, ${B[1]}px)`,w=(B,F)=>A.length===0?!1:!!A.find(N=>B[0]>=N[0]-F&&B[0]<=N[0]+F||B[1]>=N[1]-Ws&&B[1]<=N[1]+Ws);function x(B,F){switch(F){case xt.SMALL:return Math.ceil(-27.78*B+85);case xt.MIDLLE:return Math.ceil(-38.9*B+130);case xt.LARGE:return Math.ceil(-44.44*B+140);case xt.EXTRA_LARGE:return Math.ceil(-92.59*B+300)}}const k=(B,F)=>{const R=F.map(_=>{const $=g(B,_),Y=_.name.length*Jm,ae=x(_.modelPosition[1],c),de=(r?p(B,_):!0)&&!w([$[0],$[1]+ae],Y);if(!de)return fe(Q({},_),{visible:de});A.push($);const pe=b($);return fe(Q({},_),{visible:de,transform:pe,strokeLength:ae})}),N=R.filter(({visible:_})=>_).map(_=>({itemLabelItem:_,distance:new o(_.modelPosition[0],_.modelPosition[1],_.modelPosition[2]).clone().distanceTo(B.camera.position)})).sort((_,$)=>_.distance-$.distance);return R.map(_=>{const $=N.findIndex(Y=>Y.itemLabelItem.id===_.id);return $!==void 0?fe(Q({},_),{zIndex:$*10}):_})},C=()=>{A=[],e(1,d=k(s,d))};za(()=>{G()});const D=()=>{e(4,v=!1),E()};Ue(()=>{e(1,d=a),u=a,C(),O(),s.on("cameraUpdate",D)});const E=vl(()=>{e(4,v=!0),C()},300),O=()=>{window.addEventListener("resize",X,!1)},G=()=>{u!==a&&(e(1,d=a),u=a,C())},X=()=>{s.once("renderFrame",C)};Et(()=>{s.off("cameraUpdate",D),window.removeEventListener("resize",X,!1)});function H(){h=this.clientWidth,m=this.clientHeight,e(2,h),e(3,m)}return i.$$set=B=>{"five"in B&&e(5,s=B.five),"modelOcclusionEnable"in B&&e(6,r=B.modelOcclusionEnable),"itemLabels"in B&&e(7,a=B.itemLabels),"hooks"in B&&e(0,l=B.hooks),"displayStrategyType"in B&&e(8,c=B.displayStrategyType)},[l,d,h,m,v,s,r,a,c,H]}class Km extends oe{constructor(t){super(),ie(this,t,Zm,qm,ne,{five:5,modelOcclusionEnable:6,itemLabels:7,hooks:0,displayStrategyType:8},Um)}}function $m(i){return i.model_item_labels.map(t=>Q({modelPosition:[t.position[0],t.position[1]+t.size[1],t.position[2]]},t))}const ep=(i,t)=>{var h,m;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:void 0,itemLabels:[],wrapper:null,app:void 0,hooks:new Ce.Subscribe,modelOcclusionEnable:(h=t==null?void 0:t.modelOcclusionEnable)!=null?h:!0,displayStrategyType:(m=t==null?void 0:t.displayStrategyType)!=null?m:xt.SMALL};e.container.setAttribute("class","model-item-label-plugin-container"),e.container.style.cssText=`
514
+ }}`)}function Wm(i){let t,e,n,o=(i[0].name.length>6?`${i[0].name.slice(0,6)}...`:i[0].name)+"",s,r,a,l,c,u;return{c(){t=z("div"),e=z("div"),n=z("span"),s=ke(o),r=ee(),a=z("div"),y(n,"class","item-label-item__text svelte-1ir3cyd"),y(e,"class","item-label-item__text-wrap svelte-1ir3cyd"),T(e,"top",`-${i[0].strokeLength+26}px`),y(a,"class","item-label-item__bar svelte-1ir3cyd"),T(a,"height",`${i[0].strokeLength}px`),y(t,"class",l=Te(Ke.default("item-label-item",{visible:i[0].visible}))+" svelte-1ir3cyd"),T(t,"z-index",i[0].zIndex),T(t,"transform",i[0].transform)},m(d,h){M(d,t,h),j(t,e),j(e,n),j(n,s),j(t,r),j(t,a),c||(u=ge(n,"click",i[1]),c=!0)},p(d,[h]){h&1&&o!==(o=(d[0].name.length>6?`${d[0].name.slice(0,6)}...`:d[0].name)+"")&&Se(s,o),h&1&&T(e,"top",`-${d[0].strokeLength+26}px`),h&1&&T(a,"height",`${d[0].strokeLength}px`),h&1&&l!==(l=Te(Ke.default("item-label-item",{visible:d[0].visible}))+" svelte-1ir3cyd")&&y(t,"class",l),h&1&&T(t,"z-index",d[0].zIndex),h&1&&T(t,"transform",d[0].transform)},i:U,o:U,d(d){d&&S(t),c=!1,u()}}}function Nm(i,t,e){let{itemLabel:n}=t,{hooks:o}=t;function s(){o.emit("onLabelClick",n)}return i.$$set=r=>{"itemLabel"in r&&e(0,n=r.itemLabel),"hooks"in r&&e(2,o=r.hooks)},[n,s,o]}class Xm extends oe{constructor(t){super(),ie(this,t,Nm,Wm,ne,{itemLabel:0,hooks:2},Gm)}}function vl(i,t=200){let e;return function(...n){clearTimeout(e),e=setTimeout(()=>{i(...n)},t)}}function Ym(i){le(i,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function _s(i,t,e){const n=i.slice();return n[26]=t[e],n}function Gs(i,t){let e,n,o;return n=new Xm({props:{itemLabel:t[26],hooks:t[0]}}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(s,r){M(s,e,r),J(n,s,r),o=!0},p(s,r){t=s;const a={};r&2&&(a.itemLabel=t[26]),r&1&&(a.hooks=t[0]),n.$set(a)},i(s){o||(I(n.$$.fragment,s),o=!0)},o(s){L(n.$$.fragment,s),o=!1},d(s){s&&S(e),Z(n,s)}}}function Um(i){let t,e=[],n=new Map,o,s,r=i[1];const a=l=>l[26].id;for(let l=0;l<r.length;l+=1){let c=_s(i,r,l),u=a(c);n.set(u,e[l]=Gs(u,c))}return{c(){t=z("div");for(let l=0;l<e.length;l+=1)e[l].c();y(t,"class","item-labels-container svelte-gk8s47"),Oe(()=>i[9].call(t)),T(t,"opacity",i[4]?1:0)},m(l,c){M(l,t,c);for(let u=0;u<e.length;u+=1)e[u].m(t,null);o=fi(t,i[9].bind(t)),s=!0},p(l,[c]){c&3&&(r=l[1],se(),e=qe(e,c,a,1,l,r,n,t,Pt,Gs,null,_s),re()),c&16&&T(t,"opacity",l[4]?1:0)},i(l){if(!s){for(let c=0;c<r.length;c+=1)I(e[c]);s=!0}},o(l){for(let c=0;c<e.length;c+=1)L(e[c]);s=!1},d(l){l&&S(t);for(let c=0;c<e.length;c+=1)e[c].d();o()}}}let Ws=26,qm=11;function Jm(i,t,e){const{Raycaster:n,Vector3:o}=k;let{five:s}=t,{modelOcclusionEnable:r}=t,{itemLabels:a}=t,{hooks:l}=t,{displayStrategyType:c}=t,u=null,d=null,h,m,A=[],v=!0;const p=(B,F)=>{const R=new n,N=B.camera.position.clone(),_=new o().fromArray(F.modelPosition),$=_.distanceTo(N);R.set(N.clone(),_.clone().sub(N).normalize());const[Y]=B.model.intersectRaycaster(R);return!(Y&&Y.distance+1<$)},g=(B,F)=>{const R=new o(F.modelPosition[0],F.modelPosition[1],F.modelPosition[2]),N=B.project2d(R),_=N==null?void 0:N.x,$=N==null?void 0:N.y;return[_,$]},b=B=>`translate(${B[0]}px, ${B[1]}px)`,w=(B,F)=>A.length===0?!1:!!A.find(N=>B[0]>=N[0]-F&&B[0]<=N[0]+F||B[1]>=N[1]-Ws&&B[1]<=N[1]+Ws);function P(B,F){switch(F){case xt.SMALL:return Math.ceil(-27.78*B+85);case xt.MIDLLE:return Math.ceil(-38.9*B+130);case xt.LARGE:return Math.ceil(-44.44*B+140);case xt.EXTRA_LARGE:return Math.ceil(-92.59*B+300)}}const x=(B,F)=>{const R=F.map(_=>{const $=g(B,_),Y=_.name.length*qm,ae=P(_.modelPosition[1],c),de=(r?p(B,_):!0)&&!w([$[0],$[1]+ae],Y);if(!de)return fe(Q({},_),{visible:de});A.push($);const pe=b($);return fe(Q({},_),{visible:de,transform:pe,strokeLength:ae})}),N=R.filter(({visible:_})=>_).map(_=>({itemLabelItem:_,distance:new o(_.modelPosition[0],_.modelPosition[1],_.modelPosition[2]).clone().distanceTo(B.camera.position)})).sort((_,$)=>_.distance-$.distance);return R.map(_=>{const $=N.findIndex(Y=>Y.itemLabelItem.id===_.id);return $!==void 0?fe(Q({},_),{zIndex:$*10}):_})},C=()=>{A=[],e(1,d=x(s,d))};za(()=>{G()});const D=()=>{e(4,v=!1),E()};Ue(()=>{e(1,d=a),u=a,C(),O(),s.on("cameraUpdate",D)});const E=vl(()=>{e(4,v=!0),C()},300),O=()=>{window.addEventListener("resize",X,!1)},G=()=>{u!==a&&(e(1,d=a),u=a,C())},X=()=>{s.once("renderFrame",C)};Et(()=>{s.off("cameraUpdate",D),window.removeEventListener("resize",X,!1)});function H(){h=this.clientWidth,m=this.clientHeight,e(2,h),e(3,m)}return i.$$set=B=>{"five"in B&&e(5,s=B.five),"modelOcclusionEnable"in B&&e(6,r=B.modelOcclusionEnable),"itemLabels"in B&&e(7,a=B.itemLabels),"hooks"in B&&e(0,l=B.hooks),"displayStrategyType"in B&&e(8,c=B.displayStrategyType)},[l,d,h,m,v,s,r,a,c,H]}class Zm extends oe{constructor(t){super(),ie(this,t,Jm,Um,ne,{five:5,modelOcclusionEnable:6,itemLabels:7,hooks:0,displayStrategyType:8},Ym)}}function Km(i){return i.model_item_labels.map(t=>Q({modelPosition:[t.position[0],t.position[1]+t.size[1],t.position[2]]},t))}const $m=(i,t)=>{var h,m;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:void 0,itemLabels:[],wrapper:null,app:void 0,hooks:new Ce.Subscribe,modelOcclusionEnable:(h=t==null?void 0:t.modelOcclusionEnable)!=null?h:!0,displayStrategyType:(m=t==null?void 0:t.displayStrategyType)!=null?m:xt.SMALL};e.container.setAttribute("class","model-item-label-plugin-container"),e.container.style.cssText=`
515
515
  position: absolute;
516
516
  left: 0;
517
517
  top: 0;
518
518
  width: 100%;
519
519
  height: 100%;
520
520
  z-index: 5;
521
- `,e.container.style.pointerEvents="none";const n=A=>(e.wrapper=A,A.appendChild(e.container),l(),!0),o=A=>{e.itemLabels=$m(A),l()},s=()=>(e.enabled||(e.enabled=!0,l()),!0),r=()=>(e.enabled&&(e.enabled=!1,l()),!0),a=()=>{u(),e.container.remove()},l=()=>{var A;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(A=e.app)==null||A.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:i,itemLabels:e.itemLabels}):e.app=new Km({target:e.container,props:{five:i,modelOcclusionEnable:e.modelOcclusionEnable,itemLabels:e.itemLabels,wrapper:e.wrapper,hooks:e.hooks,displayStrategyType:e.displayStrategyType}})}},c=()=>{i.on("modeChange",d),i.once("dispose",a)},u=()=>{i.off("modeChange",d)},d=A=>{if(!!e.enabled){if(A!==Ce.Five.Mode.Floorplan){e.fiveModeEnabled=!1,l();return}i.once("initAnimationEnded",()=>{e.fiveModeEnabled=i.currentMode===Ce.Five.Mode.Floorplan,l()})}};return c(),{appendTo:n,load:o,enable:s,disable:r,dispose:a,hooks:e.hooks}},tp={name:"ModelItemLabelPlugin",version:0};var Ft=(i=>(i.TOP_LEFT="topLeft",i.TOP_RIGHT="topRight",i.BOTTOM_LEFT="bottomLeft",i.BOTTOM_RIGHT="bottomRight",i))(Ft||{});function np(i){if(i.length===0)return[];if(Array.isArray(i[0]))return i;let t=[];return i.forEach(e=>{const n=[e[Ft.TOP_LEFT],e[Ft.BOTTOM_LEFT],e[Ft.BOTTOM_RIGHT],e[Ft.TOP_RIGHT]];t.push(n)}),t}const ip=(i,{videoElement:t})=>{const e={videoMeshes:[],videoTextureEnabled:!1,videoSource:"",rectPoints:[],enabled:!1,videoElement:t},n=Kt(i),o=new Map,s=g=>{e.videoTexture&&(e.videoTexture.image.muted=g)},r=()=>e.videoTexture?e.videoTexture.image.muted:!0,a=()=>{if(e.enabled||!e.videoTexture)return;e.enabled=!0,e.videoMeshes=c(),e.videoMeshes.forEach(b=>i.scene.add(b));const g=()=>{if(!e.videoTexture)return;const b=()=>{var w;!e.videoTexture||((w=e.videoTexture)==null||w.image.removeEventListener("timeupdate",b),e.videoTextureEnabled=!0,e.videoMeshes.forEach(x=>{x.material.map!==e.videoTexture&&(x.material.map=e.videoTexture)}),i.needsRender=!0)};e.videoTexture.image.addEventListener("timeupdate",b),e.videoTexture&&e.videoMeshes.length&&(e.videoTexture.image.play(),e.videoTexture.image.onplay=()=>{n.hide()},e.videoTexture.image.onpause=()=>{n.show()},e.videoTexture.image.onclick=()=>{e.videoTexture.image.muted=!1,e.videoTexture.image.play()})};if(i.model.loaded)g();else return i.once("modelLoaded",()=>g())},l=()=>{!e.enabled||(e.enabled=!1,e.videoMeshes.forEach(g=>{g.geometry.dispose(),g.material.dispose(),i.scene.remove(g),e.videoTexture&&e.videoTexture.image.pause()}),e.videoMeshes=[],i.needsRender=!0)},c=()=>e.rectPoints.map((g,b)=>{const w=new I.BufferGeometry,x=128,k=[];k.push(...g[0].toArray());for(let B=1;B<x;B++)k.push(g[0].x+(g[1].x-g[0].x)*B/x,g[0].y+(g[1].y-g[0].y)*B/x,g[0].z+(g[1].z-g[0].z)*B/x);k.push(...g[1].toArray()),k.push(...g[2].toArray());for(let B=1;B<x;B++)k.push(g[2].x+(g[3].x-g[2].x)*B/x,g[2].y+(g[3].y-g[2].y)*B/x,g[2].z+(g[3].z-g[2].z)*B/x);k.push(...g[3].toArray());const C=[];C.push(0,1);for(let B=1;B<x;B++)C.push(0,1-B/x);C.push(0,0),C.push(1,0);for(let B=1;B<x;B++)C.push(1,B/x);C.push(1,1);const D=[];for(let B=0;B<x;B++)D.push(B,B+1,x*2-B,B,x*2-B,x*2+1-B);w.setAttribute("position",new I.BufferAttribute(new Float32Array(k),3)),w.setAttribute("uv",new I.BufferAttribute(new Float32Array(C),2)),w.setIndex(new I.BufferAttribute(new Uint32Array(D),1));const E=new I.AxesHelper(10);i.scene.add(E);const O=new I.MeshBasicMaterial({map:e.videoTextureEnabled?e.videoTexture:e.imageTexture,side:I.DoubleSide}),G=new I.Mesh(w,O);G.renderOrder=1,G.name=`ModelTVVideoPlugin-${b}-${performance.now()}`;const X=[g[1],g[2],g[3],g[0]],H=n.create3DDomContainer(X);if(H!=null&&H.container){const B=document.createElement("div");B.classList.add("play-icon"),B.style.width="100%",B.style.height="100%",B.style.display="flex",B.style.justifyContent="center",B.style.alignItems="center",B.style.pointerEvents="none",H.container.appendChild(B);const F=document.createElement("img");F.src="//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png",F.style.width="200px",F.style.pointerEvents="auto",F.onclick=()=>{e.videoTexture.image.muted=!1,e.videoTexture.image.play()},B.appendChild(F),o.set(G,H)}return G}),u=g=>{const b=new I.TextureLoader().load(g);return b.minFilter=I.LinearFilter,b.magFilter=I.LinearFilter,b.format=I.RGBFormat,b},d=(g,b)=>new Promise((w,x)=>{const k=new XMLHttpRequest;k.onreadystatechange=()=>{if(k.readyState==4)if(k.status==200){const C=window.URL||window.webkitURL;b=b||document.createElement("video"),b.crossOrigin="anonymous",b.muted=!0,b.loop=!0,b.playsInline=!0,b.src=C.createObjectURL(k.response);const D=new I.VideoTexture(b);D.minFilter=I.LinearFilter,D.magFilter=I.LinearFilter,D.format=I.RGBFormat,w(Object.assign(D,{videoSource:g}))}else x(new Error("Video download Error: "+k.status))},k.onerror=C=>x(C),k.open("GET",g),k.responseType="blob",k.send()}),h=(g,b)=>W(exports,null,function*(){const{video_src:w,video_poster_src:x,points:k}=g;e.videoSource=w,e.rectPoints=np(k).map(C=>C.map(({x:D,y:E,z:O})=>new I.Vector3(D,E,O))),e.imageTexture=u(x),b&&(e.videoElement=b),e.videoTexture=yield d(e.videoSource,e.videoElement),e.enabled=!!g.enable,e.enabled&&a()}),m=g=>{if(!e.enabled)return;const b=e.videoMeshes;if(!(!b||g.intersectObjects(b).length===0))return e.videoTexture&&(e.videoTexture.image.paused||e.videoTexture.image.pause()),!1},A=g=>{g==="Floorplan"?n.hide():n.show()},v=()=>{if(!e.enabled)return;const g=i.camera.position;if(o.forEach((b,w)=>{const x=b.css3DObject.position.clone(),k=x.clone().sub(g).normalize(),C=new I.Raycaster(g,k),D=i.model.intersectRaycaster(C)[0],E=x.distanceTo(g),O=.01;D&&D.distance+O<E?b.hide():b.show()}),!r()){const b=e.rectPoints.find(w=>{const x=w[0].clone().add(w[1]).add(w[2]).add(w[3]).divideScalar(4);return w.map(k=>k.clone().add(x).divideScalar(2)).filter(k=>{const C=k.distanceTo(g),D=new I.Raycaster(g,k.clone().sub(g).normalize()),E=i.model.intersectRaycaster(D)[0],O=.01;return!(E&&E.distance+O<C)}).length>=2});(!b||b.length===0)&&s(!0)}},p=()=>{l(),e.videoTexture=void 0,i.off("modeChange",A),i.off("wantsTapGesture",m),i.off("panoArrived",v),i.off("renderFrame",()=>{e.videoMeshes.forEach(g=>{g&&(g.needsRender=!0)})})};return i.on("modeChange",A),i.on("wantsTapGesture",m),i.on("panoArrived",v),i.on("renderFrame",()=>{e.videoMeshes.forEach(g=>{g&&(g.needsRender=!0)})}),{enable:a,disable:l,load:h,dispose:p,state:e,css3DRenderPlugin:n}};function op(i){le(i,"svelte-gduhqw",`.item-label-item.svelte-gduhqw.svelte-gduhqw{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-gduhqw-fadeIn .3s ease-in}.item-label-item.fold.svelte-gduhqw>.item-label-item__text-wrap.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw:after{visibility:visible}.item-label-item__text-wrap.svelte-gduhqw.svelte-gduhqw{height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-gduhqw.svelte-gduhqw{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-gduhqw.svelte-gduhqw{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-gduhqw.svelte-gduhqw{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-gduhqw.svelte-gduhqw{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-gduhqw.svelte-gduhqw{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-gduhqw.svelte-gduhqw:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;background-image:url("//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ");background-position:center;background-size:contain;transform:translate(-0.65625rem, 50%)}@keyframes svelte-gduhqw-fadeIn{from{opacity:0
521
+ `,e.container.style.pointerEvents="none";const n=A=>(e.wrapper=A,A.appendChild(e.container),l(),!0),o=A=>{e.itemLabels=Km(A),l()},s=()=>(e.enabled||(e.enabled=!0,l()),!0),r=()=>(e.enabled&&(e.enabled=!1,l()),!0),a=()=>{u(),e.container.remove()},l=()=>{var A;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(A=e.app)==null||A.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:i,itemLabels:e.itemLabels}):e.app=new Zm({target:e.container,props:{five:i,modelOcclusionEnable:e.modelOcclusionEnable,itemLabels:e.itemLabels,wrapper:e.wrapper,hooks:e.hooks,displayStrategyType:e.displayStrategyType}})}},c=()=>{i.on("modeChange",d),i.once("dispose",a)},u=()=>{i.off("modeChange",d)},d=A=>{if(!!e.enabled){if(A!==Ce.Five.Mode.Floorplan){e.fiveModeEnabled=!1,l();return}i.once("initAnimationEnded",()=>{e.fiveModeEnabled=i.currentMode===Ce.Five.Mode.Floorplan,l()})}};return c(),{appendTo:n,load:o,enable:s,disable:r,dispose:a,hooks:e.hooks}},ep={name:"ModelItemLabelPlugin",version:0};var Ft=(i=>(i.TOP_LEFT="topLeft",i.TOP_RIGHT="topRight",i.BOTTOM_LEFT="bottomLeft",i.BOTTOM_RIGHT="bottomRight",i))(Ft||{});function tp(i){if(i.length===0)return[];if(Array.isArray(i[0]))return i;let t=[];return i.forEach(e=>{const n=[e[Ft.TOP_LEFT],e[Ft.BOTTOM_LEFT],e[Ft.BOTTOM_RIGHT],e[Ft.TOP_RIGHT]];t.push(n)}),t}const np=(i,{videoElement:t})=>{const e={videoMeshes:[],videoTextureEnabled:!1,videoSource:"",rectPoints:[],enabled:!1,videoElement:t},n=Kt(i),o=new Map,s=g=>{e.videoTexture&&(e.videoTexture.image.muted=g)},r=()=>e.videoTexture?e.videoTexture.image.muted:!0,a=()=>{if(e.enabled||!e.videoTexture)return;e.enabled=!0,e.videoMeshes=c(),e.videoMeshes.forEach(b=>i.scene.add(b));const g=()=>{if(!e.videoTexture)return;const b=()=>{var w;!e.videoTexture||((w=e.videoTexture)==null||w.image.removeEventListener("timeupdate",b),e.videoTextureEnabled=!0,e.videoMeshes.forEach(P=>{P.material.map!==e.videoTexture&&(P.material.map=e.videoTexture)}),i.needsRender=!0)};e.videoTexture.image.addEventListener("timeupdate",b),e.videoTexture&&e.videoMeshes.length&&(e.videoTexture.image.play(),e.videoTexture.image.onplay=()=>{n.hide()},e.videoTexture.image.onpause=()=>{n.show()},e.videoTexture.image.onclick=()=>{e.videoTexture.image.muted=!1,e.videoTexture.image.play()})};if(i.model.loaded)g();else return i.once("modelLoaded",()=>g())},l=()=>{!e.enabled||(e.enabled=!1,e.videoMeshes.forEach(g=>{g.geometry.dispose(),g.material.dispose(),i.scene.remove(g),e.videoTexture&&e.videoTexture.image.pause()}),e.videoMeshes=[],i.needsRender=!0)},c=()=>e.rectPoints.map((g,b)=>{const w=new k.BufferGeometry,P=128,x=[];x.push(...g[0].toArray());for(let B=1;B<P;B++)x.push(g[0].x+(g[1].x-g[0].x)*B/P,g[0].y+(g[1].y-g[0].y)*B/P,g[0].z+(g[1].z-g[0].z)*B/P);x.push(...g[1].toArray()),x.push(...g[2].toArray());for(let B=1;B<P;B++)x.push(g[2].x+(g[3].x-g[2].x)*B/P,g[2].y+(g[3].y-g[2].y)*B/P,g[2].z+(g[3].z-g[2].z)*B/P);x.push(...g[3].toArray());const C=[];C.push(0,1);for(let B=1;B<P;B++)C.push(0,1-B/P);C.push(0,0),C.push(1,0);for(let B=1;B<P;B++)C.push(1,B/P);C.push(1,1);const D=[];for(let B=0;B<P;B++)D.push(B,B+1,P*2-B,B,P*2-B,P*2+1-B);w.setAttribute("position",new k.BufferAttribute(new Float32Array(x),3)),w.setAttribute("uv",new k.BufferAttribute(new Float32Array(C),2)),w.setIndex(new k.BufferAttribute(new Uint32Array(D),1));const E=new k.AxesHelper(10);i.scene.add(E);const O=new k.MeshBasicMaterial({map:e.videoTextureEnabled?e.videoTexture:e.imageTexture,side:k.DoubleSide}),G=new k.Mesh(w,O);G.renderOrder=1,G.name=`ModelTVVideoPlugin-${b}-${performance.now()}`;const X=[g[1],g[2],g[3],g[0]],H=n.create3DDomContainer(X);if(H!=null&&H.container){const B=document.createElement("div");B.classList.add("play-icon"),B.style.width="100%",B.style.height="100%",B.style.display="flex",B.style.justifyContent="center",B.style.alignItems="center",B.style.pointerEvents="none",H.container.appendChild(B);const F=document.createElement("img");F.src="//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png",F.style.width="200px",F.style.pointerEvents="auto",F.onclick=()=>{e.videoTexture.image.muted=!1,e.videoTexture.image.play()},B.appendChild(F),o.set(G,H)}return G}),u=g=>{const b=new k.TextureLoader().load(g);return b.minFilter=k.LinearFilter,b.magFilter=k.LinearFilter,b.format=k.RGBFormat,b},d=(g,b)=>new Promise((w,P)=>{const x=new XMLHttpRequest;x.onreadystatechange=()=>{if(x.readyState==4)if(x.status==200){const C=window.URL||window.webkitURL;b=b||document.createElement("video"),b.crossOrigin="anonymous",b.muted=!0,b.loop=!0,b.playsInline=!0,b.src=C.createObjectURL(x.response);const D=new k.VideoTexture(b);D.minFilter=k.LinearFilter,D.magFilter=k.LinearFilter,D.format=k.RGBFormat,w(Object.assign(D,{videoSource:g}))}else P(new Error("Video download Error: "+x.status))},x.onerror=C=>P(C),x.open("GET",g),x.responseType="blob",x.send()}),h=(g,b)=>W(exports,null,function*(){const{video_src:w,video_poster_src:P,points:x}=g;e.videoSource=w,e.rectPoints=tp(x).map(C=>C.map(({x:D,y:E,z:O})=>new k.Vector3(D,E,O))),e.imageTexture=u(P),b&&(e.videoElement=b),e.videoTexture=yield d(e.videoSource,e.videoElement),e.enabled=!!g.enable,e.enabled&&a()}),m=g=>{if(!e.enabled)return;const b=e.videoMeshes;if(!(!b||g.intersectObjects(b).length===0))return e.videoTexture&&(e.videoTexture.image.paused||e.videoTexture.image.pause()),!1},A=g=>{g==="Floorplan"?n.hide():n.show()},v=()=>{if(!e.enabled)return;const g=i.camera.position;if(o.forEach((b,w)=>{const P=b.css3DObject.position.clone(),x=P.clone().sub(g).normalize(),C=new k.Raycaster(g,x),D=i.model.intersectRaycaster(C)[0],E=P.distanceTo(g),O=.01;D&&D.distance+O<E?b.hide():b.show()}),!r()){const b=e.rectPoints.find(w=>{const P=w[0].clone().add(w[1]).add(w[2]).add(w[3]).divideScalar(4);return w.map(x=>x.clone().add(P).divideScalar(2)).filter(x=>{const C=x.distanceTo(g),D=new k.Raycaster(g,x.clone().sub(g).normalize()),E=i.model.intersectRaycaster(D)[0],O=.01;return!(E&&E.distance+O<C)}).length>=2});(!b||b.length===0)&&s(!0)}},p=()=>{l(),e.videoTexture=void 0,i.off("modeChange",A),i.off("wantsTapGesture",m),i.off("panoArrived",v),i.off("renderFrame",()=>{e.videoMeshes.forEach(g=>{g&&(g.needsRender=!0)})})};return i.on("modeChange",A),i.on("wantsTapGesture",m),i.on("panoArrived",v),i.on("renderFrame",()=>{e.videoMeshes.forEach(g=>{g&&(g.needsRender=!0)})}),{enable:a,disable:l,load:h,dispose:p,state:e,css3DRenderPlugin:n}};function ip(i){le(i,"svelte-gduhqw",`.item-label-item.svelte-gduhqw.svelte-gduhqw{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-gduhqw-fadeIn .3s ease-in}.item-label-item.fold.svelte-gduhqw>.item-label-item__text-wrap.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw:after{visibility:visible}.item-label-item__text-wrap.svelte-gduhqw.svelte-gduhqw{height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-gduhqw.svelte-gduhqw{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-gduhqw.svelte-gduhqw{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-gduhqw.svelte-gduhqw{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-gduhqw.svelte-gduhqw{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-gduhqw.svelte-gduhqw{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-gduhqw.svelte-gduhqw:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;background-image:url("//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ");background-position:center;background-size:contain;transform:translate(-0.65625rem, 50%)}@keyframes svelte-gduhqw-fadeIn{from{opacity:0
522
522
  }to{opacity:1
523
- }}`)}function sp(i){let t,e,n,o=(i[0].code||i[0].id)+"",s,r,a,l=i[0].name+"",c,u=i[0].icon&&Ns(i);return{c(){u&&u.c(),t=ee(),e=z("div"),n=z("span"),s=ke(o),r=ee(),a=z("span"),c=ke(l),y(n,"class","item-model svelte-gduhqw"),y(a,"class","item-name svelte-gduhqw"),y(e,"class","item-label-text svelte-gduhqw")},m(d,h){u&&u.m(d,h),M(d,t,h),M(d,e,h),j(e,n),j(n,s),j(e,r),j(e,a),j(a,c)},p(d,h){d[0].icon?u?u.p(d,h):(u=Ns(d),u.c(),u.m(t.parentNode,t)):u&&(u.d(1),u=null),h&1&&o!==(o=(d[0].code||d[0].id)+"")&&Se(s,o),h&1&&l!==(l=d[0].name+"")&&Se(c,l)},d(d){u&&u.d(d),d&&S(t),d&&S(e)}}}function rp(i){let t;return{c(){t=z("div")},m(e,n){M(e,t,n),i[6](t)},p:U,d(e){e&&S(t),i[6](null)}}}function Ns(i){let t,e,n,o,s;return{c(){t=z("div"),e=z("div"),y(e,"class","icon svelte-gduhqw"),y(e,"style",n=`background-image: url(${i[0].icon})`),y(t,"class","icon-wrap svelte-gduhqw")},m(r,a){M(r,t,a),j(t,e),o||(s=ge(t,"click",i[7]),o=!0)},p(r,a){a&1&&n!==(n=`background-image: url(${r[0].icon})`)&&y(e,"style",n)},d(r){r&&S(t),o=!1,s()}}}function ap(i){let t,e,n,o,s,r,a,l,c,u;function d(A,v){return v&1&&(n=null),n==null&&(n=!!Boolean(typeof A[0].render=="function")),n?rp:sp}let h=d(i,-1),m=h(i);return{c(){t=z("div"),e=z("div"),m.c(),s=ee(),r=z("div"),y(e,"class",o=Te(Ke.default("item-label-item__text-wrap",{"item-label-item__custom":Boolean(typeof i[0].render=="function")}))+" svelte-gduhqw"),T(e,"bottom",`${i[0].strokeLength}px`),y(r,"class",a=Te(Ke.default("item-label-item__bar",{anchor:i[1]}))+" svelte-gduhqw"),T(r,"height",`${i[0].strokeLength}px`),y(t,"class",l=Te(Ke.default("item-label-item",{fold:i[0].isFold}))+" svelte-gduhqw"),T(t,"z-index",i[0].zIndex),T(t,"transform",i[0].transform)},m(A,v){M(A,t,v),j(t,e),m.m(e,null),j(t,s),j(t,r),c||(u=ge(e,"click",i[4]),c=!0)},p(A,[v]){h===(h=d(A,v))&&m?m.p(A,v):(m.d(1),m=h(A),m&&(m.c(),m.m(e,null))),v&1&&o!==(o=Te(Ke.default("item-label-item__text-wrap",{"item-label-item__custom":Boolean(typeof A[0].render=="function")}))+" svelte-gduhqw")&&y(e,"class",o),v&1&&T(e,"bottom",`${A[0].strokeLength}px`),v&2&&a!==(a=Te(Ke.default("item-label-item__bar",{anchor:A[1]}))+" svelte-gduhqw")&&y(r,"class",a),v&1&&T(r,"height",`${A[0].strokeLength}px`),v&1&&l!==(l=Te(Ke.default("item-label-item",{fold:A[0].isFold}))+" svelte-gduhqw")&&y(t,"class",l),v&1&&T(t,"z-index",A[0].zIndex),v&1&&T(t,"transform",A[0].transform)},i:U,o:U,d(A){A&&S(t),m.d(),c=!1,u()}}}function lp(i,t,e){let{itemLabel:n}=t,{hooks:o}=t,{anchorEnabled:s}=t,{onIconClick:r}=t;function a(){o.emit("onLabelClick",n)}let l;function c(d){Ve[d?"unshift":"push"](()=>{l=d,e(3,l)})}const u=d=>r(n);return i.$$set=d=>{"itemLabel"in d&&e(0,n=d.itemLabel),"hooks"in d&&e(5,o=d.hooks),"anchorEnabled"in d&&e(1,s=d.anchorEnabled),"onIconClick"in d&&e(2,r=d.onIconClick)},i.$$.update=()=>{if(i.$$.dirty&9&&typeof n.render=="function"&&l&&l.children.length===0){const d=n.render(n);d&&l.appendChild(d)}},[n,s,r,l,a,o,c,u]}class cp extends oe{constructor(t){super(),ie(this,t,lp,ap,ne,{itemLabel:0,hooks:5,anchorEnabled:1,onIconClick:2},op)}}const{Raycaster:up,Vector3:m1}=I,Xs=(i,t,e,n)=>{const o=t.clone().sub(e).normalize(),s=new up;s.set(e,o);const[r]=i.model.intersectRaycaster(s);return r&&r.distance+.01<n};var Dt=(i=>(i.SMALL="small",i.MIDLLE="middle",i.LARGE="large",i.EXTRA_LARGE="x-large",i))(Dt||{});const dp=(i,t)=>{switch(t){case Dt.SMALL:return Math.ceil(-27.78*i+85);case Dt.MIDLLE:return Math.ceil(-38.9*i+130);case Dt.LARGE:return Math.ceil(-44.44*i+140);case Dt.EXTRA_LARGE:return Math.ceil(-92.59*i+300)}},hp=i=>`translate(${i[0]}px, ${i[1]}px)`;function Ys(i){return i.map(t=>Q({observerIndex:void 0,visible:!1,isFold:!1},t))}function fp(i){le(i,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function Us(i,t,e){const n=i.slice();return n[30]=t[e],n}function qs(i){let t,e;return t=new cp({props:{itemLabel:i[30],hooks:i[0],anchorEnabled:i[2],onIconClick:i[6]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o[0]&2&&(s.itemLabel=n[30]),o[0]&1&&(s.hooks=n[0]),o[0]&4&&(s.anchorEnabled=n[2]),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Js(i,t){let e,n,o,s=t[30].visible&&qs(t);return{key:i,first:null,c(){e=me(),s&&s.c(),n=me(),this.first=e},m(r,a){M(r,e,a),s&&s.m(r,a),M(r,n,a),o=!0},p(r,a){t=r,t[30].visible?s?(s.p(t,a),a[0]&2&&P(s,1)):(s=qs(t),s.c(),P(s,1),s.m(n.parentNode,n)):s&&(se(),L(s,1,1,()=>{s=null}),re())},i(r){o||(P(s),o=!0)},o(r){L(s),o=!1},d(r){r&&S(e),s&&s.d(r),r&&S(n)}}}function mp(i){let t,e=[],n=new Map,o,s,r=i[1];const a=l=>l[30].id;for(let l=0;l<r.length;l+=1){let c=Us(i,r,l),u=a(c);n.set(u,e[l]=Js(u,c))}return{c(){t=z("div");for(let l=0;l<e.length;l+=1)e[l].c();y(t,"class","item-labels-container svelte-gk8s47"),Oe(()=>i[12].call(t)),T(t,"opacity",i[5]?1:0)},m(l,c){M(l,t,c);for(let u=0;u<e.length;u+=1)e[u].m(t,null);o=fi(t,i[12].bind(t)),s=!0},p(l,c){c[0]&71&&(r=l[1],se(),e=qe(e,c,a,1,l,r,n,t,Pt,Js,null,Us),re()),c[0]&32&&T(t,"opacity",l[5]?1:0)},i(l){if(!s){for(let c=0;c<r.length;c+=1)P(e[c]);s=!0}},o(l){for(let c=0;c<e.length;c+=1)L(e[c]);s=!1},d(l){l&&S(t);for(let c=0;c<e.length;c+=1)e[c].d();o()}}}let pp=11;function gp(i,t,e){const{Raycaster:n,Vector3:o}=I;let{five:s}=t,{modelOcclusionEnable:r}=t,{itemLabels:a}=t,{hooks:l}=t,{displayStrategyType:c}=t,{maxVisibleDistance:u}=t,d=null,h=null,m=(s==null?void 0:s.currentMode)===Ce.Five.Mode.Panorama,A,v,p=[],g=!0;const b=(R,N)=>{const _=R.camera.position.clone(),$=new o(N.modelPosition[0],N.modelPosition[1],N.modelPosition[2]),Y=$.distanceTo(_);return u!==void 0&&R.state.mode===Ce.Five.Mode.Panorama&&Y>u?!1:Xs(R,$.clone().sub(_).normalize(),_,Y)},w=R=>{const{camera:N,model:_}=s,{x:$,y:Y,z:ae}=R.clone().project(N),he=($+1)/2,de=(2-(Y+1))/2,Ie=Math.abs(ae)<1&&[he,de].every(Me=>Me<1&&Me>=0);return Boolean(Ie)},x=(R,N)=>{const _=new o(N.modelPosition[0],N.modelPosition[1],N.modelPosition[2]),$=R.project2d(_),Y=$==null?void 0:$.x,ae=$==null?void 0:$.y;return[Y,ae]},k=(R,N)=>{const _=N.map(Y=>{if(R.state.panoIndex!==Y.panoIndex)return fe(Q({},Y),{visible:!1});const ae=x(R,Y);Y.name.length*pp;const he=dp(Y.modelPosition[1],c),de=R.currentMode===Ce.Five.Mode.Panorama?w(new o(Y.position[0],Y.position[1],Y.position[2])):!0,pe=r?b(R,Y):!1,Pe=de&&!pe;if(!Pe)return fe(Q({},Y),{visible:Pe});p.push(ae);const Ie=hp(ae);return fe(Q({},Y),{visible:Pe,transform:Ie,strokeLength:he})}),$=_.filter(({visible:Y})=>Y).map(Y=>({itemLabelItem:Y,distance:new o(Y.modelPosition[0],Y.modelPosition[1],Y.modelPosition[2]).clone().distanceTo(R.camera.position)})).sort((Y,ae)=>Y.distance-ae.distance);return _.map(Y=>{const ae=$.findIndex(he=>he.itemLabelItem.id===Y.id);return ae!==void 0?fe(Q({},Y),{zIndex:ae*10}):Y})},C=()=>{p=[],e(1,h=k(s,h))},D=()=>{e(5,g=!1),E()},E=vl(()=>{e(5,g=!0),C()},300),O=()=>{s.once("renderFrame",C)},G=()=>{window.addEventListener("resize",O,!1)},X=()=>{d!==a&&(e(1,h=Ys(a)),d=a,C())},H=(R,N)=>{let _=[];for(let Y=0;Y<N.length;Y++){const{position:ae,panoIndex:he}=N[Y],de=R.distanceTo(ae);(u===void 0||de<=u||s.state.mode!==Ce.Five.Mode.Panorama)&&_.push({panoIndex:he,obVector:ae,distance:de})}_=_.sort((Y,ae)=>Y.distance-ae.distance);let $;for(let Y=0;Y<_.length;Y++){const{obVector:ae,distance:he,panoIndex:de}=_[Y];if(!Xs(s,R,ae,he)){$=de;break}}return typeof $=="number"?N[$]:void 0},B=R=>{if(s.state.mode===Ce.Five.Mode.Panorama)return;const N=s.work.observers,_=new o().fromArray(R.position),$=H(_,N);if($&&(R.observerIndex=$.panoIndex),typeof R.observerIndex=="number"){const Y=N[R.observerIndex],ae=_.clone().sub(Y.position).normalize(),he={longitude:Math.PI+Math.atan2(ae.x,ae.z),latitude:Math.acos(ae.y/ae.length())-Math.PI/2};s.setState(fe(Q({},he),{mode:Ce.Five.Mode.Panorama,panoIndex:R.observerIndex})),s.once("initAnimationEnded",()=>{e(1,h=h.map(de=>fe(Q({},de),{isFold:de.id!==R.id}))),s.once("cameraUpdate",()=>{e(1,h=h.map(de=>fe(Q({},de),{isFold:!1})))})})}};za(()=>{X()}),Ue(()=>{e(1,h=Ys(a)),d=a,C(),G(),s.on("cameraUpdate",D)}),Et(()=>{s.off("cameraUpdate",D),window.removeEventListener("resize",O,!1)});function F(){A=this.clientWidth,v=this.clientHeight,e(3,A),e(4,v)}return i.$$set=R=>{"five"in R&&e(7,s=R.five),"modelOcclusionEnable"in R&&e(8,r=R.modelOcclusionEnable),"itemLabels"in R&&e(9,a=R.itemLabels),"hooks"in R&&e(0,l=R.hooks),"displayStrategyType"in R&&e(10,c=R.displayStrategyType),"maxVisibleDistance"in R&&e(11,u=R.maxVisibleDistance)},[l,h,m,A,v,g,B,s,r,a,c,u,F]}class Ap extends oe{constructor(t){super(),ie(this,t,gp,mp,ne,{five:7,modelOcclusionEnable:8,itemLabels:9,hooks:0,displayStrategyType:10,maxVisibleDistance:11},fp,[-1,-1])}}function vp(i){return i.item_labels.map(t=>fe(Q({},t),{modelPosition:[t.position[0],t.position[1],t.position[2]],observerIndex:void 0}))}const bp=void 0,yp=(i,t)=>{var h,m,A,v;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:!0,itemLabels:[],wrapper:null,app:void 0,hooks:new Ce.Subscribe,modelOcclusionEnable:(h=t==null?void 0:t.modelOcclusionEnable)!=null?h:!0,onlyVisibleInPanorama:(m=t==null?void 0:t.onlyVisibleInPanorama)!=null?m:!0,displayStrategyType:(A=t==null?void 0:t.displayStrategyType)!=null?A:Dt.SMALL,maxVisibleDistance:(v=t==null?void 0:t.maxVisibleDistance)!=null?v:bp};e.container.setAttribute("class","item-label-plugin-container"),e.container.style.cssText=`
523
+ }}`)}function op(i){let t,e,n,o=(i[0].code||i[0].id)+"",s,r,a,l=i[0].name+"",c,u=i[0].icon&&Ns(i);return{c(){u&&u.c(),t=ee(),e=z("div"),n=z("span"),s=ke(o),r=ee(),a=z("span"),c=ke(l),y(n,"class","item-model svelte-gduhqw"),y(a,"class","item-name svelte-gduhqw"),y(e,"class","item-label-text svelte-gduhqw")},m(d,h){u&&u.m(d,h),M(d,t,h),M(d,e,h),j(e,n),j(n,s),j(e,r),j(e,a),j(a,c)},p(d,h){d[0].icon?u?u.p(d,h):(u=Ns(d),u.c(),u.m(t.parentNode,t)):u&&(u.d(1),u=null),h&1&&o!==(o=(d[0].code||d[0].id)+"")&&Se(s,o),h&1&&l!==(l=d[0].name+"")&&Se(c,l)},d(d){u&&u.d(d),d&&S(t),d&&S(e)}}}function sp(i){let t;return{c(){t=z("div")},m(e,n){M(e,t,n),i[6](t)},p:U,d(e){e&&S(t),i[6](null)}}}function Ns(i){let t,e,n,o,s;return{c(){t=z("div"),e=z("div"),y(e,"class","icon svelte-gduhqw"),y(e,"style",n=`background-image: url(${i[0].icon})`),y(t,"class","icon-wrap svelte-gduhqw")},m(r,a){M(r,t,a),j(t,e),o||(s=ge(t,"click",i[7]),o=!0)},p(r,a){a&1&&n!==(n=`background-image: url(${r[0].icon})`)&&y(e,"style",n)},d(r){r&&S(t),o=!1,s()}}}function rp(i){let t,e,n,o,s,r,a,l,c,u;function d(A,v){return v&1&&(n=null),n==null&&(n=!!Boolean(typeof A[0].render=="function")),n?sp:op}let h=d(i,-1),m=h(i);return{c(){t=z("div"),e=z("div"),m.c(),s=ee(),r=z("div"),y(e,"class",o=Te(Ke.default("item-label-item__text-wrap",{"item-label-item__custom":Boolean(typeof i[0].render=="function")}))+" svelte-gduhqw"),T(e,"bottom",`${i[0].strokeLength}px`),y(r,"class",a=Te(Ke.default("item-label-item__bar",{anchor:i[1]}))+" svelte-gduhqw"),T(r,"height",`${i[0].strokeLength}px`),y(t,"class",l=Te(Ke.default("item-label-item",{fold:i[0].isFold}))+" svelte-gduhqw"),T(t,"z-index",i[0].zIndex),T(t,"transform",i[0].transform)},m(A,v){M(A,t,v),j(t,e),m.m(e,null),j(t,s),j(t,r),c||(u=ge(e,"click",i[4]),c=!0)},p(A,[v]){h===(h=d(A,v))&&m?m.p(A,v):(m.d(1),m=h(A),m&&(m.c(),m.m(e,null))),v&1&&o!==(o=Te(Ke.default("item-label-item__text-wrap",{"item-label-item__custom":Boolean(typeof A[0].render=="function")}))+" svelte-gduhqw")&&y(e,"class",o),v&1&&T(e,"bottom",`${A[0].strokeLength}px`),v&2&&a!==(a=Te(Ke.default("item-label-item__bar",{anchor:A[1]}))+" svelte-gduhqw")&&y(r,"class",a),v&1&&T(r,"height",`${A[0].strokeLength}px`),v&1&&l!==(l=Te(Ke.default("item-label-item",{fold:A[0].isFold}))+" svelte-gduhqw")&&y(t,"class",l),v&1&&T(t,"z-index",A[0].zIndex),v&1&&T(t,"transform",A[0].transform)},i:U,o:U,d(A){A&&S(t),m.d(),c=!1,u()}}}function ap(i,t,e){let{itemLabel:n}=t,{hooks:o}=t,{anchorEnabled:s}=t,{onIconClick:r}=t;function a(){o.emit("onLabelClick",n)}let l;function c(d){Ve[d?"unshift":"push"](()=>{l=d,e(3,l)})}const u=d=>r(n);return i.$$set=d=>{"itemLabel"in d&&e(0,n=d.itemLabel),"hooks"in d&&e(5,o=d.hooks),"anchorEnabled"in d&&e(1,s=d.anchorEnabled),"onIconClick"in d&&e(2,r=d.onIconClick)},i.$$.update=()=>{if(i.$$.dirty&9&&typeof n.render=="function"&&l&&l.children.length===0){const d=n.render(n);d&&l.appendChild(d)}},[n,s,r,l,a,o,c,u]}class lp extends oe{constructor(t){super(),ie(this,t,ap,rp,ne,{itemLabel:0,hooks:5,anchorEnabled:1,onIconClick:2},ip)}}const{Raycaster:cp,Vector3:f1}=k,Xs=(i,t,e,n)=>{const o=t.clone().sub(e).normalize(),s=new cp;s.set(e,o);const[r]=i.model.intersectRaycaster(s);return r&&r.distance+.01<n};var Dt=(i=>(i.SMALL="small",i.MIDLLE="middle",i.LARGE="large",i.EXTRA_LARGE="x-large",i))(Dt||{});const up=(i,t)=>{switch(t){case Dt.SMALL:return Math.ceil(-27.78*i+85);case Dt.MIDLLE:return Math.ceil(-38.9*i+130);case Dt.LARGE:return Math.ceil(-44.44*i+140);case Dt.EXTRA_LARGE:return Math.ceil(-92.59*i+300)}},dp=i=>`translate(${i[0]}px, ${i[1]}px)`;function Ys(i){return i.map(t=>Q({observerIndex:void 0,visible:!1,isFold:!1},t))}function hp(i){le(i,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function Us(i,t,e){const n=i.slice();return n[30]=t[e],n}function qs(i){let t,e;return t=new lp({props:{itemLabel:i[30],hooks:i[0],anchorEnabled:i[2],onIconClick:i[6]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o[0]&2&&(s.itemLabel=n[30]),o[0]&1&&(s.hooks=n[0]),o[0]&4&&(s.anchorEnabled=n[2]),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Js(i,t){let e,n,o,s=t[30].visible&&qs(t);return{key:i,first:null,c(){e=me(),s&&s.c(),n=me(),this.first=e},m(r,a){M(r,e,a),s&&s.m(r,a),M(r,n,a),o=!0},p(r,a){t=r,t[30].visible?s?(s.p(t,a),a[0]&2&&I(s,1)):(s=qs(t),s.c(),I(s,1),s.m(n.parentNode,n)):s&&(se(),L(s,1,1,()=>{s=null}),re())},i(r){o||(I(s),o=!0)},o(r){L(s),o=!1},d(r){r&&S(e),s&&s.d(r),r&&S(n)}}}function fp(i){let t,e=[],n=new Map,o,s,r=i[1];const a=l=>l[30].id;for(let l=0;l<r.length;l+=1){let c=Us(i,r,l),u=a(c);n.set(u,e[l]=Js(u,c))}return{c(){t=z("div");for(let l=0;l<e.length;l+=1)e[l].c();y(t,"class","item-labels-container svelte-gk8s47"),Oe(()=>i[12].call(t)),T(t,"opacity",i[5]?1:0)},m(l,c){M(l,t,c);for(let u=0;u<e.length;u+=1)e[u].m(t,null);o=fi(t,i[12].bind(t)),s=!0},p(l,c){c[0]&71&&(r=l[1],se(),e=qe(e,c,a,1,l,r,n,t,Pt,Js,null,Us),re()),c[0]&32&&T(t,"opacity",l[5]?1:0)},i(l){if(!s){for(let c=0;c<r.length;c+=1)I(e[c]);s=!0}},o(l){for(let c=0;c<e.length;c+=1)L(e[c]);s=!1},d(l){l&&S(t);for(let c=0;c<e.length;c+=1)e[c].d();o()}}}let mp=11;function pp(i,t,e){const{Raycaster:n,Vector3:o}=k;let{five:s}=t,{modelOcclusionEnable:r}=t,{itemLabels:a}=t,{hooks:l}=t,{displayStrategyType:c}=t,{maxVisibleDistance:u}=t,d=null,h=null,m=(s==null?void 0:s.currentMode)===Ce.Five.Mode.Panorama,A,v,p=[],g=!0;const b=(R,N)=>{const _=R.camera.position.clone(),$=new o(N.modelPosition[0],N.modelPosition[1],N.modelPosition[2]),Y=$.distanceTo(_);return u!==void 0&&R.state.mode===Ce.Five.Mode.Panorama&&Y>u?!1:Xs(R,$.clone().sub(_).normalize(),_,Y)},w=R=>{const{camera:N,model:_}=s,{x:$,y:Y,z:ae}=R.clone().project(N),he=($+1)/2,de=(2-(Y+1))/2,Ie=Math.abs(ae)<1&&[he,de].every(Me=>Me<1&&Me>=0);return Boolean(Ie)},P=(R,N)=>{const _=new o(N.modelPosition[0],N.modelPosition[1],N.modelPosition[2]),$=R.project2d(_),Y=$==null?void 0:$.x,ae=$==null?void 0:$.y;return[Y,ae]},x=(R,N)=>{const _=N.map(Y=>{if(R.state.panoIndex!==Y.panoIndex)return fe(Q({},Y),{visible:!1});const ae=P(R,Y);Y.name.length*mp;const he=up(Y.modelPosition[1],c),de=R.currentMode===Ce.Five.Mode.Panorama?w(new o(Y.position[0],Y.position[1],Y.position[2])):!0,pe=r?b(R,Y):!1,Pe=de&&!pe;if(!Pe)return fe(Q({},Y),{visible:Pe});p.push(ae);const Ie=dp(ae);return fe(Q({},Y),{visible:Pe,transform:Ie,strokeLength:he})}),$=_.filter(({visible:Y})=>Y).map(Y=>({itemLabelItem:Y,distance:new o(Y.modelPosition[0],Y.modelPosition[1],Y.modelPosition[2]).clone().distanceTo(R.camera.position)})).sort((Y,ae)=>Y.distance-ae.distance);return _.map(Y=>{const ae=$.findIndex(he=>he.itemLabelItem.id===Y.id);return ae!==void 0?fe(Q({},Y),{zIndex:ae*10}):Y})},C=()=>{p=[],e(1,h=x(s,h))},D=()=>{e(5,g=!1),E()},E=vl(()=>{e(5,g=!0),C()},300),O=()=>{s.once("renderFrame",C)},G=()=>{window.addEventListener("resize",O,!1)},X=()=>{d!==a&&(e(1,h=Ys(a)),d=a,C())},H=(R,N)=>{let _=[];for(let Y=0;Y<N.length;Y++){const{position:ae,panoIndex:he}=N[Y],de=R.distanceTo(ae);(u===void 0||de<=u||s.state.mode!==Ce.Five.Mode.Panorama)&&_.push({panoIndex:he,obVector:ae,distance:de})}_=_.sort((Y,ae)=>Y.distance-ae.distance);let $;for(let Y=0;Y<_.length;Y++){const{obVector:ae,distance:he,panoIndex:de}=_[Y];if(!Xs(s,R,ae,he)){$=de;break}}return typeof $=="number"?N[$]:void 0},B=R=>{if(s.state.mode===Ce.Five.Mode.Panorama)return;const N=s.work.observers,_=new o().fromArray(R.position),$=H(_,N);if($&&(R.observerIndex=$.panoIndex),typeof R.observerIndex=="number"){const Y=N[R.observerIndex],ae=_.clone().sub(Y.position).normalize(),he={longitude:Math.PI+Math.atan2(ae.x,ae.z),latitude:Math.acos(ae.y/ae.length())-Math.PI/2};s.setState(fe(Q({},he),{mode:Ce.Five.Mode.Panorama,panoIndex:R.observerIndex})),s.once("initAnimationEnded",()=>{e(1,h=h.map(de=>fe(Q({},de),{isFold:de.id!==R.id}))),s.once("cameraUpdate",()=>{e(1,h=h.map(de=>fe(Q({},de),{isFold:!1})))})})}};za(()=>{X()}),Ue(()=>{e(1,h=Ys(a)),d=a,C(),G(),s.on("cameraUpdate",D)}),Et(()=>{s.off("cameraUpdate",D),window.removeEventListener("resize",O,!1)});function F(){A=this.clientWidth,v=this.clientHeight,e(3,A),e(4,v)}return i.$$set=R=>{"five"in R&&e(7,s=R.five),"modelOcclusionEnable"in R&&e(8,r=R.modelOcclusionEnable),"itemLabels"in R&&e(9,a=R.itemLabels),"hooks"in R&&e(0,l=R.hooks),"displayStrategyType"in R&&e(10,c=R.displayStrategyType),"maxVisibleDistance"in R&&e(11,u=R.maxVisibleDistance)},[l,h,m,A,v,g,B,s,r,a,c,u,F]}class gp extends oe{constructor(t){super(),ie(this,t,pp,fp,ne,{five:7,modelOcclusionEnable:8,itemLabels:9,hooks:0,displayStrategyType:10,maxVisibleDistance:11},hp,[-1,-1])}}function Ap(i){return i.item_labels.map(t=>fe(Q({},t),{modelPosition:[t.position[0],t.position[1],t.position[2]],observerIndex:void 0}))}const vp=void 0,bp=(i,t)=>{var h,m,A,v;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:!0,itemLabels:[],wrapper:null,app:void 0,hooks:new Ce.Subscribe,modelOcclusionEnable:(h=t==null?void 0:t.modelOcclusionEnable)!=null?h:!0,onlyVisibleInPanorama:(m=t==null?void 0:t.onlyVisibleInPanorama)!=null?m:!0,displayStrategyType:(A=t==null?void 0:t.displayStrategyType)!=null?A:Dt.SMALL,maxVisibleDistance:(v=t==null?void 0:t.maxVisibleDistance)!=null?v:vp};e.container.setAttribute("class","item-label-plugin-container"),e.container.style.cssText=`
524
524
  position: absolute;
525
525
  left: 0;
526
526
  top: 0;
527
527
  width: 100%;
528
528
  height: 100%;
529
529
  z-index: 5;
530
- `,e.container.style.pointerEvents="none";const n=p=>(e.wrapper=p,p.appendChild(e.container),l(),!0),o=p=>{e.itemLabels=vp(p),l()},s=()=>(e.enabled||(e.enabled=!0,l()),!0),r=()=>(e.enabled&&(e.enabled=!1,l()),!0),a=()=>{u(),e.container.remove()},l=()=>{var p;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(p=e.app)==null||p.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:i,itemLabels:e.itemLabels}):e.app=new Ap({target:e.container,props:{five:i,modelOcclusionEnable:e.modelOcclusionEnable,onlyVisibleInPanorama:e.onlyVisibleInPanorama,itemLabels:e.itemLabels,wrapper:e.wrapper,hooks:e.hooks,displayStrategyType:e.displayStrategyType,maxVisibleDistance:e.maxVisibleDistance}})}},c=()=>{i.on("modeChange",d),i.once("dispose",a)},u=()=>{i.off("modeChange",d)},d=p=>{if(p!==Ce.Five.Mode.Panorama){e.fiveModeEnabled=!1,r();return}i.once("initAnimationEnded",()=>{e.fiveModeEnabled=!0,s()})};return c(),{appendTo:n,load:o,enable:s,disable:r,dispose:a,hooks:e.hooks}},wp={name:"ItemLabelPlugin",version:0};class Cp extends In{constructor(e){super(e);f(this,"state");f(this,"container");f(this,"enabled");this.five=e,this.five.once("dispose",this.dispose),this.enabled=!0,this.state=this.initState()}enable(e){this.enabled=!0,this.updateState(fe(Q({},e),{userAction:!0}))}disable(e){this.enabled=!1,this.updateState(fe(Q({},e),{userAction:!0}))}show(e){if(!!this.state.enabled)return this.setState(fe(Q({},this.state),{visible:!0}),e),Promise.resolve()}hide(e){if(!!this.state.enabled)return this.setState(fe(Q({},this.state),{visible:!1}),e),Promise.resolve()}dispose(){this.container.remove()}setState(e,n){if(!this.enabled)return;const o=Q({},this.state);this.state=Q(Q(Q({},this.state),e),n),this.stateChangedCallback(o,n)}get visible(){return this.five.state.mode===Ce.Five.Mode.Panorama}appendTo(e){!this.enabled||(this.container=e,this.render())}updateState(e){this.setState(fe(Q({},this.state),{enabled:this.enabled,visible:this.visible}),e)}}function Ep(i){le(i,"svelte-wpy7pz",'.plugin-DoorLabelPlugin-item.svelte-wpy7pz.svelte-wpy7pz{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz{position:absolute;top:50%;left:50%;border-radius:0.125rem;background:rgba(0, 0, 0, 0.35);line-height:0.75rem;padding:0.375rem;white-space:nowrap;font-size:0.75rem;font-style:normal;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform ease 1s, background ease 0.3s, color ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz::after{content:"";display:block;position:absolute;top:-0.0625rem;left:-0.0625rem;bottom:-0.0625rem;right:-0.0625rem;border-radius:0.125rem;border:0.0625rem solid rgba(0, 0, 0, 0);-o-border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;transition:opacity ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-wpy7pz.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg") no-repeat;background-size:100%;display:inline-block;width:0.625rem;height:0.625rem;margin-left:0.25rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}')}function Pp(i){let t,e,n,o,s,r,a,l;return{c(){t=z("div"),e=z("div"),n=z("span"),n.textContent=`${i[8]}`,o=ee(),s=z("i"),y(n,"class","plugin-DoorLabelPlugin-txt svelte-wpy7pz"),y(s,"class","plugin-DoorLabelPlugin-icon svelte-wpy7pz"),y(e,"class",r=Te(Ke.default("plugin-DoorLabelPlugin-cnt",i[0].toward))+" svelte-wpy7pz"),y(e,"style",`transform: ${i[6]||"initial"};pointer-events: ${i[5]?"auto":"none"};opacity: ${i[5]?1:0}`),y(e,"data-camera-toward",i[7]),y(t,"style",`left: ${i[3]||0}%;top: ${i[4]||0}%;opacity: ${i[5]?1:0}`),y(t,"class","plugin-DoorLabelPlugin-item svelte-wpy7pz")},m(c,u){M(c,t,u),j(t,e),j(e,n),j(e,o),j(e,s),i[10](t),a||(l=ge(e,"click",i[9]),a=!0)},p(c,[u]){u&1&&r!==(r=Te(Ke.default("plugin-DoorLabelPlugin-cnt",c[0].toward))+" svelte-wpy7pz")&&y(e,"class",r)},i:U,o:U,d(c){c&&S(t),i[10](null),a=!1,l()}}}function Ip(i,t,e){let{props:n}=t,{onClick:o}=t,s,{left:r,top:a,inSight:l,transform:c,panoIndex:u,cameraToward:d,name:h}=n;const m=()=>{if(!r||!a||!l||!s)return;const p=s.current.clientWidth/window.innerWidth*100,g=s.current.clientHeight/window.innerHeight*100;r<=p/2||r>=100-p/2||a<=g/2||a>=100-g/2},A=p=>{o&&o()};function v(p){Ve[p?"unshift":"push"](()=>{s=p,e(2,s)})}return i.$$set=p=>{"props"in p&&e(0,n=p.props),"onClick"in p&&e(1,o=p.onClick)},m(),[n,o,s,r,a,l,c,d,h,A,v]}class kp extends oe{constructor(t){super(),ie(this,t,Ip,Pp,ne,{props:0,onClick:1},Ep)}}function xp(i,t){const e=Math.abs(i.top+i.height/2-t.top-t.height/2),n=Math.abs(i.left+i.width/2-t.left-t.width/2),o=(i.height+t.height)/2,s=(i.width+t.width)/2;return!(e>o&&n>s)}function Dp(i){const{camera:t}=i,e=t.getWorldDirection(new V.Vector3);let n=Math.atan(e.z/e.x)*180/Math.PI,o="";return e.x<0&&(n+=180),n<0&&(n+=360),n>315||n<=45?o="right":n>45&&n<=135?o="back":n>135&&n<=225?o="left":n>225&&n<=315&&(o="forward"),o}function Lp(i,t){return Math.sqrt(Math.pow(i.z-t.z,2)+Math.pow(i.x-t.x,2))}function Sp(i){const t=Math.PI/4;return i>-t&&i<=t?"left":i>t*3||i<=-t*3?"right":i>-t*3&&i<=-t?"forward":i>t&&i<=t*3?"back":""}const Mp={userAction:!0};class Tp extends Cp{constructor(e){super(e);f(this,"MinVisibledistance",1.8);f(this,"MaxVisibledistance",5);f(this,"OffsetHeight",-1.3);f(this,"rooms");f(this,"floorplanServerData");f(this,"doorLabelItems");f(this,"visibleLabelMap",new Map);f(this,"labelItems",[]);f(this,"doorLabels");f(this,"roomObservers");f(this,"loadData",(e,n)=>{n&&(this.MaxVisibledistance=n.MaxVisibledistance,this.MinVisibledistance=n.MinVisibledistance,this.OffsetHeight=n.OffsetHeight),this.doorLabelItems&&this.doorLabelItems.length>0&&this.doorLabelItems.forEach(o=>{o.$destroy()}),this.labelItems=[],this.doorLabels=[],this.doorLabelItems=[],this.floorplanServerData=e,typeof this.five.ready=="function"?this.five.ready().then(()=>this.initData()):this.five.once("panoArrived",()=>{this.initData()})});f(this,"initRoomObservers",()=>{var s,r;const e=this.floorplanServerData.computed_data.floor_datas||[],o=(((r=(s=this.five)==null?void 0:s.work)==null?void 0:r.observers)||[]).map(a=>{const l=a.panoIndex,c=a.floorIndex,u=e==null?void 0:e.find(d=>d.floor_index===c);if(u){const d=u.rooms.find(h=>h.observer_indexs.includes(l));if(d)return{panoIndex:l,floorIndex:c,name:d.name}}}).filter(Boolean);this.roomObservers=o});f(this,"hideAllLabels",()=>{this.labelItems.forEach(e=>{e.visible=!1,e.inSight=!1}),this.render()});f(this,"fixDoorVisibleAndPosition",()=>{this.initRoomObservers();const{panoIndex:e}=this.five;if(!this.visible||this.five.model.empty||e===null||!this.roomObservers.find(a=>a.panoIndex===e))return;const n=this.roomObservers.find(a=>a.panoIndex===e),s=this.five.work.observers.find(a=>a.panoIndex===e).position.clone(),r=(()=>{if(this.visibleLabelMap.has(e))return this.visibleLabelMap.get(e);{const a=[];return this.doorLabels.forEach((l,c)=>{if(l.roomName===n.name)return;const u=l.position.clone(),d=u.distanceTo(s);if(d<this.MinVisibledistance||d>this.MaxVisibledistance)return;const h=new V.Raycaster,m=u.clone().sub(s).normalize();h.set(s,m);const[A]=this.five.model.intersectRaycaster(h);A&&A.distance+.1<d||a.push(c)}),this.visibleLabelMap.set(e,a),a}})();this.labelItems.forEach((a,l)=>{a.visible=r.includes(l)}),this.fixDoorPosition()});f(this,"fixDoorPosition",()=>{var u,d,h,m,A,v,p,g,b,w,x,k;const{panoIndex:e,camera:n}=this.five;if(e===null)return;if(this.five.currentMode!=="Panorama")return this.hideAllLabels();const o=this.five.getElement(),s=o.clientWidth,r=o.clientHeight,a=n.getWorldDirection(new V.Vector3),l=[],c=[...this.labelItems];if(c.forEach((C,D)=>{if(C.visible){const E=n.position.distanceTo(C.position),O=C.position.clone().add(new V.Vector3(0,this.OffsetHeight,0)),X=O.clone().sub(n.position).normalize().angleTo(a),H=O.clone().project(n),B=(H.x+1)/2.2*100,F=(-H.y+1)/2.2*100,R=B>=0&&B<=100&&F>=0&&F<=100&&E>this.MinVisibledistance&&E<=this.MaxVisibledistance;C.left=B,C.top=F,C.inSight=R&&X<Math.PI/2,C.cameraToward=Dp(this.five),R?l.push({disFromCameraToLabel:E,left:B,top:F,index:D}):C.transform="translate(-50%, -50%)"}else C.inSight=!1}),l.length>1){let C=0;l.sort((D,E)=>E.disFromCameraToLabel-D.disFromCameraToLabel);for(let D=1;D<l.length;D++){const{index:E,left:O,top:G}=l[D-1],{index:X,left:H,top:B}=l[D],F=this.container.children[E],R=this.container.children[X];if(!F||!R)return;const N={left:s*O/100,top:r*G/100,width:(h=(d=(u=F.children)==null?void 0:u[0])==null?void 0:d.clientWidth)!=null?h:0,height:(v=(A=(m=F.children)==null?void 0:m[0])==null?void 0:A.clientHeight)!=null?v:0},_={left:s*H/100,top:r*B/100,width:(b=(g=(p=R.children)==null?void 0:p[0])==null?void 0:g.clientWidth)!=null?b:0,height:(k=(x=(w=R.children)==null?void 0:w[0])==null?void 0:x.clientHeight)!=null?k:0};xp(N,_)&&(C++,c[E].transform=`translate(-50%, ${(C-1)*100-50}%)`,c[X].transform=`translate(-50%, ${C*100-50}%)`)}}this.labelItems=c,this.render()});f(this,"onClick",(e,n)=>{if(!this.roomObservers)return;const{work:o}=this.five;let s,r,a=1/0;for(const l of o.observers)if(this.roomObservers.find(u=>u.panoIndex===l.panoIndex&&u.name===e)){const u=l.standingPosition,d=n.distanceTo(u);d<a&&(s=l.panoIndex,r=u.clone().sub(n).normalize(),a=d)}if(r!==null&&s!==null){const l={};if(a>0){const u=new V.Vector3(0,0,-1),d=r.clone(),h=new V.Quaternion;h.setFromUnitVectors(u,d);const m=new V.Euler;m.setFromQuaternion(h,"YXZ"),l.longitude=m.y}this.five.emit("wantsToMoveToPano",s,{},!0)||this.five.moveToPano(s,{longitude:l.longitude})}});f(this,"initData",()=>{var s;this.doorLabels=[];const e=this.five.panoIndex,n=this.floorplanServerData.computed_data.observers[e].floor_index,o=n!==void 0&&((s=this.floorplanServerData.computed_data.floor_datas[n])==null?void 0:s.rooms);this.rooms=o,this.rooms&&this.rooms.length>0&&this.rooms.forEach(r=>{var c;const a=(c=this.floorplanServerData.computed_data.doors)==null?void 0:c.filter(u=>!!(u&&u.name===r.name)),l=this.five.work.observers.filter((u,d)=>!!r.observer_indexs.find(h=>h===d));a&&a.forEach(u=>{const d=u.position;let h=1/0,m;l.forEach(v=>{const p=v.standingPosition,g={x:p.x,y:p.y,z:p.z},b=Lp(d,g);b<h&&(h=b,m=g)}),m&&(d.y=m.y+.01);const A=new V.Vector3(d.x,d.y,d.z);A.add(new V.Vector3(-.2,1.8,0).applyEuler(new V.Euler(0,u.rad,0))),this.doorLabels.push({roomName:r.name,name:u.name,position:A,toward:Sp(u.rad)})})}),this.labelItems=this.doorLabels.map(r=>fe(Q({},r),{left:0,top:0,visible:!1,inSight:!1,transform:"",cameraToward:""})),this.five.on("wantsToMoveToPano",this.hideAllLabels),this.five.on("modelLoaded",this.fixDoorVisibleAndPosition),this.five.on("panoArrived",this.fixDoorVisibleAndPosition),this.five.on("initAnimationEnded",this.fixDoorPosition),this.five.on("cameraUpdate",this.fixDoorPosition),this.five.on("mouseWheel",this.fixDoorPosition),this.five.on("pinchGesture",this.fixDoorPosition),this.fixDoorVisibleAndPosition()})}stateChangedCallback(e,n){if(this.hooks.hasListener("stateChange")){const o={state:this.state,prevState:e,userAction:n?n.userAction:Mp.userAction};this.hooks.emit("stateChange",o)}}render(){if(!this.enabled){this.doorLabelItems&&this.doorLabelItems.length>0&&this.doorLabelItems.forEach(e=>{e==null||e.$destroy()}),this.doorLabels=void 0;return}this.doorLabelItems&&this.doorLabelItems.forEach(e=>{e.$destroy()}),this.doorLabelItems=[],this.labelItems.forEach(e=>{this.doorLabelItems.push(new kp({target:this.container,props:{props:e,onClick:()=>{this.onClick(e.name,e.position)}}}))})}initState(){return{enabled:!0,visible:!0}}dispose(){this&&this.five&&(this.five.off("wantsToMoveToPano",this.hideAllLabels),this.five.off("modelLoaded",this.fixDoorVisibleAndPosition),this.five.off("panoArrived",this.fixDoorVisibleAndPosition),this.five.off("initAnimationEnded",this.fixDoorPosition),this.five.off("cameraUpdate",this.fixDoorPosition),this.five.off("mouseWheel",this.fixDoorPosition),this.five.off("pinchGesture",this.fixDoorPosition),super.dispose())}}const zp=i=>new Tp(i),Bp=2,jp=3,Vp=3,Op=2;function Rp(i,t){var r,a,l;if(i.length<2)return console.warn("positionList length must be greater than 1"),[];const e=(r=t==null?void 0:t.unitWidth)!=null?r:.5,n=(a=t==null?void 0:t.unitHeight)!=null?a:.5,o=(l=t==null?void 0:t.skipPanoIndexMesh)!=null?l:!1,s=new I.CatmullRomCurve3(i,!1,"catmullrom",1);if(o){const c=Math.ceil(s.getLength()/n*1.5),u=s.getPoints(c),d=[];let h=0;const m=i;return m.forEach((A,v)=>{let p=0,g=99999999;u.forEach((C,D)=>{const E=C.distanceTo(A);E<g&&(p=D,g=E)});const b=u[p+1],w=b==null?void 0:b.distanceTo(A),x=u[p-1],k=x==null?void 0:x.distanceTo(A);if(p>h&&p-h>1){let C=p;x!==void 0&&k>.8&&(C=p+1),x!==void 0&&k>.2&&k<.3?C=p:g>.2&&g<.3&&(C=p+1);let D=h;if(b!==void 0&&w>.2&&w<.3?D=h+1:g>.2&&g<.3&&(D=h),u[D]&&u[D+1]){const G=m[v-1];if(G)if(G.equals(u[D]))D+=1;else{const X=new V.Vector3().subVectors(u[D+1],u[D]),H=new V.Vector3().subVectors(G,u[D]);X.angleTo(H)<Math.PI/2&&(D+=1)}}if(C<D||C-D<=1)return;const E=u.slice(D,C),O=Zs(E,e,n);d.push(O),h=p}}),d}else{const c=Math.ceil(s.getLength()),u=s.getPoints(c);return[Zs(u,e,n)]}}function Zs(i,t,e){const n=t/2,o=e/t,s=i.length,r=vc.default(i.map(g=>[g.x,g.z])),l=(i.length-1)*Bp*jp,c=2*s,u=c*Vp,d=c*Op,h=new Uint32Array(l),m=new Float32Array(u),A=new Float32Array(d);i.forEach((g,b)=>{});let v=0;for(let g=0;g<i.length;g++){const[b,w]=r[g][0],x=i[g],{x:k,y:C,z:D}=x,E=new V.Vector3(k+b*n,C+.05,D+w*n);m[g*6+0]=E.x,m[g*6+1]=E.y,m[g*6+2]=E.z;const O=new V.Vector3(k-b*n,C+.05,D-w*n);m[g*6+3]=O.x,m[g*6+4]=O.y,m[g*6+5]=O.z,v+=g>0?i[g-1].clone().sub(i[g]).length():0;const G=v/t/o;A[g*4+0]=0,A[g*4+1]=G,A[g*4+2]=1,A[g*4+3]=G,g!==i.length-1&&(h[g*6+0]=g*2+0,h[g*6+1]=g*2+2,h[g*6+2]=g*2+1,h[g*6+3]=g*2+2,h[g*6+4]=g*2+3,h[g*6+5]=g*2+1)}const p=new I.BufferGeometry;return p.setAttribute("position",new I.BufferAttribute(m,3)),p.setAttribute("uv",new I.BufferAttribute(A,2)),p.setIndex(new I.BufferAttribute(h,1)),p}function Qp(i){const t=new I.TextureLoader().load(i.textureUrl);return t.wrapS=t.wrapT=I.RepeatWrapping,t.encoding=I.sRGBEncoding,t.minFilter=I.LinearFilter,new I.MeshBasicMaterial({color:16777215,map:t,transparent:!0,opacity:.8})}function Fp(i){return!yt(i)}function yt(i){return i!=null}const bl="v1.1.0",yl="GuideLinePlugin",io=`${yl}@${bl}`,Ks=i=>`${io}--${i}`;class wl extends zt{constructor(e,n){super(e,n);f(this,"state",{visible:!1,enabled:!0,disposed:!1});f(this,"data");f(this,"linesGroup");f(this,"disposedErrorLog",()=>{console.error(`${io} is disposed`)});f(this,"actionWhenEnabled",e=>{if(this.state.enabled)return e()});Object.assign(window,{[`__${yl}_DEBUG__`]:this})}load(e,n,o=!0){return W(this,null,function*(){const s=this.data?JSON.parse(JSON.stringify(this.data)):void 0,r=yield this.formatData(e);this.hooks.emit("dataChange",r,s),this.data=r,this.linesGroup&&this.five.scene.remove(this.linesGroup);const a=this.getLinesGroup(r.routes,r.config);!a||(this.linesGroup=a,yield this.waitFiveModelLoaded(),this.five.scene.add(a),this.handleVisible(this.state.visible),this.handleEnable(this.state.enabled),n&&this.setState(n),this.five.needsRender=!0,this.hooks.emit("dataLoaded",r),console.info(`${io} loaded`,r))})}formatData(e){return W(this,null,function*(){return typeof e=="object"&&e!==null&&e.version&&e.data?e.data:e})}show(e){return W(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return W(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,n){var s;if(this.state.disposed)return this.disposedErrorLog();const o=Q({},this.state);this.state=Q(Q({},this.state),e),e.disposed!==void 0&&e.disposed!==o.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==o.visible&&this.handleVisible(e.visible,n==null?void 0:n.userAction),e.enabled!==void 0&&e.enabled!==o.enabled&&this.handleEnable(e.enabled,n==null?void 0:n.userAction),et(o,this.state,{deep:!0})||(this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:(s=n==null?void 0:n.userAction)!=null?s:!0}),this.five.needsRender=!0)}handleEnable(e,n=!0){this.linesGroup&&(e?(this.five.scene.add(this.linesGroup),this.actionWhenEnabled(()=>this.hooks.emit("enable",{userAction:n}))):(this.five.scene.remove(this.linesGroup),this.hooks.emit("disable",{userAction:n})))}handleVisible(e,n=!0){this.linesGroup&&(e?(this.linesGroup.visible=!0,this.actionWhenEnabled(()=>this.hooks.emit("show",{userAction:n}))):(this.linesGroup.visible=!1,this.actionWhenEnabled(()=>this.hooks.emit("hide",{userAction:n}))))}handleDispose(){this.linesGroup&&this.five.scene.remove(this.linesGroup),this.hooks.emit("dispose")}getLinesGroup(e,n){const o=e.map(r=>this.getLine(r,n)).filter(yt),s=new I.Group;if(s.name=Ks("route-group"),o.length!==0)return s.add(...o),s}getLine(e,n){var l,c,u,d,h,m,A,v;const o=new I.Group,s=e.panoIndexList.map(p=>{var g;return(g=this.five.work.observers[p])==null?void 0:g.standingPosition}).filter(yt),r=Rp(s,{skipPanoIndexMesh:(c=(l=e.skipPanoIndexMesh)!=null?l:n==null?void 0:n.skipPanoIndexMesh)!=null?c:!0,unitWidth:(d=(u=e.unitWidth)!=null?u:n==null?void 0:n.unitWidth)!=null?d:.6,unitHeight:(m=(h=e.unitHeight)!=null?h:n==null?void 0:n.unitHeight)!=null?m:.4});if(!r)return;const a=Qp({textureUrl:(v=(A=e.arrowTextureUrl)!=null?A:n==null?void 0:n.arrowTextureUrl)!=null?v:this.staticPrefix+"/release/web/arrow6.b6ce0c62.png"});return r.forEach(p=>{const g=new I.Mesh(p,a);g.name=Ks("route-line-mesh"),o.add(g)}),o}waitFiveModelLoaded(){return W(this,null,function*(){return new Promise(e=>{if(this.five.model.loaded){e();return}this.five.once("modelLoaded",()=>{e()})})})}}f(wl,"lasestVersion",bl);const Cl=(i,t)=>new wl(i,t);function $s(i){const t=Math.abs(Math.cos(i.latitude));return new I.Vector3(-Math.sin(i.longitude)*t,-Math.sin(i.latitude),-Math.cos(i.longitude)*t)}function Hp(i,t){const e=$s(i),n=$s(t);return e.angleTo(n)}const _p=i=>W(exports,null,function*(){try{i().then(()=>{},()=>{}).catch(()=>{})}catch(t){}}),Gn=Math.PI*2;function Gp(i){return i>=0&&i<Gn?i:(i%Gn+Gn)%Gn}function Wp(i){return{longitude:Gp(-Math.atan2(i.x,-i.z)),latitude:-Math.asin(i.y/1)}}function Np(i,t,e,n){const o=-i/e,s=i;return o*n+s}function Xp(i){return new Promise(t=>{setTimeout(()=>{t()},i)})}const El="v1.0.6",Pl="CruisePlugin",Ei=`${Pl}@${El}`,er=()=>{console.error(`${Ei} is disposed`)},Yp=()=>{console.warn(`${Ei} is disabled`)},Up=()=>{console.error(`${Ei} is disabled`)},Ri=new Map;class wo extends zt{constructor(e,n){super(e,n);f(this,"state",{visible:!0,enabled:!0,disposed:!1,playing:!1,speed:1,config:{speedConfig:{rotateSpeed:.001,rotateSpeedUnit:"rad/ms",moveSpeed:.002,moveSpeedUnit:"m/ms"}}});f(this,"data");f(this,"config");f(this,"privateState",{playing:!1,currentPlayQueue:[],currentPlayKeyframe:null,broke:!1,disposers:[],modeChanging:!1});f(this,"GuideLine");this.config=n,Object.assign(window,{[`__${Pl}_DEBUG__`]:this});const o=this.setFiveLinearUpdateCamera.bind(this),s=this.setFiveOriginUpdateCamera.bind(this);this.hooks.on("play",o),this.hooks.on("broke",s),this.hooks.on("end",s),this.hooks.on("pause",s),this.privateState.disposers.push(()=>{this.hooks.off("play",o),this.hooks.off("broke",s),this.hooks.off("end",s),this.hooks.off("pause",s)})}load(e,n,o){return W(this,null,function*(){var u,d,h,m,A;if(this.state.disposed)return er();this.privateState.fiveOriginGetProgress||(d=(u=this.five.controller)==null?void 0:u.cameraMotion)!=null&&d.getProgress||(yield this.waitFiveLoaded(),this.privateState.fiveOriginGetProgress=(m=(h=this.five.controller)==null?void 0:h.cameraMotion)==null?void 0:m.getProgress),this.clear();const s=this.data?JSON.parse(JSON.stringify(this.data)):void 0,r=yield this.formatData(e);this.data=r,this.hooks.emit("dataChange",r,s);let a=[],l;const c=this.data.keyframes.filter(v=>v.data.panoIndex!==void 0);c.filter((v,p)=>{var g;return v.data.panoIndex!==((g=c[p-1])==null?void 0:g.data.panoIndex)}).map(v=>v.data.panoIndex).forEach(v=>{var g,b;const p=(g=this.five.work.observers[v])==null?void 0:g.floorIndex;if(p!==void 0)if(l===p){const w=a.length-1;a[w]=[...(b=a[w])!=null?b:[],v]}else{l=p;const w=a.length;a[w]=[v]}}),this.GuideLine||(this.GuideLine=Cl(this.five,this.config)),(A=this.GuideLine)==null||A.load({routes:a.map(v=>({panoIndexList:v})),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(`${Ei} loaded`,r),this.hooks.emit("dataLoaded",r)})}play(e){this.setState({playing:!0},e)}playFrom(e){const{index:n,id:o,userAction:s}=e;this.state.playing&&this.setState({playing:!1},{userAction:s}),this.setState({playing:!0},{userAction:s,playFromIndex:n,playFromId:o})}playFromStart(e){return this.playFrom(fe(Q({},e),{index:0}))}pause(e){this.setState({playing:!1},e)}show(e){return W(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return W(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,n){var s;if(this.state.disposed)return er();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return Up();const o=Q({},this.state);this.state=Q(Q({},this.state),e),e.disposed!==void 0&&e.disposed!==o.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==o.visible&&this.handleVisible(e.visible,n==null?void 0:n.userAction),e.enabled!==void 0&&e.enabled!==o.enabled&&this.handleEnable(e.enabled,n==null?void 0:n.userAction),e.playing!==void 0&&e.playing!==o.playing&&this.changePlayState(e.playing,n),e.speed!==void 0&&e.speed!==o.speed&&this.changeSpeed(e.speed,n==null?void 0:n.userAction),et(o,this.state,{deep:!0})||this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:(s=n==null?void 0:n.userAction)!=null?s:!0})}formatData(e){return W(this,null,function*(){this.five.work||(yield this.waitFiveLoaded());const n=this.five.work.observers,o=(()=>{const s=e;return typeof s=="object"&&s!==null&&s.version&&s.data?s.data:s})();if(o.keyframes)return{keyframesId:_e(),keyframes:o.keyframes.map((s,r)=>{var c;const a=o.keyframes[r+1],l=(()=>!a||a.start===void 0||s.end===void 0?0:a.start-s.end)();return fe(Q({id:(c=s.uuid)!=null?c:_e(),moveIndex:r,stay:l,index:r},s),{guildPluginOptions:o.guildPluginOptions})})};if(o.panoIndexList){let s=[];const{moveEffect:r,moveToFirstPanoEffect:a,moveToFirstPanoDuration:l}=o;return this.privateState.moveToFirstPanoEffect=a,this.privateState.moveToFirstPanoDuration=l,o.panoIndexList.forEach((c,u)=>{const d=(()=>{var p,g,b,w;const h=o.panoIndexList.slice(u).find(x=>x!==c);if(h===void 0)return;const m=(p=n[c])==null?void 0:p.position,A=(g=n[h])==null?void 0:g.position;if(!A||!m||((b=n[c])==null?void 0:b.floorIndex)!==((w=n[h])==null?void 0:w.floorIndex))return;const v=new I.Vector3().subVectors(A,m);return Wp(v)})();o.moveType===void 0||o.moveType==="justMove"?s.push({moveIndex:u,stay:o.stay,data:Q({effect:"Move",panoIndex:c,moveEffect:r},d!=null?d:{})}):o.moveType==="moveAndRotate"&&(s.push({moveIndex:u,stay:o.stay,data:{effect:"Move",panoIndex:c,moveEffect:r}}),d&&s.push({moveIndex:u,stay:o.stay,data:Q({effect:"Rotate",panoIndex:c},d)}))}),{keyframesId:_e(),keyframes:s.map((c,u)=>Q({id:_e(),index:u},c)),guildPluginOptions:o.guildPluginOptions}}else throw new Error("format error: data no keyframes or no panoIndexList")})}handleEnable(e,n=!0){var o,s;e?((o=this.GuideLine)==null||o.enable(),this.hooks.emit("enable",{userAction:n})):((s=this.GuideLine)==null||s.disable(),this.changePlayState(!1,{userAction:n}),this.hooks.emit("disable",{userAction:n})),this.state.enabled=e}handleVisible(e,n=!0){var o,s;e?((o=this.GuideLine)==null||o.show(),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:n}))):((s=this.GuideLine)==null||s.hide(),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:n}))),this.state.visible=e}changePlayState(e,n){this.actionIfStateIsEnabled(()=>{var o;return this.hooks.emit("playStateChange",e?"playing":"pause",{userAction:(o=n==null?void 0:n.userAction)!=null?o:!0})}),e?this.handlePlay(n):this.handlePause(n),this.state.playing=e}handlePlay(e){return W(this,null,function*(){var m;const{data:n,state:o,privateState:s,hooks:r}=this;if(s.playing||!(n!=null&&n.keyframes)||(n==null?void 0:n.keyframes.length)===0)return;const a=_e();s.playId=a,s.playing=!0,s.broke=!1;const l=n.keyframes,c=this.getPauseData();(e==null?void 0:e.notEmitEvent)!==!0&&r.emit("play",{userAction:(m=e==null?void 0:e.userAction)!=null?m:!0});let u=!1;const h=yield(()=>W(this,null,function*(){var A,v;if((e==null?void 0:e.playFromIndex)!==void 0)return e.playFromIndex;if((e==null?void 0:e.playFromId)!==void 0)return(A=this.data)==null?void 0:A.keyframes.findIndex(p=>p.id===e.playFromId);if(c!=null&&c.keyframeId){const p=(v=this.data)==null?void 0:v.keyframes.find(g=>g.id===c.keyframeId);if(c!=null&&c.fiveState&&(yield this.move(c.fiveState,{moveEffect:s.moveToFirstPanoEffect,duration:s.moveToFirstPanoDuration})),p){if(p.data.effect==="Move")return p.index;if(p.data.effect==="Rotate"){const g=c.duration!==void 0?c.duration*(1-c.playedProgress):void 0;return yield this.playKeyframe(p,{duration:g}),u=!0,p.index+1}}}}))();this.clearPauseData();for(const A of l){if(s.broke||!o.playing||!s.playing||a!==s.playId)return;if(!(h!==void 0&&A.index<h))try{r.emit("playIndexChange",A.index,A),yield this.playKeyframe(A,{moveEffect:u===!1?s.moveToFirstPanoEffect:void 0,duration:u===!1&&typeof s.moveToFirstPanoDuration=="number"?s.moveToFirstPanoDuration:void 0}),A.stay&&(yield Xp(A.stay)),u===!1&&(u=!0)}catch(v){return Promise.resolve("broke")}}o.playing&&a===s.playId&&(this.setState({playing:!1},{userAction:!1}),r.emit("end"),this.clearPauseData())})}handlePause(e){var r;const{state:n,privateState:o,hooks:s}=this;n.playing=!1,o.playing!==!1&&(o.playing=!1,this.setPauseData(),o.broke||this.forceInteruptUpdateCamera(),(e==null?void 0:e.notEmitEvent)!==!0&&s.emit("pause",{userAction:(r=e==null?void 0:e.userAction)!=null?r:!0}))}playKeyframe(e,n){return W(this,null,function*(){var s;const{privateState:o}=this;return((s=this.privateState.currentPlayKeyframe)==null?void 0:s.keyframe.id)!==e.id&&(this.privateState.currentPlayKeyframe={keyframe:e}),o.currentPlayQueue.push(this.getPlayPromise(e,n)),this.actionPromiseQueue()})}addInterruptListener(e){const n=()=>{this.privateState.modeChanging||e()},o=e;return this.five.once("gesture",o),this.five.once("wantsChangeMode",n),()=>{this.five.off("gesture",o),this.five.once("wantsChangeMode",n)}}getPlayPromise(o){return W(this,arguments,function*(e,n={}){var r;const s=e.data;if(n.duration=(r=n.duration)!=null?r:e.start!==void 0&&e.end!==void 0?e.end-e.start:void 0,!!s)return new Promise((a,l)=>{let c=!1;this.addInterruptListener(()=>{if(!c)return this.hooks.emit("broke"),this.privateState.broke=!0,this.setState({playing:!1}),c=!0,l(new Error("play is interupted"))});try{if(c)return;const u=()=>{a(),c=!0};switch(s.effect){case"Move":this.move(s,n).then(u);break;case"Rotate":this.rotate(s,n).then(u);break;default:this.rotate(s,n).then(u)}}catch(u){}})})}actionPromiseQueue(){return W(this,null,function*(){const{privateState:e}=this;return new Promise((n,o)=>{if(e.currentPlayQueue.length===0){n();return}const s=e.currentPlayQueue.shift();if(!s){n();return}s.then(n,o)}).then(()=>e.currentPlayQueue.length===0?Promise.resolve():this.actionPromiseQueue())})}move(e,n){return W(this,null,function*(){if(e.mode&&e.mode!==this.five.currentMode)yield this.changeMode(e);else if(e.panoIndex!==this.five.panoIndex)yield this.changePano(e,n);else return Promise.resolve()})}rotate(e,n){return W(this,null,function*(){if(e.mode&&e.mode!==this.five.currentMode)yield this.changeMode({mode:e.mode,panoIndex:e.panoIndex});else if(e.panoIndex&&e.panoIndex!==this.five.panoIndex)return yield this.changePano(e,n);yield this.updateCamera(e,n)})}updateCamera(o){return W(this,arguments,function*(e,n={}){const{five:s,privateState:r,state:a}=this,l=(()=>{var m,A;const d=(m=a.config)==null?void 0:m.speedConfig,h=(A=e.rotateSpeed)!=null?A:d==null?void 0:d.rotateSpeed;if((d==null?void 0:d.rotateSpeedUnit)===void 0)return h;if(h!==void 0)return d.rotateSpeedUnit==="rad/ms"?h:h/1e3})(),c=(()=>{if(n.duration)return n.duration;if(l){const d=this.five.getCurrentState();return Hp(d,e)/l}return 800})();r.currentPlayKeyframe&&(r.currentPlayKeyframe.originDuration=c);const u=this.getSpeededDuration(c);return new Promise(d=>{_p(()=>s.updateCamera(e,u)),setTimeout(()=>d(),u)})})}changePano(e,n){return W(this,null,function*(){const{five:o,privateState:s,state:r}=this;if(typeof e.panoIndex!="number"||e.panoIndex===o.panoIndex)return;const a=o.getCurrentState().mode!=="Panorama";a&&(this.privateState.modeChanging=!0);const l=(()=>{var h,m;const u=(h=r.config)==null?void 0:h.speedConfig,d=(m=e.moveSpeed)!=null?m:u==null?void 0:u.moveSpeed;if((u==null?void 0:u.moveSpeedUnit)===void 0)return d;if(d!==void 0)return u.moveSpeedUnit==="m/ms"?d:d/1e3})(),c=(()=>{if(n!=null&&n.duration)return n.duration;if(l&&typeof o.panoIndex=="number"&&typeof e.panoIndex=="number"){const u=o.work.observers[o.panoIndex].position,d=o.work.observers[e.panoIndex].position;return u.distanceTo(d)/l}return 800})();s.currentPlayKeyframe&&(s.currentPlayKeyframe.originDuration=c),yield new Promise(u=>{var d,h,m;o.moveToPano(e.panoIndex,{latitude:e.latitude,longitude:e.longitude,fov:e.fov,duration:this.getSpeededDuration(c),effect:(m=(h=n==null?void 0:n.moveEffect)!=null?h:(d=this.state.config)==null?void 0:d.moveEffect)!=null?m:e.moveEffect,moveCancelCallback:()=>u(),moveEndCallback:()=>u()}),a&&o.once("panoArrived",()=>u())}),a&&(this.privateState.modeChanging=!1)})}changeSpeed(e,n=!0){const{state:o,privateState:s,hooks:r}=this,{currentPlayKeyframe:a}=s;if(r.emit("speedChange",e,{userAction:n}),o.playing&&a)try{const l=a.originDuration!==void 0?a.originDuration*(1-this.getProgress()):void 0,c=this.playKeyframe(a.keyframe,{duration:l});s.currentPlayQueue.push(c)}catch(l){}}getSpeededDuration(e){return e/this.state.speed}getProgress(){return this.five.controller.cameraMotion.progress}changeMode(e,n){return W(this,null,function*(){e.mode&&e.mode!==this.five.currentMode&&(this.privateState.modeChanging=!0,yield this.five.changeMode(e.mode,e,n),this.privateState.modeChanging=!1)})}forceInteruptUpdateCamera(){this.five.updateCamera({},0)}getPauseData(){var e,n;if((e=this.data)!=null&&e.keyframesId)return Ri.get((n=this.data)==null?void 0:n.keyframesId)}setPauseData(){var e,n,o,s;if((e=this.data)!=null&&e.keyframesId)return Ri.set((n=this.data)==null?void 0:n.keyframesId,{keyframeId:(o=this.privateState.currentPlayKeyframe)==null?void 0:o.keyframe.id,fiveState:this.five.getCurrentState(),duration:(s=this.privateState.currentPlayKeyframe)==null?void 0:s.originDuration,playedProgress:this.getProgress()})}clearPauseData(){var e,n;if((e=this.data)!=null&&e.keyframesId)return Ri.delete((n=this.data)==null?void 0:n.keyframesId)}clear(){this.clearPauseData(),this.privateState.currentPlayKeyframe=null}handleDispose(){var e,n;this.setState({playing:!1}),this.clearPauseData(),this.clear(),(e=this.GuideLine)==null||e.dispose(),this.GuideLine=void 0,(n=this.privateState.disposers)==null||n.forEach(o=>o==null?void 0:o())}actionIfStateIsEnabled(e,n){if(this.state.enabled)return e();n!=null&&n.warnLog&&Yp()}waitFiveLoaded(){return W(this,null,function*(){return new Promise(e=>{if(this.five.work){e();return}this.five.once("loaded",()=>{e()})})})}setFiveLinearUpdateCamera(){!this.privateState.fiveOriginGetProgress||(this.five.controller.cameraMotion.getProgress=e=>{const n=this.five.controller.cameraMotion,o=e-n.startTime;return o<0?0:o>=n.duration?1:1-Np(1,n.startVelocity,n.duration,o)})}setFiveOriginUpdateCamera(){!this.privateState.fiveOriginGetProgress||(this.five.controller.cameraMotion.getProgress=this.privateState.fiveOriginGetProgress)}}f(wo,"PluginVersion",El);const qp=i=>new wo(i);function Jp(i,t){t.forEach(e=>{const n=new I.SphereGeometry(.02,16,16),o=[],s=[new I.MeshBasicMaterial({color:16776960}),new I.MeshBasicMaterial({color:16711935}),new I.MeshBasicMaterial({color:16711680}),new I.MeshBasicMaterial({color:65535})];if(e.position.length===4)e.position.forEach((r,a)=>{const l=s[a],c=new I.Mesh(n,l);c.position.copy(st(r)),o.push(c)});else{const r=s[0],a=new I.Mesh(n,r);a.position.copy(st(e.position)),o.push(a)}o.forEach(r=>{r.material.depthTest=!1,i.scene.add(r)})})}const De=i=>i;function oo(i){if(i.length<3)return;const t=i.map(yn),e=t[1].clone().sub(t[0]),n=t[2].clone().sub(t[1]);return e.cross(n)}function Zp(i){return i.stickType==="3DPoint"||i.stickType==="Plane"}function Fe(i){return i.stickType==="Model"&&i.contentType==="MediaModel"}function Co(i){if(!!i)if(Array.isArray(i)&&i.length===4){const e=i.map(yn);return hi(e[0],e[2])}else return yn(i)}function Il(i){if(Fe(i)&&i.matrix){const t=new V.Matrix4().fromArray(i.matrix),e=i.data.mediaPosition.map(n=>new V.Vector3().fromArray(n).applyMatrix4(t));return hi(e[0],e[2])}else return Co(i.position)}function dn(i,t){if(i===void 0)return;const{min:e,max:n}=t!=null?t:{};if(!(e===void 0&&n===void 0))return!(typeof n=="number"&&n<i||typeof e=="number"&&e>i)}function Kp(i){return new Promise(t=>{i.model.loaded?t():i.once("modelLoaded",()=>t())})}function $p(i,t,e){const o=new I.Plane().setFromNormalAndCoplanarPoint(e,t),s=t.clone().sub(i).cross(new I.Vector3(0,1,0)).setLength(.01),r=new I.Vector3(0,.01,0);return[t.clone().sub(s).sub(r),t.clone().add(s).sub(r),t.clone().add(s).add(r),t.clone().sub(s).add(r)].map(l=>o.projectPoint(l,new I.Vector3))}const tr=(i,t=1e3/60)=>{let e=null;const n=i;return(...s)=>{e&&clearTimeout(e),e=setTimeout(()=>{n==null||n(...s),e&&clearTimeout(e),e=null},t)}};function eg(i,t=200){let e;return function(...n){e||(i.apply(this,n),e=setTimeout(function(){e=null},t))}}function tg(i,t){const[e,n]=t;if(e>=n||n<=1||e<=1)return-1;const o={},s=r=>(o[r]||(o[r]=i(r)),o[r]);for(let r=e;r<n;r++){const a=s(r),l=s(r-1);if(a<l)return r}return-1}function nr(i,t){if(!t||typeof ResizeObserver=="undefined"||!ResizeObserver)return{observe:()=>window.addEventListener("resize",i),unobserve:()=>window.removeEventListener("resize",i)};{const e=new ResizeObserver(i);return{observe:()=>e.observe(t),unobserve:()=>e.unobserve(t)}}}function ng(i){var t,e,n,o;if(!i.stickType){const s=(()=>i.pointType==="PointTag"&&i.dimensionType==="3D"?"3DPoint":i.pointType==="PlaneTag"?"Plane":"2DPoint")();i.stickType=s}if(i.contentType==="VRLink"||i.contentType==="PanoLink"||i.contentType==="Link"){const s=i;!((e=(t=s.data)==null?void 0:t.icon)!=null&&e.url)&&!((o=(n=s.style)==null?void 0:n.point)!=null&&o.url)&&(s.data.icon={url:"//vrlab-static.ljcdn.com/release/web/test.09dee741.png",steps:28})}return i}const qt="data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasv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VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=",An={};var Eo=(i=>(i.Default="default",i.GetAudioDuration="getAudioDuration",i.PlayAudio="playAudio",i))(Eo||{});function ig(i,t){const e=(t==null?void 0:t.namespace)||"default",n=An[e]||(An[e]=[]);let o=n.find(s=>!s.realSrc||s.realSrc===qt);return o||(console.warn("\u672A\u627E\u5230\u7F13\u5B58\u97F3\u9891\uFF0C\u5DF2\u65B0\u5EFA",An),o=new kl(qt),n.push(o)),i&&(o.src=i),o}function og(i,t){const e=(t==null?void 0:t.namespace)||"default",n=An[e]||(An[e]=[]),o=i-n.length;if(!(o<=0))for(let s=0;s<o;s++)n.push(new kl(qt))}class kl extends Audio{constructor(e){super(e);f(this,"preload","auto");f(this,"crossOrigin","anonymous");f(this,"realSrc","");f(this,"inited",!1);f(this,"removeDocumentEventListener");this.realSrc=e!=null?e:"",this.muted=!0,super.autoplay=!0,super.addEventListener("ended",()=>{this.src=""});const n=()=>sg(this);document.addEventListener("click",n),document.addEventListener("touchend",n),this.removeDocumentEventListener=()=>{document.removeEventListener("click",n),document.removeEventListener("touchend",n)}}get isBlankAudio(){return this.realSrc===qt||!this.realSrc}get src(){return super.src}set src(e){super.src=e,this.realSrc=e,this.removeDocumentEventListener()}get muted(){return super.muted}set muted(e){super.muted=e}clear(){this.currentTime=0,this.src=qt}}function sg(i){!i||i.inited||(i.src&&(i.inited=!0,i.removeDocumentEventListener()),i.src===qt&&i.play())}class so{constructor(t=0,e=0){f(this,"min");f(this,"max");f(this,"isInterval",!0);this.min=t,this.max=e}fromArray(t){return this.min=t[0],this.max=t[1],this}isOverlap(t){return Math.min(this.max,t.max)<Math.max(this.min,t.min)}contains(t){return this.min<t.min&&this.max>t.max}}class rg{constructor(t,e){f(this,"min");f(this,"max");f(this,"xInterval");f(this,"yInterval");f(this,"isRectangle",!0);this.min=t,this.max=e,this.xInterval=new so(this.min.x,this.max.x),this.yInterval=new so(this.min.y,this.max.y)}isOverlapWithRectangle(t){return!this.xInterval.isOverlap(t.xInterval)&&!this.yInterval.isOverlap(t.yInterval)}containsRect(t){return this.xInterval.contains(t.xInterval)&&this.yInterval.contains(t.yInterval)}}function Wn(i,t,e){const n=i[t],o=i[e];!n||!o||(i[t]=o,i[e]=n)}function ag(i,t,e){const n=e/2;for(let o=1;o<=n;o++){const s=e-(o-1);for(let r=1;r<=t;r++){const a=(o-1)*t+r-1,l=(s-1)*t+r-1;Wn(i,a*4+0,l*4+0),Wn(i,a*4+1,l*4+1),Wn(i,a*4+2,l*4+2),Wn(i,a*4+3,l*4+3)}}}class xl{constructor(t,e){f(this,"width");f(this,"height");f(this,"containerDom");f(this,"hooks",new Ce.Subscribe);f(this,"canvas",document.createElement("canvas"));f(this,"five");f(this,"scale");f(this,"config");f(this,"offset",{x:0,y:0});f(this,"context");f(this,"renderCenter",new I.Vector3);f(this,"hammer");f(this,"state",{enabled:!1});f(this,"onPan",t=>{if(!this.containerDom||this.hooks.emit("wantsPanGesture",t))return;const n=this.offset.x+t.deltaX,o=this.offset.y+t.deltaY;this.canvas.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)",this.canvas.style.transform=`translate3d(${n}px, ${o}px, 100px)`});f(this,"onPanEnd",t=>{this.offset={x:this.offset.x+t.deltaX,y:this.offset.y+t.deltaY},this.canvas.style.boxShadow="none"});var o,s,r;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(o=e==null?void 0:e.scale)!=null?o:2,this.width=(s=e==null?void 0:e.width)!=null?s:190,this.height=(r=e==null?void 0:e.height)!=null?r:190,this.config={dragEnabled:(e==null?void 0:e.dragEnabled)||!1,autoFixPCPosition:(e==null?void 0:e.autoFixPCPosition)||!1,initialPosition:(e==null?void 0:e.initialPosition)||{left:"0",top:"0"}};const n=this.canvas.getContext("2d");if(!n)throw new Error("CANNOT CREATE CONTEXT2D");this.context=n,this.config.dragEnabled&&(this.hammer=new Pn.default(this.canvas),this.hammer.on("pan",this.onPan),this.hammer.on("panend",this.onPanEnd)),this.initStyle()}dispose(){var t;this.clear(),this.disable(),(t=this.hammer)==null||t.destroy()}enable(){var t;if(!this.state.enabled)return this.state.enabled=!0,(t=this.containerDom)==null||t.append(this.canvas),this}disable(){if(!!this.state.enabled)return this.state.enabled=!1,this.canvas.remove(),this}appendTo(t){var e;return this.containerDom&&((e=this.containerDom)==null||e.removeChild(this.canvas)),this.containerDom=t,this.state.enabled&&t.append(this.canvas),this}clear(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}renderWithPoint(t){!this.containerDom||!this.state.enabled||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}autoFixPCPosition(){if(!this.containerDom)return;const{width:t,height:e}=this,n=this.renderCenter.clone().project(this.five.camera),o=(n.x+1)/2*this.containerDom.clientWidth,s=-(n.x-1)/2*this.containerDom.clientWidth,r=-(n.y-1)/2*this.containerDom.clientHeight;o<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):r<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):s<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=-t-90+"px"):(this.canvas.style.left=-t/2+"px",this.canvas.style.top=-e-90+"px"),this.canvas.style.transform=`translate3d(${o}px, ${r}px, 10px)`,this.offset={x:o,y:r}}render(){if(!this.five.renderer||!this.containerDom)return;const{scale:t,context:e,width:n,height:o}=this,s=this.renderCenter.clone().project(this.five.camera),r=this.five.renderer.getSize(new I.Vector2),a=1,l=n/t,c=o/t,u=a*t,d=(s.x+1)/2*r.x,h=(s.y+1)/2*r.y,m=this.five.getPixels(d-l/2,h-l/2,l,c,u),A=Math.floor(n*a),v=Math.floor(o*a);ag(m,A,v);const p=new ImageData(A,v);p.data.set(m),e.putImageData(p,0,0)}initStyle(){const t=this.canvas;t.classList.add("five-plugin__magnifier"),t.style.position="absolute",t.style.pointerEvents="all",t.style.borderRadius="50%",t.style.zIndex="99";const e=1;t.setAttribute("width",(this.width*e).toString()),t.setAttribute("height",(this.height*e).toString()),t.style.border="2px solid rgba(255,255,255,0.20)",t.style.width=this.width+"px",t.style.height=this.height+"px",t.style.top=this.config.initialPosition.top,t.style.left=this.config.initialPosition.left,t.style.transform="translate(0,0,100px)",this.config.dragEnabled&&(this.canvas.style.cursor="pointer")}}function lg(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return new I.Vector2().set((i.x-s)/e*2-1,-(i.y-o)/n*2+1)}function Dl(i,t){const{offsetWidth:e,offsetHeight:n}=t;return new I.Vector2().set(i.x/e*2-1,-i.y/n*2+1)}function cg(i,t){const e=i.getElement();if(!e)return;const n=Dl(t,e),o=new I.Raycaster;return o.setFromCamera(n,i.camera),o}function ug(i,t){const{x:e,y:n}=t,o=e*2-1,s=n*2-1,r=new I.Vector2().fromArray([o,s]),a=new I.Raycaster;return a.setFromCamera(r,i.camera),i.model.intersectRaycaster(a)[0]}const dg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEp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hAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC",hg=`
530
+ `,e.container.style.pointerEvents="none";const n=p=>(e.wrapper=p,p.appendChild(e.container),l(),!0),o=p=>{e.itemLabels=Ap(p),l()},s=()=>(e.enabled||(e.enabled=!0,l()),!0),r=()=>(e.enabled&&(e.enabled=!1,l()),!0),a=()=>{u(),e.container.remove()},l=()=>{var p;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(p=e.app)==null||p.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:i,itemLabels:e.itemLabels}):e.app=new gp({target:e.container,props:{five:i,modelOcclusionEnable:e.modelOcclusionEnable,onlyVisibleInPanorama:e.onlyVisibleInPanorama,itemLabels:e.itemLabels,wrapper:e.wrapper,hooks:e.hooks,displayStrategyType:e.displayStrategyType,maxVisibleDistance:e.maxVisibleDistance}})}},c=()=>{i.on("modeChange",d),i.once("dispose",a)},u=()=>{i.off("modeChange",d)},d=p=>{if(p!==Ce.Five.Mode.Panorama){e.fiveModeEnabled=!1,r();return}i.once("initAnimationEnded",()=>{e.fiveModeEnabled=!0,s()})};return c(),{appendTo:n,load:o,enable:s,disable:r,dispose:a,hooks:e.hooks}},yp={name:"ItemLabelPlugin",version:0};class wp extends In{constructor(e){super(e);f(this,"state");f(this,"container");f(this,"enabled");this.five=e,this.five.once("dispose",this.dispose),this.enabled=!0,this.state=this.initState()}enable(e){this.enabled=!0,this.updateState(fe(Q({},e),{userAction:!0}))}disable(e){this.enabled=!1,this.updateState(fe(Q({},e),{userAction:!0}))}show(e){if(!!this.state.enabled)return this.setState(fe(Q({},this.state),{visible:!0}),e),Promise.resolve()}hide(e){if(!!this.state.enabled)return this.setState(fe(Q({},this.state),{visible:!1}),e),Promise.resolve()}dispose(){this.container.remove()}setState(e,n){if(!this.enabled)return;const o=Q({},this.state);this.state=Q(Q(Q({},this.state),e),n),this.stateChangedCallback(o,n)}get visible(){return this.five.state.mode===Ce.Five.Mode.Panorama}appendTo(e){!this.enabled||(this.container=e,this.render())}updateState(e){this.setState(fe(Q({},this.state),{enabled:this.enabled,visible:this.visible}),e)}}function Cp(i){le(i,"svelte-wpy7pz",'.plugin-DoorLabelPlugin-item.svelte-wpy7pz.svelte-wpy7pz{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz{position:absolute;top:50%;left:50%;border-radius:0.125rem;background:rgba(0, 0, 0, 0.35);line-height:0.75rem;padding:0.375rem;white-space:nowrap;font-size:0.75rem;font-style:normal;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform ease 1s, background ease 0.3s, color ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz::after{content:"";display:block;position:absolute;top:-0.0625rem;left:-0.0625rem;bottom:-0.0625rem;right:-0.0625rem;border-radius:0.125rem;border:0.0625rem solid rgba(0, 0, 0, 0);-o-border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;transition:opacity ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-wpy7pz.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg") no-repeat;background-size:100%;display:inline-block;width:0.625rem;height:0.625rem;margin-left:0.25rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}')}function Ep(i){let t,e,n,o,s,r,a,l;return{c(){t=z("div"),e=z("div"),n=z("span"),n.textContent=`${i[8]}`,o=ee(),s=z("i"),y(n,"class","plugin-DoorLabelPlugin-txt svelte-wpy7pz"),y(s,"class","plugin-DoorLabelPlugin-icon svelte-wpy7pz"),y(e,"class",r=Te(Ke.default("plugin-DoorLabelPlugin-cnt",i[0].toward))+" svelte-wpy7pz"),y(e,"style",`transform: ${i[6]||"initial"};pointer-events: ${i[5]?"auto":"none"};opacity: ${i[5]?1:0}`),y(e,"data-camera-toward",i[7]),y(t,"style",`left: ${i[3]||0}%;top: ${i[4]||0}%;opacity: ${i[5]?1:0}`),y(t,"class","plugin-DoorLabelPlugin-item svelte-wpy7pz")},m(c,u){M(c,t,u),j(t,e),j(e,n),j(e,o),j(e,s),i[10](t),a||(l=ge(e,"click",i[9]),a=!0)},p(c,[u]){u&1&&r!==(r=Te(Ke.default("plugin-DoorLabelPlugin-cnt",c[0].toward))+" svelte-wpy7pz")&&y(e,"class",r)},i:U,o:U,d(c){c&&S(t),i[10](null),a=!1,l()}}}function Pp(i,t,e){let{props:n}=t,{onClick:o}=t,s,{left:r,top:a,inSight:l,transform:c,panoIndex:u,cameraToward:d,name:h}=n;const m=()=>{if(!r||!a||!l||!s)return;const p=s.current.clientWidth/window.innerWidth*100,g=s.current.clientHeight/window.innerHeight*100;r<=p/2||r>=100-p/2||a<=g/2||a>=100-g/2},A=p=>{o&&o()};function v(p){Ve[p?"unshift":"push"](()=>{s=p,e(2,s)})}return i.$$set=p=>{"props"in p&&e(0,n=p.props),"onClick"in p&&e(1,o=p.onClick)},m(),[n,o,s,r,a,l,c,d,h,A,v]}class Ip extends oe{constructor(t){super(),ie(this,t,Pp,Ep,ne,{props:0,onClick:1},Cp)}}function kp(i,t){const e=Math.abs(i.top+i.height/2-t.top-t.height/2),n=Math.abs(i.left+i.width/2-t.left-t.width/2),o=(i.height+t.height)/2,s=(i.width+t.width)/2;return!(e>o&&n>s)}function xp(i){const{camera:t}=i,e=t.getWorldDirection(new V.Vector3);let n=Math.atan(e.z/e.x)*180/Math.PI,o="";return e.x<0&&(n+=180),n<0&&(n+=360),n>315||n<=45?o="right":n>45&&n<=135?o="back":n>135&&n<=225?o="left":n>225&&n<=315&&(o="forward"),o}function Dp(i,t){return Math.sqrt(Math.pow(i.z-t.z,2)+Math.pow(i.x-t.x,2))}function Lp(i){const t=Math.PI/4;return i>-t&&i<=t?"left":i>t*3||i<=-t*3?"right":i>-t*3&&i<=-t?"forward":i>t&&i<=t*3?"back":""}const Sp={userAction:!0};class Mp extends wp{constructor(e){super(e);f(this,"MinVisibledistance",1.8);f(this,"MaxVisibledistance",5);f(this,"OffsetHeight",-1.3);f(this,"rooms");f(this,"floorplanServerData");f(this,"doorLabelItems");f(this,"visibleLabelMap",new Map);f(this,"labelItems",[]);f(this,"doorLabels");f(this,"roomObservers");f(this,"loadData",(e,n)=>{n&&(this.MaxVisibledistance=n.MaxVisibledistance,this.MinVisibledistance=n.MinVisibledistance,this.OffsetHeight=n.OffsetHeight),this.doorLabelItems&&this.doorLabelItems.length>0&&this.doorLabelItems.forEach(o=>{o.$destroy()}),this.labelItems=[],this.doorLabels=[],this.doorLabelItems=[],this.floorplanServerData=e,typeof this.five.ready=="function"?this.five.ready().then(()=>this.initData()):this.five.once("panoArrived",()=>{this.initData()})});f(this,"initRoomObservers",()=>{var s,r;const e=this.floorplanServerData.computed_data.floor_datas||[],o=(((r=(s=this.five)==null?void 0:s.work)==null?void 0:r.observers)||[]).map(a=>{const l=a.panoIndex,c=a.floorIndex,u=e==null?void 0:e.find(d=>d.floor_index===c);if(u){const d=u.rooms.find(h=>h.observer_indexs.includes(l));if(d)return{panoIndex:l,floorIndex:c,name:d.name}}}).filter(Boolean);this.roomObservers=o});f(this,"hideAllLabels",()=>{this.labelItems.forEach(e=>{e.visible=!1,e.inSight=!1}),this.render()});f(this,"fixDoorVisibleAndPosition",()=>{this.initRoomObservers();const{panoIndex:e}=this.five;if(!this.visible||this.five.model.empty||e===null||!this.roomObservers.find(a=>a.panoIndex===e))return;const n=this.roomObservers.find(a=>a.panoIndex===e),s=this.five.work.observers.find(a=>a.panoIndex===e).position.clone(),r=(()=>{if(this.visibleLabelMap.has(e))return this.visibleLabelMap.get(e);{const a=[];return this.doorLabels.forEach((l,c)=>{if(l.roomName===n.name)return;const u=l.position.clone(),d=u.distanceTo(s);if(d<this.MinVisibledistance||d>this.MaxVisibledistance)return;const h=new V.Raycaster,m=u.clone().sub(s).normalize();h.set(s,m);const[A]=this.five.model.intersectRaycaster(h);A&&A.distance+.1<d||a.push(c)}),this.visibleLabelMap.set(e,a),a}})();this.labelItems.forEach((a,l)=>{a.visible=r.includes(l)}),this.fixDoorPosition()});f(this,"fixDoorPosition",()=>{var u,d,h,m,A,v,p,g,b,w,P,x;const{panoIndex:e,camera:n}=this.five;if(e===null)return;if(this.five.currentMode!=="Panorama")return this.hideAllLabels();const o=this.five.getElement(),s=o.clientWidth,r=o.clientHeight,a=n.getWorldDirection(new V.Vector3),l=[],c=[...this.labelItems];if(c.forEach((C,D)=>{if(C.visible){const E=n.position.distanceTo(C.position),O=C.position.clone().add(new V.Vector3(0,this.OffsetHeight,0)),X=O.clone().sub(n.position).normalize().angleTo(a),H=O.clone().project(n),B=(H.x+1)/2.2*100,F=(-H.y+1)/2.2*100,R=B>=0&&B<=100&&F>=0&&F<=100&&E>this.MinVisibledistance&&E<=this.MaxVisibledistance;C.left=B,C.top=F,C.inSight=R&&X<Math.PI/2,C.cameraToward=xp(this.five),R?l.push({disFromCameraToLabel:E,left:B,top:F,index:D}):C.transform="translate(-50%, -50%)"}else C.inSight=!1}),l.length>1){let C=0;l.sort((D,E)=>E.disFromCameraToLabel-D.disFromCameraToLabel);for(let D=1;D<l.length;D++){const{index:E,left:O,top:G}=l[D-1],{index:X,left:H,top:B}=l[D],F=this.container.children[E],R=this.container.children[X];if(!F||!R)return;const N={left:s*O/100,top:r*G/100,width:(h=(d=(u=F.children)==null?void 0:u[0])==null?void 0:d.clientWidth)!=null?h:0,height:(v=(A=(m=F.children)==null?void 0:m[0])==null?void 0:A.clientHeight)!=null?v:0},_={left:s*H/100,top:r*B/100,width:(b=(g=(p=R.children)==null?void 0:p[0])==null?void 0:g.clientWidth)!=null?b:0,height:(x=(P=(w=R.children)==null?void 0:w[0])==null?void 0:P.clientHeight)!=null?x:0};kp(N,_)&&(C++,c[E].transform=`translate(-50%, ${(C-1)*100-50}%)`,c[X].transform=`translate(-50%, ${C*100-50}%)`)}}this.labelItems=c,this.render()});f(this,"onClick",(e,n)=>{if(!this.roomObservers)return;const{work:o}=this.five;let s,r,a=1/0;for(const l of o.observers)if(this.roomObservers.find(u=>u.panoIndex===l.panoIndex&&u.name===e)){const u=l.standingPosition,d=n.distanceTo(u);d<a&&(s=l.panoIndex,r=u.clone().sub(n).normalize(),a=d)}if(r!==null&&s!==null){const l={};if(a>0){const u=new V.Vector3(0,0,-1),d=r.clone(),h=new V.Quaternion;h.setFromUnitVectors(u,d);const m=new V.Euler;m.setFromQuaternion(h,"YXZ"),l.longitude=m.y}this.five.emit("wantsToMoveToPano",s,{},!0)||this.five.moveToPano(s,{longitude:l.longitude})}});f(this,"initData",()=>{var s;this.doorLabels=[];const e=this.five.panoIndex,n=this.floorplanServerData.computed_data.observers[e].floor_index,o=n!==void 0&&((s=this.floorplanServerData.computed_data.floor_datas[n])==null?void 0:s.rooms);this.rooms=o,this.rooms&&this.rooms.length>0&&this.rooms.forEach(r=>{var c;const a=(c=this.floorplanServerData.computed_data.doors)==null?void 0:c.filter(u=>!!(u&&u.name===r.name)),l=this.five.work.observers.filter((u,d)=>!!r.observer_indexs.find(h=>h===d));a&&a.forEach(u=>{const d=u.position;let h=1/0,m;l.forEach(v=>{const p=v.standingPosition,g={x:p.x,y:p.y,z:p.z},b=Dp(d,g);b<h&&(h=b,m=g)}),m&&(d.y=m.y+.01);const A=new V.Vector3(d.x,d.y,d.z);A.add(new V.Vector3(-.2,1.8,0).applyEuler(new V.Euler(0,u.rad,0))),this.doorLabels.push({roomName:r.name,name:u.name,position:A,toward:Lp(u.rad)})})}),this.labelItems=this.doorLabels.map(r=>fe(Q({},r),{left:0,top:0,visible:!1,inSight:!1,transform:"",cameraToward:""})),this.five.on("wantsToMoveToPano",this.hideAllLabels),this.five.on("modelLoaded",this.fixDoorVisibleAndPosition),this.five.on("panoArrived",this.fixDoorVisibleAndPosition),this.five.on("initAnimationEnded",this.fixDoorPosition),this.five.on("cameraUpdate",this.fixDoorPosition),this.five.on("mouseWheel",this.fixDoorPosition),this.five.on("pinchGesture",this.fixDoorPosition),this.fixDoorVisibleAndPosition()})}stateChangedCallback(e,n){if(this.hooks.hasListener("stateChange")){const o={state:this.state,prevState:e,userAction:n?n.userAction:Sp.userAction};this.hooks.emit("stateChange",o)}}render(){if(!this.enabled){this.doorLabelItems&&this.doorLabelItems.length>0&&this.doorLabelItems.forEach(e=>{e==null||e.$destroy()}),this.doorLabels=void 0;return}this.doorLabelItems&&this.doorLabelItems.forEach(e=>{e.$destroy()}),this.doorLabelItems=[],this.labelItems.forEach(e=>{this.doorLabelItems.push(new Ip({target:this.container,props:{props:e,onClick:()=>{this.onClick(e.name,e.position)}}}))})}initState(){return{enabled:!0,visible:!0}}dispose(){this&&this.five&&(this.five.off("wantsToMoveToPano",this.hideAllLabels),this.five.off("modelLoaded",this.fixDoorVisibleAndPosition),this.five.off("panoArrived",this.fixDoorVisibleAndPosition),this.five.off("initAnimationEnded",this.fixDoorPosition),this.five.off("cameraUpdate",this.fixDoorPosition),this.five.off("mouseWheel",this.fixDoorPosition),this.five.off("pinchGesture",this.fixDoorPosition),super.dispose())}}const Tp=i=>new Mp(i),zp=2,Bp=3,jp=3,Vp=2;function Op(i,t){var r,a,l;if(i.length<2)return console.warn("positionList length must be greater than 1"),[];const e=(r=t==null?void 0:t.unitWidth)!=null?r:.5,n=(a=t==null?void 0:t.unitHeight)!=null?a:.5,o=(l=t==null?void 0:t.skipPanoIndexMesh)!=null?l:!1,s=new k.CatmullRomCurve3(i,!1,"catmullrom",1);if(o){const c=Math.ceil(s.getLength()/n*1.5),u=s.getPoints(c),d=[];let h=0;const m=i;return m.forEach((A,v)=>{let p=0,g=99999999;u.forEach((C,D)=>{const E=C.distanceTo(A);E<g&&(p=D,g=E)});const b=u[p+1],w=b==null?void 0:b.distanceTo(A),P=u[p-1],x=P==null?void 0:P.distanceTo(A);if(p>h&&p-h>1){let C=p;P!==void 0&&x>.8&&(C=p+1),P!==void 0&&x>.2&&x<.3?C=p:g>.2&&g<.3&&(C=p+1);let D=h;if(b!==void 0&&w>.2&&w<.3?D=h+1:g>.2&&g<.3&&(D=h),u[D]&&u[D+1]){const G=m[v-1];if(G)if(G.equals(u[D]))D+=1;else{const X=new V.Vector3().subVectors(u[D+1],u[D]),H=new V.Vector3().subVectors(G,u[D]);X.angleTo(H)<Math.PI/2&&(D+=1)}}if(C<D||C-D<=1)return;const E=u.slice(D,C),O=Zs(E,e,n);d.push(O),h=p}}),d}else{const c=Math.ceil(s.getLength()),u=s.getPoints(c);return[Zs(u,e,n)]}}function Zs(i,t,e){const n=t/2,o=e/t,s=i.length,r=vc.default(i.map(g=>[g.x,g.z])),l=(i.length-1)*zp*Bp,c=2*s,u=c*jp,d=c*Vp,h=new Uint32Array(l),m=new Float32Array(u),A=new Float32Array(d);i.forEach((g,b)=>{});let v=0;for(let g=0;g<i.length;g++){const[b,w]=r[g][0],P=i[g],{x,y:C,z:D}=P,E=new V.Vector3(x+b*n,C+.05,D+w*n);m[g*6+0]=E.x,m[g*6+1]=E.y,m[g*6+2]=E.z;const O=new V.Vector3(x-b*n,C+.05,D-w*n);m[g*6+3]=O.x,m[g*6+4]=O.y,m[g*6+5]=O.z,v+=g>0?i[g-1].clone().sub(i[g]).length():0;const G=v/t/o;A[g*4+0]=0,A[g*4+1]=G,A[g*4+2]=1,A[g*4+3]=G,g!==i.length-1&&(h[g*6+0]=g*2+0,h[g*6+1]=g*2+2,h[g*6+2]=g*2+1,h[g*6+3]=g*2+2,h[g*6+4]=g*2+3,h[g*6+5]=g*2+1)}const p=new k.BufferGeometry;return p.setAttribute("position",new k.BufferAttribute(m,3)),p.setAttribute("uv",new k.BufferAttribute(A,2)),p.setIndex(new k.BufferAttribute(h,1)),p}function Rp(i){const t=new k.TextureLoader().load(i.textureUrl);return t.wrapS=t.wrapT=k.RepeatWrapping,t.encoding=k.sRGBEncoding,t.minFilter=k.LinearFilter,new k.MeshBasicMaterial({color:16777215,map:t,transparent:!0,opacity:.8})}function Qp(i){return!yt(i)}function yt(i){return i!=null}const bl="v1.1.0",yl="GuideLinePlugin",io=`${yl}@${bl}`,Ks=i=>`${io}--${i}`;class wl extends zt{constructor(e,n){super(e,n);f(this,"state",{visible:!1,enabled:!0,disposed:!1});f(this,"data");f(this,"linesGroup");f(this,"disposedErrorLog",()=>{console.error(`${io} is disposed`)});f(this,"actionWhenEnabled",e=>{if(this.state.enabled)return e()});Object.assign(window,{[`__${yl}_DEBUG__`]:this})}load(e,n,o=!0){return W(this,null,function*(){const s=this.data?JSON.parse(JSON.stringify(this.data)):void 0,r=yield this.formatData(e);this.hooks.emit("dataChange",r,s),this.data=r,this.linesGroup&&this.five.scene.remove(this.linesGroup);const a=this.getLinesGroup(r.routes,r.config);!a||(this.linesGroup=a,yield this.waitFiveModelLoaded(),this.five.scene.add(a),this.handleVisible(this.state.visible),this.handleEnable(this.state.enabled),n&&this.setState(n),this.five.needsRender=!0,this.hooks.emit("dataLoaded",r),console.info(`${io} loaded`,r))})}formatData(e){return W(this,null,function*(){return typeof e=="object"&&e!==null&&e.version&&e.data?e.data:e})}show(e){return W(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return W(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,n){var s;if(this.state.disposed)return this.disposedErrorLog();const o=Q({},this.state);this.state=Q(Q({},this.state),e),e.disposed!==void 0&&e.disposed!==o.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==o.visible&&this.handleVisible(e.visible,n==null?void 0:n.userAction),e.enabled!==void 0&&e.enabled!==o.enabled&&this.handleEnable(e.enabled,n==null?void 0:n.userAction),et(o,this.state,{deep:!0})||(this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:(s=n==null?void 0:n.userAction)!=null?s:!0}),this.five.needsRender=!0)}handleEnable(e,n=!0){this.linesGroup&&(e?(this.five.scene.add(this.linesGroup),this.actionWhenEnabled(()=>this.hooks.emit("enable",{userAction:n}))):(this.five.scene.remove(this.linesGroup),this.hooks.emit("disable",{userAction:n})))}handleVisible(e,n=!0){this.linesGroup&&(e?(this.linesGroup.visible=!0,this.actionWhenEnabled(()=>this.hooks.emit("show",{userAction:n}))):(this.linesGroup.visible=!1,this.actionWhenEnabled(()=>this.hooks.emit("hide",{userAction:n}))))}handleDispose(){this.linesGroup&&this.five.scene.remove(this.linesGroup),this.hooks.emit("dispose")}getLinesGroup(e,n){const o=e.map(r=>this.getLine(r,n)).filter(yt),s=new k.Group;if(s.name=Ks("route-group"),o.length!==0)return s.add(...o),s}getLine(e,n){var l,c,u,d,h,m,A,v;const o=new k.Group,s=e.panoIndexList.map(p=>{var g;return(g=this.five.work.observers[p])==null?void 0:g.standingPosition}).filter(yt),r=Op(s,{skipPanoIndexMesh:(c=(l=e.skipPanoIndexMesh)!=null?l:n==null?void 0:n.skipPanoIndexMesh)!=null?c:!0,unitWidth:(d=(u=e.unitWidth)!=null?u:n==null?void 0:n.unitWidth)!=null?d:.6,unitHeight:(m=(h=e.unitHeight)!=null?h:n==null?void 0:n.unitHeight)!=null?m:.4});if(!r)return;const a=Rp({textureUrl:(v=(A=e.arrowTextureUrl)!=null?A:n==null?void 0:n.arrowTextureUrl)!=null?v:this.staticPrefix+"/release/web/arrow6.b6ce0c62.png"});return r.forEach(p=>{const g=new k.Mesh(p,a);g.name=Ks("route-line-mesh"),o.add(g)}),o}waitFiveModelLoaded(){return W(this,null,function*(){return new Promise(e=>{if(this.five.model.loaded){e();return}this.five.once("modelLoaded",()=>{e()})})})}}f(wl,"lasestVersion",bl);const Cl=(i,t)=>new wl(i,t);function $s(i){const t=Math.abs(Math.cos(i.latitude));return new k.Vector3(-Math.sin(i.longitude)*t,-Math.sin(i.latitude),-Math.cos(i.longitude)*t)}function Fp(i,t){const e=$s(i),n=$s(t);return e.angleTo(n)}const Hp=i=>W(exports,null,function*(){try{i().then(()=>{},()=>{}).catch(()=>{})}catch(t){}}),Gn=Math.PI*2;function _p(i){return i>=0&&i<Gn?i:(i%Gn+Gn)%Gn}function Gp(i){return{longitude:_p(-Math.atan2(i.x,-i.z)),latitude:-Math.asin(i.y/1)}}function Wp(i,t,e,n){const o=-i/e,s=i;return o*n+s}function Np(i){return new Promise(t=>{setTimeout(()=>{t()},i)})}const El="v1.0.6",Pl="CruisePlugin",Ei=`${Pl}@${El}`,er=()=>{console.error(`${Ei} is disposed`)},Xp=()=>{console.warn(`${Ei} is disabled`)},Yp=()=>{console.error(`${Ei} is disabled`)},Ri=new Map;class wo extends zt{constructor(e,n){super(e,n);f(this,"state",{visible:!0,enabled:!0,disposed:!1,playing:!1,speed:1,config:{speedConfig:{rotateSpeed:.001,rotateSpeedUnit:"rad/ms",moveSpeed:.002,moveSpeedUnit:"m/ms"}}});f(this,"data");f(this,"config");f(this,"privateState",{playing:!1,currentPlayQueue:[],currentPlayKeyframe:null,broke:!1,disposers:[],modeChanging:!1});f(this,"GuideLine");this.config=n,Object.assign(window,{[`__${Pl}_DEBUG__`]:this});const o=this.setFiveLinearUpdateCamera.bind(this),s=this.setFiveOriginUpdateCamera.bind(this);this.hooks.on("play",o),this.hooks.on("broke",s),this.hooks.on("end",s),this.hooks.on("pause",s),this.privateState.disposers.push(()=>{this.hooks.off("play",o),this.hooks.off("broke",s),this.hooks.off("end",s),this.hooks.off("pause",s)})}load(e,n,o){return W(this,null,function*(){var u,d,h,m,A;if(this.state.disposed)return er();this.privateState.fiveOriginGetProgress||(d=(u=this.five.controller)==null?void 0:u.cameraMotion)!=null&&d.getProgress||(yield this.waitFiveLoaded(),this.privateState.fiveOriginGetProgress=(m=(h=this.five.controller)==null?void 0:h.cameraMotion)==null?void 0:m.getProgress),this.clear();const s=this.data?JSON.parse(JSON.stringify(this.data)):void 0,r=yield this.formatData(e);this.data=r,this.hooks.emit("dataChange",r,s);let a=[],l;const c=this.data.keyframes.filter(v=>v.data.panoIndex!==void 0);c.filter((v,p)=>{var g;return v.data.panoIndex!==((g=c[p-1])==null?void 0:g.data.panoIndex)}).map(v=>v.data.panoIndex).forEach(v=>{var g,b;const p=(g=this.five.work.observers[v])==null?void 0:g.floorIndex;if(p!==void 0)if(l===p){const w=a.length-1;a[w]=[...(b=a[w])!=null?b:[],v]}else{l=p;const w=a.length;a[w]=[v]}}),this.GuideLine||(this.GuideLine=Cl(this.five,this.config)),(A=this.GuideLine)==null||A.load({routes:a.map(v=>({panoIndexList:v})),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(`${Ei} loaded`,r),this.hooks.emit("dataLoaded",r)})}play(e){this.setState({playing:!0},e)}playFrom(e){const{index:n,id:o,userAction:s}=e;this.state.playing&&this.setState({playing:!1},{userAction:s}),this.setState({playing:!0},{userAction:s,playFromIndex:n,playFromId:o})}playFromStart(e){return this.playFrom(fe(Q({},e),{index:0}))}pause(e){this.setState({playing:!1},e)}show(e){return W(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return W(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,n){var s;if(this.state.disposed)return er();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return Yp();const o=Q({},this.state);this.state=Q(Q({},this.state),e),e.disposed!==void 0&&e.disposed!==o.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==o.visible&&this.handleVisible(e.visible,n==null?void 0:n.userAction),e.enabled!==void 0&&e.enabled!==o.enabled&&this.handleEnable(e.enabled,n==null?void 0:n.userAction),e.playing!==void 0&&e.playing!==o.playing&&this.changePlayState(e.playing,n),e.speed!==void 0&&e.speed!==o.speed&&this.changeSpeed(e.speed,n==null?void 0:n.userAction),et(o,this.state,{deep:!0})||this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:(s=n==null?void 0:n.userAction)!=null?s:!0})}formatData(e){return W(this,null,function*(){this.five.work||(yield this.waitFiveLoaded());const n=this.five.work.observers,o=(()=>{const s=e;return typeof s=="object"&&s!==null&&s.version&&s.data?s.data:s})();if(o.keyframes)return{keyframesId:_e(),keyframes:o.keyframes.map((s,r)=>{var c;const a=o.keyframes[r+1],l=(()=>!a||a.start===void 0||s.end===void 0?0:a.start-s.end)();return fe(Q({id:(c=s.uuid)!=null?c:_e(),moveIndex:r,stay:l,index:r},s),{guildPluginOptions:o.guildPluginOptions})})};if(o.panoIndexList){let s=[];const{moveEffect:r,moveToFirstPanoEffect:a,moveToFirstPanoDuration:l}=o;return this.privateState.moveToFirstPanoEffect=a,this.privateState.moveToFirstPanoDuration=l,o.panoIndexList.forEach((c,u)=>{const d=(()=>{var p,g,b,w;const h=o.panoIndexList.slice(u).find(P=>P!==c);if(h===void 0)return;const m=(p=n[c])==null?void 0:p.position,A=(g=n[h])==null?void 0:g.position;if(!A||!m||((b=n[c])==null?void 0:b.floorIndex)!==((w=n[h])==null?void 0:w.floorIndex))return;const v=new k.Vector3().subVectors(A,m);return Gp(v)})();o.moveType===void 0||o.moveType==="justMove"?s.push({moveIndex:u,stay:o.stay,data:Q({effect:"Move",panoIndex:c,moveEffect:r},d!=null?d:{})}):o.moveType==="moveAndRotate"&&(s.push({moveIndex:u,stay:o.stay,data:{effect:"Move",panoIndex:c,moveEffect:r}}),d&&s.push({moveIndex:u,stay:o.stay,data:Q({effect:"Rotate",panoIndex:c},d)}))}),{keyframesId:_e(),keyframes:s.map((c,u)=>Q({id:_e(),index:u},c)),guildPluginOptions:o.guildPluginOptions}}else throw new Error("format error: data no keyframes or no panoIndexList")})}handleEnable(e,n=!0){var o,s;e?((o=this.GuideLine)==null||o.enable(),this.hooks.emit("enable",{userAction:n})):((s=this.GuideLine)==null||s.disable(),this.changePlayState(!1,{userAction:n}),this.hooks.emit("disable",{userAction:n})),this.state.enabled=e}handleVisible(e,n=!0){var o,s;e?((o=this.GuideLine)==null||o.show(),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:n}))):((s=this.GuideLine)==null||s.hide(),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:n}))),this.state.visible=e}changePlayState(e,n){this.actionIfStateIsEnabled(()=>{var o;return this.hooks.emit("playStateChange",e?"playing":"pause",{userAction:(o=n==null?void 0:n.userAction)!=null?o:!0})}),e?this.handlePlay(n):this.handlePause(n),this.state.playing=e}handlePlay(e){return W(this,null,function*(){var m;const{data:n,state:o,privateState:s,hooks:r}=this;if(s.playing||!(n!=null&&n.keyframes)||(n==null?void 0:n.keyframes.length)===0)return;const a=_e();s.playId=a,s.playing=!0,s.broke=!1;const l=n.keyframes,c=this.getPauseData();(e==null?void 0:e.notEmitEvent)!==!0&&r.emit("play",{userAction:(m=e==null?void 0:e.userAction)!=null?m:!0});let u=!1;const h=yield(()=>W(this,null,function*(){var A,v;if((e==null?void 0:e.playFromIndex)!==void 0)return e.playFromIndex;if((e==null?void 0:e.playFromId)!==void 0)return(A=this.data)==null?void 0:A.keyframes.findIndex(p=>p.id===e.playFromId);if(c!=null&&c.keyframeId){const p=(v=this.data)==null?void 0:v.keyframes.find(g=>g.id===c.keyframeId);if(c!=null&&c.fiveState&&(yield this.move(c.fiveState,{moveEffect:s.moveToFirstPanoEffect,duration:s.moveToFirstPanoDuration})),p){if(p.data.effect==="Move")return p.index;if(p.data.effect==="Rotate"){const g=c.duration!==void 0?c.duration*(1-c.playedProgress):void 0;return yield this.playKeyframe(p,{duration:g}),u=!0,p.index+1}}}}))();this.clearPauseData();for(const A of l){if(s.broke||!o.playing||!s.playing||a!==s.playId)return;if(!(h!==void 0&&A.index<h))try{r.emit("playIndexChange",A.index,A),yield this.playKeyframe(A,{moveEffect:u===!1?s.moveToFirstPanoEffect:void 0,duration:u===!1&&typeof s.moveToFirstPanoDuration=="number"?s.moveToFirstPanoDuration:void 0}),A.stay&&(yield Np(A.stay)),u===!1&&(u=!0)}catch(v){return Promise.resolve("broke")}}o.playing&&a===s.playId&&(this.setState({playing:!1},{userAction:!1}),r.emit("end"),this.clearPauseData())})}handlePause(e){var r;const{state:n,privateState:o,hooks:s}=this;n.playing=!1,o.playing!==!1&&(o.playing=!1,this.setPauseData(),o.broke||this.forceInteruptUpdateCamera(),(e==null?void 0:e.notEmitEvent)!==!0&&s.emit("pause",{userAction:(r=e==null?void 0:e.userAction)!=null?r:!0}))}playKeyframe(e,n){return W(this,null,function*(){var s;const{privateState:o}=this;return((s=this.privateState.currentPlayKeyframe)==null?void 0:s.keyframe.id)!==e.id&&(this.privateState.currentPlayKeyframe={keyframe:e}),o.currentPlayQueue.push(this.getPlayPromise(e,n)),this.actionPromiseQueue()})}addInterruptListener(e){const n=()=>{this.privateState.modeChanging||e()},o=e;return this.five.once("gesture",o),this.five.once("wantsChangeMode",n),()=>{this.five.off("gesture",o),this.five.once("wantsChangeMode",n)}}getPlayPromise(o){return W(this,arguments,function*(e,n={}){var r;const s=e.data;if(n.duration=(r=n.duration)!=null?r:e.start!==void 0&&e.end!==void 0?e.end-e.start:void 0,!!s)return new Promise((a,l)=>{let c=!1;this.addInterruptListener(()=>{if(!c)return this.hooks.emit("broke"),this.privateState.broke=!0,this.setState({playing:!1}),c=!0,l(new Error("play is interupted"))});try{if(c)return;const u=()=>{a(),c=!0};switch(s.effect){case"Move":this.move(s,n).then(u);break;case"Rotate":this.rotate(s,n).then(u);break;default:this.rotate(s,n).then(u)}}catch(u){}})})}actionPromiseQueue(){return W(this,null,function*(){const{privateState:e}=this;return new Promise((n,o)=>{if(e.currentPlayQueue.length===0){n();return}const s=e.currentPlayQueue.shift();if(!s){n();return}s.then(n,o)}).then(()=>e.currentPlayQueue.length===0?Promise.resolve():this.actionPromiseQueue())})}move(e,n){return W(this,null,function*(){if(e.mode&&e.mode!==this.five.currentMode)yield this.changeMode(e);else if(e.panoIndex!==this.five.panoIndex)yield this.changePano(e,n);else return Promise.resolve()})}rotate(e,n){return W(this,null,function*(){if(e.mode&&e.mode!==this.five.currentMode)yield this.changeMode({mode:e.mode,panoIndex:e.panoIndex});else if(e.panoIndex&&e.panoIndex!==this.five.panoIndex)return yield this.changePano(e,n);yield this.updateCamera(e,n)})}updateCamera(o){return W(this,arguments,function*(e,n={}){const{five:s,privateState:r,state:a}=this,l=(()=>{var m,A;const d=(m=a.config)==null?void 0:m.speedConfig,h=(A=e.rotateSpeed)!=null?A:d==null?void 0:d.rotateSpeed;if((d==null?void 0:d.rotateSpeedUnit)===void 0)return h;if(h!==void 0)return d.rotateSpeedUnit==="rad/ms"?h:h/1e3})(),c=(()=>{if(n.duration)return n.duration;if(l){const d=this.five.getCurrentState();return Fp(d,e)/l}return 800})();r.currentPlayKeyframe&&(r.currentPlayKeyframe.originDuration=c);const u=this.getSpeededDuration(c);return new Promise(d=>{Hp(()=>s.updateCamera(e,u)),setTimeout(()=>d(),u)})})}changePano(e,n){return W(this,null,function*(){const{five:o,privateState:s,state:r}=this;if(typeof e.panoIndex!="number"||e.panoIndex===o.panoIndex)return;const a=o.getCurrentState().mode!=="Panorama";a&&(this.privateState.modeChanging=!0);const l=(()=>{var h,m;const u=(h=r.config)==null?void 0:h.speedConfig,d=(m=e.moveSpeed)!=null?m:u==null?void 0:u.moveSpeed;if((u==null?void 0:u.moveSpeedUnit)===void 0)return d;if(d!==void 0)return u.moveSpeedUnit==="m/ms"?d:d/1e3})(),c=(()=>{if(n!=null&&n.duration)return n.duration;if(l&&typeof o.panoIndex=="number"&&typeof e.panoIndex=="number"){const u=o.work.observers[o.panoIndex].position,d=o.work.observers[e.panoIndex].position;return u.distanceTo(d)/l}return 800})();s.currentPlayKeyframe&&(s.currentPlayKeyframe.originDuration=c),yield new Promise(u=>{var d,h,m;o.moveToPano(e.panoIndex,{latitude:e.latitude,longitude:e.longitude,fov:e.fov,duration:this.getSpeededDuration(c),effect:(m=(h=n==null?void 0:n.moveEffect)!=null?h:(d=this.state.config)==null?void 0:d.moveEffect)!=null?m:e.moveEffect,moveCancelCallback:()=>u(),moveEndCallback:()=>u()}),a&&o.once("panoArrived",()=>u())}),a&&(this.privateState.modeChanging=!1)})}changeSpeed(e,n=!0){const{state:o,privateState:s,hooks:r}=this,{currentPlayKeyframe:a}=s;if(r.emit("speedChange",e,{userAction:n}),o.playing&&a)try{const l=a.originDuration!==void 0?a.originDuration*(1-this.getProgress()):void 0,c=this.playKeyframe(a.keyframe,{duration:l});s.currentPlayQueue.push(c)}catch(l){}}getSpeededDuration(e){return e/this.state.speed}getProgress(){return this.five.controller.cameraMotion.progress}changeMode(e,n){return W(this,null,function*(){e.mode&&e.mode!==this.five.currentMode&&(this.privateState.modeChanging=!0,yield this.five.changeMode(e.mode,e,n),this.privateState.modeChanging=!1)})}forceInteruptUpdateCamera(){this.five.updateCamera({},0)}getPauseData(){var e,n;if((e=this.data)!=null&&e.keyframesId)return Ri.get((n=this.data)==null?void 0:n.keyframesId)}setPauseData(){var e,n,o,s;if((e=this.data)!=null&&e.keyframesId)return Ri.set((n=this.data)==null?void 0:n.keyframesId,{keyframeId:(o=this.privateState.currentPlayKeyframe)==null?void 0:o.keyframe.id,fiveState:this.five.getCurrentState(),duration:(s=this.privateState.currentPlayKeyframe)==null?void 0:s.originDuration,playedProgress:this.getProgress()})}clearPauseData(){var e,n;if((e=this.data)!=null&&e.keyframesId)return Ri.delete((n=this.data)==null?void 0:n.keyframesId)}clear(){this.clearPauseData(),this.privateState.currentPlayKeyframe=null}handleDispose(){var e,n;this.setState({playing:!1}),this.clearPauseData(),this.clear(),(e=this.GuideLine)==null||e.dispose(),this.GuideLine=void 0,(n=this.privateState.disposers)==null||n.forEach(o=>o==null?void 0:o())}actionIfStateIsEnabled(e,n){if(this.state.enabled)return e();n!=null&&n.warnLog&&Xp()}waitFiveLoaded(){return W(this,null,function*(){return new Promise(e=>{if(this.five.work){e();return}this.five.once("loaded",()=>{e()})})})}setFiveLinearUpdateCamera(){!this.privateState.fiveOriginGetProgress||(this.five.controller.cameraMotion.getProgress=e=>{const n=this.five.controller.cameraMotion,o=e-n.startTime;return o<0?0:o>=n.duration?1:1-Wp(1,n.startVelocity,n.duration,o)})}setFiveOriginUpdateCamera(){!this.privateState.fiveOriginGetProgress||(this.five.controller.cameraMotion.getProgress=this.privateState.fiveOriginGetProgress)}}f(wo,"PluginVersion",El);const Up=i=>new wo(i);function qp(i,t){t.forEach(e=>{const n=new k.SphereGeometry(.02,16,16),o=[],s=[new k.MeshBasicMaterial({color:16776960}),new k.MeshBasicMaterial({color:16711935}),new k.MeshBasicMaterial({color:16711680}),new k.MeshBasicMaterial({color:65535})];if(e.position.length===4)e.position.forEach((r,a)=>{const l=s[a],c=new k.Mesh(n,l);c.position.copy(st(r)),o.push(c)});else{const r=s[0],a=new k.Mesh(n,r);a.position.copy(st(e.position)),o.push(a)}o.forEach(r=>{r.material.depthTest=!1,i.scene.add(r)})})}const De=i=>i;function oo(i){if(i.length<3)return;const t=i.map(yn),e=t[1].clone().sub(t[0]),n=t[2].clone().sub(t[1]);return e.cross(n)}function Jp(i){return i.stickType==="3DPoint"||i.stickType==="Plane"}function Fe(i){return i.stickType==="Model"&&i.contentType==="MediaModel"}function Co(i){if(!!i)if(Array.isArray(i)&&i.length===4){const e=i.map(yn);return hi(e[0],e[2])}else return yn(i)}function Il(i){if(Fe(i)&&i.matrix){const t=new V.Matrix4().fromArray(i.matrix),e=i.data.mediaPosition.map(n=>new V.Vector3().fromArray(n).applyMatrix4(t));return hi(e[0],e[2])}else return Co(i.position)}function dn(i,t){if(i===void 0)return;const{min:e,max:n}=t!=null?t:{};if(!(e===void 0&&n===void 0))return!(typeof n=="number"&&n<i||typeof e=="number"&&e>i)}function Zp(i){return new Promise(t=>{i.model.loaded?t():i.once("modelLoaded",()=>t())})}function Kp(i,t,e){const o=new k.Plane().setFromNormalAndCoplanarPoint(e,t),s=t.clone().sub(i).cross(new k.Vector3(0,1,0)).setLength(.01),r=new k.Vector3(0,.01,0);return[t.clone().sub(s).sub(r),t.clone().add(s).sub(r),t.clone().add(s).add(r),t.clone().sub(s).add(r)].map(l=>o.projectPoint(l,new k.Vector3))}const tr=(i,t=1e3/60)=>{let e=null;const n=i;return(...s)=>{e&&clearTimeout(e),e=setTimeout(()=>{n==null||n(...s),e&&clearTimeout(e),e=null},t)}};function $p(i,t=200){let e;return function(...n){e||(i.apply(this,n),e=setTimeout(function(){e=null},t))}}function eg(i,t){const[e,n]=t;if(e>=n||n<=1||e<=1)return-1;const o={},s=r=>(o[r]||(o[r]=i(r)),o[r]);for(let r=e;r<n;r++){const a=s(r),l=s(r-1);if(a<l)return r}return-1}function nr(i,t){if(!t||typeof ResizeObserver=="undefined"||!ResizeObserver)return{observe:()=>window.addEventListener("resize",i),unobserve:()=>window.removeEventListener("resize",i)};{const e=new ResizeObserver(i);return{observe:()=>e.observe(t),unobserve:()=>e.unobserve(t)}}}function tg(i){var t,e,n,o;if(!i.stickType){const s=(()=>i.pointType==="PointTag"&&i.dimensionType==="3D"?"3DPoint":i.pointType==="PlaneTag"?"Plane":"2DPoint")();i.stickType=s}if(i.contentType==="VRLink"||i.contentType==="PanoLink"||i.contentType==="Link"){const s=i;!((e=(t=s.data)==null?void 0:t.icon)!=null&&e.url)&&!((o=(n=s.style)==null?void 0:n.point)!=null&&o.url)&&(s.data.icon={url:"//vrlab-static.ljcdn.com/release/web/test.09dee741.png",steps:28})}return i}const qt="data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBn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VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=",An={};var Eo=(i=>(i.Default="default",i.GetAudioDuration="getAudioDuration",i.PlayAudio="playAudio",i))(Eo||{});function ng(i,t){const e=(t==null?void 0:t.namespace)||"default",n=An[e]||(An[e]=[]);let o=n.find(s=>!s.realSrc||s.realSrc===qt);return o||(console.warn("\u672A\u627E\u5230\u7F13\u5B58\u97F3\u9891\uFF0C\u5DF2\u65B0\u5EFA",An),o=new kl(qt),n.push(o)),i&&(o.src=i),o}function ig(i,t){const e=(t==null?void 0:t.namespace)||"default",n=An[e]||(An[e]=[]),o=i-n.length;if(!(o<=0))for(let s=0;s<o;s++)n.push(new kl(qt))}class kl extends Audio{constructor(e){super(e);f(this,"preload","auto");f(this,"crossOrigin","anonymous");f(this,"realSrc","");f(this,"inited",!1);f(this,"removeDocumentEventListener");this.realSrc=e!=null?e:"",this.muted=!0,super.autoplay=!0,super.addEventListener("ended",()=>{this.src=""});const n=()=>og(this);document.addEventListener("click",n),document.addEventListener("touchend",n),this.removeDocumentEventListener=()=>{document.removeEventListener("click",n),document.removeEventListener("touchend",n)}}get isBlankAudio(){return this.realSrc===qt||!this.realSrc}get src(){return super.src}set src(e){super.src=e,this.realSrc=e,this.removeDocumentEventListener()}get muted(){return super.muted}set muted(e){super.muted=e}clear(){this.currentTime=0,this.src=qt}}function og(i){!i||i.inited||(i.src&&(i.inited=!0,i.removeDocumentEventListener()),i.src===qt&&i.play())}class so{constructor(t=0,e=0){f(this,"min");f(this,"max");f(this,"isInterval",!0);this.min=t,this.max=e}fromArray(t){return this.min=t[0],this.max=t[1],this}isOverlap(t){return Math.min(this.max,t.max)<Math.max(this.min,t.min)}contains(t){return this.min<t.min&&this.max>t.max}}class sg{constructor(t,e){f(this,"min");f(this,"max");f(this,"xInterval");f(this,"yInterval");f(this,"isRectangle",!0);this.min=t,this.max=e,this.xInterval=new so(this.min.x,this.max.x),this.yInterval=new so(this.min.y,this.max.y)}isOverlapWithRectangle(t){return!this.xInterval.isOverlap(t.xInterval)&&!this.yInterval.isOverlap(t.yInterval)}containsRect(t){return this.xInterval.contains(t.xInterval)&&this.yInterval.contains(t.yInterval)}}function Wn(i,t,e){const n=i[t],o=i[e];!n||!o||(i[t]=o,i[e]=n)}function rg(i,t,e){const n=e/2;for(let o=1;o<=n;o++){const s=e-(o-1);for(let r=1;r<=t;r++){const a=(o-1)*t+r-1,l=(s-1)*t+r-1;Wn(i,a*4+0,l*4+0),Wn(i,a*4+1,l*4+1),Wn(i,a*4+2,l*4+2),Wn(i,a*4+3,l*4+3)}}}class xl{constructor(t,e){f(this,"width");f(this,"height");f(this,"containerDom");f(this,"hooks",new Ce.Subscribe);f(this,"canvas",document.createElement("canvas"));f(this,"five");f(this,"scale");f(this,"config");f(this,"offset",{x:0,y:0});f(this,"context");f(this,"renderCenter",new k.Vector3);f(this,"hammer");f(this,"state",{enabled:!1});f(this,"onPan",t=>{if(!this.containerDom||this.hooks.emit("wantsPanGesture",t))return;const n=this.offset.x+t.deltaX,o=this.offset.y+t.deltaY;this.canvas.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)",this.canvas.style.transform=`translate3d(${n}px, ${o}px, 100px)`});f(this,"onPanEnd",t=>{this.offset={x:this.offset.x+t.deltaX,y:this.offset.y+t.deltaY},this.canvas.style.boxShadow="none"});var o,s,r;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(o=e==null?void 0:e.scale)!=null?o:2,this.width=(s=e==null?void 0:e.width)!=null?s:190,this.height=(r=e==null?void 0:e.height)!=null?r:190,this.config={dragEnabled:(e==null?void 0:e.dragEnabled)||!1,autoFixPCPosition:(e==null?void 0:e.autoFixPCPosition)||!1,initialPosition:(e==null?void 0:e.initialPosition)||{left:"0",top:"0"}};const n=this.canvas.getContext("2d");if(!n)throw new Error("CANNOT CREATE CONTEXT2D");this.context=n,this.config.dragEnabled&&(this.hammer=new Pn.default(this.canvas),this.hammer.on("pan",this.onPan),this.hammer.on("panend",this.onPanEnd)),this.initStyle()}dispose(){var t;this.clear(),this.disable(),(t=this.hammer)==null||t.destroy()}enable(){var t;if(!this.state.enabled)return this.state.enabled=!0,(t=this.containerDom)==null||t.append(this.canvas),this}disable(){if(!!this.state.enabled)return this.state.enabled=!1,this.canvas.remove(),this}appendTo(t){var e;return this.containerDom&&((e=this.containerDom)==null||e.removeChild(this.canvas)),this.containerDom=t,this.state.enabled&&t.append(this.canvas),this}clear(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}renderWithPoint(t){!this.containerDom||!this.state.enabled||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}autoFixPCPosition(){if(!this.containerDom)return;const{width:t,height:e}=this,n=this.renderCenter.clone().project(this.five.camera),o=(n.x+1)/2*this.containerDom.clientWidth,s=-(n.x-1)/2*this.containerDom.clientWidth,r=-(n.y-1)/2*this.containerDom.clientHeight;o<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):r<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):s<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=-t-90+"px"):(this.canvas.style.left=-t/2+"px",this.canvas.style.top=-e-90+"px"),this.canvas.style.transform=`translate3d(${o}px, ${r}px, 10px)`,this.offset={x:o,y:r}}render(){if(!this.five.renderer||!this.containerDom)return;const{scale:t,context:e,width:n,height:o}=this,s=this.renderCenter.clone().project(this.five.camera),r=this.five.renderer.getSize(new k.Vector2),a=1,l=n/t,c=o/t,u=a*t,d=(s.x+1)/2*r.x,h=(s.y+1)/2*r.y,m=this.five.getPixels(d-l/2,h-l/2,l,c,u),A=Math.floor(n*a),v=Math.floor(o*a);rg(m,A,v);const p=new ImageData(A,v);p.data.set(m),e.putImageData(p,0,0)}initStyle(){const t=this.canvas;t.classList.add("five-plugin__magnifier"),t.style.position="absolute",t.style.pointerEvents="all",t.style.borderRadius="50%",t.style.zIndex="99";const e=1;t.setAttribute("width",(this.width*e).toString()),t.setAttribute("height",(this.height*e).toString()),t.style.border="2px solid rgba(255,255,255,0.20)",t.style.width=this.width+"px",t.style.height=this.height+"px",t.style.top=this.config.initialPosition.top,t.style.left=this.config.initialPosition.left,t.style.transform="translate(0,0,100px)",this.config.dragEnabled&&(this.canvas.style.cursor="pointer")}}function ag(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return new k.Vector2().set((i.x-s)/e*2-1,-(i.y-o)/n*2+1)}function Dl(i,t){const{offsetWidth:e,offsetHeight:n}=t;return new k.Vector2().set(i.x/e*2-1,-i.y/n*2+1)}function lg(i,t){const e=i.getElement();if(!e)return;const n=Dl(t,e),o=new k.Raycaster;return o.setFromCamera(n,i.camera),o}function cg(i,t){const{x:e,y:n}=t,o=e*2-1,s=n*2-1,r=new k.Vector2().fromArray([o,s]),a=new k.Raycaster;return a.setFromCamera(r,i.camera),i.model.intersectRaycaster(a)[0]}const ug="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAA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hAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC",dg=`
531
531
  varying vec2 vUv;
532
532
  void main() {
533
533
  vUv = uv;
534
534
  vec4 mvPosition = modelViewMatrix * vec4(position, 1);
535
535
  gl_Position = projectionMatrix * mvPosition;
536
536
  }
537
- `,fg=`
537
+ `,hg=`
538
538
  varying vec2 vUv;
539
539
  void main() {
540
540
  vec2 uv = vec2(vUv.x, vUv.y);
@@ -542,8 +542,8 @@ void main() {
542
542
  float match = 1.0 - uv.x;
543
543
  gl_FragColor = vec4(1.0,1.0,1.0,match);
544
544
  }
545
- `;function mg(){const i=new I.PlaneGeometry(.4,.4),t=dg,e=new I.TextureLoader().load(t);e.encoding=I.sRGBEncoding,e.minFilter=I.LinearFilter;const n=new I.MeshBasicMaterial({map:e,transparent:!0,depthTest:!1});return new I.Mesh(i,n)}function pg(){const i=new I.CurvePath;i.add(new I.LineCurve3(new I.Vector3(0,0,0),new I.Vector3(0,0,.1)));const t=new I.TubeGeometry(i,8,.003),e=new I.ShaderMaterial({vertexShader:hg,fragmentShader:fg,depthTest:!1,transparent:!0});return new I.Mesh(t,e)}function gg(){const i=new I.SphereGeometry(.01,20,20),t=new I.MeshBasicMaterial({color:10349931,depthTest:!1,transparent:!0,side:I.DoubleSide}),e=new I.Mesh(i,t);return e.position.set(0,0,.1),e}class Ll extends I.Object3D{constructor(){super();f(this,"planeMesh");f(this,"lineMesh");f(this,"ballMesh");this.planeMesh=mg(),this.lineMesh=pg(),this.ballMesh=gg(),this.add(this.planeMesh,this.lineMesh,this.ballMesh)}updateWithIntersect(e){if(!e.face)return;const n=new I.Vector3().addVectors(e.point,e.face.normal);this.position.copy(e.point),this.lookAt(n)}dispose(){var e;(e=this.planeMesh.material.map)==null||e.dispose()}}class Sl{constructor(t){f(this,"five");f(this,"contentElement",document.createElement("div"));f(this,"animeIns");f(this,"container");f(this,"css3DObject");f(this,"disposeCss3DObject");f(this,"state",{enabled:!1});this.five=t;const n=.4/2,s=Kt(t).create3DDomContainer([[-n,n,0],[-n,-n,0],[n,-n,0],[n,n,0]].map(r=>new I.Vector3().fromArray(r)));if(s){const{container:r,dispose:a,css3DObject:l}=s;this.container=r,this.css3DObject=l,this.disposeCss3DObject=a}this.contentElement.style.width="100%",this.contentElement.style.height="100%",this.contentElement.style.backgroundImage=`url(${dl})`,this.contentElement.style.backgroundSize="100%",this.contentElement.style.backgroundRepeat="no-repeat"}enable(){var t;this.state.enabled||(this.state.enabled=!0,(t=this.container)==null||t.appendChild(this.contentElement))}disable(){!this.state.enabled||(this.state.enabled=!1,this.contentElement.remove())}updateWithIntersect(t){if(!t.face||!this.css3DObject)return;const e=new I.Vector3().addVectors(t.point,t.face.normal);this.css3DObject.position.copy(t.point),this.css3DObject.lookAt(e),this.five.needsRender=!0}doAnimation(){var t;(t=this.animeIns)==null||t.dispose(),new yo({progress:0}).to({progress:[1,0]}).duration(500).easing(di.Easing.Quadratic.InOut).onUpdate(({progress:e})=>{}).play()}dispose(){var t;(t=this.disposeCss3DObject)==null||t.call(this)}}class Ag{constructor(t,e){f(this,"five");f(this,"hooks",new Ce.Subscribe);f(this,"magnifier",null);f(this,"pointHelper",null);f(this,"pointDomHelper",null);f(this,"contentDom",document.createElement("div"));f(this,"state",{enabled:!1});f(this,"group",new I.Group);this.five=t,this.magnifier=(e==null?void 0:e.magnifier)===void 0?new xl(t,{dragEnabled:!0}):null,this.pointHelper=(e==null?void 0:e.pointHelper)===void 0?new Ll:null,this.pointDomHelper=(e==null?void 0:e.pointDomHelper)===void 0?new Sl(t):null,this.group.name="five-point-selector",this.five.scene.add(this.group),this.contentDom.classList.add("five-point-selector-content"),this.contentDom.style.position="absolute",this.contentDom.style.top="0",this.contentDom.style.left="0",this.contentDom.style.width="100%",this.contentDom.style.height="100%",this.contentDom.style.pointerEvents="none"}enable(){var t,e;this.state.enabled||(this.state.enabled=!0,this.pointHelper&&this.group.add(this.pointHelper),(t=this.magnifier)==null||t.enable(),(e=this.pointDomHelper)==null||e.enable(),this.five.needsRender=!0,this.hooks.emit("enabled"))}disable(){var t,e;!this.state.enabled||(this.state.enabled=!1,this.pointHelper&&this.group.remove(this.pointHelper),(t=this.magnifier)==null||t.disable(),(e=this.pointDomHelper)==null||e.disable(),this.hooks.emit("disabled"))}dispose(){this.hooks.off(),this.disable(),this.magnifier=null,this.pointHelper=null,this.pointDomHelper=null}updateWithIntersect(t){var s;this.hooks.emit("pointChanged",{panoIndex:this.five.getCurrentState().panoIndex,position:t.point.toArray(),normal:(s=t.face)==null?void 0:s.normal.toArray()});const e=this.magnifier;e&&e.renderWithPoint(t.point);const n=this.pointHelper;n&&n.updateWithIntersect(t);const o=this.pointDomHelper;o&&o.updateWithIntersect(t),this.five.needsRender=!0}}const vg=Object.freeze(Object.defineProperty({__proto__:null,Interval:so,Rectangle:rg,Magnifier:xl,getCoordsFromClient:lg,getCoordsFromElement:Dl,getRaycasterFromFivePointer:cg,getIntersectFromRelativePosition:ug,PointHelper:Ll,PointDomHelper:Sl,FivePointSelector:Ag,isNil:Fp,notNil:yt,BetterTween:yo,tweenProgress:tl,nextFrame:bi,requestAnimationFrameInterval:kn,getFrameTime:af},Symbol.toStringTag,{value:"Module"})),bg={globalConfig:{unfoldedConfig:{autoUnfold:{strategy:"MinimumDistance",distance:{max:5}}},tag3DConfig:{ratio:.0035}},contentTypeConfig:{"Any-Audio-plane":{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},Link:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},VRLink:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},PanoLink:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},MediaPlane:{unfoldedConfig:{keep:"unfolded"},visibleConfig:{alwaysShowWhenMovePano:!0}},MediaModel:{unfoldedConfig:{keep:"unfolded"},visibleConfig:{keep:"visible",visibleFiveMode:["Panorama","Floorplan","Model","Mapview"],alwaysShowWhenMovePano:!0}}}};class yg extends In{constructor(e){super(e);f(this,"tagCacheByPanoIndex",{})}getCache({panoIndex:e,id:n,key:o}){var c,u,d,h;const{five:s}=this,r=(c=s.panoIndex)!=null?c:e;if(r===void 0)throw new Error(`TagCacheController getCache(): fivePanoIndex is ${r}`);const a=`${(d=(u=s.work)==null?void 0:u.workCode)!=null?d:s.model.uuid}-${r}`;let l=this.tagCacheByPanoIndex[a];if(l||(l=new Map,this.tagCacheByPanoIndex[a]=l),n===void 0)return l;if(o===void 0){const m=l.get(n);return m||(l.set(n,{}),l.get(n))}return(h=l.get(n))==null?void 0:h[o]}clearCache(){this.tagCacheByPanoIndex={}}removeCache(){}}const wg=navigator.userAgent.toLowerCase().indexOf("micromessenger")!==-1&&navigator.userAgent.toLowerCase().indexOf("iphone")!==-1;class Cg extends yg{constructor(e){super(e);f(this,"config",bg);f(this,"tags",[]);f(this,"mediaStore",mo({currentMediaElement:null}));f(this,"css3DRenderPlugin");f(this,"store",{disposers:[],disposed:!1,resizeObserverDisposerAdding:!1,css3DRenderDisposer:new Map})}get isPanorama(){return this.five.currentMode==="Panorama"}getTagById(e){const n=this.tags.find(o=>o.id===e);if(!n){console.warn(`error: can not find tag id ${e} by getTagById()`);return}return n}pauseCurrentMedia(){this.mediaStore.set({currentMediaElement:null})}getTagConfig(e){var s,r;if(!e)return(s=this.config.globalConfig)!=null?s:{};const n={};this.config.contentTypeConfig&&Object.keys(this.config.contentTypeConfig).forEach(a=>{const l=a;if(n[l])return;const c=l.split("-");if(c.length===1){const[u]=c;e.contentType===u&&(n[l]=this.config.contentTypeConfig[l])}if(c.length===2){const[u="Any",d="Any"]=c;(e.stickType===u||u==="Any")&&(e.contentType===d||d==="Any")&&(n[l]=this.config.contentTypeConfig[l])}if(c.length===3){const[u="Any",d,h]=c;if(d==="Audio"&&e.contentType==="Audio"){const m=e;(m.stickType===u||u==="Any")&&m.data.appearance===h&&(n[l]=this.config.contentTypeConfig[l])}}});const o=ft.default({},this.config.globalConfig,...Object.values(n),e.config);return typeof o.unfoldedConfig=="object"&&(o.unfoldedConfig.disableFold&&(o.unfoldedConfig={keep:"unfolded"}),o.unfoldedConfig.disableUnfold&&(o.unfoldedConfig={keep:"folded"}),o.unfoldedConfig.keep&&(o.unfoldedConfig={keep:o.unfoldedConfig.keep})),typeof o.visibleConfig=="object"&&o.visibleConfig.keep&&(o.visibleConfig={keep:o.visibleConfig.keep,visibleFiveMode:(r=o.visibleConfig)==null?void 0:r.visibleFiveMode}),o}loadVideoFirstFrame(){wg&&this.hooks.emit("loadVideoFirstFrame")}updateTagConfig(e){e!=null&&e.force&&this.clearCache(),this.tags.forEach(n=>{const o=this.getTagConfig(n);n.mergedConfig=o})}can(e,n){const o=n,s=this.getTagConfig(o);if(!s||typeof s!="object")return!0;if(e==="show"||e==="hide"){if(!s.visibleConfig||typeof s.visibleConfig!="object")return!0;if(e==="show"&&s.visibleConfig.keep==="hidden"||e==="hide"&&(s.visibleConfig.keep==="visible"||s.visibleConfig.alwaysShowWhenMovePano))return!1}if(e==="fold"||e==="unfold"){if(!s.unfoldedConfig||typeof s.unfoldedConfig!="object")return!0;if(e==="fold"&&s.unfoldedConfig.keep==="unfolded"||e==="unfold"&&s.unfoldedConfig.keep==="folded")return!1}if(e==="renderByMesh")if(o.contentType==="MediaPlane"&&o.stickType==="Plane"){const r=o.data.mediaData;return r.length===1&&r[0].type==="Image"&&s.renderType==="Mesh"}else return!1;return!0}getAngle(e,n){var r,a,l;const o=(r=this.five.panoIndex)!=null?r:n;if(o===void 0)throw new Error(`getDistance(): fivePanoIndex is ${o}`);const s=this.getCache({panoIndex:n,id:e.id});if(s.angle!==void 0)return s.angle;{const c=(l=(a=this.five.work)==null?void 0:a.observers[o])==null?void 0:l.position;if(c===void 0)throw new Error(`getAngleRange(): observerPosition is ${c}`);const u=(()=>e.stickType==="3DPoint"?yn(e.normal):oo(e.position))();if(!u)return;const d=new I.Vector3().copy(c).sub(Co(e.position)),h=u.angleTo(d)*180/Math.PI;return s.angle=h,s.angle}}getDistance(e,n){var r,a,l;const o=(r=this.five.panoIndex)!=null?r:n;if(o===void 0)throw new Error(`getDistance(): fivePanoIndex is ${o}`);const s=this.getCache({panoIndex:n,id:e.id});if(s.distance!==void 0)return s.distance;{const c=(l=(a=this.five.work)==null?void 0:a.observers[o])==null?void 0:l.position;if(c===void 0)throw new Error(`getDistance(): observerPosition is ${c}`);const u=Il(e);if(!u)return-1;const d=c.distanceTo(u);return s.distance=d,d}}get filterPointTag(){return this.tags.filter(e=>e.stickType==="2DPoint"||e.stickType==="3DPoint").filter(e=>e.position)}get filter2DPointTag(){return this.tags.filter(e=>e.stickType==="2DPoint").filter(e=>e.position)}get filter3DPointTag(){return this.tags.filter(e=>e.stickType==="3DPoint").filter(e=>e.position)}get filterImageModel(){return this.tags.filter(e=>this.can("renderByMesh",e))}get filterModelTag(){return this.tags.filter(e=>e.stickType==="Model")}get filter3DTag(){return this.tags.filter(e=>e.stickType==="3DPoint"||e.stickType==="Plane"||e.stickType==="Model").filter(e=>!this.can("renderByMesh",e))}checkDisposed(){return this.store.disposed?(console.error("PanoTagPluginController has been disposed"),!0):!1}}class Eg extends Cg{constructor(e){super(e);f(this,"raycaster",new I.Raycaster)}getVisibleByPanoIndex(e,n){var r;const o=this.getCache({panoIndex:n,id:e.id}),s=(r=this.five.panoIndex)!=null?r:n;if(Fe(e))return!0;if(o.visible!==void 0)return o.visible;{const a=(()=>{var u,d,h;const l=(u=this.getTagConfig(e).visibleConfig)!=null?u:{},c=this.getDistance(e);if(typeof l=="function")return{value:l(this.five,{tag:e,distance:c}),reason:"config function result"};if(l.keep==="hidden")return{value:!1,reason:"config.keep is hidden"};if(l.keep==="visible")return{value:!0,reason:"config.keep is visible"};if(l.visiblePanoIndex!==void 0&&l.visiblePanoIndex!=="all"&&s!==void 0){if(Array.isArray(l.visiblePanoIndex)&&!l.visiblePanoIndex.includes(s))return{value:!1,reason:`current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${l.visiblePanoIndex}`};if(l.visiblePanoIndex==="current"&&s!==((d=e.fiveState)==null?void 0:d.panoIndex))return{value:!1,reason:`current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(h=e.fiveState)==null?void 0:h.panoIndex}`}}if(l.visibleDistance!==void 0&&l.visibleDistance!=="unLimited"&&dn(c,l.visibleDistance)===!1)return{value:!1,reason:`distance is not in visibleDistance. distance: ${c}, visibleDistance: ${l.visibleDistance}`};if(l.intersectRaycaster!==!1&&(typeof l.intersectRaycaster!="object"||l.intersectRaycaster.enabled!==!1)){if(s===void 0)return{value:!1,reason:`intersectRaycaster check failed: fivePanoIndex is ${s}`};const m=this.getRaycasterFromPanoIndex(e,s),A=this.getTagEnableByIntersect(e,m);if(A.value===!1)return A}if(l.angleRange&&Zp(e)){const m=this.getAngle(e);if(dn(m,l.angleRange)===!1)return{value:!1,reason:`angle is not in angleRange. angle: ${m}, angleRange: ${l.angleRange}`}}return{value:!0,reason:"all check passed"}})();return o.visible=a.value,o.__debug_visible_reason__=a,o.visible}}getVisibleByFiveMode(e,n){var r;const o=(r=this.getTagConfig(e).visibleConfig)!=null?r:{};if(typeof o=="function")return n==="Panorama";const s=o==null?void 0:o.visibleFiveMode;return s?s.includes(n):n==="Panorama"}getVisibleByFloorIndex(e){var a;const n=e.fiveState;if(!n)return!0;const o=n.panoIndex,s=(a=this.five.work.observers[o])==null?void 0:a.floorIndex,r=this.five.model.shownFloor;return r===null||r===s}getVisible(e){const n=this.five.getCurrentState(),o=this.getVisibleByFiveMode(e,n.mode),s=Fe(e)?this.getVisibleByFloorIndex(e):!0,r=n.mode==="Panorama"?this.getVisibleByPanoIndex(e,n.panoIndex):!0;return o&&r&&s}getModelMedialVisibleByPanoIndex(e){const n=this.five.getCurrentState().panoIndex,o=this.getCache({panoIndex:n,id:e.id});if(o.modelMedialVisible!==void 0)return o.modelMedialVisible;const s=this.getRaycasterFromPanoIndex(e,n),r=this.getTagEnableByIntersect(e,s);return o.modelMedialVisible=r.value,o.__debug_visible_reason__=r,r.value!==!1}getUnfoldedByPanoIndex(e,n){if(!this.getVisibleByPanoIndex(e))return;const s=this.getCache({panoIndex:n,id:e.id});if(s.unfolded!==void 0)return s.unfolded;{const r=this.getTagConfig(e).unfoldedConfig;if(!r)return;const a=(()=>{const c=this.getDistance(e);if(typeof r=="function")return r(this.five,{tag:e,distance:c});if(r.keep==="folded")return!1;if(r.keep==="unfolded")return!0;if(r.unfoldDistance&&dn(c,r.unfoldDistance)===!1)return!1})();s.unfolded=a;const l=this.getUnfoldedByCamera(e);return l!==void 0?l:s.unfolded}}getUnfoldedByCamera(e){return this.getVisibleByPanoIndex(e)?(()=>{var a;const s=this.getDistance(e),r=this.getTagConfig(e).unfoldedConfig;if(!!r){if(typeof r=="function")return r(this.five,{tag:e,distance:s});if(r.keep==="folded")return!1;if(r.keep==="unfolded")return!0;if(r.autoUnfold===void 0||r.autoUnfold===!1||r.autoUnfold.enable===!1||!r.autoUnfold.strategy)return;if(r.autoUnfold.strategy==="ScreenPostion"){const l=this.getTagProject(e);if(l&&dn(l.x,r.autoUnfold.autoUnfoldProjectX)===!1)return!1}if(r.autoUnfold.strategy==="MinimumDistance"){const u=this.filterPointTag.filter(h=>this.getVisibleByPanoIndex(h)).filter(h=>{const m=this.getTagProject(h);if(!m)return!1;const{x:A,y:v,z:p}=m;return!(Math.abs(p)>1||Math.abs(A)>1||Math.abs(v)>1)}).map(h=>({tag:h,id:h.id,tagConfig:this.getTagConfig(h).unfoldedConfig})).filter(({tag:h,tagConfig:m})=>{var A,v;return!(typeof m!="object"||m.keep||m.autoUnfold===!1||((A=m.autoUnfold)==null?void 0:A.enable)===!1||((v=m.autoUnfold)==null?void 0:v.strategy)!=="MinimumDistance")}).map(h=>fe(Q({},h),{distance:this.getDistance(h.tag)})).filter(({distance:h,tagConfig:m})=>{var A,v;return!(h===void 0||typeof m!="object"||m.autoUnfold===!1||((A=m.autoUnfold)==null?void 0:A.enable)===!1||((v=m.autoUnfold)==null?void 0:v.strategy)!=="MinimumDistance"||m.autoUnfold.distance&&dn(h,m.autoUnfold.distance)===!1)}).sort((h,m)=>h.distance-m.distance).findIndex(h=>h.id===e.id);if(u===-1||u<=((a=r.autoUnfold.maxNumber)!=null?a:1)-1===!1)return!1}return!0}})():void 0}sort(e){return e.sort((n,o)=>{const s=this.getDistance(n),r=this.getDistance(o);return s===void 0||r===void 0?0:r-s})}setPointTagPosition(){const e=this.filterPointTag;e.length!==0&&e.forEach(n=>{var s;if(!((s=n.state)!=null&&s.visible)){n.pointTagStyle=null;return}const o=this.getTagProject(n);if(!o){n.pointTagStyle=null;return}n.pointTagStyle={leftPercent:(o.x+1)/2*100,topPercent:(-o.y+1)/2*100}})}setVisibleByPanoIndex(){this.tags.forEach(e=>{const n=this.getVisibleByPanoIndex(e);e.state&&(e.state.visible=n)})}setModelMedialVisible(){const e=this.five.getCurrentState().mode;this.tags.forEach(n=>{var s;if(!Fe(n))return;if(!((s=n.model)!=null&&s.object)){n.mediaVisible=!1;return}const o=e==="Panorama"?this.getModelMedialVisibleByPanoIndex(n):!0;n.mediaVisible=o})}setUnfoldedByPanoIndex(){this.tags.forEach(e=>{const n=this.getUnfoldedByPanoIndex(e);if(!!e.state&&(n!==void 0&&(e.state.unfolded=n),n&&!e.state.visible)){const o=this.getTagConfig(e);typeof o.unfoldedConfig=="object"&&o.unfoldedConfig.autoUnfoldWhenHide!==!1&&(e.state.unfolded=!1)}})}getTagProject(e){if(!this.getVisibleByPanoIndex(e)||!e.position)return;const o=Co(e.position),{x:s,y:r,z:a}=o.project(this.five.camera);if(!(a>1))return{x:s,y:r,z:a}}getTagEnableByIntersect(e,n){var u,d,h;const o=(u=this.getTagConfig(e).visibleConfig)!=null?u:{},s=this.getDistance(e),[r]=this.five.model.intersectRaycaster(n),a=(()=>{if(!Fe(e))return;const m=this.tags.filter(Fe).map(v=>{var p;return(p=v.model)==null?void 0:p.object}).filter(yt);return n.intersectObjects(m,!0)[0]})(),l=(()=>{var m;return typeof o=="object"&&typeof o.intersectRaycaster=="object"&&(m=o.intersectRaycaster.distanceAccuracy)!=null?m:.01})();return Math.min((d=r==null?void 0:r.distance)!=null?d:1/0,(h=a==null?void 0:a.distance)!=null?h:1/0)+l<s?{value:!1,reason:`intersectRaycaster check failed: distance is ${s}, intersection.point is ${r==null?void 0:r.point.toArray()},
546
- customModelIntersection.point is ${a==null?void 0:a.point.toArray()} distanceError is ${l}`}:{value:!0,reason:""}}getRaycasterFromPanoIndex(e,n){var r;const o=(r=this.five.work.observers[n])==null?void 0:r.position;if(o===void 0)throw new Error(`getVisible(): observerPosition is ${o}`);const s=Il(e).sub(o).normalize();return this.raycaster.set(o,s),this.raycaster}}function Pg(i){le(i,"svelte-xuejcm",".line.svelte-xuejcm{position:absolute;pointer-events:none}.line.vertical.svelte-xuejcm{transform:rotate(-90deg) translate3d(0.03125rem, 0, 0.625rem);transform-origin:0 0}.line.horizontal.svelte-xuejcm{transform:translate3d(0, -0.03125rem, 0.625rem)}.straight-line.svelte-xuejcm{display:block;width:100%;height:100%;overflow:visible}")}function ir(i){let t,e,n,o,s,r,a,l=i[3]&&or(i);return{c(){t=z("div"),e=we("svg"),n=we("defs"),o=we("linearGradient"),s=we("stop"),r=we("stop"),l&&l.c(),y(s,"offset","25%"),y(s,"stop-color",i[5]),y(s,"stop-opacity","1"),y(r,"offset","100%"),y(r,"stop-color",i[5]),y(r,"stop-opacity","0.5"),y(o,"x1",.5),y(o,"y1",.5),y(o,"x2",i[8]),y(o,"y2",.5),y(o,"id",i[10]),y(o,"gradientUnits","userSpaceOnUse"),y(e,"class","straight-line svelte-xuejcm"),y(e,"viewBox",a="0 0 "+i[8]+" "+i[7]),y(e,"preserveAspectRatio","none"),y(t,"class","line svelte-xuejcm"),q(t,"vertical",i[9]),q(t,"horizontal",!i[9]),T(t,"width",i[8]+"px"),T(t,"height",i[7]+"px")},m(c,u){M(c,t,u),j(t,e),j(e,n),j(n,o),j(o,s),j(o,r),l&&l.m(e,null)},p(c,u){u&32&&y(s,"stop-color",c[5]),u&32&&y(r,"stop-color",c[5]),u&256&&y(o,"x2",c[8]),c[3]?l?(l.p(c,u),u&8&&P(l,1)):(l=or(c),l.c(),P(l,1),l.m(e,null)):l&&(se(),L(l,1,1,()=>{l=null}),re()),u&384&&a!==(a="0 0 "+c[8]+" "+c[7])&&y(e,"viewBox",a),u&512&&q(t,"vertical",c[9]),u&512&&q(t,"horizontal",!c[9]),u&256&&T(t,"width",c[8]+"px"),u&128&&T(t,"height",c[7]+"px")},d(c){c&&S(t),l&&l.d()}}}function or(i){let t,e,n,o,s;return{c(){t=we("path"),y(t,"fill","none"),y(t,"stroke",e=i[4]?`url(#${i[10]})`:i[5]),y(t,"stroke-width",1),y(t,"d",i[6])},m(r,a){M(r,t,a),s=!0},p(r,a){i=r,(!s||a&48&&e!==(e=i[4]?`url(#${i[10]})`:i[5]))&&y(t,"stroke",e),(!s||a&64)&&y(t,"d",i[6])},i(r){s||(r&&Oe(()=>{o&&o.end(1),n=Tt(t,ci,{duration:i[2],delay:i[0],easing:At}),n.start()}),s=!0)},o(r){n&&n.invalidate(),r&&(o=rn(t,ci,{duration:i[2],delay:i[1],easing:At})),s=!1},d(r){r&&S(t),r&&o&&o.end()}}}function Ig(i){let t,e=i[8]&&ir(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),M(n,t,o)},p(n,[o]){n[8]?e?e.p(n,o):(e=ir(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:U,o:U,d(n){e&&e.d(n),n&&S(t)}}}function kg(i,t,e){let n,o,s,r,{inDelay:a=0}=t,{outDelay:l=0}=t,{duration:c=1e3}=t,{unfolded:u}=t,{length:d}=t,{direction:h="horizontal"}=t,{useLinearColor:m=!1}=t,{color:A="white"}=t;const v=_e();return i.$$set=p=>{"inDelay"in p&&e(0,a=p.inDelay),"outDelay"in p&&e(1,l=p.outDelay),"duration"in p&&e(2,c=p.duration),"unfolded"in p&&e(3,u=p.unfolded),"length"in p&&e(11,d=p.length),"direction"in p&&e(12,h=p.direction),"useLinearColor"in p&&e(4,m=p.useLinearColor),"color"in p&&e(5,A=p.color)},i.$$.update=()=>{i.$$.dirty&4096&&e(9,n=h==="vertical"),i.$$.dirty&2048&&e(8,o=d),i.$$.dirty&2048&&e(6,r=`M0.5 0.5 H ${d}`)},e(7,s=1),[a,l,c,u,m,A,r,s,o,n,v,d,h]}class Po extends oe{constructor(t){super(),ie(this,t,kg,Ig,ne,{inDelay:0,outDelay:1,duration:2,unfolded:3,length:11,direction:12,useLinearColor:4,color:5},Pg)}}function xg(i){le(i,"svelte-faoauy",".shadow.svelte-faoauy{position:absolute}")}function sr(i){let t,e,n,o,s;return{c(){t=z("div"),y(t,"class","shadow svelte-faoauy"),y(t,"style",e=`
545
+ `;function fg(){const i=new k.PlaneGeometry(.4,.4),t=ug,e=new k.TextureLoader().load(t);e.encoding=k.sRGBEncoding,e.minFilter=k.LinearFilter;const n=new k.MeshBasicMaterial({map:e,transparent:!0,depthTest:!1});return new k.Mesh(i,n)}function mg(){const i=new k.CurvePath;i.add(new k.LineCurve3(new k.Vector3(0,0,0),new k.Vector3(0,0,.1)));const t=new k.TubeGeometry(i,8,.003),e=new k.ShaderMaterial({vertexShader:dg,fragmentShader:hg,depthTest:!1,transparent:!0});return new k.Mesh(t,e)}function pg(){const i=new k.SphereGeometry(.01,20,20),t=new k.MeshBasicMaterial({color:10349931,depthTest:!1,transparent:!0,side:k.DoubleSide}),e=new k.Mesh(i,t);return e.position.set(0,0,.1),e}class Ll extends k.Object3D{constructor(){super();f(this,"planeMesh");f(this,"lineMesh");f(this,"ballMesh");this.planeMesh=fg(),this.lineMesh=mg(),this.ballMesh=pg(),this.add(this.planeMesh,this.lineMesh,this.ballMesh)}updateWithIntersect(e){if(!e.face)return;const n=new k.Vector3().addVectors(e.point,e.face.normal);this.position.copy(e.point),this.lookAt(n)}dispose(){var e;(e=this.planeMesh.material.map)==null||e.dispose()}}class Sl{constructor(t){f(this,"five");f(this,"contentElement",document.createElement("div"));f(this,"animeIns");f(this,"container");f(this,"css3DObject");f(this,"disposeCss3DObject");f(this,"state",{enabled:!1});this.five=t;const n=.4/2,s=Kt(t).create3DDomContainer([[-n,n,0],[-n,-n,0],[n,-n,0],[n,n,0]].map(r=>new k.Vector3().fromArray(r)));if(s){const{container:r,dispose:a,css3DObject:l}=s;this.container=r,this.css3DObject=l,this.disposeCss3DObject=a}this.contentElement.style.width="100%",this.contentElement.style.height="100%",this.contentElement.style.backgroundImage=`url(${dl})`,this.contentElement.style.backgroundSize="100%",this.contentElement.style.backgroundRepeat="no-repeat"}enable(){var t;this.state.enabled||(this.state.enabled=!0,(t=this.container)==null||t.appendChild(this.contentElement))}disable(){!this.state.enabled||(this.state.enabled=!1,this.contentElement.remove())}updateWithIntersect(t){if(!t.face||!this.css3DObject)return;const e=new k.Vector3().addVectors(t.point,t.face.normal);this.css3DObject.position.copy(t.point),this.css3DObject.lookAt(e),this.five.needsRender=!0}doAnimation(){var t;(t=this.animeIns)==null||t.dispose(),new yo({progress:0}).to({progress:[1,0]}).duration(500).easing(di.Easing.Quadratic.InOut).onUpdate(({progress:e})=>{}).play()}dispose(){var t;(t=this.disposeCss3DObject)==null||t.call(this)}}class gg{constructor(t,e){f(this,"five");f(this,"hooks",new Ce.Subscribe);f(this,"magnifier",null);f(this,"pointHelper",null);f(this,"pointDomHelper",null);f(this,"contentDom",document.createElement("div"));f(this,"state",{enabled:!1});f(this,"group",new k.Group);this.five=t,this.magnifier=(e==null?void 0:e.magnifier)===void 0?new xl(t,{dragEnabled:!0}):null,this.pointHelper=(e==null?void 0:e.pointHelper)===void 0?new Ll:null,this.pointDomHelper=(e==null?void 0:e.pointDomHelper)===void 0?new Sl(t):null,this.group.name="five-point-selector",this.five.scene.add(this.group),this.contentDom.classList.add("five-point-selector-content"),this.contentDom.style.position="absolute",this.contentDom.style.top="0",this.contentDom.style.left="0",this.contentDom.style.width="100%",this.contentDom.style.height="100%",this.contentDom.style.pointerEvents="none"}enable(){var t,e;this.state.enabled||(this.state.enabled=!0,this.pointHelper&&this.group.add(this.pointHelper),(t=this.magnifier)==null||t.enable(),(e=this.pointDomHelper)==null||e.enable(),this.five.needsRender=!0,this.hooks.emit("enabled"))}disable(){var t,e;!this.state.enabled||(this.state.enabled=!1,this.pointHelper&&this.group.remove(this.pointHelper),(t=this.magnifier)==null||t.disable(),(e=this.pointDomHelper)==null||e.disable(),this.hooks.emit("disabled"))}dispose(){this.hooks.off(),this.disable(),this.magnifier=null,this.pointHelper=null,this.pointDomHelper=null}updateWithIntersect(t){var s;this.hooks.emit("pointChanged",{panoIndex:this.five.getCurrentState().panoIndex,position:t.point.toArray(),normal:(s=t.face)==null?void 0:s.normal.toArray()});const e=this.magnifier;e&&e.renderWithPoint(t.point);const n=this.pointHelper;n&&n.updateWithIntersect(t);const o=this.pointDomHelper;o&&o.updateWithIntersect(t),this.five.needsRender=!0}}const Ag=Object.freeze(Object.defineProperty({__proto__:null,Interval:so,Rectangle:sg,Magnifier:xl,getCoordsFromClient:ag,getCoordsFromElement:Dl,getRaycasterFromFivePointer:lg,getIntersectFromRelativePosition:cg,PointHelper:Ll,PointDomHelper:Sl,FivePointSelector:gg,isNil:Qp,notNil:yt,BetterTween:yo,tweenProgress:tl,nextFrame:bi,requestAnimationFrameInterval:kn,getFrameTime:rf},Symbol.toStringTag,{value:"Module"})),vg={globalConfig:{unfoldedConfig:{autoUnfold:{strategy:"MinimumDistance",distance:{max:5}}},tag3DConfig:{ratio:.0035}},contentTypeConfig:{"Any-Audio-plane":{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},Link:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},VRLink:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},PanoLink:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},MediaPlane:{unfoldedConfig:{keep:"unfolded"},visibleConfig:{alwaysShowWhenMovePano:!0}},MediaModel:{unfoldedConfig:{keep:"unfolded"},visibleConfig:{keep:"visible",visibleFiveMode:["Panorama","Floorplan","Model","Mapview"],alwaysShowWhenMovePano:!0}}}};class bg extends In{constructor(e){super(e);f(this,"tagCacheByPanoIndex",{})}getCache({panoIndex:e,id:n,key:o}){var c,u,d,h;const{five:s}=this,r=(c=s.panoIndex)!=null?c:e;if(r===void 0)throw new Error(`TagCacheController getCache(): fivePanoIndex is ${r}`);const a=`${(d=(u=s.work)==null?void 0:u.workCode)!=null?d:s.model.uuid}-${r}`;let l=this.tagCacheByPanoIndex[a];if(l||(l=new Map,this.tagCacheByPanoIndex[a]=l),n===void 0)return l;if(o===void 0){const m=l.get(n);return m||(l.set(n,{}),l.get(n))}return(h=l.get(n))==null?void 0:h[o]}clearCache(){this.tagCacheByPanoIndex={}}removeCache(){}}const yg=navigator.userAgent.toLowerCase().indexOf("micromessenger")!==-1&&navigator.userAgent.toLowerCase().indexOf("iphone")!==-1;class wg extends bg{constructor(e){super(e);f(this,"config",vg);f(this,"tags",[]);f(this,"mediaStore",mo({currentMediaElement:null}));f(this,"css3DRenderPlugin");f(this,"store",{disposers:[],disposed:!1,resizeObserverDisposerAdding:!1,css3DRenderDisposer:new Map})}get isPanorama(){return this.five.currentMode==="Panorama"}getTagById(e){const n=this.tags.find(o=>o.id===e);if(!n){console.warn(`error: can not find tag id ${e} by getTagById()`);return}return n}pauseCurrentMedia(){this.mediaStore.set({currentMediaElement:null})}getTagConfig(e){var s,r;if(!e)return(s=this.config.globalConfig)!=null?s:{};const n={};this.config.contentTypeConfig&&Object.keys(this.config.contentTypeConfig).forEach(a=>{const l=a;if(n[l])return;const c=l.split("-");if(c.length===1){const[u]=c;e.contentType===u&&(n[l]=this.config.contentTypeConfig[l])}if(c.length===2){const[u="Any",d="Any"]=c;(e.stickType===u||u==="Any")&&(e.contentType===d||d==="Any")&&(n[l]=this.config.contentTypeConfig[l])}if(c.length===3){const[u="Any",d,h]=c;if(d==="Audio"&&e.contentType==="Audio"){const m=e;(m.stickType===u||u==="Any")&&m.data.appearance===h&&(n[l]=this.config.contentTypeConfig[l])}}});const o=ft.default({},this.config.globalConfig,...Object.values(n),e.config);return typeof o.unfoldedConfig=="object"&&(o.unfoldedConfig.disableFold&&(o.unfoldedConfig={keep:"unfolded"}),o.unfoldedConfig.disableUnfold&&(o.unfoldedConfig={keep:"folded"}),o.unfoldedConfig.keep&&(o.unfoldedConfig={keep:o.unfoldedConfig.keep})),typeof o.visibleConfig=="object"&&o.visibleConfig.keep&&(o.visibleConfig={keep:o.visibleConfig.keep,visibleFiveMode:(r=o.visibleConfig)==null?void 0:r.visibleFiveMode}),o}loadVideoFirstFrame(){yg&&this.hooks.emit("loadVideoFirstFrame")}updateTagConfig(e){e!=null&&e.force&&this.clearCache(),this.tags.forEach(n=>{const o=this.getTagConfig(n);n.mergedConfig=o})}can(e,n){const o=n,s=this.getTagConfig(o);if(!s||typeof s!="object")return!0;if(e==="show"||e==="hide"){if(!s.visibleConfig||typeof s.visibleConfig!="object")return!0;if(e==="show"&&s.visibleConfig.keep==="hidden"||e==="hide"&&(s.visibleConfig.keep==="visible"||s.visibleConfig.alwaysShowWhenMovePano))return!1}if(e==="fold"||e==="unfold"){if(!s.unfoldedConfig||typeof s.unfoldedConfig!="object")return!0;if(e==="fold"&&s.unfoldedConfig.keep==="unfolded"||e==="unfold"&&s.unfoldedConfig.keep==="folded")return!1}if(e==="renderByMesh")if(o.contentType==="MediaPlane"&&o.stickType==="Plane"){const r=o.data.mediaData;return r.length===1&&r[0].type==="Image"&&s.renderType==="Mesh"}else return!1;return!0}getAngle(e,n){var r,a,l;const o=(r=this.five.panoIndex)!=null?r:n;if(o===void 0)throw new Error(`getDistance(): fivePanoIndex is ${o}`);const s=this.getCache({panoIndex:n,id:e.id});if(s.angle!==void 0)return s.angle;{const c=(l=(a=this.five.work)==null?void 0:a.observers[o])==null?void 0:l.position;if(c===void 0)throw new Error(`getAngleRange(): observerPosition is ${c}`);const u=(()=>e.stickType==="3DPoint"?yn(e.normal):oo(e.position))();if(!u)return;const d=new k.Vector3().copy(c).sub(Co(e.position)),h=u.angleTo(d)*180/Math.PI;return s.angle=h,s.angle}}getDistance(e,n){var r,a,l;const o=(r=this.five.panoIndex)!=null?r:n;if(o===void 0)throw new Error(`getDistance(): fivePanoIndex is ${o}`);const s=this.getCache({panoIndex:n,id:e.id});if(s.distance!==void 0)return s.distance;{const c=(l=(a=this.five.work)==null?void 0:a.observers[o])==null?void 0:l.position;if(c===void 0)throw new Error(`getDistance(): observerPosition is ${c}`);const u=Il(e);if(!u)return-1;const d=c.distanceTo(u);return s.distance=d,d}}get filterPointTag(){return this.tags.filter(e=>e.stickType==="2DPoint"||e.stickType==="3DPoint").filter(e=>e.position)}get filter2DPointTag(){return this.tags.filter(e=>e.stickType==="2DPoint").filter(e=>e.position)}get filter3DPointTag(){return this.tags.filter(e=>e.stickType==="3DPoint").filter(e=>e.position)}get filterImageModel(){return this.tags.filter(e=>this.can("renderByMesh",e))}get filterModelTag(){return this.tags.filter(e=>e.stickType==="Model")}get filter3DTag(){return this.tags.filter(e=>e.stickType==="3DPoint"||e.stickType==="Plane"||e.stickType==="Model").filter(e=>!this.can("renderByMesh",e))}checkDisposed(){return this.store.disposed?(console.error("PanoTagPluginController has been disposed"),!0):!1}}class Cg extends wg{constructor(e){super(e);f(this,"raycaster",new k.Raycaster)}getVisibleByPanoIndex(e,n){var r;const o=this.getCache({panoIndex:n,id:e.id}),s=(r=this.five.panoIndex)!=null?r:n;if(Fe(e))return!0;if(o.visible!==void 0)return o.visible;{const a=(()=>{var u,d,h;const l=(u=this.getTagConfig(e).visibleConfig)!=null?u:{},c=this.getDistance(e);if(typeof l=="function")return{value:l(this.five,{tag:e,distance:c}),reason:"config function result"};if(l.keep==="hidden")return{value:!1,reason:"config.keep is hidden"};if(l.keep==="visible")return{value:!0,reason:"config.keep is visible"};if(l.visiblePanoIndex!==void 0&&l.visiblePanoIndex!=="all"&&s!==void 0){if(Array.isArray(l.visiblePanoIndex)&&!l.visiblePanoIndex.includes(s))return{value:!1,reason:`current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${l.visiblePanoIndex}`};if(l.visiblePanoIndex==="current"&&s!==((d=e.fiveState)==null?void 0:d.panoIndex))return{value:!1,reason:`current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(h=e.fiveState)==null?void 0:h.panoIndex}`}}if(l.visibleDistance!==void 0&&l.visibleDistance!=="unLimited"&&dn(c,l.visibleDistance)===!1)return{value:!1,reason:`distance is not in visibleDistance. distance: ${c}, visibleDistance: ${l.visibleDistance}`};if(l.intersectRaycaster!==!1&&(typeof l.intersectRaycaster!="object"||l.intersectRaycaster.enabled!==!1)){if(s===void 0)return{value:!1,reason:`intersectRaycaster check failed: fivePanoIndex is ${s}`};const m=this.getRaycasterFromPanoIndex(e,s),A=this.getTagEnableByIntersect(e,m);if(A.value===!1)return A}if(l.angleRange&&Jp(e)){const m=this.getAngle(e);if(dn(m,l.angleRange)===!1)return{value:!1,reason:`angle is not in angleRange. angle: ${m}, angleRange: ${l.angleRange}`}}return{value:!0,reason:"all check passed"}})();return o.visible=a.value,o.__debug_visible_reason__=a,o.visible}}getVisibleByFiveMode(e,n){var r;const o=(r=this.getTagConfig(e).visibleConfig)!=null?r:{};if(typeof o=="function")return n==="Panorama";const s=o==null?void 0:o.visibleFiveMode;return s?s.includes(n):n==="Panorama"}getVisibleByFloorIndex(e){var a;const n=e.fiveState;if(!n)return!0;const o=n.panoIndex,s=(a=this.five.work.observers[o])==null?void 0:a.floorIndex,r=this.five.model.shownFloor;return r===null||r===s}getVisible(e){const n=this.five.getCurrentState(),o=this.getVisibleByFiveMode(e,n.mode),s=Fe(e)?this.getVisibleByFloorIndex(e):!0,r=n.mode==="Panorama"?this.getVisibleByPanoIndex(e,n.panoIndex):!0;return o&&r&&s}getModelMedialVisibleByPanoIndex(e){const n=this.five.getCurrentState().panoIndex,o=this.getCache({panoIndex:n,id:e.id});if(o.modelMedialVisible!==void 0)return o.modelMedialVisible;const s=this.getRaycasterFromPanoIndex(e,n),r=this.getTagEnableByIntersect(e,s);return o.modelMedialVisible=r.value,o.__debug_visible_reason__=r,r.value!==!1}getUnfoldedByPanoIndex(e,n){if(!this.getVisibleByPanoIndex(e))return;const s=this.getCache({panoIndex:n,id:e.id});if(s.unfolded!==void 0)return s.unfolded;{const r=this.getTagConfig(e).unfoldedConfig;if(!r)return;const a=(()=>{const c=this.getDistance(e);if(typeof r=="function")return r(this.five,{tag:e,distance:c});if(r.keep==="folded")return!1;if(r.keep==="unfolded")return!0;if(r.unfoldDistance&&dn(c,r.unfoldDistance)===!1)return!1})();s.unfolded=a;const l=this.getUnfoldedByCamera(e);return l!==void 0?l:s.unfolded}}getUnfoldedByCamera(e){return this.getVisibleByPanoIndex(e)?(()=>{var a;const s=this.getDistance(e),r=this.getTagConfig(e).unfoldedConfig;if(!!r){if(typeof r=="function")return r(this.five,{tag:e,distance:s});if(r.keep==="folded")return!1;if(r.keep==="unfolded")return!0;if(r.autoUnfold===void 0||r.autoUnfold===!1||r.autoUnfold.enable===!1||!r.autoUnfold.strategy)return;if(r.autoUnfold.strategy==="ScreenPostion"){const l=this.getTagProject(e);if(l&&dn(l.x,r.autoUnfold.autoUnfoldProjectX)===!1)return!1}if(r.autoUnfold.strategy==="MinimumDistance"){const u=this.filterPointTag.filter(h=>this.getVisibleByPanoIndex(h)).filter(h=>{const m=this.getTagProject(h);if(!m)return!1;const{x:A,y:v,z:p}=m;return!(Math.abs(p)>1||Math.abs(A)>1||Math.abs(v)>1)}).map(h=>({tag:h,id:h.id,tagConfig:this.getTagConfig(h).unfoldedConfig})).filter(({tag:h,tagConfig:m})=>{var A,v;return!(typeof m!="object"||m.keep||m.autoUnfold===!1||((A=m.autoUnfold)==null?void 0:A.enable)===!1||((v=m.autoUnfold)==null?void 0:v.strategy)!=="MinimumDistance")}).map(h=>fe(Q({},h),{distance:this.getDistance(h.tag)})).filter(({distance:h,tagConfig:m})=>{var A,v;return!(h===void 0||typeof m!="object"||m.autoUnfold===!1||((A=m.autoUnfold)==null?void 0:A.enable)===!1||((v=m.autoUnfold)==null?void 0:v.strategy)!=="MinimumDistance"||m.autoUnfold.distance&&dn(h,m.autoUnfold.distance)===!1)}).sort((h,m)=>h.distance-m.distance).findIndex(h=>h.id===e.id);if(u===-1||u<=((a=r.autoUnfold.maxNumber)!=null?a:1)-1===!1)return!1}return!0}})():void 0}sort(e){return e.sort((n,o)=>{const s=this.getDistance(n),r=this.getDistance(o);return s===void 0||r===void 0?0:r-s})}setPointTagPosition(){const e=this.filterPointTag;e.length!==0&&e.forEach(n=>{var s;if(!((s=n.state)!=null&&s.visible)){n.pointTagStyle=null;return}const o=this.getTagProject(n);if(!o){n.pointTagStyle=null;return}n.pointTagStyle={leftPercent:(o.x+1)/2*100,topPercent:(-o.y+1)/2*100}})}setVisibleByPanoIndex(){this.tags.forEach(e=>{const n=this.getVisibleByPanoIndex(e);e.state&&(e.state.visible=n)})}setModelMedialVisible(){const e=this.five.getCurrentState().mode;this.tags.forEach(n=>{var s;if(!Fe(n))return;if(!((s=n.model)!=null&&s.object)){n.mediaVisible=!1;return}const o=e==="Panorama"?this.getModelMedialVisibleByPanoIndex(n):!0;n.mediaVisible=o})}setUnfoldedByPanoIndex(){this.tags.forEach(e=>{const n=this.getUnfoldedByPanoIndex(e);if(!!e.state&&(n!==void 0&&(e.state.unfolded=n),n&&!e.state.visible)){const o=this.getTagConfig(e);typeof o.unfoldedConfig=="object"&&o.unfoldedConfig.autoUnfoldWhenHide!==!1&&(e.state.unfolded=!1)}})}getTagProject(e){if(!this.getVisibleByPanoIndex(e)||!e.position)return;const o=Co(e.position),{x:s,y:r,z:a}=o.project(this.five.camera);if(!(a>1))return{x:s,y:r,z:a}}getTagEnableByIntersect(e,n){var u,d,h;const o=(u=this.getTagConfig(e).visibleConfig)!=null?u:{},s=this.getDistance(e),[r]=this.five.model.intersectRaycaster(n),a=(()=>{if(!Fe(e))return;const m=this.tags.filter(Fe).map(v=>{var p;return(p=v.model)==null?void 0:p.object}).filter(yt);return n.intersectObjects(m,!0)[0]})(),l=(()=>{var m;return typeof o=="object"&&typeof o.intersectRaycaster=="object"&&(m=o.intersectRaycaster.distanceAccuracy)!=null?m:.01})();return Math.min((d=r==null?void 0:r.distance)!=null?d:1/0,(h=a==null?void 0:a.distance)!=null?h:1/0)+l<s?{value:!1,reason:`intersectRaycaster check failed: distance is ${s}, intersection.point is ${r==null?void 0:r.point.toArray()},
546
+ customModelIntersection.point is ${a==null?void 0:a.point.toArray()} distanceError is ${l}`}:{value:!0,reason:""}}getRaycasterFromPanoIndex(e,n){var r;const o=(r=this.five.work.observers[n])==null?void 0:r.position;if(o===void 0)throw new Error(`getVisible(): observerPosition is ${o}`);const s=Il(e).sub(o).normalize();return this.raycaster.set(o,s),this.raycaster}}function Eg(i){le(i,"svelte-xuejcm",".line.svelte-xuejcm{position:absolute;pointer-events:none}.line.vertical.svelte-xuejcm{transform:rotate(-90deg) translate3d(0.03125rem, 0, 0.625rem);transform-origin:0 0}.line.horizontal.svelte-xuejcm{transform:translate3d(0, -0.03125rem, 0.625rem)}.straight-line.svelte-xuejcm{display:block;width:100%;height:100%;overflow:visible}")}function ir(i){let t,e,n,o,s,r,a,l=i[3]&&or(i);return{c(){t=z("div"),e=we("svg"),n=we("defs"),o=we("linearGradient"),s=we("stop"),r=we("stop"),l&&l.c(),y(s,"offset","25%"),y(s,"stop-color",i[5]),y(s,"stop-opacity","1"),y(r,"offset","100%"),y(r,"stop-color",i[5]),y(r,"stop-opacity","0.5"),y(o,"x1",.5),y(o,"y1",.5),y(o,"x2",i[8]),y(o,"y2",.5),y(o,"id",i[10]),y(o,"gradientUnits","userSpaceOnUse"),y(e,"class","straight-line svelte-xuejcm"),y(e,"viewBox",a="0 0 "+i[8]+" "+i[7]),y(e,"preserveAspectRatio","none"),y(t,"class","line svelte-xuejcm"),q(t,"vertical",i[9]),q(t,"horizontal",!i[9]),T(t,"width",i[8]+"px"),T(t,"height",i[7]+"px")},m(c,u){M(c,t,u),j(t,e),j(e,n),j(n,o),j(o,s),j(o,r),l&&l.m(e,null)},p(c,u){u&32&&y(s,"stop-color",c[5]),u&32&&y(r,"stop-color",c[5]),u&256&&y(o,"x2",c[8]),c[3]?l?(l.p(c,u),u&8&&I(l,1)):(l=or(c),l.c(),I(l,1),l.m(e,null)):l&&(se(),L(l,1,1,()=>{l=null}),re()),u&384&&a!==(a="0 0 "+c[8]+" "+c[7])&&y(e,"viewBox",a),u&512&&q(t,"vertical",c[9]),u&512&&q(t,"horizontal",!c[9]),u&256&&T(t,"width",c[8]+"px"),u&128&&T(t,"height",c[7]+"px")},d(c){c&&S(t),l&&l.d()}}}function or(i){let t,e,n,o,s;return{c(){t=we("path"),y(t,"fill","none"),y(t,"stroke",e=i[4]?`url(#${i[10]})`:i[5]),y(t,"stroke-width",1),y(t,"d",i[6])},m(r,a){M(r,t,a),s=!0},p(r,a){i=r,(!s||a&48&&e!==(e=i[4]?`url(#${i[10]})`:i[5]))&&y(t,"stroke",e),(!s||a&64)&&y(t,"d",i[6])},i(r){s||(r&&Oe(()=>{o&&o.end(1),n=Tt(t,ci,{duration:i[2],delay:i[0],easing:At}),n.start()}),s=!0)},o(r){n&&n.invalidate(),r&&(o=rn(t,ci,{duration:i[2],delay:i[1],easing:At})),s=!1},d(r){r&&S(t),r&&o&&o.end()}}}function Pg(i){let t,e=i[8]&&ir(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),M(n,t,o)},p(n,[o]){n[8]?e?e.p(n,o):(e=ir(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:U,o:U,d(n){e&&e.d(n),n&&S(t)}}}function Ig(i,t,e){let n,o,s,r,{inDelay:a=0}=t,{outDelay:l=0}=t,{duration:c=1e3}=t,{unfolded:u}=t,{length:d}=t,{direction:h="horizontal"}=t,{useLinearColor:m=!1}=t,{color:A="white"}=t;const v=_e();return i.$$set=p=>{"inDelay"in p&&e(0,a=p.inDelay),"outDelay"in p&&e(1,l=p.outDelay),"duration"in p&&e(2,c=p.duration),"unfolded"in p&&e(3,u=p.unfolded),"length"in p&&e(11,d=p.length),"direction"in p&&e(12,h=p.direction),"useLinearColor"in p&&e(4,m=p.useLinearColor),"color"in p&&e(5,A=p.color)},i.$$.update=()=>{i.$$.dirty&4096&&e(9,n=h==="vertical"),i.$$.dirty&2048&&e(8,o=d),i.$$.dirty&2048&&e(6,r=`M0.5 0.5 H ${d}`)},e(7,s=1),[a,l,c,u,m,A,r,s,o,n,v,d,h]}class Po extends oe{constructor(t){super(),ie(this,t,Ig,Pg,ne,{inDelay:0,outDelay:1,duration:2,unfolded:3,length:11,direction:12,useLinearColor:4,color:5},Eg)}}function kg(i){le(i,"svelte-faoauy",".shadow.svelte-faoauy{position:absolute}")}function sr(i){let t,e,n,o,s;return{c(){t=z("div"),y(t,"class","shadow svelte-faoauy"),y(t,"style",e=`
547
547
  left:${We(i[5])};
548
548
  bottom:${We(i[6])};
549
549
  box-shadow: 0 0 ${We(i[10])} ${We(i[11])} rgba(0, 0, 0, ${i[12]});
@@ -557,16 +557,16 @@ void main() {
557
557
  ${i[8]?"transform: translateX(-50%); left: 50%":""}
558
558
  ${i[9]?"transform: translateX(-50%); top: 50%":""}
559
559
  ${i[7]?"transform: translate(-50%, -50%); left: 50%; top: 50%;":""}
560
- `))&&y(t,"style",e),a&8&&T(t,"width",We(i[3])),a&16&&T(t,"height",We(i[4])),a&8192&&T(t,"z-index",i[13])},i(r){s||(r&&Oe(()=>{o&&o.end(1),n=Tt(t,Mt,{duration:i[0]}),n.start()}),s=!0)},o(r){n&&n.invalidate(),r&&(o=rn(t,Mt,{duration:i[1]})),s=!1},d(r){r&&S(t),r&&o&&o.end()}}}function Dg(i){let t,e=i[2]&&sr(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),M(n,t,o)},p(n,[o]){n[2]?e?(e.p(n,o),o&4&&P(e,1)):(e=sr(n),e.c(),P(e,1),e.m(t.parentNode,t)):e&&(se(),L(e,1,1,()=>{e=null}),re())},i(n){P(e)},o(n){L(e)},d(n){e&&e.d(n),n&&S(t)}}}function We(i){return typeof i=="number"?i/16+"rem":i}function Lg(i,t,e){let{inDelay:n=1e3}=t,{outDelay:o=1e3}=t,{visible:s=!0}=t,{width:r=0}=t,{height:a=0}=t,{left:l=0}=t,{bottom:c=0}=t,{center:u=!1}=t,{horizontalCenter:d=!1}=t,{verticalCenter:h=!1}=t,{blurRadius:m}=t,{spreadRadius:A}=t,{opacity:v=.15}=t,{zIndex:p=-1}=t;return i.$$set=g=>{"inDelay"in g&&e(0,n=g.inDelay),"outDelay"in g&&e(1,o=g.outDelay),"visible"in g&&e(2,s=g.visible),"width"in g&&e(3,r=g.width),"height"in g&&e(4,a=g.height),"left"in g&&e(5,l=g.left),"bottom"in g&&e(6,c=g.bottom),"center"in g&&e(7,u=g.center),"horizontalCenter"in g&&e(8,d=g.horizontalCenter),"verticalCenter"in g&&e(9,h=g.verticalCenter),"blurRadius"in g&&e(10,m=g.blurRadius),"spreadRadius"in g&&e(11,A=g.spreadRadius),"opacity"in g&&e(12,v=g.opacity),"zIndex"in g&&e(13,p=g.zIndex)},[n,o,s,r,a,l,c,u,d,h,m,A,v,p]}class nt extends oe{constructor(t){super(),ie(this,t,Lg,Dg,ne,{inDelay:0,outDelay:1,visible:2,width:3,height:4,left:5,bottom:6,center:7,horizontalCenter:8,verticalCenter:9,blurRadius:10,spreadRadius:11,opacity:12,zIndex:13},xg)}}function Sg(){return Math.random().toString(36).slice(-6)}const Qi=Sg();function Mg(i){le(i,"svelte-1b2n9wi",".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function rr(i,t,e){const n=i.slice();return n[18]=t[e].id,n[0]=t[e].content,n[19]=t,n[20]=e,n}function Tg(i){let t,e=i[0]+"",n,o=i[20];const s=()=>i[9](t,o),r=()=>i[9](null,o);return{c(){t=z("span"),n=ke(e),y(t,"class","text-char svelte-1b2n9wi")},m(a,l){M(a,t,l),j(t,n),s()},p(a,l){i=a,l&4&&e!==(e=i[0]+"")&&Se(n,e),o!==i[20]&&(r(),o=i[20],s())},d(a){a&&S(t),r()}}}function zg(i){let t,e=i[20];const n=()=>i[8](t,e),o=()=>i[8](null,e);return{c(){t=z("span"),t.textContent="\xA0",y(t,"class","text-char svelte-1b2n9wi")},m(s,r){M(s,t,r),n()},p(s,r){i=s,e!==i[20]&&(o(),e=i[20],n())},d(s){s&&S(t),o()}}}function ar(i,t){let e,n;function o(a,l){return a[0]===a[3]?zg:Tg}let s=o(t),r=s(t);return{key:i,first:null,c(){e=me(),r.c(),n=me(),this.first=e},m(a,l){M(a,e,l),r.m(a,l),M(a,n,l)},p(a,l){t=a,s===(s=o(t))&&r?r.p(t,l):(r.d(1),r=s(t),r&&(r.c(),r.m(n.parentNode,n)))},d(a){a&&S(e),r.d(a),a&&S(n)}}}function Bg(i){let t=[],e=new Map,n,o=i[2];const s=r=>r[18];for(let r=0;r<o.length;r+=1){let a=rr(i,o,r),l=s(a);e.set(l,t[r]=ar(l,a))}return{c(){for(let r=0;r<t.length;r+=1)t[r].c();n=me()},m(r,a){for(let l=0;l<t.length;l+=1)t[l].m(r,a);M(r,n,a)},p(r,[a]){a&14&&(o=r[2],t=qe(t,a,s,1,r,o,e,n.parentNode,ho,ar,n,rr))},i:U,o:U,d(r){for(let a=0;a<t.length;a+=1)t[a].d(r);r&&S(n)}}}function jg(i,t,e){let n,{inDelay:o=0}=t,{outDelay:s=0}=t,{content:r}=t,{unfolded:a}=t,{isFistUnfoldedUpdate:l=!0}=t;const c=`__EMOJI_SPLIT_${Qi}__`,u=`__EMOJI_${Qi}__`,d=`__SPACE_${Qi}__`;let h,m,A=[];function v(k){const C=[],D=new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)","gu"));return k.slice().replace(D,E=>`${c}${u}${E}${c}`).split(c).forEach(E=>E.startsWith(u)?C.push({id:_e(),content:E.slice(u.length)}):C.push(...E.split("").map(O=>O===" "?d:O).map(O=>({id:_e(),content:O})))),C}function p(){if(!m)return;const k=!a;m.reversed!==k&&m.reverse(),m.play()}function g(k){if(l){e(4,l=!1);return}clearTimeout(h),h=setTimeout(p,k?o:s)}function b(k){const C=function(){const D=tg(E=>k[E].getBoundingClientRect().x,[Math.min(k.length-1,10),Math.min(k.length-1,30)]);if(D>0)return D}();m=zo.default({targets:k.slice(0,C).filter(yt),autoplay:!1,duration:400,scale:[.7,1],rotate:[20,0],opacity:[0,1],translateX:[4,0],translateY:[10,0],delay:zo.default.stagger(50),easing:"easeInOutCubic"}),a&&m.seek(m.duration)}function w(k,C){Ve[k?"unshift":"push"](()=>{A[C]=k,e(1,A)})}function x(k,C){Ve[k?"unshift":"push"](()=>{A[C]=k,e(1,A)})}return i.$$set=k=>{"inDelay"in k&&e(5,o=k.inDelay),"outDelay"in k&&e(6,s=k.outDelay),"content"in k&&e(0,r=k.content),"unfolded"in k&&e(7,a=k.unfolded),"isFistUnfoldedUpdate"in k&&e(4,l=k.isFistUnfoldedUpdate)},i.$$.update=()=>{i.$$.dirty&1&&e(2,n=v(r)),i.$$.dirty&128&&g(a),i.$$.dirty&2&&b(A.filter(k=>!!k))},[r,A,n,d,l,o,s,a,w,x]}class Ml extends oe{constructor(t){super(),ie(this,t,jg,Bg,ne,{inDelay:5,outDelay:6,content:0,unfolded:7,isFistUnfoldedUpdate:4},Mg)}}const Vg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAAKgAAAADUGqULAAAB0ElEQVRYCe2WSUoEQRBFLVHEiVZU1I03cKW38SSewRt4A5fiTty5cQIFR9pZQWkcUNSe2/Z9yISiSGxRkUAy4BGZSVX168gistraYsQKxArECsQKxApYqkDyU5lmsznMM+ZgAGpQhaUkSRbINgLJCXiCBtSgAkVYtGGIBTKj8AgKSVahDNvQa0IUkUG4Bx91BpLdBTOS/cgUIB3a+gMwI9mFzE3a0I3z5B4r292JzGVA8tSSZILMcUDyzIykthOZvYDk+V9Ktmz4yGzhOhV4/+5YU4N/hzqo0StX3Fg5TcnNlYvgs8bPsM4hkScHoyO46haRnGEYktQVI+4ypUYKyXtxyUu27JCceAMJvjo0HoM5CEZ7cPX7i013q3IWVV5r2aw/2TK+svWbPGU68KQCa6pYeus1V0X99quSfvtVSc39lmfz2mdbz32tg1dAJ0421AVs9E7/FxBSezrMmjI/gm5/nYmMkBq+TqBs7LNgTlZH6EnWlPmORdk+pHQipUNfTxtg7p3NIXWRMvXfoqusmXsNhpC6crIS1Zf9C6yAOdlxpK5BW18CiT7A/G93gE+P0FY/RoO+RWqS62YhB2r4YhlixArECsQKxArECvzjCnwAOr0wF44ggHAAAAAASUVORK5CYII=",Og="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAACoCAMAAAD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WjZU2iaZ9u8pqpU3UfvwrYSgSBVDtGDurBlHn/zj0QMIh7qlDNOfmcBj9ihKo9o+l1euiWGxSE5eun3na6jxQk3joEgdQ7TR+FWutE43lhQpph3sQvISAVRa9ppRzipY4gZqdw8/WigIWDWt1gD8EIsqSLlT/KPUVlKSAujs2XTLYeRHiIlA2DVi1qkRtK8PSULaEDF+Ue7ashwkTlf8DQc/cITdx9+UAAAAASUVORK5CYII=",Qg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAABcVBMVEUAAAAAAAD////////+/v45OTn////////39/fp6enPz8/7+/vw8PD+/v7x8fHc3NzHx8f////////+/v77+/vr6+v////7+/v5+fn////z8/P////////q6uqgoKD+/v79/f3m5ub+/v7////////////////39/f39/f////z8/P////t7e3s7Oz29vb////5+fn////h4eH////g4ODV1dX////////BwcH///////////+Ojo5zc3MlJSX////////////////////////7+/v////////////v7+/u7u7n5+f////39/f////09PT6+vr09PT+/v76+vr////5+fnv7+/09PTk5OT////////////////Jycn///++vr7///////+0tLT///9TU1P///8SEhL////////+/v76+vr////8/Pz39/ft7e3t7e36+vr////////X19fV1dX///+xsbF9fX1iYmL///////+K8mOEAAAAenRSTlMaAIDy8CD41cWRX9uk7Kl1VVEw6dWT/M/NvKyVkY475eWIgx0Z39rHv7axnZyZmIuKhn56emZjX1FEPTU0Kx4PCAX69fTgxcKkopWL7crJuri2sa6rnIyHhX54bVtZVU9NSUcsJSIcFROno6Hcwp+ekHVxbWhnRC8nDLc9s8oAAAOGSURBVEjHpdd3X9pAGAfwkBBDAoQmBJmWvUWWiIDIHoJb66x7a4d78Op7pBQ1J5DY33987vnyXEIu3CGy/0hvnDthM+l0hj3JScSudDKOdhNPpl1i8Ut624Gi6+trI3zW1tcdqGM7/SIC5/ZRR2SNJEm7JkHt7FAJjR18WIs40P3cAFxIOaIRna6ZOHxGunk+TDR1ukjUkSr0w86bcKShiz1OI4JMP8YAD9+4emM2Gm407IfIhzm0NxrhKNsLH4SvQ+RktyvUfZIMXYcPPsSFCcvY6EYW6ZPsxuiYZaLwAW5bDY70Da5paxjvm8d+UcjAUL/GzPtCnDF/mwFWhJ75Zs68x05gxxFRGQfa+RYXokHVCC4O4yOqYLTwBjNB+ncWEZnsbzrIvOLz4CW9g4jODn0ZPO/iZN0UmhaPp0Omq+Q/nLu6NO0hErJnurjKdTBzEdAhkqILXDAdbFkJ7EnDe4EVy198srpiwhE4X1RKDFOqviBwcNPK6gmPmeWlGDz+VdHqRPEVHo0tLTM8RpcX4G+flLe6kU/Cs1pYRnm8uriQhfoC+0ZDvbMLi6ttfO5fDCDCKFrvooAKAov+c4BZvy8EzaolCHRdIZ+fBThl9G0Ih1RCrBJWbPiMKYAZ409oMSqFWAktzJ9GBuDvRoVGOIQJMSas0CiM39u45v0M9tbaeLc6F5M+7dhcbRfgg+pcU/oNa85VDwDOzBtmpP9UKsN8BuCzeb1P+kPi08+fASyr6fVPUh/PJ72+xj/bZk5PSV0YlJ4z83iC4EipS5LkiAkeHxGcQerLwMARRzyW+QklhUgKpST8nXfYg+fHkjS89MPz0MFnhKdCSWpc8RBnPAZB3RUvLt7i3oob7f5juDzuikY81tjcHlcHg9xabdyUWDvF2ay3slecr1ptimNx9lhhs1bzXQxy5NZa6VMx9pS2Wt1H77cVjFartYvBdlDICDc0cbVa3Twd2NcOyuLwVqo+K1ebjgdcr0k+O1uXwThfl8vlhqm+99kASup5GINsYhhmG8d7UXzcBgo2e21cd9WlUll5/7G958ql8uxu7y0zS5SGSkOGBA51TRiGQAi232Y9v4kVQZGavpt6c6l3tLpNsc38gGOC01IeLg4Xi8NaLz1KkqO0VzvcTrFscYo4oLjiRAsKEXeJPRqxW0bsFWLGLVbiocyZSm5vbW0nU9BsIfyp/AGqAvfOkBaFawAAAABJRU5ErkJggg==";function Fg(i){le(i,"svelte-1ogmlqq",".arrow.svelte-1ogmlqq{width:100%;height:100%;background-size:100%;transition:transform 400ms ease-in-out;cursor:pointer;pointer-events:auto}.arrow-wrapper.svelte-1ogmlqq{position:relative;width:100%;height:100%}.arrow.left.svelte-1ogmlqq{transform:rotate(0deg)}.arrow.right.svelte-1ogmlqq{transform:rotate(-180deg)}.arrow.top.svelte-1ogmlqq{transform:rotate(90deg)}.arrow.bottom.svelte-1ogmlqq{transform:rotate(-90deg)}")}function lr(i){let t,e,n,o,s,r,a,l,c,u;return e=new nt({props:{center:!0,blurRadius:9,spreadRadius:3}}),{c(){t=z("div"),K(e.$$.fragment),n=ee(),o=z("div"),y(o,"class",s="arrow "+i[0]+" svelte-1ogmlqq"),T(o,"background-image","url("+Vg+")"),y(t,"class","arrow-wrapper svelte-1ogmlqq")},m(d,h){M(d,t,h),J(e,t,null),j(t,n),j(t,o),l=!0,c||(u=ge(o,"click",i[5]),c=!0)},p(d,h){i=d,(!l||h&1&&s!==(s="arrow "+i[0]+" svelte-1ogmlqq"))&&y(o,"class",s)},i(d){l||(P(e.$$.fragment,d),d&&Oe(()=>{a&&a.end(1),r=Tt(o,Mt,{duration:i[2],delay:i[3],easing:Yt}),r.start()}),l=!0)},o(d){L(e.$$.fragment,d),r&&r.invalidate(),d&&(a=rn(o,Mt,{duration:i[2],delay:i[4],easing:Yt})),l=!1},d(d){d&&S(t),Z(e),d&&a&&a.end(),c=!1,u()}}}function Hg(i){let t,e,n=i[1]&&lr(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&P(n,1)):(n=lr(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function _g(i,t,e){let{direction:n="right"}=t,{visible:o=!0}=t,{duration:s=0}=t,{inDelay:r=0}=t,{outDelay:a=0}=t;function l(c){sn.call(this,i,c)}return i.$$set=c=>{"direction"in c&&e(0,n=c.direction),"visible"in c&&e(1,o=c.visible),"duration"in c&&e(2,s=c.duration),"inDelay"in c&&e(3,r=c.inDelay),"outDelay"in c&&e(4,a=c.outDelay)},[n,o,s,r,a,l]}class Gg extends oe{constructor(t){super(),ie(this,t,_g,Hg,ne,{direction:0,visible:1,duration:2,inDelay:3,outDelay:4},Fg)}}function Wg(i,t,e=20,n=5){return new Promise((o,s)=>{let r=0;const a=setInterval(()=>{const l=i();t(l)?(clearInterval(a),o(l)):r>=n&&(clearInterval(a),s(l)),r++},e)})}function Ng(i){le(i,"svelte-1fuzm7v",".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}")}function cr(i){let t,e,n;return e=new Ml({props:{unfolded:i[0],content:i[1],inDelay:500,outDelay:i[5]}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","text svelte-1fuzm7v"),T(t,"transform",i[7])},m(o,s){M(o,t,s),J(e,t,null),i[10](t),n=!0},p(o,s){const r={};s&1&&(r.unfolded=o[0]),s&2&&(r.content=o[1]),s&32&&(r.outDelay=o[5]),e.$set(r),s&128&&T(t,"transform",o[7])},i(o){n||(P(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e),i[10](null)}}}function ur(i){let t,e,n;return e=new Gg({props:{direction:i[6],visible:i[0],inDelay:600,duration:1e3}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","arrow svelte-1fuzm7v")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s&64&&(r.direction=o[6]),s&1&&(r.visible=o[0]),e.$set(r)},i(o){n||(P(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function Xg(i){let t,e,n,o=i[1]&&cr(i),s=i[3]<i[4]&&ur(i);return{c(){o&&o.c(),t=ee(),s&&s.c(),e=me()},m(r,a){o&&o.m(r,a),M(r,t,a),s&&s.m(r,a),M(r,e,a),n=!0},p(r,[a]){r[1]?o?(o.p(r,a),a&2&&P(o,1)):(o=cr(r),o.c(),P(o,1),o.m(t.parentNode,t)):o&&(se(),L(o,1,1,()=>{o=null}),re()),r[3]<r[4]?s?(s.p(r,a),a&24&&P(s,1)):(s=ur(r),s.c(),P(s,1),s.m(e.parentNode,e)):s&&(se(),L(s,1,1,()=>{s=null}),re())},i(r){n||(P(o),P(s),n=!0)},o(r){L(o),L(s),n=!1},d(r){o&&o.d(r),r&&S(t),s&&s.d(r),r&&S(e)}}}function Yg(i,t,e){let n,o,s,{visible:r=!1}=t,{textUnfolded:a=!1}=t,{content:l}=t,c,u=0,d=0,h=0;function m(A){Ve[A?"unshift":"push"](()=>{c=A,e(2,c)})}return i.$$set=A=>{"visible"in A&&e(0,r=A.visible),"textUnfolded"in A&&e(8,a=A.textUnfolded),"content"in A&&e(1,l=A.content)},i.$$.update=()=>{if(i.$$.dirty&7&&c&&r&&l){const{lineHeight:A}=getComputedStyle(c);e(4,h=c.offsetHeight),Wg(()=>c==null?void 0:c.offsetHeight,Boolean).then(()=>{e(4,h=c.offsetHeight)}),e(3,d=Number(A.replace("px","")))}i.$$.dirty&280&&e(9,u=a?d-h:0),i.$$.dirty&512&&e(7,n=`translateY(${u}px)`),i.$$.dirty&256&&e(6,o=a?"left":"right"),i.$$.dirty&256&&e(5,s=a?450:0)},[r,l,c,d,h,s,o,n,a,u,m]}class Tl extends oe{constructor(t){super(),ie(this,t,Yg,Xg,ne,{visible:0,textUnfolded:8,content:1},Ng)}}function Ug(i){le(i,"svelte-nlvd3x",".content.svelte-nlvd3x{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}")}function dr(i){var u,d;let t,e,n,o,s,r,a,l,c;return t=new nt({props:{visible:i[2],left:i[3]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),n=new Po({props:{unfolded:i[2],length:i[3],outDelay:i[4]+40*Math.min((d=(u=i[6][0])==null?void 0:u.content.length)!=null?d:10,15),useLinearColor:!0}}),r=new Tl({props:{visible:i[2],textUnfolded:i[1],content:i[5]}}),{c(){K(t.$$.fragment),e=ee(),K(n.$$.fragment),o=ee(),s=z("div"),K(r.$$.fragment),y(s,"class","content svelte-nlvd3x")},m(h,m){J(t,h,m),M(h,e,m),J(n,h,m),M(h,o,m),M(h,s,m),J(r,s,null),a=!0,l||(c=[at(an.call(null,s)),ge(s,"clientWidth",i[11]),ge(s,"click",i[7])],l=!0)},p(h,m){var g,b;const A={};m&4&&(A.visible=h[2]),m&8&&(A.left=h[3]/2+"px"),t.$set(A);const v={};m&4&&(v.unfolded=h[2]),m&8&&(v.length=h[3]),m&16&&(v.outDelay=h[4]+40*Math.min((b=(g=h[6][0])==null?void 0:g.content.length)!=null?b:10,15)),n.$set(v);const p={};m&4&&(p.visible=h[2]),m&2&&(p.textUnfolded=h[1]),m&32&&(p.content=h[5]),r.$set(p)},i(h){a||(P(t.$$.fragment,h),P(n.$$.fragment,h),P(r.$$.fragment,h),a=!0)},o(h){L(t.$$.fragment,h),L(n.$$.fragment,h),L(r.$$.fragment,h),a=!1},d(h){Z(t,h),h&&S(e),Z(n,h),h&&S(o),h&&S(s),Z(r),l=!1,He(c)}}}function qg(i){let t,e,n=i[0].state&&dr(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&P(n,1)):(n=dr(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function Jg(i,t,e){let n,o,s;var r,a,l;let{tag:c}=t,u,d=!1,h=[];function m(){e(1,d=!d)}const A=v=>{e(3,u=v.detail)};return i.$$set=v=>{"tag"in v&&e(0,c=v.tag)},i.$$.update=()=>{i.$$.dirty&257&&e(2,n=!!(!(e(8,r=c.state)===null||r===void 0)&&r.unfolded)),i.$$.dirty&1537&&e(5,o=e(10,l=e(9,a=c.data.title)!==null&&a!==void 0?a:c.data.text)!==null&&l!==void 0?l:""),i.$$.dirty&4&&(n||setTimeout(()=>{e(1,d=!1)},20)),i.$$.dirty&2&&e(4,s=d?450:0)},[c,d,n,u,s,o,h,m,r,a,l,A]}class Zg extends oe{constructor(t){super(),ie(this,t,Jg,qg,ne,{tag:0},Ug)}}function tt(i){return typeof i=="number"?i/16+"rem":i}function Kg(i){le(i,"svelte-i9wdo4",".text.svelte-i9wdo4{display:-webkit-box;display:-ms-box;display:-moz-box;position:relative;width:-moz-max-content;width:max-content;max-width:100%;-webkit-box-orient:vertical;-ms-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@keyframes svelte-i9wdo4-blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}.caret.svelte-i9wdo4{position:absolute;width:0.0625rem;height:100%;background-color:#fff;animation:svelte-i9wdo4-blink 1.2s infinite}.placeholder.svelte-i9wdo4{opacity:0.5}")}function $g(i){let t;const e=i[6].default,n=en(e,i,i[5],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),t=!0},p(o,s){n&&n.p&&(!t||s&32)&&nn(n,e,o,o[5],t?tn(e,o[5],s,null):on(o[5]),null)},i(o){t||(P(n,o),t=!0)},o(o){L(n,o),t=!1},d(o){n&&n.d(o)}}}function e0(i){var s,r;let t,e,n=((s=i[3])==null?void 0:s.inputting)&&hr(),o=((r=i[3])==null?void 0:r.placeholder)&&fr(i);return{c(){n&&n.c(),t=ee(),o&&o.c(),e=me()},m(a,l){n&&n.m(a,l),M(a,t,l),o&&o.m(a,l),M(a,e,l)},p(a,l){var c,u;(c=a[3])!=null&&c.inputting?n||(n=hr(),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),(u=a[3])!=null&&u.placeholder?o?o.p(a,l):(o=fr(a),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:U,o:U,d(a){n&&n.d(a),a&&S(t),o&&o.d(a),a&&S(e)}}}function t0(i){let t;return{c(){t=ke(i[2])},m(e,n){M(e,t,n)},p(e,n){n&4&&Se(t,e[2])},i:U,o:U,d(e){e&&S(t)}}}function hr(i){let t;return{c(){t=z("div"),y(t,"class","caret svelte-i9wdo4")},m(e,n){M(e,t,n)},d(e){e&&S(t)}}}function fr(i){let t,e=i[3].placeholder+"",n;return{c(){t=z("span"),n=ke(e),y(t,"class","placeholder svelte-i9wdo4")},m(o,s){M(o,t,s),j(t,n)},p(o,s){s&8&&e!==(e=o[3].placeholder+"")&&Se(n,e)},d(o){o&&S(t)}}}function n0(i){let t,e,n,o;const s=[t0,e0,$g],r=[];function a(l,c){return l[2]?0:l[4]?1:2}return e=a(i),n=r[e]=s[e](i),{c(){t=z("div"),n.c(),y(t,"class","text svelte-i9wdo4"),T(t,"max-width",typeof i[1]=="number"?tt(i[1]):i[1]),T(t,"-webkit-line-clamp",i[0])},m(l,c){M(l,t,c),r[e].m(t,null),o=!0},p(l,[c]){let u=e;e=a(l),e===u?r[e].p(l,c):(se(),L(r[u],1,1,()=>{r[u]=null}),re(),n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),P(n,1),n.m(t,null)),c&2&&T(t,"max-width",typeof l[1]=="number"?tt(l[1]):l[1]),c&1&&T(t,"-webkit-line-clamp",l[0])},i(l){o||(P(n),o=!0)},o(l){L(n),o=!1},d(l){l&&S(t),r[e].d()}}}function i0(i,t,e){let n,{$$slots:o={},$$scope:s}=t,{maxLine:r=1}=t,{maxWidth:a=null}=t,{text:l=null}=t,{edit:c=null}=t;return i.$$set=u=>{"maxLine"in u&&e(0,r=u.maxLine),"maxWidth"in u&&e(1,a=u.maxWidth),"text"in u&&e(2,l=u.text),"edit"in u&&e(3,c=u.edit),"$$scope"in u&&e(5,s=u.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&e(4,n=(c==null?void 0:c.placeholder)||(c==null?void 0:c.inputting))},[r,a,l,c,n,s,o]}class Io extends oe{constructor(t){super(),ie(this,t,i0,n0,ne,{maxLine:0,maxWidth:1,text:2,edit:3},Kg)}}function o0(i){le(i,"svelte-1oxrkr1",".plane__container.svelte-1oxrkr1.svelte-1oxrkr1{position:absolute;left:50%;transform:translate(-50%, -100%);width:-moz-max-content;width:max-content}.plane__wrapper.svelte-1oxrkr1.svelte-1oxrkr1{transition:transform 500ms linear, opacity 200ms linear;padding:0.625rem;background-color:rgba(0, 0, 0, 0.5);border:0.03125rem solid rgba(255, 255, 255, 0.3);border-radius:0.25rem}.unfolded.svelte-1oxrkr1 .plane__wrapper.svelte-1oxrkr1{transition-delay:200ms, 500ms;opacity:1}.folded.svelte-1oxrkr1 .plane__wrapper.svelte-1oxrkr1{opacity:0}.plane.svelte-1oxrkr1.svelte-1oxrkr1{max-width:11.75rem}.title.svelte-1oxrkr1.svelte-1oxrkr1{white-space:pre-wrap;font-weight:bold;font-size:0.75rem;line-height:1.125rem}.description.svelte-1oxrkr1.svelte-1oxrkr1{margin-top:0.25rem;white-space:pre-wrap;font-size:0.6875rem;line-height:1rem}")}function mr(i){var d,h;let t,e,n,o,s,r,a,l,c;t=new Po({props:{unfolded:i[1],direction:"vertical",length:15,duration:500,inDelay:200,useLinearColor:!0}}),a=new Io({props:{text:i[2],edit:(d=i[0].data.edit)==null?void 0:d.title}});let u=(i[0].data.description||((h=i[0].data.edit)==null?void 0:h.description))&&pr(i);return{c(){K(t.$$.fragment),e=ee(),n=z("div"),o=z("div"),s=z("div"),r=z("div"),K(a.$$.fragment),l=ee(),u&&u.c(),y(r,"class","title svelte-1oxrkr1"),y(s,"class","plane svelte-1oxrkr1"),y(o,"class","plane__wrapper svelte-1oxrkr1"),T(o,"transform",i[1]?"translateY(-15px)":"translateY(0)"),y(n,"class","plane__container svelte-1oxrkr1"),q(n,"unfolded",i[1]),q(n,"folded",i[3])},m(m,A){J(t,m,A),M(m,e,A),M(m,n,A),j(n,o),j(o,s),j(s,r),J(a,r,null),j(s,l),u&&u.m(s,null),c=!0},p(m,A){var g,b;const v={};A&2&&(v.unfolded=m[1]),t.$set(v);const p={};A&4&&(p.text=m[2]),A&1&&(p.edit=(g=m[0].data.edit)==null?void 0:g.title),a.$set(p),m[0].data.description||((b=m[0].data.edit)==null?void 0:b.description)?u?(u.p(m,A),A&1&&P(u,1)):(u=pr(m),u.c(),P(u,1),u.m(s,null)):u&&(se(),L(u,1,1,()=>{u=null}),re()),A&2&&T(o,"transform",m[1]?"translateY(-15px)":"translateY(0)"),(!c||A&2)&&q(n,"unfolded",m[1]),(!c||A&8)&&q(n,"folded",m[3])},i(m){c||(P(t.$$.fragment,m),P(a.$$.fragment,m),P(u),c=!0)},o(m){L(t.$$.fragment,m),L(a.$$.fragment,m),L(u),c=!1},d(m){Z(t,m),m&&S(e),m&&S(n),Z(a),u&&u.d()}}}function pr(i){var o;let t,e,n;return e=new Io({props:{text:i[0].data.description,edit:(o=i[0].data.edit)==null?void 0:o.description,maxLine:3}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","description svelte-1oxrkr1")},m(s,r){M(s,t,r),J(e,t,null),n=!0},p(s,r){var l;const a={};r&1&&(a.text=s[0].data.description),r&1&&(a.edit=(l=s[0].data.edit)==null?void 0:l.description),e.$set(a)},i(s){n||(P(e.$$.fragment,s),n=!0)},o(s){L(e.$$.fragment,s),n=!1},d(s){s&&S(t),Z(e)}}}function s0(i){let t,e,n=i[0].state&&mr(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&P(n,1)):(n=mr(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function r0(i,t,e){let n,o,s;var r,a,l;let{tag:c}=t;return i.$$set=u=>{"tag"in u&&e(0,c=u.tag)},i.$$.update=()=>{i.$$.dirty&17&&e(1,n=!!(!(e(4,r=c.state)===null||r===void 0)&&r.unfolded)),i.$$.dirty&2&&e(3,o=!n),i.$$.dirty&97&&e(2,s=e(6,l=e(5,a=c.data.title)!==null&&a!==void 0?a:c.data.text)!==null&&l!==void 0?l:"")},[c,n,s,o,r,a,l]}class a0 extends oe{constructor(t){super(),ie(this,t,r0,s0,ne,{tag:0},o0)}}function l0(i){let t,e;return t=new a0({props:{tag:i[0]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function c0(i){let t,e;return t=new Zg({props:{tag:i[0]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function u0(i){let t,e,n,o;const s=[c0,l0],r=[];function a(l,c){return l[1]==="line"?0:l[1]==="plane"?1:-1}return~(t=a(i))&&(e=r[t]=s[t](i)),{c(){e&&e.c(),n=me()},m(l,c){~t&&r[t].m(l,c),M(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?~t&&r[t].p(l,c):(e&&(se(),L(r[u],1,1,()=>{r[u]=null}),re()),~t?(e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),P(e,1),e.m(n.parentNode,n)):e=null)},i(l){o||(P(e),o=!0)},o(l){L(e),o=!1},d(l){~t&&r[t].d(l),l&&S(n)}}}function d0(i,t,e){let n;var o;let{tag:s}=t;return i.$$set=r=>{"tag"in r&&e(0,s=r.tag)},i.$$.update=()=>{i.$$.dirty&5&&e(1,n=e(2,o=s.data.appearance)!==null&&o!==void 0?o:"line")},[s,n,o]}class h0 extends oe{constructor(t){super(),ie(this,t,d0,u0,ne,{tag:0})}}function f0(i){le(i,"svelte-blgtit",".line.svelte-blgtit{width:100%;height:100%;overflow:visible;pointer-events:none}")}function gr(i){let t,e,n,o;return{c(){t=we("path"),y(t,"fill","none"),y(t,"stroke","url(#"+i[4]+")"),y(t,"stroke-width","1"),y(t,"d","M0 21 L14 0.5 L105 0.5")},m(s,r){M(s,t,r),o=!0},p(s,r){i=s},i(s){o||(s&&Oe(()=>{n&&n.end(1),e=Tt(t,ci,{duration:i[1],delay:i[0],easing:Xa}),e.start()}),o=!0)},o(s){e&&e.invalidate(),s&&(n=rn(t,ci,{duration:i[1],delay:i[2],easing:Yt})),o=!1},d(s){s&&S(t),s&&n&&n.end()}}}function m0(i){let t,e,n,o,s,r=i[3]&&gr(i);return{c(){t=we("svg"),e=we("defs"),n=we("linearGradient"),o=we("stop"),s=we("stop"),r&&r.c(),y(o,"offset","25%"),y(o,"stop-color","white"),y(o,"stop-opacity","1"),y(s,"offset","100%"),y(s,"stop-color","white"),y(s,"stop-opacity","0.5"),y(n,"id",i[4]),y(n,"gradientUnits","userSpaceOnUse"),y(t,"class","line svelte-blgtit"),y(t,"viewBox","0 0 105 21")},m(a,l){M(a,t,l),j(t,e),j(e,n),j(n,o),j(n,s),r&&r.m(t,null)},p(a,[l]){a[3]?r?(r.p(a,l),l&8&&P(r,1)):(r=gr(a),r.c(),P(r,1),r.m(t,null)):r&&(se(),L(r,1,1,()=>{r=null}),re())},i(a){P(r)},o(a){L(r)},d(a){a&&S(t),r&&r.d()}}}function p0(i,t,e){let{inDelay:n=0}=t,{duration:o=1e3}=t,{outDelay:s=0}=t,{unfolded:r}=t;const a=_e();return i.$$set=l=>{"inDelay"in l&&e(0,n=l.inDelay),"duration"in l&&e(1,o=l.duration),"outDelay"in l&&e(2,s=l.outDelay),"unfolded"in l&&e(3,r=l.unfolded)},[n,o,s,r,a]}class g0 extends oe{constructor(t){super(),ie(this,t,p0,m0,ne,{inDelay:0,duration:1,outDelay:2,unfolded:3},f0)}}function A0(i){le(i,"svelte-1mgyhhn",`:root{--sc-dot-size:6px;--sc-active-dot-size:8px;--sc-dot-size-animation-time:250ms}.sc-carousel-dot__dot.svelte-1mgyhhn{background-color:var(--sc-color-rgb-light);border-radius:50%;display:inline-block;opacity:0.5;transition:opacity 100ms ease,\r
560
+ `))&&y(t,"style",e),a&8&&T(t,"width",We(i[3])),a&16&&T(t,"height",We(i[4])),a&8192&&T(t,"z-index",i[13])},i(r){s||(r&&Oe(()=>{o&&o.end(1),n=Tt(t,Mt,{duration:i[0]}),n.start()}),s=!0)},o(r){n&&n.invalidate(),r&&(o=rn(t,Mt,{duration:i[1]})),s=!1},d(r){r&&S(t),r&&o&&o.end()}}}function xg(i){let t,e=i[2]&&sr(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),M(n,t,o)},p(n,[o]){n[2]?e?(e.p(n,o),o&4&&I(e,1)):(e=sr(n),e.c(),I(e,1),e.m(t.parentNode,t)):e&&(se(),L(e,1,1,()=>{e=null}),re())},i(n){I(e)},o(n){L(e)},d(n){e&&e.d(n),n&&S(t)}}}function We(i){return typeof i=="number"?i/16+"rem":i}function Dg(i,t,e){let{inDelay:n=1e3}=t,{outDelay:o=1e3}=t,{visible:s=!0}=t,{width:r=0}=t,{height:a=0}=t,{left:l=0}=t,{bottom:c=0}=t,{center:u=!1}=t,{horizontalCenter:d=!1}=t,{verticalCenter:h=!1}=t,{blurRadius:m}=t,{spreadRadius:A}=t,{opacity:v=.15}=t,{zIndex:p=-1}=t;return i.$$set=g=>{"inDelay"in g&&e(0,n=g.inDelay),"outDelay"in g&&e(1,o=g.outDelay),"visible"in g&&e(2,s=g.visible),"width"in g&&e(3,r=g.width),"height"in g&&e(4,a=g.height),"left"in g&&e(5,l=g.left),"bottom"in g&&e(6,c=g.bottom),"center"in g&&e(7,u=g.center),"horizontalCenter"in g&&e(8,d=g.horizontalCenter),"verticalCenter"in g&&e(9,h=g.verticalCenter),"blurRadius"in g&&e(10,m=g.blurRadius),"spreadRadius"in g&&e(11,A=g.spreadRadius),"opacity"in g&&e(12,v=g.opacity),"zIndex"in g&&e(13,p=g.zIndex)},[n,o,s,r,a,l,c,u,d,h,m,A,v,p]}class nt extends oe{constructor(t){super(),ie(this,t,Dg,xg,ne,{inDelay:0,outDelay:1,visible:2,width:3,height:4,left:5,bottom:6,center:7,horizontalCenter:8,verticalCenter:9,blurRadius:10,spreadRadius:11,opacity:12,zIndex:13},kg)}}function Lg(){return Math.random().toString(36).slice(-6)}const Qi=Lg();function Sg(i){le(i,"svelte-1b2n9wi",".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function rr(i,t,e){const n=i.slice();return n[18]=t[e].id,n[0]=t[e].content,n[19]=t,n[20]=e,n}function Mg(i){let t,e=i[0]+"",n,o=i[20];const s=()=>i[9](t,o),r=()=>i[9](null,o);return{c(){t=z("span"),n=ke(e),y(t,"class","text-char svelte-1b2n9wi")},m(a,l){M(a,t,l),j(t,n),s()},p(a,l){i=a,l&4&&e!==(e=i[0]+"")&&Se(n,e),o!==i[20]&&(r(),o=i[20],s())},d(a){a&&S(t),r()}}}function Tg(i){let t,e=i[20];const n=()=>i[8](t,e),o=()=>i[8](null,e);return{c(){t=z("span"),t.textContent="\xA0",y(t,"class","text-char svelte-1b2n9wi")},m(s,r){M(s,t,r),n()},p(s,r){i=s,e!==i[20]&&(o(),e=i[20],n())},d(s){s&&S(t),o()}}}function ar(i,t){let e,n;function o(a,l){return a[0]===a[3]?Tg:Mg}let s=o(t),r=s(t);return{key:i,first:null,c(){e=me(),r.c(),n=me(),this.first=e},m(a,l){M(a,e,l),r.m(a,l),M(a,n,l)},p(a,l){t=a,s===(s=o(t))&&r?r.p(t,l):(r.d(1),r=s(t),r&&(r.c(),r.m(n.parentNode,n)))},d(a){a&&S(e),r.d(a),a&&S(n)}}}function zg(i){let t=[],e=new Map,n,o=i[2];const s=r=>r[18];for(let r=0;r<o.length;r+=1){let a=rr(i,o,r),l=s(a);e.set(l,t[r]=ar(l,a))}return{c(){for(let r=0;r<t.length;r+=1)t[r].c();n=me()},m(r,a){for(let l=0;l<t.length;l+=1)t[l].m(r,a);M(r,n,a)},p(r,[a]){a&14&&(o=r[2],t=qe(t,a,s,1,r,o,e,n.parentNode,ho,ar,n,rr))},i:U,o:U,d(r){for(let a=0;a<t.length;a+=1)t[a].d(r);r&&S(n)}}}function Bg(i,t,e){let n,{inDelay:o=0}=t,{outDelay:s=0}=t,{content:r}=t,{unfolded:a}=t,{isFistUnfoldedUpdate:l=!0}=t;const c=`__EMOJI_SPLIT_${Qi}__`,u=`__EMOJI_${Qi}__`,d=`__SPACE_${Qi}__`;let h,m,A=[];function v(x){const C=[],D=new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)","gu"));return x.slice().replace(D,E=>`${c}${u}${E}${c}`).split(c).forEach(E=>E.startsWith(u)?C.push({id:_e(),content:E.slice(u.length)}):C.push(...E.split("").map(O=>O===" "?d:O).map(O=>({id:_e(),content:O})))),C}function p(){if(!m)return;const x=!a;m.reversed!==x&&m.reverse(),m.play()}function g(x){if(l){e(4,l=!1);return}clearTimeout(h),h=setTimeout(p,x?o:s)}function b(x){const C=function(){const D=eg(E=>x[E].getBoundingClientRect().x,[Math.min(x.length-1,10),Math.min(x.length-1,30)]);if(D>0)return D}();m=zo.default({targets:x.slice(0,C).filter(yt),autoplay:!1,duration:400,scale:[.7,1],rotate:[20,0],opacity:[0,1],translateX:[4,0],translateY:[10,0],delay:zo.default.stagger(50),easing:"easeInOutCubic"}),a&&m.seek(m.duration)}function w(x,C){Ve[x?"unshift":"push"](()=>{A[C]=x,e(1,A)})}function P(x,C){Ve[x?"unshift":"push"](()=>{A[C]=x,e(1,A)})}return i.$$set=x=>{"inDelay"in x&&e(5,o=x.inDelay),"outDelay"in x&&e(6,s=x.outDelay),"content"in x&&e(0,r=x.content),"unfolded"in x&&e(7,a=x.unfolded),"isFistUnfoldedUpdate"in x&&e(4,l=x.isFistUnfoldedUpdate)},i.$$.update=()=>{i.$$.dirty&1&&e(2,n=v(r)),i.$$.dirty&128&&g(a),i.$$.dirty&2&&b(A.filter(x=>!!x))},[r,A,n,d,l,o,s,a,w,P]}class Ml extends oe{constructor(t){super(),ie(this,t,Bg,zg,ne,{inDelay:5,outDelay:6,content:0,unfolded:7,isFistUnfoldedUpdate:4},Sg)}}const jg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAAKgAAAADUGqULAAAB0ElEQVRYCe2WSUoEQRBFLVHEiVZU1I03cKW38SSewRt4A5fiTty5cQIFR9pZQWkcUNSe2/Z9yISiSGxRkUAy4BGZSVX168gistraYsQKxArECsQKxApYqkDyU5lmsznMM+ZgAGpQhaUkSRbINgLJCXiCBtSgAkVYtGGIBTKj8AgKSVahDNvQa0IUkUG4Bx91BpLdBTOS/cgUIB3a+gMwI9mFzE3a0I3z5B4r292JzGVA8tSSZILMcUDyzIykthOZvYDk+V9Ktmz4yGzhOhV4/+5YU4N/hzqo0StX3Fg5TcnNlYvgs8bPsM4hkScHoyO46haRnGEYktQVI+4ypUYKyXtxyUu27JCceAMJvjo0HoM5CEZ7cPX7i013q3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akfiEJAOZdFKzsq/nNjIssdufjbhQAEAUodOGDWp4m8S0oHEhb+YexGkD4EBUpdVMrfl/E/RhNJnsjF/ls0r980YRQDlAqBylIqylcCzf4lHecB5veigSfmYoBycaxN2SHgT8e7pWKZwCzqzZpigUr9DlRuoIxXn8pIZJgHtkwpa8togHIiw587LeNx9mc2ZwIK5DOlXJaMFqhWwoMp/Ax+1W+ToOXTHGKNrDMLLo38LmKsQKmbdSrWil+N82UJaS40YTuJv/RdtAdpzet+aJDzvMpQV71oo2gYX5RXG2HnYZXtouzNRzXE3R0KE6jWjZU2iaZ9u8pqpU3UfvwrYSgSBVDtGDurBlHn/zj0QMIh7qlDNOfmcBj9ihKo9o+l1euiWGxSE5eun3na6jxQk3joEgdQ7TR+FWutE43lhQpph3sQvISAVRa9ppRzipY4gZqdw8/WigIWDWt1gD8EIsqSLlT/KPUVlKSAujs2XTLYeRHiIlA2DVi1qkRtK8PSULaEDF+Ue7ashwkTlf8DQc/cITdx9+UAAAAASUVORK5CYII=",Rg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAABcVBMVEUAAAAAAAD////////+/v45OTn////////39/fp6enPz8/7+/vw8PD+/v7x8fHc3NzHx8f////////+/v77+/vr6+v////7+/v5+fn////z8/P////////q6uqgoKD+/v79/f3m5ub+/v7////////////////39/f39/f////z8/P////t7e3s7Oz29vb////5+fn////h4eH////g4ODV1dX////////BwcH///////////+Ojo5zc3MlJSX////////////////////////7+/v////////////v7+/u7u7n5+f////39/f////09PT6+vr09PT+/v76+vr////5+fnv7+/09PTk5OT////////////////Jycn///++vr7///////+0tLT///9TU1P///8SEhL////////+/v76+vr////8/Pz39/ft7e3t7e36+vr////////X19fV1dX///+xsbF9fX1iYmL///////+K8mOEAAAAenRSTlMaAIDy8CD41cWRX9uk7Kl1VVEw6dWT/M/NvKyVkY475eWIgx0Z39rHv7axnZyZmIuKhn56emZjX1FEPTU0Kx4PCAX69fTgxcKkopWL7crJuri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+99kASup5GINsYhhmG8d7UXzcBgo2e21cd9WlUll5/7G958ql8uxu7y0zS5SGSkOGBA51TRiGQAi232Y9v4kVQZGavpt6c6l3tLpNsc38gGOC01IeLg4Xi8NaLz1KkqO0VzvcTrFscYo4oLjiRAsKEXeJPRqxW0bsFWLGLVbiocyZSm5vbW0nU9BsIfyp/AGqAvfOkBaFawAAAABJRU5ErkJggg==";function Qg(i){le(i,"svelte-1ogmlqq",".arrow.svelte-1ogmlqq{width:100%;height:100%;background-size:100%;transition:transform 400ms ease-in-out;cursor:pointer;pointer-events:auto}.arrow-wrapper.svelte-1ogmlqq{position:relative;width:100%;height:100%}.arrow.left.svelte-1ogmlqq{transform:rotate(0deg)}.arrow.right.svelte-1ogmlqq{transform:rotate(-180deg)}.arrow.top.svelte-1ogmlqq{transform:rotate(90deg)}.arrow.bottom.svelte-1ogmlqq{transform:rotate(-90deg)}")}function lr(i){let t,e,n,o,s,r,a,l,c,u;return e=new nt({props:{center:!0,blurRadius:9,spreadRadius:3}}),{c(){t=z("div"),K(e.$$.fragment),n=ee(),o=z("div"),y(o,"class",s="arrow "+i[0]+" svelte-1ogmlqq"),T(o,"background-image","url("+jg+")"),y(t,"class","arrow-wrapper svelte-1ogmlqq")},m(d,h){M(d,t,h),J(e,t,null),j(t,n),j(t,o),l=!0,c||(u=ge(o,"click",i[5]),c=!0)},p(d,h){i=d,(!l||h&1&&s!==(s="arrow "+i[0]+" svelte-1ogmlqq"))&&y(o,"class",s)},i(d){l||(I(e.$$.fragment,d),d&&Oe(()=>{a&&a.end(1),r=Tt(o,Mt,{duration:i[2],delay:i[3],easing:Yt}),r.start()}),l=!0)},o(d){L(e.$$.fragment,d),r&&r.invalidate(),d&&(a=rn(o,Mt,{duration:i[2],delay:i[4],easing:Yt})),l=!1},d(d){d&&S(t),Z(e),d&&a&&a.end(),c=!1,u()}}}function Fg(i){let t,e,n=i[1]&&lr(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&I(n,1)):(n=lr(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function Hg(i,t,e){let{direction:n="right"}=t,{visible:o=!0}=t,{duration:s=0}=t,{inDelay:r=0}=t,{outDelay:a=0}=t;function l(c){sn.call(this,i,c)}return i.$$set=c=>{"direction"in c&&e(0,n=c.direction),"visible"in c&&e(1,o=c.visible),"duration"in c&&e(2,s=c.duration),"inDelay"in c&&e(3,r=c.inDelay),"outDelay"in c&&e(4,a=c.outDelay)},[n,o,s,r,a,l]}class _g extends oe{constructor(t){super(),ie(this,t,Hg,Fg,ne,{direction:0,visible:1,duration:2,inDelay:3,outDelay:4},Qg)}}function Gg(i,t,e=20,n=5){return new Promise((o,s)=>{let r=0;const a=setInterval(()=>{const l=i();t(l)?(clearInterval(a),o(l)):r>=n&&(clearInterval(a),s(l)),r++},e)})}function Wg(i){le(i,"svelte-1fuzm7v",".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}")}function cr(i){let t,e,n;return e=new Ml({props:{unfolded:i[0],content:i[1],inDelay:500,outDelay:i[5]}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","text svelte-1fuzm7v"),T(t,"transform",i[7])},m(o,s){M(o,t,s),J(e,t,null),i[10](t),n=!0},p(o,s){const r={};s&1&&(r.unfolded=o[0]),s&2&&(r.content=o[1]),s&32&&(r.outDelay=o[5]),e.$set(r),s&128&&T(t,"transform",o[7])},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e),i[10](null)}}}function ur(i){let t,e,n;return e=new _g({props:{direction:i[6],visible:i[0],inDelay:600,duration:1e3}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","arrow svelte-1fuzm7v")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s&64&&(r.direction=o[6]),s&1&&(r.visible=o[0]),e.$set(r)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function Ng(i){let t,e,n,o=i[1]&&cr(i),s=i[3]<i[4]&&ur(i);return{c(){o&&o.c(),t=ee(),s&&s.c(),e=me()},m(r,a){o&&o.m(r,a),M(r,t,a),s&&s.m(r,a),M(r,e,a),n=!0},p(r,[a]){r[1]?o?(o.p(r,a),a&2&&I(o,1)):(o=cr(r),o.c(),I(o,1),o.m(t.parentNode,t)):o&&(se(),L(o,1,1,()=>{o=null}),re()),r[3]<r[4]?s?(s.p(r,a),a&24&&I(s,1)):(s=ur(r),s.c(),I(s,1),s.m(e.parentNode,e)):s&&(se(),L(s,1,1,()=>{s=null}),re())},i(r){n||(I(o),I(s),n=!0)},o(r){L(o),L(s),n=!1},d(r){o&&o.d(r),r&&S(t),s&&s.d(r),r&&S(e)}}}function Xg(i,t,e){let n,o,s,{visible:r=!1}=t,{textUnfolded:a=!1}=t,{content:l}=t,c,u=0,d=0,h=0;function m(A){Ve[A?"unshift":"push"](()=>{c=A,e(2,c)})}return i.$$set=A=>{"visible"in A&&e(0,r=A.visible),"textUnfolded"in A&&e(8,a=A.textUnfolded),"content"in A&&e(1,l=A.content)},i.$$.update=()=>{if(i.$$.dirty&7&&c&&r&&l){const{lineHeight:A}=getComputedStyle(c);e(4,h=c.offsetHeight),Gg(()=>c==null?void 0:c.offsetHeight,Boolean).then(()=>{e(4,h=c.offsetHeight)}),e(3,d=Number(A.replace("px","")))}i.$$.dirty&280&&e(9,u=a?d-h:0),i.$$.dirty&512&&e(7,n=`translateY(${u}px)`),i.$$.dirty&256&&e(6,o=a?"left":"right"),i.$$.dirty&256&&e(5,s=a?450:0)},[r,l,c,d,h,s,o,n,a,u,m]}class Tl extends oe{constructor(t){super(),ie(this,t,Xg,Ng,ne,{visible:0,textUnfolded:8,content:1},Wg)}}function Yg(i){le(i,"svelte-nlvd3x",".content.svelte-nlvd3x{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}")}function dr(i){var u,d;let t,e,n,o,s,r,a,l,c;return t=new nt({props:{visible:i[2],left:i[3]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),n=new Po({props:{unfolded:i[2],length:i[3],outDelay:i[4]+40*Math.min((d=(u=i[6][0])==null?void 0:u.content.length)!=null?d:10,15),useLinearColor:!0}}),r=new Tl({props:{visible:i[2],textUnfolded:i[1],content:i[5]}}),{c(){K(t.$$.fragment),e=ee(),K(n.$$.fragment),o=ee(),s=z("div"),K(r.$$.fragment),y(s,"class","content svelte-nlvd3x")},m(h,m){J(t,h,m),M(h,e,m),J(n,h,m),M(h,o,m),M(h,s,m),J(r,s,null),a=!0,l||(c=[at(an.call(null,s)),ge(s,"clientWidth",i[11]),ge(s,"click",i[7])],l=!0)},p(h,m){var g,b;const A={};m&4&&(A.visible=h[2]),m&8&&(A.left=h[3]/2+"px"),t.$set(A);const v={};m&4&&(v.unfolded=h[2]),m&8&&(v.length=h[3]),m&16&&(v.outDelay=h[4]+40*Math.min((b=(g=h[6][0])==null?void 0:g.content.length)!=null?b:10,15)),n.$set(v);const p={};m&4&&(p.visible=h[2]),m&2&&(p.textUnfolded=h[1]),m&32&&(p.content=h[5]),r.$set(p)},i(h){a||(I(t.$$.fragment,h),I(n.$$.fragment,h),I(r.$$.fragment,h),a=!0)},o(h){L(t.$$.fragment,h),L(n.$$.fragment,h),L(r.$$.fragment,h),a=!1},d(h){Z(t,h),h&&S(e),Z(n,h),h&&S(o),h&&S(s),Z(r),l=!1,He(c)}}}function Ug(i){let t,e,n=i[0].state&&dr(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&I(n,1)):(n=dr(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function qg(i,t,e){let n,o,s;var r,a,l;let{tag:c}=t,u,d=!1,h=[];function m(){e(1,d=!d)}const A=v=>{e(3,u=v.detail)};return i.$$set=v=>{"tag"in v&&e(0,c=v.tag)},i.$$.update=()=>{i.$$.dirty&257&&e(2,n=!!(!(e(8,r=c.state)===null||r===void 0)&&r.unfolded)),i.$$.dirty&1537&&e(5,o=e(10,l=e(9,a=c.data.title)!==null&&a!==void 0?a:c.data.text)!==null&&l!==void 0?l:""),i.$$.dirty&4&&(n||setTimeout(()=>{e(1,d=!1)},20)),i.$$.dirty&2&&e(4,s=d?450:0)},[c,d,n,u,s,o,h,m,r,a,l,A]}class Jg extends oe{constructor(t){super(),ie(this,t,qg,Ug,ne,{tag:0},Yg)}}function tt(i){return typeof i=="number"?i/16+"rem":i}function Zg(i){le(i,"svelte-i9wdo4",".text.svelte-i9wdo4{display:-webkit-box;display:-ms-box;display:-moz-box;position:relative;width:-moz-max-content;width:max-content;max-width:100%;-webkit-box-orient:vertical;-ms-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@keyframes svelte-i9wdo4-blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}.caret.svelte-i9wdo4{position:absolute;width:0.0625rem;height:100%;background-color:#fff;animation:svelte-i9wdo4-blink 1.2s infinite}.placeholder.svelte-i9wdo4{opacity:0.5}")}function Kg(i){let t;const e=i[6].default,n=en(e,i,i[5],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),t=!0},p(o,s){n&&n.p&&(!t||s&32)&&nn(n,e,o,o[5],t?tn(e,o[5],s,null):on(o[5]),null)},i(o){t||(I(n,o),t=!0)},o(o){L(n,o),t=!1},d(o){n&&n.d(o)}}}function $g(i){var s,r;let t,e,n=((s=i[3])==null?void 0:s.inputting)&&hr(),o=((r=i[3])==null?void 0:r.placeholder)&&fr(i);return{c(){n&&n.c(),t=ee(),o&&o.c(),e=me()},m(a,l){n&&n.m(a,l),M(a,t,l),o&&o.m(a,l),M(a,e,l)},p(a,l){var c,u;(c=a[3])!=null&&c.inputting?n||(n=hr(),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),(u=a[3])!=null&&u.placeholder?o?o.p(a,l):(o=fr(a),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:U,o:U,d(a){n&&n.d(a),a&&S(t),o&&o.d(a),a&&S(e)}}}function e0(i){let t;return{c(){t=ke(i[2])},m(e,n){M(e,t,n)},p(e,n){n&4&&Se(t,e[2])},i:U,o:U,d(e){e&&S(t)}}}function hr(i){let t;return{c(){t=z("div"),y(t,"class","caret svelte-i9wdo4")},m(e,n){M(e,t,n)},d(e){e&&S(t)}}}function fr(i){let t,e=i[3].placeholder+"",n;return{c(){t=z("span"),n=ke(e),y(t,"class","placeholder svelte-i9wdo4")},m(o,s){M(o,t,s),j(t,n)},p(o,s){s&8&&e!==(e=o[3].placeholder+"")&&Se(n,e)},d(o){o&&S(t)}}}function t0(i){let t,e,n,o;const s=[e0,$g,Kg],r=[];function a(l,c){return l[2]?0:l[4]?1:2}return e=a(i),n=r[e]=s[e](i),{c(){t=z("div"),n.c(),y(t,"class","text svelte-i9wdo4"),T(t,"max-width",typeof i[1]=="number"?tt(i[1]):i[1]),T(t,"-webkit-line-clamp",i[0])},m(l,c){M(l,t,c),r[e].m(t,null),o=!0},p(l,[c]){let u=e;e=a(l),e===u?r[e].p(l,c):(se(),L(r[u],1,1,()=>{r[u]=null}),re(),n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),I(n,1),n.m(t,null)),c&2&&T(t,"max-width",typeof l[1]=="number"?tt(l[1]):l[1]),c&1&&T(t,"-webkit-line-clamp",l[0])},i(l){o||(I(n),o=!0)},o(l){L(n),o=!1},d(l){l&&S(t),r[e].d()}}}function n0(i,t,e){let n,{$$slots:o={},$$scope:s}=t,{maxLine:r=1}=t,{maxWidth:a=null}=t,{text:l=null}=t,{edit:c=null}=t;return i.$$set=u=>{"maxLine"in u&&e(0,r=u.maxLine),"maxWidth"in u&&e(1,a=u.maxWidth),"text"in u&&e(2,l=u.text),"edit"in u&&e(3,c=u.edit),"$$scope"in u&&e(5,s=u.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&e(4,n=(c==null?void 0:c.placeholder)||(c==null?void 0:c.inputting))},[r,a,l,c,n,s,o]}class Io extends oe{constructor(t){super(),ie(this,t,n0,t0,ne,{maxLine:0,maxWidth:1,text:2,edit:3},Zg)}}function i0(i){le(i,"svelte-1oxrkr1",".plane__container.svelte-1oxrkr1.svelte-1oxrkr1{position:absolute;left:50%;transform:translate(-50%, -100%);width:-moz-max-content;width:max-content}.plane__wrapper.svelte-1oxrkr1.svelte-1oxrkr1{transition:transform 500ms linear, opacity 200ms linear;padding:0.625rem;background-color:rgba(0, 0, 0, 0.5);border:0.03125rem solid rgba(255, 255, 255, 0.3);border-radius:0.25rem}.unfolded.svelte-1oxrkr1 .plane__wrapper.svelte-1oxrkr1{transition-delay:200ms, 500ms;opacity:1}.folded.svelte-1oxrkr1 .plane__wrapper.svelte-1oxrkr1{opacity:0}.plane.svelte-1oxrkr1.svelte-1oxrkr1{max-width:11.75rem}.title.svelte-1oxrkr1.svelte-1oxrkr1{white-space:pre-wrap;font-weight:bold;font-size:0.75rem;line-height:1.125rem}.description.svelte-1oxrkr1.svelte-1oxrkr1{margin-top:0.25rem;white-space:pre-wrap;font-size:0.6875rem;line-height:1rem}")}function mr(i){var d,h;let t,e,n,o,s,r,a,l,c;t=new Po({props:{unfolded:i[1],direction:"vertical",length:15,duration:500,inDelay:200,useLinearColor:!0}}),a=new Io({props:{text:i[2],edit:(d=i[0].data.edit)==null?void 0:d.title}});let u=(i[0].data.description||((h=i[0].data.edit)==null?void 0:h.description))&&pr(i);return{c(){K(t.$$.fragment),e=ee(),n=z("div"),o=z("div"),s=z("div"),r=z("div"),K(a.$$.fragment),l=ee(),u&&u.c(),y(r,"class","title svelte-1oxrkr1"),y(s,"class","plane svelte-1oxrkr1"),y(o,"class","plane__wrapper svelte-1oxrkr1"),T(o,"transform",i[1]?"translateY(-15px)":"translateY(0)"),y(n,"class","plane__container svelte-1oxrkr1"),q(n,"unfolded",i[1]),q(n,"folded",i[3])},m(m,A){J(t,m,A),M(m,e,A),M(m,n,A),j(n,o),j(o,s),j(s,r),J(a,r,null),j(s,l),u&&u.m(s,null),c=!0},p(m,A){var g,b;const v={};A&2&&(v.unfolded=m[1]),t.$set(v);const p={};A&4&&(p.text=m[2]),A&1&&(p.edit=(g=m[0].data.edit)==null?void 0:g.title),a.$set(p),m[0].data.description||((b=m[0].data.edit)==null?void 0:b.description)?u?(u.p(m,A),A&1&&I(u,1)):(u=pr(m),u.c(),I(u,1),u.m(s,null)):u&&(se(),L(u,1,1,()=>{u=null}),re()),A&2&&T(o,"transform",m[1]?"translateY(-15px)":"translateY(0)"),(!c||A&2)&&q(n,"unfolded",m[1]),(!c||A&8)&&q(n,"folded",m[3])},i(m){c||(I(t.$$.fragment,m),I(a.$$.fragment,m),I(u),c=!0)},o(m){L(t.$$.fragment,m),L(a.$$.fragment,m),L(u),c=!1},d(m){Z(t,m),m&&S(e),m&&S(n),Z(a),u&&u.d()}}}function pr(i){var o;let t,e,n;return e=new Io({props:{text:i[0].data.description,edit:(o=i[0].data.edit)==null?void 0:o.description,maxLine:3}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","description svelte-1oxrkr1")},m(s,r){M(s,t,r),J(e,t,null),n=!0},p(s,r){var l;const a={};r&1&&(a.text=s[0].data.description),r&1&&(a.edit=(l=s[0].data.edit)==null?void 0:l.description),e.$set(a)},i(s){n||(I(e.$$.fragment,s),n=!0)},o(s){L(e.$$.fragment,s),n=!1},d(s){s&&S(t),Z(e)}}}function o0(i){let t,e,n=i[0].state&&mr(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&I(n,1)):(n=mr(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function s0(i,t,e){let n,o,s;var r,a,l;let{tag:c}=t;return i.$$set=u=>{"tag"in u&&e(0,c=u.tag)},i.$$.update=()=>{i.$$.dirty&17&&e(1,n=!!(!(e(4,r=c.state)===null||r===void 0)&&r.unfolded)),i.$$.dirty&2&&e(3,o=!n),i.$$.dirty&97&&e(2,s=e(6,l=e(5,a=c.data.title)!==null&&a!==void 0?a:c.data.text)!==null&&l!==void 0?l:"")},[c,n,s,o,r,a,l]}class r0 extends oe{constructor(t){super(),ie(this,t,s0,o0,ne,{tag:0},i0)}}function a0(i){let t,e;return t=new r0({props:{tag:i[0]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function l0(i){let t,e;return t=new Jg({props:{tag:i[0]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function c0(i){let t,e,n,o;const s=[l0,a0],r=[];function a(l,c){return l[1]==="line"?0:l[1]==="plane"?1:-1}return~(t=a(i))&&(e=r[t]=s[t](i)),{c(){e&&e.c(),n=me()},m(l,c){~t&&r[t].m(l,c),M(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?~t&&r[t].p(l,c):(e&&(se(),L(r[u],1,1,()=>{r[u]=null}),re()),~t?(e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),I(e,1),e.m(n.parentNode,n)):e=null)},i(l){o||(I(e),o=!0)},o(l){L(e),o=!1},d(l){~t&&r[t].d(l),l&&S(n)}}}function u0(i,t,e){let n;var o;let{tag:s}=t;return i.$$set=r=>{"tag"in r&&e(0,s=r.tag)},i.$$.update=()=>{i.$$.dirty&5&&e(1,n=e(2,o=s.data.appearance)!==null&&o!==void 0?o:"line")},[s,n,o]}class d0 extends oe{constructor(t){super(),ie(this,t,u0,c0,ne,{tag:0})}}function h0(i){le(i,"svelte-blgtit",".line.svelte-blgtit{width:100%;height:100%;overflow:visible;pointer-events:none}")}function gr(i){let t,e,n,o;return{c(){t=we("path"),y(t,"fill","none"),y(t,"stroke","url(#"+i[4]+")"),y(t,"stroke-width","1"),y(t,"d","M0 21 L14 0.5 L105 0.5")},m(s,r){M(s,t,r),o=!0},p(s,r){i=s},i(s){o||(s&&Oe(()=>{n&&n.end(1),e=Tt(t,ci,{duration:i[1],delay:i[0],easing:Xa}),e.start()}),o=!0)},o(s){e&&e.invalidate(),s&&(n=rn(t,ci,{duration:i[1],delay:i[2],easing:Yt})),o=!1},d(s){s&&S(t),s&&n&&n.end()}}}function f0(i){let t,e,n,o,s,r=i[3]&&gr(i);return{c(){t=we("svg"),e=we("defs"),n=we("linearGradient"),o=we("stop"),s=we("stop"),r&&r.c(),y(o,"offset","25%"),y(o,"stop-color","white"),y(o,"stop-opacity","1"),y(s,"offset","100%"),y(s,"stop-color","white"),y(s,"stop-opacity","0.5"),y(n,"id",i[4]),y(n,"gradientUnits","userSpaceOnUse"),y(t,"class","line svelte-blgtit"),y(t,"viewBox","0 0 105 21")},m(a,l){M(a,t,l),j(t,e),j(e,n),j(n,o),j(n,s),r&&r.m(t,null)},p(a,[l]){a[3]?r?(r.p(a,l),l&8&&I(r,1)):(r=gr(a),r.c(),I(r,1),r.m(t,null)):r&&(se(),L(r,1,1,()=>{r=null}),re())},i(a){I(r)},o(a){L(r)},d(a){a&&S(t),r&&r.d()}}}function m0(i,t,e){let{inDelay:n=0}=t,{duration:o=1e3}=t,{outDelay:s=0}=t,{unfolded:r}=t;const a=_e();return i.$$set=l=>{"inDelay"in l&&e(0,n=l.inDelay),"duration"in l&&e(1,o=l.duration),"outDelay"in l&&e(2,s=l.outDelay),"unfolded"in l&&e(3,r=l.unfolded)},[n,o,s,r,a]}class p0 extends oe{constructor(t){super(),ie(this,t,m0,f0,ne,{inDelay:0,duration:1,outDelay:2,unfolded:3},h0)}}function g0(i){le(i,"svelte-1mgyhhn",`:root{--sc-dot-size:6px;--sc-active-dot-size:8px;--sc-dot-size-animation-time:250ms}.sc-carousel-dot__dot.svelte-1mgyhhn{background-color:var(--sc-color-rgb-light);border-radius:50%;display:inline-block;opacity:0.5;transition:opacity 100ms ease,\r
561
561
  height var(--sc-dot-size-animation-time) ease,\r
562
- width var(--sc-dot-size-animation-time) ease;cursor:pointer;-webkit-tap-highlight-color:transparent;height:var(--sc-dot-size);width:var(--sc-dot-size)}.sc-carousel-dot__dot.svelte-1mgyhhn:hover{opacity:0.9}.sc-carousel-dot__dot_active.svelte-1mgyhhn{opacity:0.7;height:var(--sc-active-dot-size);width:var(--sc-active-dot-size)}`)}function v0(i){let t,e,n;return{c(){t=z("button"),y(t,"class","sc-carousel-button sc-carousel-dot__dot svelte-1mgyhhn"),q(t,"sc-carousel-dot__dot_active",i[0])},m(o,s){M(o,t,s),e||(n=ge(t,"click",i[1]),e=!0)},p(o,[s]){s&1&&q(t,"sc-carousel-dot__dot_active",o[0])},i:U,o:U,d(o){o&&S(t),e=!1,n()}}}function b0(i,t,e){let{active:n=!1}=t;function o(s){sn.call(this,i,s)}return i.$$set=s=>{"active"in s&&e(0,n=s.active)},[n,o]}class y0 extends oe{constructor(t){super(),ie(this,t,b0,v0,ne,{active:0},A0)}}function w0(i){le(i,"svelte-670fde",".sc-carousel-dots__container.svelte-670fde{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:0 30px}.sc-carousel-dots__dot-container.svelte-670fde{height:calc(var(--sc-dot-size) + 14px);width:calc(var(--sc-dot-size) + 10px);display:flex;align-items:center;justify-content:center}")}function Ar(i,t,e){const n=i.slice();return n[5]=t[e],n[7]=e,n}function vr(i,t){let e,n,o,s;function r(){return t[3](t[7])}return n=new y0({props:{active:t[1]===t[7]}}),n.$on("click",r),{key:i,first:null,c(){e=z("div"),K(n.$$.fragment),o=ee(),y(e,"class","sc-carousel-dots__dot-container svelte-670fde"),this.first=e},m(a,l){M(a,e,l),J(n,e,null),j(e,o),s=!0},p(a,l){t=a;const c={};l&3&&(c.active=t[1]===t[7]),n.$set(c)},i(a){s||(P(n.$$.fragment,a),s=!0)},o(a){L(n.$$.fragment,a),s=!1},d(a){a&&S(e),Z(n)}}}function C0(i){let t,e=[],n=new Map,o,s=Array(i[0]);const r=a=>a[7];for(let a=0;a<s.length;a+=1){let l=Ar(i,s,a),c=r(l);n.set(c,e[a]=vr(c,l))}return{c(){t=z("div");for(let a=0;a<e.length;a+=1)e[a].c();y(t,"class","sc-carousel-dots__container svelte-670fde")},m(a,l){M(a,t,l);for(let c=0;c<e.length;c+=1)e[c].m(t,null);o=!0},p(a,[l]){l&7&&(s=Array(a[0]),se(),e=qe(e,l,r,1,a,s,n,t,Pt,vr,null,Ar),re())},i(a){if(!o){for(let l=0;l<s.length;l+=1)P(e[l]);o=!0}},o(a){for(let l=0;l<e.length;l+=1)L(e[l]);o=!1},d(a){a&&S(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}function E0(i,t,e){const n=mi();let{pagesCount:o=1}=t,{currentPageIndex:s=0}=t;function r(l){n("pageChange",l)}const a=l=>r(l);return i.$$set=l=>{"pagesCount"in l&&e(0,o=l.pagesCount),"currentPageIndex"in l&&e(1,s=l.currentPageIndex)},[o,s,r,a]}class P0 extends oe{constructor(t){super(),ie(this,t,E0,C0,ne,{pagesCount:0,currentPageIndex:1},w0)}}const Jt="prev",wt="next";function I0(i){le(i,"svelte-1bftafx",":root{--sc-arrow-size:2px}.sc-carousel-arrow__circle.svelte-1bftafx{width:20px;height:20px;border-radius:50%;background-color:var(--sc-color-rgb-light-50p);display:flex;align-items:center;justify-content:center;transition:opacity 100ms ease;cursor:pointer;-webkit-tap-highlight-color:transparent}.sc-carousel-arrow__circle.svelte-1bftafx:hover{opacity:0.9}.sc-carousel-arrow__arrow.svelte-1bftafx{border:solid var(--sc-color-hex-dark);border-width:0 var(--sc-arrow-size) var(--sc-arrow-size) 0;padding:var(--sc-arrow-size);position:relative}.sc-carousel-arrow__arrow-next.svelte-1bftafx{transform:rotate(-45deg);left:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__arrow-prev.svelte-1bftafx{transform:rotate(135deg);right:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__circle_disabled.svelte-1bftafx,.sc-carousel-arrow__circle_disabled.svelte-1bftafx:hover{opacity:0.5}")}function k0(i){let t,e,n,o;return{c(){t=z("button"),e=z("i"),y(e,"class","sc-carousel-arrow__arrow svelte-1bftafx"),q(e,"sc-carousel-arrow__arrow-next",i[0]===wt),q(e,"sc-carousel-arrow__arrow-prev",i[0]===Jt),y(t,"class","sc-carousel-button sc-carousel-arrow__circle svelte-1bftafx"),q(t,"sc-carousel-arrow__circle_disabled",i[1])},m(s,r){M(s,t,r),j(t,e),n||(o=ge(t,"click",i[2]),n=!0)},p(s,[r]){r&1&&q(e,"sc-carousel-arrow__arrow-next",s[0]===wt),r&1&&q(e,"sc-carousel-arrow__arrow-prev",s[0]===Jt),r&2&&q(t,"sc-carousel-arrow__circle_disabled",s[1])},i:U,o:U,d(s){s&&S(t),n=!1,o()}}}function x0(i,t,e){let{direction:n=wt}=t,{disabled:o=!1}=t;function s(r){sn.call(this,i,r)}return i.$$set=r=>{"direction"in r&&e(0,n=r.direction),"disabled"in r&&e(1,o=r.disabled)},[n,o,s]}class zl extends oe{constructor(t){super(),ie(this,t,x0,k0,ne,{direction:0,disabled:1},I0)}}function D0(i){le(i,"svelte-i7yfid",".sc-carousel-progress__indicator.svelte-i7yfid{height:100%;background-color:var(--sc-color-hex-dark-50p)}")}function L0(i){let t;return{c(){t=z("div"),y(t,"class","sc-carousel-progress__indicator svelte-i7yfid"),T(t,"width",i[0]+"%")},m(e,n){M(e,t,n)},p(e,[n]){n&1&&T(t,"width",e[0]+"%")},i:U,o:U,d(e){e&&S(t)}}}const br=100;function S0(i,t,e){let n,{value:o=0}=t;return i.$$set=s=>{"value"in s&&e(1,o=s.value)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=Math.min(Math.max(o*br,0),br))},[n,o]}class M0 extends oe{constructor(t){super(),ie(this,t,S0,L0,ne,{value:1},D0)}}function T0(i,t){i.addEventListener("mousedown",t),i.addEventListener("touchstart",t,{passive:!0})}function z0(i,t){i.removeEventListener("mousedown",t),i.removeEventListener("touchstart",t)}function B0(i,t){i.addEventListener("mouseup",t),i.addEventListener("touchend",t)}function yr(i,t){i.removeEventListener("mouseup",t),i.removeEventListener("touchend",t)}function j0(i,t){i.addEventListener("mousemove",t),i.addEventListener("touchmove",t)}function wr(i,t){i.removeEventListener("mousemove",t),i.removeEventListener("touchmove",t)}function ko(i){return function(t,e){i.dispatchEvent(new CustomEvent(t,{detail:e}))}}const V0=110,O0=9,R0=111,Q0=20;function Fi(i){if("TouchEvent"in window&&i instanceof TouchEvent){const t=i.touches[0];return{x:t?t.clientX:0,y:t?t.clientY:0}}return{x:i.clientX,y:i.clientY}}function F0(i,{thresholdProvider:t}){const e=ko(i);let n,o,s=0,r,a=!1;function l(){return Date.now()-r>=R0&&Math.abs(s)>=Q0}function c(h){r=Date.now(),s=0,a=!0;const m=Fi(h);n=m.x,o=m.y,e("swipeStart",{x:n,y:o}),j0(window,u),B0(window,d)}function u(h){if(!a)return;const m=Fi(h),A=m.x-n,v=m.y-o;n=m.x,o=m.y,e("swipeMove",{x:n,y:o,dx:A,dy:v}),A!==0&&Math.sign(A)!==Math.sign(s)&&(s=0),s+=A,Math.abs(s)>t()&&(e("swipeThresholdReached",{direction:s>0?Jt:wt}),yr(window,d),wr(window,u))}function d(h){if(yr(window,d),wr(window,u),a=!1,!l()){e("swipeFailed");return}const m=Fi(h);e("swipeEnd",{x:m.x,y:m.y})}return T0(i,c),{destroy(){z0(i,c)}}}function H0(i,t){i.addEventListener("mouseenter",t)}function _0(i,t){i.removeEventListener("mouseenter",t)}function G0(i,t){i.addEventListener("mouseleave",t)}function Cr(i,t){i.removeEventListener("mouseleave",t)}function W0(i){const t=ko(i);function e(){G0(i,n),t("hovered",{value:!0})}function n(){t("hovered",{value:!1}),Cr(i,n)}return H0(i,e),{destroy(){_0(i,e),Cr(i,n)}}}const N0=(i,t)=>{const e=t.x-i.x,n=t.y-i.y;return Math.sqrt(e*e+n*n)};function Gt(i,t,e){return Math.max(i,Math.min(t,e))}function X0(i,t){i.addEventListener("touchstart",t,{passive:!0})}function Y0(i,t){i.removeEventListener("touchstart",t)}function U0(i,t){i.addEventListener("touchend",t)}function Er(i,t){i.removeEventListener("touchend",t)}function q0(i){const t=ko(i);let e=0,n={x:0,y:0};function o({tapEndedAt:a,tapEndedPos:l}){const c=a-e,u=N0(n,l);return c<=V0&&u<=O0}function s(a){e=Date.now();const l=a.touches[0];n={x:l.clientX,y:l.clientY},U0(i,r)}function r(a){Er(i,r);const l=a.changedTouches[0];o({tapEndedAt:Date.now(),tapEndedPos:{x:l.clientX,y:l.clientY}})&&t("tapped")}return X0(i,s),{destroy(){Y0(i,s),Er(i,r)}}}function J0({currentParticleIndex:i,particlesCount:t,clonesCountHead:e,clonesCountTotal:n,particlesToScroll:o}){return i===t-e?0:i===0?Bl({particlesCountWithoutClones:t-n,particlesToScroll:o})-1:Math.floor((i-e)/o)}function Z0({currentParticleIndex:i,particlesToScroll:t}){return Math.ceil(i/t)}function K0({currentParticleIndex:i,particlesCount:t,clonesCountHead:e,clonesCountTotal:n,infinite:o,particlesToScroll:s}){return o?J0({currentParticleIndex:i,particlesCount:t,clonesCountHead:e,clonesCountTotal:n,particlesToScroll:s}):Z0({currentParticleIndex:i,particlesToScroll:s})}function Bl({particlesCountWithoutClones:i,particlesToScroll:t}){return Math.ceil(i/t)}function $0({particlesCountWithoutClones:i,particlesToScroll:t,particlesToShow:e}){const n=jl({particlesCountWithoutClones:i,particlesToScroll:t,particlesToShow:e});return Math.ceil(i/t)-n}function eA({infinite:i,particlesCountWithoutClones:t,particlesToScroll:e,particlesToShow:n}){return i?Bl({particlesCountWithoutClones:t,particlesToScroll:e}):$0({particlesCountWithoutClones:t,particlesToScroll:e,particlesToShow:n})}function tA({pageIndex:i,clonesCountHead:t,clonesCountTail:e,particlesToScroll:n,particlesCount:o}){return Gt(0,Math.min(t+i*n,o-e),o-1)}function nA({pageIndex:i,particlesToScroll:t,particlesCount:e,particlesToShow:n}){return Gt(0,Math.min(i*t,e-n),e-1)}function Hi({infinite:i,pageIndex:t,clonesCountHead:e,clonesCountTail:n,particlesToScroll:o,particlesCount:s,particlesToShow:r}){return i?tA({pageIndex:t,clonesCountHead:e,clonesCountTail:n,particlesToScroll:o,particlesCount:s}):nA({pageIndex:t,particlesToScroll:o,particlesCount:s,particlesToShow:r})}function iA({particlesContainerChildren:i,particleWidth:t}){for(let e=0;e<i.length;e++)i[e].style.minWidth=`${t}px`,i[e].style.maxWidth=`${t}px`}function jl({particlesToScroll:i,particlesToShow:t,particlesCountWithoutClones:e}){const n=i-t;let o=t;for(;;){const s=e-o-n;if(s<t)return Math.max(s,0);o+=t+n}}function oA(i){return new ResizeObserver(t=>{i({width:t[0].contentRect.width})})}function sA({clonesCountHead:i,clonesCountTail:t,particlesContainerChildren:e}){const n=[];for(let r=0;r<t;r++)n.push(e[r].cloneNode(!0));const o=[],s=e.length;for(let r=s-1;r>s-1-i;r--)o.push(e[r].cloneNode(!0));return{clonesToAppend:n,clonesToPrepend:o}}function rA({particlesContainer:i,clonesToAppend:t,clonesToPrepend:e}){for(let n=0;n<t.length;n++)i.append(t[n]);for(let n=0;n<e.length;n++)i.prepend(e[n])}function aA({infinite:i,particlesToShow:t,partialPageSize:e}){const n=i?{head:Math.ceil(e||t),tail:Math.ceil(t)}:{head:0,tail:0};return fe(Q({},n),{total:n.head+n.tail})}const vn=(i,t,e)=>{if(i&&i.hasOwnProperty(t))return i[t];if(e===void 0)throw new Error(`Required arg "${t}" was not provided`);return e},ro=i=>t=>{i[t]&&i[t]()},lA=(i,t)=>yc.default(i,t),cA=i=>Object.keys(i||{}),uA=(i,t)=>{const e={};return i.forEach(n=>{e[n]=t[n]}),e},dA=()=>{const i={},t=(e,n)=>{const{watcherName:o,fn:s}=e,{prop:r,value:a}=n;i[o]||(i[o]={deps:{},fn:s}),i[o].deps[r]=a};return{subscribers:i,subscribe(e,n){e&&t(e,n)},notify(e,n){Object.entries(i).forEach(([o,{deps:s,fn:r}])=>{const a=cA(s);if(a.includes(n)){const l=uA(a,e);lA(s,l)||(i[o].deps=l,r())}})}}},hA=()=>{let i=null;return{targetWatcher(t,e){i={watcherName:t,fn:e},i.fn(),i=null},getTarget(){return i}}};function fA(i,t){const e=Ln.default(i,"data",{}),n=Ln.default(i,"watch",{}),o=Ln.default(i,"methods",{}),s=Ln.default(t,"onChange",()=>{}),{subscribe:r,notify:a,subscribers:l}=dA(),{targetWatcher:c,getTarget:u}=hA();let d;const h={},m=()=>({data:d,methods:h});let A=!1;const v=g=>(...b)=>{A=!0;const w=g(...b);return A=!1,w};Object.entries(o).forEach(([g,b])=>{h[g]=v((...w)=>b(m(),...w)),Object.defineProperty(h[g],"name",{value:g})}),d=new Proxy(bc.default(e),{get(g,b){return u()&&!A&&r(u(),{prop:b,value:g[b]}),Reflect.get(...arguments)},set(g,b,w){return g[b]===w||(Reflect.set(...arguments),u()||(s&&s(b,w),a(d,b))),!0}}),Object.entries(n).forEach(([g,b])=>{c(g,()=>{b(m())})});const p=[d,h];return p._internal={_getSubscribers(){return l}},p}function mA({pageIndex:i,particlesToShow:t,particlesToScroll:e,particlesCount:n}){const o=i===0?0:t-e,s=i*t-i*o,r=s+Math.max(t,e)-1,a=[];for(let l=s;l<=Math.min(n-1,r);l++)a.push(l);return a}function pA({infinite:i,pageIndex:t,pagesCount:e,particlesCount:n,particlesToShow:o,particlesToScroll:s}){const r=Gt(0,t,e-1);let a=r-1,l=r+1;a=i?a<0?e-1:a:Math.max(0,a),l=i?l>e-1?0:l:Math.min(e-1,l);const c=[...new Set([a,r,l,0,e-1])].sort((d,h)=>d-h),u=c.flatMap(d=>mA({pageIndex:d,particlesToShow:o,particlesToScroll:s,particlesCount:n}));return{pageIndexes:c,particleIndexes:[...new Set(u)].sort((d,h)=>d-h)}}const gA=(i,t)=>(i(),setInterval(i,t)),AA=35,Pr=1;class vA{constructor({onProgressValueChange:t}){this._onProgressValueChange=t,this._autoplayDuration,this._onProgressValueChange,this._interval,this._paused=!1}setAutoplayDuration(t){this._autoplayDuration=t}start(t){return new Promise(e=>{this.reset();const n=Math.min(AA,Math.max(this._autoplayDuration,1));let o=-n;this._interval=gA(()=>W(this,null,function*(){if(this._paused)return;o+=n;const s=o/this._autoplayDuration;this._onProgressValueChange(s),s>Pr&&(this.reset(),yield t(),e())}),n)})}pause(){this._paused=!0}resume(){this._paused=!1}reset(){clearInterval(this._interval),this._onProgressValueChange(Pr)}}function bA(i){const t=new vA({onProgressValueChange:r=>{i("progressValue",1-r)}}),e=fA({data:{particlesCountWithoutClones:0,particlesToShow:1,particlesToShowInit:1,particlesToScroll:1,particlesToScrollInit:1,particlesCount:1,currentParticleIndex:1,infinite:!1,autoplayDuration:1e3,clonesCountHead:0,clonesCountTail:0,clonesCountTotal:0,partialPageSize:1,currentPageIndex:1,pagesCount:1,pauseOnFocus:!1,focused:!1,autoplay:!1,autoplayDirection:"next",disabled:!1,durationMsInit:1e3,durationMs:1e3,offset:0,particleWidth:0,loaded:[]},watch:{setLoaded({data:r}){r.loaded=pA({infinite:r.infinite,pageIndex:r.currentPageIndex,pagesCount:r.pagesCount,particlesCount:r.particlesCountWithoutClones,particlesToShow:r.particlesToShow,particlesToScroll:r.particlesToScroll}).particleIndexes},setCurrentPageIndex({data:r}){r.currentPageIndex=K0({currentParticleIndex:r.currentParticleIndex,particlesCount:r.particlesCount,clonesCountHead:r.clonesCountHead,clonesCountTotal:r.clonesCountTotal,infinite:r.infinite,particlesToScroll:r.particlesToScroll})},setPartialPageSize({data:r}){r.partialPageSize=jl({particlesToScroll:r.particlesToScroll,particlesToShow:r.particlesToShow,particlesCountWithoutClones:r.particlesCountWithoutClones})},setClonesCount({data:r}){const{head:a,tail:l}=aA({infinite:r.infinite,particlesToShow:r.particlesToShow,partialPageSize:r.partialPageSize});r.clonesCountHead=a,r.clonesCountTail=l,r.clonesCountTotal=a+l},setProgressManagerAutoplayDuration({data:r}){t.setAutoplayDuration(r.autoplayDuration)},toggleProgressManager({data:{pauseOnFocus:r,focused:a}}){r&&(a?t.pause():t.resume())},initDuration({data:r}){r.durationMs=r.durationMsInit},applyAutoplay({data:r,methods:{_applyAutoplayIfNeeded:a}}){r.autoplay&&a(r.autoplay)},setPagesCount({data:r}){r.pagesCount=eA({infinite:r.infinite,particlesCountWithoutClones:r.particlesCountWithoutClones,particlesToScroll:r.particlesToScroll,particlesToShow:r.particlesToShow})},setParticlesToShow({data:r}){r.particlesToShow=Gt(1,r.particlesToShowInit,r.particlesCountWithoutClones)},setParticlesToScroll({data:r}){r.particlesToScroll=Gt(1,r.particlesToScrollInit,r.particlesCountWithoutClones)}},methods:{_prev({data:r}){r.currentParticleIndex=Hi({infinite:r.infinite,pageIndex:r.currentPageIndex-1,clonesCountHead:r.clonesCountHead,clonesCountTail:r.clonesCountTail,particlesToScroll:r.particlesToScroll,particlesCount:r.particlesCount,particlesToShow:r.particlesToShow})},_next({data:r}){r.currentParticleIndex=Hi({infinite:r.infinite,pageIndex:r.currentPageIndex+1,clonesCountHead:r.clonesCountHead,clonesCountTail:r.clonesCountTail,particlesToScroll:r.particlesToScroll,particlesCount:r.particlesCount,particlesToShow:r.particlesToShow})},_moveToParticle({data:r},a){r.currentParticleIndex=Gt(0,a,r.particlesCount-1)},toggleFocused({data:r}){r.focused=!r.focused},_applyAutoplayIfNeeded(l){return W(this,arguments,function*({data:r,methods:a}){if(!r.infinite&&(r.autoplayDirection===wt&&r.currentParticleIndex===r.particlesCount-1||r.autoplayDirection===Jt&&r.currentParticleIndex===0)){t.reset();return}if(r.autoplay){const c=()=>ro({[wt]:()=>W(this,null,function*(){return a.showNextPage()}),[Jt]:()=>W(this,null,function*(){return a.showPrevPage()})})(r.autoplayDirection);yield t.start(c)}})},_jumpIfNeeded(l){return W(this,arguments,function*({data:r,methods:a}){let c=!1;return r.infinite&&(r.currentParticleIndex===0?(yield a.showParticle(r.particlesCount-r.clonesCountTotal,{animated:!1}),c=!0):r.currentParticleIndex===r.particlesCount-r.clonesCountTail&&(yield a.showParticle(r.clonesCountHead,{animated:!1}),c=!0)),c})},changePage(u,d,h){return W(this,arguments,function*({data:r,methods:a},l,c){if(t.reset(),r.disabled)return;r.disabled=!0,l(),yield a.offsetPage({animated:vn(c,"animated",!0)}),r.disabled=!1,!(yield a._jumpIfNeeded())&&a._applyAutoplayIfNeeded()})},showNextPage(c,u){return W(this,arguments,function*({data:r,methods:a},l){r.disabled||(yield a.changePage(a._next,l))})},showPrevPage(c,u){return W(this,arguments,function*({data:r,methods:a},l){r.disabled||(yield a.changePage(a._prev,l))})},showParticle(c,u,d){return W(this,arguments,function*({methods:r},a,l){yield r.changePage(()=>r._moveToParticle(a),l)})},_getParticleIndexByPageIndex({data:r},a){return Hi({infinite:r.infinite,pageIndex:a,clonesCountHead:r.clonesCountHead,clonesCountTail:r.clonesCountTail,particlesToScroll:r.particlesToScroll,particlesCount:r.particlesCount,particlesToShow:r.particlesToShow})},showPage(c,u,d){return W(this,arguments,function*({methods:r},a,l){const h=r._getParticleIndexByPageIndex(a);yield r.showParticle(h,l)})},offsetPage({data:r},a){const l=vn(a,"animated",!0);return new Promise(c=>{r.durationMs=l?r.durationMsInit:0,r.offset=-r.currentParticleIndex*r.particleWidth,setTimeout(()=>{c()},r.durationMs)})}}},{onChange:i}),[n,o]=e;return[{data:n,progressManager:t},o,e._internal]}function yA(i){le(i,"svelte-sme1z4",":root{--sc-color-rgb-light-50p:rgba(93, 93, 93, 0.5);--sc-color-rgb-light:#5d5d5d;--sc-color-hex-dark-50p:rgba(30, 30, 30, 0.5);--sc-color-hex-dark:#1e1e1e}.sc-carousel__carousel-container.svelte-sme1z4{display:flex;width:100%;flex-direction:column;align-items:center}.sc-carousel__content-container.svelte-sme1z4{position:relative;display:flex;width:100%}.sc-carousel__pages-window.svelte-sme1z4{flex:1;display:flex;overflow:hidden;box-sizing:border-box;position:relative}.sc-carousel__pages-container.svelte-sme1z4{width:100%;display:flex;transition-property:transform}.sc-carousel__arrow-container.svelte-sme1z4{padding:5px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.sc-carousel-progress__container.svelte-sme1z4{width:100%;height:5px;background-color:var(--sc-color-rgb-light-50p);position:absolute;bottom:0}.sc-carousel-button{all:unset;cursor:pointer}.sc-carousel-button:focus{outline:5px auto}")}const wA=i=>({currentPageIndex:i[0]&32,pagesCount:i[0]&1024,loaded:i[0]&64}),Ir=i=>({currentPageIndex:i[5],pagesCount:i[10],showPage:i[15],loaded:i[6]}),CA=i=>({loaded:i[0]&64,currentPageIndex:i[0]&32}),kr=i=>({showNextPage:i[14].showNextPage,loaded:i[6],currentPageIndex:i[5]}),EA=i=>({loaded:i[0]&64,currentPageIndex:i[0]&32}),xr=i=>({loaded:i[6],currentPageIndex:i[5]}),PA=i=>({loaded:i[0]&64,currentPageIndex:i[0]&32}),Dr=i=>({showPrevPage:i[14].showPrevPage,loaded:i[6],currentPageIndex:i[5]});function Lr(i){let t;const e=i[37].prev,n=en(e,i,i[36],Dr),o=n||IA(i);return{c(){o&&o.c()},m(s,r){o&&o.m(s,r),t=!0},p(s,r){n?n.p&&(!t||r[0]&96|r[1]&32)&&nn(n,e,s,s[36],t?tn(e,s[36],r,PA):on(s[36]),Dr):o&&o.p&&(!t||r[0]&36)&&o.p(s,t?r:[-1,-1])},i(s){t||(P(o,s),t=!0)},o(s){L(o,s),t=!1},d(s){o&&o.d(s)}}}function IA(i){let t,e,n;return e=new zl({props:{direction:"prev",disabled:!i[2]&&i[5]===0}}),e.$on("click",i[23]),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","sc-carousel__arrow-container svelte-sme1z4")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s[0]&36&&(r.disabled=!o[2]&&o[5]===0),e.$set(r)},i(o){n||(P(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function Sr(i){let t,e,n;return e=new M0({props:{value:i[7]}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","sc-carousel-progress__container svelte-sme1z4")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s[0]&128&&(r.value=o[7]),e.$set(r)},i(o){n||(P(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function Mr(i){let t;const e=i[37].next,n=en(e,i,i[36],kr),o=n||kA(i);return{c(){o&&o.c()},m(s,r){o&&o.m(s,r),t=!0},p(s,r){n?n.p&&(!t||r[0]&96|r[1]&32)&&nn(n,e,s,s[36],t?tn(e,s[36],r,CA):on(s[36]),kr):o&&o.p&&(!t||r[0]&1060)&&o.p(s,t?r:[-1,-1])},i(s){t||(P(o,s),t=!0)},o(s){L(o,s),t=!1},d(s){o&&o.d(s)}}}function kA(i){let t,e,n;return e=new zl({props:{direction:"next",disabled:!i[2]&&i[5]===i[10]-1}}),e.$on("click",i[14].showNextPage),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","sc-carousel__arrow-container svelte-sme1z4")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s[0]&1060&&(r.disabled=!o[2]&&o[5]===o[10]-1),e.$set(r)},i(o){n||(P(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function Tr(i){let t;const e=i[37].dots,n=en(e,i,i[36],Ir),o=n||xA(i);return{c(){o&&o.c()},m(s,r){o&&o.m(s,r),t=!0},p(s,r){n?n.p&&(!t||r[0]&1120|r[1]&32)&&nn(n,e,s,s[36],t?tn(e,s[36],r,wA):on(s[36]),Ir):o&&o.p&&(!t||r[0]&1056)&&o.p(s,t?r:[-1,-1])},i(s){t||(P(o,s),t=!0)},o(s){L(o,s),t=!1},d(s){o&&o.d(s)}}}function xA(i){let t,e;return t=new P0({props:{pagesCount:i[10],currentPageIndex:i[5]}}),t.$on("pageChange",i[41]),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o[0]&1024&&(s.pagesCount=n[10]),o[0]&32&&(s.currentPageIndex=n[5]),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function DA(i){let t,e,n,o,s,r,a,l,c,u,d,h,m=i[1]&&Lr(i);const A=i[37].default,v=en(A,i,i[36],xr);let p=i[3]&&Sr(i),g=i[1]&&Mr(i),b=i[4]&&Tr(i);return{c(){t=z("div"),e=z("div"),m&&m.c(),n=ee(),o=z("div"),s=z("div"),v&&v.c(),a=ee(),p&&p.c(),l=ee(),g&&g.c(),c=ee(),b&&b.c(),y(s,"class","sc-carousel__pages-container svelte-sme1z4"),T(s,"transform","translateX("+i[8]+"px)"),T(s,"transition-duration",i[9]+"ms"),T(s,"transition-timing-function",i[0]),y(o,"class","sc-carousel__pages-window svelte-sme1z4"),y(e,"class","sc-carousel__content-container svelte-sme1z4"),y(t,"class","sc-carousel__carousel-container svelte-sme1z4")},m(w,x){M(w,t,x),j(t,e),m&&m.m(e,null),j(e,n),j(e,o),j(o,s),v&&v.m(s,null),i[39](s),j(o,a),p&&p.m(o,null),i[40](o),j(e,l),g&&g.m(e,null),j(t,c),b&&b.m(t,null),u=!0,d||(h=[at(r=F0.call(null,s,{thresholdProvider:i[38]})),ge(s,"swipeStart",i[16]),ge(s,"swipeMove",i[18]),ge(s,"swipeEnd",i[19]),ge(s,"swipeFailed",i[20]),ge(s,"swipeThresholdReached",i[17]),at(W0.call(null,o)),ge(o,"hovered",i[21]),at(q0.call(null,o)),ge(o,"tapped",i[22])],d=!0)},p(w,x){w[1]?m?(m.p(w,x),x[0]&2&&P(m,1)):(m=Lr(w),m.c(),P(m,1),m.m(e,n)):m&&(se(),L(m,1,1,()=>{m=null}),re()),v&&v.p&&(!u||x[0]&96|x[1]&32)&&nn(v,A,w,w[36],u?tn(A,w[36],x,EA):on(w[36]),xr),(!u||x[0]&256)&&T(s,"transform","translateX("+w[8]+"px)"),(!u||x[0]&512)&&T(s,"transition-duration",w[9]+"ms"),(!u||x[0]&1)&&T(s,"transition-timing-function",w[0]),r&&$t(r.update)&&x[0]&2048&&r.update.call(null,{thresholdProvider:w[38]}),w[3]?p?(p.p(w,x),x[0]&8&&P(p,1)):(p=Sr(w),p.c(),P(p,1),p.m(o,null)):p&&(se(),L(p,1,1,()=>{p=null}),re()),w[1]?g?(g.p(w,x),x[0]&2&&P(g,1)):(g=Mr(w),g.c(),P(g,1),g.m(e,null)):g&&(se(),L(g,1,1,()=>{g=null}),re()),w[4]?b?(b.p(w,x),x[0]&16&&P(b,1)):(b=Tr(w),b.c(),P(b,1),b.m(t,null)):b&&(se(),L(b,1,1,()=>{b=null}),re())},i(w){u||(P(m),P(v,w),P(p),P(g),P(b),u=!0)},o(w){L(m),L(v,w),L(p),L(g),L(b),u=!1},d(w){w&&S(t),m&&m.d(),v&&v.d(w),i[39](null),p&&p.d(),i[40](null),g&&g.d(),b&&b.d(),d=!1,He(h)}}}function LA(i,t,e){let{$$slots:n={},$$scope:o}=t,s=[],r,a,l=0,c=0,u=1;const[{data:d,progressManager:h},m,A]=bA((te,ve)=>{ro({currentPageIndex:()=>e(5,r=ve),progressValue:()=>e(7,a=ve),offset:()=>e(8,l=ve),durationMs:()=>e(9,c=ve),pagesCount:()=>e(10,u=ve),loaded:()=>e(6,s=ve)})(te)}),v=mi();let{timingFunction:p="ease-in-out"}=t,{arrows:g=!0}=t,{infinite:b=!0}=t,{initialPageIndex:w=0}=t,{duration:x=500}=t,{autoplay:k=!1}=t,{autoplayDuration:C=3e3}=t,{autoplayDirection:D=wt}=t,{pauseOnFocus:E=!1}=t,{autoplayProgressVisible:O=!1}=t,{dots:G=!0}=t,{swiping:X=!0}=t,{particlesToShow:H=1}=t,{particlesToScroll:B=1}=t;function F(te,ve){return W(this,null,function*(){const je=vn(ve,"animated",!0);if(typeof te!="number")throw new Error("pageIndex should be a number");yield m.showPage(te,{animated:je})})}function R(te){return W(this,null,function*(){const ve=vn(te,"animated",!0);yield m.showPrevPage({animated:ve})})}function N(te){return W(this,null,function*(){const ve=vn(te,"animated",!0);yield m.showNextPage({animated:ve})})}let _=0,$,Y;const ae=oA(({width:te})=>{e(11,_=te),d.particleWidth=_/d.particlesToShow,iA({particlesContainerChildren:Y.children,particleWidth:d.particleWidth}),m.offsetPage({animated:!1})});function he(){const{clonesToAppend:te,clonesToPrepend:ve}=sA({clonesCountHead:d.clonesCountHead,clonesCountTail:d.clonesCountTail,particlesContainerChildren:Y.children});rA({particlesContainer:Y,clonesToAppend:te,clonesToPrepend:ve})}Ue(()=>{W(this,null,function*(){yield Fo(),Y&&$&&(d.particlesCountWithoutClones=Y.children.length,yield Fo(),d.infinite&&he(),d.particlesCount=Y.children.length,m.showPage(w,{animated:!1}),ae.observe($))})}),Et(()=>{ae.disconnect(),h.reset()});function de(te){return W(this,null,function*(){yield m.showPage(te,{animated:!0})})}function pe(){!X||(d.durationMs=0)}function Pe(te){return W(this,null,function*(){!X||(yield ro({[wt]:m.showNextPage,[Jt]:m.showPrevPage})(te.detail.direction))})}function Ie(te){!X||(d.offset+=te.detail.dx)}function Me(){!X||m.showParticle(d.currentParticleIndex)}function ce(){return W(this,null,function*(){!X||(yield m.offsetPage({animated:!0}))})}function Ae(te){d.focused=te.detail.value}function Ee(){m.toggleFocused()}function ue(){m.showPrevPage()}const Xe=()=>_/3;function it(te){Ve[te?"unshift":"push"](()=>{Y=te,e(13,Y)})}function be(te){Ve[te?"unshift":"push"](()=>{$=te,e(12,$)})}const Je=te=>de(te.detail);return i.$$set=te=>{"timingFunction"in te&&e(0,p=te.timingFunction),"arrows"in te&&e(1,g=te.arrows),"infinite"in te&&e(2,b=te.infinite),"initialPageIndex"in te&&e(24,w=te.initialPageIndex),"duration"in te&&e(25,x=te.duration),"autoplay"in te&&e(26,k=te.autoplay),"autoplayDuration"in te&&e(27,C=te.autoplayDuration),"autoplayDirection"in te&&e(28,D=te.autoplayDirection),"pauseOnFocus"in te&&e(29,E=te.pauseOnFocus),"autoplayProgressVisible"in te&&e(3,O=te.autoplayProgressVisible),"dots"in te&&e(4,G=te.dots),"swiping"in te&&e(30,X=te.swiping),"particlesToShow"in te&&e(31,H=te.particlesToShow),"particlesToScroll"in te&&e(32,B=te.particlesToScroll),"$$scope"in te&&e(36,o=te.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&32&&v("pageChange",r),i.$$.dirty[0]&4&&(d.infinite=b),i.$$.dirty[0]&33554432&&(d.durationMsInit=x),i.$$.dirty[0]&67108864&&(d.autoplay=k),i.$$.dirty[0]&134217728&&(d.autoplayDuration=C),i.$$.dirty[0]&268435456&&(d.autoplayDirection=D),i.$$.dirty[0]&536870912&&(d.pauseOnFocus=E),i.$$.dirty[1]&1&&(d.particlesToShowInit=H),i.$$.dirty[1]&2&&(d.particlesToScrollInit=B)},[p,g,b,O,G,r,s,a,l,c,u,_,$,Y,m,de,pe,Pe,Ie,Me,ce,Ae,Ee,ue,w,x,k,C,D,E,X,H,B,F,R,N,o,n,Xe,it,be,Je]}class SA extends oe{constructor(t){super(),ie(this,t,LA,DA,ne,{timingFunction:0,arrows:1,infinite:2,initialPageIndex:24,duration:25,autoplay:26,autoplayDuration:27,autoplayDirection:28,pauseOnFocus:29,autoplayProgressVisible:3,dots:4,swiping:30,particlesToShow:31,particlesToScroll:32,goTo:33,goToPrev:34,goToNext:35},yA,[-1,-1])}get goTo(){return this.$$.ctx[33]}get goToPrev(){return this.$$.ctx[34]}get goToNext(){return this.$$.ctx[35]}}function MA(i){le(i,"svelte-159ski6",".media-item.svelte-159ski6.svelte-159ski6{position:relative;height:100%}.media-content.svelte-159ski6.svelte-159ski6{position:relative;pointer-events:auto;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.media-content.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none}.video-icon.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-159ski6.svelte-159ski6{display:none;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none;display:block}.video-icon.svelte-159ski6.svelte-159ski6{pointer-events:auto}.video-icon.large.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem}.video-icon.small.svelte-159ski6.svelte-159ski6{width:1.75rem;height:1.75rem}.video-icon.svelte-159ski6 .video-icon-img.svelte-159ski6{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-159ski6 .video-icon-img.canPlay.svelte-159ski6{cursor:pointer}")}function zr(i){let t;function e(s,r){if(s[2].type==="Image")return zA;if(s[2].type==="Video")return TA}let n=e(i),o=n&&n(i);return{c(){t=z("div"),o&&o.c(),y(t,"class","media-item svelte-159ski6"),y(t,"draggable","false")},m(s,r){M(s,t,r),o&&o.m(t,null)},p(s,r){n===(n=e(s))&&o?o.p(s,r):(o&&o.d(1),o=n&&n(s),o&&(o.c(),o.m(t,null)))},d(s){s&&S(t),o&&o.d()}}}function TA(i){let t,e,n,o,s,r;function a(u,d){return u[7]&&u[2].videoCoverUrl?jA:BA}let l=a(i),c=l(i);return{c(){c.c(),t=ee(),e=z("div"),n=z("div"),o=z("div"),y(o,"class","video-icon-img svelte-159ski6"),T(o,"background-image","url("+i[18]()+")"),q(o,"canPlay",i[5]),y(n,"class","video-icon svelte-159ski6"),q(n,"large",i[4]==="large"),q(n,"small",i[4]==="small"),y(e,"class","video-play-button-container svelte-159ski6"),q(e,"showPlayButton",i[9])},m(u,d){c.m(u,d),M(u,t,d),M(u,e,d),j(e,n),j(n,o),s||(r=ge(o,"click",i[19]),s=!0)},p(u,d){l===(l=a(u))&&c?c.p(u,d):(c.d(1),c=l(u),c&&(c.c(),c.m(t.parentNode,t))),d&8&&T(o,"background-image","url("+u[18]()+")"),d&32&&q(o,"canPlay",u[5]),d&16&&q(n,"large",u[4]==="large"),d&16&&q(n,"small",u[4]==="small"),d&512&&q(e,"showPlayButton",u[9])},d(u){c.d(u),u&&S(t),u&&S(e),s=!1,r()}}}function zA(i){let t,e,n,o;return{c(){t=z("img"),y(t,"class","media-content svelte-159ski6"),y(t,"style",e=`object-fit: ${i[6]};`),Ne(t.src,n=i[2].url)||y(t,"src",n),y(t,"alt",o=i[2].name),y(t,"draggable",!1)},m(s,r){M(s,t,r)},p(s,r){r&64&&e!==(e=`object-fit: ${s[6]};`)&&y(t,"style",e),r&4&&!Ne(t.src,n=s[2].url)&&y(t,"src",n),r&4&&o!==(o=s[2].name)&&y(t,"alt",o)},d(s){s&&S(t)}}}function BA(i){let t,e,n,o,s,r,a;return{c(){t=z("video"),y(t,"class","media-content svelte-159ski6"),y(t,"style",e=`object-fit: ${i[6]};`),Ne(t.src,n=i[2].videoCoverUrl?i[2].url:i[2].url+"#t=0.1")||y(t,"src",n),y(t,"poster",o=i[2].videoCoverUrl),y(t,"preload",s=i[2].videoCoverUrl?"none":"auto"),y(t,"disablepictureinpicture",""),t.playsInline=!0,y(t,"paused",""),t.muted=!0,y(t,"draggable",!1),t.loop=!1,y(t,"crossorigin",""),t.controls=!1,q(t,"showPlayButton",i[9])},m(l,c){M(l,t,c),i[17](t),r||(a=[ge(t,"play",i[14]),ge(t,"pause",i[15]),ge(t,"click",i[16])],r=!0)},p(l,c){c&64&&e!==(e=`object-fit: ${l[6]};`)&&y(t,"style",e),c&4&&!Ne(t.src,n=l[2].videoCoverUrl?l[2].url:l[2].url+"#t=0.1")&&y(t,"src",n),c&4&&o!==(o=l[2].videoCoverUrl)&&y(t,"poster",o),c&4&&s!==(s=l[2].videoCoverUrl?"none":"auto")&&y(t,"preload",s),c&512&&q(t,"showPlayButton",l[9])},d(l){l&&S(t),i[17](null),r=!1,He(a)}}}function jA(i){let t,e,n,o;return{c(){t=z("img"),y(t,"class","media-content svelte-159ski6"),y(t,"style",e=`object-fit: ${i[6]};`),Ne(t.src,n=i[2].videoCoverUrl)||y(t,"src",n),y(t,"alt",o=i[2].name),y(t,"draggable",!1)},m(s,r){M(s,t,r)},p(s,r){r&64&&e!==(e=`object-fit: ${s[6]};`)&&y(t,"style",e),r&4&&!Ne(t.src,n=s[2].videoCoverUrl)&&y(t,"src",n),r&4&&o!==(o=s[2].name)&&y(t,"alt",o)},d(s){s&&S(t)}}}function VA(i){let t,e=i[2]&&zr(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),M(n,t,o)},p(n,[o]){n[2]?e?e.p(n,o):(e=zr(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:U,o:U,d(n){e&&e.d(n),n&&S(t)}}}function OA(i,t,e){let n,{mediaInstance:o={paused:!0}}=t,{tag:s}=t,{media:r}=t,{playButtonIfNeed:a="withoutText"}=t,{playButtonSizeIfNeed:l="small"}=t,{canPlay:c=!0}=t,{objectFit:u="fill"}=t,{disableVideoIfHavePoster:d=!1}=t,h,m=!0,A=!1;function v(){e(12,A=(r==null?void 0:r.type)==="Video"&&Boolean(r.videoCoverUrl))}const p=St("mediaStore"),g=St("hooks"),b=()=>{A||(h==null||h.play(),h==null||h.pause(),e(12,A=!0))};g.on("loadVideoFirstFrame",b),Ue(()=>{p.subscribe(({currentMediaElement:O})=>{O!==h&&(h==null||h.pause())})});const w=O=>{e(9,m=!1),e(0,o.paused=!1,o),h&&p.set({currentMediaElement:h}),g.emit("playStateChange",{event:O,state:"playing",tag:s,mediaInstance:h})},x=O=>{e(9,m=!0),e(0,o.paused=!0,o),g.emit("playStateChange",{event:O,state:"paused",tag:s,mediaInstance:h})},k=O=>{h&&h.pause()};function C(O){Ve[O?"unshift":"push"](()=>{h=O,e(8,h)})}const D=()=>a==="withText"?Og:a==="withoutText"?Rg:a,E=O=>{!c||h&&(e(8,h.muted=!1,h),h.play())};return i.$$set=O=>{"mediaInstance"in O&&e(0,o=O.mediaInstance),"tag"in O&&e(1,s=O.tag),"media"in O&&e(2,r=O.media),"playButtonIfNeed"in O&&e(3,a=O.playButtonIfNeed),"playButtonSizeIfNeed"in O&&e(4,l=O.playButtonSizeIfNeed),"canPlay"in O&&e(5,c=O.canPlay),"objectFit"in O&&e(6,u=O.objectFit),"disableVideoIfHavePoster"in O&&e(7,d=O.disableVideoIfHavePoster)},i.$$.update=()=>{if(i.$$.dirty&4&&e(13,n=r==null?void 0:r.url),i.$$.dirty&8192&&Boolean(n)&&v(),i.$$.dirty&256&&h&&e(9,m=h.paused),i.$$.dirty&4356&&(r==null?void 0:r.type)==="Video"&&!A){const O=navigator.userAgent.toLowerCase().indexOf("micromessenger")!==-1,X=navigator.userAgent.toLowerCase().indexOf("iphone")!==-1&&O;h&&X&&h.paused&&(document.removeEventListener("WeixinJSBridgeReady",b),document.removeEventListener("touchstart",b),document.removeEventListener("click",b),document.addEventListener("WeixinJSBridgeReady",b),document.addEventListener("touchstart",b),document.addEventListener("click",b))}},[o,s,r,a,l,c,u,d,h,m,p,g,A,n,w,x,k,C,D,E]}class Vl extends oe{constructor(t){super(),ie(this,t,OA,VA,ne,{mediaInstance:0,tag:1,media:2,playButtonIfNeed:3,playButtonSizeIfNeed:4,canPlay:5,objectFit:6,disableVideoIfHavePoster:7},MA)}}function RA(i){le(i,"svelte-1mrbqlg",".media-list-wrapper.svelte-1mrbqlg.svelte-1mrbqlg{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}.media-list-wrapper.svelte-1mrbqlg .media-list.svelte-1mrbqlg{position:relative;pointer-events:auto;height:100%;left:50%;top:50%;transform:translate(-50%, -50%)}.media-list-wrapper.svelte-1mrbqlg .media-list.svelte-1mrbqlg .sc-carousel__carousel-container,.media-list-wrapper.svelte-1mrbqlg .media-list.svelte-1mrbqlg .sc-carousel__content-container{height:100%}")}function Br(i,t,e){const n=i.slice();return n[21]=t[e],n[22]=t,n[23]=e,n}function jr(i){let t,e,n,o,s,r,a;const l=[FA,QA],c=[];function u(d,h){return d[12]&&d[10].length>1?0:1}return n=u(i),o=c[n]=l[n](i),{c(){t=z("div"),e=z("div"),o.c(),y(e,"class","media-list svelte-1mrbqlg"),q(e,"carouselEnabled",i[12]),y(t,"class","media-list-wrapper svelte-1mrbqlg"),q(t,"unfolded",i[5])},m(d,h){M(d,t,h),j(t,e),c[n].m(e,null),a=!0},p(d,h){i=d;let m=n;n=u(i),n===m?c[n].p(i,h):(se(),L(c[m],1,1,()=>{c[m]=null}),re(),o=c[n],o?o.p(i,h):(o=c[n]=l[n](i),o.c()),P(o,1),o.m(e,null)),(!a||h&4096)&&q(e,"carouselEnabled",i[12]),(!a||h&32)&&q(t,"unfolded",i[5])},i(d){a||(P(o),d&&Oe(()=>{r&&r.end(1),s=Tt(t,Wo,i[6]?{y:4,duration:i[4],delay:i[2],easing:At}:void 0),s.start()}),a=!0)},o(d){L(o),s&&s.invalidate(),d&&(r=rn(t,Wo,i[6]?{y:4,duration:i[4],delay:i[3],easing:At}:void 0)),a=!1},d(d){d&&S(t),c[n].d(),d&&r&&r.end()}}}function QA(i){let t,e;const n=[{media:i[1][0]},i[7],{tag:i[0]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new Vl({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&131?Re(n,[r&2&&{media:s[1][0]},r&128&&Fa(s[7]),r&1&&{tag:s[0]}]):{};t.$set(a)},i(s){e||(P(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function FA(i){let t,e,n={dots:!1,arrows:!1,$$slots:{default:[HA]},$$scope:{ctx:i}};return t=new SA({props:n}),i[17](t),t.$on("pageChange",i[18]),{c(){K(t.$$.fragment)},m(o,s){J(t,o,s),e=!0},p(o,s){const r={};s&16778625&&(r.$$scope={dirty:s,ctx:o}),t.$set(r)},i(o){e||(P(t.$$.fragment,o),e=!0)},o(o){L(t.$$.fragment,o),e=!1},d(o){i[17](null),Z(t,o)}}}function Vr(i){let t,e,n;const o=[i[7],{media:i[21]},{tag:i[0]}];function s(a){i[16](a,i[23])}let r={};for(let a=0;a<o.length;a+=1)r=Be(r,o[a]);return i[8][i[23]]!==void 0&&(r.mediaInstance=i[8][i[23]]),t=new Vl({props:r}),Ve.push(()=>ru(t,"mediaInstance",s)),{c(){K(t.$$.fragment)},m(a,l){J(t,a,l),n=!0},p(a,l){i=a;const c=l&1153?Re(o,[l&128&&Fa(i[7]),l&1024&&{media:i[21]},l&1&&{tag:i[0]}]):{};!e&&l&256&&(e=!0,c.mediaInstance=i[8][i[23]],iu(()=>e=!1)),t.$set(c)},i(a){n||(P(t.$$.fragment,a),n=!0)},o(a){L(t.$$.fragment,a),n=!1},d(a){Z(t,a)}}}function HA(i){let t,e,n=i[10],o=[];for(let r=0;r<n.length;r+=1)o[r]=Vr(Br(i,n,r));const s=r=>L(o[r],1,1,()=>{o[r]=null});return{c(){for(let r=0;r<o.length;r+=1)o[r].c();t=me()},m(r,a){for(let l=0;l<o.length;l+=1)o[l].m(r,a);M(r,t,a),e=!0},p(r,a){if(a&1409){n=r[10];let l;for(l=0;l<n.length;l+=1){const c=Br(r,n,l);o[l]?(o[l].p(c,a),P(o[l],1)):(o[l]=Vr(c),o[l].c(),P(o[l],1),o[l].m(t.parentNode,t))}for(se(),l=n.length;l<o.length;l+=1)s(l);re()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)P(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)L(o[a]);e=!1},d(r){ct(o,r),r&&S(t)}}}function _A(i){let t,e,n=i[5]&&jr(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[5]?n?(n.p(o,s),s&32&&P(n,1)):(n=jr(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function GA(i,t,e){let n,o,s,r,{tag:a}=t,{mediaData:l}=t,{inDelay:c=0}=t,{outDelay:u=0}=t,{duration:d=0}=t,{unfolded:h=!0}=t,{animation:m=!0}=t,{mediaItemConfig:A}=t,{enableCarousel:v=!0}=t,{autoplayConfig:p={autoplay:!0,autoplayVideo:!1}}=t,g=[],b,w=null;const x=St("mediaStore");Ue(()=>{w=setInterval(()=>{r&&(b==null||b.goToNext())},3e3)}),Et(()=>{clearInterval(w)});function k(E,O){i.$$.not_equal(g[O],E)&&(g[O]=E,e(8,g))}function C(E){Ve[E?"unshift":"push"](()=>{b=E,e(11,b)})}const D=E=>{n||x.set({currentMediaElement:null})};return i.$$set=E=>{"tag"in E&&e(0,a=E.tag),"mediaData"in E&&e(1,l=E.mediaData),"inDelay"in E&&e(2,c=E.inDelay),"outDelay"in E&&e(3,u=E.outDelay),"duration"in E&&e(4,d=E.duration),"unfolded"in E&&e(5,h=E.unfolded),"animation"in E&&e(6,m=E.animation),"mediaItemConfig"in E&&e(7,A=E.mediaItemConfig),"enableCarousel"in E&&e(14,v=E.enableCarousel),"autoplayConfig"in E&&e(15,p=E.autoplayConfig)},i.$$.update=()=>{i.$$.dirty&256&&e(9,n=g.every(E=>E.paused)),i.$$.dirty&16386&&e(12,o=v&&(l==null?void 0:l.length)>1),i.$$.dirty&2&&e(10,s=l),i.$$.dirty&34304&&(r=s.length>1&&p.autoplay&&n)},[a,l,c,u,d,h,m,A,g,n,s,b,o,x,v,p,k,C,D]}class Ol extends oe{constructor(t){super(),ie(this,t,GA,_A,ne,{tag:0,mediaData:1,inDelay:2,outDelay:3,duration:4,unfolded:5,animation:6,mediaItemConfig:7,enableCarousel:14,autoplayConfig:15},RA)}}function WA(i){le(i,"svelte-1f7m1lj",".line.svelte-1f7m1lj{position:absolute;width:6.5625rem;height:1.3125rem;transform:translateY(-100%)}.text.svelte-1f7m1lj{position:absolute;width:6.25rem;left:1rem;bottom:0.0625rem;font-weight:600}.media-wrapper.svelte-1f7m1lj{position:absolute;left:0.875rem;top:-5.3125rem;width:5.625rem;height:3.75rem;font-weight:600}")}function Or(i){let t,e,n,o,s,r,a,l;t=new nt({props:{visible:i[3],left:61,bottom:57,width:2,blurRadius:150,spreadRadius:75}}),o=new g0({props:{unfolded:i[3],outDelay:400}});let c=i[2]&&Rr(i),u=i[1]&&Qr(i);return{c(){K(t.$$.fragment),e=ee(),n=z("div"),K(o.$$.fragment),s=ee(),c&&c.c(),r=ee(),u&&u.c(),a=me(),y(n,"class","line svelte-1f7m1lj")},m(d,h){J(t,d,h),M(d,e,h),M(d,n,h),J(o,n,null),M(d,s,h),c&&c.m(d,h),M(d,r,h),u&&u.m(d,h),M(d,a,h),l=!0},p(d,h){const m={};h&8&&(m.visible=d[3]),t.$set(m);const A={};h&8&&(A.unfolded=d[3]),o.$set(A),d[2]?c?(c.p(d,h),h&4&&P(c,1)):(c=Rr(d),c.c(),P(c,1),c.m(r.parentNode,r)):c&&(se(),L(c,1,1,()=>{c=null}),re()),d[1]?u?(u.p(d,h),h&2&&P(u,1)):(u=Qr(d),u.c(),P(u,1),u.m(a.parentNode,a)):u&&(se(),L(u,1,1,()=>{u=null}),re())},i(d){l||(P(t.$$.fragment,d),P(o.$$.fragment,d),P(c),P(u),l=!0)},o(d){L(t.$$.fragment,d),L(o.$$.fragment,d),L(c),L(u),l=!1},d(d){Z(t,d),d&&S(e),d&&S(n),Z(o),d&&S(s),c&&c.d(d),d&&S(r),u&&u.d(d),d&&S(a)}}}function Rr(i){let t,e,n;return e=new Ml({props:{unfolded:i[3],content:i[2],inDelay:500}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","text svelte-1f7m1lj")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s&8&&(r.unfolded=o[3]),s&4&&(r.content=o[2]),e.$set(r)},i(o){n||(P(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function Qr(i){let t,e,n;return e=new Ol({props:{autoplayConfig:{autoplay:!1},unfolded:i[3],mediaData:i[1],tag:i[0],enableCarousel:!1,mediaItemConfig:{canPlay:!1,playButtonSizeIfNeed:"small",disableVideoIfHavePoster:!0},inDelay:500,duration:500}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","media-wrapper svelte-1f7m1lj")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s&8&&(r.unfolded=o[3]),s&2&&(r.mediaData=o[1]),s&1&&(r.tag=o[0]),e.$set(r)},i(o){n||(P(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function NA(i){let t,e,n=i[0].state&&Or(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&P(n,1)):(n=Or(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function XA(i,t,e){let n,o,s,r;var a,l,c;let{tag:u}=t;return i.$$set=d=>{"tag"in d&&e(0,u=d.tag)},i.$$.update=()=>{i.$$.dirty&1&&e(3,n=u.state?u.state.unfolded:!1),i.$$.dirty&49&&e(7,o=e(5,l=e(4,a=u.data.title)!==null&&a!==void 0?a:u.data.text)!==null&&l!==void 0?l:""),i.$$.dirty&192&&e(2,s=(e(6,c=o.length)!==null&&c!==void 0?c:0)>7?o.substring(0,6)+"...":o),i.$$.dirty&1&&e(1,r=u.data.mediaData)},[u,r,s,n,a,l,c,o]}class YA extends oe{constructor(t){super(),ie(this,t,XA,NA,ne,{tag:0},WA)}}function UA(i){le(i,"svelte-sezqcq",'@charset "UTF-8";.svelte-sezqcq.svelte-sezqcq{box-sizing:border-box}.marketing.svelte-sezqcq.svelte-sezqcq{transform:translateY(-100%)}.marketing.svelte-sezqcq .line.svelte-sezqcq{position:absolute;height:1.875rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.marketing.svelte-sezqcq .content.svelte-sezqcq{position:relative;min-width:7.5rem;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-property:opacity, transform;transition-duration:500ms}.marketing.svelte-sezqcq .content .headerImage.svelte-sezqcq{position:absolute;width:100%;top:0.25rem;transform:translateY(-100%);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem}.title-wrapper.svelte-sezqcq.svelte-sezqcq{position:relative;width:100%;height:1.125rem}.title-wrapper.svelte-sezqcq .title.svelte-sezqcq{border-radius:0.25rem;width:100%;padding-left:0.625rem;padding-right:0.625rem}.title-wrapper.svelte-sezqcq .title .text.svelte-sezqcq{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;font-weight:bold;line-height:1.125rem}.footer.svelte-sezqcq.svelte-sezqcq{position:relative;padding:0.5rem 0.625rem 0 0;width:100%;display:flex;align-items:center}.footer.svelte-sezqcq .goto-button.svelte-sezqcq{display:flex;align-self:flex-end;flex-wrap:wrap;align-items:center;overflow:hidden;height:0.875rem}.footer.svelte-sezqcq .goto-button .gap.svelte-sezqcq{height:100%;width:0.625rem}.footer.svelte-sezqcq .goto-button .text.svelte-sezqcq{display:block;height:100%;font-size:0.625rem}.footer.svelte-sezqcq .arrow-wrapper.svelte-sezqcq{height:0.875rem;display:flex;align-self:flex-end;flex-grow:0;flex-shrink:0;align-items:center;margin-left:0.25rem}.footer.svelte-sezqcq .arrow-wrapper svg.arrow.svelte-sezqcq{width:0.375rem;height:0.625rem}.footer.svelte-sezqcq .price.svelte-sezqcq{flex-shrink:0;margin-right:auto;white-space:nowrap;display:flex;align-items:baseline;margin-left:0.625rem}.footer.svelte-sezqcq .price .value.svelte-sezqcq{position:relative;font-size:0.875rem;line-height:1rem;font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0rem}.footer.svelte-sezqcq .price .unit.svelte-sezqcq{padding-left:0.125rem;font-size:0.625rem}.tags-wrapper.svelte-sezqcq.svelte-sezqcq{position:relative;overflow:hidden;height:1rem;margin-top:0.25rem}.tags-wrapper.svelte-sezqcq .tags.svelte-sezqcq{position:relative;display:inline-flex;max-width:100%;flex-wrap:wrap;padding-left:0.625rem;padding-right:0.375rem}.tags-wrapper.svelte-sezqcq .tags .tag.svelte-sezqcq{display:flex;align-items:center;justify-content:center;flex-shrink:0;flex-grow:0;font-size:0.625rem;height:1rem;margin-right:0.25rem;margin-bottom:0.625rem;padding:0 0.25rem;border-radius:0.125rem;max-width:100%;text-overflow:ellipsis;overflow:hidden}.marketing.light.svelte-sezqcq .content.svelte-sezqcq{background-color:white}.marketing.light.svelte-sezqcq .content .title-wrapper .title .text.svelte-sezqcq{color:rgba(0, 0, 0, 0.8)}.marketing.light.svelte-sezqcq .content .tags-wrapper .tags .primary-tag.svelte-sezqcq{background:rgba(234, 208, 154, 0.5);color:#946700}.marketing.light.svelte-sezqcq .content .tags-wrapper .tags .secondary-tag.svelte-sezqcq{background:rgba(0, 0, 0, 0.06);color:rgba(0, 0, 0, 0.5)}.marketing.light.svelte-sezqcq .content .footer.svelte-sezqcq{color:#946700;fill:#946700}.marketing.dark.svelte-sezqcq .content.svelte-sezqcq{background-color:rgba(0, 0, 0, 0.5)}.marketing.dark.svelte-sezqcq .content .title-wrapper .title .text.svelte-sezqcq{color:white}.marketing.dark.svelte-sezqcq .content .tags-wrapper .tags .primary-tag.svelte-sezqcq{background:rgba(234, 208, 154, 0.5);color:white}.marketing.dark.svelte-sezqcq .content .tags-wrapper .tags .secondary-tag.svelte-sezqcq{background:rgba(255, 255, 255, 0.15);color:rgba(255, 255, 255, 0.85)}.marketing.dark.svelte-sezqcq .content .footer.svelte-sezqcq{color:#ead09a;fill:#ead09a}.marketing.unfolded.svelte-sezqcq .line.svelte-sezqcq{transform:translateX(-50%) scale(1, 1)}.marketing.folded.svelte-sezqcq .line.svelte-sezqcq{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.marketing.unfolded.svelte-sezqcq .content.svelte-sezqcq{opacity:1}.marketing.folded.svelte-sezqcq .content.svelte-sezqcq{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}')}function Fr(i,t,e){const n=i.slice();return n[0]=t[e],n}function Hr(i,t,e){const n=i.slice();return n[0]=t[e],n}function _r(i){let t,e;return{c(){t=z("img"),y(t,"class","headerImage svelte-sezqcq"),Ne(t.src,e=i[3].headerPictureUrl)||y(t,"src",e),y(t,"alt","")},m(n,o){M(n,t,o)},p(n,o){o&8&&!Ne(t.src,e=n[3].headerPictureUrl)&&y(t,"src",e)},d(n){n&&S(t)}}}function Gr(i){let t,e,n,o,s=i[2]||[],r=[];for(let c=0;c<s.length;c+=1)r[c]=Wr(Hr(i,s,c));let a=i[5]||[],l=[];for(let c=0;c<a.length;c+=1)l[c]=Nr(Fr(i,a,c));return{c(){t=z("div"),e=z("div");for(let c=0;c<r.length;c+=1)r[c].c();n=ee();for(let c=0;c<l.length;c+=1)l[c].c();y(e,"class","tags svelte-sezqcq"),Oe(()=>i[17].call(e)),y(t,"class","tags-wrapper svelte-sezqcq")},m(c,u){M(c,t,u),j(t,e);for(let d=0;d<r.length;d+=1)r[d].m(e,null);j(e,n);for(let d=0;d<l.length;d+=1)l[d].m(e,null);o=fi(e,i[17].bind(e))},p(c,u){if(u&4){s=c[2]||[];let d;for(d=0;d<s.length;d+=1){const h=Hr(c,s,d);r[d]?r[d].p(h,u):(r[d]=Wr(h),r[d].c(),r[d].m(e,n))}for(;d<r.length;d+=1)r[d].d(1);r.length=s.length}if(u&32){a=c[5]||[];let d;for(d=0;d<a.length;d+=1){const h=Fr(c,a,d);l[d]?l[d].p(h,u):(l[d]=Nr(h),l[d].c(),l[d].m(e,null))}for(;d<l.length;d+=1)l[d].d(1);l.length=a.length}},d(c){c&&S(t),ct(r,c),ct(l,c),o()}}}function Wr(i){let t,e=i[0]+"",n;return{c(){t=z("div"),n=ke(e),y(t,"class","tag primary-tag svelte-sezqcq"),T(t,"min-width",xo)},m(o,s){M(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[0]+"")&&Se(n,e)},d(o){o&&S(t)}}}function Nr(i){let t,e=i[0]+"",n;return{c(){t=z("div"),n=ke(e),y(t,"class","tag secondary-tag svelte-sezqcq"),T(t,"min-width",xo)},m(o,s){M(o,t,s),j(t,n)},p(o,s){s&32&&e!==(e=o[0]+"")&&Se(n,e)},d(o){o&&S(t)}}}function Xr(i){let t,e,n=i[7]&&Yr(i),o=i[3].highlightText&&qr(i);return{c(){t=z("div"),n&&n.c(),e=ee(),o&&o.c(),y(t,"class","footer svelte-sezqcq")},m(s,r){M(s,t,r),n&&n.m(t,null),j(t,e),o&&o.m(t,null)},p(s,r){s[7]?n?n.p(s,r):(n=Yr(s),n.c(),n.m(t,e)):n&&(n.d(1),n=null),s[3].highlightText?o?o.p(s,r):(o=qr(s),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(s){s&&S(t),n&&n.d(),o&&o.d()}}}function Yr(i){let t,e,n=i[3].price.value+"",o,s,r=i[3].price.unit&&Ur(i);return{c(){t=z("div"),e=z("span"),o=ke(n),s=ee(),r&&r.c(),y(e,"class","value svelte-sezqcq"),y(t,"class","price svelte-sezqcq")},m(a,l){M(a,t,l),j(t,e),j(e,o),j(t,s),r&&r.m(t,null)},p(a,l){l&8&&n!==(n=a[3].price.value+"")&&Se(o,n),a[3].price.unit?r?r.p(a,l):(r=Ur(a),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(a){a&&S(t),r&&r.d()}}}function Ur(i){let t,e=i[3].price.unit+"",n;return{c(){t=z("span"),n=ke(e),y(t,"class","unit svelte-sezqcq")},m(o,s){M(o,t,s),j(t,n)},p(o,s){s&8&&e!==(e=o[3].price.unit+"")&&Se(n,e)},d(o){o&&S(t)}}}function qr(i){let t,e,n,o,s=i[3].highlightText+"",r,a,l;return{c(){t=z("div"),e=z("div"),n=ee(),o=z("span"),r=ke(s),a=ee(),l=z("div"),l.innerHTML='<svg class="arrow svelte-sezqcq" viewBox="0 0 6 9"><g transform="translate(-3, -2)" fill-rule="nonzero" class="svelte-sezqcq"><path d="M4.43868724,2.12056563 C4.28121824,1.95989074 4.02582143,1.95979988 3.86824251,2.1203627 C3.72498894,2.26632889 3.71189225,2.49481723 3.82900374,2.65587166 L6.57092402,5.92894326 C6.72651763,6.11470411 6.72651763,6.38529589 6.57092402,6.57105674 L3.86804348,9.79798499 C3.72488984,9.94405307 3.71194952,10.1725507 3.8291712,10.3335217 L3.86824251,10.3796373 C4.01149607,10.5256035 4.23559087,10.5387981 4.39346025,10.4192733 L4.43868724,10.3794344 L8.1144599,6.5985342 C8.30312347,6.40447482 8.30312347,6.09552518 8.1144599,5.9014658 L4.43868724,2.12056563 Z" class="svelte-sezqcq"></path></g></svg>',y(e,"class","gap svelte-sezqcq"),y(o,"class","text svelte-sezqcq"),y(t,"class","goto-button goto-icon svelte-sezqcq"),y(l,"class","arrow-wrapper svelte-sezqcq")},m(c,u){M(c,t,u),j(t,e),j(t,n),j(t,o),j(o,r),M(c,a,u),M(c,l,u)},p(c,u){u&8&&s!==(s=c[3].highlightText+"")&&Se(r,s)},d(c){c&&S(t),c&&S(a),c&&S(l)}}}function qA(i){var x,k;let t,e,n,o,s,r,a,l,c,u,d=i[3].title+"",h,m,A,v,p;e=new nt({props:{visible:i[4],outDelay:500,left:61,bottom:87,blurRadius:150,spreadRadius:75}});let g=i[3].headerPictureUrl&&_r(i),b=((x=i[2].length)!=null?x:0)+((k=i[5].length)!=null?k:0)>0&&Gr(i),w=(i[7]||i[3].highlightText)&&Xr(i);return{c(){t=z("div"),K(e.$$.fragment),n=ee(),o=z("div"),s=ee(),r=z("div"),g&&g.c(),a=ee(),l=z("div"),c=z("div"),u=z("div"),h=ke(d),m=ee(),b&&b.c(),A=ee(),w&&w.c(),y(o,"class","line svelte-sezqcq"),T(o,"transition-delay",i[4]?Nn+"ms":Xn+Zr-Jr-40+"ms"),y(u,"class","text svelte-sezqcq"),y(c,"class","title svelte-sezqcq"),y(l,"class","title-wrapper svelte-sezqcq"),y(r,"class","content svelte-sezqcq"),T(r,"max-width",tt(i[9])),T(r,"transition-delay",i[4]?Nn+Xn+"ms":"0ms"),y(t,"class",v=Te(`marketing ${i[6]}`)+" svelte-sezqcq"),q(t,"unfolded",i[4]),q(t,"folded",i[8])},m(C,D){M(C,t,D),J(e,t,null),j(t,n),j(t,o),j(t,s),j(t,r),g&&g.m(r,null),j(r,a),j(r,l),j(l,c),j(c,u),j(u,h),j(r,m),b&&b.m(r,null),j(r,A),w&&w.m(r,null),p=!0},p(C,[D]){var O,G;const E={};D&16&&(E.visible=C[4]),e.$set(E),D&16&&T(o,"transition-delay",C[4]?Nn+"ms":Xn+Zr-Jr-40+"ms"),C[3].headerPictureUrl?g?g.p(C,D):(g=_r(C),g.c(),g.m(r,a)):g&&(g.d(1),g=null),(!p||D&8)&&d!==(d=C[3].title+"")&&Se(h,d),((O=C[2].length)!=null?O:0)+((G=C[5].length)!=null?G:0)>0?b?b.p(C,D):(b=Gr(C),b.c(),b.m(r,A)):b&&(b.d(1),b=null),C[7]||C[3].highlightText?w?w.p(C,D):(w=Xr(C),w.c(),w.m(r,null)):w&&(w.d(1),w=null),D&16&&T(r,"transition-delay",C[4]?Nn+Xn+"ms":"0ms"),(!p||D&64&&v!==(v=Te(`marketing ${C[6]}`)+" svelte-sezqcq"))&&y(t,"class",v),(!p||D&80)&&q(t,"unfolded",C[4]),(!p||D&320)&&q(t,"folded",C[8])},i(C){p||(P(e.$$.fragment,C),p=!0)},o(C){L(e.$$.fragment,C),p=!1},d(C){C&&S(t),Z(e),g&&g.d(),b&&b.d(),w&&w.d()}}}const xo=40,Nn=400,Jr=500,Xn=180,Zr=500;function JA(i,t,e){let n,o,s,r,a,l,c,u;var d,h,m,A,v,p;let{tag:g}=t,b,w=(()=>{var k;const C=(k=g.data.limitWidth)!==null&&k!==void 0?k:!0;if(typeof C=="number")return C;if(C===!0)return 172})();function x(){b=this.offsetHeight,e(1,b)}return i.$$set=k=>{"tag"in k&&e(0,g=k.tag)},i.$$.update=()=>{i.$$.dirty&3073&&e(4,n=e(11,h=e(10,d=g.state)===null||d===void 0?void 0:d.unfolded)!==null&&h!==void 0?h:!1),i.$$.dirty&16&&e(8,o=!n),i.$$.dirty&1&&e(3,s=g.data),i.$$.dirty&12296&&e(7,r=yt(e(12,m=s.price)===null||m===void 0?void 0:m.value)&&(e(13,A=s.price)===null||A===void 0?void 0:A.value)!==""),i.$$.dirty&1&&e(6,a=g.data.theme||"light"),i.$$.dirty&65538&&b>40&&e(16,l=l-1),i.$$.dirty&81928&&e(2,c=(e(14,v=s.brandTags)===null||v===void 0?void 0:v.slice(0,l).filter(Boolean))||[]),i.$$.dirty&98316&&e(5,u=(e(15,p=s.tags)===null||p===void 0?void 0:p.slice(0,l-c.length).filter(Boolean))||[])},e(16,l=(w-20)/xo),[g,b,c,s,n,u,a,r,o,w,d,h,m,A,v,p,l,x]}class ZA extends oe{constructor(t){super(),ie(this,t,JA,qA,ne,{tag:0},UA)}}class KA extends Audio{constructor(e){super();f(this,"sharedAudioSrc");f(this,"sharedAudioPaused",!0);f(this,"sharedAudioCurrentTime",0);f(this,"tryplaying",!1);f(this,"audioInstance");f(this,"eventListenerDisposer");this.sharedAudioSrc=e}get paused(){var e;return(e=this.sharedAudioPaused)!=null?e:!0}get currentTime(){return this.sharedAudioCurrentTime}play(){return W(this,null,function*(){var n,o,s;if(this.tryplaying)return;this.tryplaying=!0,(!this.audioInstance||((n=this.audioInstance)==null?void 0:n.realSrc)!==this.sharedAudioSrc)&&(this.audioInstance=ig(this.sharedAudioSrc,{namespace:Eo.PlayAudio})),(o=this.eventListenerDisposer)==null||o.call(this),this.eventListenerDisposer=this.addEventListeners(),this.audioInstance.currentTime=(s=this.currentTime)!=null?s:0;const e=this.audioInstance.currentTime!==this.currentTime;this.audioInstance.play().then(()=>{var r;this.audioInstance.muted=!1,e&&(this.audioInstance.currentTime=(r=this.currentTime)!=null?r:0),this.sharedAudioPaused=!1}).catch(r=>{var a;r.message==="The operation is not supported."?console.error("Error: \u97F3\u9891\u6587\u4EF6\u53EF\u80FD\u635F\u574F\u6216\u4FEE\u6539\u8FC7\u6587\u4EF6\u540E\u7F00",r):console.error("Error: error playing media in Safari",r),this.endedHandler(),(a=this.onerror)==null||a.call(this,r)}).finally(()=>{this.tryplaying=!1})})}pause(e){var n;if(!!this.audioInstance&&!this.paused){if(this.sharedAudioPaused=!0,(n=this.eventListenerDisposer)==null||n.call(this),this.audioInstance.ended){this.endedHandler();return}this.audioInstance.paused||this.audioInstance.pause(),this.onpause(e!=null?e:new Event("pause")),this.clear()}}dispose(){var e;(e=this.eventListenerDisposer)==null||e.call(this),this.clear(),this.audioInstance=void 0}clear(){var e;(e=this.audioInstance)==null||e.clear()}endedHandler(e){var n,o;(n=this.onended)==null||n.call(this,e!=null?e:new Event("ended")),(o=this.eventListenerDisposer)==null||o.call(this),this.sharedAudioPaused=!0,this.sharedAudioCurrentTime=0,this.clear()}addEventListeners(){const e=this.audioInstance;if(!e)return;const n=h=>{var m;console.debug("ontimeupdate",e.currentTime,e.paused,e.ended),this.sharedAudioCurrentTime=e.currentTime,(m=this.ontimeupdate)==null||m.call(this,h)},o=h=>{var m;e.isBlankAudio||(this.sharedAudioPaused=!1,(m=this.onplay)==null||m.call(this,h))},s=h=>{this.pause(h)},r=h=>{this.endedHandler(h)},a=h=>{var m;this.sharedAudioPaused=!0,(m=this.onerror)==null||m.call(this,h)},l=h=>{var m;return(m=this.oncanplay)==null?void 0:m.call(this,h)},c=h=>{var m;return(m=this.oncanplaythrough)==null?void 0:m.call(this,h)},u=h=>{var m;return(m=this.onloadeddata)==null?void 0:m.call(this,h)},d=h=>{var m;return(m=this.onloadedmetadata)==null?void 0:m.call(this,h)};return e.addEventListener("timeupdate",n),e.addEventListener("play",o),e.addEventListener("pause",s),e.addEventListener("ended",r),e.addEventListener("error",a),e.addEventListener("canplay",l),e.addEventListener("canplaythrough",c),e.addEventListener("loadeddata",u),e.addEventListener("loadedmetadata",d),()=>{e.removeEventListener("timeupdate",n),e.removeEventListener("play",o),e.removeEventListener("pause",s),e.removeEventListener("ended",r),e.removeEventListener("error",a),e.removeEventListener("canplay",l),e.removeEventListener("canplaythrough",c),e.removeEventListener("loadeddata",u),e.removeEventListener("loadedmetadata",d)}}}function $A(i){le(i,"svelte-13e7hxv",".audio.svelte-13e7hxv{pointer-events:auto;cursor:pointer;width:100%;height:100%}")}function ev(i){let t,e,n,o;const s=i[8].default,r=en(s,i,i[7],null);return{c(){t=z("div"),r&&r.c(),y(t,"class","audio svelte-13e7hxv"),y(t,"style",i[0])},m(a,l){M(a,t,l),r&&r.m(t,null),e=!0,n||(o=ge(t,"click",Sa(i[1])),n=!0)},p(a,[l]){r&&r.p&&(!e||l&128)&&nn(r,s,a,a[7],e?tn(s,a[7],l,null):on(a[7]),null),(!e||l&1)&&y(t,"style",a[0])},i(a){e||(P(r,a),e=!0)},o(a){L(r,a),e=!1},d(a){a&&S(t),r&&r.d(a),n=!1,o()}}}function tv(i,t,e){let{$$slots:n={},$$scope:o}=t,{url:s}=t,{enable:r=!0}=t,{style:a=""}=t,{hooksInfo:l}=t;const c=mi(),u=St("hooks"),d=St("mediaStore");let h,m=!0;function A(){e(5,h.onplay=p=>{u.emit("playStateChange",Object.assign({event:p,state:"playing",mediaInstance:h},l)),c("play"),e(6,m=!1)},h),e(5,h.onpause=p=>{u.emit("playStateChange",Object.assign({event:p,state:"paused",mediaInstance:h},l)),c("pause"),e(6,m=!0)},h),e(5,h.onended=p=>{u.emit("playStateChange",Object.assign({event:p,state:"paused",mediaInstance:h},l)),c("pause"),e(6,m=!0)},h),e(5,h.onloadedmetadata=p=>{typeof h.duration=="number"&&!Number.isNaN(h.duration)&&c("duration",h.duration)},h),e(5,h.onerror=p=>{c("pause"),e(6,m=!0)},h),e(5,h.ontimeupdate=p=>{c("timeupdate",h.currentTime)},h)}d.subscribe(({currentMediaElement:p})=>{p!==h&&(m||h==null||h.pause())});function v(p){!h||(u.emit("click",Object.assign({event:p,target:"AudioTagPlayIcon",audioInstance:h},l)),d.set({currentMediaElement:h}),u.emit("playStateChange",Object.assign({event:p,state:h.paused?"playing":"paused",mediaInstance:h},l)),h.paused?h.play():h.pause())}return i.$$set=p=>{"url"in p&&e(2,s=p.url),"enable"in p&&e(3,r=p.enable),"style"in p&&e(0,a=p.style),"hooksInfo"in p&&e(4,l=p.hooksInfo),"$$scope"in p&&e(7,o=p.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&(s||c("duration",0)),i.$$.dirty&36&&(h==null||h.dispose(),e(5,h=new KA(s)),c("audioRef",h),setTimeout(()=>c("audioRef",h),200),A()),i.$$.dirty&40&&(r||h==null||h.pause()),i.$$.dirty&72&&c(r&&!m?"play":"pause")},[a,v,s,r,l,h,m,o,n]}class Rl extends oe{constructor(t){super(),ie(this,t,tv,ev,ne,{url:2,enable:3,style:0,hooksInfo:4},$A)}}function nv(i){le(i,"svelte-srt2pi",".audio-icon__wrapper.svelte-srt2pi.svelte-srt2pi{display:inline-block}.audio-icon.svelte-srt2pi.svelte-srt2pi{display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:100%;border-radius:50%;background-color:rgba(255, 255, 255, 0.8)}.audio-icon.svelte-srt2pi .sound-wave__container.svelte-srt2pi{position:absolute;pointer-events:none;width:60%;height:60%}.sound-wave.svelte-srt2pi.svelte-srt2pi{animation-duration:2s;animation-iteration-count:infinite;animation-play-state:paused;transition:opacity 0}.playing.svelte-srt2pi .sound-wave.svelte-srt2pi{animation-play-state:running}.playing.svelte-srt2pi .sound-wave-1.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_1_animation}.playing.svelte-srt2pi .sound-wave-2.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_2_animation}.playing.svelte-srt2pi .sound-wave-3.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_3_animation}@keyframes svelte-srt2pi-sound_wave_1_animation{0%,10%{opacity:0}25%,100%{opacity:1}}@keyframes svelte-srt2pi-sound_wave_2_animation{0%,35%{opacity:0}50%,100%{opacity:1}}@keyframes svelte-srt2pi-sound_wave_3_animation{0%,60%{opacity:0}75%,100%{opacity:1}}")}function Kr(i){let t,e;return t=new nt({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function iv(i){let t,e,n,o,s,r=i[1]&&Kr();return{c(){t=z("div"),r&&r.c(),e=ee(),n=z("div"),o=z("div"),o.innerHTML='<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>',y(o,"class","sound-wave__container svelte-srt2pi"),y(n,"class","audio-icon svelte-srt2pi"),q(n,"playing",i[0]),y(t,"class","audio-icon__wrapper svelte-srt2pi"),y(t,"style",i[2]),T(t,"width",i[5]),T(t,"height",i[5])},m(a,l){M(a,t,l),r&&r.m(t,null),j(t,e),j(t,n),j(n,o),i[7](o),i[8](t),s=!0},p(a,[l]){a[1]?r?l&2&&P(r,1):(r=Kr(),r.c(),P(r,1),r.m(t,e)):r&&(se(),L(r,1,1,()=>{r=null}),re()),(!s||l&1)&&q(n,"playing",a[0]),(!s||l&4)&&y(t,"style",a[2]),l&32&&T(t,"width",a[5]),l&32&&T(t,"height",a[5])},i(a){s||(P(r),s=!0)},o(a){L(r),s=!1},d(a){a&&S(t),r&&r.d(),i[7](null),i[8](null)}}}function ov(i,t,e){let n,{playing:o}=t,{shadow:s=!1}=t,{style:r=null}=t,{width:a="100%"}=t,l,c;function u(h){Ve[h?"unshift":"push"](()=>{c=h,e(4,c)})}function d(h){Ve[h?"unshift":"push"](()=>{l=h,e(3,l)})}return i.$$set=h=>{"playing"in h&&e(0,o=h.playing),"shadow"in h&&e(1,s=h.shadow),"style"in h&&e(2,r=h.style),"width"in h&&e(6,a=h.width)},i.$$.update=()=>{i.$$.dirty&64&&e(5,n=typeof a=="number"?tt(a):a)},[o,s,r,l,c,n,a,u,d]}class Ql extends oe{constructor(t){super(),ie(this,t,ov,iv,ne,{playing:0,shadow:1,style:2,width:6},nv)}}function sv(i){le(i,"svelte-1s6gk4a",".audio-tag.svelte-1s6gk4a{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.audio-icon__wrapper.svelte-1s6gk4a{position:relative;vertical-align:top;width:100%;height:100%}.content.svelte-1s6gk4a{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-1s6gk4a{position:relative;width:100%;height:100%}.audio-icon.svelte-1s6gk4a{pointer-events:none;vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.audio.svelte-1s6gk4a{position:relative;width:100%;height:100%}")}function $r(i){var p,g;let t,e,n,o,s,r,a,l,c,u,d,h,m,A;e=new nt({props:{visible:i[6],left:i[3]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}});let v=i[6]&&ea(i);return c=new Tl({props:{visible:i[6],textUnfolded:i[1],content:i[5]}}),d=new Po({props:{unfolded:i[6],length:i[3],outDelay:i[4]+20*Math.min((g=(p=i[5])==null?void 0:p.length)!=null?g:10,15),useLinearColor:!0}}),{c(){t=z("div"),K(e.$$.fragment),n=ee(),o=z("div"),s=z("div"),r=z("div"),v&&v.c(),a=ee(),l=z("div"),K(c.$$.fragment),u=ee(),K(d.$$.fragment),y(r,"class","audio-icon svelte-1s6gk4a"),T(l,"display","inline-block"),y(s,"class","wrapper svelte-1s6gk4a"),y(o,"class","content svelte-1s6gk4a"),y(t,"class","audio-tag svelte-1s6gk4a"),q(t,"unfolded",i[6])},m(b,w){M(b,t,w),J(e,t,null),j(t,n),j(t,o),j(o,s),j(s,r),v&&v.m(r,null),j(s,a),j(s,l),J(c,l,null),j(t,u),J(d,t,null),h=!0,m||(A=[ge(l,"click",i[7]),at(an.call(null,l)),ge(l,"clientWidth",i[15])],m=!0)},p(b,w){var D,E;const x={};w&64&&(x.visible=b[6]),w&8&&(x.left=b[3]/2+"px"),e.$set(x),b[6]?v?(v.p(b,w),w&64&&P(v,1)):(v=ea(b),v.c(),P(v,1),v.m(r,null)):v&&(se(),L(v,1,1,()=>{v=null}),re());const k={};w&64&&(k.visible=b[6]),w&2&&(k.textUnfolded=b[1]),w&32&&(k.content=b[5]),c.$set(k);const C={};w&64&&(C.unfolded=b[6]),w&8&&(C.length=b[3]),w&48&&(C.outDelay=b[4]+20*Math.min((E=(D=b[5])==null?void 0:D.length)!=null?E:10,15)),d.$set(C),(!h||w&64)&&q(t,"unfolded",b[6])},i(b){h||(P(e.$$.fragment,b),P(v),P(c.$$.fragment,b),P(d.$$.fragment,b),h=!0)},o(b){L(e.$$.fragment,b),L(v),L(c.$$.fragment,b),L(d.$$.fragment,b),h=!1},d(b){b&&S(t),Z(e),v&&v.d(),Z(c),Z(d),m=!1,He(A)}}}function ea(i){let t,e,n,o,s,r,a;return e=new nt({props:{center:!0,blurRadius:15,spreadRadius:6}}),o=new Rl({props:{enable:i[6],url:i[0].data.audioUrl,hooksInfo:{tag:i[0]},$$slots:{default:[rv]},$$scope:{ctx:i}}}),o.$on("play",i[11]),o.$on("pause",i[12]),o.$on("error",i[13]),o.$on("audioRef",i[14]),{c(){t=z("div"),K(e.$$.fragment),n=ee(),K(o.$$.fragment),y(t,"class","audio svelte-1s6gk4a")},m(l,c){M(l,t,c),J(e,t,null),j(t,n),J(o,t,null),a=!0},p(l,c){i=l;const u={};c&64&&(u.enable=i[6]),c&1&&(u.url=i[0].data.audioUrl),c&1&&(u.hooksInfo={tag:i[0]}),c&65540&&(u.$$scope={dirty:c,ctx:i}),o.$set(u)},i(l){a||(P(e.$$.fragment,l),P(o.$$.fragment,l),l&&Oe(()=>{r&&r.end(1),s=Tt(t,Mt,{duration:1e3,delay:0,easing:Yt}),s.start()}),a=!0)},o(l){var c,u;L(e.$$.fragment,l),L(o.$$.fragment,l),s&&s.invalidate(),l&&(r=rn(t,Mt,{duration:1e3,delay:20*Math.min((u=(c=i[5])==null?void 0:c.length)!=null?u:10,15),easing:Yt})),a=!1},d(l){l&&S(t),Z(e),Z(o),l&&r&&r.end()}}}function rv(i){let t,e,n;return e=new Ql({props:{playing:i[2]}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","audio-icon__wrapper svelte-1s6gk4a")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s&4&&(r.playing=o[2]),e.$set(r)},i(o){n||(P(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function av(i){let t,e,n=i[0].state&&$r(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&P(n,1)):(n=$r(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function lv(i,t,e){let n,o,s;var r,a,l;let{tag:c}=t,u=!1,d=!1,h;function m(){e(1,u=!u)}const A=()=>{e(2,d=!0)},v=()=>{e(2,d=!1)},p=()=>{e(2,d=!1)};function g(w){sn.call(this,i,w)}const b=w=>{e(3,h=w.detail)};return i.$$set=w=>{"tag"in w&&e(0,c=w.tag)},i.$$.update=()=>{i.$$.dirty&257&&e(6,n=!!(!(e(8,r=c.state)===null||r===void 0)&&r.unfolded)),i.$$.dirty&1537&&e(5,o=e(10,l=e(9,a=c.data.title)!==null&&a!==void 0?a:c.data.text)!==null&&l!==void 0?l:""),i.$$.dirty&2&&e(4,s=u?450:0)},[c,u,d,h,s,o,n,m,r,a,l,A,v,p,g,b]}class cv extends oe{constructor(t){super(),ie(this,t,lv,av,ne,{tag:0},sv)}}function uv(i){le(i,"svelte-58hfjf",".audio-tag__wrapper.svelte-58hfjf{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.audio-tag.svelte-58hfjf{position:relative;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;padding:0.1875rem;padding-right:0.625rem;border-radius:624999.9375rem;border:0.03125rem solid rgba(255, 255, 255, 0.2)}.audio__inner.svelte-58hfjf{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.text.svelte-58hfjf{font-weight:bold;font-size:0.75rem;margin-left:0.25rem}.audio-icon__wrapper.svelte-58hfjf{position:relative;vertical-align:top;pointer-events:none;width:1.375rem;height:1.375rem}")}function ta(i){let t,e,n,o;return n=new Rl({props:{style:"width: max-content; height: max-content;",enable:i[0].state.visible,url:i[0].data.audioUrl,hooksInfo:{tag:i[0]},$$slots:{default:[hv]},$$scope:{ctx:i}}}),n.$on("play",i[11]),n.$on("pause",i[12]),n.$on("error",i[13]),n.$on("timeupdate",i[14]),n.$on("duration",i[15]),n.$on("audioRef",i[16]),{c(){t=z("div"),e=z("div"),K(n.$$.fragment),y(e,"class","audio-tag svelte-58hfjf"),T(e,"background-color",i[5]),T(e,"color",i[4]),y(t,"class","audio-tag__wrapper svelte-58hfjf")},m(s,r){M(s,t,r),j(t,e),J(n,e,null),o=!0},p(s,r){const a={};r&1&&(a.enable=s[0].state.visible),r&1&&(a.url=s[0].data.audioUrl),r&1&&(a.hooksInfo={tag:s[0]}),r&131144&&(a.$$scope={dirty:r,ctx:s}),n.$set(a),r&32&&T(e,"background-color",s[5]),r&16&&T(e,"color",s[4])},i(s){o||(P(n.$$.fragment,s),o=!0)},o(s){L(n.$$.fragment,s),o=!1},d(s){s&&S(t),Z(n)}}}function dv(i){let t;return{c(){t=ke(i[6])},m(e,n){M(e,t,n)},p(e,n){n&64&&Se(t,e[6])},d(e){e&&S(t)}}}function hv(i){let t,e,n,o,s,r,a;return n=new Ql({props:{playing:i[3]}}),r=new Io({props:{maxWidth:72,$$slots:{default:[dv]},$$scope:{ctx:i}}}),{c(){t=z("div"),e=z("div"),K(n.$$.fragment),o=ee(),s=z("div"),K(r.$$.fragment),y(e,"class","audio-icon__wrapper svelte-58hfjf"),y(s,"class","text svelte-58hfjf"),y(t,"class","audio__inner svelte-58hfjf")},m(l,c){M(l,t,c),j(t,e),J(n,e,null),j(t,o),j(t,s),J(r,s,null),a=!0},p(l,c){const u={};c&8&&(u.playing=l[3]),n.$set(u);const d={};c&131136&&(d.$$scope={dirty:c,ctx:l}),r.$set(d)},i(l){a||(P(n.$$.fragment,l),P(r.$$.fragment,l),a=!0)},o(l){L(n.$$.fragment,l),L(r.$$.fragment,l),a=!1},d(l){l&&S(t),Z(n),Z(r)}}}function fv(i){let t,e,n=i[0].state&&ta(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&P(n,1)):(n=ta(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function mv(i,t,e){let n,o,s,r;var a,l,c;let{tag:u}=t,d=0,h=0,m=!1;const A=()=>{e(3,m=!0)},v=()=>{e(3,m=!1)},p=()=>{e(3,m=!1)},g=x=>{e(1,d=x.detail)},b=x=>{e(2,h=x.detail)};function w(x){sn.call(this,i,x)}return i.$$set=x=>{"tag"in x&&e(0,u=x.tag)},i.$$.update=()=>{i.$$.dirty&385&&e(6,n=e(8,l=e(7,a=u.data.title)!==null&&a!==void 0?a:u.data.text)!==null&&l!==void 0?l:""),i.$$.dirty&513&&e(10,o=e(9,c=u.data.theme)!==null&&c!==void 0?c:"light"),i.$$.dirty&1024&&e(5,s=(()=>{if(o==="dark")return"rgba(0, 0, 0, 0.3)";if(o==="light")return"rgba(255, 255, 255, 0.3)"})()),i.$$.dirty&1024&&e(4,r=(()=>{if(o==="dark")return"white";if(o==="light")return"rgba(0, 0, 0, 0.6)"})())},[u,d,h,m,r,s,n,a,l,c,o,A,v,p,g,b,w]}class pv extends oe{constructor(t){super(),ie(this,t,mv,fv,ne,{tag:0},uv)}}function gv(i){let t,e;return t=new pv({props:{tag:i[0]}}),t.$on("audioRef",i[2]),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Av(i){let t,e;return t=new cv({props:{tag:i[0]}}),t.$on("audioRef",i[2]),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function vv(i){let t,e,n,o;const s=[Av,gv],r=[];function a(l,c){return l[1]==="line"?0:l[1]==="plane"?1:-1}return~(t=a(i))&&(e=r[t]=s[t](i)),{c(){e&&e.c(),n=me()},m(l,c){~t&&r[t].m(l,c),M(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?~t&&r[t].p(l,c):(e&&(se(),L(r[u],1,1,()=>{r[u]=null}),re()),~t?(e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),P(e,1),e.m(n.parentNode,n)):e=null)},i(l){o||(P(e),o=!0)},o(l){L(e),o=!1},d(l){~t&&r[t].d(l),l&&S(n)}}}function bv(i,t,e){let n;var o;let{tag:s}=t,r;function a(l){r=l.detail}return s.play=()=>r.play(),s.pause=()=>r.pause(),i.$$set=l=>{"tag"in l&&e(0,s=l.tag)},i.$$.update=()=>{i.$$.dirty&9&&e(1,n=e(3,o=s.data.appearance)!==null&&o!==void 0?o:"line")},[s,n,a,o]}class yv extends oe{constructor(t){super(),ie(this,t,bv,vv,ne,{tag:0})}}function wv(i){le(i,"svelte-10cw0el",".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}")}function na(i){var o;let t,e,n;return e=new Ol({props:{mediaItemConfig:{canPlay:!0,playButtonSizeIfNeed:"large",playButtonIfNeed:(o=i[4])!=null?o:"withText",disableVideoIfHavePoster:!1,objectFit:i[2]},unfolded:i[6],mediaData:i[5],enableCarousel:i[1],autoplayConfig:i[3],tag:i[0],inDelay:500,duration:500}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","media-wrapper svelte-10cw0el")},m(s,r){M(s,t,r),J(e,t,null),n=!0},p(s,r){var l;const a={};r&20&&(a.mediaItemConfig={canPlay:!0,playButtonSizeIfNeed:"large",playButtonIfNeed:(l=s[4])!=null?l:"withText",disableVideoIfHavePoster:!1,objectFit:s[2]}),r&64&&(a.unfolded=s[6]),r&32&&(a.mediaData=s[5]),r&2&&(a.enableCarousel=s[1]),r&8&&(a.autoplayConfig=s[3]),r&1&&(a.tag=s[0]),e.$set(a)},i(s){n||(P(e.$$.fragment,s),n=!0)},o(s){L(e.$$.fragment,s),n=!1},d(s){s&&S(t),Z(e)}}}function Cv(i){let t,e,n=i[0].state&&i[5]&&na(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state&&o[5]?n?(n.p(o,s),s&33&&P(n,1)):(n=na(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function Ev(i,t,e){let n,o,s,r,a,l;var c,u;let{tag:d}=t;return i.$$set=h=>{"tag"in h&&e(0,d=h.tag)},i.$$.update=()=>{i.$$.dirty&1&&e(6,n=d.state?d.state.unfolded:!1),i.$$.dirty&1&&e(5,o=d.data.mediaData),i.$$.dirty&1&&e(1,s=d.data.enableCarousel),i.$$.dirty&1&&e(4,r=d.data.playIcon),i.$$.dirty&131&&e(3,a=e(7,c=d.data.autoplayConfig)!==null&&c!==void 0?c:{autoplay:s!=null?s:!0,autoplayVideo:!0}),i.$$.dirty&257&&e(2,l=e(8,u=d.data.objectFit)!==null&&u!==void 0?u:(()=>d.data.adaptationMode==="stretch"?"fill":d.data.adaptationMode==="proportional"?"contain":void 0)())},[d,s,l,a,r,o,n,c,u]}class Pv extends oe{constructor(t){super(),ie(this,t,Ev,Cv,ne,{tag:0},wv)}}function Fl(i){return W(this,null,function*(){return new Promise((t,e)=>{if(!i){e(Error("url is empty"));return}const n=new Image;n.src=i,n.onload=()=>t({width:n.width,height:n.height}),n.onerror=e})})}function Iv(i){return W(this,null,function*(){const{url:t,ratio:e=3}=i;i.ratio||console.warn("Tag icon ratio is not set, default is 3");const{width:n,height:o}=yield Fl(t);return fe(Q({},i),{width:n/e,height:o/e})})}function kv(i){return W(this,null,function*(){const{steps:t,url:e,ratio:n=3,fps:o=24}=i;if(!t)throw new Error("KeyframeIcon requires steps");const{width:s,height:r}=yield Fl(e),a=s/n,l=r/n,c=a/t,u=l,d=1/o*t+"s";return fe(Q({},i),{width:c,height:u,duration:d})})}function xv(i){le(i,"svelte-316sq3","@keyframes svelte-316sq3-sprites-animation{0%{background-position:0 0}100%{background-position:100% 0}}.icon-image.svelte-316sq3{display:block;width:auto}.icon-keyframe.svelte-316sq3{background-repeat:no-repeat;background-size:auto 100%;animation-direction:normal;animation-iteration-count:infinite;animation-name:svelte-316sq3-sprites-animation;animation-delay:0}")}function ia(i){i[1]=i[22].width}function oa(i){i[1]=i[22].width,i[19]=i[22].height,i[20]=i[22].steps,i[21]=i[22].duration}function sa(i){let t,e,n,o=i[0]&&ra();function s(l,c){return l[8]?Lv:Dv}let r=s(i),a=r(i);return{c(){t=z("div"),o&&o.c(),e=ee(),a.c(),y(t,"class","icon"),T(t,"width",i[1])},m(l,c){M(l,t,c),o&&o.m(t,null),j(t,e),a.m(t,null),n=!0},p(l,c){l[0]?o?c&1&&P(o,1):(o=ra(),o.c(),P(o,1),o.m(t,e)):o&&(se(),L(o,1,1,()=>{o=null}),re()),r===(r=s(l))&&a?a.p(l,c):(a.d(1),a=r(l),a&&(a.c(),a.m(t,null))),c&2&&T(t,"width",l[1])},i(l){n||(P(o),n=!0)},o(l){L(o),n=!1},d(l){l&&S(t),o&&o.d(),a.d()}}}function ra(i){let t,e;return t=new nt({props:{center:!0,blurRadius:24,spreadRadius:16}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Dv(i){let t,e,n={ctx:i,current:null,token:null,hasCatch:!1,pending:Tv,then:Mv,catch:Sv,value:22};return oi(e=i[11](De({url:i[7],ratio:i[5]})),n),{c(){t=me(),n.block.c()},m(o,s){M(o,t,s),n.block.m(o,n.anchor=s),n.mount=()=>t.parentNode,n.anchor=t},p(o,s){i=o,n.ctx=i,s&160&&e!==(e=i[11](De({url:i[7],ratio:i[5]})))&&oi(e,n)||Qa(n,i,s)},d(o){o&&S(t),n.block.d(o),n.token=null,n=null}}}function Lv(i){let t,e,n={ctx:i,current:null,token:null,hasCatch:!1,pending:jv,then:Bv,catch:zv,value:22};return oi(e=i[10](De({url:i[7],steps:i[2],fps:i[6],ratio:i[5]})),n),{c(){t=me(),n.block.c()},m(o,s){M(o,t,s),n.block.m(o,n.anchor=s),n.mount=()=>t.parentNode,n.anchor=t},p(o,s){i=o,n.ctx=i,s&228&&e!==(e=i[10](De({url:i[7],steps:i[2],fps:i[6],ratio:i[5]})))&&oi(e,n)||Qa(n,i,s)},d(o){o&&S(t),n.block.d(o),n.token=null,n=null}}}function Sv(i){return{c:U,m:U,p:U,d:U}}function Mv(i){ia(i);let t,e;return{c(){t=z("img"),y(t,"alt","tag-icon"),y(t,"class","icon-image svelte-316sq3"),Ne(t.src,e=i[7])||y(t,"src",e),T(t,"width",tt(Ht({originWidth:i[1],scale:i[4],wantedWidth:i[3]}).width))},m(n,o){M(n,t,o)},p(n,o){ia(n),o&128&&!Ne(t.src,e=n[7])&&y(t,"src",e),o&184&&T(t,"width",tt(Ht({originWidth:n[1],scale:n[4],wantedWidth:n[3]}).width))},d(n){n&&S(t)}}}function Tv(i){return{c:U,m:U,p:U,d:U}}function zv(i){return{c:U,m:U,p:U,d:U}}function Bv(i){oa(i);let t,e=`url(${i[7]})`,n=`steps(${i[20]}, jump-none)`;return{c(){t=z("div"),y(t,"class","icon-keyframe svelte-316sq3"),T(t,"width",tt(Ht({originWidth:i[1],originHeight:i[19],scale:i[4],wantedWidth:i[3]}).width)),T(t,"height",tt(Ht({originWidth:i[1],originHeight:i[19],scale:i[4],wantedWidth:i[3]}).height)),T(t,"background-image",e),T(t,"animation-duration",i[21]),T(t,"animation-timing-function",n)},m(o,s){M(o,t,s)},p(o,s){oa(o),s&252&&T(t,"width",tt(Ht({originWidth:o[1],originHeight:o[19],scale:o[4],wantedWidth:o[3]}).width)),s&252&&T(t,"height",tt(Ht({originWidth:o[1],originHeight:o[19],scale:o[4],wantedWidth:o[3]}).height)),s&128&&e!==(e=`url(${o[7]})`)&&T(t,"background-image",e),s&228&&T(t,"animation-duration",o[21]),s&228&&n!==(n=`steps(${o[20]}, jump-none)`)&&T(t,"animation-timing-function",n)},d(o){o&&S(t)}}}function jv(i){return{c:U,m:U,p:U,d:U}}function Vv(i){let t,e,n=i[9]&&sa(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[9]?n?(n.p(o,s),s&512&&P(n,1)):(n=sa(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function Ht(i){const{originWidth:t,originHeight:e,scale:n=1,wantedWidth:o}=i,s=(o!=null?o:t)*n,r=typeof e=="number"?s*(e/t):void 0;return Object.assign(Object.assign({},i),{width:s,height:r})}function Ov(i,t,e){let n,o,s,r,a,l,c,u,d;var h=this&&this.__awaiter||function(C,D,E,O){function G(X){return X instanceof E?X:new E(function(H){H(X)})}return new(E||(E=Promise))(function(X,H){function B(N){try{R(O.next(N))}catch(_){H(_)}}function F(N){try{R(O.throw(N))}catch(_){H(_)}}function R(N){N.done?X(N.value):G(N.value).then(B,F)}R((O=O.apply(C,D||[])).next())})},m,A;let{width:v=null}=t,{icon:p=null}=t,{shadow:g=!1}=t;const b=mi();function w(C){return h(this,void 0,void 0,function*(){const D=yield kv(C);return b("iconLoaded",D),D})}function x(C){return h(this,void 0,void 0,function*(){if(typeof d=="number")return Object.assign(Object.assign({},C),{width:d});const D=yield Iv(C);return b("iconLoaded",D),D})}function k(){u||b("iconLoaded")}return Ue(()=>{k()}),i.$$set=C=>{"width"in C&&e(1,v=C.width),"icon"in C&&e(12,p=C.icon),"shadow"in C&&e(0,g=C.shadow)},i.$$.update=()=>{i.$$.dirty&4096&&e(7,n=p==null?void 0:p.url),i.$$.dirty&12288&&e(2,o=e(13,m=p==null?void 0:p.steps)!==null&&m!==void 0?m:1),i.$$.dirty&4096&&e(6,s=p==null?void 0:p.fps),i.$$.dirty&4096&&e(5,r=p==null?void 0:p.ratio),i.$$.dirty&20480&&e(4,a=e(14,A=p==null?void 0:p.scale)!==null&&A!==void 0?A:1),i.$$.dirty&4096&&e(3,l=p==null?void 0:p.width),i.$$.dirty&252&&e(9,c=De({url:n,steps:o,fps:s,ratio:r,scale:a,width:l})),i.$$.dirty&4&&e(8,u=o>1),i.$$.dirty&2&&(d=v)},k(),[g,v,o,l,a,r,s,n,u,c,w,x,p,m,A]}class Hl extends oe{constructor(t){super(),ie(this,t,Ov,Vv,ne,{width:1,icon:12,shadow:0},xv)}}function Rv(i){le(i,"svelte-e58ijk",".wrapper.svelte-e58ijk{font-weight:600;cursor:pointer;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.text-wrapper.svelte-e58ijk{position:relative;display:flex;align-items:center;justify-content:center}.text.svelte-e58ijk{position:absolute;top:0;font-size:0.875rem;color:#ffffff;letter-spacing:0;text-align:center;max-width:8.75rem;width:-moz-max-content;width:max-content;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function aa(i){let t,e,n,o,s,r;return e=new nt({props:{outDelay:0,inDelay:0,center:!0,width:"80%",blurRadius:40,spreadRadius:16,opacity:.08}}),{c(){t=z("div"),K(e.$$.fragment),n=ee(),o=z("div"),s=ke(i[1]),y(o,"class","text svelte-e58ijk"),y(t,"class","text-wrapper svelte-e58ijk")},m(a,l){M(a,t,l),J(e,t,null),j(t,n),j(t,o),j(o,s),r=!0},p(a,l){(!r||l&2)&&Se(s,a[1])},i(a){r||(P(e.$$.fragment,a),r=!0)},o(a){L(e.$$.fragment,a),r=!1},d(a){a&&S(t),Z(e)}}}function Qv(i){let t,e,n,o;e=new Hl({props:{icon:i[0],shadow:!0}}),e.$on("iconLoaded",i[7]);let s=i[1]&&i[2]&&aa(i);return{c(){t=z("div"),K(e.$$.fragment),n=ee(),s&&s.c(),y(t,"class","wrapper svelte-e58ijk")},m(r,a){M(r,t,a),J(e,t,null),j(t,n),s&&s.m(t,null),o=!0},p(r,[a]){const l={};a&1&&(l.icon=r[0]),e.$set(l),r[1]&&r[2]?s?(s.p(r,a),a&6&&P(s,1)):(s=aa(r),s.c(),P(s,1),s.m(t,null)):s&&(se(),L(s,1,1,()=>{s=null}),re())},i(r){o||(P(e.$$.fragment,r),P(s),o=!0)},o(r){L(e.$$.fragment,r),L(s),o=!1},d(r){r&&S(t),Z(e),s&&s.d()}}}function Fv(i,t,e){let n,o,s;var r,a,l;let{tag:c}=t;const u=()=>{e(2,n=!0)};return i.$$set=d=>{"tag"in d&&e(3,c=d.tag)},i.$$.update=()=>{i.$$.dirty&24&&e(1,o=e(4,r=c.data.title)!==null&&r!==void 0?r:c.data.text),i.$$.dirty&104&&e(0,s=e(5,a=c.data.icon)!==null&&a!==void 0?a:e(6,l=c.style)===null||l===void 0?void 0:l.point)},e(2,n=!1),[s,o,n,c,r,a,l,u]}class Hv extends oe{constructor(t){super(),ie(this,t,Fv,Qv,ne,{tag:3},Rv)}}function _v(i){le(i,"svelte-kzl2aj",".customElement__container.svelte-kzl2aj{position:relative}")}function la(i){let t,e=i[0].element+"",n;return{c(){t=new ei(!1),n=me(),t.a=n},m(o,s){t.m(e,o,s),M(o,n,s)},p(o,s){s&1&&e!==(e=o[0].element+"")&&t.p(e)},d(o){o&&S(n),o&&t.d()}}}function Gv(i){let t,e=typeof i[0].element=="string"&&la(i);return{c(){t=z("div"),e&&e.c(),y(t,"class","customElement__container svelte-kzl2aj")},m(n,o){M(n,t,o),e&&e.m(t,null),i[2](t)},p(n,[o]){typeof n[0].element=="string"?e?e.p(n,o):(e=la(n),e.c(),e.m(t,null)):e&&(e.d(1),e=null)},i:U,o:U,d(n){n&&S(t),e&&e.d(),i[2](null)}}}function Wv(i,t,e){let{tag:n}=t,o,s;Ue(()=>{if(o){if(n.element instanceof Element){const a=n.element;o.appendChild(a),s=()=>a.remove()}else if(typeof n.element=="function"){const a=n.element;s=a(o)}}}),Et(()=>{s==null||s()});function r(a){Ve[a?"unshift":"push"](()=>{o=a,e(1,o)})}return i.$$set=a=>{"tag"in a&&e(0,n=a.tag)},[n,o,r]}class Nv extends oe{constructor(t){super(),ie(this,t,Wv,Gv,ne,{tag:0},_v)}}function Xv(i){le(i,"svelte-1r4fqvg",'@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/OAHgAyAAAQADAAIAAAAAAAAB9ABdAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWA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fsHBvtK/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-1r4fqvg{position:relative;left:50%;top:50%;transform:translate(-50%, -50%);font-family:PingFangSC, Segoe UI, Rototo, sans-serif}.content__container.withAnimation.svelte-1r4fqvg{transition:opacity 0.3s linear}.content__container.unClickable.svelte-1r4fqvg{pointer-events:none !important}.content__container.unClickable.svelte-1r4fqvg *{pointer-events:none !important}.content__wrapper.svelte-1r4fqvg{pointer-events:none;width:100%;height:100%}.content__container.hide.svelte-1r4fqvg{opacity:0;pointer-events:none}.content__container.hide.svelte-1r4fqvg *{pointer-events:none !important}.content__container.disable.svelte-1r4fqvg{display:none}.content.svelte-1r4fqvg{position:relative;width:100%;height:100%;font-size:0.75rem;color:#fff}.content.svelte-1r4fqvg:not(.unfolded){pointer-events:none}.content.svelte-1r4fqvg:not(.unfolded) *{pointer-events:none !important}.content.unfolded.svelte-1r4fqvg{pointer-events:auto}')}function Yv(i){let t,e;return{c(){t=z("div"),y(t,"data-info","tag content is keep folded"),y(t,"data-id",e=i[1].id)},m(n,o){M(n,t,o)},p(n,o){o&2&&e!==(e=n[1].id)&&y(t,"data-id",e)},i:U,o:U,d(n){n&&S(t)}}}function Uv(i){let t,e,n,o,s,r,a,l,c;const u=[tb,eb,$v,Kv,Zv,Jv,qv],d=[];function h(m,A){return m[1].element?0:m[1].contentType==="Text"?1:m[1].contentType==="ImageText"||m[1].contentType==="Image"||m[1].contentType==="Video"?2:m[1].contentType==="Audio"?3:m[1].contentType==="Marketing"?4:m[1].contentType==="Link"||m[1].contentType==="VRLink"||m[1].contentType==="PanoLink"||m[1].contentType==="Sticker"?5:m[1].contentType==="MediaPlane"||m[1].contentType==="MediaModel"?6:-1}return~(o=h(i))&&(s=d[o]=u[o](i)),{c(){var m;t=z("div"),e=z("div"),n=z("div"),s&&s.c(),y(n,"class","content svelte-1r4fqvg"),q(n,"unfolded",(m=i[1].state)==null?void 0:m.unfolded),y(e,"class","content__wrapper svelte-1r4fqvg"),y(t,"class","content__container svelte-1r4fqvg"),y(t,"data-id",r=i[1].id),q(t,"disable",i[1].enabled===!1),q(t,"hide",i[4]),q(t,"withAnimation",i[0]),q(t,"unClickable",i[1].mergedConfig.clickable===!1),T(t,"width",i[1].stickType==="Plane"||i[1].contentType==="MediaModel"?"100%":0),T(t,"height",i[1].stickType==="Plane"||i[1].contentType==="MediaModel"?"100%":0)},m(m,A){M(m,t,A),j(t,e),j(e,n),~o&&d[o].m(n,null),a=!0,l||(c=ge(t,"click",Sa(i[24])),l=!0)},p(m,A){var p;let v=o;o=h(m),o===v?~o&&d[o].p(m,A):(s&&(se(),L(d[v],1,1,()=>{d[v]=null}),re()),~o?(s=d[o],s?s.p(m,A):(s=d[o]=u[o](m),s.c()),P(s,1),s.m(n,null)):s=null),(!a||A&2)&&q(n,"unfolded",(p=m[1].state)==null?void 0:p.unfolded),(!a||A&2&&r!==(r=m[1].id))&&y(t,"data-id",r),(!a||A&2)&&q(t,"disable",m[1].enabled===!1),(!a||A&16)&&q(t,"hide",m[4]),(!a||A&1)&&q(t,"withAnimation",m[0]),(!a||A&2)&&q(t,"unClickable",m[1].mergedConfig.clickable===!1),A&2&&T(t,"width",m[1].stickType==="Plane"||m[1].contentType==="MediaModel"?"100%":0),A&2&&T(t,"height",m[1].stickType==="Plane"||m[1].contentType==="MediaModel"?"100%":0)},i(m){a||(P(s),a=!0)},o(m){L(s),a=!1},d(m){m&&S(t),~o&&d[o].d(),l=!1,c()}}}function qv(i){let t,e;return t=new Pv({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Jv(i){let t,e;return t=new Hv({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Zv(i){let t,e;return t=new ZA({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Kv(i){let t,e;return t=new yv({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function $v(i){let t,e;return t=new YA({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function eb(i){let t,e;return t=new h0({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function tb(i){let t,e;return t=new Nv({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function nb(i){let t,e,n,o;const s=[Uv,Yv],r=[];function a(l,c){return l[3]?0:1}return t=a(i),e=r[t]=s[t](i),{c(){e.c(),n=me()},m(l,c){r[t].m(l,c),M(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?r[t].p(l,c):(se(),L(r[u],1,1,()=>{r[u]=null}),re(),e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),P(e,1),e.m(n.parentNode,n))},i(l){o||(P(e),o=!0)},o(l){L(e),o=!1},d(l){r[t].d(l),l&&S(n)}}}function ib(i,t,e){let n,o,s,r,a,l;var c,u,d,h,m,A,v,p,g,b,w;let{withAnimation:x=!1}=t,{tag:k}=t,{hooks:C}=t,{state:D}=t,{mediaStore:E}=t,{temporaryState:O}=t;Ui("hooks",C),Ui("mediaStore",E);let G,X;function H(R){R?C.emit("exposure",{id:r,type:"start"}):C.emit("exposure",{id:r,type:"end"})}function B(R,N,_){var $,Y;return!(!N.visible||!N.enabled||!_.visible||!(!(($=R.state)===null||$===void 0)&&$.visible)||((Y=R.temporaryState)===null||Y===void 0?void 0:Y.visible)===!1||Fe(R)&&!R.mediaVisible)}const F=R=>C.emit("click",{event:R,target:"TagContent",tag:k});return i.$$set=R=>{"withAnimation"in R&&e(0,x=R.withAnimation),"tag"in R&&e(1,k=R.tag),"hooks"in R&&e(2,C=R.hooks),"state"in R&&e(5,D=R.state),"mediaStore"in R&&e(6,E=R.mediaStore),"temporaryState"in R&&e(7,O=R.temporaryState)},i.$$.update=()=>{i.$$.dirty&258&&e(22,n=e(8,c=k.state)===null||c===void 0?void 0:c.unfolded),i.$$.dirty&514&&e(21,o=e(9,u=k.state)===null||u===void 0?void 0:u.visible),i.$$.dirty&1186&&e(23,s=D.visible&&O.visible&&(e(10,d=k.state)===null||d===void 0?void 0:d.visible)),i.$$.dirty&2&&(r=k.id),i.$$.dirty&162&&e(4,a=!B(k,D,O)),i.$$.dirty&8388608&&H(s),i.$$.dirty&8386562&&k.hooks&&(n!==void 0&&n!==X&&(e(20,X=n),n?e(12,m=e(11,h=k.hooks).emit)===null||m===void 0||m.call(h,"unfolded"):e(14,v=k==null?void 0:e(13,A=k.hooks).emit)===null||v===void 0||v.call(A,"folded")),o!==void 0&&o!==G&&(e(19,G=o),o?e(16,g=e(15,p=k.hooks).emit)===null||g===void 0||g.call(p,"show"):e(18,w=e(17,b=k.hooks).emit)===null||w===void 0||w.call(b,"hide"))),i.$$.dirty&2&&e(3,l=(()=>!(typeof k.mergedConfig.unfoldedConfig=="object"&&k.mergedConfig.unfoldedConfig.keep==="folded"))())},[x,k,C,l,a,D,E,O,c,u,d,h,m,A,v,p,g,b,w,G,X,o,n,s,F]}class _l extends oe{constructor(t){super(),ie(this,t,ib,nb,ne,{withAnimation:0,tag:1,hooks:2,state:5,mediaStore:6,temporaryState:7},Xv)}}function ob(i){le(i,"svelte-1jkrwn7",'@charset "UTF-8";.tag-point-click-helper.svelte-1jkrwn7.svelte-1jkrwn7{position:absolute;pointer-events:auto;cursor:pointer;width:calc(100% + 0.75rem);height:calc(100% + 0.75rem);left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-1jkrwn7.svelte-1jkrwn7{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:-1}.tag-folded-point.svelte-1jkrwn7.svelte-1jkrwn7,.tag-unfolded-point.svelte-1jkrwn7.svelte-1jkrwn7{transition:all 0.5s}.tag-point-wrapper.svelte-1jkrwn7 .tag-unfolded-point.svelte-1jkrwn7{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-1jkrwn7 .tag-unfolded-point.svelte-1jkrwn7:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-1jkrwn7 .tag-unfolded-point.svelte-1jkrwn7:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-1jkrwn7 .tag-folded-point.svelte-1jkrwn7{opacity:1;scale:1}.tag-point-wrapper.folded.svelte-1jkrwn7 .tag-unfolded-point.svelte-1jkrwn7{opacity:0;scale:1}.tag-point-wrapper.unfolded.svelte-1jkrwn7 .tag-folded-point.svelte-1jkrwn7{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-1jkrwn7 .tag-unfolded-point.svelte-1jkrwn7{opacity:1;scale:1}')}function sb(i){let t,e,n,o,s,r,a,l,c,u,d,h;return o=new nt({props:{center:!0,blurRadius:15,spreadRadius:5,opacity:.3}}),c=new Hl({props:{icon:i[2],width:i[1]}}),c.$on("iconLoaded",i[11]),{c(){t=z("div"),e=z("div"),n=ee(),K(o.$$.fragment),s=ee(),r=z("div"),a=ee(),l=z("div"),K(c.$$.fragment),y(e,"class","tag-point-click-helper svelte-1jkrwn7"),y(r,"class","tag-unfolded-point svelte-1jkrwn7"),T(r,"transition-delay",(i[3]?i[5]:0)+"ms"),y(l,"class","tag-folded-point svelte-1jkrwn7"),T(l,"transition-delay",(i[3]?i[5]:0)+"ms"),y(t,"class","tag-point-wrapper svelte-1jkrwn7"),q(t,"unfolded",i[0]),q(t,"folded",i[3])},m(m,A){M(m,t,A),j(t,e),j(t,n),J(o,t,null),j(t,s),j(t,r),j(t,a),j(t,l),J(c,l,null),u=!0,d||(h=ge(e,"click",i[4]),d=!0)},p(m,[A]){A&8&&T(r,"transition-delay",(m[3]?m[5]:0)+"ms");const v={};A&4&&(v.icon=m[2]),A&2&&(v.width=m[1]),c.$set(v),A&8&&T(l,"transition-delay",(m[3]?m[5]:0)+"ms"),(!u||A&1)&&q(t,"unfolded",m[0]),(!u||A&8)&&q(t,"folded",m[3])},i(m){u||(P(o.$$.fragment,m),P(c.$$.fragment,m),u=!0)},o(m){L(o.$$.fragment,m),L(c.$$.fragment,m),u=!1},d(m){m&&S(t),Z(o),Z(c),d=!1,h()}}}function rb(i,t,e){let n,o,s,r;var a,l,c,u;const d=St("hooks");let{tag:h}=t,m,A=!1;const v=()=>{m!==void 0&&clearTimeout(m),A=!0,m=setTimeout(()=>{A=!1},800)},p=w=>{A||d.emit("click",{event:w,target:"TagPoint",tag:h})},g=(()=>h.contentType==="Text"&&h.data.appearance==="plane"?500:800)();function b(w){sn.call(this,i,w)}return i.$$set=w=>{"tag"in w&&e(6,h=w.tag)},i.$$.update=()=>{i.$$.dirty&192&&e(0,n=e(7,a=h.state)===null||a===void 0?void 0:a.unfolded),i.$$.dirty&1&&e(3,o=!n),i.$$.dirty&1856&&e(2,s=!(e(9,c=e(8,l=h.style)===null||l===void 0?void 0:l.point)===null||c===void 0)&&c.url?e(10,u=h.style)===null||u===void 0?void 0:u.point:{url:Qg}),i.$$.dirty&64&&e(1,r=(()=>{var w,x,k,C;const D=(x=(w=h.style)===null||w===void 0?void 0:w.point)===null||x===void 0?void 0:x.width;if(typeof D=="number")return D;const E=(C=(k=h.style)===null||k===void 0?void 0:k.point)===null||C===void 0?void 0:C.size;if(typeof E=="number")return E;if(E==="S")return 18;if(E==="M")return 20;if(E==="L")return 24;if(E==="XL")return 28})())},v(),[n,r,s,o,p,g,h,a,l,c,u,b]}class ab extends oe{constructor(t){super(),ie(this,t,rb,sb,ne,{tag:6},ob)}}function lb(i){le(i,"svelte-pzwdws",".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}")}function cb(i){let t;return{c(){t=z("div"),y(t,"data-info","tag content is disable")},m(e,n){M(e,t,n)},p:U,i:U,o:U,d(e){e&&S(t)}}}function ub(i){let t,e;return t=new _l({props:{mediaStore:i[2],withAnimation:i[0],tag:De(i[1]),hooks:i[14],state:i[3],temporaryState:i[4]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&4&&(s.mediaStore=n[2]),o&1&&(s.withAnimation=n[0]),o&2&&(s.tag=De(n[1])),o&8&&(s.state=n[3]),o&16&&(s.temporaryState=n[4]),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function db(i){let t;return{c(){t=z("div"),y(t,"data-info","tag point is disable")},m(e,n){M(e,t,n)},p:U,i:U,o:U,d(e){e&&S(t)}}}function hb(i){let t,e;return t=new ab({props:{tag:i[1]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=n[1]),t.$set(s)},i(n){e||(P(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function fb(i){let t,e,n,o,s,r,a,l,c;const u=[ub,cb],d=[];function h(p,g){return p[12]?0:1}n=h(i),o=d[n]=u[n](i);const m=[hb,db],A=[];function v(p,g){return p[13]?0:1}return r=v(i),a=A[r]=m[r](i),{c(){t=z("div"),e=z("div"),o.c(),s=ee(),a.c(),y(e,"class","wrapper svelte-pzwdws"),y(e,"data-tag-unfolded",i[8]),y(e,"data-tag-id",i[11]),y(e,"data-content-type",l=i[1].contentType),T(e,"left",i[7]),T(e,"top",i[6]),T(e,"z-index",i[5]),y(t,"class","tag svelte-pzwdws"),y(t,"data-tag-id",i[11]),q(t,"unClickable",i[1].mergedConfig.clickable===!1),q(t,"disable",i[10]),q(t,"hide",i[9]),q(t,"withAnimation",i[0])},m(p,g){M(p,t,g),j(t,e),d[n].m(e,null),j(e,s),A[r].m(e,null),c=!0},p(p,[g]){let b=n;n=h(p),n===b?d[n].p(p,g):(se(),L(d[b],1,1,()=>{d[b]=null}),re(),o=d[n],o?o.p(p,g):(o=d[n]=u[n](p),o.c()),P(o,1),o.m(e,s));let w=r;r=v(p),r===w?A[r].p(p,g):(se(),L(A[w],1,1,()=>{A[w]=null}),re(),a=A[r],a?a.p(p,g):(a=A[r]=m[r](p),a.c()),P(a,1),a.m(e,null)),(!c||g&256)&&y(e,"data-tag-unfolded",p[8]),(!c||g&2048)&&y(e,"data-tag-id",p[11]),(!c||g&2&&l!==(l=p[1].contentType))&&y(e,"data-content-type",l),g&128&&T(e,"left",p[7]),g&64&&T(e,"top",p[6]),g&32&&T(e,"z-index",p[5]),(!c||g&2048)&&y(t,"data-tag-id",p[11]),(!c||g&2)&&q(t,"unClickable",p[1].mergedConfig.clickable===!1),(!c||g&1024)&&q(t,"disable",p[10]),(!c||g&512)&&q(t,"hide",p[9]),(!c||g&1)&&q(t,"withAnimation",p[0])},i(p){c||(P(o),P(a),c=!0)},o(p){L(o),L(a),c=!1},d(p){p&&S(t),d[n].d(),A[r].d()}}}function mb(i,t,e){let n,o,s,r,a,l,c,u,d;var h,m,A,v,p,g,b,w;let{withAnimation:x=!1}=t,{tag:k}=t,{mediaStore:C}=t,{state:D}=t,{temporaryState:E}=t;const O=St("hooks");return i.$$set=G=>{"withAnimation"in G&&e(0,x=G.withAnimation),"tag"in G&&e(1,k=G.tag),"mediaStore"in G&&e(2,C=G.mediaStore),"state"in G&&e(3,D=G.state),"temporaryState"in G&&e(4,E=G.temporaryState)},i.$$.update=()=>{i.$$.dirty&2&&e(13,n=(()=>!(k.contentType==="Sticker"||k.contentType==="Link"||k.contentType==="VRLink"||k.contentType==="PanoLink"||k.contentType==="Audio"&&k.data.appearance==="plane"))()),i.$$.dirty&2&&e(12,o=(()=>k.stickType==="2DPoint")()),i.$$.dirty&2&&e(11,s=k.id),i.$$.dirty&98306&&e(10,r=!(!(e(15,h=k.pointTagStyle)===null||h===void 0)&&h.leftPercent)||!(!(e(16,m=k.pointTagStyle)===null||m===void 0)&&m.topPercent)||k.enabled===!1||!k.state),i.$$.dirty&393218&&e(9,a=!(!(e(17,A=k.state)===null||A===void 0)&&A.visible)||(e(18,v=k.temporaryState)===null||v===void 0?void 0:v.visible)===!1),i.$$.dirty&524290&&e(8,l=e(19,p=k.state)===null||p===void 0?void 0:p.unfolded),i.$$.dirty&1048578&&e(7,c=(e(20,g=k.pointTagStyle)===null||g===void 0?void 0:g.leftPercent)+"%"),i.$$.dirty&2097154&&e(6,u=(e(21,b=k.pointTagStyle)===null||b===void 0?void 0:b.topPercent)+"%"),i.$$.dirty&4194306&&e(5,d=!(e(22,w=k.state)===null||w===void 0)&&w.unfolded?1:0)},[x,k,C,D,E,d,u,c,l,a,r,s,o,n,O,h,m,A,v,p,g,b,w]}class pb extends oe{constructor(t){super(),ie(this,t,mb,fb,ne,{withAnimation:0,tag:1,mediaStore:2,state:3,temporaryState:4},lb)}}function gb(i){le(i,"svelte-uq11d5",".tag--container.svelte-uq11d5{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:translate3d(0, 0, 0)}.withAnimation.svelte-uq11d5{transition:opacity 0.3s linear}.tag--container.hide.svelte-uq11d5{opacity:0;pointer-events:none}.tag--container.hide.svelte-uq11d5 *{pointer-events:none !important}")}function ca(i,t,e){const n=i.slice();return n[6]=t[e],n}function ua(i){let t,e=[],n=new Map,o,s=i[1];const r=a=>a[6].id;for(let a=0;a<s.length;a+=1){let l=ca(i,s,a),c=r(l);n.set(c,e[a]=da(c,l))}return{c(){t=z("div");for(let a=0;a<e.length;a+=1)e[a].c();y(t,"class","tag--container svelte-uq11d5"),q(t,"hide",!i[3].visible||!i[4].visible),q(t,"withAnimation",i[0])},m(a,l){M(a,t,l);for(let c=0;c<e.length;c+=1)e[c].m(t,null);o=!0},p(a,l){l&31&&(s=a[1],se(),e=qe(e,l,r,1,a,s,n,t,Pt,da,null,ca),re()),(!o||l&24)&&q(t,"hide",!a[3].visible||!a[4].visible),(!o||l&1)&&q(t,"withAnimation",a[0])},i(a){if(!o){for(let l=0;l<s.length;l+=1)P(e[l]);o=!0}},o(a){for(let l=0;l<e.length;l+=1)L(e[l]);o=!1},d(a){a&&S(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}function da(i,t){let e,n,o;return n=new pb({props:{state:t[3],temporaryState:t[4],withAnimation:t[0],tag:t[6],mediaStore:t[2]}}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(s,r){M(s,e,r),J(n,s,r),o=!0},p(s,r){t=s;const a={};r&8&&(a.state=t[3]),r&16&&(a.temporaryState=t[4]),r&1&&(a.withAnimation=t[0]),r&2&&(a.tag=t[6]),r&4&&(a.mediaStore=t[2]),n.$set(a)},i(s){o||(P(n.$$.fragment,s),o=!0)},o(s){L(n.$$.fragment,s),o=!1},d(s){s&&S(e),Z(n,s)}}}function Ab(i){let t,e,n=i[3].enabled&&ua(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[3].enabled?n?(n.p(o,s),s&8&&P(n,1)):(n=ua(o),n.c(),P(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(P(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function vb(i,t,e){let{withAnimation:n=!1}=t,{tags:o=[]}=t,{hooks:s}=t,{mediaStore:r}=t,{state:a}=t,{temporaryState:l}=t;return Ui("hooks",s),i.$$set=c=>{"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)},[n,o,r,a,l,s]}class bb extends oe{constructor(t){super(),ie(this,t,vb,Ab,ne,{withAnimation:0,tags:1,hooks:5,mediaStore:2,state:3,temporaryState:4},gb)}}const yb=new Ac.GLTFLoader;function wb(i){return new Promise((t,e)=>{function n(s){t(s)}function o(s){e(s)}yb.load(i,n,void 0,o)})}class Cb extends I.Mesh{constructor(e,n){super();f(this,"name","ImageModel");f(this,"imageSrc");this.imageSrc=e,eo(e).then(o=>{const s=o.image.width,r=o.image.height,a=new I.MeshBasicMaterial({map:o,transparent:!0}),l=new I.PlaneGeometry(s,r);this.geometry=l,this.material=a;const c=new V.Vector3().subVectors(n[1],n[0]),u=new V.Vector3().subVectors(n[3],n[0]),d=hi(...n),h=new V.Vector3().crossVectors(c,u).normalize();this.lookAt(h);const m=this.up.clone().applyQuaternion(this.quaternion),A=u.clone(),v=new V.Vector3().crossVectors(m,A).normalize();this.rotateOnWorldAxis(v,m.angleTo(A)),this.position.copy(d);const p=n[0].distanceTo(n[1]),g=n[1].distanceTo(n[2]);this.scale.set(p/s,g/r,1);const b=s/r,w=p/g;b>w?this.scale.set(p/s,p/s,1):b<w?this.scale.set(g/r,g/r,1):this.scale.set(p/s,g/r,1)}).catch(o=>{console.log({e:o})})}}class Eb extends Eg{constructor(e){super(e);f(this,"group",new V.Group);f(this,"imagePlaneGroup",new V.Group);f(this,"gltfObjectGroup",new V.Group);f(this,"enabledModelTagSet",new Set);f(this,"temporaryState",{visible:!0});f(this,"TagContainerSvelte");f(this,"loadModel",e=>W(this,null,function*(){var l;const n=e.data.modelUrl;if(!n)return;const o=wb(n).then(c=>Object.assign(c.scene,{customID:e.id,isTagModel:!0}));e.model={promise:o};const s=yield o;if(((l=e.model)==null?void 0:l.promise)!==o||(e.model.object=s,!this.tags.includes(e)))return;s.visible=e.state.visible,new V.Matrix4().fromArray(e.matrix).decompose(s.position,s.quaternion,s.scale),s.updateWorldMatrix(!0,!0),this.getVisibleByFloorIndex(e)||(s.visible=!1);const a=this.gltfObjectGroup.children.find(c=>c.customID===e.id);return a&&this.gltfObjectGroup.remove(a),this.gltfObjectGroup.add(s),this.updateTagCss3DObjectMatrix(e,s),s}));this.group.name="PanoTagPluginModelGroup",this.gltfObjectGroup.name="PanoTagPluginGLTFObjectGroup",this.imagePlaneGroup.name="ImagePlaneGroup",this.group.add(this.gltfObjectGroup),this.group.add(this.imagePlaneGroup)}clearTags(){this.tags.forEach(e=>{var n,o;(o=(n=e.imageModel)==null?void 0:n.parent)==null||o.remove(e.imageModel)}),this.tags=[],this.enabledModelTagSet.clear(),this.clearCache(),this.disposeAllCSS3DContainer(),this.updateRenderAllTags()}updateRenderAllTags(){this.enabledModelTagSet.clear(),this.tags.forEach(e=>e.stickType==="Model"&&this.enabledModelTagSet.add(e.id)),this.updateRenderPointTag(),this.updateRenderPlaneTag(),this.updateRenderModelTag(),this.updateRenderImageModel()}updateRenderImageModel(){this.sort([...this.filterImageModel]).forEach(n=>{var s,r,a,l;const o=(s=n.data.mediaData[0])==null?void 0:s.url;!o||(n.imageModel&&(n.imageModel.visible=(a=(r=n.state)==null?void 0:r.visible)!=null?a:!0),((l=n.imageModel)==null?void 0:l.imageSrc)!==o&&(n.imageModel=new Cb(o,n.position.map(st)),n.imageModel.name="PanoTagPluginImageModel",this.imagePlaneGroup.add(n.imageModel)))})}updateRenderPlaneTag(){this.sort([...this.filter3DTag]).forEach(n=>{var l,c,u;if(Fe(n)&&((l=n.model)==null?void 0:l.object)&&this.updateTagCss3DObjectMatrix(n,(c=n.model)==null?void 0:c.object),n.tag3DContentSvelte){const{svelteApp:d,domContainer:h,initialNormal:m,currentNormal:A}=n.tag3DContentSvelte;if(this.updateTagCss3DObjectVisible(n),d.$set({tag:n,hooks:this.hooks,state:this.state,temporaryState:this.temporaryState}),!m.equals(A)){const v=new V.Quaternion().setFromUnitVectors(m,A);h.css3DObject.setRotationFromQuaternion(v)}return}if(((u=n.state)==null?void 0:u.visible)===!1)return;if(this.css3DRenderPlugin||(this.css3DRenderPlugin=Kt(this.five)),n.stickType==="3DPoint"&&!n.normal)return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");const o=(()=>{if(n.stickType==="Plane")return n.position;if(Fe(n))return n.data.mediaPosition;const d=n;return $p(this.five.camera.position,st(d.position),st(d.normal))})();if(!o)return;const s=function(){if(n.normal)return st(n.normal);if(n.stickType==="Plane")return oo(n.position);if(n.contentType==="MediaModel")return oo(o)}();if(!s)return;const r=this.getTagConfig(n).tag3DConfig,a=this.css3DRenderPlugin.create3DDomContainer(o,r);!a||(this.updateTagCss3DObjectVisible(n),this.store.css3DRenderDisposer.set(n.id,a.dispose),n.tag3DContentSvelte={svelteApp:new _l({target:a.container,props:{tag:n,hooks:this.hooks,state:this.state,mediaStore:this.mediaStore,temporaryState:this.temporaryState}}),domContainer:a,initialNormal:s,currentNormal:s})}),this.clearUnusedPanelTag()}updateRenderModelTag(){const e=o=>!this.enabledModelTagSet.has(o.customID);this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)),this.tags.filter(Fe).forEach(o=>{var s;(s=o.model)==null||s.promise.then(r=>{r.visible=o.state.visible})})}updateTagModelVisible(){this.tags.forEach(e=>{var n,o,s;e.imageModel&&(e.imageModel.visible=(s=((n=e.state)==null?void 0:n.visible)&&((o=this.state)==null?void 0:o.visible))!=null?s:!0)})}updateTagCss3DObjectMatrix(e,n){var v,p,g,b;const o=(g=(p=(v=e.mergedConfig)==null?void 0:v.tag3DConfig)==null?void 0:p.ratio)!=null?g:.00216,s=(b=e.tag3DContentSvelte)==null?void 0:b.domContainer.css3DObject;if(!s)return;const r=Fe(e)?e.data.mediaPosition:e.position;n.updateWorldMatrix(!1,!1);const a=n.matrixWorld,l=new V.Vector3().fromArray(r[0]),c=new V.Vector3().fromArray(r[2]),u=new V.Vector3().lerpVectors(l,c,.5).add(new V.Vector3(0,0,5e-4)),d=new V.Matrix4().setPosition(u),h=new V.Matrix4().makeScale(o,o,o),m=new V.Matrix4().multiply(a).multiply(d).multiply(h);m.decompose(s.position,s.quaternion,s.scale);const A=s.opacityMesh;!A||m.decompose(A.position,A.quaternion,A.scale)}addMediaModelTag(e){return W(this,null,function*(){const n=e.filter(Fe).map(this.loadModel);yield Promise.all(n),this.setModelMedialVisible(),this.updateRenderAllTags()})}updateRenderPointTag(){var n;const e=this.sort(this.filterPointTag);if(this.setPointTagPosition(),this.TagContainerSvelte)this.TagContainerSvelte.$set({tags:e,state:this.state,temporaryState:this.temporaryState});else{const o=(n=this.five.getElement())==null?void 0:n.parentElement;if(!o)return console.error("updateRenderPlaneTag: tag2DContainer not found");this.TagContainerSvelte=new bb({target:o,props:{hooks:this.hooks,tags:e,state:this.state,temporaryState:this.temporaryState,mediaStore:this.mediaStore}})}}updateTagContainerVisible(){var e;(e=this.TagContainerSvelte)==null||e.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation}),this.filter3DTag.forEach(n=>{var o,s,r,a;(r=(s=(o=n.tag3DContentSvelte)==null?void 0:o.domContainer)==null?void 0:s.css3DObject)==null||r.setVisible(this.state.visible),(a=n.tag3DContentSvelte)==null||a.svelteApp.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation})})}disposeAllCSS3DContainer(){for(const[e,n]of this.store.css3DRenderDisposer)n==null||n();this.store.css3DRenderDisposer=new Map}clearUnusedPanelTag(){this.filter2DPointTag.forEach(e=>{var n;(n=e.tag3DContentSvelte)==null||n.domContainer.dispose(),e.tag3DContentSvelte=void 0});for(const[e,n]of this.store.css3DRenderDisposer){const o=this.getTagById(e);(!o||o.stickType==="2DPoint")&&(n==null||n(),this.store.css3DRenderDisposer.delete(e))}}updateTagCss3DObjectVisible(e){var n,o,s,r,a;(a=(o=(n=e.tag3DContentSvelte)==null?void 0:n.domContainer)==null?void 0:o.css3DObject)==null||a.setVisible((r=this.state.visible&&((s=e.state)==null?void 0:s.visible))!=null?r:!0),this.five.needsRender=!0}}const Gl="Dnalogel-PanoTagPlugin",Pb=i=>`${Gl}--${i}`;class Wl extends Eb{constructor(e,n){super(e);f(this,"state",{enabled:!0,visible:!0});f(this,"params");f(this,"debug");f(this,"changeTagModel",(e,n)=>W(this,null,function*(){e.data=ft.default({},e.data,n),yield this.loadModel(e),this.updateRenderAllTags()}));f(this,"handleFiveInitAnimationEnded",()=>{const e=this.five.getCurrentState().mode;this.tags.forEach(n=>{Fe(n)&&e==="Panorama"&&this.changeTagMode(n,"front"),n.state.visible=this.getVisible(n)}),this.updateRenderAllTags(),this.updateRenderAllTags()});f(this,"handleFiveModelShownFloorChange",()=>{this.tags.forEach(e=>{!Fe(e)||(e.state.visible=this.getVisible(e))}),this.updateRenderAllTags()});this.params=Q({debug:!1,config:this.config},n),this.debug=this.params.debug,this.config=this.params.config,og(1,{namespace:Eo.PlayAudio});try{Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__)||(window.__PANOTAGPLUGIN_DEBUG_LIST__=[]),window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this),window.__PANOTAGPLUGIN_DEBUG__=this}catch(o){}}load(e,n){return W(this,null,function*(){var s,r;this.clearTags(),console.info(Gl," load:",{data:JSON.parse(JSON.stringify(e))}),this.config=ft.default({},this.config,{globalConfig:(s=e.globalConfig)!=null?s:{},contentTypeConfig:(r=e.contentTypeConfig)!=null?r:{}});const o=yield this.addTag(e.tagList,n);if(this.debug)try{Jp(this.five,this.tags)}catch(a){console.error(a)}return o})}addTag(e,n){return W(this,null,function*(){const s=(Array.isArray(e)?e:[e]).map(r=>{const a=this.getTagConfig(r);return fe(Q({},r),{state:Q({visible:void 0,unfolded:this.can("fold",r)?!1:void 0},a.initialState),hooks:new Ce.Subscribe,mergedConfig:a,unfold:()=>this.changeUnfoldedById(r.id,!0),fold:()=>this.changeUnfoldedById(r.id,!1),enable:()=>this.changeEnabledById(r.id,!0),disable:()=>this.changeEnabledById(r.id,!1),destroy:()=>this.destroyTagById(r.id)})}).filter(r=>r.position);return s.forEach(ng),this.tags.push(...s),Kp(this.five).then(()=>W(this,null,function*(){var r,a,l;this.store.eventListenerDisposer&&((a=(r=this.store).eventListenerDisposer)==null||a.call(r)),this.state.enabled&&this.handleEnable(),this.addResizeListener(),this.clearUnusedPanelTag(),this.setVisibleAndUnfolded({withAnimation:(l=n==null?void 0:n.withAnimation)!=null?l:!0}).then(()=>this.updateRenderAllTags()),this.updateRenderAllTags(),yield this.addMediaModelTag(s)}))})}changeConfig(e,n=!0){n?this.config=ft.default({},this.config,e):this.config=e,this.updateTagConfig({force:!0}),this.updateRenderAllTags()}changeGlobalConfig(e,n=!0){n?this.config.globalConfig=ft.default({},this.config.globalConfig,e):this.config.globalConfig=e,this.updateTagConfig({force:!0}),this.updateRenderAllTags()}changeContentTypeConfig(e,n,o=!0){this.config.contentTypeConfig||(this.config.contentTypeConfig={}),o?this.config.contentTypeConfig[e]=ft.default({},this.config.contentTypeConfig[e],n):this.config.contentTypeConfig[e]=n,this.clearCache(),this.updateRenderAllTags()}show(e){return W(this,null,function*(){if(this.checkDisposed())return;const{userAction:n=!0,withAnimation:o=!1}=e!=null?e:{};this.setState({visible:!0},{userAction:n,visibleWithAnimation:o}),this.hooks.emit("show",{userAction:n,withAnimation:o})})}hide(e){return W(this,null,function*(){if(this.checkDisposed())return;const{userAction:n=!0,withAnimation:o=!1}=e!=null?e:{};this.setState({visible:!1},{userAction:n,visibleWithAnimation:o}),this.hooks.emit("hide",{userAction:n,withAnimation:o})})}enable(e){if(this.checkDisposed())return;const{userAction:n=!0}=e!=null?e:{};this.setState({enabled:!0},{userAction:n}),this.hooks.emit("enable",{userAction:n})}disable(e){if(this.checkDisposed())return;const{userAction:n=!0}=e!=null?e:{};this.setState({enabled:!1},{userAction:n}),this.hooks.emit("disable",{userAction:n})}setState(e,n){if(this.checkDisposed())return;const{userAction:o=!0,visibleWithAnimation:s=!1}=n,r=Q({},this.state);this.state=Object.assign(this.state,e),this.store.visibleWithAnimation=s,r.visible!==this.state.visible&&(e.visible?this.handleShow():this.handleHide()),r.enabled!==this.state.enabled&&(e.enabled?this.handleEnable():this.handleDisable()),this.hooks.emit("stateChange",{state:this.state,prevState:r,userAction:o})}dispose(){var e,n,o,s,r,a;this.pauseCurrentMedia(),this.disposeAllCSS3DContainer(),(e=this.TagContainerSvelte)==null||e.$destroy(),this.filter3DTag.forEach(l=>{var c;return(c=l.tag3DContentSvelte)==null?void 0:c.svelteApp.$destroy()}),this.tags=[],(n=this.store.disposers)==null||n.forEach(l=>l==null?void 0:l()),this.store.disposers=[],(s=(o=this.store).eventListenerDisposer)==null||s.call(o),this.store.eventListenerDisposer=void 0,(a=(r=this.store).resizeObserverDisposer)==null||a.call(r),this.store.resizeObserverDisposer=void 0,this.store.resizeObserverDisposerAdding=!1,this.five.scene.remove(this.group),this.group.remove(...this.group.children),this.gltfObjectGroup.remove(...this.gltfObjectGroup.children),this.clearCache(),this.five.needsRender=!0,this.store.disposed=!0,this.hooks.emit("dispose")}changeUnfoldedById(e,n){var a;const o=this.getTagById(e);if(!o)return;const s=this.can("fold",o),r=this.can("unfold",o);if(s&&r){o.state.unfolded=n;const l=this.filterPointTag;(a=this.TagContainerSvelte)==null||a.$set({tags:l})}else console.warn(`tag ${e} cannot be ${n?"unfolded":"folded"}}`)}changeEnabledById(e,n){const o=this.getTagById(e);!o||(o.enabled=n,this.updateRenderAllTags())}changeTagNormalById(e,n){const o=this.getTagById(e);!o||!o.tag3DContentSvelte||(o.tag3DContentSvelte.currentNormal=st(n),this.updateRenderPlaneTag())}changeDataById(e,n,o=!0){const s=this.getTagById(e);!s||(o?s.data=ft.default({},s.data,n):s.data=Q(Q({},s.data),n),this.clearUnusedPanelTag(),this.updateRenderAllTags())}changeStickTypeById(e,n,o=!0){this.changeTagById(e,n,o)}changeTagById(e,n,o=!0){const s=this.getTagById(e);!n||(o?ft.default(s,n):Object.assign(s,n),(s==null?void 0:s.tag3DContentSvelte)&&(n==null?void 0:n.normal)&&(s.tag3DContentSvelte.currentNormal=st(n.normal)),this.updateRenderAllTags(),this.clearUnusedPanelTag())}destroyTagById(e){(Array.isArray(e)?e:[e]).forEach(o=>{const s=this.tags.findIndex(r=>r.id===o);s!==-1&&this.tags.splice(s,1)}),this.updateRenderAllTags()}setVisibleAndUnfolded(){return W(this,arguments,function*({withAnimation:e}={withAnimation:!1}){if(!!this.isPanorama)return this.setVisibleByPanoIndex(),e?new Promise(n=>{setTimeout(()=>{this.setUnfoldedByPanoIndex(),n()},10)}):(this.setUnfoldedByPanoIndex(),Promise.resolve())})}handleShow(){this.state.visible=!0,this.group.visible=!0,this.updateTagContainerVisible(),this.updateTagModelVisible(),this.five.needsRender=!0}handleHide(){this.pauseCurrentMedia(),this.state.visible=!1,this.group.visible=!1,this.updateTagContainerVisible(),this.updateTagModelVisible(),this.five.needsRender=!0}handleEnable(){this.state.enabled=!0,this.store.eventListenerDisposer=this.addEventListener(),this.five.scene.children.includes(this.group)||this.five.scene.add(this.group),this.updateRenderAllTags(),this.five.needsRender=!0}handleDisable(){var e,n,o;this.pauseCurrentMedia(),this.state.enabled=!1,(n=(e=this.store).eventListenerDisposer)==null||n.call(e),this.five.scene.remove(this.group),(o=this.TagContainerSvelte)==null||o.$set({tags:[]}),this.filter3DTag.forEach(s=>{var r;(r=s.tag3DContentSvelte)==null||r.svelteApp.$destroy(),s.tag3DContentSvelte=void 0}),this.five.needsRender=!0}addEventListener(){const{five:e,hooks:n}=this,o=this.handleFiveWantsMoveToPano.bind(this),s=this.handleFiveModeChange.bind(this),r=this.handleFiveCameraUpdate.bind(this),a=this.handleFiveCameraUpdateDebounce(),l=this.handleFivePanoArrived.bind(this),c=this.loadVideoFirstFrame.bind(this),u=this.clickhandler.bind(this),d=this.five.currentMode;return d&&this.handleFiveModeChange(d),this.handleFivePanoArrived(),e.on("wantsMoveToPano",o),e.on("modeChange",s),e.on("initAnimationEnded",this.handleFiveInitAnimationEnded),e.on("modelShownFloorChange",this.handleFiveModelShownFloorChange),e.on("cameraUpdate",r),e.on("cameraUpdate",a),e.on("panoArrived",l),e.on("panoArrived",c),n.on("click",u),()=>{e.off("wantsMoveToPano",o),e.off("modeChange",s),e.off("initAnimationEnded",this.handleFiveInitAnimationEnded),e.off("modelShownFloorChange",this.handleFiveModelShownFloorChange),e.off("cameraUpdate",r),e.off("cameraUpdate",a),e.off("panoArrived",l),e.off("panoArrived",c),n.off("click",u),this.store.eventListenerDisposer=void 0}}addResizeListener(){if(!this.store.resizeObserverDisposer&&!this.store.resizeObserverDisposerAdding){const e=this.addResizeObserver();this.store.resizeObserverDisposerAdding=!0,setTimeout(()=>{this.store.resizeObserverDisposer=e,this.store.resizeObserverDisposerAdding=!1},200)}}addResizeObserver(){if(!this.store.disposed)return;const e=this.five.getElement(),n=()=>{!this.state.enabled||(this.show(),this.updateRenderAllTags())},o=()=>{!this.state.enabled||this.hide()},{observe:s,unobserve:r}=nr(eg(()=>{!this.store.resizeObserverDisposer||o()},500),e),{observe:a,unobserve:l}=nr(tr(()=>n(),400),e);return s(),a(),()=>{r(),l()}}handleFiveModeChange(e){this.setModelMedialVisible(),this.tags.forEach(n=>{Fe(n)&&e!=="Panorama"&&this.changeTagMode(n,"behind"),n.state.visible=this.getVisible(n)}),this.updateRenderAllTags(),this.updateRenderAllTags()}handleFiveWantsMoveToPano(){this.tags.forEach(e=>{const n=this.getTagConfig(e);typeof n.visibleConfig=="object"&&(n.visibleConfig.keep?e.temporaryState=fe(Q({},e.temporaryState),{visible:n.visibleConfig.keep==="visible"}):e.temporaryState=fe(Q({},e.temporaryState),{visible:Boolean(n.visibleConfig.alwaysShowWhenMovePano)}))}),this.updateTagContainerVisible()}clickhandler(e){if(e.target!=="TagPoint")return;if(!e.tag.state)return console.warn("Clickhandler: params.tag.state is undefined");const n=this.can("fold",e.tag),o=this.can("unfold",e.tag);n&&o&&(e.tag.state.unfolded=!e.tag.state.unfolded,e.tag.state.unfolded&&this.tags.forEach(s=>{s.id!==e.tag.id&&s.state&&this.can("fold",s)&&(s.state.unfolded=!1)}),this.updateRenderAllTags())}handleFiveCameraUpdateDebounce(){return tr(()=>{this.setUnfoldedByCamera(),this.updateRenderAllTags()},100)}handleFiveCameraUpdate(){this.updateRenderPointTag()}handleFivePanoArrived(){return W(this,null,function*(){this.setModelMedialVisible(),yield this.setVisibleAndUnfolded(),this.tags.forEach(e=>{e.temporaryState=fe(Q({},e.temporaryState),{visible:!0})}),this.store.visibleWithAnimation=!0,this.updateTagContainerVisible(),this.updateRenderAllTags()})}setUnfoldedByCamera(){let e=!1;this.tags.forEach(n=>{const o=this.getUnfoldedByCamera(n);!n.state||o!==void 0&&(o===!0&&(e=!0),n.state.unfolded=o)}),e&&this.tags.forEach(n=>{const o=this.getTagConfig(n).unfoldedConfig;typeof o=="object"&&(o.autoUnfold||o.keep)||n.state&&(n.state.unfolded=!1)})}changeTagMode(e,n){var o,s,r,a,l;((r=(s=(o=e.tag3DContentSvelte)==null?void 0:o.domContainer)==null?void 0:s.css3DObject)==null?void 0:r.mode)!==n&&((a=e.config)!=null&&a.tag3DConfig?e.config.tag3DConfig.mode=n:e.config?e.config.tag3DConfig={mode:n}:e.config={tag3DConfig:{mode:n}},(l=this.store.css3DRenderDisposer.get(e.id))==null||l(),e.tag3DContentSvelte=void 0)}}var Nl=(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))(Nl||{}),Xl=(i=>(i.Two="2D",i.Three="3D",i))(Xl||{}),Yl=(i=>(i.PointTag="PointTag",i.PlaneTag="PlaneTag",i))(Yl||{});const Ib=(i,t)=>new Wl(i,t);function ye(i,t){this._camera=i||null,this._domElement=t||document,this._raycaster=new I.Raycaster,this._selected=null,this._boundObjs={};var e=this;this._$onClick=function(){e._onClick.apply(e,arguments)},this._$onDblClick=function(){e._onDblClick.apply(e,arguments)},this._$onMouseMove=function(){e._onMouseMove.apply(e,arguments)},this._$onMouseDown=function(){e._onMouseDown.apply(e,arguments)},this._$onMouseUp=function(){e._onMouseUp.apply(e,arguments)},this._$onTouchMove=function(){e._onTouchMove.apply(e,arguments)},this._$onTouchStart=function(){e._onTouchStart.apply(e,arguments)},this._$onTouchEnd=function(){e._onTouchEnd.apply(e,arguments)},this._$onContextmenu=function(){e._onContextmenu.apply(e,arguments)},this._domElement.addEventListener("click",this._$onClick,!1),this._domElement.addEventListener("dblclick",this._$onDblClick,!1),this._domElement.addEventListener("mousemove",this._$onMouseMove,!1),this._domElement.addEventListener("mousedown",this._$onMouseDown,!1),this._domElement.addEventListener("mouseup",this._$onMouseUp,!1),this._domElement.addEventListener("touchmove",this._$onTouchMove,!1),this._domElement.addEventListener("touchstart",this._$onTouchStart,!1),this._domElement.addEventListener("touchend",this._$onTouchEnd,!1),this._domElement.addEventListener("contextmenu",this._$onContextmenu,!1)}ye.prototype.destroy=function(){this._domElement.removeEventListener("click",this._$onClick,!1),this._domElement.removeEventListener("dblclick",this._$onDblClick,!1),this._domElement.removeEventListener("mousemove",this._$onMouseMove,!1),this._domElement.removeEventListener("mousedown",this._$onMouseDown,!1),this._domElement.removeEventListener("mouseup",this._$onMouseUp,!1),this._domElement.removeEventListener("touchmove",this._$onTouchMove,!1),this._domElement.removeEventListener("touchstart",this._$onTouchStart,!1),this._domElement.removeEventListener("touchend",this._$onTouchEnd,!1),this._domElement.removeEventListener("contextmenu",this._$onContextmenu,!1)};ye.eventNames=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu","touchstart","touchend"];ye.prototype._getRelativeMouseXY=function(i){var t=i.target||i.srcElement;t.nodeType===3&&(t=t.parentNode);var e={x:0,y:0},n=t,o=getComputedStyle(n,null);e.y+=parseInt(o.getPropertyValue("padding-top"),10),e.x+=parseInt(o.getPropertyValue("padding-left"),10);do e.x+=n.offsetLeft,e.y+=n.offsetTop,o=getComputedStyle(n,null),e.x+=parseInt(o.getPropertyValue("border-left-width"),10),e.y+=parseInt(o.getPropertyValue("border-top-width"),10);while(n=n.offsetParent);var s={width:t===window?window.innerWidth:t.offsetWidth,height:t===window?window.innerHeight:t.offsetHeight};return{x:Number((i.pageX-e.x)/s.width)*2-1,y:-((i.pageY-e.y)/s.height)*2+1}};ye.prototype._objectCtxInit=function(i){i._3xDomEvent={}};ye.prototype._objectCtxDeinit=function(i){delete i._3xDomEvent};ye.prototype._objectCtxIsInit=function(i){return!!i._3xDomEvent};ye.prototype._objectCtxGet=function(i){return i._3xDomEvent};ye.prototype.camera=function(i){return i&&(this._camera=i),this._camera};ye.prototype.bind=function(i,t,e,n){console.assert(ye.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var o=this._objectCtxGet(i);o[t+"Handlers"]||(o[t+"Handlers"]=[]),o[t+"Handlers"].push({callback:e,useCapture:n}),this._boundObjs[t]===void 0&&(this._boundObjs[t]=[]),this._boundObjs[t].push(i)};ye.prototype.addEventListener=ye.prototype.bind;ye.prototype.unbind=function(i,t,e,n){console.assert(ye.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var o=this._objectCtxGet(i);o[t+"Handlers"]||(o[t+"Handlers"]=[]);for(var s=o[t+"Handlers"],r=0;r<s.length;r++){var a=s[r];if(e==a.callback&&n==a.useCapture){s.splice(r,1);break}}var l=this._boundObjs[t].indexOf(i);this._boundObjs[t].splice(l,1)};ye.prototype.removeEventListener=ye.prototype.unbind;ye.prototype._bound=function(i,t){var e=this._objectCtxGet(t);return e?!!e[i+"Handlers"]:!1};ye.prototype._onMove=function(i,t,e,n){var o=this._boundObjs[i];if(!(o===void 0||o.length===0)){var s=new I.Vector2;s.set(t,e),this._raycaster.setFromCamera(s,this._camera);var r=this._raycaster.intersectObjects(o),a=this._selected;if(r.length>0){var l,c,u,d=r[0],h=d.object;this._selected=h,u=this._bound("mousemove",h),a!=h&&(l=this._bound("mouseover",h),c=a&&this._bound("mouseout",a))}else c=a&&this._bound("mouseout",a),this._selected=null;u&&this._notify("mousemove",h,n,d),l&&this._notify("mouseover",h,n,d),c&&this._notify("mouseout",a,n,d)}};ye.prototype._onEvent=function(i,t,e,n){var o=this._boundObjs[i];if(!(o===void 0||o.length===0)){var s=new I.Vector2;s.set(t,e),this._raycaster.setFromCamera(s,this._camera);var r=this._raycaster.intersectObjects(o,!0);if(r.length!==0){for(var a=r[0],l=a.object,c=this._objectCtxGet(l),u=l.parent;typeof c=="undefined"&&u;)c=this._objectCtxGet(u),u=u.parent;!c||this._notify(i,l,n,a)}}};ye.prototype._notify=function(i,t,e,n){var o=this._objectCtxGet(t),s=o?o[i+"Handlers"]:null;if(!o||!s||s.length===0){t.parent&&this._notify(i,t.parent,e,n);return}for(var s=o[i+"Handlers"],r=0;r<s.length;r++){var a=s[r],l=!0;a.callback({type:i,target:t,origDomEvent:e,intersect:n,stopPropagation:function(){l=!1}}),!!l&&a.useCapture===!1&&t.parent&&this._notify(i,t.parent,e,n)}};ye.prototype._onMouseDown=function(i){return this._onMouseEvent("mousedown",i)};ye.prototype._onMouseUp=function(i){return this._onMouseEvent("mouseup",i)};ye.prototype._onMouseEvent=function(i,t){var e=this._getRelativeMouseXY(t);this._onEvent(i,e.x,e.y,t)};ye.prototype._onMouseMove=function(i){var t=this._getRelativeMouseXY(i);this._onMove("mousemove",t.x,t.y,i),this._onMove("mouseover",t.x,t.y,i),this._onMove("mouseout",t.x,t.y,i)};ye.prototype._onClick=function(i){this._onMouseEvent("click",i)};ye.prototype._onDblClick=function(i){this._onMouseEvent("dblclick",i)};ye.prototype._onContextmenu=function(i){this._onMouseEvent("contextmenu",i)};ye.prototype._onTouchStart=function(i){return this._onTouchEvent("touchstart",i)};ye.prototype._onTouchEnd=function(i){return this._onTouchEvent("touchend",i)};ye.prototype._onTouchMove=function(i){if(i.touches.length==1){i.preventDefault();var t=Number(i.touches[0].pageX/window.innerWidth)*2-1,e=-(i.touches[0].pageY/window.innerHeight)*2+1;this._onMove("mousemove",t,e,i),this._onMove("mouseover",t,e,i),this._onMove("mouseout",t,e,i)}};ye.prototype._onTouchEvent=function(i,t){if(t.touches.length==1){t.preventDefault();var e=Number(t.touches[0].pageX/window.innerWidth)*2-1,n=-(t.touches[0].pageY/window.innerHeight)*2+1;this._onEvent(i,e,n,t)}};function Ul(i){const t=new I.Box3,e=new I.Vector3;if(i.traverse(n=>{var s;if(n.name==="shadow")return;const o=n.geometry;if(o!==void 0)if((s=o==null?void 0:o.attributes)!=null&&s.position){const r=o.attributes.position;for(let a=0,l=r.count;a<l;a++)e.fromBufferAttribute(r,a).applyMatrix4(n.matrix),t.expandByPoint(e)}else o.vertices.forEach(r=>{const a=r.clone().applyMatrix4(n.matrix);t.expandByPoint(a)})}),!t.isEmpty())return t}class xn{constructor(t,e){f(this,"originObject3D");f(this,"hooks");f(this,"disposers",[]);f(this,"helperObject3D");f(this,"camera");f(this,"model");f(this,"scene");f(this,"container");f(this,"domEvents");f(this,"isDragging",!1);f(this,"enabled",!1);f(this,"name","BaseController");f(this,"boundingBox");f(this,"offset");f(this,"onRender");f(this,"onWantsTapGesture",t=>{if(this.getIntersectObject(t))return!1});var c,u;this.hooks=(c=t.sharedHooks)!=null?c:new Zt,this.camera=t.camera,this.model=t.model,this.originObject3D=t.originObject3D,this.helperObject3D=t.helperObject3D,this.container=t.container,this.scene=t.scene,this.domEvents=new ye(t.camera,t.container),this.onRender=(u=t.onRender)!=null?u:()=>{},this.offset=e==null?void 0:e.offset,this.initialHelperPosition(),this.initialHelperQuaternion(),this.enable();const n=(...d)=>this.onSetOriginObjectScale(...d),o=(...d)=>this.onSetOriginObjectRotate(...d),s=(...d)=>this.onSetOriginObjectPosition(...d),r=(...d)=>this.onApplyOriginObjectScale(...d),a=(...d)=>this.onApplyOriginObjectRotate(...d),l=(...d)=>this.onApplyOriginObjectPosition(...d);this.hooks.on("setObjectScale",n),this.hooks.on("setObjectRotate",o),this.hooks.on("setObjectPosition",s),this.hooks.on("applyObjectPosition",l),this.hooks.on("applyObjectRotate",a),this.hooks.on("applyObjectScale",r),this.disposers.push(()=>{this.hooks.off("setObjectScale",n),this.hooks.off("setObjectRotate",o),this.hooks.off("setObjectPosition",s),this.hooks.off("applyObjectPosition",l),this.hooks.off("applyObjectRotate",a),this.hooks.off("applyObjectScale",r)})}initialHelperPosition(){this.helperObject3D.position.add(this.calculateOffset(this.offset)),this.helperObject3D.initialPosition()}initialHelperQuaternion(){this.helperObject3D.initQuaternion()}enable(){this.enabled||(this.enabled=!0,this.scene.add(this.helperObject3D),this.helperObject3D.enable(),this.render())}disable(){!this.enabled||(this.enabled=!1,this.helperObject3D.disable(),this.render())}show(){this.helperObject3D.show(),this.render()}hide(){this.helperObject3D.hide(),this.render()}dispose(){var t;(t=this.disposers)==null||t.forEach(e=>e==null?void 0:e()),this.helperObject3D.dispose(),this.render()}applyHelperMatrix4(t){this.helperObject3D.applyMatrix4(t)}applyHelperQuaternion(t,e){this.helperObject3D.applyHelperQuaternion(t,e)}applyHelperScaleMatrix4(t,e){this.helperObject3D.applyHelperScaleMatrix4(t,e)}onWantsGesture(t,e,n){if(this.isDragging)return!1}onIntersectionOnModelUpdate(t){}onApplyOriginObjectScale(t){this.applyHelperScaleMatrix4(t.matrix,t.origin)}onApplyOriginObjectRotate(t){this.applyHelperQuaternion(t.quaternion,t.origin)}onApplyOriginObjectPosition(t){this.applyHelperMatrix4(t.matrix)}onSetOriginObjectScale(t){this.helperObject3D.scale.copy(t),this.updateOffsetByScale(t)}onSetOriginObjectRotate(t,e){this.helperObject3D.setHelperQuaternion(t,e)}onSetOriginObjectPosition(t){this.helperObject3D.position.copy(t.clone().add(this.calculateOffset(this.offset)))}render(){this.onRender()}updateOffsetByScale(t){if(this.boundingBox&&this.offset){const e=this.originObject3D.position,n=new I.Vector3().subVectors(this.boundingBox.max,e).multiply(t).add(e),o=new I.Vector3().subVectors(this.boundingBox.min,e).multiply(t).add(e),s=this.calculateOffset(this.offset,{min:o,max:n});this.helperObject3D.position.copy(s),this.helperObject3D.initialPosition()}}hoverListener(t,e=16777215,n=1){const o=(Array.isArray(t)?t:[t]).filter(yt),s=[];for(const r of o)if(r instanceof I.Mesh||r instanceof I.Group){const a=r instanceof I.Group?r.children.filter(h=>h instanceof I.Mesh):[r];a.forEach(h=>{h.__originalColor__=h.material.color.clone(),h.__originalOpacity__=h.material.opacity});const l=()=>{a.forEach(h=>{h.material.color.set(e),h.material.opacity=n}),this.render()},c=()=>{a.forEach(h=>{h.material.color.copy(h.__originalColor__),h.material.opacity=h.__originalOpacity__}),this.render()},u=()=>{this.isDragging||l()},d=()=>{this.isDragging||c()};for(const h of a)this.domEvents.addEventListener(h,"mouseover",u),this.domEvents.addEventListener(h,"mouseout",d),this.hooks.on("moveStart",l),this.hooks.on("moveEnd",c),this.hooks.on("rotateEnd",c),s.push(()=>{this.domEvents.removeEventListener(h,"mouseover",u),this.domEvents.removeEventListener(h,"mouseout",d),this.hooks.off("moveStart",l),this.hooks.off("moveEnd",c),this.hooks.off("rotateEnd",c)})}return()=>s.forEach(r=>r==null?void 0:r())}getIntersectObject(t){const e=this.camera.position,n=this.helperObject3D;if(!n)return;const o=this.helperObject3D.raycasterIntersectObject(t)[0];if(!o)return;const s=o;if(s.object=n,this.model.intersectRaycaster){const r=this.model.intersectRaycaster(t)[0];if(r&&r.point.distanceTo(e)<s.point.distanceTo(e))return}return s.object}calculateOffset(t,e){const n=this.originObject3D,o=new I.Vector3(0,0,0);if(!t)return o;const s=()=>e||(this.boundingBox?this.boundingBox:(this.boundingBox=Ul(n),this.boundingBox));if(typeof t.x=="number")o.setX(t.x);else if(typeof t.x=="object"){const r=s();o.setX((r.max.x-r.min.x)*t.x.percents)}if(typeof t.y=="number")o.setY(t.y);else if(typeof t.y=="object"){const r=s();o.setY((r.max.y-r.min.y)*t.y.percents)}if(typeof t.z=="number")o.setZ(t.z);else if(typeof t.z=="object"){const r=s();o.setZ((r.max.z-r.min.z)*t.z.percents)}return o}}class kb extends xn{constructor(...e){super(...e);f(this,"name","ScaleController")}setScale(e){var l,c,u;let n=1,o=1,s=1;typeof e=="number"?(n=e,o=e,s=e):typeof e=="object"&&(n=(l=e.x)!=null?l:1,o=(c=e.y)!=null?c:1,s=(u=e.z)!=null?u:1);const r=new I.Vector3(n,o,s);this.hooks.emit("wantToScale",r)||(this.originObject3D.scale.copy(r),this.hooks.emit("setObjectScale",r),this.hooks.emit("scale",r),this.render())}}function ql(i,t,e){if(e){const o=new I.Vector3().subVectors(i.position,e).applyQuaternion(i.quaternion.clone().inverse()).applyQuaternion(t).add(e);i.position.copy(o)}i.quaternion.copy(t)}class xb extends V.Object3D{constructor(){super()}add(...t){if(t.length===0)return this;const e=t.filter(Boolean);return super.add(...e)}remove(...t){if(t.length===0)return this;const e=t.filter(Boolean);return super.remove(...e)}removeFromParent(){const t=this.parent;return t!==null&&t.remove(this),this}}class Pi extends xb{constructor(e,n){var o;super();f(this,"originObject3D");f(this,"onRender");this.originObject3D=e,this.onRender=(o=n==null?void 0:n.onRender)!=null?o:()=>{}}get helperObject(){return this}render(){this.onRender()}enable(){this.parent.children.includes(this)||this.parent.add(this)}disable(){this.removeFromParent()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}raycasterIntersectObject(e,n=[]){return e.intersectObject(this,!0,n)}initialPosition(){this.position.add(this.originObject3D.position)}initQuaternion(){this.quaternion.copy(this.originObject3D.quaternion)}applyHelperScaleMatrix4(e,n){this.scale.applyMatrix4(e)}setHelperQuaternion(e,n){ql(this,e,n)}applyHelperQuaternion(e,n){if(n){const o=new V.Vector3().subVectors(this.position,n).applyQuaternion(e).add(n);this.position.copy(o)}this.applyQuaternion(e)}dispose(){this.removeFromParent()}}class Db extends Pi{}class Lb extends Pi{}class Sb extends Pi{}class Jl extends Pi{}class Mb extends Jl{}class Tb extends I.Group{constructor(e){super();f(this,"direction");this.direction=e||"x"}}class ha extends I.Mesh{constructor(e,n,o){super(e,n);f(this,"direction");this.direction=o||"x"}}function zb(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return Object.assign(new I.Vector2,{x:(i.x-s)/e*2-1,y:-(i.y-o)/n*2+1})}function Do(i,t,e){if(!t||!e||!i)return;const n=zb(t,e);if(Math.abs(n.x)===1||Math.abs(n.y)===1)return;const o=new I.Raycaster;return o.setFromCamera(n,i),o}function Bb(i,t){return!(Math.abs(i.x-t.x)>1e-5||Math.abs(i.y-t.y)>1e-5||Math.abs(i.z-t.z)>1e-5)}class _i extends Tb{constructor(e){var u;super(e.direction);f(this,"line");f(this,"arrow");f(this,"lineHeight",.4);f(this,"arrowHeight",.1);this.name="ArrowGroup";const n=new I.Color((u=e.color)!=null?u:16214315),o=new I.MeshBasicMaterial({color:n,depthTest:!1,opacity:1,transparent:!0,side:I.DoubleSide}),s=new I.ConeGeometry(.04,.1,32),r=new ha(s,o.clone(),e.direction);r.name=`arrow-${e.direction}`,this.arrow=r;const a=.004,l=new I.CylinderGeometry(a,a,.4,32),c=new ha(l,o.clone(),e.direction);c.name=`line-${e.direction}`,this.line=c,this.formatArrow(),this.formatLine(),this.add(this.arrow,this.line)}formatArrow(){this.arrow.geometry.translate(0,this.lineHeight+this.arrowHeight/2,0),this.direction==="x"?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.arrow.geometry.rotateX(Math.PI/2)}formatLine(){this.line.geometry.translate(0,this.lineHeight/2,0),this.direction==="x"?(this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.line.geometry.rotateX(Math.PI/2)}}const Gi={X:15618642,Y:4765519,Z:4227839};class Wt{static get X(){return new I.Color(Gi.X).convertSRGBToLinear().clone()}static get Y(){return new I.Color(Gi.Y).convertSRGBToLinear().clone()}static get Z(){return new I.Color(Gi.Z).convertSRGBToLinear().clone()}}class jb extends Db{constructor(e){super(e);f(this,"xArrow",new _i({direction:"x",color:Wt.X}));f(this,"yArrow",new _i({direction:"y",color:Wt.Y}));f(this,"zArrow",new _i({direction:"z",color:Wt.Z}));this.add(this.xArrow),this.add(this.yArrow),this.add(this.zArrow)}show(){super.show(),this.xArrow.visible=!0,this.yArrow.visible=!0,this.zArrow.visible=!0}showDraggingHelper(e){this.xArrow.visible=e.includes("x"),this.yArrow.visible=e.includes("y"),this.zArrow.visible=e.includes("z")}dispose(){this.remove(this.xArrow,this.yArrow,this.zArrow)}}function Lt(i,t){return Vb(document.createElement(t!=null?t:"div"),i)}function Vb(i,t){if(!t)return i;for(const e in t)e&&t[e]&&(i.style[e]=t[e]);return i}function Ob(i){const t=Lt(Q({position:"absolute",display:"block",borderRadius:"4px",paddingTop:"1px",paddingBottom:"1px",paddingLeft:"4px",paddingRight:"4px",pointerEvents:"none",userSelect:"none",zIndex:"9999",backgroundColor:"rgba(0,0,0,0.7)",fontSize:"12px",color:"#fff",letterSpacing:"0",lineHeight:"18px"},i)),e=()=>{t.style.display!=="block"&&(!t.style.top||!t.style.left||(t.style.display="block"))};return{element:t,show:e,hide:()=>{t.style.display="none",t.style.top="",t.style.left=""},setLeftTop:(s,r)=>{t.style.left=s,t.style.top=r,e()}}}class Rb extends Sb{constructor(e,n){super(e);f(this,"xCircle");f(this,"yCircle");f(this,"zCircle");f(this,"children",[]);f(this,"angleTips");f(this,"container");(n==null?void 0:n.yzCircleEnable)!==!1&&(this.xCircle=new Wi({direction:"x",color:Wt.X})),(n==null?void 0:n.xzCircleEnable)!==!1&&(this.yCircle=new Wi({direction:"y",color:Wt.Y})),(n==null?void 0:n.xyCircleEnable)!==!1&&(this.zCircle=new Wi({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=Ob({display:"none"}),this.container.appendChild(this.angleTips.element)),this.add(...[this.xCircle,this.yCircle,this.zCircle].filter(Boolean)),this.show()}hide(){this.children.forEach(e=>e.hide())}show(){var e;this.children.forEach(n=>n.showCircle()),(e=this.angleTips)==null||e.hide()}showDraggingHelper(e){var n;this.hide(),this.children.filter(o=>e.includes(o.direction)).forEach(o=>o.showRing()),(n=this.angleTips)==null||n.show()}dispose(){var e,n;this.removeFromParent(),(n=(e=this.angleTips)==null?void 0:e.element)==null||n.remove()}}class Wi extends I.Group{constructor(e){super();f(this,"direction");f(this,"circle");f(this,"ring");f(this,"angleSector");this.direction=e.direction,this.circle=new Qb(e),this.ring=new Fb(e),this.angleSector=new Hb(e),this.add(this.circle,this.ring,this.angleSector),this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}showCircle(){this.add(this.circle),this.remove(this.ring,this.angleSector)}showRing(){this.add(this.ring,this.angleSector),this.remove(this.circle)}hide(){this.remove(this.ring,this.angleSector,this.circle)}}class Qb extends I.Mesh{constructor(e){var n;super();f(this,"direction");f(this,"gapAngle",.02);f(this,"geometry",new I.RingGeometry(.25,.3,20,8,this.gapAngle,Math.PI/2-this.gapAngle*2));this.material=new I.MeshBasicMaterial({opacity:.6,color:(n=e.color)!=null?n:16777215,transparent:!0,side:I.DoubleSide,depthTest:!1}),this.direction=e.direction,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`}}class Fb extends I.Group{constructor(e){super();f(this,"direction");this.direction=e.direction;const n=.015,o=new Array(8).fill(null).map((s,r)=>{const a=new I.RingGeometry(.25,.3,20,8,Math.PI/4*r+n,Math.PI/4-n*2),l=new I.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,transparent:!0,side:I.DoubleSide}),c=new I.Mesh(a,l);return c.name=`AxesDashedRing-${this.direction}-${r}`,c});this.add(...o)}}class Hb extends I.Mesh{constructor(e){var o;super();f(this,"direction");f(this,"baseAxes");f(this,"angleDirection");switch(e.direction){case"x":this.baseAxes=new I.Vector3(0,0,1);break;case"y":this.baseAxes=new I.Vector3(1,0,0);break;case"z":this.baseAxes=new I.Vector3(1,0,0);break}const n=.3+5e-4;this.geometry=new I.CircleGeometry(n,48,0,1e-4),this.material=new I.MeshBasicMaterial({opacity:.4,color:(o=e.color)!=null?o:16777215,depthTest:!1,transparent:!0,side:I.DoubleSide}),this.direction=e.direction,this.angleDirection=this.direction==="z"?1:-1}}function _b(){const i=Lt({width:"100%",height:"100%",left:"0",top:"0",position:"absolute",pointerEvents:"none"}),t=Lt({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}),e=Lt({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"absolute",border:"1px solid rgba(255,255,255,0.4)"});i.appendChild(t),t.appendChild(e);const n="-4px",o={direction:"nesw",element:ht({cursor:"nesw-resize",left:n,bottom:n})},s={direction:"ns",element:ht({cursor:"ns-resize",bottom:n})},r={direction:"nwse",element:ht({cursor:"nwse-resize",right:n,bottom:n})},a={direction:"ew",element:ht({cursor:"ew-resize",right:n})},l={direction:"nesw",element:ht({cursor:"nesw-resize",right:n,top:n})},c={direction:"ns",element:ht({cursor:"ns-resize",top:n})},u={direction:"nwse",element:ht({cursor:"nwse-resize",left:n,top:n})},d={direction:"ew",element:ht({cursor:"ew-resize",left:n})};return new Array(s,a,c,d,o,r,l,u).forEach(m=>t.appendChild(m.element)),{container:i,squares:[o,s,r,a,l,c,u,d]}}function ht(i){const t=Lt(Q({background:"#FFFFFF",width:"9px",height:"9px",position:"absolute",pointerEvents:"none"},i)),e=Lt({width:"15px",height:"15px",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"}),n=Lt({width:"15px",height:"15px",cursor:i==null?void 0:i.cursor,pointerEvents:"auto",background:"transparent"});return n.draggable=!0,e.appendChild(n),t.appendChild(e),t}class Gb extends Mb{constructor(e,n,o,s){super(e);f(this,"points",[]);f(this,"cornerPositions",[]);f(this,"css3DInstance");f(this,"plane");f(this,"css3DRenderer",new Nt);f(this,"camera");f(this,"scene");f(this,"container");f(this,"enabled",!1);this.camera=o,this.scene=s,this.container=n,this.initRectangleScaleHelper()}get helperObject(){var e;if(!((e=this.css3DInstance)!=null&&e.css3DObject))throw new Error("css3DInstance is not initialized");return this.css3DInstance.css3DObject}applyMatrix4(e){var n;super.applyMatrix4(e),this.helperObject.applyMatrix4(e),(n=this.plane)==null||n.applyMatrix4(e),this.cornerPositions.forEach(o=>o.applyMatrix4(e))}showDraggingHelper(){}applyHelperScaleMatrix4(e,n){var o;(o=this.plane)==null||o.scale.applyMatrix4(e),this.helperObject.applyScaleMatrix4(e)}updatePoints(){const e=this.calculatePointPosition(this.cornerPositions);this.points.forEach((n,o)=>{n.position.copy(e[o])})}applyHelperQuaternion(e,n){var s;const o=(s=this.css3DInstance)==null?void 0:s.css3DObject;if(o){const r=new I.Vector3().subVectors(o.position,n).applyQuaternion(e).add(n);o.position.copy(r),o.applyQuaternion(e)}if(this.plane){const r=new I.Vector3().subVectors(this.plane.position,n).applyQuaternion(e).add(n);this.plane.position.copy(r),this.plane.applyQuaternion(e)}this.cornerPositions.forEach(r=>{const a=new I.Vector3().subVectors(r,n).applyQuaternion(e).add(n);r.copy(a)})}enable(){var e;this.enabled||(this.enabled=!0,(e=this.css3DInstance)==null||e.enable(),this.plane&&this.scene.add(this.plane))}disable(){var e;!this.enabled||(this.enabled=!1,(e=this.css3DInstance)==null||e.disable(),this.plane&&this.scene.remove(this.plane))}show(){var e;(e=this.css3DInstance)==null||e.show(),this.plane&&(this.plane.visible=!0)}hide(){var e;(e=this.css3DInstance)==null||e.hide(),this.plane&&(this.plane.visible=!1)}dispose(){this.disable(),this.css3DRenderer.dispose()}initRectangleScaleHelper(){var a,l;const e=this.getCornerPositions();if(!e)return;this.cornerPositions=e;const n=this.css3DRenderer.create3DElement(this.camera,e,{ratio:.003});if(!n)return;this.css3DInstance=n,n.appendToElement(this.container);const o=n.css3DObject.container,{container:s,squares:r}=_b();this.points=r.map((c,u)=>({direction:c.direction,point:c.element,position:this.calculatePointPosition(e)[u]})),o.insertBefore(s,(a=o.children[0])!=null?a:null),this.helperObject.position.copy(this.originObject3D.position),(l=this.plane)==null||l.position.copy(this.originObject3D.position)}getCornerPositions(){const{originObject3D:e}=this;if(e.isCSS3DObjectPlus)return e.cornerPoints;console.error("\u5F53\u524D\u7269\u4F53\u6682\u65F6\u4E0D\u652F\u6301 ScaleHelper")}calculatePointPosition(e){return[e[0].clone(),e[0].clone().add(e[1]).divideScalar(2),e[1].clone(),e[1].clone().add(e[2]).divideScalar(2),e[2].clone(),e[2].clone().add(e[3]).divideScalar(2),e[3].clone(),e[3].clone().add(e[0]).divideScalar(2)]}}class Wb extends Lb{constructor(e){super(e);f(this,"box");f(this,"outline");f(this,"originObject");f(this,"positionAttribute");this.originObject=e,this.positionAttribute=new I.BufferAttribute(new Float32Array(8*3),3),this.box=this.createBox(),this.outline=this.createOutline(),this.add(this.box,this.outline),this.update()}raycasterIntersectObject(e,n){return e.intersectObject(this,!1,n)}raycast(e,n){this.box.raycast(e,n)}update(){const e=Ul(this.originObject);if(!e)return;const{min:n,max:o}=e;this.positionAttribute.setXYZ(0,o.x,o.y,o.z),this.positionAttribute.setXYZ(1,n.x,o.y,o.z),this.positionAttribute.setXYZ(2,n.x,n.y,o.z),this.positionAttribute.setXYZ(3,o.x,n.y,o.z),this.positionAttribute.setXYZ(4,o.x,o.y,n.z),this.positionAttribute.setXYZ(5,n.x,o.y,n.z),this.positionAttribute.setXYZ(6,n.x,n.y,n.z),this.positionAttribute.setXYZ(7,o.x,n.y,n.z),this.positionAttribute.needsUpdate=!0}createOutline(){const e=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),n=new I.BufferGeometry;n.setIndex(new I.BufferAttribute(e,1)),n.setAttribute("position",this.positionAttribute);const o=new I.LineBasicMaterial({color:64767,linewidth:1,opacity:1,depthTest:!1,transparent:!0,toneMapped:!1}),s=new I.LineSegments(n,o);return s.matrixAutoUpdate=!1,s}createBox(){const e=new Uint16Array([0,1,2,0,2,3,0,3,7,0,7,4,0,4,5,0,5,1,6,1,5,6,2,1,6,5,4,6,4,7,6,3,2,6,7,3]),n=new I.BufferGeometry;n.setIndex(new I.BufferAttribute(e,1)),n.setAttribute("position",this.positionAttribute);const o=new I.MeshBasicMaterial({color:64767,opacity:.1,depthTest:!1,transparent:!0});return new I.Mesh(n,o)}}class Nb extends xn{constructor(...e){super(...e);f(this,"name","MoveController");f(this,"startInfo");f(this,"_moveByMouseEnable",!1);f(this,"mouseInfo");f(this,"mousedownEventListenerDisposer");const n=this.helperObject3D;this.hoverListener([n.xArrow,n.yArrow,n.zArrow]);const o=this.dragStart.bind(this),s=this.dragging.bind(this),r=this.dragEnd.bind(this),a=this.show.bind(this),l=this.hide.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",o),document.addEventListener("mousemove",s),document.addEventListener("mouseup",r),this.hooks.on("rotateStart",l),this.hooks.on("rotateEnd",a),this.hooks.on("moveByMouseEnable",l),this.hooks.on("moveByMouseDisable",a),this.disposers.push(()=>{this.domEvents.removeEventListener(this.helperObject3D,"mousedown",o),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",r),this.hooks.off("rotateStart",l),this.hooks.off("rotateEnd",a),this.hooks.off("moveByMouseEnable",l),this.hooks.off("moveByMouseDisable",a)}),this.moveByMouseEnable&&this.moveByMouse()}get moveByMouseEnable(){return this._moveByMouseEnable}dispose(){var e;super.dispose(),(e=this.disposers)==null||e.forEach(n=>n==null?void 0:n())}moveByMouse(){this._moveByMouseEnable=!0;const e=this.handleMouseDown.bind(this),n=this.handleMouseUp.bind(this);this.hooks.emit("moveByMouseEnable"),setTimeout(()=>{this.container.addEventListener("mousedown",e),this.container.addEventListener("mouseup",n)}),this.mousedownEventListenerDisposer=()=>{this.container.removeEventListener("mousedown",e),this.container.removeEventListener("mouseup",n)}}disableMoveByMouse(){var e;this._moveByMouseEnable=!1,this.hooks.emit("moveByMouseDisable"),(e=this.mousedownEventListenerDisposer)==null||e.call(this)}onIntersectionOnModelUpdate(e){!this.moveByMouseEnable||this.hooks.emit("wantToMove",e.point)||(this.originObject3D.position.copy(e.point),this.hooks.emit("setObjectPosition",e.point),this.hooks.emit("move",e.point))}onApplyOriginObjectScale(e){}handleMouseDown(e){const{x:n,y:o}=e;this.mouseInfo={x:n,y:o,mouseDownTimestamp:Date.now()}}handleMouseUp(e){if(!this.mouseInfo)return;const{x:n,y:o}=e;this.mouseInfo.x===n&&this.mouseInfo.y===o&&Date.now()-this.mouseInfo.mouseDownTimestamp<500&&(this.disableMoveByMouse(),this.mouseInfo=void 0)}dragStart(e){if(this._moveByMouseEnable||this.isDragging)return;const n=e==null?void 0:e.intersect;if(!n)return this.dragEnd();const o=(n==null?void 0:n.object).direction;if(!o)return this.dragEnd();const s=new I.Vector3(1,0,0).applyQuaternion(this.helperObject3D.quaternion),r=new I.Vector3(0,1,0).applyQuaternion(this.helperObject3D.quaternion),a=new I.Vector3(0,0,1).applyQuaternion(this.helperObject3D.quaternion),l=(()=>{switch(o){case"x":return s;case"y":return r;case"z":return a}})(),c=(()=>{switch(o){case"x":case"y":return a;case"z":return s}})(),u=n.point.clone(),d=new I.Plane;d.setFromNormalAndCoplanarPoint(c,u),this.startInfo={startVectorProject:u.clone().projectOnVector(l),directionVector:l,plane:d},this.helperObject3D.showDraggingHelper([o]),this.hooks.emit("moveStart"),this.isDragging=!0}dragging(e){if(!this.isDragging||!this.startInfo)return;const n=Do(this.camera,e,this.container);return n?(this.move(n),!1):this.dragEnd()}move(e){if(!this.startInfo)return this.dragEnd();const{plane:n,directionVector:o,startVectorProject:s}=this.startInfo,r=this.originObject3D,a=e.ray.intersectPlane(n,new I.Vector3);if(!a)return;const l=a.clone().projectOnVector(o),c=l.clone().sub(s),u=new I.Matrix4;u.setPosition(c);const d=r.position.clone().applyMatrix4(u);this.hooks.emit("wantToMove",d)||(r.applyMatrix4(u),s.copy(l),this.hooks.emit("applyObjectPosition",{matrix:u}),this.hooks.emit("move",d))}dragEnd(){!this.isDragging||(this.startInfo=void 0,this.isDragging=!1,this.helperObject3D.show(),this.hooks.emit("moveEnd"))}}class hn{constructor(t,e,n,o,s,r){f(this,"helperController");f(this,"five");f(this,"onFiveWantsTapGesture",t=>{if(!this.helperController)return;const e=this.helperController.onWantsTapGesture(t);return this.five.needsRender=!0,e});f(this,"onFiveWantsGesture",(...t)=>{if(!this.helperController)return;const e=this.helperController.onWantsGesture(...t);return this.five.needsRender=!0,e});f(this,"onFiveIntersectionOnModelUpdate",(...t)=>{!this.helperController||this.helperController.onIntersectionOnModelUpdate(...t)});const{camera:a,model:l,scene:c}=t,u=t.getElement();if(this.five=t,!a||!l||!u||!c)return;const d=()=>{t.needsRender=!0};this.helperController=new e({camera:a,model:l,originObject3D:n,helperObject3D:o,container:u,scene:c,onRender:d,sharedHooks:r},s),t.on("wantsTapGesture",this.onFiveWantsTapGesture),t.on("wantsGesture",this.onFiveWantsGesture),t.on("intersectionOnModelUpdate",this.onFiveIntersectionOnModelUpdate)}dispose(){var t;this.five.off("wantsTapGesture",this.onFiveWantsTapGesture),this.five.off("wantsGesture",this.onFiveWantsGesture),this.five.off("intersectionOnModelUpdate",this.onFiveIntersectionOnModelUpdate),(t=this.helperController)==null||t.dispose()}}const Xb="v1.0.1",Yb="Object3DHelper",Lo=`${Yb}@${Xb}`,Ub=()=>{console.error(`${Lo} is disposed`)},qb=()=>{console.warn(`${Lo} is disabled`)},Jb=()=>{console.error(`${Lo} is disabled`)};class Zb{constructor(t){f(this,"controllers",{});f(this,"state",{visible:!0,enabled:!0,disposed:!1});f(this,"hooks",new Zt);f(this,"eventListener",{});t&&this.addControllers(t),this.setState(this.state)}show(t){return W(this,null,function*(){this.setState({visible:!0},t)})}hide(t){return W(this,null,function*(){this.setState({visible:!1},t)})}enable(t){this.setState({enabled:!0},t)}disable(t){this.setState({enabled:!1},t)}dispose(){this.setState({disposed:!0})}setState(t,e){if(this.state.disposed)return Ub();if(!this.state.enabled&&t.enabled!==!0&&t.disposed!==!0)return Jb();const n=Q({},this.state);this.state=Q(Q({},this.state),t),t.disposed!==void 0&&t.disposed!==n.disposed&&t.disposed&&this.handleDispose(),t.visible!==void 0&&this.handleVisible(t.visible),t.enabled!==void 0&&this.handleEnable(t.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:n})}addControllers(t){this.controllers=Q(Q({},this.controllers),t),this.setState(this.state)}getCurrentState(){return this.state}handleEnable(t,e=!0){t?(this.everyControllerDo(n=>{n.enable()}),this.hooks.emit("enable",{userAction:e})):(this.everyControllerDo(n=>{n.disable()}),this.hooks.emit("disable",{userAction:e})),this.state.enabled=t}handleVisible(t,e=!0){t?(this.everyControllerDo(n=>{n.show()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:e}))):(this.everyControllerDo(n=>{n.hide()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:e}))),this.state.visible=t}everyControllerDo(t){Object.values(this.controllers).forEach(e=>{e&&t(e)})}handleDispose(){var t,e;Object.values(this.controllers).forEach(n=>{n==null||n.dispose()});for(const n in this.controllers){if(!n)continue;const o=n;(e=(t=this.eventListener)[o])==null||e.call(t)}}actionIfStateIsEnabled(t,e){if(this.state.enabled)return t();e!=null&&e.warnLog&&qb()}}function Ni(i){return i*Math.PI/180}class Kb extends xn{constructor(...e){var c,u,d;super(...e);f(this,"name","RotateController");f(this,"startInfo");f(this,"removeListener");const n=this.helperObject3D;this.hoverListener([(c=n.xCircle)==null?void 0:c.circle,(u=n.yCircle)==null?void 0:u.circle,(d=n.zCircle)==null?void 0:d.circle].filter(Boolean));const o=this.dragStart.bind(this),s=this.dragging.bind(this),r=this.dragEnd.bind(this),a=this.show.bind(this),l=this.hide.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",o),document.addEventListener("mousemove",s),document.addEventListener("mouseup",r),this.hooks.on("moveStart",l),this.hooks.on("moveEnd",a),this.hooks.on("moveByMouseEnable",l),this.hooks.on("moveByMouseDisable",a),this.removeListener=()=>{this.domEvents.removeEventListener(this.helperObject3D,"mousedown",o),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",r),this.hooks.off("moveStart",l),this.hooks.off("moveEnd",a),this.hooks.off("moveByMouseEnable",l),this.hooks.off("moveByMouseDisable",a)}}get rotateCenter(){return this.helperObject3D.position.clone()}initialHelperQuaternion(){this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion)}setRotateAngle(e){const{x:n=0,y:o=0,z:s=0}=e,r=new I.Euler(Ni(n),Ni(o),Ni(s)),a=new I.Quaternion().setFromEuler(r);if(this.hooks.emit("wantToRotate",a))return;const{originObject3D:c,rotateCenter:u}=this;ql(c,a,u),this.hooks.emit("setObjectRotate",a,u),this.hooks.emit("rotate",a),this.render()}dispose(){this.removeListener(),super.dispose()}onApplyOriginObjectRotate(e){this.isDragging||super.onApplyOriginObjectRotate(e)}onApplyOriginObjectScale(e){}dragStart(e){if(this.isDragging)return;const n=e==null?void 0:e.intersect;if(!n)return this.dragEnd();const o=(n==null?void 0:n.object).direction;if(!o)return this.dragEnd();const s=n.point,r=this.getAngleHelper(o);this.setTipsAngle(0);const a=s.clone();a.y+=.2,this.setTipsPosition(a);const l=(()=>{if(o==="x")return new I.Vector3(1,0,0).applyQuaternion(this.originObject3D.quaternion);if(o==="y")return new I.Vector3(0,1,0).applyQuaternion(this.originObject3D.quaternion);if(o==="z")return new I.Vector3(0,0,1).applyQuaternion(this.originObject3D.quaternion)})(),c=new I.Plane().setFromNormalAndCoplanarPoint(l,s),d=c.projectPoint(s.clone(),new I.Vector3).clone().sub(this.rotateCenter),h=d.angleTo(r.baseAxes.clone().applyQuaternion(this.originObject3D.quaternion));this.setAngleHelperStart(o,h),this.setAngleHelperLength(o,0),this.startInfo={direction:o,startVector:d,plane:c,angleHelper:r,angle:0,objectQuaternion:this.originObject3D.quaternion.clone()},this.helperObject3D.showDraggingHelper([o]),this.hooks.emit("rotateStart"),this.isDragging=!0}dragging(e){if(!this.isDragging)return;const n=Do(this.camera,e,this.container);return n?(this.rotate(n),!1):this.dragEnd()}rotate(e){if(!this.startInfo)return this.dragEnd();const{startVector:n,plane:o,angleHelper:s,direction:r,objectQuaternion:a}=this.startInfo,{originObject3D:l}=this,c=e.ray.intersectPlane(o,new I.Vector3);if(!c)return;const u=this.rotateCenter.clone(),h=o.projectPoint(c.clone(),new I.Vector3).clone().sub(u);if(n.angleTo(h)===0)return;const m=new I.Quaternion().setFromUnitVectors(n.clone().normalize(),h.clone().normalize()),A=l.quaternion.clone().premultiply(m);if(this.hooks.emit("wantToRotate",A))return;const g=new I.Euler().setFromQuaternion(new I.Quaternion().setFromUnitVectors(n.clone().normalize().applyQuaternion(a.clone().inverse()),h.clone().normalize().applyQuaternion(a.clone().inverse())),`${r.toUpperCase()}${"XZY".replace(r.toUpperCase(),"")}`)[r]*s.angleDirection;if(this.startInfo.angle+=g,this.setAngleHelperLength(r,this.startInfo.angle),this.setTipsAngle(Ya(this.startInfo.angle)),u){const b=new I.Vector3().subVectors(l.position,u).applyQuaternion(m).add(u);l.position.copy(b)}l.applyQuaternion(m),this.hooks.emit("applyObjectRotate",{quaternion:m,origin:u}),this.hooks.emit("rotate",l.quaternion),this.startInfo.startVector=h}dragEnd(){!this.isDragging||(this.hooks.emit("setObjectRotate",this.originObject3D.quaternion,this.rotateCenter),this.startInfo=void 0,this.isDragging=!1,this.helperObject3D.show(),this.hooks.emit("rotateEnd"))}getAngleHelper(e){var n,o,s;switch(e){case"x":return(n=this.helperObject3D.xCircle)==null?void 0:n.angleSector;case"y":return(o=this.helperObject3D.yCircle)==null?void 0:o.angleSector;case"z":return(s=this.helperObject3D.zCircle)==null?void 0:s.angleSector}}setAngleHelperStart(e,n){const o=this.getAngleHelper(e);if(!o){console.warn("angleHelper is undefined");return}if(o instanceof I.Mesh&&o.geometry instanceof I.CircleGeometry){const{radius:s,segments:r,thetaLength:a}=o.geometry.parameters;o.geometry=new I.CircleGeometry(s,r,n,a)}else console.warn("only support THREE.CircleGeometry")}setAngleHelperLength(e,n){const s=n>=0?Math.max(n,.001):Math.min(n,-.001),r=this.getAngleHelper(e);if(r instanceof I.Mesh&&r.geometry instanceof I.CircleGeometry){const{radius:a,thetaStart:l}=r.geometry.parameters,c=Math.ceil(Math.abs(s)*(40/(2*Math.PI)));r.geometry=new I.CircleGeometry(a,c,l,s)}else console.warn("only support THREE.CircleGeometry")}setTipsAngle(e){var o;const n=(o=this.helperObject3D.angleTips)==null?void 0:o.element;!n||(n.innerText=`${e.toFixed(0)}\xB0`)}setTipsPosition(e){const n=this.helperObject3D.angleTips;if(!n)return;const o=e.project(this.camera),{x:s,y:r,z:a}=o;if(a>1)return;const l=(s+1)/2*100+"%",c=(-r+1)/2*100+"%";n.setLeftTop(l,c)}}class $b extends xn{constructor(...e){super(...e);f(this,"startInfo");f(this,"name","RectangleScaleController")}enable(){this.helperObject3D.enable(),super.enable()}disable(){this.helperObject3D.disable(),super.disable()}show(){this.helperObject3D.show(),super.show()}hide(){this.helperObject3D.hide(),super.hide()}onApplyOriginObjectPosition(e){this.isDragging||super.onApplyOriginObjectPosition(e)}onApplyOriginObjectScale(e){this.helperObject3D.applyHelperScaleMatrix4(e.matrix,e.origin)}getDragPlane(){const e=new I.Plane,n=this.helperObject3D.cornerPositions;if(n.length!==0)return n.length<3?e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new V.Vector3),n[0]):e.setFromCoplanarPoints(n[0],n[1],n[2]),e}dragStart(e,n){var s,r;(r=(s=this.helperObject3D).updatePoints)==null||r.call(s);const o=this.getDragPlane();if(!o)return this.dragEnd();this.startInfo={startPoint:{position:n.position.clone(),direction:n.direction},plane:o},this.hooks.emit("scaleStart"),this.render(),this.isDragging=!0}dragging(e){if(!this.isDragging)return;const n=Do(this.camera,e,this.container);if(!n)return this.dragEnd();this.scale(n)}scale(e){var O,G;if(!this.startInfo)return;const n=this.originObject3D,{startPoint:o,plane:s}=this.startInfo,r=this.helperObject3D.cornerPositions;if(r.length<4)return this.dragEnd();const a=e.ray.intersectPlane(s,new V.Vector3);if(!a||Bb(a,this.camera.position))return;const l=new V.Vector3().addVectors(r[0],r[2]).divideScalar(2),{position:c,direction:u}=o,d=new V.Vector3().subVectors(r[1],r[0]),h=new V.Vector3().subVectors(r[3],r[0]),m=X=>{const H=new V.Vector3(0,0,0);if(!this.startInfo)return H;const B=(X==="ew"?d:h).clone(),F=c.clone().projectOnVector(B),R=a.clone().projectOnVector(B),N=l.clone().projectOnVector(B);if(R.equals(F))return H;if(X==="ns"&&typeof this.startInfo.dragPointInCenterBottom!="boolean"){const Y=new V.Vector3().subVectors(R,N),ae=Y.x<0&&B.x>=0,he=Y.y<0&&B.y>=0,de=Y.z<0&&B.z>=0;this.startInfo.dragPointInCenterBottom=ae||he||de}if(X==="ew"&&typeof this.startInfo.dragPointInCenterLeft!="boolean"){const Y=new V.Vector3().subVectors(R,N),ae=Y.x<0&&B.x>=0,he=Y.y<0&&B.y>=0,de=Y.z<0&&B.z>=0;this.startInfo.dragPointInCenterLeft=ae||he||de}const _=new V.Vector3().subVectors(R,F),$=_.length();return $>.3?(console.warn("offset.length() > 0.3, skipped",$),H):_},A=m("ew"),v=m("ns"),p=()=>{const X=A;this.helperObject3D.cornerPositions.forEach((H,B)=>{var F;(F=this.startInfo)!=null&&F.dragPointInCenterLeft?(B===0||B===3)&&H.add(X):(B===1||B===2)&&H.add(X)})},g=()=>{const X=v;this.helperObject3D.cornerPositions.forEach((H,B)=>{var F;(F=this.startInfo)!=null&&F.dragPointInCenterBottom?(B===0||B===1)&&H.add(X):(B===2||B===3)&&H.add(X)})};switch(u){case"ew":p();break;case"ns":g();break;case"nesw":case"nwse":p(),g()}const b=new V.Vector3().subVectors(r[1],r[0]).length()/d.length(),w=new V.Vector3().subVectors(r[3],r[0]).length()/h.length(),x=new V.Vector3(b,w,1),k=new I.Matrix4().scale(x);n.isCSS3DObjectPlus?n.applyScaleMatrix4(k):n.scale.applyMatrix4(k),o.position.copy(a);const C=new V.Vector3().addVectors(r[0],r[2]).divideScalar(2),D=new V.Vector3().subVectors(C,l),E=new I.Matrix4().setPosition(D);n.applyMatrix4(E),(O=this.helperObject3D.css3DInstance)==null||O.css3DObject.applyMatrix4(E),(G=this.helperObject3D.plane)==null||G.applyMatrix4(E),this.hooks.emit("applyObjectScale",{matrix:k}),this.hooks.emit("applyObjectPosition",{matrix:E}),this.render()}dragEnd(){!this.isDragging||(this.startInfo=void 0,this.isDragging=!1,this.hooks.emit("scaleEnd"),this.render())}}class e1 extends $b{constructor(...e){super(...e);f(this,"name","CSS3DScaleController");this.addHTMLEventListener()}addHTMLEventListener(){this.helperObject3D.points.forEach(e=>{if(!e)return;const n=e.point,o=a=>this.dragStart(a,e),s=this.dragging.bind(this),r=this.dragEnd.bind(this);n.addEventListener("dragstart",o),n.addEventListener("drag",s),n.addEventListener("dragend",r)})}}class t1 extends xn{constructor(...e){super(...e);f(this,"name","BoundingBoxController")}}class n1 extends Jl{constructor(t){super(t)}}const So="v1.0.0",ao="Object3DHelperPlugin",Ii=`${ao}@${So}`,i1=()=>{console.error(`${Ii} is disposed`)},o1=()=>{console.warn(`${Ii} is disabled`)},s1=()=>{console.error(`${Ii} is disabled`)};class Zl extends In{constructor(e){super(e);f(this,"version",So);f(this,"name",ao);f(this,"state",{visible:!0,enabled:!0,disposed:!1});f(this,"objectHelperMap",new Map);f(this,"css3DObjectParentMap",new Map);f(this,"css3DRender");this.five=e,this.css3DRender=new Nt(this.five.scene),console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\uFF0C\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"),Object.assign(window,{[`__${ao.toUpperCase()}_DEBUG__`]:this})}show(e){return W(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return W(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,n){if(this.state.disposed)return i1();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return s1();const o=Q({},this.state);this.state=Q(Q({},this.state),e),e.disposed!==void 0&&e.disposed!==o.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==o.visible&&this.handleVisible(e.visible),e.enabled!==void 0&&e.enabled!==o.enabled&&this.handleEnable(e.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:o})}getObject3DHelper(e){return this.objectHelperMap.get(e)}addObject3DHelper(e,n={}){var m;if(!e)return console.error("Object3D is undefined");if(this.objectHelperMap.has(e)){console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);return}const o=new Zb,s=[],r=(m=this.five.getElement())==null?void 0:m.parentElement,a=this.five.camera,{moveHelper:l=!0,rotateHelper:c=!0,scaleHelper:u=!0,boundingBoxHelper:d=!1}=n,h=new Ce.Subscribe;if(l){const A=new jb(e),v=this.getConfig(n.moveHelper),p=new hn(this.five,Nb,e,A,v,h);o.addControllers({moveController:p.helperController}),s.push(()=>p.dispose())}if(c){const A=this.getConfig(n.rotateHelper),v=new Rb(e,Q({container:r},A)),p=new hn(this.five,Kb,e,v,A,h);o.addControllers({rotateController:p.helperController}),s.push(()=>p.dispose())}if(d){const A=new Wb(e),v=new hn(this.five,t1,e,A,void 0,h);o.addControllers({boundingBoxController:v.helperController})}if(u)if(e.isCSS3DObjectPlus&&r){const A=new Gb(e,r,a,this.five.scene),v=new hn(this.five,e1,e,A,void 0,h);o.addControllers({scaleController:v.helperController}),s.push(()=>v.dispose()),ya(this.five).then(()=>{var p,g;if(e.isCSS3DObjectPlus){const b=e;if(!b||b.mode!=="front")return;const w=(p=this.css3DRender.behindModeCSS3DRenderer.wrapper)!=null?p:wa(this.five);w&&(this.css3DObjectParentMap.set(b,b.parent),b.removeFromParent(),this.css3DRender.behindModeCSS3DRenderer.setWrapper(w),(g=this.css3DRender.getBehindCSS3DObjectGroup())==null||g.add(b),this.css3DRender.render(this.five.camera))}})}else{const A=new n1(e),v=new hn(this.five,kb,e,A,void 0,h);o.addControllers({scaleController:v.helperController}),s.push(()=>v.dispose())}return this.objectHelperMap.set(e,{helper:o,disposers:s}),o.controllers}removeObject3DHelper(e){if(!this.objectHelperMap.has(e))return;const{helper:n,disposers:o}=this.objectHelperMap.get(e);if(!!n){if(e.isCSS3DObjectPlus){const s=e,r=this.css3DObjectParentMap.get(s);r&&r.add(s),this.css3DRender.render(this.five.camera)}this.objectHelperMap.delete(e),n.dispose(),o==null||o.forEach(s=>s==null?void 0:s())}}handleEnable(e,n=!0){e?(this.everyHelperDo(o=>o.enable()),this.hooks.emit("enable",{userAction:n})):(this.everyHelperDo(o=>o.disable()),this.hooks.emit("disable",{userAction:n})),this.state.enabled=e}handleVisible(e,n=!0){e?(this.everyHelperDo(o=>o.show()),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:n}))):(this.everyHelperDo(o=>o.hide()),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:n}))),this.state.visible=e}handleDispose(){this.objectHelperMap.forEach(({helper:e,disposers:n})=>{e.dispose(),n==null||n.forEach(o=>o==null?void 0:o())})}everyHelperDo(e){this.objectHelperMap.forEach(({helper:n,disposers:o})=>{n&&e(n)})}actionIfStateIsEnabled(e,n){if(this.state.enabled)return e();n!=null&&n.warnLog&&o1()}getConfig(e){if(!!e&&typeof e!="boolean"&&e.enable)return e}}const r1=i=>new Zl(i),a1=`
562
+ width var(--sc-dot-size-animation-time) ease;cursor:pointer;-webkit-tap-highlight-color:transparent;height:var(--sc-dot-size);width:var(--sc-dot-size)}.sc-carousel-dot__dot.svelte-1mgyhhn:hover{opacity:0.9}.sc-carousel-dot__dot_active.svelte-1mgyhhn{opacity:0.7;height:var(--sc-active-dot-size);width:var(--sc-active-dot-size)}`)}function A0(i){let t,e,n;return{c(){t=z("button"),y(t,"class","sc-carousel-button sc-carousel-dot__dot svelte-1mgyhhn"),q(t,"sc-carousel-dot__dot_active",i[0])},m(o,s){M(o,t,s),e||(n=ge(t,"click",i[1]),e=!0)},p(o,[s]){s&1&&q(t,"sc-carousel-dot__dot_active",o[0])},i:U,o:U,d(o){o&&S(t),e=!1,n()}}}function v0(i,t,e){let{active:n=!1}=t;function o(s){sn.call(this,i,s)}return i.$$set=s=>{"active"in s&&e(0,n=s.active)},[n,o]}class b0 extends oe{constructor(t){super(),ie(this,t,v0,A0,ne,{active:0},g0)}}function y0(i){le(i,"svelte-670fde",".sc-carousel-dots__container.svelte-670fde{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:0 30px}.sc-carousel-dots__dot-container.svelte-670fde{height:calc(var(--sc-dot-size) + 14px);width:calc(var(--sc-dot-size) + 10px);display:flex;align-items:center;justify-content:center}")}function Ar(i,t,e){const n=i.slice();return n[5]=t[e],n[7]=e,n}function vr(i,t){let e,n,o,s;function r(){return t[3](t[7])}return n=new b0({props:{active:t[1]===t[7]}}),n.$on("click",r),{key:i,first:null,c(){e=z("div"),K(n.$$.fragment),o=ee(),y(e,"class","sc-carousel-dots__dot-container svelte-670fde"),this.first=e},m(a,l){M(a,e,l),J(n,e,null),j(e,o),s=!0},p(a,l){t=a;const c={};l&3&&(c.active=t[1]===t[7]),n.$set(c)},i(a){s||(I(n.$$.fragment,a),s=!0)},o(a){L(n.$$.fragment,a),s=!1},d(a){a&&S(e),Z(n)}}}function w0(i){let t,e=[],n=new Map,o,s=Array(i[0]);const r=a=>a[7];for(let a=0;a<s.length;a+=1){let l=Ar(i,s,a),c=r(l);n.set(c,e[a]=vr(c,l))}return{c(){t=z("div");for(let a=0;a<e.length;a+=1)e[a].c();y(t,"class","sc-carousel-dots__container svelte-670fde")},m(a,l){M(a,t,l);for(let c=0;c<e.length;c+=1)e[c].m(t,null);o=!0},p(a,[l]){l&7&&(s=Array(a[0]),se(),e=qe(e,l,r,1,a,s,n,t,Pt,vr,null,Ar),re())},i(a){if(!o){for(let l=0;l<s.length;l+=1)I(e[l]);o=!0}},o(a){for(let l=0;l<e.length;l+=1)L(e[l]);o=!1},d(a){a&&S(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}function C0(i,t,e){const n=mi();let{pagesCount:o=1}=t,{currentPageIndex:s=0}=t;function r(l){n("pageChange",l)}const a=l=>r(l);return i.$$set=l=>{"pagesCount"in l&&e(0,o=l.pagesCount),"currentPageIndex"in l&&e(1,s=l.currentPageIndex)},[o,s,r,a]}class E0 extends oe{constructor(t){super(),ie(this,t,C0,w0,ne,{pagesCount:0,currentPageIndex:1},y0)}}const Jt="prev",wt="next";function P0(i){le(i,"svelte-1bftafx",":root{--sc-arrow-size:2px}.sc-carousel-arrow__circle.svelte-1bftafx{width:20px;height:20px;border-radius:50%;background-color:var(--sc-color-rgb-light-50p);display:flex;align-items:center;justify-content:center;transition:opacity 100ms ease;cursor:pointer;-webkit-tap-highlight-color:transparent}.sc-carousel-arrow__circle.svelte-1bftafx:hover{opacity:0.9}.sc-carousel-arrow__arrow.svelte-1bftafx{border:solid var(--sc-color-hex-dark);border-width:0 var(--sc-arrow-size) var(--sc-arrow-size) 0;padding:var(--sc-arrow-size);position:relative}.sc-carousel-arrow__arrow-next.svelte-1bftafx{transform:rotate(-45deg);left:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__arrow-prev.svelte-1bftafx{transform:rotate(135deg);right:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__circle_disabled.svelte-1bftafx,.sc-carousel-arrow__circle_disabled.svelte-1bftafx:hover{opacity:0.5}")}function I0(i){let t,e,n,o;return{c(){t=z("button"),e=z("i"),y(e,"class","sc-carousel-arrow__arrow svelte-1bftafx"),q(e,"sc-carousel-arrow__arrow-next",i[0]===wt),q(e,"sc-carousel-arrow__arrow-prev",i[0]===Jt),y(t,"class","sc-carousel-button sc-carousel-arrow__circle svelte-1bftafx"),q(t,"sc-carousel-arrow__circle_disabled",i[1])},m(s,r){M(s,t,r),j(t,e),n||(o=ge(t,"click",i[2]),n=!0)},p(s,[r]){r&1&&q(e,"sc-carousel-arrow__arrow-next",s[0]===wt),r&1&&q(e,"sc-carousel-arrow__arrow-prev",s[0]===Jt),r&2&&q(t,"sc-carousel-arrow__circle_disabled",s[1])},i:U,o:U,d(s){s&&S(t),n=!1,o()}}}function k0(i,t,e){let{direction:n=wt}=t,{disabled:o=!1}=t;function s(r){sn.call(this,i,r)}return i.$$set=r=>{"direction"in r&&e(0,n=r.direction),"disabled"in r&&e(1,o=r.disabled)},[n,o,s]}class zl extends oe{constructor(t){super(),ie(this,t,k0,I0,ne,{direction:0,disabled:1},P0)}}function x0(i){le(i,"svelte-i7yfid",".sc-carousel-progress__indicator.svelte-i7yfid{height:100%;background-color:var(--sc-color-hex-dark-50p)}")}function D0(i){let t;return{c(){t=z("div"),y(t,"class","sc-carousel-progress__indicator svelte-i7yfid"),T(t,"width",i[0]+"%")},m(e,n){M(e,t,n)},p(e,[n]){n&1&&T(t,"width",e[0]+"%")},i:U,o:U,d(e){e&&S(t)}}}const br=100;function L0(i,t,e){let n,{value:o=0}=t;return i.$$set=s=>{"value"in s&&e(1,o=s.value)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=Math.min(Math.max(o*br,0),br))},[n,o]}class S0 extends oe{constructor(t){super(),ie(this,t,L0,D0,ne,{value:1},x0)}}function M0(i,t){i.addEventListener("mousedown",t),i.addEventListener("touchstart",t,{passive:!0})}function T0(i,t){i.removeEventListener("mousedown",t),i.removeEventListener("touchstart",t)}function z0(i,t){i.addEventListener("mouseup",t),i.addEventListener("touchend",t)}function yr(i,t){i.removeEventListener("mouseup",t),i.removeEventListener("touchend",t)}function B0(i,t){i.addEventListener("mousemove",t),i.addEventListener("touchmove",t)}function wr(i,t){i.removeEventListener("mousemove",t),i.removeEventListener("touchmove",t)}function ko(i){return function(t,e){i.dispatchEvent(new CustomEvent(t,{detail:e}))}}const j0=110,V0=9,O0=111,R0=20;function Fi(i){if("TouchEvent"in window&&i instanceof TouchEvent){const t=i.touches[0];return{x:t?t.clientX:0,y:t?t.clientY:0}}return{x:i.clientX,y:i.clientY}}function Q0(i,{thresholdProvider:t}){const e=ko(i);let n,o,s=0,r,a=!1;function l(){return Date.now()-r>=O0&&Math.abs(s)>=R0}function c(h){r=Date.now(),s=0,a=!0;const m=Fi(h);n=m.x,o=m.y,e("swipeStart",{x:n,y:o}),B0(window,u),z0(window,d)}function u(h){if(!a)return;const m=Fi(h),A=m.x-n,v=m.y-o;n=m.x,o=m.y,e("swipeMove",{x:n,y:o,dx:A,dy:v}),A!==0&&Math.sign(A)!==Math.sign(s)&&(s=0),s+=A,Math.abs(s)>t()&&(e("swipeThresholdReached",{direction:s>0?Jt:wt}),yr(window,d),wr(window,u))}function d(h){if(yr(window,d),wr(window,u),a=!1,!l()){e("swipeFailed");return}const m=Fi(h);e("swipeEnd",{x:m.x,y:m.y})}return M0(i,c),{destroy(){T0(i,c)}}}function F0(i,t){i.addEventListener("mouseenter",t)}function H0(i,t){i.removeEventListener("mouseenter",t)}function _0(i,t){i.addEventListener("mouseleave",t)}function Cr(i,t){i.removeEventListener("mouseleave",t)}function G0(i){const t=ko(i);function e(){_0(i,n),t("hovered",{value:!0})}function n(){t("hovered",{value:!1}),Cr(i,n)}return F0(i,e),{destroy(){H0(i,e),Cr(i,n)}}}const W0=(i,t)=>{const e=t.x-i.x,n=t.y-i.y;return Math.sqrt(e*e+n*n)};function Gt(i,t,e){return Math.max(i,Math.min(t,e))}function N0(i,t){i.addEventListener("touchstart",t,{passive:!0})}function X0(i,t){i.removeEventListener("touchstart",t)}function Y0(i,t){i.addEventListener("touchend",t)}function Er(i,t){i.removeEventListener("touchend",t)}function U0(i){const t=ko(i);let e=0,n={x:0,y:0};function o({tapEndedAt:a,tapEndedPos:l}){const c=a-e,u=W0(n,l);return c<=j0&&u<=V0}function s(a){e=Date.now();const l=a.touches[0];n={x:l.clientX,y:l.clientY},Y0(i,r)}function r(a){Er(i,r);const l=a.changedTouches[0];o({tapEndedAt:Date.now(),tapEndedPos:{x:l.clientX,y:l.clientY}})&&t("tapped")}return N0(i,s),{destroy(){X0(i,s),Er(i,r)}}}function q0({currentParticleIndex:i,particlesCount:t,clonesCountHead:e,clonesCountTotal:n,particlesToScroll:o}){return i===t-e?0:i===0?Bl({particlesCountWithoutClones:t-n,particlesToScroll:o})-1:Math.floor((i-e)/o)}function J0({currentParticleIndex:i,particlesToScroll:t}){return Math.ceil(i/t)}function Z0({currentParticleIndex:i,particlesCount:t,clonesCountHead:e,clonesCountTotal:n,infinite:o,particlesToScroll:s}){return o?q0({currentParticleIndex:i,particlesCount:t,clonesCountHead:e,clonesCountTotal:n,particlesToScroll:s}):J0({currentParticleIndex:i,particlesToScroll:s})}function Bl({particlesCountWithoutClones:i,particlesToScroll:t}){return Math.ceil(i/t)}function K0({particlesCountWithoutClones:i,particlesToScroll:t,particlesToShow:e}){const n=jl({particlesCountWithoutClones:i,particlesToScroll:t,particlesToShow:e});return Math.ceil(i/t)-n}function $0({infinite:i,particlesCountWithoutClones:t,particlesToScroll:e,particlesToShow:n}){return i?Bl({particlesCountWithoutClones:t,particlesToScroll:e}):K0({particlesCountWithoutClones:t,particlesToScroll:e,particlesToShow:n})}function eA({pageIndex:i,clonesCountHead:t,clonesCountTail:e,particlesToScroll:n,particlesCount:o}){return Gt(0,Math.min(t+i*n,o-e),o-1)}function tA({pageIndex:i,particlesToScroll:t,particlesCount:e,particlesToShow:n}){return Gt(0,Math.min(i*t,e-n),e-1)}function Hi({infinite:i,pageIndex:t,clonesCountHead:e,clonesCountTail:n,particlesToScroll:o,particlesCount:s,particlesToShow:r}){return i?eA({pageIndex:t,clonesCountHead:e,clonesCountTail:n,particlesToScroll:o,particlesCount:s}):tA({pageIndex:t,particlesToScroll:o,particlesCount:s,particlesToShow:r})}function nA({particlesContainerChildren:i,particleWidth:t}){for(let e=0;e<i.length;e++)i[e].style.minWidth=`${t}px`,i[e].style.maxWidth=`${t}px`}function jl({particlesToScroll:i,particlesToShow:t,particlesCountWithoutClones:e}){const n=i-t;let o=t;for(;;){const s=e-o-n;if(s<t)return Math.max(s,0);o+=t+n}}function iA(i){return new ResizeObserver(t=>{i({width:t[0].contentRect.width})})}function oA({clonesCountHead:i,clonesCountTail:t,particlesContainerChildren:e}){const n=[];for(let r=0;r<t;r++)n.push(e[r].cloneNode(!0));const o=[],s=e.length;for(let r=s-1;r>s-1-i;r--)o.push(e[r].cloneNode(!0));return{clonesToAppend:n,clonesToPrepend:o}}function sA({particlesContainer:i,clonesToAppend:t,clonesToPrepend:e}){for(let n=0;n<t.length;n++)i.append(t[n]);for(let n=0;n<e.length;n++)i.prepend(e[n])}function rA({infinite:i,particlesToShow:t,partialPageSize:e}){const n=i?{head:Math.ceil(e||t),tail:Math.ceil(t)}:{head:0,tail:0};return fe(Q({},n),{total:n.head+n.tail})}const vn=(i,t,e)=>{if(i&&i.hasOwnProperty(t))return i[t];if(e===void 0)throw new Error(`Required arg "${t}" was not provided`);return e},ro=i=>t=>{i[t]&&i[t]()},aA=(i,t)=>yc.default(i,t),lA=i=>Object.keys(i||{}),cA=(i,t)=>{const e={};return i.forEach(n=>{e[n]=t[n]}),e},uA=()=>{const i={},t=(e,n)=>{const{watcherName:o,fn:s}=e,{prop:r,value:a}=n;i[o]||(i[o]={deps:{},fn:s}),i[o].deps[r]=a};return{subscribers:i,subscribe(e,n){e&&t(e,n)},notify(e,n){Object.entries(i).forEach(([o,{deps:s,fn:r}])=>{const a=lA(s);if(a.includes(n)){const l=cA(a,e);aA(s,l)||(i[o].deps=l,r())}})}}},dA=()=>{let i=null;return{targetWatcher(t,e){i={watcherName:t,fn:e},i.fn(),i=null},getTarget(){return i}}};function hA(i,t){const e=Ln.default(i,"data",{}),n=Ln.default(i,"watch",{}),o=Ln.default(i,"methods",{}),s=Ln.default(t,"onChange",()=>{}),{subscribe:r,notify:a,subscribers:l}=uA(),{targetWatcher:c,getTarget:u}=dA();let d;const h={},m=()=>({data:d,methods:h});let A=!1;const v=g=>(...b)=>{A=!0;const w=g(...b);return A=!1,w};Object.entries(o).forEach(([g,b])=>{h[g]=v((...w)=>b(m(),...w)),Object.defineProperty(h[g],"name",{value:g})}),d=new Proxy(bc.default(e),{get(g,b){return u()&&!A&&r(u(),{prop:b,value:g[b]}),Reflect.get(...arguments)},set(g,b,w){return g[b]===w||(Reflect.set(...arguments),u()||(s&&s(b,w),a(d,b))),!0}}),Object.entries(n).forEach(([g,b])=>{c(g,()=>{b(m())})});const p=[d,h];return p._internal={_getSubscribers(){return l}},p}function fA({pageIndex:i,particlesToShow:t,particlesToScroll:e,particlesCount:n}){const o=i===0?0:t-e,s=i*t-i*o,r=s+Math.max(t,e)-1,a=[];for(let l=s;l<=Math.min(n-1,r);l++)a.push(l);return a}function mA({infinite:i,pageIndex:t,pagesCount:e,particlesCount:n,particlesToShow:o,particlesToScroll:s}){const r=Gt(0,t,e-1);let a=r-1,l=r+1;a=i?a<0?e-1:a:Math.max(0,a),l=i?l>e-1?0:l:Math.min(e-1,l);const c=[...new Set([a,r,l,0,e-1])].sort((d,h)=>d-h),u=c.flatMap(d=>fA({pageIndex:d,particlesToShow:o,particlesToScroll:s,particlesCount:n}));return{pageIndexes:c,particleIndexes:[...new Set(u)].sort((d,h)=>d-h)}}const pA=(i,t)=>(i(),setInterval(i,t)),gA=35,Pr=1;class AA{constructor({onProgressValueChange:t}){this._onProgressValueChange=t,this._autoplayDuration,this._onProgressValueChange,this._interval,this._paused=!1}setAutoplayDuration(t){this._autoplayDuration=t}start(t){return new Promise(e=>{this.reset();const n=Math.min(gA,Math.max(this._autoplayDuration,1));let o=-n;this._interval=pA(()=>W(this,null,function*(){if(this._paused)return;o+=n;const s=o/this._autoplayDuration;this._onProgressValueChange(s),s>Pr&&(this.reset(),yield t(),e())}),n)})}pause(){this._paused=!0}resume(){this._paused=!1}reset(){clearInterval(this._interval),this._onProgressValueChange(Pr)}}function vA(i){const t=new AA({onProgressValueChange:r=>{i("progressValue",1-r)}}),e=hA({data:{particlesCountWithoutClones:0,particlesToShow:1,particlesToShowInit:1,particlesToScroll:1,particlesToScrollInit:1,particlesCount:1,currentParticleIndex:1,infinite:!1,autoplayDuration:1e3,clonesCountHead:0,clonesCountTail:0,clonesCountTotal:0,partialPageSize:1,currentPageIndex:1,pagesCount:1,pauseOnFocus:!1,focused:!1,autoplay:!1,autoplayDirection:"next",disabled:!1,durationMsInit:1e3,durationMs:1e3,offset:0,particleWidth:0,loaded:[]},watch:{setLoaded({data:r}){r.loaded=mA({infinite:r.infinite,pageIndex:r.currentPageIndex,pagesCount:r.pagesCount,particlesCount:r.particlesCountWithoutClones,particlesToShow:r.particlesToShow,particlesToScroll:r.particlesToScroll}).particleIndexes},setCurrentPageIndex({data:r}){r.currentPageIndex=Z0({currentParticleIndex:r.currentParticleIndex,particlesCount:r.particlesCount,clonesCountHead:r.clonesCountHead,clonesCountTotal:r.clonesCountTotal,infinite:r.infinite,particlesToScroll:r.particlesToScroll})},setPartialPageSize({data:r}){r.partialPageSize=jl({particlesToScroll:r.particlesToScroll,particlesToShow:r.particlesToShow,particlesCountWithoutClones:r.particlesCountWithoutClones})},setClonesCount({data:r}){const{head:a,tail:l}=rA({infinite:r.infinite,particlesToShow:r.particlesToShow,partialPageSize:r.partialPageSize});r.clonesCountHead=a,r.clonesCountTail=l,r.clonesCountTotal=a+l},setProgressManagerAutoplayDuration({data:r}){t.setAutoplayDuration(r.autoplayDuration)},toggleProgressManager({data:{pauseOnFocus:r,focused:a}}){r&&(a?t.pause():t.resume())},initDuration({data:r}){r.durationMs=r.durationMsInit},applyAutoplay({data:r,methods:{_applyAutoplayIfNeeded:a}}){r.autoplay&&a(r.autoplay)},setPagesCount({data:r}){r.pagesCount=$0({infinite:r.infinite,particlesCountWithoutClones:r.particlesCountWithoutClones,particlesToScroll:r.particlesToScroll,particlesToShow:r.particlesToShow})},setParticlesToShow({data:r}){r.particlesToShow=Gt(1,r.particlesToShowInit,r.particlesCountWithoutClones)},setParticlesToScroll({data:r}){r.particlesToScroll=Gt(1,r.particlesToScrollInit,r.particlesCountWithoutClones)}},methods:{_prev({data:r}){r.currentParticleIndex=Hi({infinite:r.infinite,pageIndex:r.currentPageIndex-1,clonesCountHead:r.clonesCountHead,clonesCountTail:r.clonesCountTail,particlesToScroll:r.particlesToScroll,particlesCount:r.particlesCount,particlesToShow:r.particlesToShow})},_next({data:r}){r.currentParticleIndex=Hi({infinite:r.infinite,pageIndex:r.currentPageIndex+1,clonesCountHead:r.clonesCountHead,clonesCountTail:r.clonesCountTail,particlesToScroll:r.particlesToScroll,particlesCount:r.particlesCount,particlesToShow:r.particlesToShow})},_moveToParticle({data:r},a){r.currentParticleIndex=Gt(0,a,r.particlesCount-1)},toggleFocused({data:r}){r.focused=!r.focused},_applyAutoplayIfNeeded(l){return W(this,arguments,function*({data:r,methods:a}){if(!r.infinite&&(r.autoplayDirection===wt&&r.currentParticleIndex===r.particlesCount-1||r.autoplayDirection===Jt&&r.currentParticleIndex===0)){t.reset();return}if(r.autoplay){const c=()=>ro({[wt]:()=>W(this,null,function*(){return a.showNextPage()}),[Jt]:()=>W(this,null,function*(){return a.showPrevPage()})})(r.autoplayDirection);yield t.start(c)}})},_jumpIfNeeded(l){return W(this,arguments,function*({data:r,methods:a}){let c=!1;return r.infinite&&(r.currentParticleIndex===0?(yield a.showParticle(r.particlesCount-r.clonesCountTotal,{animated:!1}),c=!0):r.currentParticleIndex===r.particlesCount-r.clonesCountTail&&(yield a.showParticle(r.clonesCountHead,{animated:!1}),c=!0)),c})},changePage(u,d,h){return W(this,arguments,function*({data:r,methods:a},l,c){if(t.reset(),r.disabled)return;r.disabled=!0,l(),yield a.offsetPage({animated:vn(c,"animated",!0)}),r.disabled=!1,!(yield a._jumpIfNeeded())&&a._applyAutoplayIfNeeded()})},showNextPage(c,u){return W(this,arguments,function*({data:r,methods:a},l){r.disabled||(yield a.changePage(a._next,l))})},showPrevPage(c,u){return W(this,arguments,function*({data:r,methods:a},l){r.disabled||(yield a.changePage(a._prev,l))})},showParticle(c,u,d){return W(this,arguments,function*({methods:r},a,l){yield r.changePage(()=>r._moveToParticle(a),l)})},_getParticleIndexByPageIndex({data:r},a){return Hi({infinite:r.infinite,pageIndex:a,clonesCountHead:r.clonesCountHead,clonesCountTail:r.clonesCountTail,particlesToScroll:r.particlesToScroll,particlesCount:r.particlesCount,particlesToShow:r.particlesToShow})},showPage(c,u,d){return W(this,arguments,function*({methods:r},a,l){const h=r._getParticleIndexByPageIndex(a);yield r.showParticle(h,l)})},offsetPage({data:r},a){const l=vn(a,"animated",!0);return new Promise(c=>{r.durationMs=l?r.durationMsInit:0,r.offset=-r.currentParticleIndex*r.particleWidth,setTimeout(()=>{c()},r.durationMs)})}}},{onChange:i}),[n,o]=e;return[{data:n,progressManager:t},o,e._internal]}function bA(i){le(i,"svelte-sme1z4",":root{--sc-color-rgb-light-50p:rgba(93, 93, 93, 0.5);--sc-color-rgb-light:#5d5d5d;--sc-color-hex-dark-50p:rgba(30, 30, 30, 0.5);--sc-color-hex-dark:#1e1e1e}.sc-carousel__carousel-container.svelte-sme1z4{display:flex;width:100%;flex-direction:column;align-items:center}.sc-carousel__content-container.svelte-sme1z4{position:relative;display:flex;width:100%}.sc-carousel__pages-window.svelte-sme1z4{flex:1;display:flex;overflow:hidden;box-sizing:border-box;position:relative}.sc-carousel__pages-container.svelte-sme1z4{width:100%;display:flex;transition-property:transform}.sc-carousel__arrow-container.svelte-sme1z4{padding:5px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.sc-carousel-progress__container.svelte-sme1z4{width:100%;height:5px;background-color:var(--sc-color-rgb-light-50p);position:absolute;bottom:0}.sc-carousel-button{all:unset;cursor:pointer}.sc-carousel-button:focus{outline:5px auto}")}const yA=i=>({currentPageIndex:i[0]&32,pagesCount:i[0]&1024,loaded:i[0]&64}),Ir=i=>({currentPageIndex:i[5],pagesCount:i[10],showPage:i[15],loaded:i[6]}),wA=i=>({loaded:i[0]&64,currentPageIndex:i[0]&32}),kr=i=>({showNextPage:i[14].showNextPage,loaded:i[6],currentPageIndex:i[5]}),CA=i=>({loaded:i[0]&64,currentPageIndex:i[0]&32}),xr=i=>({loaded:i[6],currentPageIndex:i[5]}),EA=i=>({loaded:i[0]&64,currentPageIndex:i[0]&32}),Dr=i=>({showPrevPage:i[14].showPrevPage,loaded:i[6],currentPageIndex:i[5]});function Lr(i){let t;const e=i[37].prev,n=en(e,i,i[36],Dr),o=n||PA(i);return{c(){o&&o.c()},m(s,r){o&&o.m(s,r),t=!0},p(s,r){n?n.p&&(!t||r[0]&96|r[1]&32)&&nn(n,e,s,s[36],t?tn(e,s[36],r,EA):on(s[36]),Dr):o&&o.p&&(!t||r[0]&36)&&o.p(s,t?r:[-1,-1])},i(s){t||(I(o,s),t=!0)},o(s){L(o,s),t=!1},d(s){o&&o.d(s)}}}function PA(i){let t,e,n;return e=new zl({props:{direction:"prev",disabled:!i[2]&&i[5]===0}}),e.$on("click",i[23]),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","sc-carousel__arrow-container svelte-sme1z4")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s[0]&36&&(r.disabled=!o[2]&&o[5]===0),e.$set(r)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function Sr(i){let t,e,n;return e=new S0({props:{value:i[7]}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","sc-carousel-progress__container svelte-sme1z4")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s[0]&128&&(r.value=o[7]),e.$set(r)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function Mr(i){let t;const e=i[37].next,n=en(e,i,i[36],kr),o=n||IA(i);return{c(){o&&o.c()},m(s,r){o&&o.m(s,r),t=!0},p(s,r){n?n.p&&(!t||r[0]&96|r[1]&32)&&nn(n,e,s,s[36],t?tn(e,s[36],r,wA):on(s[36]),kr):o&&o.p&&(!t||r[0]&1060)&&o.p(s,t?r:[-1,-1])},i(s){t||(I(o,s),t=!0)},o(s){L(o,s),t=!1},d(s){o&&o.d(s)}}}function IA(i){let t,e,n;return e=new zl({props:{direction:"next",disabled:!i[2]&&i[5]===i[10]-1}}),e.$on("click",i[14].showNextPage),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","sc-carousel__arrow-container svelte-sme1z4")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s[0]&1060&&(r.disabled=!o[2]&&o[5]===o[10]-1),e.$set(r)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function Tr(i){let t;const e=i[37].dots,n=en(e,i,i[36],Ir),o=n||kA(i);return{c(){o&&o.c()},m(s,r){o&&o.m(s,r),t=!0},p(s,r){n?n.p&&(!t||r[0]&1120|r[1]&32)&&nn(n,e,s,s[36],t?tn(e,s[36],r,yA):on(s[36]),Ir):o&&o.p&&(!t||r[0]&1056)&&o.p(s,t?r:[-1,-1])},i(s){t||(I(o,s),t=!0)},o(s){L(o,s),t=!1},d(s){o&&o.d(s)}}}function kA(i){let t,e;return t=new E0({props:{pagesCount:i[10],currentPageIndex:i[5]}}),t.$on("pageChange",i[41]),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o[0]&1024&&(s.pagesCount=n[10]),o[0]&32&&(s.currentPageIndex=n[5]),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function xA(i){let t,e,n,o,s,r,a,l,c,u,d,h,m=i[1]&&Lr(i);const A=i[37].default,v=en(A,i,i[36],xr);let p=i[3]&&Sr(i),g=i[1]&&Mr(i),b=i[4]&&Tr(i);return{c(){t=z("div"),e=z("div"),m&&m.c(),n=ee(),o=z("div"),s=z("div"),v&&v.c(),a=ee(),p&&p.c(),l=ee(),g&&g.c(),c=ee(),b&&b.c(),y(s,"class","sc-carousel__pages-container svelte-sme1z4"),T(s,"transform","translateX("+i[8]+"px)"),T(s,"transition-duration",i[9]+"ms"),T(s,"transition-timing-function",i[0]),y(o,"class","sc-carousel__pages-window svelte-sme1z4"),y(e,"class","sc-carousel__content-container svelte-sme1z4"),y(t,"class","sc-carousel__carousel-container svelte-sme1z4")},m(w,P){M(w,t,P),j(t,e),m&&m.m(e,null),j(e,n),j(e,o),j(o,s),v&&v.m(s,null),i[39](s),j(o,a),p&&p.m(o,null),i[40](o),j(e,l),g&&g.m(e,null),j(t,c),b&&b.m(t,null),u=!0,d||(h=[at(r=Q0.call(null,s,{thresholdProvider:i[38]})),ge(s,"swipeStart",i[16]),ge(s,"swipeMove",i[18]),ge(s,"swipeEnd",i[19]),ge(s,"swipeFailed",i[20]),ge(s,"swipeThresholdReached",i[17]),at(G0.call(null,o)),ge(o,"hovered",i[21]),at(U0.call(null,o)),ge(o,"tapped",i[22])],d=!0)},p(w,P){w[1]?m?(m.p(w,P),P[0]&2&&I(m,1)):(m=Lr(w),m.c(),I(m,1),m.m(e,n)):m&&(se(),L(m,1,1,()=>{m=null}),re()),v&&v.p&&(!u||P[0]&96|P[1]&32)&&nn(v,A,w,w[36],u?tn(A,w[36],P,CA):on(w[36]),xr),(!u||P[0]&256)&&T(s,"transform","translateX("+w[8]+"px)"),(!u||P[0]&512)&&T(s,"transition-duration",w[9]+"ms"),(!u||P[0]&1)&&T(s,"transition-timing-function",w[0]),r&&$t(r.update)&&P[0]&2048&&r.update.call(null,{thresholdProvider:w[38]}),w[3]?p?(p.p(w,P),P[0]&8&&I(p,1)):(p=Sr(w),p.c(),I(p,1),p.m(o,null)):p&&(se(),L(p,1,1,()=>{p=null}),re()),w[1]?g?(g.p(w,P),P[0]&2&&I(g,1)):(g=Mr(w),g.c(),I(g,1),g.m(e,null)):g&&(se(),L(g,1,1,()=>{g=null}),re()),w[4]?b?(b.p(w,P),P[0]&16&&I(b,1)):(b=Tr(w),b.c(),I(b,1),b.m(t,null)):b&&(se(),L(b,1,1,()=>{b=null}),re())},i(w){u||(I(m),I(v,w),I(p),I(g),I(b),u=!0)},o(w){L(m),L(v,w),L(p),L(g),L(b),u=!1},d(w){w&&S(t),m&&m.d(),v&&v.d(w),i[39](null),p&&p.d(),i[40](null),g&&g.d(),b&&b.d(),d=!1,He(h)}}}function DA(i,t,e){let{$$slots:n={},$$scope:o}=t,s=[],r,a,l=0,c=0,u=1;const[{data:d,progressManager:h},m,A]=vA((te,ve)=>{ro({currentPageIndex:()=>e(5,r=ve),progressValue:()=>e(7,a=ve),offset:()=>e(8,l=ve),durationMs:()=>e(9,c=ve),pagesCount:()=>e(10,u=ve),loaded:()=>e(6,s=ve)})(te)}),v=mi();let{timingFunction:p="ease-in-out"}=t,{arrows:g=!0}=t,{infinite:b=!0}=t,{initialPageIndex:w=0}=t,{duration:P=500}=t,{autoplay:x=!1}=t,{autoplayDuration:C=3e3}=t,{autoplayDirection:D=wt}=t,{pauseOnFocus:E=!1}=t,{autoplayProgressVisible:O=!1}=t,{dots:G=!0}=t,{swiping:X=!0}=t,{particlesToShow:H=1}=t,{particlesToScroll:B=1}=t;function F(te,ve){return W(this,null,function*(){const je=vn(ve,"animated",!0);if(typeof te!="number")throw new Error("pageIndex should be a number");yield m.showPage(te,{animated:je})})}function R(te){return W(this,null,function*(){const ve=vn(te,"animated",!0);yield m.showPrevPage({animated:ve})})}function N(te){return W(this,null,function*(){const ve=vn(te,"animated",!0);yield m.showNextPage({animated:ve})})}let _=0,$,Y;const ae=iA(({width:te})=>{e(11,_=te),d.particleWidth=_/d.particlesToShow,nA({particlesContainerChildren:Y.children,particleWidth:d.particleWidth}),m.offsetPage({animated:!1})});function he(){const{clonesToAppend:te,clonesToPrepend:ve}=oA({clonesCountHead:d.clonesCountHead,clonesCountTail:d.clonesCountTail,particlesContainerChildren:Y.children});sA({particlesContainer:Y,clonesToAppend:te,clonesToPrepend:ve})}Ue(()=>{W(this,null,function*(){yield Fo(),Y&&$&&(d.particlesCountWithoutClones=Y.children.length,yield Fo(),d.infinite&&he(),d.particlesCount=Y.children.length,m.showPage(w,{animated:!1}),ae.observe($))})}),Et(()=>{ae.disconnect(),h.reset()});function de(te){return W(this,null,function*(){yield m.showPage(te,{animated:!0})})}function pe(){!X||(d.durationMs=0)}function Pe(te){return W(this,null,function*(){!X||(yield ro({[wt]:m.showNextPage,[Jt]:m.showPrevPage})(te.detail.direction))})}function Ie(te){!X||(d.offset+=te.detail.dx)}function Me(){!X||m.showParticle(d.currentParticleIndex)}function ce(){return W(this,null,function*(){!X||(yield m.offsetPage({animated:!0}))})}function Ae(te){d.focused=te.detail.value}function Ee(){m.toggleFocused()}function ue(){m.showPrevPage()}const Xe=()=>_/3;function it(te){Ve[te?"unshift":"push"](()=>{Y=te,e(13,Y)})}function be(te){Ve[te?"unshift":"push"](()=>{$=te,e(12,$)})}const Je=te=>de(te.detail);return i.$$set=te=>{"timingFunction"in te&&e(0,p=te.timingFunction),"arrows"in te&&e(1,g=te.arrows),"infinite"in te&&e(2,b=te.infinite),"initialPageIndex"in te&&e(24,w=te.initialPageIndex),"duration"in te&&e(25,P=te.duration),"autoplay"in te&&e(26,x=te.autoplay),"autoplayDuration"in te&&e(27,C=te.autoplayDuration),"autoplayDirection"in te&&e(28,D=te.autoplayDirection),"pauseOnFocus"in te&&e(29,E=te.pauseOnFocus),"autoplayProgressVisible"in te&&e(3,O=te.autoplayProgressVisible),"dots"in te&&e(4,G=te.dots),"swiping"in te&&e(30,X=te.swiping),"particlesToShow"in te&&e(31,H=te.particlesToShow),"particlesToScroll"in te&&e(32,B=te.particlesToScroll),"$$scope"in te&&e(36,o=te.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&32&&v("pageChange",r),i.$$.dirty[0]&4&&(d.infinite=b),i.$$.dirty[0]&33554432&&(d.durationMsInit=P),i.$$.dirty[0]&67108864&&(d.autoplay=x),i.$$.dirty[0]&134217728&&(d.autoplayDuration=C),i.$$.dirty[0]&268435456&&(d.autoplayDirection=D),i.$$.dirty[0]&536870912&&(d.pauseOnFocus=E),i.$$.dirty[1]&1&&(d.particlesToShowInit=H),i.$$.dirty[1]&2&&(d.particlesToScrollInit=B)},[p,g,b,O,G,r,s,a,l,c,u,_,$,Y,m,de,pe,Pe,Ie,Me,ce,Ae,Ee,ue,w,P,x,C,D,E,X,H,B,F,R,N,o,n,Xe,it,be,Je]}class LA extends oe{constructor(t){super(),ie(this,t,DA,xA,ne,{timingFunction:0,arrows:1,infinite:2,initialPageIndex:24,duration:25,autoplay:26,autoplayDuration:27,autoplayDirection:28,pauseOnFocus:29,autoplayProgressVisible:3,dots:4,swiping:30,particlesToShow:31,particlesToScroll:32,goTo:33,goToPrev:34,goToNext:35},bA,[-1,-1])}get goTo(){return this.$$.ctx[33]}get goToPrev(){return this.$$.ctx[34]}get goToNext(){return this.$$.ctx[35]}}function SA(i){le(i,"svelte-159ski6",".media-item.svelte-159ski6.svelte-159ski6{position:relative;height:100%}.media-content.svelte-159ski6.svelte-159ski6{position:relative;pointer-events:auto;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.media-content.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none}.video-icon.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-159ski6.svelte-159ski6{display:none;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none;display:block}.video-icon.svelte-159ski6.svelte-159ski6{pointer-events:auto}.video-icon.large.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem}.video-icon.small.svelte-159ski6.svelte-159ski6{width:1.75rem;height:1.75rem}.video-icon.svelte-159ski6 .video-icon-img.svelte-159ski6{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-159ski6 .video-icon-img.canPlay.svelte-159ski6{cursor:pointer}")}function zr(i){let t;function e(s,r){if(s[2].type==="Image")return TA;if(s[2].type==="Video")return MA}let n=e(i),o=n&&n(i);return{c(){t=z("div"),o&&o.c(),y(t,"class","media-item svelte-159ski6"),y(t,"draggable","false")},m(s,r){M(s,t,r),o&&o.m(t,null)},p(s,r){n===(n=e(s))&&o?o.p(s,r):(o&&o.d(1),o=n&&n(s),o&&(o.c(),o.m(t,null)))},d(s){s&&S(t),o&&o.d()}}}function MA(i){let t,e,n,o,s,r;function a(u,d){return u[7]&&u[2].videoCoverUrl?BA:zA}let l=a(i),c=l(i);return{c(){c.c(),t=ee(),e=z("div"),n=z("div"),o=z("div"),y(o,"class","video-icon-img svelte-159ski6"),T(o,"background-image","url("+i[18]()+")"),q(o,"canPlay",i[5]),y(n,"class","video-icon svelte-159ski6"),q(n,"large",i[4]==="large"),q(n,"small",i[4]==="small"),y(e,"class","video-play-button-container svelte-159ski6"),q(e,"showPlayButton",i[9])},m(u,d){c.m(u,d),M(u,t,d),M(u,e,d),j(e,n),j(n,o),s||(r=ge(o,"click",i[19]),s=!0)},p(u,d){l===(l=a(u))&&c?c.p(u,d):(c.d(1),c=l(u),c&&(c.c(),c.m(t.parentNode,t))),d&8&&T(o,"background-image","url("+u[18]()+")"),d&32&&q(o,"canPlay",u[5]),d&16&&q(n,"large",u[4]==="large"),d&16&&q(n,"small",u[4]==="small"),d&512&&q(e,"showPlayButton",u[9])},d(u){c.d(u),u&&S(t),u&&S(e),s=!1,r()}}}function TA(i){let t,e,n,o;return{c(){t=z("img"),y(t,"class","media-content svelte-159ski6"),y(t,"style",e=`object-fit: ${i[6]};`),Ne(t.src,n=i[2].url)||y(t,"src",n),y(t,"alt",o=i[2].name),y(t,"draggable",!1)},m(s,r){M(s,t,r)},p(s,r){r&64&&e!==(e=`object-fit: ${s[6]};`)&&y(t,"style",e),r&4&&!Ne(t.src,n=s[2].url)&&y(t,"src",n),r&4&&o!==(o=s[2].name)&&y(t,"alt",o)},d(s){s&&S(t)}}}function zA(i){let t,e,n,o,s,r,a;return{c(){t=z("video"),y(t,"class","media-content svelte-159ski6"),y(t,"style",e=`object-fit: ${i[6]};`),Ne(t.src,n=i[2].videoCoverUrl?i[2].url:i[2].url+"#t=0.1")||y(t,"src",n),y(t,"poster",o=i[2].videoCoverUrl),y(t,"preload",s=i[2].videoCoverUrl?"none":"auto"),y(t,"disablepictureinpicture",""),t.playsInline=!0,y(t,"paused",""),t.muted=!0,y(t,"draggable",!1),t.loop=!1,y(t,"crossorigin",""),t.controls=!1,q(t,"showPlayButton",i[9])},m(l,c){M(l,t,c),i[17](t),r||(a=[ge(t,"play",i[14]),ge(t,"pause",i[15]),ge(t,"click",i[16])],r=!0)},p(l,c){c&64&&e!==(e=`object-fit: ${l[6]};`)&&y(t,"style",e),c&4&&!Ne(t.src,n=l[2].videoCoverUrl?l[2].url:l[2].url+"#t=0.1")&&y(t,"src",n),c&4&&o!==(o=l[2].videoCoverUrl)&&y(t,"poster",o),c&4&&s!==(s=l[2].videoCoverUrl?"none":"auto")&&y(t,"preload",s),c&512&&q(t,"showPlayButton",l[9])},d(l){l&&S(t),i[17](null),r=!1,He(a)}}}function BA(i){let t,e,n,o;return{c(){t=z("img"),y(t,"class","media-content svelte-159ski6"),y(t,"style",e=`object-fit: ${i[6]};`),Ne(t.src,n=i[2].videoCoverUrl)||y(t,"src",n),y(t,"alt",o=i[2].name),y(t,"draggable",!1)},m(s,r){M(s,t,r)},p(s,r){r&64&&e!==(e=`object-fit: ${s[6]};`)&&y(t,"style",e),r&4&&!Ne(t.src,n=s[2].videoCoverUrl)&&y(t,"src",n),r&4&&o!==(o=s[2].name)&&y(t,"alt",o)},d(s){s&&S(t)}}}function jA(i){let t,e=i[2]&&zr(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),M(n,t,o)},p(n,[o]){n[2]?e?e.p(n,o):(e=zr(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:U,o:U,d(n){e&&e.d(n),n&&S(t)}}}function VA(i,t,e){let n,{mediaInstance:o={paused:!0}}=t,{tag:s}=t,{media:r}=t,{playButtonIfNeed:a="withoutText"}=t,{playButtonSizeIfNeed:l="small"}=t,{canPlay:c=!0}=t,{objectFit:u="fill"}=t,{disableVideoIfHavePoster:d=!1}=t,h,m=!0,A=!1;function v(){e(12,A=(r==null?void 0:r.type)==="Video"&&Boolean(r.videoCoverUrl))}const p=St("mediaStore"),g=St("hooks"),b=()=>{A||(h==null||h.play(),h==null||h.pause(),e(12,A=!0))};g.on("loadVideoFirstFrame",b),Ue(()=>{p.subscribe(({currentMediaElement:O})=>{O!==h&&(h==null||h.pause())})});const w=O=>{e(9,m=!1),e(0,o.paused=!1,o),h&&p.set({currentMediaElement:h}),g.emit("playStateChange",{event:O,state:"playing",tag:s,mediaInstance:h})},P=O=>{e(9,m=!0),e(0,o.paused=!0,o),g.emit("playStateChange",{event:O,state:"paused",tag:s,mediaInstance:h})},x=O=>{h&&h.pause()};function C(O){Ve[O?"unshift":"push"](()=>{h=O,e(8,h)})}const D=()=>a==="withText"?Vg:a==="withoutText"?Og:a,E=O=>{!c||h&&(e(8,h.muted=!1,h),h.play())};return i.$$set=O=>{"mediaInstance"in O&&e(0,o=O.mediaInstance),"tag"in O&&e(1,s=O.tag),"media"in O&&e(2,r=O.media),"playButtonIfNeed"in O&&e(3,a=O.playButtonIfNeed),"playButtonSizeIfNeed"in O&&e(4,l=O.playButtonSizeIfNeed),"canPlay"in O&&e(5,c=O.canPlay),"objectFit"in O&&e(6,u=O.objectFit),"disableVideoIfHavePoster"in O&&e(7,d=O.disableVideoIfHavePoster)},i.$$.update=()=>{if(i.$$.dirty&4&&e(13,n=r==null?void 0:r.url),i.$$.dirty&8192&&Boolean(n)&&v(),i.$$.dirty&256&&h&&e(9,m=h.paused),i.$$.dirty&4356&&(r==null?void 0:r.type)==="Video"&&!A){const O=navigator.userAgent.toLowerCase().indexOf("micromessenger")!==-1,X=navigator.userAgent.toLowerCase().indexOf("iphone")!==-1&&O;h&&X&&h.paused&&(document.removeEventListener("WeixinJSBridgeReady",b),document.removeEventListener("touchstart",b),document.removeEventListener("click",b),document.addEventListener("WeixinJSBridgeReady",b),document.addEventListener("touchstart",b),document.addEventListener("click",b))}},[o,s,r,a,l,c,u,d,h,m,p,g,A,n,w,P,x,C,D,E]}class Vl extends oe{constructor(t){super(),ie(this,t,VA,jA,ne,{mediaInstance:0,tag:1,media:2,playButtonIfNeed:3,playButtonSizeIfNeed:4,canPlay:5,objectFit:6,disableVideoIfHavePoster:7},SA)}}function OA(i){le(i,"svelte-1mrbqlg",".media-list-wrapper.svelte-1mrbqlg.svelte-1mrbqlg{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}.media-list-wrapper.svelte-1mrbqlg .media-list.svelte-1mrbqlg{position:relative;pointer-events:auto;height:100%;left:50%;top:50%;transform:translate(-50%, -50%)}.media-list-wrapper.svelte-1mrbqlg .media-list.svelte-1mrbqlg .sc-carousel__carousel-container,.media-list-wrapper.svelte-1mrbqlg .media-list.svelte-1mrbqlg .sc-carousel__content-container{height:100%}")}function Br(i,t,e){const n=i.slice();return n[21]=t[e],n[22]=t,n[23]=e,n}function jr(i){let t,e,n,o,s,r,a;const l=[QA,RA],c=[];function u(d,h){return d[12]&&d[10].length>1?0:1}return n=u(i),o=c[n]=l[n](i),{c(){t=z("div"),e=z("div"),o.c(),y(e,"class","media-list svelte-1mrbqlg"),q(e,"carouselEnabled",i[12]),y(t,"class","media-list-wrapper svelte-1mrbqlg"),q(t,"unfolded",i[5])},m(d,h){M(d,t,h),j(t,e),c[n].m(e,null),a=!0},p(d,h){i=d;let m=n;n=u(i),n===m?c[n].p(i,h):(se(),L(c[m],1,1,()=>{c[m]=null}),re(),o=c[n],o?o.p(i,h):(o=c[n]=l[n](i),o.c()),I(o,1),o.m(e,null)),(!a||h&4096)&&q(e,"carouselEnabled",i[12]),(!a||h&32)&&q(t,"unfolded",i[5])},i(d){a||(I(o),d&&Oe(()=>{r&&r.end(1),s=Tt(t,Wo,i[6]?{y:4,duration:i[4],delay:i[2],easing:At}:void 0),s.start()}),a=!0)},o(d){L(o),s&&s.invalidate(),d&&(r=rn(t,Wo,i[6]?{y:4,duration:i[4],delay:i[3],easing:At}:void 0)),a=!1},d(d){d&&S(t),c[n].d(),d&&r&&r.end()}}}function RA(i){let t,e;const n=[{media:i[1][0]},i[7],{tag:i[0]}];let o={};for(let s=0;s<n.length;s+=1)o=Be(o,n[s]);return t=new Vl({props:o}),{c(){K(t.$$.fragment)},m(s,r){J(t,s,r),e=!0},p(s,r){const a=r&131?Re(n,[r&2&&{media:s[1][0]},r&128&&Fa(s[7]),r&1&&{tag:s[0]}]):{};t.$set(a)},i(s){e||(I(t.$$.fragment,s),e=!0)},o(s){L(t.$$.fragment,s),e=!1},d(s){Z(t,s)}}}function QA(i){let t,e,n={dots:!1,arrows:!1,$$slots:{default:[FA]},$$scope:{ctx:i}};return t=new LA({props:n}),i[17](t),t.$on("pageChange",i[18]),{c(){K(t.$$.fragment)},m(o,s){J(t,o,s),e=!0},p(o,s){const r={};s&16778625&&(r.$$scope={dirty:s,ctx:o}),t.$set(r)},i(o){e||(I(t.$$.fragment,o),e=!0)},o(o){L(t.$$.fragment,o),e=!1},d(o){i[17](null),Z(t,o)}}}function Vr(i){let t,e,n;const o=[i[7],{media:i[21]},{tag:i[0]}];function s(a){i[16](a,i[23])}let r={};for(let a=0;a<o.length;a+=1)r=Be(r,o[a]);return i[8][i[23]]!==void 0&&(r.mediaInstance=i[8][i[23]]),t=new Vl({props:r}),Ve.push(()=>ru(t,"mediaInstance",s)),{c(){K(t.$$.fragment)},m(a,l){J(t,a,l),n=!0},p(a,l){i=a;const c=l&1153?Re(o,[l&128&&Fa(i[7]),l&1024&&{media:i[21]},l&1&&{tag:i[0]}]):{};!e&&l&256&&(e=!0,c.mediaInstance=i[8][i[23]],iu(()=>e=!1)),t.$set(c)},i(a){n||(I(t.$$.fragment,a),n=!0)},o(a){L(t.$$.fragment,a),n=!1},d(a){Z(t,a)}}}function FA(i){let t,e,n=i[10],o=[];for(let r=0;r<n.length;r+=1)o[r]=Vr(Br(i,n,r));const s=r=>L(o[r],1,1,()=>{o[r]=null});return{c(){for(let r=0;r<o.length;r+=1)o[r].c();t=me()},m(r,a){for(let l=0;l<o.length;l+=1)o[l].m(r,a);M(r,t,a),e=!0},p(r,a){if(a&1409){n=r[10];let l;for(l=0;l<n.length;l+=1){const c=Br(r,n,l);o[l]?(o[l].p(c,a),I(o[l],1)):(o[l]=Vr(c),o[l].c(),I(o[l],1),o[l].m(t.parentNode,t))}for(se(),l=n.length;l<o.length;l+=1)s(l);re()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)I(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)L(o[a]);e=!1},d(r){ct(o,r),r&&S(t)}}}function HA(i){let t,e,n=i[5]&&jr(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[5]?n?(n.p(o,s),s&32&&I(n,1)):(n=jr(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function _A(i,t,e){let n,o,s,r,{tag:a}=t,{mediaData:l}=t,{inDelay:c=0}=t,{outDelay:u=0}=t,{duration:d=0}=t,{unfolded:h=!0}=t,{animation:m=!0}=t,{mediaItemConfig:A}=t,{enableCarousel:v=!0}=t,{autoplayConfig:p={autoplay:!0,autoplayVideo:!1}}=t,g=[],b,w=null;const P=St("mediaStore");Ue(()=>{w=setInterval(()=>{r&&(b==null||b.goToNext())},3e3)}),Et(()=>{clearInterval(w)});function x(E,O){i.$$.not_equal(g[O],E)&&(g[O]=E,e(8,g))}function C(E){Ve[E?"unshift":"push"](()=>{b=E,e(11,b)})}const D=E=>{n||P.set({currentMediaElement:null})};return i.$$set=E=>{"tag"in E&&e(0,a=E.tag),"mediaData"in E&&e(1,l=E.mediaData),"inDelay"in E&&e(2,c=E.inDelay),"outDelay"in E&&e(3,u=E.outDelay),"duration"in E&&e(4,d=E.duration),"unfolded"in E&&e(5,h=E.unfolded),"animation"in E&&e(6,m=E.animation),"mediaItemConfig"in E&&e(7,A=E.mediaItemConfig),"enableCarousel"in E&&e(14,v=E.enableCarousel),"autoplayConfig"in E&&e(15,p=E.autoplayConfig)},i.$$.update=()=>{i.$$.dirty&256&&e(9,n=g.every(E=>E.paused)),i.$$.dirty&16386&&e(12,o=v&&(l==null?void 0:l.length)>1),i.$$.dirty&2&&e(10,s=l),i.$$.dirty&34304&&(r=s.length>1&&p.autoplay&&n)},[a,l,c,u,d,h,m,A,g,n,s,b,o,P,v,p,x,C,D]}class Ol extends oe{constructor(t){super(),ie(this,t,_A,HA,ne,{tag:0,mediaData:1,inDelay:2,outDelay:3,duration:4,unfolded:5,animation:6,mediaItemConfig:7,enableCarousel:14,autoplayConfig:15},OA)}}function GA(i){le(i,"svelte-1f7m1lj",".line.svelte-1f7m1lj{position:absolute;width:6.5625rem;height:1.3125rem;transform:translateY(-100%)}.text.svelte-1f7m1lj{position:absolute;width:6.25rem;left:1rem;bottom:0.0625rem;font-weight:600}.media-wrapper.svelte-1f7m1lj{position:absolute;left:0.875rem;top:-5.3125rem;width:5.625rem;height:3.75rem;font-weight:600}")}function Or(i){let t,e,n,o,s,r,a,l;t=new nt({props:{visible:i[3],left:61,bottom:57,width:2,blurRadius:150,spreadRadius:75}}),o=new p0({props:{unfolded:i[3],outDelay:400}});let c=i[2]&&Rr(i),u=i[1]&&Qr(i);return{c(){K(t.$$.fragment),e=ee(),n=z("div"),K(o.$$.fragment),s=ee(),c&&c.c(),r=ee(),u&&u.c(),a=me(),y(n,"class","line svelte-1f7m1lj")},m(d,h){J(t,d,h),M(d,e,h),M(d,n,h),J(o,n,null),M(d,s,h),c&&c.m(d,h),M(d,r,h),u&&u.m(d,h),M(d,a,h),l=!0},p(d,h){const m={};h&8&&(m.visible=d[3]),t.$set(m);const A={};h&8&&(A.unfolded=d[3]),o.$set(A),d[2]?c?(c.p(d,h),h&4&&I(c,1)):(c=Rr(d),c.c(),I(c,1),c.m(r.parentNode,r)):c&&(se(),L(c,1,1,()=>{c=null}),re()),d[1]?u?(u.p(d,h),h&2&&I(u,1)):(u=Qr(d),u.c(),I(u,1),u.m(a.parentNode,a)):u&&(se(),L(u,1,1,()=>{u=null}),re())},i(d){l||(I(t.$$.fragment,d),I(o.$$.fragment,d),I(c),I(u),l=!0)},o(d){L(t.$$.fragment,d),L(o.$$.fragment,d),L(c),L(u),l=!1},d(d){Z(t,d),d&&S(e),d&&S(n),Z(o),d&&S(s),c&&c.d(d),d&&S(r),u&&u.d(d),d&&S(a)}}}function Rr(i){let t,e,n;return e=new Ml({props:{unfolded:i[3],content:i[2],inDelay:500}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","text svelte-1f7m1lj")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s&8&&(r.unfolded=o[3]),s&4&&(r.content=o[2]),e.$set(r)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function Qr(i){let t,e,n;return e=new Ol({props:{autoplayConfig:{autoplay:!1},unfolded:i[3],mediaData:i[1],tag:i[0],enableCarousel:!1,mediaItemConfig:{canPlay:!1,playButtonSizeIfNeed:"small",disableVideoIfHavePoster:!0},inDelay:500,duration:500}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","media-wrapper svelte-1f7m1lj")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s&8&&(r.unfolded=o[3]),s&2&&(r.mediaData=o[1]),s&1&&(r.tag=o[0]),e.$set(r)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function WA(i){let t,e,n=i[0].state&&Or(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&I(n,1)):(n=Or(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function NA(i,t,e){let n,o,s,r;var a,l,c;let{tag:u}=t;return i.$$set=d=>{"tag"in d&&e(0,u=d.tag)},i.$$.update=()=>{i.$$.dirty&1&&e(3,n=u.state?u.state.unfolded:!1),i.$$.dirty&49&&e(7,o=e(5,l=e(4,a=u.data.title)!==null&&a!==void 0?a:u.data.text)!==null&&l!==void 0?l:""),i.$$.dirty&192&&e(2,s=(e(6,c=o.length)!==null&&c!==void 0?c:0)>7?o.substring(0,6)+"...":o),i.$$.dirty&1&&e(1,r=u.data.mediaData)},[u,r,s,n,a,l,c,o]}class XA extends oe{constructor(t){super(),ie(this,t,NA,WA,ne,{tag:0},GA)}}function YA(i){le(i,"svelte-sezqcq",'@charset "UTF-8";.svelte-sezqcq.svelte-sezqcq{box-sizing:border-box}.marketing.svelte-sezqcq.svelte-sezqcq{transform:translateY(-100%)}.marketing.svelte-sezqcq .line.svelte-sezqcq{position:absolute;height:1.875rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.marketing.svelte-sezqcq .content.svelte-sezqcq{position:relative;min-width:7.5rem;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-property:opacity, transform;transition-duration:500ms}.marketing.svelte-sezqcq .content .headerImage.svelte-sezqcq{position:absolute;width:100%;top:0.25rem;transform:translateY(-100%);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem}.title-wrapper.svelte-sezqcq.svelte-sezqcq{position:relative;width:100%;height:1.125rem}.title-wrapper.svelte-sezqcq .title.svelte-sezqcq{border-radius:0.25rem;width:100%;padding-left:0.625rem;padding-right:0.625rem}.title-wrapper.svelte-sezqcq .title .text.svelte-sezqcq{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;font-weight:bold;line-height:1.125rem}.footer.svelte-sezqcq.svelte-sezqcq{position:relative;padding:0.5rem 0.625rem 0 0;width:100%;display:flex;align-items:center}.footer.svelte-sezqcq .goto-button.svelte-sezqcq{display:flex;align-self:flex-end;flex-wrap:wrap;align-items:center;overflow:hidden;height:0.875rem}.footer.svelte-sezqcq .goto-button .gap.svelte-sezqcq{height:100%;width:0.625rem}.footer.svelte-sezqcq .goto-button .text.svelte-sezqcq{display:block;height:100%;font-size:0.625rem}.footer.svelte-sezqcq .arrow-wrapper.svelte-sezqcq{height:0.875rem;display:flex;align-self:flex-end;flex-grow:0;flex-shrink:0;align-items:center;margin-left:0.25rem}.footer.svelte-sezqcq .arrow-wrapper svg.arrow.svelte-sezqcq{width:0.375rem;height:0.625rem}.footer.svelte-sezqcq .price.svelte-sezqcq{flex-shrink:0;margin-right:auto;white-space:nowrap;display:flex;align-items:baseline;margin-left:0.625rem}.footer.svelte-sezqcq .price .value.svelte-sezqcq{position:relative;font-size:0.875rem;line-height:1rem;font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0rem}.footer.svelte-sezqcq .price .unit.svelte-sezqcq{padding-left:0.125rem;font-size:0.625rem}.tags-wrapper.svelte-sezqcq.svelte-sezqcq{position:relative;overflow:hidden;height:1rem;margin-top:0.25rem}.tags-wrapper.svelte-sezqcq .tags.svelte-sezqcq{position:relative;display:inline-flex;max-width:100%;flex-wrap:wrap;padding-left:0.625rem;padding-right:0.375rem}.tags-wrapper.svelte-sezqcq .tags .tag.svelte-sezqcq{display:flex;align-items:center;justify-content:center;flex-shrink:0;flex-grow:0;font-size:0.625rem;height:1rem;margin-right:0.25rem;margin-bottom:0.625rem;padding:0 0.25rem;border-radius:0.125rem;max-width:100%;text-overflow:ellipsis;overflow:hidden}.marketing.light.svelte-sezqcq .content.svelte-sezqcq{background-color:white}.marketing.light.svelte-sezqcq .content .title-wrapper .title .text.svelte-sezqcq{color:rgba(0, 0, 0, 0.8)}.marketing.light.svelte-sezqcq .content .tags-wrapper .tags .primary-tag.svelte-sezqcq{background:rgba(234, 208, 154, 0.5);color:#946700}.marketing.light.svelte-sezqcq .content .tags-wrapper .tags .secondary-tag.svelte-sezqcq{background:rgba(0, 0, 0, 0.06);color:rgba(0, 0, 0, 0.5)}.marketing.light.svelte-sezqcq .content .footer.svelte-sezqcq{color:#946700;fill:#946700}.marketing.dark.svelte-sezqcq .content.svelte-sezqcq{background-color:rgba(0, 0, 0, 0.5)}.marketing.dark.svelte-sezqcq .content .title-wrapper .title .text.svelte-sezqcq{color:white}.marketing.dark.svelte-sezqcq .content .tags-wrapper .tags .primary-tag.svelte-sezqcq{background:rgba(234, 208, 154, 0.5);color:white}.marketing.dark.svelte-sezqcq .content .tags-wrapper .tags .secondary-tag.svelte-sezqcq{background:rgba(255, 255, 255, 0.15);color:rgba(255, 255, 255, 0.85)}.marketing.dark.svelte-sezqcq .content .footer.svelte-sezqcq{color:#ead09a;fill:#ead09a}.marketing.unfolded.svelte-sezqcq .line.svelte-sezqcq{transform:translateX(-50%) scale(1, 1)}.marketing.folded.svelte-sezqcq .line.svelte-sezqcq{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.marketing.unfolded.svelte-sezqcq .content.svelte-sezqcq{opacity:1}.marketing.folded.svelte-sezqcq .content.svelte-sezqcq{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}')}function Fr(i,t,e){const n=i.slice();return n[0]=t[e],n}function Hr(i,t,e){const n=i.slice();return n[0]=t[e],n}function _r(i){let t,e;return{c(){t=z("img"),y(t,"class","headerImage svelte-sezqcq"),Ne(t.src,e=i[3].headerPictureUrl)||y(t,"src",e),y(t,"alt","")},m(n,o){M(n,t,o)},p(n,o){o&8&&!Ne(t.src,e=n[3].headerPictureUrl)&&y(t,"src",e)},d(n){n&&S(t)}}}function Gr(i){let t,e,n,o,s=i[2]||[],r=[];for(let c=0;c<s.length;c+=1)r[c]=Wr(Hr(i,s,c));let a=i[5]||[],l=[];for(let c=0;c<a.length;c+=1)l[c]=Nr(Fr(i,a,c));return{c(){t=z("div"),e=z("div");for(let c=0;c<r.length;c+=1)r[c].c();n=ee();for(let c=0;c<l.length;c+=1)l[c].c();y(e,"class","tags svelte-sezqcq"),Oe(()=>i[17].call(e)),y(t,"class","tags-wrapper svelte-sezqcq")},m(c,u){M(c,t,u),j(t,e);for(let d=0;d<r.length;d+=1)r[d].m(e,null);j(e,n);for(let d=0;d<l.length;d+=1)l[d].m(e,null);o=fi(e,i[17].bind(e))},p(c,u){if(u&4){s=c[2]||[];let d;for(d=0;d<s.length;d+=1){const h=Hr(c,s,d);r[d]?r[d].p(h,u):(r[d]=Wr(h),r[d].c(),r[d].m(e,n))}for(;d<r.length;d+=1)r[d].d(1);r.length=s.length}if(u&32){a=c[5]||[];let d;for(d=0;d<a.length;d+=1){const h=Fr(c,a,d);l[d]?l[d].p(h,u):(l[d]=Nr(h),l[d].c(),l[d].m(e,null))}for(;d<l.length;d+=1)l[d].d(1);l.length=a.length}},d(c){c&&S(t),ct(r,c),ct(l,c),o()}}}function Wr(i){let t,e=i[0]+"",n;return{c(){t=z("div"),n=ke(e),y(t,"class","tag primary-tag svelte-sezqcq"),T(t,"min-width",xo)},m(o,s){M(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[0]+"")&&Se(n,e)},d(o){o&&S(t)}}}function Nr(i){let t,e=i[0]+"",n;return{c(){t=z("div"),n=ke(e),y(t,"class","tag secondary-tag svelte-sezqcq"),T(t,"min-width",xo)},m(o,s){M(o,t,s),j(t,n)},p(o,s){s&32&&e!==(e=o[0]+"")&&Se(n,e)},d(o){o&&S(t)}}}function Xr(i){let t,e,n=i[7]&&Yr(i),o=i[3].highlightText&&qr(i);return{c(){t=z("div"),n&&n.c(),e=ee(),o&&o.c(),y(t,"class","footer svelte-sezqcq")},m(s,r){M(s,t,r),n&&n.m(t,null),j(t,e),o&&o.m(t,null)},p(s,r){s[7]?n?n.p(s,r):(n=Yr(s),n.c(),n.m(t,e)):n&&(n.d(1),n=null),s[3].highlightText?o?o.p(s,r):(o=qr(s),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(s){s&&S(t),n&&n.d(),o&&o.d()}}}function Yr(i){let t,e,n=i[3].price.value+"",o,s,r=i[3].price.unit&&Ur(i);return{c(){t=z("div"),e=z("span"),o=ke(n),s=ee(),r&&r.c(),y(e,"class","value svelte-sezqcq"),y(t,"class","price svelte-sezqcq")},m(a,l){M(a,t,l),j(t,e),j(e,o),j(t,s),r&&r.m(t,null)},p(a,l){l&8&&n!==(n=a[3].price.value+"")&&Se(o,n),a[3].price.unit?r?r.p(a,l):(r=Ur(a),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(a){a&&S(t),r&&r.d()}}}function Ur(i){let t,e=i[3].price.unit+"",n;return{c(){t=z("span"),n=ke(e),y(t,"class","unit svelte-sezqcq")},m(o,s){M(o,t,s),j(t,n)},p(o,s){s&8&&e!==(e=o[3].price.unit+"")&&Se(n,e)},d(o){o&&S(t)}}}function qr(i){let t,e,n,o,s=i[3].highlightText+"",r,a,l;return{c(){t=z("div"),e=z("div"),n=ee(),o=z("span"),r=ke(s),a=ee(),l=z("div"),l.innerHTML='<svg class="arrow svelte-sezqcq" viewBox="0 0 6 9"><g transform="translate(-3, -2)" fill-rule="nonzero" class="svelte-sezqcq"><path d="M4.43868724,2.12056563 C4.28121824,1.95989074 4.02582143,1.95979988 3.86824251,2.1203627 C3.72498894,2.26632889 3.71189225,2.49481723 3.82900374,2.65587166 L6.57092402,5.92894326 C6.72651763,6.11470411 6.72651763,6.38529589 6.57092402,6.57105674 L3.86804348,9.79798499 C3.72488984,9.94405307 3.71194952,10.1725507 3.8291712,10.3335217 L3.86824251,10.3796373 C4.01149607,10.5256035 4.23559087,10.5387981 4.39346025,10.4192733 L4.43868724,10.3794344 L8.1144599,6.5985342 C8.30312347,6.40447482 8.30312347,6.09552518 8.1144599,5.9014658 L4.43868724,2.12056563 Z" class="svelte-sezqcq"></path></g></svg>',y(e,"class","gap svelte-sezqcq"),y(o,"class","text svelte-sezqcq"),y(t,"class","goto-button goto-icon svelte-sezqcq"),y(l,"class","arrow-wrapper svelte-sezqcq")},m(c,u){M(c,t,u),j(t,e),j(t,n),j(t,o),j(o,r),M(c,a,u),M(c,l,u)},p(c,u){u&8&&s!==(s=c[3].highlightText+"")&&Se(r,s)},d(c){c&&S(t),c&&S(a),c&&S(l)}}}function UA(i){var P,x;let t,e,n,o,s,r,a,l,c,u,d=i[3].title+"",h,m,A,v,p;e=new nt({props:{visible:i[4],outDelay:500,left:61,bottom:87,blurRadius:150,spreadRadius:75}});let g=i[3].headerPictureUrl&&_r(i),b=((P=i[2].length)!=null?P:0)+((x=i[5].length)!=null?x:0)>0&&Gr(i),w=(i[7]||i[3].highlightText)&&Xr(i);return{c(){t=z("div"),K(e.$$.fragment),n=ee(),o=z("div"),s=ee(),r=z("div"),g&&g.c(),a=ee(),l=z("div"),c=z("div"),u=z("div"),h=ke(d),m=ee(),b&&b.c(),A=ee(),w&&w.c(),y(o,"class","line svelte-sezqcq"),T(o,"transition-delay",i[4]?Nn+"ms":Xn+Zr-Jr-40+"ms"),y(u,"class","text svelte-sezqcq"),y(c,"class","title svelte-sezqcq"),y(l,"class","title-wrapper svelte-sezqcq"),y(r,"class","content svelte-sezqcq"),T(r,"max-width",tt(i[9])),T(r,"transition-delay",i[4]?Nn+Xn+"ms":"0ms"),y(t,"class",v=Te(`marketing ${i[6]}`)+" svelte-sezqcq"),q(t,"unfolded",i[4]),q(t,"folded",i[8])},m(C,D){M(C,t,D),J(e,t,null),j(t,n),j(t,o),j(t,s),j(t,r),g&&g.m(r,null),j(r,a),j(r,l),j(l,c),j(c,u),j(u,h),j(r,m),b&&b.m(r,null),j(r,A),w&&w.m(r,null),p=!0},p(C,[D]){var O,G;const E={};D&16&&(E.visible=C[4]),e.$set(E),D&16&&T(o,"transition-delay",C[4]?Nn+"ms":Xn+Zr-Jr-40+"ms"),C[3].headerPictureUrl?g?g.p(C,D):(g=_r(C),g.c(),g.m(r,a)):g&&(g.d(1),g=null),(!p||D&8)&&d!==(d=C[3].title+"")&&Se(h,d),((O=C[2].length)!=null?O:0)+((G=C[5].length)!=null?G:0)>0?b?b.p(C,D):(b=Gr(C),b.c(),b.m(r,A)):b&&(b.d(1),b=null),C[7]||C[3].highlightText?w?w.p(C,D):(w=Xr(C),w.c(),w.m(r,null)):w&&(w.d(1),w=null),D&16&&T(r,"transition-delay",C[4]?Nn+Xn+"ms":"0ms"),(!p||D&64&&v!==(v=Te(`marketing ${C[6]}`)+" svelte-sezqcq"))&&y(t,"class",v),(!p||D&80)&&q(t,"unfolded",C[4]),(!p||D&320)&&q(t,"folded",C[8])},i(C){p||(I(e.$$.fragment,C),p=!0)},o(C){L(e.$$.fragment,C),p=!1},d(C){C&&S(t),Z(e),g&&g.d(),b&&b.d(),w&&w.d()}}}const xo=40,Nn=400,Jr=500,Xn=180,Zr=500;function qA(i,t,e){let n,o,s,r,a,l,c,u;var d,h,m,A,v,p;let{tag:g}=t,b,w=(()=>{var x;const C=(x=g.data.limitWidth)!==null&&x!==void 0?x:!0;if(typeof C=="number")return C;if(C===!0)return 172})();function P(){b=this.offsetHeight,e(1,b)}return i.$$set=x=>{"tag"in x&&e(0,g=x.tag)},i.$$.update=()=>{i.$$.dirty&3073&&e(4,n=e(11,h=e(10,d=g.state)===null||d===void 0?void 0:d.unfolded)!==null&&h!==void 0?h:!1),i.$$.dirty&16&&e(8,o=!n),i.$$.dirty&1&&e(3,s=g.data),i.$$.dirty&12296&&e(7,r=yt(e(12,m=s.price)===null||m===void 0?void 0:m.value)&&(e(13,A=s.price)===null||A===void 0?void 0:A.value)!==""),i.$$.dirty&1&&e(6,a=g.data.theme||"light"),i.$$.dirty&65538&&b>40&&e(16,l=l-1),i.$$.dirty&81928&&e(2,c=(e(14,v=s.brandTags)===null||v===void 0?void 0:v.slice(0,l).filter(Boolean))||[]),i.$$.dirty&98316&&e(5,u=(e(15,p=s.tags)===null||p===void 0?void 0:p.slice(0,l-c.length).filter(Boolean))||[])},e(16,l=(w-20)/xo),[g,b,c,s,n,u,a,r,o,w,d,h,m,A,v,p,l,P]}class JA extends oe{constructor(t){super(),ie(this,t,qA,UA,ne,{tag:0},YA)}}class ZA extends Audio{constructor(e){super();f(this,"sharedAudioSrc");f(this,"sharedAudioPaused",!0);f(this,"sharedAudioCurrentTime",0);f(this,"tryplaying",!1);f(this,"audioInstance");f(this,"eventListenerDisposer");this.sharedAudioSrc=e}get paused(){var e;return(e=this.sharedAudioPaused)!=null?e:!0}get currentTime(){return this.sharedAudioCurrentTime}play(){return W(this,null,function*(){var n,o,s;if(this.tryplaying)return;this.tryplaying=!0,(!this.audioInstance||((n=this.audioInstance)==null?void 0:n.realSrc)!==this.sharedAudioSrc)&&(this.audioInstance=ng(this.sharedAudioSrc,{namespace:Eo.PlayAudio})),(o=this.eventListenerDisposer)==null||o.call(this),this.eventListenerDisposer=this.addEventListeners(),this.audioInstance.currentTime=(s=this.currentTime)!=null?s:0;const e=this.audioInstance.currentTime!==this.currentTime;this.audioInstance.play().then(()=>{var r;this.audioInstance.muted=!1,e&&(this.audioInstance.currentTime=(r=this.currentTime)!=null?r:0),this.sharedAudioPaused=!1}).catch(r=>{var a;r.message==="The operation is not supported."?console.error("Error: \u97F3\u9891\u6587\u4EF6\u53EF\u80FD\u635F\u574F\u6216\u4FEE\u6539\u8FC7\u6587\u4EF6\u540E\u7F00",r):console.error("Error: error playing media in Safari",r),this.endedHandler(),(a=this.onerror)==null||a.call(this,r)}).finally(()=>{this.tryplaying=!1})})}pause(e){var n;if(!!this.audioInstance&&!this.paused){if(this.sharedAudioPaused=!0,(n=this.eventListenerDisposer)==null||n.call(this),this.audioInstance.ended){this.endedHandler();return}this.audioInstance.paused||this.audioInstance.pause(),this.onpause(e!=null?e:new Event("pause")),this.clear()}}dispose(){var e;(e=this.eventListenerDisposer)==null||e.call(this),this.clear(),this.audioInstance=void 0}clear(){var e;(e=this.audioInstance)==null||e.clear()}endedHandler(e){var n,o;(n=this.onended)==null||n.call(this,e!=null?e:new Event("ended")),(o=this.eventListenerDisposer)==null||o.call(this),this.sharedAudioPaused=!0,this.sharedAudioCurrentTime=0,this.clear()}addEventListeners(){const e=this.audioInstance;if(!e)return;const n=h=>{var m;console.debug("ontimeupdate",e.currentTime,e.paused,e.ended),this.sharedAudioCurrentTime=e.currentTime,(m=this.ontimeupdate)==null||m.call(this,h)},o=h=>{var m;e.isBlankAudio||(this.sharedAudioPaused=!1,(m=this.onplay)==null||m.call(this,h))},s=h=>{this.pause(h)},r=h=>{this.endedHandler(h)},a=h=>{var m;this.sharedAudioPaused=!0,(m=this.onerror)==null||m.call(this,h)},l=h=>{var m;return(m=this.oncanplay)==null?void 0:m.call(this,h)},c=h=>{var m;return(m=this.oncanplaythrough)==null?void 0:m.call(this,h)},u=h=>{var m;return(m=this.onloadeddata)==null?void 0:m.call(this,h)},d=h=>{var m;return(m=this.onloadedmetadata)==null?void 0:m.call(this,h)};return e.addEventListener("timeupdate",n),e.addEventListener("play",o),e.addEventListener("pause",s),e.addEventListener("ended",r),e.addEventListener("error",a),e.addEventListener("canplay",l),e.addEventListener("canplaythrough",c),e.addEventListener("loadeddata",u),e.addEventListener("loadedmetadata",d),()=>{e.removeEventListener("timeupdate",n),e.removeEventListener("play",o),e.removeEventListener("pause",s),e.removeEventListener("ended",r),e.removeEventListener("error",a),e.removeEventListener("canplay",l),e.removeEventListener("canplaythrough",c),e.removeEventListener("loadeddata",u),e.removeEventListener("loadedmetadata",d)}}}function KA(i){le(i,"svelte-13e7hxv",".audio.svelte-13e7hxv{pointer-events:auto;cursor:pointer;width:100%;height:100%}")}function $A(i){let t,e,n,o;const s=i[8].default,r=en(s,i,i[7],null);return{c(){t=z("div"),r&&r.c(),y(t,"class","audio svelte-13e7hxv"),y(t,"style",i[0])},m(a,l){M(a,t,l),r&&r.m(t,null),e=!0,n||(o=ge(t,"click",Sa(i[1])),n=!0)},p(a,[l]){r&&r.p&&(!e||l&128)&&nn(r,s,a,a[7],e?tn(s,a[7],l,null):on(a[7]),null),(!e||l&1)&&y(t,"style",a[0])},i(a){e||(I(r,a),e=!0)},o(a){L(r,a),e=!1},d(a){a&&S(t),r&&r.d(a),n=!1,o()}}}function ev(i,t,e){let{$$slots:n={},$$scope:o}=t,{url:s}=t,{enable:r=!0}=t,{style:a=""}=t,{hooksInfo:l}=t;const c=mi(),u=St("hooks"),d=St("mediaStore");let h,m=!0;function A(){e(5,h.onplay=p=>{u.emit("playStateChange",Object.assign({event:p,state:"playing",mediaInstance:h},l)),c("play"),e(6,m=!1)},h),e(5,h.onpause=p=>{u.emit("playStateChange",Object.assign({event:p,state:"paused",mediaInstance:h},l)),c("pause"),e(6,m=!0)},h),e(5,h.onended=p=>{u.emit("playStateChange",Object.assign({event:p,state:"paused",mediaInstance:h},l)),c("pause"),e(6,m=!0)},h),e(5,h.onloadedmetadata=p=>{typeof h.duration=="number"&&!Number.isNaN(h.duration)&&c("duration",h.duration)},h),e(5,h.onerror=p=>{c("pause"),e(6,m=!0)},h),e(5,h.ontimeupdate=p=>{c("timeupdate",h.currentTime)},h)}d.subscribe(({currentMediaElement:p})=>{p!==h&&(m||h==null||h.pause())});function v(p){!h||(u.emit("click",Object.assign({event:p,target:"AudioTagPlayIcon",audioInstance:h},l)),d.set({currentMediaElement:h}),u.emit("playStateChange",Object.assign({event:p,state:h.paused?"playing":"paused",mediaInstance:h},l)),h.paused?h.play():h.pause())}return i.$$set=p=>{"url"in p&&e(2,s=p.url),"enable"in p&&e(3,r=p.enable),"style"in p&&e(0,a=p.style),"hooksInfo"in p&&e(4,l=p.hooksInfo),"$$scope"in p&&e(7,o=p.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&(s||c("duration",0)),i.$$.dirty&36&&(h==null||h.dispose(),e(5,h=new ZA(s)),c("audioRef",h),setTimeout(()=>c("audioRef",h),200),A()),i.$$.dirty&40&&(r||h==null||h.pause()),i.$$.dirty&72&&c(r&&!m?"play":"pause")},[a,v,s,r,l,h,m,o,n]}class Rl extends oe{constructor(t){super(),ie(this,t,ev,$A,ne,{url:2,enable:3,style:0,hooksInfo:4},KA)}}function tv(i){le(i,"svelte-srt2pi",".audio-icon__wrapper.svelte-srt2pi.svelte-srt2pi{display:inline-block}.audio-icon.svelte-srt2pi.svelte-srt2pi{display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:100%;border-radius:50%;background-color:rgba(255, 255, 255, 0.8)}.audio-icon.svelte-srt2pi .sound-wave__container.svelte-srt2pi{position:absolute;pointer-events:none;width:60%;height:60%}.sound-wave.svelte-srt2pi.svelte-srt2pi{animation-duration:2s;animation-iteration-count:infinite;animation-play-state:paused;transition:opacity 0}.playing.svelte-srt2pi .sound-wave.svelte-srt2pi{animation-play-state:running}.playing.svelte-srt2pi .sound-wave-1.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_1_animation}.playing.svelte-srt2pi .sound-wave-2.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_2_animation}.playing.svelte-srt2pi .sound-wave-3.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_3_animation}@keyframes svelte-srt2pi-sound_wave_1_animation{0%,10%{opacity:0}25%,100%{opacity:1}}@keyframes svelte-srt2pi-sound_wave_2_animation{0%,35%{opacity:0}50%,100%{opacity:1}}@keyframes svelte-srt2pi-sound_wave_3_animation{0%,60%{opacity:0}75%,100%{opacity:1}}")}function Kr(i){let t,e;return t=new nt({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function nv(i){let t,e,n,o,s,r=i[1]&&Kr();return{c(){t=z("div"),r&&r.c(),e=ee(),n=z("div"),o=z("div"),o.innerHTML='<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>',y(o,"class","sound-wave__container svelte-srt2pi"),y(n,"class","audio-icon svelte-srt2pi"),q(n,"playing",i[0]),y(t,"class","audio-icon__wrapper svelte-srt2pi"),y(t,"style",i[2]),T(t,"width",i[5]),T(t,"height",i[5])},m(a,l){M(a,t,l),r&&r.m(t,null),j(t,e),j(t,n),j(n,o),i[7](o),i[8](t),s=!0},p(a,[l]){a[1]?r?l&2&&I(r,1):(r=Kr(),r.c(),I(r,1),r.m(t,e)):r&&(se(),L(r,1,1,()=>{r=null}),re()),(!s||l&1)&&q(n,"playing",a[0]),(!s||l&4)&&y(t,"style",a[2]),l&32&&T(t,"width",a[5]),l&32&&T(t,"height",a[5])},i(a){s||(I(r),s=!0)},o(a){L(r),s=!1},d(a){a&&S(t),r&&r.d(),i[7](null),i[8](null)}}}function iv(i,t,e){let n,{playing:o}=t,{shadow:s=!1}=t,{style:r=null}=t,{width:a="100%"}=t,l,c;function u(h){Ve[h?"unshift":"push"](()=>{c=h,e(4,c)})}function d(h){Ve[h?"unshift":"push"](()=>{l=h,e(3,l)})}return i.$$set=h=>{"playing"in h&&e(0,o=h.playing),"shadow"in h&&e(1,s=h.shadow),"style"in h&&e(2,r=h.style),"width"in h&&e(6,a=h.width)},i.$$.update=()=>{i.$$.dirty&64&&e(5,n=typeof a=="number"?tt(a):a)},[o,s,r,l,c,n,a,u,d]}class Ql extends oe{constructor(t){super(),ie(this,t,iv,nv,ne,{playing:0,shadow:1,style:2,width:6},tv)}}function ov(i){le(i,"svelte-1s6gk4a",".audio-tag.svelte-1s6gk4a{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.audio-icon__wrapper.svelte-1s6gk4a{position:relative;vertical-align:top;width:100%;height:100%}.content.svelte-1s6gk4a{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-1s6gk4a{position:relative;width:100%;height:100%}.audio-icon.svelte-1s6gk4a{pointer-events:none;vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.audio.svelte-1s6gk4a{position:relative;width:100%;height:100%}")}function $r(i){var p,g;let t,e,n,o,s,r,a,l,c,u,d,h,m,A;e=new nt({props:{visible:i[6],left:i[3]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}});let v=i[6]&&ea(i);return c=new Tl({props:{visible:i[6],textUnfolded:i[1],content:i[5]}}),d=new Po({props:{unfolded:i[6],length:i[3],outDelay:i[4]+20*Math.min((g=(p=i[5])==null?void 0:p.length)!=null?g:10,15),useLinearColor:!0}}),{c(){t=z("div"),K(e.$$.fragment),n=ee(),o=z("div"),s=z("div"),r=z("div"),v&&v.c(),a=ee(),l=z("div"),K(c.$$.fragment),u=ee(),K(d.$$.fragment),y(r,"class","audio-icon svelte-1s6gk4a"),T(l,"display","inline-block"),y(s,"class","wrapper svelte-1s6gk4a"),y(o,"class","content svelte-1s6gk4a"),y(t,"class","audio-tag svelte-1s6gk4a"),q(t,"unfolded",i[6])},m(b,w){M(b,t,w),J(e,t,null),j(t,n),j(t,o),j(o,s),j(s,r),v&&v.m(r,null),j(s,a),j(s,l),J(c,l,null),j(t,u),J(d,t,null),h=!0,m||(A=[ge(l,"click",i[7]),at(an.call(null,l)),ge(l,"clientWidth",i[15])],m=!0)},p(b,w){var D,E;const P={};w&64&&(P.visible=b[6]),w&8&&(P.left=b[3]/2+"px"),e.$set(P),b[6]?v?(v.p(b,w),w&64&&I(v,1)):(v=ea(b),v.c(),I(v,1),v.m(r,null)):v&&(se(),L(v,1,1,()=>{v=null}),re());const x={};w&64&&(x.visible=b[6]),w&2&&(x.textUnfolded=b[1]),w&32&&(x.content=b[5]),c.$set(x);const C={};w&64&&(C.unfolded=b[6]),w&8&&(C.length=b[3]),w&48&&(C.outDelay=b[4]+20*Math.min((E=(D=b[5])==null?void 0:D.length)!=null?E:10,15)),d.$set(C),(!h||w&64)&&q(t,"unfolded",b[6])},i(b){h||(I(e.$$.fragment,b),I(v),I(c.$$.fragment,b),I(d.$$.fragment,b),h=!0)},o(b){L(e.$$.fragment,b),L(v),L(c.$$.fragment,b),L(d.$$.fragment,b),h=!1},d(b){b&&S(t),Z(e),v&&v.d(),Z(c),Z(d),m=!1,He(A)}}}function ea(i){let t,e,n,o,s,r,a;return e=new nt({props:{center:!0,blurRadius:15,spreadRadius:6}}),o=new Rl({props:{enable:i[6],url:i[0].data.audioUrl,hooksInfo:{tag:i[0]},$$slots:{default:[sv]},$$scope:{ctx:i}}}),o.$on("play",i[11]),o.$on("pause",i[12]),o.$on("error",i[13]),o.$on("audioRef",i[14]),{c(){t=z("div"),K(e.$$.fragment),n=ee(),K(o.$$.fragment),y(t,"class","audio svelte-1s6gk4a")},m(l,c){M(l,t,c),J(e,t,null),j(t,n),J(o,t,null),a=!0},p(l,c){i=l;const u={};c&64&&(u.enable=i[6]),c&1&&(u.url=i[0].data.audioUrl),c&1&&(u.hooksInfo={tag:i[0]}),c&65540&&(u.$$scope={dirty:c,ctx:i}),o.$set(u)},i(l){a||(I(e.$$.fragment,l),I(o.$$.fragment,l),l&&Oe(()=>{r&&r.end(1),s=Tt(t,Mt,{duration:1e3,delay:0,easing:Yt}),s.start()}),a=!0)},o(l){var c,u;L(e.$$.fragment,l),L(o.$$.fragment,l),s&&s.invalidate(),l&&(r=rn(t,Mt,{duration:1e3,delay:20*Math.min((u=(c=i[5])==null?void 0:c.length)!=null?u:10,15),easing:Yt})),a=!1},d(l){l&&S(t),Z(e),Z(o),l&&r&&r.end()}}}function sv(i){let t,e,n;return e=new Ql({props:{playing:i[2]}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","audio-icon__wrapper svelte-1s6gk4a")},m(o,s){M(o,t,s),J(e,t,null),n=!0},p(o,s){const r={};s&4&&(r.playing=o[2]),e.$set(r)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){o&&S(t),Z(e)}}}function rv(i){let t,e,n=i[0].state&&$r(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&I(n,1)):(n=$r(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function av(i,t,e){let n,o,s;var r,a,l;let{tag:c}=t,u=!1,d=!1,h;function m(){e(1,u=!u)}const A=()=>{e(2,d=!0)},v=()=>{e(2,d=!1)},p=()=>{e(2,d=!1)};function g(w){sn.call(this,i,w)}const b=w=>{e(3,h=w.detail)};return i.$$set=w=>{"tag"in w&&e(0,c=w.tag)},i.$$.update=()=>{i.$$.dirty&257&&e(6,n=!!(!(e(8,r=c.state)===null||r===void 0)&&r.unfolded)),i.$$.dirty&1537&&e(5,o=e(10,l=e(9,a=c.data.title)!==null&&a!==void 0?a:c.data.text)!==null&&l!==void 0?l:""),i.$$.dirty&2&&e(4,s=u?450:0)},[c,u,d,h,s,o,n,m,r,a,l,A,v,p,g,b]}class lv extends oe{constructor(t){super(),ie(this,t,av,rv,ne,{tag:0},ov)}}function cv(i){le(i,"svelte-58hfjf",".audio-tag__wrapper.svelte-58hfjf{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.audio-tag.svelte-58hfjf{position:relative;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;padding:0.1875rem;padding-right:0.625rem;border-radius:624999.9375rem;border:0.03125rem solid rgba(255, 255, 255, 0.2)}.audio__inner.svelte-58hfjf{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.text.svelte-58hfjf{font-weight:bold;font-size:0.75rem;margin-left:0.25rem}.audio-icon__wrapper.svelte-58hfjf{position:relative;vertical-align:top;pointer-events:none;width:1.375rem;height:1.375rem}")}function ta(i){let t,e,n,o;return n=new Rl({props:{style:"width: max-content; height: max-content;",enable:i[0].state.visible,url:i[0].data.audioUrl,hooksInfo:{tag:i[0]},$$slots:{default:[dv]},$$scope:{ctx:i}}}),n.$on("play",i[11]),n.$on("pause",i[12]),n.$on("error",i[13]),n.$on("timeupdate",i[14]),n.$on("duration",i[15]),n.$on("audioRef",i[16]),{c(){t=z("div"),e=z("div"),K(n.$$.fragment),y(e,"class","audio-tag svelte-58hfjf"),T(e,"background-color",i[5]),T(e,"color",i[4]),y(t,"class","audio-tag__wrapper svelte-58hfjf")},m(s,r){M(s,t,r),j(t,e),J(n,e,null),o=!0},p(s,r){const a={};r&1&&(a.enable=s[0].state.visible),r&1&&(a.url=s[0].data.audioUrl),r&1&&(a.hooksInfo={tag:s[0]}),r&131144&&(a.$$scope={dirty:r,ctx:s}),n.$set(a),r&32&&T(e,"background-color",s[5]),r&16&&T(e,"color",s[4])},i(s){o||(I(n.$$.fragment,s),o=!0)},o(s){L(n.$$.fragment,s),o=!1},d(s){s&&S(t),Z(n)}}}function uv(i){let t;return{c(){t=ke(i[6])},m(e,n){M(e,t,n)},p(e,n){n&64&&Se(t,e[6])},d(e){e&&S(t)}}}function dv(i){let t,e,n,o,s,r,a;return n=new Ql({props:{playing:i[3]}}),r=new Io({props:{maxWidth:72,$$slots:{default:[uv]},$$scope:{ctx:i}}}),{c(){t=z("div"),e=z("div"),K(n.$$.fragment),o=ee(),s=z("div"),K(r.$$.fragment),y(e,"class","audio-icon__wrapper svelte-58hfjf"),y(s,"class","text svelte-58hfjf"),y(t,"class","audio__inner svelte-58hfjf")},m(l,c){M(l,t,c),j(t,e),J(n,e,null),j(t,o),j(t,s),J(r,s,null),a=!0},p(l,c){const u={};c&8&&(u.playing=l[3]),n.$set(u);const d={};c&131136&&(d.$$scope={dirty:c,ctx:l}),r.$set(d)},i(l){a||(I(n.$$.fragment,l),I(r.$$.fragment,l),a=!0)},o(l){L(n.$$.fragment,l),L(r.$$.fragment,l),a=!1},d(l){l&&S(t),Z(n),Z(r)}}}function hv(i){let t,e,n=i[0].state&&ta(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&I(n,1)):(n=ta(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function fv(i,t,e){let n,o,s,r;var a,l,c;let{tag:u}=t,d=0,h=0,m=!1;const A=()=>{e(3,m=!0)},v=()=>{e(3,m=!1)},p=()=>{e(3,m=!1)},g=P=>{e(1,d=P.detail)},b=P=>{e(2,h=P.detail)};function w(P){sn.call(this,i,P)}return i.$$set=P=>{"tag"in P&&e(0,u=P.tag)},i.$$.update=()=>{i.$$.dirty&385&&e(6,n=e(8,l=e(7,a=u.data.title)!==null&&a!==void 0?a:u.data.text)!==null&&l!==void 0?l:""),i.$$.dirty&513&&e(10,o=e(9,c=u.data.theme)!==null&&c!==void 0?c:"light"),i.$$.dirty&1024&&e(5,s=(()=>{if(o==="dark")return"rgba(0, 0, 0, 0.3)";if(o==="light")return"rgba(255, 255, 255, 0.3)"})()),i.$$.dirty&1024&&e(4,r=(()=>{if(o==="dark")return"white";if(o==="light")return"rgba(0, 0, 0, 0.6)"})())},[u,d,h,m,r,s,n,a,l,c,o,A,v,p,g,b,w]}class mv extends oe{constructor(t){super(),ie(this,t,fv,hv,ne,{tag:0},cv)}}function pv(i){let t,e;return t=new mv({props:{tag:i[0]}}),t.$on("audioRef",i[2]),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function gv(i){let t,e;return t=new lv({props:{tag:i[0]}}),t.$on("audioRef",i[2]),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Av(i){let t,e,n,o;const s=[gv,pv],r=[];function a(l,c){return l[1]==="line"?0:l[1]==="plane"?1:-1}return~(t=a(i))&&(e=r[t]=s[t](i)),{c(){e&&e.c(),n=me()},m(l,c){~t&&r[t].m(l,c),M(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?~t&&r[t].p(l,c):(e&&(se(),L(r[u],1,1,()=>{r[u]=null}),re()),~t?(e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),I(e,1),e.m(n.parentNode,n)):e=null)},i(l){o||(I(e),o=!0)},o(l){L(e),o=!1},d(l){~t&&r[t].d(l),l&&S(n)}}}function vv(i,t,e){let n;var o;let{tag:s}=t,r;function a(l){r=l.detail}return s.play=()=>r.play(),s.pause=()=>r.pause(),i.$$set=l=>{"tag"in l&&e(0,s=l.tag)},i.$$.update=()=>{i.$$.dirty&9&&e(1,n=e(3,o=s.data.appearance)!==null&&o!==void 0?o:"line")},[s,n,a,o]}class bv extends oe{constructor(t){super(),ie(this,t,vv,Av,ne,{tag:0})}}function yv(i){le(i,"svelte-10cw0el",".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}")}function na(i){var o;let t,e,n;return e=new Ol({props:{mediaItemConfig:{canPlay:!0,playButtonSizeIfNeed:"large",playButtonIfNeed:(o=i[4])!=null?o:"withText",disableVideoIfHavePoster:!1,objectFit:i[2]},unfolded:i[6],mediaData:i[5],enableCarousel:i[1],autoplayConfig:i[3],tag:i[0],inDelay:500,duration:500}}),{c(){t=z("div"),K(e.$$.fragment),y(t,"class","media-wrapper svelte-10cw0el")},m(s,r){M(s,t,r),J(e,t,null),n=!0},p(s,r){var l;const a={};r&20&&(a.mediaItemConfig={canPlay:!0,playButtonSizeIfNeed:"large",playButtonIfNeed:(l=s[4])!=null?l:"withText",disableVideoIfHavePoster:!1,objectFit:s[2]}),r&64&&(a.unfolded=s[6]),r&32&&(a.mediaData=s[5]),r&2&&(a.enableCarousel=s[1]),r&8&&(a.autoplayConfig=s[3]),r&1&&(a.tag=s[0]),e.$set(a)},i(s){n||(I(e.$$.fragment,s),n=!0)},o(s){L(e.$$.fragment,s),n=!1},d(s){s&&S(t),Z(e)}}}function wv(i){let t,e,n=i[0].state&&i[5]&&na(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[0].state&&o[5]?n?(n.p(o,s),s&33&&I(n,1)):(n=na(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function Cv(i,t,e){let n,o,s,r,a,l;var c,u;let{tag:d}=t;return i.$$set=h=>{"tag"in h&&e(0,d=h.tag)},i.$$.update=()=>{i.$$.dirty&1&&e(6,n=d.state?d.state.unfolded:!1),i.$$.dirty&1&&e(5,o=d.data.mediaData),i.$$.dirty&1&&e(1,s=d.data.enableCarousel),i.$$.dirty&1&&e(4,r=d.data.playIcon),i.$$.dirty&131&&e(3,a=e(7,c=d.data.autoplayConfig)!==null&&c!==void 0?c:{autoplay:s!=null?s:!0,autoplayVideo:!0}),i.$$.dirty&257&&e(2,l=e(8,u=d.data.objectFit)!==null&&u!==void 0?u:(()=>d.data.adaptationMode==="stretch"?"fill":d.data.adaptationMode==="proportional"?"contain":void 0)())},[d,s,l,a,r,o,n,c,u]}class Ev extends oe{constructor(t){super(),ie(this,t,Cv,wv,ne,{tag:0},yv)}}function Fl(i){return W(this,null,function*(){return new Promise((t,e)=>{if(!i){e(Error("url is empty"));return}const n=new Image;n.src=i,n.onload=()=>t({width:n.width,height:n.height}),n.onerror=e})})}function Pv(i){return W(this,null,function*(){const{url:t,ratio:e=3}=i;i.ratio||console.warn("Tag icon ratio is not set, default is 3");const{width:n,height:o}=yield Fl(t);return fe(Q({},i),{width:n/e,height:o/e})})}function Iv(i){return W(this,null,function*(){const{steps:t,url:e,ratio:n=3,fps:o=24}=i;if(!t)throw new Error("KeyframeIcon requires steps");const{width:s,height:r}=yield Fl(e),a=s/n,l=r/n,c=a/t,u=l,d=1/o*t+"s";return fe(Q({},i),{width:c,height:u,duration:d})})}function kv(i){le(i,"svelte-316sq3","@keyframes svelte-316sq3-sprites-animation{0%{background-position:0 0}100%{background-position:100% 0}}.icon-image.svelte-316sq3{display:block;width:auto}.icon-keyframe.svelte-316sq3{background-repeat:no-repeat;background-size:auto 100%;animation-direction:normal;animation-iteration-count:infinite;animation-name:svelte-316sq3-sprites-animation;animation-delay:0}")}function ia(i){i[1]=i[22].width}function oa(i){i[1]=i[22].width,i[19]=i[22].height,i[20]=i[22].steps,i[21]=i[22].duration}function sa(i){let t,e,n,o=i[0]&&ra();function s(l,c){return l[8]?Dv:xv}let r=s(i),a=r(i);return{c(){t=z("div"),o&&o.c(),e=ee(),a.c(),y(t,"class","icon"),T(t,"width",i[1])},m(l,c){M(l,t,c),o&&o.m(t,null),j(t,e),a.m(t,null),n=!0},p(l,c){l[0]?o?c&1&&I(o,1):(o=ra(),o.c(),I(o,1),o.m(t,e)):o&&(se(),L(o,1,1,()=>{o=null}),re()),r===(r=s(l))&&a?a.p(l,c):(a.d(1),a=r(l),a&&(a.c(),a.m(t,null))),c&2&&T(t,"width",l[1])},i(l){n||(I(o),n=!0)},o(l){L(o),n=!1},d(l){l&&S(t),o&&o.d(),a.d()}}}function ra(i){let t,e;return t=new nt({props:{center:!0,blurRadius:24,spreadRadius:16}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function xv(i){let t,e,n={ctx:i,current:null,token:null,hasCatch:!1,pending:Mv,then:Sv,catch:Lv,value:22};return oi(e=i[11](De({url:i[7],ratio:i[5]})),n),{c(){t=me(),n.block.c()},m(o,s){M(o,t,s),n.block.m(o,n.anchor=s),n.mount=()=>t.parentNode,n.anchor=t},p(o,s){i=o,n.ctx=i,s&160&&e!==(e=i[11](De({url:i[7],ratio:i[5]})))&&oi(e,n)||Qa(n,i,s)},d(o){o&&S(t),n.block.d(o),n.token=null,n=null}}}function Dv(i){let t,e,n={ctx:i,current:null,token:null,hasCatch:!1,pending:Bv,then:zv,catch:Tv,value:22};return oi(e=i[10](De({url:i[7],steps:i[2],fps:i[6],ratio:i[5]})),n),{c(){t=me(),n.block.c()},m(o,s){M(o,t,s),n.block.m(o,n.anchor=s),n.mount=()=>t.parentNode,n.anchor=t},p(o,s){i=o,n.ctx=i,s&228&&e!==(e=i[10](De({url:i[7],steps:i[2],fps:i[6],ratio:i[5]})))&&oi(e,n)||Qa(n,i,s)},d(o){o&&S(t),n.block.d(o),n.token=null,n=null}}}function Lv(i){return{c:U,m:U,p:U,d:U}}function Sv(i){ia(i);let t,e;return{c(){t=z("img"),y(t,"alt","tag-icon"),y(t,"class","icon-image svelte-316sq3"),Ne(t.src,e=i[7])||y(t,"src",e),T(t,"width",tt(Ht({originWidth:i[1],scale:i[4],wantedWidth:i[3]}).width))},m(n,o){M(n,t,o)},p(n,o){ia(n),o&128&&!Ne(t.src,e=n[7])&&y(t,"src",e),o&184&&T(t,"width",tt(Ht({originWidth:n[1],scale:n[4],wantedWidth:n[3]}).width))},d(n){n&&S(t)}}}function Mv(i){return{c:U,m:U,p:U,d:U}}function Tv(i){return{c:U,m:U,p:U,d:U}}function zv(i){oa(i);let t,e=`url(${i[7]})`,n=`steps(${i[20]}, jump-none)`;return{c(){t=z("div"),y(t,"class","icon-keyframe svelte-316sq3"),T(t,"width",tt(Ht({originWidth:i[1],originHeight:i[19],scale:i[4],wantedWidth:i[3]}).width)),T(t,"height",tt(Ht({originWidth:i[1],originHeight:i[19],scale:i[4],wantedWidth:i[3]}).height)),T(t,"background-image",e),T(t,"animation-duration",i[21]),T(t,"animation-timing-function",n)},m(o,s){M(o,t,s)},p(o,s){oa(o),s&252&&T(t,"width",tt(Ht({originWidth:o[1],originHeight:o[19],scale:o[4],wantedWidth:o[3]}).width)),s&252&&T(t,"height",tt(Ht({originWidth:o[1],originHeight:o[19],scale:o[4],wantedWidth:o[3]}).height)),s&128&&e!==(e=`url(${o[7]})`)&&T(t,"background-image",e),s&228&&T(t,"animation-duration",o[21]),s&228&&n!==(n=`steps(${o[20]}, jump-none)`)&&T(t,"animation-timing-function",n)},d(o){o&&S(t)}}}function Bv(i){return{c:U,m:U,p:U,d:U}}function jv(i){let t,e,n=i[9]&&sa(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[9]?n?(n.p(o,s),s&512&&I(n,1)):(n=sa(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function Ht(i){const{originWidth:t,originHeight:e,scale:n=1,wantedWidth:o}=i,s=(o!=null?o:t)*n,r=typeof e=="number"?s*(e/t):void 0;return Object.assign(Object.assign({},i),{width:s,height:r})}function Vv(i,t,e){let n,o,s,r,a,l,c,u,d;var h=this&&this.__awaiter||function(C,D,E,O){function G(X){return X instanceof E?X:new E(function(H){H(X)})}return new(E||(E=Promise))(function(X,H){function B(N){try{R(O.next(N))}catch(_){H(_)}}function F(N){try{R(O.throw(N))}catch(_){H(_)}}function R(N){N.done?X(N.value):G(N.value).then(B,F)}R((O=O.apply(C,D||[])).next())})},m,A;let{width:v=null}=t,{icon:p=null}=t,{shadow:g=!1}=t;const b=mi();function w(C){return h(this,void 0,void 0,function*(){const D=yield Iv(C);return b("iconLoaded",D),D})}function P(C){return h(this,void 0,void 0,function*(){if(typeof d=="number")return Object.assign(Object.assign({},C),{width:d});const D=yield Pv(C);return b("iconLoaded",D),D})}function x(){u||b("iconLoaded")}return Ue(()=>{x()}),i.$$set=C=>{"width"in C&&e(1,v=C.width),"icon"in C&&e(12,p=C.icon),"shadow"in C&&e(0,g=C.shadow)},i.$$.update=()=>{i.$$.dirty&4096&&e(7,n=p==null?void 0:p.url),i.$$.dirty&12288&&e(2,o=e(13,m=p==null?void 0:p.steps)!==null&&m!==void 0?m:1),i.$$.dirty&4096&&e(6,s=p==null?void 0:p.fps),i.$$.dirty&4096&&e(5,r=p==null?void 0:p.ratio),i.$$.dirty&20480&&e(4,a=e(14,A=p==null?void 0:p.scale)!==null&&A!==void 0?A:1),i.$$.dirty&4096&&e(3,l=p==null?void 0:p.width),i.$$.dirty&252&&e(9,c=De({url:n,steps:o,fps:s,ratio:r,scale:a,width:l})),i.$$.dirty&4&&e(8,u=o>1),i.$$.dirty&2&&(d=v)},x(),[g,v,o,l,a,r,s,n,u,c,w,P,p,m,A]}class Hl extends oe{constructor(t){super(),ie(this,t,Vv,jv,ne,{width:1,icon:12,shadow:0},kv)}}function Ov(i){le(i,"svelte-e58ijk",".wrapper.svelte-e58ijk{font-weight:600;cursor:pointer;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.text-wrapper.svelte-e58ijk{position:relative;display:flex;align-items:center;justify-content:center}.text.svelte-e58ijk{position:absolute;top:0;font-size:0.875rem;color:#ffffff;letter-spacing:0;text-align:center;max-width:8.75rem;width:-moz-max-content;width:max-content;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function aa(i){let t,e,n,o,s,r;return e=new nt({props:{outDelay:0,inDelay:0,center:!0,width:"80%",blurRadius:40,spreadRadius:16,opacity:.08}}),{c(){t=z("div"),K(e.$$.fragment),n=ee(),o=z("div"),s=ke(i[1]),y(o,"class","text svelte-e58ijk"),y(t,"class","text-wrapper svelte-e58ijk")},m(a,l){M(a,t,l),J(e,t,null),j(t,n),j(t,o),j(o,s),r=!0},p(a,l){(!r||l&2)&&Se(s,a[1])},i(a){r||(I(e.$$.fragment,a),r=!0)},o(a){L(e.$$.fragment,a),r=!1},d(a){a&&S(t),Z(e)}}}function Rv(i){let t,e,n,o;e=new Hl({props:{icon:i[0],shadow:!0}}),e.$on("iconLoaded",i[7]);let s=i[1]&&i[2]&&aa(i);return{c(){t=z("div"),K(e.$$.fragment),n=ee(),s&&s.c(),y(t,"class","wrapper svelte-e58ijk")},m(r,a){M(r,t,a),J(e,t,null),j(t,n),s&&s.m(t,null),o=!0},p(r,[a]){const l={};a&1&&(l.icon=r[0]),e.$set(l),r[1]&&r[2]?s?(s.p(r,a),a&6&&I(s,1)):(s=aa(r),s.c(),I(s,1),s.m(t,null)):s&&(se(),L(s,1,1,()=>{s=null}),re())},i(r){o||(I(e.$$.fragment,r),I(s),o=!0)},o(r){L(e.$$.fragment,r),L(s),o=!1},d(r){r&&S(t),Z(e),s&&s.d()}}}function Qv(i,t,e){let n,o,s;var r,a,l;let{tag:c}=t;const u=()=>{e(2,n=!0)};return i.$$set=d=>{"tag"in d&&e(3,c=d.tag)},i.$$.update=()=>{i.$$.dirty&24&&e(1,o=e(4,r=c.data.title)!==null&&r!==void 0?r:c.data.text),i.$$.dirty&104&&e(0,s=e(5,a=c.data.icon)!==null&&a!==void 0?a:e(6,l=c.style)===null||l===void 0?void 0:l.point)},e(2,n=!1),[s,o,n,c,r,a,l,u]}class Fv extends oe{constructor(t){super(),ie(this,t,Qv,Rv,ne,{tag:3},Ov)}}function Hv(i){le(i,"svelte-kzl2aj",".customElement__container.svelte-kzl2aj{position:relative}")}function la(i){let t,e=i[0].element+"",n;return{c(){t=new ei(!1),n=me(),t.a=n},m(o,s){t.m(e,o,s),M(o,n,s)},p(o,s){s&1&&e!==(e=o[0].element+"")&&t.p(e)},d(o){o&&S(n),o&&t.d()}}}function _v(i){let t,e=typeof i[0].element=="string"&&la(i);return{c(){t=z("div"),e&&e.c(),y(t,"class","customElement__container svelte-kzl2aj")},m(n,o){M(n,t,o),e&&e.m(t,null),i[2](t)},p(n,[o]){typeof n[0].element=="string"?e?e.p(n,o):(e=la(n),e.c(),e.m(t,null)):e&&(e.d(1),e=null)},i:U,o:U,d(n){n&&S(t),e&&e.d(),i[2](null)}}}function Gv(i,t,e){let{tag:n}=t,o,s;Ue(()=>{if(o){if(n.element instanceof Element){const a=n.element;o.appendChild(a),s=()=>a.remove()}else if(typeof n.element=="function"){const a=n.element;s=a(o)}}}),Et(()=>{s==null||s()});function r(a){Ve[a?"unshift":"push"](()=>{o=a,e(1,o)})}return i.$$set=a=>{"tag"in a&&e(0,n=a.tag)},[n,o,r]}class Wv extends oe{constructor(t){super(),ie(this,t,Gv,_v,ne,{tag:0},Hv)}}function Nv(i){le(i,"svelte-1r4fqvg",'@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/OAHgAyAAAQADAAIAAAAAAAAB9ABdAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYA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pNr0YbaWyDem4fUmlmTUcaXqBftGAeE/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-1r4fqvg{position:relative;left:50%;top:50%;transform:translate(-50%, -50%);font-family:PingFangSC, Segoe UI, Rototo, sans-serif}.content__container.withAnimation.svelte-1r4fqvg{transition:opacity 0.3s linear}.content__container.unClickable.svelte-1r4fqvg{pointer-events:none !important}.content__container.unClickable.svelte-1r4fqvg *{pointer-events:none !important}.content__wrapper.svelte-1r4fqvg{pointer-events:none;width:100%;height:100%}.content__container.hide.svelte-1r4fqvg{opacity:0;pointer-events:none}.content__container.hide.svelte-1r4fqvg *{pointer-events:none !important}.content__container.disable.svelte-1r4fqvg{display:none}.content.svelte-1r4fqvg{position:relative;width:100%;height:100%;font-size:0.75rem;color:#fff}.content.svelte-1r4fqvg:not(.unfolded){pointer-events:none}.content.svelte-1r4fqvg:not(.unfolded) *{pointer-events:none !important}.content.unfolded.svelte-1r4fqvg{pointer-events:auto}')}function Xv(i){let t,e;return{c(){t=z("div"),y(t,"data-info","tag content is keep folded"),y(t,"data-id",e=i[1].id)},m(n,o){M(n,t,o)},p(n,o){o&2&&e!==(e=n[1].id)&&y(t,"data-id",e)},i:U,o:U,d(n){n&&S(t)}}}function Yv(i){let t,e,n,o,s,r,a,l,c;const u=[eb,$v,Kv,Zv,Jv,qv,Uv],d=[];function h(m,A){return m[1].element?0:m[1].contentType==="Text"?1:m[1].contentType==="ImageText"||m[1].contentType==="Image"||m[1].contentType==="Video"?2:m[1].contentType==="Audio"?3:m[1].contentType==="Marketing"?4:m[1].contentType==="Link"||m[1].contentType==="VRLink"||m[1].contentType==="PanoLink"||m[1].contentType==="Sticker"?5:m[1].contentType==="MediaPlane"||m[1].contentType==="MediaModel"?6:-1}return~(o=h(i))&&(s=d[o]=u[o](i)),{c(){var m;t=z("div"),e=z("div"),n=z("div"),s&&s.c(),y(n,"class","content svelte-1r4fqvg"),q(n,"unfolded",(m=i[1].state)==null?void 0:m.unfolded),y(e,"class","content__wrapper svelte-1r4fqvg"),y(t,"class","content__container svelte-1r4fqvg"),y(t,"data-id",r=i[1].id),q(t,"disable",i[1].enabled===!1),q(t,"hide",i[4]),q(t,"withAnimation",i[0]),q(t,"unClickable",i[1].mergedConfig.clickable===!1),T(t,"width",i[1].stickType==="Plane"||i[1].contentType==="MediaModel"?"100%":0),T(t,"height",i[1].stickType==="Plane"||i[1].contentType==="MediaModel"?"100%":0)},m(m,A){M(m,t,A),j(t,e),j(e,n),~o&&d[o].m(n,null),a=!0,l||(c=ge(t,"click",Sa(i[24])),l=!0)},p(m,A){var p;let v=o;o=h(m),o===v?~o&&d[o].p(m,A):(s&&(se(),L(d[v],1,1,()=>{d[v]=null}),re()),~o?(s=d[o],s?s.p(m,A):(s=d[o]=u[o](m),s.c()),I(s,1),s.m(n,null)):s=null),(!a||A&2)&&q(n,"unfolded",(p=m[1].state)==null?void 0:p.unfolded),(!a||A&2&&r!==(r=m[1].id))&&y(t,"data-id",r),(!a||A&2)&&q(t,"disable",m[1].enabled===!1),(!a||A&16)&&q(t,"hide",m[4]),(!a||A&1)&&q(t,"withAnimation",m[0]),(!a||A&2)&&q(t,"unClickable",m[1].mergedConfig.clickable===!1),A&2&&T(t,"width",m[1].stickType==="Plane"||m[1].contentType==="MediaModel"?"100%":0),A&2&&T(t,"height",m[1].stickType==="Plane"||m[1].contentType==="MediaModel"?"100%":0)},i(m){a||(I(s),a=!0)},o(m){L(s),a=!1},d(m){m&&S(t),~o&&d[o].d(),l=!1,c()}}}function Uv(i){let t,e;return t=new Ev({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function qv(i){let t,e;return t=new Fv({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Jv(i){let t,e;return t=new JA({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Zv(i){let t,e;return t=new bv({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function Kv(i){let t,e;return t=new XA({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function $v(i){let t,e;return t=new d0({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function eb(i){let t,e;return t=new Wv({props:{tag:De(i[1])}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=De(n[1])),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function tb(i){let t,e,n,o;const s=[Yv,Xv],r=[];function a(l,c){return l[3]?0:1}return t=a(i),e=r[t]=s[t](i),{c(){e.c(),n=me()},m(l,c){r[t].m(l,c),M(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?r[t].p(l,c):(se(),L(r[u],1,1,()=>{r[u]=null}),re(),e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),I(e,1),e.m(n.parentNode,n))},i(l){o||(I(e),o=!0)},o(l){L(e),o=!1},d(l){r[t].d(l),l&&S(n)}}}function nb(i,t,e){let n,o,s,r,a,l;var c,u,d,h,m,A,v,p,g,b,w;let{withAnimation:P=!1}=t,{tag:x}=t,{hooks:C}=t,{state:D}=t,{mediaStore:E}=t,{temporaryState:O}=t;Ui("hooks",C),Ui("mediaStore",E);let G,X;function H(R){R?C.emit("exposure",{id:r,type:"start"}):C.emit("exposure",{id:r,type:"end"})}function B(R,N,_){var $,Y;return!(!N.visible||!N.enabled||!_.visible||!(!(($=R.state)===null||$===void 0)&&$.visible)||((Y=R.temporaryState)===null||Y===void 0?void 0:Y.visible)===!1||Fe(R)&&!R.mediaVisible)}const F=R=>C.emit("click",{event:R,target:"TagContent",tag:x});return i.$$set=R=>{"withAnimation"in R&&e(0,P=R.withAnimation),"tag"in R&&e(1,x=R.tag),"hooks"in R&&e(2,C=R.hooks),"state"in R&&e(5,D=R.state),"mediaStore"in R&&e(6,E=R.mediaStore),"temporaryState"in R&&e(7,O=R.temporaryState)},i.$$.update=()=>{i.$$.dirty&258&&e(22,n=e(8,c=x.state)===null||c===void 0?void 0:c.unfolded),i.$$.dirty&514&&e(21,o=e(9,u=x.state)===null||u===void 0?void 0:u.visible),i.$$.dirty&1186&&e(23,s=D.visible&&O.visible&&(e(10,d=x.state)===null||d===void 0?void 0:d.visible)),i.$$.dirty&2&&(r=x.id),i.$$.dirty&162&&e(4,a=!B(x,D,O)),i.$$.dirty&8388608&&H(s),i.$$.dirty&8386562&&x.hooks&&(n!==void 0&&n!==X&&(e(20,X=n),n?e(12,m=e(11,h=x.hooks).emit)===null||m===void 0||m.call(h,"unfolded"):e(14,v=x==null?void 0:e(13,A=x.hooks).emit)===null||v===void 0||v.call(A,"folded")),o!==void 0&&o!==G&&(e(19,G=o),o?e(16,g=e(15,p=x.hooks).emit)===null||g===void 0||g.call(p,"show"):e(18,w=e(17,b=x.hooks).emit)===null||w===void 0||w.call(b,"hide"))),i.$$.dirty&2&&e(3,l=(()=>!(typeof x.mergedConfig.unfoldedConfig=="object"&&x.mergedConfig.unfoldedConfig.keep==="folded"))())},[P,x,C,l,a,D,E,O,c,u,d,h,m,A,v,p,g,b,w,G,X,o,n,s,F]}class _l extends oe{constructor(t){super(),ie(this,t,nb,tb,ne,{withAnimation:0,tag:1,hooks:2,state:5,mediaStore:6,temporaryState:7},Nv)}}function ib(i){le(i,"svelte-1jkrwn7",'@charset "UTF-8";.tag-point-click-helper.svelte-1jkrwn7.svelte-1jkrwn7{position:absolute;pointer-events:auto;cursor:pointer;width:calc(100% + 0.75rem);height:calc(100% + 0.75rem);left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-1jkrwn7.svelte-1jkrwn7{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:-1}.tag-folded-point.svelte-1jkrwn7.svelte-1jkrwn7,.tag-unfolded-point.svelte-1jkrwn7.svelte-1jkrwn7{transition:all 0.5s}.tag-point-wrapper.svelte-1jkrwn7 .tag-unfolded-point.svelte-1jkrwn7{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-1jkrwn7 .tag-unfolded-point.svelte-1jkrwn7:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-1jkrwn7 .tag-unfolded-point.svelte-1jkrwn7:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-1jkrwn7 .tag-folded-point.svelte-1jkrwn7{opacity:1;scale:1}.tag-point-wrapper.folded.svelte-1jkrwn7 .tag-unfolded-point.svelte-1jkrwn7{opacity:0;scale:1}.tag-point-wrapper.unfolded.svelte-1jkrwn7 .tag-folded-point.svelte-1jkrwn7{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-1jkrwn7 .tag-unfolded-point.svelte-1jkrwn7{opacity:1;scale:1}')}function ob(i){let t,e,n,o,s,r,a,l,c,u,d,h;return o=new nt({props:{center:!0,blurRadius:15,spreadRadius:5,opacity:.3}}),c=new Hl({props:{icon:i[2],width:i[1]}}),c.$on("iconLoaded",i[11]),{c(){t=z("div"),e=z("div"),n=ee(),K(o.$$.fragment),s=ee(),r=z("div"),a=ee(),l=z("div"),K(c.$$.fragment),y(e,"class","tag-point-click-helper svelte-1jkrwn7"),y(r,"class","tag-unfolded-point svelte-1jkrwn7"),T(r,"transition-delay",(i[3]?i[5]:0)+"ms"),y(l,"class","tag-folded-point svelte-1jkrwn7"),T(l,"transition-delay",(i[3]?i[5]:0)+"ms"),y(t,"class","tag-point-wrapper svelte-1jkrwn7"),q(t,"unfolded",i[0]),q(t,"folded",i[3])},m(m,A){M(m,t,A),j(t,e),j(t,n),J(o,t,null),j(t,s),j(t,r),j(t,a),j(t,l),J(c,l,null),u=!0,d||(h=ge(e,"click",i[4]),d=!0)},p(m,[A]){A&8&&T(r,"transition-delay",(m[3]?m[5]:0)+"ms");const v={};A&4&&(v.icon=m[2]),A&2&&(v.width=m[1]),c.$set(v),A&8&&T(l,"transition-delay",(m[3]?m[5]:0)+"ms"),(!u||A&1)&&q(t,"unfolded",m[0]),(!u||A&8)&&q(t,"folded",m[3])},i(m){u||(I(o.$$.fragment,m),I(c.$$.fragment,m),u=!0)},o(m){L(o.$$.fragment,m),L(c.$$.fragment,m),u=!1},d(m){m&&S(t),Z(o),Z(c),d=!1,h()}}}function sb(i,t,e){let n,o,s,r;var a,l,c,u;const d=St("hooks");let{tag:h}=t,m,A=!1;const v=()=>{m!==void 0&&clearTimeout(m),A=!0,m=setTimeout(()=>{A=!1},800)},p=w=>{A||d.emit("click",{event:w,target:"TagPoint",tag:h})},g=(()=>h.contentType==="Text"&&h.data.appearance==="plane"?500:800)();function b(w){sn.call(this,i,w)}return i.$$set=w=>{"tag"in w&&e(6,h=w.tag)},i.$$.update=()=>{i.$$.dirty&192&&e(0,n=e(7,a=h.state)===null||a===void 0?void 0:a.unfolded),i.$$.dirty&1&&e(3,o=!n),i.$$.dirty&1856&&e(2,s=!(e(9,c=e(8,l=h.style)===null||l===void 0?void 0:l.point)===null||c===void 0)&&c.url?e(10,u=h.style)===null||u===void 0?void 0:u.point:{url:Rg}),i.$$.dirty&64&&e(1,r=(()=>{var w,P,x,C;const D=(P=(w=h.style)===null||w===void 0?void 0:w.point)===null||P===void 0?void 0:P.width;if(typeof D=="number")return D;const E=(C=(x=h.style)===null||x===void 0?void 0:x.point)===null||C===void 0?void 0:C.size;if(typeof E=="number")return E;if(E==="S")return 18;if(E==="M")return 20;if(E==="L")return 24;if(E==="XL")return 28})())},v(),[n,r,s,o,p,g,h,a,l,c,u,b]}class rb extends oe{constructor(t){super(),ie(this,t,sb,ob,ne,{tag:6},ib)}}function ab(i){le(i,"svelte-pzwdws",".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}")}function lb(i){let t;return{c(){t=z("div"),y(t,"data-info","tag content is disable")},m(e,n){M(e,t,n)},p:U,i:U,o:U,d(e){e&&S(t)}}}function cb(i){let t,e;return t=new _l({props:{mediaStore:i[2],withAnimation:i[0],tag:De(i[1]),hooks:i[14],state:i[3],temporaryState:i[4]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&4&&(s.mediaStore=n[2]),o&1&&(s.withAnimation=n[0]),o&2&&(s.tag=De(n[1])),o&8&&(s.state=n[3]),o&16&&(s.temporaryState=n[4]),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function ub(i){let t;return{c(){t=z("div"),y(t,"data-info","tag point is disable")},m(e,n){M(e,t,n)},p:U,i:U,o:U,d(e){e&&S(t)}}}function db(i){let t,e;return t=new rb({props:{tag:i[1]}}),{c(){K(t.$$.fragment)},m(n,o){J(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=n[1]),t.$set(s)},i(n){e||(I(t.$$.fragment,n),e=!0)},o(n){L(t.$$.fragment,n),e=!1},d(n){Z(t,n)}}}function hb(i){let t,e,n,o,s,r,a,l,c;const u=[cb,lb],d=[];function h(p,g){return p[12]?0:1}n=h(i),o=d[n]=u[n](i);const m=[db,ub],A=[];function v(p,g){return p[13]?0:1}return r=v(i),a=A[r]=m[r](i),{c(){t=z("div"),e=z("div"),o.c(),s=ee(),a.c(),y(e,"class","wrapper svelte-pzwdws"),y(e,"data-tag-unfolded",i[8]),y(e,"data-tag-id",i[11]),y(e,"data-content-type",l=i[1].contentType),T(e,"left",i[7]),T(e,"top",i[6]),T(e,"z-index",i[5]),y(t,"class","tag svelte-pzwdws"),y(t,"data-tag-id",i[11]),q(t,"unClickable",i[1].mergedConfig.clickable===!1),q(t,"disable",i[10]),q(t,"hide",i[9]),q(t,"withAnimation",i[0])},m(p,g){M(p,t,g),j(t,e),d[n].m(e,null),j(e,s),A[r].m(e,null),c=!0},p(p,[g]){let b=n;n=h(p),n===b?d[n].p(p,g):(se(),L(d[b],1,1,()=>{d[b]=null}),re(),o=d[n],o?o.p(p,g):(o=d[n]=u[n](p),o.c()),I(o,1),o.m(e,s));let w=r;r=v(p),r===w?A[r].p(p,g):(se(),L(A[w],1,1,()=>{A[w]=null}),re(),a=A[r],a?a.p(p,g):(a=A[r]=m[r](p),a.c()),I(a,1),a.m(e,null)),(!c||g&256)&&y(e,"data-tag-unfolded",p[8]),(!c||g&2048)&&y(e,"data-tag-id",p[11]),(!c||g&2&&l!==(l=p[1].contentType))&&y(e,"data-content-type",l),g&128&&T(e,"left",p[7]),g&64&&T(e,"top",p[6]),g&32&&T(e,"z-index",p[5]),(!c||g&2048)&&y(t,"data-tag-id",p[11]),(!c||g&2)&&q(t,"unClickable",p[1].mergedConfig.clickable===!1),(!c||g&1024)&&q(t,"disable",p[10]),(!c||g&512)&&q(t,"hide",p[9]),(!c||g&1)&&q(t,"withAnimation",p[0])},i(p){c||(I(o),I(a),c=!0)},o(p){L(o),L(a),c=!1},d(p){p&&S(t),d[n].d(),A[r].d()}}}function fb(i,t,e){let n,o,s,r,a,l,c,u,d;var h,m,A,v,p,g,b,w;let{withAnimation:P=!1}=t,{tag:x}=t,{mediaStore:C}=t,{state:D}=t,{temporaryState:E}=t;const O=St("hooks");return i.$$set=G=>{"withAnimation"in G&&e(0,P=G.withAnimation),"tag"in G&&e(1,x=G.tag),"mediaStore"in G&&e(2,C=G.mediaStore),"state"in G&&e(3,D=G.state),"temporaryState"in G&&e(4,E=G.temporaryState)},i.$$.update=()=>{i.$$.dirty&2&&e(13,n=(()=>!(x.contentType==="Sticker"||x.contentType==="Link"||x.contentType==="VRLink"||x.contentType==="PanoLink"||x.contentType==="Audio"&&x.data.appearance==="plane"))()),i.$$.dirty&2&&e(12,o=(()=>x.stickType==="2DPoint")()),i.$$.dirty&2&&e(11,s=x.id),i.$$.dirty&98306&&e(10,r=!(!(e(15,h=x.pointTagStyle)===null||h===void 0)&&h.leftPercent)||!(!(e(16,m=x.pointTagStyle)===null||m===void 0)&&m.topPercent)||x.enabled===!1||!x.state),i.$$.dirty&393218&&e(9,a=!(!(e(17,A=x.state)===null||A===void 0)&&A.visible)||(e(18,v=x.temporaryState)===null||v===void 0?void 0:v.visible)===!1),i.$$.dirty&524290&&e(8,l=e(19,p=x.state)===null||p===void 0?void 0:p.unfolded),i.$$.dirty&1048578&&e(7,c=(e(20,g=x.pointTagStyle)===null||g===void 0?void 0:g.leftPercent)+"%"),i.$$.dirty&2097154&&e(6,u=(e(21,b=x.pointTagStyle)===null||b===void 0?void 0:b.topPercent)+"%"),i.$$.dirty&4194306&&e(5,d=!(e(22,w=x.state)===null||w===void 0)&&w.unfolded?1:0)},[P,x,C,D,E,d,u,c,l,a,r,s,o,n,O,h,m,A,v,p,g,b,w]}class mb extends oe{constructor(t){super(),ie(this,t,fb,hb,ne,{withAnimation:0,tag:1,mediaStore:2,state:3,temporaryState:4},ab)}}function pb(i){le(i,"svelte-uq11d5",".tag--container.svelte-uq11d5{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:translate3d(0, 0, 0)}.withAnimation.svelte-uq11d5{transition:opacity 0.3s linear}.tag--container.hide.svelte-uq11d5{opacity:0;pointer-events:none}.tag--container.hide.svelte-uq11d5 *{pointer-events:none !important}")}function ca(i,t,e){const n=i.slice();return n[6]=t[e],n}function ua(i){let t,e=[],n=new Map,o,s=i[1];const r=a=>a[6].id;for(let a=0;a<s.length;a+=1){let l=ca(i,s,a),c=r(l);n.set(c,e[a]=da(c,l))}return{c(){t=z("div");for(let a=0;a<e.length;a+=1)e[a].c();y(t,"class","tag--container svelte-uq11d5"),q(t,"hide",!i[3].visible||!i[4].visible),q(t,"withAnimation",i[0])},m(a,l){M(a,t,l);for(let c=0;c<e.length;c+=1)e[c].m(t,null);o=!0},p(a,l){l&31&&(s=a[1],se(),e=qe(e,l,r,1,a,s,n,t,Pt,da,null,ca),re()),(!o||l&24)&&q(t,"hide",!a[3].visible||!a[4].visible),(!o||l&1)&&q(t,"withAnimation",a[0])},i(a){if(!o){for(let l=0;l<s.length;l+=1)I(e[l]);o=!0}},o(a){for(let l=0;l<e.length;l+=1)L(e[l]);o=!1},d(a){a&&S(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}function da(i,t){let e,n,o;return n=new mb({props:{state:t[3],temporaryState:t[4],withAnimation:t[0],tag:t[6],mediaStore:t[2]}}),{key:i,first:null,c(){e=me(),K(n.$$.fragment),this.first=e},m(s,r){M(s,e,r),J(n,s,r),o=!0},p(s,r){t=s;const a={};r&8&&(a.state=t[3]),r&16&&(a.temporaryState=t[4]),r&1&&(a.withAnimation=t[0]),r&2&&(a.tag=t[6]),r&4&&(a.mediaStore=t[2]),n.$set(a)},i(s){o||(I(n.$$.fragment,s),o=!0)},o(s){L(n.$$.fragment,s),o=!1},d(s){s&&S(e),Z(n,s)}}}function gb(i){let t,e,n=i[3].enabled&&ua(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),M(o,t,s),e=!0},p(o,[s]){o[3].enabled?n?(n.p(o,s),s&8&&I(n,1)):(n=ua(o),n.c(),I(n,1),n.m(t.parentNode,t)):n&&(se(),L(n,1,1,()=>{n=null}),re())},i(o){e||(I(n),e=!0)},o(o){L(n),e=!1},d(o){n&&n.d(o),o&&S(t)}}}function Ab(i,t,e){let{withAnimation:n=!1}=t,{tags:o=[]}=t,{hooks:s}=t,{mediaStore:r}=t,{state:a}=t,{temporaryState:l}=t;return Ui("hooks",s),i.$$set=c=>{"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)},[n,o,r,a,l,s]}class vb extends oe{constructor(t){super(),ie(this,t,Ab,gb,ne,{withAnimation:0,tags:1,hooks:5,mediaStore:2,state:3,temporaryState:4},pb)}}const bb=new Ac.GLTFLoader;function yb(i){return new Promise((t,e)=>{function n(s){t(s)}function o(s){e(s)}bb.load(i,n,void 0,o)})}class wb extends k.Mesh{constructor(e,n){super();f(this,"name","ImageModel");f(this,"imageSrc");this.imageSrc=e,eo(e).then(o=>{const s=o.image.width,r=o.image.height,a=new k.MeshBasicMaterial({map:o,transparent:!0}),l=new k.PlaneGeometry(s,r);this.geometry=l,this.material=a;const c=new V.Vector3().subVectors(n[1],n[0]),u=new V.Vector3().subVectors(n[3],n[0]),d=hi(...n),h=new V.Vector3().crossVectors(c,u).normalize();this.lookAt(h);const m=this.up.clone().applyQuaternion(this.quaternion),A=u.clone(),v=new V.Vector3().crossVectors(m,A).normalize();this.rotateOnWorldAxis(v,m.angleTo(A)),this.position.copy(d);const p=n[0].distanceTo(n[1]),g=n[1].distanceTo(n[2]);this.scale.set(p/s,g/r,1);const b=s/r,w=p/g;b>w?this.scale.set(p/s,p/s,1):b<w?this.scale.set(g/r,g/r,1):this.scale.set(p/s,g/r,1)}).catch(o=>{console.log({e:o})})}}class Cb extends Cg{constructor(e){super(e);f(this,"group",new V.Group);f(this,"imagePlaneGroup",new V.Group);f(this,"gltfObjectGroup",new V.Group);f(this,"enabledModelTagSet",new Set);f(this,"temporaryState",{visible:!0});f(this,"TagContainerSvelte");f(this,"loadModel",e=>W(this,null,function*(){var l;const n=e.data.modelUrl;if(!n)return;const o=yb(n).then(c=>Object.assign(c.scene,{customID:e.id,isTagModel:!0}));e.model={promise:o};const s=yield o;if(((l=e.model)==null?void 0:l.promise)!==o||(e.model.object=s,!this.tags.includes(e)))return;s.visible=e.state.visible,new V.Matrix4().fromArray(e.matrix).decompose(s.position,s.quaternion,s.scale),s.updateWorldMatrix(!0,!0),this.getVisibleByFloorIndex(e)||(s.visible=!1);const a=this.gltfObjectGroup.children.find(c=>c.customID===e.id);return a&&this.gltfObjectGroup.remove(a),this.gltfObjectGroup.add(s),this.updateTagCss3DObjectMatrix(e,s),s}));this.group.name="PanoTagPluginModelGroup",this.gltfObjectGroup.name="PanoTagPluginGLTFObjectGroup",this.imagePlaneGroup.name="ImagePlaneGroup",this.group.add(this.gltfObjectGroup),this.group.add(this.imagePlaneGroup)}clearTags(){this.tags.forEach(e=>{var n,o;(o=(n=e.imageModel)==null?void 0:n.parent)==null||o.remove(e.imageModel)}),this.tags=[],this.enabledModelTagSet.clear(),this.clearCache(),this.disposeAllCSS3DContainer(),this.updateRenderAllTags()}updateRenderAllTags(){this.enabledModelTagSet.clear(),this.tags.forEach(e=>e.stickType==="Model"&&this.enabledModelTagSet.add(e.id)),this.updateRenderPointTag(),this.updateRenderPlaneTag(),this.updateRenderModelTag(),this.updateRenderImageModel()}updateRenderImageModel(){this.sort([...this.filterImageModel]).forEach(n=>{var s,r,a,l;const o=(s=n.data.mediaData[0])==null?void 0:s.url;!o||(n.imageModel&&(n.imageModel.visible=(a=(r=n.state)==null?void 0:r.visible)!=null?a:!0),((l=n.imageModel)==null?void 0:l.imageSrc)!==o&&(n.imageModel=new wb(o,n.position.map(st)),n.imageModel.name="PanoTagPluginImageModel",this.imagePlaneGroup.add(n.imageModel)))})}updateRenderPlaneTag(){this.sort([...this.filter3DTag]).forEach(n=>{var l,c,u;if(Fe(n)&&((l=n.model)==null?void 0:l.object)&&this.updateTagCss3DObjectMatrix(n,(c=n.model)==null?void 0:c.object),n.tag3DContentSvelte){const{svelteApp:d,domContainer:h,initialNormal:m,currentNormal:A}=n.tag3DContentSvelte;if(this.updateTagCss3DObjectVisible(n),d.$set({tag:n,hooks:this.hooks,state:this.state,temporaryState:this.temporaryState}),!m.equals(A)){const v=new V.Quaternion().setFromUnitVectors(m,A);h.css3DObject.setRotationFromQuaternion(v)}return}if(((u=n.state)==null?void 0:u.visible)===!1)return;if(this.css3DRenderPlugin||(this.css3DRenderPlugin=Kt(this.five)),n.stickType==="3DPoint"&&!n.normal)return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");const o=(()=>{if(n.stickType==="Plane")return n.position;if(Fe(n))return n.data.mediaPosition;const d=n;return Kp(this.five.camera.position,st(d.position),st(d.normal))})();if(!o)return;const s=function(){if(n.normal)return st(n.normal);if(n.stickType==="Plane")return oo(n.position);if(n.contentType==="MediaModel")return oo(o)}();if(!s)return;const r=this.getTagConfig(n).tag3DConfig,a=this.css3DRenderPlugin.create3DDomContainer(o,r);!a||(this.updateTagCss3DObjectVisible(n),this.store.css3DRenderDisposer.set(n.id,a.dispose),n.tag3DContentSvelte={svelteApp:new _l({target:a.container,props:{tag:n,hooks:this.hooks,state:this.state,mediaStore:this.mediaStore,temporaryState:this.temporaryState}}),domContainer:a,initialNormal:s,currentNormal:s})}),this.clearUnusedPanelTag()}updateRenderModelTag(){const e=o=>!this.enabledModelTagSet.has(o.customID);this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)),this.tags.filter(Fe).forEach(o=>{var s;(s=o.model)==null||s.promise.then(r=>{r.visible=o.state.visible})})}updateTagModelVisible(){this.tags.forEach(e=>{var n,o,s;e.imageModel&&(e.imageModel.visible=(s=((n=e.state)==null?void 0:n.visible)&&((o=this.state)==null?void 0:o.visible))!=null?s:!0)})}updateTagCss3DObjectMatrix(e,n){var v,p,g,b;const o=(g=(p=(v=e.mergedConfig)==null?void 0:v.tag3DConfig)==null?void 0:p.ratio)!=null?g:.00216,s=(b=e.tag3DContentSvelte)==null?void 0:b.domContainer.css3DObject;if(!s)return;const r=Fe(e)?e.data.mediaPosition:e.position;n.updateWorldMatrix(!1,!1);const a=n.matrixWorld,l=new V.Vector3().fromArray(r[0]),c=new V.Vector3().fromArray(r[2]),u=new V.Vector3().lerpVectors(l,c,.5).add(new V.Vector3(0,0,5e-4)),d=new V.Matrix4().setPosition(u),h=new V.Matrix4().makeScale(o,o,o),m=new V.Matrix4().multiply(a).multiply(d).multiply(h);m.decompose(s.position,s.quaternion,s.scale);const A=s.opacityMesh;!A||m.decompose(A.position,A.quaternion,A.scale)}addMediaModelTag(e){return W(this,null,function*(){const n=e.filter(Fe).map(this.loadModel);yield Promise.all(n),this.setModelMedialVisible(),this.updateRenderAllTags()})}updateRenderPointTag(){var n;const e=this.sort(this.filterPointTag);if(this.setPointTagPosition(),this.TagContainerSvelte)this.TagContainerSvelte.$set({tags:e,state:this.state,temporaryState:this.temporaryState});else{const o=(n=this.five.getElement())==null?void 0:n.parentElement;if(!o)return console.error("updateRenderPlaneTag: tag2DContainer not found");this.TagContainerSvelte=new vb({target:o,props:{hooks:this.hooks,tags:e,state:this.state,temporaryState:this.temporaryState,mediaStore:this.mediaStore}})}}updateTagContainerVisible(){var e;(e=this.TagContainerSvelte)==null||e.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation}),this.filter3DTag.forEach(n=>{var o,s,r,a;(r=(s=(o=n.tag3DContentSvelte)==null?void 0:o.domContainer)==null?void 0:s.css3DObject)==null||r.setVisible(this.state.visible),(a=n.tag3DContentSvelte)==null||a.svelteApp.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation})})}disposeAllCSS3DContainer(){for(const[e,n]of this.store.css3DRenderDisposer)n==null||n();this.store.css3DRenderDisposer=new Map}clearUnusedPanelTag(){this.filter2DPointTag.forEach(e=>{var n;(n=e.tag3DContentSvelte)==null||n.domContainer.dispose(),e.tag3DContentSvelte=void 0});for(const[e,n]of this.store.css3DRenderDisposer){const o=this.getTagById(e);(!o||o.stickType==="2DPoint")&&(n==null||n(),this.store.css3DRenderDisposer.delete(e))}}updateTagCss3DObjectVisible(e){var n,o,s,r,a;(a=(o=(n=e.tag3DContentSvelte)==null?void 0:n.domContainer)==null?void 0:o.css3DObject)==null||a.setVisible((r=this.state.visible&&((s=e.state)==null?void 0:s.visible))!=null?r:!0),this.five.needsRender=!0}}const Gl="Dnalogel-PanoTagPlugin",Eb=i=>`${Gl}--${i}`;class Wl extends Cb{constructor(e,n){super(e);f(this,"state",{enabled:!0,visible:!0});f(this,"params");f(this,"debug");f(this,"changeTagModel",(e,n)=>W(this,null,function*(){e.data=ft.default({},e.data,n),yield this.loadModel(e),this.updateRenderAllTags()}));f(this,"handleFiveInitAnimationEnded",()=>{const e=this.five.getCurrentState().mode;this.tags.forEach(n=>{Fe(n)&&e==="Panorama"&&this.changeTagMode(n,"front"),n.state.visible=this.getVisible(n)}),this.updateRenderAllTags(),this.updateRenderAllTags()});f(this,"handleFiveModelShownFloorChange",()=>{this.tags.forEach(e=>{!Fe(e)||(e.state.visible=this.getVisible(e))}),this.updateRenderAllTags()});this.params=Q({debug:!1,config:this.config},n),this.debug=this.params.debug,this.config=this.params.config,ig(1,{namespace:Eo.PlayAudio});try{Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__)||(window.__PANOTAGPLUGIN_DEBUG_LIST__=[]),window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this),window.__PANOTAGPLUGIN_DEBUG__=this}catch(o){}}load(e,n){return W(this,null,function*(){var s,r;this.clearTags(),console.info(Gl," load:",{data:JSON.parse(JSON.stringify(e))}),this.config=ft.default({},this.config,{globalConfig:(s=e.globalConfig)!=null?s:{},contentTypeConfig:(r=e.contentTypeConfig)!=null?r:{}});const o=yield this.addTag(e.tagList,n);if(this.debug)try{qp(this.five,this.tags)}catch(a){console.error(a)}return o})}addTag(e,n){return W(this,null,function*(){const s=(Array.isArray(e)?e:[e]).map(r=>{const a=this.getTagConfig(r);return fe(Q({},r),{state:Q({visible:void 0,unfolded:this.can("fold",r)?!1:void 0},a.initialState),hooks:new Ce.Subscribe,mergedConfig:a,unfold:()=>this.changeUnfoldedById(r.id,!0),fold:()=>this.changeUnfoldedById(r.id,!1),enable:()=>this.changeEnabledById(r.id,!0),disable:()=>this.changeEnabledById(r.id,!1),destroy:()=>this.destroyTagById(r.id)})}).filter(r=>r.position);return s.forEach(tg),this.tags.push(...s),Zp(this.five).then(()=>W(this,null,function*(){var r,a,l;this.store.eventListenerDisposer&&((a=(r=this.store).eventListenerDisposer)==null||a.call(r)),this.state.enabled&&this.handleEnable(),this.addResizeListener(),this.clearUnusedPanelTag(),this.setVisibleAndUnfolded({withAnimation:(l=n==null?void 0:n.withAnimation)!=null?l:!0}).then(()=>this.updateRenderAllTags()),this.updateRenderAllTags(),yield this.addMediaModelTag(s)}))})}changeConfig(e,n=!0){n?this.config=ft.default({},this.config,e):this.config=e,this.updateTagConfig({force:!0}),this.updateRenderAllTags()}changeGlobalConfig(e,n=!0){n?this.config.globalConfig=ft.default({},this.config.globalConfig,e):this.config.globalConfig=e,this.updateTagConfig({force:!0}),this.updateRenderAllTags()}changeContentTypeConfig(e,n,o=!0){this.config.contentTypeConfig||(this.config.contentTypeConfig={}),o?this.config.contentTypeConfig[e]=ft.default({},this.config.contentTypeConfig[e],n):this.config.contentTypeConfig[e]=n,this.clearCache(),this.updateRenderAllTags()}show(e){return W(this,null,function*(){if(this.checkDisposed())return;const{userAction:n=!0,withAnimation:o=!1}=e!=null?e:{};this.setState({visible:!0},{userAction:n,visibleWithAnimation:o}),this.hooks.emit("show",{userAction:n,withAnimation:o})})}hide(e){return W(this,null,function*(){if(this.checkDisposed())return;const{userAction:n=!0,withAnimation:o=!1}=e!=null?e:{};this.setState({visible:!1},{userAction:n,visibleWithAnimation:o}),this.hooks.emit("hide",{userAction:n,withAnimation:o})})}enable(e){if(this.checkDisposed())return;const{userAction:n=!0}=e!=null?e:{};this.setState({enabled:!0},{userAction:n}),this.hooks.emit("enable",{userAction:n})}disable(e){if(this.checkDisposed())return;const{userAction:n=!0}=e!=null?e:{};this.setState({enabled:!1},{userAction:n}),this.hooks.emit("disable",{userAction:n})}setState(e,n){if(this.checkDisposed())return;const{userAction:o=!0,visibleWithAnimation:s=!1}=n,r=Q({},this.state);this.state=Object.assign(this.state,e),this.store.visibleWithAnimation=s,r.visible!==this.state.visible&&(e.visible?this.handleShow():this.handleHide()),r.enabled!==this.state.enabled&&(e.enabled?this.handleEnable():this.handleDisable()),this.hooks.emit("stateChange",{state:this.state,prevState:r,userAction:o})}dispose(){var e,n,o,s,r,a;this.pauseCurrentMedia(),this.disposeAllCSS3DContainer(),(e=this.TagContainerSvelte)==null||e.$destroy(),this.filter3DTag.forEach(l=>{var c;return(c=l.tag3DContentSvelte)==null?void 0:c.svelteApp.$destroy()}),this.tags=[],(n=this.store.disposers)==null||n.forEach(l=>l==null?void 0:l()),this.store.disposers=[],(s=(o=this.store).eventListenerDisposer)==null||s.call(o),this.store.eventListenerDisposer=void 0,(a=(r=this.store).resizeObserverDisposer)==null||a.call(r),this.store.resizeObserverDisposer=void 0,this.store.resizeObserverDisposerAdding=!1,this.five.scene.remove(this.group),this.group.remove(...this.group.children),this.gltfObjectGroup.remove(...this.gltfObjectGroup.children),this.clearCache(),this.five.needsRender=!0,this.store.disposed=!0,this.hooks.emit("dispose")}changeUnfoldedById(e,n){var a;const o=this.getTagById(e);if(!o)return;const s=this.can("fold",o),r=this.can("unfold",o);if(s&&r){o.state.unfolded=n;const l=this.filterPointTag;(a=this.TagContainerSvelte)==null||a.$set({tags:l})}else console.warn(`tag ${e} cannot be ${n?"unfolded":"folded"}}`)}changeEnabledById(e,n){const o=this.getTagById(e);!o||(o.enabled=n,this.updateRenderAllTags())}changeTagNormalById(e,n){const o=this.getTagById(e);!o||!o.tag3DContentSvelte||(o.tag3DContentSvelte.currentNormal=st(n),this.updateRenderPlaneTag())}changeDataById(e,n,o=!0){const s=this.getTagById(e);!s||(o?s.data=ft.default({},s.data,n):s.data=Q(Q({},s.data),n),this.clearUnusedPanelTag(),this.updateRenderAllTags())}changeStickTypeById(e,n,o=!0){this.changeTagById(e,n,o)}changeTagById(e,n,o=!0){const s=this.getTagById(e);!n||(o?ft.default(s,n):Object.assign(s,n),(s==null?void 0:s.tag3DContentSvelte)&&(n==null?void 0:n.normal)&&(s.tag3DContentSvelte.currentNormal=st(n.normal)),this.updateRenderAllTags(),this.clearUnusedPanelTag())}destroyTagById(e){(Array.isArray(e)?e:[e]).forEach(o=>{const s=this.tags.findIndex(r=>r.id===o);s!==-1&&this.tags.splice(s,1)}),this.updateRenderAllTags()}setVisibleAndUnfolded(){return W(this,arguments,function*({withAnimation:e}={withAnimation:!1}){if(!!this.isPanorama)return this.setVisibleByPanoIndex(),e?new Promise(n=>{setTimeout(()=>{this.setUnfoldedByPanoIndex(),n()},10)}):(this.setUnfoldedByPanoIndex(),Promise.resolve())})}handleShow(){this.state.visible=!0,this.group.visible=!0,this.updateTagContainerVisible(),this.updateTagModelVisible(),this.five.needsRender=!0}handleHide(){this.pauseCurrentMedia(),this.state.visible=!1,this.group.visible=!1,this.updateTagContainerVisible(),this.updateTagModelVisible(),this.five.needsRender=!0}handleEnable(){this.state.enabled=!0,this.store.eventListenerDisposer=this.addEventListener(),this.five.scene.children.includes(this.group)||this.five.scene.add(this.group),this.updateRenderAllTags(),this.five.needsRender=!0}handleDisable(){var e,n,o;this.pauseCurrentMedia(),this.state.enabled=!1,(n=(e=this.store).eventListenerDisposer)==null||n.call(e),this.five.scene.remove(this.group),(o=this.TagContainerSvelte)==null||o.$set({tags:[]}),this.filter3DTag.forEach(s=>{var r;(r=s.tag3DContentSvelte)==null||r.svelteApp.$destroy(),s.tag3DContentSvelte=void 0}),this.five.needsRender=!0}addEventListener(){const{five:e,hooks:n}=this,o=this.handleFiveWantsMoveToPano.bind(this),s=this.handleFiveModeChange.bind(this),r=this.handleFiveCameraUpdate.bind(this),a=this.handleFiveCameraUpdateDebounce(),l=this.handleFivePanoArrived.bind(this),c=this.loadVideoFirstFrame.bind(this),u=this.clickhandler.bind(this),d=this.five.currentMode;return d&&this.handleFiveModeChange(d),this.handleFivePanoArrived(),e.on("wantsMoveToPano",o),e.on("modeChange",s),e.on("initAnimationEnded",this.handleFiveInitAnimationEnded),e.on("modelShownFloorChange",this.handleFiveModelShownFloorChange),e.on("cameraUpdate",r),e.on("cameraUpdate",a),e.on("panoArrived",l),e.on("panoArrived",c),n.on("click",u),()=>{e.off("wantsMoveToPano",o),e.off("modeChange",s),e.off("initAnimationEnded",this.handleFiveInitAnimationEnded),e.off("modelShownFloorChange",this.handleFiveModelShownFloorChange),e.off("cameraUpdate",r),e.off("cameraUpdate",a),e.off("panoArrived",l),e.off("panoArrived",c),n.off("click",u),this.store.eventListenerDisposer=void 0}}addResizeListener(){if(!this.store.resizeObserverDisposer&&!this.store.resizeObserverDisposerAdding){const e=this.addResizeObserver();this.store.resizeObserverDisposerAdding=!0,setTimeout(()=>{this.store.resizeObserverDisposer=e,this.store.resizeObserverDisposerAdding=!1},200)}}addResizeObserver(){if(!this.store.disposed)return;const e=this.five.getElement(),n=()=>{!this.state.enabled||(this.show(),this.updateRenderAllTags())},o=()=>{!this.state.enabled||this.hide()},{observe:s,unobserve:r}=nr($p(()=>{!this.store.resizeObserverDisposer||o()},500),e),{observe:a,unobserve:l}=nr(tr(()=>n(),400),e);return s(),a(),()=>{r(),l()}}handleFiveModeChange(e){this.setModelMedialVisible(),this.tags.forEach(n=>{Fe(n)&&e!=="Panorama"&&this.changeTagMode(n,"behind"),n.state.visible=this.getVisible(n)}),this.updateRenderAllTags(),this.updateRenderAllTags()}handleFiveWantsMoveToPano(){this.tags.forEach(e=>{const n=this.getTagConfig(e);typeof n.visibleConfig=="object"&&(n.visibleConfig.keep?e.temporaryState=fe(Q({},e.temporaryState),{visible:n.visibleConfig.keep==="visible"}):e.temporaryState=fe(Q({},e.temporaryState),{visible:Boolean(n.visibleConfig.alwaysShowWhenMovePano)}))}),this.updateTagContainerVisible()}clickhandler(e){if(e.target!=="TagPoint")return;if(!e.tag.state)return console.warn("Clickhandler: params.tag.state is undefined");const n=this.can("fold",e.tag),o=this.can("unfold",e.tag);n&&o&&(e.tag.state.unfolded=!e.tag.state.unfolded,e.tag.state.unfolded&&this.tags.forEach(s=>{s.id!==e.tag.id&&s.state&&this.can("fold",s)&&(s.state.unfolded=!1)}),this.updateRenderAllTags())}handleFiveCameraUpdateDebounce(){return tr(()=>{this.setUnfoldedByCamera(),this.updateRenderAllTags()},100)}handleFiveCameraUpdate(){this.updateRenderPointTag()}handleFivePanoArrived(){return W(this,null,function*(){this.setModelMedialVisible(),yield this.setVisibleAndUnfolded(),this.tags.forEach(e=>{e.temporaryState=fe(Q({},e.temporaryState),{visible:!0})}),this.store.visibleWithAnimation=!0,this.updateTagContainerVisible(),this.updateRenderAllTags()})}setUnfoldedByCamera(){let e=!1;this.tags.forEach(n=>{const o=this.getUnfoldedByCamera(n);!n.state||o!==void 0&&(o===!0&&(e=!0),n.state.unfolded=o)}),e&&this.tags.forEach(n=>{const o=this.getTagConfig(n).unfoldedConfig;typeof o=="object"&&(o.autoUnfold||o.keep)||n.state&&(n.state.unfolded=!1)})}changeTagMode(e,n){var o,s,r,a,l;((r=(s=(o=e.tag3DContentSvelte)==null?void 0:o.domContainer)==null?void 0:s.css3DObject)==null?void 0:r.mode)!==n&&((a=e.config)!=null&&a.tag3DConfig?e.config.tag3DConfig.mode=n:e.config?e.config.tag3DConfig={mode:n}:e.config={tag3DConfig:{mode:n}},(l=this.store.css3DRenderDisposer.get(e.id))==null||l(),e.tag3DContentSvelte=void 0)}}var Nl=(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))(Nl||{}),Xl=(i=>(i.Two="2D",i.Three="3D",i))(Xl||{}),Yl=(i=>(i.PointTag="PointTag",i.PlaneTag="PlaneTag",i))(Yl||{});const Pb=(i,t)=>new Wl(i,t);function ye(i,t){this._camera=i||null,this._domElement=t||document,this._raycaster=new k.Raycaster,this._selected=null,this._boundObjs={};var e=this;this._$onClick=function(){e._onClick.apply(e,arguments)},this._$onDblClick=function(){e._onDblClick.apply(e,arguments)},this._$onMouseMove=function(){e._onMouseMove.apply(e,arguments)},this._$onMouseDown=function(){e._onMouseDown.apply(e,arguments)},this._$onMouseUp=function(){e._onMouseUp.apply(e,arguments)},this._$onTouchMove=function(){e._onTouchMove.apply(e,arguments)},this._$onTouchStart=function(){e._onTouchStart.apply(e,arguments)},this._$onTouchEnd=function(){e._onTouchEnd.apply(e,arguments)},this._$onContextmenu=function(){e._onContextmenu.apply(e,arguments)},this._domElement.addEventListener("click",this._$onClick,!1),this._domElement.addEventListener("dblclick",this._$onDblClick,!1),this._domElement.addEventListener("mousemove",this._$onMouseMove,!1),this._domElement.addEventListener("mousedown",this._$onMouseDown,!1),this._domElement.addEventListener("mouseup",this._$onMouseUp,!1),this._domElement.addEventListener("touchmove",this._$onTouchMove,!1),this._domElement.addEventListener("touchstart",this._$onTouchStart,!1),this._domElement.addEventListener("touchend",this._$onTouchEnd,!1),this._domElement.addEventListener("contextmenu",this._$onContextmenu,!1)}ye.prototype.destroy=function(){this._domElement.removeEventListener("click",this._$onClick,!1),this._domElement.removeEventListener("dblclick",this._$onDblClick,!1),this._domElement.removeEventListener("mousemove",this._$onMouseMove,!1),this._domElement.removeEventListener("mousedown",this._$onMouseDown,!1),this._domElement.removeEventListener("mouseup",this._$onMouseUp,!1),this._domElement.removeEventListener("touchmove",this._$onTouchMove,!1),this._domElement.removeEventListener("touchstart",this._$onTouchStart,!1),this._domElement.removeEventListener("touchend",this._$onTouchEnd,!1),this._domElement.removeEventListener("contextmenu",this._$onContextmenu,!1)};ye.eventNames=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu","touchstart","touchend"];ye.prototype._getRelativeMouseXY=function(i){var t=i.target||i.srcElement;t.nodeType===3&&(t=t.parentNode);var e={x:0,y:0},n=t,o=getComputedStyle(n,null);e.y+=parseInt(o.getPropertyValue("padding-top"),10),e.x+=parseInt(o.getPropertyValue("padding-left"),10);do e.x+=n.offsetLeft,e.y+=n.offsetTop,o=getComputedStyle(n,null),e.x+=parseInt(o.getPropertyValue("border-left-width"),10),e.y+=parseInt(o.getPropertyValue("border-top-width"),10);while(n=n.offsetParent);var s={width:t===window?window.innerWidth:t.offsetWidth,height:t===window?window.innerHeight:t.offsetHeight};return{x:Number((i.pageX-e.x)/s.width)*2-1,y:-((i.pageY-e.y)/s.height)*2+1}};ye.prototype._objectCtxInit=function(i){i._3xDomEvent={}};ye.prototype._objectCtxDeinit=function(i){delete i._3xDomEvent};ye.prototype._objectCtxIsInit=function(i){return!!i._3xDomEvent};ye.prototype._objectCtxGet=function(i){return i._3xDomEvent};ye.prototype.camera=function(i){return i&&(this._camera=i),this._camera};ye.prototype.bind=function(i,t,e,n){console.assert(ye.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var o=this._objectCtxGet(i);o[t+"Handlers"]||(o[t+"Handlers"]=[]),o[t+"Handlers"].push({callback:e,useCapture:n}),this._boundObjs[t]===void 0&&(this._boundObjs[t]=[]),this._boundObjs[t].push(i)};ye.prototype.addEventListener=ye.prototype.bind;ye.prototype.unbind=function(i,t,e,n){console.assert(ye.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var o=this._objectCtxGet(i);o[t+"Handlers"]||(o[t+"Handlers"]=[]);for(var s=o[t+"Handlers"],r=0;r<s.length;r++){var a=s[r];if(e==a.callback&&n==a.useCapture){s.splice(r,1);break}}var l=this._boundObjs[t].indexOf(i);this._boundObjs[t].splice(l,1)};ye.prototype.removeEventListener=ye.prototype.unbind;ye.prototype._bound=function(i,t){var e=this._objectCtxGet(t);return e?!!e[i+"Handlers"]:!1};ye.prototype._onMove=function(i,t,e,n){var o=this._boundObjs[i];if(!(o===void 0||o.length===0)){var s=new k.Vector2;s.set(t,e),this._raycaster.setFromCamera(s,this._camera);var r=this._raycaster.intersectObjects(o),a=this._selected;if(r.length>0){var l,c,u,d=r[0],h=d.object;this._selected=h,u=this._bound("mousemove",h),a!=h&&(l=this._bound("mouseover",h),c=a&&this._bound("mouseout",a))}else c=a&&this._bound("mouseout",a),this._selected=null;u&&this._notify("mousemove",h,n,d),l&&this._notify("mouseover",h,n,d),c&&this._notify("mouseout",a,n,d)}};ye.prototype._onEvent=function(i,t,e,n){var o=this._boundObjs[i];if(!(o===void 0||o.length===0)){var s=new k.Vector2;s.set(t,e),this._raycaster.setFromCamera(s,this._camera);var r=this._raycaster.intersectObjects(o,!0);if(r.length!==0){for(var a=r[0],l=a.object,c=this._objectCtxGet(l),u=l.parent;typeof c=="undefined"&&u;)c=this._objectCtxGet(u),u=u.parent;!c||this._notify(i,l,n,a)}}};ye.prototype._notify=function(i,t,e,n){var o=this._objectCtxGet(t),s=o?o[i+"Handlers"]:null;if(!o||!s||s.length===0){t.parent&&this._notify(i,t.parent,e,n);return}for(var s=o[i+"Handlers"],r=0;r<s.length;r++){var a=s[r],l=!0;a.callback({type:i,target:t,origDomEvent:e,intersect:n,stopPropagation:function(){l=!1}}),!!l&&a.useCapture===!1&&t.parent&&this._notify(i,t.parent,e,n)}};ye.prototype._onMouseDown=function(i){return this._onMouseEvent("mousedown",i)};ye.prototype._onMouseUp=function(i){return this._onMouseEvent("mouseup",i)};ye.prototype._onMouseEvent=function(i,t){var e=this._getRelativeMouseXY(t);this._onEvent(i,e.x,e.y,t)};ye.prototype._onMouseMove=function(i){var t=this._getRelativeMouseXY(i);this._onMove("mousemove",t.x,t.y,i),this._onMove("mouseover",t.x,t.y,i),this._onMove("mouseout",t.x,t.y,i)};ye.prototype._onClick=function(i){this._onMouseEvent("click",i)};ye.prototype._onDblClick=function(i){this._onMouseEvent("dblclick",i)};ye.prototype._onContextmenu=function(i){this._onMouseEvent("contextmenu",i)};ye.prototype._onTouchStart=function(i){return this._onTouchEvent("touchstart",i)};ye.prototype._onTouchEnd=function(i){return this._onTouchEvent("touchend",i)};ye.prototype._onTouchMove=function(i){if(i.touches.length==1){i.preventDefault();var t=Number(i.touches[0].pageX/window.innerWidth)*2-1,e=-(i.touches[0].pageY/window.innerHeight)*2+1;this._onMove("mousemove",t,e,i),this._onMove("mouseover",t,e,i),this._onMove("mouseout",t,e,i)}};ye.prototype._onTouchEvent=function(i,t){if(t.touches.length==1){t.preventDefault();var e=Number(t.touches[0].pageX/window.innerWidth)*2-1,n=-(t.touches[0].pageY/window.innerHeight)*2+1;this._onEvent(i,e,n,t)}};function Ul(i){const t=new k.Box3,e=new k.Vector3;if(i.traverse(n=>{var s;if(n.name==="shadow")return;const o=n.geometry;if(o!==void 0)if((s=o==null?void 0:o.attributes)!=null&&s.position){const r=o.attributes.position;for(let a=0,l=r.count;a<l;a++)e.fromBufferAttribute(r,a).applyMatrix4(n.matrix),t.expandByPoint(e)}else o.vertices.forEach(r=>{const a=r.clone().applyMatrix4(n.matrix);t.expandByPoint(a)})}),!t.isEmpty())return t}class xn{constructor(t,e){f(this,"originObject3D");f(this,"hooks");f(this,"disposers",[]);f(this,"helperObject3D");f(this,"camera");f(this,"model");f(this,"scene");f(this,"container");f(this,"domEvents");f(this,"isDragging",!1);f(this,"enabled",!1);f(this,"name","BaseController");f(this,"boundingBox");f(this,"offset");f(this,"onRender");f(this,"onWantsTapGesture",t=>{if(this.getIntersectObject(t))return!1});var c,u;this.hooks=(c=t.sharedHooks)!=null?c:new Zt,this.camera=t.camera,this.model=t.model,this.originObject3D=t.originObject3D,this.helperObject3D=t.helperObject3D,this.container=t.container,this.scene=t.scene,this.domEvents=new ye(t.camera,t.container),this.onRender=(u=t.onRender)!=null?u:()=>{},this.offset=e==null?void 0:e.offset,this.initialHelperPosition(),this.initialHelperQuaternion(),this.enable();const n=(...d)=>this.onSetOriginObjectScale(...d),o=(...d)=>this.onSetOriginObjectRotate(...d),s=(...d)=>this.onSetOriginObjectPosition(...d),r=(...d)=>this.onApplyOriginObjectScale(...d),a=(...d)=>this.onApplyOriginObjectRotate(...d),l=(...d)=>this.onApplyOriginObjectPosition(...d);this.hooks.on("setObjectScale",n),this.hooks.on("setObjectRotate",o),this.hooks.on("setObjectPosition",s),this.hooks.on("applyObjectPosition",l),this.hooks.on("applyObjectRotate",a),this.hooks.on("applyObjectScale",r),this.disposers.push(()=>{this.hooks.off("setObjectScale",n),this.hooks.off("setObjectRotate",o),this.hooks.off("setObjectPosition",s),this.hooks.off("applyObjectPosition",l),this.hooks.off("applyObjectRotate",a),this.hooks.off("applyObjectScale",r)})}initialHelperPosition(){this.helperObject3D.position.add(this.calculateOffset(this.offset)),this.helperObject3D.initialPosition()}initialHelperQuaternion(){this.helperObject3D.initQuaternion()}enable(){this.enabled||(this.enabled=!0,this.scene.add(this.helperObject3D),this.helperObject3D.enable(),this.render())}disable(){!this.enabled||(this.enabled=!1,this.helperObject3D.disable(),this.render())}show(){this.helperObject3D.show(),this.render()}hide(){this.helperObject3D.hide(),this.render()}dispose(){var t;(t=this.disposers)==null||t.forEach(e=>e==null?void 0:e()),this.helperObject3D.dispose(),this.render()}applyHelperMatrix4(t){this.helperObject3D.applyMatrix4(t)}applyHelperQuaternion(t,e){this.helperObject3D.applyHelperQuaternion(t,e)}applyHelperScaleMatrix4(t,e){this.helperObject3D.applyHelperScaleMatrix4(t,e)}onWantsGesture(t,e,n){if(this.isDragging)return!1}onIntersectionOnModelUpdate(t){}onApplyOriginObjectScale(t){this.applyHelperScaleMatrix4(t.matrix,t.origin)}onApplyOriginObjectRotate(t){this.applyHelperQuaternion(t.quaternion,t.origin)}onApplyOriginObjectPosition(t){this.applyHelperMatrix4(t.matrix)}onSetOriginObjectScale(t){this.helperObject3D.scale.copy(t),this.updateOffsetByScale(t)}onSetOriginObjectRotate(t,e){this.helperObject3D.setHelperQuaternion(t,e)}onSetOriginObjectPosition(t){this.helperObject3D.position.copy(t.clone().add(this.calculateOffset(this.offset)))}render(){this.onRender()}updateOffsetByScale(t){if(this.boundingBox&&this.offset){const e=this.originObject3D.position,n=new k.Vector3().subVectors(this.boundingBox.max,e).multiply(t).add(e),o=new k.Vector3().subVectors(this.boundingBox.min,e).multiply(t).add(e),s=this.calculateOffset(this.offset,{min:o,max:n});this.helperObject3D.position.copy(s),this.helperObject3D.initialPosition()}}hoverListener(t,e=16777215,n=1){const o=(Array.isArray(t)?t:[t]).filter(yt),s=[];for(const r of o)if(r instanceof k.Mesh||r instanceof k.Group){const a=r instanceof k.Group?r.children.filter(h=>h instanceof k.Mesh):[r];a.forEach(h=>{h.__originalColor__=h.material.color.clone(),h.__originalOpacity__=h.material.opacity});const l=()=>{a.forEach(h=>{h.material.color.set(e),h.material.opacity=n}),this.render()},c=()=>{a.forEach(h=>{h.material.color.copy(h.__originalColor__),h.material.opacity=h.__originalOpacity__}),this.render()},u=()=>{this.isDragging||l()},d=()=>{this.isDragging||c()};for(const h of a)this.domEvents.addEventListener(h,"mouseover",u),this.domEvents.addEventListener(h,"mouseout",d),this.hooks.on("moveStart",l),this.hooks.on("moveEnd",c),this.hooks.on("rotateEnd",c),s.push(()=>{this.domEvents.removeEventListener(h,"mouseover",u),this.domEvents.removeEventListener(h,"mouseout",d),this.hooks.off("moveStart",l),this.hooks.off("moveEnd",c),this.hooks.off("rotateEnd",c)})}return()=>s.forEach(r=>r==null?void 0:r())}getIntersectObject(t){const e=this.camera.position,n=this.helperObject3D;if(!n)return;const o=this.helperObject3D.raycasterIntersectObject(t)[0];if(!o)return;const s=o;if(s.object=n,this.model.intersectRaycaster){const r=this.model.intersectRaycaster(t)[0];if(r&&r.point.distanceTo(e)<s.point.distanceTo(e))return}return s.object}calculateOffset(t,e){const n=this.originObject3D,o=new k.Vector3(0,0,0);if(!t)return o;const s=()=>e||(this.boundingBox?this.boundingBox:(this.boundingBox=Ul(n),this.boundingBox));if(typeof t.x=="number")o.setX(t.x);else if(typeof t.x=="object"){const r=s();o.setX((r.max.x-r.min.x)*t.x.percents)}if(typeof t.y=="number")o.setY(t.y);else if(typeof t.y=="object"){const r=s();o.setY((r.max.y-r.min.y)*t.y.percents)}if(typeof t.z=="number")o.setZ(t.z);else if(typeof t.z=="object"){const r=s();o.setZ((r.max.z-r.min.z)*t.z.percents)}return o}}class Ib extends xn{constructor(...e){super(...e);f(this,"name","ScaleController")}setScale(e){var l,c,u;let n=1,o=1,s=1;typeof e=="number"?(n=e,o=e,s=e):typeof e=="object"&&(n=(l=e.x)!=null?l:1,o=(c=e.y)!=null?c:1,s=(u=e.z)!=null?u:1);const r=new k.Vector3(n,o,s);this.hooks.emit("wantToScale",r)||(this.originObject3D.scale.copy(r),this.hooks.emit("setObjectScale",r),this.hooks.emit("scale",r),this.render())}}function ql(i,t,e){if(e){const o=new k.Vector3().subVectors(i.position,e).applyQuaternion(i.quaternion.clone().inverse()).applyQuaternion(t).add(e);i.position.copy(o)}i.quaternion.copy(t)}class kb extends V.Object3D{constructor(){super()}add(...t){if(t.length===0)return this;const e=t.filter(Boolean);return super.add(...e)}remove(...t){if(t.length===0)return this;const e=t.filter(Boolean);return super.remove(...e)}removeFromParent(){const t=this.parent;return t!==null&&t.remove(this),this}}class Pi extends kb{constructor(e,n){var o;super();f(this,"originObject3D");f(this,"onRender");this.originObject3D=e,this.onRender=(o=n==null?void 0:n.onRender)!=null?o:()=>{}}get helperObject(){return this}render(){this.onRender()}enable(){this.parent.children.includes(this)||this.parent.add(this)}disable(){this.removeFromParent()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}raycasterIntersectObject(e,n=[]){return e.intersectObject(this,!0,n)}initialPosition(){this.position.add(this.originObject3D.position)}initQuaternion(){this.quaternion.copy(this.originObject3D.quaternion)}applyHelperScaleMatrix4(e,n){this.scale.applyMatrix4(e)}setHelperQuaternion(e,n){ql(this,e,n)}applyHelperQuaternion(e,n){if(n){const o=new V.Vector3().subVectors(this.position,n).applyQuaternion(e).add(n);this.position.copy(o)}this.applyQuaternion(e)}dispose(){this.removeFromParent()}}class xb extends Pi{}class Db extends Pi{}class Lb extends Pi{}class Jl extends Pi{}class Sb extends Jl{}class Mb extends k.Group{constructor(e){super();f(this,"direction");this.direction=e||"x"}}class ha extends k.Mesh{constructor(e,n,o){super(e,n);f(this,"direction");this.direction=o||"x"}}function Tb(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return Object.assign(new k.Vector2,{x:(i.x-s)/e*2-1,y:-(i.y-o)/n*2+1})}function Do(i,t,e){if(!t||!e||!i)return;const n=Tb(t,e);if(Math.abs(n.x)===1||Math.abs(n.y)===1)return;const o=new k.Raycaster;return o.setFromCamera(n,i),o}function zb(i,t){return!(Math.abs(i.x-t.x)>1e-5||Math.abs(i.y-t.y)>1e-5||Math.abs(i.z-t.z)>1e-5)}class _i extends Mb{constructor(e){var u;super(e.direction);f(this,"line");f(this,"arrow");f(this,"lineHeight",.4);f(this,"arrowHeight",.1);this.name="ArrowGroup";const n=new k.Color((u=e.color)!=null?u:16214315),o=new k.MeshBasicMaterial({color:n,depthTest:!1,opacity:1,transparent:!0,side:k.DoubleSide}),s=new k.ConeGeometry(.04,.1,32),r=new ha(s,o.clone(),e.direction);r.name=`arrow-${e.direction}`,this.arrow=r;const a=.004,l=new k.CylinderGeometry(a,a,.4,32),c=new ha(l,o.clone(),e.direction);c.name=`line-${e.direction}`,this.line=c,this.formatArrow(),this.formatLine(),this.add(this.arrow,this.line)}formatArrow(){this.arrow.geometry.translate(0,this.lineHeight+this.arrowHeight/2,0),this.direction==="x"?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.arrow.geometry.rotateX(Math.PI/2)}formatLine(){this.line.geometry.translate(0,this.lineHeight/2,0),this.direction==="x"?(this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.line.geometry.rotateX(Math.PI/2)}}const Gi={X:15618642,Y:4765519,Z:4227839};class Wt{static get X(){return new k.Color(Gi.X).convertSRGBToLinear().clone()}static get Y(){return new k.Color(Gi.Y).convertSRGBToLinear().clone()}static get Z(){return new k.Color(Gi.Z).convertSRGBToLinear().clone()}}class Bb extends xb{constructor(e){super(e);f(this,"xArrow",new _i({direction:"x",color:Wt.X}));f(this,"yArrow",new _i({direction:"y",color:Wt.Y}));f(this,"zArrow",new _i({direction:"z",color:Wt.Z}));this.add(this.xArrow),this.add(this.yArrow),this.add(this.zArrow)}show(){super.show(),this.xArrow.visible=!0,this.yArrow.visible=!0,this.zArrow.visible=!0}showDraggingHelper(e){this.xArrow.visible=e.includes("x"),this.yArrow.visible=e.includes("y"),this.zArrow.visible=e.includes("z")}dispose(){this.remove(this.xArrow,this.yArrow,this.zArrow)}}function Lt(i,t){return jb(document.createElement(t!=null?t:"div"),i)}function jb(i,t){if(!t)return i;for(const e in t)e&&t[e]&&(i.style[e]=t[e]);return i}function Vb(i){const t=Lt(Q({position:"absolute",display:"block",borderRadius:"4px",paddingTop:"1px",paddingBottom:"1px",paddingLeft:"4px",paddingRight:"4px",pointerEvents:"none",userSelect:"none",zIndex:"9999",backgroundColor:"rgba(0,0,0,0.7)",fontSize:"12px",color:"#fff",letterSpacing:"0",lineHeight:"18px"},i)),e=()=>{t.style.display!=="block"&&(!t.style.top||!t.style.left||(t.style.display="block"))};return{element:t,show:e,hide:()=>{t.style.display="none",t.style.top="",t.style.left=""},setLeftTop:(s,r)=>{t.style.left=s,t.style.top=r,e()}}}class Ob extends Lb{constructor(e,n){super(e);f(this,"xCircle");f(this,"yCircle");f(this,"zCircle");f(this,"children",[]);f(this,"angleTips");f(this,"container");(n==null?void 0:n.yzCircleEnable)!==!1&&(this.xCircle=new Wi({direction:"x",color:Wt.X})),(n==null?void 0:n.xzCircleEnable)!==!1&&(this.yCircle=new Wi({direction:"y",color:Wt.Y})),(n==null?void 0:n.xyCircleEnable)!==!1&&(this.zCircle=new Wi({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=Vb({display:"none"}),this.container.appendChild(this.angleTips.element)),this.add(...[this.xCircle,this.yCircle,this.zCircle].filter(Boolean)),this.show()}hide(){this.children.forEach(e=>e.hide())}show(){var e;this.children.forEach(n=>n.showCircle()),(e=this.angleTips)==null||e.hide()}showDraggingHelper(e){var n;this.hide(),this.children.filter(o=>e.includes(o.direction)).forEach(o=>o.showRing()),(n=this.angleTips)==null||n.show()}dispose(){var e,n;this.removeFromParent(),(n=(e=this.angleTips)==null?void 0:e.element)==null||n.remove()}}class Wi extends k.Group{constructor(e){super();f(this,"direction");f(this,"circle");f(this,"ring");f(this,"angleSector");this.direction=e.direction,this.circle=new Rb(e),this.ring=new Qb(e),this.angleSector=new Fb(e),this.add(this.circle,this.ring,this.angleSector),this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}showCircle(){this.add(this.circle),this.remove(this.ring,this.angleSector)}showRing(){this.add(this.ring,this.angleSector),this.remove(this.circle)}hide(){this.remove(this.ring,this.angleSector,this.circle)}}class Rb extends k.Mesh{constructor(e){var n;super();f(this,"direction");f(this,"gapAngle",.02);f(this,"geometry",new k.RingGeometry(.25,.3,20,8,this.gapAngle,Math.PI/2-this.gapAngle*2));this.material=new k.MeshBasicMaterial({opacity:.6,color:(n=e.color)!=null?n:16777215,transparent:!0,side:k.DoubleSide,depthTest:!1}),this.direction=e.direction,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`}}class Qb extends k.Group{constructor(e){super();f(this,"direction");this.direction=e.direction;const n=.015,o=new Array(8).fill(null).map((s,r)=>{const a=new k.RingGeometry(.25,.3,20,8,Math.PI/4*r+n,Math.PI/4-n*2),l=new k.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,transparent:!0,side:k.DoubleSide}),c=new k.Mesh(a,l);return c.name=`AxesDashedRing-${this.direction}-${r}`,c});this.add(...o)}}class Fb extends k.Mesh{constructor(e){var o;super();f(this,"direction");f(this,"baseAxes");f(this,"angleDirection");switch(e.direction){case"x":this.baseAxes=new k.Vector3(0,0,1);break;case"y":this.baseAxes=new k.Vector3(1,0,0);break;case"z":this.baseAxes=new k.Vector3(1,0,0);break}const n=.3+5e-4;this.geometry=new k.CircleGeometry(n,48,0,1e-4),this.material=new k.MeshBasicMaterial({opacity:.4,color:(o=e.color)!=null?o:16777215,depthTest:!1,transparent:!0,side:k.DoubleSide}),this.direction=e.direction,this.angleDirection=this.direction==="z"?1:-1}}function Hb(){const i=Lt({width:"100%",height:"100%",left:"0",top:"0",position:"absolute",pointerEvents:"none"}),t=Lt({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}),e=Lt({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"absolute",border:"1px solid rgba(255,255,255,0.4)"});i.appendChild(t),t.appendChild(e);const n="-4px",o={direction:"nesw",element:ht({cursor:"nesw-resize",left:n,bottom:n})},s={direction:"ns",element:ht({cursor:"ns-resize",bottom:n})},r={direction:"nwse",element:ht({cursor:"nwse-resize",right:n,bottom:n})},a={direction:"ew",element:ht({cursor:"ew-resize",right:n})},l={direction:"nesw",element:ht({cursor:"nesw-resize",right:n,top:n})},c={direction:"ns",element:ht({cursor:"ns-resize",top:n})},u={direction:"nwse",element:ht({cursor:"nwse-resize",left:n,top:n})},d={direction:"ew",element:ht({cursor:"ew-resize",left:n})};return new Array(s,a,c,d,o,r,l,u).forEach(m=>t.appendChild(m.element)),{container:i,squares:[o,s,r,a,l,c,u,d]}}function ht(i){const t=Lt(Q({background:"#FFFFFF",width:"9px",height:"9px",position:"absolute",pointerEvents:"none"},i)),e=Lt({width:"15px",height:"15px",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"}),n=Lt({width:"15px",height:"15px",cursor:i==null?void 0:i.cursor,pointerEvents:"auto",background:"transparent"});return n.draggable=!0,e.appendChild(n),t.appendChild(e),t}class _b extends Sb{constructor(e,n,o,s){super(e);f(this,"points",[]);f(this,"cornerPositions",[]);f(this,"css3DInstance");f(this,"plane");f(this,"css3DRenderer",new Nt);f(this,"camera");f(this,"scene");f(this,"container");f(this,"enabled",!1);this.camera=o,this.scene=s,this.container=n,this.initRectangleScaleHelper()}get helperObject(){var e;if(!((e=this.css3DInstance)!=null&&e.css3DObject))throw new Error("css3DInstance is not initialized");return this.css3DInstance.css3DObject}applyMatrix4(e){var n;super.applyMatrix4(e),this.helperObject.applyMatrix4(e),(n=this.plane)==null||n.applyMatrix4(e),this.cornerPositions.forEach(o=>o.applyMatrix4(e))}showDraggingHelper(){}applyHelperScaleMatrix4(e,n){var o;(o=this.plane)==null||o.scale.applyMatrix4(e),this.helperObject.applyScaleMatrix4(e)}updatePoints(){const e=this.calculatePointPosition(this.cornerPositions);this.points.forEach((n,o)=>{n.position.copy(e[o])})}applyHelperQuaternion(e,n){var s;const o=(s=this.css3DInstance)==null?void 0:s.css3DObject;if(o){const r=new k.Vector3().subVectors(o.position,n).applyQuaternion(e).add(n);o.position.copy(r),o.applyQuaternion(e)}if(this.plane){const r=new k.Vector3().subVectors(this.plane.position,n).applyQuaternion(e).add(n);this.plane.position.copy(r),this.plane.applyQuaternion(e)}this.cornerPositions.forEach(r=>{const a=new k.Vector3().subVectors(r,n).applyQuaternion(e).add(n);r.copy(a)})}enable(){var e;this.enabled||(this.enabled=!0,(e=this.css3DInstance)==null||e.enable(),this.plane&&this.scene.add(this.plane))}disable(){var e;!this.enabled||(this.enabled=!1,(e=this.css3DInstance)==null||e.disable(),this.plane&&this.scene.remove(this.plane))}show(){var e;(e=this.css3DInstance)==null||e.show(),this.plane&&(this.plane.visible=!0)}hide(){var e;(e=this.css3DInstance)==null||e.hide(),this.plane&&(this.plane.visible=!1)}dispose(){this.disable(),this.css3DRenderer.dispose()}initRectangleScaleHelper(){var a,l;const e=this.getCornerPositions();if(!e)return;this.cornerPositions=e;const n=this.css3DRenderer.create3DElement(this.camera,e,{ratio:.003});if(!n)return;this.css3DInstance=n,n.appendToElement(this.container);const o=n.css3DObject.container,{container:s,squares:r}=Hb();this.points=r.map((c,u)=>({direction:c.direction,point:c.element,position:this.calculatePointPosition(e)[u]})),o.insertBefore(s,(a=o.children[0])!=null?a:null),this.helperObject.position.copy(this.originObject3D.position),(l=this.plane)==null||l.position.copy(this.originObject3D.position)}getCornerPositions(){const{originObject3D:e}=this;if(e.isCSS3DObjectPlus)return e.cornerPoints;console.error("\u5F53\u524D\u7269\u4F53\u6682\u65F6\u4E0D\u652F\u6301 ScaleHelper")}calculatePointPosition(e){return[e[0].clone(),e[0].clone().add(e[1]).divideScalar(2),e[1].clone(),e[1].clone().add(e[2]).divideScalar(2),e[2].clone(),e[2].clone().add(e[3]).divideScalar(2),e[3].clone(),e[3].clone().add(e[0]).divideScalar(2)]}}class Gb extends Db{constructor(e){super(e);f(this,"box");f(this,"outline");f(this,"originObject");f(this,"positionAttribute");this.originObject=e,this.positionAttribute=new k.BufferAttribute(new Float32Array(8*3),3),this.box=this.createBox(),this.outline=this.createOutline(),this.add(this.box,this.outline),this.update()}raycasterIntersectObject(e,n){return e.intersectObject(this,!1,n)}raycast(e,n){this.box.raycast(e,n)}update(){const e=Ul(this.originObject);if(!e)return;const{min:n,max:o}=e;this.positionAttribute.setXYZ(0,o.x,o.y,o.z),this.positionAttribute.setXYZ(1,n.x,o.y,o.z),this.positionAttribute.setXYZ(2,n.x,n.y,o.z),this.positionAttribute.setXYZ(3,o.x,n.y,o.z),this.positionAttribute.setXYZ(4,o.x,o.y,n.z),this.positionAttribute.setXYZ(5,n.x,o.y,n.z),this.positionAttribute.setXYZ(6,n.x,n.y,n.z),this.positionAttribute.setXYZ(7,o.x,n.y,n.z),this.positionAttribute.needsUpdate=!0}createOutline(){const e=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),n=new k.BufferGeometry;n.setIndex(new k.BufferAttribute(e,1)),n.setAttribute("position",this.positionAttribute);const o=new k.LineBasicMaterial({color:64767,linewidth:1,opacity:1,depthTest:!1,transparent:!0,toneMapped:!1}),s=new k.LineSegments(n,o);return s.matrixAutoUpdate=!1,s}createBox(){const e=new Uint16Array([0,1,2,0,2,3,0,3,7,0,7,4,0,4,5,0,5,1,6,1,5,6,2,1,6,5,4,6,4,7,6,3,2,6,7,3]),n=new k.BufferGeometry;n.setIndex(new k.BufferAttribute(e,1)),n.setAttribute("position",this.positionAttribute);const o=new k.MeshBasicMaterial({color:64767,opacity:.1,depthTest:!1,transparent:!0});return new k.Mesh(n,o)}}class Wb extends xn{constructor(...e){super(...e);f(this,"name","MoveController");f(this,"startInfo");f(this,"_moveByMouseEnable",!1);f(this,"mouseInfo");f(this,"mousedownEventListenerDisposer");const n=this.helperObject3D;this.hoverListener([n.xArrow,n.yArrow,n.zArrow]);const o=this.dragStart.bind(this),s=this.dragging.bind(this),r=this.dragEnd.bind(this),a=this.show.bind(this),l=this.hide.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",o),document.addEventListener("mousemove",s),document.addEventListener("mouseup",r),this.hooks.on("rotateStart",l),this.hooks.on("rotateEnd",a),this.hooks.on("moveByMouseEnable",l),this.hooks.on("moveByMouseDisable",a),this.disposers.push(()=>{this.domEvents.removeEventListener(this.helperObject3D,"mousedown",o),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",r),this.hooks.off("rotateStart",l),this.hooks.off("rotateEnd",a),this.hooks.off("moveByMouseEnable",l),this.hooks.off("moveByMouseDisable",a)}),this.moveByMouseEnable&&this.moveByMouse()}get moveByMouseEnable(){return this._moveByMouseEnable}dispose(){var e;super.dispose(),(e=this.disposers)==null||e.forEach(n=>n==null?void 0:n())}moveByMouse(){this._moveByMouseEnable=!0;const e=this.handleMouseDown.bind(this),n=this.handleMouseUp.bind(this);this.hooks.emit("moveByMouseEnable"),setTimeout(()=>{this.container.addEventListener("mousedown",e),this.container.addEventListener("mouseup",n)}),this.mousedownEventListenerDisposer=()=>{this.container.removeEventListener("mousedown",e),this.container.removeEventListener("mouseup",n)}}disableMoveByMouse(){var e;this._moveByMouseEnable=!1,this.hooks.emit("moveByMouseDisable"),(e=this.mousedownEventListenerDisposer)==null||e.call(this)}onIntersectionOnModelUpdate(e){!this.moveByMouseEnable||this.hooks.emit("wantToMove",e.point)||(this.originObject3D.position.copy(e.point),this.hooks.emit("setObjectPosition",e.point),this.hooks.emit("move",e.point))}onApplyOriginObjectScale(e){}handleMouseDown(e){const{x:n,y:o}=e;this.mouseInfo={x:n,y:o,mouseDownTimestamp:Date.now()}}handleMouseUp(e){if(!this.mouseInfo)return;const{x:n,y:o}=e;this.mouseInfo.x===n&&this.mouseInfo.y===o&&Date.now()-this.mouseInfo.mouseDownTimestamp<500&&(this.disableMoveByMouse(),this.mouseInfo=void 0)}dragStart(e){if(this._moveByMouseEnable||this.isDragging)return;const n=e==null?void 0:e.intersect;if(!n)return this.dragEnd();const o=(n==null?void 0:n.object).direction;if(!o)return this.dragEnd();const s=new k.Vector3(1,0,0).applyQuaternion(this.helperObject3D.quaternion),r=new k.Vector3(0,1,0).applyQuaternion(this.helperObject3D.quaternion),a=new k.Vector3(0,0,1).applyQuaternion(this.helperObject3D.quaternion),l=(()=>{switch(o){case"x":return s;case"y":return r;case"z":return a}})(),c=(()=>{switch(o){case"x":case"y":return a;case"z":return s}})(),u=n.point.clone(),d=new k.Plane;d.setFromNormalAndCoplanarPoint(c,u),this.startInfo={startVectorProject:u.clone().projectOnVector(l),directionVector:l,plane:d},this.helperObject3D.showDraggingHelper([o]),this.hooks.emit("moveStart"),this.isDragging=!0}dragging(e){if(!this.isDragging||!this.startInfo)return;const n=Do(this.camera,e,this.container);return n?(this.move(n),!1):this.dragEnd()}move(e){if(!this.startInfo)return this.dragEnd();const{plane:n,directionVector:o,startVectorProject:s}=this.startInfo,r=this.originObject3D,a=e.ray.intersectPlane(n,new k.Vector3);if(!a)return;const l=a.clone().projectOnVector(o),c=l.clone().sub(s),u=new k.Matrix4;u.setPosition(c);const d=r.position.clone().applyMatrix4(u);this.hooks.emit("wantToMove",d)||(r.applyMatrix4(u),s.copy(l),this.hooks.emit("applyObjectPosition",{matrix:u}),this.hooks.emit("move",d))}dragEnd(){!this.isDragging||(this.startInfo=void 0,this.isDragging=!1,this.helperObject3D.show(),this.hooks.emit("moveEnd"))}}class hn{constructor(t,e,n,o,s,r){f(this,"helperController");f(this,"five");f(this,"onFiveWantsTapGesture",t=>{if(!this.helperController)return;const e=this.helperController.onWantsTapGesture(t);return this.five.needsRender=!0,e});f(this,"onFiveWantsGesture",(...t)=>{if(!this.helperController)return;const e=this.helperController.onWantsGesture(...t);return this.five.needsRender=!0,e});f(this,"onFiveIntersectionOnModelUpdate",(...t)=>{!this.helperController||this.helperController.onIntersectionOnModelUpdate(...t)});const{camera:a,model:l,scene:c}=t,u=t.getElement();if(this.five=t,!a||!l||!u||!c)return;const d=()=>{t.needsRender=!0};this.helperController=new e({camera:a,model:l,originObject3D:n,helperObject3D:o,container:u,scene:c,onRender:d,sharedHooks:r},s),t.on("wantsTapGesture",this.onFiveWantsTapGesture),t.on("wantsGesture",this.onFiveWantsGesture),t.on("intersectionOnModelUpdate",this.onFiveIntersectionOnModelUpdate)}dispose(){var t;this.five.off("wantsTapGesture",this.onFiveWantsTapGesture),this.five.off("wantsGesture",this.onFiveWantsGesture),this.five.off("intersectionOnModelUpdate",this.onFiveIntersectionOnModelUpdate),(t=this.helperController)==null||t.dispose()}}const Nb="v1.0.1",Xb="Object3DHelper",Lo=`${Xb}@${Nb}`,Yb=()=>{console.error(`${Lo} is disposed`)},Ub=()=>{console.warn(`${Lo} is disabled`)},qb=()=>{console.error(`${Lo} is disabled`)};class Jb{constructor(t){f(this,"controllers",{});f(this,"state",{visible:!0,enabled:!0,disposed:!1});f(this,"hooks",new Zt);f(this,"eventListener",{});t&&this.addControllers(t),this.setState(this.state)}show(t){return W(this,null,function*(){this.setState({visible:!0},t)})}hide(t){return W(this,null,function*(){this.setState({visible:!1},t)})}enable(t){this.setState({enabled:!0},t)}disable(t){this.setState({enabled:!1},t)}dispose(){this.setState({disposed:!0})}setState(t,e){if(this.state.disposed)return Yb();if(!this.state.enabled&&t.enabled!==!0&&t.disposed!==!0)return qb();const n=Q({},this.state);this.state=Q(Q({},this.state),t),t.disposed!==void 0&&t.disposed!==n.disposed&&t.disposed&&this.handleDispose(),t.visible!==void 0&&this.handleVisible(t.visible),t.enabled!==void 0&&this.handleEnable(t.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:n})}addControllers(t){this.controllers=Q(Q({},this.controllers),t),this.setState(this.state)}getCurrentState(){return this.state}handleEnable(t,e=!0){t?(this.everyControllerDo(n=>{n.enable()}),this.hooks.emit("enable",{userAction:e})):(this.everyControllerDo(n=>{n.disable()}),this.hooks.emit("disable",{userAction:e})),this.state.enabled=t}handleVisible(t,e=!0){t?(this.everyControllerDo(n=>{n.show()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:e}))):(this.everyControllerDo(n=>{n.hide()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:e}))),this.state.visible=t}everyControllerDo(t){Object.values(this.controllers).forEach(e=>{e&&t(e)})}handleDispose(){var t,e;Object.values(this.controllers).forEach(n=>{n==null||n.dispose()});for(const n in this.controllers){if(!n)continue;const o=n;(e=(t=this.eventListener)[o])==null||e.call(t)}}actionIfStateIsEnabled(t,e){if(this.state.enabled)return t();e!=null&&e.warnLog&&Ub()}}function Ni(i){return i*Math.PI/180}class Zb extends xn{constructor(...e){var c,u,d;super(...e);f(this,"name","RotateController");f(this,"startInfo");f(this,"removeListener");const n=this.helperObject3D;this.hoverListener([(c=n.xCircle)==null?void 0:c.circle,(u=n.yCircle)==null?void 0:u.circle,(d=n.zCircle)==null?void 0:d.circle].filter(Boolean));const o=this.dragStart.bind(this),s=this.dragging.bind(this),r=this.dragEnd.bind(this),a=this.show.bind(this),l=this.hide.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",o),document.addEventListener("mousemove",s),document.addEventListener("mouseup",r),this.hooks.on("moveStart",l),this.hooks.on("moveEnd",a),this.hooks.on("moveByMouseEnable",l),this.hooks.on("moveByMouseDisable",a),this.removeListener=()=>{this.domEvents.removeEventListener(this.helperObject3D,"mousedown",o),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",r),this.hooks.off("moveStart",l),this.hooks.off("moveEnd",a),this.hooks.off("moveByMouseEnable",l),this.hooks.off("moveByMouseDisable",a)}}get rotateCenter(){return this.helperObject3D.position.clone()}initialHelperQuaternion(){this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion)}setRotateAngle(e){const{x:n=0,y:o=0,z:s=0}=e,r=new k.Euler(Ni(n),Ni(o),Ni(s)),a=new k.Quaternion().setFromEuler(r);if(this.hooks.emit("wantToRotate",a))return;const{originObject3D:c,rotateCenter:u}=this;ql(c,a,u),this.hooks.emit("setObjectRotate",a,u),this.hooks.emit("rotate",a),this.render()}dispose(){this.removeListener(),super.dispose()}onApplyOriginObjectRotate(e){this.isDragging||super.onApplyOriginObjectRotate(e)}onApplyOriginObjectScale(e){}dragStart(e){if(this.isDragging)return;const n=e==null?void 0:e.intersect;if(!n)return this.dragEnd();const o=(n==null?void 0:n.object).direction;if(!o)return this.dragEnd();const s=n.point,r=this.getAngleHelper(o);this.setTipsAngle(0);const a=s.clone();a.y+=.2,this.setTipsPosition(a);const l=(()=>{if(o==="x")return new k.Vector3(1,0,0).applyQuaternion(this.originObject3D.quaternion);if(o==="y")return new k.Vector3(0,1,0).applyQuaternion(this.originObject3D.quaternion);if(o==="z")return new k.Vector3(0,0,1).applyQuaternion(this.originObject3D.quaternion)})(),c=new k.Plane().setFromNormalAndCoplanarPoint(l,s),d=c.projectPoint(s.clone(),new k.Vector3).clone().sub(this.rotateCenter),h=d.angleTo(r.baseAxes.clone().applyQuaternion(this.originObject3D.quaternion));this.setAngleHelperStart(o,h),this.setAngleHelperLength(o,0),this.startInfo={direction:o,startVector:d,plane:c,angleHelper:r,angle:0,objectQuaternion:this.originObject3D.quaternion.clone()},this.helperObject3D.showDraggingHelper([o]),this.hooks.emit("rotateStart"),this.isDragging=!0}dragging(e){if(!this.isDragging)return;const n=Do(this.camera,e,this.container);return n?(this.rotate(n),!1):this.dragEnd()}rotate(e){if(!this.startInfo)return this.dragEnd();const{startVector:n,plane:o,angleHelper:s,direction:r,objectQuaternion:a}=this.startInfo,{originObject3D:l}=this,c=e.ray.intersectPlane(o,new k.Vector3);if(!c)return;const u=this.rotateCenter.clone(),h=o.projectPoint(c.clone(),new k.Vector3).clone().sub(u);if(n.angleTo(h)===0)return;const m=new k.Quaternion().setFromUnitVectors(n.clone().normalize(),h.clone().normalize()),A=l.quaternion.clone().premultiply(m);if(this.hooks.emit("wantToRotate",A))return;const g=new k.Euler().setFromQuaternion(new k.Quaternion().setFromUnitVectors(n.clone().normalize().applyQuaternion(a.clone().inverse()),h.clone().normalize().applyQuaternion(a.clone().inverse())),`${r.toUpperCase()}${"XZY".replace(r.toUpperCase(),"")}`)[r]*s.angleDirection;if(this.startInfo.angle+=g,this.setAngleHelperLength(r,this.startInfo.angle),this.setTipsAngle(Ya(this.startInfo.angle)),u){const b=new k.Vector3().subVectors(l.position,u).applyQuaternion(m).add(u);l.position.copy(b)}l.applyQuaternion(m),this.hooks.emit("applyObjectRotate",{quaternion:m,origin:u}),this.hooks.emit("rotate",l.quaternion),this.startInfo.startVector=h}dragEnd(){!this.isDragging||(this.hooks.emit("setObjectRotate",this.originObject3D.quaternion,this.rotateCenter),this.startInfo=void 0,this.isDragging=!1,this.helperObject3D.show(),this.hooks.emit("rotateEnd"))}getAngleHelper(e){var n,o,s;switch(e){case"x":return(n=this.helperObject3D.xCircle)==null?void 0:n.angleSector;case"y":return(o=this.helperObject3D.yCircle)==null?void 0:o.angleSector;case"z":return(s=this.helperObject3D.zCircle)==null?void 0:s.angleSector}}setAngleHelperStart(e,n){const o=this.getAngleHelper(e);if(!o){console.warn("angleHelper is undefined");return}if(o instanceof k.Mesh&&o.geometry instanceof k.CircleGeometry){const{radius:s,segments:r,thetaLength:a}=o.geometry.parameters;o.geometry=new k.CircleGeometry(s,r,n,a)}else console.warn("only support THREE.CircleGeometry")}setAngleHelperLength(e,n){const s=n>=0?Math.max(n,.001):Math.min(n,-.001),r=this.getAngleHelper(e);if(r instanceof k.Mesh&&r.geometry instanceof k.CircleGeometry){const{radius:a,thetaStart:l}=r.geometry.parameters,c=Math.ceil(Math.abs(s)*(40/(2*Math.PI)));r.geometry=new k.CircleGeometry(a,c,l,s)}else console.warn("only support THREE.CircleGeometry")}setTipsAngle(e){var o;const n=(o=this.helperObject3D.angleTips)==null?void 0:o.element;!n||(n.innerText=`${e.toFixed(0)}\xB0`)}setTipsPosition(e){const n=this.helperObject3D.angleTips;if(!n)return;const o=e.project(this.camera),{x:s,y:r,z:a}=o;if(a>1)return;const l=(s+1)/2*100+"%",c=(-r+1)/2*100+"%";n.setLeftTop(l,c)}}class Kb extends xn{constructor(...e){super(...e);f(this,"startInfo");f(this,"name","RectangleScaleController")}enable(){this.helperObject3D.enable(),super.enable()}disable(){this.helperObject3D.disable(),super.disable()}show(){this.helperObject3D.show(),super.show()}hide(){this.helperObject3D.hide(),super.hide()}onApplyOriginObjectPosition(e){this.isDragging||super.onApplyOriginObjectPosition(e)}onApplyOriginObjectScale(e){this.helperObject3D.applyHelperScaleMatrix4(e.matrix,e.origin)}getDragPlane(){const e=new k.Plane,n=this.helperObject3D.cornerPositions;if(n.length!==0)return n.length<3?e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new V.Vector3),n[0]):e.setFromCoplanarPoints(n[0],n[1],n[2]),e}dragStart(e,n){var s,r;(r=(s=this.helperObject3D).updatePoints)==null||r.call(s);const o=this.getDragPlane();if(!o)return this.dragEnd();this.startInfo={startPoint:{position:n.position.clone(),direction:n.direction},plane:o},this.hooks.emit("scaleStart"),this.render(),this.isDragging=!0}dragging(e){if(!this.isDragging)return;const n=Do(this.camera,e,this.container);if(!n)return this.dragEnd();this.scale(n)}scale(e){var O,G;if(!this.startInfo)return;const n=this.originObject3D,{startPoint:o,plane:s}=this.startInfo,r=this.helperObject3D.cornerPositions;if(r.length<4)return this.dragEnd();const a=e.ray.intersectPlane(s,new V.Vector3);if(!a||zb(a,this.camera.position))return;const l=new V.Vector3().addVectors(r[0],r[2]).divideScalar(2),{position:c,direction:u}=o,d=new V.Vector3().subVectors(r[1],r[0]),h=new V.Vector3().subVectors(r[3],r[0]),m=X=>{const H=new V.Vector3(0,0,0);if(!this.startInfo)return H;const B=(X==="ew"?d:h).clone(),F=c.clone().projectOnVector(B),R=a.clone().projectOnVector(B),N=l.clone().projectOnVector(B);if(R.equals(F))return H;if(X==="ns"&&typeof this.startInfo.dragPointInCenterBottom!="boolean"){const Y=new V.Vector3().subVectors(R,N),ae=Y.x<0&&B.x>=0,he=Y.y<0&&B.y>=0,de=Y.z<0&&B.z>=0;this.startInfo.dragPointInCenterBottom=ae||he||de}if(X==="ew"&&typeof this.startInfo.dragPointInCenterLeft!="boolean"){const Y=new V.Vector3().subVectors(R,N),ae=Y.x<0&&B.x>=0,he=Y.y<0&&B.y>=0,de=Y.z<0&&B.z>=0;this.startInfo.dragPointInCenterLeft=ae||he||de}const _=new V.Vector3().subVectors(R,F),$=_.length();return $>.3?(console.warn("offset.length() > 0.3, skipped",$),H):_},A=m("ew"),v=m("ns"),p=()=>{const X=A;this.helperObject3D.cornerPositions.forEach((H,B)=>{var F;(F=this.startInfo)!=null&&F.dragPointInCenterLeft?(B===0||B===3)&&H.add(X):(B===1||B===2)&&H.add(X)})},g=()=>{const X=v;this.helperObject3D.cornerPositions.forEach((H,B)=>{var F;(F=this.startInfo)!=null&&F.dragPointInCenterBottom?(B===0||B===1)&&H.add(X):(B===2||B===3)&&H.add(X)})};switch(u){case"ew":p();break;case"ns":g();break;case"nesw":case"nwse":p(),g()}const b=new V.Vector3().subVectors(r[1],r[0]).length()/d.length(),w=new V.Vector3().subVectors(r[3],r[0]).length()/h.length(),P=new V.Vector3(b,w,1),x=new k.Matrix4().scale(P);n.isCSS3DObjectPlus?n.applyScaleMatrix4(x):n.scale.applyMatrix4(x),o.position.copy(a);const C=new V.Vector3().addVectors(r[0],r[2]).divideScalar(2),D=new V.Vector3().subVectors(C,l),E=new k.Matrix4().setPosition(D);n.applyMatrix4(E),(O=this.helperObject3D.css3DInstance)==null||O.css3DObject.applyMatrix4(E),(G=this.helperObject3D.plane)==null||G.applyMatrix4(E),this.hooks.emit("applyObjectScale",{matrix:x}),this.hooks.emit("applyObjectPosition",{matrix:E}),this.render()}dragEnd(){!this.isDragging||(this.startInfo=void 0,this.isDragging=!1,this.hooks.emit("scaleEnd"),this.render())}}class $b extends Kb{constructor(...e){super(...e);f(this,"name","CSS3DScaleController");this.addHTMLEventListener()}addHTMLEventListener(){this.helperObject3D.points.forEach(e=>{if(!e)return;const n=e.point,o=a=>this.dragStart(a,e),s=this.dragging.bind(this),r=this.dragEnd.bind(this);n.addEventListener("dragstart",o),n.addEventListener("drag",s),n.addEventListener("dragend",r)})}}class e1 extends xn{constructor(...e){super(...e);f(this,"name","BoundingBoxController")}}class t1 extends Jl{constructor(t){super(t)}}const So="v1.0.0",ao="Object3DHelperPlugin",Ii=`${ao}@${So}`,n1=()=>{console.error(`${Ii} is disposed`)},i1=()=>{console.warn(`${Ii} is disabled`)},o1=()=>{console.error(`${Ii} is disabled`)};class Zl extends In{constructor(e){super(e);f(this,"version",So);f(this,"name",ao);f(this,"state",{visible:!0,enabled:!0,disposed:!1});f(this,"objectHelperMap",new Map);f(this,"css3DObjectParentMap",new Map);f(this,"css3DRender");this.five=e,this.css3DRender=new Nt(this.five.scene),console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\uFF0C\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"),Object.assign(window,{[`__${ao.toUpperCase()}_DEBUG__`]:this})}show(e){return W(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return W(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,n){if(this.state.disposed)return n1();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return o1();const o=Q({},this.state);this.state=Q(Q({},this.state),e),e.disposed!==void 0&&e.disposed!==o.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==o.visible&&this.handleVisible(e.visible),e.enabled!==void 0&&e.enabled!==o.enabled&&this.handleEnable(e.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:o})}getObject3DHelper(e){return this.objectHelperMap.get(e)}addObject3DHelper(e,n={}){var m;if(!e)return console.error("Object3D is undefined");if(this.objectHelperMap.has(e)){console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);return}const o=new Jb,s=[],r=(m=this.five.getElement())==null?void 0:m.parentElement,a=this.five.camera,{moveHelper:l=!0,rotateHelper:c=!0,scaleHelper:u=!0,boundingBoxHelper:d=!1}=n,h=new Ce.Subscribe;if(l){const A=new Bb(e),v=this.getConfig(n.moveHelper),p=new hn(this.five,Wb,e,A,v,h);o.addControllers({moveController:p.helperController}),s.push(()=>p.dispose())}if(c){const A=this.getConfig(n.rotateHelper),v=new Ob(e,Q({container:r},A)),p=new hn(this.five,Zb,e,v,A,h);o.addControllers({rotateController:p.helperController}),s.push(()=>p.dispose())}if(d){const A=new Gb(e),v=new hn(this.five,e1,e,A,void 0,h);o.addControllers({boundingBoxController:v.helperController})}if(u)if(e.isCSS3DObjectPlus&&r){const A=new _b(e,r,a,this.five.scene),v=new hn(this.five,$b,e,A,void 0,h);o.addControllers({scaleController:v.helperController}),s.push(()=>v.dispose()),ya(this.five).then(()=>{var p,g;if(e.isCSS3DObjectPlus){const b=e;if(!b||b.mode!=="front")return;const w=(p=this.css3DRender.behindModeCSS3DRenderer.wrapper)!=null?p:wa(this.five);w&&(this.css3DObjectParentMap.set(b,b.parent),b.removeFromParent(),this.css3DRender.behindModeCSS3DRenderer.setWrapper(w),(g=this.css3DRender.getBehindCSS3DObjectGroup())==null||g.add(b),this.css3DRender.render(this.five.camera))}})}else{const A=new t1(e),v=new hn(this.five,Ib,e,A,void 0,h);o.addControllers({scaleController:v.helperController}),s.push(()=>v.dispose())}return this.objectHelperMap.set(e,{helper:o,disposers:s}),o.controllers}removeObject3DHelper(e){if(!this.objectHelperMap.has(e))return;const{helper:n,disposers:o}=this.objectHelperMap.get(e);if(!!n){if(e.isCSS3DObjectPlus){const s=e,r=this.css3DObjectParentMap.get(s);r&&r.add(s),this.css3DRender.render(this.five.camera)}this.objectHelperMap.delete(e),n.dispose(),o==null||o.forEach(s=>s==null?void 0:s())}}handleEnable(e,n=!0){e?(this.everyHelperDo(o=>o.enable()),this.hooks.emit("enable",{userAction:n})):(this.everyHelperDo(o=>o.disable()),this.hooks.emit("disable",{userAction:n})),this.state.enabled=e}handleVisible(e,n=!0){e?(this.everyHelperDo(o=>o.show()),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:n}))):(this.everyHelperDo(o=>o.hide()),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:n}))),this.state.visible=e}handleDispose(){this.objectHelperMap.forEach(({helper:e,disposers:n})=>{e.dispose(),n==null||n.forEach(o=>o==null?void 0:o())})}everyHelperDo(e){this.objectHelperMap.forEach(({helper:n,disposers:o})=>{n&&e(n)})}actionIfStateIsEnabled(e,n){if(this.state.enabled)return e();n!=null&&n.warnLog&&i1()}getConfig(e){if(!!e&&typeof e!="boolean"&&e.enable)return e}}const s1=i=>new Zl(i),r1=`
563
563
  varying vec2 vUv;
564
564
  void main() {
565
565
  vUv = uv;
566
566
  vec4 mvPosition = modelViewMatrix * vec4(position, 1);
567
567
  gl_Position = projectionMatrix * mvPosition;
568
568
  }
569
- `,l1=`
569
+ `,a1=`
570
570
  uniform sampler2D map;
571
571
  uniform vec4 size;
572
572
  varying vec2 vUv;
@@ -579,4 +579,4 @@ void main() {
579
579
  float match = (1.0 - step(0.5, abs(uv.x - 0.5))) * (1.0 - step(0.5, abs(uv.y - 0.5))) * (transX < transY ? transX : transY);
580
580
  gl_FragColor = vec4(texture2D(map, uv).xyz, match);
581
581
  }
582
- `;function c1(i){const t=Math.PI*2;let e=-Math.atan2(i.x,-i.z);e=(e%t+t)%t;const n=-Math.asin(i.y/1);return{longitude:e,latitude:n}}class fa{constructor(t,e){f(this,"_id");f(this,"url");f(this,"five");f(this,"panoIndex");f(this,"observer");f(this,"origin");f(this,"video");f(this,"videoMesh");f(this,"_enabled",!0);f(this,"_disposed",!1);f(this,"videoDataLoaded",!1);f(this,"hasVideoEverPlayed",!1);f(this,"renderFiveDisposer");f(this,"uv2Position",(t,e)=>{var m;const o=Math.PI,s=Math.PI*2,r=t,a=1-e,l=new V.Vector3(-1*Math.cos(s*r)*Math.sin(o*a),1*Math.cos(o*a),1*Math.sin(s*r)*Math.sin(o*a));l.setX(-l.x);const c=(m=this.five.work)==null?void 0:m.observers[this.panoIndex];if(!c)return this.logWarning(`\u70B9\u4F4D ${this.panoIndex} \u4E0D\u5B58\u5728\uFF0C\u8BF7\u68C0\u67E5 Five \u6570\u636E\u662F\u5426\u6B63\u5E38\u3002`);const u=c.position.clone(),d=c.quaternion.clone(),h=l.clone();return h.applyAxisAngle(new V.Vector3(0,1,0),Math.PI/2),h.applyQuaternion(d),h.add(u),h});f(this,"onFiveDataLoaded",()=>{var l;const t=(l=this.five.work)==null?void 0:l.observers[this.panoIndex];if(!t)return this.logWarning(`\u70B9\u4F4D ${this.panoIndex} \u4E0D\u5B58\u5728\uFF0C\u8BF7\u68C0\u67E5 Five \u6570\u636E\u662F\u5426\u6B63\u5E38\u3002`);this.observer=t;const{x:e,y:n,z:o,w:s}=t.quaternion,r=new V.Quaternion(e,n,o,s),a=t.position;this.videoMesh.position.fromArray([a.x,a.y,a.z]),this.videoMesh.quaternion.set(0,0,0,1),this.videoMesh.rotateOnAxis(new V.Vector3(0,1,0),Math.PI/2),this.videoMesh.applyQuaternion(r)});f(this,"onFiveWantsMoveToPano",t=>{t===this.panoIndex&&(this.hasVideoEverPlayed||this.video.play().catch(e=>{console.error("\u{1F436} ==> error:",e)}))});f(this,"onFivePanoArrived",t=>{if(this.disposed)return this.logWarning("\u5B9E\u4F8B\u5DF2\u88AB\u9500\u6BC1");!this.enabled||this.panoIndex===t&&this.mount()});f(this,"onFivePanoWillArrive",t=>{if(t!==this.panoIndex)return this.unmount();this.panoIndex!==t&&this.unmount()});f(this,"onFiveModeChange",t=>{t!=="Panorama"&&this.hide()});f(this,"onFiveInitAnimationEnded",()=>{const t=this.five.getCurrentState();t.mode==="Panorama"&&t.panoIndex===this.panoIndex&&this.mount()});f(this,"onFiveWantsTapGesture",t=>{if(!this.five.scene.children.includes(this.videoMesh))return;if(this.disposed)return this.logWarning("\u5B9E\u4F8B\u5DF2\u88AB\u9500\u6BC1");if(!this.enabled)return this.logWarning("\u5B9E\u4F8B\u5DF2\u88AB\u7981\u7528");const[e]=t.intersectObject(this.videoMesh);if(!e)return;if(this.checkIntersectionInBounding(this.origin,e))return this.video.muted=!this.video.muted,!1});f(this,"onVideoDataLoaded",()=>{this.videoDataLoaded=!0,this.video.paused===!1&&this.video.src!==""&&this.onVideoPlayingAndLoaded()});f(this,"onVideoPlaying",()=>{this.hasVideoEverPlayed=!0,this.video.src!==""&&this.videoDataLoaded&&this.onVideoPlayingAndLoaded()});f(this,"onVideoPlayingAndLoaded",()=>{if(!this.videoDataLoaded)return this.logWarning("\u89C6\u9891\u6570\u636E\u672A\u52A0\u8F7D");if(this.video.paused===!0)return this.logWarning("\u89C6\u9891\u5DF2\u6682\u505C");this.video.addEventListener("timeupdate",()=>{this.video.src!==""&&this.panoIndex===this.five.getCurrentState().panoIndex&&this.five.getCurrentState().mode==="Panorama"&&(this.renderFiveDisposer||(this.renderFiveDisposer=kn(()=>{this.five.needsRender=!0},30)),this.five.scene.add(this.videoMesh))},{once:!0})});f(this,"onVideoPaused",()=>{var t;(t=this.renderFiveDisposer)==null||t.call(this),this.renderFiveDisposer=void 0});var l,c;this.five=t,this.panoIndex=e.panoIndex,this._id=e.renderID,this.url=e.url,this.origin=e.origin.slice(),this._enabled=(c=(l=e.initialState)==null?void 0:l.enabled)!=null?c:!0;const n=document.createElement("video");n.crossOrigin="anonymous",n.autoplay=!1,n.muted=!0,n.loop=!0,n.playsInline=!0,this.video=n;const o=new V.VideoTexture(this.video);o.minFilter=V.LinearFilter,o.magFilter=V.LinearFilter;const s=new V.ShaderMaterial({vertexShader:a1,fragmentShader:l1,uniforms:{map:{value:o},size:{value:new V.Vector4(this.origin[0],1-this.origin[1]-this.origin[3],this.origin[2],this.origin[3])}},depthTest:!0,transparent:!0}),r=new V.SphereBufferGeometry(1,64,64);r.scale(-1,1,1);const a=new V.Mesh(r,s);a.name="pano-video",this.videoMesh=a,this.five.work&&this.onFiveDataLoaded(),this.enabled&&this.addEventListeners(),this.mountIfNeeded()}get renderID(){return this._id}get disposed(){return this._disposed}get enabled(){return this._enabled}dispose(){this.disposed||(this.disable(),this._disposed=!0)}enable(){this.disposed||this.enabled||(this._enabled=!0,this.addEventListeners(),this.mountIfNeeded())}disable(){this.disposed||!this.enabled||(this._enabled=!1,this.removeEventListeners(),this.unmount())}lookAtVideo(){if(!this.observer)return;const t=this.getUVCenter();if(!t)return;const e=this.uv2Position(t[0],t[1]);if(!e)return;const n=new V.Vector3().subVectors(e,this.observer.position).normalize(),{longitude:o,latitude:s}=c1(n);this.five.setState({panoIndex:this.panoIndex,longitude:o,latitude:s}),this.onFiveWantsMoveToPano(this.panoIndex)}getUVCenter(){if(!this.origin)return;const t=this.origin[0]+this.origin[2]/2,e=this.origin[1]+this.origin[3]/2;return[t,e]}addEventListeners(){this.five.on("loaded",this.onFiveDataLoaded),this.five.on("modeChange",this.onFiveModeChange),this.five.on("panoArrived",this.onFivePanoArrived),this.five.on("panoWillArrive",this.onFivePanoWillArrive),this.five.on("wantsMoveToPano",this.onFiveWantsMoveToPano),this.five.on("wantsTapGesture",this.onFiveWantsTapGesture),this.five.on("initAnimationEnded",this.onFiveInitAnimationEnded),this.video.addEventListener("canplaythrough",this.onVideoDataLoaded),this.video.addEventListener("playing",this.onVideoPlaying),this.video.addEventListener("pause",this.onVideoPaused)}removeEventListeners(){this.five.off("loaded",this.onFiveDataLoaded),this.five.off("modeChange",this.onFiveModeChange),this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("wantsMoveToPano",this.onFiveWantsMoveToPano),this.five.off("wantsTapGesture",this.onFiveWantsTapGesture),this.five.off("initAnimationEnded",this.onFiveInitAnimationEnded),this.video.removeEventListener("canplaythrough",this.onVideoDataLoaded),this.video.removeEventListener("playing",this.onVideoPlaying),this.video.removeEventListener("pause",this.onVideoPaused)}mountIfNeeded(){const t=this.five.getCurrentState();t.mode==="Panorama"&&t.panoIndex===this.panoIndex&&this.enabled&&this.mount()}mount(){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u7ECF\u9500\u6BC1\uFF0C\u65E0\u6CD5\u6302\u8F7D\u3002");if(this.url==="")return this.logWarning("\u89C6\u9891\u8D44\u6E90\u4E0D\u5B58\u5728\u3002");this.video.src!==this.url&&(this.video.src=this.url),this.video.paused&&this.video.play().catch(t=>{this.logWarning(t instanceof Error?t.message:"\u89C6\u9891\u64AD\u653E\u5931\u8D25\u3002"),this.five.once("gesture",()=>{this.video.play().catch(e=>{this.logWarning(e instanceof Error?e.message:"\u81EA\u52A8\u64AD\u653E\u89C6\u9891\u5931\u8D25\u3002")})})})}unmount(){this.video.pause(),this.video.src!==""&&(this.video.src=""),this.five.scene.remove(this.videoMesh)}hide(){this.video.pause(),this.five.scene.remove(this.videoMesh)}logWarning(t){console.warn("\u26D4 ==> [VideoMeshController]:",t)}checkIntersectionInBounding(t,e){if(!e.uv)return!1;const[n,o]=e.uv.toArray(),[s,r,a,l]=t,c=1-r-l,u=s+a,d=c+l;return n>=s&&n<=u&&o>=c&&o<=d}}class u1 extends In{constructor(e){super(e);f(this,"enabled",!0);f(this,"controllerMap",new Map);f(this,"_disposed",!1);this.five=e}get state(){return{enabled:this.enabled}}get disposed(){return this._disposed}load(e,n){var o;if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");typeof((o=n==null?void 0:n.initialState)==null?void 0:o.enabled)!="undefined"&&n.initialState.enabled!==this.enabled&&(n.initialState.enabled?this.enable():this.disable()),e.list.forEach(s=>{const r=s.pano_index,a=s.render_id;s.video_list.forEach(l=>{this.controllerMap.set(l.render_id,new fa(this.five,fe(Q({},l),{panoIndex:r,renderID:a,initialState:{enabled:this.enabled}})))})})}enable(e){var o;if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");if(this.enabled)return;this.enabled=!0,Array.from(this.controllerMap.values()).forEach(s=>s.enable());const n=(o=e==null?void 0:e.userAction)!=null?o:!0;this.hooks.emit("enable",{userAction:n})}disable(e){var o;if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");if(!this.enabled)return;this.enabled=!1,Array.from(this.controllerMap.values()).forEach(s=>s.disable());const n=(o=e==null?void 0:e.userAction)!=null?o:!0;this.hooks.emit("disable",{userAction:n})}lookAtVideoItemByRenderID(e){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");const n=this.controllerMap.get(e);if(!n)return this.logWarning(`ID \u4E3A ${e} \u7684\u70B9\u4F4D\u89C6\u9891\u4E0D\u5B58\u5728`);n.lookAtVideo()}add(e,n){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");n.forEach(o=>{if(this.controllerMap.get(o.render_id))return this.logWarning(`ID \u4E3A ${o.render_id} \u7684\u70B9\u4F4D\u89C6\u9891\u5DF2\u5B58\u5728`);const s=o.render_id;this.controllerMap.set(o.render_id,new fa(this.five,fe(Q({},o),{panoIndex:e,renderID:s,initialState:{enabled:this.enabled}})))})}removeByRenderID(e){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");const n=this.controllerMap.get(e);if(!n)return this.logWarning(`ID \u4E3A ${e} \u7684\u70B9\u4F4D\u89C6\u9891\u4E0D\u5B58\u5728`);n.dispose(),this.controllerMap.delete(e)}clear(){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");Array.from(this.controllerMap.values()).forEach(e=>e.dispose()),this.controllerMap.clear()}dispose(){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");this._disposed=!0,Array.from(this.controllerMap.values()).forEach(e=>e.dispose()),this.controllerMap.clear()}logWarning(e){console.warn("\u26D4 ==> [PanoVideoPluginController]:",e)}}const d1=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),h1=i=>new u1(i);exports.CSS3DRender=Nt;exports.CSS3DRenderPlugin=Kt;exports.CameraMovementEffect=nl;exports.CameraMovementPlugin=df;exports.ContentType=Nl;exports.CruisePlugin=qp;exports.CruisePluginController=wo;exports.DIRECTION=Ft;exports.DISPLAY_STRATEGY_TYPE=xt;exports.DimensionType=Xl;exports.FLOOR_PLAN_ATTACHED_TO=pt;exports.FLOOR_TYPE_MAP=Kh;exports.GuideLinePlugin=Cl;exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE=Dt;exports.ItemLabelPlugin=yp;exports.Magnifier=rl;exports.MapviewFloorplanPlugin=Lh;exports.ModelChassisCompassPlugin=tf;exports.ModelEntryDoorGuidePlugin=sf;exports.ModelFloorplanPlugin=Ih;exports.ModelItemLabelPlugin=ep;exports.ModelRoomLabelPlugin=Ru;exports.ModelTVVideoPlugin=ip;exports.ModelViewPlugin=Sc;exports.Object3DHelperController=Zl;exports.Object3DHelperPlugin=r1;exports.PLUGIN=Ii;exports.PaintBrush=Lc;exports.PaintBrushTypeEnum=ot;exports.PanoCompassPlugin=Tf;exports.PanoCursorRaycasterPlugin=Uc;exports.PanoDoorLabelPlugin=zp;exports.PanoFloorplanRadarPlugin=Jh;exports.PanoMeasurePlugin=Dm;exports.PanoMeasurePluginLine=Bt;exports.PanoMeasurePluginModel=wi;exports.PanoMeasurePluginPoint=Ye;exports.PanoMeasurePluginPolyline=yi;exports.PanoRulerPlugin=gf;exports.PanoRulerProPlugin=xf;exports.PanoSpatialTagPlugin=Gm;exports.PanoTagPlugin=Ib;exports.PanoTagPluginController=Wl;exports.PanoVideoPlugin=h1;exports.PanoVideoPluginType=d1;exports.PointType=Yl;exports.ROOM_FETILE_TYPE_MAP=Zh;exports.ROOM_TYPE_MAP=$h;exports.Rotation=$e;exports.TopviewFloorplanPlugin=Mh;exports.Util=vg;exports.VERSION=So;exports.itemLabelPluginServerParams=wp;exports.modelItemLabelPluginServerParams=tp;exports.modelRoomLabelPluginServerParams=Qu;exports.pluginFlag=Pb;
582
+ `;function l1(i){const t=Math.PI*2;let e=-Math.atan2(i.x,-i.z);e=(e%t+t)%t;const n=-Math.asin(i.y/1);return{longitude:e,latitude:n}}class fa{constructor(t,e){f(this,"_id");f(this,"url");f(this,"five");f(this,"panoIndex");f(this,"observer");f(this,"origin");f(this,"video");f(this,"videoMesh");f(this,"_enabled",!0);f(this,"_disposed",!1);f(this,"videoDataLoaded",!1);f(this,"hasVideoEverPlayed",!1);f(this,"renderFiveDisposer");f(this,"uv2Position",(t,e)=>{var m;const o=Math.PI,s=Math.PI*2,r=t,a=1-e,l=new V.Vector3(-1*Math.cos(s*r)*Math.sin(o*a),1*Math.cos(o*a),1*Math.sin(s*r)*Math.sin(o*a));l.setX(-l.x);const c=(m=this.five.work)==null?void 0:m.observers[this.panoIndex];if(!c)return this.logWarning(`\u70B9\u4F4D ${this.panoIndex} \u4E0D\u5B58\u5728\uFF0C\u8BF7\u68C0\u67E5 Five \u6570\u636E\u662F\u5426\u6B63\u5E38\u3002`);const u=c.position.clone(),d=c.quaternion.clone(),h=l.clone();return h.applyAxisAngle(new V.Vector3(0,1,0),Math.PI/2),h.applyQuaternion(d),h.add(u),h});f(this,"onFiveDataLoaded",()=>{var l;const t=(l=this.five.work)==null?void 0:l.observers[this.panoIndex];if(!t)return this.logWarning(`\u70B9\u4F4D ${this.panoIndex} \u4E0D\u5B58\u5728\uFF0C\u8BF7\u68C0\u67E5 Five \u6570\u636E\u662F\u5426\u6B63\u5E38\u3002`);this.observer=t;const{x:e,y:n,z:o,w:s}=t.quaternion,r=new V.Quaternion(e,n,o,s),a=t.position;this.videoMesh.position.fromArray([a.x,a.y,a.z]),this.videoMesh.quaternion.set(0,0,0,1),this.videoMesh.rotateOnAxis(new V.Vector3(0,1,0),Math.PI/2),this.videoMesh.applyQuaternion(r)});f(this,"onFiveWantsMoveToPano",t=>{t===this.panoIndex&&(this.hasVideoEverPlayed||this.video.play().catch(e=>{console.error("\u{1F436} ==> error:",e)}))});f(this,"onFivePanoArrived",t=>{if(this.disposed)return this.logWarning("\u5B9E\u4F8B\u5DF2\u88AB\u9500\u6BC1");!this.enabled||this.panoIndex===t&&this.mount()});f(this,"onFivePanoWillArrive",t=>{if(t!==this.panoIndex)return this.unmount();this.panoIndex!==t&&this.unmount()});f(this,"onFiveModeChange",t=>{t!=="Panorama"&&this.hide()});f(this,"onFiveInitAnimationEnded",()=>{const t=this.five.getCurrentState();t.mode==="Panorama"&&t.panoIndex===this.panoIndex&&this.mount()});f(this,"onFiveWantsTapGesture",t=>{if(!this.five.scene.children.includes(this.videoMesh))return;if(this.disposed)return this.logWarning("\u5B9E\u4F8B\u5DF2\u88AB\u9500\u6BC1");if(!this.enabled)return this.logWarning("\u5B9E\u4F8B\u5DF2\u88AB\u7981\u7528");const[e]=t.intersectObject(this.videoMesh);if(!e)return;if(this.checkIntersectionInBounding(this.origin,e))return this.video.muted=!this.video.muted,!1});f(this,"onVideoDataLoaded",()=>{this.videoDataLoaded=!0,this.video.paused===!1&&this.video.src!==""&&this.onVideoPlayingAndLoaded()});f(this,"onVideoPlaying",()=>{this.hasVideoEverPlayed=!0,this.video.src!==""&&this.videoDataLoaded&&this.onVideoPlayingAndLoaded()});f(this,"onVideoPlayingAndLoaded",()=>{if(!this.videoDataLoaded)return this.logWarning("\u89C6\u9891\u6570\u636E\u672A\u52A0\u8F7D");if(this.video.paused===!0)return this.logWarning("\u89C6\u9891\u5DF2\u6682\u505C");this.video.addEventListener("timeupdate",()=>{this.video.src!==""&&this.panoIndex===this.five.getCurrentState().panoIndex&&this.five.getCurrentState().mode==="Panorama"&&(this.renderFiveDisposer||(this.renderFiveDisposer=kn(()=>{this.five.needsRender=!0},30)),this.five.scene.add(this.videoMesh))},{once:!0})});f(this,"onVideoPaused",()=>{var t;(t=this.renderFiveDisposer)==null||t.call(this),this.renderFiveDisposer=void 0});var l,c;this.five=t,this.panoIndex=e.panoIndex,this._id=e.renderID,this.url=e.url,this.origin=e.origin.slice(),this._enabled=(c=(l=e.initialState)==null?void 0:l.enabled)!=null?c:!0;const n=document.createElement("video");n.crossOrigin="anonymous",n.autoplay=!1,n.muted=!0,n.loop=!0,n.playsInline=!0,this.video=n;const o=new V.VideoTexture(this.video);o.minFilter=V.LinearFilter,o.magFilter=V.LinearFilter;const s=new V.ShaderMaterial({vertexShader:r1,fragmentShader:a1,uniforms:{map:{value:o},size:{value:new V.Vector4(this.origin[0],1-this.origin[1]-this.origin[3],this.origin[2],this.origin[3])}},depthTest:!0,transparent:!0}),r=new V.SphereBufferGeometry(1,64,64);r.scale(-1,1,1);const a=new V.Mesh(r,s);a.name="pano-video",this.videoMesh=a,this.five.work&&this.onFiveDataLoaded(),this.enabled&&this.addEventListeners(),this.mountIfNeeded()}get renderID(){return this._id}get disposed(){return this._disposed}get enabled(){return this._enabled}dispose(){this.disposed||(this.disable(),this._disposed=!0)}enable(){this.disposed||this.enabled||(this._enabled=!0,this.addEventListeners(),this.mountIfNeeded())}disable(){this.disposed||!this.enabled||(this._enabled=!1,this.removeEventListeners(),this.unmount())}lookAtVideo(){if(!this.observer)return;const t=this.getUVCenter();if(!t)return;const e=this.uv2Position(t[0],t[1]);if(!e)return;const n=new V.Vector3().subVectors(e,this.observer.position).normalize(),{longitude:o,latitude:s}=l1(n);this.five.setState({panoIndex:this.panoIndex,longitude:o,latitude:s}),this.onFiveWantsMoveToPano(this.panoIndex)}getUVCenter(){if(!this.origin)return;const t=this.origin[0]+this.origin[2]/2,e=this.origin[1]+this.origin[3]/2;return[t,e]}addEventListeners(){this.five.on("loaded",this.onFiveDataLoaded),this.five.on("modeChange",this.onFiveModeChange),this.five.on("panoArrived",this.onFivePanoArrived),this.five.on("panoWillArrive",this.onFivePanoWillArrive),this.five.on("wantsMoveToPano",this.onFiveWantsMoveToPano),this.five.on("wantsTapGesture",this.onFiveWantsTapGesture),this.five.on("initAnimationEnded",this.onFiveInitAnimationEnded),this.video.addEventListener("canplaythrough",this.onVideoDataLoaded),this.video.addEventListener("playing",this.onVideoPlaying),this.video.addEventListener("pause",this.onVideoPaused)}removeEventListeners(){this.five.off("loaded",this.onFiveDataLoaded),this.five.off("modeChange",this.onFiveModeChange),this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("wantsMoveToPano",this.onFiveWantsMoveToPano),this.five.off("wantsTapGesture",this.onFiveWantsTapGesture),this.five.off("initAnimationEnded",this.onFiveInitAnimationEnded),this.video.removeEventListener("canplaythrough",this.onVideoDataLoaded),this.video.removeEventListener("playing",this.onVideoPlaying),this.video.removeEventListener("pause",this.onVideoPaused)}mountIfNeeded(){const t=this.five.getCurrentState();t.mode==="Panorama"&&t.panoIndex===this.panoIndex&&this.enabled&&this.mount()}mount(){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u7ECF\u9500\u6BC1\uFF0C\u65E0\u6CD5\u6302\u8F7D\u3002");if(this.url==="")return this.logWarning("\u89C6\u9891\u8D44\u6E90\u4E0D\u5B58\u5728\u3002");this.video.src!==this.url&&(this.video.src=this.url),this.video.paused&&this.video.play().catch(t=>{this.logWarning(t instanceof Error?t.message:"\u89C6\u9891\u64AD\u653E\u5931\u8D25\u3002"),this.five.once("gesture",()=>{this.video.play().catch(e=>{this.logWarning(e instanceof Error?e.message:"\u81EA\u52A8\u64AD\u653E\u89C6\u9891\u5931\u8D25\u3002")})})})}unmount(){this.video.pause(),this.video.src!==""&&(this.video.src=""),this.five.scene.remove(this.videoMesh)}hide(){this.video.pause(),this.five.scene.remove(this.videoMesh)}logWarning(t){console.warn("\u26D4 ==> [VideoMeshController]:",t)}checkIntersectionInBounding(t,e){if(!e.uv)return!1;const[n,o]=e.uv.toArray(),[s,r,a,l]=t,c=1-r-l,u=s+a,d=c+l;return n>=s&&n<=u&&o>=c&&o<=d}}class c1 extends In{constructor(e){super(e);f(this,"enabled",!0);f(this,"controllerMap",new Map);f(this,"_disposed",!1);this.five=e}get state(){return{enabled:this.enabled}}get disposed(){return this._disposed}load(e,n){var o;if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");typeof((o=n==null?void 0:n.initialState)==null?void 0:o.enabled)!="undefined"&&n.initialState.enabled!==this.enabled&&(n.initialState.enabled?this.enable():this.disable()),e.list.forEach(s=>{const r=s.pano_index,a=s.render_id;s.video_list.forEach(l=>{this.controllerMap.set(l.render_id,new fa(this.five,fe(Q({},l),{panoIndex:r,renderID:a,initialState:{enabled:this.enabled}})))})})}enable(e){var o;if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");if(this.enabled)return;this.enabled=!0,Array.from(this.controllerMap.values()).forEach(s=>s.enable());const n=(o=e==null?void 0:e.userAction)!=null?o:!0;this.hooks.emit("enable",{userAction:n})}disable(e){var o;if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");if(!this.enabled)return;this.enabled=!1,Array.from(this.controllerMap.values()).forEach(s=>s.disable());const n=(o=e==null?void 0:e.userAction)!=null?o:!0;this.hooks.emit("disable",{userAction:n})}lookAtVideoItemByRenderID(e){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");const n=this.controllerMap.get(e);if(!n)return this.logWarning(`ID \u4E3A ${e} \u7684\u70B9\u4F4D\u89C6\u9891\u4E0D\u5B58\u5728`);n.lookAtVideo()}add(e,n){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");n.forEach(o=>{if(this.controllerMap.get(o.render_id))return this.logWarning(`ID \u4E3A ${o.render_id} \u7684\u70B9\u4F4D\u89C6\u9891\u5DF2\u5B58\u5728`);const s=o.render_id;this.controllerMap.set(o.render_id,new fa(this.five,fe(Q({},o),{panoIndex:e,renderID:s,initialState:{enabled:this.enabled}})))})}removeByRenderID(e){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");const n=this.controllerMap.get(e);if(!n)return this.logWarning(`ID \u4E3A ${e} \u7684\u70B9\u4F4D\u89C6\u9891\u4E0D\u5B58\u5728`);n.dispose(),this.controllerMap.delete(e)}clear(){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");Array.from(this.controllerMap.values()).forEach(e=>e.dispose()),this.controllerMap.clear()}dispose(){if(this.disposed)return this.logWarning("\u63D2\u4EF6\u5DF2\u88AB\u9500\u6BC1");this._disposed=!0,Array.from(this.controllerMap.values()).forEach(e=>e.dispose()),this.controllerMap.clear()}logWarning(e){console.warn("\u26D4 ==> [PanoVideoPluginController]:",e)}}const u1=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),d1=i=>new c1(i);exports.CSS3DRender=Nt;exports.CSS3DRenderPlugin=Kt;exports.CameraMovementEffect=nl;exports.CameraMovementPlugin=uf;exports.ContentType=Nl;exports.CruisePlugin=Up;exports.CruisePluginController=wo;exports.DIRECTION=Ft;exports.DISPLAY_STRATEGY_TYPE=xt;exports.DimensionType=Xl;exports.FLOOR_PLAN_ATTACHED_TO=pt;exports.FLOOR_TYPE_MAP=Zh;exports.GuideLinePlugin=Cl;exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE=Dt;exports.ItemLabelPlugin=bp;exports.Magnifier=rl;exports.MapviewFloorplanPlugin=Lh;exports.ModelChassisCompassPlugin=ef;exports.ModelEntryDoorGuidePlugin=of;exports.ModelFloorplanPlugin=Ih;exports.ModelItemLabelPlugin=$m;exports.ModelRoomLabelPlugin=Ru;exports.ModelTVVideoPlugin=np;exports.ModelViewPlugin=Sc;exports.Object3DHelperController=Zl;exports.Object3DHelperPlugin=s1;exports.PLUGIN=Ii;exports.PaintBrush=Lc;exports.PaintBrushTypeEnum=ot;exports.PanoCompassPlugin=Mf;exports.PanoCursorRaycasterPlugin=Uc;exports.PanoDoorLabelPlugin=Tp;exports.PanoFloorplanRadarPlugin=qh;exports.PanoMeasurePlugin=xm;exports.PanoMeasurePluginLine=Bt;exports.PanoMeasurePluginModel=wi;exports.PanoMeasurePluginPoint=Ye;exports.PanoMeasurePluginPolyline=yi;exports.PanoRulerPlugin=pf;exports.PanoRulerProPlugin=kf;exports.PanoSpatialTagPlugin=_m;exports.PanoTagPlugin=Pb;exports.PanoTagPluginController=Wl;exports.PanoVideoPlugin=d1;exports.PanoVideoPluginType=u1;exports.PointType=Yl;exports.ROOM_FETILE_TYPE_MAP=Jh;exports.ROOM_TYPE_MAP=Kh;exports.Rotation=$e;exports.TopviewFloorplanPlugin=Mh;exports.Util=Ag;exports.VERSION=So;exports.itemLabelPluginServerParams=yp;exports.modelItemLabelPluginServerParams=ep;exports.modelRoomLabelPluginServerParams=Qu;exports.pluginFlag=Eb;