@realsee/dnalogel 2.2.2 → 2.2.3

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 (209) hide show
  1. package/dist/index.cjs.js +13 -13
  2. package/dist/index.js +874 -874
  3. package/dist/index.umd.js +13 -13
  4. package/docs/classes/CruisePluginController.html +4 -4
  5. package/docs/classes/Magnifier.html +4 -4
  6. package/docs/classes/ModelRoomLabelController.html +4 -4
  7. package/docs/classes/Object3DHelperController.html +4 -4
  8. package/docs/classes/PaintBrush.html +4 -4
  9. package/docs/classes/PanoTagPluginController.html +4 -4
  10. package/docs/classes/Util.BetterTween.html +4 -4
  11. package/docs/classes/Util.FivePointSelector.html +4 -4
  12. package/docs/classes/Util.Interval.html +4 -4
  13. package/docs/classes/Util.Magnifier.html +4 -4
  14. package/docs/classes/Util.PointDomHelper.html +4 -4
  15. package/docs/classes/Util.PointHelper.html +4 -4
  16. package/docs/classes/Util.Rectangle.html +4 -4
  17. package/docs/enums/CameraMovementEffect.html +4 -4
  18. package/docs/enums/ContentType.html +4 -4
  19. package/docs/enums/DIRECTION.html +4 -4
  20. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
  21. package/docs/enums/DimensionType.html +4 -4
  22. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
  23. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
  24. package/docs/enums/LinkType.html +4 -4
  25. package/docs/enums/PaintBrushTypeEnum.html +4 -4
  26. package/docs/enums/PointType.html +4 -4
  27. package/docs/enums/Rotation.html +4 -4
  28. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  29. package/docs/functions/CameraMovementPlugin.html +4 -4
  30. package/docs/functions/CruisePlugin.html +4 -4
  31. package/docs/functions/GuideLinePlugin.html +4 -4
  32. package/docs/functions/ItemLabelPlugin.html +4 -4
  33. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  34. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  35. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  36. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  37. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  38. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  39. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  40. package/docs/functions/ModelViewPlugin.html +4 -4
  41. package/docs/functions/Object3DHelperPlugin.html +4 -4
  42. package/docs/functions/PanoCompassPlugin.html +4 -4
  43. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  44. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  45. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  46. package/docs/functions/PanoMeasurePlugin.html +4 -4
  47. package/docs/functions/PanoRulerPlugin.html +4 -4
  48. package/docs/functions/PanoRulerProPlugin.html +4 -4
  49. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  50. package/docs/functions/PanoTagPlugin.html +4 -4
  51. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  52. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  53. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  54. package/docs/functions/Util.getFrameTime.html +4 -4
  55. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  56. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  57. package/docs/functions/Util.isNil.html +4 -4
  58. package/docs/functions/Util.nextFrame.html +4 -4
  59. package/docs/functions/Util.notNil.html +4 -4
  60. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  61. package/docs/functions/Util.tweenProgress.html +4 -4
  62. package/docs/functions/pluginFlag.html +4 -4
  63. package/docs/index.html +4 -4
  64. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
  65. package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
  66. package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
  67. package/docs/interfaces/ContentTypeMap.html +4 -4
  68. package/docs/interfaces/FloorplanBounding.html +4 -4
  69. package/docs/interfaces/FloorplanData.html +4 -4
  70. package/docs/interfaces/FloorplanEntrance.html +4 -4
  71. package/docs/interfaces/FloorplanExtraObject.html +4 -4
  72. package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
  73. package/docs/interfaces/FloorplanFloorData.html +4 -4
  74. package/docs/interfaces/FloorplanImagePosition.html +4 -4
  75. package/docs/interfaces/FloorplanObserver.html +4 -4
  76. package/docs/interfaces/FloorplanOutlineItem.html +4 -4
  77. package/docs/interfaces/FloorplanPosition.html +4 -4
  78. package/docs/interfaces/FloorplanRoomItem.html +4 -4
  79. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
  80. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  81. package/docs/interfaces/FloorplanServerComputedData.html +4 -4
  82. package/docs/interfaces/FloorplanServerData.html +4 -4
  83. package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
  84. package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
  85. package/docs/interfaces/FloorplanServerEntrance.html +4 -4
  86. package/docs/interfaces/FloorplanServerFloorData.html +4 -4
  87. package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
  88. package/docs/interfaces/FloorplanServerObserver.html +4 -4
  89. package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
  90. package/docs/interfaces/FloorplanServerPosition.html +4 -4
  91. package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
  92. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
  93. package/docs/interfaces/ItemLabelPluginData.html +4 -4
  94. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
  95. package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
  96. package/docs/interfaces/LineJson.html +4 -4
  97. package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
  98. package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
  99. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
  100. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
  101. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
  102. package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
  103. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
  104. package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
  105. package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
  106. package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
  107. package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
  108. package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
  109. package/docs/interfaces/ModelViewPluginExportType.html +4 -4
  110. package/docs/interfaces/Object3DHelperState.html +4 -4
  111. package/docs/interfaces/OpenParameter.html +4 -4
  112. package/docs/interfaces/PaintBrushAction.html +4 -4
  113. package/docs/interfaces/PaintBrushConfigs.html +4 -4
  114. package/docs/interfaces/PaintBrushState.html +4 -4
  115. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
  116. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  117. package/docs/interfaces/PanoMeasureParameterType.html +4 -4
  118. package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
  119. package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
  120. package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
  121. package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
  122. package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
  123. package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
  124. package/docs/interfaces/PanoRulerProPluginState.html +4 -4
  125. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  126. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  127. package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
  128. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
  129. package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
  130. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
  131. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
  132. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
  133. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
  134. package/docs/interfaces/Point.html +4 -4
  135. package/docs/interfaces/PointJson.html +4 -4
  136. package/docs/interfaces/Room.html +4 -4
  137. package/docs/interfaces/RoomInfo.html +4 -4
  138. package/docs/interfaces/RoomLabel.html +4 -4
  139. package/docs/interfaces/RoomRules.html +4 -4
  140. package/docs/interfaces/Rooms.html +4 -4
  141. package/docs/interfaces/Scissor.html +4 -4
  142. package/docs/interfaces/TagConfig.html +4 -4
  143. package/docs/interfaces/Tags.html +4 -4
  144. package/docs/interfaces/Util.MagnifierParameter.html +4 -4
  145. package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
  146. package/docs/modules/Util.html +4 -4
  147. package/docs/modules.html +4 -4
  148. package/docs/types/ArrayPosition.html +4 -4
  149. package/docs/types/CSS3DRenderExportType.html +4 -4
  150. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  151. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  152. package/docs/types/Color.html +4 -4
  153. package/docs/types/ContentTypeConfigKey.html +4 -4
  154. package/docs/types/ContentTypeConfigKeyArray.html +4 -4
  155. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  156. package/docs/types/Create3DElementReturnType.html +4 -4
  157. package/docs/types/CruisePluginExportType.html +4 -4
  158. package/docs/types/Direction-1.html +4 -4
  159. package/docs/types/Direction4.html +4 -4
  160. package/docs/types/FloorplanRuleLabels.html +4 -4
  161. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  162. package/docs/types/GuideLinePluginExportType.html +4 -4
  163. package/docs/types/HelperEventMap.html +4 -4
  164. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  165. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  166. package/docs/types/MediaData.html +4 -4
  167. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  168. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  169. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  170. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  171. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  172. package/docs/types/MoveArgs.html +4 -4
  173. package/docs/types/MoveOpts.html +4 -4
  174. package/docs/types/Object3DHelperEventMap.html +4 -4
  175. package/docs/types/ObjectFit.html +4 -4
  176. package/docs/types/PaintBrushEventMap.html +4 -4
  177. package/docs/types/PanoCompassPluginData.html +4 -4
  178. package/docs/types/PanoCompassPluginExportType.html +4 -4
  179. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  180. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  181. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  182. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  183. package/docs/types/PanoMeasureReturnType.html +4 -4
  184. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  185. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  186. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  187. package/docs/types/PlaneTag.html +4 -4
  188. package/docs/types/PointTag.html +4 -4
  189. package/docs/types/Position.html +4 -4
  190. package/docs/types/RotateArgs.html +4 -4
  191. package/docs/types/RotateOpts.html +4 -4
  192. package/docs/types/RuleLabelsKey.html +4 -4
  193. package/docs/types/RuleLabelsValue.html +4 -4
  194. package/docs/types/Tag.html +4 -4
  195. package/docs/types/Tag2D.html +4 -4
  196. package/docs/types/Tag3D.html +4 -4
  197. package/docs/types/TagId.html +4 -4
  198. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  199. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  200. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  201. package/docs/variables/PLUGIN.html +4 -4
  202. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  203. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  204. package/docs/variables/VERSION.html +4 -4
  205. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  206. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  207. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  208. package/libs/PanoDoorLabelPlugin/Controller.js +51 -51
  209. package/package.json +1 -1
package/dist/index.umd.js CHANGED
@@ -98,7 +98,7 @@ transition: all 500ms;
98
98
  }
99
99
 
100
100
  </style>
101
- `;class Pr extends wr{constructor(e){super();m(this,"configs");m(this,"clientWidth");m(this,"clientHeight");m(this,"ready",!1);m(this,"uuid",fe());m(this,"tween");m(this,"tweening",!1);m(this,"container");m(this,"canvas");m(this,"data",{});m(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=Cr,this.container}initCanvas(e){const o=document.createElement("canvas");o.className=e,o.width=this.clientWidth,o.height=this.clientHeight;const n=o.getContext("2d");if(!!n)return n.lineWidth=5*this.dpr,n.lineCap="round",n.lineJoin="round",this.container.appendChild(o),o}initCtrl(){const e=document.createElement("div");e.className="_paintBrush-ctrl";const o=document.createElement("div");o.className="_paintBrush-ctrlinner";const n=document.createElement("a");n.className="_paintBrush-ctrlitem _paintBrush-ctrlitem--undo",n.addEventListener("click",l=>{var h;if(l.stopPropagation(),this.configs.onClickUndo&&this.configs.onClickUndo(),!this.canvas[this.uuid]||!this.data[this.uuid]||this.data[this.uuid].length===0)return;const c=this.data[this.uuid].pop();c&&this.emitStateChange({type:De.Undo,color:this.color,ready:this.ready,state:c,uuid:this.uuid});const d=(h=this.canvas[this.uuid])==null?void 0:h.getContext("2d");if(!this.canvas[this.uuid])return;const{width:u,height:f}=this.canvas[this.uuid];d&&d.clearRect(0,0,u,f),this.data[this.uuid].forEach(p=>this.handleDrawLine(this.uuid,p,{withUndo:!0}))});const r=document.createElement("a");return r.className="_paintBrush-ctrlitem _paintBrush-ctrlitem--close",r.addEventListener("click",l=>{l.stopPropagation(),this.closeBrush(),this.configs.onClickClose&&this.configs.onClickClose()}),[n,r].forEach(l=>{const c=document.createElement("i");c.className="brush-icon";const d=document.createElement("span");d.className="brush-txt",d.innerText=l.className.endsWith("undo")?this.configs.onUndoText:this.configs.onExitText,l.appendChild(c),l.appendChild(d)}),o.appendChild(n),o.appendChild(r),e.appendChild(o),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 o=this.canvas[e].getContext("2d");o&&o.clearRect(0,0,this.canvas[e].width,this.canvas[e].height)}),this.ready=!1,this.emit("readyChange",!1),this.emitStateChange({type:De.Exit,color:this.color,ready:!1,uuid:this.uuid}))}updateCurrentColor(e){const o=this.canvas[this.uuid];if(!o)return;const n=o.getContext("2d");!n||(this.configs.currentColor=e,n.strokeStyle=e)}openBrushHandle(){const e=this.canvas[this.uuid];if(!e)return;const o=e.getContext("2d");if(!o)return;const n=this.color||"#6D92FF";o.strokeStyle=n;let r=null,a=[],l,c=[],d=0;const u=(f,h,p)=>{const g=this.color||"#ff0000";o.strokeStyle=g,o.beginPath(),o.moveTo(f.x,f.y),o.quadraticCurveTo(h.x,h.y,p.x,p.y),o.stroke()};e.onmousedown=f=>{f.preventDefault(),d=Date.now();const h=f.clientX,p=f.clientY;a=[],a.push({x:h,y:p}),r={x:h,y:p},l=vt({x:h,y:p},this.clientWidth,this.clientHeight),c=[]},e.onmousemove=f=>{if(f.preventDefault(),!r)return;const h=Number(f.clientX),p=Number(f.clientY);if(Math.abs(h-r.x)<5&&Math.abs(p-r.y)<5||(a.push({x:h,y:p}),c.push(vt({x:h,y:p},this.clientWidth,this.clientHeight)),a.length<3))return;const{control:g,end:A}=bt(a);!g||!A||(u(r,g,A),r=A)},e.onmouseup=f=>{if(f.preventDefault(),r=null,a.length<3)return;this.data[this.uuid]||(this.data[this.uuid]=[]);const h=Date.now()-d,p={move:Object.assign({},l),uuid:this.uuid,line:[...c],color:this.color,duration:h<1280?h:h<2e3?1280:0};this.data[this.uuid].push(p),yt(()=>{this.emitStateChange({type:De.Drawline,color:this.color,ready:this.ready,state:p,uuid:this.uuid})})},e.ontouchstart=f=>{f.preventDefault(),d=Date.now();const h=f.touches[0].clientX,p=f.touches[0].clientY;a=[],a.push({x:h,y:p}),r={x:h,y:p},console.log("ontouchstart",h,p,r),l=vt({x:h,y:p},this.clientWidth,this.clientHeight),c=[]},e.ontouchmove=f=>{if(f.preventDefault(),!r)return;const h=Number(f.touches[0].clientX),p=Number(f.touches[0].clientY);if(Math.abs(h-r.x)<5&&Math.abs(p-r.y)<5||(a.push({x:h,y:p}),c.push(vt({x:h,y:p},this.clientWidth,this.clientHeight)),a.length<3))return;const{control:g,end:A}=bt(a);!g||!A||(u(r,g,A),r=A)},e.ontouchend=e.ontouchcancel=f=>{if(f.preventDefault(),r=null,a.length<3)return;this.data[this.uuid]||(this.data[this.uuid]=[]);const h=Date.now()-d,p={move:Object.assign({},l),line:[...c],uuid:this.uuid,color:this.color,duration:h<1280?h:h<2e3?1280:0};this.data[this.uuid].push(p),yt(()=>{this.emitStateChange({type:De.Drawline,color:this.color,ready:this.ready,state:p,uuid:this.uuid})})}}emitStateChange(e,o=!0){if(e.type!==De.Drawline){this.emit("stateChange",e,o);return}const n=Date.now(),r=e.state;if(!r||!r.line)return;const a=Math.ceil(r.line.length/100);for(let l=0;l<a;l++){const c={uuid:this.uuid,color:this.color,ready:this.ready,type:e.type,state:{uuid:this.uuid,move:r.move,duration:r.duration,color:this.color,line:r.line.slice(l*100,(l+1)*100)},timestamp:n,end:l===a-1};Ar(l,20,()=>{this.emit("stateChange",c,o)})}}action(e){const{ready:o,type:n,uuid:r}=e;if(!o&&this.ready){this.closeBrush();return}if(o&&!this.ready){this.openBrush();return}if(!!this.ready)switch(n){case De.Drawline:const{state:a,timestamp:l,end:c}=e;if(!l||!a)return;this.tempLine[l]=[].concat(this.tempLine[l]||[],a.line),c&&(Object.assign(a,{line:this.tempLine[l]}),this.handleDrawLine(r,a,{},()=>delete this.tempLine[l]));break;case De.Undo:this.handleUndo(r);break}}handleDrawLine(e,o,{withUndo:n=!1},r=Vo){!o||Object.prototype.toString.call(o)!="[object Object]"||Object.keys(o).length===0||(console.log("handleDrawLine",o,o.line),gr(()=>new Promise(a=>{if(n||(this.canvas[e]||(this.canvas[e]=this.initCanvas("_paintBrush-canvas--sync")),this.data[e]||(this.data[e]=[]),this.data[e].push(o)),!this.canvas[e])return;const l=this.canvas[e].getContext("2d");if(!l)return;const{line:c=[],color:d="black",duration:u=0,uuid:f}=o,h=to(o.move||{},this.clientWidth,this.clientHeight);let p=[h];if(l.strokeStyle=d,l.beginPath(),l.moveTo(h.x,h.y),u&&!n){let g=[];const A=this;A.tween=br({step:0},{step:c.length-1},u).onUpdate(({step:b})=>{var w;if(A.tweening=!0,!A.ready)return l.clearRect(0,0,A.canvas[f].width,A.canvas[f].height),(w=A.tween)==null?void 0:w.stop();const v=Math.floor(b);if(!g.find(y=>y===v)){if(g.push(v),console.log("__debug__",c,c[v],v),p.push(to(c[v],A.clientWidth,A.clientHeight)),p.length<3)return;const{control:y,end:E}=bt(p);if(!y||!E)return;l.quadraticCurveTo(y.x,y.y,E.x,E.y),l.stroke()}}).onComplete(b=>{A.tween=void 0,A.tweening=!1,g=[],p=[],r&&r(),a()})}else{for(let g=0;g<c.length;g++){if(p.push(to(c[g],this.clientWidth,this.clientHeight)),p.length<3)continue;const{control:A,end:b}=bt(p);!A||!b||l.quadraticCurveTo(A.x,A.y,b.x,b.y)}l.stroke(),p=[],r&&r(),a()}})))}handleUndo(e){if(console.log("handleUndo",e,this.canvas[e]),!this.canvas[e]||!this.data[e]||this.data[e].length===0)return;this.data[e].pop();const o=()=>{var r;const n=(r=this.canvas[e])==null?void 0:r.getContext("2d");n&&n.clearRect(0,0,this.canvas[e].width,this.canvas[e].height),this.data[e].forEach(a=>this.handleDrawLine(e,a,{withUndo:!0}))};if(this.tween&&this.tweening){this.tween.stop(),yt(o,60);return}o()}destroyBrush(){this.closeBrush(),this.ready=!1,this.emit("readyChange",!0)}}class Ir{constructor(t={}){m(this,"controller");const e=Object.assign({currentColor:"#f44336",onUndoText:"\u56DE\u9000",onExitText:"\u5173\u95ED"},t);this.controller=new Pr(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 Er=(i,t)=>{let e=!0,o=null;const r=B(B({},{lookAtCurrentCamera:!1,lockedPanoIndex:null,lockedLatitude:null,lockedLongitude:null}),t==null?void 0:t.config),a=new I.Scene,l=new J.Camera(60);let c=new I.Object3D,d,u;{const C=new I.DirectionalLight(16777215,.5);C.position.copy(new I.Vector3(1,1,1)),a.add(C)}{const C=new I.DirectionalLight(16777215,.3);a.add(C)}{const C=new I.AmbientLight(16777215,.3);a.add(C)}a.add(c);const f=()=>{if(!!i.renderer)return o||(o=new I.WebGLRenderer({antialias:!1,alpha:!0}),o.setPixelRatio(i.renderer.getPixelRatio()),o.outputEncoding=I.sRGBEncoding,o.setClearColor(1579548,0),o.autoClear=!0),o},h=()=>{c.traverse(C=>{C instanceof I.Mesh&&[].concat(C.material).forEach(x=>x.dispose())}),a.remove(c),c=new I.Object3D,a.add(c),w()},p=()=>{d=b(i.model,l.fov,l.aspect),u=i.model.bounding.getCenter(new I.Vector3);function C(x){const z=x.clone();return z.uniforms.modelAlpha.value=1,z.uniforms.map.value&&(z.uniforms.map.value.needsUpdate=!0),z}function D(x){if(x instanceof I.Mesh){const z=x.geometry,L=Array.isArray(x.material)?x.material.map(C):C(x.material);return new I.Mesh(z,L)}else if(x instanceof I.Group){const z=new I.Group;return x.children.forEach(L=>z.add(D(L))),z}else{const z=new I.Object3D;return x.children.forEach(L=>z.add(D(L))),z}}a.remove(c),c=D(i.model),a.add(c),w()},g=(C,D={})=>{const x=f();if(!x)return;C.appendChild(x.domElement),A(D);const z=window.getComputedStyle(C).position;z!=="relative"&&z!=="absolute"&&z!=="fixed"&&z!=="sticky"&&(C.style.position="relative")},A=(C={})=>{if(!o)return;const x=o.domElement.parentNode;if(x!=null&&x.nodeName){const{width:z=x.offsetWidth,height:L=x.offsetHeight}=C;o.setSize(z,L),l.aspect=z/L,l.updateProjectionMatrix()}w()};function b(C,D,x){const z=C.bounding,L=Math.pow(Math.pow(z.max.x-z.min.x+1,2)+Math.pow(z.max.y-z.min.y+1,2)+Math.pow(z.max.z-z.min.z+1,2),1/2);let j=L/2/Math.tan(Math.PI*D/360);return x<1&&(j=j/x),isNaN(j)?L:j}function v(C){return i.work.observers[C].standingPosition.clone()}const w=()=>{if(!d||!u)return;const C=i.getPose();C.fov=l.fov,C.offset=u,C.distance=d,typeof r.lockedLatitude=="number"&&(C.latitude=r.lockedLatitude),typeof r.lockedLongitude=="number"&&(C.longitude=r.lockedLongitude),typeof r.lockedPanoIndex=="number"&&(C.offset=v(r.lockedPanoIndex)),r.lookAtCurrentCamera&&(C.offset=i.camera.position.clone().setY(i.camera.position.y+1)),l.setFromPose(C),e=!0},y=()=>{e!==!0||!o||!o.domElement.parentNode||o.domElement.parentNode.offsetWidth===0||(o.render(a,l),e=!1)},E=()=>{o&&o.dispose(),o=null},k=C=>{Object.assign(r,C),w()};return Object.assign(window,{camera:l}),i.on("modelLoaded",p),i.on("modelWillLoad",h),i.on("cameraDirectionUpdate",w),i.on("dispose",E),i.on("renderFrame",y),i.on("cameraPositionUpdate",w),{appendTo:g,refresh:A,changeConfigs:k}};function kr(i){return typeof Symbol=="undefined"?`$Symbol<${i}>$`:Symbol(i)}const dt=kr("$$EVENT$$");function Ct(i){return i[dt]||(i[dt]={}),i[dt]}function xr(i){i[dt]||delete i[dt]}class ut{hasListener(t){const e=Ct(this);return Boolean((e==null?void 0:e[t])&&e[t].length>0)}on(t,e,o){const n=Ct(this);return n[t]||(n[t]=[]),n[t].push([e,o||!1]),()=>this.off(t,e)}once(t,e){return this.on(t,e,!0)}off(t,e){if(t===void 0){xr(this);return}const o=Ct(this);if(o[t]||(o[t]=[]),e===void 0){o[t].length=0;return}let n=0;for(;n<o[t].length&&o[t][n][0]!==e;n++);n<o[t].length&&o[t].splice(n,1)}emit(t,...e){let o=!1;const r=Ct(this)[t]||[];for(let a of r.slice()){const[l,c=!1]=a,d=l(...e);c&&this.off(t,l),d===!1&&(o=!0)}return o}}function Ko(...i){const t=new M.Vector3;return i.forEach(e=>{t.add(e)}),t.divideScalar(i.length),t}function Pt(i,t){const e=Math.round(i);return e%2===0?e:e+Number(t!=null&&t.smaller?-1:1)}const Dr=({x:i,y:t,z:e})=>new M.Vector3(i,t,e),Se=([i,t,e])=>new M.Vector3(i,t,e),ht=i=>i instanceof M.Vector3?i:Array.isArray(i)?Se(i):Dr(i),$o="1.0.2",Sr=`CSS3DObjectPlus@${$o}`,Lr=.00216,_r=.003;class es extends Fe.CSS3DObject{constructor(e,o,n=_r,r=1,a="front"){const l=Math.max(Lr,n),c=o[0].distanceTo(o[1]),d=o[1].distanceTo(o[2]),u=Pt(c/n*r),f=Pt(d/n*r),h=Ko(...o);let p;if(l===n)e.style.width=`${u}px`,e.style.height=`${f}px`,p=e;else{const E=document.createElement("div");E.style.width=`${u}px`,E.style.height=`${f}px`,E.style.pointerEvents="none";const k=n/l;e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.width=`${k*u}px`,e.style.height=`${k*f}px`,E.appendChild(e),p=E}super(p);m(this,"version",$o);m(this,"width");m(this,"height");m(this,"domWidthPx");m(this,"domHeightPx");m(this,"cornerPoints");m(this,"ratio");m(this,"container");m(this,"centerPosition");m(this,"mode","front");m(this,"hooks",new ut);m(this,"isCSS3DObjectPlus",!0);if(this.scale.set(l,l,l),this.cornerPoints=o,this.ratio=n,this.container=e,this.mode=a,l===n)this.width=c,this.height=d,this.domWidthPx=u,this.domHeightPx=f,this.centerPosition=h;else{const E=n/l;this.width=E*c,this.height=E*d,this.domWidthPx=E*u,this.domHeightPx=E*f,this.centerPosition=new M.Vector3().subVectors(h,o[0]).multiplyScalar(E).add(o[0])}e.classList.add(`${Sr}__container`);const g=new M.Vector3().subVectors(o[1],o[0]),A=new M.Vector3().subVectors(o[3],o[0]),b=new M.Vector3().crossVectors(g,A).normalize();this.lookAt(b);const v=this.up.clone().applyQuaternion(this.quaternion),w=A.clone(),y=new M.Vector3().crossVectors(v,w).normalize();this.rotateOnWorldAxis(y,v.angleTo(w)),this.position.copy(h)}changeMode(e,o){if(e===this.mode)return;const n=this.mode;this.mode=e,this.hooks.emit("changeMode",e,n,o)}applyScaleMatrix4(e){this.scale.applyMatrix4(e),this.hooks.emit("applyScaleMatrix4",e)}applyMatrix4(e){super.applyMatrix4(e),this.hooks.emit("applyMatrix4",e)}applyQuaternion(e){return super.applyQuaternion(e),this.hooks.emit("applyQuaternion",e),this}}const zr="v2.0.1",ts="CSS3DRenderer",Ne=`${ts}@${zr}`,os=i=>`${Ne}--${i}`,V={};class ss{constructor(){m(this,"hooks",new ut);m(this,"state",{enabled:!0,visible:!0,disposed:!1});m(this,"store",{rendered:!1,disposers:[],frontModeCSS3DObjects:{},behindModeCSS3DObjects:{}});m(this,"create3DElement",(t,e,o)=>{if(this.state.disposed)return this.disposedErrorLog();const n=(()=>{const P={ratio:.00216,devicePixelRatio:1,mode:"front",autoRender:!0,container:document.createElement("div"),pointerEvents:"none"};return Object.assign(P,o)})(),r=e.map(ht);if((r==null?void 0:r.length)<4)return console.error(`${Ne}: requires 4 point but params may have fewer`);const{ratio:a,devicePixelRatio:l,mode:c,autoRender:d,container:u,pointerEvents:f}=n,h=[],{css3DObject:p,opacityMesh:g}=this.createObject(r,{ratio:a,dpr:l,container:u,mode:c,pointerEvents:f});u.id=`container--${p.uuid}`;const A=c==="front"&&!V.frontModeStore,b=c==="behind"&&!V.behindModeStore;c==="front"&&this.initGlobalModeStore("front"),c==="behind"&&this.initGlobalModeStore("behind",n.scene),p.hooks.on("changeMode",(P,S,_)=>{var Y,U,K;if(P===S)return;P==="front"&&this.initGlobalModeStore("front"),P==="behind"&&this.initGlobalModeStore("behind",_);const T=S==="front"?V.frontModeStore:V.behindModeStore,R=P==="front"?V.frontModeStore:V.behindModeStore,N=S==="behind"?this.store.behindModeCSS3DObjects:this.store.frontModeCSS3DObjects,Q=P==="behind"?this.store.behindModeCSS3DObjects:this.store.frontModeCSS3DObjects;if(!N||!Q)return console.error(`${Ne}: changeMode error: prevObjects or nextObjects is undefined`);const H=N[p.uuid];if(!H)return console.error(`${Ne}: changeMode error: prevObject is undefined`);if(P==="behind"){const se=(Y=H.opacityMesh)!=null?Y:this.createOpacityMesh(H.css3DObject);T==null||T.css3DScene.remove(H.css3DObject),Q[p.uuid]={css3DObject:p,opacityMesh:se,visible:!0,enabled:!0,mode:P,scene:_},R==null||R.css3DScene.add(p),_==null||_.add(se)}P==="front"&&(T==null||T.css3DScene.remove(H.css3DObject),(K=(U=N[p.uuid])==null?void 0:U.scene)==null||K.remove(H.opacityMesh),Q[p.uuid]={css3DObject:p,visible:!0,enabled:!0,mode:P},R==null||R.css3DScene.add(p)),P==="behind"&&this.appendToElement(V.behindModeContainer,"behind"),P==="front"&&this.appendToElement(V.frontModeContainer,"front"),this.render(t),console.log("change success")});const v=c==="front"?V.frontModeStore:V.behindModeStore,{css3DScene:w,css3DRenderer:y}=v,E=(()=>{const P=()=>{var _,T;const S=p.mode;if(S==="front")this.store.frontModeCSS3DObjects[p.uuid]={visible:!0,enabled:!0,css3DObject:p,mode:"front"};else{if(!n.scene)return;this.store.behindModeCSS3DObjects[p.uuid]={visible:!0,enabled:!0,css3DObject:p,opacityMesh:g,mode:"behind",scene:n.scene}}w.getObjectById(p.id)||w.add(p),S==="behind"&&g&&((_=n.scene)!=null&&_.getObjectById(g.id)||(T=n.scene)==null||T.add(g),h.push(()=>{var R;return g&&((R=n.scene)==null?void 0:R.remove(g))}))};return A||b?(y.domElement.style.position="absolute",y.domElement.style.top="0",y.domElement.style.userSelect="none",y.domElement.style.pointerEvents="none",y.domElement.classList.add(os(c)),()=>{P(),this.render(t)}):(this.store.rendered=!0,()=>P())})(),k=c==="front"?V.frontModeContainer:V.behindModeContainer;if(k){this.appendToElement(k,c);const P=c==="front"?V.frontModeStore:V.behindModeStore;P&&(P.appendedToPage=!0)}const C=P=>this.setVisibleById(p.uuid,P),D=P=>this.setEnabledById(p.uuid,P),x=()=>C(!0),z=()=>C(!1),L=()=>D(!0),j=()=>D(!1),O=()=>(delete this.store.frontModeCSS3DObjects[p.uuid],delete this.store.behindModeCSS3DObjects[p.uuid],h.forEach(P=>P==null?void 0:P()),w.remove(p),w.children.length===0&&(typeof v.requestAnimationFrameId=="number"&&cancelAnimationFrame(v.requestAnimationFrameId),y.domElement.remove(),c==="front"&&(V.frontModeStore=void 0),c==="behind"&&(V.behindModeStore=void 0),V.frontModeResizeObserver=void 0,V.behindModeResizeObserver=void 0),!0);return this.store.disposers.push(O),d&&E(),{id:p.uuid,container:u,dispose:O,css3DObject:p,render:d?void 0:E,show:x,hide:z,setVisible:C,disable:j,enable:L,setEnabled:D,appendToElement:P=>this.appendToElement(P,c)}});m(this,"setVisibleById",(t,e)=>{var n;const o=(n=this.store.frontModeCSS3DObjects[t])!=null?n:this.store.behindModeCSS3DObjects[t];if(!o)return console.error("id not found",t);o.visible=e,this.state.visible&&(o.css3DObject.visible=e,o.mode==="behind"&&(o.opacityMesh.visible=e))});m(this,"setEnabledById",(t,e)=>{var r,a,l;const o=(r=this.store.frontModeCSS3DObjects[t])!=null?r:this.store.behindModeCSS3DObjects[t];if(!o)return;const n=o.mode==="front"?(a=V.frontModeStore)==null?void 0:a.css3DScene:(l=V.behindModeStore)==null?void 0:l.css3DScene;!n||(e?(n.add(o.css3DObject),o.mode==="behind"&&o.scene.add(o.opacityMesh)):(n.remove(o.css3DObject),o.mode==="behind"&&o.scene.remove(o.opacityMesh)),o.enabled=e)});m(this,"createObject",(t,e)=>{const{ratio:o,dpr:n,container:r,mode:a,pointerEvents:l}=e,c=new es(r,t,o,n,a);r.style.pointerEvents=l,r.classList.add(`${ts}__container`);const d=a==="behind"?this.createOpacityMesh(c):void 0;return{css3DObject:c,opacityMesh:d}});m(this,"createOpacityMesh",t=>{const{domWidthPx:e,domHeightPx:o}=t,n=new I.MeshBasicMaterial({opacity:0,color:0,transparent:!1,side:I.DoubleSide}),r=new I.PlaneGeometry(e,o),a=new I.Mesh(r,n);return a.name=os("mesh"),a.position.copy(t.position),a.rotation.copy(t.rotation),a.scale.copy(t.scale),t.hooks.on("applyMatrix4",l=>a.applyMatrix4(l)),t.hooks.on("applyQuaternion",l=>a.applyQuaternion(l)),t.hooks.on("applyScaleMatrix4",l=>a.scale.applyMatrix4(l)),a});m(this,"createResizeObserver",(t,e,o=!0)=>{if(!t)return console.error("createResizeObserver: element is undefined"),{observe:()=>{},unobserve:()=>{}};const n=()=>{const a=Pt(t.clientWidth,{smaller:!0}),l=Pt(t.clientHeight,{smaller:!0});e(a,l)};if(typeof ResizeObserver=="undefined"||!ResizeObserver)return console.warn("createResizeObserver: ResizeObserver is undefined"),{observe:()=>n(),unobserve:()=>{}};const r=new ResizeObserver(n);return o&&n(),{observe:()=>r.observe(t),unobserve:()=>r.unobserve(t)}});m(this,"disposedErrorLog",()=>{console.error(`${Ne} is disposed`)})}getCurrentState(){return this.state}setState(t,e={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();const o=B({},this.state);this.state=Object.assign(this.state,t),o.visible!==this.state.visible&&(t.visible?this.handleShow():this.handleHide()),o.enabled!==this.state.enabled&&(t.enabled?this.handleEnable():this.handleDisable()),this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:e.userAction})}dispose(){this.store.disposers.forEach(t=>t==null?void 0:t()),this.store.disposers=[],this.hooks.emit("dispose"),this.state.disposed=!0}show(){return G(this,arguments,function*({userAction:t}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({visible:!0},{userAction:t}),this.hooks.emit("show",{userAction:t})})}hide(){return G(this,arguments,function*({userAction:t}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({visible:!1},{userAction:t}),this.hooks.emit("hide",{userAction:t})})}enable({userAction:t}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({enabled:!0},{userAction:t}),this.hooks.emit("enable",{userAction:t})}disable({userAction:t}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({enabled:!1},{userAction:t}),this.hooks.emit("disable",{userAction:t})}setContainer(t,e){e==="front"?V.frontModeContainer=t:V.behindModeContainer=t}appendToElement(t,e){const o=e==="front"?V.frontModeStore:V.behindModeStore;if(!o){if(e==="front"&&!V.frontModeContainer){if(!t)throw new Error(`${Ne} Cannot append to container: front mode but container is ${t}`);V.frontModeContainer=t}if(e==="behind"&&!V.behindModeContainer){if(!t)throw new Error(`${Ne} Cannot append to container: behind mode but container is ${t}`);V.behindModeContainer=t}return}if(o.appendedToPage)return;const n=e==="behind"?V.behindModeContainer:V.frontModeContainer;if(!n)return console.error("wrapper is undefined");if(n.appendChild(o.css3DRenderer.domElement),e==="behind"&&!V.behindModeResizeObserver){const r=(c,d)=>{var u;(u=V.behindModeStore)==null||u.css3DRenderer.setSize(c,d)},{observe:a,unobserve:l}=this.createResizeObserver(n,r,!0);V.behindModeResizeObserver={observe:a,unobserve:l},a(),this.store.disposers.push(l)}if(e==="front"&&!V.frontModeResizeObserver){const r=(c,d)=>{var u;(u=V.frontModeStore)==null||u.css3DRenderer.setSize(c,d)},{observe:a,unobserve:l}=this.createResizeObserver(n,r,!0);V.frontModeResizeObserver={observe:a,unobserve:l},a(),this.store.disposers.push(l)}o.appendedToPage=!0}render(t){const e=V.behindModeStore,o=V.frontModeStore;if(e&&Object.keys(this.store.behindModeCSS3DObjects).length>0&&!e.requestAnimationFrameId){const n=()=>{const r=requestAnimationFrame(n);e.requestAnimationFrameId=r,e.css3DRenderer.render(e.css3DScene,t)};n()}if(o&&Object.keys(this.store.frontModeCSS3DObjects).length>0&&!o.requestAnimationFrameId){const n=()=>{const r=requestAnimationFrame(n);o.requestAnimationFrameId=r,o.css3DRenderer.render(o.css3DScene,t)};n()}Object.keys(this.store.frontModeCSS3DObjects).length===0&&(o==null?void 0:o.requestAnimationFrameId)!==void 0&&(cancelAnimationFrame(o.requestAnimationFrameId),o.requestAnimationFrameId=void 0),Object.keys(this.store.behindModeCSS3DObjects).length===0&&(e==null?void 0:e.requestAnimationFrameId)!==void 0&&(cancelAnimationFrame(e.requestAnimationFrameId),e.requestAnimationFrameId=void 0)}initGlobalModeStore(t,e){const o=t==="front"&&!V.frontModeStore;t==="behind"&&!V.behindModeStore&&(V.behindModeStore={scene:e,css3DScene:new I.Scene,css3DRenderer:new Fe.CSS3DRenderer}),o&&(V.frontModeStore={css3DScene:new I.Scene,css3DRenderer:new Fe.CSS3DRenderer})}handleShow(){return G(this,null,function*(){Object.values(this.store.frontModeCSS3DObjects).forEach(t=>{t.css3DObject.visible=t.visible}),Object.values(this.store.behindModeCSS3DObjects).forEach(t=>{t.css3DObject.visible=t.visible,t.opacityMesh.visible=t.visible})})}handleHide(){return G(this,null,function*(){Object.values(this.store.frontModeCSS3DObjects).forEach(t=>{t.css3DObject.visible=!1}),Object.values(this.store.behindModeCSS3DObjects).forEach(t=>{t.css3DObject.visible=!1,t.opacityMesh.visible=!1})})}handleEnable(){Object.values(this.store.frontModeCSS3DObjects).forEach(t=>{var e;!t.enabled||(e=V.frontModeStore)==null||e.css3DScene.add(t.css3DObject)}),Object.values(this.store.behindModeCSS3DObjects).forEach(t=>{var e,o;!t.enabled||((e=V.behindModeStore)==null||e.css3DScene.add(t.css3DObject),(o=V.behindModeStore)==null||o.scene.add(t.opacityMesh))})}handleDisable(){Object.values(this.store.frontModeCSS3DObjects).forEach(t=>{var e;(e=V.frontModeStore)==null||e.css3DScene.remove(t.css3DObject)}),Object.values(this.store.behindModeCSS3DObjects).forEach(t=>{var e,o;(e=V.behindModeStore)==null||e.css3DScene.remove(t.css3DObject),(o=V.behindModeStore)==null||o.scene.remove(t.opacityMesh)})}}const is="CSS3DRenderPlugin@v2.0.1";class Mr extends ss{constructor(e){super();m(this,"five");m(this,"behindFiveContainer");m(this,"staticPrefix","//vrlab-static.ljcdn.com");m(this,"create3DDomContainer",(e,o)=>{if(this.state.disposed)return;const n=(()=>{var g;(o==null?void 0:o.dpr)!==void 0&&console.warn(`${is}: please use "config.devicePixelRatio" replace "config.dpr"`);const p={ratio:.00216,devicePixelRatio:(g=o==null?void 0:o.dpr)!=null?g:1,mode:"front",autoRender:!0};return Object.assign(p,o,(o==null?void 0:o.mode)==="behind"?{scene:this.five.scene}:void 0)})(),r=this.five.getElement();if(!r){console.error(`${is}: five.getElement() is ${r}`);return}const{autoRender:a,mode:l}=n,c=l==="front"?r.parentElement:n.behindFiveContainer;this.setContainer(c||document.body,"front");const d=this.getBehindFiveElement();d&&this.setContainer(d,"behind"),this.appendToElement(c||document.body,l);const u=this.create3DElement(this.five.camera,e,q(B({},n),{autoRender:!1}));if(!u)return;const f=u.render,h=()=>{var p;l==="front"&&f(),l==="behind"&&((p=this.five.model)!=null&&p.loaded?f():this.five.once("modelLoaded",()=>f()))};return a&&h(),q(B({},u),{render:a?void 0:h})});this.five=e}disposeAll(){return this.dispose()}setState(...e){const o=super.setState(...e);return this.five.needsRender=!0,o}getBehindFiveElement(){var l;const{behindFiveContainer:e}=this;if(e)return e;const o=document.createElement("div");o.style.position="absolute",o.style.pointerEvents="none",o.style.top="0",o.style.left="0",o.style.width="100%",o.style.height="100%",this.behindFiveContainer=o;const n=this.five.getElement();if(!n)return;const r=(l=n==null?void 0:n.style.position)!=null?l:getComputedStyle(n);(!r||r==="static")&&console.warn("if you want to use css3DRenderPlugin behind mode, five element position is static, please set position to relative or absolute");const a=n==null?void 0:n.parentElement;if(a)return a.insertBefore(o,n),o}}const et=i=>new Mr(i);function oo(i,t,e=new M.Vector3(1,1,1),o=!1){const n=new gt.Line(i,t);return n.setMaterial({dashed:o,color:e,linewidth:1}),n.remove(n.points),n}const jr=i=>{const t={intersection:null,disposers:[]},e=u=>{t.intersection=u},o=()=>{t.intersection=null};i.on("modelLoaded",()=>{i.on("intersectionOnModelUpdate",e),i.on("intersectionHidden",o)}),i.on("dispose",()=>{i.off("intersectionOnModelUpdate",e),i.off("intersectionHidden",o)});const n=(u,f=2,h=.1)=>{const p=f/2,A=d(u,h),b=new M.Group;b.add(oo(new M.Vector3(A.x+p,A.y,A.z),new M.Vector3(A.x-p,A.y,A.z),new M.Vector3(1,0,0)),oo(new M.Vector3(A.x,A.y+p,A.z),new M.Vector3(A.x,A.y-p,A.z),new M.Vector3(0,1,0)),oo(new M.Vector3(A.x,A.y,A.z+p),new M.Vector3(A.x,A.y,A.z-p),new M.Vector3(0,0,1))),i.scene.add(b),i.needsRender=!0;const v=()=>{i.scene.remove(b)};return t.disposers.push(v),{clear:v,pointAxesHelperMesh:b}},r=(u,f=0)=>{var v,w;const h=(v=i==null?void 0:i.camera)==null?void 0:v.position;if(!h)return!1;const p=u.distanceTo(h),g=u.sub(h).normalize(),A=new M.Raycaster(h,g),b=(w=i.model.intersectRaycaster(A))==null?void 0:w[0];return!(b&&b.distance+f<p)},a=()=>t.intersection,l=()=>{var u,f;(f=(u=t.disposers)==null?void 0:u.forEach)==null||f.call(u,h=>h==null?void 0:h()),i.off("intersectionOnModelUpdate",e),i.off("intersectionHidden",o)},c=l,d=(u,f)=>{const h=u.clone();return i.camera.position.clone().sub(h).setLength(f).add(h)};return{intersection:a,pointAxesHelper:n,movePointTowardsCamera:d,destroy:l,dispose:c,canSeePoint:r}},Br="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAPAAAAABU0H2EAAARRElEQVR4Ad2czY9cRZbFq1yFoQGDNCzwuAENohl54dkgdrNh34tZ8GciFi31nwEsmAEhhAWD1GMJCZgx5sMfUHN+J+NE3XfrZWWVcVVLHVLmuXG/74148V5m2bm/N8bR0dH+Bx988Po333zzbz///PONg4ODa+I9I9y/cuXKgV77h4eH+1KH3hP/yv7+vuBAsG+5UCIpCkMzDQ962Eu80Q1P/KmHT82v8IocZFL4pslDvL3fNARHoPI2wtbrV1jBIf9N8SEZ0UUP2wFHv2ocSc/2ouEz8PVooJXQ0/j10aNHoH2Idj4PHz4k1n29/k+5/u3ll1/+r7fffvtLzfGzd8ibjK6+9957f5ajf1XzH9y7d+8Xjf9FRs1SdvNBBg2SDQ1xh9ALH4yN0M2BNZrKwtFc9Fmkquuma5HJBzvLiIONBnx40B7QIzTdxCcNwj3dYlEoUmabAU+UFZDpxah22Ng2NjQXH0LrwccGwyEzXfWhWQwSYQHYuFevXj14/vnn37h79+7Nr7766gup/FX5PnAj33///f/46aef3vj444/vfPbZZz9IYGMcnDbkhEYQL001Hfsu775i+7j6LID6cDQWYo8mabGMxOr+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Edn2uKDEd9BM8tbzxe98IraJJM7CBP98JjHFmR+3vqxOXzmmWceaKU337CxGhqCTUVolIGMabAnhGgUb71iahI7fFf7FIFCb3j/18voiuemdd/Mu/+uE1sQWfeX3MBuyzx5B39P/fRcr4dcAT9p5bxl4zhIgNqgnlRkILKuf1654tIUCk2oLJYbQpr0ZqRrGt30C1tk4FnyQYccray31B3s9UQviG104IUGmZ8mH5v+3qF2w51nn332TzHCsI7KJzEVm6akEVuPhLWGhUeM0CAjvkHmxCM+uCYPD2R0f2Ilt7lB4tMGZ3i7qPqfe+65P6j3X1y5du3aZ3rSefrGjRsvkNxpI80AeTGC0NgGoakvuFYrtvDjD11okBF6m3yjdfze9eM7sbPQIC8sg8detlPdP7XCy8ASOh6IC534Qf126Au6Aq7S+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 Tr(i){s.append_styles(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 Qr(i){let t,e,o=i[0].name+"",n,r,a,l,c;return{c(){t=s.element("div"),e=s.element("span"),n=s.text(o),r=s.space(),a=s.element("div"),s.attr(e,"class","room-label-item__text svelte-1d7uzh5"),s.set_style(e,"background-image","url("+Br+")"),s.toggle_class(e,"wide",i[0].name.length>3),s.attr(a,"class","room-label-item__bar svelte-1d7uzh5"),s.attr(t,"class","room-label-item svelte-1d7uzh5"),s.set_style(t,"z-index",i[0].zIndex,!1),s.set_style(t,"transform",i[0].transform,!1),s.set_style(t,"opacity",i[0].visible?1:0,!1)},m(d,u){s.insert(d,t,u),s.append(t,e),s.append(e,n),s.append(t,r),s.append(t,a),l||(c=s.listen(e,"click",i[1]),l=!0)},p(d,[u]){u&1&&o!==(o=d[0].name+"")&&s.set_data(n,o),u&1&&s.toggle_class(e,"wide",d[0].name.length>3),u&1&&s.set_style(t,"z-index",d[0].zIndex,!1),u&1&&s.set_style(t,"transform",d[0].transform,!1),u&1&&s.set_style(t,"opacity",d[0].visible?1:0,!1)},i:s.noop,o:s.noop,d(d){d&&s.detach(t),l=!1,c()}}}function Or(i,t,e){let{five:o}=t,{roomLabel:n}=t;function r(){o.setState({panoIndex:n.panoIndex,mode:"Panorama",longitude:n.longitude})}return i.$$set=a=>{"five"in a&&e(2,o=a.five),"roomLabel"in a&&e(0,n=a.roomLabel)},[n,r,o]}class Rr extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Or,Qr,s.safe_not_equal,{five:2,roomLabel:0},Tr)}}const{Map:Fr}=s.globals;function Hr(i){s.append_styles(i,"svelte-9eg4zi",".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}")}function ns(i,t,e){const o=i.slice();return o[12]=t[e],o}function rs(i,t){let e,o,n;return o=new Rr({props:{roomLabel:t[12],five:t[1]}}),{key:i,first:null,c(){e=s.empty(),s.create_component(o.$$.fragment),this.first=e},m(r,a){s.insert(r,e,a),s.mount_component(o,r,a),n=!0},p(r,a){t=r;const l={};a&1&&(l.roomLabel=t[12]),a&2&&(l.five=t[1]),o.$set(l)},i(r){n||(s.transition_in(o.$$.fragment,r),n=!0)},o(r){s.transition_out(o.$$.fragment,r),n=!1},d(r){r&&s.detach(e),s.destroy_component(o,r)}}}function Gr(i){let t,e=[],o=new Fr,n,r,a=i[0];const l=c=>c[12].id;for(let c=0;c<a.length;c+=1){let d=ns(i,a,c),u=l(d);o.set(u,e[c]=rs(u,d))}return{c(){t=s.element("div");for(let c=0;c<e.length;c+=1)e[c].c();s.attr(t,"class","room-labels-container svelte-9eg4zi"),s.add_render_callback(()=>i[6].call(t))},m(c,d){s.insert(c,t,d);for(let u=0;u<e.length;u+=1)e[u].m(t,null);n=s.add_resize_listener(t,i[6].bind(t)),r=!0},p(c,[d]){d&3&&(a=c[0],s.group_outros(),e=s.update_keyed_each(e,d,l,1,c,a,o,t,s.outro_and_destroy_block,rs,null,ns),s.check_outros())},i(c){if(!r){for(let d=0;d<a.length;d+=1)s.transition_in(e[d]);r=!0}},o(c){for(let d=0;d<e.length;d+=1)s.transition_out(e[d]);r=!1},d(c){c&&s.detach(t);for(let d=0;d<e.length;d+=1)e[d].d();n()}}}function Nr(i,t,e){var A;let o,{five:n}=t,{roomLabels:r}=t,a,l,c=(A=n.model.shownFloor)!=null?A:null;function d(b){if(!(c===null||b.floorIndex===c))return!1;const w=new M.Raycaster,y=n.camera.position.clone(),E=new M.Vector3(b.position.x,b.position.y,b.position.z),k=E.distanceTo(y);w.set(y.clone(),E.clone().sub(y).normalize());const[C]=n.model.intersectRaycaster(w);return!(C&&C.distance+1<k)}function u(b,v){const y=new M.Vector3(b.position.x,b.position.y,b.position.z).clone().project(n.camera),E=Math.ceil((y.x+1)/2*v.x),k=Math.ceil((-y.y+1)/2*v.y);return`translate(${E}px, ${k}px)`}function f(b){const{rendererSize:v,shownFloor:w}=b,y=new Map;function E(C){const D=y.get(C.id);if(D)return D;const{x,y:z,z:L}=C.position,j=new M.Vector3(x,z,L).clone().distanceTo(n.camera.position);return y.set(C.id,j),j}return r.map(C=>{const D=d(C),x=D?u(C,v):C.transform,z=E(C),j=r.filter(O=>O.visible&&E(O)<z).length*10;return q(B({},C),{visible:D,transform:x,zIndex:j})})}function h(){e(0,r=f({rendererSize:o,shownFloor:c}))}function p(b){e(4,c=b)}n.on("cameraUpdate",h),n.on("modelShownFloorChange",p),Z.onDestroy(()=>{n.off("cameraUpdate",h),n.off("modelShownFloorChange",p)});function g(){a=this.clientWidth,l=this.clientHeight,e(2,a),e(3,l)}return i.$$set=b=>{"five"in b&&e(1,n=b.five),"roomLabels"in b&&e(0,r=b.roomLabels)},i.$$.update=()=>{i.$$.dirty&12&&e(5,o={x:a,y:l}),i.$$.dirty&48&&e(0,r=f({rendererSize:o,shownFloor:c}))},[r,n,a,l,c,o,g]}class Wr extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Nr,Gr,s.safe_not_equal,{five:1,roomLabels:0},Hr)}}function Xr(i){return i.model_room_labels.map(({id:t,pano_index:e,floor_index:o,name:n,position:r,longitude:a})=>({id:t,name:n,position:r,longitude:a,panoIndex:e,floorIndex:o,zIndex:0,visible:!1,transform:""}))}class Yr{constructor(t){m(this,"five");m(this,"enabled",!0);m(this,"fiveModeEnabled");m(this,"app");m(this,"wrapper");m(this,"roomLabels",[]);m(this,"container",document.createElement("div"));m(this,"onFiveModeChange",t=>{if(t!=="Floorplan"){this.fiveModeEnabled=!1,this.render();return}this.five.once("initAnimationEnded",()=>{this.fiveModeEnabled=this.five.currentMode==="Floorplan",this.render()})});this.five=t,this.fiveModeEnabled=this.five.currentMode==="Floorplan",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=Xr(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}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 Wr({target:this.container,props:{five:this.five,roomLabels:this.roomLabels}})}}}const Ur=i=>new Yr(i),Vr={name:"ModelRoomLabelPlugin",version:0};var Me=(i=>(i[i.FLOOR=1]="FLOOR",i[i.CEILING=2]="CEILING",i[i.BOUNDING_CENTER=3]="BOUNDING_CENTER",i))(Me||{});function It(i){return G(this,null,function*(){try{return[null,yield i]}catch(t){return t instanceof Error?[t,null]:[new Error(""),null]}})}function Et(i){return Object.prototype.toString.call(i)==="[object Object]"}function kt(i,t){return i===t?!0:typeof i!=typeof t?!1:!!(Number.isNaN(i)&&Number.isNaN(t))}function Jr(i,t){const e=Object.getOwnPropertyNames(i),o=Object.getOwnPropertyNames(t);if(e.length!==o.length)return!1;for(let n=0,r=e.length;n<r;n++){const a=e[n];if(!kt(i[a],t[a]))return!1}return!0}function Zr(i,t){if(i.length!==t.length)return!1;for(let e=0,o=i.length;e<o;e++)if(!kt(i[e],t[e]))return!1;return!0}function qr(i,t){return kt(i,t)?!0:Et(i)&&Et(t)?Jr(i,t):Array.isArray(i)&&Array.isArray(t)?Zr(i,t):!1}function so(i,t){return kt(i,t)?!0:Et(i)&&Et(t)?$r(i,t):Array.isArray(i)&&Array.isArray(t)?Kr(i,t):!1}function Kr(i,t){if(i.length!==t.length)return!1;for(let e=0,o=i.length;e<o;e++)if(!so(i[e],t[e]))return!1;return!0}function $r(i,t){const e=Object.getOwnPropertyNames(i),o=Object.getOwnPropertyNames(t);if(e.length!==o.length)return!1;for(let n=0,r=e.length;n<r;n++){const a=e[n];if(!so(i[a],t[a]))return!1}return!0}function Pe(i,t,e={deep:!1}){return e.deep?so(i,t):qr(i,t)}const je="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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18FoWEeDbHLPzLyQ4ePjQ5i3x1RCubfmpqkjMMNo6KOJ5uqe+f58C9GoaD29XyVSYS1h4DftKeWDDN4AbACZMZAsExEKghWUNKXWhlPfA2P1qjmUT556a9jmQotWi/VOFael1lR7ep4JfRZy8nhpwtG4wMMB/gdi9/nNH+vhezsmJ+fG5quX12fomHl6J+KFy88uA2RJyJPE4wkL4wIPBfgXxO5HxGN7zNw5W2bNnLZhio+OmaR3LD6tplrLfKeYAwX7/O6Dje/2dpniwuKiwoMHH+bn7723Z8/uHTu2fpg9+3p29sYrWVnr1l1cO2HCUFCGT+tshUcWLPj6IDf37ued27Z9unXz2owZU6dOnnxp4sQ1q1ePH79KN6vbQWc1SrfrTit6lO5NO6/F8yZNmofBfgNTwRQLsPLsHQAAAABJRU5ErkJggg==";function ea(i){return i*180/Math.PI}function ta(i){s.append_styles(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 oa(i){let t,e;return{c(){t=s.element("div"),e=s.element("div"),s.attr(e,"class","floorplan__camera-rotate svelte-17cl35n"),s.set_style(e,"background-image",`url(${i[0]||je})`),s.set_style(e,"width",i[4],!1),s.set_style(e,"height",i[4],!1),s.set_style(e,"left","-"+i[4],!1),s.set_style(e,"top","-"+i[4],!1),s.set_style(e,"transform",`rotate(${i[3]}deg)`,!1),s.set_style(e,"transform-origin",`${i[4]} ${i[4]}`,!1),s.attr(t,"class","floorplan__camera-position svelte-17cl35n"),s.set_style(t,"left",i[1],!1),s.set_style(t,"top",i[2],!1)},m(o,n){s.insert(o,t,n),s.append(t,e)},p(o,[n]){n&1&&s.set_style(e,"background-image",`url(${o[0]||je})`)},i:s.noop,o:s.noop,d(o){o&&s.detach(t)}}}function sa(i,t,e){let{panoIndex:o}=t,{floorplanData:n}=t,{lastPanoramaLongitude:r}=t,{cameraImageUrl:a}=t;const{observers:l}=n,c=l[o],d=c.positionInImage.x,u=c.positionInImage.y,f=d*100+"%",h=u*100+"%",p=-ea(r)+45,g=document.body.clientWidth,A=document.body.clientHeight,v=`${(g<500||A<500?17:37)/16}rem`;return i.$$set=w=>{"panoIndex"in w&&e(5,o=w.panoIndex),"floorplanData"in w&&e(6,n=w.floorplanData),"lastPanoramaLongitude"in w&&e(7,r=w.lastPanoramaLongitude),"cameraImageUrl"in w&&e(0,a=w.cameraImageUrl)},[a,f,h,p,v,o,n,r]}class ia extends s.SvelteComponent{constructor(t){super(),s.init(this,t,sa,oa,s.safe_not_equal,{panoIndex:5,floorplanData:6,lastPanoramaLongitude:7,cameraImageUrl:0},ta)}}const na="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+Oq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jjaY1PXa3wcbSPaEDR1fP9fVt8aPai2+f2+TlWu2l0yweZHlEO5S9cyu1lDKj5T/fWCH4jLaUnXMbvFyrzby8xRrayqUM2+ZWqvuM1nmpgHWkl8F9z9yG7LNa5yEMa0n8yHb93Er1oXjnoMVyFn3KQVcP7VRpFn+sDiznaiuHNufsHnkIwy7aPA/r5jbFGW3m7S12ku55WPN7Li1PPIRhN6sjtBjTmm+KmYcwPEOKs9tHF1JDHCoHLZ5DQ8yPBic9DoHjAKvsb85qjbFxHOCprMZaf5qdhlorxwGeTsPIttvPlno0y3GAZfbHp6n3ynGAV0m99u/2J6H3znGAvW4n+J25tdY7xwFey1pvQe6/DlrjOMDLqfXW7N5pbs0YWhxgtpj0rl1uiaHFISzccSWohUCzOIemm0VKChwHOMutKCVwHOA4av/JVi0xtDiRpCRfRcvQ4lBfxSnG0OJc/+xTjKHFyVRMP38iDC0O92lZVRhanO+vcVWGFu9BRWkW7+Z3rapEizdy7ZVm8V5Gtr8AtSnix59eOmYAAAAASUVORK5CYII=";function ra(i){s.append_styles(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 aa(i){let t,e,o,n,r;return{c(){t=s.element("div"),e=s.element("div"),o=s.space(),n=s.element("span"),r=s.text(i[0]),s.attr(e,"class","floorplan-plugin__compass-image svelte-rpkaro"),s.set_style(e,"background-image",`url(${na})`),s.attr(n,"class","floorplan-plugin__compass-text svelte-rpkaro"),s.attr(t,"class","floorplan-plugin__compass svelte-rpkaro"),s.set_style(t,"transform",i[2],!1)},m(a,l){s.insert(a,t,l),s.append(t,e),s.append(t,o),s.append(t,n),s.append(n,r)},p(a,l){l&1&&s.set_data(r,a[0])},d(a){a&&s.detach(t)}}}function la(i){let t,e=i[1]&&aa(i);return{c(){e&&e.c(),t=s.empty()},m(o,n){e&&e.m(o,n),s.insert(o,t,n)},p(o,[n]){o[1]&&e.p(o,n)},i:s.noop,o:s.noop,d(o){e&&e.d(o),o&&s.detach(t)}}}function ca(i){return i/Math.PI*180}function da(i,t,e){var d;let{floorplanData:o}=t,{northDesc:n}=t;const r=(d=o.entrance)==null?void 0:d.northRad,a=typeof r=="number",c=`translateX(-50%) translateZ(10px) rotate(${-(r?ca(r):0)+90}deg)`;return i.$$set=u=>{"floorplanData"in u&&e(3,o=u.floorplanData),"northDesc"in u&&e(0,n=u.northDesc)},[n,a,c,o]}class ua extends s.SvelteComponent{constructor(t){super(),s.init(this,t,da,la,s.safe_not_equal,{floorplanData:3,northDesc:0},ra)}}function ha(i){s.append_styles(i,"svelte-1gfoniz","img.svelte-1gfoniz{width:100%;height:100%}")}function fa(i){let t,e;return{c(){t=s.element("img"),s.src_url_equal(t.src,e=i[0])||s.attr(t,"src",e),s.attr(t,"alt","floorplan iamge"),s.attr(t,"class","svelte-1gfoniz")},m(o,n){s.insert(o,t,n)},p(o,[n]){n&1&&!s.src_url_equal(t.src,e=o[0])&&s.attr(t,"src",e)},i:s.noop,o:s.noop,d(o){o&&s.detach(t)}}}function ma(i,t,e){let{url:o}=t;return i.$$set=n=>{"url"in n&&e(0,o=n.url)},[o]}class pa extends s.SvelteComponent{constructor(t){super(),s.init(this,t,ma,fa,s.safe_not_equal,{url:0},ha)}}function ga(i){s.append_styles(i,"svelte-ub47ya",".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}")}function Aa(i){let t,e,o,n;return{c(){t=s.element("div"),e=new s.HtmlTag(!1),o=s.space(),n=new s.HtmlTag(!1),e.a=o,n.a=null,s.attr(t,"class","floorplan-plugin__base-image svelte-ub47ya")},m(r,a){s.insert(r,t,a),e.m(i[1],t),s.append(t,o),n.m(i[0],t)},p(r,[a]){a&1&&n.p(r[0])},i:s.noop,o:s.noop,d(r){r&&s.detach(t)}}}function va(i,t,e){let{content:o}=t;const n=`
101
+ `;class Pr extends wr{constructor(e){super();m(this,"configs");m(this,"clientWidth");m(this,"clientHeight");m(this,"ready",!1);m(this,"uuid",fe());m(this,"tween");m(this,"tweening",!1);m(this,"container");m(this,"canvas");m(this,"data",{});m(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=Cr,this.container}initCanvas(e){const o=document.createElement("canvas");o.className=e,o.width=this.clientWidth,o.height=this.clientHeight;const n=o.getContext("2d");if(!!n)return n.lineWidth=5*this.dpr,n.lineCap="round",n.lineJoin="round",this.container.appendChild(o),o}initCtrl(){const e=document.createElement("div");e.className="_paintBrush-ctrl";const o=document.createElement("div");o.className="_paintBrush-ctrlinner";const n=document.createElement("a");n.className="_paintBrush-ctrlitem _paintBrush-ctrlitem--undo",n.addEventListener("click",l=>{var h;if(l.stopPropagation(),this.configs.onClickUndo&&this.configs.onClickUndo(),!this.canvas[this.uuid]||!this.data[this.uuid]||this.data[this.uuid].length===0)return;const c=this.data[this.uuid].pop();c&&this.emitStateChange({type:De.Undo,color:this.color,ready:this.ready,state:c,uuid:this.uuid});const d=(h=this.canvas[this.uuid])==null?void 0:h.getContext("2d");if(!this.canvas[this.uuid])return;const{width:u,height:f}=this.canvas[this.uuid];d&&d.clearRect(0,0,u,f),this.data[this.uuid].forEach(p=>this.handleDrawLine(this.uuid,p,{withUndo:!0}))});const r=document.createElement("a");return r.className="_paintBrush-ctrlitem _paintBrush-ctrlitem--close",r.addEventListener("click",l=>{l.stopPropagation(),this.closeBrush(),this.configs.onClickClose&&this.configs.onClickClose()}),[n,r].forEach(l=>{const c=document.createElement("i");c.className="brush-icon";const d=document.createElement("span");d.className="brush-txt",d.innerText=l.className.endsWith("undo")?this.configs.onUndoText:this.configs.onExitText,l.appendChild(c),l.appendChild(d)}),o.appendChild(n),o.appendChild(r),e.appendChild(o),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 o=this.canvas[e].getContext("2d");o&&o.clearRect(0,0,this.canvas[e].width,this.canvas[e].height)}),this.ready=!1,this.emit("readyChange",!1),this.emitStateChange({type:De.Exit,color:this.color,ready:!1,uuid:this.uuid}))}updateCurrentColor(e){const o=this.canvas[this.uuid];if(!o)return;const n=o.getContext("2d");!n||(this.configs.currentColor=e,n.strokeStyle=e)}openBrushHandle(){const e=this.canvas[this.uuid];if(!e)return;const o=e.getContext("2d");if(!o)return;const n=this.color||"#6D92FF";o.strokeStyle=n;let r=null,a=[],l,c=[],d=0;const u=(f,h,p)=>{const g=this.color||"#ff0000";o.strokeStyle=g,o.beginPath(),o.moveTo(f.x,f.y),o.quadraticCurveTo(h.x,h.y,p.x,p.y),o.stroke()};e.onmousedown=f=>{f.preventDefault(),d=Date.now();const h=f.clientX,p=f.clientY;a=[],a.push({x:h,y:p}),r={x:h,y:p},l=vt({x:h,y:p},this.clientWidth,this.clientHeight),c=[]},e.onmousemove=f=>{if(f.preventDefault(),!r)return;const h=Number(f.clientX),p=Number(f.clientY);if(Math.abs(h-r.x)<5&&Math.abs(p-r.y)<5||(a.push({x:h,y:p}),c.push(vt({x:h,y:p},this.clientWidth,this.clientHeight)),a.length<3))return;const{control:g,end:A}=bt(a);!g||!A||(u(r,g,A),r=A)},e.onmouseup=f=>{if(f.preventDefault(),r=null,a.length<3)return;this.data[this.uuid]||(this.data[this.uuid]=[]);const h=Date.now()-d,p={move:Object.assign({},l),uuid:this.uuid,line:[...c],color:this.color,duration:h<1280?h:h<2e3?1280:0};this.data[this.uuid].push(p),yt(()=>{this.emitStateChange({type:De.Drawline,color:this.color,ready:this.ready,state:p,uuid:this.uuid})})},e.ontouchstart=f=>{f.preventDefault(),d=Date.now();const h=f.touches[0].clientX,p=f.touches[0].clientY;a=[],a.push({x:h,y:p}),r={x:h,y:p},console.log("ontouchstart",h,p,r),l=vt({x:h,y:p},this.clientWidth,this.clientHeight),c=[]},e.ontouchmove=f=>{if(f.preventDefault(),!r)return;const h=Number(f.touches[0].clientX),p=Number(f.touches[0].clientY);if(Math.abs(h-r.x)<5&&Math.abs(p-r.y)<5||(a.push({x:h,y:p}),c.push(vt({x:h,y:p},this.clientWidth,this.clientHeight)),a.length<3))return;const{control:g,end:A}=bt(a);!g||!A||(u(r,g,A),r=A)},e.ontouchend=e.ontouchcancel=f=>{if(f.preventDefault(),r=null,a.length<3)return;this.data[this.uuid]||(this.data[this.uuid]=[]);const h=Date.now()-d,p={move:Object.assign({},l),line:[...c],uuid:this.uuid,color:this.color,duration:h<1280?h:h<2e3?1280:0};this.data[this.uuid].push(p),yt(()=>{this.emitStateChange({type:De.Drawline,color:this.color,ready:this.ready,state:p,uuid:this.uuid})})}}emitStateChange(e,o=!0){if(e.type!==De.Drawline){this.emit("stateChange",e,o);return}const n=Date.now(),r=e.state;if(!r||!r.line)return;const a=Math.ceil(r.line.length/100);for(let l=0;l<a;l++){const c={uuid:this.uuid,color:this.color,ready:this.ready,type:e.type,state:{uuid:this.uuid,move:r.move,duration:r.duration,color:this.color,line:r.line.slice(l*100,(l+1)*100)},timestamp:n,end:l===a-1};Ar(l,20,()=>{this.emit("stateChange",c,o)})}}action(e){const{ready:o,type:n,uuid:r}=e;if(!o&&this.ready){this.closeBrush();return}if(o&&!this.ready){this.openBrush();return}if(!!this.ready)switch(n){case De.Drawline:const{state:a,timestamp:l,end:c}=e;if(!l||!a)return;this.tempLine[l]=[].concat(this.tempLine[l]||[],a.line),c&&(Object.assign(a,{line:this.tempLine[l]}),this.handleDrawLine(r,a,{},()=>delete this.tempLine[l]));break;case De.Undo:this.handleUndo(r);break}}handleDrawLine(e,o,{withUndo:n=!1},r=Vo){!o||Object.prototype.toString.call(o)!="[object Object]"||Object.keys(o).length===0||(console.log("handleDrawLine",o,o.line),gr(()=>new Promise(a=>{if(n||(this.canvas[e]||(this.canvas[e]=this.initCanvas("_paintBrush-canvas--sync")),this.data[e]||(this.data[e]=[]),this.data[e].push(o)),!this.canvas[e])return;const l=this.canvas[e].getContext("2d");if(!l)return;const{line:c=[],color:d="black",duration:u=0,uuid:f}=o,h=to(o.move||{},this.clientWidth,this.clientHeight);let p=[h];if(l.strokeStyle=d,l.beginPath(),l.moveTo(h.x,h.y),u&&!n){let g=[];const A=this;A.tween=br({step:0},{step:c.length-1},u).onUpdate(({step:b})=>{var C;if(A.tweening=!0,!A.ready)return l.clearRect(0,0,A.canvas[f].width,A.canvas[f].height),(C=A.tween)==null?void 0:C.stop();const v=Math.floor(b);if(!g.find(y=>y===v)){if(g.push(v),console.log("__debug__",c,c[v],v),p.push(to(c[v],A.clientWidth,A.clientHeight)),p.length<3)return;const{control:y,end:E}=bt(p);if(!y||!E)return;l.quadraticCurveTo(y.x,y.y,E.x,E.y),l.stroke()}}).onComplete(b=>{A.tween=void 0,A.tweening=!1,g=[],p=[],r&&r(),a()})}else{for(let g=0;g<c.length;g++){if(p.push(to(c[g],this.clientWidth,this.clientHeight)),p.length<3)continue;const{control:A,end:b}=bt(p);!A||!b||l.quadraticCurveTo(A.x,A.y,b.x,b.y)}l.stroke(),p=[],r&&r(),a()}})))}handleUndo(e){if(console.log("handleUndo",e,this.canvas[e]),!this.canvas[e]||!this.data[e]||this.data[e].length===0)return;this.data[e].pop();const o=()=>{var r;const n=(r=this.canvas[e])==null?void 0:r.getContext("2d");n&&n.clearRect(0,0,this.canvas[e].width,this.canvas[e].height),this.data[e].forEach(a=>this.handleDrawLine(e,a,{withUndo:!0}))};if(this.tween&&this.tweening){this.tween.stop(),yt(o,60);return}o()}destroyBrush(){this.closeBrush(),this.ready=!1,this.emit("readyChange",!0)}}class Ir{constructor(t={}){m(this,"controller");const e=Object.assign({currentColor:"#f44336",onUndoText:"\u56DE\u9000",onExitText:"\u5173\u95ED"},t);this.controller=new Pr(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 Er=(i,t)=>{let e=!0,o=null;const r=B(B({},{lookAtCurrentCamera:!1,lockedPanoIndex:null,lockedLatitude:null,lockedLongitude:null}),t==null?void 0:t.config),a=new I.Scene,l=new J.Camera(60);let c=new I.Object3D,d,u;{const w=new I.DirectionalLight(16777215,.5);w.position.copy(new I.Vector3(1,1,1)),a.add(w)}{const w=new I.DirectionalLight(16777215,.3);a.add(w)}{const w=new I.AmbientLight(16777215,.3);a.add(w)}a.add(c);const f=()=>{if(!!i.renderer)return o||(o=new I.WebGLRenderer({antialias:!1,alpha:!0}),o.setPixelRatio(i.renderer.getPixelRatio()),o.outputEncoding=I.sRGBEncoding,o.setClearColor(1579548,0),o.autoClear=!0),o},h=()=>{c.traverse(w=>{w instanceof I.Mesh&&[].concat(w.material).forEach(x=>x.dispose())}),a.remove(c),c=new I.Object3D,a.add(c),C()},p=()=>{d=b(i.model,l.fov,l.aspect),u=i.model.bounding.getCenter(new I.Vector3);function w(x){const z=x.clone();return z.uniforms.modelAlpha.value=1,z.uniforms.map.value&&(z.uniforms.map.value.needsUpdate=!0),z}function D(x){if(x instanceof I.Mesh){const z=x.geometry,_=Array.isArray(x.material)?x.material.map(w):w(x.material);return new I.Mesh(z,_)}else if(x instanceof I.Group){const z=new I.Group;return x.children.forEach(_=>z.add(D(_))),z}else{const z=new I.Object3D;return x.children.forEach(_=>z.add(D(_))),z}}a.remove(c),c=D(i.model),a.add(c),C()},g=(w,D={})=>{const x=f();if(!x)return;w.appendChild(x.domElement),A(D);const z=window.getComputedStyle(w).position;z!=="relative"&&z!=="absolute"&&z!=="fixed"&&z!=="sticky"&&(w.style.position="relative")},A=(w={})=>{if(!o)return;const x=o.domElement.parentNode;if(x!=null&&x.nodeName){const{width:z=x.offsetWidth,height:_=x.offsetHeight}=w;o.setSize(z,_),l.aspect=z/_,l.updateProjectionMatrix()}C()};function b(w,D,x){const z=w.bounding,_=Math.pow(Math.pow(z.max.x-z.min.x+1,2)+Math.pow(z.max.y-z.min.y+1,2)+Math.pow(z.max.z-z.min.z+1,2),1/2);let j=_/2/Math.tan(Math.PI*D/360);return x<1&&(j=j/x),isNaN(j)?_:j}function v(w){return i.work.observers[w].standingPosition.clone()}const C=()=>{if(!d||!u)return;const w=i.getPose();w.fov=l.fov,w.offset=u,w.distance=d,typeof r.lockedLatitude=="number"&&(w.latitude=r.lockedLatitude),typeof r.lockedLongitude=="number"&&(w.longitude=r.lockedLongitude),typeof r.lockedPanoIndex=="number"&&(w.offset=v(r.lockedPanoIndex)),r.lookAtCurrentCamera&&(w.offset=i.camera.position.clone().setY(i.camera.position.y+1)),l.setFromPose(w),e=!0},y=()=>{e!==!0||!o||!o.domElement.parentNode||o.domElement.parentNode.offsetWidth===0||(o.render(a,l),e=!1)},E=()=>{o&&o.dispose(),o=null},k=w=>{Object.assign(r,w),C()};return Object.assign(window,{camera:l}),i.on("modelLoaded",p),i.on("modelWillLoad",h),i.on("cameraDirectionUpdate",C),i.on("dispose",E),i.on("renderFrame",y),i.on("cameraPositionUpdate",C),{appendTo:g,refresh:A,changeConfigs:k}};function kr(i){return typeof Symbol=="undefined"?`$Symbol<${i}>$`:Symbol(i)}const dt=kr("$$EVENT$$");function Ct(i){return i[dt]||(i[dt]={}),i[dt]}function xr(i){i[dt]||delete i[dt]}class ut{hasListener(t){const e=Ct(this);return Boolean((e==null?void 0:e[t])&&e[t].length>0)}on(t,e,o){const n=Ct(this);return n[t]||(n[t]=[]),n[t].push([e,o||!1]),()=>this.off(t,e)}once(t,e){return this.on(t,e,!0)}off(t,e){if(t===void 0){xr(this);return}const o=Ct(this);if(o[t]||(o[t]=[]),e===void 0){o[t].length=0;return}let n=0;for(;n<o[t].length&&o[t][n][0]!==e;n++);n<o[t].length&&o[t].splice(n,1)}emit(t,...e){let o=!1;const r=Ct(this)[t]||[];for(let a of r.slice()){const[l,c=!1]=a,d=l(...e);c&&this.off(t,l),d===!1&&(o=!0)}return o}}function Ko(...i){const t=new M.Vector3;return i.forEach(e=>{t.add(e)}),t.divideScalar(i.length),t}function Pt(i,t){const e=Math.round(i);return e%2===0?e:e+Number(t!=null&&t.smaller?-1:1)}const Dr=({x:i,y:t,z:e})=>new M.Vector3(i,t,e),Se=([i,t,e])=>new M.Vector3(i,t,e),ht=i=>i instanceof M.Vector3?i:Array.isArray(i)?Se(i):Dr(i),$o="1.0.2",Sr=`CSS3DObjectPlus@${$o}`,Lr=.00216,_r=.003;class es extends Fe.CSS3DObject{constructor(e,o,n=_r,r=1,a="front"){const l=Math.max(Lr,n),c=o[0].distanceTo(o[1]),d=o[1].distanceTo(o[2]),u=Pt(c/n*r),f=Pt(d/n*r),h=Ko(...o);let p;if(l===n)e.style.width=`${u}px`,e.style.height=`${f}px`,p=e;else{const E=document.createElement("div");E.style.width=`${u}px`,E.style.height=`${f}px`,E.style.pointerEvents="none";const k=n/l;e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.width=`${k*u}px`,e.style.height=`${k*f}px`,E.appendChild(e),p=E}super(p);m(this,"version",$o);m(this,"width");m(this,"height");m(this,"domWidthPx");m(this,"domHeightPx");m(this,"cornerPoints");m(this,"ratio");m(this,"container");m(this,"centerPosition");m(this,"mode","front");m(this,"hooks",new ut);m(this,"isCSS3DObjectPlus",!0);if(this.scale.set(l,l,l),this.cornerPoints=o,this.ratio=n,this.container=e,this.mode=a,l===n)this.width=c,this.height=d,this.domWidthPx=u,this.domHeightPx=f,this.centerPosition=h;else{const E=n/l;this.width=E*c,this.height=E*d,this.domWidthPx=E*u,this.domHeightPx=E*f,this.centerPosition=new M.Vector3().subVectors(h,o[0]).multiplyScalar(E).add(o[0])}e.classList.add(`${Sr}__container`);const g=new M.Vector3().subVectors(o[1],o[0]),A=new M.Vector3().subVectors(o[3],o[0]),b=new M.Vector3().crossVectors(g,A).normalize();this.lookAt(b);const v=this.up.clone().applyQuaternion(this.quaternion),C=A.clone(),y=new M.Vector3().crossVectors(v,C).normalize();this.rotateOnWorldAxis(y,v.angleTo(C)),this.position.copy(h)}changeMode(e,o){if(e===this.mode)return;const n=this.mode;this.mode=e,this.hooks.emit("changeMode",e,n,o)}applyScaleMatrix4(e){this.scale.applyMatrix4(e),this.hooks.emit("applyScaleMatrix4",e)}applyMatrix4(e){super.applyMatrix4(e),this.hooks.emit("applyMatrix4",e)}applyQuaternion(e){return super.applyQuaternion(e),this.hooks.emit("applyQuaternion",e),this}}const zr="v2.0.1",ts="CSS3DRenderer",Ne=`${ts}@${zr}`,os=i=>`${Ne}--${i}`,V={};class ss{constructor(){m(this,"hooks",new ut);m(this,"state",{enabled:!0,visible:!0,disposed:!1});m(this,"store",{rendered:!1,disposers:[],frontModeCSS3DObjects:{},behindModeCSS3DObjects:{}});m(this,"create3DElement",(t,e,o)=>{if(this.state.disposed)return this.disposedErrorLog();const n=(()=>{const P={ratio:.00216,devicePixelRatio:1,mode:"front",autoRender:!0,container:document.createElement("div"),pointerEvents:"none"};return Object.assign(P,o)})(),r=e.map(ht);if((r==null?void 0:r.length)<4)return console.error(`${Ne}: requires 4 point but params may have fewer`);const{ratio:a,devicePixelRatio:l,mode:c,autoRender:d,container:u,pointerEvents:f}=n,h=[],{css3DObject:p,opacityMesh:g}=this.createObject(r,{ratio:a,dpr:l,container:u,mode:c,pointerEvents:f});u.id=`container--${p.uuid}`;const A=c==="front"&&!V.frontModeStore,b=c==="behind"&&!V.behindModeStore;c==="front"&&this.initGlobalModeStore("front"),c==="behind"&&this.initGlobalModeStore("behind",n.scene),p.hooks.on("changeMode",(P,S,L)=>{var Y,U,K;if(P===S)return;P==="front"&&this.initGlobalModeStore("front"),P==="behind"&&this.initGlobalModeStore("behind",L);const T=S==="front"?V.frontModeStore:V.behindModeStore,O=P==="front"?V.frontModeStore:V.behindModeStore,N=S==="behind"?this.store.behindModeCSS3DObjects:this.store.frontModeCSS3DObjects,Q=P==="behind"?this.store.behindModeCSS3DObjects:this.store.frontModeCSS3DObjects;if(!N||!Q)return console.error(`${Ne}: changeMode error: prevObjects or nextObjects is undefined`);const H=N[p.uuid];if(!H)return console.error(`${Ne}: changeMode error: prevObject is undefined`);if(P==="behind"){const se=(Y=H.opacityMesh)!=null?Y:this.createOpacityMesh(H.css3DObject);T==null||T.css3DScene.remove(H.css3DObject),Q[p.uuid]={css3DObject:p,opacityMesh:se,visible:!0,enabled:!0,mode:P,scene:L},O==null||O.css3DScene.add(p),L==null||L.add(se)}P==="front"&&(T==null||T.css3DScene.remove(H.css3DObject),(K=(U=N[p.uuid])==null?void 0:U.scene)==null||K.remove(H.opacityMesh),Q[p.uuid]={css3DObject:p,visible:!0,enabled:!0,mode:P},O==null||O.css3DScene.add(p)),P==="behind"&&this.appendToElement(V.behindModeContainer,"behind"),P==="front"&&this.appendToElement(V.frontModeContainer,"front"),this.render(t),console.log("change success")});const v=c==="front"?V.frontModeStore:V.behindModeStore,{css3DScene:C,css3DRenderer:y}=v,E=(()=>{const P=()=>{var L,T;const S=p.mode;if(S==="front")this.store.frontModeCSS3DObjects[p.uuid]={visible:!0,enabled:!0,css3DObject:p,mode:"front"};else{if(!n.scene)return;this.store.behindModeCSS3DObjects[p.uuid]={visible:!0,enabled:!0,css3DObject:p,opacityMesh:g,mode:"behind",scene:n.scene}}C.getObjectById(p.id)||C.add(p),S==="behind"&&g&&((L=n.scene)!=null&&L.getObjectById(g.id)||(T=n.scene)==null||T.add(g),h.push(()=>{var O;return g&&((O=n.scene)==null?void 0:O.remove(g))}))};return A||b?(y.domElement.style.position="absolute",y.domElement.style.top="0",y.domElement.style.userSelect="none",y.domElement.style.pointerEvents="none",y.domElement.classList.add(os(c)),()=>{P(),this.render(t)}):(this.store.rendered=!0,()=>P())})(),k=c==="front"?V.frontModeContainer:V.behindModeContainer;if(k){this.appendToElement(k,c);const P=c==="front"?V.frontModeStore:V.behindModeStore;P&&(P.appendedToPage=!0)}const w=P=>this.setVisibleById(p.uuid,P),D=P=>this.setEnabledById(p.uuid,P),x=()=>w(!0),z=()=>w(!1),_=()=>D(!0),j=()=>D(!1),R=()=>(delete this.store.frontModeCSS3DObjects[p.uuid],delete this.store.behindModeCSS3DObjects[p.uuid],h.forEach(P=>P==null?void 0:P()),C.remove(p),C.children.length===0&&(typeof v.requestAnimationFrameId=="number"&&cancelAnimationFrame(v.requestAnimationFrameId),y.domElement.remove(),c==="front"&&(V.frontModeStore=void 0),c==="behind"&&(V.behindModeStore=void 0),V.frontModeResizeObserver=void 0,V.behindModeResizeObserver=void 0),!0);return this.store.disposers.push(R),d&&E(),{id:p.uuid,container:u,dispose:R,css3DObject:p,render:d?void 0:E,show:x,hide:z,setVisible:w,disable:j,enable:_,setEnabled:D,appendToElement:P=>this.appendToElement(P,c)}});m(this,"setVisibleById",(t,e)=>{var n;const o=(n=this.store.frontModeCSS3DObjects[t])!=null?n:this.store.behindModeCSS3DObjects[t];if(!o)return console.error("id not found",t);o.visible=e,this.state.visible&&(o.css3DObject.visible=e,o.mode==="behind"&&(o.opacityMesh.visible=e))});m(this,"setEnabledById",(t,e)=>{var r,a,l;const o=(r=this.store.frontModeCSS3DObjects[t])!=null?r:this.store.behindModeCSS3DObjects[t];if(!o)return;const n=o.mode==="front"?(a=V.frontModeStore)==null?void 0:a.css3DScene:(l=V.behindModeStore)==null?void 0:l.css3DScene;!n||(e?(n.add(o.css3DObject),o.mode==="behind"&&o.scene.add(o.opacityMesh)):(n.remove(o.css3DObject),o.mode==="behind"&&o.scene.remove(o.opacityMesh)),o.enabled=e)});m(this,"createObject",(t,e)=>{const{ratio:o,dpr:n,container:r,mode:a,pointerEvents:l}=e,c=new es(r,t,o,n,a);r.style.pointerEvents=l,r.classList.add(`${ts}__container`);const d=a==="behind"?this.createOpacityMesh(c):void 0;return{css3DObject:c,opacityMesh:d}});m(this,"createOpacityMesh",t=>{const{domWidthPx:e,domHeightPx:o}=t,n=new I.MeshBasicMaterial({opacity:0,color:0,transparent:!1,side:I.DoubleSide}),r=new I.PlaneGeometry(e,o),a=new I.Mesh(r,n);return a.name=os("mesh"),a.position.copy(t.position),a.rotation.copy(t.rotation),a.scale.copy(t.scale),t.hooks.on("applyMatrix4",l=>a.applyMatrix4(l)),t.hooks.on("applyQuaternion",l=>a.applyQuaternion(l)),t.hooks.on("applyScaleMatrix4",l=>a.scale.applyMatrix4(l)),a});m(this,"createResizeObserver",(t,e,o=!0)=>{if(!t)return console.error("createResizeObserver: element is undefined"),{observe:()=>{},unobserve:()=>{}};const n=()=>{const a=Pt(t.clientWidth,{smaller:!0}),l=Pt(t.clientHeight,{smaller:!0});e(a,l)};if(typeof ResizeObserver=="undefined"||!ResizeObserver)return console.warn("createResizeObserver: ResizeObserver is undefined"),{observe:()=>n(),unobserve:()=>{}};const r=new ResizeObserver(n);return o&&n(),{observe:()=>r.observe(t),unobserve:()=>r.unobserve(t)}});m(this,"disposedErrorLog",()=>{console.error(`${Ne} is disposed`)})}getCurrentState(){return this.state}setState(t,e={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();const o=B({},this.state);this.state=Object.assign(this.state,t),o.visible!==this.state.visible&&(t.visible?this.handleShow():this.handleHide()),o.enabled!==this.state.enabled&&(t.enabled?this.handleEnable():this.handleDisable()),this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:e.userAction})}dispose(){this.store.disposers.forEach(t=>t==null?void 0:t()),this.store.disposers=[],this.hooks.emit("dispose"),this.state.disposed=!0}show(){return G(this,arguments,function*({userAction:t}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({visible:!0},{userAction:t}),this.hooks.emit("show",{userAction:t})})}hide(){return G(this,arguments,function*({userAction:t}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({visible:!1},{userAction:t}),this.hooks.emit("hide",{userAction:t})})}enable({userAction:t}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({enabled:!0},{userAction:t}),this.hooks.emit("enable",{userAction:t})}disable({userAction:t}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({enabled:!1},{userAction:t}),this.hooks.emit("disable",{userAction:t})}setContainer(t,e){e==="front"?V.frontModeContainer=t:V.behindModeContainer=t}appendToElement(t,e){const o=e==="front"?V.frontModeStore:V.behindModeStore;if(!o){if(e==="front"&&!V.frontModeContainer){if(!t)throw new Error(`${Ne} Cannot append to container: front mode but container is ${t}`);V.frontModeContainer=t}if(e==="behind"&&!V.behindModeContainer){if(!t)throw new Error(`${Ne} Cannot append to container: behind mode but container is ${t}`);V.behindModeContainer=t}return}if(o.appendedToPage)return;const n=e==="behind"?V.behindModeContainer:V.frontModeContainer;if(!n)return console.error("wrapper is undefined");if(n.appendChild(o.css3DRenderer.domElement),e==="behind"&&!V.behindModeResizeObserver){const r=(c,d)=>{var u;(u=V.behindModeStore)==null||u.css3DRenderer.setSize(c,d)},{observe:a,unobserve:l}=this.createResizeObserver(n,r,!0);V.behindModeResizeObserver={observe:a,unobserve:l},a(),this.store.disposers.push(l)}if(e==="front"&&!V.frontModeResizeObserver){const r=(c,d)=>{var u;(u=V.frontModeStore)==null||u.css3DRenderer.setSize(c,d)},{observe:a,unobserve:l}=this.createResizeObserver(n,r,!0);V.frontModeResizeObserver={observe:a,unobserve:l},a(),this.store.disposers.push(l)}o.appendedToPage=!0}render(t){const e=V.behindModeStore,o=V.frontModeStore;if(e&&Object.keys(this.store.behindModeCSS3DObjects).length>0&&!e.requestAnimationFrameId){const n=()=>{const r=requestAnimationFrame(n);e.requestAnimationFrameId=r,e.css3DRenderer.render(e.css3DScene,t)};n()}if(o&&Object.keys(this.store.frontModeCSS3DObjects).length>0&&!o.requestAnimationFrameId){const n=()=>{const r=requestAnimationFrame(n);o.requestAnimationFrameId=r,o.css3DRenderer.render(o.css3DScene,t)};n()}Object.keys(this.store.frontModeCSS3DObjects).length===0&&(o==null?void 0:o.requestAnimationFrameId)!==void 0&&(cancelAnimationFrame(o.requestAnimationFrameId),o.requestAnimationFrameId=void 0),Object.keys(this.store.behindModeCSS3DObjects).length===0&&(e==null?void 0:e.requestAnimationFrameId)!==void 0&&(cancelAnimationFrame(e.requestAnimationFrameId),e.requestAnimationFrameId=void 0)}initGlobalModeStore(t,e){const o=t==="front"&&!V.frontModeStore;t==="behind"&&!V.behindModeStore&&(V.behindModeStore={scene:e,css3DScene:new I.Scene,css3DRenderer:new Fe.CSS3DRenderer}),o&&(V.frontModeStore={css3DScene:new I.Scene,css3DRenderer:new Fe.CSS3DRenderer})}handleShow(){return G(this,null,function*(){Object.values(this.store.frontModeCSS3DObjects).forEach(t=>{t.css3DObject.visible=t.visible}),Object.values(this.store.behindModeCSS3DObjects).forEach(t=>{t.css3DObject.visible=t.visible,t.opacityMesh.visible=t.visible})})}handleHide(){return G(this,null,function*(){Object.values(this.store.frontModeCSS3DObjects).forEach(t=>{t.css3DObject.visible=!1}),Object.values(this.store.behindModeCSS3DObjects).forEach(t=>{t.css3DObject.visible=!1,t.opacityMesh.visible=!1})})}handleEnable(){Object.values(this.store.frontModeCSS3DObjects).forEach(t=>{var e;!t.enabled||(e=V.frontModeStore)==null||e.css3DScene.add(t.css3DObject)}),Object.values(this.store.behindModeCSS3DObjects).forEach(t=>{var e,o;!t.enabled||((e=V.behindModeStore)==null||e.css3DScene.add(t.css3DObject),(o=V.behindModeStore)==null||o.scene.add(t.opacityMesh))})}handleDisable(){Object.values(this.store.frontModeCSS3DObjects).forEach(t=>{var e;(e=V.frontModeStore)==null||e.css3DScene.remove(t.css3DObject)}),Object.values(this.store.behindModeCSS3DObjects).forEach(t=>{var e,o;(e=V.behindModeStore)==null||e.css3DScene.remove(t.css3DObject),(o=V.behindModeStore)==null||o.scene.remove(t.opacityMesh)})}}const is="CSS3DRenderPlugin@v2.0.1";class Mr extends ss{constructor(e){super();m(this,"five");m(this,"behindFiveContainer");m(this,"staticPrefix","//vrlab-static.ljcdn.com");m(this,"create3DDomContainer",(e,o)=>{if(this.state.disposed)return;const n=(()=>{var g;(o==null?void 0:o.dpr)!==void 0&&console.warn(`${is}: please use "config.devicePixelRatio" replace "config.dpr"`);const p={ratio:.00216,devicePixelRatio:(g=o==null?void 0:o.dpr)!=null?g:1,mode:"front",autoRender:!0};return Object.assign(p,o,(o==null?void 0:o.mode)==="behind"?{scene:this.five.scene}:void 0)})(),r=this.five.getElement();if(!r){console.error(`${is}: five.getElement() is ${r}`);return}const{autoRender:a,mode:l}=n,c=l==="front"?r.parentElement:n.behindFiveContainer;this.setContainer(c||document.body,"front");const d=this.getBehindFiveElement();d&&this.setContainer(d,"behind"),this.appendToElement(c||document.body,l);const u=this.create3DElement(this.five.camera,e,q(B({},n),{autoRender:!1}));if(!u)return;const f=u.render,h=()=>{var p;l==="front"&&f(),l==="behind"&&((p=this.five.model)!=null&&p.loaded?f():this.five.once("modelLoaded",()=>f()))};return a&&h(),q(B({},u),{render:a?void 0:h})});this.five=e}disposeAll(){return this.dispose()}setState(...e){const o=super.setState(...e);return this.five.needsRender=!0,o}getBehindFiveElement(){var l;const{behindFiveContainer:e}=this;if(e)return e;const o=document.createElement("div");o.style.position="absolute",o.style.pointerEvents="none",o.style.top="0",o.style.left="0",o.style.width="100%",o.style.height="100%",this.behindFiveContainer=o;const n=this.five.getElement();if(!n)return;const r=(l=n==null?void 0:n.style.position)!=null?l:getComputedStyle(n);(!r||r==="static")&&console.warn("if you want to use css3DRenderPlugin behind mode, five element position is static, please set position to relative or absolute");const a=n==null?void 0:n.parentElement;if(a)return a.insertBefore(o,n),o}}const et=i=>new Mr(i);function oo(i,t,e=new M.Vector3(1,1,1),o=!1){const n=new gt.Line(i,t);return n.setMaterial({dashed:o,color:e,linewidth:1}),n.remove(n.points),n}const jr=i=>{const t={intersection:null,disposers:[]},e=u=>{t.intersection=u},o=()=>{t.intersection=null};i.on("modelLoaded",()=>{i.on("intersectionOnModelUpdate",e),i.on("intersectionHidden",o)}),i.on("dispose",()=>{i.off("intersectionOnModelUpdate",e),i.off("intersectionHidden",o)});const n=(u,f=2,h=.1)=>{const p=f/2,A=d(u,h),b=new M.Group;b.add(oo(new M.Vector3(A.x+p,A.y,A.z),new M.Vector3(A.x-p,A.y,A.z),new M.Vector3(1,0,0)),oo(new M.Vector3(A.x,A.y+p,A.z),new M.Vector3(A.x,A.y-p,A.z),new M.Vector3(0,1,0)),oo(new M.Vector3(A.x,A.y,A.z+p),new M.Vector3(A.x,A.y,A.z-p),new M.Vector3(0,0,1))),i.scene.add(b),i.needsRender=!0;const v=()=>{i.scene.remove(b)};return t.disposers.push(v),{clear:v,pointAxesHelperMesh:b}},r=(u,f=0)=>{var v,C;const h=(v=i==null?void 0:i.camera)==null?void 0:v.position;if(!h)return!1;const p=u.distanceTo(h),g=u.sub(h).normalize(),A=new M.Raycaster(h,g),b=(C=i.model.intersectRaycaster(A))==null?void 0:C[0];return!(b&&b.distance+f<p)},a=()=>t.intersection,l=()=>{var u,f;(f=(u=t.disposers)==null?void 0:u.forEach)==null||f.call(u,h=>h==null?void 0:h()),i.off("intersectionOnModelUpdate",e),i.off("intersectionHidden",o)},c=l,d=(u,f)=>{const h=u.clone();return i.camera.position.clone().sub(h).setLength(f).add(h)};return{intersection:a,pointAxesHelper:n,movePointTowardsCamera:d,destroy:l,dispose:c,canSeePoint:r}},Br="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAPAAAAABU0H2EAAARRElEQVR4Ad2czY9cRZbFq1yFoQGDNCzwuAENohl54dkgdrNh34tZ8GciFi31nwEsmAEhhAWD1GMJCZgx5sMfUHN+J+NE3XfrZWWVcVVLHVLmuXG/74148V5m2bm/N8bR0dH+Bx988Po333zzbz///PONg4ODa+I9I9y/cuXKgV77h4eH+1KH3hP/yv7+vuBAsG+5UCIpCkMzDQ962Eu80Q1P/KmHT82v8IocZFL4pslDvL3fNARHoPI2wtbrV1jBIf9N8SEZ0UUP2wFHv2ocSc/2ouEz8PVooJXQ0/j10aNHoH2Idj4PHz4k1n29/k+5/u3ll1/+r7fffvtLzfGzd8ibjK6+9957f5ajf1XzH9y7d+8Xjf9FRs1SdvNBBg2SDQ1xh9ALH4yN0M2BNZrKwtFc9Fmkquuma5HJBzvLiIONBnx40B7QIzTdxCcNwj3dYlEoUmabAU+UFZDpxah22Ng2NjQXH0LrwccGwyEzXfWhWQwSYQHYuFevXj14/vnn37h79+7Nr7766gup/FX5PnAj33///f/46aef3vj444/vfPbZZz9IYGMcnDbkhEYQL001Hfsu775i+7j6LID6cDQWYo8mabGMxOr+e/ye3y7989p3/9jfvHnz2q1bt25oMb549913/3Lwzjvv/Mu3337775988smdzz///AcVQ+IecsAOp8OOHRpkiJniWQnrBJmwc7EF8atxBA2ihx/obf7Qqa+un+aDI0f7k08nU+PLj3PBR+qpcvFdd3BNP7YgI7mnHqHzBRndv1hH33///QNtlAcvvfTSq999992d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0ZqRrGt30C1tk4FnyQYccray31B3s9UQviG104IUGmZ8mH5v+3qF2w51nn332TzHCsI7KJzEVm6akEVuPhLWGhUeM0CAjvkHmxCM+uCYPD2R0f2Ilt7lB4tMGZ3i7qPqfe+65P6j3X1y5du3aZ3rSefrGjRsvkNxpI80AeTGC0NgGoakvuFYrtvDjD11okBF6m3yjdfze9eM7sbPQIC8sg8detlPdP7XCy8ASOh6IC534Qf126Au6Aq7S+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 Tr(i){s.append_styles(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 Qr(i){let t,e,o=i[0].name+"",n,r,a,l,c;return{c(){t=s.element("div"),e=s.element("span"),n=s.text(o),r=s.space(),a=s.element("div"),s.attr(e,"class","room-label-item__text svelte-1d7uzh5"),s.set_style(e,"background-image","url("+Br+")"),s.toggle_class(e,"wide",i[0].name.length>3),s.attr(a,"class","room-label-item__bar svelte-1d7uzh5"),s.attr(t,"class","room-label-item svelte-1d7uzh5"),s.set_style(t,"z-index",i[0].zIndex,!1),s.set_style(t,"transform",i[0].transform,!1),s.set_style(t,"opacity",i[0].visible?1:0,!1)},m(d,u){s.insert(d,t,u),s.append(t,e),s.append(e,n),s.append(t,r),s.append(t,a),l||(c=s.listen(e,"click",i[1]),l=!0)},p(d,[u]){u&1&&o!==(o=d[0].name+"")&&s.set_data(n,o),u&1&&s.toggle_class(e,"wide",d[0].name.length>3),u&1&&s.set_style(t,"z-index",d[0].zIndex,!1),u&1&&s.set_style(t,"transform",d[0].transform,!1),u&1&&s.set_style(t,"opacity",d[0].visible?1:0,!1)},i:s.noop,o:s.noop,d(d){d&&s.detach(t),l=!1,c()}}}function Or(i,t,e){let{five:o}=t,{roomLabel:n}=t;function r(){o.setState({panoIndex:n.panoIndex,mode:"Panorama",longitude:n.longitude})}return i.$$set=a=>{"five"in a&&e(2,o=a.five),"roomLabel"in a&&e(0,n=a.roomLabel)},[n,r,o]}class Rr extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Or,Qr,s.safe_not_equal,{five:2,roomLabel:0},Tr)}}const{Map:Fr}=s.globals;function Hr(i){s.append_styles(i,"svelte-9eg4zi",".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}")}function ns(i,t,e){const o=i.slice();return o[12]=t[e],o}function rs(i,t){let e,o,n;return o=new Rr({props:{roomLabel:t[12],five:t[1]}}),{key:i,first:null,c(){e=s.empty(),s.create_component(o.$$.fragment),this.first=e},m(r,a){s.insert(r,e,a),s.mount_component(o,r,a),n=!0},p(r,a){t=r;const l={};a&1&&(l.roomLabel=t[12]),a&2&&(l.five=t[1]),o.$set(l)},i(r){n||(s.transition_in(o.$$.fragment,r),n=!0)},o(r){s.transition_out(o.$$.fragment,r),n=!1},d(r){r&&s.detach(e),s.destroy_component(o,r)}}}function Gr(i){let t,e=[],o=new Fr,n,r,a=i[0];const l=c=>c[12].id;for(let c=0;c<a.length;c+=1){let d=ns(i,a,c),u=l(d);o.set(u,e[c]=rs(u,d))}return{c(){t=s.element("div");for(let c=0;c<e.length;c+=1)e[c].c();s.attr(t,"class","room-labels-container svelte-9eg4zi"),s.add_render_callback(()=>i[6].call(t))},m(c,d){s.insert(c,t,d);for(let u=0;u<e.length;u+=1)e[u].m(t,null);n=s.add_resize_listener(t,i[6].bind(t)),r=!0},p(c,[d]){d&3&&(a=c[0],s.group_outros(),e=s.update_keyed_each(e,d,l,1,c,a,o,t,s.outro_and_destroy_block,rs,null,ns),s.check_outros())},i(c){if(!r){for(let d=0;d<a.length;d+=1)s.transition_in(e[d]);r=!0}},o(c){for(let d=0;d<e.length;d+=1)s.transition_out(e[d]);r=!1},d(c){c&&s.detach(t);for(let d=0;d<e.length;d+=1)e[d].d();n()}}}function Nr(i,t,e){var A;let o,{five:n}=t,{roomLabels:r}=t,a,l,c=(A=n.model.shownFloor)!=null?A:null;function d(b){if(!(c===null||b.floorIndex===c))return!1;const C=new M.Raycaster,y=n.camera.position.clone(),E=new M.Vector3(b.position.x,b.position.y,b.position.z),k=E.distanceTo(y);C.set(y.clone(),E.clone().sub(y).normalize());const[w]=n.model.intersectRaycaster(C);return!(w&&w.distance+1<k)}function u(b,v){const y=new M.Vector3(b.position.x,b.position.y,b.position.z).clone().project(n.camera),E=Math.ceil((y.x+1)/2*v.x),k=Math.ceil((-y.y+1)/2*v.y);return`translate(${E}px, ${k}px)`}function f(b){const{rendererSize:v,shownFloor:C}=b,y=new Map;function E(w){const D=y.get(w.id);if(D)return D;const{x,y:z,z:_}=w.position,j=new M.Vector3(x,z,_).clone().distanceTo(n.camera.position);return y.set(w.id,j),j}return r.map(w=>{const D=d(w),x=D?u(w,v):w.transform,z=E(w),j=r.filter(R=>R.visible&&E(R)<z).length*10;return q(B({},w),{visible:D,transform:x,zIndex:j})})}function h(){e(0,r=f({rendererSize:o,shownFloor:c}))}function p(b){e(4,c=b)}n.on("cameraUpdate",h),n.on("modelShownFloorChange",p),Z.onDestroy(()=>{n.off("cameraUpdate",h),n.off("modelShownFloorChange",p)});function g(){a=this.clientWidth,l=this.clientHeight,e(2,a),e(3,l)}return i.$$set=b=>{"five"in b&&e(1,n=b.five),"roomLabels"in b&&e(0,r=b.roomLabels)},i.$$.update=()=>{i.$$.dirty&12&&e(5,o={x:a,y:l}),i.$$.dirty&48&&e(0,r=f({rendererSize:o,shownFloor:c}))},[r,n,a,l,c,o,g]}class Wr extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Nr,Gr,s.safe_not_equal,{five:1,roomLabels:0},Hr)}}function Xr(i){return i.model_room_labels.map(({id:t,pano_index:e,floor_index:o,name:n,position:r,longitude:a})=>({id:t,name:n,position:r,longitude:a,panoIndex:e,floorIndex:o,zIndex:0,visible:!1,transform:""}))}class Yr{constructor(t){m(this,"five");m(this,"enabled",!0);m(this,"fiveModeEnabled");m(this,"app");m(this,"wrapper");m(this,"roomLabels",[]);m(this,"container",document.createElement("div"));m(this,"onFiveModeChange",t=>{if(t!=="Floorplan"){this.fiveModeEnabled=!1,this.render();return}this.five.once("initAnimationEnded",()=>{this.fiveModeEnabled=this.five.currentMode==="Floorplan",this.render()})});this.five=t,this.fiveModeEnabled=this.five.currentMode==="Floorplan",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=Xr(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}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 Wr({target:this.container,props:{five:this.five,roomLabels:this.roomLabels}})}}}const Ur=i=>new Yr(i),Vr={name:"ModelRoomLabelPlugin",version:0};var Me=(i=>(i[i.FLOOR=1]="FLOOR",i[i.CEILING=2]="CEILING",i[i.BOUNDING_CENTER=3]="BOUNDING_CENTER",i))(Me||{});function It(i){return G(this,null,function*(){try{return[null,yield i]}catch(t){return t instanceof Error?[t,null]:[new Error(""),null]}})}function Et(i){return Object.prototype.toString.call(i)==="[object Object]"}function kt(i,t){return i===t?!0:typeof i!=typeof t?!1:!!(Number.isNaN(i)&&Number.isNaN(t))}function Jr(i,t){const e=Object.getOwnPropertyNames(i),o=Object.getOwnPropertyNames(t);if(e.length!==o.length)return!1;for(let n=0,r=e.length;n<r;n++){const a=e[n];if(!kt(i[a],t[a]))return!1}return!0}function Zr(i,t){if(i.length!==t.length)return!1;for(let e=0,o=i.length;e<o;e++)if(!kt(i[e],t[e]))return!1;return!0}function qr(i,t){return kt(i,t)?!0:Et(i)&&Et(t)?Jr(i,t):Array.isArray(i)&&Array.isArray(t)?Zr(i,t):!1}function so(i,t){return kt(i,t)?!0:Et(i)&&Et(t)?$r(i,t):Array.isArray(i)&&Array.isArray(t)?Kr(i,t):!1}function Kr(i,t){if(i.length!==t.length)return!1;for(let e=0,o=i.length;e<o;e++)if(!so(i[e],t[e]))return!1;return!0}function $r(i,t){const e=Object.getOwnPropertyNames(i),o=Object.getOwnProperty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fomHl6J+KFy88uA2RJyJPE4wkL4wIPBfgXxO5HxGN7zNw5W2bNnLZhio+OmaR3LD6tplrLfKeYAwX7/O6Dje/2dpniwuKiwoMHH+bn7723Z8/uHTu2fpg9+3p29sYrWVnr1l1cO2HCUFCGT+tshUcWLPj6IDf37ued27Z9unXz2owZU6dOnnxp4sQ1q1ePH79KN6vbQWc1SrfrTit6lO5NO6/F8yZNmofBfgNTwRQLsPLsHQAAAABJRU5ErkJggg==";function ea(i){return i*180/Math.PI}function ta(i){s.append_styles(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 oa(i){let t,e;return{c(){t=s.element("div"),e=s.element("div"),s.attr(e,"class","floorplan__camera-rotate svelte-17cl35n"),s.set_style(e,"background-image",`url(${i[0]||je})`),s.set_style(e,"width",i[4],!1),s.set_style(e,"height",i[4],!1),s.set_style(e,"left","-"+i[4],!1),s.set_style(e,"top","-"+i[4],!1),s.set_style(e,"transform",`rotate(${i[3]}deg)`,!1),s.set_style(e,"transform-origin",`${i[4]} ${i[4]}`,!1),s.attr(t,"class","floorplan__camera-position svelte-17cl35n"),s.set_style(t,"left",i[1],!1),s.set_style(t,"top",i[2],!1)},m(o,n){s.insert(o,t,n),s.append(t,e)},p(o,[n]){n&1&&s.set_style(e,"background-image",`url(${o[0]||je})`)},i:s.noop,o:s.noop,d(o){o&&s.detach(t)}}}function sa(i,t,e){let{panoIndex:o}=t,{floorplanData:n}=t,{lastPanoramaLongitude:r}=t,{cameraImageUrl:a}=t;const{observers:l}=n,c=l[o],d=c.positionInImage.x,u=c.positionInImage.y,f=d*100+"%",h=u*100+"%",p=-ea(r)+45,g=document.body.clientWidth,A=document.body.clientHeight,v=`${(g<500||A<500?17:37)/16}rem`;return i.$$set=C=>{"panoIndex"in C&&e(5,o=C.panoIndex),"floorplanData"in C&&e(6,n=C.floorplanData),"lastPanoramaLongitude"in C&&e(7,r=C.lastPanoramaLongitude),"cameraImageUrl"in C&&e(0,a=C.cameraImageUrl)},[a,f,h,p,v,o,n,r]}class ia extends s.SvelteComponent{constructor(t){super(),s.init(this,t,sa,oa,s.safe_not_equal,{panoIndex:5,floorplanData:6,lastPanoramaLongitude:7,cameraImageUrl:0},ta)}}const na="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/w9P/D0f+uwf/Z4v/F0v/09//D0v/v8//s8v/d5P/Y4f/s8P+etv/X4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Iwy7aPA/r5jbFGW3m7S12ku55WPN7Li1PPIRhN6sjtBjTmm+KmYcwPEOKs9tHF1JDHCoHLZ5DQ8yPBic9DoHjAKvsb85qjbFxHOCprMZaf5qdhlorxwGeTsPIttvPlno0y3GAZfbHp6n3ynGAV0m99u/2J6H3znGAvW4n+J25tdY7xwFey1pvQe6/DlrjOMDLqfXW7N5pbs0YWhxgtpj0rl1uiaHFISzccSWohUCzOIemm0VKChwHOMutKCVwHOA4av/JVi0xtDiRpCRfRcvQ4lBfxSnG0OJc/+xTjKHFyVRMP38iDC0O92lZVRhanO+vcVWGFu9BRWkW7+Z3rapEizdy7ZVm8V5Gtr8AtSnix59eOmYAAAAASUVORK5CYII=";function ra(i){s.append_styles(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 aa(i){let t,e,o,n,r;return{c(){t=s.element("div"),e=s.element("div"),o=s.space(),n=s.element("span"),r=s.text(i[0]),s.attr(e,"class","floorplan-plugin__compass-image svelte-rpkaro"),s.set_style(e,"background-image",`url(${na})`),s.attr(n,"class","floorplan-plugin__compass-text svelte-rpkaro"),s.attr(t,"class","floorplan-plugin__compass svelte-rpkaro"),s.set_style(t,"transform",i[2],!1)},m(a,l){s.insert(a,t,l),s.append(t,e),s.append(t,o),s.append(t,n),s.append(n,r)},p(a,l){l&1&&s.set_data(r,a[0])},d(a){a&&s.detach(t)}}}function la(i){let t,e=i[1]&&aa(i);return{c(){e&&e.c(),t=s.empty()},m(o,n){e&&e.m(o,n),s.insert(o,t,n)},p(o,[n]){o[1]&&e.p(o,n)},i:s.noop,o:s.noop,d(o){e&&e.d(o),o&&s.detach(t)}}}function ca(i){return i/Math.PI*180}function da(i,t,e){var d;let{floorplanData:o}=t,{northDesc:n}=t;const r=(d=o.entrance)==null?void 0:d.northRad,a=typeof r=="number",c=`translateX(-50%) translateZ(10px) rotate(${-(r?ca(r):0)+90}deg)`;return i.$$set=u=>{"floorplanData"in u&&e(3,o=u.floorplanData),"northDesc"in u&&e(0,n=u.northDesc)},[n,a,c,o]}class ua extends s.SvelteComponent{constructor(t){super(),s.init(this,t,da,la,s.safe_not_equal,{floorplanData:3,northDesc:0},ra)}}function ha(i){s.append_styles(i,"svelte-1gfoniz","img.svelte-1gfoniz{width:100%;height:100%}")}function fa(i){let t,e;return{c(){t=s.element("img"),s.src_url_equal(t.src,e=i[0])||s.attr(t,"src",e),s.attr(t,"alt","floorplan iamge"),s.attr(t,"class","svelte-1gfoniz")},m(o,n){s.insert(o,t,n)},p(o,[n]){n&1&&!s.src_url_equal(t.src,e=o[0])&&s.attr(t,"src",e)},i:s.noop,o:s.noop,d(o){o&&s.detach(t)}}}function ma(i,t,e){let{url:o}=t;return i.$$set=n=>{"url"in n&&e(0,o=n.url)},[o]}class pa extends s.SvelteComponent{constructor(t){super(),s.init(this,t,ma,fa,s.safe_not_equal,{url:0},ha)}}function ga(i){s.append_styles(i,"svelte-ub47ya",".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}")}function Aa(i){let t,e,o,n;return{c(){t=s.element("div"),e=new s.HtmlTag(!1),o=s.space(),n=new s.HtmlTag(!1),e.a=o,n.a=null,s.attr(t,"class","floorplan-plugin__base-image svelte-ub47ya")},m(r,a){s.insert(r,t,a),e.m(i[1],t),s.append(t,o),n.m(i[0],t)},p(r,[a]){a&1&&n.p(r[0])},i:s.noop,o:s.noop,d(r){r&&s.detach(t)}}}function va(i,t,e){let{content:o}=t;const n=`
102
102
  <style>
103
103
  svg [type='lineGroup'] path {
104
104
  fill: #ffffff;
@@ -107,7 +107,7 @@ transition: all 500ms;
107
107
  svg [type='lineItemGroup'] g g g g {
108
108
  stroke: #ffffff;
109
109
  }</style>
110
- `;return i.$$set=r=>{"content"in r&&e(0,o=r.content)},[o,n]}class ba extends s.SvelteComponent{constructor(t){super(),s.init(this,t,va,Aa,s.safe_not_equal,{content:0},ga)}}function ya(i){s.append_styles(i,"svelte-ozpg4a",".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}")}function wa(i){let t,e;return t=new pa({props:{url:i[1].url}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.url=o[1].url),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Ca(i){let t,e;return t=new ba({props:{content:i[0]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.content=o[0]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Pa(i){let t,e,o,n;const r=[Ca,wa],a=[];function l(c,d){return c[0]?0:c[1]?1:-1}return~(e=l(i))&&(o=a[e]=r[e](i)),{c(){t=s.element("div"),o&&o.c(),s.attr(t,"class","floorplan-plugin__base-image svelte-ozpg4a")},m(c,d){s.insert(c,t,d),~e&&a[e].m(t,null),n=!0},p(c,[d]){let u=e;e=l(c),e===u?~e&&a[e].p(c,d):(o&&(s.group_outros(),s.transition_out(a[u],1,1,()=>{a[u]=null}),s.check_outros()),~e?(o=a[e],o?o.p(c,d):(o=a[e]=r[e](c),o.c()),s.transition_in(o,1),o.m(t,null)):o=null)},i(c){n||(s.transition_in(o),n=!0)},o(c){s.transition_out(o),n=!1},d(c){c&&s.detach(t),~e&&a[e].d()}}}function Ia(i,t,e){let o,n,{floorIndex:r}=t,{floorplanData:a}=t;return i.$$set=l=>{"floorIndex"in l&&e(2,r=l.floorIndex),"floorplanData"in l&&e(3,a=l.floorplanData)},i.$$.update=()=>{var l,c;i.$$.dirty&12&&e(1,o=a.outlines[r]),i.$$.dirty&12&&e(0,n=(c=(l=a.outlines)==null?void 0:l[r])==null?void 0:c.svgContent)},[n,o,r,a]}class as extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Ia,Pa,s.safe_not_equal,{floorIndex:2,floorplanData:3},ya)}}function Ea(i){s.append_styles(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 ka(i){let t,e=i[4].outerHTML+"",o;return{c(){t=new s.HtmlTag(!1),o=s.empty(),t.a=o},m(n,r){t.m(e,n,r),s.insert(n,o,r)},p(n,r){r&16&&e!==(e=n[4].outerHTML+"")&&t.p(e)},d(n){n&&s.detach(o),n&&t.d()}}}function xa(i){let t,e=i[0].name+"",o,n,r,a;return{c(){t=s.element("span"),o=s.text(e),n=s.space(),r=s.element("span"),a=s.text(i[5]),s.attr(t,"class","floorplan-plugin__room-name"),s.attr(r,"class","floorplan-plugin__room-size svelte-12pzct5")},m(l,c){s.insert(l,t,c),s.append(t,o),s.insert(l,n,c),s.insert(l,r,c),s.append(r,a)},p(l,c){c&1&&e!==(e=l[0].name+"")&&s.set_data(o,e),c&32&&s.set_data(a,l[5])},d(l){l&&s.detach(t),l&&s.detach(n),l&&s.detach(r)}}}function Da(i){let t;function e(r,a){if(r[1]===void 0)return xa;if(r[4])return ka}let o=e(i),n=o&&o(i);return{c(){t=s.element("div"),n&&n.c(),s.attr(t,"class","floorplan-plugin__room-label-item svelte-12pzct5"),s.set_style(t,"left",i[6],!1),s.set_style(t,"top",i[7],!1),s.set_style(t,"font-size",i[8],!1),s.set_style(t,"opacity",i[3]?"1":"0",!1)},m(r,a){s.insert(r,t,a),n&&n.m(t,null),i[16](t)},p(r,[a]){o===(o=e(r))&&n?n.p(r,a):(n&&n.d(1),n=o&&o(r),n&&(n.c(),n.m(t,null))),a&8&&s.set_style(t,"opacity",r[3]?"1":"0",!1)},i:s.noop,o:s.noop,d(r){r&&s.detach(t),n&&n.d(),i[16](null)}}}function Sa(i,t){const e=i[0],o=i[1];let n=!1;for(let r=0,a=t.length-1;r<t.length;a=r++){const l=t[r][0],c=t[r][1],d=t[a][0],u=t[a][1];c>o!=u>o&&e<(d-l)*(o-c)/(u-c)+l&&(n=!n)}return n}function La(i,t,e){let o,n,r,a,{pxmm:l}=t,{room:c}=t,{hoveredRoom:d}=t,{getRoomAreaText:u}=t,{getLabelElement:f}=t,{adaptiveRoomLabelVisibleEnable:h}=t;function p(x,z){if(z.width===0||z.height===0)return()=>!1;const L=x.path.map(({x:N,y:Q})=>[N,Q]),j=x.roomLabel.position,{x:O,y:P}=j,{width:S,height:_}=z,T=S/2,R=_/2;return function(Q){const H=O*Q,Y=P*Q,U=L.map(([se,ae])=>[se*Q,ae*Q]);return[[H+T,Y-R],[H-T,Y-R],[H-T,Y+R],[H+T,Y+R]].every(se=>Sa(se,U))}}const g=document.body.clientWidth,A=document.body.clientHeight,b=c.roomLabel,v=b.positionInImage.x*100+"%",w=b.positionInImage.y*100+"%",y=(g<500||A<500?10:14)/16+"rem";let E=!1,k,C;d.subscribe(function(z){e(13,E=!!z&&z.id===c.id)}),Z.onMount(()=>{const x=k==null?void 0:k.getClientRects()[0];e(14,C={width:x.width,height:x.height})});function D(x){s.binding_callbacks[x?"unshift":"push"](()=>{k=x,e(2,k)})}return i.$$set=x=>{"pxmm"in x&&e(9,l=x.pxmm),"room"in x&&e(0,c=x.room),"hoveredRoom"in x&&e(10,d=x.hoveredRoom),"getRoomAreaText"in x&&e(11,u=x.getRoomAreaText),"getLabelElement"in x&&e(1,f=x.getLabelElement),"adaptiveRoomLabelVisibleEnable"in x&&e(12,h=x.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{i.$$.dirty&2049&&e(5,o=c.size?u(c.size):""),i.$$.dirty&16385&&e(15,n=C?p(c,C):void 0),i.$$.dirty&3&&e(4,r=f==null?void 0:f(c)),i.$$.dirty&45568&&e(3,a=h?E?!0:!!(n!=null&&n(l)):!0)},[c,f,k,a,r,o,v,w,y,l,d,u,h,E,C,n,D]}class _a extends s.SvelteComponent{constructor(t){super(),s.init(this,t,La,Da,s.safe_not_equal,{pxmm:9,room:0,hoveredRoom:10,getRoomAreaText:11,getLabelElement:1,adaptiveRoomLabelVisibleEnable:12},Ea)}}function za(i){s.append_styles(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 ls(i,t,e){const o=i.slice();return o[10]=t[e],o}function cs(i){let t,e=[],o=new Map,n,r,a=i[6];const l=c=>c[10].id;for(let c=0;c<a.length;c+=1){let d=ls(i,a,c),u=l(d);o.set(u,e[c]=ds(u,d))}return{c(){t=s.element("div");for(let c=0;c<e.length;c+=1)e[c].c();s.attr(t,"class","floorplan-plugin__room-labels svelte-13xux0b"),s.add_render_callback(()=>i[9].call(t))},m(c,d){s.insert(c,t,d);for(let u=0;u<e.length;u+=1)e[u].m(t,null);n=s.add_resize_listener(t,i[9].bind(t)),r=!0},p(c,d){d&111&&(a=c[6],s.group_outros(),e=s.update_keyed_each(e,d,l,1,c,a,o,t,s.outro_and_destroy_block,ds,null,ls),s.check_outros())},i(c){if(!r){for(let d=0;d<a.length;d+=1)s.transition_in(e[d]);r=!0}},o(c){for(let d=0;d<e.length;d+=1)s.transition_out(e[d]);r=!1},d(c){c&&s.detach(t);for(let d=0;d<e.length;d+=1)e[d].d();n()}}}function ds(i,t){let e,o,n;const r=[{pxmm:t[5],room:t[10],getLabelElement:t[2],getRoomAreaText:t[1],hoveredRoom:t[0],adaptiveRoomLabelVisibleEnable:t[3]}];let a={};for(let l=0;l<r.length;l+=1)a=s.assign(a,r[l]);return o=new _a({props:a}),{key:i,first:null,c(){e=s.empty(),s.create_component(o.$$.fragment),this.first=e},m(l,c){s.insert(l,e,c),s.mount_component(o,l,c),n=!0},p(l,c){t=l;const d=c&111?s.get_spread_update(r,[{pxmm:t[5],room:t[10],getLabelElement:t[2],getRoomAreaText:t[1],hoveredRoom:t[0],adaptiveRoomLabelVisibleEnable:t[3]}]):{};o.$set(d)},i(l){n||(s.transition_in(o.$$.fragment,l),n=!0)},o(l){s.transition_out(o.$$.fragment,l),n=!1},d(l){l&&s.detach(e),s.destroy_component(o,l)}}}function Ma(i){let t,e,o=i[6]&&cs(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[6]?o?(o.p(n,r),r&64&&s.transition_in(o,1)):(o=cs(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function ja(i,t,e){let o,{floorIndex:n}=t,{floorplanData:r}=t,{hoveredRoom:a}=t,{getRoomAreaText:l}=t,{getLabelElement:c}=t,{adaptiveRoomLabelVisibleEnable:d}=t,u=0,f=0;function h(){u=this.clientWidth,e(4,u)}return i.$$set=p=>{"floorIndex"in p&&e(7,n=p.floorIndex),"floorplanData"in p&&e(8,r=p.floorplanData),"hoveredRoom"in p&&e(0,a=p.hoveredRoom),"getRoomAreaText"in p&&e(1,l=p.getRoomAreaText),"getLabelElement"in p&&e(2,c=p.getLabelElement),"adaptiveRoomLabelVisibleEnable"in p&&e(3,d=p.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{if(i.$$.dirty&384&&e(6,o=r.floorDatas[n].rooms),i.$$.dirty&272){const{max:p,min:g}=r.bounding,A=p.x-g.x;e(5,f=u/A)}},[a,l,c,d,u,f,o,n,r,h]}class Ba extends s.SvelteComponent{constructor(t){super(),s.init(this,t,ja,Ma,s.safe_not_equal,{floorIndex:7,floorplanData:8,hoveredRoom:0,getRoomAreaText:1,getLabelElement:2,adaptiveRoomLabelVisibleEnable:3},za)}}function Ta(i){s.append_styles(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 us(i,t,e){const o=i.slice();return o[11]=t[e],o[13]=e,o}function hs(i,t,e){const o=i.slice();return o[14]=t[e],o}function fs(i){let t;return{c(){t=s.element("div"),s.attr(t,"class","floorplan-plugin__rule-scale svelte-djlmk4"),s.set_style(t,"left",i[14].left*100+"%",!1),s.set_style(t,"bottom",i[14].bottom*100+"%",!1)},m(e,o){s.insert(e,t,o)},p:s.noop,d(e){e&&s.detach(t)}}}function ms(i,t){let e,o,n=t[1](t[11].distance)+"",r,a;return{key:i,first:null,c(){e=s.element("div"),o=s.element("div"),r=s.text(n),a=s.space(),s.attr(o,"class","floorplan-plugin__rule-text svelte-djlmk4"),s.toggle_class(o,"is-row",t[2]),s.attr(e,"class","floorplan-plugin__rule-text-item svelte-djlmk4"),s.set_style(e,"left",t[11].left*100+"%",!1),s.set_style(e,"bottom",t[11].bottom*100+"%",!1),this.first=e},m(l,c){s.insert(l,e,c),s.append(e,o),s.append(o,r),s.append(e,a)},p(l,c){t=l,c&2&&n!==(n=t[1](t[11].distance)+"")&&s.set_data(r,n)},d(l){l&&s.detach(e)}}}function Qa(i){let t,e,o,n,r,a,l=[],c=new Map,d,u=i[3],f=[];for(let g=0;g<u.length;g+=1)f[g]=fs(hs(i,u,g));let h=i[4];const p=g=>g[13];for(let g=0;g<h.length;g+=1){let A=us(i,h,g),b=p(A);c.set(b,l[g]=ms(b,A))}return{c(){t=s.element("div"),e=s.element("div"),o=s.space(),n=s.element("div");for(let g=0;g<f.length;g+=1)f[g].c();r=s.space(),a=s.element("div");for(let g=0;g<l.length;g+=1)l[g].c();s.attr(e,"class","floorplan-plugin__rule-line svelte-djlmk4"),s.attr(n,"class","floorplan-plugin__rule-scale-wrapper svelte-djlmk4"),s.toggle_class(n,"is-row",i[2]),s.attr(a,"class","floorplan-plugin__rule-text-wrapper svelte-djlmk4"),s.attr(t,"class",d="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+i[0]+" svelte-djlmk4"),s.toggle_class(t,"is-row",i[2]),s.set_style(t,"width",i[2]?"100%":1/16+"rem",!1),s.set_style(t,"height",i[2]?1/16+"rem":"100%",!1)},m(g,A){s.insert(g,t,A),s.append(t,e),s.append(t,o),s.append(t,n);for(let b=0;b<f.length;b+=1)f[b].m(n,null);s.append(t,r),s.append(t,a);for(let b=0;b<l.length;b+=1)l[b].m(a,null)},p(g,[A]){if(A&8){u=g[3];let b;for(b=0;b<u.length;b+=1){const v=hs(g,u,b);f[b]?f[b].p(v,A):(f[b]=fs(v),f[b].c(),f[b].m(n,null))}for(;b<f.length;b+=1)f[b].d(1);f.length=u.length}A&22&&(h=g[4],l=s.update_keyed_each(l,A,p,1,g,h,c,a,s.destroy_block,ms,null,us)),A&1&&d!==(d="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+g[0]+" svelte-djlmk4")&&s.attr(t,"class",d),A&5&&s.toggle_class(t,"is-row",g[2])},i:s.noop,o:s.noop,d(g){g&&s.detach(t),s.destroy_each(f,g);for(let A=0;A<l.length;A+=1)l[A].d()}}}const tt=1e3,ot=180;function Oa(i,t,e){let{type:o}=t,{data:n}=t,{bounding:r}=t,{getRuleDistanceText:a}=t;const l=o==="top"||o==="bottom",c=r.max.x-r.min.x-(tt-ot)*2,d=r.max.y-r.min.y-(tt-ot)*2,u=n.map(([g,A])=>l?[g.x,A.x]:[g.y,A.y]).flat().sort().filter((g,A,b)=>A===0?!0:g!==b[A-1]),f=u.map(g=>{const A=l?(g-r.min.x-tt+ot)/c:0,b=l?0:(g-r.min.y-tt+ot)/d;return{left:A,bottom:b}});f.unshift({left:0,bottom:0}),f.push(l?{left:1,bottom:0}:{left:0,bottom:1});const h=u[u.length-1]-u[0],p=u.map((g,A,b)=>{const v=A===0?0:g-b[A-1],w=A===0?0:(g+b[A-1])/2,y=l?(w-r.min.x-tt+ot)/c:0,E=l?0:(w-r.min.y-tt+ot)/d;return{left:y,bottom:E,distance:v}}).filter(({distance:g})=>g/h>.1);return i.$$set=g=>{"type"in g&&e(0,o=g.type),"data"in g&&e(5,n=g.data),"bounding"in g&&e(6,r=g.bounding),"getRuleDistanceText"in g&&e(1,a=g.getRuleDistanceText)},[o,a,l,f,p,n,r]}class Ra extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Oa,Qa,s.safe_not_equal,{type:0,data:5,bounding:6,getRuleDistanceText:1},Ta)}}function Fa(i){s.append_styles(i,"svelte-1mzj9p3",".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}")}function ps(i,t,e){const o=i.slice();return o[13]=t[e][0],o[14]=t[e][1],o}function gs(i,t){let e,o,n;const r=[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}];let a={};for(let l=0;l<r.length;l+=1)a=s.assign(a,r[l]);return o=new Ra({props:a}),{key:i,first:null,c(){e=s.empty(),s.create_component(o.$$.fragment),this.first=e},m(l,c){s.insert(l,e,c),s.mount_component(o,l,c),n=!0},p(l,c){t=l;const d=c&19?s.get_spread_update(r,[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}]):{};o.$set(d)},i(l){n||(s.transition_in(o.$$.fragment,l),n=!0)},o(l){s.transition_out(o.$$.fragment,l),n=!1},d(l){l&&s.detach(e),s.destroy_component(o,l)}}}function Ha(i){let t,e=[],o=new Map,n,r=i[4];const a=l=>l[13];for(let l=0;l<r.length;l+=1){let c=ps(i,r,l),d=a(c);o.set(d,e[l]=gs(d,c))}return{c(){t=s.element("div");for(let l=0;l<e.length;l+=1)e[l].c();s.attr(t,"class","floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"),s.set_style(t,"width",i[3],!1),s.set_style(t,"height",i[2],!1)},m(l,c){s.insert(l,t,c);for(let d=0;d<e.length;d+=1)e[d].m(t,null);n=!0},p(l,[c]){c&19&&(r=l[4],s.group_outros(),e=s.update_keyed_each(e,c,a,1,l,r,o,t,s.outro_and_destroy_block,gs,null,ps),s.check_outros()),c&8&&s.set_style(t,"width",l[3],!1),c&4&&s.set_style(t,"height",l[2],!1)},i(l){if(!n){for(let c=0;c<r.length;c+=1)s.transition_in(e[c]);n=!0}},o(l){for(let c=0;c<e.length;c+=1)s.transition_out(e[c]);n=!1},d(l){l&&s.detach(t);for(let c=0;c<e.length;c+=1)e[c].d()}}}const As=1e3,vs=180;function Ga(i,t,e){let o,n,r,a,l,c,d,u,f,h,{floorIndex:p}=t,{floorplanData:g}=t,{getRuleDistanceText:A}=t;return i.$$set=b=>{"floorIndex"in b&&e(5,p=b.floorIndex),"floorplanData"in b&&e(6,g=b.floorplanData),"getRuleDistanceText"in b&&e(0,A=b.getRuleDistanceText)},i.$$.update=()=>{i.$$.dirty&64&&e(1,o=g.bounding),i.$$.dirty&96&&e(11,n=g.floorDatas[p].rules),i.$$.dirty&2048&&e(12,r=Object.keys(n)),i.$$.dirty&6144&&e(4,a=r.map(b=>[b,n[b]])),i.$$.dirty&2&&e(9,l=o.max.x-o.min.x),i.$$.dirty&2&&e(7,c=o.max.y-o.min.y),i.$$.dirty&2&&e(10,d=o.max.x-o.min.x-(As-vs)*2),i.$$.dirty&2&&e(8,u=o.max.y-o.min.y-(As-vs)*2),i.$$.dirty&1536&&e(3,f=d/l*100+"%"),i.$$.dirty&384&&e(2,h=u/c*100+"%")},[A,o,h,f,a,p,g,c,u,l,d,n,r]}class Na extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Ga,Ha,s.safe_not_equal,{floorIndex:5,floorplanData:6,getRuleDistanceText:0},Fa)}}function xt(i,t={}){let e="";const{needZ:o,needA:n}=t;return(o?i.slice().concat(i[0]):i.slice()).forEach((a,l)=>{const{x:c,y:d}=t.format?t.format(a):a,u=c+","+d;return l===0?(e+="M"+u,e):n!=null&&n[l]?(e+="A"+n[l]+","+u,e):(e+="L"+u,e)}),e+(o?"Z":"")}function bs({x:i,y:t},e){const{max:o,min:n}=e;return{x:i-n.x,y:o.y-t}}function Wa(i,t){const e=i.x*1e3+t.bounding.origin.x,o=-i.z*1e3+t.bounding.origin.y;return{x:e,y:o}}function Xa(i,t){const e=t.bounding,o=e.max.x-e.min.x,n=e.max.y-e.min.y;return{x:(i.x-e.min.x)/o,y:(e.max.y-i.y)/n}}function Ya(i,t){return Math.max(...t.work.observers.map(o=>i.z>=o.standingPosition.z?o.floorIndex:0))}function Ua(i){let t;return{c(){t=s.svg_element("path"),s.attr(t,"d",i[0]),s.attr(t,"fill","#2F313A")},m(e,o){s.insert(e,t,o)},p(e,[o]){o&1&&s.attr(t,"d",e[0])},i:s.noop,o:s.noop,d(e){e&&s.detach(t)}}}function Va(i,t,e){let o,{path:n}=t;return i.$$set=r=>{"path"in r&&e(1,n=r.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,o=xt(n,{needZ:!0}))},[o,n]}class Ja extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Va,Ua,s.safe_not_equal,{path:1})}}function Za(i){let t,e,o,n,r,a;return{c(){t=s.svg_element("defs"),e=s.svg_element("pattern"),o=s.svg_element("rect"),n=s.svg_element("path"),r=s.space(),a=s.svg_element("path"),s.attr(o,"x","0"),s.attr(o,"y","0"),s.attr(o,"width",i[1]),s.attr(o,"height",i[1]),s.attr(o,"fill","#323747"),s.attr(n,"d",i[2]),s.attr(n,"stroke","#ffffff"),s.attr(n,"stroke-opacity","0.06"),s.attr(n,"stroke-width","0.5"),s.attr(n,"fill","none"),s.attr(e,"id","fpm-room-pattern-0"),s.attr(e,"x","0"),s.attr(e,"y","0"),s.attr(e,"width",i[1]),s.attr(e,"height",i[1]),s.attr(e,"patternUnits","userSpaceOnUse"),s.attr(e,"patternTransform","scale(50 50)"),s.attr(a,"d",i[0]),s.attr(a,"fill","url(#fpm-room-pattern-0)")},m(l,c){s.insert(l,t,c),s.append(t,e),s.append(e,o),s.append(e,n),s.insert(l,r,c),s.insert(l,a,c)},p(l,[c]){c&1&&s.attr(a,"d",l[0])},i:s.noop,o:s.noop,d(l){l&&s.detach(t),l&&s.detach(r),l&&s.detach(a)}}}const io=6;function qa(i,t,e){let o,{path:n}=t;const r=io*2,a=`M0 ${io} h ${r} M${io} 0 v ${r}`;return i.$$set=l=>{"path"in l&&e(3,n=l.path)},i.$$.update=()=>{i.$$.dirty&8&&e(0,o=xt(n,{needZ:!0}))},[o,r,a,n]}class Ka extends s.SvelteComponent{constructor(t){super(),s.init(this,t,qa,Za,s.safe_not_equal,{path:3})}}function $a(i){let t,e,o,n,r,a,l,c,d,u,f;return{c(){t=s.svg_element("defs"),e=s.svg_element("pattern"),o=s.svg_element("rect"),n=s.svg_element("pattern"),r=s.svg_element("rect"),a=s.space(),l=s.svg_element("path"),c=s.space(),d=s.svg_element("path"),u=s.space(),f=s.svg_element("path"),s.attr(o,"x","0"),s.attr(o,"y","0"),s.attr(o,"width","6"),s.attr(o,"height","50"),s.attr(o,"fill","none"),s.attr(o,"stroke","#4B4B57"),s.attr(o,"stroke-width","0.5"),s.attr(e,"id","room-material-pattern-1"),s.attr(e,"x","0"),s.attr(e,"y","0"),s.attr(e,"width","12"),s.attr(e,"height","50"),s.attr(e,"patternUnits","userSpaceOnUse"),s.attr(e,"patternTransform","scale(50 50)"),s.attr(r,"x","0"),s.attr(r,"y","0"),s.attr(r,"width","6"),s.attr(r,"height","50"),s.attr(r,"fill","none"),s.attr(r,"stroke","#4B4B57"),s.attr(r,"stroke-width","0.5"),s.attr(n,"id","room-material-pattern-2"),s.attr(n,"x","6"),s.attr(n,"y","25"),s.attr(n,"width","12"),s.attr(n,"height","50"),s.attr(n,"patternUnits","userSpaceOnUse"),s.attr(n,"patternTransform","scale(50 50)"),s.attr(l,"d",i[0]),s.attr(l,"fill","#43434D"),s.attr(d,"d",i[0]),s.attr(d,"fill","url(#room-material-pattern-1)"),s.attr(f,"d",i[0]),s.attr(f,"fill","url(#room-material-pattern-2)")},m(h,p){s.insert(h,t,p),s.append(t,e),s.append(e,o),s.append(t,n),s.append(n,r),s.insert(h,a,p),s.insert(h,l,p),s.insert(h,c,p),s.insert(h,d,p),s.insert(h,u,p),s.insert(h,f,p)},p(h,[p]){p&1&&s.attr(l,"d",h[0]),p&1&&s.attr(d,"d",h[0]),p&1&&s.attr(f,"d",h[0])},i:s.noop,o:s.noop,d(h){h&&s.detach(t),h&&s.detach(a),h&&s.detach(l),h&&s.detach(c),h&&s.detach(d),h&&s.detach(u),h&&s.detach(f)}}}function el(i,t,e){let o,{path:n}=t;return i.$$set=r=>{"path"in r&&e(1,n=r.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,o=xt(n,{needZ:!0}))},[o,n]}class tl extends s.SvelteComponent{constructor(t){super(),s.init(this,t,el,$a,s.safe_not_equal,{path:1})}}function ol(i){s.append_styles(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 ys(i,t,e){const o=i.slice();return o[5]=t[e],o}function sl(i){let t,e;return t=new Ka({props:{path:i[5].path}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.path=o[5].path),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function il(i){let t,e;return t=new tl({props:{path:i[5].path}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.path=o[5].path),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function nl(i){let t,e;return t=new Ja({props:{path:i[5].path}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.path=o[5].path),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function ws(i){let t,e,o,n;const r=[nl,il,sl],a=[];function l(c,d){return c[5].floorType===1?0:c[5].floorType===0?1:2}return e=l(i),o=a[e]=r[e](i),{c(){t=s.svg_element("svg"),o.c(),s.attr(t,"width","100%"),s.attr(t,"height","100%"),s.attr(t,"viewBox",`0 0 ${i[1]} ${i[2]}`),s.attr(t,"class","svelte-1dykexu")},m(c,d){s.insert(c,t,d),a[e].m(t,null),n=!0},p(c,d){let u=e;e=l(c),e===u?a[e].p(c,d):(s.group_outros(),s.transition_out(a[u],1,1,()=>{a[u]=null}),s.check_outros(),o=a[e],o?o.p(c,d):(o=a[e]=r[e](c),o.c()),s.transition_in(o,1),o.m(t,null))},i(c){n||(s.transition_in(o),n=!0)},o(c){s.transition_out(o),n=!1},d(c){c&&s.detach(t),a[e].d()}}}function rl(i){let t,e,o=i[0],n=[];for(let a=0;a<o.length;a+=1)n[a]=ws(ys(i,o,a));const r=a=>s.transition_out(n[a],1,1,()=>{n[a]=null});return{c(){t=s.element("div");for(let a=0;a<n.length;a+=1)n[a].c();s.attr(t,"class","floorplan-plugin__room-material svelte-1dykexu")},m(a,l){s.insert(a,t,l);for(let c=0;c<n.length;c+=1)n[c].m(t,null);e=!0},p(a,[l]){if(l&7){o=a[0];let c;for(c=0;c<o.length;c+=1){const d=ys(a,o,c);n[c]?(n[c].p(d,l),s.transition_in(n[c],1)):(n[c]=ws(d),n[c].c(),s.transition_in(n[c],1),n[c].m(t,null))}for(s.group_outros(),c=o.length;c<n.length;c+=1)r(c);s.check_outros()}},i(a){if(!e){for(let l=0;l<o.length;l+=1)s.transition_in(n[l]);e=!0}},o(a){n=n.filter(Boolean);for(let l=0;l<n.length;l+=1)s.transition_out(n[l]);e=!1},d(a){a&&s.detach(t),s.destroy_each(n,a)}}}function al(i,t,e){let o,{floorIndex:n}=t,{floorplanData:r}=t;const a=r.bounding.max.x-r.bounding.min.x,l=r.bounding.max.y-r.bounding.min.y;return i.$$set=c=>{"floorIndex"in c&&e(3,n=c.floorIndex),"floorplanData"in c&&e(4,r=c.floorplanData)},i.$$.update=()=>{i.$$.dirty&24&&e(0,o=r.floorDatas[n].rooms.map(c=>q(B({},c),{path:c.path.map(d=>bs(d,r.bounding))})))},[o,a,l,n,r]}class ll extends s.SvelteComponent{constructor(t){super(),s.init(this,t,al,rl,s.safe_not_equal,{floorIndex:3,floorplanData:4},ol)}}function cl(i){s.append_styles(i,"svelte-19uvvss","path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}")}function dl(i){let t,e,o;return{c(){t=s.svg_element("path"),s.attr(t,"d",i[2]),s.attr(t,"fill","#fff"),s.attr(t,"class","svelte-19uvvss")},m(n,r){s.insert(n,t,r),e||(o=[s.listen(t,"mouseenter",i[0]),s.listen(t,"mouseleave",i[1])],e=!0)},p:s.noop,i:s.noop,o:s.noop,d(n){n&&s.detach(t),e=!1,s.run_all(o)}}}function ul(i,t,e){let{room:o}=t,{floorplanData:n}=t,{hoveredRoom:r}=t;function a(){r.set(o)}function l(){r.set(void 0)}const{bounding:c}=n,d=xt(o.path,{needZ:!0,format:u=>bs(u,c)});return i.$$set=u=>{"room"in u&&e(3,o=u.room),"floorplanData"in u&&e(4,n=u.floorplanData),"hoveredRoom"in u&&e(5,r=u.hoveredRoom)},[a,l,d,o,n,r]}class hl extends s.SvelteComponent{constructor(t){super(),s.init(this,t,ul,dl,s.safe_not_equal,{room:3,floorplanData:4,hoveredRoom:5},cl)}}function fl(i){s.append_styles(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 Cs(i,t,e){const o=i.slice();return o[5]=t[e],o}function Ps(i,t){let e,o,n;const r=[{room:t[5],floorplanData:t[1],hoveredRoom:t[2]}];let a={};for(let l=0;l<r.length;l+=1)a=s.assign(a,r[l]);return o=new hl({props:a}),{key:i,first:null,c(){e=s.empty(),s.create_component(o.$$.fragment),this.first=e},m(l,c){s.insert(l,e,c),s.mount_component(o,l,c),n=!0},p(l,c){t=l;const d=c&7?s.get_spread_update(r,[{room:t[5],floorplanData:t[1],hoveredRoom:t[2]}]):{};o.$set(d)},i(l){n||(s.transition_in(o.$$.fragment,l),n=!0)},o(l){s.transition_out(o.$$.fragment,l),n=!1},d(l){l&&s.detach(e),s.destroy_component(o,l)}}}function ml(i){let t,e,o=[],n=new Map,r,a=i[1].floorDatas[i[0]].rooms;const l=c=>c[5].id;for(let c=0;c<a.length;c+=1){let d=Cs(i,a,c),u=l(d);n.set(u,o[c]=Ps(u,d))}return{c(){t=s.element("div"),e=s.svg_element("svg");for(let c=0;c<o.length;c+=1)o[c].c();s.attr(e,"width","100%"),s.attr(e,"height","100%"),s.attr(e,"viewBox",`0 0 ${i[3]} ${i[4]}`),s.attr(e,"class","svelte-1kqo6e4"),s.attr(t,"class","floorplan-plugin__room-highlight svelte-1kqo6e4")},m(c,d){s.insert(c,t,d),s.append(t,e);for(let u=0;u<o.length;u+=1)o[u].m(e,null);r=!0},p(c,[d]){d&7&&(a=c[1].floorDatas[c[0]].rooms,s.group_outros(),o=s.update_keyed_each(o,d,l,1,c,a,n,e,s.outro_and_destroy_block,Ps,null,Cs),s.check_outros())},i(c){if(!r){for(let d=0;d<a.length;d+=1)s.transition_in(o[d]);r=!0}},o(c){for(let d=0;d<o.length;d+=1)s.transition_out(o[d]);r=!1},d(c){c&&s.detach(t);for(let d=0;d<o.length;d+=1)o[d].d()}}}function pl(i,t,e){let{floorIndex:o}=t,{floorplanData:n}=t,{hoveredRoom:r}=t;const a=n.bounding.max.x-n.bounding.min.x,l=n.bounding.max.y-n.bounding.min.y;return i.$$set=c=>{"floorIndex"in c&&e(0,o=c.floorIndex),"floorplanData"in c&&e(1,n=c.floorplanData),"hoveredRoom"in c&&e(2,r=c.hoveredRoom)},[o,n,r,a,l]}class Is extends s.SvelteComponent{constructor(t){super(),s.init(this,t,pl,ml,s.safe_not_equal,{floorIndex:0,floorplanData:1,hoveredRoom:2},fl)}}function gl(i){s.append_styles(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 Es(i){let t,e;const o=[{floorIndex:i[1],floorplanData:i[5],hoveredRoom:i[10]}];let n={};for(let r=0;r<o.length;r+=1)n=s.assign(n,o[r]);return t=new Is({props:n}),{c(){s.create_component(t.$$.fragment)},m(r,a){s.mount_component(t,r,a),e=!0},p(r,a){const l=a&1058?s.get_spread_update(o,[{floorIndex:r[1],floorplanData:r[5],hoveredRoom:r[10]}]):{};t.$set(l)},i(r){e||(s.transition_in(t.$$.fragment,r),e=!0)},o(r){s.transition_out(t.$$.fragment,r),e=!1},d(r){s.destroy_component(t,r)}}}function ks(i){let t,e;const o=[{floorplanData:i[5],floorIndex:i[1],getRoomAreaText:i[6],getLabelElement:i[7],hoveredRoom:i[10],adaptiveRoomLabelVisibleEnable:i[9]}];let n={};for(let r=0;r<o.length;r+=1)n=s.assign(n,o[r]);return t=new Ba({props:n}),{c(){s.create_component(t.$$.fragment)},m(r,a){s.mount_component(t,r,a),e=!0},p(r,a){const l=a&1762?s.get_spread_update(o,[{floorplanData:r[5],floorIndex:r[1],getRoomAreaText:r[6],getLabelElement:r[7],hoveredRoom:r[10],adaptiveRoomLabelVisibleEnable:r[9]}]):{};t.$set(l)},i(r){e||(s.transition_in(t.$$.fragment,r),e=!0)},o(r){s.transition_out(t.$$.fragment,r),e=!1},d(r){s.destroy_component(t,r)}}}function xs(i){let t,e;const o=[{floorplanData:i[5],floorIndex:i[1],getRuleDistanceText:i[8]}];let n={};for(let r=0;r<o.length;r+=1)n=s.assign(n,o[r]);return t=new Na({props:n}),{c(){s.create_component(t.$$.fragment)},m(r,a){s.mount_component(t,r,a),e=!0},p(r,a){const l=a&290?s.get_spread_update(o,[{floorplanData:r[5],floorIndex:r[1],getRuleDistanceText:r[8]}]):{};t.$set(l)},i(r){e||(s.transition_in(t.$$.fragment,r),e=!0)},o(r){s.transition_out(t.$$.fragment,r),e=!1},d(r){s.destroy_component(t,r)}}}function Al(i){let t,e,o,n,r,a,l,c,d;const u=[{floorIndex:i[1],floorplanData:i[5]}];let f={};for(let v=0;v<u.length;v+=1)f=s.assign(f,u[v]);e=new ll({props:f});let h=i[2]&&Es(i);const p=[{floorplanData:i[5],floorIndex:i[1]}];let g={};for(let v=0;v<p.length;v+=1)g=s.assign(g,p[v]);r=new as({props:g});let A=i[3]&&ks(i),b=i[4]&&xs(i);return{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),h&&h.c(),n=s.space(),s.create_component(r.$$.fragment),a=s.space(),A&&A.c(),l=s.space(),b&&b.c(),s.attr(t,"class",c=s.null_to_empty(`floorplan-plugin__floor${i[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz")},m(v,w){s.insert(v,t,w),s.mount_component(e,t,null),s.append(t,o),h&&h.m(t,null),s.append(t,n),s.mount_component(r,t,null),s.append(t,a),A&&A.m(t,null),s.append(t,l),b&&b.m(t,null),d=!0},p(v,[w]){const y=w&34?s.get_spread_update(u,[{floorIndex:v[1],floorplanData:v[5]}]):{};e.$set(y),v[2]?h?(h.p(v,w),w&4&&s.transition_in(h,1)):(h=Es(v),h.c(),s.transition_in(h,1),h.m(t,n)):h&&(s.group_outros(),s.transition_out(h,1,1,()=>{h=null}),s.check_outros());const E=w&34?s.get_spread_update(p,[{floorplanData:v[5],floorIndex:v[1]}]):{};r.$set(E),v[3]?A?(A.p(v,w),w&8&&s.transition_in(A,1)):(A=ks(v),A.c(),s.transition_in(A,1),A.m(t,l)):A&&(s.group_outros(),s.transition_out(A,1,1,()=>{A=null}),s.check_outros()),v[4]?b?(b.p(v,w),w&16&&s.transition_in(b,1)):(b=xs(v),b.c(),s.transition_in(b,1),b.m(t,null)):b&&(s.group_outros(),s.transition_out(b,1,1,()=>{b=null}),s.check_outros()),(!d||w&1&&c!==(c=s.null_to_empty(`floorplan-plugin__floor${v[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz"))&&s.attr(t,"class",c)},i(v){d||(s.transition_in(e.$$.fragment,v),s.transition_in(h),s.transition_in(r.$$.fragment,v),s.transition_in(A),s.transition_in(b),d=!0)},o(v){s.transition_out(e.$$.fragment,v),s.transition_out(h),s.transition_out(r.$$.fragment,v),s.transition_out(A),s.transition_out(b),d=!1},d(v){v&&s.detach(t),s.destroy_component(e),h&&h.d(),s.destroy_component(r),A&&A.d(),b&&b.d()}}}function vl(i,t,e){let{isCurrent:o}=t,{floorIndex:n}=t,{hoverEnable:r}=t,{roomLabelsEnable:a}=t,{ruleLabelsEnable:l}=t,{floorplanData:c}=t,{getRoomAreaText:d}=t,{getLabelElement:u}=t,{getRuleDistanceText:f}=t,{adaptiveRoomLabelVisibleEnable:h}=t;const p=$t.writable(void 0);return i.$$set=g=>{"isCurrent"in g&&e(0,o=g.isCurrent),"floorIndex"in g&&e(1,n=g.floorIndex),"hoverEnable"in g&&e(2,r=g.hoverEnable),"roomLabelsEnable"in g&&e(3,a=g.roomLabelsEnable),"ruleLabelsEnable"in g&&e(4,l=g.ruleLabelsEnable),"floorplanData"in g&&e(5,c=g.floorplanData),"getRoomAreaText"in g&&e(6,d=g.getRoomAreaText),"getLabelElement"in g&&e(7,u=g.getLabelElement),"getRuleDistanceText"in g&&e(8,f=g.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in g&&e(9,h=g.adaptiveRoomLabelVisibleEnable)},[o,n,r,a,l,c,d,u,f,h,p]}class bl extends s.SvelteComponent{constructor(t){super(),s.init(this,t,vl,Al,s.safe_not_equal,{isCurrent:0,floorIndex:1,hoverEnable:2,roomLabelsEnable:3,ruleLabelsEnable:4,floorplanData:5,getRoomAreaText:6,getLabelElement:7,getRuleDistanceText:8,adaptiveRoomLabelVisibleEnable:9},gl)}}function yl(i){s.append_styles(i,"svelte-86bqav",".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}")}function Ds(i,t,e){const o=i.slice();return o[16]=t[e],o}function Ss(i){let t,e,o,n,r,a,l=i[9].floorDatas,c=[];for(let p=0;p<l.length;p+=1)c[p]=Ls(Ds(i,l,p));const d=p=>s.transition_out(c[p],1,1,()=>{c[p]=null}),u=[{panoIndex:i[3],floorplanData:i[9],lastPanoramaLongitude:i[10],cameraImageUrl:i[11]}];let f={};for(let p=0;p<u.length;p+=1)f=s.assign(f,u[p]);o=new ia({props:f});let h=i[6]&&_s(i);return{c(){t=s.element("div");for(let p=0;p<c.length;p+=1)c[p].c();e=s.space(),s.create_component(o.$$.fragment),n=s.space(),h&&h.c(),s.attr(t,"class","floorplan-main svelte-86bqav")},m(p,g){s.insert(p,t,g);for(let A=0;A<c.length;A+=1)c[A].m(t,null);s.append(t,e),s.mount_component(o,t,null),s.append(t,n),h&&h.m(t,null),a=!0},p(p,g){if(i=p,g&62384){l=i[9].floorDatas;let b;for(b=0;b<l.length;b+=1){const v=Ds(i,l,b);c[b]?(c[b].p(v,g),s.transition_in(c[b],1)):(c[b]=Ls(v),c[b].c(),s.transition_in(c[b],1),c[b].m(t,e))}for(s.group_outros(),b=l.length;b<c.length;b+=1)d(b);s.check_outros()}const A=g&3592?s.get_spread_update(u,[{panoIndex:i[3],floorplanData:i[9],lastPanoramaLongitude:i[10],cameraImageUrl:i[11]}]):{};o.$set(A),i[6]?h?(h.p(i,g),g&64&&s.transition_in(h,1)):(h=_s(i),h.c(),s.transition_in(h,1),h.m(t,null)):h&&(s.group_outros(),s.transition_out(h,1,1,()=>{h=null}),s.check_outros())},i(p){if(!a){for(let g=0;g<l.length;g+=1)s.transition_in(c[g]);s.transition_in(o.$$.fragment,p),s.transition_in(h),r||s.add_render_callback(()=>{r=s.create_in_transition(t,de.fade,{duration:i[0],easing:ce.linear}),r.start()}),a=!0}},o(p){c=c.filter(Boolean);for(let g=0;g<c.length;g+=1)s.transition_out(c[g]);s.transition_out(o.$$.fragment,p),s.transition_out(h),a=!1},d(p){p&&s.detach(t),s.destroy_each(c,p),s.destroy_component(o),h&&h.d()}}}function Ls(i){let t,e;const o=[{hoverEnable:i[5],floorplanData:i[9],getRoomAreaText:i[12],getLabelElement:i[13],getRuleDistanceText:i[14],roomLabelsEnable:i[7],ruleLabelsEnable:i[8],adaptiveRoomLabelVisibleEnable:i[15]},{floorIndex:i[16].floorIndex},{isCurrent:i[16].floorIndex===i[4]}];let n={};for(let r=0;r<o.length;r+=1)n=s.assign(n,o[r]);return t=new bl({props:n}),{c(){s.create_component(t.$$.fragment)},m(r,a){s.mount_component(t,r,a),e=!0},p(r,a){const l=a&62384?s.get_spread_update(o,[a&62368&&{hoverEnable:r[5],floorplanData:r[9],getRoomAreaText:r[12],getLabelElement:r[13],getRuleDistanceText:r[14],roomLabelsEnable:r[7],ruleLabelsEnable:r[8],adaptiveRoomLabelVisibleEnable:r[15]},a&512&&{floorIndex:r[16].floorIndex},a&528&&{isCurrent:r[16].floorIndex===r[4]}]):{};t.$set(l)},i(r){e||(s.transition_in(t.$$.fragment,r),e=!0)},o(r){s.transition_out(t.$$.fragment,r),e=!1},d(r){s.destroy_component(t,r)}}}function _s(i){let t,e;return t=new ua({props:{floorplanData:i[9],northDesc:i[2]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&512&&(r.floorplanData=o[9]),n&4&&(r.northDesc=o[2]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function wl(i){let t,e,o=i[1]&&Ss(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[1]?o?(o.p(n,r),r&2&&s.transition_in(o,1)):(o=Ss(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function Cl(i,t,e){let{duration:o=0}=t,{visible:n}=t,{northDesc:r}=t,{panoIndex:a}=t,{floorIndex:l}=t,{hoverEnable:c}=t,{compassEnable:d}=t,{roomLabelsEnable:u}=t,{ruleLabelsEnable:f}=t,{floorplanData:h}=t,{lastPanoramaLongitude:p}=t,{cameraImageUrl:g}=t,{getRoomAreaText:A}=t,{getLabelElement:b}=t,{getRuleDistanceText:v}=t,{adaptiveRoomLabelVisibleEnable:w}=t;return i.$$set=y=>{"duration"in y&&e(0,o=y.duration),"visible"in y&&e(1,n=y.visible),"northDesc"in y&&e(2,r=y.northDesc),"panoIndex"in y&&e(3,a=y.panoIndex),"floorIndex"in y&&e(4,l=y.floorIndex),"hoverEnable"in y&&e(5,c=y.hoverEnable),"compassEnable"in y&&e(6,d=y.compassEnable),"roomLabelsEnable"in y&&e(7,u=y.roomLabelsEnable),"ruleLabelsEnable"in y&&e(8,f=y.ruleLabelsEnable),"floorplanData"in y&&e(9,h=y.floorplanData),"lastPanoramaLongitude"in y&&e(10,p=y.lastPanoramaLongitude),"cameraImageUrl"in y&&e(11,g=y.cameraImageUrl),"getRoomAreaText"in y&&e(12,A=y.getRoomAreaText),"getLabelElement"in y&&e(13,b=y.getLabelElement),"getRuleDistanceText"in y&&e(14,v=y.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in y&&e(15,w=y.adaptiveRoomLabelVisibleEnable)},[o,n,r,a,l,c,d,u,f,h,p,g,A,b,v,w]}class no extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Cl,wl,s.safe_not_equal,{duration:0,visible:1,northDesc:2,panoIndex:3,floorIndex:4,hoverEnable:5,compassEnable:6,roomLabelsEnable:7,ruleLabelsEnable:8,floorplanData:9,lastPanoramaLongitude:10,cameraImageUrl:11,getRoomAreaText:12,getLabelElement:13,getRuleDistanceText:14,adaptiveRoomLabelVisibleEnable:15},yl)}}const Pl="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 Il(i){return G(this,null,function*(){const t=new Headers({"Content-Type":"text/plain"}),e=function(n){return G(this,null,function*(){const r={index:n.index,url:n.url,svgUrl:n.svg_url};if(n.svg_url){const a=yield fetch(n.svg_url,{headers:t}).then(l=>l.text());r.svgContent=a}return r})};return yield Promise.all(i.map(e))})}function El(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 kl(i){return{floorName:i.floor_name,floorIndex:i.floor_index,rooms:i.rooms.map(El),rules:i.rules}}function xl(i){return{index:i.index,floorIndex:i.floor_index,position:i.position,positionInImage:i.position_in_image}}function Dl(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 Be(i){return G(this,null,function*(){const t=yield Il(i.outlines),e=i.computed_data.bounding,o=i.computed_data.floor_datas.map(kl),n=i.computed_data.entrance?Dl(i.computed_data.entrance):null;return{outlines:t,entrance:n,bounding:e,floorDatas:o,observers:i.computed_data.observers.map(xl)}})}function Sl(i,t,e){return i.map(n=>{const r=n.position,a=n.icon?n.icon:{url:Pl,width:45,height:48},l=Ya(r,t),c=Wa(r,e),d=Xa(c,e);return{floorIndex:l,icon:a,id:n.id,position:c,positionInImage:d}})}function Ll(i,t){return t(i),i}function Dt(i,t){return Ll({},e=>{for(const o in i)t.indexOf(o)===-1&&(e[o]=i[o])})}function zs(i,t){const e=Math.max(...i.work.observers.map(o=>o.floorIndex));return t>e?i.model.bounding.max.y:Math.max(...i.work.observers.filter(o=>o.floorIndex===t).map(o=>o.standingPosition.y))}function ro(i,t,e=Me.BOUNDING_CENTER){const o=zs(i,t),n=zs(i,t+1);return e===Me.BOUNDING_CENTER?(i.model.bounding.max.y+i.model.bounding.min.y)/2:e===Me.CEILING?n:o}function ao(i,t,e,o){const n=ro(i,e,o==null?void 0:o.attachedTo),r=new I.Vector3(0,n,0),a=new I.Vector3(1,n,0),l=r.clone().project(i.camera),c=a.clone().project(i.camera);return Math.abs((c.x-l.x)/1e3)*(t.getBoundingClientRect().width/2)}class St{constructor(t,e){m(this,"five");m(this,"hooks",new ut);m(this,"staticPrefix","//vrlab-static.ljcdn.com");this.five=t,e!=null&&e.staticPrefix&&(this.staticPrefix=e.staticPrefix)}getCurrentState(){return this.state}}class We extends St{}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 Ms=500,_l=80;function lo(i,t,e=4){return Math.floor(i*Math.pow(10,e))===Math.floor(t*Math.pow(10,e))}function js(i,t){return G(this,null,function*(){yield new Promise((e,o)=>{i.changeMode(...t).catch(n=>o(n)),i.once("initAnimationEnded",()=>{const n=i.getCurrentState(),r=t[0];n.mode!==r&&o(new Error("mode \u4E0E\u9884\u671F\u4E0D\u7B26")),(()=>{const c=t[1];return c?Object.keys(c).every(d=>{const u=n[d];if(u===void 0)return!0;const f=c[d];return typeof u=="number"&&typeof f=="number"?lo(u,f,2):u===f}):!0})()||o(new Error("five pose \u4E0E\u9884\u671F\u4E0D\u7B26")),e()})})})}function co(i,t){if(i.currentMode!==t.mode)return!1;const{latitude:e,longitude:o,fov:n}=t,{latitude:r,longitude:a}=i.getCurrentState(),l=i.camera.fov;return!(!lo(e,r,2)||!lo(o,a,2)||n!==l)}function Bs(i,t,e=!0){return G(this,null,function*(){if(co(i,t)===!0)return;const n=i.getCurrentState();if(n.mode!==t.mode){const[u]=yield It(js(i,[t.mode,t,void 0,e]));if(u)throw new Error(ge.ChangeModeError);return}const{latitude:r,longitude:a,fov:l}=n,c=Math.min(1e3,Math.max(200,Math.abs(r-Math.PI/2)*1e3,(a>Math.PI?2*Math.PI-a:a)*500,Math.abs(l-t.fov)*10)),[d]=yield It(i.updateCamera(t,c,e));if(d)throw new Error(ge.UpdateCameraError)})}function st(i,t,e=300){const o=i.getElement();!o||(o.style.opacity=t+"",o.style.transition=e===0?"none":`opacity ${e}ms linear`,e!==0&&Promise.race([new Promise(n=>o.addEventListener("transitionend",n,{once:!0})),new Promise(n=>setTimeout(n,e))]).then(()=>{o.style.transition="none"}))}function zl(i){const{latitude:t,longitude:e}=i,o=Math.abs(t-Math.PI/2)>5*Math.PI/180,n=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return o||n}function Ml(i){const{latitude:t,longitude:e}=i,o=Math.abs(t-Math.PI/2)<10*Math.PI/180,n=e<30*(Math.PI/180)||e>330*(Math.PI/180);return o&&n}class jl extends We{constructor(e,o){var l;super(e);m(this,"name","modelFloorplanPlugin");m(this,"state");m(this,"data");m(this,"showState");m(this,"showPromise");m(this,"app");m(this,"panoIndex",0);m(this,"floorIndex",0);m(this,"selector");m(this,"showRejection");m(this,"wrapper");m(this,"container",document.createElement("div"));m(this,"lastPanoramaLongitude",0);m(this,"size",{width:0,height:0});m(this,"hasAddedEventListener",!1);m(this,"isHiddenByHideFunc",!1);m(this,"dispose",()=>{var e,o;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(o=this.container)==null||o.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});m(this,"show",(...o)=>G(this,[...o],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show(e)}));m(this,"hide",(...o)=>G(this,[...o],function*(e={}){!this.state.enabled||(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));m(this,"updateSize",()=>{if(!this.data||!co(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:o}=this.data.bounding,n=o.x-e.x,r=o.y-e.y,a=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,l=ao(this.five,this.wrapper,this.floorIndex,a),c=Math.ceil(n*l),d=Math.ceil(r*l);this.size.width===c&&this.size.height===d||(this.container.style.width=c+"px",this.container.style.height=d+"px",this.size={width:c,height:d})});m(this,"_disable",e=>{var n,r,a;const{userAction:o}=e;this.hooks.emit("disable",{userAction:o}),(n=this.showRejection)==null||n.call(this,ge.BreakOffByDisable),this.showPromise=void 0,(r=this.app)==null||r.$destroy(),this.app=void 0,(a=this.container)==null||a.remove(),this.removeEventListener()});m(this,"_enable",e=>{const{userAction:o}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:o}),this.state.visible&&this._show({userAction:o}))});m(this,"_show",e=>G(this,null,function*(){var a;if(!this.state.enabled)return;if(!((a=this.five.model)!=null&&a.loaded))throw new Error(ge.ModelNotLoaded);if(!this.data)throw new Error(ge.DataNotLoaded);this.isHiddenByHideFunc=!1;const o={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},n=B(B({},o),e),r=()=>G(this,null,function*(){this.hooks.emit("show",{userAction:n.userAction,auto:n.isAutoShow});let l=!1,c;this.showRejection=h=>{l=!0,c=h};const[d]=yield It(Bs(this.five,this.showState,n.userAction));if(d)throw d;if(l)throw c?new Error(c):new Error(ge.UnknownError);this.updateSize(),this.floorIndex=n.floorIndex,this.five.model.show(this.floorIndex);const u=n.modelOpacity,f=n.immediately?0:Ms;st(this.five,u,f),this.render(f)});return this.showPromise=r().then(()=>{this.hooks.emit("showAnimationEnded",{auto:n.isAutoShow,userAction:n.userAction})}).catch(l=>{if(this.updateState({visible:!1},n.userAction),!n.isAutoShow&&l instanceof Error)throw l}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));m(this,"_hide",e=>{var r;(r=this.showRejection)==null||r.call(this,ge.BreakOffByHide),this.showPromise=void 0;const n=B(B({},{userAction:!0,isAutoHide:!1}),e);st(this.five,1,0),this.hooks.emit("hide",{auto:n.isAutoHide,userAction:n.userAction}),this.render()});m(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});m(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)});m(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});m(this,"onFiveInteriaPan",(e,o)=>{if(!o||this.state.config.autoShowEnable===!1||this.isHiddenByHideFunc)return;const n=this.five.getCurrentState();n.mode==="Floorplan"&&(this.state.visible||Ml(n)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})))});m(this,"onFivePanoArrived",e=>{var o;!((o=this.five)!=null&&o.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});m(this,"onFiveCameraUpdate",(e,o)=>{if(!this.state.visible||this.showPromise)return;const n=this.five.getCurrentState();zl(n)&&(this.updateState({visible:!1},o),this._hide({userAction:o,isAutoHide:!0}))});m(this,"onFiveWantsGesture",(e,o)=>{if(!!this.state.visible&&(o.length>1||e==="mouseWheel"))return!1});m(this,"onFiveWantsPanGesture",(e,o)=>{if(this.five.getCurrentState().mode==="Floorplan"&&this.state.config.autoShowEnable!==!1&&o&&this.state.visible)return this.five.updateCamera(this.showState,0),!1});m(this,"onFiveWantsTapGesture",()=>this.handleClick());m(this,"onFiveWantsChangeMode",(e,o)=>{o==="Panorama"&&e==="Floorplan"&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});m(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const o=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[o].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});o!=null&&o.selector&&(this.selector=o.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:_l/((l=o==null?void 0:o.scale)!=null?l:1)};const n={northDesc:"\u5317",modelOpacity:1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,adaptiveRoomLabelVisibleEnable:!0,cameraImageUrl:je,attachedTo:Me.BOUNDING_CENTER,getLabelElement:void 0,getRoomAreaText:c=>(c/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:c=>c.toString()},r=o?Dt(o,["selector","scale"]):{},a=B(B({},n),r);this.state={enabled:!0,visible:!1,config:a},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,o,n=!0){return G(this,null,function*(){function r(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const a=e;a&&!a.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 l=JSON.parse(JSON.stringify(e)),c=r(l)?l.data:l,d=this.data;this.data=yield Be(c),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,d),o&&this.updateState(o,n),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 o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||o),this._enable({userAction:o})}disable(e={}){if(!this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||o),this._disable({userAction:o})}setState(e,o={}){const n=this.state,r=o.userAction!==void 0?o.userAction:!0;if(this.updateState(e,r),e.enabled!==void 0&&n.enabled!==e.enabled&&(e.enabled?this._enable({userAction:r}):this._disable({userAction:r})),e.visible!==void 0&&n.visible!==e.visible){const a={userAction:r};e.visible?this._show(a):this._hide(a)}this.render()}changeConfigs(e,o=!0){this.updateState({config:e},o),this.render()}formatData(e){return G(this,null,function*(){return yield Be(e.data)})}updateState(e,o){const n=this.state,r=e.config?B(B({},n.config),e.config):n.config;this.state=q(B(B({},this.state),e),{config:r}),!Pe(this.state,n,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:o})}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 o=q(B({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude});if(this.app)return this.app.$set(o);this.app=new no({target:this.container,intro:!0,props:o})}}const Bl=(i,t)=>new jl(i,t);function Tl(i){const{latitude:t,longitude:e}=i,o=Math.abs(t-Math.PI/2)>5*Math.PI/180,n=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return o||n}function Ql(i){const{latitude:t,longitude:e}=i,o=Math.abs(t-Math.PI/2)<10*Math.PI/180,n=e<30*(Math.PI/180)||e>330*(Math.PI/180);return o&&n}class Ol extends We{constructor(e,o){super(e);m(this,"name","modelFloorplanPlugin");m(this,"state");m(this,"data");m(this,"showState");m(this,"showPromise");m(this,"app");m(this,"panoIndex",0);m(this,"floorIndex",0);m(this,"selector");m(this,"showRejection");m(this,"wrapper");m(this,"container",document.createElement("div"));m(this,"lastPanoramaLongitude",0);m(this,"size",{width:0,height:0});m(this,"hasAddedEventListener",!1);m(this,"isHiddenByHideFunc",!1);m(this,"dispose",()=>{var e,o;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(o=this.container)==null||o.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});m(this,"show",(...o)=>G(this,[...o],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show(e)}));m(this,"hide",(...o)=>G(this,[...o],function*(e={}){!this.state.enabled||(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));m(this,"updateSize",()=>{if(!this.data||!co(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:o}=this.data.bounding,n=o.x-e.x,r=o.y-e.y,a=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,l=ao(this.five,this.wrapper,this.floorIndex,a),c=Math.ceil(n*l),d=Math.ceil(r*l);this.size.width===c&&this.size.height===d||(this.container.style.width=c+"px",this.container.style.height=d+"px",this.size={width:c,height:d})});m(this,"_disable",e=>{var n,r,a;const{userAction:o}=e;this.hooks.emit("disable",{userAction:o}),(n=this.showRejection)==null||n.call(this,ge.BreakOffByDisable),this.showPromise=void 0,(r=this.app)==null||r.$destroy(),this.app=void 0,(a=this.container)==null||a.remove(),this.removeEventListener()});m(this,"_enable",e=>{const{userAction:o}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:o}),this.state.visible&&this._show({userAction:o}))});m(this,"_show",e=>G(this,null,function*(){var a;if(!this.state.enabled)return;if(!((a=this.five.model)!=null&&a.loaded))throw new Error(ge.ModelNotLoaded);if(!this.data)throw new Error(ge.DataNotLoaded);this.isHiddenByHideFunc=!1;const o={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},n=B(B({},o),e),r=()=>G(this,null,function*(){this.hooks.emit("show",{userAction:n.userAction,auto:n.isAutoShow});let l=!1,c;this.showRejection=h=>{l=!0,c=h};const[d]=yield It(Bs(this.five,this.showState,n.userAction));if(d)throw d;if(l)throw c?new Error(c):new Error(ge.UnknownError);this.updateSize(),this.updatePosition(),this.floorIndex=n.floorIndex,this.five.model.show(this.floorIndex);const u=n.modelOpacity,f=n.immediately?0:Ms;st(this.five,u,f),this.render(f)});return this.showPromise=r().then(()=>{this.hooks.emit("showAnimationEnded",{auto:n.isAutoShow,userAction:n.userAction})}).catch(l=>{if(this.updateState({visible:!1},n.userAction),!n.isAutoShow&&l instanceof Error)throw l}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));m(this,"_hide",e=>{var r;(r=this.showRejection)==null||r.call(this,ge.BreakOffByHide),this.showPromise=void 0;const n=B(B({},{userAction:!0,isAutoHide:!1}),e);st(this.five,1,0),this.hooks.emit("hide",{auto:n.isAutoHide,userAction:n.userAction}),this.render()});m(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});m(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)});m(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});m(this,"onFivePanoArrived",e=>{var o;!((o=this.five)!=null&&o.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});m(this,"onFiveCameraUpdate",(e,o)=>{if(!this.state.visible||this.showPromise)return;const n=this.five.getCurrentState();this.updatePosition(),this.updateSize(),Tl(n)&&(this.updateState({visible:!1},o),this._hide({userAction:o}))});m(this,"onFiveWantsPanGesture",(e,o)=>{if(this.five.getCurrentState().mode===this.showState.mode&&this.state.config.autoShowEnable!==!1){if(o&&this.state.visible)return this.five.updateCamera(this.showState,0),!1;if(o&&!this.state.visible){if(this.isHiddenByHideFunc)return;const n=this.five.getCurrentState();return n.mode!==this.showState.mode||this.state.visible?void 0:(Ql(n)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})),!1)}}});m(this,"onFiveWantsTapGesture",()=>this.handleClick());m(this,"onFiveWantsChangeMode",(e,o)=>{o==="Panorama"&&e===this.showState.mode&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});m(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const o=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[o].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});o!=null&&o.selector&&(this.selector=o.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 n={northDesc:"\u5317",modelOpacity:1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,cameraImageUrl:je,attachedTo:Me.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:l=>(l/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:l=>l.toString()},r=o?Dt(o,["selector","scale"]):{},a=B(B({},n),r);this.state={enabled:!0,visible:!1,config:a},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,o,n=!0){return G(this,null,function*(){function r(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const a=e;a&&!a.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 l=JSON.parse(JSON.stringify(e)),c=r(l)?l.data:l,d=this.data;this.data=yield Be(c),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,d),o&&this.updateState(o,n),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 o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||o),this._enable({userAction:o})}disable(e={}){if(!this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||o),this._disable({userAction:o})}setState(e,o={}){const n=this.state,r=o.userAction!==void 0?o.userAction:!0;if(this.updateState(e,r),e.enabled!==void 0&&n.enabled!==e.enabled&&(e.enabled?this._enable({userAction:r}):this._disable({userAction:r})),e.visible!==void 0&&n.visible!==e.visible){const a={userAction:r};e.visible?this._show(a):this._hide(a)}}changeConfigs(e,o=!0){this.updateState({config:e},o),this.render()}updatePosition(){var l;const e=ro(this.five,this.floorIndex,this.state.config.attachedTo),o=(l=this.five.model)==null?void 0:l.bounding.getCenter(new I.Vector3).setY(e);if(!o)return;const n=o.clone().project(this.five.camera),r=(n.x+1)/2,a=-(n.y-1)/2;this.container.style.left=r*100+"%",this.container.style.top=a*100+"%"}formatData(e){return G(this,null,function*(){return yield Be(e.data)})}updateState(e,o){const n=this.state,r=e.config?B(B({},n.config),e.config):n.config;this.state=q(B(B({},this.state),e),{config:r}),!Pe(this.state,n,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:o})}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 o=q(B({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude});if(this.app)return this.app.$set(o);this.app=new no({target:this.container,intro:!0,props:o})}}const Rl=(i,t)=>new Ol(i,t);class Fl extends We{constructor(e,o){super(e);m(this,"name","topviewFloorplanPlugin");m(this,"state");m(this,"data");m(this,"app");m(this,"selector");m(this,"panoIndex",0);m(this,"floorIndex",0);m(this,"wrapper");m(this,"container",document.createElement("div"));m(this,"lastPanoramaLongitude",0);m(this,"size",{width:0,height:0});m(this,"hasAddedEventListener",!1);m(this,"isHiddenByHideFunc",!1);m(this,"updateSize",()=>{if(!this.data||!this.container||!this.wrapper||this.five.getCurrentState().mode!=="Topview")return;const{min:e,max:o}=this.data.bounding,n=o.x-e.x,r=o.y-e.y,a=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,l=ao(this.five,this.wrapper,this.floorIndex,a),c=Math.ceil(n*l),d=Math.ceil(r*l);this.size.width===c&&this.size.height===d||(this.container.style.width=c+"px",this.container.style.height=d+"px",this.size={width:c,height:d})});m(this,"dispose",()=>{var e,o;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(o=this.container)==null||o.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});m(this,"_disable",e=>{var n,r;const{userAction:o}=e;(n=this.app)==null||n.$destroy(),this.app=void 0,(r=this.container)==null||r.remove(),this.removeEventListener(),this.hooks.emit("disable",{userAction:o})});m(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)});m(this,"onFiveModeChange",(...[e,,,,o])=>{e!=="Topview"&&this.state.visible&&(this.updateState({visible:!1},o),this._hide({userAction:o}))});m(this,"onFivePanoArrived",e=>{var o;!((o=this.five)!=null&&o.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});m(this,"onFiveCameraUpdate",(e,o)=>{!this.state.visible||(this.updatePosition(),this.updateSize())});m(this,"onFiveWantsGesture",e=>{if(!(e!=="pan"&&e!=="pinch"&&e!=="mouseWheel")&&this.state.visible&&!this.state.config.gestureEnable)return!1});m(this,"onFiveWantsMoveToPano",()=>{if(this.state.visible&&this.state.config.preventRoomClick)return!1});m(this,"onFiveInitAnimationEnded",(...[,,e])=>{const{mode:o}=this.five.getCurrentState();o==="Topview"&&!this.isHiddenByHideFunc&&!this.state.visible&&this.state.config.autoShowEnable&&(this.updateState({visible:!0},e),this._show({userAction:e}))});m(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const o=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[o].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});o!=null&&o.selector&&(this.selector=o.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 n={northDesc:"\u5317",modelOpacity:1,hoverEnable:!0,compassEnable:!0,gestureEnable:!1,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,cameraImageUrl:je,attachedTo:Me.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:l=>(l/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:l=>l.toString()},r=o?Dt(o,["selector","scale"]):{},a=B(B({},n),r);this.state={enabled:!0,visible:!1,config:a},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,o,n=!0){return G(this,null,function*(){function r(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const a=e;a&&!a.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 l=JSON.parse(JSON.stringify(e)),c=r(l)?l.data:l,d=this.data;this.data=yield Be(c),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,d),o&&this.updateState(o,n),this.render()})}updatePosition(){var l;const e=ro(this.five,this.floorIndex,this.state.config.attachedTo),o=(l=this.five.model)==null?void 0:l.bounding.getCenter(new I.Vector3).setY(e);if(!o)return;const n=o.clone().project(this.five.camera),r=(n.x+1)/2,a=-(n.y-1)/2;this.container.style.left=r*100+"%",this.container.style.top=a*100+"%"}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}show(){return G(this,arguments,function*(e={}){if(this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show({userAction:o})})}hide(){return G(this,arguments,function*(e={}){if(this.isHiddenByHideFunc=!0,!this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},o),this._hide({userAction:o})})}enable(e={}){if(this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||o),this._enable({userAction:o})}disable(e={}){if(!this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||o),this._disable({userAction:o})}setState(e,o={}){const n=this.state,r=o.userAction!==void 0?o.userAction:!0;if(this.updateState(e,r),e.enabled!==void 0&&n.enabled!==e.enabled){const a={userAction:r};e.enabled?this._enable(a):this._disable(a)}if(e.visible!==void 0&&n.visible!==e.visible){const a={userAction:r};e.visible?this._show(a):this._hide(a)}}changeConfigs(e,o=!0){this.updateState({config:e},o),this.render()}formatData(e){return G(this,null,function*(){return yield Be(e.data)})}_show(e){return G(this,null,function*(){if(!this.state.enabled)return;this.isHiddenByHideFunc=!1;const{userAction:o}=e;this.hooks.emit("show",{userAction:o,auto:!1}),this.five.getCurrentState().mode!=="Topview"&&(yield js(this.five,["Topview",void 0,void 0,o])),this.five.model.show(this.floorIndex),this.updatePosition(),this.updateSize();const n=500,r=this.state.config.modelOpacity;st(this.five,r,n),this.hooks.emit("showAnimationEnded",{userAction:o,auto:!1}),this.render()})}_hide(e){return G(this,null,function*(){if(!this.state.enabled)return;const{userAction:o}=e;this.hooks.emit("hide",{userAction:o,auto:!1});const n=1,r=0;st(this.five,n,r),this.render()})}_enable(e){const{userAction:o}=e;this.addEventListener(),this.wrapper&&this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:o}),this.state.visible&&this._show({userAction:o})}updateState(e,o){const n=this.state,r=e.config?B(B({},n.config),e.config):n.config;this.state=q(B(B({},this.state),e),{config:r}),!Pe(this.state,n,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:o})}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 o=q(B({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude});if(this.app)return this.app.$set(o);this.app=new no({target:this.container,intro:!0,props:o})}}const Hl=(i,t)=>new Fl(i,t);function uo(i,t=200){let e;return function(...o){e||(i(...o),e=setTimeout(function(){e=null},t))}}function Gl(i){s.append_styles(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 Nl(i){let t,e,o;return{c(){t=s.element("div"),e=s.element("div"),o=s.element("div"),s.attr(o,"class","plugin-radar__camera-rotate svelte-1nqrlxd"),s.set_style(o,"background-image","url("+(i[0]||je)+")"),s.set_style(o,"transform",i[1],!1),s.attr(e,"class","plugin-radar__camera-position svelte-1nqrlxd"),s.set_style(e,"transform",i[2],!1),s.attr(t,"class","plugin-radar__camera-wrapper svelte-1nqrlxd")},m(n,r){s.insert(n,t,r),s.append(t,e),s.append(e,o)},p(n,[r]){r&1&&s.set_style(o,"background-image","url("+(n[0]||je)+")"),r&2&&s.set_style(o,"transform",n[1],!1),r&4&&s.set_style(e,"transform",n[2],!1)},i:s.noop,o:s.noop,d(n){n&&s.detach(t)}}}function Wl(i){return`rotate(${Math.floor(i/Math.PI*180)*-1+45}deg)`}function Xl(i,t,e){let o,n,{five:r}=t,{pxmm:a}=t,{floorplanData:l}=t,{cameraImageUrl:c}=t,d=r.getCurrentState().panoIndex,u=r.getCurrentState().longitude;function f(g,A){const b=g.bounding,v=g.observers[A];if(!v)return"";const w=(b.max.x-b.min.x)*a,y=(b.max.y-b.min.y)*a,E=Math.floor(v.positionInImage.x*w),k=Math.floor(v.positionInImage.y*y);return`translate(${E}px, ${k}px)`}function h(g){e(6,d=g)}const p=uo(g=>{e(7,u=g.longitude)},1e3/60);return Z.onMount(()=>(r.on("panoWillArrive",h),r.on("cameraDirectionUpdate",p),function(){r.off("panoWillArrive",h),r.off("cameraDirectionUpdate",p)})),i.$$set=g=>{"five"in g&&e(3,r=g.five),"pxmm"in g&&e(4,a=g.pxmm),"floorplanData"in g&&e(5,l=g.floorplanData),"cameraImageUrl"in g&&e(0,c=g.cameraImageUrl)},i.$$.update=()=>{i.$$.dirty&96&&e(2,o=f(l,d)),i.$$.dirty&128&&e(1,n=Wl(u))},[c,n,o,r,a,l,d,u]}class Yl extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Xl,Nl,s.safe_not_equal,{five:3,pxmm:4,floorplanData:5,cameraImageUrl:0},Gl)}}function Ul(i){s.append_styles(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 Ts(i,t,e){const o=i.slice();return o[1]=t[e],o}function Qs(i,t){let e,o,n=`${t[1].icon.width/16}rem`,r=`${t[1].icon.height/16}rem`,a,l=`${t[1].positionInImage.y*100}%`,c=`${t[1].positionInImage.x*100}%`;return{key:i,first:null,c(){e=s.element("div"),o=s.element("div"),a=s.space(),s.attr(o,"class","plugin-pano-floorplan__extra-object-item svelte-1i87fz7"),s.set_style(o,"background-image",`url(${t[1].icon.url})`),s.set_style(o,"width",n,!1),s.set_style(o,"height",r,!1),s.attr(e,"class","plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"),s.set_style(e,"top",l,!1),s.set_style(e,"left",c,!1),this.first=e},m(d,u){s.insert(d,e,u),s.append(e,o),s.append(e,a)},p(d,u){t=d,u&1&&s.set_style(o,"background-image",`url(${t[1].icon.url})`),u&1&&n!==(n=`${t[1].icon.width/16}rem`)&&s.set_style(o,"width",n,!1),u&1&&r!==(r=`${t[1].icon.height/16}rem`)&&s.set_style(o,"height",r,!1),u&1&&l!==(l=`${t[1].positionInImage.y*100}%`)&&s.set_style(e,"top",l,!1),u&1&&c!==(c=`${t[1].positionInImage.x*100}%`)&&s.set_style(e,"left",c,!1)},d(d){d&&s.detach(e)}}}function Vl(i){let t,e=[],o=new Map,n=i[0];const r=a=>a[1].id;for(let a=0;a<n.length;a+=1){let l=Ts(i,n,a),c=r(l);o.set(c,e[a]=Qs(c,l))}return{c(){t=s.element("div");for(let a=0;a<e.length;a+=1)e[a].c();s.attr(t,"class","plugin-pano-floorplan__extra-objects svelte-1i87fz7")},m(a,l){s.insert(a,t,l);for(let c=0;c<e.length;c+=1)e[c].m(t,null)},p(a,[l]){l&1&&(n=a[0],e=s.update_keyed_each(e,l,r,1,a,n,o,t,s.destroy_block,Qs,null,Ts))},i:s.noop,o:s.noop,d(a){a&&s.detach(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}function Jl(i,t,e){let{extraObjects:o=[]}=t;return i.$$set=n=>{"extraObjects"in n&&e(0,o=n.extraObjects)},[o]}class Zl extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Jl,Vl,s.safe_not_equal,{extraObjects:0},Ul)}}function Os(i){let t,e;const o=[{five:i[0],pxmm:i[1],floorIndex:i[2],floorplanData:i[4],onRoomHeightClick:i[6]}];let n={};for(let r=0;r<o.length;r+=1)n=s.assign(n,o[r]);return t=new Is({props:n}),{c(){s.create_component(t.$$.fragment)},m(r,a){s.mount_component(t,r,a),e=!0},p(r,a){const l=a&87?s.get_spread_update(o,[{five:r[0],pxmm:r[1],floorIndex:r[2],floorplanData:r[4],onRoomHeightClick:r[6]}]):{};t.$set(l)},i(r){e||(s.transition_in(t.$$.fragment,r),e=!0)},o(r){s.transition_out(t.$$.fragment,r),e=!1},d(r){s.destroy_component(t,r)}}}function ql(i){let t,e,o,n,r,a;const l=[{floorIndex:i[2],floorplanData:i[4]}];let c={};for(let u=0;u<l.length;u+=1)c=s.assign(c,l[u]);t=new as({props:c}),o=new Zl({props:{extraObjects:i[5]}});let d=i[3]&&Os(i);return{c(){s.create_component(t.$$.fragment),e=s.space(),s.create_component(o.$$.fragment),n=s.space(),d&&d.c(),r=s.empty()},m(u,f){s.mount_component(t,u,f),s.insert(u,e,f),s.mount_component(o,u,f),s.insert(u,n,f),d&&d.m(u,f),s.insert(u,r,f),a=!0},p(u,[f]){const h=f&20?s.get_spread_update(l,[{floorIndex:u[2],floorplanData:u[4]}]):{};t.$set(h);const p={};f&32&&(p.extraObjects=u[5]),o.$set(p),u[3]?d?(d.p(u,f),f&8&&s.transition_in(d,1)):(d=Os(u),d.c(),s.transition_in(d,1),d.m(r.parentNode,r)):d&&(s.group_outros(),s.transition_out(d,1,1,()=>{d=null}),s.check_outros())},i(u){a||(s.transition_in(t.$$.fragment,u),s.transition_in(o.$$.fragment,u),s.transition_in(d),a=!0)},o(u){s.transition_out(t.$$.fragment,u),s.transition_out(o.$$.fragment,u),s.transition_out(d),a=!1},d(u){s.destroy_component(t,u),u&&s.detach(e),s.destroy_component(o,u),u&&s.detach(n),d&&d.d(u),u&&s.detach(r)}}}function Kl(i,t,e){let o,{five:n}=t,{pxmm:r}=t,{floorIndex:a}=t,{hoverEnable:l}=t,{floorplanData:c}=t,{extraObjects:d=[]}=t;const u=void 0;return i.$$set=f=>{"five"in f&&e(0,n=f.five),"pxmm"in f&&e(1,r=f.pxmm),"floorIndex"in f&&e(2,a=f.floorIndex),"hoverEnable"in f&&e(3,l=f.hoverEnable),"floorplanData"in f&&e(4,c=f.floorplanData),"extraObjects"in f&&e(7,d=f.extraObjects)},i.$$.update=()=>{i.$$.dirty&132&&e(5,o=d==null?void 0:d.filter(f=>f.floorIndex===a))},[n,r,a,l,c,o,u,d]}class $l extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Kl,ql,s.safe_not_equal,{five:0,pxmm:1,floorIndex:2,hoverEnable:3,floorplanData:4,extraObjects:7})}}function ec(i){s.append_styles(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 Rs(i){let t,e,o,n=i[6]!==0&&Fs(i);return{c(){t=s.element("div"),n&&n.c(),s.attr(t,"class","plugin-floorplan-radar svelte-1mvqyqq"),s.add_render_callback(()=>i[12].call(t))},m(r,a){s.insert(r,t,a),n&&n.m(t,null),e=s.add_resize_listener(t,i[12].bind(t)),o=!0},p(r,a){r[6]!==0?n?(n.p(r,a),a&64&&s.transition_in(n,1)):(n=Fs(r),n.c(),s.transition_in(n,1),n.m(t,null)):n&&(s.group_outros(),s.transition_out(n,1,1,()=>{n=null}),s.check_outros())},i(r){o||(s.transition_in(n),o=!0)},o(r){s.transition_out(n),o=!1},d(r){r&&s.detach(t),n&&n.d(),e()}}}function Fs(i){let t,e,o,n,r=`${i[8]}px`,a=`${i[11]}px`,l;const c=[{five:i[0],pxmm:i[9],floorIndex:i[10],floorplanData:i[3],hoverEnable:i[2],extraObjects:i[5]}];let d={};for(let h=0;h<c.length;h+=1)d=s.assign(d,c[h]);e=new $l({props:d});const u=[{pxmm:i[9],five:i[0],floorplanData:i[3],cameraImageUrl:i[4]}];let f={};for(let h=0;h<u.length;h+=1)f=s.assign(f,u[h]);return n=new Yl({props:f}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),s.create_component(n.$$.fragment),s.attr(t,"class","plugin-floorplan-radar-container svelte-1mvqyqq"),s.set_style(t,"width",r,!1),s.set_style(t,"height",a,!1)},m(h,p){s.insert(h,t,p),s.mount_component(e,t,null),s.append(t,o),s.mount_component(n,t,null),l=!0},p(h,p){const g=p&1581?s.get_spread_update(c,[{five:h[0],pxmm:h[9],floorIndex:h[10],floorplanData:h[3],hoverEnable:h[2],extraObjects:h[5]}]):{};e.$set(g);const A=p&537?s.get_spread_update(u,[{pxmm:h[9],five:h[0],floorplanData:h[3],cameraImageUrl:h[4]}]):{};n.$set(A),p&256&&r!==(r=`${h[8]}px`)&&s.set_style(t,"width",r,!1),p&2048&&a!==(a=`${h[11]}px`)&&s.set_style(t,"height",a,!1)},i(h){l||(s.transition_in(e.$$.fragment,h),s.transition_in(n.$$.fragment,h),l=!0)},o(h){s.transition_out(e.$$.fragment,h),s.transition_out(n.$$.fragment,h),l=!1},d(h){h&&s.detach(t),s.destroy_component(e),s.destroy_component(n)}}}function tc(i){let t,e,o=i[1]&&Rs(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[1]?o?(o.p(n,r),r&2&&s.transition_in(o,1)):(o=Rs(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function oc(i,t,e){var v,w;let{five:o}=t,{visible:n}=t,{hoverEnable:r}=t,{floorplanData:a}=t,{cameraImageUrl:l}=t,{extraObjects:c=[]}=t,d=0,u=(w=(v=o.work.observers[o.getCurrentState().panoIndex])==null?void 0:v.floorIndex)!=null?w:0,f=0,h=0,p=0,g=0;function A(y){e(10,u=o.work.observers[y].floorIndex)}Z.onMount(()=>(o.on("panoArrived",A),()=>{o.off("panoArrived",A)}));function b(){f=this.clientWidth,h=this.clientHeight,e(6,f),e(7,h)}return i.$$set=y=>{"five"in y&&e(0,o=y.five),"visible"in y&&e(1,n=y.visible),"hoverEnable"in y&&e(2,r=y.hoverEnable),"floorplanData"in y&&e(3,a=y.floorplanData),"cameraImageUrl"in y&&e(4,l=y.cameraImageUrl),"extraObjects"in y&&e(5,c=y.extraObjects)},i.$$.update=()=>{if(i.$$.dirty&456){const y=Math.min(f,h),{max:E,min:k}=a.bounding,C=E.x-k.x,D=E.y-k.y,x=function(){return C>D?[y,y/C*D]:[y/D*C,y]}();e(8,p=x[0]),e(11,g=x[1]),e(9,d=p/C)}},[o,n,r,a,l,c,f,h,p,d,u,g,b]}class sc extends s.SvelteComponent{constructor(t){super(),s.init(this,t,oc,tc,s.safe_not_equal,{five:0,visible:1,hoverEnable:2,floorplanData:3,cameraImageUrl:4,extraObjects:5},ec)}}class ic extends We{constructor(e,o){super(e);m(this,"name","panoFloorplanRadarPlugin");m(this,"state");m(this,"data");m(this,"app");m(this,"wrapperSelector","");m(this,"wrapper",null);m(this,"disposed",!1);m(this,"extraObjects",[]);m(this,"dispose",()=>{var e;this.disposed=!0,(e=this.app)==null||e.$destroy(),this.wrapper=null,this.wrapperSelector="",this.hooks.emit("dispose")});m(this,"_disable",e=>{var n;const{userAction:o}=e;(n=this.app)==null||n.$destroy(),this.app=void 0,this.hooks.emit("disable",{userAction:o})});this.five=e;const n={hoverEnable:!1,cameraImageUrl:je},r=o!=null&&o.configs?o.configs:{},a=B(B({},n),r);this.state={enabled:!0,visible:!0,config:a},o!=null&&o.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(o==null?void 0:o.wrapper)=="string"?this.wrapperSelector=o.wrapper:(o==null?void 0:o.wrapper)instanceof Element&&(this.wrapper=o.wrapper),e.once("dispose",this.dispose)}load(e,o,n=!0){return G(this,null,function*(){function r(d){return Object.prototype.hasOwnProperty.apply(d,["version"])}const a=JSON.parse(JSON.stringify(e)),l=r(a)?a.data:a,c=this.data;this.data=yield Be(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),o&&this.updateState(o,n),this.render()})}show(){return G(this,arguments,function*(e={}){if(this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show({userAction:o})})}hide(){return G(this,arguments,function*(e={}){if(!this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},o),this._hide({userAction:o})})}enable(e={}){if(this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||o),this._enable({userAction:o})}disable(e={}){if(!this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||o),this._disable({userAction:o})}setState(e,o={}){const n=this.state,r=o.userAction!==void 0?o.userAction:!0;if(this.updateState(e,r),e.enabled!==void 0&&n.enabled!==e.enabled){const a={userAction:r};e.enabled?this._enable(a):this._disable(a)}if(e.visible!==void 0&&n.visible!==e.visible){const a={userAction:r};e.visible?this._show(a):this._hide(a)}}appendTo(e){this.wrapper=e,this.render()}changeConfigs(e,o=!0){this.setState({config:e},{userAction:o}),this.render()}setExtraObjectsWith3DPositions(e){!this.data||(this.extraObjects=Sl(e,this.five,this.data),this.render())}formatData(e){return G(this,null,function*(){return yield Be(e.data)})}_enable(e){const{userAction:o}=e;this.hooks.emit("enable",{userAction:o}),this.state.visible&&this._show({userAction:o})}_show(e){if(this.disposed||!this.state.enabled)return;const{userAction:o}=e;this.hooks.emit("show",{userAction:o}),this.render()}_hide(e){if(this.disposed||!this.state.enabled)return;const{userAction:o}=e;this.hooks.emit("hide",{userAction:o}),this.render()}updateState(e,o){const n=this.state;this.state=B(B({},this.state),e),!Pe(this.state,n,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:o})}render(){if(this.disposed||!this.state.enabled)return;if(!this.wrapper&&this.wrapperSelector){const o=document.querySelector(this.wrapperSelector);this.wrapper=o}if(!this.data||!this.wrapper)return;const e=q(B({},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 sc({target:this.wrapper,props:e})}}const nc=(i,t)=>new ic(i,t),rc=[{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"}],ac=[{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"}],lc=[{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"}],ho=(i,t,e)=>{const o=new I.Matrix4,n=new I.Euler(i,t,e,"YXZ");return o.makeRotationFromEuler(n),o},cc=(i,{scale:t,rotation:e,position:o})=>{if(t&&i.scale.set(t,t,t),e){const[n,r,a]=e;n&&i.applyMatrix4(ho(n,0,0)),r&&i.applyMatrix4(ho(0,r,0)),a&&i.applyMatrix4(ho(0,0,a))}return o&&i.position.set(o.x,o.y,o.z),i};function Hs(i,t){i.traverse(e=>{var o;if(e.type==="Mesh"){const n=e,r=B({map:n.material.map||{}},t);n.material=new M.MeshBasicMaterial(r),n.renderOrder=1,((o=e.parent)==null?void 0:o.type)==="Mesh"&&(e.renderOrder=e.parent.renderOrder+1)}})}const dc=(i,t)=>{var u;const e=t.fbx_url||"//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX",o=(u=t.north_rad)!=null?u:void 0,n={},r=f=>G(this,null,function*(){var O;const h=(f==null?void 0:f.fbx_url)||e,p=(O=f==null?void 0:f.north_rad)!=null?O:o;if(typeof p!="number")throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');const g=i.model.bounding,A=g.max.x-g.min.x,b=g.max.z-g.min.z,v=Math.max(A,b),y=yield new Wo.FBXLoader().loadAsync(h);Hs(y,{transparent:!0,side:I.DoubleSide,blending:I.AdditiveBlending});const E=[0,p-Math.PI/2,0],{model:{bounding:{max:{x:k,z:C},min:{x:D,y:x,z}}}}=i;n.yBase=x;const L={x:(k+D)/2,y:x-1.6,z:(C+z)/2},j=.0045*v;return cc(y,{position:L,rotation:E,scale:j}),n.object=y,!0}),a=({latitude:f})=>{if(!n.object)return;const h=l(f);h&&(n.object.position.y=h)},l=f=>{if(n.yBase===void 0)return;const h=.6;if(f>=Math.PI/4)return n.yBase-(h+1.6);const p=f*(4/Math.PI);return n.yBase-(h*p+1.6)};return{load:r,disable:()=>{!n.object||(i.scene.remove(n.object),i.needsRender=!0,i.off("cameraDirectionUpdate",a))},enable:()=>{if(!n.object)return;const f=l(i.getPose().latitude);f&&(n.object.position.y=f),i.scene.add(n.object),i.needsRender=!0,i.on("cameraDirectionUpdate",a)}}};function uc(i,t){var d,u,f,h,p;const e=(d=t==null?void 0:t.size)!=null?d:512,o=(u=t==null?void 0:t.fontSize)!=null?u:e*(35/256)*1.2,n=(f=t==null?void 0:t.backgroundColor)!=null?f:"rgba(0,0,0,0)",r=(h=t==null?void 0:t.fontColor)!=null?h:"#fff",a=(p=t==null?void 0:t.textAlign)!=null?p:"center",l=document.createElement("canvas");l.setAttribute("width",e+""),l.setAttribute("height",e+"");const c=l.getContext("2d");return c.fillStyle=n,c.fillRect(0,0,e,e),c.font=`${o}px "\u5FAE\u8F6F\u96C5\u9ED1"`,c.textAlign=a,c.fillStyle=r,c.fillText(i,e/2,e*.7),new M.CanvasTexture(l)}const hc=({x:i,y:t,z:e})=>new M.Vector3(i,t,e),fc=(i,t)=>{var A,b,v;const e={},o=(A=t.animationEnabled)!=null?A:!0,n=(b=t.position)!=null?b:void 0,r=(v=t.rad)!=null?v:void 0,a=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx",l=[],c=w=>G(this,null,function*(){var z,L,j,O,P,S,_;const y=(z=w==null?void 0:w.position)!=null?z:n;if(!y)return Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined");const E=hc(y),k=(L=w==null?void 0:w.rad)!=null?L:r,C=(j=w==null?void 0:w.fbx_url)!=null?j:a;if(e.rad=k,k===void 0)return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${k}`);const D=yield new Wo.FBXLoader().loadAsync(C);D.position.copy(E),D.rotation.z=k,D.scale.set(.8,.8,.8),Hs(D,{transparent:!0,side:I.DoubleSide});const x=(_=(S=(P=(O=D.children)==null?void 0:O[0])==null?void 0:P.children)==null?void 0:S[3])==null?void 0:_.clone();return x?(x.material=new M.MeshBasicMaterial({transparent:!0,map:uc("\u5165\u6237\u95E8")}),x.renderOrder=3,D.children[0].add(x),e.object=D,!0):Promise.reject(`ModelEntryDoorGuidePlugin.load(): textMesh is ${x}`)}),d=()=>{if(e.animation)return;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ",e.object);const w=1,y=new M.AnimationMixer(e.object);l.push(y);const E=y.clipAction(e.object.animations[0]);E.timeScale=w;let k;const C=()=>{let L=0,j=0;const O=1e3/30,P=S=>{L=requestAnimationFrame(P);const _=S-j;_<O||(j=S,l.forEach(T=>T.update(_/1e3)),i.needsRender=!0)};return L=requestAnimationFrame(P),()=>{cancelAnimationFrame(L)}},z={play:()=>{k||(E.play(),k=C(),requestAnimationFrame(()=>{e.object&&e.object.rotation.z!==e.rad&&(e.object.rotation.z=e.rad)}))},stop:()=>{E.stop(),k==null||k(),k=void 0}};e.animation=z},u=w=>{var E;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.enable(): object is ",e.object);((E=w==null?void 0:w.animationEnable)!=null?E:o)&&(e.animation||d(),e.animation.play()),i.scene.add(e.object),i.needsRender=!0},f=()=>{!e.object||(e.animation&&e.animation.stop(),i.scene.remove(e.object),i.needsRender=!0)},h=w=>w==="Floorplan"?u():f();return{load:c,enable:w=>(e.enabled||(e.enabled=!0,h(i.currentMode),i.on("modeChange",h),u(w)),!0),disable:()=>(e.enabled&&(e.enabled=!1,f(),i.off("modeChange",h)),!0)}};class fo extends at.default.Tween{constructor(){super(...arguments);m(this,"disposeMethods",[]);m(this,"animationFrameDisposer");m(this,"onDispose",e=>(this.disposeMethods.push(e),this));m(this,"play",()=>(this.start(0),this.animationFrameDisposer=_t(e=>this.update(e)),this));m(this,"dispose",()=>{var e;this.stop(),(e=this.animationFrameDisposer)==null||e.call(this),this.disposeMethods.forEach(o=>o()),this.disposeMethods=[],at.default.remove(this)})}}function Gs(i,t=at.default.Easing.Linear.None){const e=new fo({progress:0}).to({progress:1});return i!==void 0&&e.duration(i),t!==void 0&&e.easing(t),e}const ft=window.requestAnimationFrame||(i=>setTimeout(i,16)),mc=window.cancelAnimationFrame||clearTimeout;function Lt(i,t=0){t<=0?ft(i):ft(()=>Lt(i,t-1))}function _t(i,t=60){let e=-1,o=0,n=-1;const r=1e3/t;function a(l){n===-1&&(n=l),e=ft(a),!(l-o<r)&&(o=l,i&&i(l-n))}return e=ft(a),function(){mc(e)}}function pc(){const i=Date.now();return new Promise(t=>{ft(()=>{t(Date.now()-i)})})}const gc=At.Easing;function Ac(i,t,e,o=gc.Linear.None){const n=new At.Tween(i).to(t,e).easing(o);Lt(()=>n.start(0));const r=_t(l=>{n.update(l)===!1&&r()}),a=[];return n.onDestroy=l=>(a.push(l),n),n.destroy=function(){this.stop(),Object.assign(n,{_onStartCallback:null,_onUpdateCallback:null,_onCompleteCallback:null,_onStopCallbackL:null});let l;for(;l=a.shift();)l();r()},n}function vc(i,t){return Ac({progress:0},{progress:1},i,t)}var Ns=(i=>(i.Move="Move",i.Rotate="Rotate",i))(Ns||{}),Ie=(i=>(i.Clockwise="Clockwise",i.Anticlockwise="Anticlockwise",i.Loop="Loop",i))(Ie||{});const zt=Math.PI*2;function Ws(i){return(i%zt+zt)%zt}function Xs(i){return i%zt}function mo(i,t,e){return i+(t-i)*e}const po=(i,t,e)=>{const o=Math.PI,n=o*2;return i=Ws(i),t=Ws(t),e===Ie.Anticlockwise&&i<t&&(i+=n),e===Ie.Clockwise&&t<i&&(t+=n),e===Ie.Loop&&t-i>o?po(i,t,Ie.Anticlockwise):e===Ie.Loop&&i-t>o?po(i,t,Ie.Clockwise):{from:i,to:t}},bc=i=>{const t={},e=(c,d,...u)=>G(this,[c,d,...u],function*(r,a,l={preload:!0}){return t.interruptCallback&&t.interruptCallback(!1),l.asyncStartCallback&&(yield l.asyncStartCallback()),r.mode&&r.mode!==i.currentMode&&(yield i.changeMode(r.mode)),l.preload&&r.panoIndex!==void 0&&r.panoIndex!==i.panoIndex&&(yield i.preloadPano(r.panoIndex)),l.asyncEndCallback&&(yield l.asyncEndCallback()),r.panoIndex===void 0&&r.fov===void 0&&r.latitude===void 0&&r.longitude===void 0?!0:yield new Promise((f,h)=>{const p=r.panoIndex!==void 0?r.panoIndex:i.panoIndex;p!==void 0?i.moveToPano(p,Object.assign({duration:a,moveEndCallback:()=>f(!0),moveCancelCallback:()=>h(!1)},r)):h(!1)})}),o=r=>{const a=i.state,l=Xs(a.latitude),c=Xs(r.latitude),{from:d,to:u}=po(a.longitude,r.longitude,r.rotation||Ie.Loop),f=a.fov,h=r.fov;return{from:{latitude:l,longitude:d,fov:f},to:{latitude:c,longitude:u,fov:h}}};return{move:e,rotate:(c,d,...u)=>G(this,[c,d,...u],function*(r,a,l={}){t.interruptCallback&&t.interruptCallback(!1),l.asyncStartCallback&&(yield l.asyncStartCallback()),i.currentMode!==J.Five.Mode.Panorama&&(yield i.changeMode(J.Five.Mode.Panorama)),r.panoIndex!==void 0&&r.panoIndex!==i.panoIndex&&(l.preload&&(yield i.preloadPano(r.panoIndex)),yield new Promise((p,g)=>{if(!r.panoIndex){p(!0);return}i.moveToPano(r.panoIndex,{moveEndCallback:()=>p(!0),moveCancelCallback:()=>g(!1)})})),l.asyncEndCallback&&(yield l.asyncEndCallback());const{from:f,to:h}=o(r);return yield new Promise(p=>{const g=({progress:y})=>{const E={};E.longitude=mo(f.longitude,h.longitude,y),E.latitude=mo(f.latitude,h.latitude,y),E.fov=mo(f.fov,h.fov,y),i.setState(E,!0)},A=()=>{p(!0)},b=()=>{p(!1)},v=r.rotateSpeed?Math.ceil(Math.abs(h.longitude-f.longitude)/r.rotateSpeed*1e3):a,w=vc(v,At.Easing.Linear.None).onUpdate(g).onComplete(A).onDestroy(b);r.rotation===Ie.Loop&&w.repeat(1/0).yoyo(!0),t.interruptCallback=(y=!0)=>{w.destroy(),t.interruptCallback=void 0,t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=void 0),p(y)},t.timeoutId=setTimeout(()=>{t.interruptCallback&&t.interruptCallback(!0)},a)})})}};function Ys(i,t){return i.x===t.x&&i.y===t.y}function Us(i,t){return Math.abs(i)===1/0&&Math.abs(t)===1/0?!0:Math.abs(i-t)<.001}function Mt(i,t){return(t.y-i.y)/(t.x-i.x)}function Vs(i,t,e){const o=Mt(i[1],i[0]),n=Mt(t[1],t[0]);if(isNaN(o)||isNaN(n)||Us(o,n))return!1;if(jt(i[0],t))return i[0];if(jt(i[1],t))return i[1];if(jt(t[0],i))return t[0];if(jt(t[1],i))return t[1];if(e&&!yc(i,t))return!1;const r=i[0],a=t[0];if(Math.abs(o)===1/0)return{x:r.x,y:t[1].y-(t[1].x-r.x)*n};if(Math.abs(n)===1/0)return{x:a.x,y:i[1].y-(i[1].x-a.x)*o};const l=(a.y-r.y+o*r.x-n*a.x)/(o-n),c=o*l-o*r.x+r.y;return{x:l,y:c}}function jt(i,t){return Ys(i,t[0])||Ys(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&&Us(Mt(t[0],i),Mt(i,t[1]))}function Bt(i,t,e){return(i.x-e.x)*(t.y-e.y)-(t.x-e.x)*(i.y-e.y)}function yc(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)&&Bt(t[0],i[1],i[0])*Bt(i[1],t[1],i[0])>0&&Bt(i[0],t[1],t[0])*Bt(t[1],i[1],t[0])>0?1:0}function Js(i,t=0){t<=0?requestAnimationFrame(i):requestAnimationFrame(()=>Js(i,t-1))}const wc=`<style type="text/css">
110
+ `;return i.$$set=r=>{"content"in r&&e(0,o=r.content)},[o,n]}class ba extends s.SvelteComponent{constructor(t){super(),s.init(this,t,va,Aa,s.safe_not_equal,{content:0},ga)}}function ya(i){s.append_styles(i,"svelte-ozpg4a",".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}")}function wa(i){let t,e;return t=new pa({props:{url:i[1].url}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.url=o[1].url),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Ca(i){let t,e;return t=new ba({props:{content:i[0]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.content=o[0]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Pa(i){let t,e,o,n;const r=[Ca,wa],a=[];function l(c,d){return c[0]?0:c[1]?1:-1}return~(e=l(i))&&(o=a[e]=r[e](i)),{c(){t=s.element("div"),o&&o.c(),s.attr(t,"class","floorplan-plugin__base-image svelte-ozpg4a")},m(c,d){s.insert(c,t,d),~e&&a[e].m(t,null),n=!0},p(c,[d]){let u=e;e=l(c),e===u?~e&&a[e].p(c,d):(o&&(s.group_outros(),s.transition_out(a[u],1,1,()=>{a[u]=null}),s.check_outros()),~e?(o=a[e],o?o.p(c,d):(o=a[e]=r[e](c),o.c()),s.transition_in(o,1),o.m(t,null)):o=null)},i(c){n||(s.transition_in(o),n=!0)},o(c){s.transition_out(o),n=!1},d(c){c&&s.detach(t),~e&&a[e].d()}}}function Ia(i,t,e){let o,n,{floorIndex:r}=t,{floorplanData:a}=t;return i.$$set=l=>{"floorIndex"in l&&e(2,r=l.floorIndex),"floorplanData"in l&&e(3,a=l.floorplanData)},i.$$.update=()=>{var l,c;i.$$.dirty&12&&e(1,o=a.outlines[r]),i.$$.dirty&12&&e(0,n=(c=(l=a.outlines)==null?void 0:l[r])==null?void 0:c.svgContent)},[n,o,r,a]}class as extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Ia,Pa,s.safe_not_equal,{floorIndex:2,floorplanData:3},ya)}}function Ea(i){s.append_styles(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 ka(i){let t,e=i[4].outerHTML+"",o;return{c(){t=new s.HtmlTag(!1),o=s.empty(),t.a=o},m(n,r){t.m(e,n,r),s.insert(n,o,r)},p(n,r){r&16&&e!==(e=n[4].outerHTML+"")&&t.p(e)},d(n){n&&s.detach(o),n&&t.d()}}}function xa(i){let t,e=i[0].name+"",o,n,r,a;return{c(){t=s.element("span"),o=s.text(e),n=s.space(),r=s.element("span"),a=s.text(i[5]),s.attr(t,"class","floorplan-plugin__room-name"),s.attr(r,"class","floorplan-plugin__room-size svelte-12pzct5")},m(l,c){s.insert(l,t,c),s.append(t,o),s.insert(l,n,c),s.insert(l,r,c),s.append(r,a)},p(l,c){c&1&&e!==(e=l[0].name+"")&&s.set_data(o,e),c&32&&s.set_data(a,l[5])},d(l){l&&s.detach(t),l&&s.detach(n),l&&s.detach(r)}}}function Da(i){let t;function e(r,a){if(r[1]===void 0)return xa;if(r[4])return ka}let o=e(i),n=o&&o(i);return{c(){t=s.element("div"),n&&n.c(),s.attr(t,"class","floorplan-plugin__room-label-item svelte-12pzct5"),s.set_style(t,"left",i[6],!1),s.set_style(t,"top",i[7],!1),s.set_style(t,"font-size",i[8],!1),s.set_style(t,"opacity",i[3]?"1":"0",!1)},m(r,a){s.insert(r,t,a),n&&n.m(t,null),i[16](t)},p(r,[a]){o===(o=e(r))&&n?n.p(r,a):(n&&n.d(1),n=o&&o(r),n&&(n.c(),n.m(t,null))),a&8&&s.set_style(t,"opacity",r[3]?"1":"0",!1)},i:s.noop,o:s.noop,d(r){r&&s.detach(t),n&&n.d(),i[16](null)}}}function Sa(i,t){const e=i[0],o=i[1];let n=!1;for(let r=0,a=t.length-1;r<t.length;a=r++){const l=t[r][0],c=t[r][1],d=t[a][0],u=t[a][1];c>o!=u>o&&e<(d-l)*(o-c)/(u-c)+l&&(n=!n)}return n}function La(i,t,e){let o,n,r,a,{pxmm:l}=t,{room:c}=t,{hoveredRoom:d}=t,{getRoomAreaText:u}=t,{getLabelElement:f}=t,{adaptiveRoomLabelVisibleEnable:h}=t;function p(x,z){if(z.width===0||z.height===0)return()=>!1;const _=x.path.map(({x:N,y:Q})=>[N,Q]),j=x.roomLabel.position,{x:R,y:P}=j,{width:S,height:L}=z,T=S/2,O=L/2;return function(Q){const H=R*Q,Y=P*Q,U=_.map(([se,ae])=>[se*Q,ae*Q]);return[[H+T,Y-O],[H-T,Y-O],[H-T,Y+O],[H+T,Y+O]].every(se=>Sa(se,U))}}const g=document.body.clientWidth,A=document.body.clientHeight,b=c.roomLabel,v=b.positionInImage.x*100+"%",C=b.positionInImage.y*100+"%",y=(g<500||A<500?10:14)/16+"rem";let E=!1,k,w;d.subscribe(function(z){e(13,E=!!z&&z.id===c.id)}),Z.onMount(()=>{const x=k==null?void 0:k.getClientRects()[0];e(14,w={width:x.width,height:x.height})});function D(x){s.binding_callbacks[x?"unshift":"push"](()=>{k=x,e(2,k)})}return i.$$set=x=>{"pxmm"in x&&e(9,l=x.pxmm),"room"in x&&e(0,c=x.room),"hoveredRoom"in x&&e(10,d=x.hoveredRoom),"getRoomAreaText"in x&&e(11,u=x.getRoomAreaText),"getLabelElement"in x&&e(1,f=x.getLabelElement),"adaptiveRoomLabelVisibleEnable"in x&&e(12,h=x.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{i.$$.dirty&2049&&e(5,o=c.size?u(c.size):""),i.$$.dirty&16385&&e(15,n=w?p(c,w):void 0),i.$$.dirty&3&&e(4,r=f==null?void 0:f(c)),i.$$.dirty&45568&&e(3,a=h?E?!0:!!(n!=null&&n(l)):!0)},[c,f,k,a,r,o,v,C,y,l,d,u,h,E,w,n,D]}class _a extends s.SvelteComponent{constructor(t){super(),s.init(this,t,La,Da,s.safe_not_equal,{pxmm:9,room:0,hoveredRoom:10,getRoomAreaText:11,getLabelElement:1,adaptiveRoomLabelVisibleEnable:12},Ea)}}function za(i){s.append_styles(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 ls(i,t,e){const o=i.slice();return o[10]=t[e],o}function cs(i){let t,e=[],o=new Map,n,r,a=i[6];const l=c=>c[10].id;for(let c=0;c<a.length;c+=1){let d=ls(i,a,c),u=l(d);o.set(u,e[c]=ds(u,d))}return{c(){t=s.element("div");for(let c=0;c<e.length;c+=1)e[c].c();s.attr(t,"class","floorplan-plugin__room-labels svelte-13xux0b"),s.add_render_callback(()=>i[9].call(t))},m(c,d){s.insert(c,t,d);for(let u=0;u<e.length;u+=1)e[u].m(t,null);n=s.add_resize_listener(t,i[9].bind(t)),r=!0},p(c,d){d&111&&(a=c[6],s.group_outros(),e=s.update_keyed_each(e,d,l,1,c,a,o,t,s.outro_and_destroy_block,ds,null,ls),s.check_outros())},i(c){if(!r){for(let d=0;d<a.length;d+=1)s.transition_in(e[d]);r=!0}},o(c){for(let d=0;d<e.length;d+=1)s.transition_out(e[d]);r=!1},d(c){c&&s.detach(t);for(let d=0;d<e.length;d+=1)e[d].d();n()}}}function ds(i,t){let e,o,n;const r=[{pxmm:t[5],room:t[10],getLabelElement:t[2],getRoomAreaText:t[1],hoveredRoom:t[0],adaptiveRoomLabelVisibleEnable:t[3]}];let a={};for(let l=0;l<r.length;l+=1)a=s.assign(a,r[l]);return o=new _a({props:a}),{key:i,first:null,c(){e=s.empty(),s.create_component(o.$$.fragment),this.first=e},m(l,c){s.insert(l,e,c),s.mount_component(o,l,c),n=!0},p(l,c){t=l;const d=c&111?s.get_spread_update(r,[{pxmm:t[5],room:t[10],getLabelElement:t[2],getRoomAreaText:t[1],hoveredRoom:t[0],adaptiveRoomLabelVisibleEnable:t[3]}]):{};o.$set(d)},i(l){n||(s.transition_in(o.$$.fragment,l),n=!0)},o(l){s.transition_out(o.$$.fragment,l),n=!1},d(l){l&&s.detach(e),s.destroy_component(o,l)}}}function Ma(i){let t,e,o=i[6]&&cs(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[6]?o?(o.p(n,r),r&64&&s.transition_in(o,1)):(o=cs(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function ja(i,t,e){let o,{floorIndex:n}=t,{floorplanData:r}=t,{hoveredRoom:a}=t,{getRoomAreaText:l}=t,{getLabelElement:c}=t,{adaptiveRoomLabelVisibleEnable:d}=t,u=0,f=0;function h(){u=this.clientWidth,e(4,u)}return i.$$set=p=>{"floorIndex"in p&&e(7,n=p.floorIndex),"floorplanData"in p&&e(8,r=p.floorplanData),"hoveredRoom"in p&&e(0,a=p.hoveredRoom),"getRoomAreaText"in p&&e(1,l=p.getRoomAreaText),"getLabelElement"in p&&e(2,c=p.getLabelElement),"adaptiveRoomLabelVisibleEnable"in p&&e(3,d=p.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{if(i.$$.dirty&384&&e(6,o=r.floorDatas[n].rooms),i.$$.dirty&272){const{max:p,min:g}=r.bounding,A=p.x-g.x;e(5,f=u/A)}},[a,l,c,d,u,f,o,n,r,h]}class Ba extends s.SvelteComponent{constructor(t){super(),s.init(this,t,ja,Ma,s.safe_not_equal,{floorIndex:7,floorplanData:8,hoveredRoom:0,getRoomAreaText:1,getLabelElement:2,adaptiveRoomLabelVisibleEnable:3},za)}}function Ta(i){s.append_styles(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 us(i,t,e){const o=i.slice();return o[11]=t[e],o[13]=e,o}function hs(i,t,e){const o=i.slice();return o[14]=t[e],o}function fs(i){let t;return{c(){t=s.element("div"),s.attr(t,"class","floorplan-plugin__rule-scale svelte-djlmk4"),s.set_style(t,"left",i[14].left*100+"%",!1),s.set_style(t,"bottom",i[14].bottom*100+"%",!1)},m(e,o){s.insert(e,t,o)},p:s.noop,d(e){e&&s.detach(t)}}}function ms(i,t){let e,o,n=t[1](t[11].distance)+"",r,a;return{key:i,first:null,c(){e=s.element("div"),o=s.element("div"),r=s.text(n),a=s.space(),s.attr(o,"class","floorplan-plugin__rule-text svelte-djlmk4"),s.toggle_class(o,"is-row",t[2]),s.attr(e,"class","floorplan-plugin__rule-text-item svelte-djlmk4"),s.set_style(e,"left",t[11].left*100+"%",!1),s.set_style(e,"bottom",t[11].bottom*100+"%",!1),this.first=e},m(l,c){s.insert(l,e,c),s.append(e,o),s.append(o,r),s.append(e,a)},p(l,c){t=l,c&2&&n!==(n=t[1](t[11].distance)+"")&&s.set_data(r,n)},d(l){l&&s.detach(e)}}}function Qa(i){let t,e,o,n,r,a,l=[],c=new Map,d,u=i[3],f=[];for(let g=0;g<u.length;g+=1)f[g]=fs(hs(i,u,g));let h=i[4];const p=g=>g[13];for(let g=0;g<h.length;g+=1){let A=us(i,h,g),b=p(A);c.set(b,l[g]=ms(b,A))}return{c(){t=s.element("div"),e=s.element("div"),o=s.space(),n=s.element("div");for(let g=0;g<f.length;g+=1)f[g].c();r=s.space(),a=s.element("div");for(let g=0;g<l.length;g+=1)l[g].c();s.attr(e,"class","floorplan-plugin__rule-line svelte-djlmk4"),s.attr(n,"class","floorplan-plugin__rule-scale-wrapper svelte-djlmk4"),s.toggle_class(n,"is-row",i[2]),s.attr(a,"class","floorplan-plugin__rule-text-wrapper svelte-djlmk4"),s.attr(t,"class",d="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+i[0]+" svelte-djlmk4"),s.toggle_class(t,"is-row",i[2]),s.set_style(t,"width",i[2]?"100%":1/16+"rem",!1),s.set_style(t,"height",i[2]?1/16+"rem":"100%",!1)},m(g,A){s.insert(g,t,A),s.append(t,e),s.append(t,o),s.append(t,n);for(let b=0;b<f.length;b+=1)f[b].m(n,null);s.append(t,r),s.append(t,a);for(let b=0;b<l.length;b+=1)l[b].m(a,null)},p(g,[A]){if(A&8){u=g[3];let b;for(b=0;b<u.length;b+=1){const v=hs(g,u,b);f[b]?f[b].p(v,A):(f[b]=fs(v),f[b].c(),f[b].m(n,null))}for(;b<f.length;b+=1)f[b].d(1);f.length=u.length}A&22&&(h=g[4],l=s.update_keyed_each(l,A,p,1,g,h,c,a,s.destroy_block,ms,null,us)),A&1&&d!==(d="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+g[0]+" svelte-djlmk4")&&s.attr(t,"class",d),A&5&&s.toggle_class(t,"is-row",g[2])},i:s.noop,o:s.noop,d(g){g&&s.detach(t),s.destroy_each(f,g);for(let A=0;A<l.length;A+=1)l[A].d()}}}const tt=1e3,ot=180;function Oa(i,t,e){let{type:o}=t,{data:n}=t,{bounding:r}=t,{getRuleDistanceText:a}=t;const l=o==="top"||o==="bottom",c=r.max.x-r.min.x-(tt-ot)*2,d=r.max.y-r.min.y-(tt-ot)*2,u=n.map(([g,A])=>l?[g.x,A.x]:[g.y,A.y]).flat().sort().filter((g,A,b)=>A===0?!0:g!==b[A-1]),f=u.map(g=>{const A=l?(g-r.min.x-tt+ot)/c:0,b=l?0:(g-r.min.y-tt+ot)/d;return{left:A,bottom:b}});f.unshift({left:0,bottom:0}),f.push(l?{left:1,bottom:0}:{left:0,bottom:1});const h=u[u.length-1]-u[0],p=u.map((g,A,b)=>{const v=A===0?0:g-b[A-1],C=A===0?0:(g+b[A-1])/2,y=l?(C-r.min.x-tt+ot)/c:0,E=l?0:(C-r.min.y-tt+ot)/d;return{left:y,bottom:E,distance:v}}).filter(({distance:g})=>g/h>.1);return i.$$set=g=>{"type"in g&&e(0,o=g.type),"data"in g&&e(5,n=g.data),"bounding"in g&&e(6,r=g.bounding),"getRuleDistanceText"in g&&e(1,a=g.getRuleDistanceText)},[o,a,l,f,p,n,r]}class Ra extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Oa,Qa,s.safe_not_equal,{type:0,data:5,bounding:6,getRuleDistanceText:1},Ta)}}function Fa(i){s.append_styles(i,"svelte-1mzj9p3",".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}")}function ps(i,t,e){const o=i.slice();return o[13]=t[e][0],o[14]=t[e][1],o}function gs(i,t){let e,o,n;const r=[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}];let a={};for(let l=0;l<r.length;l+=1)a=s.assign(a,r[l]);return o=new Ra({props:a}),{key:i,first:null,c(){e=s.empty(),s.create_component(o.$$.fragment),this.first=e},m(l,c){s.insert(l,e,c),s.mount_component(o,l,c),n=!0},p(l,c){t=l;const d=c&19?s.get_spread_update(r,[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}]):{};o.$set(d)},i(l){n||(s.transition_in(o.$$.fragment,l),n=!0)},o(l){s.transition_out(o.$$.fragment,l),n=!1},d(l){l&&s.detach(e),s.destroy_component(o,l)}}}function Ha(i){let t,e=[],o=new Map,n,r=i[4];const a=l=>l[13];for(let l=0;l<r.length;l+=1){let c=ps(i,r,l),d=a(c);o.set(d,e[l]=gs(d,c))}return{c(){t=s.element("div");for(let l=0;l<e.length;l+=1)e[l].c();s.attr(t,"class","floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"),s.set_style(t,"width",i[3],!1),s.set_style(t,"height",i[2],!1)},m(l,c){s.insert(l,t,c);for(let d=0;d<e.length;d+=1)e[d].m(t,null);n=!0},p(l,[c]){c&19&&(r=l[4],s.group_outros(),e=s.update_keyed_each(e,c,a,1,l,r,o,t,s.outro_and_destroy_block,gs,null,ps),s.check_outros()),c&8&&s.set_style(t,"width",l[3],!1),c&4&&s.set_style(t,"height",l[2],!1)},i(l){if(!n){for(let c=0;c<r.length;c+=1)s.transition_in(e[c]);n=!0}},o(l){for(let c=0;c<e.length;c+=1)s.transition_out(e[c]);n=!1},d(l){l&&s.detach(t);for(let c=0;c<e.length;c+=1)e[c].d()}}}const As=1e3,vs=180;function Ga(i,t,e){let o,n,r,a,l,c,d,u,f,h,{floorIndex:p}=t,{floorplanData:g}=t,{getRuleDistanceText:A}=t;return i.$$set=b=>{"floorIndex"in b&&e(5,p=b.floorIndex),"floorplanData"in b&&e(6,g=b.floorplanData),"getRuleDistanceText"in b&&e(0,A=b.getRuleDistanceText)},i.$$.update=()=>{i.$$.dirty&64&&e(1,o=g.bounding),i.$$.dirty&96&&e(11,n=g.floorDatas[p].rules),i.$$.dirty&2048&&e(12,r=Object.keys(n)),i.$$.dirty&6144&&e(4,a=r.map(b=>[b,n[b]])),i.$$.dirty&2&&e(9,l=o.max.x-o.min.x),i.$$.dirty&2&&e(7,c=o.max.y-o.min.y),i.$$.dirty&2&&e(10,d=o.max.x-o.min.x-(As-vs)*2),i.$$.dirty&2&&e(8,u=o.max.y-o.min.y-(As-vs)*2),i.$$.dirty&1536&&e(3,f=d/l*100+"%"),i.$$.dirty&384&&e(2,h=u/c*100+"%")},[A,o,h,f,a,p,g,c,u,l,d,n,r]}class Na extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Ga,Ha,s.safe_not_equal,{floorIndex:5,floorplanData:6,getRuleDistanceText:0},Fa)}}function xt(i,t={}){let e="";const{needZ:o,needA:n}=t;return(o?i.slice().concat(i[0]):i.slice()).forEach((a,l)=>{const{x:c,y:d}=t.format?t.format(a):a,u=c+","+d;return l===0?(e+="M"+u,e):n!=null&&n[l]?(e+="A"+n[l]+","+u,e):(e+="L"+u,e)}),e+(o?"Z":"")}function bs({x:i,y:t},e){const{max:o,min:n}=e;return{x:i-n.x,y:o.y-t}}function Wa(i,t){const e=i.x*1e3+t.bounding.origin.x,o=-i.z*1e3+t.bounding.origin.y;return{x:e,y:o}}function Xa(i,t){const e=t.bounding,o=e.max.x-e.min.x,n=e.max.y-e.min.y;return{x:(i.x-e.min.x)/o,y:(e.max.y-i.y)/n}}function Ya(i,t){return Math.max(...t.work.observers.map(o=>i.z>=o.standingPosition.z?o.floorIndex:0))}function Ua(i){let t;return{c(){t=s.svg_element("path"),s.attr(t,"d",i[0]),s.attr(t,"fill","#2F313A")},m(e,o){s.insert(e,t,o)},p(e,[o]){o&1&&s.attr(t,"d",e[0])},i:s.noop,o:s.noop,d(e){e&&s.detach(t)}}}function Va(i,t,e){let o,{path:n}=t;return i.$$set=r=>{"path"in r&&e(1,n=r.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,o=xt(n,{needZ:!0}))},[o,n]}class Ja extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Va,Ua,s.safe_not_equal,{path:1})}}function Za(i){let t,e,o,n,r,a;return{c(){t=s.svg_element("defs"),e=s.svg_element("pattern"),o=s.svg_element("rect"),n=s.svg_element("path"),r=s.space(),a=s.svg_element("path"),s.attr(o,"x","0"),s.attr(o,"y","0"),s.attr(o,"width",i[1]),s.attr(o,"height",i[1]),s.attr(o,"fill","#323747"),s.attr(n,"d",i[2]),s.attr(n,"stroke","#ffffff"),s.attr(n,"stroke-opacity","0.06"),s.attr(n,"stroke-width","0.5"),s.attr(n,"fill","none"),s.attr(e,"id","fpm-room-pattern-0"),s.attr(e,"x","0"),s.attr(e,"y","0"),s.attr(e,"width",i[1]),s.attr(e,"height",i[1]),s.attr(e,"patternUnits","userSpaceOnUse"),s.attr(e,"patternTransform","scale(50 50)"),s.attr(a,"d",i[0]),s.attr(a,"fill","url(#fpm-room-pattern-0)")},m(l,c){s.insert(l,t,c),s.append(t,e),s.append(e,o),s.append(e,n),s.insert(l,r,c),s.insert(l,a,c)},p(l,[c]){c&1&&s.attr(a,"d",l[0])},i:s.noop,o:s.noop,d(l){l&&s.detach(t),l&&s.detach(r),l&&s.detach(a)}}}const io=6;function qa(i,t,e){let o,{path:n}=t;const r=io*2,a=`M0 ${io} h ${r} M${io} 0 v ${r}`;return i.$$set=l=>{"path"in l&&e(3,n=l.path)},i.$$.update=()=>{i.$$.dirty&8&&e(0,o=xt(n,{needZ:!0}))},[o,r,a,n]}class Ka extends s.SvelteComponent{constructor(t){super(),s.init(this,t,qa,Za,s.safe_not_equal,{path:3})}}function $a(i){let t,e,o,n,r,a,l,c,d,u,f;return{c(){t=s.svg_element("defs"),e=s.svg_element("pattern"),o=s.svg_element("rect"),n=s.svg_element("pattern"),r=s.svg_element("rect"),a=s.space(),l=s.svg_element("path"),c=s.space(),d=s.svg_element("path"),u=s.space(),f=s.svg_element("path"),s.attr(o,"x","0"),s.attr(o,"y","0"),s.attr(o,"width","6"),s.attr(o,"height","50"),s.attr(o,"fill","none"),s.attr(o,"stroke","#4B4B57"),s.attr(o,"stroke-width","0.5"),s.attr(e,"id","room-material-pattern-1"),s.attr(e,"x","0"),s.attr(e,"y","0"),s.attr(e,"width","12"),s.attr(e,"height","50"),s.attr(e,"patternUnits","userSpaceOnUse"),s.attr(e,"patternTransform","scale(50 50)"),s.attr(r,"x","0"),s.attr(r,"y","0"),s.attr(r,"width","6"),s.attr(r,"height","50"),s.attr(r,"fill","none"),s.attr(r,"stroke","#4B4B57"),s.attr(r,"stroke-width","0.5"),s.attr(n,"id","room-material-pattern-2"),s.attr(n,"x","6"),s.attr(n,"y","25"),s.attr(n,"width","12"),s.attr(n,"height","50"),s.attr(n,"patternUnits","userSpaceOnUse"),s.attr(n,"patternTransform","scale(50 50)"),s.attr(l,"d",i[0]),s.attr(l,"fill","#43434D"),s.attr(d,"d",i[0]),s.attr(d,"fill","url(#room-material-pattern-1)"),s.attr(f,"d",i[0]),s.attr(f,"fill","url(#room-material-pattern-2)")},m(h,p){s.insert(h,t,p),s.append(t,e),s.append(e,o),s.append(t,n),s.append(n,r),s.insert(h,a,p),s.insert(h,l,p),s.insert(h,c,p),s.insert(h,d,p),s.insert(h,u,p),s.insert(h,f,p)},p(h,[p]){p&1&&s.attr(l,"d",h[0]),p&1&&s.attr(d,"d",h[0]),p&1&&s.attr(f,"d",h[0])},i:s.noop,o:s.noop,d(h){h&&s.detach(t),h&&s.detach(a),h&&s.detach(l),h&&s.detach(c),h&&s.detach(d),h&&s.detach(u),h&&s.detach(f)}}}function el(i,t,e){let o,{path:n}=t;return i.$$set=r=>{"path"in r&&e(1,n=r.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,o=xt(n,{needZ:!0}))},[o,n]}class tl extends s.SvelteComponent{constructor(t){super(),s.init(this,t,el,$a,s.safe_not_equal,{path:1})}}function ol(i){s.append_styles(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 ys(i,t,e){const o=i.slice();return o[5]=t[e],o}function sl(i){let t,e;return t=new Ka({props:{path:i[5].path}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.path=o[5].path),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function il(i){let t,e;return t=new tl({props:{path:i[5].path}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.path=o[5].path),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function nl(i){let t,e;return t=new Ja({props:{path:i[5].path}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.path=o[5].path),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function ws(i){let t,e,o,n;const r=[nl,il,sl],a=[];function l(c,d){return c[5].floorType===1?0:c[5].floorType===0?1:2}return e=l(i),o=a[e]=r[e](i),{c(){t=s.svg_element("svg"),o.c(),s.attr(t,"width","100%"),s.attr(t,"height","100%"),s.attr(t,"viewBox",`0 0 ${i[1]} ${i[2]}`),s.attr(t,"class","svelte-1dykexu")},m(c,d){s.insert(c,t,d),a[e].m(t,null),n=!0},p(c,d){let u=e;e=l(c),e===u?a[e].p(c,d):(s.group_outros(),s.transition_out(a[u],1,1,()=>{a[u]=null}),s.check_outros(),o=a[e],o?o.p(c,d):(o=a[e]=r[e](c),o.c()),s.transition_in(o,1),o.m(t,null))},i(c){n||(s.transition_in(o),n=!0)},o(c){s.transition_out(o),n=!1},d(c){c&&s.detach(t),a[e].d()}}}function rl(i){let t,e,o=i[0],n=[];for(let a=0;a<o.length;a+=1)n[a]=ws(ys(i,o,a));const r=a=>s.transition_out(n[a],1,1,()=>{n[a]=null});return{c(){t=s.element("div");for(let a=0;a<n.length;a+=1)n[a].c();s.attr(t,"class","floorplan-plugin__room-material svelte-1dykexu")},m(a,l){s.insert(a,t,l);for(let c=0;c<n.length;c+=1)n[c].m(t,null);e=!0},p(a,[l]){if(l&7){o=a[0];let c;for(c=0;c<o.length;c+=1){const d=ys(a,o,c);n[c]?(n[c].p(d,l),s.transition_in(n[c],1)):(n[c]=ws(d),n[c].c(),s.transition_in(n[c],1),n[c].m(t,null))}for(s.group_outros(),c=o.length;c<n.length;c+=1)r(c);s.check_outros()}},i(a){if(!e){for(let l=0;l<o.length;l+=1)s.transition_in(n[l]);e=!0}},o(a){n=n.filter(Boolean);for(let l=0;l<n.length;l+=1)s.transition_out(n[l]);e=!1},d(a){a&&s.detach(t),s.destroy_each(n,a)}}}function al(i,t,e){let o,{floorIndex:n}=t,{floorplanData:r}=t;const a=r.bounding.max.x-r.bounding.min.x,l=r.bounding.max.y-r.bounding.min.y;return i.$$set=c=>{"floorIndex"in c&&e(3,n=c.floorIndex),"floorplanData"in c&&e(4,r=c.floorplanData)},i.$$.update=()=>{i.$$.dirty&24&&e(0,o=r.floorDatas[n].rooms.map(c=>q(B({},c),{path:c.path.map(d=>bs(d,r.bounding))})))},[o,a,l,n,r]}class ll extends s.SvelteComponent{constructor(t){super(),s.init(this,t,al,rl,s.safe_not_equal,{floorIndex:3,floorplanData:4},ol)}}function cl(i){s.append_styles(i,"svelte-19uvvss","path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}")}function dl(i){let t,e,o;return{c(){t=s.svg_element("path"),s.attr(t,"d",i[2]),s.attr(t,"fill","#fff"),s.attr(t,"class","svelte-19uvvss")},m(n,r){s.insert(n,t,r),e||(o=[s.listen(t,"mouseenter",i[0]),s.listen(t,"mouseleave",i[1])],e=!0)},p:s.noop,i:s.noop,o:s.noop,d(n){n&&s.detach(t),e=!1,s.run_all(o)}}}function ul(i,t,e){let{room:o}=t,{floorplanData:n}=t,{hoveredRoom:r}=t;function a(){r.set(o)}function l(){r.set(void 0)}const{bounding:c}=n,d=xt(o.path,{needZ:!0,format:u=>bs(u,c)});return i.$$set=u=>{"room"in u&&e(3,o=u.room),"floorplanData"in u&&e(4,n=u.floorplanData),"hoveredRoom"in u&&e(5,r=u.hoveredRoom)},[a,l,d,o,n,r]}class hl extends s.SvelteComponent{constructor(t){super(),s.init(this,t,ul,dl,s.safe_not_equal,{room:3,floorplanData:4,hoveredRoom:5},cl)}}function fl(i){s.append_styles(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 Cs(i,t,e){const o=i.slice();return o[5]=t[e],o}function Ps(i,t){let e,o,n;const r=[{room:t[5],floorplanData:t[1],hoveredRoom:t[2]}];let a={};for(let l=0;l<r.length;l+=1)a=s.assign(a,r[l]);return o=new hl({props:a}),{key:i,first:null,c(){e=s.empty(),s.create_component(o.$$.fragment),this.first=e},m(l,c){s.insert(l,e,c),s.mount_component(o,l,c),n=!0},p(l,c){t=l;const d=c&7?s.get_spread_update(r,[{room:t[5],floorplanData:t[1],hoveredRoom:t[2]}]):{};o.$set(d)},i(l){n||(s.transition_in(o.$$.fragment,l),n=!0)},o(l){s.transition_out(o.$$.fragment,l),n=!1},d(l){l&&s.detach(e),s.destroy_component(o,l)}}}function ml(i){let t,e,o=[],n=new Map,r,a=i[1].floorDatas[i[0]].rooms;const l=c=>c[5].id;for(let c=0;c<a.length;c+=1){let d=Cs(i,a,c),u=l(d);n.set(u,o[c]=Ps(u,d))}return{c(){t=s.element("div"),e=s.svg_element("svg");for(let c=0;c<o.length;c+=1)o[c].c();s.attr(e,"width","100%"),s.attr(e,"height","100%"),s.attr(e,"viewBox",`0 0 ${i[3]} ${i[4]}`),s.attr(e,"class","svelte-1kqo6e4"),s.attr(t,"class","floorplan-plugin__room-highlight svelte-1kqo6e4")},m(c,d){s.insert(c,t,d),s.append(t,e);for(let u=0;u<o.length;u+=1)o[u].m(e,null);r=!0},p(c,[d]){d&7&&(a=c[1].floorDatas[c[0]].rooms,s.group_outros(),o=s.update_keyed_each(o,d,l,1,c,a,n,e,s.outro_and_destroy_block,Ps,null,Cs),s.check_outros())},i(c){if(!r){for(let d=0;d<a.length;d+=1)s.transition_in(o[d]);r=!0}},o(c){for(let d=0;d<o.length;d+=1)s.transition_out(o[d]);r=!1},d(c){c&&s.detach(t);for(let d=0;d<o.length;d+=1)o[d].d()}}}function pl(i,t,e){let{floorIndex:o}=t,{floorplanData:n}=t,{hoveredRoom:r}=t;const a=n.bounding.max.x-n.bounding.min.x,l=n.bounding.max.y-n.bounding.min.y;return i.$$set=c=>{"floorIndex"in c&&e(0,o=c.floorIndex),"floorplanData"in c&&e(1,n=c.floorplanData),"hoveredRoom"in c&&e(2,r=c.hoveredRoom)},[o,n,r,a,l]}class Is extends s.SvelteComponent{constructor(t){super(),s.init(this,t,pl,ml,s.safe_not_equal,{floorIndex:0,floorplanData:1,hoveredRoom:2},fl)}}function gl(i){s.append_styles(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 Es(i){let t,e;const o=[{floorIndex:i[1],floorplanData:i[5],hoveredRoom:i[10]}];let n={};for(let r=0;r<o.length;r+=1)n=s.assign(n,o[r]);return t=new Is({props:n}),{c(){s.create_component(t.$$.fragment)},m(r,a){s.mount_component(t,r,a),e=!0},p(r,a){const l=a&1058?s.get_spread_update(o,[{floorIndex:r[1],floorplanData:r[5],hoveredRoom:r[10]}]):{};t.$set(l)},i(r){e||(s.transition_in(t.$$.fragment,r),e=!0)},o(r){s.transition_out(t.$$.fragment,r),e=!1},d(r){s.destroy_component(t,r)}}}function ks(i){let t,e;const o=[{floorplanData:i[5],floorIndex:i[1],getRoomAreaText:i[6],getLabelElement:i[7],hoveredRoom:i[10],adaptiveRoomLabelVisibleEnable:i[9]}];let n={};for(let r=0;r<o.length;r+=1)n=s.assign(n,o[r]);return t=new Ba({props:n}),{c(){s.create_component(t.$$.fragment)},m(r,a){s.mount_component(t,r,a),e=!0},p(r,a){const l=a&1762?s.get_spread_update(o,[{floorplanData:r[5],floorIndex:r[1],getRoomAreaText:r[6],getLabelElement:r[7],hoveredRoom:r[10],adaptiveRoomLabelVisibleEnable:r[9]}]):{};t.$set(l)},i(r){e||(s.transition_in(t.$$.fragment,r),e=!0)},o(r){s.transition_out(t.$$.fragment,r),e=!1},d(r){s.destroy_component(t,r)}}}function xs(i){let t,e;const o=[{floorplanData:i[5],floorIndex:i[1],getRuleDistanceText:i[8]}];let n={};for(let r=0;r<o.length;r+=1)n=s.assign(n,o[r]);return t=new Na({props:n}),{c(){s.create_component(t.$$.fragment)},m(r,a){s.mount_component(t,r,a),e=!0},p(r,a){const l=a&290?s.get_spread_update(o,[{floorplanData:r[5],floorIndex:r[1],getRuleDistanceText:r[8]}]):{};t.$set(l)},i(r){e||(s.transition_in(t.$$.fragment,r),e=!0)},o(r){s.transition_out(t.$$.fragment,r),e=!1},d(r){s.destroy_component(t,r)}}}function Al(i){let t,e,o,n,r,a,l,c,d;const u=[{floorIndex:i[1],floorplanData:i[5]}];let f={};for(let v=0;v<u.length;v+=1)f=s.assign(f,u[v]);e=new ll({props:f});let h=i[2]&&Es(i);const p=[{floorplanData:i[5],floorIndex:i[1]}];let g={};for(let v=0;v<p.length;v+=1)g=s.assign(g,p[v]);r=new as({props:g});let A=i[3]&&ks(i),b=i[4]&&xs(i);return{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),h&&h.c(),n=s.space(),s.create_component(r.$$.fragment),a=s.space(),A&&A.c(),l=s.space(),b&&b.c(),s.attr(t,"class",c=s.null_to_empty(`floorplan-plugin__floor${i[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz")},m(v,C){s.insert(v,t,C),s.mount_component(e,t,null),s.append(t,o),h&&h.m(t,null),s.append(t,n),s.mount_component(r,t,null),s.append(t,a),A&&A.m(t,null),s.append(t,l),b&&b.m(t,null),d=!0},p(v,[C]){const y=C&34?s.get_spread_update(u,[{floorIndex:v[1],floorplanData:v[5]}]):{};e.$set(y),v[2]?h?(h.p(v,C),C&4&&s.transition_in(h,1)):(h=Es(v),h.c(),s.transition_in(h,1),h.m(t,n)):h&&(s.group_outros(),s.transition_out(h,1,1,()=>{h=null}),s.check_outros());const E=C&34?s.get_spread_update(p,[{floorplanData:v[5],floorIndex:v[1]}]):{};r.$set(E),v[3]?A?(A.p(v,C),C&8&&s.transition_in(A,1)):(A=ks(v),A.c(),s.transition_in(A,1),A.m(t,l)):A&&(s.group_outros(),s.transition_out(A,1,1,()=>{A=null}),s.check_outros()),v[4]?b?(b.p(v,C),C&16&&s.transition_in(b,1)):(b=xs(v),b.c(),s.transition_in(b,1),b.m(t,null)):b&&(s.group_outros(),s.transition_out(b,1,1,()=>{b=null}),s.check_outros()),(!d||C&1&&c!==(c=s.null_to_empty(`floorplan-plugin__floor${v[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz"))&&s.attr(t,"class",c)},i(v){d||(s.transition_in(e.$$.fragment,v),s.transition_in(h),s.transition_in(r.$$.fragment,v),s.transition_in(A),s.transition_in(b),d=!0)},o(v){s.transition_out(e.$$.fragment,v),s.transition_out(h),s.transition_out(r.$$.fragment,v),s.transition_out(A),s.transition_out(b),d=!1},d(v){v&&s.detach(t),s.destroy_component(e),h&&h.d(),s.destroy_component(r),A&&A.d(),b&&b.d()}}}function vl(i,t,e){let{isCurrent:o}=t,{floorIndex:n}=t,{hoverEnable:r}=t,{roomLabelsEnable:a}=t,{ruleLabelsEnable:l}=t,{floorplanData:c}=t,{getRoomAreaText:d}=t,{getLabelElement:u}=t,{getRuleDistanceText:f}=t,{adaptiveRoomLabelVisibleEnable:h}=t;const p=$t.writable(void 0);return i.$$set=g=>{"isCurrent"in g&&e(0,o=g.isCurrent),"floorIndex"in g&&e(1,n=g.floorIndex),"hoverEnable"in g&&e(2,r=g.hoverEnable),"roomLabelsEnable"in g&&e(3,a=g.roomLabelsEnable),"ruleLabelsEnable"in g&&e(4,l=g.ruleLabelsEnable),"floorplanData"in g&&e(5,c=g.floorplanData),"getRoomAreaText"in g&&e(6,d=g.getRoomAreaText),"getLabelElement"in g&&e(7,u=g.getLabelElement),"getRuleDistanceText"in g&&e(8,f=g.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in g&&e(9,h=g.adaptiveRoomLabelVisibleEnable)},[o,n,r,a,l,c,d,u,f,h,p]}class bl extends s.SvelteComponent{constructor(t){super(),s.init(this,t,vl,Al,s.safe_not_equal,{isCurrent:0,floorIndex:1,hoverEnable:2,roomLabelsEnable:3,ruleLabelsEnable:4,floorplanData:5,getRoomAreaText:6,getLabelElement:7,getRuleDistanceText:8,adaptiveRoomLabelVisibleEnable:9},gl)}}function yl(i){s.append_styles(i,"svelte-86bqav",".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}")}function Ds(i,t,e){const o=i.slice();return o[16]=t[e],o}function Ss(i){let t,e,o,n,r,a,l=i[9].floorDatas,c=[];for(let p=0;p<l.length;p+=1)c[p]=Ls(Ds(i,l,p));const d=p=>s.transition_out(c[p],1,1,()=>{c[p]=null}),u=[{panoIndex:i[3],floorplanData:i[9],lastPanoramaLongitude:i[10],cameraImageUrl:i[11]}];let f={};for(let p=0;p<u.length;p+=1)f=s.assign(f,u[p]);o=new ia({props:f});let h=i[6]&&_s(i);return{c(){t=s.element("div");for(let p=0;p<c.length;p+=1)c[p].c();e=s.space(),s.create_component(o.$$.fragment),n=s.space(),h&&h.c(),s.attr(t,"class","floorplan-main svelte-86bqav")},m(p,g){s.insert(p,t,g);for(let A=0;A<c.length;A+=1)c[A].m(t,null);s.append(t,e),s.mount_component(o,t,null),s.append(t,n),h&&h.m(t,null),a=!0},p(p,g){if(i=p,g&62384){l=i[9].floorDatas;let b;for(b=0;b<l.length;b+=1){const v=Ds(i,l,b);c[b]?(c[b].p(v,g),s.transition_in(c[b],1)):(c[b]=Ls(v),c[b].c(),s.transition_in(c[b],1),c[b].m(t,e))}for(s.group_outros(),b=l.length;b<c.length;b+=1)d(b);s.check_outros()}const A=g&3592?s.get_spread_update(u,[{panoIndex:i[3],floorplanData:i[9],lastPanoramaLongitude:i[10],cameraImageUrl:i[11]}]):{};o.$set(A),i[6]?h?(h.p(i,g),g&64&&s.transition_in(h,1)):(h=_s(i),h.c(),s.transition_in(h,1),h.m(t,null)):h&&(s.group_outros(),s.transition_out(h,1,1,()=>{h=null}),s.check_outros())},i(p){if(!a){for(let g=0;g<l.length;g+=1)s.transition_in(c[g]);s.transition_in(o.$$.fragment,p),s.transition_in(h),r||s.add_render_callback(()=>{r=s.create_in_transition(t,de.fade,{duration:i[0],easing:ce.linear}),r.start()}),a=!0}},o(p){c=c.filter(Boolean);for(let g=0;g<c.length;g+=1)s.transition_out(c[g]);s.transition_out(o.$$.fragment,p),s.transition_out(h),a=!1},d(p){p&&s.detach(t),s.destroy_each(c,p),s.destroy_component(o),h&&h.d()}}}function Ls(i){let t,e;const o=[{hoverEnable:i[5],floorplanData:i[9],getRoomAreaText:i[12],getLabelElement:i[13],getRuleDistanceText:i[14],roomLabelsEnable:i[7],ruleLabelsEnable:i[8],adaptiveRoomLabelVisibleEnable:i[15]},{floorIndex:i[16].floorIndex},{isCurrent:i[16].floorIndex===i[4]}];let n={};for(let r=0;r<o.length;r+=1)n=s.assign(n,o[r]);return t=new bl({props:n}),{c(){s.create_component(t.$$.fragment)},m(r,a){s.mount_component(t,r,a),e=!0},p(r,a){const l=a&62384?s.get_spread_update(o,[a&62368&&{hoverEnable:r[5],floorplanData:r[9],getRoomAreaText:r[12],getLabelElement:r[13],getRuleDistanceText:r[14],roomLabelsEnable:r[7],ruleLabelsEnable:r[8],adaptiveRoomLabelVisibleEnable:r[15]},a&512&&{floorIndex:r[16].floorIndex},a&528&&{isCurrent:r[16].floorIndex===r[4]}]):{};t.$set(l)},i(r){e||(s.transition_in(t.$$.fragment,r),e=!0)},o(r){s.transition_out(t.$$.fragment,r),e=!1},d(r){s.destroy_component(t,r)}}}function _s(i){let t,e;return t=new ua({props:{floorplanData:i[9],northDesc:i[2]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&512&&(r.floorplanData=o[9]),n&4&&(r.northDesc=o[2]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function wl(i){let t,e,o=i[1]&&Ss(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[1]?o?(o.p(n,r),r&2&&s.transition_in(o,1)):(o=Ss(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function Cl(i,t,e){let{duration:o=0}=t,{visible:n}=t,{northDesc:r}=t,{panoIndex:a}=t,{floorIndex:l}=t,{hoverEnable:c}=t,{compassEnable:d}=t,{roomLabelsEnable:u}=t,{ruleLabelsEnable:f}=t,{floorplanData:h}=t,{lastPanoramaLongitude:p}=t,{cameraImageUrl:g}=t,{getRoomAreaText:A}=t,{getLabelElement:b}=t,{getRuleDistanceText:v}=t,{adaptiveRoomLabelVisibleEnable:C}=t;return i.$$set=y=>{"duration"in y&&e(0,o=y.duration),"visible"in y&&e(1,n=y.visible),"northDesc"in y&&e(2,r=y.northDesc),"panoIndex"in y&&e(3,a=y.panoIndex),"floorIndex"in y&&e(4,l=y.floorIndex),"hoverEnable"in y&&e(5,c=y.hoverEnable),"compassEnable"in y&&e(6,d=y.compassEnable),"roomLabelsEnable"in y&&e(7,u=y.roomLabelsEnable),"ruleLabelsEnable"in y&&e(8,f=y.ruleLabelsEnable),"floorplanData"in y&&e(9,h=y.floorplanData),"lastPanoramaLongitude"in y&&e(10,p=y.lastPanoramaLongitude),"cameraImageUrl"in y&&e(11,g=y.cameraImageUrl),"getRoomAreaText"in y&&e(12,A=y.getRoomAreaText),"getLabelElement"in y&&e(13,b=y.getLabelElement),"getRuleDistanceText"in y&&e(14,v=y.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in y&&e(15,C=y.adaptiveRoomLabelVisibleEnable)},[o,n,r,a,l,c,d,u,f,h,p,g,A,b,v,C]}class no extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Cl,wl,s.safe_not_equal,{duration:0,visible:1,northDesc:2,panoIndex:3,floorIndex:4,hoverEnable:5,compassEnable:6,roomLabelsEnable:7,ruleLabelsEnable:8,floorplanData:9,lastPanoramaLongitude:10,cameraImageUrl:11,getRoomAreaText:12,getLabelElement:13,getRuleDistanceText:14,adaptiveRoomLabelVisibleEnable:15},yl)}}const Pl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euq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BZ7nZkb36DhYCreeYHbMUXHvaYi5XDK70EcgulmRjm77wNtenzuXCbmnTRaAx493rbGf3Jr/njMzj920CnKdUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";function Il(i){return G(this,null,function*(){const t=new Headers({"Content-Type":"text/plain"}),e=function(n){return G(this,null,function*(){const r={index:n.index,url:n.url,svgUrl:n.svg_url};if(n.svg_url){const a=yield fetch(n.svg_url,{headers:t}).then(l=>l.text());r.svgContent=a}return r})};return yield Promise.all(i.map(e))})}function El(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 kl(i){return{floorName:i.floor_name,floorIndex:i.floor_index,rooms:i.rooms.map(El),rules:i.rules}}function xl(i){return{index:i.index,floorIndex:i.floor_index,position:i.position,positionInImage:i.position_in_image}}function Dl(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 Be(i){return G(this,null,function*(){const t=yield Il(i.outlines),e=i.computed_data.bounding,o=i.computed_data.floor_datas.map(kl),n=i.computed_data.entrance?Dl(i.computed_data.entrance):null;return{outlines:t,entrance:n,bounding:e,floorDatas:o,observers:i.computed_data.observers.map(xl)}})}function Sl(i,t,e){return i.map(n=>{const r=n.position,a=n.icon?n.icon:{url:Pl,width:45,height:48},l=Ya(r,t),c=Wa(r,e),d=Xa(c,e);return{floorIndex:l,icon:a,id:n.id,position:c,positionInImage:d}})}function Ll(i,t){return t(i),i}function Dt(i,t){return Ll({},e=>{for(const o in i)t.indexOf(o)===-1&&(e[o]=i[o])})}function zs(i,t){const e=Math.max(...i.work.observers.map(o=>o.floorIndex));return t>e?i.model.bounding.max.y:Math.max(...i.work.observers.filter(o=>o.floorIndex===t).map(o=>o.standingPosition.y))}function ro(i,t,e=Me.BOUNDING_CENTER){const o=zs(i,t),n=zs(i,t+1);return e===Me.BOUNDING_CENTER?(i.model.bounding.max.y+i.model.bounding.min.y)/2:e===Me.CEILING?n:o}function ao(i,t,e,o){const n=ro(i,e,o==null?void 0:o.attachedTo),r=new I.Vector3(0,n,0),a=new I.Vector3(1,n,0),l=r.clone().project(i.camera),c=a.clone().project(i.camera);return Math.abs((c.x-l.x)/1e3)*(t.getBoundingClientRect().width/2)}class St{constructor(t,e){m(this,"five");m(this,"hooks",new ut);m(this,"staticPrefix","//vrlab-static.ljcdn.com");this.five=t,e!=null&&e.staticPrefix&&(this.staticPrefix=e.staticPrefix)}getCurrentState(){return this.state}}class We extends St{}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 Ms=500,_l=80;function lo(i,t,e=4){return Math.floor(i*Math.pow(10,e))===Math.floor(t*Math.pow(10,e))}function js(i,t){return G(this,null,function*(){yield new Promise((e,o)=>{i.changeMode(...t).catch(n=>o(n)),i.once("initAnimationEnded",()=>{const n=i.getCurrentState(),r=t[0];n.mode!==r&&o(new Error("mode \u4E0E\u9884\u671F\u4E0D\u7B26")),(()=>{const c=t[1];return c?Object.keys(c).every(d=>{const u=n[d];if(u===void 0)return!0;const f=c[d];return typeof u=="number"&&typeof f=="number"?lo(u,f,2):u===f}):!0})()||o(new Error("five pose \u4E0E\u9884\u671F\u4E0D\u7B26")),e()})})})}function co(i,t){if(i.currentMode!==t.mode)return!1;const{latitude:e,longitude:o,fov:n}=t,{latitude:r,longitude:a}=i.getCurrentState(),l=i.camera.fov;return!(!lo(e,r,2)||!lo(o,a,2)||n!==l)}function Bs(i,t,e=!0){return G(this,null,function*(){if(co(i,t)===!0)return;const n=i.getCurrentState();if(n.mode!==t.mode){const[u]=yield It(js(i,[t.mode,t,void 0,e]));if(u)throw new Error(ge.ChangeModeError);return}const{latitude:r,longitude:a,fov:l}=n,c=Math.min(1e3,Math.max(200,Math.abs(r-Math.PI/2)*1e3,(a>Math.PI?2*Math.PI-a:a)*500,Math.abs(l-t.fov)*10)),[d]=yield It(i.updateCamera(t,c,e));if(d)throw new Error(ge.UpdateCameraError)})}function st(i,t,e=300){const o=i.getElement();!o||(o.style.opacity=t+"",o.style.transition=e===0?"none":`opacity ${e}ms linear`,e!==0&&Promise.race([new Promise(n=>o.addEventListener("transitionend",n,{once:!0})),new Promise(n=>setTimeout(n,e))]).then(()=>{o.style.transition="none"}))}function zl(i){const{latitude:t,longitude:e}=i,o=Math.abs(t-Math.PI/2)>5*Math.PI/180,n=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return o||n}function Ml(i){const{latitude:t,longitude:e}=i,o=Math.abs(t-Math.PI/2)<10*Math.PI/180,n=e<30*(Math.PI/180)||e>330*(Math.PI/180);return o&&n}class jl extends We{constructor(e,o){var l;super(e);m(this,"name","modelFloorplanPlugin");m(this,"state");m(this,"data");m(this,"showState");m(this,"showPromise");m(this,"app");m(this,"panoIndex",0);m(this,"floorIndex",0);m(this,"selector");m(this,"showRejection");m(this,"wrapper");m(this,"container",document.createElement("div"));m(this,"lastPanoramaLongitude",0);m(this,"size",{width:0,height:0});m(this,"hasAddedEventListener",!1);m(this,"isHiddenByHideFunc",!1);m(this,"dispose",()=>{var e,o;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(o=this.container)==null||o.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});m(this,"show",(...o)=>G(this,[...o],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show(e)}));m(this,"hide",(...o)=>G(this,[...o],function*(e={}){!this.state.enabled||(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));m(this,"updateSize",()=>{if(!this.data||!co(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:o}=this.data.bounding,n=o.x-e.x,r=o.y-e.y,a=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,l=ao(this.five,this.wrapper,this.floorIndex,a),c=Math.ceil(n*l),d=Math.ceil(r*l);this.size.width===c&&this.size.height===d||(this.container.style.width=c+"px",this.container.style.height=d+"px",this.size={width:c,height:d})});m(this,"_disable",e=>{var n,r,a;const{userAction:o}=e;this.hooks.emit("disable",{userAction:o}),(n=this.showRejection)==null||n.call(this,ge.BreakOffByDisable),this.showPromise=void 0,(r=this.app)==null||r.$destroy(),this.app=void 0,(a=this.container)==null||a.remove(),this.removeEventListener()});m(this,"_enable",e=>{const{userAction:o}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:o}),this.state.visible&&this._show({userAction:o}))});m(this,"_show",e=>G(this,null,function*(){var a;if(!this.state.enabled)return;if(!((a=this.five.model)!=null&&a.loaded))throw new Error(ge.ModelNotLoaded);if(!this.data)throw new Error(ge.DataNotLoaded);this.isHiddenByHideFunc=!1;const o={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},n=B(B({},o),e),r=()=>G(this,null,function*(){this.hooks.emit("show",{userAction:n.userAction,auto:n.isAutoShow});let l=!1,c;this.showRejection=h=>{l=!0,c=h};const[d]=yield It(Bs(this.five,this.showState,n.userAction));if(d)throw d;if(l)throw c?new Error(c):new Error(ge.UnknownError);this.updateSize(),this.floorIndex=n.floorIndex,this.five.model.show(this.floorIndex);const u=n.modelOpacity,f=n.immediately?0:Ms;st(this.five,u,f),this.render(f)});return this.showPromise=r().then(()=>{this.hooks.emit("showAnimationEnded",{auto:n.isAutoShow,userAction:n.userAction})}).catch(l=>{if(this.updateState({visible:!1},n.userAction),!n.isAutoShow&&l instanceof Error)throw l}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));m(this,"_hide",e=>{var r;(r=this.showRejection)==null||r.call(this,ge.BreakOffByHide),this.showPromise=void 0;const n=B(B({},{userAction:!0,isAutoHide:!1}),e);st(this.five,1,0),this.hooks.emit("hide",{auto:n.isAutoHide,userAction:n.userAction}),this.render()});m(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});m(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)});m(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});m(this,"onFiveInteriaPan",(e,o)=>{if(!o||this.state.config.autoShowEnable===!1||this.isHiddenByHideFunc)return;const n=this.five.getCurrentState();n.mode==="Floorplan"&&(this.state.visible||Ml(n)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})))});m(this,"onFivePanoArrived",e=>{var o;!((o=this.five)!=null&&o.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});m(this,"onFiveCameraUpdate",(e,o)=>{if(!this.state.visible||this.showPromise)return;const n=this.five.getCurrentState();zl(n)&&(this.updateState({visible:!1},o),this._hide({userAction:o,isAutoHide:!0}))});m(this,"onFiveWantsGesture",(e,o)=>{if(!!this.state.visible&&(o.length>1||e==="mouseWheel"))return!1});m(this,"onFiveWantsPanGesture",(e,o)=>{if(this.five.getCurrentState().mode==="Floorplan"&&this.state.config.autoShowEnable!==!1&&o&&this.state.visible)return this.five.updateCamera(this.showState,0),!1});m(this,"onFiveWantsTapGesture",()=>this.handleClick());m(this,"onFiveWantsChangeMode",(e,o)=>{o==="Panorama"&&e==="Floorplan"&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});m(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const o=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[o].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});o!=null&&o.selector&&(this.selector=o.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:_l/((l=o==null?void 0:o.scale)!=null?l:1)};const n={northDesc:"\u5317",modelOpacity:1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,adaptiveRoomLabelVisibleEnable:!0,cameraImageUrl:je,attachedTo:Me.BOUNDING_CENTER,getLabelElement:void 0,getRoomAreaText:c=>(c/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:c=>c.toString()},r=o?Dt(o,["selector","scale"]):{},a=B(B({},n),r);this.state={enabled:!0,visible:!1,config:a},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,o,n=!0){return G(this,null,function*(){function r(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const a=e;a&&!a.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 l=JSON.parse(JSON.stringify(e)),c=r(l)?l.data:l,d=this.data;this.data=yield Be(c),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,d),o&&this.updateState(o,n),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 o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||o),this._enable({userAction:o})}disable(e={}){if(!this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||o),this._disable({userAction:o})}setState(e,o={}){const n=this.state,r=o.userAction!==void 0?o.userAction:!0;if(this.updateState(e,r),e.enabled!==void 0&&n.enabled!==e.enabled&&(e.enabled?this._enable({userAction:r}):this._disable({userAction:r})),e.visible!==void 0&&n.visible!==e.visible){const a={userAction:r};e.visible?this._show(a):this._hide(a)}this.render()}changeConfigs(e,o=!0){this.updateState({config:e},o),this.render()}formatData(e){return G(this,null,function*(){return yield Be(e.data)})}updateState(e,o){const n=this.state,r=e.config?B(B({},n.config),e.config):n.config;this.state=q(B(B({},this.state),e),{config:r}),!Pe(this.state,n,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:o})}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 o=q(B({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude});if(this.app)return this.app.$set(o);this.app=new no({target:this.container,intro:!0,props:o})}}const Bl=(i,t)=>new jl(i,t);function Tl(i){const{latitude:t,longitude:e}=i,o=Math.abs(t-Math.PI/2)>5*Math.PI/180,n=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return o||n}function Ql(i){const{latitude:t,longitude:e}=i,o=Math.abs(t-Math.PI/2)<10*Math.PI/180,n=e<30*(Math.PI/180)||e>330*(Math.PI/180);return o&&n}class Ol extends We{constructor(e,o){super(e);m(this,"name","modelFloorplanPlugin");m(this,"state");m(this,"data");m(this,"showState");m(this,"showPromise");m(this,"app");m(this,"panoIndex",0);m(this,"floorIndex",0);m(this,"selector");m(this,"showRejection");m(this,"wrapper");m(this,"container",document.createElement("div"));m(this,"lastPanoramaLongitude",0);m(this,"size",{width:0,height:0});m(this,"hasAddedEventListener",!1);m(this,"isHiddenByHideFunc",!1);m(this,"dispose",()=>{var e,o;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(o=this.container)==null||o.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});m(this,"show",(...o)=>G(this,[...o],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show(e)}));m(this,"hide",(...o)=>G(this,[...o],function*(e={}){!this.state.enabled||(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));m(this,"updateSize",()=>{if(!this.data||!co(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:o}=this.data.bounding,n=o.x-e.x,r=o.y-e.y,a=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,l=ao(this.five,this.wrapper,this.floorIndex,a),c=Math.ceil(n*l),d=Math.ceil(r*l);this.size.width===c&&this.size.height===d||(this.container.style.width=c+"px",this.container.style.height=d+"px",this.size={width:c,height:d})});m(this,"_disable",e=>{var n,r,a;const{userAction:o}=e;this.hooks.emit("disable",{userAction:o}),(n=this.showRejection)==null||n.call(this,ge.BreakOffByDisable),this.showPromise=void 0,(r=this.app)==null||r.$destroy(),this.app=void 0,(a=this.container)==null||a.remove(),this.removeEventListener()});m(this,"_enable",e=>{const{userAction:o}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:o}),this.state.visible&&this._show({userAction:o}))});m(this,"_show",e=>G(this,null,function*(){var a;if(!this.state.enabled)return;if(!((a=this.five.model)!=null&&a.loaded))throw new Error(ge.ModelNotLoaded);if(!this.data)throw new Error(ge.DataNotLoaded);this.isHiddenByHideFunc=!1;const o={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},n=B(B({},o),e),r=()=>G(this,null,function*(){this.hooks.emit("show",{userAction:n.userAction,auto:n.isAutoShow});let l=!1,c;this.showRejection=h=>{l=!0,c=h};const[d]=yield It(Bs(this.five,this.showState,n.userAction));if(d)throw d;if(l)throw c?new Error(c):new Error(ge.UnknownError);this.updateSize(),this.updatePosition(),this.floorIndex=n.floorIndex,this.five.model.show(this.floorIndex);const u=n.modelOpacity,f=n.immediately?0:Ms;st(this.five,u,f),this.render(f)});return this.showPromise=r().then(()=>{this.hooks.emit("showAnimationEnded",{auto:n.isAutoShow,userAction:n.userAction})}).catch(l=>{if(this.updateState({visible:!1},n.userAction),!n.isAutoShow&&l instanceof Error)throw l}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));m(this,"_hide",e=>{var r;(r=this.showRejection)==null||r.call(this,ge.BreakOffByHide),this.showPromise=void 0;const n=B(B({},{userAction:!0,isAutoHide:!1}),e);st(this.five,1,0),this.hooks.emit("hide",{auto:n.isAutoHide,userAction:n.userAction}),this.render()});m(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});m(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)});m(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});m(this,"onFivePanoArrived",e=>{var o;!((o=this.five)!=null&&o.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});m(this,"onFiveCameraUpdate",(e,o)=>{if(!this.state.visible||this.showPromise)return;const n=this.five.getCurrentState();this.updatePosition(),this.updateSize(),Tl(n)&&(this.updateState({visible:!1},o),this._hide({userAction:o}))});m(this,"onFiveWantsPanGesture",(e,o)=>{if(this.five.getCurrentState().mode===this.showState.mode&&this.state.config.autoShowEnable!==!1){if(o&&this.state.visible)return this.five.updateCamera(this.showState,0),!1;if(o&&!this.state.visible){if(this.isHiddenByHideFunc)return;const n=this.five.getCurrentState();return n.mode!==this.showState.mode||this.state.visible?void 0:(Ql(n)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})),!1)}}});m(this,"onFiveWantsTapGesture",()=>this.handleClick());m(this,"onFiveWantsChangeMode",(e,o)=>{o==="Panorama"&&e===this.showState.mode&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});m(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const o=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[o].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});o!=null&&o.selector&&(this.selector=o.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 n={northDesc:"\u5317",modelOpacity:1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,cameraImageUrl:je,attachedTo:Me.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:l=>(l/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:l=>l.toString()},r=o?Dt(o,["selector","scale"]):{},a=B(B({},n),r);this.state={enabled:!0,visible:!1,config:a},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,o,n=!0){return G(this,null,function*(){function r(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const a=e;a&&!a.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 l=JSON.parse(JSON.stringify(e)),c=r(l)?l.data:l,d=this.data;this.data=yield Be(c),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,d),o&&this.updateState(o,n),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 o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||o),this._enable({userAction:o})}disable(e={}){if(!this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||o),this._disable({userAction:o})}setState(e,o={}){const n=this.state,r=o.userAction!==void 0?o.userAction:!0;if(this.updateState(e,r),e.enabled!==void 0&&n.enabled!==e.enabled&&(e.enabled?this._enable({userAction:r}):this._disable({userAction:r})),e.visible!==void 0&&n.visible!==e.visible){const a={userAction:r};e.visible?this._show(a):this._hide(a)}}changeConfigs(e,o=!0){this.updateState({config:e},o),this.render()}updatePosition(){var l;const e=ro(this.five,this.floorIndex,this.state.config.attachedTo),o=(l=this.five.model)==null?void 0:l.bounding.getCenter(new I.Vector3).setY(e);if(!o)return;const n=o.clone().project(this.five.camera),r=(n.x+1)/2,a=-(n.y-1)/2;this.container.style.left=r*100+"%",this.container.style.top=a*100+"%"}formatData(e){return G(this,null,function*(){return yield Be(e.data)})}updateState(e,o){const n=this.state,r=e.config?B(B({},n.config),e.config):n.config;this.state=q(B(B({},this.state),e),{config:r}),!Pe(this.state,n,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:o})}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 o=q(B({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude});if(this.app)return this.app.$set(o);this.app=new no({target:this.container,intro:!0,props:o})}}const Rl=(i,t)=>new Ol(i,t);class Fl extends We{constructor(e,o){super(e);m(this,"name","topviewFloorplanPlugin");m(this,"state");m(this,"data");m(this,"app");m(this,"selector");m(this,"panoIndex",0);m(this,"floorIndex",0);m(this,"wrapper");m(this,"container",document.createElement("div"));m(this,"lastPanoramaLongitude",0);m(this,"size",{width:0,height:0});m(this,"hasAddedEventListener",!1);m(this,"isHiddenByHideFunc",!1);m(this,"updateSize",()=>{if(!this.data||!this.container||!this.wrapper||this.five.getCurrentState().mode!=="Topview")return;const{min:e,max:o}=this.data.bounding,n=o.x-e.x,r=o.y-e.y,a=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,l=ao(this.five,this.wrapper,this.floorIndex,a),c=Math.ceil(n*l),d=Math.ceil(r*l);this.size.width===c&&this.size.height===d||(this.container.style.width=c+"px",this.container.style.height=d+"px",this.size={width:c,height:d})});m(this,"dispose",()=>{var e,o;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(o=this.container)==null||o.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});m(this,"_disable",e=>{var n,r;const{userAction:o}=e;(n=this.app)==null||n.$destroy(),this.app=void 0,(r=this.container)==null||r.remove(),this.removeEventListener(),this.hooks.emit("disable",{userAction:o})});m(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)});m(this,"onFiveModeChange",(...[e,,,,o])=>{e!=="Topview"&&this.state.visible&&(this.updateState({visible:!1},o),this._hide({userAction:o}))});m(this,"onFivePanoArrived",e=>{var o;!((o=this.five)!=null&&o.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});m(this,"onFiveCameraUpdate",(e,o)=>{!this.state.visible||(this.updatePosition(),this.updateSize())});m(this,"onFiveWantsGesture",e=>{if(!(e!=="pan"&&e!=="pinch"&&e!=="mouseWheel")&&this.state.visible&&!this.state.config.gestureEnable)return!1});m(this,"onFiveWantsMoveToPano",()=>{if(this.state.visible&&this.state.config.preventRoomClick)return!1});m(this,"onFiveInitAnimationEnded",(...[,,e])=>{const{mode:o}=this.five.getCurrentState();o==="Topview"&&!this.isHiddenByHideFunc&&!this.state.visible&&this.state.config.autoShowEnable&&(this.updateState({visible:!0},e),this._show({userAction:e}))});m(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const o=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[o].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});o!=null&&o.selector&&(this.selector=o.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 n={northDesc:"\u5317",modelOpacity:1,hoverEnable:!0,compassEnable:!0,gestureEnable:!1,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,cameraImageUrl:je,attachedTo:Me.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:l=>(l/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:l=>l.toString()},r=o?Dt(o,["selector","scale"]):{},a=B(B({},n),r);this.state={enabled:!0,visible:!1,config:a},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,o,n=!0){return G(this,null,function*(){function r(u){return Object.prototype.hasOwnProperty.apply(u,["version"])}const a=e;a&&!a.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 l=JSON.parse(JSON.stringify(e)),c=r(l)?l.data:l,d=this.data;this.data=yield Be(c),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,d),o&&this.updateState(o,n),this.render()})}updatePosition(){var l;const e=ro(this.five,this.floorIndex,this.state.config.attachedTo),o=(l=this.five.model)==null?void 0:l.bounding.getCenter(new I.Vector3).setY(e);if(!o)return;const n=o.clone().project(this.five.camera),r=(n.x+1)/2,a=-(n.y-1)/2;this.container.style.left=r*100+"%",this.container.style.top=a*100+"%"}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}show(){return G(this,arguments,function*(e={}){if(this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show({userAction:o})})}hide(){return G(this,arguments,function*(e={}){if(this.isHiddenByHideFunc=!0,!this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},o),this._hide({userAction:o})})}enable(e={}){if(this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||o),this._enable({userAction:o})}disable(e={}){if(!this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||o),this._disable({userAction:o})}setState(e,o={}){const n=this.state,r=o.userAction!==void 0?o.userAction:!0;if(this.updateState(e,r),e.enabled!==void 0&&n.enabled!==e.enabled){const a={userAction:r};e.enabled?this._enable(a):this._disable(a)}if(e.visible!==void 0&&n.visible!==e.visible){const a={userAction:r};e.visible?this._show(a):this._hide(a)}}changeConfigs(e,o=!0){this.updateState({config:e},o),this.render()}formatData(e){return G(this,null,function*(){return yield Be(e.data)})}_show(e){return G(this,null,function*(){if(!this.state.enabled)return;this.isHiddenByHideFunc=!1;const{userAction:o}=e;this.hooks.emit("show",{userAction:o,auto:!1}),this.five.getCurrentState().mode!=="Topview"&&(yield js(this.five,["Topview",void 0,void 0,o])),this.five.model.show(this.floorIndex),this.updatePosition(),this.updateSize();const n=500,r=this.state.config.modelOpacity;st(this.five,r,n),this.hooks.emit("showAnimationEnded",{userAction:o,auto:!1}),this.render()})}_hide(e){return G(this,null,function*(){if(!this.state.enabled)return;const{userAction:o}=e;this.hooks.emit("hide",{userAction:o,auto:!1});const n=1,r=0;st(this.five,n,r),this.render()})}_enable(e){const{userAction:o}=e;this.addEventListener(),this.wrapper&&this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:o}),this.state.visible&&this._show({userAction:o})}updateState(e,o){const n=this.state,r=e.config?B(B({},n.config),e.config):n.config;this.state=q(B(B({},this.state),e),{config:r}),!Pe(this.state,n,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:o})}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 o=q(B({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude});if(this.app)return this.app.$set(o);this.app=new no({target:this.container,intro:!0,props:o})}}const Hl=(i,t)=>new Fl(i,t);function uo(i,t=200){let e;return function(...o){e||(i(...o),e=setTimeout(function(){e=null},t))}}function Gl(i){s.append_styles(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 Nl(i){let t,e,o;return{c(){t=s.element("div"),e=s.element("div"),o=s.element("div"),s.attr(o,"class","plugin-radar__camera-rotate svelte-1nqrlxd"),s.set_style(o,"background-image","url("+(i[0]||je)+")"),s.set_style(o,"transform",i[1],!1),s.attr(e,"class","plugin-radar__camera-position svelte-1nqrlxd"),s.set_style(e,"transform",i[2],!1),s.attr(t,"class","plugin-radar__camera-wrapper svelte-1nqrlxd")},m(n,r){s.insert(n,t,r),s.append(t,e),s.append(e,o)},p(n,[r]){r&1&&s.set_style(o,"background-image","url("+(n[0]||je)+")"),r&2&&s.set_style(o,"transform",n[1],!1),r&4&&s.set_style(e,"transform",n[2],!1)},i:s.noop,o:s.noop,d(n){n&&s.detach(t)}}}function Wl(i){return`rotate(${Math.floor(i/Math.PI*180)*-1+45}deg)`}function Xl(i,t,e){let o,n,{five:r}=t,{pxmm:a}=t,{floorplanData:l}=t,{cameraImageUrl:c}=t,d=r.getCurrentState().panoIndex,u=r.getCurrentState().longitude;function f(g,A){const b=g.bounding,v=g.observers[A];if(!v)return"";const C=(b.max.x-b.min.x)*a,y=(b.max.y-b.min.y)*a,E=Math.floor(v.positionInImage.x*C),k=Math.floor(v.positionInImage.y*y);return`translate(${E}px, ${k}px)`}function h(g){e(6,d=g)}const p=uo(g=>{e(7,u=g.longitude)},1e3/60);return Z.onMount(()=>(r.on("panoWillArrive",h),r.on("cameraDirectionUpdate",p),function(){r.off("panoWillArrive",h),r.off("cameraDirectionUpdate",p)})),i.$$set=g=>{"five"in g&&e(3,r=g.five),"pxmm"in g&&e(4,a=g.pxmm),"floorplanData"in g&&e(5,l=g.floorplanData),"cameraImageUrl"in g&&e(0,c=g.cameraImageUrl)},i.$$.update=()=>{i.$$.dirty&96&&e(2,o=f(l,d)),i.$$.dirty&128&&e(1,n=Wl(u))},[c,n,o,r,a,l,d,u]}class Yl extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Xl,Nl,s.safe_not_equal,{five:3,pxmm:4,floorplanData:5,cameraImageUrl:0},Gl)}}function Ul(i){s.append_styles(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 Ts(i,t,e){const o=i.slice();return o[1]=t[e],o}function Qs(i,t){let e,o,n=`${t[1].icon.width/16}rem`,r=`${t[1].icon.height/16}rem`,a,l=`${t[1].positionInImage.y*100}%`,c=`${t[1].positionInImage.x*100}%`;return{key:i,first:null,c(){e=s.element("div"),o=s.element("div"),a=s.space(),s.attr(o,"class","plugin-pano-floorplan__extra-object-item svelte-1i87fz7"),s.set_style(o,"background-image",`url(${t[1].icon.url})`),s.set_style(o,"width",n,!1),s.set_style(o,"height",r,!1),s.attr(e,"class","plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"),s.set_style(e,"top",l,!1),s.set_style(e,"left",c,!1),this.first=e},m(d,u){s.insert(d,e,u),s.append(e,o),s.append(e,a)},p(d,u){t=d,u&1&&s.set_style(o,"background-image",`url(${t[1].icon.url})`),u&1&&n!==(n=`${t[1].icon.width/16}rem`)&&s.set_style(o,"width",n,!1),u&1&&r!==(r=`${t[1].icon.height/16}rem`)&&s.set_style(o,"height",r,!1),u&1&&l!==(l=`${t[1].positionInImage.y*100}%`)&&s.set_style(e,"top",l,!1),u&1&&c!==(c=`${t[1].positionInImage.x*100}%`)&&s.set_style(e,"left",c,!1)},d(d){d&&s.detach(e)}}}function Vl(i){let t,e=[],o=new Map,n=i[0];const r=a=>a[1].id;for(let a=0;a<n.length;a+=1){let l=Ts(i,n,a),c=r(l);o.set(c,e[a]=Qs(c,l))}return{c(){t=s.element("div");for(let a=0;a<e.length;a+=1)e[a].c();s.attr(t,"class","plugin-pano-floorplan__extra-objects svelte-1i87fz7")},m(a,l){s.insert(a,t,l);for(let c=0;c<e.length;c+=1)e[c].m(t,null)},p(a,[l]){l&1&&(n=a[0],e=s.update_keyed_each(e,l,r,1,a,n,o,t,s.destroy_block,Qs,null,Ts))},i:s.noop,o:s.noop,d(a){a&&s.detach(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}function Jl(i,t,e){let{extraObjects:o=[]}=t;return i.$$set=n=>{"extraObjects"in n&&e(0,o=n.extraObjects)},[o]}class Zl extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Jl,Vl,s.safe_not_equal,{extraObjects:0},Ul)}}function Os(i){let t,e;const o=[{five:i[0],pxmm:i[1],floorIndex:i[2],floorplanData:i[4],onRoomHeightClick:i[6]}];let n={};for(let r=0;r<o.length;r+=1)n=s.assign(n,o[r]);return t=new Is({props:n}),{c(){s.create_component(t.$$.fragment)},m(r,a){s.mount_component(t,r,a),e=!0},p(r,a){const l=a&87?s.get_spread_update(o,[{five:r[0],pxmm:r[1],floorIndex:r[2],floorplanData:r[4],onRoomHeightClick:r[6]}]):{};t.$set(l)},i(r){e||(s.transition_in(t.$$.fragment,r),e=!0)},o(r){s.transition_out(t.$$.fragment,r),e=!1},d(r){s.destroy_component(t,r)}}}function ql(i){let t,e,o,n,r,a;const l=[{floorIndex:i[2],floorplanData:i[4]}];let c={};for(let u=0;u<l.length;u+=1)c=s.assign(c,l[u]);t=new as({props:c}),o=new Zl({props:{extraObjects:i[5]}});let d=i[3]&&Os(i);return{c(){s.create_component(t.$$.fragment),e=s.space(),s.create_component(o.$$.fragment),n=s.space(),d&&d.c(),r=s.empty()},m(u,f){s.mount_component(t,u,f),s.insert(u,e,f),s.mount_component(o,u,f),s.insert(u,n,f),d&&d.m(u,f),s.insert(u,r,f),a=!0},p(u,[f]){const h=f&20?s.get_spread_update(l,[{floorIndex:u[2],floorplanData:u[4]}]):{};t.$set(h);const p={};f&32&&(p.extraObjects=u[5]),o.$set(p),u[3]?d?(d.p(u,f),f&8&&s.transition_in(d,1)):(d=Os(u),d.c(),s.transition_in(d,1),d.m(r.parentNode,r)):d&&(s.group_outros(),s.transition_out(d,1,1,()=>{d=null}),s.check_outros())},i(u){a||(s.transition_in(t.$$.fragment,u),s.transition_in(o.$$.fragment,u),s.transition_in(d),a=!0)},o(u){s.transition_out(t.$$.fragment,u),s.transition_out(o.$$.fragment,u),s.transition_out(d),a=!1},d(u){s.destroy_component(t,u),u&&s.detach(e),s.destroy_component(o,u),u&&s.detach(n),d&&d.d(u),u&&s.detach(r)}}}function Kl(i,t,e){let o,{five:n}=t,{pxmm:r}=t,{floorIndex:a}=t,{hoverEnable:l}=t,{floorplanData:c}=t,{extraObjects:d=[]}=t;const u=void 0;return i.$$set=f=>{"five"in f&&e(0,n=f.five),"pxmm"in f&&e(1,r=f.pxmm),"floorIndex"in f&&e(2,a=f.floorIndex),"hoverEnable"in f&&e(3,l=f.hoverEnable),"floorplanData"in f&&e(4,c=f.floorplanData),"extraObjects"in f&&e(7,d=f.extraObjects)},i.$$.update=()=>{i.$$.dirty&132&&e(5,o=d==null?void 0:d.filter(f=>f.floorIndex===a))},[n,r,a,l,c,o,u,d]}class $l extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Kl,ql,s.safe_not_equal,{five:0,pxmm:1,floorIndex:2,hoverEnable:3,floorplanData:4,extraObjects:7})}}function ec(i){s.append_styles(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 Rs(i){let t,e,o,n=i[6]!==0&&Fs(i);return{c(){t=s.element("div"),n&&n.c(),s.attr(t,"class","plugin-floorplan-radar svelte-1mvqyqq"),s.add_render_callback(()=>i[12].call(t))},m(r,a){s.insert(r,t,a),n&&n.m(t,null),e=s.add_resize_listener(t,i[12].bind(t)),o=!0},p(r,a){r[6]!==0?n?(n.p(r,a),a&64&&s.transition_in(n,1)):(n=Fs(r),n.c(),s.transition_in(n,1),n.m(t,null)):n&&(s.group_outros(),s.transition_out(n,1,1,()=>{n=null}),s.check_outros())},i(r){o||(s.transition_in(n),o=!0)},o(r){s.transition_out(n),o=!1},d(r){r&&s.detach(t),n&&n.d(),e()}}}function Fs(i){let t,e,o,n,r=`${i[8]}px`,a=`${i[11]}px`,l;const c=[{five:i[0],pxmm:i[9],floorIndex:i[10],floorplanData:i[3],hoverEnable:i[2],extraObjects:i[5]}];let d={};for(let h=0;h<c.length;h+=1)d=s.assign(d,c[h]);e=new $l({props:d});const u=[{pxmm:i[9],five:i[0],floorplanData:i[3],cameraImageUrl:i[4]}];let f={};for(let h=0;h<u.length;h+=1)f=s.assign(f,u[h]);return n=new Yl({props:f}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),s.create_component(n.$$.fragment),s.attr(t,"class","plugin-floorplan-radar-container svelte-1mvqyqq"),s.set_style(t,"width",r,!1),s.set_style(t,"height",a,!1)},m(h,p){s.insert(h,t,p),s.mount_component(e,t,null),s.append(t,o),s.mount_component(n,t,null),l=!0},p(h,p){const g=p&1581?s.get_spread_update(c,[{five:h[0],pxmm:h[9],floorIndex:h[10],floorplanData:h[3],hoverEnable:h[2],extraObjects:h[5]}]):{};e.$set(g);const A=p&537?s.get_spread_update(u,[{pxmm:h[9],five:h[0],floorplanData:h[3],cameraImageUrl:h[4]}]):{};n.$set(A),p&256&&r!==(r=`${h[8]}px`)&&s.set_style(t,"width",r,!1),p&2048&&a!==(a=`${h[11]}px`)&&s.set_style(t,"height",a,!1)},i(h){l||(s.transition_in(e.$$.fragment,h),s.transition_in(n.$$.fragment,h),l=!0)},o(h){s.transition_out(e.$$.fragment,h),s.transition_out(n.$$.fragment,h),l=!1},d(h){h&&s.detach(t),s.destroy_component(e),s.destroy_component(n)}}}function tc(i){let t,e,o=i[1]&&Rs(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[1]?o?(o.p(n,r),r&2&&s.transition_in(o,1)):(o=Rs(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function oc(i,t,e){var v,C;let{five:o}=t,{visible:n}=t,{hoverEnable:r}=t,{floorplanData:a}=t,{cameraImageUrl:l}=t,{extraObjects:c=[]}=t,d=0,u=(C=(v=o.work.observers[o.getCurrentState().panoIndex])==null?void 0:v.floorIndex)!=null?C:0,f=0,h=0,p=0,g=0;function A(y){e(10,u=o.work.observers[y].floorIndex)}Z.onMount(()=>(o.on("panoArrived",A),()=>{o.off("panoArrived",A)}));function b(){f=this.clientWidth,h=this.clientHeight,e(6,f),e(7,h)}return i.$$set=y=>{"five"in y&&e(0,o=y.five),"visible"in y&&e(1,n=y.visible),"hoverEnable"in y&&e(2,r=y.hoverEnable),"floorplanData"in y&&e(3,a=y.floorplanData),"cameraImageUrl"in y&&e(4,l=y.cameraImageUrl),"extraObjects"in y&&e(5,c=y.extraObjects)},i.$$.update=()=>{if(i.$$.dirty&456){const y=Math.min(f,h),{max:E,min:k}=a.bounding,w=E.x-k.x,D=E.y-k.y,x=function(){return w>D?[y,y/w*D]:[y/D*w,y]}();e(8,p=x[0]),e(11,g=x[1]),e(9,d=p/w)}},[o,n,r,a,l,c,f,h,p,d,u,g,b]}class sc extends s.SvelteComponent{constructor(t){super(),s.init(this,t,oc,tc,s.safe_not_equal,{five:0,visible:1,hoverEnable:2,floorplanData:3,cameraImageUrl:4,extraObjects:5},ec)}}class ic extends We{constructor(e,o){super(e);m(this,"name","panoFloorplanRadarPlugin");m(this,"state");m(this,"data");m(this,"app");m(this,"wrapperSelector","");m(this,"wrapper",null);m(this,"disposed",!1);m(this,"extraObjects",[]);m(this,"dispose",()=>{var e;this.disposed=!0,(e=this.app)==null||e.$destroy(),this.wrapper=null,this.wrapperSelector="",this.hooks.emit("dispose")});m(this,"_disable",e=>{var n;const{userAction:o}=e;(n=this.app)==null||n.$destroy(),this.app=void 0,this.hooks.emit("disable",{userAction:o})});this.five=e;const n={hoverEnable:!1,cameraImageUrl:je},r=o!=null&&o.configs?o.configs:{},a=B(B({},n),r);this.state={enabled:!0,visible:!0,config:a},o!=null&&o.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(o==null?void 0:o.wrapper)=="string"?this.wrapperSelector=o.wrapper:(o==null?void 0:o.wrapper)instanceof Element&&(this.wrapper=o.wrapper),e.once("dispose",this.dispose)}load(e,o,n=!0){return G(this,null,function*(){function r(d){return Object.prototype.hasOwnProperty.apply(d,["version"])}const a=JSON.parse(JSON.stringify(e)),l=r(a)?a.data:a,c=this.data;this.data=yield Be(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),o&&this.updateState(o,n),this.render()})}show(){return G(this,arguments,function*(e={}){if(this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show({userAction:o})})}hide(){return G(this,arguments,function*(e={}){if(!this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},o),this._hide({userAction:o})})}enable(e={}){if(this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||o),this._enable({userAction:o})}disable(e={}){if(!this.state.enabled)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||o),this._disable({userAction:o})}setState(e,o={}){const n=this.state,r=o.userAction!==void 0?o.userAction:!0;if(this.updateState(e,r),e.enabled!==void 0&&n.enabled!==e.enabled){const a={userAction:r};e.enabled?this._enable(a):this._disable(a)}if(e.visible!==void 0&&n.visible!==e.visible){const a={userAction:r};e.visible?this._show(a):this._hide(a)}}appendTo(e){this.wrapper=e,this.render()}changeConfigs(e,o=!0){this.setState({config:e},{userAction:o}),this.render()}setExtraObjectsWith3DPositions(e){!this.data||(this.extraObjects=Sl(e,this.five,this.data),this.render())}formatData(e){return G(this,null,function*(){return yield Be(e.data)})}_enable(e){const{userAction:o}=e;this.hooks.emit("enable",{userAction:o}),this.state.visible&&this._show({userAction:o})}_show(e){if(this.disposed||!this.state.enabled)return;const{userAction:o}=e;this.hooks.emit("show",{userAction:o}),this.render()}_hide(e){if(this.disposed||!this.state.enabled)return;const{userAction:o}=e;this.hooks.emit("hide",{userAction:o}),this.render()}updateState(e,o){const n=this.state;this.state=B(B({},this.state),e),!Pe(this.state,n,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:o})}render(){if(this.disposed||!this.state.enabled)return;if(!this.wrapper&&this.wrapperSelector){const o=document.querySelector(this.wrapperSelector);this.wrapper=o}if(!this.data||!this.wrapper)return;const e=q(B({},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 sc({target:this.wrapper,props:e})}}const nc=(i,t)=>new ic(i,t),rc=[{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"}],ac=[{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"}],lc=[{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"}],ho=(i,t,e)=>{const o=new I.Matrix4,n=new I.Euler(i,t,e,"YXZ");return o.makeRotationFromEuler(n),o},cc=(i,{scale:t,rotation:e,position:o})=>{if(t&&i.scale.set(t,t,t),e){const[n,r,a]=e;n&&i.applyMatrix4(ho(n,0,0)),r&&i.applyMatrix4(ho(0,r,0)),a&&i.applyMatrix4(ho(0,0,a))}return o&&i.position.set(o.x,o.y,o.z),i};function Hs(i,t){i.traverse(e=>{var o;if(e.type==="Mesh"){const n=e,r=B({map:n.material.map||{}},t);n.material=new M.MeshBasicMaterial(r),n.renderOrder=1,((o=e.parent)==null?void 0:o.type)==="Mesh"&&(e.renderOrder=e.parent.renderOrder+1)}})}const dc=(i,t)=>{var u;const e=t.fbx_url||"//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX",o=(u=t.north_rad)!=null?u:void 0,n={},r=f=>G(this,null,function*(){var R;const h=(f==null?void 0:f.fbx_url)||e,p=(R=f==null?void 0:f.north_rad)!=null?R:o;if(typeof p!="number")throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');const g=i.model.bounding,A=g.max.x-g.min.x,b=g.max.z-g.min.z,v=Math.max(A,b),y=yield new Wo.FBXLoader().loadAsync(h);Hs(y,{transparent:!0,side:I.DoubleSide,blending:I.AdditiveBlending});const E=[0,p-Math.PI/2,0],{model:{bounding:{max:{x:k,z:w},min:{x:D,y:x,z}}}}=i;n.yBase=x;const _={x:(k+D)/2,y:x-1.6,z:(w+z)/2},j=.0045*v;return cc(y,{position:_,rotation:E,scale:j}),n.object=y,!0}),a=({latitude:f})=>{if(!n.object)return;const h=l(f);h&&(n.object.position.y=h)},l=f=>{if(n.yBase===void 0)return;const h=.6;if(f>=Math.PI/4)return n.yBase-(h+1.6);const p=f*(4/Math.PI);return n.yBase-(h*p+1.6)};return{load:r,disable:()=>{!n.object||(i.scene.remove(n.object),i.needsRender=!0,i.off("cameraDirectionUpdate",a))},enable:()=>{if(!n.object)return;const f=l(i.getPose().latitude);f&&(n.object.position.y=f),i.scene.add(n.object),i.needsRender=!0,i.on("cameraDirectionUpdate",a)}}};function uc(i,t){var d,u,f,h,p;const e=(d=t==null?void 0:t.size)!=null?d:512,o=(u=t==null?void 0:t.fontSize)!=null?u:e*(35/256)*1.2,n=(f=t==null?void 0:t.backgroundColor)!=null?f:"rgba(0,0,0,0)",r=(h=t==null?void 0:t.fontColor)!=null?h:"#fff",a=(p=t==null?void 0:t.textAlign)!=null?p:"center",l=document.createElement("canvas");l.setAttribute("width",e+""),l.setAttribute("height",e+"");const c=l.getContext("2d");return c.fillStyle=n,c.fillRect(0,0,e,e),c.font=`${o}px "\u5FAE\u8F6F\u96C5\u9ED1"`,c.textAlign=a,c.fillStyle=r,c.fillText(i,e/2,e*.7),new M.CanvasTexture(l)}const hc=({x:i,y:t,z:e})=>new M.Vector3(i,t,e),fc=(i,t)=>{var A,b,v;const e={},o=(A=t.animationEnabled)!=null?A:!0,n=(b=t.position)!=null?b:void 0,r=(v=t.rad)!=null?v:void 0,a=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx",l=[],c=C=>G(this,null,function*(){var z,_,j,R,P,S,L;const y=(z=C==null?void 0:C.position)!=null?z:n;if(!y)return Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined");const E=hc(y),k=(_=C==null?void 0:C.rad)!=null?_:r,w=(j=C==null?void 0:C.fbx_url)!=null?j:a;if(e.rad=k,k===void 0)return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${k}`);const D=yield new Wo.FBXLoader().loadAsync(w);D.position.copy(E),D.rotation.z=k,D.scale.set(.8,.8,.8),Hs(D,{transparent:!0,side:I.DoubleSide});const x=(L=(S=(P=(R=D.children)==null?void 0:R[0])==null?void 0:P.children)==null?void 0:S[3])==null?void 0:L.clone();return x?(x.material=new M.MeshBasicMaterial({transparent:!0,map:uc("\u5165\u6237\u95E8")}),x.renderOrder=3,D.children[0].add(x),e.object=D,!0):Promise.reject(`ModelEntryDoorGuidePlugin.load(): textMesh is ${x}`)}),d=()=>{if(e.animation)return;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ",e.object);const C=1,y=new M.AnimationMixer(e.object);l.push(y);const E=y.clipAction(e.object.animations[0]);E.timeScale=C;let k;const w=()=>{let _=0,j=0;const R=1e3/30,P=S=>{_=requestAnimationFrame(P);const L=S-j;L<R||(j=S,l.forEach(T=>T.update(L/1e3)),i.needsRender=!0)};return _=requestAnimationFrame(P),()=>{cancelAnimationFrame(_)}},z={play:()=>{k||(E.play(),k=w(),requestAnimationFrame(()=>{e.object&&e.object.rotation.z!==e.rad&&(e.object.rotation.z=e.rad)}))},stop:()=>{E.stop(),k==null||k(),k=void 0}};e.animation=z},u=C=>{var E;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.enable(): object is ",e.object);((E=C==null?void 0:C.animationEnable)!=null?E:o)&&(e.animation||d(),e.animation.play()),i.scene.add(e.object),i.needsRender=!0},f=()=>{!e.object||(e.animation&&e.animation.stop(),i.scene.remove(e.object),i.needsRender=!0)},h=C=>C==="Floorplan"?u():f();return{load:c,enable:C=>(e.enabled||(e.enabled=!0,h(i.currentMode),i.on("modeChange",h),u(C)),!0),disable:()=>(e.enabled&&(e.enabled=!1,f(),i.off("modeChange",h)),!0)}};class fo extends at.default.Tween{constructor(){super(...arguments);m(this,"disposeMethods",[]);m(this,"animationFrameDisposer");m(this,"onDispose",e=>(this.disposeMethods.push(e),this));m(this,"play",()=>(this.start(0),this.animationFrameDisposer=_t(e=>this.update(e)),this));m(this,"dispose",()=>{var e;this.stop(),(e=this.animationFrameDisposer)==null||e.call(this),this.disposeMethods.forEach(o=>o()),this.disposeMethods=[],at.default.remove(this)})}}function Gs(i,t=at.default.Easing.Linear.None){const e=new fo({progress:0}).to({progress:1});return i!==void 0&&e.duration(i),t!==void 0&&e.easing(t),e}const ft=window.requestAnimationFrame||(i=>setTimeout(i,16)),mc=window.cancelAnimationFrame||clearTimeout;function Lt(i,t=0){t<=0?ft(i):ft(()=>Lt(i,t-1))}function _t(i,t=60){let e=-1,o=0,n=-1;const r=1e3/t;function a(l){n===-1&&(n=l),e=ft(a),!(l-o<r)&&(o=l,i&&i(l-n))}return e=ft(a),function(){mc(e)}}function pc(){const i=Date.now();return new Promise(t=>{ft(()=>{t(Date.now()-i)})})}const gc=At.Easing;function Ac(i,t,e,o=gc.Linear.None){const n=new At.Tween(i).to(t,e).easing(o);Lt(()=>n.start(0));const r=_t(l=>{n.update(l)===!1&&r()}),a=[];return n.onDestroy=l=>(a.push(l),n),n.destroy=function(){this.stop(),Object.assign(n,{_onStartCallback:null,_onUpdateCallback:null,_onCompleteCallback:null,_onStopCallbackL:null});let l;for(;l=a.shift();)l();r()},n}function vc(i,t){return Ac({progress:0},{progress:1},i,t)}var Ns=(i=>(i.Move="Move",i.Rotate="Rotate",i))(Ns||{}),Ie=(i=>(i.Clockwise="Clockwise",i.Anticlockwise="Anticlockwise",i.Loop="Loop",i))(Ie||{});const zt=Math.PI*2;function Ws(i){return(i%zt+zt)%zt}function Xs(i){return i%zt}function mo(i,t,e){return i+(t-i)*e}const po=(i,t,e)=>{const o=Math.PI,n=o*2;return i=Ws(i),t=Ws(t),e===Ie.Anticlockwise&&i<t&&(i+=n),e===Ie.Clockwise&&t<i&&(t+=n),e===Ie.Loop&&t-i>o?po(i,t,Ie.Anticlockwise):e===Ie.Loop&&i-t>o?po(i,t,Ie.Clockwise):{from:i,to:t}},bc=i=>{const t={},e=(c,d,...u)=>G(this,[c,d,...u],function*(r,a,l={preload:!0}){return t.interruptCallback&&t.interruptCallback(!1),l.asyncStartCallback&&(yield l.asyncStartCallback()),r.mode&&r.mode!==i.currentMode&&(yield i.changeMode(r.mode)),l.preload&&r.panoIndex!==void 0&&r.panoIndex!==i.panoIndex&&(yield i.preloadPano(r.panoIndex)),l.asyncEndCallback&&(yield l.asyncEndCallback()),r.panoIndex===void 0&&r.fov===void 0&&r.latitude===void 0&&r.longitude===void 0?!0:yield new Promise((f,h)=>{const p=r.panoIndex!==void 0?r.panoIndex:i.panoIndex;p!==void 0?i.moveToPano(p,Object.assign({duration:a,moveEndCallback:()=>f(!0),moveCancelCallback:()=>h(!1)},r)):h(!1)})}),o=r=>{const a=i.state,l=Xs(a.latitude),c=Xs(r.latitude),{from:d,to:u}=po(a.longitude,r.longitude,r.rotation||Ie.Loop),f=a.fov,h=r.fov;return{from:{latitude:l,longitude:d,fov:f},to:{latitude:c,longitude:u,fov:h}}};return{move:e,rotate:(c,d,...u)=>G(this,[c,d,...u],function*(r,a,l={}){t.interruptCallback&&t.interruptCallback(!1),l.asyncStartCallback&&(yield l.asyncStartCallback()),i.currentMode!==J.Five.Mode.Panorama&&(yield i.changeMode(J.Five.Mode.Panorama)),r.panoIndex!==void 0&&r.panoIndex!==i.panoIndex&&(l.preload&&(yield i.preloadPano(r.panoIndex)),yield new Promise((p,g)=>{if(!r.panoIndex){p(!0);return}i.moveToPano(r.panoIndex,{moveEndCallback:()=>p(!0),moveCancelCallback:()=>g(!1)})})),l.asyncEndCallback&&(yield l.asyncEndCallback());const{from:f,to:h}=o(r);return yield new Promise(p=>{const g=({progress:y})=>{const E={};E.longitude=mo(f.longitude,h.longitude,y),E.latitude=mo(f.latitude,h.latitude,y),E.fov=mo(f.fov,h.fov,y),i.setState(E,!0)},A=()=>{p(!0)},b=()=>{p(!1)},v=r.rotateSpeed?Math.ceil(Math.abs(h.longitude-f.longitude)/r.rotateSpeed*1e3):a,C=vc(v,At.Easing.Linear.None).onUpdate(g).onComplete(A).onDestroy(b);r.rotation===Ie.Loop&&C.repeat(1/0).yoyo(!0),t.interruptCallback=(y=!0)=>{C.destroy(),t.interruptCallback=void 0,t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=void 0),p(y)},t.timeoutId=setTimeout(()=>{t.interruptCallback&&t.interruptCallback(!0)},a)})})}};function Ys(i,t){return i.x===t.x&&i.y===t.y}function Us(i,t){return Math.abs(i)===1/0&&Math.abs(t)===1/0?!0:Math.abs(i-t)<.001}function Mt(i,t){return(t.y-i.y)/(t.x-i.x)}function Vs(i,t,e){const o=Mt(i[1],i[0]),n=Mt(t[1],t[0]);if(isNaN(o)||isNaN(n)||Us(o,n))return!1;if(jt(i[0],t))return i[0];if(jt(i[1],t))return i[1];if(jt(t[0],i))return t[0];if(jt(t[1],i))return t[1];if(e&&!yc(i,t))return!1;const r=i[0],a=t[0];if(Math.abs(o)===1/0)return{x:r.x,y:t[1].y-(t[1].x-r.x)*n};if(Math.abs(n)===1/0)return{x:a.x,y:i[1].y-(i[1].x-a.x)*o};const l=(a.y-r.y+o*r.x-n*a.x)/(o-n),c=o*l-o*r.x+r.y;return{x:l,y:c}}function jt(i,t){return Ys(i,t[0])||Ys(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&&Us(Mt(t[0],i),Mt(i,t[1]))}function Bt(i,t,e){return(i.x-e.x)*(t.y-e.y)-(t.x-e.x)*(i.y-e.y)}function yc(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)&&Bt(t[0],i[1],i[0])*Bt(i[1],t[1],i[0])>0&&Bt(i[0],t[1],t[0])*Bt(t[1],i[1],t[0])>0?1:0}function Js(i,t=0){t<=0?requestAnimationFrame(i):requestAnimationFrame(()=>Js(i,t-1))}const wc=`<style type="text/css">
111
111
  .PanoRulerPlugin-rule-line {
112
112
  position: absolute;
113
113
  transform-origin: left center;
@@ -200,7 +200,7 @@ transition: all 500ms;
200
200
  <div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(b)}</div>
201
201
  </div>
202
202
  </div>
203
- `,w=document.createElement("div");return w.setAttribute("class","PanoRulerPlugin-rule"),w.setAttribute("data-name",A),w.setAttribute("style","display: none"),w.innerHTML=v,w},n=document.createElement("div");n.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");const r=document.createElement("div");r.innerHTML=wc,n.appendChild(r);const a={},l=(A,b)=>{if(e.loaded)throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");const v=Pc(A,i),w=i.work;if(!w)return!1;for(const y in b){const E=b[y],{standingPosition:k}=w.observers[0],C=E.map(({x:D,z:x,observers:z})=>{const L=z.length>0?A.rooms[A.observers[z[0]]].name:"",j=v[L]?v[L].floor:null;let O=1/0,P={index:0,x:k.x,y:k.y,z:k.z};z.forEach(Q=>{if(!w.observers[Q])return;const{standingPosition:H}=w.observers[Q],Y={index:Q,x:H.x,y:H.y,z:H.z},U=Cc({x:D,z:x},Y);j?U<O&&Math.abs(Y.y-j)<.3&&(O=U,P=Y):U<O&&(O=U,P=Y)});const S=new M.Vector3(D,P.y,x);Object.assign(S,{observers:z});const _=v[L]?v[L].roof:null,T=_?new M.Vector3(D,_,x):null;return T&&Object.assign(T,{observers:z}),{origin:S,vertical:T}});a[y]={origins:C.map(D=>D.origin),rules:[]};for(const{origin:D,vertical:x}of C){if(!x)continue;const z=o(y,D.distanceTo(x));n.append(z),a[y].rules.push({vertical:!0,rule:[D,x],$element:z})}for(let D=0;D<C.length;D++){let x=D+1;x>=C.length&&(x=0);const{origin:z}=C[D],{origin:L}=C[x],j=o(y,z.distanceTo(L));n.append(j),a[y].rules.push({vertical:!1,rule:[z,L],$element:j})}}return e.loaded=!0,!0},c=(A,b,v)=>G(this,null,function*(){const w=A||t.roomInfo,y=b||t.roomRules;if(!w||!y)throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");return e.loaded=!1,e.options=B(B({},e.options),v||{}),i.model.loaded?l(w,y):yield new Promise(E=>i.once("modelLoaded",()=>E(l(w,y))))});t.roomInfo&&t.roomRules&&c(t.roomInfo,t.roomRules);const d=(A,b,v,w)=>{const y=[[{x:0,y:0},{x:v,y:0}],[{x:0,y:0},{x:0,y:w}],[{x:v,y:0},{x:v,y:w}],[{x:0,y:w},{x:v,y:w}]],E=[];for(let k=0;k<y.length;k++){const C=Vs([A,b],[y[k][0],y[k][1]],!0);C&&E.push(C)}return E.length===0?!1:E},u=()=>{var z;const A=(z=i.getElement())==null?void 0:z.parentElement;if(!A||!e.loaded||Object.keys(a).length<=0)return;const{panoIndex:b,camera:v,currentMode:w}=i;if(b===void 0)return;let y;for(const L in a)L.split(",").indexOf(b.toString())>=0&&(y=L);if(!y){for(const L in a)for(const{$element:j}of a[L].rules)j.style.display="none";return}const E=v.position,k=v.getWorldDirection(new M.Vector3),C=A.clientWidth,D=A.clientHeight;if(w!==J.Five.Mode.Panorama){for(const L in a)for(const{$element:j}of a[L].rules)j.style.display="none";return}for(const L in a)for(const{$element:j}of a[L].rules)j.style.display=L===y?"block":"none";const[x]=a[y].origins.slice().filter(L=>L.observers.indexOf(b)>=0).sort((L,j)=>{const O=L.clone().setY(0).sub(E).normalize().angleTo(k.clone().setY(0)),P=j.clone().setY(0).sub(E).normalize().angleTo(k.clone().setY(0));return O-P});for(const{rule:L,vertical:j,$element:O}of a[y].rules){const[P,S]=L,_=O.querySelector(".PanoRulerPlugin-rule-line");if(!_)return;if(!x){O.style.display="none";continue}if(P!==x&&S!==x){O.style.display="none";continue}if(P.distanceTo(S)<.3){O.style.display="none";continue}if(P.observers.indexOf(b)===-1||S.observers.indexOf(b)===-1){O.style.display="none";continue}if(P.clone().sub(E).normalize().angleTo(k)>Math.PI/2){O.style.display="none";continue}if(S.clone().sub(E).normalize().angleTo(k)>Math.PI/2){O.style.display="none";continue}const N=P.distanceTo(S);if(S.clone().sub(S.clone().sub(P).divide(new M.Vector3(2,2,2))).distanceTo(E)/N>8){O.style.display="none";continue}const Y=P.clone().project(v),U=(Y.x+1)/2*C,K=(-Y.y+1)/2*D,se=S.clone().project(v),ae=(se.x+1)/2*C,me=(-se.y+1)/2*D,W=Math.sqrt(Math.pow(ae-U,2)+Math.pow(me-K,2));let te=W,ie=50;const X=d({x:~~U,y:~~K},{x:~~ae,y:~~me},C,D);if(X&&X.length===1&&(x===P?(te=Math.sqrt(Math.pow(X[0].x-U,2)+Math.pow(X[0].y-K,2)),ie=te/W*50):x===S&&(te=Math.sqrt(Math.pow(X[0].x-ae,2)+Math.pow(X[0].y-me,2)),ie=100-te/W*50)),X&&X.length===2){const Re={x:(X[0].x+X[1].x)/2,y:(X[0].y+X[1].y)/2};ie=Math.sqrt(Math.pow(Re.x-U,2)+Math.pow(Re.y-K,2))/W*100}const qe=(Math.PI/2-Math.atan2(ae-U,K-me))/Math.PI*180,ee=_.querySelector(".PanoRulerPlugin-rule-label"),Oe=ee.children[0].clientWidth;Oe>=W||Oe/2>=ie/100*W||Oe/2>=(1-ie/100)*W?_.style.display="none":(_.style.display="block",_.style.width=W+"px",_.style.left=U+"px",_.style.top=K+"px",_.style.transform=`rotate(${-qe}deg)`,ee.style.left=`${ie}%`)}},f=()=>Js(u),h=()=>{var A,b;return e.loaded?(e.enable||(n.setAttribute("class","PanoRulerPlugin"+(e.options.className?" "+e.options.className:"")),(b=(A=i.getElement())==null?void 0:A.parentElement)==null||b.append(n),u(),i.on("modeChange",u),i.on("cameraUpdate",f),e.enable=!0),!0):!1},p=()=>(e.enable&&(i.off("modeChange",u),i.off("cameraUpdate",f),n&&n.remove(),e.enable=!1),!0);function g(A){if(A.distanceText&&A.distanceText!==e.options.distanceText){const b=A.distanceText;e.options.distanceText=b,Object.values(a).forEach(v=>{v.rules.forEach(w=>{const[y,E]=w.rule,k=y.distanceTo(E),C=w.$element.querySelector(".PanoRulerPlugin-rule-label-name");!C||(C.innerText=b(k))})})}}return{enable:h,disable:p,load:c,state:e,changeConfigs:g}};function Ec(i){s.append_styles(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 Zs(i,t,e){const o=i.slice();return o[6]=t[e],o}function kc(i){let t,e=i[0].children,o=[];for(let n=0;n<e.length;n+=1)o[n]=qs(Zs(i,e,n));return{c(){t=s.element("div");for(let n=0;n<o.length;n+=1)o[n].c();s.attr(t,"class","rule-mixed-line svelte-1h27ktp")},m(n,r){s.insert(n,t,r);for(let a=0;a<o.length;a+=1)o[a].m(t,null)},p(n,r){if(r&9){e=n[0].children;let a;for(a=0;a<e.length;a+=1){const l=Zs(n,e,a);o[a]?o[a].p(l,r):(o[a]=qs(l),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=e.length}},d(n){n&&s.detach(t),s.destroy_each(o,n)}}}function xc(i){let t,e;return{c(){t=s.element("em"),s.attr(t,"class",e=s.null_to_empty(i[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),s.attr(t,"style",i[3])},m(o,n){s.insert(o,t,n)},p(o,n){n&1&&e!==(e=s.null_to_empty(o[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&s.attr(t,"class",e),n&8&&s.attr(t,"style",o[3])},d(o){o&&s.detach(t)}}}function qs(i){let t,e,o=`${i[6].width}px`;return{c(){t=s.element("div"),s.attr(t,"class",e=s.null_to_empty(i[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),s.attr(t,"style",i[3]),s.set_style(t,"width",o,!1)},m(n,r){s.insert(n,t,r)},p(n,r){r&1&&e!==(e=s.null_to_empty(n[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&s.attr(t,"class",e),r&8&&s.attr(t,"style",n[3]),r&1&&o!==(o=`${n[6].width}px`)&&s.set_style(t,"width",o,!1)},d(n){n&&s.detach(t)}}}function Dc(i){let t,e,o,n,r=i[0].labelElement+"",a,l,c=`${i[0].labelOffset}%`,d=`${i[0].width}px`,u=`${i[0].left}px`,f=`${i[0].top}px`,h=`rotate(${i[0].rotateDeg}deg)`;function p(b,v){return b[0].children.length===0?xc:kc}let g=p(i),A=g(i);return{c(){t=s.element("div"),A.c(),e=s.space(),o=s.element("div"),n=s.element("div"),a=s.text(r),s.attr(n,"class","PanoRulerPlugin-rule-label-name svelte-1h27ktp"),s.add_render_callback(()=>i[4].call(n)),s.attr(o,"class","PanoRulerPlugin-rule-label svelte-1h27ktp"),s.set_style(o,"left",c,!1),s.attr(t,"class","PanoRulerPlugin-rule-line svelte-1h27ktp"),s.set_style(t,"width",d,!1),s.set_style(t,"left",u,!1),s.set_style(t,"top",f,!1),s.set_style(t,"transform",h,!1),s.set_style(t,"display",i[0].visible&&i[2]?"block":"none",!1)},m(b,v){s.insert(b,t,v),A.m(t,null),s.append(t,e),s.append(t,o),s.append(o,n),s.append(n,a),l=s.add_resize_listener(n,i[4].bind(n))},p(b,[v]){g===(g=p(b))&&A?A.p(b,v):(A.d(1),A=g(b),A&&(A.c(),A.m(t,e))),v&1&&r!==(r=b[0].labelElement+"")&&s.set_data(a,r),v&1&&c!==(c=`${b[0].labelOffset}%`)&&s.set_style(o,"left",c,!1),v&1&&d!==(d=`${b[0].width}px`)&&s.set_style(t,"width",d,!1),v&1&&u!==(u=`${b[0].left}px`)&&s.set_style(t,"left",u,!1),v&1&&f!==(f=`${b[0].top}px`)&&s.set_style(t,"top",f,!1),v&1&&h!==(h=`rotate(${b[0].rotateDeg}deg)`)&&s.set_style(t,"transform",h,!1),v&5&&s.set_style(t,"display",b[0].visible&&b[2]?"block":"none",!1)},i:s.noop,o:s.noop,d(b){b&&s.detach(t),A.d(),l()}}}function Sc(i,t,e){let o,{rulerItemProp:n}=t,r=!0,a,l="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5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XNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBzdHJva2U9IiNmZmYiIHN0cm9rZS1vcGFjaXR5PSIuNCIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjwvZz48L3N2Zz4=";function c(){a=this.offsetWidth,e(1,a)}return i.$$set=d=>{"rulerItemProp"in d&&e(0,n=d.rulerItemProp)},i.$$.update=()=>{i.$$.dirty&3&&(a>=n.width||a/2>=n.labelOffset/100*n.width||a/2>=(1-n.labelOffset/100)*n.width?e(2,r=!1):e(2,r=!0))},e(3,o=`--background-image: url(${l})`),[n,a,r,o,c]}class Lc extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Sc,Dc,s.safe_not_equal,{rulerItemProp:0},Ec)}}function Ks(i,t,e){const o=i.slice();return o[12]=t[e],o}function $s(i){let t,e;return t=new Lc({props:{rulerItemProp:i[12]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.rulerItemProp=o[12]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function _c(i){let t,e,o=i[0],n=[];for(let a=0;a<o.length;a+=1)n[a]=$s(Ks(i,o,a));const r=a=>s.transition_out(n[a],1,1,()=>{n[a]=null});return{c(){t=s.element("div");for(let a=0;a<n.length;a+=1)n[a].c()},m(a,l){s.insert(a,t,l);for(let c=0;c<n.length;c+=1)n[c].m(t,null);e=!0},p(a,[l]){if(l&1){o=a[0];let c;for(c=0;c<o.length;c+=1){const d=Ks(a,o,c);n[c]?(n[c].p(d,l),s.transition_in(n[c],1)):(n[c]=$s(d),n[c].c(),s.transition_in(n[c],1),n[c].m(t,null))}for(s.group_outros(),c=o.length;c<n.length;c+=1)r(c);s.check_outros()}},i(a){if(!e){for(let l=0;l<o.length;l+=1)s.transition_in(n[l]);e=!0}},o(a){n=n.filter(Boolean);for(let l=0;l<n.length;l+=1)s.transition_out(n[l]);e=!1},d(a){a&&s.detach(t),s.destroy_each(n,a)}}}function zc(i,t,e){var A,b,v,w;let{five:o}=t,{rulerDatas:n}=t,{options:r}=t,a=[];const l=((b=(A=o.getElement())==null?void 0:A.parentElement)==null?void 0:b.clientWidth)||0,c=((w=(v=o.getElement())==null?void 0:v.parentElement)==null?void 0:w.clientHeight)||0,d=(y,E)=>{const k=[[{x:0,y:0},{x:l,y:0}],[{x:0,y:0},{x:0,y:c}],[{x:l,y:0},{x:l,y:c}],[{x:0,y:c},{x:l,y:c}]],C=[];for(let D=0;D<k.length;D++){const x=Vs([y,E],[k[D][0],k[D][1]],!0);x&&C.push(x)}return C.length===0?!1:C},u=(y,E)=>{const k=y.clone().project(o.camera),C=(k.x+1)/2*l,D=(-k.y+1)/2*c,x=E.clone().project(o.camera),z=(x.x+1)/2*l,L=(-x.y+1)/2*c,j=Math.sqrt(Math.pow(z-C,2)+Math.pow(L-D,2));return{startLeft:C,startTop:D,endLeft:z,endTop:L,distance:j}},f=(y,E,k)=>{const C=o.camera.position,D=o.camera.getWorldDirection(new M.Vector3),x=y.clone().sub(C).normalize().angleTo(D),z=E.clone().sub(C).normalize().angleTo(D),L=y.distanceTo(E),O=E.clone().sub(E.clone().sub(y).divide(new M.Vector3(2,2,2))).distanceTo(C),{startLeft:P,startTop:S,endLeft:_,endTop:T,distance:R}=u(y,E),Q=-((Math.PI/2-Math.atan2(_-P,S-T))/Math.PI)*180;let H=!0;k||(H=!1),!Pe(y,k)&&!Pe(E,k)&&(H=!1),L<.3&&(H=!1),x>Math.PI/2&&(H=!1),z>Math.PI/2&&(H=!1),O/L>8&&(H=!1);let Y=50,U=R;const K=d({x:~~P,y:~~S},{x:~~_,y:~~T});if(K&&K.length===1&&(Pe(y,k)?(U=Math.sqrt(Math.pow(K[0].x-P,2)+Math.pow(K[0].y-S,2)),Y=U/R*50):Pe(E,k)&&(U=Math.sqrt(Math.pow(K[0].x-_,2)+Math.pow(K[0].y-T,2)),Y=100-U/R*50)),K&&K.length===2){const se={x:(K[0].x+K[1].x)/2,y:(K[0].y+K[1].y)/2};Y=Math.sqrt(Math.pow(se.x-P,2)+Math.pow(se.y-S,2))/R*100}return{startLeft:P,startTop:S,distance:R,deg:Q,visible:H,labelOffset:Y,ruleLength:L}},h=()=>{const y=o.panoIndex,E=n.find(j=>j.panoIndex===y);if(!E)return e(0,a=[]);if(o.currentMode!==J.Five.Mode.Panorama)return e(0,a=[]);const k=o.camera.position,C=o.camera.getWorldDirection(new M.Vector3),D=E.lines.map(j=>new M.Vector3(j.start[0],-j.start[1],-j.start[2])),x=E.lines.map(j=>new M.Vector3(j.end[0],-j.end[1],-j.end[2])),[z]=D.concat(x).sort((j,O)=>{const P=j.clone().setY(0).sub(k).normalize().angleTo(C.clone().setY(0)),S=O.clone().setY(0).sub(k).normalize().angleTo(C.clone().setY(0));return P-S}),L=E.lines.map(j=>{var U,K;const O=j.start,P=j.end,{startLeft:S,startTop:_,distance:T,deg:R,visible:N,labelOffset:Q,ruleLength:H}=f(new M.Vector3(O[0],-O[1],-O[2]),new M.Vector3(P[0],-P[1],-P[2]),z),Y=[];return j.children&&((U=j.children)==null?void 0:U.length)>0&&((K=j.children)==null||K.forEach(se=>{const ae=se.start,me=se.end,{distance:W}=u(new M.Vector3(ae[0],-ae[1],-ae[2]),new M.Vector3(me[0],-me[1],-me[2]));Y.push({width:W,state:se.state})})),{width:T,left:S,top:_,rotateDeg:R,state:j.state,children:Y,labelOffset:Q,visible:N,labelElement:r.distanceText(H)}});e(0,a=L)},p=()=>Lt(h),g=uo(h,80);return Z.onMount(()=>{h(),o.on("panoArrived",h),o.on("modeChange",h),o.on("cameraDirectionUpdate",p),o.on("movingToPano",p),o.on("mouseWheel",()=>g()),o.on("pinchGesture",()=>g())}),Z.onDestroy(()=>{o.off("panoArrived",h),o.off("modeChange",h),o.off("cameraDirectionUpdate",p),o.off("movingToPano",p),o.off("mouseWheel",()=>g()),o.off("pinchGesture",()=>g())}),i.$$set=y=>{"five"in y&&e(1,o=y.five),"rulerDatas"in y&&e(2,n=y.rulerDatas),"options"in y&&e(3,r=y.options)},[a,o,n,r]}class Mc extends s.SvelteComponent{constructor(t){super(),s.init(this,t,zc,_c,s.safe_not_equal,{five:1,rulerDatas:2,options:3})}}class jc{constructor(t,e){m(this,"five");m(this,"container",document.createElement("div"));m(this,"panoRulerProData");m(this,"rulerItems");m(this,"state",{enabled:!1,loaded:!1,options:{className:"",distanceText:t=>`${t.toFixed(1)}m`}});var o,n;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=B(B({},this.state.options),e.options||{}),(o=e.options)!=null&&o.className&&this.container.classList.add((n=e.options)==null?void 0:n.className)),this.five.once("modelLoaded",()=>G(this,null,function*(){var r,a;(a=(r=this.five.getElement())==null?void 0:r.parentNode)==null||a.append(this.container)})),this.five.once("dispose",()=>this.dispose())}load(t){return G(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 G(this,null,function*(){var t;if(this.state.enabled){if(!this.panoRulerProData||!this.container)return;this.rulerItems=new Mc({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 Bc=(i,t)=>new jc(i,t),Tc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZI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CJ/jYZtto7DPRoUU2N11LJIXxqNyUC0VFqeCTpRlP94gEgZMhIL0nbDCIdJswQSQINI9AIRRsNRP+KfvOkgNrKEddr5660YUqw3k8EAhkbvsuCztPVSF7JDqMBIF1IKAxcOl5S8eZLEWCQDcIFBtO2Kv2UOr645lAKkex4VeIpLo5jHbls1KD4eYaWIu4R+UeyYLA2RHQWGAADiJ9P9u2StcheRB4VQSkyzgD2PQppwBH4MaEMpBFRSDcqCYQx9ggDphr0QUb3SMSBJpAQGPiciei9P6oYYAmGphKbA4B6TRrJ+j1HKHYzh8cZbpVBowXZ8bgQhzPNJAOvvD4QjkOAj0hUAbdUOVMoHrqudT1OgSk2zgLkAl2n/LYvh9s900kutYV4UIvQiBXMMlBEAgCQWA1CBRCgUjmHAkI5vk+PACR1BcZmGmfH64GzTQkCASBILBhBAqhgEC9rDFGJI7FGJEcB4EgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCm0fg/x4jQQWGalpFAAAAAElFTkSuQmCC";function Qc(){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(${Tc})`,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(o){o.appendChild(i)},dispose(){i.remove()},setRoom(o){e.innerHTML=o.name+" "+Math.floor(o.size/1e6)+"\u33A1"},show(){i.style.opacity="1"},hide(){i.style.opacity="0"}}}const Oc=new I.TextureLoader;function ei(i){return G(this,null,function*(){return new Promise((t,e)=>{Oc.load(i,t,void 0,e)}).then(t=>(t.encoding=I.sRGBEncoding,t))})}const Tt={userAction:!0};class Rc extends We{constructor(e,o){super(e);m(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"}});m(this,"data");m(this,"group",new I.Group);m(this,"roomInfoInstance");m(this,"roomInfoWrapperInstance");m(this,"compassMeshTween");m(this,"compassMesh");m(this,"entryDoorMesh");m(this,"dispose",()=>{var e,o,n,r;this.five.scene.remove(this.group),this.group.remove(...this.group.children),(o=(e=this.compassMesh)==null?void 0:e.material.map)==null||o.dispose(),(r=(n=this.entryDoorMesh)==null?void 0:n.material.map)==null||r.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)});m(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)});m(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)});m(this,"_enable",()=>{this.five.scene.add(this.group),this.init(),this.onFivePanoArrived(this.five.panoIndex||0),this._addEventListener()});m(this,"_disable",()=>{this._clearCompassIfNeed(),this._clearEntryDoorIfNeed(),this.five.scene.remove(this.group),this._removeEventListener()});m(this,"_toggleVisible",()=>{this.group.visible=this.state.visible,this.five.needsRender=!0});m(this,"_clearCompassIfNeed",()=>{var e;this.compassMesh&&(this.group.remove(this.compassMesh),(e=this.compassMesh.material.map)==null||e.dispose(),this.compassMesh=null)});m(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)});m(this,"onFivePanoWillArrive",e=>{var o,n;e!==this.five.panoIndex&&((o=this.compassMeshTween)==null||o.dispose(),(n=this.compassMesh)==null||n.material.setValues({opacity:0}))});m(this,"onFivePanoArrived",e=>{var n,r,a,l,c,d,u;const o=(a=(r=(n=this.five.work)==null?void 0:n.observers)==null?void 0:r[e])==null?void 0:a.standingPosition;if(this.compassMesh&&(this.compassMesh.position.copy(o.clone().setY(o.y+.01)),this.compassMesh.material.opacity===0&&((l=this.compassMeshTween)==null||l.dispose(),this.compassMeshTween=Gs(1e3).onUpdate(({progress:f})=>{var h;(h=this.compassMesh)==null||h.material.setValues({opacity:f}),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(o.y).sub(o).normalize(),p=o.clone().add(h.clone().multiplyScalar(.7)).setY(o.y+.01);this.entryDoorMesh.rotation.z=new I.Vector3(0,0,-1).angleTo(h),this.entryDoorMesh.position.copy(p),((c=this.data)==null?void 0:c.room_observers[e].room.type)===1?(d=this.entryDoorMesh)==null||d.material.setValues({opacity:1}):(u=this.entryDoorMesh)==null||u.material.setValues({opacity:0})}this.roomInfoInstance&&this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.css3DObject.position.copy(o.clone().setY(o.y+.01)),this.roomInfoInstance.setRoom(this.data.room_observers[e].room)),this.five.needsRender=!0});m(this,"onFiveCameraDirectionUpdate",({longitude:e,latitude:o})=>{var n,r;!this.roomInfoWrapperInstance||(this.roomInfoWrapperInstance.css3DObject.rotation.z=e,o>.66&&this.five.getCurrentState().mode==="Panorama"?(n=this.roomInfoInstance)==null||n.show():(r=this.roomInfoInstance)==null||r.hide())});m(this,"onFiveModeChange",(e,o,n,r,a)=>{e!==o&&this.setState({visible:e===J.Five.Mode.Panorama},{userAction:a})});this.five.scene.add(this.group),this.five.once("dispose",this.dispose),this.setState({visible:!0,enabled:!0,config:B(B({},this.state.config),o||{})})}enable(e=Tt){this.setState({enabled:!0},e)}disable(e=Tt){this.setState({enabled:!1},e)}show(e=Tt){if(!!this.state.enabled)return this.setState({visible:!0},e),Promise.resolve()}hide(e=Tt){if(!!this.state.enabled)return this.setState({visible:!1},e),Promise.resolve()}setState(e,o={userAction:!0}){var r,a;const n=JSON.parse(JSON.stringify(this.state));this.state={visible:(r=e.visible)!=null?r:n.visible,enabled:(a=e.enabled)!=null?a:n.enabled,config:B(B({},n.config),e.config||{})},this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:o.userAction}),e.enabled===!0&&(this._enable(),this.hooks.emit("enable",o)),e.enabled===!1&&(this._disable(),this.hooks.emit("disable",o)),e.visible===!1&&(this._toggleVisible(),this.hooks.emit("hide",o)),e.visible===!0&&(this._toggleVisible(),this.hooks.emit("show",o)),e.config&&this.init()}load(e,o,n=!0){return G(this,null,function*(){const r=yield this.formatData(e);JSON.stringify(this.data)!==JSON.stringify(r)&&(this.hooks.emit("dataChange",r,this.data),this.data=B({},r),this.init(),o&&this.setState(o,{userAction:n}),this.hooks.emit("dataLoaded",this.data))})}formatData(e){return e.version&&e.data?Promise.resolve(e.data):Promise.resolve(e)}init(){return G(this,null,function*(){var n,r,a,l;const e=(r=(n=this.data)==null?void 0:n.north_rad)!=null?r: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 o=(l=(a=this.data)==null?void 0:a.entrance)!=null?l:null;this._clearEntryDoorIfNeed(),o!==null&&(this.entryDoorMesh=yield this.loadEntryDoorMesh(),this.roomInfoWrapperInstance=this.loadRoomInfo(),this.roomInfoInstance=Qc(),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 G(this,null,function*(){const e=this.state.config.compassImageUrl,o=yield ei(e),n=new I.CircleGeometry(.7,32),r=new I.MeshBasicMaterial({map:o,transparent:!0,opacity:0,depthTest:!1}),a=new I.Mesh(n,r);return a.name="pano-compass-mesh",a})}loadEntryDoorMesh(){return G(this,null,function*(){const e=this.state.config.entryDoorImageUrl,o=yield ei(e),n=new I.PlaneGeometry(.2,.16),r=new I.MeshBasicMaterial({map:o,transparent:!0,opacity:.8,depthTest:!1}),a=new I.Mesh(n,r);return a.name="pano-compass-entry-door",a})}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 et(this.five).create3DDomContainer(e)}}const Fc=(i,t)=>new Rc(i,t);function Qt(i,t,e){const o=i[t];i[t]=i[e],i[e]=o}function Hc(i,t,e){const o=e/2;for(let n=1;n<=o;n++){const r=e-(n-1);for(let a=1;a<=t;a++){const l=(n-1)*t+a-1,c=(r-1)*t+a-1;Qt(i,l*4+0,c*4+0),Qt(i,l*4+1,c*4+1),Qt(i,l*4+2,c*4+2),Qt(i,l*4+3,c*4+3)}}}class ti{constructor(t,e){m(this,"width");m(this,"height");m(this,"visible",!1);m(this,"hooks",new J.Subscribe);m(this,"contentDom",document.createElement("canvas"));m(this,"five");m(this,"scale");m(this,"wrapper");m(this,"config");m(this,"offset",{x:0,y:0});m(this,"canvas",this.contentDom);m(this,"context");m(this,"renderCenter",new I.Vector3);m(this,"lastPanEvent");m(this,"hammer");m(this,"onPan",t=>{var d,u,f,h;if(!this.wrapper)return;const e=(u=(d=this.lastPanEvent)==null?void 0:d.deltaX)!=null?u:0,o=(h=(f=this.lastPanEvent)==null?void 0:f.deltaY)!=null?h:0,n=t.deltaX-e,r=t.deltaY-o;if(this.lastPanEvent=t,this.hooks.emit("wantsPanGesture",{srcEvent:t,deltaX:n,deltaY:r}))return;const l=this.offset.x+n,c=this.offset.y+r;this.contentDom.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)",this.canvas.style.transform=`translate3d(${l}px, ${c}px, 100px)`,this.offset={x:l,y:c}});m(this,"onPanEnd",t=>{this.lastPanEvent=void 0,this.contentDom.style.boxShadow="none"});var n,r,a;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(n=e==null?void 0:e.scale)!=null?n:2,this.width=(r=e==null?void 0:e.width)!=null?r:190,this.height=(a=e==null?void 0:e.height)!=null?a: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 o=this.canvas.getContext("2d");if(!o)throw new Error("CANNOT CREATE CONTEXT2D");this.context=o,this.config.dragEnabled&&(this.hammer=new lt.default(this.canvas),this.hammer.on("pan",this.onPan),this.hammer.on("panend",this.onPanEnd))}dispose(){var t;this.clear(),this.remove(),(t=this.hammer)==null||t.destroy()}remove(){this.canvas.remove(),this.visible=!1}clear(){this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}appendTo(t){this.wrapper=t,this.initStyle(),t.append(this.canvas),this.visible=!0}renderWithPoint(t){!this.wrapper||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}autoFixPCPosition(){if(!this.wrapper)return;const{width:t,height:e}=this,o=this.renderCenter.clone().project(this.five.camera),n=(o.x+1)/2*this.wrapper.clientWidth,r=-(o.x-1)/2*this.wrapper.clientWidth,a=-(o.y-1)/2*this.wrapper.clientHeight;n<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):a<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):r<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, ${a}px, 10px)`,this.offset={x:n,y:a}}render(){if(!this.five.renderer||!this.wrapper)return;const{scale:t,context:e,width:o,height:n}=this,r=this.renderCenter.clone().project(this.five.camera),a=this.five.renderer.getSize(new I.Vector2),l=1,c=o/t,d=n/t,u=l*t,f=(r.x+1)/2*a.x,h=(r.y+1)/2*a.y,p=this.five.getPixels(f-c/2,h-c/2,c,d,u),g=Math.floor(o*l),A=Math.floor(n*l);Hc(p,g,A);const b=new ImageData(g,A);b.data.set(p),e.putImageData(b,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")}}class Gc{constructor(t){m(this,"edges",[]);m(this,"five");m(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,o;return this.edges.forEach(n=>{const r=n.closestPointToPoint(t.point,!0,new M.Vector3),a=r.distanceTo(t.point);a<e&&(o=r,e=a)}),e>.1?null:o||null}}class go{constructor(){m(this,"id",fe());m(this,"points",[]);m(this,"lines",[])}push(t){const e=this.getNext(t);if(!e)throw new Error("\u5F53\u524D\u7EBF\u6BB5\u4E8E\u4E0A\u4E00\u6761\u7EBF\u6BB5\u65E0\u6CD5\u6784\u6210\u6298\u7EBF");return this.lines.push(e.line),this.points.push(...e.points),this.lines.length}pop(){const t=this.lines.pop();return this.lines.length===0?this.points.slice(0,this.points.length):this.points.pop(),t}getNext(t){const e=this.points.slice(-1)[0];if(!e)return{line:t,points:t.points};if(!t.points.includes(e))return null;const o=t.points.find(n=>n!==e);return o?{line:t,points:[o]}:null}toJson(){return{id:this.id,lines:this.lines.map(t=>t.id),points:this.points.map(t=>t.id)}}toCompletelyJson(){return{id:this.id,points:this.points.map(t=>t.toJson()),lines:this.lines.map(t=>t.toCompletelyJson())}}}const Nc=1,Wc=3,Xc=new M.Color(16777215),Yc=new M.Color(6522623),Uc=new M.Color(16777215),Vc=new M.Color(6522623),Jc=6,Zc=8,qc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAIVBMVEUAAAD////////////////////////////////////////PIev5AAAACnRSTlMAG/Py2baba05un7UgfgAAAHJJREFUKM9joBpgLHVSCRdA4metAoJlCJHmVWBgAeNzroKCCVCBLpjACqgJVjCBxRBT2FbBQQJYQAohsBAsUIUQWA4WiEIILAULeCEEloAFtBACizAEMLRgGIphLabDMJ2O6TlM72MGECIIMQIZIxqoBQCPvpJ/e9FaAAAAAABJRU5ErkJggg==",oi=new M.TextureLoader().load(qc),si={pointTexture:oi,pointSize:Jc,lineWidth:Nc,lineColor:Xc,pointColor:Uc,lineRenderOrder:20,pointsRenderOrder:20};q(B({},si),{dashed:!0});const Kc={pointTexture:oi,pointSize:Zc,lineWidth:Wc,lineColor:Yc,pointColor:Vc,lineRenderOrder:10,pointsRenderOrder:10};function $c(i,t,e){var u,f,h,p,g;const o=(u=e==null?void 0:e.lineWidth)!=null?u:2,n=(f=e==null?void 0:e.lineColor)!=null?f:new M.Color(16777215),r=(h=e==null?void 0:e.pointSize)!=null?h:5,a=(p=e==null?void 0:e.lineRenderOrder)!=null?p:10,l=(g=e==null?void 0:e.lineRenderOrder)!=null?g:20,c=new gt.Line(i,t);c.setMaterial({linewidth:o,color:n}),c.line.material.depthTest=!1,c.line.material.transparent=!0,c.line.renderOrder=a,c.points.renderOrder=l;const d=c.points.material;return d.depthTest=!1,d.size=r,e!=null&&e.pointColor&&d.color.set(e.pointColor).convertSRGBToLinear(),e!=null&&e.pointTexture&&(d.map=e.pointTexture),c}function ii(i,t){const[e,o]=i.points,n=t==="light"?Kc:si,r=$c(e.position,o.position,n);return r.name="normalLine_"+i.id,r}function Ee(i){const{x:t,y:e,z:o}=i;return!(Math.abs(t)>1||Math.abs(e)>1||Math.abs(o)>1)}function ed(){const i=document.createElement("div");return i.setAttribute("style","backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);"),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.pointerEvents="all",i.style.cursor="pointer",i}function td(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.transform="translate3d(0, 0, 0)",t.style.transformOrigin="left top",t}function od(i){function t(){var g;(g=i.clickCallback)==null||g.call(i,p)}function e(){if(f)return f.highlight();d.style.border="0.5px solid #95AEFF",d.style.background="linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)"}function o(){if(f)return f.unHighlight();d.style.border="0.5px solid rgba(255,255,255,0.6)",d.style.background="rgba(195,195,195,0.70)"}function n(g){const A=g.getElement();if(!A)return;const b=A.clientWidth,v=A.clientHeight;if(l.points.length<2)return;const[w,y]=l.points,E=w.position.clone().project(g.camera),k=y.position.clone().project(g.camera),C=E.clone().lerp(k,.5),D=new M.Vector2(E.x*b,E.y*v),x=new M.Vector2(k.x*b,k.y*v);if((()=>!(Math.abs(E.z)>1||Math.abs(k.z)>1||!Ee(E)&&!Ee(k)||!Ee(C)||D.distanceTo(x)<20))()===!1){u.style.opacity="0",u.style.pointerEvents="none";return}const L=(C.x+1)/2*b,j=-(C.y-1)/2*v,P=-(Math.atan((D.y-x.y)/(D.x-x.x))*180)/Math.PI;u.style.transform=`translate(${L}px, ${j}px) rotate(${P}deg)`,u.style.opacity="1",u.style.pointerEvents="all",f&&f.update({line:l.toCompletelyJson(),polyline:l.getPolyline().toCompletelyJson()});const S=w.position.clone().distanceTo(y.position),_=i.line.model.params.getDistanceText(S);d.innerText!==_&&(d.innerText=_)}function r(g){g.appendChild(u),u.addEventListener("click",t)}function a(){d.removeEventListener("click",t),u.remove()}const{line:l}=i,c=l.id,d=ed(),u=td(l),f=i.userDistanceItem,h=new M.Vector3(0,0,0),p={lineID:c,ndcPosition:h,update:n,appendTo:r,remove:a,highlight:e,unHighlight:o};return f!=null&&f.element?u.appendChild(f.element):u.appendChild(d),p}class it{constructor(t,e,o){m(this,"id");m(this,"selected",!1);m(this,"type","line");m(this,"model");m(this,"mesh");m(this,"points");m(this,"lightMesh");m(this,"hook");m(this,"distanceItem");m(this,"polyline");if(this.id=fe(),this.model=o,t.id===e.id)throw new Error("\u65E0\u6548\u7684\u7EBF\u6BB5, \u4E00\u4E2A\u70B9\u65E0\u6CD5\u6784\u6210\u7EBF\u6BB5");this.hook=new J.Subscribe,this.points=[t,e],this.mesh=ii(this,"normal"),this.lightMesh=ii(this,"light"),this.distanceItem=od({line:this,clickCallback:()=>this.hook.emit("selected",this),userDistanceItem:this.model.params.userDistanceItemCreator?this.model.params.userDistanceItemCreator():void 0}),t.lines.push(this),e.lines.push(this)}clear(){this.selected=!1,this.polyline=void 0}getPolyline(){if(this.polyline)return this.polyline;const t=this.model.polylines.find(o=>o.lines.includes(this));if(this.polyline=t,t)return t;const e=new go;return e.push(this),e}findAnotherPoint(t){return this.points.find(({id:e})=>e!==t.id)}toJson(){return{id:this.id,points:this.points.map(({id:t})=>t)}}toCompletelyJson(){return{id:this.id,points:this.points.map(t=>t.toJson())}}clone(){return new it(this.points[0].clone(),this.points[1].clone(),this.model)}}function mt(i,t){for(let e=0,o=t.length;e<o;e++)if(i===t[e])return t.splice(e,1)[0]}class ke{constructor(t){m(this,"id");m(this,"lines");m(this,"position");m(this,"type","point");this.id=fe(),this.lines=[],this.position=new M.Vector3,t instanceof M.Vector3?this.position.copy(t):this.position.fromArray(t)}toJson(){return{id:this.id,lines:this.lines.map(({id:t})=>t),position:this.position.toArray()}}addLine(t){this.lines.push(t)}removeLine(t){mt(t,this.lines)}clone(){return new ke(this.position)}}class Ao{constructor(t){m(this,"lines",[]);m(this,"points",[]);m(this,"params");m(this,"polylines",[]);m(this,"hook",new J.Subscribe);this.params=t}addLine(t){const[e,o]=t.points;if(!e||!o)return this;this.includes(e)||this.points.push(e),this.includes(o)||this.points.push(o),this.lines.push(t);const n=this.polylines.find(r=>!!r.getNext(t));if(n)n.push(t);else{const r=new go;r.push(t),this.polylines.push(r)}this.hook.emit("lineAdded",t)}removeLineByID(t){const e=this.getLineByID(t);e&&this.removeLine(e)}removeLine(t){const e=this.polylines.find(r=>r.lines.includes(t));if(e){if(e.lines.slice(-1)[0]!==t)throw new Error("\u4E0D\u80FD\u4ECE\u4E2D\u95F4\u5220\u9664\u7EBF\u6BB5");e.pop(),e.lines.length===0&&mt(e,this.polylines)}const[o,n]=t.points;return o.lines.length===0&&mt(o,this.points),n.lines.length===0&&mt(n,this.points),mt(t,this.lines),t.clear(),this.hook.emit("lineRemoved",t),this}mergeModel(t){t.lines.forEach(e=>this.addLine(e))}includes(t){if(t.type==="point")return this.points.find(({id:e})=>e===t.id)!==void 0;if(t.type==="line")return this.lines.find(({id:e})=>e===t.id)!==void 0}getPointByID(t){return this.points.find(({id:e})=>e===t)}getLineByID(t){return this.lines.find(({id:e})=>e===t)}getClosestPoint(){}parse(t){const e=t.points.map(({id:r,position:a})=>{const l=new ke(a);return l.id=r,l}),o=t.lines.map(r=>{const[a,l]=r.points,c=this.getPointByID.call({points:e},a),d=this.getPointByID.call({points:e},l);if(!c||!d)throw new Error("\u7EBF\u4E0A\u7684\u70B9\u4E0D\u5B58\u5728");const u=new it(c,d,this);return u.id=r.id,u}),n=t.polylines.map(r=>{const a=new go;return r.lines.forEach(l=>{const c=o.find(({id:d})=>d===l);c&&a.push(c)}),a});return this.points.splice(0,this.points.length,...e),this.lines.splice(0,this.lines.length,...o),this.polylines.splice(0,this.polylines.length,...n),this}toJson(){return{points:this.points.map(t=>t.toJson()),lines:this.lines.map(t=>t.toJson()),polylines:this.polylines.map(t=>t.toJson()).filter(t=>t.lines.length>0)}}}const Ot=i=>i.preventDefault();class Rt{constructor(t){m(this,"model");m(this,"five");m(this,"group");m(this,"config");m(this,"dashed");m(this,"disposed",!1);m(this,"isMobile");m(this,"mouseGroup");m(this,"container");m(this,"fiveHelper");m(this,"hook");m(this,"magnifier");m(this,"userDistanceItemCreator");m(this,"updateDistanceUI",()=>{this.dashed.distanceItem.update(this.five),this.model.lines.forEach(t=>t.distanceItem.update(this.five))});var o,n;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=(n=(o=t.openParams)==null?void 0:o.isMobile)!=null?n:!1,this.userDistanceItemCreator=t.userDistanceItemCreator,this.group=t.group,this.mouseGroup=t.mouseGroup,this.dashed=new it(new ke([0,0,0]),new ke([0,0,0]),this.model),this.dashed.mesh.setMaterial({dashed:!0,dashScale:100}),this.dashed.mesh.name="dashLine";const e=this.five.getElement();e&&(e.addEventListener("touchstart",Ot),e.addEventListener("contextmenu",Ot))}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 o=this.fiveHelper.getAdsorbentPoint(t),n=o||t.point;if(this.mouseGroup.position.copy(n),e)this.mouseGroup.quaternion.copy(e.quaternion);else if(t.face){const a=t.face.normal.clone().multiplyScalar(.05),c=t.point.clone().add(a).clone().add(a);this.mouseGroup.lookAt(c)}return this.mouseGroup}dispose(){this.disposed=!0,this.magnifier.remove(),this.model.lines.forEach(e=>this.removeLine(e));const t=this.five.getElement();t&&(t.removeEventListener("touchstart",Ot),t.removeEventListener("contextmenu",Ot))}}function vo(i){const{x:t,y:e}=i.center,{clientWidth:o,clientHeight:n}=i.target,r=i.target.getBoundingClientRect(),a=new M.Vector2(t,e).sub(new M.Vector2(r.left,r.top)),l=new M.Vector2(a.x/o*2-1,-(a.y/n)*2+1);return{point:a,ndcPoint:l}}function bo(i,t){const e=vo(t).ndcPoint,o=new M.Raycaster;return o.setFromCamera(e,i.camera),i.model.intersectRaycaster(o)}class Ft extends Rt{constructor(e){var n;super(e);m(this,"type","edit");m(this,"pressPoint");m(this,"hasAppendDashed",!1);m(this,"hasAppendMouseGroup",!1);m(this,"fiveElement");m(this,"lastPoint",null);m(this,"hammer");m(this,"onIntersectionUpdate",uo((e,o)=>{var r;this.hasAppendMouseGroup===!1&&(this.group.add(this.mouseGroup),this.magnifier.appendTo(this.container),this.hasAppendMouseGroup=!0);const n=this.updateMouseGroup(e,o).position;(r=this.pressPoint)==null||r.position.copy(n),this.updateDashed(),requestAnimationFrame(()=>this.magnifier.renderWithPoint(this.mouseGroup.position)),this.five.needsRender=!0},20));m(this,"revoke",()=>{if(this.model.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.five.needsRender=!0;return}if(this.model.lines.length===0&&!this.lastPoint||!this.lastPoint)return;const e=this.model.lines[this.model.lines.length-1],o=e.findAnotherPoint(this.lastPoint);!o||(this.lastPoint=o,this.hook.emit("anchorChange",o.position),this.group.remove(e.mesh),this.model.removeLine(e),this.hasAppendMouseGroup=!1,this.mouseGroup.position.copy(this.lastPoint.position),this.group.remove(this.mouseGroup),e.distanceItem.remove(),this.updateDashed(),this.magnifier.remove(),this.five.needsRender=!0)});m(this,"onMouseLeave",()=>{this.magnifier.remove(),this.group.remove(this.mouseGroup),this.hasAppendMouseGroup=!1,this.lastPoint&&(this.mouseGroup.position.copy(this.lastPoint.position),this.updateDashed())});m(this,"onLineChanged",()=>{this.hook.emit("editedLineChange",this.model.lines.map(e=>e.toCompletelyJson()))});m(this,"onPress",e=>{const[o]=bo(this.five,e);if(!o||!o.face)return;const n=new ke(o.point);this.pressPoint=n,this.onIntersectionUpdate(o)});m(this,"onPan",e=>{if(!this.pressPoint)return;const[o]=bo(this.five,e);!o||!o.face||this.onIntersectionUpdate(o)});m(this,"onPanEnd",e=>{!this.pressPoint||this.onTap(e)});m(this,"onTap",e=>{this.hasAppendDashed||(this.dashed.distanceItem.appendTo(this.container),this.group.add(this.dashed.mesh)),this.hasAppendDashed=!0;const[o]=bo(this.five,e);this.updateMouseGroup(o);const n=new ke(this.mouseGroup.position),r=this.lastPoint;if(n&&(this.lastPoint=n),n&&r){const a=new it(r,n,this.model);a.distanceItem.appendTo(this.container),this.model.addLine(a),this.group.add(a.mesh),a.distanceItem.update(this.five)}this.pressPoint=void 0,this.hasAppendMouseGroup=!1,this.magnifier.remove(),this.group.remove(this.mouseGroup),this.updateDashed(),this.five.needsRender=!0,this.hook.emit("anchorChange",n.position)});m(this,"onWantsTapGesture",()=>!1);m(this,"onWantsToMoveToPano",()=>!1);m(this,"onWantsPanGesture",()=>this.pressPoint?!1:void 0);m(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.dashed.distanceItem.update(this.five)});m(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.model=new Ao(this.config),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.model.hook.on("lineAdded",this.onLineChanged),this.model.hook.on("lineRemoved",this.onLineChanged);const o=this.five.getElement();if(o){this.fiveElement=o;const r=new lt.default(o);this.hammer=r,r.on("tap",this.onTap),r.on("pan",this.onPan),r.on("press",this.onPress),r.on("panend",this.onPanEnd)}(n=this.fiveElement)==null||n.addEventListener("mouseleave",this.onMouseLeave),this.hook.emit("anchorChange",null),this.five.refresh()}dispose(){var e,o;super.dispose(),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.model.hook.off("lineAdded",this.onLineChanged),this.model.hook.off("lineRemoved",this.onLineChanged),(e=this.hammer)==null||e.destroy(),(o=this.fiveElement)==null||o.removeEventListener("mouseleave",this.onMouseLeave),this.magnifier.dispose(),this.dashed.distanceItem.remove(),this.five.needsRender=!0}getEditingLines(){return this.model.lines}}function yo(i,t){const e=i.x-t[0].x,o=i.y-t[0].y,n=t[1].x-t[0].x,r=t[1].y-t[0].y,a=e*n+o*r,l=n*n+r*r,c=a/l;let d,u;return c<0||sd(t[0],t[1])?(d=t[0].x,u=t[0].y):c>1?(d=t[1].x,u=t[1].y):(d=t[0].x+c*n,u=t[0].y+c*r),new M.Vector2(d,u)}function sd(i,t){return i.x===t.x&&i.y===t.y}function Ht(i){const t=(r,a,l)=>{const c=r.lines.find(u=>u.points.findIndex(({id:h})=>h===r.id)!==a);if(!c)return l;const d=c.points[a];return d?t(d,a,l.concat(c)):l},e=t(i.points[0],1,[]),o=t(i.points[0],0,[]);return e.concat(o)}class id extends Rt{constructor(e){super(e);m(this,"type","view");m(this,"highlightedLines",[]);m(this,"hammer");m(this,"wantsTapGesture",e=>{if(this.model.lines.length===0)return;const[o]=this.five.model.intersectRaycaster(e);if(!o)return;const n=this.five.camera,r=o.point.clone().project(n),a=this.container.clientWidth,l=this.container.clientHeight,c=new M.Vector2(r.x*a,r.y*l),d=this.model.lines.map(p=>{const[g,A]=p.points,b=g.position.clone().project(n),v=A.position.clone().project(n);if(!Ee(b)&&!Ee(v))return null;const w=new M.Vector2(b.x*a,b.y*l),y=new M.Vector2(v.x*a,v.y*l);return{id:p.id,points:[w,y]}}).filter(p=>!!p);if(d.length===0)return;const f=d.map(p=>{const g=yo(c,p.points);return{id:p.id,distance:g.distanceTo(c)}}).sort((p,g)=>p.distance-g.distance)[0],h=f.distance>20?void 0:this.model.lines.find(({id:p})=>p===f.id);if(this.highlightedLines.length>0&&!h)return this.clearHighlightLines(),!1;if(h)return this.chooseLine(h),!1});m(this,"chooseLine",e=>{const o=Ht(e);this.highlightLines(o),this.five.needsRender=!0,this.hook.emit("selectedChange",o.map(n=>n.toCompletelyJson()))});m(this,"lineRemoved",e=>{this.removeLine(e),this.hook.emit("selectedChange",this.model.lines.filter(o=>o.selected).map(o=>o.toCompletelyJson()))});m(this,"onCameraUpdate",()=>{this.updateDistanceUI()});this.model.lines.forEach(n=>{n.distanceItem.appendTo(this.container),n.distanceItem.update(this.five),n.hook.on("selected",this.chooseLine),this.group.add(n.mesh)});const o=this.five.getElement();if(o){const n=new lt.default(o);this.hammer=n}this.model.hook.on("lineRemoved",this.lineRemoved),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.wantsTapGesture),this.five.needsRender=!0}dispose(){var e;super.dispose(),this.model.hook.off("lineRemoved",this.lineRemoved),this.five.off("cameraUpdate",this.onCameraUpdate),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.model.lines.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,e.forEach(o=>this.highlightLine(o))}}const nd=`
203
+ `,C=document.createElement("div");return C.setAttribute("class","PanoRulerPlugin-rule"),C.setAttribute("data-name",A),C.setAttribute("style","display: none"),C.innerHTML=v,C},n=document.createElement("div");n.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");const r=document.createElement("div");r.innerHTML=wc,n.appendChild(r);const a={},l=(A,b)=>{if(e.loaded)throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");const v=Pc(A,i),C=i.work;if(!C)return!1;for(const y in b){const E=b[y],{standingPosition:k}=C.observers[0],w=E.map(({x:D,z:x,observers:z})=>{const _=z.length>0?A.rooms[A.observers[z[0]]].name:"",j=v[_]?v[_].floor:null;let R=1/0,P={index:0,x:k.x,y:k.y,z:k.z};z.forEach(Q=>{if(!C.observers[Q])return;const{standingPosition:H}=C.observers[Q],Y={index:Q,x:H.x,y:H.y,z:H.z},U=Cc({x:D,z:x},Y);j?U<R&&Math.abs(Y.y-j)<.3&&(R=U,P=Y):U<R&&(R=U,P=Y)});const S=new M.Vector3(D,P.y,x);Object.assign(S,{observers:z});const L=v[_]?v[_].roof:null,T=L?new M.Vector3(D,L,x):null;return T&&Object.assign(T,{observers:z}),{origin:S,vertical:T}});a[y]={origins:w.map(D=>D.origin),rules:[]};for(const{origin:D,vertical:x}of w){if(!x)continue;const z=o(y,D.distanceTo(x));n.append(z),a[y].rules.push({vertical:!0,rule:[D,x],$element:z})}for(let D=0;D<w.length;D++){let x=D+1;x>=w.length&&(x=0);const{origin:z}=w[D],{origin:_}=w[x],j=o(y,z.distanceTo(_));n.append(j),a[y].rules.push({vertical:!1,rule:[z,_],$element:j})}}return e.loaded=!0,!0},c=(A,b,v)=>G(this,null,function*(){const C=A||t.roomInfo,y=b||t.roomRules;if(!C||!y)throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");return e.loaded=!1,e.options=B(B({},e.options),v||{}),i.model.loaded?l(C,y):yield new Promise(E=>i.once("modelLoaded",()=>E(l(C,y))))});t.roomInfo&&t.roomRules&&c(t.roomInfo,t.roomRules);const d=(A,b,v,C)=>{const y=[[{x:0,y:0},{x:v,y:0}],[{x:0,y:0},{x:0,y:C}],[{x:v,y:0},{x:v,y:C}],[{x:0,y:C},{x:v,y:C}]],E=[];for(let k=0;k<y.length;k++){const w=Vs([A,b],[y[k][0],y[k][1]],!0);w&&E.push(w)}return E.length===0?!1:E},u=()=>{var z;const A=(z=i.getElement())==null?void 0:z.parentElement;if(!A||!e.loaded||Object.keys(a).length<=0)return;const{panoIndex:b,camera:v,currentMode:C}=i;if(b===void 0)return;let y;for(const _ in a)_.split(",").indexOf(b.toString())>=0&&(y=_);if(!y){for(const _ in a)for(const{$element:j}of a[_].rules)j.style.display="none";return}const E=v.position,k=v.getWorldDirection(new M.Vector3),w=A.clientWidth,D=A.clientHeight;if(C!==J.Five.Mode.Panorama){for(const _ in a)for(const{$element:j}of a[_].rules)j.style.display="none";return}for(const _ in a)for(const{$element:j}of a[_].rules)j.style.display=_===y?"block":"none";const[x]=a[y].origins.slice().filter(_=>_.observers.indexOf(b)>=0).sort((_,j)=>{const R=_.clone().setY(0).sub(E).normalize().angleTo(k.clone().setY(0)),P=j.clone().setY(0).sub(E).normalize().angleTo(k.clone().setY(0));return R-P});for(const{rule:_,vertical:j,$element:R}of a[y].rules){const[P,S]=_,L=R.querySelector(".PanoRulerPlugin-rule-line");if(!L)return;if(!x){R.style.display="none";continue}if(P!==x&&S!==x){R.style.display="none";continue}if(P.distanceTo(S)<.3){R.style.display="none";continue}if(P.observers.indexOf(b)===-1||S.observers.indexOf(b)===-1){R.style.display="none";continue}if(P.clone().sub(E).normalize().angleTo(k)>Math.PI/2){R.style.display="none";continue}if(S.clone().sub(E).normalize().angleTo(k)>Math.PI/2){R.style.display="none";continue}const N=P.distanceTo(S);if(S.clone().sub(S.clone().sub(P).divide(new M.Vector3(2,2,2))).distanceTo(E)/N>8){R.style.display="none";continue}const Y=P.clone().project(v),U=(Y.x+1)/2*w,K=(-Y.y+1)/2*D,se=S.clone().project(v),ae=(se.x+1)/2*w,me=(-se.y+1)/2*D,W=Math.sqrt(Math.pow(ae-U,2)+Math.pow(me-K,2));let te=W,ie=50;const X=d({x:~~U,y:~~K},{x:~~ae,y:~~me},w,D);if(X&&X.length===1&&(x===P?(te=Math.sqrt(Math.pow(X[0].x-U,2)+Math.pow(X[0].y-K,2)),ie=te/W*50):x===S&&(te=Math.sqrt(Math.pow(X[0].x-ae,2)+Math.pow(X[0].y-me,2)),ie=100-te/W*50)),X&&X.length===2){const Re={x:(X[0].x+X[1].x)/2,y:(X[0].y+X[1].y)/2};ie=Math.sqrt(Math.pow(Re.x-U,2)+Math.pow(Re.y-K,2))/W*100}const qe=(Math.PI/2-Math.atan2(ae-U,K-me))/Math.PI*180,ee=L.querySelector(".PanoRulerPlugin-rule-label"),Oe=ee.children[0].clientWidth;Oe>=W||Oe/2>=ie/100*W||Oe/2>=(1-ie/100)*W?L.style.display="none":(L.style.display="block",L.style.width=W+"px",L.style.left=U+"px",L.style.top=K+"px",L.style.transform=`rotate(${-qe}deg)`,ee.style.left=`${ie}%`)}},f=()=>Js(u),h=()=>{var A,b;return e.loaded?(e.enable||(n.setAttribute("class","PanoRulerPlugin"+(e.options.className?" "+e.options.className:"")),(b=(A=i.getElement())==null?void 0:A.parentElement)==null||b.append(n),u(),i.on("modeChange",u),i.on("cameraUpdate",f),e.enable=!0),!0):!1},p=()=>(e.enable&&(i.off("modeChange",u),i.off("cameraUpdate",f),n&&n.remove(),e.enable=!1),!0);function g(A){if(A.distanceText&&A.distanceText!==e.options.distanceText){const b=A.distanceText;e.options.distanceText=b,Object.values(a).forEach(v=>{v.rules.forEach(C=>{const[y,E]=C.rule,k=y.distanceTo(E),w=C.$element.querySelector(".PanoRulerPlugin-rule-label-name");!w||(w.innerText=b(k))})})}}return{enable:h,disable:p,load:c,state:e,changeConfigs:g}};function Ec(i){s.append_styles(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 Zs(i,t,e){const o=i.slice();return o[6]=t[e],o}function kc(i){let t,e=i[0].children,o=[];for(let n=0;n<e.length;n+=1)o[n]=qs(Zs(i,e,n));return{c(){t=s.element("div");for(let n=0;n<o.length;n+=1)o[n].c();s.attr(t,"class","rule-mixed-line svelte-1h27ktp")},m(n,r){s.insert(n,t,r);for(let a=0;a<o.length;a+=1)o[a].m(t,null)},p(n,r){if(r&9){e=n[0].children;let a;for(a=0;a<e.length;a+=1){const l=Zs(n,e,a);o[a]?o[a].p(l,r):(o[a]=qs(l),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=e.length}},d(n){n&&s.detach(t),s.destroy_each(o,n)}}}function xc(i){let t,e;return{c(){t=s.element("em"),s.attr(t,"class",e=s.null_to_empty(i[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),s.attr(t,"style",i[3])},m(o,n){s.insert(o,t,n)},p(o,n){n&1&&e!==(e=s.null_to_empty(o[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&s.attr(t,"class",e),n&8&&s.attr(t,"style",o[3])},d(o){o&&s.detach(t)}}}function qs(i){let t,e,o=`${i[6].width}px`;return{c(){t=s.element("div"),s.attr(t,"class",e=s.null_to_empty(i[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),s.attr(t,"style",i[3]),s.set_style(t,"width",o,!1)},m(n,r){s.insert(n,t,r)},p(n,r){r&1&&e!==(e=s.null_to_empty(n[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&s.attr(t,"class",e),r&8&&s.attr(t,"style",n[3]),r&1&&o!==(o=`${n[6].width}px`)&&s.set_style(t,"width",o,!1)},d(n){n&&s.detach(t)}}}function Dc(i){let t,e,o,n,r=i[0].labelElement+"",a,l,c=`${i[0].labelOffset}%`,d=`${i[0].width}px`,u=`${i[0].left}px`,f=`${i[0].top}px`,h=`rotate(${i[0].rotateDeg}deg)`;function p(b,v){return b[0].children.length===0?xc:kc}let g=p(i),A=g(i);return{c(){t=s.element("div"),A.c(),e=s.space(),o=s.element("div"),n=s.element("div"),a=s.text(r),s.attr(n,"class","PanoRulerPlugin-rule-label-name svelte-1h27ktp"),s.add_render_callback(()=>i[4].call(n)),s.attr(o,"class","PanoRulerPlugin-rule-label svelte-1h27ktp"),s.set_style(o,"left",c,!1),s.attr(t,"class","PanoRulerPlugin-rule-line svelte-1h27ktp"),s.set_style(t,"width",d,!1),s.set_style(t,"left",u,!1),s.set_style(t,"top",f,!1),s.set_style(t,"transform",h,!1),s.set_style(t,"display",i[0].visible&&i[2]?"block":"none",!1)},m(b,v){s.insert(b,t,v),A.m(t,null),s.append(t,e),s.append(t,o),s.append(o,n),s.append(n,a),l=s.add_resize_listener(n,i[4].bind(n))},p(b,[v]){g===(g=p(b))&&A?A.p(b,v):(A.d(1),A=g(b),A&&(A.c(),A.m(t,e))),v&1&&r!==(r=b[0].labelElement+"")&&s.set_data(a,r),v&1&&c!==(c=`${b[0].labelOffset}%`)&&s.set_style(o,"left",c,!1),v&1&&d!==(d=`${b[0].width}px`)&&s.set_style(t,"width",d,!1),v&1&&u!==(u=`${b[0].left}px`)&&s.set_style(t,"left",u,!1),v&1&&f!==(f=`${b[0].top}px`)&&s.set_style(t,"top",f,!1),v&1&&h!==(h=`rotate(${b[0].rotateDeg}deg)`)&&s.set_style(t,"transform",h,!1),v&5&&s.set_style(t,"display",b[0].visible&&b[2]?"block":"none",!1)},i:s.noop,o:s.noop,d(b){b&&s.detach(t),A.d(),l()}}}function Sc(i,t,e){let o,{rulerItemProp:n}=t,r=!0,a,l="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PGZpbHRlciBpZD0icHJlZml4X19hIiBoZWlnaHQ9IjQwMCUiIHdpZHRoPSIxMzcuNCUiIHg9Ii0xOC43JSIgeT0iLTE1MCUiPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iZGlsYXRlIiByYWRpdXM9Ii41IiByZXN1bHQ9InNoYWRvd1NwcmVhZE91dGVyMSIvPjxmZU9mZnNldCBpbj0ic2hhZG93U3ByZWFkT3V0ZXIxIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiByYWRpdXM9IjEiIHJlc3VsdD0ic2hhZG93SW5uZXIiLz48ZmVPZmZzZXQgaW49InNoYWRvd0lubmVyIiByZXN1bHQ9InNoYWRvd0lubmVyIi8+PGZlQ29tcG9zaXRlIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIGluMj0ic2hhZG93SW5uZXIiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIgc3RkRGV2aWF0aW9uPSIuNSIvPjxmZUNvbG9yTWF0cml4IGluPSJzaGFkb3dCbHVyT3V0ZXIxIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMiAwIi8+PC9maWx0ZXI+PHBhdGggaWQ9InByZWZpeF9fYiIgZD0iTS44ODkgMkgxMS41OCIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1kYXNoYXJyYXk9IjUgNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBzdHJva2U9IiNmZmYiIHN0cm9rZS1vcGFjaXR5PSIuNCIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjwvZz48L3N2Zz4=";function c(){a=this.offsetWidth,e(1,a)}return i.$$set=d=>{"rulerItemProp"in d&&e(0,n=d.rulerItemProp)},i.$$.update=()=>{i.$$.dirty&3&&(a>=n.width||a/2>=n.labelOffset/100*n.width||a/2>=(1-n.labelOffset/100)*n.width?e(2,r=!1):e(2,r=!0))},e(3,o=`--background-image: url(${l})`),[n,a,r,o,c]}class Lc extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Sc,Dc,s.safe_not_equal,{rulerItemProp:0},Ec)}}function Ks(i,t,e){const o=i.slice();return o[12]=t[e],o}function $s(i){let t,e;return t=new Lc({props:{rulerItemProp:i[12]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.rulerItemProp=o[12]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function _c(i){let t,e,o=i[0],n=[];for(let a=0;a<o.length;a+=1)n[a]=$s(Ks(i,o,a));const r=a=>s.transition_out(n[a],1,1,()=>{n[a]=null});return{c(){t=s.element("div");for(let a=0;a<n.length;a+=1)n[a].c()},m(a,l){s.insert(a,t,l);for(let c=0;c<n.length;c+=1)n[c].m(t,null);e=!0},p(a,[l]){if(l&1){o=a[0];let c;for(c=0;c<o.length;c+=1){const d=Ks(a,o,c);n[c]?(n[c].p(d,l),s.transition_in(n[c],1)):(n[c]=$s(d),n[c].c(),s.transition_in(n[c],1),n[c].m(t,null))}for(s.group_outros(),c=o.length;c<n.length;c+=1)r(c);s.check_outros()}},i(a){if(!e){for(let l=0;l<o.length;l+=1)s.transition_in(n[l]);e=!0}},o(a){n=n.filter(Boolean);for(let l=0;l<n.length;l+=1)s.transition_out(n[l]);e=!1},d(a){a&&s.detach(t),s.destroy_each(n,a)}}}function zc(i,t,e){var A,b,v,C;let{five:o}=t,{rulerDatas:n}=t,{options:r}=t,a=[];const l=((b=(A=o.getElement())==null?void 0:A.parentElement)==null?void 0:b.clientWidth)||0,c=((C=(v=o.getElement())==null?void 0:v.parentElement)==null?void 0:C.clientHeight)||0,d=(y,E)=>{const k=[[{x:0,y:0},{x:l,y:0}],[{x:0,y:0},{x:0,y:c}],[{x:l,y:0},{x:l,y:c}],[{x:0,y:c},{x:l,y:c}]],w=[];for(let D=0;D<k.length;D++){const x=Vs([y,E],[k[D][0],k[D][1]],!0);x&&w.push(x)}return w.length===0?!1:w},u=(y,E)=>{const k=y.clone().project(o.camera),w=(k.x+1)/2*l,D=(-k.y+1)/2*c,x=E.clone().project(o.camera),z=(x.x+1)/2*l,_=(-x.y+1)/2*c,j=Math.sqrt(Math.pow(z-w,2)+Math.pow(_-D,2));return{startLeft:w,startTop:D,endLeft:z,endTop:_,distance:j}},f=(y,E,k)=>{const w=o.camera.position,D=o.camera.getWorldDirection(new M.Vector3),x=y.clone().sub(w).normalize().angleTo(D),z=E.clone().sub(w).normalize().angleTo(D),_=y.distanceTo(E),R=E.clone().sub(E.clone().sub(y).divide(new M.Vector3(2,2,2))).distanceTo(w),{startLeft:P,startTop:S,endLeft:L,endTop:T,distance:O}=u(y,E),Q=-((Math.PI/2-Math.atan2(L-P,S-T))/Math.PI)*180;let H=!0;k||(H=!1),!Pe(y,k)&&!Pe(E,k)&&(H=!1),_<.3&&(H=!1),x>Math.PI/2&&(H=!1),z>Math.PI/2&&(H=!1),R/_>8&&(H=!1);let Y=50,U=O;const K=d({x:~~P,y:~~S},{x:~~L,y:~~T});if(K&&K.length===1&&(Pe(y,k)?(U=Math.sqrt(Math.pow(K[0].x-P,2)+Math.pow(K[0].y-S,2)),Y=U/O*50):Pe(E,k)&&(U=Math.sqrt(Math.pow(K[0].x-L,2)+Math.pow(K[0].y-T,2)),Y=100-U/O*50)),K&&K.length===2){const se={x:(K[0].x+K[1].x)/2,y:(K[0].y+K[1].y)/2};Y=Math.sqrt(Math.pow(se.x-P,2)+Math.pow(se.y-S,2))/O*100}return{startLeft:P,startTop:S,distance:O,deg:Q,visible:H,labelOffset:Y,ruleLength:_}},h=()=>{const y=o.panoIndex,E=n.find(j=>j.panoIndex===y);if(!E)return e(0,a=[]);if(o.currentMode!==J.Five.Mode.Panorama)return e(0,a=[]);const k=o.camera.position,w=o.camera.getWorldDirection(new M.Vector3),D=E.lines.map(j=>new M.Vector3(j.start[0],-j.start[1],-j.start[2])),x=E.lines.map(j=>new M.Vector3(j.end[0],-j.end[1],-j.end[2])),[z]=D.concat(x).sort((j,R)=>{const P=j.clone().setY(0).sub(k).normalize().angleTo(w.clone().setY(0)),S=R.clone().setY(0).sub(k).normalize().angleTo(w.clone().setY(0));return P-S}),_=E.lines.map(j=>{var U,K;const R=j.start,P=j.end,{startLeft:S,startTop:L,distance:T,deg:O,visible:N,labelOffset:Q,ruleLength:H}=f(new M.Vector3(R[0],-R[1],-R[2]),new M.Vector3(P[0],-P[1],-P[2]),z),Y=[];return j.children&&((U=j.children)==null?void 0:U.length)>0&&((K=j.children)==null||K.forEach(se=>{const ae=se.start,me=se.end,{distance:W}=u(new M.Vector3(ae[0],-ae[1],-ae[2]),new M.Vector3(me[0],-me[1],-me[2]));Y.push({width:W,state:se.state})})),{width:T,left:S,top:L,rotateDeg:O,state:j.state,children:Y,labelOffset:Q,visible:N,labelElement:r.distanceText(H)}});e(0,a=_)},p=()=>Lt(h),g=uo(h,80);return Z.onMount(()=>{h(),o.on("panoArrived",h),o.on("modeChange",h),o.on("cameraDirectionUpdate",p),o.on("movingToPano",p),o.on("mouseWheel",()=>g()),o.on("pinchGesture",()=>g())}),Z.onDestroy(()=>{o.off("panoArrived",h),o.off("modeChange",h),o.off("cameraDirectionUpdate",p),o.off("movingToPano",p),o.off("mouseWheel",()=>g()),o.off("pinchGesture",()=>g())}),i.$$set=y=>{"five"in y&&e(1,o=y.five),"rulerDatas"in y&&e(2,n=y.rulerDatas),"options"in y&&e(3,r=y.options)},[a,o,n,r]}class Mc extends s.SvelteComponent{constructor(t){super(),s.init(this,t,zc,_c,s.safe_not_equal,{five:1,rulerDatas:2,options:3})}}class jc{constructor(t,e){m(this,"five");m(this,"container",document.createElement("div"));m(this,"panoRulerProData");m(this,"rulerItems");m(this,"state",{enabled:!1,loaded:!1,options:{className:"",distanceText:t=>`${t.toFixed(1)}m`}});var o,n;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=B(B({},this.state.options),e.options||{}),(o=e.options)!=null&&o.className&&this.container.classList.add((n=e.options)==null?void 0:n.className)),this.five.once("modelLoaded",()=>G(this,null,function*(){var r,a;(a=(r=this.five.getElement())==null?void 0:r.parentNode)==null||a.append(this.container)})),this.five.once("dispose",()=>this.dispose())}load(t){return G(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 G(this,null,function*(){var t;if(this.state.enabled){if(!this.panoRulerProData||!this.container)return;this.rulerItems=new Mc({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 Bc=(i,t)=>new jc(i,t),Tc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAABCCAYAAAB9y1BhAAAAAXNSR0IArs4c6QAADh5JREFUeAHtnVuPLDcVhedwC/dACKAICDxEIBQpygNI/Ab+MX8B8YCQEAjxgBAQLsm5Jjkn58r6Sl4jT52qnu4zXd121dqSx67q7ip7eXsv721XzcVFJAgEgSAQBIJAEAgCQeC4CLx48eKbSu+RH/fKuVoQWB8Cn1tfk9KiIHAUBH6tq/xKiTwSBILADgRCJDvAyUebRuAbpfXxSDatBmn8Pgh8YZ8v5TtBYIMIvFCbSZEgEASuQSBEcg1A+XizCDzfbMvT8CBwIAIhkgMBy9c3g0CIZDNdnYbeFIEQyU0RzO/XikCIZK09m3YdHYEQydEhzQVXgkCIZCUdmWYsj0CIZHmMc4c+EchCe5/9llqfAYEQyRlAzy27QCAeSRfdlEq2gECIpIVeSB1aRAAiudVixVKnINAaAiGS1nok9WkFAUJb8Upa6Y3Uo2kEQiRNd08qd0YEQiJnBD+37guBEElf/ZXang6BEMnpsM6dOkcgRNJ5B66x+nrjLmsTX1J6bSJHZ7+o9HklynWaOse1eKcc+XVlvxYFEnlfaThWfb7mcsn5nPRM6WmVU55KfO+J0mdKj8f5rVu3skNMoET6RSBE0m/fdVNzGWII4StKXy65y18t58aEAVGcUjDkGHsLhIOYfCC1xUT4QDJjgnmkc58qkT8saSiLeCCkSBBoBoEQSTNd0V9FZADRH8iAGfvXS06Zc5CF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/jMNTscBdRgJAm0hIF1+wzWSrt52OXkQOCUC0kNsNNuHsatz24iHqI709GxLAjcmktJQEwj5WPA+aCiuWB4YHKOT4yYRkF7zUNkg0lueSI4EgbMiIJ1kZyshL9LUOjNEwkT9sXT2pBP1VyaSQiCse9Coqa27LApBIPE+BEKkLwSk32zRHESDkp0zkSDQBALF9uKdYHunnkthwo7tfXQqQjmYSNQImBACIU2xIuGreB8CIdIvAtJzNogMosHI4mYkCDSHgPTUXspU2ItoEIvzEArlxWRvIlGFWTSnsnWF+b1dKAhk8QrrHpEgsDgC0ndi0oNoEBIuiASBZhGQvnqCz/KCJ/jYZtto7DPRoUU2N11LJIXxqNyUC0VFqeCTpRlP94gEgZMhIL0nbDCIdJswQSQINI9AIRRsNRP+KfvOkgNrKEddr5660YUqw3k8EAhkbvsuCztPVSF7JDqMBIF1IKAxcOl5S8eZLEWCQDcIFBtO2Kv2UOr645lAKkex4VeIpLo5jHbls1KD4eYaWIu4R+UeyYLA2RHQWGAADiJ9P9u2StcheRB4VQSkyzgD2PQppwBH4MaEMpBFRSDcqCYQx9ggDphr0QUb3SMSBJpAQGPiciei9P6oYYAmGphKbA4B6TRrJ+j1HKHYzh8cZbpVBowXZ8bgQhzPNJAOvvD4QjkOAj0hUAbdUOVMoHrqudT1OgSk2zgLkAl2n/LYvh9s900kutYV4UIvQiBXMMlBEAgCQWA1CBRCgUjmHAkI5vk+PACR1BcZmGmfH64GzTQkCASBILBhBAqhgEC9rDFGJI7FGJEcB4EgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCm0fg/x4jQQWGalpFAAAAAElFTkSuQmCC";function Qc(){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(${Tc})`,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(o){o.appendChild(i)},dispose(){i.remove()},setRoom(o){e.innerHTML=o.name+" "+Math.floor(o.size/1e6)+"\u33A1"},show(){i.style.opacity="1"},hide(){i.style.opacity="0"}}}const Oc=new I.TextureLoader;function ei(i){return G(this,null,function*(){return new Promise((t,e)=>{Oc.load(i,t,void 0,e)}).then(t=>(t.encoding=I.sRGBEncoding,t))})}const Tt={userAction:!0};class Rc extends We{constructor(e,o){super(e);m(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"}});m(this,"data");m(this,"group",new I.Group);m(this,"roomInfoInstance");m(this,"roomInfoWrapperInstance");m(this,"compassMeshTween");m(this,"compassMesh");m(this,"entryDoorMesh");m(this,"dispose",()=>{var e,o,n,r;this.five.scene.remove(this.group),this.group.remove(...this.group.children),(o=(e=this.compassMesh)==null?void 0:e.material.map)==null||o.dispose(),(r=(n=this.entryDoorMesh)==null?void 0:n.material.map)==null||r.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)});m(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)});m(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)});m(this,"_enable",()=>{this.five.scene.add(this.group),this.init(),this.onFivePanoArrived(this.five.panoIndex||0),this._addEventListener()});m(this,"_disable",()=>{this._clearCompassIfNeed(),this._clearEntryDoorIfNeed(),this.five.scene.remove(this.group),this._removeEventListener()});m(this,"_toggleVisible",()=>{this.group.visible=this.state.visible,this.five.needsRender=!0});m(this,"_clearCompassIfNeed",()=>{var e;this.compassMesh&&(this.group.remove(this.compassMesh),(e=this.compassMesh.material.map)==null||e.dispose(),this.compassMesh=null)});m(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)});m(this,"onFivePanoWillArrive",e=>{var o,n;e!==this.five.panoIndex&&((o=this.compassMeshTween)==null||o.dispose(),(n=this.compassMesh)==null||n.material.setValues({opacity:0}))});m(this,"onFivePanoArrived",e=>{var n,r,a,l,c,d,u;const o=(a=(r=(n=this.five.work)==null?void 0:n.observers)==null?void 0:r[e])==null?void 0:a.standingPosition;if(this.compassMesh&&(this.compassMesh.position.copy(o.clone().setY(o.y+.01)),this.compassMesh.material.opacity===0&&((l=this.compassMeshTween)==null||l.dispose(),this.compassMeshTween=Gs(1e3).onUpdate(({progress:f})=>{var h;(h=this.compassMesh)==null||h.material.setValues({opacity:f}),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(o.y).sub(o).normalize(),p=o.clone().add(h.clone().multiplyScalar(.7)).setY(o.y+.01);this.entryDoorMesh.rotation.z=new I.Vector3(0,0,-1).angleTo(h),this.entryDoorMesh.position.copy(p),((c=this.data)==null?void 0:c.room_observers[e].room.type)===1?(d=this.entryDoorMesh)==null||d.material.setValues({opacity:1}):(u=this.entryDoorMesh)==null||u.material.setValues({opacity:0})}this.roomInfoInstance&&this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.css3DObject.position.copy(o.clone().setY(o.y+.01)),this.roomInfoInstance.setRoom(this.data.room_observers[e].room)),this.five.needsRender=!0});m(this,"onFiveCameraDirectionUpdate",({longitude:e,latitude:o})=>{var n,r;!this.roomInfoWrapperInstance||(this.roomInfoWrapperInstance.css3DObject.rotation.z=e,o>.66&&this.five.getCurrentState().mode==="Panorama"?(n=this.roomInfoInstance)==null||n.show():(r=this.roomInfoInstance)==null||r.hide())});m(this,"onFiveModeChange",(e,o,n,r,a)=>{e!==o&&this.setState({visible:e===J.Five.Mode.Panorama},{userAction:a})});this.five.scene.add(this.group),this.five.once("dispose",this.dispose),this.setState({visible:!0,enabled:!0,config:B(B({},this.state.config),o||{})})}enable(e=Tt){this.setState({enabled:!0},e)}disable(e=Tt){this.setState({enabled:!1},e)}show(e=Tt){if(!!this.state.enabled)return this.setState({visible:!0},e),Promise.resolve()}hide(e=Tt){if(!!this.state.enabled)return this.setState({visible:!1},e),Promise.resolve()}setState(e,o={userAction:!0}){var r,a;const n=JSON.parse(JSON.stringify(this.state));this.state={visible:(r=e.visible)!=null?r:n.visible,enabled:(a=e.enabled)!=null?a:n.enabled,config:B(B({},n.config),e.config||{})},this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:o.userAction}),e.enabled===!0&&(this._enable(),this.hooks.emit("enable",o)),e.enabled===!1&&(this._disable(),this.hooks.emit("disable",o)),e.visible===!1&&(this._toggleVisible(),this.hooks.emit("hide",o)),e.visible===!0&&(this._toggleVisible(),this.hooks.emit("show",o)),e.config&&this.init()}load(e,o,n=!0){return G(this,null,function*(){const r=yield this.formatData(e);JSON.stringify(this.data)!==JSON.stringify(r)&&(this.hooks.emit("dataChange",r,this.data),this.data=B({},r),this.init(),o&&this.setState(o,{userAction:n}),this.hooks.emit("dataLoaded",this.data))})}formatData(e){return e.version&&e.data?Promise.resolve(e.data):Promise.resolve(e)}init(){return G(this,null,function*(){var n,r,a,l;const e=(r=(n=this.data)==null?void 0:n.north_rad)!=null?r: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 o=(l=(a=this.data)==null?void 0:a.entrance)!=null?l:null;this._clearEntryDoorIfNeed(),o!==null&&(this.entryDoorMesh=yield this.loadEntryDoorMesh(),this.roomInfoWrapperInstance=this.loadRoomInfo(),this.roomInfoInstance=Qc(),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 G(this,null,function*(){const e=this.state.config.compassImageUrl,o=yield ei(e),n=new I.CircleGeometry(.7,32),r=new I.MeshBasicMaterial({map:o,transparent:!0,opacity:0,depthTest:!1}),a=new I.Mesh(n,r);return a.name="pano-compass-mesh",a})}loadEntryDoorMesh(){return G(this,null,function*(){const e=this.state.config.entryDoorImageUrl,o=yield ei(e),n=new I.PlaneGeometry(.2,.16),r=new I.MeshBasicMaterial({map:o,transparent:!0,opacity:.8,depthTest:!1}),a=new I.Mesh(n,r);return a.name="pano-compass-entry-door",a})}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 et(this.five).create3DDomContainer(e)}}const Fc=(i,t)=>new Rc(i,t);function Qt(i,t,e){const o=i[t];i[t]=i[e],i[e]=o}function Hc(i,t,e){const o=e/2;for(let n=1;n<=o;n++){const r=e-(n-1);for(let a=1;a<=t;a++){const l=(n-1)*t+a-1,c=(r-1)*t+a-1;Qt(i,l*4+0,c*4+0),Qt(i,l*4+1,c*4+1),Qt(i,l*4+2,c*4+2),Qt(i,l*4+3,c*4+3)}}}class ti{constructor(t,e){m(this,"width");m(this,"height");m(this,"visible",!1);m(this,"hooks",new J.Subscribe);m(this,"contentDom",document.createElement("canvas"));m(this,"five");m(this,"scale");m(this,"wrapper");m(this,"config");m(this,"offset",{x:0,y:0});m(this,"canvas",this.contentDom);m(this,"context");m(this,"renderCenter",new I.Vector3);m(this,"lastPanEvent");m(this,"hammer");m(this,"onPan",t=>{var d,u,f,h;if(!this.wrapper)return;const e=(u=(d=this.lastPanEvent)==null?void 0:d.deltaX)!=null?u:0,o=(h=(f=this.lastPanEvent)==null?void 0:f.deltaY)!=null?h:0,n=t.deltaX-e,r=t.deltaY-o;if(this.lastPanEvent=t,this.hooks.emit("wantsPanGesture",{srcEvent:t,deltaX:n,deltaY:r}))return;const l=this.offset.x+n,c=this.offset.y+r;this.contentDom.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)",this.canvas.style.transform=`translate3d(${l}px, ${c}px, 100px)`,this.offset={x:l,y:c}});m(this,"onPanEnd",t=>{this.lastPanEvent=void 0,this.contentDom.style.boxShadow="none"});var n,r,a;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(n=e==null?void 0:e.scale)!=null?n:2,this.width=(r=e==null?void 0:e.width)!=null?r:190,this.height=(a=e==null?void 0:e.height)!=null?a: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 o=this.canvas.getContext("2d");if(!o)throw new Error("CANNOT CREATE CONTEXT2D");this.context=o,this.config.dragEnabled&&(this.hammer=new lt.default(this.canvas),this.hammer.on("pan",this.onPan),this.hammer.on("panend",this.onPanEnd))}dispose(){var t;this.clear(),this.remove(),(t=this.hammer)==null||t.destroy()}remove(){this.canvas.remove(),this.visible=!1}clear(){this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}appendTo(t){this.wrapper=t,this.initStyle(),t.append(this.canvas),this.visible=!0}renderWithPoint(t){!this.wrapper||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}autoFixPCPosition(){if(!this.wrapper)return;const{width:t,height:e}=this,o=this.renderCenter.clone().project(this.five.camera),n=(o.x+1)/2*this.wrapper.clientWidth,r=-(o.x-1)/2*this.wrapper.clientWidth,a=-(o.y-1)/2*this.wrapper.clientHeight;n<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):a<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):r<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, ${a}px, 10px)`,this.offset={x:n,y:a}}render(){if(!this.five.renderer||!this.wrapper)return;const{scale:t,context:e,width:o,height:n}=this,r=this.renderCenter.clone().project(this.five.camera),a=this.five.renderer.getSize(new I.Vector2),l=1,c=o/t,d=n/t,u=l*t,f=(r.x+1)/2*a.x,h=(r.y+1)/2*a.y,p=this.five.getPixels(f-c/2,h-c/2,c,d,u),g=Math.floor(o*l),A=Math.floor(n*l);Hc(p,g,A);const b=new ImageData(g,A);b.data.set(p),e.putImageData(b,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")}}class Gc{constructor(t){m(this,"edges",[]);m(this,"five");m(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,o;return this.edges.forEach(n=>{const r=n.closestPointToPoint(t.point,!0,new M.Vector3),a=r.distanceTo(t.point);a<e&&(o=r,e=a)}),e>.1?null:o||null}}class go{constructor(){m(this,"id",fe());m(this,"points",[]);m(this,"lines",[])}push(t){const e=this.getNext(t);if(!e)throw new Error("\u5F53\u524D\u7EBF\u6BB5\u4E8E\u4E0A\u4E00\u6761\u7EBF\u6BB5\u65E0\u6CD5\u6784\u6210\u6298\u7EBF");return this.lines.push(e.line),this.points.push(...e.points),this.lines.length}pop(){const t=this.lines.pop();return this.lines.length===0?this.points.slice(0,this.points.length):this.points.pop(),t}getNext(t){const e=this.points.slice(-1)[0];if(!e)return{line:t,points:t.points};if(!t.points.includes(e))return null;const o=t.points.find(n=>n!==e);return o?{line:t,points:[o]}:null}toJson(){return{id:this.id,lines:this.lines.map(t=>t.id),points:this.points.map(t=>t.id)}}toCompletelyJson(){return{id:this.id,points:this.points.map(t=>t.toJson()),lines:this.lines.map(t=>t.toCompletelyJson())}}}const Nc=1,Wc=3,Xc=new M.Color(16777215),Yc=new M.Color(6522623),Uc=new M.Color(16777215),Vc=new M.Color(6522623),Jc=6,Zc=8,qc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAIVBMVEUAAAD////////////////////////////////////////PIev5AAAACnRSTlMAG/Py2baba05un7UgfgAAAHJJREFUKM9joBpgLHVSCRdA4metAoJlCJHmVWBgAeNzroKCCVCBLpjACqgJVjCBxRBT2FbBQQJYQAohsBAsUIUQWA4WiEIILAULeCEEloAFtBACizAEMLRgGIphLabDMJ2O6TlM72MGECIIMQIZIxqoBQCPvpJ/e9FaAAAAAABJRU5ErkJggg==",oi=new M.TextureLoader().load(qc),si={pointTexture:oi,pointSize:Jc,lineWidth:Nc,lineColor:Xc,pointColor:Uc,lineRenderOrder:20,pointsRenderOrder:20};q(B({},si),{dashed:!0});const Kc={pointTexture:oi,pointSize:Zc,lineWidth:Wc,lineColor:Yc,pointColor:Vc,lineRenderOrder:10,pointsRenderOrder:10};function $c(i,t,e){var u,f,h,p,g;const o=(u=e==null?void 0:e.lineWidth)!=null?u:2,n=(f=e==null?void 0:e.lineColor)!=null?f:new M.Color(16777215),r=(h=e==null?void 0:e.pointSize)!=null?h:5,a=(p=e==null?void 0:e.lineRenderOrder)!=null?p:10,l=(g=e==null?void 0:e.lineRenderOrder)!=null?g:20,c=new gt.Line(i,t);c.setMaterial({linewidth:o,color:n}),c.line.material.depthTest=!1,c.line.material.transparent=!0,c.line.renderOrder=a,c.points.renderOrder=l;const d=c.points.material;return d.depthTest=!1,d.size=r,e!=null&&e.pointColor&&d.color.set(e.pointColor).convertSRGBToLinear(),e!=null&&e.pointTexture&&(d.map=e.pointTexture),c}function ii(i,t){const[e,o]=i.points,n=t==="light"?Kc:si,r=$c(e.position,o.position,n);return r.name="normalLine_"+i.id,r}function Ee(i){const{x:t,y:e,z:o}=i;return!(Math.abs(t)>1||Math.abs(e)>1||Math.abs(o)>1)}function ed(){const i=document.createElement("div");return i.setAttribute("style","backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);"),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.pointerEvents="all",i.style.cursor="pointer",i}function td(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.transform="translate3d(0, 0, 0)",t.style.transformOrigin="left top",t}function od(i){function t(){var g;(g=i.clickCallback)==null||g.call(i,p)}function e(){if(f)return f.highlight();d.style.border="0.5px solid #95AEFF",d.style.background="linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)"}function o(){if(f)return f.unHighlight();d.style.border="0.5px solid rgba(255,255,255,0.6)",d.style.background="rgba(195,195,195,0.70)"}function n(g){const A=g.getElement();if(!A)return;const b=A.clientWidth,v=A.clientHeight;if(l.points.length<2)return;const[C,y]=l.points,E=C.position.clone().project(g.camera),k=y.position.clone().project(g.camera),w=E.clone().lerp(k,.5),D=new M.Vector2(E.x*b,E.y*v),x=new M.Vector2(k.x*b,k.y*v);if((()=>!(Math.abs(E.z)>1||Math.abs(k.z)>1||!Ee(E)&&!Ee(k)||!Ee(w)||D.distanceTo(x)<20))()===!1){u.style.opacity="0",u.style.pointerEvents="none";return}const _=(w.x+1)/2*b,j=-(w.y-1)/2*v,P=-(Math.atan((D.y-x.y)/(D.x-x.x))*180)/Math.PI;u.style.transform=`translate(${_}px, ${j}px) rotate(${P}deg)`,u.style.opacity="1",u.style.pointerEvents="all",f&&f.update({line:l.toCompletelyJson(),polyline:l.getPolyline().toCompletelyJson()});const S=C.position.clone().distanceTo(y.position),L=i.line.model.params.getDistanceText(S);d.innerText!==L&&(d.innerText=L)}function r(g){g.appendChild(u),u.addEventListener("click",t)}function a(){d.removeEventListener("click",t),u.remove()}const{line:l}=i,c=l.id,d=ed(),u=td(l),f=i.userDistanceItem,h=new M.Vector3(0,0,0),p={lineID:c,ndcPosition:h,update:n,appendTo:r,remove:a,highlight:e,unHighlight:o};return f!=null&&f.element?u.appendChild(f.element):u.appendChild(d),p}class it{constructor(t,e,o){m(this,"id");m(this,"selected",!1);m(this,"type","line");m(this,"model");m(this,"mesh");m(this,"points");m(this,"lightMesh");m(this,"hook");m(this,"distanceItem");m(this,"polyline");if(this.id=fe(),this.model=o,t.id===e.id)throw new Error("\u65E0\u6548\u7684\u7EBF\u6BB5, \u4E00\u4E2A\u70B9\u65E0\u6CD5\u6784\u6210\u7EBF\u6BB5");this.hook=new J.Subscribe,this.points=[t,e],this.mesh=ii(this,"normal"),this.lightMesh=ii(this,"light"),this.distanceItem=od({line:this,clickCallback:()=>this.hook.emit("selected",this),userDistanceItem:this.model.params.userDistanceItemCreator?this.model.params.userDistanceItemCreator():void 0}),t.lines.push(this),e.lines.push(this)}clear(){this.selected=!1,this.polyline=void 0}getPolyline(){if(this.polyline)return this.polyline;const t=this.model.polylines.find(o=>o.lines.includes(this));if(this.polyline=t,t)return t;const e=new go;return e.push(this),e}findAnotherPoint(t){return this.points.find(({id:e})=>e!==t.id)}toJson(){return{id:this.id,points:this.points.map(({id:t})=>t)}}toCompletelyJson(){return{id:this.id,points:this.points.map(t=>t.toJson())}}clone(){return new it(this.points[0].clone(),this.points[1].clone(),this.model)}}function mt(i,t){for(let e=0,o=t.length;e<o;e++)if(i===t[e])return t.splice(e,1)[0]}class ke{constructor(t){m(this,"id");m(this,"lines");m(this,"position");m(this,"type","point");this.id=fe(),this.lines=[],this.position=new M.Vector3,t instanceof M.Vector3?this.position.copy(t):this.position.fromArray(t)}toJson(){return{id:this.id,lines:this.lines.map(({id:t})=>t),position:this.position.toArray()}}addLine(t){this.lines.push(t)}removeLine(t){mt(t,this.lines)}clone(){return new ke(this.position)}}class Ao{constructor(t){m(this,"lines",[]);m(this,"points",[]);m(this,"params");m(this,"polylines",[]);m(this,"hook",new J.Subscribe);this.params=t}addLine(t){const[e,o]=t.points;if(!e||!o)return this;this.includes(e)||this.points.push(e),this.includes(o)||this.points.push(o),this.lines.push(t);const n=this.polylines.find(r=>!!r.getNext(t));if(n)n.push(t);else{const r=new go;r.push(t),this.polylines.push(r)}this.hook.emit("lineAdded",t)}removeLineByID(t){const e=this.getLineByID(t);e&&this.removeLine(e)}removeLine(t){const e=this.polylines.find(r=>r.lines.includes(t));if(e){if(e.lines.slice(-1)[0]!==t)throw new Error("\u4E0D\u80FD\u4ECE\u4E2D\u95F4\u5220\u9664\u7EBF\u6BB5");e.pop(),e.lines.length===0&&mt(e,this.polylines)}const[o,n]=t.points;return o.lines.length===0&&mt(o,this.points),n.lines.length===0&&mt(n,this.points),mt(t,this.lines),t.clear(),this.hook.emit("lineRemoved",t),this}mergeModel(t){t.lines.forEach(e=>this.addLine(e))}includes(t){if(t.type==="point")return this.points.find(({id:e})=>e===t.id)!==void 0;if(t.type==="line")return this.lines.find(({id:e})=>e===t.id)!==void 0}getPointByID(t){return this.points.find(({id:e})=>e===t)}getLineByID(t){return this.lines.find(({id:e})=>e===t)}getClosestPoint(){}parse(t){const e=t.points.map(({id:r,position:a})=>{const l=new ke(a);return l.id=r,l}),o=t.lines.map(r=>{const[a,l]=r.points,c=this.getPointByID.call({points:e},a),d=this.getPointByID.call({points:e},l);if(!c||!d)throw new Error("\u7EBF\u4E0A\u7684\u70B9\u4E0D\u5B58\u5728");const u=new it(c,d,this);return u.id=r.id,u}),n=t.polylines.map(r=>{const a=new go;return r.lines.forEach(l=>{const c=o.find(({id:d})=>d===l);c&&a.push(c)}),a});return this.points.splice(0,this.points.length,...e),this.lines.splice(0,this.lines.length,...o),this.polylines.splice(0,this.polylines.length,...n),this}toJson(){return{points:this.points.map(t=>t.toJson()),lines:this.lines.map(t=>t.toJson()),polylines:this.polylines.map(t=>t.toJson()).filter(t=>t.lines.length>0)}}}const Ot=i=>i.preventDefault();class Rt{constructor(t){m(this,"model");m(this,"five");m(this,"group");m(this,"config");m(this,"dashed");m(this,"disposed",!1);m(this,"isMobile");m(this,"mouseGroup");m(this,"container");m(this,"fiveHelper");m(this,"hook");m(this,"magnifier");m(this,"userDistanceItemCreator");m(this,"updateDistanceUI",()=>{this.dashed.distanceItem.update(this.five),this.model.lines.forEach(t=>t.distanceItem.update(this.five))});var o,n;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=(n=(o=t.openParams)==null?void 0:o.isMobile)!=null?n:!1,this.userDistanceItemCreator=t.userDistanceItemCreator,this.group=t.group,this.mouseGroup=t.mouseGroup,this.dashed=new it(new ke([0,0,0]),new ke([0,0,0]),this.model),this.dashed.mesh.setMaterial({dashed:!0,dashScale:100}),this.dashed.mesh.name="dashLine";const e=this.five.getElement();e&&(e.addEventListener("touchstart",Ot),e.addEventListener("contextmenu",Ot))}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 o=this.fiveHelper.getAdsorbentPoint(t),n=o||t.point;if(this.mouseGroup.position.copy(n),e)this.mouseGroup.quaternion.copy(e.quaternion);else if(t.face){const a=t.face.normal.clone().multiplyScalar(.05),c=t.point.clone().add(a).clone().add(a);this.mouseGroup.lookAt(c)}return this.mouseGroup}dispose(){this.disposed=!0,this.magnifier.remove(),this.model.lines.forEach(e=>this.removeLine(e));const t=this.five.getElement();t&&(t.removeEventListener("touchstart",Ot),t.removeEventListener("contextmenu",Ot))}}function vo(i){const{x:t,y:e}=i.center,{clientWidth:o,clientHeight:n}=i.target,r=i.target.getBoundingClientRect(),a=new M.Vector2(t,e).sub(new M.Vector2(r.left,r.top)),l=new M.Vector2(a.x/o*2-1,-(a.y/n)*2+1);return{point:a,ndcPoint:l}}function bo(i,t){const e=vo(t).ndcPoint,o=new M.Raycaster;return o.setFromCamera(e,i.camera),i.model.intersectRaycaster(o)}class Ft extends Rt{constructor(e){var n;super(e);m(this,"type","edit");m(this,"pressPoint");m(this,"hasAppendDashed",!1);m(this,"hasAppendMouseGroup",!1);m(this,"fiveElement");m(this,"lastPoint",null);m(this,"hammer");m(this,"onIntersectionUpdate",uo((e,o)=>{var r;this.hasAppendMouseGroup===!1&&(this.group.add(this.mouseGroup),this.magnifier.appendTo(this.container),this.hasAppendMouseGroup=!0);const n=this.updateMouseGroup(e,o).position;(r=this.pressPoint)==null||r.position.copy(n),this.updateDashed(),requestAnimationFrame(()=>this.magnifier.renderWithPoint(this.mouseGroup.position)),this.five.needsRender=!0},20));m(this,"revoke",()=>{if(this.model.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.five.needsRender=!0;return}if(this.model.lines.length===0&&!this.lastPoint||!this.lastPoint)return;const e=this.model.lines[this.model.lines.length-1],o=e.findAnotherPoint(this.lastPoint);!o||(this.lastPoint=o,this.hook.emit("anchorChange",o.position),this.group.remove(e.mesh),this.model.removeLine(e),this.hasAppendMouseGroup=!1,this.mouseGroup.position.copy(this.lastPoint.position),this.group.remove(this.mouseGroup),e.distanceItem.remove(),this.updateDashed(),this.magnifier.remove(),this.five.needsRender=!0)});m(this,"onMouseLeave",()=>{this.magnifier.remove(),this.group.remove(this.mouseGroup),this.hasAppendMouseGroup=!1,this.lastPoint&&(this.mouseGroup.position.copy(this.lastPoint.position),this.updateDashed())});m(this,"onLineChanged",()=>{this.hook.emit("editedLineChange",this.model.lines.map(e=>e.toCompletelyJson()))});m(this,"onPress",e=>{const[o]=bo(this.five,e);if(!o||!o.face)return;const n=new ke(o.point);this.pressPoint=n,this.onIntersectionUpdate(o)});m(this,"onPan",e=>{if(!this.pressPoint)return;const[o]=bo(this.five,e);!o||!o.face||this.onIntersectionUpdate(o)});m(this,"onPanEnd",e=>{!this.pressPoint||this.onTap(e)});m(this,"onTap",e=>{this.hasAppendDashed||(this.dashed.distanceItem.appendTo(this.container),this.group.add(this.dashed.mesh)),this.hasAppendDashed=!0;const[o]=bo(this.five,e);this.updateMouseGroup(o);const n=new ke(this.mouseGroup.position),r=this.lastPoint;if(n&&(this.lastPoint=n),n&&r){const a=new it(r,n,this.model);a.distanceItem.appendTo(this.container),this.model.addLine(a),this.group.add(a.mesh),a.distanceItem.update(this.five)}this.pressPoint=void 0,this.hasAppendMouseGroup=!1,this.magnifier.remove(),this.group.remove(this.mouseGroup),this.updateDashed(),this.five.needsRender=!0,this.hook.emit("anchorChange",n.position)});m(this,"onWantsTapGesture",()=>!1);m(this,"onWantsToMoveToPano",()=>!1);m(this,"onWantsPanGesture",()=>this.pressPoint?!1:void 0);m(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.dashed.distanceItem.update(this.five)});m(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.model=new Ao(this.config),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.model.hook.on("lineAdded",this.onLineChanged),this.model.hook.on("lineRemoved",this.onLineChanged);const o=this.five.getElement();if(o){this.fiveElement=o;const r=new lt.default(o);this.hammer=r,r.on("tap",this.onTap),r.on("pan",this.onPan),r.on("press",this.onPress),r.on("panend",this.onPanEnd)}(n=this.fiveElement)==null||n.addEventListener("mouseleave",this.onMouseLeave),this.hook.emit("anchorChange",null),this.five.refresh()}dispose(){var e,o;super.dispose(),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.model.hook.off("lineAdded",this.onLineChanged),this.model.hook.off("lineRemoved",this.onLineChanged),(e=this.hammer)==null||e.destroy(),(o=this.fiveElement)==null||o.removeEventListener("mouseleave",this.onMouseLeave),this.magnifier.dispose(),this.dashed.distanceItem.remove(),this.five.needsRender=!0}getEditingLines(){return this.model.lines}}function yo(i,t){const e=i.x-t[0].x,o=i.y-t[0].y,n=t[1].x-t[0].x,r=t[1].y-t[0].y,a=e*n+o*r,l=n*n+r*r,c=a/l;let d,u;return c<0||sd(t[0],t[1])?(d=t[0].x,u=t[0].y):c>1?(d=t[1].x,u=t[1].y):(d=t[0].x+c*n,u=t[0].y+c*r),new M.Vector2(d,u)}function sd(i,t){return i.x===t.x&&i.y===t.y}function Ht(i){const t=(r,a,l)=>{const c=r.lines.find(u=>u.points.findIndex(({id:h})=>h===r.id)!==a);if(!c)return l;const d=c.points[a];return d?t(d,a,l.concat(c)):l},e=t(i.points[0],1,[]),o=t(i.points[0],0,[]);return e.concat(o)}class id extends Rt{constructor(e){super(e);m(this,"type","view");m(this,"highlightedLines",[]);m(this,"hammer");m(this,"wantsTapGesture",e=>{if(this.model.lines.length===0)return;const[o]=this.five.model.intersectRaycaster(e);if(!o)return;const n=this.five.camera,r=o.point.clone().project(n),a=this.container.clientWidth,l=this.container.clientHeight,c=new M.Vector2(r.x*a,r.y*l),d=this.model.lines.map(p=>{const[g,A]=p.points,b=g.position.clone().project(n),v=A.position.clone().project(n);if(!Ee(b)&&!Ee(v))return null;const C=new M.Vector2(b.x*a,b.y*l),y=new M.Vector2(v.x*a,v.y*l);return{id:p.id,points:[C,y]}}).filter(p=>!!p);if(d.length===0)return;const f=d.map(p=>{const g=yo(c,p.points);return{id:p.id,distance:g.distanceTo(c)}}).sort((p,g)=>p.distance-g.distance)[0],h=f.distance>20?void 0:this.model.lines.find(({id:p})=>p===f.id);if(this.highlightedLines.length>0&&!h)return this.clearHighlightLines(),!1;if(h)return this.chooseLine(h),!1});m(this,"chooseLine",e=>{const o=Ht(e);this.highlightLines(o),this.five.needsRender=!0,this.hook.emit("selectedChange",o.map(n=>n.toCompletelyJson()))});m(this,"lineRemoved",e=>{this.removeLine(e),this.hook.emit("selectedChange",this.model.lines.filter(o=>o.selected).map(o=>o.toCompletelyJson()))});m(this,"onCameraUpdate",()=>{this.updateDistanceUI()});this.model.lines.forEach(n=>{n.distanceItem.appendTo(this.container),n.distanceItem.update(this.five),n.hook.on("selected",this.chooseLine),this.group.add(n.mesh)});const o=this.five.getElement();if(o){const n=new lt.default(o);this.hammer=n}this.model.hook.on("lineRemoved",this.lineRemoved),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.wantsTapGesture),this.five.needsRender=!0}dispose(){var e;super.dispose(),this.model.hook.off("lineRemoved",this.lineRemoved),this.five.off("cameraUpdate",this.onCameraUpdate),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.model.lines.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,e.forEach(o=>this.highlightLine(o))}}const nd=`
204
204
  <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">
205
205
  <defs>
206
206
  <linearGradient x1="22.185491%" y1="100%" x2="66.8316686%" y2="6.67239121%" id="linearGradient-1">
@@ -213,7 +213,7 @@ transition: all 500ms;
213
213
  `,ni="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTciIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMC43MDYlIiB5MT0iNDIuNzQ0JSIgeDI9Ijg5LjA2NCUiIHkyPSI1Ny4yMDglIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wY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aSM2dOfGJPgaa0bOapMvMwWpNvaXRq259zho99WBwhk+FvXX/cNgjmBjwDjd1h00OJY9RQdeiybzVZ+8XmucZXP74AN8ure9YPq2vz97Fn8T8R6+++C/D6lMWcoZndf3zd13+OR3g9fqi/6/pC8nn8rUEnz7pByIHvgvF4mZwA31DjRwvfWOP0MmTdTN6+9dp957keGz6A2jVtplvepmDXo+8yS2sy9QHN5ekGsIBO7eCz3Lr0ZUovL1HcO+788/zhtd6jEUInp369DJf3MaG7ir/9hqEYHxXiK8F+F04/mSa7uljqv17HfSN+gJ582eW3ftTeGGcT8t68Gcv73vkicM36necXqmb/GJ9h+OC77LwkcJvDMW8OfjOB/eTm3P2xUWxVocJ6uaiBRr32orc8NafI6m40Q/vs/qYjT16Q3v96JnSkK4XlQD32h3A/NJvZomR+MaVBzrnDeY6l2hW2PceDgs/nofEKxp6AemVcedsifNcxi87L36+IOYP3vgXQWUi7qVeB7+g18Pb7rzv8JPfdf/FH6Xvs7nXMZ/NFqfeP/6zl5+rN8HX6NdqX6on4yu1fxZ3lJvKG4SPHuzk3LS8QXDKTTQOgVXPglMueVYmbuJWn55+sukDZ+gTMouX/Og7V+YB29eM9YWgeqxwwz+nbf7smaG0G6689TOv8/MBmJBlXuHz/NGz54W7FEeNZW66Kg7Tz+ZrpthHTx88eehzfe+8CcKr/fdE+zk9/tPh1sNDD3zTxe+2/tMUMMcf+/K3Zq8dvlgvuhfqyfhC3aXP10eQ5+lzxLt1c+7SkHcJv/3sEzWnF1n/r8sqON9hq1L1Jmxk9vGTRF0Bvc+ts7i4JesX34YXr51vYPqY7wFG1zY9YieaKm36xS817VizJm96rSoEPa6Y0+MNUcKNp0D9l//jem4fFf6ontdHFH9Yz+3v6I3xW3qjfkDfGv2173719f+sQc/zLAb/D0EI6cG68deIAAAAAElFTkSuQmCC";class ri{constructor(t,e){m(this,"visible",!1);m(this,"five");m(this,"lines",[]);m(this,"points",[]);m(this,"onClick");m(this,"cancelDelete");m(this,"content",document.createElement("div"));m(this,"container",document.createElement("div"));m(this,"masking",document.createElement("div"));m(this,"onMouseEnter",()=>{this.content.style.backgroundImage=`url(${rd})`});m(this,"onMouseLeave",()=>{this.content.style.backgroundImage=`url(${ni})`});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(${ni})`,this.content.innerHTML=`
214
214
  ${nd}
215
215
  <span>\u5220\u9664</span>
216
- `,this.container.append(this.content);const o=this.content.querySelector(".fpm__delete-icon");o&&(o.style.width="16px",o.style.height="17px",o.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 o=e.map(h=>h.x),n=e.map(h=>h.y),r=(Math.min(...o)+Math.max(...o))/2,a=Math.max(...n),l=this.container.parentElement;if(!l)return this;const c=(r+1)/2*l.clientWidth,d=-(a-1)/2*l.clientHeight;let u=c,f=d-34;if(this.lines.length===1&&t.length===2){const h=(n[1]-n[0])/(o[1]-o[0]),g=-((n[1]+n[0])/2-1)/2*l.clientHeight;Math.abs(h)>.4&&(u=c+57,f=g)}return this.container.style.transform=`translate3d(${u}px, ${f}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 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 ad(i,t){const e=(i.x+1)/2*t.width,o=-(i.y-1)/2*t.height;return new M.Vector2(e,o)}function ld(i,t,e,o){const n=i.getElement();if(!n||t.length===0)return null;const r={width:n.clientWidth,height:n.clientHeight},a=t.map(l=>{const c=l.position.clone().project(i.camera);return Ee(c)?{distance:ad(c,r).distanceTo(e),point:l}:{distance:1/0,point:l}}).sort((l,c)=>l.distance-c.distance);return typeof o=="number"&&a[0].distance>o?null:a[0]}class wo extends Rt{constructor(e){super(e);m(this,"type","watch");m(this,"deleteDom");m(this,"highlightedLines",[]);m(this,"fiveElement");m(this,"editPointState");m(this,"hammer");m(this,"onPanStart",e=>{var l;if(this.model.points.length===0||!this.fiveElement)return;const o=vo(e).point,n=(l=ld(this.five,this.model.points,o,20))==null?void 0:l.point;if(!n){this.editPointState=void 0;return}const r={point:n,associatedLines:Ht(n.lines[0])};this.hook.emit("wantsDragLine",{point:n.id,lines:r.associatedLines.map(({id:c})=>c)})||(this.editPointState=r,this.magnifier.appendTo(this.container),this.group.add(this.mouseGroup))});m(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.remove(),this.group.remove(this.mouseGroup))});m(this,"onPan",e=>{if(!this.editPointState||!this.fiveElement)return;const o=vo(e).ndcPoint,n=new M.Raycaster;n.setFromCamera(o,this.five.camera);const[r]=this.five.model.intersectRaycaster(n);!r||this.onIntersectionUpdate(r)});m(this,"onIntersectionUpdate",(e,o)=>{if(!!this.editPointState){if(this.clearHighlightLines(),this.editPointState.point.position.copy(e.point),this.editPointState.point.lines.forEach(n=>{n.mesh.setPoints(n.points[0].position.clone(),n.points[1].position.clone()),n.lightMesh.setPoints(n.points[0].position.clone(),n.points[1].position.clone()),n.mesh.setMaterial({dashed:!0})}),this.updateDistanceUI(),this.magnifier.renderWithPoint(e.point),this.mouseGroup.position.copy(e.point),o)this.mouseGroup.quaternion.copy(o.quaternion);else if(e.face){const r=e.face.normal.clone().multiplyScalar(.05),l=e.point.clone().add(r).clone().add(r);this.mouseGroup.lookAt(l)}this.five.needsRender=!0,this.hook.emit("selectedChange",this.editPointState.associatedLines.map(n=>n.toCompletelyJson()))}});m(this,"wantsPanGesture",()=>{if(this.editPointState)return!1});m(this,"wantsTapGesture",e=>{const[o]=this.five.model.intersectRaycaster(e);if(!o)return;const n=this.five.camera,r=o.point.clone().project(n),a=this.container.clientWidth,l=this.container.clientHeight,c=new M.Vector2(r.x*a,r.y*l),d=this.model.lines.map(p=>{const[g,A]=p.points,b=g.position.clone().project(n),v=A.position.clone().project(n);if(!Ee(b)&&!Ee(v))return null;const w=new M.Vector2(b.x*a,b.y*l),y=new M.Vector2(v.x*a,v.y*l);return{id:p.id,points:[w,y]}}).filter(p=>!!p);if(d.length===0)return;const f=d.map(p=>{const g=yo(c,p.points);return{id:p.id,distance:g.distanceTo(c)}}).sort((p,g)=>p.distance-g.distance)[0];if(f.distance>20)return;const h=this.model.lines.find(({id:p})=>p===f.id);if(!!h)return this.chooseLine(h),!1});m(this,"chooseLine",e=>{const o=Ht(e);this.highlightLines(o),this.five.needsRender=!0,this.hook.emit("selectedChange",o.map(n=>n.toCompletelyJson()))});m(this,"lineRemoved",e=>{this.removeLine(e),this.hook.emit("selectedChange",this.model.lines.filter(o=>o.selected).map(o=>o.toCompletelyJson()))});m(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.highlightedLines.length>0&&this.deleteDom.updatePosition()});m(this,"deleteDomClickCallback",()=>{this.highlightedLines[0].getPolyline().lines.slice().reverse().forEach(o=>this.model.removeLine(o)),this.highlightedLines=[],this.deleteDom.setLines([]).hide()});m(this,"cancelDeleteClickCallback",()=>{this.clearHighlightLines()});this.deleteDom=new ri(this.five,{onClick:this.deleteDomClickCallback,cancelDelete:this.cancelDeleteClickCallback}).appendTo(this.container),this.model.lines.forEach(n=>{n.distanceItem.appendTo(this.container),n.distanceItem.update(this.five),n.hook.on("selected",this.chooseLine),this.group.add(n.mesh)});const o=this.five.getElement();if(o){this.fiveElement=o;const n=new lt.default(o);this.hammer=n,n.on("pan",this.onPan),n.on("panstart",this.onPanStart),n.on("panend",this.onPanEnd)}this.model.hook.on("lineRemoved",this.lineRemoved),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.wantsTapGesture),this.five.on("wantsPanGesture",this.wantsPanGesture),this.five.needsRender=!0}dispose(){var e;super.dispose(),this.deleteDom.dispose(),this.model.hook.off("lineRemoved",this.lineRemoved),this.model.lines.forEach(o=>o.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.lines.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(o=>this.highlightLine(o))}}class ai extends Rt{constructor(e){super(e);m(this,"state","watching");m(this,"model",new Ao(this.config));m(this,"hasAppendDashed",!1);m(this,"fiveElement");m(this,"mobileStartPoint",null);m(this,"mobileNowPoint",null);m(this,"highlightedLines",[]);m(this,"deleteDom");m(this,"onLineChanged",()=>{this.hook.emit("editedLineChange",this.model.lines.map(e=>e.toCompletelyJson()))});m(this,"onWantsTapGesture",e=>{if(this.state==="editing")return!1;const[o]=this.five.model.intersectRaycaster(e);if(!o)return;const n=this.five.camera,r=o.point.clone().project(n),a=this.container.clientWidth,l=this.container.clientHeight,c=new M.Vector2(r.x*a,r.y*l),d=this.model.lines.map(p=>{const[g,A]=p.points,b=g.position.clone().project(n),v=A.position.clone().project(n);if(!Ee(b)&&!Ee(v))return null;const w=new M.Vector2(b.x*a,b.y*l),y=new M.Vector2(v.x*a,v.y*l);return{id:p.id,points:[w,y]}}).filter(p=>!!p);if(d.length===0)return;const f=d.map(p=>{const g=yo(c,p.points);return{id:p.id,distance:g.distanceTo(c)}}).sort((p,g)=>p.distance-g.distance)[0];if(f.distance>20)return;const h=this.model.lines.find(({id:p})=>p===f.id);if(!!h)return this.chooseLine(h),!1});m(this,"onWantsToMoveToPano",()=>this.state==="watching");m(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.dashed.distanceItem.update(this.five)});m(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))});m(this,"updateMagnifier",e=>{this.magnifier.visible===!1&&this.magnifier.appendTo(this.container),requestAnimationFrame(()=>this.magnifier.renderWithPoint(e.position)),this.five.needsRender=!0});m(this,"onGetStartPoint",e=>{this.mobileStartPoint=e});m(this,"onGetEndPoint",e=>{const o=this.mobileNowPoint;if(this.removeLine(this.dashed),this.hasAppendDashed=!1,this.mobileStartPoint&&o){const n=new it(this.mobileStartPoint,o,this.model);n.distanceItem.appendTo(this.container),n.distanceItem.update(this.five),n.hook.on("selected",this.chooseLine),this.group.add(n.mesh),this.model.addLine(n)}this.mobileStartPoint=null,this.mobileNowPoint=null,this.five.needsRender=!0});m(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});m(this,"onWillChangeState",(e,o)=>{this.state=o,this.state==="watching"?this.five.helperVisible=!0:this.five.helperVisible=!1});m(this,"chooseLine",e=>{const o=Ht(e);this.highlightLines(o),this.five.needsRender=!0,this.hook.emit("selectedChange",o.map(n=>n.toCompletelyJson()))});m(this,"deleteDomClickCallback",()=>{this.highlightedLines.forEach(e=>{this.removeLine(e),this.model.removeLine(e)}),this.highlightedLines=[],this.deleteDom.setLines([]).hide()});m(this,"cancelDeleteClickCallback",()=>{this.clearHighlightLines()});this.deleteDom=new ri(this.five,{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.model.hook.on("lineAdded",this.onLineChanged),this.model.hook.on("lineRemoved",this.onLineChanged),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.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.model.hook.off("lineAdded",this.onLineChanged),this.model.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.model.lines.forEach(e=>{e.selected=!1,e.distanceItem.unHighlight(),this.group.remove(e.lightMesh)}),this.highlightedLines=[],this.five.needsRender=!0)}getEditingLines(){return this.model.lines}highlightLines(e){this.clearHighlightLines(),this.highlightedLines=e,this.deleteDom.setLines(e).updatePosition().show(),e.forEach(o=>this.highlightLine(o))}}const cd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCU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VNCRqP6ZUISCzjKAfq7tNev6Kd0mKzsBZJrlgQ+hXvQG1OwGi8hc4moxDrMRF/cjo8iDrLYc7brjRjegq/jHvTEJKzAtgtqrx1YhvHojrvxDbwNBepxLfaczaqA2lBrSUtqLmlKTahYe/1FVAaRS0KGymk6kTvzO0KH/9NuHZsAEAJAEFy+/0pfY2O7EMGZq2Hhmo3+Vq9yI83sCzjhythAbIDYQGyA2EBsIDZAbCA2QGwgNhAbIDYQGyA2EBuIDRAbiA0QG4gNxAaIDcQGiA3EBmIDxAZiA8QGYgOxAWIDsQEb7ePiGN5/UYAAAAAASUVORK5CYII=",ud=`
216
+ `,this.container.append(this.content);const o=this.content.querySelector(".fpm__delete-icon");o&&(o.style.width="16px",o.style.height="17px",o.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 o=e.map(h=>h.x),n=e.map(h=>h.y),r=(Math.min(...o)+Math.max(...o))/2,a=Math.max(...n),l=this.container.parentElement;if(!l)return this;const c=(r+1)/2*l.clientWidth,d=-(a-1)/2*l.clientHeight;let u=c,f=d-34;if(this.lines.length===1&&t.length===2){const h=(n[1]-n[0])/(o[1]-o[0]),g=-((n[1]+n[0])/2-1)/2*l.clientHeight;Math.abs(h)>.4&&(u=c+57,f=g)}return this.container.style.transform=`translate3d(${u}px, ${f}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 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 ad(i,t){const e=(i.x+1)/2*t.width,o=-(i.y-1)/2*t.height;return new M.Vector2(e,o)}function ld(i,t,e,o){const n=i.getElement();if(!n||t.length===0)return null;const r={width:n.clientWidth,height:n.clientHeight},a=t.map(l=>{const c=l.position.clone().project(i.camera);return Ee(c)?{distance:ad(c,r).distanceTo(e),point:l}:{distance:1/0,point:l}}).sort((l,c)=>l.distance-c.distance);return typeof o=="number"&&a[0].distance>o?null:a[0]}class wo extends Rt{constructor(e){super(e);m(this,"type","watch");m(this,"deleteDom");m(this,"highlightedLines",[]);m(this,"fiveElement");m(this,"editPointState");m(this,"hammer");m(this,"onPanStart",e=>{var l;if(this.model.points.length===0||!this.fiveElement)return;const o=vo(e).point,n=(l=ld(this.five,this.model.points,o,20))==null?void 0:l.point;if(!n){this.editPointState=void 0;return}const r={point:n,associatedLines:Ht(n.lines[0])};this.hook.emit("wantsDragLine",{point:n.id,lines:r.associatedLines.map(({id:c})=>c)})||(this.editPointState=r,this.magnifier.appendTo(this.container),this.group.add(this.mouseGroup))});m(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.remove(),this.group.remove(this.mouseGroup))});m(this,"onPan",e=>{if(!this.editPointState||!this.fiveElement)return;const o=vo(e).ndcPoint,n=new M.Raycaster;n.setFromCamera(o,this.five.camera);const[r]=this.five.model.intersectRaycaster(n);!r||this.onIntersectionUpdate(r)});m(this,"onIntersectionUpdate",(e,o)=>{if(!!this.editPointState){if(this.clearHighlightLines(),this.editPointState.point.position.copy(e.point),this.editPointState.point.lines.forEach(n=>{n.mesh.setPoints(n.points[0].position.clone(),n.points[1].position.clone()),n.lightMesh.setPoints(n.points[0].position.clone(),n.points[1].position.clone()),n.mesh.setMaterial({dashed:!0})}),this.updateDistanceUI(),this.magnifier.renderWithPoint(e.point),this.mouseGroup.position.copy(e.point),o)this.mouseGroup.quaternion.copy(o.quaternion);else if(e.face){const r=e.face.normal.clone().multiplyScalar(.05),l=e.point.clone().add(r).clone().add(r);this.mouseGroup.lookAt(l)}this.five.needsRender=!0,this.hook.emit("selectedChange",this.editPointState.associatedLines.map(n=>n.toCompletelyJson()))}});m(this,"wantsPanGesture",()=>{if(this.editPointState)return!1});m(this,"wantsTapGesture",e=>{const[o]=this.five.model.intersectRaycaster(e);if(!o)return;const n=this.five.camera,r=o.point.clone().project(n),a=this.container.clientWidth,l=this.container.clientHeight,c=new M.Vector2(r.x*a,r.y*l),d=this.model.lines.map(p=>{const[g,A]=p.points,b=g.position.clone().project(n),v=A.position.clone().project(n);if(!Ee(b)&&!Ee(v))return null;const C=new M.Vector2(b.x*a,b.y*l),y=new M.Vector2(v.x*a,v.y*l);return{id:p.id,points:[C,y]}}).filter(p=>!!p);if(d.length===0)return;const f=d.map(p=>{const g=yo(c,p.points);return{id:p.id,distance:g.distanceTo(c)}}).sort((p,g)=>p.distance-g.distance)[0];if(f.distance>20)return;const h=this.model.lines.find(({id:p})=>p===f.id);if(!!h)return this.chooseLine(h),!1});m(this,"chooseLine",e=>{const o=Ht(e);this.highlightLines(o),this.five.needsRender=!0,this.hook.emit("selectedChange",o.map(n=>n.toCompletelyJson()))});m(this,"lineRemoved",e=>{this.removeLine(e),this.hook.emit("selectedChange",this.model.lines.filter(o=>o.selected).map(o=>o.toCompletelyJson()))});m(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.highlightedLines.length>0&&this.deleteDom.updatePosition()});m(this,"deleteDomClickCallback",()=>{this.highlightedLines[0].getPolyline().lines.slice().reverse().forEach(o=>this.model.removeLine(o)),this.highlightedLines=[],this.deleteDom.setLines([]).hide()});m(this,"cancelDeleteClickCallback",()=>{this.clearHighlightLines()});this.deleteDom=new ri(this.five,{onClick:this.deleteDomClickCallback,cancelDelete:this.cancelDeleteClickCallback}).appendTo(this.container),this.model.lines.forEach(n=>{n.distanceItem.appendTo(this.container),n.distanceItem.update(this.five),n.hook.on("selected",this.chooseLine),this.group.add(n.mesh)});const o=this.five.getElement();if(o){this.fiveElement=o;const n=new lt.default(o);this.hammer=n,n.on("pan",this.onPan),n.on("panstart",this.onPanStart),n.on("panend",this.onPanEnd)}this.model.hook.on("lineRemoved",this.lineRemoved),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.wantsTapGesture),this.five.on("wantsPanGesture",this.wantsPanGesture),this.five.needsRender=!0}dispose(){var e;super.dispose(),this.deleteDom.dispose(),this.model.hook.off("lineRemoved",this.lineRemoved),this.model.lines.forEach(o=>o.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.lines.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(o=>this.highlightLine(o))}}class ai extends Rt{constructor(e){super(e);m(this,"state","watching");m(this,"model",new Ao(this.config));m(this,"hasAppendDashed",!1);m(this,"fiveElement");m(this,"mobileStartPoint",null);m(this,"mobileNowPoint",null);m(this,"highlightedLines",[]);m(this,"deleteDom");m(this,"onLineChanged",()=>{this.hook.emit("editedLineChange",this.model.lines.map(e=>e.toCompletelyJson()))});m(this,"onWantsTapGesture",e=>{if(this.state==="editing")return!1;const[o]=this.five.model.intersectRaycaster(e);if(!o)return;const n=this.five.camera,r=o.point.clone().project(n),a=this.container.clientWidth,l=this.container.clientHeight,c=new M.Vector2(r.x*a,r.y*l),d=this.model.lines.map(p=>{const[g,A]=p.points,b=g.position.clone().project(n),v=A.position.clone().project(n);if(!Ee(b)&&!Ee(v))return null;const C=new M.Vector2(b.x*a,b.y*l),y=new M.Vector2(v.x*a,v.y*l);return{id:p.id,points:[C,y]}}).filter(p=>!!p);if(d.length===0)return;const f=d.map(p=>{const g=yo(c,p.points);return{id:p.id,distance:g.distanceTo(c)}}).sort((p,g)=>p.distance-g.distance)[0];if(f.distance>20)return;const h=this.model.lines.find(({id:p})=>p===f.id);if(!!h)return this.chooseLine(h),!1});m(this,"onWantsToMoveToPano",()=>this.state==="watching");m(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.dashed.distanceItem.update(this.five)});m(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))});m(this,"updateMagnifier",e=>{this.magnifier.visible===!1&&this.magnifier.appendTo(this.container),requestAnimationFrame(()=>this.magnifier.renderWithPoint(e.position)),this.five.needsRender=!0});m(this,"onGetStartPoint",e=>{this.mobileStartPoint=e});m(this,"onGetEndPoint",e=>{const o=this.mobileNowPoint;if(this.removeLine(this.dashed),this.hasAppendDashed=!1,this.mobileStartPoint&&o){const n=new it(this.mobileStartPoint,o,this.model);n.distanceItem.appendTo(this.container),n.distanceItem.update(this.five),n.hook.on("selected",this.chooseLine),this.group.add(n.mesh),this.model.addLine(n)}this.mobileStartPoint=null,this.mobileNowPoint=null,this.five.needsRender=!0});m(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});m(this,"onWillChangeState",(e,o)=>{this.state=o,this.state==="watching"?this.five.helperVisible=!0:this.five.helperVisible=!1});m(this,"chooseLine",e=>{const o=Ht(e);this.highlightLines(o),this.five.needsRender=!0,this.hook.emit("selectedChange",o.map(n=>n.toCompletelyJson()))});m(this,"deleteDomClickCallback",()=>{this.highlightedLines.forEach(e=>{this.removeLine(e),this.model.removeLine(e)}),this.highlightedLines=[],this.deleteDom.setLines([]).hide()});m(this,"cancelDeleteClickCallback",()=>{this.clearHighlightLines()});this.deleteDom=new ri(this.five,{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.model.hook.on("lineAdded",this.onLineChanged),this.model.hook.on("lineRemoved",this.onLineChanged),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.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.model.hook.off("lineAdded",this.onLineChanged),this.model.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.model.lines.forEach(e=>{e.selected=!1,e.distanceItem.unHighlight(),this.group.remove(e.lightMesh)}),this.highlightedLines=[],this.five.needsRender=!0)}getEditingLines(){return this.model.lines}highlightLines(e){this.clearHighlightLines(),this.highlightedLines=e,this.deleteDom.setLines(e).updatePosition().show(),e.forEach(o=>this.highlightLine(o))}}const cd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQg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f+/rof8boaVx3dVZw+CUjgnQQUtneCM00CFwS6Y7vY/uqyY/uKwokE5gkobPNMrXguAd43i23x6u5t3TuXllcugU0EFLZNYC17JIGIVosbEPD1evWxp5WABJ4koLA9CdB0CRQBhI1u7apTq3CnEpDADgIK2w6q1jyVQH8wJKLGunnYqTUN5xLYQEBh2wDVkscSaNF6mf/xxx9fbuNm7vZYMl64BCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC",dd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAQAAABvWYjmAAByRElEQVR4AezBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACA2bkK4OZ5JPpkh9P2mJmZho6Zm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cQGiA3EBmIDxAZiA8QGYgOxAWIDsQEb7ePiGN5/UYAAAAAASUVORK5CYII=",ud=`
217
217
  varying vec2 vUv;
218
218
  void main() {
219
219
  vUv = uv;
@@ -228,7 +228,7 @@ void main() {
228
228
  float match = 1.0 - uv.x;
229
229
  gl_FragColor = vec4(1.0,1.0,1.0,match);
230
230
  }
231
- `;function li(i){var v,w;const t=(v=i.isMobile)!=null?v:!0,e=(w=i.useNormalVector)!=null?w:!0;let o=10349931;e&&i.ballColor>=0&&(o=i.ballColor);const n=new M.Group,r=new M.PlaneGeometry(.3,.3),a=t?cd:dd,l=new M.TextureLoader().load(a);l.encoding=M.sRGBEncoding;const c=new M.MeshBasicMaterial({map:l,transparent:!0,depthTest:!1}),d=new M.Mesh(r,c),u=new M.CurvePath;u.add(new M.LineCurve3(new M.Vector3(0,0,0),new M.Vector3(0,0,.1)));const f=new M.TubeGeometry(u,8,.003),h=new M.ShaderMaterial({vertexShader:ud,fragmentShader:hd,depthTest:!1,transparent:!0}),p=new M.Mesh(f,h),g=new M.SphereGeometry(.01,20,20),A=new M.MeshBasicMaterial({color:o,depthTest:!1,transparent:!0,side:M.DoubleSide}),b=new M.Mesh(g,A);return b.position.set(0,0,.1),n.name="mouse-current",n.add(d),e&&n.add(p,b),n}const ci="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTUuMyUiIHk9Ii01LjMlIiB3aWR0aD0iMTEwLjUlIiBoZWlnaHQ9IjExMC41JSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvP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hfX2EpIiBzdHJva2Utd2lkdGg9Ii40IiBmaWxsPSJ1cmwoI3ByZWZpeF9fYikiIG9wYWNpdHk9Ii43IiBjeD0iMzYiIGN5PSIzNiIgcj0iMjguMjQ0Ii8+PGVsbGlwc2UgZmlsbD0iIzdDOTBEQSIgb3BhY2l0eT0iLjU5NiIgZmlsdGVyPSJ1cmwoI3ByZWZpeF9fYykiIGN4PSIzNiIgY3k9IjM2IiByeD0iMTguOTYzIiByeT0iNy4xMTEiLz48cGF0aCBkPSJNMzYgMEMxNi4xMTggMCAwIDE2LjExOCAwIDM2czE2LjExOCAzNiAzNiAzNiAzNi0xNi4xMTggMzYtMzZTNTUuODgyIDAgMzYgMHptMCA0LjQ0NGMxNy40MjggMCAzMS41NTYgMTQuMTI4IDMxLjU1NiAzMS41NTZTNTMuNDI4IDY3LjU1NiAzNiA2Ny41NTYgNC40NDQgNTMuNDI4IDQuNDQ0IDM2IDE4LjU3MiA0LjQ0NCAzNiA0LjQ0NHoiIGZpbGw9InVybCgjcHJlZml4X19kKSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg==",fd=`
231
+ `;function li(i){var v,C;const t=(v=i.isMobile)!=null?v:!0,e=(C=i.useNormalVector)!=null?C:!0;let o=10349931;e&&i.ballColor>=0&&(o=i.ballColor);const n=new M.Group,r=new M.PlaneGeometry(.3,.3),a=t?cd:dd,l=new M.TextureLoader().load(a);l.encoding=M.sRGBEncoding;const c=new M.MeshBasicMaterial({map:l,transparent:!0,depthTest:!1}),d=new M.Mesh(r,c),u=new M.CurvePath;u.add(new M.LineCurve3(new M.Vector3(0,0,0),new M.Vector3(0,0,.1)));const f=new M.TubeGeometry(u,8,.003),h=new M.ShaderMaterial({vertexShader:ud,fragmentShader:hd,depthTest:!1,transparent:!0}),p=new M.Mesh(f,h),g=new M.SphereGeometry(.01,20,20),A=new M.MeshBasicMaterial({color:o,depthTest:!1,transparent:!0,side:M.DoubleSide}),b=new M.Mesh(g,A);return b.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position: absolute;
@@ -489,7 +489,7 @@ void main() {
489
489
  <div class='range-piece__content'></div>
490
490
  <div class="range-piece__aim"></div>
491
491
  </div>
492
- `;function xd(){}const{Vector2:Dd}=I;function Sd(i,t){const{offsetWidth:e,offsetHeight:o}=t,{top:n,left:r}=t.getBoundingClientRect();return Object.assign(new Dd,{x:(i.x-r)/e*2-1,y:-(i.y-n)/o*2+1})}class Ld{constructor(t){m(this,"container",document.createElement("div"));m(this,"five");m(this,"group");m(this,"mouseGroup");m(this,"hasAppendMouseGroup",!1);m(this,"fiveHelper");m(this,"hook");m(this,"content");m(this,"intersectMesh");m(this,"centerMouseXY");m(this,"raycaster",new M.Raycaster);m(this,"pieceStyl",{matrix3d:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],scale:1,opacity:.4});m(this,"onCameraDirectionUpdate",()=>{const t=this.getIntersection();if(t){this.pieceChange(t),this.updateMouseGroup(t);const e=new ke(this.mouseGroup.position);this.hook.emit("nowPointChange",e)}});m(this,"onWillChangeState",(t,e)=>{var n;this.dotAnimation();const o=(n=this.getIntersection())==null?void 0:n.point;!o||(e==="editing"?this.hook.emit("getStartPoint",new ke(o)):this.hook.emit("getEndPoint",new ke(o)))});m(this,"computedCenterMouseXY",()=>{const t=this.container.querySelector(".range-piece__aim");if(!t)return null;const{left:e,top:o,width:n,height:r}=t.getBoundingClientRect(),a=Math.round(e+n/2),l=Math.round(o+r/2),d=Sd({x:a,y:l},this.five.getElement());this.centerMouseXY=d});m(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=li(B({isMobile:!0},t.openParams.crossHairParameter)),this.fiveHelper=t.fiveHelper,this.container.innerHTML=kd,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 M.Mesh(new M.RingGeometry(.04,.08,32),new M.MeshBasicMaterial({color:1245179,opacity:0,side:M.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,o=t.point;if(e&&o){const r=e.normal.clone().clone().multiplyScalar(.05),a=o.clone().add(r);this.intersectMesh.position.copy(a);const l=a.clone().add(r);this.intersectMesh.lookAt(l),this.five.scene.add(this.intersectMesh);const c=this.intersectMesh.modelViewMatrix.clone().toArray();this.changePieceStyl("matrix3d",c);const d=this.calculateSize(o);this.changePieceStyl("scale",d)}}calculateSize(t){if(!t)return;const e=this.five.camera.position;let o=t.distanceTo(e);const n=4,r=1;return o>n&&(o=n),o<r&&(o=r),-.51/(n-r)*o+1}dotAnimation(){const t=at.default.Easing.Quadratic.InOut,e={opacity:.4,scale:this.pieceStyl.scale},o={opacity:[1,.4],scale:[this.pieceStyl.scale*.8,this.pieceStyl.scale]};let n=xd;const r=new at.default.Tween(e).to(o,500).easing(t).start(0).onUpdate(({opacity:a,scale:l})=>{this.changePieceStyl("scale",l),this.changePieceStyl("opacity",a)}).onComplete(()=>{n()});n=_t(a=>{r.update(a)})}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 o=this.container.querySelector(".range-piece__aim");o&&(o.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 n=t.face.normal.clone().multiplyScalar(.05),a=t.point.clone().add(n).clone().add(n);this.mouseGroup.lookAt(a)}return this.mouseGroup}}class _d{constructor(t,e){m(this,"hasOpen",!1);m(this,"hook",new J.Subscribe);m(this,"magnifier");m(this,"five");m(this,"model");m(this,"group");m(this,"config");m(this,"fiveHelper");m(this,"useUIController");m(this,"params");m(this,"useGuideController");m(this,"rangePieceController");m(this,"container",document.createElement("div"));m(this,"shortcutKeyController");m(this,"controller",null);m(this,"controllerParams");m(this,"getCurrentMode",()=>this.controller instanceof Ft?"Edit":this.controller instanceof wo?"Watch":this.controller instanceof ai?"Mixed":null);m(this,"changeMode",t=>{var o;if(!this.hasOpen||this.getCurrentMode()===t)return;if(this.getCurrentMode()==="Mixed"||t==="Mixed")return new Error("\u4E0D\u652F\u6301\u5207\u6362\u7684Mode");(o=this.controller)==null||o.dispose();const e={View:id,Watch:wo,Edit:Ft};if(!e[t])throw new Error("\u4E0D\u5B58\u5728\u7684 Mode");this.controller=new e[t](this.controllerParams),this.hook.emit("modeChange",t)});var r,a;this.five=t,this.params=e;const o={userDistanceItemCreator:void 0,getDistanceText(l){return l.toFixed(2)+"m"}};this.config=B(B({},o),Dt(e,["openParams","magnifierParams"])),this.model=new Ao(this.config),this.fiveHelper=new Gc(t),this.magnifier=new ti(t,(r=e.magnifierParams)!=null?r:{width:190,height:190,scale:2}),this.group=new M.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",this.container.style.background="rgba(0, 0, 0, 0.15)";const n=(a=this.params.openParams)!=null?a:{};this.controllerParams={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:n,mouseGroup:li(B({},n.crossHairParameter)),userDistanceItemCreator:this.params.userDistanceItemCreator},this.params.useUIController!==!1&&(this.useUIController=new fi(this,this.controllerParams)),this.params.useGuideController!==!1&&(this.useGuideController=new Id(this,this.controllerParams))}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(){var t,e,o;this.hasOpen||(this.hasOpen=!0,this.five.scene.add(this.group),this.container.style.opacity="1",(t=this.params.openParams)!=null&&t.isMobile?(this.controller=new ai(this.controllerParams),this.rangePieceController=new Ld(this.controllerParams)):(this.five.helperVisible=!1,this.controller=new wo(this.controllerParams)),(e=this.useUIController)==null||e.show(),(o=this.useGuideController)==null||o.show(),this.shortcutKeyController=new Ed(this,this.five),this.hook.emit("enable",!0))}disable(){var t,e,o,n,r;this.hasOpen=!1,this.container.style.opacity="0",(t=this.controller)==null||t.dispose(),(e=this.rangePieceController)==null||e.dispose(),(o=this.useUIController)==null||o.hide(),(n=this.useGuideController)==null||n.hide(),(r=this.shortcutKeyController)==null||r.dispose(),this.controller=null,this.five.helperVisible=!0,this.five.scene.remove(this.group),this.five.needsRender=!0,this.hook.emit("disable",!0)}revoke(){this.controller instanceof Ft&&this.controller.revoke()}removeLineByID(t){this.model.removeLineByID(t)}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(){return this.controller instanceof Ft?(this.model.mergeModel(this.controller.model),this):this}toJson(){return this.model.toJson()}changeIsMobile(t){var e,o;((e=this.controllerParams.openParams)==null?void 0:e.isMobile)===void 0&&(this.controllerParams.openParams.isMobile=t),this.controllerParams.openParams.isMobile!==t&&(this.controllerParams.openParams.isMobile=t,this.params.useUIController!==!1&&((o=this.useUIController)==null||o.dispose()),this.useUIController=new fi(this,this.controllerParams))}changeConfigs(t){var e;if(t.getDistanceText&&t.getDistanceText!==this.config.getDistanceText){const o=t.getDistanceText;this.config.getDistanceText=o,(e=this.controller)==null||e.updateDistanceUI()}}}const zd=function(t,e){return new _d(t,e)},pi=$t.writable(null);function Md(i){s.append_styles(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 gi(i,t,e){const o=i.slice();return o[3]=t[e],o}function Ai(i){let t,e=`${i[3].top}%`,o=`${i[3].left}%`,n,r;function a(){return i[2](i[3])}return{c(){t=s.element("i"),s.attr(t,"class","svelte-19zi46m"),s.toggle_class(t,"PanoSpatialTagPlugin__tag-origin",!0),s.toggle_class(t,"PanoSpatialTagPlugin__tag-origin-destroy",i[3].destroying),s.set_style(t,"top",e,!1),s.set_style(t,"left",o,!1),s.set_style(t,"visibility",i[3].front?"visible":"hidden",!1)},m(l,c){s.insert(l,t,c),n||(r=s.listen(t,"click",a),n=!0)},p(l,c){i=l,c&1&&s.toggle_class(t,"PanoSpatialTagPlugin__tag-origin-destroy",i[3].destroying),c&1&&e!==(e=`${i[3].top}%`)&&s.set_style(t,"top",e,!1),c&1&&o!==(o=`${i[3].left}%`)&&s.set_style(t,"left",o,!1),c&1&&s.set_style(t,"visibility",i[3].front?"visible":"hidden",!1)},d(l){l&&s.detach(t),n=!1,r()}}}function jd(i){let t,e=i[0],o=[];for(let n=0;n<e.length;n+=1)o[n]=Ai(gi(i,e,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=s.empty()},m(n,r){for(let a=0;a<o.length;a+=1)o[a].m(n,r);s.insert(n,t,r)},p(n,[r]){if(r&3){e=n[0];let a;for(a=0;a<e.length;a+=1){const l=gi(n,e,a);o[a]?o[a].p(l,r):(o[a]=Ai(l),o[a].c(),o[a].m(t.parentNode,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=e.length}},i:s.noop,o:s.noop,d(n){s.destroy_each(o,n),n&&s.detach(t)}}}function Bd(i,t,e){let{origins:o}=t;const n=a=>{pi.update(()=>`${a}-PanoSpatialTagPlugin-${Date.now()}`)},r=a=>n(a.id);return i.$$set=a=>{"origins"in a&&e(0,o=a.origins)},[o,n,r]}class Td extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Bd,jd,s.safe_not_equal,{origins:0},Md)}}function Qd(i){s.append_styles(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 Od(i){let t,e,o,n,r,a,l,c,d,u,f,h,p,g,A;return{c(){t=s.element("div"),e=s.element("div"),o=s.space(),n=s.element("div"),r=s.element("i"),a=s.space(),l=s.element("i"),c=s.space(),d=s.element("i"),u=s.space(),f=s.element("div"),h=s.element("div"),s.attr(e,"class","PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"),s.set_style(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]+")"),s.attr(r,"class","PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"),s.set_style(r,"width",i[4]+"rem"),s.attr(l,"class","PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"),s.attr(d,"class","PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"),s.attr(n,"class","PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"),s.attr(h,"class","PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"),s.attr(f,"class","PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"),s.set_style(f,"transform","scale("+i[3]*3+")"),s.attr(t,"id",p="PanoSpatialTagPlugin__"+i[0]),s.set_style(t,"height",20*i[5]+"rem"),s.attr(t,"class","svelte-1i5h9zh"),s.toggle_class(t,"PanoSpatialTagPlugin__tag-x",!0),s.toggle_class(t,"PanoSpatialTagPlugin__tag-upside-down",i[1]),s.toggle_class(t,"PanoSpatialTagPlugin__tag-show",i[10]),s.toggle_class(t,"PanoSpatialTagPlugin__tag-hide",i[10]===!1||i[6])},m(b,v){s.insert(b,t,v),s.append(t,e),s.append(t,o),s.append(t,n),s.append(n,r),s.append(n,a),s.append(n,l),s.append(n,c),s.append(n,d),s.append(t,u),s.append(t,f),s.append(f,h),h.innerHTML=i[2],i[16](h),g||(A=s.listen(h,"click",i[11]),g=!0)},p(b,[v]){v&394&&s.set_style(e,"transform","translate("+b[7]/2*b[3]*3+"px, "+b[8]/2*(b[1]?-1:1)*b[3]*3+"px) scale("+1/b[3]+")"),v&16&&s.set_style(r,"width",b[4]+"rem"),v&4&&(h.innerHTML=b[2]),v&8&&s.set_style(f,"transform","scale("+b[3]*3+")"),v&1&&p!==(p="PanoSpatialTagPlugin__"+b[0])&&s.attr(t,"id",p),v&32&&s.set_style(t,"height",20*b[5]+"rem"),v&2&&s.toggle_class(t,"PanoSpatialTagPlugin__tag-upside-down",b[1]),v&1024&&s.toggle_class(t,"PanoSpatialTagPlugin__tag-show",b[10]),v&1088&&s.toggle_class(t,"PanoSpatialTagPlugin__tag-hide",b[10]===!1||b[6])},i:s.noop,o:s.noop,d(b){b&&s.detach(t),i[16](null),g=!1,A()}}}function Rd(i,t,e){let{id:o}=t,{upsideDown:n}=t,{content:r}=t,{contentZoom:a}=t,{lineWidthZoom:l}=t,{lineHeightZoom:c}=t,{destroying:d=!1}=t,{folded:u}=t,{dispose:f}=t,{events:h}=t,{hooks:p}=t,g=0,A=0,b,v,w=setTimeout(()=>{u||e(10,v=!0),w=void 0},100);const y=C=>{const D=Object.keys(h);let x=C.target;for(;x;){const z=x.getAttribute("class");if(!z){x=x.parentNode;continue}if(z.includes("PanoSpatialTagPlugin__tag-content")){x=null;break}D.forEach(L=>{z.includes(L)&&h[L](o)}),x=x.parentNode}};Z.onMount(()=>{p.emit("initTag",{id:o})});const E=pi.subscribe(C=>{if(C===null)return;const[D,x]=C.split("-PanoSpatialTagPlugin-");o===D&&(p.emit("clickOrigin",{id:o,show:v}),w||(e(10,v=u),e(12,u=!u),w=setTimeout(()=>{w=void 0},1500)))});Z.afterUpdate(()=>{e(7,g=b.offsetWidth),e(8,A=b.offsetHeight),!w&&e(10,v=!u)}),Z.onDestroy(()=>{p.emit("destroyTag",{id:o}),E(),f()});function k(C){s.binding_callbacks[C?"unshift":"push"](()=>{b=C,e(9,b)})}return i.$$set=C=>{"id"in C&&e(0,o=C.id),"upsideDown"in C&&e(1,n=C.upsideDown),"content"in C&&e(2,r=C.content),"contentZoom"in C&&e(3,a=C.contentZoom),"lineWidthZoom"in C&&e(4,l=C.lineWidthZoom),"lineHeightZoom"in C&&e(5,c=C.lineHeightZoom),"destroying"in C&&e(6,d=C.destroying),"folded"in C&&e(12,u=C.folded),"dispose"in C&&e(13,f=C.dispose),"events"in C&&e(14,h=C.events),"hooks"in C&&e(15,p=C.hooks)},[o,n,r,a,l,c,d,g,A,b,v,y,u,f,h,p,k]}class Fd extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Rd,Od,s.safe_not_equal,{id:0,upsideDown:1,content:2,contentZoom:3,lineWidthZoom:4,lineHeightZoom:5,destroying:6,folded:12,dispose:13,events:14,hooks:15},Qd)}}const Hd={position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",pointerEvents:"none"},vi="<",bi=">",yi="%",wi="locals",Gd="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Nd={"&":"&amp","<":"&lt",">":"&gt",'"':"&#34","'":"&#39"},he={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};function Ci(i){return i.replace(/;(\s*$)/,"$1")}function Wd(i,t){return new Xd(i).compileFunction()(t)}class Xd{constructor(t){m(this,"templateText");m(this,"mode",null);m(this,"truncate",!1);m(this,"currentLine",1);m(this,"source","");m(this,"regex",new RegExp(Gd));this.templateText=t}compileFunction(){let t;const e=` var __output = "";
492
+ `;function xd(){}const{Vector2:Dd}=I;function Sd(i,t){const{offsetWidth:e,offsetHeight:o}=t,{top:n,left:r}=t.getBoundingClientRect();return Object.assign(new Dd,{x:(i.x-r)/e*2-1,y:-(i.y-n)/o*2+1})}class Ld{constructor(t){m(this,"container",document.createElement("div"));m(this,"five");m(this,"group");m(this,"mouseGroup");m(this,"hasAppendMouseGroup",!1);m(this,"fiveHelper");m(this,"hook");m(this,"content");m(this,"intersectMesh");m(this,"centerMouseXY");m(this,"raycaster",new M.Raycaster);m(this,"pieceStyl",{matrix3d:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],scale:1,opacity:.4});m(this,"onCameraDirectionUpdate",()=>{const t=this.getIntersection();if(t){this.pieceChange(t),this.updateMouseGroup(t);const e=new ke(this.mouseGroup.position);this.hook.emit("nowPointChange",e)}});m(this,"onWillChangeState",(t,e)=>{var n;this.dotAnimation();const o=(n=this.getIntersection())==null?void 0:n.point;!o||(e==="editing"?this.hook.emit("getStartPoint",new ke(o)):this.hook.emit("getEndPoint",new ke(o)))});m(this,"computedCenterMouseXY",()=>{const t=this.container.querySelector(".range-piece__aim");if(!t)return null;const{left:e,top:o,width:n,height:r}=t.getBoundingClientRect(),a=Math.round(e+n/2),l=Math.round(o+r/2),d=Sd({x:a,y:l},this.five.getElement());this.centerMouseXY=d});m(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=li(B({isMobile:!0},t.openParams.crossHairParameter)),this.fiveHelper=t.fiveHelper,this.container.innerHTML=kd,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 M.Mesh(new M.RingGeometry(.04,.08,32),new M.MeshBasicMaterial({color:1245179,opacity:0,side:M.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,o=t.point;if(e&&o){const r=e.normal.clone().clone().multiplyScalar(.05),a=o.clone().add(r);this.intersectMesh.position.copy(a);const l=a.clone().add(r);this.intersectMesh.lookAt(l),this.five.scene.add(this.intersectMesh);const c=this.intersectMesh.modelViewMatrix.clone().toArray();this.changePieceStyl("matrix3d",c);const d=this.calculateSize(o);this.changePieceStyl("scale",d)}}calculateSize(t){if(!t)return;const e=this.five.camera.position;let o=t.distanceTo(e);const n=4,r=1;return o>n&&(o=n),o<r&&(o=r),-.51/(n-r)*o+1}dotAnimation(){const t=at.default.Easing.Quadratic.InOut,e={opacity:.4,scale:this.pieceStyl.scale},o={opacity:[1,.4],scale:[this.pieceStyl.scale*.8,this.pieceStyl.scale]};let n=xd;const r=new at.default.Tween(e).to(o,500).easing(t).start(0).onUpdate(({opacity:a,scale:l})=>{this.changePieceStyl("scale",l),this.changePieceStyl("opacity",a)}).onComplete(()=>{n()});n=_t(a=>{r.update(a)})}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 o=this.container.querySelector(".range-piece__aim");o&&(o.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 n=t.face.normal.clone().multiplyScalar(.05),a=t.point.clone().add(n).clone().add(n);this.mouseGroup.lookAt(a)}return this.mouseGroup}}class _d{constructor(t,e){m(this,"hasOpen",!1);m(this,"hook",new J.Subscribe);m(this,"magnifier");m(this,"five");m(this,"model");m(this,"group");m(this,"config");m(this,"fiveHelper");m(this,"useUIController");m(this,"params");m(this,"useGuideController");m(this,"rangePieceController");m(this,"container",document.createElement("div"));m(this,"shortcutKeyController");m(this,"controller",null);m(this,"controllerParams");m(this,"getCurrentMode",()=>this.controller instanceof Ft?"Edit":this.controller instanceof wo?"Watch":this.controller instanceof ai?"Mixed":null);m(this,"changeMode",t=>{var o;if(!this.hasOpen||this.getCurrentMode()===t)return;if(this.getCurrentMode()==="Mixed"||t==="Mixed")return new Error("\u4E0D\u652F\u6301\u5207\u6362\u7684Mode");(o=this.controller)==null||o.dispose();const e={View:id,Watch:wo,Edit:Ft};if(!e[t])throw new Error("\u4E0D\u5B58\u5728\u7684 Mode");this.controller=new e[t](this.controllerParams),this.hook.emit("modeChange",t)});var r,a;this.five=t,this.params=e;const o={userDistanceItemCreator:void 0,getDistanceText(l){return l.toFixed(2)+"m"}};this.config=B(B({},o),Dt(e,["openParams","magnifierParams"])),this.model=new Ao(this.config),this.fiveHelper=new Gc(t),this.magnifier=new ti(t,(r=e.magnifierParams)!=null?r:{width:190,height:190,scale:2}),this.group=new M.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",this.container.style.background="rgba(0, 0, 0, 0.15)";const n=(a=this.params.openParams)!=null?a:{};this.controllerParams={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:n,mouseGroup:li(B({},n.crossHairParameter)),userDistanceItemCreator:this.params.userDistanceItemCreator},this.params.useUIController!==!1&&(this.useUIController=new fi(this,this.controllerParams)),this.params.useGuideController!==!1&&(this.useGuideController=new Id(this,this.controllerParams))}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(){var t,e,o;this.hasOpen||(this.hasOpen=!0,this.five.scene.add(this.group),this.container.style.opacity="1",(t=this.params.openParams)!=null&&t.isMobile?(this.controller=new ai(this.controllerParams),this.rangePieceController=new Ld(this.controllerParams)):(this.five.helperVisible=!1,this.controller=new wo(this.controllerParams)),(e=this.useUIController)==null||e.show(),(o=this.useGuideController)==null||o.show(),this.shortcutKeyController=new Ed(this,this.five),this.hook.emit("enable",!0))}disable(){var t,e,o,n,r;this.hasOpen=!1,this.container.style.opacity="0",(t=this.controller)==null||t.dispose(),(e=this.rangePieceController)==null||e.dispose(),(o=this.useUIController)==null||o.hide(),(n=this.useGuideController)==null||n.hide(),(r=this.shortcutKeyController)==null||r.dispose(),this.controller=null,this.five.helperVisible=!0,this.five.scene.remove(this.group),this.five.needsRender=!0,this.hook.emit("disable",!0)}revoke(){this.controller instanceof Ft&&this.controller.revoke()}removeLineByID(t){this.model.removeLineByID(t)}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(){return this.controller instanceof Ft?(this.model.mergeModel(this.controller.model),this):this}toJson(){return this.model.toJson()}changeIsMobile(t){var e,o;((e=this.controllerParams.openParams)==null?void 0:e.isMobile)===void 0&&(this.controllerParams.openParams.isMobile=t),this.controllerParams.openParams.isMobile!==t&&(this.controllerParams.openParams.isMobile=t,this.params.useUIController!==!1&&((o=this.useUIController)==null||o.dispose()),this.useUIController=new fi(this,this.controllerParams))}changeConfigs(t){var e;if(t.getDistanceText&&t.getDistanceText!==this.config.getDistanceText){const o=t.getDistanceText;this.config.getDistanceText=o,(e=this.controller)==null||e.updateDistanceUI()}}}const zd=function(t,e){return new _d(t,e)},pi=$t.writable(null);function Md(i){s.append_styles(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 gi(i,t,e){const o=i.slice();return o[3]=t[e],o}function Ai(i){let t,e=`${i[3].top}%`,o=`${i[3].left}%`,n,r;function a(){return i[2](i[3])}return{c(){t=s.element("i"),s.attr(t,"class","svelte-19zi46m"),s.toggle_class(t,"PanoSpatialTagPlugin__tag-origin",!0),s.toggle_class(t,"PanoSpatialTagPlugin__tag-origin-destroy",i[3].destroying),s.set_style(t,"top",e,!1),s.set_style(t,"left",o,!1),s.set_style(t,"visibility",i[3].front?"visible":"hidden",!1)},m(l,c){s.insert(l,t,c),n||(r=s.listen(t,"click",a),n=!0)},p(l,c){i=l,c&1&&s.toggle_class(t,"PanoSpatialTagPlugin__tag-origin-destroy",i[3].destroying),c&1&&e!==(e=`${i[3].top}%`)&&s.set_style(t,"top",e,!1),c&1&&o!==(o=`${i[3].left}%`)&&s.set_style(t,"left",o,!1),c&1&&s.set_style(t,"visibility",i[3].front?"visible":"hidden",!1)},d(l){l&&s.detach(t),n=!1,r()}}}function jd(i){let t,e=i[0],o=[];for(let n=0;n<e.length;n+=1)o[n]=Ai(gi(i,e,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=s.empty()},m(n,r){for(let a=0;a<o.length;a+=1)o[a].m(n,r);s.insert(n,t,r)},p(n,[r]){if(r&3){e=n[0];let a;for(a=0;a<e.length;a+=1){const l=gi(n,e,a);o[a]?o[a].p(l,r):(o[a]=Ai(l),o[a].c(),o[a].m(t.parentNode,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=e.length}},i:s.noop,o:s.noop,d(n){s.destroy_each(o,n),n&&s.detach(t)}}}function Bd(i,t,e){let{origins:o}=t;const n=a=>{pi.update(()=>`${a}-PanoSpatialTagPlugin-${Date.now()}`)},r=a=>n(a.id);return i.$$set=a=>{"origins"in a&&e(0,o=a.origins)},[o,n,r]}class Td extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Bd,jd,s.safe_not_equal,{origins:0},Md)}}function Qd(i){s.append_styles(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 Od(i){let t,e,o,n,r,a,l,c,d,u,f,h,p,g,A;return{c(){t=s.element("div"),e=s.element("div"),o=s.space(),n=s.element("div"),r=s.element("i"),a=s.space(),l=s.element("i"),c=s.space(),d=s.element("i"),u=s.space(),f=s.element("div"),h=s.element("div"),s.attr(e,"class","PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"),s.set_style(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]+")"),s.attr(r,"class","PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"),s.set_style(r,"width",i[4]+"rem"),s.attr(l,"class","PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"),s.attr(d,"class","PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"),s.attr(n,"class","PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"),s.attr(h,"class","PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"),s.attr(f,"class","PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"),s.set_style(f,"transform","scale("+i[3]*3+")"),s.attr(t,"id",p="PanoSpatialTagPlugin__"+i[0]),s.set_style(t,"height",20*i[5]+"rem"),s.attr(t,"class","svelte-1i5h9zh"),s.toggle_class(t,"PanoSpatialTagPlugin__tag-x",!0),s.toggle_class(t,"PanoSpatialTagPlugin__tag-upside-down",i[1]),s.toggle_class(t,"PanoSpatialTagPlugin__tag-show",i[10]),s.toggle_class(t,"PanoSpatialTagPlugin__tag-hide",i[10]===!1||i[6])},m(b,v){s.insert(b,t,v),s.append(t,e),s.append(t,o),s.append(t,n),s.append(n,r),s.append(n,a),s.append(n,l),s.append(n,c),s.append(n,d),s.append(t,u),s.append(t,f),s.append(f,h),h.innerHTML=i[2],i[16](h),g||(A=s.listen(h,"click",i[11]),g=!0)},p(b,[v]){v&394&&s.set_style(e,"transform","translate("+b[7]/2*b[3]*3+"px, "+b[8]/2*(b[1]?-1:1)*b[3]*3+"px) scale("+1/b[3]+")"),v&16&&s.set_style(r,"width",b[4]+"rem"),v&4&&(h.innerHTML=b[2]),v&8&&s.set_style(f,"transform","scale("+b[3]*3+")"),v&1&&p!==(p="PanoSpatialTagPlugin__"+b[0])&&s.attr(t,"id",p),v&32&&s.set_style(t,"height",20*b[5]+"rem"),v&2&&s.toggle_class(t,"PanoSpatialTagPlugin__tag-upside-down",b[1]),v&1024&&s.toggle_class(t,"PanoSpatialTagPlugin__tag-show",b[10]),v&1088&&s.toggle_class(t,"PanoSpatialTagPlugin__tag-hide",b[10]===!1||b[6])},i:s.noop,o:s.noop,d(b){b&&s.detach(t),i[16](null),g=!1,A()}}}function Rd(i,t,e){let{id:o}=t,{upsideDown:n}=t,{content:r}=t,{contentZoom:a}=t,{lineWidthZoom:l}=t,{lineHeightZoom:c}=t,{destroying:d=!1}=t,{folded:u}=t,{dispose:f}=t,{events:h}=t,{hooks:p}=t,g=0,A=0,b,v,C=setTimeout(()=>{u||e(10,v=!0),C=void 0},100);const y=w=>{const D=Object.keys(h);let x=w.target;for(;x;){const z=x.getAttribute("class");if(!z){x=x.parentNode;continue}if(z.includes("PanoSpatialTagPlugin__tag-content")){x=null;break}D.forEach(_=>{z.includes(_)&&h[_](o)}),x=x.parentNode}};Z.onMount(()=>{p.emit("initTag",{id:o})});const E=pi.subscribe(w=>{if(w===null)return;const[D,x]=w.split("-PanoSpatialTagPlugin-");o===D&&(p.emit("clickOrigin",{id:o,show:v}),C||(e(10,v=u),e(12,u=!u),C=setTimeout(()=>{C=void 0},1500)))});Z.afterUpdate(()=>{e(7,g=b.offsetWidth),e(8,A=b.offsetHeight),!C&&e(10,v=!u)}),Z.onDestroy(()=>{p.emit("destroyTag",{id:o}),E(),f()});function k(w){s.binding_callbacks[w?"unshift":"push"](()=>{b=w,e(9,b)})}return i.$$set=w=>{"id"in w&&e(0,o=w.id),"upsideDown"in w&&e(1,n=w.upsideDown),"content"in w&&e(2,r=w.content),"contentZoom"in w&&e(3,a=w.contentZoom),"lineWidthZoom"in w&&e(4,l=w.lineWidthZoom),"lineHeightZoom"in w&&e(5,c=w.lineHeightZoom),"destroying"in w&&e(6,d=w.destroying),"folded"in w&&e(12,u=w.folded),"dispose"in w&&e(13,f=w.dispose),"events"in w&&e(14,h=w.events),"hooks"in w&&e(15,p=w.hooks)},[o,n,r,a,l,c,d,g,A,b,v,y,u,f,h,p,k]}class Fd extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Rd,Od,s.safe_not_equal,{id:0,upsideDown:1,content:2,contentZoom:3,lineWidthZoom:4,lineHeightZoom:5,destroying:6,folded:12,dispose:13,events:14,hooks:15},Qd)}}const Hd={position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",pointerEvents:"none"},vi="<",bi=">",yi="%",wi="locals",Gd="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Nd={"&":"&amp","<":"&lt",">":"&gt",'"':"&#34","'":"&#39"},he={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};function Ci(i){return i.replace(/;(\s*$)/,"$1")}function Wd(i,t){return new Xd(i).compileFunction()(t)}class Xd{constructor(t){m(this,"templateText");m(this,"mode",null);m(this,"truncate",!1);m(this,"currentLine",1);m(this,"source","");m(this,"regex",new RegExp(Gd));this.templateText=t}compileFunction(){let t;const e=` var __output = "";
493
493
  function __append(s) { if (s !== undefined && s !== null) __output += s }
494
494
  with (`+wi+` || {}) {
495
495
  `,o=` }
@@ -504,25 +504,25 @@ void main() {
504
504
  `)}switch(this.mode){case he.EVAL:this.source+=" ; "+t+`
505
505
  `;break;case he.ESCAPED:this.source+=" ; __append(escapeFn("+Ci(t)+`))
506
506
  `;break;case he.RAW:this.source+=" ; __append("+Ci(t)+`)
507
- `;break;case he.COMMENT:break;case he.LITERAL:this._addOutput(t);break}}else this._addOutput(t)}}}const Co=.001,Pi=.01,Yd="https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png",Ud=(i,t)=>{var Q,H,Y,U,K,se,ae,me;let e=t==null?void 0:t.container,o=1.4;const n=(Q=t==null?void 0:t.wait)!=null?Q:200,r=(H=t==null?void 0:t.maxNumberOnScreen)!=null?H:3,a=(Y=t==null?void 0:t.minRad)!=null?Y:Math.PI/4,l=(U=t==null?void 0:t.nearTolerance)!=null?U:100,c=(K=t==null?void 0:t.upsideHeight)!=null?K:1.6,d=(se=t==null?void 0:t.minDistance)!=null?se:1.2,u=(ae=t==null?void 0:t.maxDistance)!=null?ae:3.5,f=et(i),h=document.createElement("div");h.classList.add("PanoSpatialTagPlugin"),Object.assign(h.style,Hd);const p=new J.Subscribe;let g=new Image;g.src=Yd;const A={points:[],origins:[],tags:[],template:"",events:{},render:Wd,folded:!1,enabled:!0,forbidden:!0},b=new Td({target:h,props:{origins:A.origins}}),v=(W,te)=>{k(),te&&C()},w=()=>{A.forbidden&&(A.forbidden=!1,C())},y=(W,te)=>{if(A.tags.length===0)return;const ie=te.longitude-i.state.longitude,X=i.camera.clone();X.position.copy(te.offset),X.rotateOnWorldAxis(new I.Vector3(0,1,0),ie),X.updateProjectionMatrix(),X.updateMatrixWorld(!0);const _e=new I.Frustum,qe=new I.Matrix4;qe.multiplyMatrices(X.projectionMatrix,X.matrixWorldInverse),_e.setFromProjectionMatrix(qe),A.tags.forEach(ee=>{const Oe=X.position.clone().setY(o).distanceTo(ee.position);if(Oe<d||Oe>u||!_e.containsPoint(ee.position))return ee.destroying=!0;const Re=ee.position.clone().sub(X.position).setY(0);if(Re.angleTo(ee.normal)>Math.PI/2-a&&Re.angleTo(ee.normal)<Math.PI/2+a)return ee.destroying=!0}),A.tags.forEach(ee=>{ee.destroying?ee.app.$set({contentZoom:.1+X.position.distanceTo(ee.position)/u,lineWidthZoom:.38*(.01+X.position.distanceTo(ee.position)/u),destroying:ee.destroying}):ee.app.$set({lineWidthZoom:.38*(.01+X.position.distanceTo(ee.position)/u),lineHeightZoom:.4+(X.position.distanceTo(ee.position)-d)/u*.6,contentZoom:.1+X.position.distanceTo(ee.position)/u})}),setTimeout(()=>{A.tags.forEach(ee=>{ee.destroying&&(ee.app.$destroy(),ee=null)}),A.tags=A.tags.filter(ee=>!ee.destroying),k()},1900)},E=W=>{W!==J.Five.Mode.Panorama&&!A.forbidden&&(b.$set({origins:[]}),A.tags.forEach(te=>{te.app.$destroy(),te=null}),A.origins=[],A.tags=[],A.forbidden=!0)},k=()=>{if(A.forbidden||!A.enabled)return;const W=i.camera,te=W.getWorldDirection(new I.Vector3);A.origins=A.tags.map(ie=>{const X=ie.position.clone().project(W),_e=ie.position.clone().sub(W.position).setY(0).angleTo(te.setY(0))<Math.PI/2;return{id:ie.id,front:_e,left:(X.x+1)/2*100,top:(-X.y+1)/2*100,destroying:ie.destroying}}),b.$set({origins:A.origins})},C=()=>{A.forbidden||!A.enabled||(A.timeoutId&&clearTimeout(A.timeoutId),A.timeoutId=setTimeout(()=>{A.timeoutId=void 0;const W=D();W.length&&(A.tags=A.tags.concat(W),k())},n))},D=()=>{const{clientWidth:W,clientHeight:te}=i.getElement(),ie=[],X=i.camera,_e=new I.Frustum,qe=new I.Matrix4,ee=X.getWorldDirection(new I.Vector3);qe.multiplyMatrices(X.projectionMatrix,X.matrixWorldInverse),_e.setFromProjectionMatrix(qe);const Oe=A.tags.filter(le=>_e.containsPoint(le.position)&&!le.destroying).length,Re=A.points.reduce((le,pe)=>{if(A.tags.find(ue=>pe.id===ue.id&&!ue.destroying))return le;const xe=X.position.clone().setY(o).distanceTo(pe.position);if(xe<d||xe>u||!_e.containsPoint(pe.position))return le;const pt=pe.position.clone().sub(X.position).setY(0);if(pt.angleTo(pe.normal)>Math.PI/2-a&&pt.angleTo(pe.normal)<Math.PI/2+a)return le;const rt=pe.position.clone().project(X);if(!A.tags.every(ue=>{if(ue.position.clone().sub(X.position).setY(0).angleTo(ee.setY(0))>Math.PI/2)return!0;const $e=ue.position.clone().project(X);return Math.sqrt(Math.pow((rt.x-$e.x)/2*W,2)+Math.pow((rt.y-$e.y)/2*te,2))>l}))return le;const Ke={id:pe.id,position:pe.position,normal:pe.normal,replacement:pe.replacement,weight:pe.weight,distance:xe};let ne;for(let ue=0,$e=le.length;ue<$e;ue++){const Kt=le[ue];if(Ke.weight>Kt.weight){ne=ue;break}if(Ke.distance<Kt.distance){ne=ue;break}}return ne!==void 0?le.splice(ne,0,Ke):le.push(Ke),le},[]);for(let le=0,pe=Re.length;le<pe&&!(Oe+ie.length>=r);le++){const xe=Re[le];if(ie.find(ne=>xe.id===ne.id))continue;const pt=xe.position.clone().project(X);if(!A.tags.concat(ie).every(ne=>{if(ne.position.clone().sub(X.position).setY(0).angleTo(ee.setY(0))>Math.PI/2)return!0;const ue=ne.position.clone().project(X);return Math.sqrt(Math.pow((pt.x-ue.x)/2*W,2)+Math.pow((pt.y-ue.y)/2*te,2))>l}))continue;const rt=new I.Raycaster(X.position.clone().setY(o),xe.position.clone().sub(X.position.clone().setY(o)).normalize(),0,xe.distance+Pi),[Ke]=A.intersectObjects?rt.intersectObjects(A.intersectObjects,!0):i.model.bvhs.loaded?i.model.intersectRaycaster(rt):rt.intersectObjects(i.model.children,!0);if(!!Ke&&xe.distance-Ke.distance<Pi){const{position:ne,normal:ue,id:$e,replacement:Kt}=xe,lp=new I.Plane().setFromNormalAndCoplanarPoint(ue,ne),lr=ne.clone().sub(X.position).cross(new I.Vector3(0,1,0)).setLength(Co),cp=[ne.clone(),ne.clone().add(lr),ne.clone().add(new I.Vector3(0,Co,0)).add(lr),ne.clone().add(new I.Vector3(0,Co,0))].map(fp=>lp.projectPoint(fp,new I.Vector3)),{container:dp,dispose:up}=f.create3DDomContainer(cp)||{},hp=new Fd({target:dp,props:{id:$e,content:A.render(A.template,Kt),lineWidthZoom:.38*(.01+X.position.distanceTo(ne)/u),lineHeightZoom:.4+(X.position.distanceTo(ne)-d)/u*.6,contentZoom:.1+X.position.distanceTo(ne)/u,upsideDown:ne.y>c,folded:A.folded,events:A.events,hooks:p,dispose:up}});ie.push({position:ne,normal:ue,id:$e,app:hp})}}return ie},x=W=>{A.points=W.points.map(te=>{var ie,X;return{id:te.id,position:new I.Vector3().fromArray(te.position),normal:new I.Vector3().fromArray(te.normal),replacement:(ie=te.replacement)!=null?ie:{},weight:(X=te.weight)!=null?X:-1}}),W.render&&(A.render=W.render),W.template&&(A.template=W.template),W.events&&(A.events=W.events),W.enabled===!1&&(A.enabled=W.enabled),W.folded===!0&&(A.folded=W.folded)},z=W=>{A.intersectObjects=W,C()},L=()=>{A.enabled=!0,C()},j=()=>{A.enabled=!1,b.$set({origins:[]}),A.tags.forEach(W=>{W.app.$destroy(),W=null}),A.origins=[],A.tags=[]},O=()=>{A.folded=!1,A.tags.forEach(W=>{W.app.$set({folded:A.folded})})},P=()=>{A.folded=!0,A.tags.forEach(W=>{W.app.$set({folded:A.folded})})},S=W=>{A.tags.forEach(te=>{te.id===W&&te.app.$set({folded:!1})})},_=W=>{A.tags.forEach(te=>{te.id===W&&te.app.$set({folded:!0})})},T=()=>{i.once("renderFrame",k)},R=()=>{e||(e=i.getElement().parentElement),e&&e.appendChild(h),A.forbidden=!1,o=i.model.bounding.getCenter(new I.Vector3).y,C(),i.on("panoWillArrive",y),i.on("panoArrived",w),i.on("modeChange",E),i.on("cameraUpdate",v)},N=()=>{g=null,f.disposeAll(),b.$destroy(),A.tags.forEach(W=>{W.app.$destroy(),W=null}),A.origins=[],A.tags=[],i.off("modelLoaded",R),i.off("renderFrame",k),i.off("panoWillArrive",y),i.off("panoArrived",w),i.off("modeChange",E),i.off("cameraUpdate",v),i.off("dispose",N),window.removeEventListener("resize",T,!1)};return window.addEventListener("resize",T,!1),(me=i==null?void 0:i.model)!=null&&me.loaded?R():i.once("modelLoaded",R),i.on("dispose",N),{load:x,setIntersectObjects:z,unfoldAll:O,foldAll:P,unfold:S,fold:_,enable:L,disable:j,hooks:p,dispose:N}};var Xe=(i=>(i.SMALL="small",i.MIDLLE="middle",i.LARGE="large",i.EXTRA_LARGE="x-large",i))(Xe||{});function Vd(i){s.append_styles(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
507
+ `;break;case he.COMMENT:break;case he.LITERAL:this._addOutput(t);break}}else this._addOutput(t)}}}const Co=.001,Pi=.01,Yd="https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png",Ud=(i,t)=>{var Q,H,Y,U,K,se,ae,me;let e=t==null?void 0:t.container,o=1.4;const n=(Q=t==null?void 0:t.wait)!=null?Q:200,r=(H=t==null?void 0:t.maxNumberOnScreen)!=null?H:3,a=(Y=t==null?void 0:t.minRad)!=null?Y:Math.PI/4,l=(U=t==null?void 0:t.nearTolerance)!=null?U:100,c=(K=t==null?void 0:t.upsideHeight)!=null?K:1.6,d=(se=t==null?void 0:t.minDistance)!=null?se:1.2,u=(ae=t==null?void 0:t.maxDistance)!=null?ae:3.5,f=et(i),h=document.createElement("div");h.classList.add("PanoSpatialTagPlugin"),Object.assign(h.style,Hd);const p=new J.Subscribe;let g=new Image;g.src=Yd;const A={points:[],origins:[],tags:[],template:"",events:{},render:Wd,folded:!1,enabled:!0,forbidden:!0},b=new Td({target:h,props:{origins:A.origins}}),v=(W,te)=>{k(),te&&w()},C=()=>{A.forbidden&&(A.forbidden=!1,w())},y=(W,te)=>{if(A.tags.length===0)return;const ie=te.longitude-i.state.longitude,X=i.camera.clone();X.position.copy(te.offset),X.rotateOnWorldAxis(new I.Vector3(0,1,0),ie),X.updateProjectionMatrix(),X.updateMatrixWorld(!0);const _e=new I.Frustum,qe=new I.Matrix4;qe.multiplyMatrices(X.projectionMatrix,X.matrixWorldInverse),_e.setFromProjectionMatrix(qe),A.tags.forEach(ee=>{const Oe=X.position.clone().setY(o).distanceTo(ee.position);if(Oe<d||Oe>u||!_e.containsPoint(ee.position))return ee.destroying=!0;const Re=ee.position.clone().sub(X.position).setY(0);if(Re.angleTo(ee.normal)>Math.PI/2-a&&Re.angleTo(ee.normal)<Math.PI/2+a)return ee.destroying=!0}),A.tags.forEach(ee=>{ee.destroying?ee.app.$set({contentZoom:.1+X.position.distanceTo(ee.position)/u,lineWidthZoom:.38*(.01+X.position.distanceTo(ee.position)/u),destroying:ee.destroying}):ee.app.$set({lineWidthZoom:.38*(.01+X.position.distanceTo(ee.position)/u),lineHeightZoom:.4+(X.position.distanceTo(ee.position)-d)/u*.6,contentZoom:.1+X.position.distanceTo(ee.position)/u})}),setTimeout(()=>{A.tags.forEach(ee=>{ee.destroying&&(ee.app.$destroy(),ee=null)}),A.tags=A.tags.filter(ee=>!ee.destroying),k()},1900)},E=W=>{W!==J.Five.Mode.Panorama&&!A.forbidden&&(b.$set({origins:[]}),A.tags.forEach(te=>{te.app.$destroy(),te=null}),A.origins=[],A.tags=[],A.forbidden=!0)},k=()=>{if(A.forbidden||!A.enabled)return;const W=i.camera,te=W.getWorldDirection(new I.Vector3);A.origins=A.tags.map(ie=>{const X=ie.position.clone().project(W),_e=ie.position.clone().sub(W.position).setY(0).angleTo(te.setY(0))<Math.PI/2;return{id:ie.id,front:_e,left:(X.x+1)/2*100,top:(-X.y+1)/2*100,destroying:ie.destroying}}),b.$set({origins:A.origins})},w=()=>{A.forbidden||!A.enabled||(A.timeoutId&&clearTimeout(A.timeoutId),A.timeoutId=setTimeout(()=>{A.timeoutId=void 0;const W=D();W.length&&(A.tags=A.tags.concat(W),k())},n))},D=()=>{const{clientWidth:W,clientHeight:te}=i.getElement(),ie=[],X=i.camera,_e=new I.Frustum,qe=new I.Matrix4,ee=X.getWorldDirection(new I.Vector3);qe.multiplyMatrices(X.projectionMatrix,X.matrixWorldInverse),_e.setFromProjectionMatrix(qe);const Oe=A.tags.filter(le=>_e.containsPoint(le.position)&&!le.destroying).length,Re=A.points.reduce((le,pe)=>{if(A.tags.find(ue=>pe.id===ue.id&&!ue.destroying))return le;const xe=X.position.clone().setY(o).distanceTo(pe.position);if(xe<d||xe>u||!_e.containsPoint(pe.position))return le;const pt=pe.position.clone().sub(X.position).setY(0);if(pt.angleTo(pe.normal)>Math.PI/2-a&&pt.angleTo(pe.normal)<Math.PI/2+a)return le;const rt=pe.position.clone().project(X);if(!A.tags.every(ue=>{if(ue.position.clone().sub(X.position).setY(0).angleTo(ee.setY(0))>Math.PI/2)return!0;const $e=ue.position.clone().project(X);return Math.sqrt(Math.pow((rt.x-$e.x)/2*W,2)+Math.pow((rt.y-$e.y)/2*te,2))>l}))return le;const Ke={id:pe.id,position:pe.position,normal:pe.normal,replacement:pe.replacement,weight:pe.weight,distance:xe};let ne;for(let ue=0,$e=le.length;ue<$e;ue++){const Kt=le[ue];if(Ke.weight>Kt.weight){ne=ue;break}if(Ke.distance<Kt.distance){ne=ue;break}}return ne!==void 0?le.splice(ne,0,Ke):le.push(Ke),le},[]);for(let le=0,pe=Re.length;le<pe&&!(Oe+ie.length>=r);le++){const xe=Re[le];if(ie.find(ne=>xe.id===ne.id))continue;const pt=xe.position.clone().project(X);if(!A.tags.concat(ie).every(ne=>{if(ne.position.clone().sub(X.position).setY(0).angleTo(ee.setY(0))>Math.PI/2)return!0;const ue=ne.position.clone().project(X);return Math.sqrt(Math.pow((pt.x-ue.x)/2*W,2)+Math.pow((pt.y-ue.y)/2*te,2))>l}))continue;const rt=new I.Raycaster(X.position.clone().setY(o),xe.position.clone().sub(X.position.clone().setY(o)).normalize(),0,xe.distance+Pi),[Ke]=A.intersectObjects?rt.intersectObjects(A.intersectObjects,!0):i.model.bvhs.loaded?i.model.intersectRaycaster(rt):rt.intersectObjects(i.model.children,!0);if(!!Ke&&xe.distance-Ke.distance<Pi){const{position:ne,normal:ue,id:$e,replacement:Kt}=xe,lp=new I.Plane().setFromNormalAndCoplanarPoint(ue,ne),lr=ne.clone().sub(X.position).cross(new I.Vector3(0,1,0)).setLength(Co),cp=[ne.clone(),ne.clone().add(lr),ne.clone().add(new I.Vector3(0,Co,0)).add(lr),ne.clone().add(new I.Vector3(0,Co,0))].map(fp=>lp.projectPoint(fp,new I.Vector3)),{container:dp,dispose:up}=f.create3DDomContainer(cp)||{},hp=new Fd({target:dp,props:{id:$e,content:A.render(A.template,Kt),lineWidthZoom:.38*(.01+X.position.distanceTo(ne)/u),lineHeightZoom:.4+(X.position.distanceTo(ne)-d)/u*.6,contentZoom:.1+X.position.distanceTo(ne)/u,upsideDown:ne.y>c,folded:A.folded,events:A.events,hooks:p,dispose:up}});ie.push({position:ne,normal:ue,id:$e,app:hp})}}return ie},x=W=>{A.points=W.points.map(te=>{var ie,X;return{id:te.id,position:new I.Vector3().fromArray(te.position),normal:new I.Vector3().fromArray(te.normal),replacement:(ie=te.replacement)!=null?ie:{},weight:(X=te.weight)!=null?X:-1}}),W.render&&(A.render=W.render),W.template&&(A.template=W.template),W.events&&(A.events=W.events),W.enabled===!1&&(A.enabled=W.enabled),W.folded===!0&&(A.folded=W.folded)},z=W=>{A.intersectObjects=W,w()},_=()=>{A.enabled=!0,w()},j=()=>{A.enabled=!1,b.$set({origins:[]}),A.tags.forEach(W=>{W.app.$destroy(),W=null}),A.origins=[],A.tags=[]},R=()=>{A.folded=!1,A.tags.forEach(W=>{W.app.$set({folded:A.folded})})},P=()=>{A.folded=!0,A.tags.forEach(W=>{W.app.$set({folded:A.folded})})},S=W=>{A.tags.forEach(te=>{te.id===W&&te.app.$set({folded:!1})})},L=W=>{A.tags.forEach(te=>{te.id===W&&te.app.$set({folded:!0})})},T=()=>{i.once("renderFrame",k)},O=()=>{e||(e=i.getElement().parentElement),e&&e.appendChild(h),A.forbidden=!1,o=i.model.bounding.getCenter(new I.Vector3).y,w(),i.on("panoWillArrive",y),i.on("panoArrived",C),i.on("modeChange",E),i.on("cameraUpdate",v)},N=()=>{g=null,f.disposeAll(),b.$destroy(),A.tags.forEach(W=>{W.app.$destroy(),W=null}),A.origins=[],A.tags=[],i.off("modelLoaded",O),i.off("renderFrame",k),i.off("panoWillArrive",y),i.off("panoArrived",C),i.off("modeChange",E),i.off("cameraUpdate",v),i.off("dispose",N),window.removeEventListener("resize",T,!1)};return window.addEventListener("resize",T,!1),(me=i==null?void 0:i.model)!=null&&me.loaded?O():i.once("modelLoaded",O),i.on("dispose",N),{load:x,setIntersectObjects:z,unfoldAll:R,foldAll:P,unfold:S,fold:L,enable:_,disable:j,hooks:p,dispose:N}};var Xe=(i=>(i.SMALL="small",i.MIDLLE="middle",i.LARGE="large",i.EXTRA_LARGE="x-large",i))(Xe||{});function Vd(i){s.append_styles(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
508
508
  }to{opacity:1
509
- }}`)}function Jd(i){let t,e,o,n=(i[0].name.length>6?`${i[0].name.slice(0,6)}...`:i[0].name)+"",r,a,l,c,d,u;return{c(){t=s.element("div"),e=s.element("div"),o=s.element("span"),r=s.text(n),a=s.space(),l=s.element("div"),s.attr(o,"class","item-label-item__text svelte-1ir3cyd"),s.attr(e,"class","item-label-item__text-wrap svelte-1ir3cyd"),s.set_style(e,"top",`-${i[0].strokeLength+26}px`),s.attr(l,"class","item-label-item__bar svelte-1ir3cyd"),s.set_style(l,"height",`${i[0].strokeLength}px`),s.attr(t,"class",c=s.null_to_empty(Ce.default("item-label-item",{visible:i[0].visible}))+" svelte-1ir3cyd"),s.set_style(t,"z-index",i[0].zIndex,!1),s.set_style(t,"transform",i[0].transform,!1)},m(f,h){s.insert(f,t,h),s.append(t,e),s.append(e,o),s.append(o,r),s.append(t,a),s.append(t,l),d||(u=s.listen(o,"click",i[1]),d=!0)},p(f,[h]){h&1&&n!==(n=(f[0].name.length>6?`${f[0].name.slice(0,6)}...`:f[0].name)+"")&&s.set_data(r,n),h&1&&s.set_style(e,"top",`-${f[0].strokeLength+26}px`),h&1&&s.set_style(l,"height",`${f[0].strokeLength}px`),h&1&&c!==(c=s.null_to_empty(Ce.default("item-label-item",{visible:f[0].visible}))+" svelte-1ir3cyd")&&s.attr(t,"class",c),h&1&&s.set_style(t,"z-index",f[0].zIndex,!1),h&1&&s.set_style(t,"transform",f[0].transform,!1)},i:s.noop,o:s.noop,d(f){f&&s.detach(t),d=!1,u()}}}function Zd(i,t,e){let{itemLabel:o}=t,{hooks:n}=t;function r(){console.log("__onclick___: ",o),n.emit("onLabelClick",o)}return i.$$set=a=>{"itemLabel"in a&&e(0,o=a.itemLabel),"hooks"in a&&e(2,n=a.hooks)},[o,r,n]}class qd extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Zd,Jd,s.safe_not_equal,{itemLabel:0,hooks:2},Vd)}}function Ii(i,t=200){let e;return function(...o){clearTimeout(e),e=setTimeout(()=>{i(...o)},t)}}function Kd(i){s.append_styles(i,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function Ei(i,t,e){const o=i.slice();return o[26]=t[e],o}function ki(i,t){let e,o,n;return o=new qd({props:{itemLabel:t[26],hooks:t[0]}}),{key:i,first:null,c(){e=s.empty(),s.create_component(o.$$.fragment),this.first=e},m(r,a){s.insert(r,e,a),s.mount_component(o,r,a),n=!0},p(r,a){t=r;const l={};a&2&&(l.itemLabel=t[26]),a&1&&(l.hooks=t[0]),o.$set(l)},i(r){n||(s.transition_in(o.$$.fragment,r),n=!0)},o(r){s.transition_out(o.$$.fragment,r),n=!1},d(r){r&&s.detach(e),s.destroy_component(o,r)}}}function $d(i){let t,e=[],o=new Map,n,r,a=i[1];const l=c=>c[26].id;for(let c=0;c<a.length;c+=1){let d=Ei(i,a,c),u=l(d);o.set(u,e[c]=ki(u,d))}return{c(){t=s.element("div");for(let c=0;c<e.length;c+=1)e[c].c();s.attr(t,"class","item-labels-container svelte-gk8s47"),s.add_render_callback(()=>i[9].call(t)),s.set_style(t,"opacity",i[4]?1:0,!1)},m(c,d){s.insert(c,t,d);for(let u=0;u<e.length;u+=1)e[u].m(t,null);n=s.add_resize_listener(t,i[9].bind(t)),r=!0},p(c,[d]){d&3&&(a=c[1],s.group_outros(),e=s.update_keyed_each(e,d,l,1,c,a,o,t,s.outro_and_destroy_block,ki,null,Ei),s.check_outros()),d&16&&s.set_style(t,"opacity",c[4]?1:0,!1)},i(c){if(!r){for(let d=0;d<a.length;d+=1)s.transition_in(e[d]);r=!0}},o(c){for(let d=0;d<e.length;d+=1)s.transition_out(e[d]);r=!1},d(c){c&&s.detach(t);for(let d=0;d<e.length;d+=1)e[d].d();n()}}}let xi=26,eu=11;function tu(i,t,e){const{Raycaster:o,Vector3:n}=I;let{five:r}=t,{modelOcclusionEnable:a}=t,{itemLabels:l}=t,{hooks:c}=t,{displayStrategyType:d}=t,u=null,f=null,h,p,g=[],A=!0;const b=(P,S)=>{const _=new o,T=P.camera.position.clone(),R=new n().fromArray(S.modelPosition),N=R.distanceTo(T);_.set(T.clone(),R.clone().sub(T).normalize());const[Q]=P.model.intersectRaycaster(_);return!(Q&&Q.distance+1<N)},v=(P,S)=>{const _=new n(S.modelPosition[0],S.modelPosition[1],S.modelPosition[2]),T=P.project2d(_),R=T==null?void 0:T.x,N=T==null?void 0:T.y;return[R,N]},w=P=>`translate(${P[0]}px, ${P[1]}px)`,y=(P,S)=>g.length===0?!1:!!g.find(T=>P[0]>=T[0]-S&&P[0]<=T[0]+S||P[1]>=T[1]-xi&&P[1]<=T[1]+xi);function E(P,S){switch(S){case Xe.SMALL:return Math.ceil(-27.78*P+85);case Xe.MIDLLE:return Math.ceil(-38.9*P+130);case Xe.LARGE:return Math.ceil(-44.44*P+140);case Xe.EXTRA_LARGE:return Math.ceil(-92.59*P+300)}}const k=(P,S)=>{const _=S.map(R=>{const N=v(P,R),Q=R.name.length*eu,H=E(R.modelPosition[1],d),U=(a?b(P,R):!0)&&!y([N[0],N[1]+H],Q);if(!U)return q(B({},R),{visible:U});g.push(N);const K=w(N);return q(B({},R),{visible:U,transform:K,strokeLength:H})}),T=_.filter(({visible:R})=>R).map(R=>({itemLabelItem:R,distance:new n(R.modelPosition[0],R.modelPosition[1],R.modelPosition[2]).clone().distanceTo(P.camera.position)})).sort((R,N)=>R.distance-N.distance);return _.map(R=>{const N=T.findIndex(Q=>Q.itemLabelItem.id===R.id);return N!==void 0?q(B({},R),{zIndex:N*10}):R})},C=()=>{g=[],e(1,f=k(r,f))};Z.beforeUpdate(()=>{L()});const D=()=>{e(4,A=!1),x()};Z.onMount(()=>{e(1,f=l),u=l,C(),z(),r.on("cameraUpdate",D)});const x=Ii(()=>{e(4,A=!0),C()},300),z=()=>{window.addEventListener("resize",j,!1)},L=()=>{u!==l&&(e(1,f=l),u=l,C())},j=()=>{r.once("renderFrame",C)};Z.onDestroy(()=>{r.off("cameraUpdate",D),window.removeEventListener("resize",j,!1)});function O(){h=this.clientWidth,p=this.clientHeight,e(2,h),e(3,p)}return i.$$set=P=>{"five"in P&&e(5,r=P.five),"modelOcclusionEnable"in P&&e(6,a=P.modelOcclusionEnable),"itemLabels"in P&&e(7,l=P.itemLabels),"hooks"in P&&e(0,c=P.hooks),"displayStrategyType"in P&&e(8,d=P.displayStrategyType)},[c,f,h,p,A,r,a,l,d,O]}class ou extends s.SvelteComponent{constructor(t){super(),s.init(this,t,tu,$d,s.safe_not_equal,{five:5,modelOcclusionEnable:6,itemLabels:7,hooks:0,displayStrategyType:8},Kd)}}function su(i){return i.model_item_labels.map(t=>B({modelPosition:[t.position[0],t.position[1]+t.size[1],t.position[2]]},t))}const iu=(i,t)=>{var h,p;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:void 0,itemLabels:[],wrapper:null,app:void 0,hooks:new J.Subscribe,modelOcclusionEnable:(h=t==null?void 0:t.modelOcclusionEnable)!=null?h:!0,displayStrategyType:(p=t==null?void 0:t.displayStrategyType)!=null?p:Xe.SMALL};e.container.setAttribute("class","model-item-label-plugin-container"),e.container.style.cssText=`
509
+ }}`)}function Jd(i){let t,e,o,n=(i[0].name.length>6?`${i[0].name.slice(0,6)}...`:i[0].name)+"",r,a,l,c,d,u;return{c(){t=s.element("div"),e=s.element("div"),o=s.element("span"),r=s.text(n),a=s.space(),l=s.element("div"),s.attr(o,"class","item-label-item__text svelte-1ir3cyd"),s.attr(e,"class","item-label-item__text-wrap svelte-1ir3cyd"),s.set_style(e,"top",`-${i[0].strokeLength+26}px`),s.attr(l,"class","item-label-item__bar svelte-1ir3cyd"),s.set_style(l,"height",`${i[0].strokeLength}px`),s.attr(t,"class",c=s.null_to_empty(Ce.default("item-label-item",{visible:i[0].visible}))+" svelte-1ir3cyd"),s.set_style(t,"z-index",i[0].zIndex,!1),s.set_style(t,"transform",i[0].transform,!1)},m(f,h){s.insert(f,t,h),s.append(t,e),s.append(e,o),s.append(o,r),s.append(t,a),s.append(t,l),d||(u=s.listen(o,"click",i[1]),d=!0)},p(f,[h]){h&1&&n!==(n=(f[0].name.length>6?`${f[0].name.slice(0,6)}...`:f[0].name)+"")&&s.set_data(r,n),h&1&&s.set_style(e,"top",`-${f[0].strokeLength+26}px`),h&1&&s.set_style(l,"height",`${f[0].strokeLength}px`),h&1&&c!==(c=s.null_to_empty(Ce.default("item-label-item",{visible:f[0].visible}))+" svelte-1ir3cyd")&&s.attr(t,"class",c),h&1&&s.set_style(t,"z-index",f[0].zIndex,!1),h&1&&s.set_style(t,"transform",f[0].transform,!1)},i:s.noop,o:s.noop,d(f){f&&s.detach(t),d=!1,u()}}}function Zd(i,t,e){let{itemLabel:o}=t,{hooks:n}=t;function r(){console.log("__onclick___: ",o),n.emit("onLabelClick",o)}return i.$$set=a=>{"itemLabel"in a&&e(0,o=a.itemLabel),"hooks"in a&&e(2,n=a.hooks)},[o,r,n]}class qd extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Zd,Jd,s.safe_not_equal,{itemLabel:0,hooks:2},Vd)}}function Ii(i,t=200){let e;return function(...o){clearTimeout(e),e=setTimeout(()=>{i(...o)},t)}}function Kd(i){s.append_styles(i,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function Ei(i,t,e){const o=i.slice();return o[26]=t[e],o}function ki(i,t){let e,o,n;return o=new qd({props:{itemLabel:t[26],hooks:t[0]}}),{key:i,first:null,c(){e=s.empty(),s.create_component(o.$$.fragment),this.first=e},m(r,a){s.insert(r,e,a),s.mount_component(o,r,a),n=!0},p(r,a){t=r;const l={};a&2&&(l.itemLabel=t[26]),a&1&&(l.hooks=t[0]),o.$set(l)},i(r){n||(s.transition_in(o.$$.fragment,r),n=!0)},o(r){s.transition_out(o.$$.fragment,r),n=!1},d(r){r&&s.detach(e),s.destroy_component(o,r)}}}function $d(i){let t,e=[],o=new Map,n,r,a=i[1];const l=c=>c[26].id;for(let c=0;c<a.length;c+=1){let d=Ei(i,a,c),u=l(d);o.set(u,e[c]=ki(u,d))}return{c(){t=s.element("div");for(let c=0;c<e.length;c+=1)e[c].c();s.attr(t,"class","item-labels-container svelte-gk8s47"),s.add_render_callback(()=>i[9].call(t)),s.set_style(t,"opacity",i[4]?1:0,!1)},m(c,d){s.insert(c,t,d);for(let u=0;u<e.length;u+=1)e[u].m(t,null);n=s.add_resize_listener(t,i[9].bind(t)),r=!0},p(c,[d]){d&3&&(a=c[1],s.group_outros(),e=s.update_keyed_each(e,d,l,1,c,a,o,t,s.outro_and_destroy_block,ki,null,Ei),s.check_outros()),d&16&&s.set_style(t,"opacity",c[4]?1:0,!1)},i(c){if(!r){for(let d=0;d<a.length;d+=1)s.transition_in(e[d]);r=!0}},o(c){for(let d=0;d<e.length;d+=1)s.transition_out(e[d]);r=!1},d(c){c&&s.detach(t);for(let d=0;d<e.length;d+=1)e[d].d();n()}}}let xi=26,eu=11;function tu(i,t,e){const{Raycaster:o,Vector3:n}=I;let{five:r}=t,{modelOcclusionEnable:a}=t,{itemLabels:l}=t,{hooks:c}=t,{displayStrategyType:d}=t,u=null,f=null,h,p,g=[],A=!0;const b=(P,S)=>{const L=new o,T=P.camera.position.clone(),O=new n().fromArray(S.modelPosition),N=O.distanceTo(T);L.set(T.clone(),O.clone().sub(T).normalize());const[Q]=P.model.intersectRaycaster(L);return!(Q&&Q.distance+1<N)},v=(P,S)=>{const L=new n(S.modelPosition[0],S.modelPosition[1],S.modelPosition[2]),T=P.project2d(L),O=T==null?void 0:T.x,N=T==null?void 0:T.y;return[O,N]},C=P=>`translate(${P[0]}px, ${P[1]}px)`,y=(P,S)=>g.length===0?!1:!!g.find(T=>P[0]>=T[0]-S&&P[0]<=T[0]+S||P[1]>=T[1]-xi&&P[1]<=T[1]+xi);function E(P,S){switch(S){case Xe.SMALL:return Math.ceil(-27.78*P+85);case Xe.MIDLLE:return Math.ceil(-38.9*P+130);case Xe.LARGE:return Math.ceil(-44.44*P+140);case Xe.EXTRA_LARGE:return Math.ceil(-92.59*P+300)}}const k=(P,S)=>{const L=S.map(O=>{const N=v(P,O),Q=O.name.length*eu,H=E(O.modelPosition[1],d),U=(a?b(P,O):!0)&&!y([N[0],N[1]+H],Q);if(!U)return q(B({},O),{visible:U});g.push(N);const K=C(N);return q(B({},O),{visible:U,transform:K,strokeLength:H})}),T=L.filter(({visible:O})=>O).map(O=>({itemLabelItem:O,distance:new n(O.modelPosition[0],O.modelPosition[1],O.modelPosition[2]).clone().distanceTo(P.camera.position)})).sort((O,N)=>O.distance-N.distance);return L.map(O=>{const N=T.findIndex(Q=>Q.itemLabelItem.id===O.id);return N!==void 0?q(B({},O),{zIndex:N*10}):O})},w=()=>{g=[],e(1,f=k(r,f))};Z.beforeUpdate(()=>{_()});const D=()=>{e(4,A=!1),x()};Z.onMount(()=>{e(1,f=l),u=l,w(),z(),r.on("cameraUpdate",D)});const x=Ii(()=>{e(4,A=!0),w()},300),z=()=>{window.addEventListener("resize",j,!1)},_=()=>{u!==l&&(e(1,f=l),u=l,w())},j=()=>{r.once("renderFrame",w)};Z.onDestroy(()=>{r.off("cameraUpdate",D),window.removeEventListener("resize",j,!1)});function R(){h=this.clientWidth,p=this.clientHeight,e(2,h),e(3,p)}return i.$$set=P=>{"five"in P&&e(5,r=P.five),"modelOcclusionEnable"in P&&e(6,a=P.modelOcclusionEnable),"itemLabels"in P&&e(7,l=P.itemLabels),"hooks"in P&&e(0,c=P.hooks),"displayStrategyType"in P&&e(8,d=P.displayStrategyType)},[c,f,h,p,A,r,a,l,d,R]}class ou extends s.SvelteComponent{constructor(t){super(),s.init(this,t,tu,$d,s.safe_not_equal,{five:5,modelOcclusionEnable:6,itemLabels:7,hooks:0,displayStrategyType:8},Kd)}}function su(i){return i.model_item_labels.map(t=>B({modelPosition:[t.position[0],t.position[1]+t.size[1],t.position[2]]},t))}const iu=(i,t)=>{var h,p;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:void 0,itemLabels:[],wrapper:null,app:void 0,hooks:new J.Subscribe,modelOcclusionEnable:(h=t==null?void 0:t.modelOcclusionEnable)!=null?h:!0,displayStrategyType:(p=t==null?void 0:t.displayStrategyType)!=null?p:Xe.SMALL};e.container.setAttribute("class","model-item-label-plugin-container"),e.container.style.cssText=`
510
510
  position: absolute;
511
511
  left: 0;
512
512
  top: 0;
513
513
  width: 100%;
514
514
  height: 100%;
515
515
  z-index: 5;
516
- `,e.container.style.pointerEvents="none";const o=g=>(e.wrapper=g,g.appendChild(e.container),c(),!0),n=g=>{e.itemLabels=su(g),c()},r=()=>(e.enabled||(e.enabled=!0,c()),!0),a=()=>(e.enabled&&(e.enabled=!1,c()),!0),l=()=>{u(),e.container.remove()},c=()=>{var g;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(g=e.app)==null||g.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:i,itemLabels:e.itemLabels}):e.app=new ou({target:e.container,props:{five:i,modelOcclusionEnable:e.modelOcclusionEnable,itemLabels:e.itemLabels,wrapper:e.wrapper,hooks:e.hooks,displayStrategyType:e.displayStrategyType}})}},d=()=>{i.on("modeChange",f),i.once("dispose",l)},u=()=>{i.off("modeChange",f)},f=g=>{if(!!e.enabled){if(g!==J.Five.Mode.Floorplan){e.fiveModeEnabled=!1,c();return}i.once("initAnimationEnded",()=>{e.fiveModeEnabled=i.currentMode===J.Five.Mode.Floorplan,c()})}};return d(),{appendTo:o,load:n,enable:r,disable:a,dispose:l,hooks:e.hooks}},nu={name:"ModelItemLabelPlugin",version:0};var nt=(i=>(i.TOP_LEFT="topLeft",i.TOP_RIGHT="topRight",i.BOTTOM_LEFT="bottomLeft",i.BOTTOM_RIGHT="bottomRight",i))(nt||{});function ru(i){if(i.length===0)return[];if(Array.isArray(i[0]))return i;let t=[];return i.forEach(e=>{const o=[e[nt.TOP_LEFT],e[nt.BOTTOM_LEFT],e[nt.BOTTOM_RIGHT],e[nt.TOP_RIGHT]];t.push(o)}),t}const au=(i,{videoElement:t})=>{const e={videoMeshes:[],videoTextureEnabled:!1,videoSource:"",rectPoints:[],enabled:!1,videoElement:t},o=et(i),n=new Map,r=v=>{e.videoTexture&&(e.videoTexture.image.muted=v)},a=()=>e.videoTexture?e.videoTexture.image.muted:!0,l=()=>{if(e.enabled||!e.videoTexture)return;e.enabled=!0,e.videoMeshes=d(),e.videoMeshes.forEach(w=>i.scene.add(w));const v=()=>{if(!e.videoTexture)return;const w=()=>{var y;!e.videoTexture||((y=e.videoTexture)==null||y.image.removeEventListener("timeupdate",w),e.videoTextureEnabled=!0,e.videoMeshes.forEach(E=>{E.material.map!==e.videoTexture&&(E.material.map=e.videoTexture)}),i.needsRender=!0)};e.videoTexture.image.addEventListener("timeupdate",w),e.videoTexture&&e.videoMeshes.length&&(e.videoTexture.image.play(),e.videoTexture.image.onplay=()=>{o.hide()},e.videoTexture.image.onpause=()=>{o.show()},e.videoTexture.image.onclick=()=>{e.videoTexture.image.muted=!1,e.videoTexture.image.play()})};if(i.model.loaded)v();else return i.once("modelLoaded",()=>v())},c=()=>{!e.enabled||(e.enabled=!1,e.videoMeshes.forEach(v=>{v.geometry.dispose(),v.material.dispose(),i.scene.remove(v),e.videoTexture&&e.videoTexture.image.pause()}),e.videoMeshes=[],i.needsRender=!0)},d=()=>e.rectPoints.map((v,w)=>{const y=new I.BufferGeometry,E=128,k=[];k.push(...v[0].toArray());for(let P=1;P<E;P++)k.push(v[0].x+(v[1].x-v[0].x)*P/E,v[0].y+(v[1].y-v[0].y)*P/E,v[0].z+(v[1].z-v[0].z)*P/E);k.push(...v[1].toArray()),k.push(...v[2].toArray());for(let P=1;P<E;P++)k.push(v[2].x+(v[3].x-v[2].x)*P/E,v[2].y+(v[3].y-v[2].y)*P/E,v[2].z+(v[3].z-v[2].z)*P/E);k.push(...v[3].toArray());const C=[];C.push(0,1);for(let P=1;P<E;P++)C.push(0,1-P/E);C.push(0,0),C.push(1,0);for(let P=1;P<E;P++)C.push(1,P/E);C.push(1,1);const D=[];for(let P=0;P<E;P++)D.push(P,P+1,E*2-P,P,E*2-P,E*2+1-P);y.setAttribute("position",new I.BufferAttribute(new Float32Array(k),3)),y.setAttribute("uv",new I.BufferAttribute(new Float32Array(C),2)),y.setIndex(new I.BufferAttribute(new Uint32Array(D),1));const x=new I.AxesHelper(10);i.scene.add(x);const z=new I.MeshBasicMaterial({map:e.videoTextureEnabled?e.videoTexture:e.imageTexture,side:I.DoubleSide}),L=new I.Mesh(y,z);L.renderOrder=1,L.name=`ModelTVVideoPlugin-${w}-${performance.now()}`;const j=[v[1],v[2],v[3],v[0]],O=o.create3DDomContainer(j);if(O!=null&&O.container){const P=document.createElement("div");P.classList.add("play-icon"),P.style.width="100%",P.style.height="100%",P.style.display="flex",P.style.justifyContent="center",P.style.alignItems="center",P.style.pointerEvents="none",O.container.appendChild(P);const S=document.createElement("img");S.src="//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png",S.style.width="200px",S.style.pointerEvents="auto",S.onclick=()=>{e.videoTexture.image.muted=!1,e.videoTexture.image.play()},P.appendChild(S),n.set(L,O)}return L}),u=v=>{const w=new I.TextureLoader().load(v);return w.minFilter=I.LinearFilter,w.magFilter=I.LinearFilter,w.format=I.RGBFormat,w},f=(v,w)=>new Promise((y,E)=>{const k=new XMLHttpRequest;k.onreadystatechange=()=>{if(k.readyState==4)if(k.status==200){const C=window.URL||window.webkitURL;w=w||document.createElement("video"),w.crossOrigin="anonymous",w.muted=!0,w.loop=!0,w.playsInline=!0,w.src=C.createObjectURL(k.response);const D=new I.VideoTexture(w);D.minFilter=I.LinearFilter,D.magFilter=I.LinearFilter,D.format=I.RGBFormat,y(Object.assign(D,{videoSource:v}))}else E(new Error("Video download Error: "+k.status))},k.onerror=C=>E(C),k.open("GET",v),k.responseType="blob",k.send()}),h=(v,w)=>G(this,null,function*(){const{video_src:y,video_poster_src:E,points:k}=v;e.videoSource=y,e.rectPoints=ru(k).map(C=>C.map(({x:D,y:x,z})=>new I.Vector3(D,x,z))),e.imageTexture=u(E),w&&(e.videoElement=w),e.videoTexture=yield f(e.videoSource,e.videoElement),e.enabled=!!v.enable,e.enabled&&l()}),p=v=>{if(!e.enabled)return;const w=e.videoMeshes;if(!(!w||v.intersectObjects(w).length===0))return e.videoTexture&&(e.videoTexture.image.paused||e.videoTexture.image.pause()),!1},g=v=>{v==="Floorplan"?o.hide():o.show()},A=()=>{if(!e.enabled)return;const v=i.camera.position;if(n.forEach((w,y)=>{const E=w.css3DObject.position.clone(),k=E.clone().sub(v).normalize(),C=new I.Raycaster(v,k),D=i.model.intersectRaycaster(C)[0],x=E.distanceTo(v),z=.01;D&&D.distance+z<x?w.hide():w.show()}),!a()){const w=e.rectPoints.find(y=>{const E=y[0].clone().add(y[1]).add(y[2]).add(y[3]).divideScalar(4);return y.map(k=>k.clone().add(E).divideScalar(2)).filter(k=>{const C=k.distanceTo(v),D=new I.Raycaster(v,k.clone().sub(v).normalize()),x=i.model.intersectRaycaster(D)[0],z=.01;return!(x&&x.distance+z<C)}).length>=2});(!w||w.length===0)&&r(!0)}},b=()=>{c(),e.videoTexture=void 0,i.off("modeChange",g),i.off("wantsTapGesture",p),i.off("panoArrived",A),i.off("renderFrame",()=>{e.videoMeshes.forEach(v=>{v&&(v.needsRender=!0)})})};return i.on("modeChange",g),i.on("wantsTapGesture",p),i.on("panoArrived",A),i.on("renderFrame",()=>{e.videoMeshes.forEach(v=>{v&&(v.needsRender=!0)})}),{enable:l,disable:c,load:h,dispose:b,state:e,css3DRenderPlugin:o}};function lu(i){s.append_styles(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
516
+ `,e.container.style.pointerEvents="none";const o=g=>(e.wrapper=g,g.appendChild(e.container),c(),!0),n=g=>{e.itemLabels=su(g),c()},r=()=>(e.enabled||(e.enabled=!0,c()),!0),a=()=>(e.enabled&&(e.enabled=!1,c()),!0),l=()=>{u(),e.container.remove()},c=()=>{var g;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(g=e.app)==null||g.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:i,itemLabels:e.itemLabels}):e.app=new ou({target:e.container,props:{five:i,modelOcclusionEnable:e.modelOcclusionEnable,itemLabels:e.itemLabels,wrapper:e.wrapper,hooks:e.hooks,displayStrategyType:e.displayStrategyType}})}},d=()=>{i.on("modeChange",f),i.once("dispose",l)},u=()=>{i.off("modeChange",f)},f=g=>{if(!!e.enabled){if(g!==J.Five.Mode.Floorplan){e.fiveModeEnabled=!1,c();return}i.once("initAnimationEnded",()=>{e.fiveModeEnabled=i.currentMode===J.Five.Mode.Floorplan,c()})}};return d(),{appendTo:o,load:n,enable:r,disable:a,dispose:l,hooks:e.hooks}},nu={name:"ModelItemLabelPlugin",version:0};var nt=(i=>(i.TOP_LEFT="topLeft",i.TOP_RIGHT="topRight",i.BOTTOM_LEFT="bottomLeft",i.BOTTOM_RIGHT="bottomRight",i))(nt||{});function ru(i){if(i.length===0)return[];if(Array.isArray(i[0]))return i;let t=[];return i.forEach(e=>{const o=[e[nt.TOP_LEFT],e[nt.BOTTOM_LEFT],e[nt.BOTTOM_RIGHT],e[nt.TOP_RIGHT]];t.push(o)}),t}const au=(i,{videoElement:t})=>{const e={videoMeshes:[],videoTextureEnabled:!1,videoSource:"",rectPoints:[],enabled:!1,videoElement:t},o=et(i),n=new Map,r=v=>{e.videoTexture&&(e.videoTexture.image.muted=v)},a=()=>e.videoTexture?e.videoTexture.image.muted:!0,l=()=>{if(e.enabled||!e.videoTexture)return;e.enabled=!0,e.videoMeshes=d(),e.videoMeshes.forEach(C=>i.scene.add(C));const v=()=>{if(!e.videoTexture)return;const C=()=>{var y;!e.videoTexture||((y=e.videoTexture)==null||y.image.removeEventListener("timeupdate",C),e.videoTextureEnabled=!0,e.videoMeshes.forEach(E=>{E.material.map!==e.videoTexture&&(E.material.map=e.videoTexture)}),i.needsRender=!0)};e.videoTexture.image.addEventListener("timeupdate",C),e.videoTexture&&e.videoMeshes.length&&(e.videoTexture.image.play(),e.videoTexture.image.onplay=()=>{o.hide()},e.videoTexture.image.onpause=()=>{o.show()},e.videoTexture.image.onclick=()=>{e.videoTexture.image.muted=!1,e.videoTexture.image.play()})};if(i.model.loaded)v();else return i.once("modelLoaded",()=>v())},c=()=>{!e.enabled||(e.enabled=!1,e.videoMeshes.forEach(v=>{v.geometry.dispose(),v.material.dispose(),i.scene.remove(v),e.videoTexture&&e.videoTexture.image.pause()}),e.videoMeshes=[],i.needsRender=!0)},d=()=>e.rectPoints.map((v,C)=>{const y=new I.BufferGeometry,E=128,k=[];k.push(...v[0].toArray());for(let P=1;P<E;P++)k.push(v[0].x+(v[1].x-v[0].x)*P/E,v[0].y+(v[1].y-v[0].y)*P/E,v[0].z+(v[1].z-v[0].z)*P/E);k.push(...v[1].toArray()),k.push(...v[2].toArray());for(let P=1;P<E;P++)k.push(v[2].x+(v[3].x-v[2].x)*P/E,v[2].y+(v[3].y-v[2].y)*P/E,v[2].z+(v[3].z-v[2].z)*P/E);k.push(...v[3].toArray());const w=[];w.push(0,1);for(let P=1;P<E;P++)w.push(0,1-P/E);w.push(0,0),w.push(1,0);for(let P=1;P<E;P++)w.push(1,P/E);w.push(1,1);const D=[];for(let P=0;P<E;P++)D.push(P,P+1,E*2-P,P,E*2-P,E*2+1-P);y.setAttribute("position",new I.BufferAttribute(new Float32Array(k),3)),y.setAttribute("uv",new I.BufferAttribute(new Float32Array(w),2)),y.setIndex(new I.BufferAttribute(new Uint32Array(D),1));const x=new I.AxesHelper(10);i.scene.add(x);const z=new I.MeshBasicMaterial({map:e.videoTextureEnabled?e.videoTexture:e.imageTexture,side:I.DoubleSide}),_=new I.Mesh(y,z);_.renderOrder=1,_.name=`ModelTVVideoPlugin-${C}-${performance.now()}`;const j=[v[1],v[2],v[3],v[0]],R=o.create3DDomContainer(j);if(R!=null&&R.container){const P=document.createElement("div");P.classList.add("play-icon"),P.style.width="100%",P.style.height="100%",P.style.display="flex",P.style.justifyContent="center",P.style.alignItems="center",P.style.pointerEvents="none",R.container.appendChild(P);const S=document.createElement("img");S.src="//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png",S.style.width="200px",S.style.pointerEvents="auto",S.onclick=()=>{e.videoTexture.image.muted=!1,e.videoTexture.image.play()},P.appendChild(S),n.set(_,R)}return _}),u=v=>{const C=new I.TextureLoader().load(v);return C.minFilter=I.LinearFilter,C.magFilter=I.LinearFilter,C.format=I.RGBFormat,C},f=(v,C)=>new Promise((y,E)=>{const k=new XMLHttpRequest;k.onreadystatechange=()=>{if(k.readyState==4)if(k.status==200){const w=window.URL||window.webkitURL;C=C||document.createElement("video"),C.crossOrigin="anonymous",C.muted=!0,C.loop=!0,C.playsInline=!0,C.src=w.createObjectURL(k.response);const D=new I.VideoTexture(C);D.minFilter=I.LinearFilter,D.magFilter=I.LinearFilter,D.format=I.RGBFormat,y(Object.assign(D,{videoSource:v}))}else E(new Error("Video download Error: "+k.status))},k.onerror=w=>E(w),k.open("GET",v),k.responseType="blob",k.send()}),h=(v,C)=>G(this,null,function*(){const{video_src:y,video_poster_src:E,points:k}=v;e.videoSource=y,e.rectPoints=ru(k).map(w=>w.map(({x:D,y:x,z})=>new I.Vector3(D,x,z))),e.imageTexture=u(E),C&&(e.videoElement=C),e.videoTexture=yield f(e.videoSource,e.videoElement),e.enabled=!!v.enable,e.enabled&&l()}),p=v=>{if(!e.enabled)return;const C=e.videoMeshes;if(!(!C||v.intersectObjects(C).length===0))return e.videoTexture&&(e.videoTexture.image.paused||e.videoTexture.image.pause()),!1},g=v=>{v==="Floorplan"?o.hide():o.show()},A=()=>{if(!e.enabled)return;const v=i.camera.position;if(n.forEach((C,y)=>{const E=C.css3DObject.position.clone(),k=E.clone().sub(v).normalize(),w=new I.Raycaster(v,k),D=i.model.intersectRaycaster(w)[0],x=E.distanceTo(v),z=.01;D&&D.distance+z<x?C.hide():C.show()}),!a()){const C=e.rectPoints.find(y=>{const E=y[0].clone().add(y[1]).add(y[2]).add(y[3]).divideScalar(4);return y.map(k=>k.clone().add(E).divideScalar(2)).filter(k=>{const w=k.distanceTo(v),D=new I.Raycaster(v,k.clone().sub(v).normalize()),x=i.model.intersectRaycaster(D)[0],z=.01;return!(x&&x.distance+z<w)}).length>=2});(!C||C.length===0)&&r(!0)}},b=()=>{c(),e.videoTexture=void 0,i.off("modeChange",g),i.off("wantsTapGesture",p),i.off("panoArrived",A),i.off("renderFrame",()=>{e.videoMeshes.forEach(v=>{v&&(v.needsRender=!0)})})};return i.on("modeChange",g),i.on("wantsTapGesture",p),i.on("panoArrived",A),i.on("renderFrame",()=>{e.videoMeshes.forEach(v=>{v&&(v.needsRender=!0)})}),{enable:l,disable:c,load:h,dispose:b,state:e,css3DRenderPlugin:o}};function lu(i){s.append_styles(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
517
517
  }to{opacity:1
518
- }}`)}function cu(i){let t,e,o,n=(i[0].code||i[0].id)+"",r,a,l,c=i[0].name+"",d,u=i[0].icon&&Di(i);return{c(){u&&u.c(),t=s.space(),e=s.element("div"),o=s.element("span"),r=s.text(n),a=s.space(),l=s.element("span"),d=s.text(c),s.attr(o,"class","item-model svelte-gduhqw"),s.attr(l,"class","item-name svelte-gduhqw"),s.attr(e,"class","item-label-text svelte-gduhqw")},m(f,h){u&&u.m(f,h),s.insert(f,t,h),s.insert(f,e,h),s.append(e,o),s.append(o,r),s.append(e,a),s.append(e,l),s.append(l,d)},p(f,h){f[0].icon?u?u.p(f,h):(u=Di(f),u.c(),u.m(t.parentNode,t)):u&&(u.d(1),u=null),h&1&&n!==(n=(f[0].code||f[0].id)+"")&&s.set_data(r,n),h&1&&c!==(c=f[0].name+"")&&s.set_data(d,c)},d(f){u&&u.d(f),f&&s.detach(t),f&&s.detach(e)}}}function du(i){let t;return{c(){t=s.element("div")},m(e,o){s.insert(e,t,o),i[6](t)},p:s.noop,d(e){e&&s.detach(t),i[6](null)}}}function Di(i){let t,e,o,n,r;return{c(){t=s.element("div"),e=s.element("div"),s.attr(e,"class","icon svelte-gduhqw"),s.attr(e,"style",o=`background-image: url(${i[0].icon})`),s.attr(t,"class","icon-wrap svelte-gduhqw")},m(a,l){s.insert(a,t,l),s.append(t,e),n||(r=s.listen(t,"click",i[7]),n=!0)},p(a,l){l&1&&o!==(o=`background-image: url(${a[0].icon})`)&&s.attr(e,"style",o)},d(a){a&&s.detach(t),n=!1,r()}}}function uu(i){let t,e,o,n,r,a,l,c,d,u;function f(g,A){return A&1&&(o=null),o==null&&(o=!!Boolean(typeof g[0].render=="function")),o?du:cu}let h=f(i,-1),p=h(i);return{c(){t=s.element("div"),e=s.element("div"),p.c(),r=s.space(),a=s.element("div"),s.attr(e,"class",n=s.null_to_empty(Ce.default("item-label-item__text-wrap",{"item-label-item__custom":Boolean(typeof i[0].render=="function")}))+" svelte-gduhqw"),s.set_style(e,"bottom",`${i[0].strokeLength}px`),s.attr(a,"class",l=s.null_to_empty(Ce.default("item-label-item__bar",{anchor:i[1]}))+" svelte-gduhqw"),s.set_style(a,"height",`${i[0].strokeLength}px`),s.attr(t,"class",c=s.null_to_empty(Ce.default("item-label-item",{fold:i[0].isFold}))+" svelte-gduhqw"),s.set_style(t,"z-index",i[0].zIndex,!1),s.set_style(t,"transform",i[0].transform,!1)},m(g,A){s.insert(g,t,A),s.append(t,e),p.m(e,null),s.append(t,r),s.append(t,a),d||(u=s.listen(e,"click",i[4]),d=!0)},p(g,[A]){h===(h=f(g,A))&&p?p.p(g,A):(p.d(1),p=h(g),p&&(p.c(),p.m(e,null))),A&1&&n!==(n=s.null_to_empty(Ce.default("item-label-item__text-wrap",{"item-label-item__custom":Boolean(typeof g[0].render=="function")}))+" svelte-gduhqw")&&s.attr(e,"class",n),A&1&&s.set_style(e,"bottom",`${g[0].strokeLength}px`),A&2&&l!==(l=s.null_to_empty(Ce.default("item-label-item__bar",{anchor:g[1]}))+" svelte-gduhqw")&&s.attr(a,"class",l),A&1&&s.set_style(a,"height",`${g[0].strokeLength}px`),A&1&&c!==(c=s.null_to_empty(Ce.default("item-label-item",{fold:g[0].isFold}))+" svelte-gduhqw")&&s.attr(t,"class",c),A&1&&s.set_style(t,"z-index",g[0].zIndex,!1),A&1&&s.set_style(t,"transform",g[0].transform,!1)},i:s.noop,o:s.noop,d(g){g&&s.detach(t),p.d(),d=!1,u()}}}function hu(i,t,e){let{itemLabel:o}=t,{hooks:n}=t,{anchorEnabled:r}=t,{onIconClick:a}=t;function l(){n.emit("onLabelClick",o)}let c;function d(f){s.binding_callbacks[f?"unshift":"push"](()=>{c=f,e(3,c)})}const u=f=>a(o);return i.$$set=f=>{"itemLabel"in f&&e(0,o=f.itemLabel),"hooks"in f&&e(5,n=f.hooks),"anchorEnabled"in f&&e(1,r=f.anchorEnabled),"onIconClick"in f&&e(2,a=f.onIconClick)},i.$$.update=()=>{if(i.$$.dirty&9&&typeof o.render=="function"&&c&&c.children.length===0){const f=o.render(o);f&&c.appendChild(f)}},[o,r,a,c,l,n,d,u]}class fu extends s.SvelteComponent{constructor(t){super(),s.init(this,t,hu,uu,s.safe_not_equal,{itemLabel:0,hooks:5,anchorEnabled:1,onIconClick:2},lu)}}const{Raycaster:mu,Vector3:Ip}=I,Si=(i,t,e,o)=>{const n=t.clone().sub(e).normalize(),r=new mu;r.set(e,n);const[a]=i.model.intersectRaycaster(r);return a&&a.distance+.01<o};var Ye=(i=>(i.SMALL="small",i.MIDLLE="middle",i.LARGE="large",i.EXTRA_LARGE="x-large",i))(Ye||{});const pu=(i,t)=>{switch(t){case Ye.SMALL:return Math.ceil(-27.78*i+85);case Ye.MIDLLE:return Math.ceil(-38.9*i+130);case Ye.LARGE:return Math.ceil(-44.44*i+140);case Ye.EXTRA_LARGE:return Math.ceil(-92.59*i+300)}},gu=i=>`translate(${i[0]}px, ${i[1]}px)`;function Li(i){return i.map(t=>B({observerIndex:void 0,visible:!1,isFold:!1},t))}function Au(i){s.append_styles(i,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function _i(i,t,e){const o=i.slice();return o[30]=t[e],o}function zi(i){let t,e;return t=new fu({props:{itemLabel:i[30],hooks:i[0],anchorEnabled:i[2],onIconClick:i[6]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n[0]&2&&(r.itemLabel=o[30]),n[0]&1&&(r.hooks=o[0]),n[0]&4&&(r.anchorEnabled=o[2]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Mi(i,t){let e,o,n,r=t[30].visible&&zi(t);return{key:i,first:null,c(){e=s.empty(),r&&r.c(),o=s.empty(),this.first=e},m(a,l){s.insert(a,e,l),r&&r.m(a,l),s.insert(a,o,l),n=!0},p(a,l){t=a,t[30].visible?r?(r.p(t,l),l[0]&2&&s.transition_in(r,1)):(r=zi(t),r.c(),s.transition_in(r,1),r.m(o.parentNode,o)):r&&(s.group_outros(),s.transition_out(r,1,1,()=>{r=null}),s.check_outros())},i(a){n||(s.transition_in(r),n=!0)},o(a){s.transition_out(r),n=!1},d(a){a&&s.detach(e),r&&r.d(a),a&&s.detach(o)}}}function vu(i){let t,e=[],o=new Map,n,r,a=i[1];const l=c=>c[30].id;for(let c=0;c<a.length;c+=1){let d=_i(i,a,c),u=l(d);o.set(u,e[c]=Mi(u,d))}return{c(){t=s.element("div");for(let c=0;c<e.length;c+=1)e[c].c();s.attr(t,"class","item-labels-container svelte-gk8s47"),s.add_render_callback(()=>i[12].call(t)),s.set_style(t,"opacity",i[5]?1:0,!1)},m(c,d){s.insert(c,t,d);for(let u=0;u<e.length;u+=1)e[u].m(t,null);n=s.add_resize_listener(t,i[12].bind(t)),r=!0},p(c,d){d[0]&71&&(a=c[1],s.group_outros(),e=s.update_keyed_each(e,d,l,1,c,a,o,t,s.outro_and_destroy_block,Mi,null,_i),s.check_outros()),d[0]&32&&s.set_style(t,"opacity",c[5]?1:0,!1)},i(c){if(!r){for(let d=0;d<a.length;d+=1)s.transition_in(e[d]);r=!0}},o(c){for(let d=0;d<e.length;d+=1)s.transition_out(e[d]);r=!1},d(c){c&&s.detach(t);for(let d=0;d<e.length;d+=1)e[d].d();n()}}}let bu=11;function yu(i,t,e){const{Raycaster:o,Vector3:n}=I;let{five:r}=t,{modelOcclusionEnable:a}=t,{itemLabels:l}=t,{hooks:c}=t,{displayStrategyType:d}=t,{maxVisibleDistance:u}=t,f=null,h=null,p=(r==null?void 0:r.currentMode)===J.Five.Mode.Panorama,g,A,b=[],v=!0;const w=(_,T)=>{const R=_.camera.position.clone(),N=new n(T.modelPosition[0],T.modelPosition[1],T.modelPosition[2]),Q=N.distanceTo(R);return u!==void 0&&_.state.mode===J.Five.Mode.Panorama&&Q>u?!1:Si(_,N.clone().sub(R).normalize(),R,Q)},y=_=>{const{camera:T,model:R}=r,{x:N,y:Q,z:H}=_.clone().project(T),Y=(N+1)/2,U=(2-(Q+1))/2,ae=Math.abs(H)<1&&[Y,U].every(me=>me<1&&me>=0);return Boolean(ae)},E=(_,T)=>{const R=new n(T.modelPosition[0],T.modelPosition[1],T.modelPosition[2]),N=_.project2d(R),Q=N==null?void 0:N.x,H=N==null?void 0:N.y;return[Q,H]},k=(_,T)=>{const R=T.map(Q=>{if(_.state.panoIndex!==Q.panoIndex)return q(B({},Q),{visible:!1});const H=E(_,Q);Q.name.length*bu;const Y=pu(Q.modelPosition[1],d),U=_.currentMode===J.Five.Mode.Panorama?y(new n(Q.position[0],Q.position[1],Q.position[2])):!0,K=a?w(_,Q):!1,se=U&&!K;if(!se)return q(B({},Q),{visible:se});b.push(H);const ae=gu(H);return q(B({},Q),{visible:se,transform:ae,strokeLength:Y})}),N=R.filter(({visible:Q})=>Q).map(Q=>({itemLabelItem:Q,distance:new n(Q.modelPosition[0],Q.modelPosition[1],Q.modelPosition[2]).clone().distanceTo(_.camera.position)})).sort((Q,H)=>Q.distance-H.distance);return R.map(Q=>{const H=N.findIndex(Y=>Y.itemLabelItem.id===Q.id);return H!==void 0?q(B({},Q),{zIndex:H*10}):Q})},C=()=>{b=[],e(1,h=k(r,h))},D=()=>{e(5,v=!1),x()},x=Ii(()=>{e(5,v=!0),C()},300),z=()=>{r.once("renderFrame",C)},L=()=>{window.addEventListener("resize",z,!1)},j=()=>{f!==l&&(e(1,h=Li(l)),f=l,C())},O=(_,T)=>{let R=[];for(let Q=0;Q<T.length;Q++){const{position:H,panoIndex:Y}=T[Q],U=_.distanceTo(H);(u===void 0||U<=u||r.state.mode!==J.Five.Mode.Panorama)&&R.push({panoIndex:Y,obVector:H,distance:U})}R=R.sort((Q,H)=>Q.distance-H.distance);let N;for(let Q=0;Q<R.length;Q++){const{obVector:H,distance:Y,panoIndex:U}=R[Q];if(!Si(r,_,H,Y)){N=U;break}}return typeof N=="number"?T[N]:void 0},P=_=>{if(r.state.mode===J.Five.Mode.Panorama)return;const T=r.work.observers,R=new n().fromArray(_.position),N=O(R,T);if(N&&(_.observerIndex=N.panoIndex),typeof _.observerIndex=="number"){const Q=T[_.observerIndex],H=R.clone().sub(Q.position).normalize(),Y={longitude:Math.PI+Math.atan2(H.x,H.z),latitude:Math.acos(H.y/H.length())-Math.PI/2};r.setState(q(B({},Y),{mode:J.Five.Mode.Panorama,panoIndex:_.observerIndex})),r.once("initAnimationEnded",()=>{e(1,h=h.map(U=>q(B({},U),{isFold:U.id!==_.id}))),r.once("cameraUpdate",()=>{e(1,h=h.map(U=>q(B({},U),{isFold:!1})))})})}};Z.beforeUpdate(()=>{j()}),Z.onMount(()=>{e(1,h=Li(l)),f=l,C(),L(),r.on("cameraUpdate",D)}),Z.onDestroy(()=>{r.off("cameraUpdate",D),window.removeEventListener("resize",z,!1)});function S(){g=this.clientWidth,A=this.clientHeight,e(3,g),e(4,A)}return i.$$set=_=>{"five"in _&&e(7,r=_.five),"modelOcclusionEnable"in _&&e(8,a=_.modelOcclusionEnable),"itemLabels"in _&&e(9,l=_.itemLabels),"hooks"in _&&e(0,c=_.hooks),"displayStrategyType"in _&&e(10,d=_.displayStrategyType),"maxVisibleDistance"in _&&e(11,u=_.maxVisibleDistance)},[c,h,p,g,A,v,P,r,a,l,d,u,S]}class wu extends s.SvelteComponent{constructor(t){super(),s.init(this,t,yu,vu,s.safe_not_equal,{five:7,modelOcclusionEnable:8,itemLabels:9,hooks:0,displayStrategyType:10,maxVisibleDistance:11},Au,[-1,-1])}}function Cu(i){return i.item_labels.map(t=>q(B({},t),{modelPosition:[t.position[0],t.position[1],t.position[2]],observerIndex:void 0}))}const Pu=void 0,Iu=(i,t)=>{var h,p,g,A;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:!0,itemLabels:[],wrapper:null,app:void 0,hooks:new J.Subscribe,modelOcclusionEnable:(h=t==null?void 0:t.modelOcclusionEnable)!=null?h:!0,onlyVisibleInPanorama:(p=t==null?void 0:t.onlyVisibleInPanorama)!=null?p:!0,displayStrategyType:(g=t==null?void 0:t.displayStrategyType)!=null?g:Ye.SMALL,maxVisibleDistance:(A=t==null?void 0:t.maxVisibleDistance)!=null?A:Pu};e.container.setAttribute("class","item-label-plugin-container"),e.container.style.cssText=`
518
+ }}`)}function cu(i){let t,e,o,n=(i[0].code||i[0].id)+"",r,a,l,c=i[0].name+"",d,u=i[0].icon&&Di(i);return{c(){u&&u.c(),t=s.space(),e=s.element("div"),o=s.element("span"),r=s.text(n),a=s.space(),l=s.element("span"),d=s.text(c),s.attr(o,"class","item-model svelte-gduhqw"),s.attr(l,"class","item-name svelte-gduhqw"),s.attr(e,"class","item-label-text svelte-gduhqw")},m(f,h){u&&u.m(f,h),s.insert(f,t,h),s.insert(f,e,h),s.append(e,o),s.append(o,r),s.append(e,a),s.append(e,l),s.append(l,d)},p(f,h){f[0].icon?u?u.p(f,h):(u=Di(f),u.c(),u.m(t.parentNode,t)):u&&(u.d(1),u=null),h&1&&n!==(n=(f[0].code||f[0].id)+"")&&s.set_data(r,n),h&1&&c!==(c=f[0].name+"")&&s.set_data(d,c)},d(f){u&&u.d(f),f&&s.detach(t),f&&s.detach(e)}}}function du(i){let t;return{c(){t=s.element("div")},m(e,o){s.insert(e,t,o),i[6](t)},p:s.noop,d(e){e&&s.detach(t),i[6](null)}}}function Di(i){let t,e,o,n,r;return{c(){t=s.element("div"),e=s.element("div"),s.attr(e,"class","icon svelte-gduhqw"),s.attr(e,"style",o=`background-image: url(${i[0].icon})`),s.attr(t,"class","icon-wrap svelte-gduhqw")},m(a,l){s.insert(a,t,l),s.append(t,e),n||(r=s.listen(t,"click",i[7]),n=!0)},p(a,l){l&1&&o!==(o=`background-image: url(${a[0].icon})`)&&s.attr(e,"style",o)},d(a){a&&s.detach(t),n=!1,r()}}}function uu(i){let t,e,o,n,r,a,l,c,d,u;function f(g,A){return A&1&&(o=null),o==null&&(o=!!Boolean(typeof g[0].render=="function")),o?du:cu}let h=f(i,-1),p=h(i);return{c(){t=s.element("div"),e=s.element("div"),p.c(),r=s.space(),a=s.element("div"),s.attr(e,"class",n=s.null_to_empty(Ce.default("item-label-item__text-wrap",{"item-label-item__custom":Boolean(typeof i[0].render=="function")}))+" svelte-gduhqw"),s.set_style(e,"bottom",`${i[0].strokeLength}px`),s.attr(a,"class",l=s.null_to_empty(Ce.default("item-label-item__bar",{anchor:i[1]}))+" svelte-gduhqw"),s.set_style(a,"height",`${i[0].strokeLength}px`),s.attr(t,"class",c=s.null_to_empty(Ce.default("item-label-item",{fold:i[0].isFold}))+" svelte-gduhqw"),s.set_style(t,"z-index",i[0].zIndex,!1),s.set_style(t,"transform",i[0].transform,!1)},m(g,A){s.insert(g,t,A),s.append(t,e),p.m(e,null),s.append(t,r),s.append(t,a),d||(u=s.listen(e,"click",i[4]),d=!0)},p(g,[A]){h===(h=f(g,A))&&p?p.p(g,A):(p.d(1),p=h(g),p&&(p.c(),p.m(e,null))),A&1&&n!==(n=s.null_to_empty(Ce.default("item-label-item__text-wrap",{"item-label-item__custom":Boolean(typeof g[0].render=="function")}))+" svelte-gduhqw")&&s.attr(e,"class",n),A&1&&s.set_style(e,"bottom",`${g[0].strokeLength}px`),A&2&&l!==(l=s.null_to_empty(Ce.default("item-label-item__bar",{anchor:g[1]}))+" svelte-gduhqw")&&s.attr(a,"class",l),A&1&&s.set_style(a,"height",`${g[0].strokeLength}px`),A&1&&c!==(c=s.null_to_empty(Ce.default("item-label-item",{fold:g[0].isFold}))+" svelte-gduhqw")&&s.attr(t,"class",c),A&1&&s.set_style(t,"z-index",g[0].zIndex,!1),A&1&&s.set_style(t,"transform",g[0].transform,!1)},i:s.noop,o:s.noop,d(g){g&&s.detach(t),p.d(),d=!1,u()}}}function hu(i,t,e){let{itemLabel:o}=t,{hooks:n}=t,{anchorEnabled:r}=t,{onIconClick:a}=t;function l(){n.emit("onLabelClick",o)}let c;function d(f){s.binding_callbacks[f?"unshift":"push"](()=>{c=f,e(3,c)})}const u=f=>a(o);return i.$$set=f=>{"itemLabel"in f&&e(0,o=f.itemLabel),"hooks"in f&&e(5,n=f.hooks),"anchorEnabled"in f&&e(1,r=f.anchorEnabled),"onIconClick"in f&&e(2,a=f.onIconClick)},i.$$.update=()=>{if(i.$$.dirty&9&&typeof o.render=="function"&&c&&c.children.length===0){const f=o.render(o);f&&c.appendChild(f)}},[o,r,a,c,l,n,d,u]}class fu extends s.SvelteComponent{constructor(t){super(),s.init(this,t,hu,uu,s.safe_not_equal,{itemLabel:0,hooks:5,anchorEnabled:1,onIconClick:2},lu)}}const{Raycaster:mu,Vector3:Ip}=I,Si=(i,t,e,o)=>{const n=t.clone().sub(e).normalize(),r=new mu;r.set(e,n);const[a]=i.model.intersectRaycaster(r);return a&&a.distance+.01<o};var Ye=(i=>(i.SMALL="small",i.MIDLLE="middle",i.LARGE="large",i.EXTRA_LARGE="x-large",i))(Ye||{});const pu=(i,t)=>{switch(t){case Ye.SMALL:return Math.ceil(-27.78*i+85);case Ye.MIDLLE:return Math.ceil(-38.9*i+130);case Ye.LARGE:return Math.ceil(-44.44*i+140);case Ye.EXTRA_LARGE:return Math.ceil(-92.59*i+300)}},gu=i=>`translate(${i[0]}px, ${i[1]}px)`;function Li(i){return i.map(t=>B({observerIndex:void 0,visible:!1,isFold:!1},t))}function Au(i){s.append_styles(i,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function _i(i,t,e){const o=i.slice();return o[30]=t[e],o}function zi(i){let t,e;return t=new fu({props:{itemLabel:i[30],hooks:i[0],anchorEnabled:i[2],onIconClick:i[6]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n[0]&2&&(r.itemLabel=o[30]),n[0]&1&&(r.hooks=o[0]),n[0]&4&&(r.anchorEnabled=o[2]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Mi(i,t){let e,o,n,r=t[30].visible&&zi(t);return{key:i,first:null,c(){e=s.empty(),r&&r.c(),o=s.empty(),this.first=e},m(a,l){s.insert(a,e,l),r&&r.m(a,l),s.insert(a,o,l),n=!0},p(a,l){t=a,t[30].visible?r?(r.p(t,l),l[0]&2&&s.transition_in(r,1)):(r=zi(t),r.c(),s.transition_in(r,1),r.m(o.parentNode,o)):r&&(s.group_outros(),s.transition_out(r,1,1,()=>{r=null}),s.check_outros())},i(a){n||(s.transition_in(r),n=!0)},o(a){s.transition_out(r),n=!1},d(a){a&&s.detach(e),r&&r.d(a),a&&s.detach(o)}}}function vu(i){let t,e=[],o=new Map,n,r,a=i[1];const l=c=>c[30].id;for(let c=0;c<a.length;c+=1){let d=_i(i,a,c),u=l(d);o.set(u,e[c]=Mi(u,d))}return{c(){t=s.element("div");for(let c=0;c<e.length;c+=1)e[c].c();s.attr(t,"class","item-labels-container svelte-gk8s47"),s.add_render_callback(()=>i[12].call(t)),s.set_style(t,"opacity",i[5]?1:0,!1)},m(c,d){s.insert(c,t,d);for(let u=0;u<e.length;u+=1)e[u].m(t,null);n=s.add_resize_listener(t,i[12].bind(t)),r=!0},p(c,d){d[0]&71&&(a=c[1],s.group_outros(),e=s.update_keyed_each(e,d,l,1,c,a,o,t,s.outro_and_destroy_block,Mi,null,_i),s.check_outros()),d[0]&32&&s.set_style(t,"opacity",c[5]?1:0,!1)},i(c){if(!r){for(let d=0;d<a.length;d+=1)s.transition_in(e[d]);r=!0}},o(c){for(let d=0;d<e.length;d+=1)s.transition_out(e[d]);r=!1},d(c){c&&s.detach(t);for(let d=0;d<e.length;d+=1)e[d].d();n()}}}let bu=11;function yu(i,t,e){const{Raycaster:o,Vector3:n}=I;let{five:r}=t,{modelOcclusionEnable:a}=t,{itemLabels:l}=t,{hooks:c}=t,{displayStrategyType:d}=t,{maxVisibleDistance:u}=t,f=null,h=null,p=(r==null?void 0:r.currentMode)===J.Five.Mode.Panorama,g,A,b=[],v=!0;const C=(L,T)=>{const O=L.camera.position.clone(),N=new n(T.modelPosition[0],T.modelPosition[1],T.modelPosition[2]),Q=N.distanceTo(O);return u!==void 0&&L.state.mode===J.Five.Mode.Panorama&&Q>u?!1:Si(L,N.clone().sub(O).normalize(),O,Q)},y=L=>{const{camera:T,model:O}=r,{x:N,y:Q,z:H}=L.clone().project(T),Y=(N+1)/2,U=(2-(Q+1))/2,ae=Math.abs(H)<1&&[Y,U].every(me=>me<1&&me>=0);return Boolean(ae)},E=(L,T)=>{const O=new n(T.modelPosition[0],T.modelPosition[1],T.modelPosition[2]),N=L.project2d(O),Q=N==null?void 0:N.x,H=N==null?void 0:N.y;return[Q,H]},k=(L,T)=>{const O=T.map(Q=>{if(L.state.panoIndex!==Q.panoIndex)return q(B({},Q),{visible:!1});const H=E(L,Q);Q.name.length*bu;const Y=pu(Q.modelPosition[1],d),U=L.currentMode===J.Five.Mode.Panorama?y(new n(Q.position[0],Q.position[1],Q.position[2])):!0,K=a?C(L,Q):!1,se=U&&!K;if(!se)return q(B({},Q),{visible:se});b.push(H);const ae=gu(H);return q(B({},Q),{visible:se,transform:ae,strokeLength:Y})}),N=O.filter(({visible:Q})=>Q).map(Q=>({itemLabelItem:Q,distance:new n(Q.modelPosition[0],Q.modelPosition[1],Q.modelPosition[2]).clone().distanceTo(L.camera.position)})).sort((Q,H)=>Q.distance-H.distance);return O.map(Q=>{const H=N.findIndex(Y=>Y.itemLabelItem.id===Q.id);return H!==void 0?q(B({},Q),{zIndex:H*10}):Q})},w=()=>{b=[],e(1,h=k(r,h))},D=()=>{e(5,v=!1),x()},x=Ii(()=>{e(5,v=!0),w()},300),z=()=>{r.once("renderFrame",w)},_=()=>{window.addEventListener("resize",z,!1)},j=()=>{f!==l&&(e(1,h=Li(l)),f=l,w())},R=(L,T)=>{let O=[];for(let Q=0;Q<T.length;Q++){const{position:H,panoIndex:Y}=T[Q],U=L.distanceTo(H);(u===void 0||U<=u||r.state.mode!==J.Five.Mode.Panorama)&&O.push({panoIndex:Y,obVector:H,distance:U})}O=O.sort((Q,H)=>Q.distance-H.distance);let N;for(let Q=0;Q<O.length;Q++){const{obVector:H,distance:Y,panoIndex:U}=O[Q];if(!Si(r,L,H,Y)){N=U;break}}return typeof N=="number"?T[N]:void 0},P=L=>{if(r.state.mode===J.Five.Mode.Panorama)return;const T=r.work.observers,O=new n().fromArray(L.position),N=R(O,T);if(N&&(L.observerIndex=N.panoIndex),typeof L.observerIndex=="number"){const Q=T[L.observerIndex],H=O.clone().sub(Q.position).normalize(),Y={longitude:Math.PI+Math.atan2(H.x,H.z),latitude:Math.acos(H.y/H.length())-Math.PI/2};r.setState(q(B({},Y),{mode:J.Five.Mode.Panorama,panoIndex:L.observerIndex})),r.once("initAnimationEnded",()=>{e(1,h=h.map(U=>q(B({},U),{isFold:U.id!==L.id}))),r.once("cameraUpdate",()=>{e(1,h=h.map(U=>q(B({},U),{isFold:!1})))})})}};Z.beforeUpdate(()=>{j()}),Z.onMount(()=>{e(1,h=Li(l)),f=l,w(),_(),r.on("cameraUpdate",D)}),Z.onDestroy(()=>{r.off("cameraUpdate",D),window.removeEventListener("resize",z,!1)});function S(){g=this.clientWidth,A=this.clientHeight,e(3,g),e(4,A)}return i.$$set=L=>{"five"in L&&e(7,r=L.five),"modelOcclusionEnable"in L&&e(8,a=L.modelOcclusionEnable),"itemLabels"in L&&e(9,l=L.itemLabels),"hooks"in L&&e(0,c=L.hooks),"displayStrategyType"in L&&e(10,d=L.displayStrategyType),"maxVisibleDistance"in L&&e(11,u=L.maxVisibleDistance)},[c,h,p,g,A,v,P,r,a,l,d,u,S]}class wu extends s.SvelteComponent{constructor(t){super(),s.init(this,t,yu,vu,s.safe_not_equal,{five:7,modelOcclusionEnable:8,itemLabels:9,hooks:0,displayStrategyType:10,maxVisibleDistance:11},Au,[-1,-1])}}function Cu(i){return i.item_labels.map(t=>q(B({},t),{modelPosition:[t.position[0],t.position[1],t.position[2]],observerIndex:void 0}))}const Pu=void 0,Iu=(i,t)=>{var h,p,g,A;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:!0,itemLabels:[],wrapper:null,app:void 0,hooks:new J.Subscribe,modelOcclusionEnable:(h=t==null?void 0:t.modelOcclusionEnable)!=null?h:!0,onlyVisibleInPanorama:(p=t==null?void 0:t.onlyVisibleInPanorama)!=null?p:!0,displayStrategyType:(g=t==null?void 0:t.displayStrategyType)!=null?g:Ye.SMALL,maxVisibleDistance:(A=t==null?void 0:t.maxVisibleDistance)!=null?A:Pu};e.container.setAttribute("class","item-label-plugin-container"),e.container.style.cssText=`
519
519
  position: absolute;
520
520
  left: 0;
521
521
  top: 0;
522
522
  width: 100%;
523
523
  height: 100%;
524
524
  z-index: 5;
525
- `,e.container.style.pointerEvents="none";const o=b=>(e.wrapper=b,b.appendChild(e.container),c(),!0),n=b=>{e.itemLabels=Cu(b),c()},r=()=>(e.enabled||(e.enabled=!0,c()),!0),a=()=>(e.enabled&&(e.enabled=!1,c()),!0),l=()=>{u(),e.container.remove()},c=()=>{var b;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(b=e.app)==null||b.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:i,itemLabels:e.itemLabels}):e.app=new wu({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}})}},d=()=>{i.on("modeChange",f),i.once("dispose",l)},u=()=>{i.off("modeChange",f)},f=b=>{if(b!==J.Five.Mode.Panorama){e.fiveModeEnabled=!1,a();return}i.once("initAnimationEnded",()=>{e.fiveModeEnabled=!0,r()})};return d(),{appendTo:o,load:n,enable:r,disable:a,dispose:l,hooks:e.hooks}},Eu={name:"ItemLabelPlugin",version:0};class ku extends St{constructor(e){super(e);m(this,"state");m(this,"container");m(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(q(B({},e),{userAction:!0}))}disable(e){this.enabled=!1,this.updateState(q(B({},e),{userAction:!0}))}show(e){if(!!this.state.enabled)return this.setState(q(B({},this.state),{visible:!0}),e),Promise.resolve()}hide(e){if(!!this.state.enabled)return this.setState(q(B({},this.state),{visible:!1}),e),Promise.resolve()}dispose(){this.container.remove()}setState(e,o){if(!this.enabled)return;const n=B({},this.state);this.state=B(B(B({},this.state),e),o),this.stateChangedCallback(n,o)}get visible(){return this.five.state.mode===J.Five.Mode.Panorama}appendTo(e){!this.enabled||(this.container=e,this.render())}updateState(e){this.setState(q(B({},this.state),{enabled:this.enabled,visible:this.visible}),e)}}function xu(i){s.append_styles(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 Du(i){let t,e,o,n,r,a,l,c;return{c(){t=s.element("div"),e=s.element("div"),o=s.element("span"),o.textContent=`${i[8]}`,n=s.space(),r=s.element("i"),s.attr(o,"class","plugin-DoorLabelPlugin-txt svelte-wpy7pz"),s.attr(r,"class","plugin-DoorLabelPlugin-icon svelte-wpy7pz"),s.attr(e,"class",a=s.null_to_empty(Ce.default("plugin-DoorLabelPlugin-cnt",i[0].toward))+" svelte-wpy7pz"),s.attr(e,"style",`transform: ${i[6]||"initial"};pointer-events: ${i[5]?"auto":"none"};opacity: ${i[5]?1:0}`),s.attr(e,"data-camera-toward",i[7]),s.attr(t,"style",`left: ${i[3]||0}%;top: ${i[4]||0}%;opacity: ${i[5]?1:0}`),s.attr(t,"class","plugin-DoorLabelPlugin-item svelte-wpy7pz")},m(d,u){s.insert(d,t,u),s.append(t,e),s.append(e,o),s.append(e,n),s.append(e,r),i[10](t),l||(c=s.listen(e,"click",i[9]),l=!0)},p(d,[u]){u&1&&a!==(a=s.null_to_empty(Ce.default("plugin-DoorLabelPlugin-cnt",d[0].toward))+" svelte-wpy7pz")&&s.attr(e,"class",a)},i:s.noop,o:s.noop,d(d){d&&s.detach(t),i[10](null),l=!1,c()}}}function Su(i,t,e){let{props:o}=t,{onClick:n}=t,r,{left:a,top:l,inSight:c,transform:d,panoIndex:u,cameraToward:f,name:h}=o,p=0;const g=()=>{if(!a||!l||!c||!r)return;const v=r.current.clientWidth/window.innerWidth*100,w=r.current.clientHeight/window.innerHeight*100;if(a<=v/2||a>=100-v/2||l<=w/2||l>=100-w/2)return;u!==p&&(console.log("panoDoorLabelPlugin",u,"\u89E6\u53D1\u57CB\u70B9"),p=u)},A=v=>{n&&n()};function b(v){s.binding_callbacks[v?"unshift":"push"](()=>{r=v,e(2,r)})}return i.$$set=v=>{"props"in v&&e(0,o=v.props),"onClick"in v&&e(1,n=v.onClick)},g(),[o,n,r,a,l,c,d,f,h,A,b]}class Lu extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Su,Du,s.safe_not_equal,{props:0,onClick:1},xu)}}function _u(i,t){const e=Math.abs(i.top+i.height/2-t.top-t.height/2),o=Math.abs(i.left+i.width/2-t.left-t.width/2),n=(i.height+t.height)/2,r=(i.width+t.width)/2;return!(e>n&&o>r)}function zu(i){const{camera:t}=i,e=t.getWorldDirection(new M.Vector3);let o=Math.atan(e.z/e.x)*180/Math.PI,n="";return e.x<0&&(o+=180),o<0&&(o+=360),o>315||o<=45?n="right":o>45&&o<=135?n="back":o>135&&o<=225?n="left":o>225&&o<=315&&(n="forward"),n}function Mu(i,t){return Math.sqrt(Math.pow(i.z-t.z,2)+Math.pow(i.x-t.x,2))}function ju(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 Bu={userAction:!0};class Tu extends ku{constructor(e){super(e);m(this,"MinVisibledistance",1.8);m(this,"MaxVisibledistance",5);m(this,"OffsetHeight",-1.3);m(this,"rooms");m(this,"floorplanServerData");m(this,"doorLabelItems");m(this,"visibleLabelMap",new Map);m(this,"labelItems",[]);m(this,"doorLabels");m(this,"roomObservers");m(this,"loadData",(e,o)=>{o&&(this.MaxVisibledistance=o.MaxVisibledistance,this.MinVisibledistance=o.MinVisibledistance,this.OffsetHeight=o.OffsetHeight),this.doorLabelItems&&this.doorLabelItems.length>0&&this.doorLabelItems.forEach(n=>{n.$destroy()}),this.labelItems=[],this.doorLabels=[],this.doorLabelItems=[],this.floorplanServerData=e,this.five.once("panoArrived",()=>{console.log("doorplugin","panoArrived"),this.initData()})});m(this,"initRoomObservers",()=>{var r,a;const e=this.floorplanServerData.computed_data.floor_datas||[],n=(((a=(r=this.five)==null?void 0:r.work)==null?void 0:a.observers)||[]).map(l=>{const c=l.panoIndex,d=l.floorIndex,u=e==null?void 0:e.find(f=>f.floor_index===d);if(u){const f=u.rooms.find(h=>h.observer_indexs.includes(c));if(f)return{panoIndex:c,floorIndex:d,name:f.name}}}).filter(Boolean);this.roomObservers=n});m(this,"hideAllLabels",()=>{this.labelItems.forEach(e=>{e.visible=!1,e.inSight=!1}),this.render()});m(this,"fixDoorVisibleAndPosition",()=>{this.initRoomObservers();const{panoIndex:e}=this.five;if(!this.visible||this.five.model.empty||e===null||!this.roomObservers.find(l=>l.panoIndex===e))return;const o=this.roomObservers.find(l=>l.panoIndex===e),r=this.five.work.observers.find(l=>l.panoIndex===e).position.clone(),a=(()=>{if(this.visibleLabelMap.has(e))return this.visibleLabelMap.get(e);{const l=[];return this.doorLabels.forEach((c,d)=>{if(c.roomName===o.name)return;const u=c.position.clone(),f=u.distanceTo(r);if(f<this.MinVisibledistance||f>this.MaxVisibledistance)return;const h=new M.Raycaster,p=u.clone().sub(r).normalize();h.set(r,p);const[g]=this.five.model.intersectRaycaster(h);g&&g.distance+.1<f||l.push(d)}),this.visibleLabelMap.set(e,l),l}})();this.labelItems.forEach((l,c)=>{l.visible=a.includes(c)}),this.fixDoorPosition()});m(this,"fixDoorPosition",()=>{var u,f,h,p,g,A,b,v,w,y;const{panoIndex:e,camera:o}=this.five;if(e===null)return;if(this.five.currentMode!=="Panorama")return this.hideAllLabels();const n=this.five.getElement(),r=n.clientWidth,a=n.clientHeight,l=o.getWorldDirection(new M.Vector3),c=[],d=[...this.labelItems];if(d.forEach((E,k)=>{if(E.visible){const C=o.position.distanceTo(E.position),D=E.position.clone().add(new M.Vector3(0,this.OffsetHeight,0)),z=D.clone().sub(o.position).normalize().angleTo(l),L=D.clone().project(o),j=(L.x+1)/2.2*100,O=(-L.y+1)/2.2*100,P=j>=0&&j<=100&&O>=0&&O<=100&&C>this.MinVisibledistance&&C<=this.MaxVisibledistance;E.left=j,E.top=O,E.inSight=P&&z<Math.PI/2,E.cameraToward=zu(this.five),P?c.push({disFromCameraToLabel:C,left:j,top:O,index:k}):E.transform="translate(-50%, -50%)"}else E.inSight=!1}),c.length>1){let E=0;c.sort((k,C)=>C.disFromCameraToLabel-k.disFromCameraToLabel);for(let k=1;k<c.length;k++){const{index:C,left:D,top:x}=c[k-1],{index:z,left:L,top:j}=c[k],O=this.container.children[C],P=this.container.children[z];if(!O||!P||!((u=O==null?void 0:O.children)!=null&&u[0])||!((f=P==null?void 0:P.children)!=null&&f[0]))return;const S={left:r*D/100,top:a*x/100,width:(p=(h=O.children[0])==null?void 0:h.clientWidth)!=null?p:0,height:(A=(g=O.children[0])==null?void 0:g.clientHeight)!=null?A:0},_={left:r*L/100,top:a*j/100,width:(v=(b=P.children[0])==null?void 0:b.clientWidth)!=null?v:0,height:(y=(w=P.children[0])==null?void 0:w.clientHeight)!=null?y:0};_u(S,_)&&(E++,d[C].transform=`translate(-50%, ${(E-1)*100-50}%)`,d[z].transform=`translate(-50%, ${E*100-50}%)`)}}this.labelItems=d,this.render()});m(this,"onClick",(e,o)=>{if(!this.roomObservers)return;const{work:n}=this.five;let r,a,l=1/0;for(let c=0;c<n.observers.length;c++){if(this.roomObservers[c].name!==e)continue;const u=n.observers[c].standingPosition,f=o.distanceTo(u);f<l&&(r=c,a=u.clone().sub(o).normalize(),l=f)}if(a!==null&&r!==null){const c={};if(l>0){const u=new M.Vector3(0,0,-1),f=a.clone(),h=new M.Quaternion;h.setFromUnitVectors(u,f);const p=new M.Euler;p.setFromQuaternion(h,"YXZ"),c.longitude=p.y}this.five.emit("wantsToMoveToPano",r,{},!0)||this.five.moveToPano(r,{longitude:c.longitude})}});m(this,"initData",()=>{var r;this.doorLabels=[];const e=this.five.panoIndex,o=this.floorplanServerData.computed_data.observers[e].floor_index,n=o!==void 0&&((r=this.floorplanServerData.computed_data.floor_datas[o])==null?void 0:r.rooms);this.rooms=n,this.rooms&&this.rooms.length>0&&this.rooms.forEach(a=>{var d;const l=(d=this.floorplanServerData.computed_data.doors)==null?void 0:d.filter(u=>!!(u&&u.name===a.name)),c=this.five.work.observers.filter((u,f)=>!!a.observer_indexs.find(h=>h===f));l&&l.forEach(u=>{const f=u.position;let h=1/0,p;c.forEach(A=>{const b=A.standingPosition,v={x:b.x,y:b.y,z:b.z},w=Mu(f,v);w<h&&(h=w,p=v)}),p&&(f.y=p.y+.01);const g=new M.Vector3(f.x,f.y,f.z);g.add(new M.Vector3(-.2,1.8,0).applyEuler(new M.Euler(0,u.rad,0))),this.doorLabels.push({roomName:a.name,name:u.name,position:g,toward:ju(u.rad)})})}),this.labelItems=this.doorLabels.map(a=>q(B({},a),{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,o){if(this.hooks.hasListener("stateChange")){const n={state:this.state,prevState:e,userAction:o?o.userAction:Bu.userAction};this.hooks.emit("stateChange",n)}}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 Lu({target:this.container,props:{props:e,onClick:()=>{this.onClick(e.name,e.position)}}}))})}initState(){return{enabled:!0,visible:!0}}dispose(){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 Qu=i=>new Tu(i),Ou=2,Ru=3,Fu=3,Hu=2;function Gu(i,t){var a,l,c;if(i.length<2)return console.warn("positionList length must be greater than 1"),[];const e=(a=t==null?void 0:t.unitWidth)!=null?a:.5,o=(l=t==null?void 0:t.unitHeight)!=null?l:.5,n=(c=t==null?void 0:t.skipPanoIndexMesh)!=null?c:!1,r=new I.CatmullRomCurve3(i,!1,"catmullrom",1);if(n){const d=Math.ceil(r.getLength()/o*1.5),u=r.getPoints(d),f=[];let h=0;const p=i;return p.forEach((g,A)=>{let b=0,v=99999999;u.forEach((C,D)=>{const x=C.distanceTo(g);x<v&&(b=D,v=x)});const w=u[b+1],y=w==null?void 0:w.distanceTo(g),E=u[b-1],k=E==null?void 0:E.distanceTo(g);if(b>h&&b-h>1){let C=b;E!==void 0&&k>.8&&(C=b+1),E!==void 0&&k>.2&&k<.3?C=b:v>.2&&v<.3&&(C=b+1);let D=h;if(w!==void 0&&y>.2&&y<.3?D=h+1:v>.2&&v<.3&&(D=h),u[D]&&u[D+1]){const L=p[A-1];if(L)if(L.equals(u[D]))D+=1;else{const j=new M.Vector3().subVectors(u[D+1],u[D]),O=new M.Vector3().subVectors(L,u[D]);j.angleTo(O)<Math.PI/2&&(D+=1)}}if(C<D||C-D<=1)return;const x=u.slice(D,C),z=ji(x,e,o);f.push(z),h=b}}),f}else{const d=Math.ceil(r.getLength()),u=r.getPoints(d);return[ji(u,e,o)]}}function ji(i,t,e){const o=t/2,n=e/t,r=i.length,a=pr.default(i.map(v=>[v.x,v.z])),c=(i.length-1)*Ou*Ru,d=2*r,u=d*Fu,f=d*Hu,h=new Uint32Array(c),p=new Float32Array(u),g=new Float32Array(f);i.forEach((v,w)=>{});let A=0;for(let v=0;v<i.length;v++){const[w,y]=a[v][0],E=i[v],{x:k,y:C,z:D}=E,x=new M.Vector3(k+w*o,C+.05,D+y*o);p[v*6+0]=x.x,p[v*6+1]=x.y,p[v*6+2]=x.z;const z=new M.Vector3(k-w*o,C+.05,D-y*o);p[v*6+3]=z.x,p[v*6+4]=z.y,p[v*6+5]=z.z,A+=v>0?i[v-1].clone().sub(i[v]).length():0;const L=A/t/n;g[v*4+0]=0,g[v*4+1]=L,g[v*4+2]=1,g[v*4+3]=L,v!==i.length-1&&(h[v*6+0]=v*2+0,h[v*6+1]=v*2+2,h[v*6+2]=v*2+1,h[v*6+3]=v*2+2,h[v*6+4]=v*2+3,h[v*6+5]=v*2+1)}const b=new I.BufferGeometry;return b.setAttribute("position",new I.BufferAttribute(p,3)),b.setAttribute("uv",new I.BufferAttribute(g,2)),b.setIndex(new I.BufferAttribute(h,1)),b}function Nu(i){const t=new I.TextureLoader().load(i.textureUrl);return t.wrapS=t.wrapT=I.RepeatWrapping,t.encoding=I.sRGBEncoding,new I.MeshBasicMaterial({color:16777215,map:t,transparent:!0,opacity:.8})}function Wu(i){return!Ue(i)}function Ue(i){return i!=null}const Bi="v1.0.1",Ti="GuideLinePlugin",Po=`${Ti}@${Bi}`,Qi=i=>`${Po}--${i}`;class Oi extends We{constructor(e,o){super(e,o);m(this,"state",{visible:!1,enabled:!0,disposed:!1});m(this,"data");m(this,"linesGroup");m(this,"disposedErrorLog",()=>{console.error(`${Po} is disposed`)});m(this,"actionWhenEnabled",e=>{if(this.state.enabled)return e()});Object.assign(window,{[`__${Ti}_DEBUG__`]:this})}load(e,o,n=!0){return G(this,null,function*(){const r=this.data?JSON.parse(JSON.stringify(this.data)):void 0,a=yield this.formatData(e);this.hooks.emit("dataChange",a,r),this.data=a,this.linesGroup&&this.five.scene.remove(this.linesGroup);const l=this.getLinesGroup(a.routes);!l||(this.linesGroup=l,yield this.waitFiveModelLoaded(),this.five.scene.add(l),this.handleVisible(this.state.visible),this.handleEnable(this.state.enabled),o&&this.setState(o),this.five.needsRender=!0,this.hooks.emit("dataLoaded",a),console.log(`${Po} loaded`,a))})}formatData(e){return G(this,null,function*(){return typeof e=="object"&&e!==null&&e.version&&e.data?e.data:e})}show(e){return G(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return G(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,o){var r;if(this.state.disposed)return this.disposedErrorLog();const n=B({},this.state);this.state=B(B({},this.state),e),e.disposed!==void 0&&e.disposed!==n.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==n.visible&&this.handleVisible(e.visible,o==null?void 0:o.userAction),e.enabled!==void 0&&e.enabled!==n.enabled&&this.handleEnable(e.enabled,o==null?void 0:o.userAction),Pe(n,this.state,{deep:!0})||(this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:(r=o==null?void 0:o.userAction)!=null?r:!0}),this.five.needsRender=!0)}handleEnable(e,o=!0){this.linesGroup&&(e?(this.five.scene.add(this.linesGroup),this.actionWhenEnabled(()=>this.hooks.emit("enable",{userAction:o}))):(this.five.scene.remove(this.linesGroup),this.hooks.emit("disable",{userAction:o})))}handleVisible(e,o=!0){this.linesGroup&&(e?(this.linesGroup.visible=!0,this.actionWhenEnabled(()=>this.hooks.emit("show",{userAction:o}))):(this.linesGroup.visible=!1,this.actionWhenEnabled(()=>this.hooks.emit("hide",{userAction:o}))))}handleDispose(){this.linesGroup&&this.five.scene.add(this.linesGroup)}getLinesGroup(e){const o=e.map(this.getLine.bind(this)).filter(Ue),n=new I.Group;if(n.name=Qi("route-group"),o.length!==0)return n.add(...o),n}getLine(e){var l,c,d,u;const o=new I.Group,n=e.panoIndexList.map(f=>{var h;return(h=this.five.work.observers[f])==null?void 0:h.standingPosition}).filter(Ue),r=Gu(n,{skipPanoIndexMesh:(l=e.skipPanoIndexMesh)!=null?l:!0,unitWidth:(c=e.unitWidth)!=null?c:.6,unitHeight:(d=e.unitHeight)!=null?d:.4});if(!r)return;const a=Nu({textureUrl:(u=e.arrowTextureUrl)!=null?u:this.staticPrefix+"/release/web/arrow6.b6ce0c62.png"});return r.forEach(f=>{const h=new I.Mesh(f,a);h.name=Qi("route-line-mesh"),o.add(h)}),o}waitFiveModelLoaded(){return G(this,null,function*(){return new Promise(e=>{if(this.five.model.loaded){e();return}this.five.once("modelLoaded",()=>{e()})})})}}m(Oi,"lasestVersion",Bi);const Ri=(i,t)=>new Oi(i,t);function Fi(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 Xu(i,t){const e=Fi(i),o=Fi(t);return e.angleTo(o)}const Yu=i=>G(this,null,function*(){try{i().then(()=>{},()=>{}).catch(()=>{})}catch(t){}}),Gt=Math.PI*2;function Uu(i){return i>=0&&i<Gt?i:(i%Gt+Gt)%Gt}function Vu(i){return{longitude:Uu(-Math.atan2(i.x,-i.z)),latitude:-Math.asin(i.y/1)}}function Ju(i,t,e,o){const n=-i/e,r=i;return n*o+r}function Zu(i){return new Promise(t=>{setTimeout(()=>{t()},i)})}const Hi="v1.0.6",Gi="CruisePlugin",Nt=`${Gi}@${Hi}`,Ni=()=>{console.error(`${Nt} is disposed`)},qu=()=>{console.warn(`${Nt} is disabled`)},Ku=()=>{console.error(`${Nt} is disabled`)},Io=new Map;class Eo extends We{constructor(e,o){super(e,o);m(this,"state",{visible:!0,enabled:!0,disposed:!1,playing:!1,speed:1,config:{speedConfig:{rotateSpeed:.001,rotateSpeedUnit:"rad/ms",moveSpeed:.002,moveSpeedUnit:"m/ms"}}});m(this,"data");m(this,"config");m(this,"privateState",{playing:!1,currentPlayQueue:[],currentPlayKeyframe:null,broke:!1,disposers:[],modeChanging:!1});m(this,"GuideLine");this.config=o,Object.assign(window,{[`__${Gi}_DEBUG__`]:this});const n=this.setFiveLinearUpdateCamera.bind(this),r=this.setFiveOriginUpdateCamera.bind(this);this.hooks.on("play",n),this.hooks.on("broke",r),this.hooks.on("end",r),this.hooks.on("pause",r),this.privateState.disposers.push(()=>{this.hooks.off("play",n),this.hooks.off("broke",r),this.hooks.off("end",r),this.hooks.off("pause",r)})}load(e,o,n){return G(this,null,function*(){var u,f,h,p,g;if(this.state.disposed)return Ni();this.privateState.fiveOriginGetProgress||(f=(u=this.five.controller)==null?void 0:u.cameraMotion)!=null&&f.getProgress||(yield this.waitFiveLoaded(),this.privateState.fiveOriginGetProgress=(p=(h=this.five.controller)==null?void 0:h.cameraMotion)==null?void 0:p.getProgress),this.clear();const r=this.data?JSON.parse(JSON.stringify(this.data)):void 0,a=yield this.formatData(e);this.data=a,this.hooks.emit("dataChange",a,r);let l=[],c;const d=this.data.keyframes.filter(A=>A.data.panoIndex!==void 0);d.filter((A,b)=>{var v;return A.data.panoIndex!==((v=d[b-1])==null?void 0:v.data.panoIndex)}).map(A=>A.data.panoIndex).forEach(A=>{var v,w;const b=(v=this.five.work.observers[A])==null?void 0:v.floorIndex;if(b!==void 0)if(c===b){const y=l.length-1;l[y]=[...(w=l[y])!=null?w:[],A]}else{c=b;const y=l.length;l[y]=[A]}}),this.GuideLine||(this.GuideLine=Ri(this.five,this.config)),(g=this.GuideLine)==null||g.load({routes:l.map(A=>({panoIndexList:A}))}),this.setState({playing:!1}),this.handleVisible(this.state.visible),this.handleEnable(this.state.enabled),this.changePlayState(this.state.playing),this.changeSpeed(this.state.speed),o&&this.setState(o,{userAction:n}),console.log(`${Nt} loaded`,a),this.hooks.emit("dataLoaded",a)})}play(e){this.setState({playing:!0},e)}playFrom(e){const{index:o,id:n,userAction:r}=e;this.state.playing&&this.setState({playing:!1},{userAction:r}),this.setState({playing:!0},{userAction:r,playFromIndex:o,playFromId:n})}playFromStart(e){return this.playFrom(q(B({},e),{index:0}))}pause(e){this.setState({playing:!1},e)}show(e){return G(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return G(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,o){var r;if(this.state.disposed)return Ni();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return Ku();const n=B({},this.state);this.state=B(B({},this.state),e),e.disposed!==void 0&&e.disposed!==n.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==n.visible&&this.handleVisible(e.visible,o==null?void 0:o.userAction),e.enabled!==void 0&&e.enabled!==n.enabled&&this.handleEnable(e.enabled,o==null?void 0:o.userAction),e.playing!==void 0&&e.playing!==n.playing&&this.changePlayState(e.playing,o),e.speed!==void 0&&e.speed!==n.speed&&this.changeSpeed(e.speed,o==null?void 0:o.userAction),Pe(n,this.state,{deep:!0})||this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:(r=o==null?void 0:o.userAction)!=null?r:!0})}formatData(e){return G(this,null,function*(){this.five.work||(yield this.waitFiveLoaded());const o=this.five.work.observers,n=(()=>{const r=e;return typeof r=="object"&&r!==null&&r.version&&r.data?r.data:r})();if(n.keyframes)return{keyframesId:fe(),keyframes:n.keyframes.map((r,a)=>{var d;const l=n.keyframes[a+1],c=(()=>!l||l.start===void 0||r.end===void 0?0:l.start-r.end)();return B({id:(d=r.uuid)!=null?d:fe(),moveIndex:a,stay:c,index:a},r)})};if(n.panoIndexList){let r=[];const{moveEffect:a,moveToFirstPanoEffect:l}=n;return this.privateState.moveToFirstPanoEffect=l,n.panoIndexList.forEach((c,d)=>{const u=(()=>{var A,b,v,w;const f=n.panoIndexList.slice(d).find(y=>y!==c);if(f===void 0)return;const h=(A=o[c])==null?void 0:A.position,p=(b=o[f])==null?void 0:b.position;if(!p||!h||((v=o[c])==null?void 0:v.floorIndex)!==((w=o[f])==null?void 0:w.floorIndex))return;const g=new I.Vector3().subVectors(p,h);return Vu(g)})();n.moveType===void 0||n.moveType==="justMove"?r.push({moveIndex:d,stay:n.stay,data:B({effect:"Move",panoIndex:c,moveEffect:a},u!=null?u:{})}):n.moveType==="moveAndRotate"&&(r.push({moveIndex:d,stay:n.stay,data:{effect:"Move",panoIndex:c,moveEffect:a}}),u&&r.push({moveIndex:d,stay:n.stay,data:B({effect:"Rotate",panoIndex:c},u)}))}),{keyframesId:fe(),keyframes:r.map((c,d)=>B({id:fe(),index:d},c))}}else throw new Error("format error: data no keyframes or no panoIndexList")})}handleEnable(e,o=!0){var n,r;e?((n=this.GuideLine)==null||n.enable(),this.hooks.emit("enable",{userAction:o})):((r=this.GuideLine)==null||r.disable(),this.changePlayState(!1,{userAction:o}),this.hooks.emit("disable",{userAction:o})),this.state.enabled=e}handleVisible(e,o=!0){var n,r;e?((n=this.GuideLine)==null||n.show(),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:o}))):((r=this.GuideLine)==null||r.hide(),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:o}))),this.state.visible=e}changePlayState(e,o){this.actionIfStateIsEnabled(()=>{var n;return this.hooks.emit("playStateChange",e?"playing":"pause",{userAction:(n=o==null?void 0:o.userAction)!=null?n:!0})}),e?this.handlePlay(o):this.handlePause(o),this.state.playing=e}handlePlay(e){return G(this,null,function*(){var p;const{data:o,state:n,privateState:r,hooks:a}=this;if(r.playing||!(o!=null&&o.keyframes)||(o==null?void 0:o.keyframes.length)===0)return;const l=fe();r.playId=l,r.playing=!0,r.broke=!1;const c=o.keyframes,d=this.getPauseData();(e==null?void 0:e.notEmitEvent)!==!0&&a.emit("play",{userAction:(p=e==null?void 0:e.userAction)!=null?p:!0});let u=!1;const h=yield(()=>G(this,null,function*(){var g,A;if((e==null?void 0:e.playFromIndex)!==void 0)return e.playFromIndex;if((e==null?void 0:e.playFromId)!==void 0)return(g=this.data)==null?void 0:g.keyframes.findIndex(b=>b.id===e.playFromId);if(d!=null&&d.keyframeId){const b=(A=this.data)==null?void 0:A.keyframes.find(v=>v.id===d.keyframeId);if(d!=null&&d.fiveState&&(yield this.move(d.fiveState,{moveEffect:r.moveToFirstPanoEffect})),b){if(b.data.effect==="Move")return b.index;if(b.data.effect==="Rotate"){const v=d.duration!==void 0?d.duration*(1-d.playedProgress):void 0;return yield this.playKeyframe(b,{duration:v}),u=!0,b.index+1}}}}))();this.clearPauseData();for(const g of c){if(r.broke||!n.playing||!r.playing||l!==r.playId)return;if(!(h!==void 0&&g.index<h))try{a.emit("playIndexChange",g.index,g),yield this.playKeyframe(g,{moveEffect:u===!1?r.moveToFirstPanoEffect:void 0,duration:800}),g.stay&&(yield Zu(g.stay)),u===!1&&(u=!0)}catch(A){return Promise.resolve("broke")}}n.playing&&l===r.playId&&(this.setState({playing:!1},{userAction:!1}),a.emit("end"),this.clearPauseData())})}handlePause(e){var a;const{state:o,privateState:n,hooks:r}=this;o.playing=!1,n.playing!==!1&&(n.playing=!1,this.setPauseData(),n.broke||this.forceInteruptUpdateCamera(),(e==null?void 0:e.notEmitEvent)!==!0&&r.emit("pause",{userAction:(a=e==null?void 0:e.userAction)!=null?a:!0}))}playKeyframe(e,o){return G(this,null,function*(){var r;const{privateState:n}=this;return((r=this.privateState.currentPlayKeyframe)==null?void 0:r.keyframe.id)!==e.id&&(this.privateState.currentPlayKeyframe={keyframe:e}),n.currentPlayQueue.push(this.getPlayPromise(e,o)),this.actionPromiseQueue()})}addInterruptListener(e){const o=()=>{this.privateState.modeChanging||e()},n=e;return this.five.once("gesture",n),this.five.once("wantsChangeMode",o),()=>{this.five.off("gesture",n),this.five.once("wantsChangeMode",o)}}getPlayPromise(e,o){return G(this,null,function*(){var r;const n=e.data;if((r=o==null?void 0:o.duration)!=null||e.start!==void 0&&e.end!==void 0&&e.end-e.start,!!n)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 d=()=>{a(),c=!0};switch(n.effect){case"Move":this.move(n,o).then(d);break;case"Rotate":this.rotate(n,o).then(d);break;default:this.rotate(n,o).then(d)}}catch(d){}})})}actionPromiseQueue(){return G(this,null,function*(){const{privateState:e}=this;return new Promise((o,n)=>{if(e.currentPlayQueue.length===0){o();return}const r=e.currentPlayQueue.shift();if(!r){o();return}r.then(o,n)}).then(()=>e.currentPlayQueue.length===0?Promise.resolve():this.actionPromiseQueue())})}move(e,o){return G(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,o);else return Promise.resolve()})}rotate(e,o){return G(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,o);yield this.updateCamera(e,o==null?void 0:o.duration)})}updateCamera(e,o=800){return G(this,null,function*(){const{five:n,privateState:r,state:a}=this;let l=o;const c=(()=>{var h,p;const u=(h=a.config)==null?void 0:h.speedConfig,f=(p=e.rotateSpeed)!=null?p:u==null?void 0:u.rotateSpeed;if((u==null?void 0:u.rotateSpeedUnit)===void 0)return f;if(f!==void 0)return u.rotateSpeedUnit==="rad/ms"?f:f/1e3})();if(c){const u=this.five.getCurrentState();l=Xu(u,e)/c}r.currentPlayKeyframe&&(r.currentPlayKeyframe.originDuration=l);const d=this.getSpeededDuration(l);return new Promise(u=>{Yu(()=>n.updateCamera(e,d)),setTimeout(()=>u(),d)})})}changePano(e,o){return G(this,null,function*(){var f;const{five:n,privateState:r,state:a}=this;if(typeof e.panoIndex!="number"||e.panoIndex===n.panoIndex)return;n.getCurrentState().mode;const l=n.getCurrentState().mode!=="Panorama";l&&(this.privateState.modeChanging=!0);let c=(f=o==null?void 0:o.duration)!=null?f:800;const d=(()=>{var g,A;const h=(g=a.config)==null?void 0:g.speedConfig,p=(A=e.moveSpeed)!=null?A:h==null?void 0:h.moveSpeed;if((h==null?void 0:h.moveSpeedUnit)===void 0)return p;if(p!==void 0)return h.moveSpeedUnit==="m/ms"?p:p/1e3})();if(d&&typeof n.panoIndex=="number"&&typeof e.panoIndex=="number"){const h=n.work.observers[n.panoIndex].position,p=n.work.observers[e.panoIndex].position;c=h.distanceTo(p)/d}r.currentPlayKeyframe&&(r.currentPlayKeyframe.originDuration=c);const u=this.getSpeededDuration(c);yield new Promise(h=>{var p,g,A;n.moveToPano(e.panoIndex,{latitude:e.latitude,longitude:e.longitude,fov:e.fov,duration:u,effect:(A=(g=o==null?void 0:o.moveEffect)!=null?g:(p=this.state.config)==null?void 0:p.moveEffect)!=null?A:e.moveEffect,moveCancelCallback:()=>h(),moveEndCallback:()=>h()}),l&&n.once("panoArrived",()=>h())}),l&&(this.privateState.modeChanging=!1)})}changeSpeed(e,o=!0){const{state:n,privateState:r,hooks:a}=this,{currentPlayKeyframe:l}=r;if(a.emit("speedChange",e,{userAction:o}),n.playing&&l)try{const c=l.originDuration!==void 0?l.originDuration*(1-this.getProgress()):void 0,d=this.playKeyframe(l.keyframe,{duration:c});r.currentPlayQueue.push(d)}catch(c){}}getSpeededDuration(e){return e/this.state.speed}getProgress(){return this.five.controller.cameraMotion.progress}changeMode(e,o){return G(this,null,function*(){e.mode&&e.mode!==this.five.currentMode&&(this.privateState.modeChanging=!0,console.log("this.privateState.modeChanging",this.privateState.modeChanging),yield this.five.changeMode(e.mode,e,o),this.privateState.modeChanging=!1)})}forceInteruptUpdateCamera(){this.five.updateCamera({},0)}getPauseData(){var e,o;if((e=this.data)!=null&&e.keyframesId)return Io.get((o=this.data)==null?void 0:o.keyframesId)}setPauseData(){var e,o,n,r;if((e=this.data)!=null&&e.keyframesId)return Io.set((o=this.data)==null?void 0:o.keyframesId,{keyframeId:(n=this.privateState.currentPlayKeyframe)==null?void 0:n.keyframe.id,fiveState:this.five.getCurrentState(),duration:(r=this.privateState.currentPlayKeyframe)==null?void 0:r.originDuration,playedProgress:this.getProgress()})}clearPauseData(){var e,o;if((e=this.data)!=null&&e.keyframesId)return Io.delete((o=this.data)==null?void 0:o.keyframesId)}clear(){this.clearPauseData(),this.privateState.currentPlayKeyframe=null}handleDispose(){var e,o;this.setState({playing:!1}),this.clearPauseData(),this.clear(),(e=this.GuideLine)==null||e.dispose(),this.GuideLine=void 0,(o=this.privateState.disposers)==null||o.forEach(n=>n==null?void 0:n())}actionIfStateIsEnabled(e,o){if(this.state.enabled)return e();o!=null&&o.warnLog&&qu()}waitFiveLoaded(){return G(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 o=this.five.controller.cameraMotion,n=e-o.startTime;return n<0?0:n>=o.duration?1:1-Ju(1,o.startVelocity,o.duration,n)})}setFiveOriginUpdateCamera(){!this.privateState.fiveOriginGetProgress||(this.five.controller.cameraMotion.getProgress=this.privateState.fiveOriginGetProgress)}}m(Eo,"PluginVersion",Hi);const $u=i=>new Eo(i);function eh(i,t){t.forEach(e=>{const o=new I.SphereGeometry(.02,16,16),n=[],r=[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((a,l)=>{const c=r[l],d=new I.Mesh(o,c);d.position.copy(Se(a)),n.push(d)});else{const a=r[0],l=new I.Mesh(o,a);l.position.copy(Se(e.position)),n.push(l)}n.forEach(a=>{a.material.depthTest=!1,i.scene.add(a)})})}const re=i=>i;function Wi(i){if(i.length<3)return;const t=i.map(ht),e=t[1].clone().sub(t[0]),o=t[2].clone().sub(t[1]);return e.cross(o)}function Wt(i){if(Array.isArray(i)&&i.length===4){const t=i.map(ht);return Ko(t[0],t[2])}else return ht(i)}function Xt(i,t){if(i===void 0)return;const{min:e,max:o}=t!=null?t:{};if(!(e===void 0&&o===void 0))return!(typeof o=="number"&&o<i||typeof e=="number"&&e>i)}function th(i,t){i.model.loaded?t():i.once("modelLoaded",()=>t())}function oh(i,t,e){const n=new I.Plane().setFromNormalAndCoplanarPoint(e,t),r=t.clone().sub(i).cross(new I.Vector3(0,1,0)).setLength(.01),a=new I.Vector3(0,.01,0);return[t.clone().sub(r).sub(a),t.clone().add(r).sub(a),t.clone().add(r).add(a),t.clone().sub(r).add(a)].map(c=>n.projectPoint(c,new I.Vector3))}const Xi=(i,t=1e3/60)=>{let e=null;const o=i;return(...r)=>{e&&clearTimeout(e),e=setTimeout(()=>{o==null||o(...r),e&&clearTimeout(e),e=null},t)}};function sh(i,t=200){let e;return function(...o){e||(i.apply(this,o),e=setTimeout(function(){e=null},t))}}function ih(i,t){const[e,o]=t;if(e>=o||o<=1||e<=1)return-1;const n={},r=a=>(n[a]||(n[a]=i(a)),n[a]);for(let a=e;a<o;a++){const l=r(a),c=r(a-1);if(l<c)return a}return-1}function Yi(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)}}}var ye=(i=>(i.Two="2D",i.Three="3D",i))(ye||{}),Ae=(i=>(i.PointTag="PointTag",i.PlaneTag="PlaneTag",i))(Ae||{}),ve=(i=>(i.Audio="Audio",i.Text="Text",i.ImageText="ImageText",i.Link="Link",i.Marketing="Marketing",i.MediaPlane="MediaPlane",i.Custom="Custom",i))(ve||{}),Yt=(i=>(i.VrLink="vr",i.NormalLink="normal",i))(Yt||{});function nh(i){s.append_styles(i,"svelte-1omzoh4",".straight-line.svelte-1omzoh4{display:block;width:100%;height:100%;overflow:visible}")}function Ui(i){let t,e,o,n;return{c(){t=s.svg_element("path"),s.attr(t,"fill","none"),s.attr(t,"stroke","url(#"+i[4]+")"),s.attr(t,"stroke-width","1"),s.attr(t,"d","M0 0.5 L 148 0.5")},m(r,a){s.insert(r,t,a),n=!0},p(r,a){i=r},i(r){n||(r&&s.add_render_callback(()=>{o&&o.end(1),e=s.create_in_transition(t,de.draw,{duration:i[1],delay:i[0]}),e.start()}),n=!0)},o(r){e&&e.invalidate(),r&&(o=s.create_out_transition(t,de.draw,{duration:i[1],delay:i[2]})),n=!1},d(r){r&&s.detach(t),r&&o&&o.end()}}}function rh(i){let t,e,o,n,r,a=i[3]&&Ui(i);return{c(){t=s.svg_element("svg"),e=s.svg_element("defs"),o=s.svg_element("linearGradient"),n=s.svg_element("stop"),r=s.svg_element("stop"),a&&a.c(),s.attr(n,"offset","25%"),s.attr(n,"stop-color","white"),s.attr(n,"stop-opacity","1"),s.attr(r,"offset","100%"),s.attr(r,"stop-color","white"),s.attr(r,"stop-opacity","0.5"),s.attr(o,"id",i[4]),s.attr(o,"gradientUnits","userSpaceOnUse"),s.attr(t,"class","straight-line svelte-1omzoh4"),s.attr(t,"viewBox","0 0 148 1"),s.attr(t,"preserveAspectRatio","none")},m(l,c){s.insert(l,t,c),s.append(t,e),s.append(e,o),s.append(o,n),s.append(o,r),a&&a.m(t,null)},p(l,[c]){l[3]?a?(a.p(l,c),c&8&&s.transition_in(a,1)):(a=Ui(l),a.c(),s.transition_in(a,1),a.m(t,null)):a&&(s.group_outros(),s.transition_out(a,1,1,()=>{a=null}),s.check_outros())},i(l){s.transition_in(a)},o(l){s.transition_out(a)},d(l){l&&s.detach(t),a&&a.d()}}}function ah(i,t,e){let{inDelay:o=0}=t,{duration:n=0}=t,{outDelay:r=0}=t,{unfolded:a}=t;const l=fe();return i.$$set=c=>{"inDelay"in c&&e(0,o=c.inDelay),"duration"in c&&e(1,n=c.duration),"outDelay"in c&&e(2,r=c.outDelay),"unfolded"in c&&e(3,a=c.unfolded)},[o,n,r,a,l]}class Vi extends s.SvelteComponent{constructor(t){super(),s.init(this,t,ah,rh,s.safe_not_equal,{inDelay:0,duration:1,outDelay:2,unfolded:3},nh)}}function lh(i){s.append_styles(i,"svelte-faoauy",".shadow.svelte-faoauy{position:absolute}")}function Ji(i){let t,e,o,n,r;return{c(){t=s.element("div"),s.attr(t,"class","shadow svelte-faoauy"),s.attr(t,"style",e=`
525
+ `,e.container.style.pointerEvents="none";const o=b=>(e.wrapper=b,b.appendChild(e.container),c(),!0),n=b=>{e.itemLabels=Cu(b),c()},r=()=>(e.enabled||(e.enabled=!0,c()),!0),a=()=>(e.enabled&&(e.enabled=!1,c()),!0),l=()=>{u(),e.container.remove()},c=()=>{var b;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(b=e.app)==null||b.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:i,itemLabels:e.itemLabels}):e.app=new wu({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}})}},d=()=>{i.on("modeChange",f),i.once("dispose",l)},u=()=>{i.off("modeChange",f)},f=b=>{if(b!==J.Five.Mode.Panorama){e.fiveModeEnabled=!1,a();return}i.once("initAnimationEnded",()=>{e.fiveModeEnabled=!0,r()})};return d(),{appendTo:o,load:n,enable:r,disable:a,dispose:l,hooks:e.hooks}},Eu={name:"ItemLabelPlugin",version:0};class ku extends St{constructor(e){super(e);m(this,"state");m(this,"container");m(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(q(B({},e),{userAction:!0}))}disable(e){this.enabled=!1,this.updateState(q(B({},e),{userAction:!0}))}show(e){if(!!this.state.enabled)return this.setState(q(B({},this.state),{visible:!0}),e),Promise.resolve()}hide(e){if(!!this.state.enabled)return this.setState(q(B({},this.state),{visible:!1}),e),Promise.resolve()}dispose(){this.container.remove()}setState(e,o){if(!this.enabled)return;const n=B({},this.state);this.state=B(B(B({},this.state),e),o),this.stateChangedCallback(n,o)}get visible(){return this.five.state.mode===J.Five.Mode.Panorama}appendTo(e){!this.enabled||(this.container=e,this.render())}updateState(e){this.setState(q(B({},this.state),{enabled:this.enabled,visible:this.visible}),e)}}function xu(i){s.append_styles(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 Du(i){let t,e,o,n,r,a,l,c;return{c(){t=s.element("div"),e=s.element("div"),o=s.element("span"),o.textContent=`${i[8]}`,n=s.space(),r=s.element("i"),s.attr(o,"class","plugin-DoorLabelPlugin-txt svelte-wpy7pz"),s.attr(r,"class","plugin-DoorLabelPlugin-icon svelte-wpy7pz"),s.attr(e,"class",a=s.null_to_empty(Ce.default("plugin-DoorLabelPlugin-cnt",i[0].toward))+" svelte-wpy7pz"),s.attr(e,"style",`transform: ${i[6]||"initial"};pointer-events: ${i[5]?"auto":"none"};opacity: ${i[5]?1:0}`),s.attr(e,"data-camera-toward",i[7]),s.attr(t,"style",`left: ${i[3]||0}%;top: ${i[4]||0}%;opacity: ${i[5]?1:0}`),s.attr(t,"class","plugin-DoorLabelPlugin-item svelte-wpy7pz")},m(d,u){s.insert(d,t,u),s.append(t,e),s.append(e,o),s.append(e,n),s.append(e,r),i[10](t),l||(c=s.listen(e,"click",i[9]),l=!0)},p(d,[u]){u&1&&a!==(a=s.null_to_empty(Ce.default("plugin-DoorLabelPlugin-cnt",d[0].toward))+" svelte-wpy7pz")&&s.attr(e,"class",a)},i:s.noop,o:s.noop,d(d){d&&s.detach(t),i[10](null),l=!1,c()}}}function Su(i,t,e){let{props:o}=t,{onClick:n}=t,r,{left:a,top:l,inSight:c,transform:d,panoIndex:u,cameraToward:f,name:h}=o,p=0;const g=()=>{if(!a||!l||!c||!r)return;const v=r.current.clientWidth/window.innerWidth*100,C=r.current.clientHeight/window.innerHeight*100;if(a<=v/2||a>=100-v/2||l<=C/2||l>=100-C/2)return;u!==p&&(console.log("panoDoorLabelPlugin",u,"\u89E6\u53D1\u57CB\u70B9"),p=u)},A=v=>{n&&n()};function b(v){s.binding_callbacks[v?"unshift":"push"](()=>{r=v,e(2,r)})}return i.$$set=v=>{"props"in v&&e(0,o=v.props),"onClick"in v&&e(1,n=v.onClick)},g(),[o,n,r,a,l,c,d,f,h,A,b]}class Lu extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Su,Du,s.safe_not_equal,{props:0,onClick:1},xu)}}function _u(i,t){const e=Math.abs(i.top+i.height/2-t.top-t.height/2),o=Math.abs(i.left+i.width/2-t.left-t.width/2),n=(i.height+t.height)/2,r=(i.width+t.width)/2;return!(e>n&&o>r)}function zu(i){const{camera:t}=i,e=t.getWorldDirection(new M.Vector3);let o=Math.atan(e.z/e.x)*180/Math.PI,n="";return e.x<0&&(o+=180),o<0&&(o+=360),o>315||o<=45?n="right":o>45&&o<=135?n="back":o>135&&o<=225?n="left":o>225&&o<=315&&(n="forward"),n}function Mu(i,t){return Math.sqrt(Math.pow(i.z-t.z,2)+Math.pow(i.x-t.x,2))}function ju(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 Bu={userAction:!0};class Tu extends ku{constructor(e){super(e);m(this,"MinVisibledistance",1.8);m(this,"MaxVisibledistance",5);m(this,"OffsetHeight",-1.3);m(this,"rooms");m(this,"floorplanServerData");m(this,"doorLabelItems");m(this,"visibleLabelMap",new Map);m(this,"labelItems",[]);m(this,"doorLabels");m(this,"roomObservers");m(this,"loadData",(e,o)=>{o&&(this.MaxVisibledistance=o.MaxVisibledistance,this.MinVisibledistance=o.MinVisibledistance,this.OffsetHeight=o.OffsetHeight),this.doorLabelItems&&this.doorLabelItems.length>0&&this.doorLabelItems.forEach(n=>{n.$destroy()}),this.labelItems=[],this.doorLabels=[],this.doorLabelItems=[],this.floorplanServerData=e,this.five.once("panoArrived",()=>{console.log("doorplugin","panoArrived"),this.initData()})});m(this,"initRoomObservers",()=>{var r,a;const e=this.floorplanServerData.computed_data.floor_datas||[],n=(((a=(r=this.five)==null?void 0:r.work)==null?void 0:a.observers)||[]).map(l=>{const c=l.panoIndex,d=l.floorIndex,u=e==null?void 0:e.find(f=>f.floor_index===d);if(u){const f=u.rooms.find(h=>h.observer_indexs.includes(c));if(f)return{panoIndex:c,floorIndex:d,name:f.name}}}).filter(Boolean);this.roomObservers=n});m(this,"hideAllLabels",()=>{this.labelItems.forEach(e=>{e.visible=!1,e.inSight=!1}),this.render()});m(this,"fixDoorVisibleAndPosition",()=>{this.initRoomObservers();const{panoIndex:e}=this.five;if(!this.visible||this.five.model.empty||e===null||!this.roomObservers.find(l=>l.panoIndex===e))return;const o=this.roomObservers.find(l=>l.panoIndex===e),r=this.five.work.observers.find(l=>l.panoIndex===e).position.clone(),a=(()=>{if(this.visibleLabelMap.has(e))return this.visibleLabelMap.get(e);{const l=[];return this.doorLabels.forEach((c,d)=>{if(c.roomName===o.name)return;const u=c.position.clone(),f=u.distanceTo(r);if(f<this.MinVisibledistance||f>this.MaxVisibledistance)return;const h=new M.Raycaster,p=u.clone().sub(r).normalize();h.set(r,p);const[g]=this.five.model.intersectRaycaster(h);g&&g.distance+.1<f||l.push(d)}),this.visibleLabelMap.set(e,l),l}})();this.labelItems.forEach((l,c)=>{l.visible=a.includes(c)}),this.fixDoorPosition()});m(this,"fixDoorPosition",()=>{var u,f,h,p,g,A,b,v,C,y,E,k;const{panoIndex:e,camera:o}=this.five;if(e===null)return;if(this.five.currentMode!=="Panorama")return this.hideAllLabels();const n=this.five.getElement(),r=n.clientWidth,a=n.clientHeight,l=o.getWorldDirection(new M.Vector3),c=[],d=[...this.labelItems];if(d.forEach((w,D)=>{if(w.visible){const x=o.position.distanceTo(w.position),z=w.position.clone().add(new M.Vector3(0,this.OffsetHeight,0)),j=z.clone().sub(o.position).normalize().angleTo(l),R=z.clone().project(o),P=(R.x+1)/2.2*100,S=(-R.y+1)/2.2*100,L=P>=0&&P<=100&&S>=0&&S<=100&&x>this.MinVisibledistance&&x<=this.MaxVisibledistance;w.left=P,w.top=S,w.inSight=L&&j<Math.PI/2,w.cameraToward=zu(this.five),L?c.push({disFromCameraToLabel:x,left:P,top:S,index:D}):w.transform="translate(-50%, -50%)"}else w.inSight=!1}),c.length>1){let w=0;c.sort((D,x)=>x.disFromCameraToLabel-D.disFromCameraToLabel);for(let D=1;D<c.length;D++){const{index:x,left:z,top:_}=c[D-1],{index:j,left:R,top:P}=c[D],S=this.container.children[x],L=this.container.children[j];if(!S||!L)return;const T={left:r*z/100,top:a*_/100,width:(h=(f=(u=S.children)==null?void 0:u[0])==null?void 0:f.clientWidth)!=null?h:0,height:(A=(g=(p=S.children)==null?void 0:p[0])==null?void 0:g.clientHeight)!=null?A:0},O={left:r*R/100,top:a*P/100,width:(C=(v=(b=L.children)==null?void 0:b[0])==null?void 0:v.clientWidth)!=null?C:0,height:(k=(E=(y=L.children)==null?void 0:y[0])==null?void 0:E.clientHeight)!=null?k:0};_u(T,O)&&(w++,d[x].transform=`translate(-50%, ${(w-1)*100-50}%)`,d[j].transform=`translate(-50%, ${w*100-50}%)`)}}this.labelItems=d,this.render()});m(this,"onClick",(e,o)=>{if(!this.roomObservers)return;const{work:n}=this.five;let r,a,l=1/0;for(let c=0;c<n.observers.length;c++){if(this.roomObservers[c].name!==e)continue;const u=n.observers[c].standingPosition,f=o.distanceTo(u);f<l&&(r=c,a=u.clone().sub(o).normalize(),l=f)}if(a!==null&&r!==null){const c={};if(l>0){const u=new M.Vector3(0,0,-1),f=a.clone(),h=new M.Quaternion;h.setFromUnitVectors(u,f);const p=new M.Euler;p.setFromQuaternion(h,"YXZ"),c.longitude=p.y}this.five.emit("wantsToMoveToPano",r,{},!0)||this.five.moveToPano(r,{longitude:c.longitude})}});m(this,"initData",()=>{var r;this.doorLabels=[];const e=this.five.panoIndex,o=this.floorplanServerData.computed_data.observers[e].floor_index,n=o!==void 0&&((r=this.floorplanServerData.computed_data.floor_datas[o])==null?void 0:r.rooms);this.rooms=n,this.rooms&&this.rooms.length>0&&this.rooms.forEach(a=>{var d;const l=(d=this.floorplanServerData.computed_data.doors)==null?void 0:d.filter(u=>!!(u&&u.name===a.name)),c=this.five.work.observers.filter((u,f)=>!!a.observer_indexs.find(h=>h===f));l&&l.forEach(u=>{const f=u.position;let h=1/0,p;c.forEach(A=>{const b=A.standingPosition,v={x:b.x,y:b.y,z:b.z},C=Mu(f,v);C<h&&(h=C,p=v)}),p&&(f.y=p.y+.01);const g=new M.Vector3(f.x,f.y,f.z);g.add(new M.Vector3(-.2,1.8,0).applyEuler(new M.Euler(0,u.rad,0))),this.doorLabels.push({roomName:a.name,name:u.name,position:g,toward:ju(u.rad)})})}),this.labelItems=this.doorLabels.map(a=>q(B({},a),{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,o){if(this.hooks.hasListener("stateChange")){const n={state:this.state,prevState:e,userAction:o?o.userAction:Bu.userAction};this.hooks.emit("stateChange",n)}}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 Lu({target:this.container,props:{props:e,onClick:()=>{this.onClick(e.name,e.position)}}}))})}initState(){return{enabled:!0,visible:!0}}dispose(){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 Qu=i=>new Tu(i),Ou=2,Ru=3,Fu=3,Hu=2;function Gu(i,t){var a,l,c;if(i.length<2)return console.warn("positionList length must be greater than 1"),[];const e=(a=t==null?void 0:t.unitWidth)!=null?a:.5,o=(l=t==null?void 0:t.unitHeight)!=null?l:.5,n=(c=t==null?void 0:t.skipPanoIndexMesh)!=null?c:!1,r=new I.CatmullRomCurve3(i,!1,"catmullrom",1);if(n){const d=Math.ceil(r.getLength()/o*1.5),u=r.getPoints(d),f=[];let h=0;const p=i;return p.forEach((g,A)=>{let b=0,v=99999999;u.forEach((w,D)=>{const x=w.distanceTo(g);x<v&&(b=D,v=x)});const C=u[b+1],y=C==null?void 0:C.distanceTo(g),E=u[b-1],k=E==null?void 0:E.distanceTo(g);if(b>h&&b-h>1){let w=b;E!==void 0&&k>.8&&(w=b+1),E!==void 0&&k>.2&&k<.3?w=b:v>.2&&v<.3&&(w=b+1);let D=h;if(C!==void 0&&y>.2&&y<.3?D=h+1:v>.2&&v<.3&&(D=h),u[D]&&u[D+1]){const _=p[A-1];if(_)if(_.equals(u[D]))D+=1;else{const j=new M.Vector3().subVectors(u[D+1],u[D]),R=new M.Vector3().subVectors(_,u[D]);j.angleTo(R)<Math.PI/2&&(D+=1)}}if(w<D||w-D<=1)return;const x=u.slice(D,w),z=ji(x,e,o);f.push(z),h=b}}),f}else{const d=Math.ceil(r.getLength()),u=r.getPoints(d);return[ji(u,e,o)]}}function ji(i,t,e){const o=t/2,n=e/t,r=i.length,a=pr.default(i.map(v=>[v.x,v.z])),c=(i.length-1)*Ou*Ru,d=2*r,u=d*Fu,f=d*Hu,h=new Uint32Array(c),p=new Float32Array(u),g=new Float32Array(f);i.forEach((v,C)=>{});let A=0;for(let v=0;v<i.length;v++){const[C,y]=a[v][0],E=i[v],{x:k,y:w,z:D}=E,x=new M.Vector3(k+C*o,w+.05,D+y*o);p[v*6+0]=x.x,p[v*6+1]=x.y,p[v*6+2]=x.z;const z=new M.Vector3(k-C*o,w+.05,D-y*o);p[v*6+3]=z.x,p[v*6+4]=z.y,p[v*6+5]=z.z,A+=v>0?i[v-1].clone().sub(i[v]).length():0;const _=A/t/n;g[v*4+0]=0,g[v*4+1]=_,g[v*4+2]=1,g[v*4+3]=_,v!==i.length-1&&(h[v*6+0]=v*2+0,h[v*6+1]=v*2+2,h[v*6+2]=v*2+1,h[v*6+3]=v*2+2,h[v*6+4]=v*2+3,h[v*6+5]=v*2+1)}const b=new I.BufferGeometry;return b.setAttribute("position",new I.BufferAttribute(p,3)),b.setAttribute("uv",new I.BufferAttribute(g,2)),b.setIndex(new I.BufferAttribute(h,1)),b}function Nu(i){const t=new I.TextureLoader().load(i.textureUrl);return t.wrapS=t.wrapT=I.RepeatWrapping,t.encoding=I.sRGBEncoding,new I.MeshBasicMaterial({color:16777215,map:t,transparent:!0,opacity:.8})}function Wu(i){return!Ue(i)}function Ue(i){return i!=null}const Bi="v1.0.1",Ti="GuideLinePlugin",Po=`${Ti}@${Bi}`,Qi=i=>`${Po}--${i}`;class Oi extends We{constructor(e,o){super(e,o);m(this,"state",{visible:!1,enabled:!0,disposed:!1});m(this,"data");m(this,"linesGroup");m(this,"disposedErrorLog",()=>{console.error(`${Po} is disposed`)});m(this,"actionWhenEnabled",e=>{if(this.state.enabled)return e()});Object.assign(window,{[`__${Ti}_DEBUG__`]:this})}load(e,o,n=!0){return G(this,null,function*(){const r=this.data?JSON.parse(JSON.stringify(this.data)):void 0,a=yield this.formatData(e);this.hooks.emit("dataChange",a,r),this.data=a,this.linesGroup&&this.five.scene.remove(this.linesGroup);const l=this.getLinesGroup(a.routes);!l||(this.linesGroup=l,yield this.waitFiveModelLoaded(),this.five.scene.add(l),this.handleVisible(this.state.visible),this.handleEnable(this.state.enabled),o&&this.setState(o),this.five.needsRender=!0,this.hooks.emit("dataLoaded",a),console.log(`${Po} loaded`,a))})}formatData(e){return G(this,null,function*(){return typeof e=="object"&&e!==null&&e.version&&e.data?e.data:e})}show(e){return G(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return G(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,o){var r;if(this.state.disposed)return this.disposedErrorLog();const n=B({},this.state);this.state=B(B({},this.state),e),e.disposed!==void 0&&e.disposed!==n.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==n.visible&&this.handleVisible(e.visible,o==null?void 0:o.userAction),e.enabled!==void 0&&e.enabled!==n.enabled&&this.handleEnable(e.enabled,o==null?void 0:o.userAction),Pe(n,this.state,{deep:!0})||(this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:(r=o==null?void 0:o.userAction)!=null?r:!0}),this.five.needsRender=!0)}handleEnable(e,o=!0){this.linesGroup&&(e?(this.five.scene.add(this.linesGroup),this.actionWhenEnabled(()=>this.hooks.emit("enable",{userAction:o}))):(this.five.scene.remove(this.linesGroup),this.hooks.emit("disable",{userAction:o})))}handleVisible(e,o=!0){this.linesGroup&&(e?(this.linesGroup.visible=!0,this.actionWhenEnabled(()=>this.hooks.emit("show",{userAction:o}))):(this.linesGroup.visible=!1,this.actionWhenEnabled(()=>this.hooks.emit("hide",{userAction:o}))))}handleDispose(){this.linesGroup&&this.five.scene.add(this.linesGroup)}getLinesGroup(e){const o=e.map(this.getLine.bind(this)).filter(Ue),n=new I.Group;if(n.name=Qi("route-group"),o.length!==0)return n.add(...o),n}getLine(e){var l,c,d,u;const o=new I.Group,n=e.panoIndexList.map(f=>{var h;return(h=this.five.work.observers[f])==null?void 0:h.standingPosition}).filter(Ue),r=Gu(n,{skipPanoIndexMesh:(l=e.skipPanoIndexMesh)!=null?l:!0,unitWidth:(c=e.unitWidth)!=null?c:.6,unitHeight:(d=e.unitHeight)!=null?d:.4});if(!r)return;const a=Nu({textureUrl:(u=e.arrowTextureUrl)!=null?u:this.staticPrefix+"/release/web/arrow6.b6ce0c62.png"});return r.forEach(f=>{const h=new I.Mesh(f,a);h.name=Qi("route-line-mesh"),o.add(h)}),o}waitFiveModelLoaded(){return G(this,null,function*(){return new Promise(e=>{if(this.five.model.loaded){e();return}this.five.once("modelLoaded",()=>{e()})})})}}m(Oi,"lasestVersion",Bi);const Ri=(i,t)=>new Oi(i,t);function Fi(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 Xu(i,t){const e=Fi(i),o=Fi(t);return e.angleTo(o)}const Yu=i=>G(this,null,function*(){try{i().then(()=>{},()=>{}).catch(()=>{})}catch(t){}}),Gt=Math.PI*2;function Uu(i){return i>=0&&i<Gt?i:(i%Gt+Gt)%Gt}function Vu(i){return{longitude:Uu(-Math.atan2(i.x,-i.z)),latitude:-Math.asin(i.y/1)}}function Ju(i,t,e,o){const n=-i/e,r=i;return n*o+r}function Zu(i){return new Promise(t=>{setTimeout(()=>{t()},i)})}const Hi="v1.0.6",Gi="CruisePlugin",Nt=`${Gi}@${Hi}`,Ni=()=>{console.error(`${Nt} is disposed`)},qu=()=>{console.warn(`${Nt} is disabled`)},Ku=()=>{console.error(`${Nt} is disabled`)},Io=new Map;class Eo extends We{constructor(e,o){super(e,o);m(this,"state",{visible:!0,enabled:!0,disposed:!1,playing:!1,speed:1,config:{speedConfig:{rotateSpeed:.001,rotateSpeedUnit:"rad/ms",moveSpeed:.002,moveSpeedUnit:"m/ms"}}});m(this,"data");m(this,"config");m(this,"privateState",{playing:!1,currentPlayQueue:[],currentPlayKeyframe:null,broke:!1,disposers:[],modeChanging:!1});m(this,"GuideLine");this.config=o,Object.assign(window,{[`__${Gi}_DEBUG__`]:this});const n=this.setFiveLinearUpdateCamera.bind(this),r=this.setFiveOriginUpdateCamera.bind(this);this.hooks.on("play",n),this.hooks.on("broke",r),this.hooks.on("end",r),this.hooks.on("pause",r),this.privateState.disposers.push(()=>{this.hooks.off("play",n),this.hooks.off("broke",r),this.hooks.off("end",r),this.hooks.off("pause",r)})}load(e,o,n){return G(this,null,function*(){var u,f,h,p,g;if(this.state.disposed)return Ni();this.privateState.fiveOriginGetProgress||(f=(u=this.five.controller)==null?void 0:u.cameraMotion)!=null&&f.getProgress||(yield this.waitFiveLoaded(),this.privateState.fiveOriginGetProgress=(p=(h=this.five.controller)==null?void 0:h.cameraMotion)==null?void 0:p.getProgress),this.clear();const r=this.data?JSON.parse(JSON.stringify(this.data)):void 0,a=yield this.formatData(e);this.data=a,this.hooks.emit("dataChange",a,r);let l=[],c;const d=this.data.keyframes.filter(A=>A.data.panoIndex!==void 0);d.filter((A,b)=>{var v;return A.data.panoIndex!==((v=d[b-1])==null?void 0:v.data.panoIndex)}).map(A=>A.data.panoIndex).forEach(A=>{var v,C;const b=(v=this.five.work.observers[A])==null?void 0:v.floorIndex;if(b!==void 0)if(c===b){const y=l.length-1;l[y]=[...(C=l[y])!=null?C:[],A]}else{c=b;const y=l.length;l[y]=[A]}}),this.GuideLine||(this.GuideLine=Ri(this.five,this.config)),(g=this.GuideLine)==null||g.load({routes:l.map(A=>({panoIndexList:A}))}),this.setState({playing:!1}),this.handleVisible(this.state.visible),this.handleEnable(this.state.enabled),this.changePlayState(this.state.playing),this.changeSpeed(this.state.speed),o&&this.setState(o,{userAction:n}),console.log(`${Nt} loaded`,a),this.hooks.emit("dataLoaded",a)})}play(e){this.setState({playing:!0},e)}playFrom(e){const{index:o,id:n,userAction:r}=e;this.state.playing&&this.setState({playing:!1},{userAction:r}),this.setState({playing:!0},{userAction:r,playFromIndex:o,playFromId:n})}playFromStart(e){return this.playFrom(q(B({},e),{index:0}))}pause(e){this.setState({playing:!1},e)}show(e){return G(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return G(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,o){var r;if(this.state.disposed)return Ni();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return Ku();const n=B({},this.state);this.state=B(B({},this.state),e),e.disposed!==void 0&&e.disposed!==n.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==n.visible&&this.handleVisible(e.visible,o==null?void 0:o.userAction),e.enabled!==void 0&&e.enabled!==n.enabled&&this.handleEnable(e.enabled,o==null?void 0:o.userAction),e.playing!==void 0&&e.playing!==n.playing&&this.changePlayState(e.playing,o),e.speed!==void 0&&e.speed!==n.speed&&this.changeSpeed(e.speed,o==null?void 0:o.userAction),Pe(n,this.state,{deep:!0})||this.hooks.emit("stateChange",{state:this.state,prevState:n,userAction:(r=o==null?void 0:o.userAction)!=null?r:!0})}formatData(e){return G(this,null,function*(){this.five.work||(yield this.waitFiveLoaded());const o=this.five.work.observers,n=(()=>{const r=e;return typeof r=="object"&&r!==null&&r.version&&r.data?r.data:r})();if(n.keyframes)return{keyframesId:fe(),keyframes:n.keyframes.map((r,a)=>{var d;const l=n.keyframes[a+1],c=(()=>!l||l.start===void 0||r.end===void 0?0:l.start-r.end)();return B({id:(d=r.uuid)!=null?d:fe(),moveIndex:a,stay:c,index:a},r)})};if(n.panoIndexList){let r=[];const{moveEffect:a,moveToFirstPanoEffect:l}=n;return this.privateState.moveToFirstPanoEffect=l,n.panoIndexList.forEach((c,d)=>{const u=(()=>{var A,b,v,C;const f=n.panoIndexList.slice(d).find(y=>y!==c);if(f===void 0)return;const h=(A=o[c])==null?void 0:A.position,p=(b=o[f])==null?void 0:b.position;if(!p||!h||((v=o[c])==null?void 0:v.floorIndex)!==((C=o[f])==null?void 0:C.floorIndex))return;const g=new I.Vector3().subVectors(p,h);return Vu(g)})();n.moveType===void 0||n.moveType==="justMove"?r.push({moveIndex:d,stay:n.stay,data:B({effect:"Move",panoIndex:c,moveEffect:a},u!=null?u:{})}):n.moveType==="moveAndRotate"&&(r.push({moveIndex:d,stay:n.stay,data:{effect:"Move",panoIndex:c,moveEffect:a}}),u&&r.push({moveIndex:d,stay:n.stay,data:B({effect:"Rotate",panoIndex:c},u)}))}),{keyframesId:fe(),keyframes:r.map((c,d)=>B({id:fe(),index:d},c))}}else throw new Error("format error: data no keyframes or no panoIndexList")})}handleEnable(e,o=!0){var n,r;e?((n=this.GuideLine)==null||n.enable(),this.hooks.emit("enable",{userAction:o})):((r=this.GuideLine)==null||r.disable(),this.changePlayState(!1,{userAction:o}),this.hooks.emit("disable",{userAction:o})),this.state.enabled=e}handleVisible(e,o=!0){var n,r;e?((n=this.GuideLine)==null||n.show(),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:o}))):((r=this.GuideLine)==null||r.hide(),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:o}))),this.state.visible=e}changePlayState(e,o){this.actionIfStateIsEnabled(()=>{var n;return this.hooks.emit("playStateChange",e?"playing":"pause",{userAction:(n=o==null?void 0:o.userAction)!=null?n:!0})}),e?this.handlePlay(o):this.handlePause(o),this.state.playing=e}handlePlay(e){return G(this,null,function*(){var p;const{data:o,state:n,privateState:r,hooks:a}=this;if(r.playing||!(o!=null&&o.keyframes)||(o==null?void 0:o.keyframes.length)===0)return;const l=fe();r.playId=l,r.playing=!0,r.broke=!1;const c=o.keyframes,d=this.getPauseData();(e==null?void 0:e.notEmitEvent)!==!0&&a.emit("play",{userAction:(p=e==null?void 0:e.userAction)!=null?p:!0});let u=!1;const h=yield(()=>G(this,null,function*(){var g,A;if((e==null?void 0:e.playFromIndex)!==void 0)return e.playFromIndex;if((e==null?void 0:e.playFromId)!==void 0)return(g=this.data)==null?void 0:g.keyframes.findIndex(b=>b.id===e.playFromId);if(d!=null&&d.keyframeId){const b=(A=this.data)==null?void 0:A.keyframes.find(v=>v.id===d.keyframeId);if(d!=null&&d.fiveState&&(yield this.move(d.fiveState,{moveEffect:r.moveToFirstPanoEffect})),b){if(b.data.effect==="Move")return b.index;if(b.data.effect==="Rotate"){const v=d.duration!==void 0?d.duration*(1-d.playedProgress):void 0;return yield this.playKeyframe(b,{duration:v}),u=!0,b.index+1}}}}))();this.clearPauseData();for(const g of c){if(r.broke||!n.playing||!r.playing||l!==r.playId)return;if(!(h!==void 0&&g.index<h))try{a.emit("playIndexChange",g.index,g),yield this.playKeyframe(g,{moveEffect:u===!1?r.moveToFirstPanoEffect:void 0,duration:800}),g.stay&&(yield Zu(g.stay)),u===!1&&(u=!0)}catch(A){return Promise.resolve("broke")}}n.playing&&l===r.playId&&(this.setState({playing:!1},{userAction:!1}),a.emit("end"),this.clearPauseData())})}handlePause(e){var a;const{state:o,privateState:n,hooks:r}=this;o.playing=!1,n.playing!==!1&&(n.playing=!1,this.setPauseData(),n.broke||this.forceInteruptUpdateCamera(),(e==null?void 0:e.notEmitEvent)!==!0&&r.emit("pause",{userAction:(a=e==null?void 0:e.userAction)!=null?a:!0}))}playKeyframe(e,o){return G(this,null,function*(){var r;const{privateState:n}=this;return((r=this.privateState.currentPlayKeyframe)==null?void 0:r.keyframe.id)!==e.id&&(this.privateState.currentPlayKeyframe={keyframe:e}),n.currentPlayQueue.push(this.getPlayPromise(e,o)),this.actionPromiseQueue()})}addInterruptListener(e){const o=()=>{this.privateState.modeChanging||e()},n=e;return this.five.once("gesture",n),this.five.once("wantsChangeMode",o),()=>{this.five.off("gesture",n),this.five.once("wantsChangeMode",o)}}getPlayPromise(e,o){return G(this,null,function*(){var r;const n=e.data;if((r=o==null?void 0:o.duration)!=null||e.start!==void 0&&e.end!==void 0&&e.end-e.start,!!n)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 d=()=>{a(),c=!0};switch(n.effect){case"Move":this.move(n,o).then(d);break;case"Rotate":this.rotate(n,o).then(d);break;default:this.rotate(n,o).then(d)}}catch(d){}})})}actionPromiseQueue(){return G(this,null,function*(){const{privateState:e}=this;return new Promise((o,n)=>{if(e.currentPlayQueue.length===0){o();return}const r=e.currentPlayQueue.shift();if(!r){o();return}r.then(o,n)}).then(()=>e.currentPlayQueue.length===0?Promise.resolve():this.actionPromiseQueue())})}move(e,o){return G(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,o);else return Promise.resolve()})}rotate(e,o){return G(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,o);yield this.updateCamera(e,o==null?void 0:o.duration)})}updateCamera(e,o=800){return G(this,null,function*(){const{five:n,privateState:r,state:a}=this;let l=o;const c=(()=>{var h,p;const u=(h=a.config)==null?void 0:h.speedConfig,f=(p=e.rotateSpeed)!=null?p:u==null?void 0:u.rotateSpeed;if((u==null?void 0:u.rotateSpeedUnit)===void 0)return f;if(f!==void 0)return u.rotateSpeedUnit==="rad/ms"?f:f/1e3})();if(c){const u=this.five.getCurrentState();l=Xu(u,e)/c}r.currentPlayKeyframe&&(r.currentPlayKeyframe.originDuration=l);const d=this.getSpeededDuration(l);return new Promise(u=>{Yu(()=>n.updateCamera(e,d)),setTimeout(()=>u(),d)})})}changePano(e,o){return G(this,null,function*(){var f;const{five:n,privateState:r,state:a}=this;if(typeof e.panoIndex!="number"||e.panoIndex===n.panoIndex)return;n.getCurrentState().mode;const l=n.getCurrentState().mode!=="Panorama";l&&(this.privateState.modeChanging=!0);let c=(f=o==null?void 0:o.duration)!=null?f:800;const d=(()=>{var g,A;const h=(g=a.config)==null?void 0:g.speedConfig,p=(A=e.moveSpeed)!=null?A:h==null?void 0:h.moveSpeed;if((h==null?void 0:h.moveSpeedUnit)===void 0)return p;if(p!==void 0)return h.moveSpeedUnit==="m/ms"?p:p/1e3})();if(d&&typeof n.panoIndex=="number"&&typeof e.panoIndex=="number"){const h=n.work.observers[n.panoIndex].position,p=n.work.observers[e.panoIndex].position;c=h.distanceTo(p)/d}r.currentPlayKeyframe&&(r.currentPlayKeyframe.originDuration=c);const u=this.getSpeededDuration(c);yield new Promise(h=>{var p,g,A;n.moveToPano(e.panoIndex,{latitude:e.latitude,longitude:e.longitude,fov:e.fov,duration:u,effect:(A=(g=o==null?void 0:o.moveEffect)!=null?g:(p=this.state.config)==null?void 0:p.moveEffect)!=null?A:e.moveEffect,moveCancelCallback:()=>h(),moveEndCallback:()=>h()}),l&&n.once("panoArrived",()=>h())}),l&&(this.privateState.modeChanging=!1)})}changeSpeed(e,o=!0){const{state:n,privateState:r,hooks:a}=this,{currentPlayKeyframe:l}=r;if(a.emit("speedChange",e,{userAction:o}),n.playing&&l)try{const c=l.originDuration!==void 0?l.originDuration*(1-this.getProgress()):void 0,d=this.playKeyframe(l.keyframe,{duration:c});r.currentPlayQueue.push(d)}catch(c){}}getSpeededDuration(e){return e/this.state.speed}getProgress(){return this.five.controller.cameraMotion.progress}changeMode(e,o){return G(this,null,function*(){e.mode&&e.mode!==this.five.currentMode&&(this.privateState.modeChanging=!0,console.log("this.privateState.modeChanging",this.privateState.modeChanging),yield this.five.changeMode(e.mode,e,o),this.privateState.modeChanging=!1)})}forceInteruptUpdateCamera(){this.five.updateCamera({},0)}getPauseData(){var e,o;if((e=this.data)!=null&&e.keyframesId)return Io.get((o=this.data)==null?void 0:o.keyframesId)}setPauseData(){var e,o,n,r;if((e=this.data)!=null&&e.keyframesId)return Io.set((o=this.data)==null?void 0:o.keyframesId,{keyframeId:(n=this.privateState.currentPlayKeyframe)==null?void 0:n.keyframe.id,fiveState:this.five.getCurrentState(),duration:(r=this.privateState.currentPlayKeyframe)==null?void 0:r.originDuration,playedProgress:this.getProgress()})}clearPauseData(){var e,o;if((e=this.data)!=null&&e.keyframesId)return Io.delete((o=this.data)==null?void 0:o.keyframesId)}clear(){this.clearPauseData(),this.privateState.currentPlayKeyframe=null}handleDispose(){var e,o;this.setState({playing:!1}),this.clearPauseData(),this.clear(),(e=this.GuideLine)==null||e.dispose(),this.GuideLine=void 0,(o=this.privateState.disposers)==null||o.forEach(n=>n==null?void 0:n())}actionIfStateIsEnabled(e,o){if(this.state.enabled)return e();o!=null&&o.warnLog&&qu()}waitFiveLoaded(){return G(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 o=this.five.controller.cameraMotion,n=e-o.startTime;return n<0?0:n>=o.duration?1:1-Ju(1,o.startVelocity,o.duration,n)})}setFiveOriginUpdateCamera(){!this.privateState.fiveOriginGetProgress||(this.five.controller.cameraMotion.getProgress=this.privateState.fiveOriginGetProgress)}}m(Eo,"PluginVersion",Hi);const $u=i=>new Eo(i);function eh(i,t){t.forEach(e=>{const o=new I.SphereGeometry(.02,16,16),n=[],r=[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((a,l)=>{const c=r[l],d=new I.Mesh(o,c);d.position.copy(Se(a)),n.push(d)});else{const a=r[0],l=new I.Mesh(o,a);l.position.copy(Se(e.position)),n.push(l)}n.forEach(a=>{a.material.depthTest=!1,i.scene.add(a)})})}const re=i=>i;function Wi(i){if(i.length<3)return;const t=i.map(ht),e=t[1].clone().sub(t[0]),o=t[2].clone().sub(t[1]);return e.cross(o)}function Wt(i){if(Array.isArray(i)&&i.length===4){const t=i.map(ht);return Ko(t[0],t[2])}else return ht(i)}function Xt(i,t){if(i===void 0)return;const{min:e,max:o}=t!=null?t:{};if(!(e===void 0&&o===void 0))return!(typeof o=="number"&&o<i||typeof e=="number"&&e>i)}function th(i,t){i.model.loaded?t():i.once("modelLoaded",()=>t())}function oh(i,t,e){const n=new I.Plane().setFromNormalAndCoplanarPoint(e,t),r=t.clone().sub(i).cross(new I.Vector3(0,1,0)).setLength(.01),a=new I.Vector3(0,.01,0);return[t.clone().sub(r).sub(a),t.clone().add(r).sub(a),t.clone().add(r).add(a),t.clone().sub(r).add(a)].map(c=>n.projectPoint(c,new I.Vector3))}const Xi=(i,t=1e3/60)=>{let e=null;const o=i;return(...r)=>{e&&clearTimeout(e),e=setTimeout(()=>{o==null||o(...r),e&&clearTimeout(e),e=null},t)}};function sh(i,t=200){let e;return function(...o){e||(i.apply(this,o),e=setTimeout(function(){e=null},t))}}function ih(i,t){const[e,o]=t;if(e>=o||o<=1||e<=1)return-1;const n={},r=a=>(n[a]||(n[a]=i(a)),n[a]);for(let a=e;a<o;a++){const l=r(a),c=r(a-1);if(l<c)return a}return-1}function Yi(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)}}}var ye=(i=>(i.Two="2D",i.Three="3D",i))(ye||{}),Ae=(i=>(i.PointTag="PointTag",i.PlaneTag="PlaneTag",i))(Ae||{}),ve=(i=>(i.Audio="Audio",i.Text="Text",i.ImageText="ImageText",i.Link="Link",i.Marketing="Marketing",i.MediaPlane="MediaPlane",i.Custom="Custom",i))(ve||{}),Yt=(i=>(i.VrLink="vr",i.NormalLink="normal",i))(Yt||{});function nh(i){s.append_styles(i,"svelte-1omzoh4",".straight-line.svelte-1omzoh4{display:block;width:100%;height:100%;overflow:visible}")}function Ui(i){let t,e,o,n;return{c(){t=s.svg_element("path"),s.attr(t,"fill","none"),s.attr(t,"stroke","url(#"+i[4]+")"),s.attr(t,"stroke-width","1"),s.attr(t,"d","M0 0.5 L 148 0.5")},m(r,a){s.insert(r,t,a),n=!0},p(r,a){i=r},i(r){n||(r&&s.add_render_callback(()=>{o&&o.end(1),e=s.create_in_transition(t,de.draw,{duration:i[1],delay:i[0]}),e.start()}),n=!0)},o(r){e&&e.invalidate(),r&&(o=s.create_out_transition(t,de.draw,{duration:i[1],delay:i[2]})),n=!1},d(r){r&&s.detach(t),r&&o&&o.end()}}}function rh(i){let t,e,o,n,r,a=i[3]&&Ui(i);return{c(){t=s.svg_element("svg"),e=s.svg_element("defs"),o=s.svg_element("linearGradient"),n=s.svg_element("stop"),r=s.svg_element("stop"),a&&a.c(),s.attr(n,"offset","25%"),s.attr(n,"stop-color","white"),s.attr(n,"stop-opacity","1"),s.attr(r,"offset","100%"),s.attr(r,"stop-color","white"),s.attr(r,"stop-opacity","0.5"),s.attr(o,"id",i[4]),s.attr(o,"gradientUnits","userSpaceOnUse"),s.attr(t,"class","straight-line svelte-1omzoh4"),s.attr(t,"viewBox","0 0 148 1"),s.attr(t,"preserveAspectRatio","none")},m(l,c){s.insert(l,t,c),s.append(t,e),s.append(e,o),s.append(o,n),s.append(o,r),a&&a.m(t,null)},p(l,[c]){l[3]?a?(a.p(l,c),c&8&&s.transition_in(a,1)):(a=Ui(l),a.c(),s.transition_in(a,1),a.m(t,null)):a&&(s.group_outros(),s.transition_out(a,1,1,()=>{a=null}),s.check_outros())},i(l){s.transition_in(a)},o(l){s.transition_out(a)},d(l){l&&s.detach(t),a&&a.d()}}}function ah(i,t,e){let{inDelay:o=0}=t,{duration:n=0}=t,{outDelay:r=0}=t,{unfolded:a}=t;const l=fe();return i.$$set=c=>{"inDelay"in c&&e(0,o=c.inDelay),"duration"in c&&e(1,n=c.duration),"outDelay"in c&&e(2,r=c.outDelay),"unfolded"in c&&e(3,a=c.unfolded)},[o,n,r,a,l]}class Vi extends s.SvelteComponent{constructor(t){super(),s.init(this,t,ah,rh,s.safe_not_equal,{inDelay:0,duration:1,outDelay:2,unfolded:3},nh)}}function lh(i){s.append_styles(i,"svelte-faoauy",".shadow.svelte-faoauy{position:absolute}")}function Ji(i){let t,e,o,n,r;return{c(){t=s.element("div"),s.attr(t,"class","shadow svelte-faoauy"),s.attr(t,"style",e=`
526
526
  left:${be(i[5])};
527
527
  bottom:${be(i[6])};
528
528
  box-shadow: 0 0 ${be(i[10])} ${be(i[11])} rgba(0, 0, 0, ${i[12]});
@@ -536,9 +536,9 @@ void main() {
536
536
  ${i[8]?"transform: translateX(-50%); left: 50%":""}
537
537
  ${i[9]?"transform: translateX(-50%); top: 50%":""}
538
538
  ${i[7]?"transform: translate(-50%, -50%); left: 50%; top: 50%;":""}
539
- `))&&s.attr(t,"style",e),l&8&&s.set_style(t,"width",be(i[3]),!1),l&16&&s.set_style(t,"height",be(i[4]),!1),l&8192&&s.set_style(t,"z-index",i[13],!1)},i(a){r||(a&&s.add_render_callback(()=>{n&&n.end(1),o=s.create_in_transition(t,de.fade,{duration:i[0]}),o.start()}),r=!0)},o(a){o&&o.invalidate(),a&&(n=s.create_out_transition(t,de.fade,{duration:i[1]})),r=!1},d(a){a&&s.detach(t),a&&n&&n.end()}}}function ch(i){let t,e=i[2]&&Ji(i);return{c(){e&&e.c(),t=s.empty()},m(o,n){e&&e.m(o,n),s.insert(o,t,n)},p(o,[n]){o[2]?e?(e.p(o,n),n&4&&s.transition_in(e,1)):(e=Ji(o),e.c(),s.transition_in(e,1),e.m(t.parentNode,t)):e&&(s.group_outros(),s.transition_out(e,1,1,()=>{e=null}),s.check_outros())},i(o){s.transition_in(e)},o(o){s.transition_out(e)},d(o){e&&e.d(o),o&&s.detach(t)}}}function be(i){return typeof i=="number"?i/16+"rem":i}function dh(i,t,e){let{inDelay:o=1e3}=t,{outDelay:n=1e3}=t,{visible:r=!0}=t,{width:a=0}=t,{height:l=0}=t,{left:c=0}=t,{bottom:d=0}=t,{center:u=!1}=t,{horizontalCenter:f=!1}=t,{verticalCenter:h=!1}=t,{blurRadius:p}=t,{spreadRadius:g}=t,{opacity:A=.15}=t,{zIndex:b=void 0}=t;return i.$$set=v=>{"inDelay"in v&&e(0,o=v.inDelay),"outDelay"in v&&e(1,n=v.outDelay),"visible"in v&&e(2,r=v.visible),"width"in v&&e(3,a=v.width),"height"in v&&e(4,l=v.height),"left"in v&&e(5,c=v.left),"bottom"in v&&e(6,d=v.bottom),"center"in v&&e(7,u=v.center),"horizontalCenter"in v&&e(8,f=v.horizontalCenter),"verticalCenter"in v&&e(9,h=v.verticalCenter),"blurRadius"in v&&e(10,p=v.blurRadius),"spreadRadius"in v&&e(11,g=v.spreadRadius),"opacity"in v&&e(12,A=v.opacity),"zIndex"in v&&e(13,b=v.zIndex)},[o,n,r,a,l,c,d,u,f,h,p,g,A,b]}class we extends s.SvelteComponent{constructor(t){super(),s.init(this,t,dh,ch,s.safe_not_equal,{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},lh)}}function uh(){return Math.random().toString(36).slice(-6)}const Zi=uh();function hh(i){s.append_styles(i,"svelte-1b2n9wi",".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function qi(i,t,e){const o=i.slice();return o[10]=t[e],o[11]=t,o[12]=e,o}function Ki(i){let t,e=i[10]+"",o,n=i[12];const r=()=>i[6](t,n),a=()=>i[6](null,n);return{c(){t=s.element("span"),o=s.text(e),s.attr(t,"class","text-char svelte-1b2n9wi")},m(l,c){s.insert(l,t,c),s.append(t,o),r()},p(l,c){i=l,c&2&&e!==(e=i[10]+"")&&s.set_data(o,e),n!==i[12]&&(a(),n=i[12],r())},d(l){l&&s.detach(t),a()}}}function fh(i){let t,e=i[1],o=[];for(let n=0;n<e.length;n+=1)o[n]=Ki(qi(i,e,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=s.empty()},m(n,r){for(let a=0;a<o.length;a+=1)o[a].m(n,r);s.insert(n,t,r)},p(n,[r]){if(r&3){e=n[1];let a;for(a=0;a<e.length;a+=1){const l=qi(n,e,a);o[a]?o[a].p(l,r):(o[a]=Ki(l),o[a].c(),o[a].m(t.parentNode,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=e.length}},i:s.noop,o:s.noop,d(n){s.destroy_each(o,n),n&&s.detach(t)}}}function mh(i,t,e){let o,{inDelay:n=0}=t,{outDelay:r=0}=t,{content:a}=t,{unfolded:l}=t,c,d=[],u;function f(p){clearTimeout(c),c=setTimeout(function(){!u||(p&&u.reversed||!p&&!u.reversed)&&(u.reverse(),u.play())},p?n:r)}Z.onMount(function(){const p=(()=>{const g=ih(A=>d[A].getBoundingClientRect().x,[Math.min(d.length-1,10),Math.min(d.length-1,30)]);if(g>0)return g})();u=Uo.default({targets:d.filter(Ue).slice(0,p),autoplay:!1,duration:400,scale:[.7,1],rotate:[20,0],opacity:[0,1],translateX:[4,0],translateY:[10,0],delay:Uo.default.stagger(50),easing:"easeInOutCubic"}),l&&u.seek(u.duration)});function h(p,g){s.binding_callbacks[p?"unshift":"push"](()=>{d[g]=p,e(0,d)})}return i.$$set=p=>{"inDelay"in p&&e(2,n=p.inDelay),"outDelay"in p&&e(3,r=p.outDelay),"content"in p&&e(4,a=p.content),"unfolded"in p&&e(5,l=p.unfolded)},i.$$.update=()=>{i.$$.dirty&16&&e(1,o=(()=>{const p=[],g=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")),A=`__EMOJI_SPLIT_${Zi}__`,b=`__EMOJI_${Zi}__`;return a.slice().replace(g,v=>`${A}${b}${v}${A}`).split(A).forEach(v=>v.startsWith(b)?p.push(v.slice(b.length)):p.push(...v.split(""))),p.filter(Boolean)})()),i.$$.dirty&32&&f(l)},[d,o,n,r,a,l,h]}class $i extends s.SvelteComponent{constructor(t){super(),s.init(this,t,mh,fh,s.safe_not_equal,{inDelay:2,outDelay:3,content:4,unfolded:5},hh)}}const ph="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAAKgAAAADUGqULAAAB0ElEQVRYCe2WSUoEQRBFLVHEiVZU1I03cKW38SSewRt4A5fiTty5cQIFR9pZQWkcUNSe2/Z9yISiSGxRkUAy4BGZSVX168gistraYsQKxArECsQKxApYqkDyU5lmsznMM+ZgAGpQhaUkSRbINgLJCXiCBtSgAkVYtGGIBTKj8AgKSVahDNvQa0IUkUG4Bx91BpLdBTOS/cgUIB3a+gMwI9mFzE3a0I3z5B4r292JzGVA8tSSZILMcUDyzIykthOZvYDk+V9Ktmz4yGzhOhV4/+5YU4N/hzqo0StX3Fg5TcnNlYvgs8bPsM4hkScHoyO46haRnGEYktQVI+4ypUYKyXtxyUu27JCceAMJvjo0HoM5CEZ7cPX7i013q3IWVV5r2aw/2TK+svWbPGU68KQCa6pYeus1V0X99quSfvtVSc39lmfz2mdbz32tg1dAJ0421AVs9E7/FxBSezrMmjI/gm5/nYmMkBq+TqBs7LNgTlZH6EnWlPmORdk+pHQipUNfTxtg7p3NIXWRMvXfo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IxXn8pIZJgHtkwpa8togHIiw587LeNx9mc2ZwIK5DOlXJaMFqhWwoMp/Ax+1W+ToOXTHGKNrDMLLo38LmKsQKmbdSrWil+N82UJaS40YTuJv/RdtAdpzet+aJDzvMpQV71oo2gYX5RXG2HnYZXtouzNRzXE3R0KE6jWjZU2iaZ9u8pqpU3UfvwrYSgSBVDtGDurBlHn/zj0QMIh7qlDNOfmcBj9ihKo9o+l1euiWGxSE5eun3na6jxQk3joEgdQ7TR+FWutE43lhQpph3sQvISAVRa9ppRzipY4gZqdw8/WigIWDWt1gD8EIsqSLlT/KPUVlKSAujs2XTLYeRHiIlA2DVi1qkRtK8PSULaEDF+Ue7ashwkTlf8DQc/cITdx9+UAAAAASUVORK5CYII=";function gh(i){s.append_styles(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 on(i){let t,e,o,n,r,a,l,c,d,u;return e=new we({props:{center:!0,blurRadius:9,spreadRadius:3}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),s.attr(n,"class",r="arrow "+i[0]+" svelte-1ogmlqq"),s.set_style(n,"background-image","url("+ph+")"),s.attr(t,"class","arrow-wrapper svelte-1ogmlqq")},m(f,h){s.insert(f,t,h),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),c=!0,d||(u=s.listen(n,"click",i[5]),d=!0)},p(f,h){i=f,(!c||h&1&&r!==(r="arrow "+i[0]+" svelte-1ogmlqq"))&&s.attr(n,"class",r)},i(f){c||(s.transition_in(e.$$.fragment,f),f&&s.add_render_callback(()=>{l&&l.end(1),a=s.create_in_transition(n,de.fade,{duration:i[2],delay:i[3],easing:ce.cubicInOut}),a.start()}),c=!0)},o(f){s.transition_out(e.$$.fragment,f),a&&a.invalidate(),f&&(l=s.create_out_transition(n,de.fade,{duration:i[2],delay:i[4],easing:ce.cubicInOut})),c=!1},d(f){f&&s.detach(t),s.destroy_component(e),f&&l&&l.end(),d=!1,u()}}}function Ah(i){let t,e,o=i[1]&&on(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[1]?o?(o.p(n,r),r&2&&s.transition_in(o,1)):(o=on(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function vh(i,t,e){let{direction:o="right"}=t,{visible:n=!0}=t,{duration:r=0}=t,{inDelay:a=0}=t,{outDelay:l=0}=t;function c(d){s.bubble.call(this,i,d)}return i.$$set=d=>{"direction"in d&&e(0,o=d.direction),"visible"in d&&e(1,n=d.visible),"duration"in d&&e(2,r=d.duration),"inDelay"in d&&e(3,a=d.inDelay),"outDelay"in d&&e(4,l=d.outDelay)},[o,n,r,a,l,c]}class bh extends s.SvelteComponent{constructor(t){super(),s.init(this,t,vh,Ah,s.safe_not_equal,{direction:0,visible:1,duration:2,inDelay:3,outDelay:4},gh)}}function yh(i,t,e=20,o=5){return new Promise((n,r)=>{let a=0;const l=setInterval(()=>{const c=i();t(c)?(clearInterval(l),n(c)):a>=o&&(clearInterval(l),r(c)),a++},e)})}function wh(i){s.append_styles(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 sn(i,t,e){const o=i.slice();return o[11]=t[e].id,o[12]=t[e].content,o}function nn(i,t){let e,o,n;return o=new $i({props:{unfolded:t[0],content:t[12],inDelay:500,outDelay:t[5]}}),{key:i,first:null,c(){e=s.element("div"),s.create_component(o.$$.fragment),s.attr(e,"class","text svelte-1fuzm7v"),s.set_style(e,"transform",t[7],!1),this.first=e},m(r,a){s.insert(r,e,a),s.mount_component(o,e,null),t[10](e),n=!0},p(r,a){t=r;const l={};a&1&&(l.unfolded=t[0]),a&2&&(l.content=t[12]),a&32&&(l.outDelay=t[5]),o.$set(l),a&128&&s.set_style(e,"transform",t[7],!1)},i(r){n||(s.transition_in(o.$$.fragment,r),n=!0)},o(r){s.transition_out(o.$$.fragment,r),n=!1},d(r){r&&s.detach(e),s.destroy_component(o),t[10](null)}}}function rn(i){let t,e,o;return e=new bh({props:{direction:i[6],visible:i[0],inDelay:600,duration:1e3}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),s.attr(t,"class","arrow svelte-1fuzm7v")},m(n,r){s.insert(n,t,r),s.mount_component(e,t,null),o=!0},p(n,r){const a={};r&64&&(a.direction=n[6]),r&1&&(a.visible=n[0]),e.$set(a)},i(n){o||(s.transition_in(e.$$.fragment,n),o=!0)},o(n){s.transition_out(e.$$.fragment,n),o=!1},d(n){n&&s.detach(t),s.destroy_component(e)}}}function Ch(i){let t=[],e=new Map,o,n,r,a=i[1];const l=d=>d[11];for(let d=0;d<a.length;d+=1){let u=sn(i,a,d),f=l(u);e.set(f,t[d]=nn(f,u))}let c=i[3]<i[4]&&rn(i);return{c(){for(let d=0;d<t.length;d+=1)t[d].c();o=s.space(),c&&c.c(),n=s.empty()},m(d,u){for(let f=0;f<t.length;f+=1)t[f].m(d,u);s.insert(d,o,u),c&&c.m(d,u),s.insert(d,n,u),r=!0},p(d,[u]){u&167&&(a=d[1],s.group_outros(),t=s.update_keyed_each(t,u,l,1,d,a,e,o.parentNode,s.outro_and_destroy_block,nn,o,sn),s.check_outros()),d[3]<d[4]?c?(c.p(d,u),u&24&&s.transition_in(c,1)):(c=rn(d),c.c(),s.transition_in(c,1),c.m(n.parentNode,n)):c&&(s.group_outros(),s.transition_out(c,1,1,()=>{c=null}),s.check_outros())},i(d){if(!r){for(let u=0;u<a.length;u+=1)s.transition_in(t[u]);s.transition_in(c),r=!0}},o(d){for(let u=0;u<t.length;u+=1)s.transition_out(t[u]);s.transition_out(c),r=!1},d(d){for(let u=0;u<t.length;u+=1)t[u].d(d);d&&s.detach(o),c&&c.d(d),d&&s.detach(n)}}}function Ph(i,t,e){let o,n,r,{visible:a=!1}=t,{textUnfolded:l=!1}=t,{textItems:c}=t,d,u=0,f=0,h=0;function p(g){s.binding_callbacks[g?"unshift":"push"](()=>{d=g,e(2,d)})}return i.$$set=g=>{"visible"in g&&e(0,a=g.visible),"textUnfolded"in g&&e(8,l=g.textUnfolded),"textItems"in g&&e(1,c=g.textItems)},i.$$.update=()=>{if(i.$$.dirty&5&&d&&a){const{lineHeight:g}=getComputedStyle(d);e(4,h=d.offsetHeight),yh(()=>d==null?void 0:d.offsetHeight,Boolean).then(()=>{e(4,h=d.offsetHeight)}),e(3,f=Number(g.replace("px","")))}i.$$.dirty&280&&e(9,u=l?f-h:0),i.$$.dirty&512&&e(7,o=`translateY(${u}px)`),i.$$.dirty&256&&e(6,n=l?"left":"right"),i.$$.dirty&256&&e(5,r=l?450:0)},[a,c,d,f,h,r,n,o,l,u,p]}class an extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Ph,Ch,s.safe_not_equal,{visible:0,textUnfolded:8,textItems:1},wh)}}function Ih(i){s.append_styles(i,"svelte-18yy5x8",".line.svelte-18yy5x8{position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-18yy5x8{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}")}function ln(i){var h,p;let t,e,o,n,r,a,l,c,d,u,f;return t=new we({props:{visible:i[2],left:i[3]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),n=new Vi({props:{unfolded:i[2],duration:1e3,outDelay:i[5]+40*Math.min((p=(h=i[4][0])==null?void 0:h.content.length)!=null?p:10,15)}}),l=new an({props:{visible:i[2],textUnfolded:i[1],textItems:i[4]}}),{c(){s.create_component(t.$$.fragment),e=s.space(),o=s.element("div"),s.create_component(n.$$.fragment),r=s.space(),a=s.element("div"),s.create_component(l.$$.fragment),s.attr(o,"class","line svelte-18yy5x8"),s.set_style(o,"width",i[3]+"px",!1),s.attr(a,"class","content svelte-18yy5x8"),s.add_render_callback(()=>i[8].call(a))},m(g,A){s.mount_component(t,g,A),s.insert(g,e,A),s.insert(g,o,A),s.mount_component(n,o,null),s.insert(g,r,A),s.insert(g,a,A),s.mount_component(l,a,null),c=s.add_resize_listener(a,i[8].bind(a)),d=!0,u||(f=s.listen(a,"click",i[6]),u=!0)},p(g,A){var y,E;const b={};A&4&&(b.visible=g[2]),A&8&&(b.left=g[3]/2+"px"),t.$set(b);const v={};A&4&&(v.unfolded=g[2]),A&48&&(v.outDelay=g[5]+40*Math.min((E=(y=g[4][0])==null?void 0:y.content.length)!=null?E:10,15)),n.$set(v),A&8&&s.set_style(o,"width",g[3]+"px",!1);const w={};A&4&&(w.visible=g[2]),A&2&&(w.textUnfolded=g[1]),A&16&&(w.textItems=g[4]),l.$set(w)},i(g){d||(s.transition_in(t.$$.fragment,g),s.transition_in(n.$$.fragment,g),s.transition_in(l.$$.fragment,g),d=!0)},o(g){s.transition_out(t.$$.fragment,g),s.transition_out(n.$$.fragment,g),s.transition_out(l.$$.fragment,g),d=!1},d(g){s.destroy_component(t,g),g&&s.detach(e),g&&s.detach(o),s.destroy_component(n),g&&s.detach(r),g&&s.detach(a),s.destroy_component(l),c(),u=!1,f()}}}function Eh(i){let t,e,o=i[0].state&&ln(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[0].state?o?(o.p(n,r),r&1&&s.transition_in(o,1)):(o=ln(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function kh(i,t,e){let o,n,r,{tag:a}=t,l,c=!1,d=[];function u(){e(1,c=!c)}function f(){l=this.clientWidth,e(3,l)}return i.$$set=h=>{"tag"in h&&e(0,a=h.tag)},i.$$.update=()=>{var h;i.$$.dirty&1&&e(2,o=!!((h=a.state)!=null&&h.unfolded)),i.$$.dirty&1&&e(7,n=a.data.text),i.$$.dirty&128&&e(4,d=[{id:fe(),content:n}]),i.$$.dirty&4&&(o||setTimeout(()=>{e(1,c=!1)},20)),i.$$.dirty&2&&e(5,r=c?450:0)},[a,c,o,l,d,r,u,n,f]}class xh extends s.SvelteComponent{constructor(t){super(),s.init(this,t,kh,Eh,s.safe_not_equal,{tag:0},Ih)}}function Dh(i){s.append_styles(i,"svelte-e72ouh",".line.svelte-e72ouh{width:100%;height:100%;overflow:visible}")}function cn(i){let t,e,o,n;return{c(){t=s.svg_element("path"),s.attr(t,"fill","none"),s.attr(t,"stroke","url(#"+i[4]+")"),s.attr(t,"stroke-width","1"),s.attr(t,"d","M0 21 L14 0.5 L105 0.5")},m(r,a){s.insert(r,t,a),n=!0},p(r,a){i=r},i(r){n||(r&&s.add_render_callback(()=>{o&&o.end(1),e=s.create_in_transition(t,de.draw,{duration:i[1],delay:i[0],easing:ce.cubicOut}),e.start()}),n=!0)},o(r){e&&e.invalidate(),r&&(o=s.create_out_transition(t,de.draw,{duration:i[1],delay:i[2],easing:ce.cubicInOut})),n=!1},d(r){r&&s.detach(t),r&&o&&o.end()}}}function Sh(i){let t,e,o,n,r,a=i[3]&&cn(i);return{c(){t=s.svg_element("svg"),e=s.svg_element("defs"),o=s.svg_element("linearGradient"),n=s.svg_element("stop"),r=s.svg_element("stop"),a&&a.c(),s.attr(n,"offset","25%"),s.attr(n,"stop-color","white"),s.attr(n,"stop-opacity","1"),s.attr(r,"offset","100%"),s.attr(r,"stop-color","white"),s.attr(r,"stop-opacity","0.5"),s.attr(o,"id",i[4]),s.attr(o,"gradientUnits","userSpaceOnUse"),s.attr(t,"class","line svelte-e72ouh"),s.attr(t,"viewBox","0 0 105 21")},m(l,c){s.insert(l,t,c),s.append(t,e),s.append(e,o),s.append(o,n),s.append(o,r),a&&a.m(t,null)},p(l,[c]){l[3]?a?(a.p(l,c),c&8&&s.transition_in(a,1)):(a=cn(l),a.c(),s.transition_in(a,1),a.m(t,null)):a&&(s.group_outros(),s.transition_out(a,1,1,()=>{a=null}),s.check_outros())},i(l){s.transition_in(a)},o(l){s.transition_out(a)},d(l){l&&s.detach(t),a&&a.d()}}}function Lh(i,t,e){let{inDelay:o=0}=t,{duration:n=0}=t,{outDelay:r=0}=t,{unfolded:a}=t;const l=fe();return i.$$set=c=>{"inDelay"in c&&e(0,o=c.inDelay),"duration"in c&&e(1,n=c.duration),"outDelay"in c&&e(2,r=c.outDelay),"unfolded"in c&&e(3,a=c.unfolded)},[o,n,r,a,l]}class _h extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Lh,Sh,s.safe_not_equal,{inDelay:0,duration:1,outDelay:2,unfolded:3},Dh)}}function Ve(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function Te(i,t){const e=["__proto__","constructor","prototype"];Object.keys(t).filter(o=>e.indexOf(o)<0).forEach(o=>{typeof i[o]=="undefined"?i[o]=t[o]:Ve(t[o])&&Ve(i[o])&&Object.keys(t[o]).length>0?t[o].__swiper__?i[o]=t[o]:Te(i[o],t[o]):i[o]=t[o]})}function ko(i={}){return i.navigation&&typeof i.navigation.nextEl=="undefined"&&typeof i.navigation.prevEl=="undefined"}function xo(i={}){return i.pagination&&typeof i.pagination.el=="undefined"}function Do(i={}){return i.scrollbar&&typeof i.scrollbar.el=="undefined"}function Ut(i=""){const t=i.split(" ").map(o=>o.trim()).filter(o=>!!o),e=[];return t.forEach(o=>{e.indexOf(o)<0&&e.push(o)}),e.join(" ")}const dn=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function zh(i={},t=!0){const e={on:{}},o={},n={};Te(e,eo.default.defaults),Te(e,eo.default.extendedDefaults),e._emitClasses=!0,e.init=!1;const r={},a=dn.map(c=>c.replace(/_/,"")),l=Object.assign({},i);return Object.keys(l).forEach(c=>{typeof i[c]!="undefined"&&(a.indexOf(c)>=0?Ve(i[c])?(e[c]={},n[c]={},Te(e[c],i[c]),Te(n[c],i[c])):(e[c]=i[c],n[c]=i[c]):c.search(/on[A-Z]/)===0&&typeof i[c]=="function"?t?o[`${c[2].toLowerCase()}${c.substr(3)}`]=i[c]:e.on[`${c[2].toLowerCase()}${c.substr(3)}`]=i[c]:r[c]=i[c])}),["navigation","pagination","scrollbar"].forEach(c=>{e[c]===!0&&(e[c]={}),e[c]===!1&&delete e[c]}),{params:e,passedParams:n,rest:r,events:o}}function Mh({el:i,nextEl:t,prevEl:e,paginationEl:o,scrollbarEl:n,swiper:r},a){ko(a)&&t&&e&&(r.params.navigation.nextEl=t,r.originalParams.navigation.nextEl=t,r.params.navigation.prevEl=e,r.originalParams.navigation.prevEl=e),xo(a)&&o&&(r.params.pagination.el=o,r.originalParams.pagination.el=o),Do(a)&&n&&(r.params.scrollbar.el=n,r.originalParams.scrollbar.el=n),r.init(i)}function jh(i,t,e,o,n){const r=[];if(!t)return r;const a=c=>{r.indexOf(c)<0&&r.push(c)};if(e&&o){const c=o.map(n),d=e.map(n);c.join("")!==d.join("")&&a("children"),o.length!==e.length&&a("children")}return dn.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in i&&c in t)if(Ve(i[c])&&Ve(t[c])){const d=Object.keys(i[c]),u=Object.keys(t[c]);d.length!==u.length?a(c):(d.forEach(f=>{i[c][f]!==t[c][f]&&a(c)}),u.forEach(f=>{i[c][f]!==t[c][f]&&a(c)}))}else i[c]!==t[c]&&a(c)}),r}function Bh({swiper:i,slides:t,passedParams:e,changedParams:o,nextEl:n,prevEl:r,scrollbarEl:a,paginationEl:l}){const c=o.filter(k=>k!=="children"&&k!=="direction"),{params:d,pagination:u,navigation:f,scrollbar:h,virtual:p,thumbs:g}=i;let A,b,v,w,y;o.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(A=!0),o.includes("controller")&&e.controller&&e.controller.control&&d.controller&&!d.controller.control&&(b=!0),o.includes("pagination")&&e.pagination&&(e.pagination.el||l)&&(d.pagination||d.pagination===!1)&&u&&!u.el&&(v=!0),o.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||a)&&(d.scrollbar||d.scrollbar===!1)&&h&&!h.el&&(w=!0),o.includes("navigation")&&e.navigation&&(e.navigation.prevEl||r)&&(e.navigation.nextEl||n)&&(d.navigation||d.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(y=!0);const E=k=>{!i[k]||(i[k].destroy(),k==="navigation"?(d[k].prevEl=void 0,d[k].nextEl=void 0,i[k].prevEl=void 0,i[k].nextEl=void 0):(d[k].el=void 0,i[k].el=void 0))};c.forEach(k=>{if(Ve(d[k])&&Ve(e[k]))Te(d[k],e[k]);else{const C=e[k];(C===!0||C===!1)&&(k==="navigation"||k==="pagination"||k==="scrollbar")?C===!1&&E(k):d[k]=e[k]}}),c.includes("controller")&&!b&&i.controller&&i.controller.control&&d.controller&&d.controller.control&&(i.controller.control=d.controller.control),o.includes("children")&&t&&p&&d.virtual.enabled?(p.slides=t,p.update(!0)):o.includes("children")&&i.lazy&&i.params.lazy.enabled&&i.lazy.load(),A&&g.init()&&g.update(!0),b&&(i.controller.control=d.controller.control),v&&(l&&(d.pagination.el=l),u.init(),u.render(),u.update()),w&&(a&&(d.scrollbar.el=a),h.init(),h.updateSize(),h.setTranslate()),y&&(n&&(d.navigation.nextEl=n),r&&(d.navigation.prevEl=r),f.init(),f.update()),o.includes("allowSlideNext")&&(i.allowSlideNext=e.allowSlideNext),o.includes("allowSlidePrev")&&(i.allowSlidePrev=e.allowSlidePrev),o.includes("direction")&&i.changeDirection(e.direction,!1),i.update()}const Th=i=>({virtualData:i&512}),un=i=>({virtualData:i[9]}),Qh=i=>({virtualData:i&512}),hn=i=>({virtualData:i[9]}),Oh=i=>({virtualData:i&512}),fn=i=>({virtualData:i[9]}),Rh=i=>({virtualData:i&512}),mn=i=>({virtualData:i[9]}),Fh=i=>({virtualData:i&512}),pn=i=>({virtualData:i[9]});function gn(i){let t,e,o;return{c(){t=s.element("div"),e=s.space(),o=s.element("div"),s.attr(t,"class","swiper-button-prev"),s.attr(o,"class","swiper-button-next")},m(n,r){s.insert(n,t,r),i[13](t),s.insert(n,e,r),s.insert(n,o,r),i[14](o)},p:s.noop,d(n){n&&s.detach(t),i[13](null),n&&s.detach(e),n&&s.detach(o),i[14](null)}}}function An(i){let t;return{c(){t=s.element("div"),s.attr(t,"class","swiper-scrollbar")},m(e,o){s.insert(e,t,o),i[15](t)},p:s.noop,d(e){e&&s.detach(t),i[15](null)}}}function vn(i){let t;return{c(){t=s.element("div"),s.attr(t,"class","swiper-pagination")},m(e,o){s.insert(e,t,o),i[16](t)},p:s.noop,d(e){e&&s.detach(t),i[16](null)}}}function Hh(i){let t,e,o,n,r,a,l=ko(i[2]),c,d=Do(i[2]),u,f=xo(i[2]),h,p,g;const A=i[12]["container-start"],b=s.create_slot(A,i,i[11],pn),v=i[12]["wrapper-start"],w=s.create_slot(v,i,i[11],mn),y=i[12].default,E=s.create_slot(y,i,i[11],fn),k=i[12]["wrapper-end"],C=s.create_slot(k,i,i[11],hn);let D=l&&gn(i),x=d&&An(i),z=f&&vn(i);const L=i[12]["container-end"],j=s.create_slot(L,i,i[11],un);let O=[{class:p=Ut(`${i[1]}${i[0]?` ${i[0]}`:""}`)},i[3]],P={};for(let S=0;S<O.length;S+=1)P=s.assign(P,O[S]);return{c(){t=s.element("div"),b&&b.c(),e=s.space(),o=s.element("div"),w&&w.c(),n=s.space(),E&&E.c(),r=s.space(),C&&C.c(),a=s.space(),D&&D.c(),c=s.space(),x&&x.c(),u=s.space(),z&&z.c(),h=s.space(),j&&j.c(),s.attr(o,"class","swiper-wrapper"),s.set_attributes(t,P)},m(S,_){s.insert(S,t,_),b&&b.m(t,null),s.append(t,e),s.append(t,o),w&&w.m(o,null),s.append(o,n),E&&E.m(o,null),s.append(o,r),C&&C.m(o,null),s.append(t,a),D&&D.m(t,null),s.append(t,c),x&&x.m(t,null),s.append(t,u),z&&z.m(t,null),s.append(t,h),j&&j.m(t,null),i[17](t),g=!0},p(S,[_]){b&&b.p&&(!g||_&2560)&&s.update_slot_base(b,A,S,S[11],g?s.get_slot_changes(A,S[11],_,Fh):s.get_all_dirty_from_scope(S[11]),pn),w&&w.p&&(!g||_&2560)&&s.update_slot_base(w,v,S,S[11],g?s.get_slot_changes(v,S[11],_,Rh):s.get_all_dirty_from_scope(S[11]),mn),E&&E.p&&(!g||_&2560)&&s.update_slot_base(E,y,S,S[11],g?s.get_slot_changes(y,S[11],_,Oh):s.get_all_dirty_from_scope(S[11]),fn),C&&C.p&&(!g||_&2560)&&s.update_slot_base(C,k,S,S[11],g?s.get_slot_changes(k,S[11],_,Qh):s.get_all_dirty_from_scope(S[11]),hn),_&4&&(l=ko(S[2])),l?D?D.p(S,_):(D=gn(S),D.c(),D.m(t,c)):D&&(D.d(1),D=null),_&4&&(d=Do(S[2])),d?x?x.p(S,_):(x=An(S),x.c(),x.m(t,u)):x&&(x.d(1),x=null),_&4&&(f=xo(S[2])),f?z?z.p(S,_):(z=vn(S),z.c(),z.m(t,h)):z&&(z.d(1),z=null),j&&j.p&&(!g||_&2560)&&s.update_slot_base(j,L,S,S[11],g?s.get_slot_changes(L,S[11],_,Th):s.get_all_dirty_from_scope(S[11]),un),s.set_attributes(t,P=s.get_spread_update(O,[(!g||_&3&&p!==(p=Ut(`${S[1]}${S[0]?` ${S[0]}`:""}`)))&&{class:p},_&8&&S[3]]))},i(S){g||(s.transition_in(b,S),s.transition_in(w,S),s.transition_in(E,S),s.transition_in(C,S),s.transition_in(j,S),g=!0)},o(S){s.transition_out(b,S),s.transition_out(w,S),s.transition_out(E,S),s.transition_out(C,S),s.transition_out(j,S),g=!1},d(S){S&&s.detach(t),b&&b.d(S),w&&w.d(S),E&&E.d(S),C&&C.d(S),D&&D.d(),x&&x.d(),z&&z.d(),j&&j.d(S),i[17](null)}}}function Gh(i,t,e){const o=["class","swiper"];let n=s.compute_rest_props(t,o),{$$slots:r={},$$scope:a}=t;const l=Z.createEventDispatcher();let{class:c=void 0}=t,d="swiper",u=!1,f=null,h=null,p,g,A,b,v=null,w=null,y=null,E=null,k=null,C={slides:[]};function D(){return f}const x=T=>{e(9,C=T),Z.tick().then(()=>{f.$wrapperEl.children(".swiper-slide").each(R=>{R.onSwiper&&R.onSwiper(f)}),f.updateSlides(),f.updateProgress(),f.updateSlidesClasses(),f.lazy&&f.params.lazy.enabled&&f.lazy.load()})},z=()=>{p=zh(n),e(2,g=p.params),A=p.passedParams,e(3,b=p.rest)};z(),h=A;const L=()=>{u=!0};if(g.onAny=(T,...R)=>{l(T,R)},Object.assign(g.on,{_beforeBreakpoint:L,_containerClasses(T,R){e(1,d=R)}}),f=new eo.default(g),Z.setContext("swiper",f),f.virtual&&f.params.virtual.enabled){const T={cache:!1,renderExternal:R=>{x(R),g.virtual&&g.virtual.renderExternal&&g.virtual.renderExternal(R)},renderExternalUpdate:!1};Te(f.params.virtual,T),Te(f.originalParams.virtual,T)}Z.onMount(()=>{!v||(Mh({el:v,nextEl:y,prevEl:w,paginationEl:k,scrollbarEl:E,swiper:f},g),l("swiper",[f]),!g.virtual&&f.slides.each(T=>{T.onSwiper&&T.onSwiper(f)}))}),Z.afterUpdate(()=>{if(!f)return;z();const T=jh(A,h);(T.length||u)&&f&&!f.destroyed&&Bh({swiper:f,passedParams:A,changedParams:T,nextEl:y,prevEl:w,scrollbarEl:E,paginationEl:k}),u=!1,h=A}),Z.onDestroy(()=>{typeof window!="undefined"&&f&&!f.destroyed&&f.destroy(!0,!1)});function j(T){s.binding_callbacks[T?"unshift":"push"](()=>{w=T,e(5,w)})}function O(T){s.binding_callbacks[T?"unshift":"push"](()=>{y=T,e(6,y)})}function P(T){s.binding_callbacks[T?"unshift":"push"](()=>{E=T,e(7,E)})}function S(T){s.binding_callbacks[T?"unshift":"push"](()=>{k=T,e(8,k)})}function _(T){s.binding_callbacks[T?"unshift":"push"](()=>{v=T,e(4,v)})}return i.$$set=T=>{t=s.assign(s.assign({},t),s.exclude_internal_props(T)),e(27,n=s.compute_rest_props(t,o)),"class"in T&&e(0,c=T.class),"$$scope"in T&&e(11,a=T.$$scope)},[c,d,g,b,v,w,y,E,k,C,D,a,r,j,O,P,S,_]}class Nh extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Gh,Hh,s.safe_not_equal,{class:0,swiper:10})}get swiper(){return this.$$.ctx[10]}}const Wh=i=>({data:i&32}),bn=i=>({data:i[5]}),Xh=i=>({data:i&32}),yn=i=>({data:i[5]});function Yh(i){let t;const e=i[8].default,o=s.create_slot(e,i,i[7],bn);return{c(){o&&o.c()},m(n,r){o&&o.m(n,r),t=!0},p(n,r){o&&o.p&&(!t||r&160)&&s.update_slot_base(o,e,n,n[7],t?s.get_slot_changes(e,n[7],r,Wh):s.get_all_dirty_from_scope(n[7]),bn)},i(n){t||(s.transition_in(o,n),t=!0)},o(n){s.transition_out(o,n),t=!1},d(n){o&&o.d(n)}}}function Uh(i){let t,e,o;const n=i[8].default,r=s.create_slot(n,i,i[7],yn);return{c(){t=s.element("div"),r&&r.c(),s.attr(t,"class","swiper-zoom-container"),s.attr(t,"data-swiper-zoom",e=typeof i[0]=="number"?i[0]:void 0)},m(a,l){s.insert(a,t,l),r&&r.m(t,null),o=!0},p(a,l){r&&r.p&&(!o||l&160)&&s.update_slot_base(r,n,a,a[7],o?s.get_slot_changes(n,a[7],l,Xh):s.get_all_dirty_from_scope(a[7]),yn),(!o||l&1&&e!==(e=typeof a[0]=="number"?a[0]:void 0))&&s.attr(t,"data-swiper-zoom",e)},i(a){o||(s.transition_in(r,a),o=!0)},o(a){s.transition_out(r,a),o=!1},d(a){a&&s.detach(t),r&&r.d(a)}}}function Vh(i){let t,e,o,n,r;const a=[Uh,Yh],l=[];function c(f,h){return f[0]?0:1}e=c(i),o=l[e]=a[e](i);let d=[{class:n=Ut(`${i[3]}${i[2]?` ${i[2]}`:""}`)},{"data-swiper-slide-index":i[1]},i[6]],u={};for(let f=0;f<d.length;f+=1)u=s.assign(u,d[f]);return{c(){t=s.element("div"),o.c(),s.set_attributes(t,u)},m(f,h){s.insert(f,t,h),l[e].m(t,null),i[9](t),r=!0},p(f,[h]){let p=e;e=c(f),e===p?l[e].p(f,h):(s.group_outros(),s.transition_out(l[p],1,1,()=>{l[p]=null}),s.check_outros(),o=l[e],o?o.p(f,h):(o=l[e]=a[e](f),o.c()),s.transition_in(o,1),o.m(t,null)),s.set_attributes(t,u=s.get_spread_update(d,[(!r||h&12&&n!==(n=Ut(`${f[3]}${f[2]?` ${f[2]}`:""}`)))&&{class:n},(!r||h&2)&&{"data-swiper-slide-index":f[1]},h&64&&f[6]]))},i(f){r||(s.transition_in(o),r=!0)},o(f){s.transition_out(o),r=!1},d(f){f&&s.detach(t),l[e].d(),i[9](null)}}}function Jh(i,t,e){let o;const n=["zoom","virtualIndex","class"];let r=s.compute_rest_props(t,n),{$$slots:a={},$$scope:l}=t,{zoom:c=void 0}=t,{virtualIndex:d=void 0}=t,{class:u=void 0}=t,f=null,h="swiper-slide",p=Z.getContext("swiper"),g=!1;const A=(y,E,k)=>{E===f&&e(3,h=k)},b=()=>{!p||g||(p.on("_slideClass",A),g=!0)},v=()=>{!p||(p.off("_slideClass",A),g=!1)};Z.onMount(()=>{typeof d!="undefined"&&(e(4,f.onSwiper=y=>{p=y,b()},f),b())}),Z.afterUpdate(()=>{if(!(!f||!p)){if(p.destroyed){h!=="swiper-slide"&&e(3,h="swiper-slide");return}b()}}),Z.beforeUpdate(()=>{b()}),Z.onDestroy(()=>{!p||v()});function w(y){s.binding_callbacks[y?"unshift":"push"](()=>{f=y,e(4,f)})}return i.$$set=y=>{t=s.assign(s.assign({},t),s.exclude_internal_props(y)),e(6,r=s.compute_rest_props(t,n)),"zoom"in y&&e(0,c=y.zoom),"virtualIndex"in y&&e(1,d=y.virtualIndex),"class"in y&&e(2,u=y.class),"$$scope"in y&&e(7,l=y.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&e(5,o={isActive:h.indexOf("swiper-slide-active")>=0||h.indexOf("swiper-slide-duplicate-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isDuplicate:h.indexOf("swiper-slide-duplicate")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0||h.indexOf("swiper-slide-duplicate-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0||h.indexOf("swiper-slide-duplicate-next")>=0})},[c,d,u,h,f,o,r,l,a,w]}class Zh extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Jh,Vh,s.safe_not_equal,{zoom:0,virtualIndex:1,class:2})}}function qh(i){s.append_styles(i,"svelte-cwtvzu",".media-item.svelte-cwtvzu.svelte-cwtvzu{height:100%}.media-content.svelte-cwtvzu.svelte-cwtvzu{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-cwtvzu.svelte-cwtvzu{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-cwtvzu.svelte-cwtvzu{display:none;pointer-events:auto;position:absolute;width:100%;height:100%;top:0;left:0}.video-play-button-container.showPlayButton.svelte-cwtvzu.svelte-cwtvzu{display:block}.video-icon.large.svelte-cwtvzu.svelte-cwtvzu{width:12.5rem;height:6.25rem}.video-icon.small.svelte-cwtvzu.svelte-cwtvzu{width:1.75rem;height:1.75rem}.video-icon.svelte-cwtvzu .video-icon-img.svelte-cwtvzu{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-cwtvzu .video-icon-img.canPlay.svelte-cwtvzu{cursor:pointer}")}function wn(i){let t;function e(r,a){if(r[0].type==="Image")return $h;if(r[0].type==="Video")return Kh}let o=e(i),n=o&&o(i);return{c(){t=s.element("div"),n&&n.c(),s.attr(t,"class","media-item svelte-cwtvzu")},m(r,a){s.insert(r,t,a),n&&n.m(t,null)},p(r,a){o===(o=e(r))&&n?n.p(r,a):(n&&n.d(1),n=o&&o(r),n&&(n.c(),n.m(t,null)))},d(r){r&&s.detach(t),n&&n.d()}}}function Kh(i){let t,e,o,n,r,a,l,c,d,u,f;return{c(){var h;t=s.element("video"),a=s.space(),l=s.element("div"),c=s.element("div"),d=s.element("div"),s.attr(t,"class","media-content svelte-cwtvzu"),s.attr(t,"style",e=`object-fit: ${i[3]};`),s.src_url_equal(t.src,o=i[0].url+"#t=0.1")||s.attr(t,"src",o),s.attr(t,"poster",n=(h=i[0].videoCoverUrl)!=null?h:void 0),s.attr(t,"preload",r=i[0].videoCoverUrl?void 0:"auto"),t.playsInline=!0,s.attr(t,"paused",""),t.loop=!1,s.attr(t,"crossorigin",""),t.controls=!1,s.toggle_class(t,"showPlayButton",i[5]),s.attr(d,"class","video-icon-img svelte-cwtvzu"),s.set_style(d,"background-image","url("+(i[1]==="large"?en:tn)+")"),s.toggle_class(d,"canPlay",i[2]),s.attr(c,"class","video-icon svelte-cwtvzu"),s.toggle_class(c,"large",i[1]==="large"),s.toggle_class(c,"small",i[1]==="small"),s.attr(l,"class","video-play-button-container svelte-cwtvzu"),s.toggle_class(l,"showPlayButton",i[5])},m(h,p){s.insert(h,t,p),i[7](t),s.insert(h,a,p),s.insert(h,l,p),s.append(l,c),s.append(c,d),u||(f=[s.listen(t,"click",i[6]),s.listen(d,"click",i[8])],u=!0)},p(h,p){var g;p&8&&e!==(e=`object-fit: ${h[3]};`)&&s.attr(t,"style",e),p&1&&!s.src_url_equal(t.src,o=h[0].url+"#t=0.1")&&s.attr(t,"src",o),p&1&&n!==(n=(g=h[0].videoCoverUrl)!=null?g:void 0)&&s.attr(t,"poster",n),p&1&&r!==(r=h[0].videoCoverUrl?void 0:"auto")&&s.attr(t,"preload",r),p&32&&s.toggle_class(t,"showPlayButton",h[5]),p&2&&s.set_style(d,"background-image","url("+(h[1]==="large"?en:tn)+")"),p&4&&s.toggle_class(d,"canPlay",h[2]),p&2&&s.toggle_class(c,"large",h[1]==="large"),p&2&&s.toggle_class(c,"small",h[1]==="small"),p&32&&s.toggle_class(l,"showPlayButton",h[5])},d(h){h&&s.detach(t),i[7](null),h&&s.detach(a),h&&s.detach(l),u=!1,s.run_all(f)}}}function $h(i){let t,e,o,n;return{c(){t=s.element("img"),s.attr(t,"class","media-content svelte-cwtvzu"),s.attr(t,"style",e=`object-fit: ${i[3]};`),s.src_url_equal(t.src,o=i[0].url)||s.attr(t,"src",o),s.attr(t,"alt",n=i[0].name)},m(r,a){s.insert(r,t,a)},p(r,a){a&8&&e!==(e=`object-fit: ${r[3]};`)&&s.attr(t,"style",e),a&1&&!s.src_url_equal(t.src,o=r[0].url)&&s.attr(t,"src",o),a&1&&n!==(n=r[0].name)&&s.attr(t,"alt",n)},d(r){r&&s.detach(t)}}}function ef(i){let t,e=i[0]&&wn(i);return{c(){e&&e.c(),t=s.empty()},m(o,n){e&&e.m(o,n),s.insert(o,t,n)},p(o,[n]){o[0]?e?e.p(o,n):(e=wn(o),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:s.noop,o:s.noop,d(o){e&&e.d(o),o&&s.detach(t)}}}function tf(i,t,e){let{media:o}=t,{playButtonIfNeed:n="small"}=t,{canPlay:r=!0}=t,{objectFit:a="cover"}=t,l,c=!1;const d=()=>l==null?void 0:l.pause();function u(h){s.binding_callbacks[h?"unshift":"push"](()=>{l=h,e(4,l)})}const f=()=>{!r||l&&l.play()};return i.$$set=h=>{"media"in h&&e(0,o=h.media),"playButtonIfNeed"in h&&e(1,n=h.playButtonIfNeed),"canPlay"in h&&e(2,r=h.canPlay),"objectFit"in h&&e(3,a=h.objectFit)},i.$$.update=()=>{i.$$.dirty&16&&l&&(e(5,c=l.paused),l.addEventListener("play",()=>{e(5,c=!1)}),l.addEventListener("pause",()=>{e(5,c=!0)}))},[o,n,r,a,l,c,d,u,f]}class Cn extends s.SvelteComponent{constructor(t){super(),s.init(this,t,tf,ef,s.safe_not_equal,{media:0,playButtonIfNeed:1,canPlay:2,objectFit:3},qh)}}function of(i){s.append_styles(i,"svelte-ai0lv9",".media.svelte-ai0lv9{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}")}function Pn(i,t,e){const o=i.slice();return o[23]=t[e],o}function In(i){let t,e,o,n,r,a;const l=[nf,sf],c=[];function d(u,f){return u[13]?0:1}return e=d(i),o=c[e]=l[e](i),{c(){t=s.element("div"),o.c(),s.attr(t,"class","media svelte-ai0lv9"),s.toggle_class(t,"unfolded",i[4])},m(u,f){s.insert(u,t,f),c[e].m(t,null),a=!0},p(u,f){i=u;let h=e;e=d(i),e===h?c[e].p(i,f):(s.group_outros(),s.transition_out(c[h],1,1,()=>{c[h]=null}),s.check_outros(),o=c[e],o?o.p(i,f):(o=c[e]=l[e](i),o.c()),s.transition_in(o,1),o.m(t,null)),f&16&&s.toggle_class(t,"unfolded",i[4])},i(u){a||(s.transition_in(o),u&&s.add_render_callback(()=>{r&&r.end(1),n=s.create_in_transition(t,de.fly,i[5]?{y:4,duration:i[3],delay:i[1],easing:ce.linear}:void 0),n.start()}),a=!0)},o(u){s.transition_out(o),n&&n.invalidate(),u&&(r=s.create_out_transition(t,de.fly,i[5]?{y:4,duration:i[3],delay:i[2],easing:ce.linear}:void 0)),a=!1},d(u){u&&s.detach(t),c[e].d(),u&&r&&r.end()}}}function sf(i){let t,e;return t=new Cn({props:{media:i[0][0],objectFit:i[8],playButtonIfNeed:i[6],canPlay:i[7]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.media=o[0][0]),n&256&&(r.objectFit=o[8]),n&64&&(r.playButtonIfNeed=o[6]),n&128&&(r.canPlay=o[7]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function nf(i){let t,e;return t=new Nh({props:{style:"height: 100%",modules:[Xo.Autoplay],spaceBetween:30,autoplay:i[14]?re({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1,loop:!0,$$slots:{default:[af]},$$scope:{ctx:i}}}),t.$on("init",i[19]),t.$on("slideChange",i[20]),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&16384&&(r.autoplay=o[14]?re({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1),n&67111360&&(r.$$scope={dirty:n,ctx:o}),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function rf(i){let t,e,o;return t=new Cn({props:{media:i[23],objectFit:i[8],playButtonIfNeed:i[6],canPlay:i[7]}}),{c(){s.create_component(t.$$.fragment),e=s.space()},m(n,r){s.mount_component(t,n,r),s.insert(n,e,r),o=!0},p(n,r){const a={};r&2048&&(a.media=n[23]),r&256&&(a.objectFit=n[8]),r&64&&(a.playButtonIfNeed=n[6]),r&128&&(a.canPlay=n[7]),t.$set(a)},i(n){o||(s.transition_in(t.$$.fragment,n),o=!0)},o(n){s.transition_out(t.$$.fragment,n),o=!1},d(n){s.destroy_component(t,n),n&&s.detach(e)}}}function En(i){let t,e;return t=new Zh({props:{$$slots:{default:[rf]},$$scope:{ctx:i}}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&67111360&&(r.$$scope={dirty:n,ctx:o}),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function af(i){let t,e,o=i[11],n=[];for(let a=0;a<o.length;a+=1)n[a]=En(Pn(i,o,a));const r=a=>s.transition_out(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a<n.length;a+=1)n[a].c();t=s.empty()},m(a,l){for(let c=0;c<n.length;c+=1)n[c].m(a,l);s.insert(a,t,l),e=!0},p(a,l){if(l&2496){o=a[11];let c;for(c=0;c<o.length;c+=1){const d=Pn(a,o,c);n[c]?(n[c].p(d,l),s.transition_in(n[c],1)):(n[c]=En(d),n[c].c(),s.transition_in(n[c],1),n[c].m(t.parentNode,t))}for(s.group_outros(),c=o.length;c<n.length;c+=1)r(c);s.check_outros()}},i(a){if(!e){for(let l=0;l<o.length;l+=1)s.transition_in(n[l]);e=!0}},o(a){n=n.filter(Boolean);for(let l=0;l<n.length;l+=1)s.transition_out(n[l]);e=!1},d(a){s.destroy_each(n,a),a&&s.detach(t)}}}function lf(i){let t,e,o=i[4]&&In(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[4]?o?(o.p(n,r),r&16&&s.transition_in(o,1)):(o=In(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function cf(i,t,e){let o,n,r,{tag:a}=t,{mediaData:l}=t,{inDelay:c=0}=t,{outDelay:d=0}=t,{duration:u=0}=t,{unfolded:f=!0}=t,{animation:h=!0}=t,{playButtonIfNeed:p="small"}=t,{canPlay:g=!0}=t,{objectFit:A="cover"}=t,{enableCarousel:b=!0}=t,{autoplayConfig:v={autoplay:!0,autoplayVideo:!1}}=t;const w=Z.getContext("mediaStore"),y=Z.getContext("hooks");let E;function k(L){!o||!E||(w.set({currentMediaUrl:this.src}),y.emit("playStateChange",{event:L,state:"playing",tag:a,mediaInstance:this}),E.autoplay.stop())}function C(L){!o||!E||(y.emit("playStateChange",{event:L,state:"paused",tag:a,mediaInstance:this}),E.autoplay.running||E.autoplay.start())}let D=null;const x=L=>{e(10,E=L.detail[0])},z=L=>G(this,null,function*(){var T,R,N;if(!r||!v.autoplayVideo)return;const j=L.detail[0];if(!j)return;const O=j.realIndex;if(O===D)return;e(12,D=O);const P=n[O];if(!P||P.type!=="Video")return;j.autoplay.stop(),j.slides.map(Q=>Q.querySelector("video")).filter(Ue).forEach(Q=>Q.pause());const _=(T=j.slides[j.activeIndex])==null?void 0:T.querySelector("video");if(_&&(_.removeEventListener("play",k),_.removeEventListener("pause",C),_.addEventListener("play",k),_.addEventListener("pause",C)),_){_.addEventListener("click",()=>_.pause());const Q=(N=(R=_.parentElement)==null?void 0:R.getElementsByClassName("video-play-button-container"))==null?void 0:N[0];_.addEventListener("play",()=>Q==null?void 0:Q.classList.remove("showPlayButton")),_.addEventListener("pause",()=>Q==null?void 0:Q.classList.add("showPlayButton")),Q&&(_.paused?Q.classList.add("showPlayButton"):Q.classList.remove("showPlayButton"),Q.addEventListener("click",()=>_.play()))}});return i.$$set=L=>{"tag"in L&&e(17,a=L.tag),"mediaData"in L&&e(0,l=L.mediaData),"inDelay"in L&&e(1,c=L.inDelay),"outDelay"in L&&e(2,d=L.outDelay),"duration"in L&&e(3,u=L.duration),"unfolded"in L&&e(4,f=L.unfolded),"animation"in L&&e(5,h=L.animation),"playButtonIfNeed"in L&&e(6,p=L.playButtonIfNeed),"canPlay"in L&&e(7,g=L.canPlay),"objectFit"in L&&e(8,A=L.objectFit),"enableCarousel"in L&&e(18,b=L.enableCarousel),"autoplayConfig"in L&&e(9,v=L.autoplayConfig)},i.$$.update=()=>{i.$$.dirty&262145&&e(13,o=b&&(l==null?void 0:l.length)>1),i.$$.dirty&1&&e(11,n=l),i.$$.dirty&2560&&e(14,r=n.length>1&&v.autoplay),i.$$.dirty&1024&&E&&E.slides.forEach(L=>{const j=L.querySelector("video");j&&w.subscribe(({currentMediaUrl:O})=>{O!==j.src&&j.pause()})})},[l,c,d,u,f,h,p,g,A,v,E,n,D,o,r,k,C,a,b,x,z]}class kn extends s.SvelteComponent{constructor(t){super(),s.init(this,t,cf,lf,s.safe_not_equal,{tag:17,mediaData:0,inDelay:1,outDelay:2,duration:3,unfolded:4,animation:5,playButtonIfNeed:6,canPlay:7,objectFit:8,enableCarousel:18,autoplayConfig:9},of)}}function df(i){s.append_styles(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 xn(i,t,e){const o=i.slice();return o[5]=t[e].id,o[1]=t[e].content,o}function Dn(i){let t,e,o,n,r,a=[],l=new Map,c,d,u;t=new we({props:{visible:i[4],left:61,bottom:57,width:2,blurRadius:150,spreadRadius:75}}),n=new _h({props:{unfolded:i[4],duration:1e3,outDelay:400}});let f=i[2];const h=g=>g[5];for(let g=0;g<f.length;g+=1){let A=xn(i,f,g),b=h(A);l.set(b,a[g]=Sn(b,A))}let p=i[3]&&Ln(i);return{c(){s.create_component(t.$$.fragment),e=s.space(),o=s.element("div"),s.create_component(n.$$.fragment),r=s.space();for(let g=0;g<a.length;g+=1)a[g].c();c=s.space(),p&&p.c(),d=s.empty(),s.attr(o,"class","line svelte-1f7m1lj")},m(g,A){s.mount_component(t,g,A),s.insert(g,e,A),s.insert(g,o,A),s.mount_component(n,o,null),s.insert(g,r,A);for(let b=0;b<a.length;b+=1)a[b].m(g,A);s.insert(g,c,A),p&&p.m(g,A),s.insert(g,d,A),u=!0},p(g,A){const b={};A&16&&(b.visible=g[4]),t.$set(b);const v={};A&16&&(v.unfolded=g[4]),n.$set(v),A&20&&(f=g[2],s.group_outros(),a=s.update_keyed_each(a,A,h,1,g,f,l,c.parentNode,s.outro_and_destroy_block,Sn,c,xn),s.check_outros()),g[3]?p?(p.p(g,A),A&8&&s.transition_in(p,1)):(p=Ln(g),p.c(),s.transition_in(p,1),p.m(d.parentNode,d)):p&&(s.group_outros(),s.transition_out(p,1,1,()=>{p=null}),s.check_outros())},i(g){if(!u){s.transition_in(t.$$.fragment,g),s.transition_in(n.$$.fragment,g);for(let A=0;A<f.length;A+=1)s.transition_in(a[A]);s.transition_in(p),u=!0}},o(g){s.transition_out(t.$$.fragment,g),s.transition_out(n.$$.fragment,g);for(let A=0;A<a.length;A+=1)s.transition_out(a[A]);s.transition_out(p),u=!1},d(g){s.destroy_component(t,g),g&&s.detach(e),g&&s.detach(o),s.destroy_component(n),g&&s.detach(r);for(let A=0;A<a.length;A+=1)a[A].d(g);g&&s.detach(c),p&&p.d(g),g&&s.detach(d)}}}function Sn(i,t){let e,o,n;return o=new $i({props:{unfolded:t[4],content:t[1],inDelay:500}}),{key:i,first:null,c(){e=s.element("div"),s.create_component(o.$$.fragment),s.attr(e,"class","text svelte-1f7m1lj"),this.first=e},m(r,a){s.insert(r,e,a),s.mount_component(o,e,null),n=!0},p(r,a){t=r;const l={};a&16&&(l.unfolded=t[4]),a&4&&(l.content=t[1]),o.$set(l)},i(r){n||(s.transition_in(o.$$.fragment,r),n=!0)},o(r){s.transition_out(o.$$.fragment,r),n=!1},d(r){r&&s.detach(e),s.destroy_component(o)}}}function Ln(i){let t,e,o;return e=new kn({props:{autoplayConfig:{autoplay:!1},unfolded:i[4],mediaData:i[3],tag:i[0],enableCarousel:!1,canPlay:!1,playButtonIfNeed:"small",inDelay:500,duration:500}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),s.attr(t,"class","media-wrapper svelte-1f7m1lj")},m(n,r){s.insert(n,t,r),s.mount_component(e,t,null),o=!0},p(n,r){const a={};r&16&&(a.unfolded=n[4]),r&8&&(a.mediaData=n[3]),r&1&&(a.tag=n[0]),e.$set(a)},i(n){o||(s.transition_in(e.$$.fragment,n),o=!0)},o(n){s.transition_out(e.$$.fragment,n),o=!1},d(n){n&&s.detach(t),s.destroy_component(e)}}}function uf(i){let t,e,o=i[0].state&&Dn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[0].state?o?(o.p(n,r),r&1&&s.transition_in(o,1)):(o=Dn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function hf(i,t,e){let o,n,r,{tag:a}=t,l;return i.$$set=c=>{"tag"in c&&e(0,a=c.tag)},i.$$.update=()=>{var c,d,u;i.$$.dirty&1&&e(4,o=a.state?a.state.unfolded:!1),i.$$.dirty&1&&e(1,n=((d=(c=a.data.text)==null?void 0:c.length)!=null?d:0)>7?((u=a.data.text)==null?void 0:u.substring(0,6))+"...":a.data.text),i.$$.dirty&1&&e(3,r=a.data.mediaData),i.$$.dirty&2&&e(2,l=n?[{id:fe(),content:n}]:[])},[a,n,l,r,o]}class ff extends s.SvelteComponent{constructor(t){super(),s.init(this,t,hf,uf,s.safe_not_equal,{tag:0},df)}}function mf(i){s.append_styles(i,"svelte-8mby9k",".svelte-8mby9k.svelte-8mby9k{box-sizing:border-box}.marketing.svelte-8mby9k.svelte-8mby9k{transform:translateY(-100%)}.content.svelte-8mby9k .headerImage.svelte-8mby9k{position:absolute;width:100%;top:0.25rem;transform:translateY(-100%);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem}.line.svelte-8mby9k.svelte-8mby9k{position:absolute;height:2.0625rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.content.svelte-8mby9k.svelte-8mby9k{background-color:white;position:relative;display:flex;flex-direction:column;min-width:11.125rem;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;border-radius:0.25rem;top:-1.875rem;left:-1rem;padding:0.5rem 0rem 0.5625rem;transition:all 500ms}.title.svelte-8mby9k.svelte-8mby9k{position:absolute;background-color:white;border-radius:0.25rem;width:100%;top:0.5rem;padding-left:0.75rem;padding-right:0.75rem}.title.svelte-8mby9k .text.svelte-8mby9k{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;font-weight:bold;line-height:1.125rem;color:#000}.footer.svelte-8mby9k.svelte-8mby9k{position:relative;padding-left:0.75rem;padding-right:0.75rem;width:100%;height:1.375rem;display:flex;align-items:center}.footer.svelte-8mby9k .goto-button.svelte-8mby9k{flex-shrink:0;white-space:nowrap;background-image:linear-gradient(to right, rgba(87, 144, 253, 1) 0, rgba(42, 114, 254, 1) 100%);color:#fff;font-size:0.625rem;border-radius:0.875rem;font-weight:bold;padding-left:0.5rem;padding-right:0.5rem;height:1.25rem;margin-left:auto;display:flex;align-items:center}.footer.svelte-8mby9k .goto-icon.svelte-8mby9k::after{content:'';display:inline-block;width:0.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAeFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////GqOSsAAAAJ3RSTlMAFNO2pYt4bErz8uP6ysawgVtBPDcR5C4s2L6ZmJBzZGJXUyEeDws/0G2zAAAAkklEQVQ4y+3TRw6DMBAF0OAeJ3QCpCe0uf8NwRILLBYfiS1/aT3JoymnI+sERZ5VCH0iVto3QDfBLmeSSMUTogRV9bBEpJAKaYpGijn13aTSLeraeG9D0NZFZv4/rRL5FDHnITlllqjv6tykWsmX4JHr05y7j6oFKq2P8He48B0tAM0EY0EDxquClw6vLz6EI35GmwwSZpe+WOgAAAAASUVORK5CYII=);background-size:100% auto;background-repeat:no-repeat}.price.svelte-8mby9k.svelte-8mby9k{flex-shrink:0;margin-right:0.75rem;white-space:nowrap;color:#ff6600;display:flex;align-items:baseline}.price.svelte-8mby9k .value.svelte-8mby9k{position:relative;top:0.0625rem;font-size:1.125rem;line-height:1.375rem;font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0rem}.price.svelte-8mby9k .unit.svelte-8mby9k{padding-left:0.125rem;font-size:0.625rem}.tag.svelte-8mby9k.svelte-8mby9k{position:relative;background-color:white;display:flex;width:-moz-max-content;width:max-content;padding-left:0.75rem;padding-right:0.75rem;min-height:1.75rem}.tag.svelte-8mby9k .base-tag.svelte-8mby9k{height:1rem;margin-top:1.375rem;margin-bottom:0.5rem;margin-right:0.25rem;font-size:0.625rem;line-height:0.875rem;padding:0.0625rem 0.25rem;border-radius:0.125rem;overflow:hidden}.tag.svelte-8mby9k .primary-tag.svelte-8mby9k{background:#e5eefe;color:#0055ff}.tag.svelte-8mby9k .secondary-tag.svelte-8mby9k{background:rgba(255, 102, 0, 0.08);color:rgba(255, 102, 0, 1)}.unfolded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 1)}.folded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.unfolded.svelte-8mby9k .content.svelte-8mby9k{opacity:1}.folded.svelte-8mby9k .content.svelte-8mby9k{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}")}function _n(i,t,e){const o=i.slice();return o[0]=t[e],o}function zn(i,t,e){const o=i.slice();return o[0]=t[e],o}function Mn(i){let t,e=i[0]+"",o;return{c(){t=s.element("div"),o=s.text(e),s.attr(t,"class","base-tag primary-tag svelte-8mby9k")},m(n,r){s.insert(n,t,r),s.append(t,o)},p(n,r){r&4&&e!==(e=n[0]+"")&&s.set_data(o,e)},d(n){n&&s.detach(t)}}}function jn(i){let t,e=i[0]&&Mn(i);return{c(){e&&e.c(),t=s.empty()},m(o,n){e&&e.m(o,n),s.insert(o,t,n)},p(o,n){o[0]?e?e.p(o,n):(e=Mn(o),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(o){e&&e.d(o),o&&s.detach(t)}}}function Bn(i){let t,e=i[0]+"",o;return{c(){t=s.element("div"),o=s.text(e),s.attr(t,"class","base-tag secondary-tag svelte-8mby9k")},m(n,r){s.insert(n,t,r),s.append(t,o)},p(n,r){r&4&&e!==(e=n[0]+"")&&s.set_data(o,e)},d(n){n&&s.detach(t)}}}function Tn(i){let t,e=i[0]&&Bn(i);return{c(){e&&e.c(),t=s.empty()},m(o,n){e&&e.m(o,n),s.insert(o,t,n)},p(o,n){o[0]?e?e.p(o,n):(e=Bn(o),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(o){e&&e.d(o),o&&s.detach(t)}}}function Qn(i){let t,e,o=i[2].price.value+"",n,r,a=i[2].price.unit&&On(i);return{c(){t=s.element("div"),e=s.element("span"),n=s.text(o),r=s.space(),a&&a.c(),s.attr(e,"class","value svelte-8mby9k"),s.attr(t,"class","price svelte-8mby9k")},m(l,c){s.insert(l,t,c),s.append(t,e),s.append(e,n),s.append(t,r),a&&a.m(t,null)},p(l,c){c&4&&o!==(o=l[2].price.value+"")&&s.set_data(n,o),l[2].price.unit?a?a.p(l,c):(a=On(l),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},d(l){l&&s.detach(t),a&&a.d()}}}function On(i){let t,e=i[2].price.unit+"",o;return{c(){t=s.element("span"),o=s.text(e),s.attr(t,"class","unit svelte-8mby9k")},m(n,r){s.insert(n,t,r),s.append(t,o)},p(n,r){r&4&&e!==(e=n[2].price.unit+"")&&s.set_data(o,e)},d(n){n&&s.detach(t)}}}function Rn(i){let t,e=i[2].highlightText+"",o;return{c(){t=s.element("div"),o=s.text(e),s.attr(t,"class","goto-button goto-icon svelte-8mby9k")},m(n,r){s.insert(n,t,r),s.append(t,o)},p(n,r){r&4&&e!==(e=n[2].highlightText+"")&&s.set_data(o,e)},d(n){n&&s.detach(t)}}}function pf(i){var j,O;let t,e,o,n,r,a,l,c,d,u,f,h,p,g,A=i[2].title+"",b,v,w,y,E;e=new we({props:{visible:i[1],outDelay:500,left:61,bottom:87,blurRadius:150,spreadRadius:75}});let k=i[2].brandTags||[],C=[];for(let P=0;P<k.length;P+=1)C[P]=jn(zn(i,k,P));let D=i[2].tags||[],x=[];for(let P=0;P<D.length;P+=1)x[P]=Tn(_n(i,D,P));let z=((j=i[2].price)==null?void 0:j.value)!==void 0&&((O=i[2].price)==null?void 0:O.value)!==null&&Qn(i),L=i[2].highlightText&&Rn(i);return{c(){var P,S;t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),r=s.space(),a=s.element("div"),l=s.element("img"),d=s.space(),u=s.element("div");for(let _=0;_<C.length;_+=1)C[_].c();f=s.space();for(let _=0;_<x.length;_+=1)x[_].c();h=s.space(),p=s.element("div"),g=s.element("div"),b=s.text(A),v=s.space(),w=s.element("div"),z&&z.c(),y=s.space(),L&&L.c(),s.attr(n,"class","line svelte-8mby9k"),s.set_style(n,"transition-delay",i[1]?Vt+"ms":Jt+Hn-Fn-40+"ms",!1),s.attr(l,"class","headerImage svelte-8mby9k"),s.src_url_equal(l.src,c=i[2].headerPictureUrl)||s.attr(l,"src",c),s.attr(l,"alt",""),s.attr(u,"class","tag svelte-8mby9k"),s.attr(g,"class","text svelte-8mby9k"),s.attr(p,"class","title svelte-8mby9k"),s.attr(w,"class","footer svelte-8mby9k"),s.set_style(w,"height",((P=i[2].price)==null?void 0:P.value)!==void 0&&((S=i[2].price)==null?void 0:S.value)!==null&&i[2].highlightText?void 0:"1rem",!1),s.attr(a,"class","content svelte-8mby9k"),s.set_style(a,"transition-delay",i[1]?Vt+Jt+"ms":"0ms",!1),s.attr(t,"class","marketing svelte-8mby9k"),s.toggle_class(t,"unfolded",i[1]),s.toggle_class(t,"folded",i[3])},m(P,S){s.insert(P,t,S),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),s.append(t,r),s.append(t,a),s.append(a,l),s.append(a,d),s.append(a,u);for(let _=0;_<C.length;_+=1)C[_].m(u,null);s.append(u,f);for(let _=0;_<x.length;_+=1)x[_].m(u,null);s.append(a,h),s.append(a,p),s.append(p,g),s.append(g,b),s.append(a,v),s.append(a,w),z&&z.m(w,null),s.append(w,y),L&&L.m(w,null),E=!0},p(P,[S]){var T,R,N,Q;const _={};if(S&2&&(_.visible=P[1]),e.$set(_),S&2&&s.set_style(n,"transition-delay",P[1]?Vt+"ms":Jt+Hn-Fn-40+"ms",!1),(!E||S&4&&!s.src_url_equal(l.src,c=P[2].headerPictureUrl))&&s.attr(l,"src",c),S&4){k=P[2].brandTags||[];let H;for(H=0;H<k.length;H+=1){const Y=zn(P,k,H);C[H]?C[H].p(Y,S):(C[H]=jn(Y),C[H].c(),C[H].m(u,f))}for(;H<C.length;H+=1)C[H].d(1);C.length=k.length}if(S&4){D=P[2].tags||[];let H;for(H=0;H<D.length;H+=1){const Y=_n(P,D,H);x[H]?x[H].p(Y,S):(x[H]=Tn(Y),x[H].c(),x[H].m(u,null))}for(;H<x.length;H+=1)x[H].d(1);x.length=D.length}(!E||S&4)&&A!==(A=P[2].title+"")&&s.set_data(b,A),((T=P[2].price)==null?void 0:T.value)!==void 0&&((R=P[2].price)==null?void 0:R.value)!==null?z?z.p(P,S):(z=Qn(P),z.c(),z.m(w,y)):z&&(z.d(1),z=null),P[2].highlightText?L?L.p(P,S):(L=Rn(P),L.c(),L.m(w,null)):L&&(L.d(1),L=null),S&4&&s.set_style(w,"height",((N=P[2].price)==null?void 0:N.value)!==void 0&&((Q=P[2].price)==null?void 0:Q.value)!==null&&P[2].highlightText?void 0:"1rem",!1),S&2&&s.set_style(a,"transition-delay",P[1]?Vt+Jt+"ms":"0ms",!1),S&2&&s.toggle_class(t,"unfolded",P[1]),S&8&&s.toggle_class(t,"folded",P[3])},i(P){E||(s.transition_in(e.$$.fragment,P),E=!0)},o(P){s.transition_out(e.$$.fragment,P),E=!1},d(P){P&&s.detach(t),s.destroy_component(e),s.destroy_each(C,P),s.destroy_each(x,P),z&&z.d(),L&&L.d()}}}const Vt=400,Fn=500,Jt=180,Hn=500;function gf(i,t,e){let o,n,r,{tag:a}=t;return i.$$set=l=>{"tag"in l&&e(0,a=l.tag)},i.$$.update=()=>{var l,c;i.$$.dirty&1&&e(1,o=(c=(l=a.state)==null?void 0:l.unfolded)!=null?c:!1),i.$$.dirty&2&&e(3,n=!o),i.$$.dirty&1&&e(2,r=a.data)},[a,o,r,n]}class Af extends s.SvelteComponent{constructor(t){super(),s.init(this,t,gf,pf,s.safe_not_equal,{tag:0},mf)}}function vf(i){s.append_styles(i,"svelte-1ku3wt4",`.audio.svelte-1ku3wt4.svelte-1ku3wt4{position:relative;width:100%;height:100%;cursor:pointer}@keyframes svelte-1ku3wt4-playing{25%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='8' transform='translate(-1 -1)' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}50%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.533 6.685L4.169 8.049l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}75%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.656 4.874l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .875-.333 1.67-.88 2.268l.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}}.paused.svelte-1ku3wt4 .audio-icon.svelte-1ku3wt4{animation:none}.audio-icon.svelte-1ku3wt4.svelte-1ku3wt4{width:100%;height:100%;border-radius:50%;background-size:100%;animation:svelte-1ku3wt4-playing 2s steps(1) infinite;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm1.428 2.79l-.953.952a6.222 6.222 0 0 1 1.775 4.36c0 1.571-.58 3.006-1.538 4.103l-.184.202.793.794a7.344 7.344 0 0 0 2.21-5.26A7.341 7.341 0 0 0 9.428 2.79zM7.344 4.873l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .802-.28 1.537-.748 2.115l-.132.153.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}`)}function Gn(i){let t,e,o,n,r,a,l,c=!0,d,u,f,h,p;return e=new we({props:{center:!0,blurRadius:15,spreadRadius:6}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),r=s.space(),a=s.element("audio"),s.attr(n,"class","audio-icon svelte-1ku3wt4"),a.controls=!1,s.attr(a,"playsinline",""),s.src_url_equal(a.src,l=i[3])||s.attr(a,"src",l),s.attr(t,"class","audio svelte-1ku3wt4"),s.toggle_class(t,"paused",i[6])},m(g,A){s.insert(g,t,A),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),s.append(t,r),s.append(t,a),i[9](a),f=!0,h||(p=[s.listen(a,"play",i[10]),s.listen(a,"pause",i[10]),s.listen(t,"click",s.stop_propagation(i[7]))],h=!0)},p(g,A){i=g,(!f||A&8&&!s.src_url_equal(a.src,l=i[3]))&&s.attr(a,"src",l),A&64&&c!==(c=i[6])&&a[c?"pause":"play"](),A&64&&s.toggle_class(t,"paused",i[6])},i(g){f||(s.transition_in(e.$$.fragment,g),g&&s.add_render_callback(()=>{u&&u.end(1),d=s.create_in_transition(t,de.fade,{duration:i[2],delay:i[0],easing:ce.cubicInOut}),d.start()}),f=!0)},o(g){s.transition_out(e.$$.fragment,g),d&&d.invalidate(),g&&(u=s.create_out_transition(t,de.fade,{duration:i[2],delay:i[1],easing:ce.cubicInOut})),f=!1},d(g){g&&s.detach(t),s.destroy_component(e),i[9](null),g&&u&&u.end(),h=!1,s.run_all(p)}}}function bf(i){let t,e,o=i[4]&&Gn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[4]?o?(o.p(n,r),r&16&&s.transition_in(o,1)):(o=Gn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function yf(i,t,e){let{inDelay:o=0}=t,{outDelay:n=0}=t,{duration:r=0}=t,{url:a}=t,{unfolded:l}=t,{hooksInfo:c={}}=t;const d=Z.getContext("hooks"),u=Z.getContext("mediaStore");let f,h=!0;u.subscribe(({currentMediaUrl:b})=>{b!==a&&(f==null||f.pause())});function p(b){u.set({currentMediaUrl:a}),f&&(d.emit("click",B({event:b,target:"AudioTagPlayIcon",audioInstance:f},c)),f.paused?f.play():f.pause(),e(5,f.onplay=v=>d.emit("playStateChange",B({event:v,state:"playing",mediaInstance:f},c)),f),e(5,f.onpause=v=>d.emit("playStateChange",B({event:v,state:"paused",mediaInstance:f},c)),f))}function g(b){s.binding_callbacks[b?"unshift":"push"](()=>{f=b,e(5,f)})}function A(){h=this.paused,e(6,h)}return i.$$set=b=>{"inDelay"in b&&e(0,o=b.inDelay),"outDelay"in b&&e(1,n=b.outDelay),"duration"in b&&e(2,r=b.duration),"url"in b&&e(3,a=b.url),"unfolded"in b&&e(4,l=b.unfolded),"hooksInfo"in b&&e(8,c=b.hooksInfo)},i.$$.update=()=>{i.$$.dirty&48&&(l||f==null||f.pause())},[o,n,r,a,l,f,h,p,c,g,A]}class wf extends s.SvelteComponent{constructor(t){super(),s.init(this,t,yf,bf,s.safe_not_equal,{inDelay:0,outDelay:1,duration:2,url:3,unfolded:4,hooksInfo:8},vf)}}function Cf(i){s.append_styles(i,"svelte-4r8s18",".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{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-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}")}function Nn(i){var w,y,E,k;let t,e,o,n,r,a,l,c,d,u,f,h,p,g,A,b,v;return e=new we({props:{visible:i[5],left:i[2]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),r=new Vi({props:{unfolded:i[5],duration:1e3,outDelay:i[4]+20*Math.min((y=(w=i[3][0])==null?void 0:w.content.length)!=null?y:10,15)}}),u=new wf({props:{unfolded:i[5],url:i[0].data.audioUrl,duration:1e3,outDelay:20*Math.min((k=(E=i[3][0])==null?void 0:E.content.length)!=null?k:10,15),hooksInfo:{tag:i[0]}}}),p=new an({props:{visible:i[5],textUnfolded:i[1],textItems:i[3]}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),s.create_component(r.$$.fragment),a=s.space(),l=s.element("div"),c=s.element("div"),d=s.element("div"),s.create_component(u.$$.fragment),f=s.space(),h=s.element("div"),s.create_component(p.$$.fragment),s.attr(n,"class","line svelte-4r8s18"),s.set_style(n,"width",i[2]+"px",!1),s.attr(d,"class","audio-icon svelte-4r8s18"),s.set_style(h,"display","inline-block",!1),s.attr(c,"class","wrapper svelte-4r8s18"),s.attr(l,"class","content svelte-4r8s18"),s.add_render_callback(()=>i[8].call(l)),s.attr(t,"class","audio-tag svelte-4r8s18"),s.toggle_class(t,"unfolded",i[5])},m(C,D){s.insert(C,t,D),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),s.mount_component(r,n,null),s.append(t,a),s.append(t,l),s.append(l,c),s.append(c,d),s.mount_component(u,d,null),s.append(c,f),s.append(c,h),s.mount_component(p,h,null),g=s.add_resize_listener(l,i[8].bind(l)),A=!0,b||(v=s.listen(h,"click",i[6]),b=!0)},p(C,D){var O,P,S,_;const x={};D&32&&(x.visible=C[5]),D&4&&(x.left=C[2]/2+"px"),e.$set(x);const z={};D&32&&(z.unfolded=C[5]),D&24&&(z.outDelay=C[4]+20*Math.min((P=(O=C[3][0])==null?void 0:O.content.length)!=null?P:10,15)),r.$set(z),D&4&&s.set_style(n,"width",C[2]+"px",!1);const L={};D&32&&(L.unfolded=C[5]),D&1&&(L.url=C[0].data.audioUrl),D&8&&(L.outDelay=20*Math.min((_=(S=C[3][0])==null?void 0:S.content.length)!=null?_:10,15)),D&1&&(L.hooksInfo={tag:C[0]}),u.$set(L);const j={};D&32&&(j.visible=C[5]),D&2&&(j.textUnfolded=C[1]),D&8&&(j.textItems=C[3]),p.$set(j),D&32&&s.toggle_class(t,"unfolded",C[5])},i(C){A||(s.transition_in(e.$$.fragment,C),s.transition_in(r.$$.fragment,C),s.transition_in(u.$$.fragment,C),s.transition_in(p.$$.fragment,C),A=!0)},o(C){s.transition_out(e.$$.fragment,C),s.transition_out(r.$$.fragment,C),s.transition_out(u.$$.fragment,C),s.transition_out(p.$$.fragment,C),A=!1},d(C){C&&s.detach(t),s.destroy_component(e),s.destroy_component(r),s.destroy_component(u),s.destroy_component(p),g(),b=!1,v()}}}function Pf(i){let t,e,o=i[0].state&&Nn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[0].state?o?(o.p(n,r),r&1&&s.transition_in(o,1)):(o=Nn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function If(i,t,e){let o,n,r,{tag:a}=t,l=!1,c,d=[];function u(){e(1,l=!l)}function f(){c=this.clientWidth,e(2,c)}return i.$$set=h=>{"tag"in h&&e(0,a=h.tag)},i.$$.update=()=>{var h;i.$$.dirty&1&&e(5,o=!!((h=a.state)!=null&&h.unfolded)),i.$$.dirty&1&&e(7,n=a.data.text),i.$$.dirty&128&&e(3,d=[{id:fe(),content:n}]),i.$$.dirty&2&&e(4,r=l?450:0)},[a,l,c,d,r,o,u,n,f]}class Ef extends s.SvelteComponent{constructor(t){super(),s.init(this,t,If,Pf,s.safe_not_equal,{tag:0},Cf)}}function kf(i){s.append_styles(i,"svelte-10cw0el",".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}")}function Wn(i){let t,e,o;return e=new kn({props:{unfolded:i[5],mediaData:i[4],objectFit:i[2],enableCarousel:i[1],autoplayConfig:i[3],tag:i[0],canPlay:!0,playButtonIfNeed:"large",inDelay:500,duration:500}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),s.attr(t,"class","media-wrapper svelte-10cw0el")},m(n,r){s.insert(n,t,r),s.mount_component(e,t,null),o=!0},p(n,r){const a={};r&32&&(a.unfolded=n[5]),r&16&&(a.mediaData=n[4]),r&4&&(a.objectFit=n[2]),r&2&&(a.enableCarousel=n[1]),r&8&&(a.autoplayConfig=n[3]),r&1&&(a.tag=n[0]),e.$set(a)},i(n){o||(s.transition_in(e.$$.fragment,n),o=!0)},o(n){s.transition_out(e.$$.fragment,n),o=!1},d(n){n&&s.detach(t),s.destroy_component(e)}}}function xf(i){let t,e,o=i[0].state&&i[4]&&Wn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[0].state&&n[4]?o?(o.p(n,r),r&17&&s.transition_in(o,1)):(o=Wn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function Df(i,t,e){let o,n,r,a,l,{tag:c}=t;return i.$$set=d=>{"tag"in d&&e(0,c=d.tag)},i.$$.update=()=>{var d,u;i.$$.dirty&1&&e(5,o=c.state?c.state.unfolded:!1),i.$$.dirty&1&&e(4,n=c.data.mediaData),i.$$.dirty&1&&e(1,r=c.data.enableCarousel),i.$$.dirty&3&&e(3,a=(d=c.data.autoplayConfig)!=null?d:{autoplay:r!=null?r:!0,autoplayVideo:!0}),i.$$.dirty&1&&e(2,l=(u=c.data.objectFit)!=null?u:(()=>c.data.adaptationMode==="stretch"?"cover":c.data.adaptationMode==="proportional"?"contain":void 0)())},[c,r,l,a,n,o]}class Sf extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Df,xf,s.safe_not_equal,{tag:0},kf)}}function Lf(i){s.append_styles(i,"svelte-7x7u86",".wrapper.svelte-7x7u86{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-7x7u86{position:relative;display:flex;align-items:center;justify-content:center}.icon.svelte-7x7u86{position:relative;margin-bottom:0.6875rem}.arrow0.svelte-7x7u86,.arrow1.svelte-7x7u86,.arrow2.svelte-7x7u86{position:absolute;width:1.625rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAAkCAYAAAAnxQwhAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAATqADAAQAAAABAAAAJAAAAABrx2urAAAGm0lEQVRoBd2ZXbCVUxjH26QSfSCS0JwoFNEZ0cc45iSmUUaqC+KCwUUXxYUZw4yrLhozLlDDRWa6oW5yOFTT0IcyKn1JnIjDKelLPipJcXT8fttaZ95qd+yzv+uZ+e211rvfd61n/ddaz1rv3qkOFWgtLS3n4Vb34NqhVCr1d6W5mao0hxBNwfrCOcG346S7Ee9gKFdEUjHCIZi+XA69E8p4rQVM98EeBLRcdqsI4RCtI0r0h4uCIvo1BZx1b4GzTjsA3yFec7pUxo+yC4doXen/IDg/6GB5GlSH8mbSWXA4lI+SNiDekVAuS1JW4RCtF72+EWI8c6k+A6ZJc5m+BHvCxX9ItyLe/lAueVIW4UI8u4beDkj02FnnTOuUuJbM/kVhNjQkLjaSbyxH3Cu5cIjmUWMoOKti+2PIT4JsrI6blkKMe87GTYhX0iNLdDwbh/O+B9G6UclIMNWcXQ/CrRbaYRu5dz44C7XfYTXimZbESiYconk2GwGdwSOF4j0JV0AuZrybA4plfYq4BvF2kRbdSiIcog2hJ+6StmcnFesJ6AL52DEefgOiWNa/EfG25FNpNs8WVbgQz+7EEc9o0RRxYiwUKDXuJcVqovxRMeNe0YRDtB44Pw4uAc0jx2gYZqEItoE63TSc0fILLEa8oryqFUU4ROuH04oWl6I76WQwzhXTXLILIO6wLuVFiLedtKBWcOEQ7XY8rE146ZvAwxDfDBJfFSX7J7XOgz8S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KWnKjT11otBYUcRS4AuKgmjrYToxrwUHPZN9z0Ql0afhyL+k0+rQtRQOu/3qIAhjIB0IPSJrrvwEcARvTko44896DhXFUvKESjD66msbD/eBMSw60eQVygAfDyXH8INe2gZPLiaF4ExTucTLPg2aMGg7uVpqzZwu4tm8Ad7UoFtn0q4ti1SHWt16odKO/A/DxAZgAcYVFt+3nV2AcHAIdQTsOa6Ea7P9MhZtB5jHQmsDltwMM8qrszFPpaEfILIYF4H+ZVnrGGf12coyEyXAvdIU4KUydaa4+r/cDl3UVaHMVzun7erp4+g/FWQWK5a6oeGeNoYHijAVFrIG44shmtKkK52x6FSZluMW4pVjvIJbHibPe0MPl61JWxEEZOvw216a3LkEeGMGFO0D1d8KqMyVu4WtRDE2Mh85Az6Wuso/RZA1ph38BBMvNbHuq7kAAAAAASUVORK5CYII=);background-repeat:no-repeat;background-size:contain;animation-fill-mode:backwards;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.2s}.arrow1.svelte-7x7u86{position:relative}.arrow0.svelte-7x7u86{top:-0.75rem;animation-name:svelte-7x7u86-up0}.arrow1.svelte-7x7u86{animation-name:svelte-7x7u86-up1}.arrow2.svelte-7x7u86{top:0.75rem;animation-name:svelte-7x7u86-up2}.text.svelte-7x7u86{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;word-break:break-all;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}@keyframes svelte-7x7u86-up0{0%{opacity:0.8;transform:translate3d(0, 0, 0) scale(0.84)}33.33%,100%{opacity:0;transform:translate3d(0, -0.75rem, 0) scale(0.84)}}@keyframes svelte-7x7u86-up1{0%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}33.33%,100%{opacity:0.8;transform:translate3d(0, -0.75rem, 0) scale(0.84)}}@keyframes svelte-7x7u86-up2{0%{opacity:0}33.33%,100%{opacity:1;transform:translate3d(0, -0.75rem, 0)}}.link.svelte-7x7u86{position:relative;width:1.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAkCAMAAAAgl+0yAAAAnFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+TINBkAAAAM3RSTlMAjLy6ILM2Fi+Zng3BrPvao4VC9ceneQfKkmNdV1AbEeLOsHA77ujUtn5JLnRraSUUjVLj/+RVAAABhElEQVRIx63V2W6CQBiGYUBUQGDYdwTZQZZa7v/eimik/ket/7yZ4yeTTCYf8+dOX8etxGVoxAvCVbguR3g0uRTMA0w4odGi+CbzFnGKosCqrmHc5rdEwzCwqtGFJlC7DqtOcTxANY67BHnVKOpVoEZRjFPdLgxbqIZhhFTjINChGgThF06NhpGd35OGMcCppyDPfajm+YhUR8cRoeo4+RGlJnnbalBt2x6nHh1dt4Gq6bqDU886y2ZQZVn9jFJ51vcbqPo+Up18UeSgKoo3nHqVJEkGqi1JPk49aLZmQdW2xXf1zP+vUFHsC1QVReK33xdk+w9SaqAq+732UvvdZ2UEqrud8lR5Wc4a7pO8GaoL9VBjy7rMlMosq1lV43LhZlrtF+yuJlbtEXpqXXP3NYwI8VJqakOIziw5aepV1FQuTdfhvlWVZdJCrao6MPe0spRpqV5ZFivqNqYpq3RQ2TST5/h4quoRCmwqq6rymol6plV53IZSomTKE/MroWfxDevL/wAEdPq1eGDh4AAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-size:contain;animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:1.2s;animation-name:svelte-7x7u86-left-right}@keyframes svelte-7x7u86-left-right{0%,100%{opacity:0.8;transform:translateX(-0.3125rem)}50%{opacity:1;transform:translateX(0)}}")}function _f(i){let t,e,o,n;return t=new we({props:{visible:!0,outDelay:0,inDelay:0,width:1.4,left:13,bottom:"auto",blurRadius:50,spreadRadius:18}}),{c(){s.create_component(t.$$.fragment),e=s.space(),o=s.element("div"),s.attr(o,"class","link svelte-7x7u86")},m(r,a){s.mount_component(t,r,a),s.insert(r,e,a),s.insert(r,o,a),n=!0},i(r){n||(s.transition_in(t.$$.fragment,r),n=!0)},o(r){s.transition_out(t.$$.fragment,r),n=!1},d(r){s.destroy_component(t,r),r&&s.detach(e),r&&s.detach(o)}}}function zf(i){let t,e,o,n,r,a,l,c;return t=new we({props:{visible:!0,outDelay:0,inDelay:0,height:1.2,left:13,bottom:12,blurRadius:50,spreadRadius:18}}),{c(){s.create_component(t.$$.fragment),e=s.space(),o=s.element("div"),n=s.space(),r=s.element("div"),a=s.space(),l=s.element("div"),s.attr(o,"class","arrow0 svelte-7x7u86"),s.attr(r,"class","arrow1 svelte-7x7u86"),s.attr(l,"class","arrow2 svelte-7x7u86")},m(d,u){s.mount_component(t,d,u),s.insert(d,e,u),s.insert(d,o,u),s.insert(d,n,u),s.insert(d,r,u),s.insert(d,a,u),s.insert(d,l,u),c=!0},i(d){c||(s.transition_in(t.$$.fragment,d),c=!0)},o(d){s.transition_out(t.$$.fragment,d),c=!1},d(d){s.destroy_component(t,d),d&&s.detach(e),d&&s.detach(o),d&&s.detach(n),d&&s.detach(r),d&&s.detach(a),d&&s.detach(l)}}}function Mf(i){let t,e,o,n,r,a,l,c,d,u=i[0].text+"",f,h;const p=[zf,_f],g=[];function A(b,v){return b[0].linkType===Yt.VrLink?0:b[0].linkType===Yt.NormalLink?1:-1}return~(o=A(i))&&(n=g[o]=p[o](i)),l=new we({props:{visible:!0,outDelay:0,inDelay:0,left:"auto",bottom:"auto",width:"80%",blurRadius:40,spreadRadius:16,opacity:.08}}),{c(){t=s.element("div"),e=s.element("div"),n&&n.c(),r=s.space(),a=s.element("div"),s.create_component(l.$$.fragment),c=s.space(),d=s.element("div"),f=s.text(u),s.attr(e,"class","icon svelte-7x7u86"),s.attr(d,"class","text svelte-7x7u86"),s.attr(a,"class","text-wrapper svelte-7x7u86"),s.attr(t,"class","wrapper svelte-7x7u86")},m(b,v){s.insert(b,t,v),s.append(t,e),~o&&g[o].m(e,null),s.append(t,r),s.append(t,a),s.mount_component(l,a,null),s.append(a,c),s.append(a,d),s.append(d,f),h=!0},p(b,[v]){let w=o;o=A(b),o!==w&&(n&&(s.group_outros(),s.transition_out(g[w],1,1,()=>{g[w]=null}),s.check_outros()),~o?(n=g[o],n||(n=g[o]=p[o](b),n.c()),s.transition_in(n,1),n.m(e,null)):n=null),(!h||v&1)&&u!==(u=b[0].text+"")&&s.set_data(f,u)},i(b){h||(s.transition_in(n),s.transition_in(l.$$.fragment,b),h=!0)},o(b){s.transition_out(n),s.transition_out(l.$$.fragment,b),h=!1},d(b){b&&s.detach(t),~o&&g[o].d(),s.destroy_component(l)}}}function jf(i,t,e){let o,{tag:n}=t;return i.$$set=r=>{"tag"in r&&e(1,n=r.tag)},i.$$.update=()=>{i.$$.dirty&2&&e(0,o=n.data)},[o,n]}class Bf extends s.SvelteComponent{constructor(t){super(),s.init(this,t,jf,Mf,s.safe_not_equal,{tag:1},Lf)}}function Tf(i){s.append_styles(i,"svelte-kzl2aj",".customElement__container.svelte-kzl2aj{position:relative}")}function Xn(i){let t,e=i[0].element+"",o;return{c(){t=new s.HtmlTag(!1),o=s.empty(),t.a=o},m(n,r){t.m(e,n,r),s.insert(n,o,r)},p(n,r){r&1&&e!==(e=n[0].element+"")&&t.p(e)},d(n){n&&s.detach(o),n&&t.d()}}}function Qf(i){let t,e=typeof i[0].element=="string"&&Xn(i);return{c(){t=s.element("div"),e&&e.c(),s.attr(t,"class","customElement__container svelte-kzl2aj")},m(o,n){s.insert(o,t,n),e&&e.m(t,null),i[2](t)},p(o,[n]){typeof o[0].element=="string"?e?e.p(o,n):(e=Xn(o),e.c(),e.m(t,null)):e&&(e.d(1),e=null)},i:s.noop,o:s.noop,d(o){o&&s.detach(t),e&&e.d(),i[2](null)}}}function Of(i,t,e){let{tag:o}=t,n,r;Z.onMount(()=>{if(n){if(o.element instanceof Element){const l=o.element;n.appendChild(l),r=()=>n==null?void 0:n.removeChild(l)}else if(typeof o.element=="function"){const l=o.element;r=l(n)}}}),Z.onDestroy(()=>{r==null||r()});function a(l){s.binding_callbacks[l?"unshift":"push"](()=>{n=l,e(1,n)})}return i.$$set=l=>{"tag"in l&&e(0,o=l.tag)},[o,n,a]}class Rf extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Of,Qf,s.safe_not_equal,{tag:0},Tf)}}function Ff(i){s.append_styles(i,"svelte-95x526",`@font-face{font-family:'TG-TYPE';font-style:normal;font-weight:400;src:local('TG-TYPE-Bold'),
539
+ `))&&s.attr(t,"style",e),l&8&&s.set_style(t,"width",be(i[3]),!1),l&16&&s.set_style(t,"height",be(i[4]),!1),l&8192&&s.set_style(t,"z-index",i[13],!1)},i(a){r||(a&&s.add_render_callback(()=>{n&&n.end(1),o=s.create_in_transition(t,de.fade,{duration:i[0]}),o.start()}),r=!0)},o(a){o&&o.invalidate(),a&&(n=s.create_out_transition(t,de.fade,{duration:i[1]})),r=!1},d(a){a&&s.detach(t),a&&n&&n.end()}}}function ch(i){let t,e=i[2]&&Ji(i);return{c(){e&&e.c(),t=s.empty()},m(o,n){e&&e.m(o,n),s.insert(o,t,n)},p(o,[n]){o[2]?e?(e.p(o,n),n&4&&s.transition_in(e,1)):(e=Ji(o),e.c(),s.transition_in(e,1),e.m(t.parentNode,t)):e&&(s.group_outros(),s.transition_out(e,1,1,()=>{e=null}),s.check_outros())},i(o){s.transition_in(e)},o(o){s.transition_out(e)},d(o){e&&e.d(o),o&&s.detach(t)}}}function be(i){return typeof i=="number"?i/16+"rem":i}function dh(i,t,e){let{inDelay:o=1e3}=t,{outDelay:n=1e3}=t,{visible:r=!0}=t,{width:a=0}=t,{height:l=0}=t,{left:c=0}=t,{bottom:d=0}=t,{center:u=!1}=t,{horizontalCenter:f=!1}=t,{verticalCenter:h=!1}=t,{blurRadius:p}=t,{spreadRadius:g}=t,{opacity:A=.15}=t,{zIndex:b=void 0}=t;return i.$$set=v=>{"inDelay"in v&&e(0,o=v.inDelay),"outDelay"in v&&e(1,n=v.outDelay),"visible"in v&&e(2,r=v.visible),"width"in v&&e(3,a=v.width),"height"in v&&e(4,l=v.height),"left"in v&&e(5,c=v.left),"bottom"in v&&e(6,d=v.bottom),"center"in v&&e(7,u=v.center),"horizontalCenter"in v&&e(8,f=v.horizontalCenter),"verticalCenter"in v&&e(9,h=v.verticalCenter),"blurRadius"in v&&e(10,p=v.blurRadius),"spreadRadius"in v&&e(11,g=v.spreadRadius),"opacity"in v&&e(12,A=v.opacity),"zIndex"in v&&e(13,b=v.zIndex)},[o,n,r,a,l,c,d,u,f,h,p,g,A,b]}class we extends s.SvelteComponent{constructor(t){super(),s.init(this,t,dh,ch,s.safe_not_equal,{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},lh)}}function uh(){return Math.random().toString(36).slice(-6)}const Zi=uh();function hh(i){s.append_styles(i,"svelte-1b2n9wi",".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function qi(i,t,e){const o=i.slice();return o[10]=t[e],o[11]=t,o[12]=e,o}function Ki(i){let t,e=i[10]+"",o,n=i[12];const r=()=>i[6](t,n),a=()=>i[6](null,n);return{c(){t=s.element("span"),o=s.text(e),s.attr(t,"class","text-char svelte-1b2n9wi")},m(l,c){s.insert(l,t,c),s.append(t,o),r()},p(l,c){i=l,c&2&&e!==(e=i[10]+"")&&s.set_data(o,e),n!==i[12]&&(a(),n=i[12],r())},d(l){l&&s.detach(t),a()}}}function fh(i){let t,e=i[1],o=[];for(let n=0;n<e.length;n+=1)o[n]=Ki(qi(i,e,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=s.empty()},m(n,r){for(let a=0;a<o.length;a+=1)o[a].m(n,r);s.insert(n,t,r)},p(n,[r]){if(r&3){e=n[1];let a;for(a=0;a<e.length;a+=1){const l=qi(n,e,a);o[a]?o[a].p(l,r):(o[a]=Ki(l),o[a].c(),o[a].m(t.parentNode,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=e.length}},i:s.noop,o:s.noop,d(n){s.destroy_each(o,n),n&&s.detach(t)}}}function mh(i,t,e){let o,{inDelay:n=0}=t,{outDelay:r=0}=t,{content:a}=t,{unfolded:l}=t,c,d=[],u;function f(p){clearTimeout(c),c=setTimeout(function(){!u||(p&&u.reversed||!p&&!u.reversed)&&(u.reverse(),u.play())},p?n:r)}Z.onMount(function(){const p=(()=>{const g=ih(A=>d[A].getBoundingClientRect().x,[Math.min(d.length-1,10),Math.min(d.length-1,30)]);if(g>0)return g})();u=Uo.default({targets:d.filter(Ue).slice(0,p),autoplay:!1,duration:400,scale:[.7,1],rotate:[20,0],opacity:[0,1],translateX:[4,0],translateY:[10,0],delay:Uo.default.stagger(50),easing:"easeInOutCubic"}),l&&u.seek(u.duration)});function h(p,g){s.binding_callbacks[p?"unshift":"push"](()=>{d[g]=p,e(0,d)})}return i.$$set=p=>{"inDelay"in p&&e(2,n=p.inDelay),"outDelay"in p&&e(3,r=p.outDelay),"content"in p&&e(4,a=p.content),"unfolded"in p&&e(5,l=p.unfolded)},i.$$.update=()=>{i.$$.dirty&16&&e(1,o=(()=>{const p=[],g=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")),A=`__EMOJI_SPLIT_${Zi}__`,b=`__EMOJI_${Zi}__`;return a.slice().replace(g,v=>`${A}${b}${v}${A}`).split(A).forEach(v=>v.startsWith(b)?p.push(v.slice(b.length)):p.push(...v.split(""))),p.filter(Boolean)})()),i.$$.dirty&32&&f(l)},[d,o,n,r,a,l,h]}class $i extends s.SvelteComponent{constructor(t){super(),s.init(this,t,mh,fh,s.safe_not_equal,{inDelay:2,outDelay:3,content:4,unfolded:5},hh)}}const ph="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAAKgAAAADUGqULAAAB0ElEQVRYCe2WSUoEQRBFLVHEiVZU1I03cKW38SSewRt4A5fiTty5cQIFR9pZQWkcUNSe2/Z9yISiSGxRkUAy4BGZSVX168gistraYsQKxArECsQKxApYqkDyU5lmsznMM+ZgAGpQhaUkSRbINgLJCXiCBtSgAkVYtGGIBTKj8AgKSVahDNvQa0IUkUG4Bx91BpLdBTOS/cgUIB3a+gMwI9mFzE3a0I3z5B4r292JzGVA8tSSZILMcUDyzIykthOZvYDk+V9Ktmz4yGzhOhV4/+5YU4N/hzqo0StX3Fg5TcnNlYvgs8bPsM4hkScHoyO46haRnGEYktQVI+4ypUYKyXtxyUu27JCceAMJvjo0HoM5CEZ7cPX7i013q3IWVV5r2aw/2TK+svWbPGU68KQCa6pYeus1V0X99quSfvtVSc39lmfz2mdbz32tg1dAJ0421AVs9E7/FxBSezrMmjI/gm5/nYmMkBq+TqBs7LNgTlZH6EnWlPmORdk+pHQipUNfTxtg7p3NIXWRMvXfoqusmXsNhpC6crIS1Zf9C6yAOdlxpK5BW18CiT7A/G93gE+P0FY/RoO+RWqS62YhB2r4YhlixArECsQKxArECvzjCnwAOr0wF44ggHAAAAAASUVORK5CYII=",en="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAACoCAMAAAD6pITnAAABQVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACvr68AAAAAAAAAAAB5eXkAAAA8PDzr6+sLCwuenp4UFBT////8/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lhQpph3sQvISAVRa9ppRzipY4gZqdw8/WigIWDWt1gD8EIsqSLlT/KPUVlKSAujs2XTLYeRHiIlA2DVi1qkRtK8PSULaEDF+Ue7ashwkTlf8DQc/cITdx9+UAAAAASUVORK5CYII=";function gh(i){s.append_styles(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 on(i){let t,e,o,n,r,a,l,c,d,u;return e=new we({props:{center:!0,blurRadius:9,spreadRadius:3}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),s.attr(n,"class",r="arrow "+i[0]+" svelte-1ogmlqq"),s.set_style(n,"background-image","url("+ph+")"),s.attr(t,"class","arrow-wrapper svelte-1ogmlqq")},m(f,h){s.insert(f,t,h),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),c=!0,d||(u=s.listen(n,"click",i[5]),d=!0)},p(f,h){i=f,(!c||h&1&&r!==(r="arrow "+i[0]+" svelte-1ogmlqq"))&&s.attr(n,"class",r)},i(f){c||(s.transition_in(e.$$.fragment,f),f&&s.add_render_callback(()=>{l&&l.end(1),a=s.create_in_transition(n,de.fade,{duration:i[2],delay:i[3],easing:ce.cubicInOut}),a.start()}),c=!0)},o(f){s.transition_out(e.$$.fragment,f),a&&a.invalidate(),f&&(l=s.create_out_transition(n,de.fade,{duration:i[2],delay:i[4],easing:ce.cubicInOut})),c=!1},d(f){f&&s.detach(t),s.destroy_component(e),f&&l&&l.end(),d=!1,u()}}}function Ah(i){let t,e,o=i[1]&&on(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[1]?o?(o.p(n,r),r&2&&s.transition_in(o,1)):(o=on(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function vh(i,t,e){let{direction:o="right"}=t,{visible:n=!0}=t,{duration:r=0}=t,{inDelay:a=0}=t,{outDelay:l=0}=t;function c(d){s.bubble.call(this,i,d)}return i.$$set=d=>{"direction"in d&&e(0,o=d.direction),"visible"in d&&e(1,n=d.visible),"duration"in d&&e(2,r=d.duration),"inDelay"in d&&e(3,a=d.inDelay),"outDelay"in d&&e(4,l=d.outDelay)},[o,n,r,a,l,c]}class bh extends s.SvelteComponent{constructor(t){super(),s.init(this,t,vh,Ah,s.safe_not_equal,{direction:0,visible:1,duration:2,inDelay:3,outDelay:4},gh)}}function yh(i,t,e=20,o=5){return new Promise((n,r)=>{let a=0;const l=setInterval(()=>{const c=i();t(c)?(clearInterval(l),n(c)):a>=o&&(clearInterval(l),r(c)),a++},e)})}function wh(i){s.append_styles(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 sn(i,t,e){const o=i.slice();return o[11]=t[e].id,o[12]=t[e].content,o}function nn(i,t){let e,o,n;return o=new $i({props:{unfolded:t[0],content:t[12],inDelay:500,outDelay:t[5]}}),{key:i,first:null,c(){e=s.element("div"),s.create_component(o.$$.fragment),s.attr(e,"class","text svelte-1fuzm7v"),s.set_style(e,"transform",t[7],!1),this.first=e},m(r,a){s.insert(r,e,a),s.mount_component(o,e,null),t[10](e),n=!0},p(r,a){t=r;const l={};a&1&&(l.unfolded=t[0]),a&2&&(l.content=t[12]),a&32&&(l.outDelay=t[5]),o.$set(l),a&128&&s.set_style(e,"transform",t[7],!1)},i(r){n||(s.transition_in(o.$$.fragment,r),n=!0)},o(r){s.transition_out(o.$$.fragment,r),n=!1},d(r){r&&s.detach(e),s.destroy_component(o),t[10](null)}}}function rn(i){let t,e,o;return e=new bh({props:{direction:i[6],visible:i[0],inDelay:600,duration:1e3}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),s.attr(t,"class","arrow svelte-1fuzm7v")},m(n,r){s.insert(n,t,r),s.mount_component(e,t,null),o=!0},p(n,r){const a={};r&64&&(a.direction=n[6]),r&1&&(a.visible=n[0]),e.$set(a)},i(n){o||(s.transition_in(e.$$.fragment,n),o=!0)},o(n){s.transition_out(e.$$.fragment,n),o=!1},d(n){n&&s.detach(t),s.destroy_component(e)}}}function Ch(i){let t=[],e=new Map,o,n,r,a=i[1];const l=d=>d[11];for(let d=0;d<a.length;d+=1){let u=sn(i,a,d),f=l(u);e.set(f,t[d]=nn(f,u))}let c=i[3]<i[4]&&rn(i);return{c(){for(let d=0;d<t.length;d+=1)t[d].c();o=s.space(),c&&c.c(),n=s.empty()},m(d,u){for(let f=0;f<t.length;f+=1)t[f].m(d,u);s.insert(d,o,u),c&&c.m(d,u),s.insert(d,n,u),r=!0},p(d,[u]){u&167&&(a=d[1],s.group_outros(),t=s.update_keyed_each(t,u,l,1,d,a,e,o.parentNode,s.outro_and_destroy_block,nn,o,sn),s.check_outros()),d[3]<d[4]?c?(c.p(d,u),u&24&&s.transition_in(c,1)):(c=rn(d),c.c(),s.transition_in(c,1),c.m(n.parentNode,n)):c&&(s.group_outros(),s.transition_out(c,1,1,()=>{c=null}),s.check_outros())},i(d){if(!r){for(let u=0;u<a.length;u+=1)s.transition_in(t[u]);s.transition_in(c),r=!0}},o(d){for(let u=0;u<t.length;u+=1)s.transition_out(t[u]);s.transition_out(c),r=!1},d(d){for(let u=0;u<t.length;u+=1)t[u].d(d);d&&s.detach(o),c&&c.d(d),d&&s.detach(n)}}}function Ph(i,t,e){let o,n,r,{visible:a=!1}=t,{textUnfolded:l=!1}=t,{textItems:c}=t,d,u=0,f=0,h=0;function p(g){s.binding_callbacks[g?"unshift":"push"](()=>{d=g,e(2,d)})}return i.$$set=g=>{"visible"in g&&e(0,a=g.visible),"textUnfolded"in g&&e(8,l=g.textUnfolded),"textItems"in g&&e(1,c=g.textItems)},i.$$.update=()=>{if(i.$$.dirty&5&&d&&a){const{lineHeight:g}=getComputedStyle(d);e(4,h=d.offsetHeight),yh(()=>d==null?void 0:d.offsetHeight,Boolean).then(()=>{e(4,h=d.offsetHeight)}),e(3,f=Number(g.replace("px","")))}i.$$.dirty&280&&e(9,u=l?f-h:0),i.$$.dirty&512&&e(7,o=`translateY(${u}px)`),i.$$.dirty&256&&e(6,n=l?"left":"right"),i.$$.dirty&256&&e(5,r=l?450:0)},[a,c,d,f,h,r,n,o,l,u,p]}class an extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Ph,Ch,s.safe_not_equal,{visible:0,textUnfolded:8,textItems:1},wh)}}function Ih(i){s.append_styles(i,"svelte-18yy5x8",".line.svelte-18yy5x8{position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-18yy5x8{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}")}function ln(i){var h,p;let t,e,o,n,r,a,l,c,d,u,f;return t=new we({props:{visible:i[2],left:i[3]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),n=new Vi({props:{unfolded:i[2],duration:1e3,outDelay:i[5]+40*Math.min((p=(h=i[4][0])==null?void 0:h.content.length)!=null?p:10,15)}}),l=new an({props:{visible:i[2],textUnfolded:i[1],textItems:i[4]}}),{c(){s.create_component(t.$$.fragment),e=s.space(),o=s.element("div"),s.create_component(n.$$.fragment),r=s.space(),a=s.element("div"),s.create_component(l.$$.fragment),s.attr(o,"class","line svelte-18yy5x8"),s.set_style(o,"width",i[3]+"px",!1),s.attr(a,"class","content svelte-18yy5x8"),s.add_render_callback(()=>i[8].call(a))},m(g,A){s.mount_component(t,g,A),s.insert(g,e,A),s.insert(g,o,A),s.mount_component(n,o,null),s.insert(g,r,A),s.insert(g,a,A),s.mount_component(l,a,null),c=s.add_resize_listener(a,i[8].bind(a)),d=!0,u||(f=s.listen(a,"click",i[6]),u=!0)},p(g,A){var y,E;const b={};A&4&&(b.visible=g[2]),A&8&&(b.left=g[3]/2+"px"),t.$set(b);const v={};A&4&&(v.unfolded=g[2]),A&48&&(v.outDelay=g[5]+40*Math.min((E=(y=g[4][0])==null?void 0:y.content.length)!=null?E:10,15)),n.$set(v),A&8&&s.set_style(o,"width",g[3]+"px",!1);const C={};A&4&&(C.visible=g[2]),A&2&&(C.textUnfolded=g[1]),A&16&&(C.textItems=g[4]),l.$set(C)},i(g){d||(s.transition_in(t.$$.fragment,g),s.transition_in(n.$$.fragment,g),s.transition_in(l.$$.fragment,g),d=!0)},o(g){s.transition_out(t.$$.fragment,g),s.transition_out(n.$$.fragment,g),s.transition_out(l.$$.fragment,g),d=!1},d(g){s.destroy_component(t,g),g&&s.detach(e),g&&s.detach(o),s.destroy_component(n),g&&s.detach(r),g&&s.detach(a),s.destroy_component(l),c(),u=!1,f()}}}function Eh(i){let t,e,o=i[0].state&&ln(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[0].state?o?(o.p(n,r),r&1&&s.transition_in(o,1)):(o=ln(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function kh(i,t,e){let o,n,r,{tag:a}=t,l,c=!1,d=[];function u(){e(1,c=!c)}function f(){l=this.clientWidth,e(3,l)}return i.$$set=h=>{"tag"in h&&e(0,a=h.tag)},i.$$.update=()=>{var h;i.$$.dirty&1&&e(2,o=!!((h=a.state)!=null&&h.unfolded)),i.$$.dirty&1&&e(7,n=a.data.text),i.$$.dirty&128&&e(4,d=[{id:fe(),content:n}]),i.$$.dirty&4&&(o||setTimeout(()=>{e(1,c=!1)},20)),i.$$.dirty&2&&e(5,r=c?450:0)},[a,c,o,l,d,r,u,n,f]}class xh extends s.SvelteComponent{constructor(t){super(),s.init(this,t,kh,Eh,s.safe_not_equal,{tag:0},Ih)}}function Dh(i){s.append_styles(i,"svelte-e72ouh",".line.svelte-e72ouh{width:100%;height:100%;overflow:visible}")}function cn(i){let t,e,o,n;return{c(){t=s.svg_element("path"),s.attr(t,"fill","none"),s.attr(t,"stroke","url(#"+i[4]+")"),s.attr(t,"stroke-width","1"),s.attr(t,"d","M0 21 L14 0.5 L105 0.5")},m(r,a){s.insert(r,t,a),n=!0},p(r,a){i=r},i(r){n||(r&&s.add_render_callback(()=>{o&&o.end(1),e=s.create_in_transition(t,de.draw,{duration:i[1],delay:i[0],easing:ce.cubicOut}),e.start()}),n=!0)},o(r){e&&e.invalidate(),r&&(o=s.create_out_transition(t,de.draw,{duration:i[1],delay:i[2],easing:ce.cubicInOut})),n=!1},d(r){r&&s.detach(t),r&&o&&o.end()}}}function Sh(i){let t,e,o,n,r,a=i[3]&&cn(i);return{c(){t=s.svg_element("svg"),e=s.svg_element("defs"),o=s.svg_element("linearGradient"),n=s.svg_element("stop"),r=s.svg_element("stop"),a&&a.c(),s.attr(n,"offset","25%"),s.attr(n,"stop-color","white"),s.attr(n,"stop-opacity","1"),s.attr(r,"offset","100%"),s.attr(r,"stop-color","white"),s.attr(r,"stop-opacity","0.5"),s.attr(o,"id",i[4]),s.attr(o,"gradientUnits","userSpaceOnUse"),s.attr(t,"class","line svelte-e72ouh"),s.attr(t,"viewBox","0 0 105 21")},m(l,c){s.insert(l,t,c),s.append(t,e),s.append(e,o),s.append(o,n),s.append(o,r),a&&a.m(t,null)},p(l,[c]){l[3]?a?(a.p(l,c),c&8&&s.transition_in(a,1)):(a=cn(l),a.c(),s.transition_in(a,1),a.m(t,null)):a&&(s.group_outros(),s.transition_out(a,1,1,()=>{a=null}),s.check_outros())},i(l){s.transition_in(a)},o(l){s.transition_out(a)},d(l){l&&s.detach(t),a&&a.d()}}}function Lh(i,t,e){let{inDelay:o=0}=t,{duration:n=0}=t,{outDelay:r=0}=t,{unfolded:a}=t;const l=fe();return i.$$set=c=>{"inDelay"in c&&e(0,o=c.inDelay),"duration"in c&&e(1,n=c.duration),"outDelay"in c&&e(2,r=c.outDelay),"unfolded"in c&&e(3,a=c.unfolded)},[o,n,r,a,l]}class _h extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Lh,Sh,s.safe_not_equal,{inDelay:0,duration:1,outDelay:2,unfolded:3},Dh)}}function Ve(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function Te(i,t){const e=["__proto__","constructor","prototype"];Object.keys(t).filter(o=>e.indexOf(o)<0).forEach(o=>{typeof i[o]=="undefined"?i[o]=t[o]:Ve(t[o])&&Ve(i[o])&&Object.keys(t[o]).length>0?t[o].__swiper__?i[o]=t[o]:Te(i[o],t[o]):i[o]=t[o]})}function ko(i={}){return i.navigation&&typeof i.navigation.nextEl=="undefined"&&typeof i.navigation.prevEl=="undefined"}function xo(i={}){return i.pagination&&typeof i.pagination.el=="undefined"}function Do(i={}){return i.scrollbar&&typeof i.scrollbar.el=="undefined"}function Ut(i=""){const t=i.split(" ").map(o=>o.trim()).filter(o=>!!o),e=[];return t.forEach(o=>{e.indexOf(o)<0&&e.push(o)}),e.join(" ")}const dn=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function zh(i={},t=!0){const e={on:{}},o={},n={};Te(e,eo.default.defaults),Te(e,eo.default.extendedDefaults),e._emitClasses=!0,e.init=!1;const r={},a=dn.map(c=>c.replace(/_/,"")),l=Object.assign({},i);return Object.keys(l).forEach(c=>{typeof i[c]!="undefined"&&(a.indexOf(c)>=0?Ve(i[c])?(e[c]={},n[c]={},Te(e[c],i[c]),Te(n[c],i[c])):(e[c]=i[c],n[c]=i[c]):c.search(/on[A-Z]/)===0&&typeof i[c]=="function"?t?o[`${c[2].toLowerCase()}${c.substr(3)}`]=i[c]:e.on[`${c[2].toLowerCase()}${c.substr(3)}`]=i[c]:r[c]=i[c])}),["navigation","pagination","scrollbar"].forEach(c=>{e[c]===!0&&(e[c]={}),e[c]===!1&&delete e[c]}),{params:e,passedParams:n,rest:r,events:o}}function Mh({el:i,nextEl:t,prevEl:e,paginationEl:o,scrollbarEl:n,swiper:r},a){ko(a)&&t&&e&&(r.params.navigation.nextEl=t,r.originalParams.navigation.nextEl=t,r.params.navigation.prevEl=e,r.originalParams.navigation.prevEl=e),xo(a)&&o&&(r.params.pagination.el=o,r.originalParams.pagination.el=o),Do(a)&&n&&(r.params.scrollbar.el=n,r.originalParams.scrollbar.el=n),r.init(i)}function jh(i,t,e,o,n){const r=[];if(!t)return r;const a=c=>{r.indexOf(c)<0&&r.push(c)};if(e&&o){const c=o.map(n),d=e.map(n);c.join("")!==d.join("")&&a("children"),o.length!==e.length&&a("children")}return dn.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in i&&c in t)if(Ve(i[c])&&Ve(t[c])){const d=Object.keys(i[c]),u=Object.keys(t[c]);d.length!==u.length?a(c):(d.forEach(f=>{i[c][f]!==t[c][f]&&a(c)}),u.forEach(f=>{i[c][f]!==t[c][f]&&a(c)}))}else i[c]!==t[c]&&a(c)}),r}function Bh({swiper:i,slides:t,passedParams:e,changedParams:o,nextEl:n,prevEl:r,scrollbarEl:a,paginationEl:l}){const c=o.filter(k=>k!=="children"&&k!=="direction"),{params:d,pagination:u,navigation:f,scrollbar:h,virtual:p,thumbs:g}=i;let A,b,v,C,y;o.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(A=!0),o.includes("controller")&&e.controller&&e.controller.control&&d.controller&&!d.controller.control&&(b=!0),o.includes("pagination")&&e.pagination&&(e.pagination.el||l)&&(d.pagination||d.pagination===!1)&&u&&!u.el&&(v=!0),o.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||a)&&(d.scrollbar||d.scrollbar===!1)&&h&&!h.el&&(C=!0),o.includes("navigation")&&e.navigation&&(e.navigation.prevEl||r)&&(e.navigation.nextEl||n)&&(d.navigation||d.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(y=!0);const E=k=>{!i[k]||(i[k].destroy(),k==="navigation"?(d[k].prevEl=void 0,d[k].nextEl=void 0,i[k].prevEl=void 0,i[k].nextEl=void 0):(d[k].el=void 0,i[k].el=void 0))};c.forEach(k=>{if(Ve(d[k])&&Ve(e[k]))Te(d[k],e[k]);else{const w=e[k];(w===!0||w===!1)&&(k==="navigation"||k==="pagination"||k==="scrollbar")?w===!1&&E(k):d[k]=e[k]}}),c.includes("controller")&&!b&&i.controller&&i.controller.control&&d.controller&&d.controller.control&&(i.controller.control=d.controller.control),o.includes("children")&&t&&p&&d.virtual.enabled?(p.slides=t,p.update(!0)):o.includes("children")&&i.lazy&&i.params.lazy.enabled&&i.lazy.load(),A&&g.init()&&g.update(!0),b&&(i.controller.control=d.controller.control),v&&(l&&(d.pagination.el=l),u.init(),u.render(),u.update()),C&&(a&&(d.scrollbar.el=a),h.init(),h.updateSize(),h.setTranslate()),y&&(n&&(d.navigation.nextEl=n),r&&(d.navigation.prevEl=r),f.init(),f.update()),o.includes("allowSlideNext")&&(i.allowSlideNext=e.allowSlideNext),o.includes("allowSlidePrev")&&(i.allowSlidePrev=e.allowSlidePrev),o.includes("direction")&&i.changeDirection(e.direction,!1),i.update()}const Th=i=>({virtualData:i&512}),un=i=>({virtualData:i[9]}),Qh=i=>({virtualData:i&512}),hn=i=>({virtualData:i[9]}),Oh=i=>({virtualData:i&512}),fn=i=>({virtualData:i[9]}),Rh=i=>({virtualData:i&512}),mn=i=>({virtualData:i[9]}),Fh=i=>({virtualData:i&512}),pn=i=>({virtualData:i[9]});function gn(i){let t,e,o;return{c(){t=s.element("div"),e=s.space(),o=s.element("div"),s.attr(t,"class","swiper-button-prev"),s.attr(o,"class","swiper-button-next")},m(n,r){s.insert(n,t,r),i[13](t),s.insert(n,e,r),s.insert(n,o,r),i[14](o)},p:s.noop,d(n){n&&s.detach(t),i[13](null),n&&s.detach(e),n&&s.detach(o),i[14](null)}}}function An(i){let t;return{c(){t=s.element("div"),s.attr(t,"class","swiper-scrollbar")},m(e,o){s.insert(e,t,o),i[15](t)},p:s.noop,d(e){e&&s.detach(t),i[15](null)}}}function vn(i){let t;return{c(){t=s.element("div"),s.attr(t,"class","swiper-pagination")},m(e,o){s.insert(e,t,o),i[16](t)},p:s.noop,d(e){e&&s.detach(t),i[16](null)}}}function Hh(i){let t,e,o,n,r,a,l=ko(i[2]),c,d=Do(i[2]),u,f=xo(i[2]),h,p,g;const A=i[12]["container-start"],b=s.create_slot(A,i,i[11],pn),v=i[12]["wrapper-start"],C=s.create_slot(v,i,i[11],mn),y=i[12].default,E=s.create_slot(y,i,i[11],fn),k=i[12]["wrapper-end"],w=s.create_slot(k,i,i[11],hn);let D=l&&gn(i),x=d&&An(i),z=f&&vn(i);const _=i[12]["container-end"],j=s.create_slot(_,i,i[11],un);let R=[{class:p=Ut(`${i[1]}${i[0]?` ${i[0]}`:""}`)},i[3]],P={};for(let S=0;S<R.length;S+=1)P=s.assign(P,R[S]);return{c(){t=s.element("div"),b&&b.c(),e=s.space(),o=s.element("div"),C&&C.c(),n=s.space(),E&&E.c(),r=s.space(),w&&w.c(),a=s.space(),D&&D.c(),c=s.space(),x&&x.c(),u=s.space(),z&&z.c(),h=s.space(),j&&j.c(),s.attr(o,"class","swiper-wrapper"),s.set_attributes(t,P)},m(S,L){s.insert(S,t,L),b&&b.m(t,null),s.append(t,e),s.append(t,o),C&&C.m(o,null),s.append(o,n),E&&E.m(o,null),s.append(o,r),w&&w.m(o,null),s.append(t,a),D&&D.m(t,null),s.append(t,c),x&&x.m(t,null),s.append(t,u),z&&z.m(t,null),s.append(t,h),j&&j.m(t,null),i[17](t),g=!0},p(S,[L]){b&&b.p&&(!g||L&2560)&&s.update_slot_base(b,A,S,S[11],g?s.get_slot_changes(A,S[11],L,Fh):s.get_all_dirty_from_scope(S[11]),pn),C&&C.p&&(!g||L&2560)&&s.update_slot_base(C,v,S,S[11],g?s.get_slot_changes(v,S[11],L,Rh):s.get_all_dirty_from_scope(S[11]),mn),E&&E.p&&(!g||L&2560)&&s.update_slot_base(E,y,S,S[11],g?s.get_slot_changes(y,S[11],L,Oh):s.get_all_dirty_from_scope(S[11]),fn),w&&w.p&&(!g||L&2560)&&s.update_slot_base(w,k,S,S[11],g?s.get_slot_changes(k,S[11],L,Qh):s.get_all_dirty_from_scope(S[11]),hn),L&4&&(l=ko(S[2])),l?D?D.p(S,L):(D=gn(S),D.c(),D.m(t,c)):D&&(D.d(1),D=null),L&4&&(d=Do(S[2])),d?x?x.p(S,L):(x=An(S),x.c(),x.m(t,u)):x&&(x.d(1),x=null),L&4&&(f=xo(S[2])),f?z?z.p(S,L):(z=vn(S),z.c(),z.m(t,h)):z&&(z.d(1),z=null),j&&j.p&&(!g||L&2560)&&s.update_slot_base(j,_,S,S[11],g?s.get_slot_changes(_,S[11],L,Th):s.get_all_dirty_from_scope(S[11]),un),s.set_attributes(t,P=s.get_spread_update(R,[(!g||L&3&&p!==(p=Ut(`${S[1]}${S[0]?` ${S[0]}`:""}`)))&&{class:p},L&8&&S[3]]))},i(S){g||(s.transition_in(b,S),s.transition_in(C,S),s.transition_in(E,S),s.transition_in(w,S),s.transition_in(j,S),g=!0)},o(S){s.transition_out(b,S),s.transition_out(C,S),s.transition_out(E,S),s.transition_out(w,S),s.transition_out(j,S),g=!1},d(S){S&&s.detach(t),b&&b.d(S),C&&C.d(S),E&&E.d(S),w&&w.d(S),D&&D.d(),x&&x.d(),z&&z.d(),j&&j.d(S),i[17](null)}}}function Gh(i,t,e){const o=["class","swiper"];let n=s.compute_rest_props(t,o),{$$slots:r={},$$scope:a}=t;const l=Z.createEventDispatcher();let{class:c=void 0}=t,d="swiper",u=!1,f=null,h=null,p,g,A,b,v=null,C=null,y=null,E=null,k=null,w={slides:[]};function D(){return f}const x=T=>{e(9,w=T),Z.tick().then(()=>{f.$wrapperEl.children(".swiper-slide").each(O=>{O.onSwiper&&O.onSwiper(f)}),f.updateSlides(),f.updateProgress(),f.updateSlidesClasses(),f.lazy&&f.params.lazy.enabled&&f.lazy.load()})},z=()=>{p=zh(n),e(2,g=p.params),A=p.passedParams,e(3,b=p.rest)};z(),h=A;const _=()=>{u=!0};if(g.onAny=(T,...O)=>{l(T,O)},Object.assign(g.on,{_beforeBreakpoint:_,_containerClasses(T,O){e(1,d=O)}}),f=new eo.default(g),Z.setContext("swiper",f),f.virtual&&f.params.virtual.enabled){const T={cache:!1,renderExternal:O=>{x(O),g.virtual&&g.virtual.renderExternal&&g.virtual.renderExternal(O)},renderExternalUpdate:!1};Te(f.params.virtual,T),Te(f.originalParams.virtual,T)}Z.onMount(()=>{!v||(Mh({el:v,nextEl:y,prevEl:C,paginationEl:k,scrollbarEl:E,swiper:f},g),l("swiper",[f]),!g.virtual&&f.slides.each(T=>{T.onSwiper&&T.onSwiper(f)}))}),Z.afterUpdate(()=>{if(!f)return;z();const T=jh(A,h);(T.length||u)&&f&&!f.destroyed&&Bh({swiper:f,passedParams:A,changedParams:T,nextEl:y,prevEl:C,scrollbarEl:E,paginationEl:k}),u=!1,h=A}),Z.onDestroy(()=>{typeof window!="undefined"&&f&&!f.destroyed&&f.destroy(!0,!1)});function j(T){s.binding_callbacks[T?"unshift":"push"](()=>{C=T,e(5,C)})}function R(T){s.binding_callbacks[T?"unshift":"push"](()=>{y=T,e(6,y)})}function P(T){s.binding_callbacks[T?"unshift":"push"](()=>{E=T,e(7,E)})}function S(T){s.binding_callbacks[T?"unshift":"push"](()=>{k=T,e(8,k)})}function L(T){s.binding_callbacks[T?"unshift":"push"](()=>{v=T,e(4,v)})}return i.$$set=T=>{t=s.assign(s.assign({},t),s.exclude_internal_props(T)),e(27,n=s.compute_rest_props(t,o)),"class"in T&&e(0,c=T.class),"$$scope"in T&&e(11,a=T.$$scope)},[c,d,g,b,v,C,y,E,k,w,D,a,r,j,R,P,S,L]}class Nh extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Gh,Hh,s.safe_not_equal,{class:0,swiper:10})}get swiper(){return this.$$.ctx[10]}}const Wh=i=>({data:i&32}),bn=i=>({data:i[5]}),Xh=i=>({data:i&32}),yn=i=>({data:i[5]});function Yh(i){let t;const e=i[8].default,o=s.create_slot(e,i,i[7],bn);return{c(){o&&o.c()},m(n,r){o&&o.m(n,r),t=!0},p(n,r){o&&o.p&&(!t||r&160)&&s.update_slot_base(o,e,n,n[7],t?s.get_slot_changes(e,n[7],r,Wh):s.get_all_dirty_from_scope(n[7]),bn)},i(n){t||(s.transition_in(o,n),t=!0)},o(n){s.transition_out(o,n),t=!1},d(n){o&&o.d(n)}}}function Uh(i){let t,e,o;const n=i[8].default,r=s.create_slot(n,i,i[7],yn);return{c(){t=s.element("div"),r&&r.c(),s.attr(t,"class","swiper-zoom-container"),s.attr(t,"data-swiper-zoom",e=typeof i[0]=="number"?i[0]:void 0)},m(a,l){s.insert(a,t,l),r&&r.m(t,null),o=!0},p(a,l){r&&r.p&&(!o||l&160)&&s.update_slot_base(r,n,a,a[7],o?s.get_slot_changes(n,a[7],l,Xh):s.get_all_dirty_from_scope(a[7]),yn),(!o||l&1&&e!==(e=typeof a[0]=="number"?a[0]:void 0))&&s.attr(t,"data-swiper-zoom",e)},i(a){o||(s.transition_in(r,a),o=!0)},o(a){s.transition_out(r,a),o=!1},d(a){a&&s.detach(t),r&&r.d(a)}}}function Vh(i){let t,e,o,n,r;const a=[Uh,Yh],l=[];function c(f,h){return f[0]?0:1}e=c(i),o=l[e]=a[e](i);let d=[{class:n=Ut(`${i[3]}${i[2]?` ${i[2]}`:""}`)},{"data-swiper-slide-index":i[1]},i[6]],u={};for(let f=0;f<d.length;f+=1)u=s.assign(u,d[f]);return{c(){t=s.element("div"),o.c(),s.set_attributes(t,u)},m(f,h){s.insert(f,t,h),l[e].m(t,null),i[9](t),r=!0},p(f,[h]){let p=e;e=c(f),e===p?l[e].p(f,h):(s.group_outros(),s.transition_out(l[p],1,1,()=>{l[p]=null}),s.check_outros(),o=l[e],o?o.p(f,h):(o=l[e]=a[e](f),o.c()),s.transition_in(o,1),o.m(t,null)),s.set_attributes(t,u=s.get_spread_update(d,[(!r||h&12&&n!==(n=Ut(`${f[3]}${f[2]?` ${f[2]}`:""}`)))&&{class:n},(!r||h&2)&&{"data-swiper-slide-index":f[1]},h&64&&f[6]]))},i(f){r||(s.transition_in(o),r=!0)},o(f){s.transition_out(o),r=!1},d(f){f&&s.detach(t),l[e].d(),i[9](null)}}}function Jh(i,t,e){let o;const n=["zoom","virtualIndex","class"];let r=s.compute_rest_props(t,n),{$$slots:a={},$$scope:l}=t,{zoom:c=void 0}=t,{virtualIndex:d=void 0}=t,{class:u=void 0}=t,f=null,h="swiper-slide",p=Z.getContext("swiper"),g=!1;const A=(y,E,k)=>{E===f&&e(3,h=k)},b=()=>{!p||g||(p.on("_slideClass",A),g=!0)},v=()=>{!p||(p.off("_slideClass",A),g=!1)};Z.onMount(()=>{typeof d!="undefined"&&(e(4,f.onSwiper=y=>{p=y,b()},f),b())}),Z.afterUpdate(()=>{if(!(!f||!p)){if(p.destroyed){h!=="swiper-slide"&&e(3,h="swiper-slide");return}b()}}),Z.beforeUpdate(()=>{b()}),Z.onDestroy(()=>{!p||v()});function C(y){s.binding_callbacks[y?"unshift":"push"](()=>{f=y,e(4,f)})}return i.$$set=y=>{t=s.assign(s.assign({},t),s.exclude_internal_props(y)),e(6,r=s.compute_rest_props(t,n)),"zoom"in y&&e(0,c=y.zoom),"virtualIndex"in y&&e(1,d=y.virtualIndex),"class"in y&&e(2,u=y.class),"$$scope"in y&&e(7,l=y.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&e(5,o={isActive:h.indexOf("swiper-slide-active")>=0||h.indexOf("swiper-slide-duplicate-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isDuplicate:h.indexOf("swiper-slide-duplicate")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0||h.indexOf("swiper-slide-duplicate-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0||h.indexOf("swiper-slide-duplicate-next")>=0})},[c,d,u,h,f,o,r,l,a,C]}class Zh extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Jh,Vh,s.safe_not_equal,{zoom:0,virtualIndex:1,class:2})}}function qh(i){s.append_styles(i,"svelte-cwtvzu",".media-item.svelte-cwtvzu.svelte-cwtvzu{height:100%}.media-content.svelte-cwtvzu.svelte-cwtvzu{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-cwtvzu.svelte-cwtvzu{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-cwtvzu.svelte-cwtvzu{display:none;pointer-events:auto;position:absolute;width:100%;height:100%;top:0;left:0}.video-play-button-container.showPlayButton.svelte-cwtvzu.svelte-cwtvzu{display:block}.video-icon.large.svelte-cwtvzu.svelte-cwtvzu{width:12.5rem;height:6.25rem}.video-icon.small.svelte-cwtvzu.svelte-cwtvzu{width:1.75rem;height:1.75rem}.video-icon.svelte-cwtvzu .video-icon-img.svelte-cwtvzu{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-cwtvzu .video-icon-img.canPlay.svelte-cwtvzu{cursor:pointer}")}function wn(i){let t;function e(r,a){if(r[0].type==="Image")return $h;if(r[0].type==="Video")return Kh}let o=e(i),n=o&&o(i);return{c(){t=s.element("div"),n&&n.c(),s.attr(t,"class","media-item svelte-cwtvzu")},m(r,a){s.insert(r,t,a),n&&n.m(t,null)},p(r,a){o===(o=e(r))&&n?n.p(r,a):(n&&n.d(1),n=o&&o(r),n&&(n.c(),n.m(t,null)))},d(r){r&&s.detach(t),n&&n.d()}}}function Kh(i){let t,e,o,n,r,a,l,c,d,u,f;return{c(){var h;t=s.element("video"),a=s.space(),l=s.element("div"),c=s.element("div"),d=s.element("div"),s.attr(t,"class","media-content svelte-cwtvzu"),s.attr(t,"style",e=`object-fit: ${i[3]};`),s.src_url_equal(t.src,o=i[0].url+"#t=0.1")||s.attr(t,"src",o),s.attr(t,"poster",n=(h=i[0].videoCoverUrl)!=null?h:void 0),s.attr(t,"preload",r=i[0].videoCoverUrl?void 0:"auto"),t.playsInline=!0,s.attr(t,"paused",""),t.loop=!1,s.attr(t,"crossorigin",""),t.controls=!1,s.toggle_class(t,"showPlayButton",i[5]),s.attr(d,"class","video-icon-img svelte-cwtvzu"),s.set_style(d,"background-image","url("+(i[1]==="large"?en:tn)+")"),s.toggle_class(d,"canPlay",i[2]),s.attr(c,"class","video-icon svelte-cwtvzu"),s.toggle_class(c,"large",i[1]==="large"),s.toggle_class(c,"small",i[1]==="small"),s.attr(l,"class","video-play-button-container svelte-cwtvzu"),s.toggle_class(l,"showPlayButton",i[5])},m(h,p){s.insert(h,t,p),i[7](t),s.insert(h,a,p),s.insert(h,l,p),s.append(l,c),s.append(c,d),u||(f=[s.listen(t,"click",i[6]),s.listen(d,"click",i[8])],u=!0)},p(h,p){var g;p&8&&e!==(e=`object-fit: ${h[3]};`)&&s.attr(t,"style",e),p&1&&!s.src_url_equal(t.src,o=h[0].url+"#t=0.1")&&s.attr(t,"src",o),p&1&&n!==(n=(g=h[0].videoCoverUrl)!=null?g:void 0)&&s.attr(t,"poster",n),p&1&&r!==(r=h[0].videoCoverUrl?void 0:"auto")&&s.attr(t,"preload",r),p&32&&s.toggle_class(t,"showPlayButton",h[5]),p&2&&s.set_style(d,"background-image","url("+(h[1]==="large"?en:tn)+")"),p&4&&s.toggle_class(d,"canPlay",h[2]),p&2&&s.toggle_class(c,"large",h[1]==="large"),p&2&&s.toggle_class(c,"small",h[1]==="small"),p&32&&s.toggle_class(l,"showPlayButton",h[5])},d(h){h&&s.detach(t),i[7](null),h&&s.detach(a),h&&s.detach(l),u=!1,s.run_all(f)}}}function $h(i){let t,e,o,n;return{c(){t=s.element("img"),s.attr(t,"class","media-content svelte-cwtvzu"),s.attr(t,"style",e=`object-fit: ${i[3]};`),s.src_url_equal(t.src,o=i[0].url)||s.attr(t,"src",o),s.attr(t,"alt",n=i[0].name)},m(r,a){s.insert(r,t,a)},p(r,a){a&8&&e!==(e=`object-fit: ${r[3]};`)&&s.attr(t,"style",e),a&1&&!s.src_url_equal(t.src,o=r[0].url)&&s.attr(t,"src",o),a&1&&n!==(n=r[0].name)&&s.attr(t,"alt",n)},d(r){r&&s.detach(t)}}}function ef(i){let t,e=i[0]&&wn(i);return{c(){e&&e.c(),t=s.empty()},m(o,n){e&&e.m(o,n),s.insert(o,t,n)},p(o,[n]){o[0]?e?e.p(o,n):(e=wn(o),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:s.noop,o:s.noop,d(o){e&&e.d(o),o&&s.detach(t)}}}function tf(i,t,e){let{media:o}=t,{playButtonIfNeed:n="small"}=t,{canPlay:r=!0}=t,{objectFit:a="cover"}=t,l,c=!1;const d=()=>l==null?void 0:l.pause();function u(h){s.binding_callbacks[h?"unshift":"push"](()=>{l=h,e(4,l)})}const f=()=>{!r||l&&l.play()};return i.$$set=h=>{"media"in h&&e(0,o=h.media),"playButtonIfNeed"in h&&e(1,n=h.playButtonIfNeed),"canPlay"in h&&e(2,r=h.canPlay),"objectFit"in h&&e(3,a=h.objectFit)},i.$$.update=()=>{i.$$.dirty&16&&l&&(e(5,c=l.paused),l.addEventListener("play",()=>{e(5,c=!1)}),l.addEventListener("pause",()=>{e(5,c=!0)}))},[o,n,r,a,l,c,d,u,f]}class Cn extends s.SvelteComponent{constructor(t){super(),s.init(this,t,tf,ef,s.safe_not_equal,{media:0,playButtonIfNeed:1,canPlay:2,objectFit:3},qh)}}function of(i){s.append_styles(i,"svelte-ai0lv9",".media.svelte-ai0lv9{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}")}function Pn(i,t,e){const o=i.slice();return o[23]=t[e],o}function In(i){let t,e,o,n,r,a;const l=[nf,sf],c=[];function d(u,f){return u[13]?0:1}return e=d(i),o=c[e]=l[e](i),{c(){t=s.element("div"),o.c(),s.attr(t,"class","media svelte-ai0lv9"),s.toggle_class(t,"unfolded",i[4])},m(u,f){s.insert(u,t,f),c[e].m(t,null),a=!0},p(u,f){i=u;let h=e;e=d(i),e===h?c[e].p(i,f):(s.group_outros(),s.transition_out(c[h],1,1,()=>{c[h]=null}),s.check_outros(),o=c[e],o?o.p(i,f):(o=c[e]=l[e](i),o.c()),s.transition_in(o,1),o.m(t,null)),f&16&&s.toggle_class(t,"unfolded",i[4])},i(u){a||(s.transition_in(o),u&&s.add_render_callback(()=>{r&&r.end(1),n=s.create_in_transition(t,de.fly,i[5]?{y:4,duration:i[3],delay:i[1],easing:ce.linear}:void 0),n.start()}),a=!0)},o(u){s.transition_out(o),n&&n.invalidate(),u&&(r=s.create_out_transition(t,de.fly,i[5]?{y:4,duration:i[3],delay:i[2],easing:ce.linear}:void 0)),a=!1},d(u){u&&s.detach(t),c[e].d(),u&&r&&r.end()}}}function sf(i){let t,e;return t=new Cn({props:{media:i[0][0],objectFit:i[8],playButtonIfNeed:i[6],canPlay:i[7]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.media=o[0][0]),n&256&&(r.objectFit=o[8]),n&64&&(r.playButtonIfNeed=o[6]),n&128&&(r.canPlay=o[7]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function nf(i){let t,e;return t=new Nh({props:{style:"height: 100%",modules:[Xo.Autoplay],spaceBetween:30,autoplay:i[14]?re({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1,loop:!0,$$slots:{default:[af]},$$scope:{ctx:i}}}),t.$on("init",i[19]),t.$on("slideChange",i[20]),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&16384&&(r.autoplay=o[14]?re({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1),n&67111360&&(r.$$scope={dirty:n,ctx:o}),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function rf(i){let t,e,o;return t=new Cn({props:{media:i[23],objectFit:i[8],playButtonIfNeed:i[6],canPlay:i[7]}}),{c(){s.create_component(t.$$.fragment),e=s.space()},m(n,r){s.mount_component(t,n,r),s.insert(n,e,r),o=!0},p(n,r){const a={};r&2048&&(a.media=n[23]),r&256&&(a.objectFit=n[8]),r&64&&(a.playButtonIfNeed=n[6]),r&128&&(a.canPlay=n[7]),t.$set(a)},i(n){o||(s.transition_in(t.$$.fragment,n),o=!0)},o(n){s.transition_out(t.$$.fragment,n),o=!1},d(n){s.destroy_component(t,n),n&&s.detach(e)}}}function En(i){let t,e;return t=new Zh({props:{$$slots:{default:[rf]},$$scope:{ctx:i}}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&67111360&&(r.$$scope={dirty:n,ctx:o}),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function af(i){let t,e,o=i[11],n=[];for(let a=0;a<o.length;a+=1)n[a]=En(Pn(i,o,a));const r=a=>s.transition_out(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a<n.length;a+=1)n[a].c();t=s.empty()},m(a,l){for(let c=0;c<n.length;c+=1)n[c].m(a,l);s.insert(a,t,l),e=!0},p(a,l){if(l&2496){o=a[11];let c;for(c=0;c<o.length;c+=1){const d=Pn(a,o,c);n[c]?(n[c].p(d,l),s.transition_in(n[c],1)):(n[c]=En(d),n[c].c(),s.transition_in(n[c],1),n[c].m(t.parentNode,t))}for(s.group_outros(),c=o.length;c<n.length;c+=1)r(c);s.check_outros()}},i(a){if(!e){for(let l=0;l<o.length;l+=1)s.transition_in(n[l]);e=!0}},o(a){n=n.filter(Boolean);for(let l=0;l<n.length;l+=1)s.transition_out(n[l]);e=!1},d(a){s.destroy_each(n,a),a&&s.detach(t)}}}function lf(i){let t,e,o=i[4]&&In(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[4]?o?(o.p(n,r),r&16&&s.transition_in(o,1)):(o=In(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function cf(i,t,e){let o,n,r,{tag:a}=t,{mediaData:l}=t,{inDelay:c=0}=t,{outDelay:d=0}=t,{duration:u=0}=t,{unfolded:f=!0}=t,{animation:h=!0}=t,{playButtonIfNeed:p="small"}=t,{canPlay:g=!0}=t,{objectFit:A="cover"}=t,{enableCarousel:b=!0}=t,{autoplayConfig:v={autoplay:!0,autoplayVideo:!1}}=t;const C=Z.getContext("mediaStore"),y=Z.getContext("hooks");let E;function k(_){!o||!E||(C.set({currentMediaUrl:this.src}),y.emit("playStateChange",{event:_,state:"playing",tag:a,mediaInstance:this}),E.autoplay.stop())}function w(_){!o||!E||(y.emit("playStateChange",{event:_,state:"paused",tag:a,mediaInstance:this}),E.autoplay.running||E.autoplay.start())}let D=null;const x=_=>{e(10,E=_.detail[0])},z=_=>G(this,null,function*(){var T,O,N;if(!r||!v.autoplayVideo)return;const j=_.detail[0];if(!j)return;const R=j.realIndex;if(R===D)return;e(12,D=R);const P=n[R];if(!P||P.type!=="Video")return;j.autoplay.stop(),j.slides.map(Q=>Q.querySelector("video")).filter(Ue).forEach(Q=>Q.pause());const L=(T=j.slides[j.activeIndex])==null?void 0:T.querySelector("video");if(L&&(L.removeEventListener("play",k),L.removeEventListener("pause",w),L.addEventListener("play",k),L.addEventListener("pause",w)),L){L.addEventListener("click",()=>L.pause());const Q=(N=(O=L.parentElement)==null?void 0:O.getElementsByClassName("video-play-button-container"))==null?void 0:N[0];L.addEventListener("play",()=>Q==null?void 0:Q.classList.remove("showPlayButton")),L.addEventListener("pause",()=>Q==null?void 0:Q.classList.add("showPlayButton")),Q&&(L.paused?Q.classList.add("showPlayButton"):Q.classList.remove("showPlayButton"),Q.addEventListener("click",()=>L.play()))}});return i.$$set=_=>{"tag"in _&&e(17,a=_.tag),"mediaData"in _&&e(0,l=_.mediaData),"inDelay"in _&&e(1,c=_.inDelay),"outDelay"in _&&e(2,d=_.outDelay),"duration"in _&&e(3,u=_.duration),"unfolded"in _&&e(4,f=_.unfolded),"animation"in _&&e(5,h=_.animation),"playButtonIfNeed"in _&&e(6,p=_.playButtonIfNeed),"canPlay"in _&&e(7,g=_.canPlay),"objectFit"in _&&e(8,A=_.objectFit),"enableCarousel"in _&&e(18,b=_.enableCarousel),"autoplayConfig"in _&&e(9,v=_.autoplayConfig)},i.$$.update=()=>{i.$$.dirty&262145&&e(13,o=b&&(l==null?void 0:l.length)>1),i.$$.dirty&1&&e(11,n=l),i.$$.dirty&2560&&e(14,r=n.length>1&&v.autoplay),i.$$.dirty&1024&&E&&E.slides.forEach(_=>{const j=_.querySelector("video");j&&C.subscribe(({currentMediaUrl:R})=>{R!==j.src&&j.pause()})})},[l,c,d,u,f,h,p,g,A,v,E,n,D,o,r,k,w,a,b,x,z]}class kn extends s.SvelteComponent{constructor(t){super(),s.init(this,t,cf,lf,s.safe_not_equal,{tag:17,mediaData:0,inDelay:1,outDelay:2,duration:3,unfolded:4,animation:5,playButtonIfNeed:6,canPlay:7,objectFit:8,enableCarousel:18,autoplayConfig:9},of)}}function df(i){s.append_styles(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 xn(i,t,e){const o=i.slice();return o[5]=t[e].id,o[1]=t[e].content,o}function Dn(i){let t,e,o,n,r,a=[],l=new Map,c,d,u;t=new we({props:{visible:i[4],left:61,bottom:57,width:2,blurRadius:150,spreadRadius:75}}),n=new _h({props:{unfolded:i[4],duration:1e3,outDelay:400}});let f=i[2];const h=g=>g[5];for(let g=0;g<f.length;g+=1){let A=xn(i,f,g),b=h(A);l.set(b,a[g]=Sn(b,A))}let p=i[3]&&Ln(i);return{c(){s.create_component(t.$$.fragment),e=s.space(),o=s.element("div"),s.create_component(n.$$.fragment),r=s.space();for(let g=0;g<a.length;g+=1)a[g].c();c=s.space(),p&&p.c(),d=s.empty(),s.attr(o,"class","line svelte-1f7m1lj")},m(g,A){s.mount_component(t,g,A),s.insert(g,e,A),s.insert(g,o,A),s.mount_component(n,o,null),s.insert(g,r,A);for(let b=0;b<a.length;b+=1)a[b].m(g,A);s.insert(g,c,A),p&&p.m(g,A),s.insert(g,d,A),u=!0},p(g,A){const b={};A&16&&(b.visible=g[4]),t.$set(b);const v={};A&16&&(v.unfolded=g[4]),n.$set(v),A&20&&(f=g[2],s.group_outros(),a=s.update_keyed_each(a,A,h,1,g,f,l,c.parentNode,s.outro_and_destroy_block,Sn,c,xn),s.check_outros()),g[3]?p?(p.p(g,A),A&8&&s.transition_in(p,1)):(p=Ln(g),p.c(),s.transition_in(p,1),p.m(d.parentNode,d)):p&&(s.group_outros(),s.transition_out(p,1,1,()=>{p=null}),s.check_outros())},i(g){if(!u){s.transition_in(t.$$.fragment,g),s.transition_in(n.$$.fragment,g);for(let A=0;A<f.length;A+=1)s.transition_in(a[A]);s.transition_in(p),u=!0}},o(g){s.transition_out(t.$$.fragment,g),s.transition_out(n.$$.fragment,g);for(let A=0;A<a.length;A+=1)s.transition_out(a[A]);s.transition_out(p),u=!1},d(g){s.destroy_component(t,g),g&&s.detach(e),g&&s.detach(o),s.destroy_component(n),g&&s.detach(r);for(let A=0;A<a.length;A+=1)a[A].d(g);g&&s.detach(c),p&&p.d(g),g&&s.detach(d)}}}function Sn(i,t){let e,o,n;return o=new $i({props:{unfolded:t[4],content:t[1],inDelay:500}}),{key:i,first:null,c(){e=s.element("div"),s.create_component(o.$$.fragment),s.attr(e,"class","text svelte-1f7m1lj"),this.first=e},m(r,a){s.insert(r,e,a),s.mount_component(o,e,null),n=!0},p(r,a){t=r;const l={};a&16&&(l.unfolded=t[4]),a&4&&(l.content=t[1]),o.$set(l)},i(r){n||(s.transition_in(o.$$.fragment,r),n=!0)},o(r){s.transition_out(o.$$.fragment,r),n=!1},d(r){r&&s.detach(e),s.destroy_component(o)}}}function Ln(i){let t,e,o;return e=new kn({props:{autoplayConfig:{autoplay:!1},unfolded:i[4],mediaData:i[3],tag:i[0],enableCarousel:!1,canPlay:!1,playButtonIfNeed:"small",inDelay:500,duration:500}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),s.attr(t,"class","media-wrapper svelte-1f7m1lj")},m(n,r){s.insert(n,t,r),s.mount_component(e,t,null),o=!0},p(n,r){const a={};r&16&&(a.unfolded=n[4]),r&8&&(a.mediaData=n[3]),r&1&&(a.tag=n[0]),e.$set(a)},i(n){o||(s.transition_in(e.$$.fragment,n),o=!0)},o(n){s.transition_out(e.$$.fragment,n),o=!1},d(n){n&&s.detach(t),s.destroy_component(e)}}}function uf(i){let t,e,o=i[0].state&&Dn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[0].state?o?(o.p(n,r),r&1&&s.transition_in(o,1)):(o=Dn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function hf(i,t,e){let o,n,r,{tag:a}=t,l;return i.$$set=c=>{"tag"in c&&e(0,a=c.tag)},i.$$.update=()=>{var c,d,u;i.$$.dirty&1&&e(4,o=a.state?a.state.unfolded:!1),i.$$.dirty&1&&e(1,n=((d=(c=a.data.text)==null?void 0:c.length)!=null?d:0)>7?((u=a.data.text)==null?void 0:u.substring(0,6))+"...":a.data.text),i.$$.dirty&1&&e(3,r=a.data.mediaData),i.$$.dirty&2&&e(2,l=n?[{id:fe(),content:n}]:[])},[a,n,l,r,o]}class ff extends s.SvelteComponent{constructor(t){super(),s.init(this,t,hf,uf,s.safe_not_equal,{tag:0},df)}}function mf(i){s.append_styles(i,"svelte-8mby9k",".svelte-8mby9k.svelte-8mby9k{box-sizing:border-box}.marketing.svelte-8mby9k.svelte-8mby9k{transform:translateY(-100%)}.content.svelte-8mby9k .headerImage.svelte-8mby9k{position:absolute;width:100%;top:0.25rem;transform:translateY(-100%);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem}.line.svelte-8mby9k.svelte-8mby9k{position:absolute;height:2.0625rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.content.svelte-8mby9k.svelte-8mby9k{background-color:white;position:relative;display:flex;flex-direction:column;min-width:11.125rem;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;border-radius:0.25rem;top:-1.875rem;left:-1rem;padding:0.5rem 0rem 0.5625rem;transition:all 500ms}.title.svelte-8mby9k.svelte-8mby9k{position:absolute;background-color:white;border-radius:0.25rem;width:100%;top:0.5rem;padding-left:0.75rem;padding-right:0.75rem}.title.svelte-8mby9k .text.svelte-8mby9k{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;font-weight:bold;line-height:1.125rem;color:#000}.footer.svelte-8mby9k.svelte-8mby9k{position:relative;padding-left:0.75rem;padding-right:0.75rem;width:100%;height:1.375rem;display:flex;align-items:center}.footer.svelte-8mby9k .goto-button.svelte-8mby9k{flex-shrink:0;white-space:nowrap;background-image:linear-gradient(to right, rgba(87, 144, 253, 1) 0, rgba(42, 114, 254, 1) 100%);color:#fff;font-size:0.625rem;border-radius:0.875rem;font-weight:bold;padding-left:0.5rem;padding-right:0.5rem;height:1.25rem;margin-left:auto;display:flex;align-items:center}.footer.svelte-8mby9k .goto-icon.svelte-8mby9k::after{content:'';display:inline-block;width:0.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAeFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////GqOSsAAAAJ3RSTlMAFNO2pYt4bErz8uP6ysawgVtBPDcR5C4s2L6ZmJBzZGJXUyEeDws/0G2zAAAAkklEQVQ4y+3TRw6DMBAF0OAeJ3QCpCe0uf8NwRILLBYfiS1/aT3JoymnI+sERZ5VCH0iVto3QDfBLmeSSMUTogRV9bBEpJAKaYpGijn13aTSLeraeG9D0NZFZv4/rRL5FDHnITlllqjv6tykWsmX4JHr05y7j6oFKq2P8He48B0tAM0EY0EDxquClw6vLz6EI35GmwwSZpe+WOgAAAAASUVORK5CYII=);background-size:100% auto;background-repeat:no-repeat}.price.svelte-8mby9k.svelte-8mby9k{flex-shrink:0;margin-right:0.75rem;white-space:nowrap;color:#ff6600;display:flex;align-items:baseline}.price.svelte-8mby9k .value.svelte-8mby9k{position:relative;top:0.0625rem;font-size:1.125rem;line-height:1.375rem;font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0rem}.price.svelte-8mby9k .unit.svelte-8mby9k{padding-left:0.125rem;font-size:0.625rem}.tag.svelte-8mby9k.svelte-8mby9k{position:relative;background-color:white;display:flex;width:-moz-max-content;width:max-content;padding-left:0.75rem;padding-right:0.75rem;min-height:1.75rem}.tag.svelte-8mby9k .base-tag.svelte-8mby9k{height:1rem;margin-top:1.375rem;margin-bottom:0.5rem;margin-right:0.25rem;font-size:0.625rem;line-height:0.875rem;padding:0.0625rem 0.25rem;border-radius:0.125rem;overflow:hidden}.tag.svelte-8mby9k .primary-tag.svelte-8mby9k{background:#e5eefe;color:#0055ff}.tag.svelte-8mby9k .secondary-tag.svelte-8mby9k{background:rgba(255, 102, 0, 0.08);color:rgba(255, 102, 0, 1)}.unfolded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 1)}.folded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.unfolded.svelte-8mby9k .content.svelte-8mby9k{opacity:1}.folded.svelte-8mby9k .content.svelte-8mby9k{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}")}function _n(i,t,e){const o=i.slice();return o[0]=t[e],o}function zn(i,t,e){const o=i.slice();return o[0]=t[e],o}function Mn(i){let t,e=i[0]+"",o;return{c(){t=s.element("div"),o=s.text(e),s.attr(t,"class","base-tag primary-tag svelte-8mby9k")},m(n,r){s.insert(n,t,r),s.append(t,o)},p(n,r){r&4&&e!==(e=n[0]+"")&&s.set_data(o,e)},d(n){n&&s.detach(t)}}}function jn(i){let t,e=i[0]&&Mn(i);return{c(){e&&e.c(),t=s.empty()},m(o,n){e&&e.m(o,n),s.insert(o,t,n)},p(o,n){o[0]?e?e.p(o,n):(e=Mn(o),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(o){e&&e.d(o),o&&s.detach(t)}}}function Bn(i){let t,e=i[0]+"",o;return{c(){t=s.element("div"),o=s.text(e),s.attr(t,"class","base-tag secondary-tag svelte-8mby9k")},m(n,r){s.insert(n,t,r),s.append(t,o)},p(n,r){r&4&&e!==(e=n[0]+"")&&s.set_data(o,e)},d(n){n&&s.detach(t)}}}function Tn(i){let t,e=i[0]&&Bn(i);return{c(){e&&e.c(),t=s.empty()},m(o,n){e&&e.m(o,n),s.insert(o,t,n)},p(o,n){o[0]?e?e.p(o,n):(e=Bn(o),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(o){e&&e.d(o),o&&s.detach(t)}}}function Qn(i){let t,e,o=i[2].price.value+"",n,r,a=i[2].price.unit&&On(i);return{c(){t=s.element("div"),e=s.element("span"),n=s.text(o),r=s.space(),a&&a.c(),s.attr(e,"class","value svelte-8mby9k"),s.attr(t,"class","price svelte-8mby9k")},m(l,c){s.insert(l,t,c),s.append(t,e),s.append(e,n),s.append(t,r),a&&a.m(t,null)},p(l,c){c&4&&o!==(o=l[2].price.value+"")&&s.set_data(n,o),l[2].price.unit?a?a.p(l,c):(a=On(l),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},d(l){l&&s.detach(t),a&&a.d()}}}function On(i){let t,e=i[2].price.unit+"",o;return{c(){t=s.element("span"),o=s.text(e),s.attr(t,"class","unit svelte-8mby9k")},m(n,r){s.insert(n,t,r),s.append(t,o)},p(n,r){r&4&&e!==(e=n[2].price.unit+"")&&s.set_data(o,e)},d(n){n&&s.detach(t)}}}function Rn(i){let t,e=i[2].highlightText+"",o;return{c(){t=s.element("div"),o=s.text(e),s.attr(t,"class","goto-button goto-icon svelte-8mby9k")},m(n,r){s.insert(n,t,r),s.append(t,o)},p(n,r){r&4&&e!==(e=n[2].highlightText+"")&&s.set_data(o,e)},d(n){n&&s.detach(t)}}}function pf(i){var j,R;let t,e,o,n,r,a,l,c,d,u,f,h,p,g,A=i[2].title+"",b,v,C,y,E;e=new we({props:{visible:i[1],outDelay:500,left:61,bottom:87,blurRadius:150,spreadRadius:75}});let k=i[2].brandTags||[],w=[];for(let P=0;P<k.length;P+=1)w[P]=jn(zn(i,k,P));let D=i[2].tags||[],x=[];for(let P=0;P<D.length;P+=1)x[P]=Tn(_n(i,D,P));let z=((j=i[2].price)==null?void 0:j.value)!==void 0&&((R=i[2].price)==null?void 0:R.value)!==null&&Qn(i),_=i[2].highlightText&&Rn(i);return{c(){var P,S;t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),r=s.space(),a=s.element("div"),l=s.element("img"),d=s.space(),u=s.element("div");for(let L=0;L<w.length;L+=1)w[L].c();f=s.space();for(let L=0;L<x.length;L+=1)x[L].c();h=s.space(),p=s.element("div"),g=s.element("div"),b=s.text(A),v=s.space(),C=s.element("div"),z&&z.c(),y=s.space(),_&&_.c(),s.attr(n,"class","line svelte-8mby9k"),s.set_style(n,"transition-delay",i[1]?Vt+"ms":Jt+Hn-Fn-40+"ms",!1),s.attr(l,"class","headerImage svelte-8mby9k"),s.src_url_equal(l.src,c=i[2].headerPictureUrl)||s.attr(l,"src",c),s.attr(l,"alt",""),s.attr(u,"class","tag svelte-8mby9k"),s.attr(g,"class","text svelte-8mby9k"),s.attr(p,"class","title svelte-8mby9k"),s.attr(C,"class","footer svelte-8mby9k"),s.set_style(C,"height",((P=i[2].price)==null?void 0:P.value)!==void 0&&((S=i[2].price)==null?void 0:S.value)!==null&&i[2].highlightText?void 0:"1rem",!1),s.attr(a,"class","content svelte-8mby9k"),s.set_style(a,"transition-delay",i[1]?Vt+Jt+"ms":"0ms",!1),s.attr(t,"class","marketing svelte-8mby9k"),s.toggle_class(t,"unfolded",i[1]),s.toggle_class(t,"folded",i[3])},m(P,S){s.insert(P,t,S),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),s.append(t,r),s.append(t,a),s.append(a,l),s.append(a,d),s.append(a,u);for(let L=0;L<w.length;L+=1)w[L].m(u,null);s.append(u,f);for(let L=0;L<x.length;L+=1)x[L].m(u,null);s.append(a,h),s.append(a,p),s.append(p,g),s.append(g,b),s.append(a,v),s.append(a,C),z&&z.m(C,null),s.append(C,y),_&&_.m(C,null),E=!0},p(P,[S]){var T,O,N,Q;const L={};if(S&2&&(L.visible=P[1]),e.$set(L),S&2&&s.set_style(n,"transition-delay",P[1]?Vt+"ms":Jt+Hn-Fn-40+"ms",!1),(!E||S&4&&!s.src_url_equal(l.src,c=P[2].headerPictureUrl))&&s.attr(l,"src",c),S&4){k=P[2].brandTags||[];let H;for(H=0;H<k.length;H+=1){const Y=zn(P,k,H);w[H]?w[H].p(Y,S):(w[H]=jn(Y),w[H].c(),w[H].m(u,f))}for(;H<w.length;H+=1)w[H].d(1);w.length=k.length}if(S&4){D=P[2].tags||[];let H;for(H=0;H<D.length;H+=1){const Y=_n(P,D,H);x[H]?x[H].p(Y,S):(x[H]=Tn(Y),x[H].c(),x[H].m(u,null))}for(;H<x.length;H+=1)x[H].d(1);x.length=D.length}(!E||S&4)&&A!==(A=P[2].title+"")&&s.set_data(b,A),((T=P[2].price)==null?void 0:T.value)!==void 0&&((O=P[2].price)==null?void 0:O.value)!==null?z?z.p(P,S):(z=Qn(P),z.c(),z.m(C,y)):z&&(z.d(1),z=null),P[2].highlightText?_?_.p(P,S):(_=Rn(P),_.c(),_.m(C,null)):_&&(_.d(1),_=null),S&4&&s.set_style(C,"height",((N=P[2].price)==null?void 0:N.value)!==void 0&&((Q=P[2].price)==null?void 0:Q.value)!==null&&P[2].highlightText?void 0:"1rem",!1),S&2&&s.set_style(a,"transition-delay",P[1]?Vt+Jt+"ms":"0ms",!1),S&2&&s.toggle_class(t,"unfolded",P[1]),S&8&&s.toggle_class(t,"folded",P[3])},i(P){E||(s.transition_in(e.$$.fragment,P),E=!0)},o(P){s.transition_out(e.$$.fragment,P),E=!1},d(P){P&&s.detach(t),s.destroy_component(e),s.destroy_each(w,P),s.destroy_each(x,P),z&&z.d(),_&&_.d()}}}const Vt=400,Fn=500,Jt=180,Hn=500;function gf(i,t,e){let o,n,r,{tag:a}=t;return i.$$set=l=>{"tag"in l&&e(0,a=l.tag)},i.$$.update=()=>{var l,c;i.$$.dirty&1&&e(1,o=(c=(l=a.state)==null?void 0:l.unfolded)!=null?c:!1),i.$$.dirty&2&&e(3,n=!o),i.$$.dirty&1&&e(2,r=a.data)},[a,o,r,n]}class Af extends s.SvelteComponent{constructor(t){super(),s.init(this,t,gf,pf,s.safe_not_equal,{tag:0},mf)}}function vf(i){s.append_styles(i,"svelte-1ku3wt4",`.audio.svelte-1ku3wt4.svelte-1ku3wt4{position:relative;width:100%;height:100%;cursor:pointer}@keyframes svelte-1ku3wt4-playing{25%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='8' transform='translate(-1 -1)' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}50%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.533 6.685L4.169 8.049l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}75%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.656 4.874l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .875-.333 1.67-.88 2.268l.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}}.paused.svelte-1ku3wt4 .audio-icon.svelte-1ku3wt4{animation:none}.audio-icon.svelte-1ku3wt4.svelte-1ku3wt4{width:100%;height:100%;border-radius:50%;background-size:100%;animation:svelte-1ku3wt4-playing 2s steps(1) infinite;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm1.428 2.79l-.953.952a6.222 6.222 0 0 1 1.775 4.36c0 1.571-.58 3.006-1.538 4.103l-.184.202.793.794a7.344 7.344 0 0 0 2.21-5.26A7.341 7.341 0 0 0 9.428 2.79zM7.344 4.873l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .802-.28 1.537-.748 2.115l-.132.153.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}`)}function Gn(i){let t,e,o,n,r,a,l,c=!0,d,u,f,h,p;return e=new we({props:{center:!0,blurRadius:15,spreadRadius:6}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),r=s.space(),a=s.element("audio"),s.attr(n,"class","audio-icon svelte-1ku3wt4"),a.controls=!1,s.attr(a,"playsinline",""),s.src_url_equal(a.src,l=i[3])||s.attr(a,"src",l),s.attr(t,"class","audio svelte-1ku3wt4"),s.toggle_class(t,"paused",i[6])},m(g,A){s.insert(g,t,A),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),s.append(t,r),s.append(t,a),i[9](a),f=!0,h||(p=[s.listen(a,"play",i[10]),s.listen(a,"pause",i[10]),s.listen(t,"click",s.stop_propagation(i[7]))],h=!0)},p(g,A){i=g,(!f||A&8&&!s.src_url_equal(a.src,l=i[3]))&&s.attr(a,"src",l),A&64&&c!==(c=i[6])&&a[c?"pause":"play"](),A&64&&s.toggle_class(t,"paused",i[6])},i(g){f||(s.transition_in(e.$$.fragment,g),g&&s.add_render_callback(()=>{u&&u.end(1),d=s.create_in_transition(t,de.fade,{duration:i[2],delay:i[0],easing:ce.cubicInOut}),d.start()}),f=!0)},o(g){s.transition_out(e.$$.fragment,g),d&&d.invalidate(),g&&(u=s.create_out_transition(t,de.fade,{duration:i[2],delay:i[1],easing:ce.cubicInOut})),f=!1},d(g){g&&s.detach(t),s.destroy_component(e),i[9](null),g&&u&&u.end(),h=!1,s.run_all(p)}}}function bf(i){let t,e,o=i[4]&&Gn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[4]?o?(o.p(n,r),r&16&&s.transition_in(o,1)):(o=Gn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function yf(i,t,e){let{inDelay:o=0}=t,{outDelay:n=0}=t,{duration:r=0}=t,{url:a}=t,{unfolded:l}=t,{hooksInfo:c={}}=t;const d=Z.getContext("hooks"),u=Z.getContext("mediaStore");let f,h=!0;u.subscribe(({currentMediaUrl:b})=>{b!==a&&(f==null||f.pause())});function p(b){u.set({currentMediaUrl:a}),f&&(d.emit("click",B({event:b,target:"AudioTagPlayIcon",audioInstance:f},c)),f.paused?f.play():f.pause(),e(5,f.onplay=v=>d.emit("playStateChange",B({event:v,state:"playing",mediaInstance:f},c)),f),e(5,f.onpause=v=>d.emit("playStateChange",B({event:v,state:"paused",mediaInstance:f},c)),f))}function g(b){s.binding_callbacks[b?"unshift":"push"](()=>{f=b,e(5,f)})}function A(){h=this.paused,e(6,h)}return i.$$set=b=>{"inDelay"in b&&e(0,o=b.inDelay),"outDelay"in b&&e(1,n=b.outDelay),"duration"in b&&e(2,r=b.duration),"url"in b&&e(3,a=b.url),"unfolded"in b&&e(4,l=b.unfolded),"hooksInfo"in b&&e(8,c=b.hooksInfo)},i.$$.update=()=>{i.$$.dirty&48&&(l||f==null||f.pause())},[o,n,r,a,l,f,h,p,c,g,A]}class wf extends s.SvelteComponent{constructor(t){super(),s.init(this,t,yf,bf,s.safe_not_equal,{inDelay:0,outDelay:1,duration:2,url:3,unfolded:4,hooksInfo:8},vf)}}function Cf(i){s.append_styles(i,"svelte-4r8s18",".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{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-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}")}function Nn(i){var C,y,E,k;let t,e,o,n,r,a,l,c,d,u,f,h,p,g,A,b,v;return e=new we({props:{visible:i[5],left:i[2]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),r=new Vi({props:{unfolded:i[5],duration:1e3,outDelay:i[4]+20*Math.min((y=(C=i[3][0])==null?void 0:C.content.length)!=null?y:10,15)}}),u=new wf({props:{unfolded:i[5],url:i[0].data.audioUrl,duration:1e3,outDelay:20*Math.min((k=(E=i[3][0])==null?void 0:E.content.length)!=null?k:10,15),hooksInfo:{tag:i[0]}}}),p=new an({props:{visible:i[5],textUnfolded:i[1],textItems:i[3]}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),s.create_component(r.$$.fragment),a=s.space(),l=s.element("div"),c=s.element("div"),d=s.element("div"),s.create_component(u.$$.fragment),f=s.space(),h=s.element("div"),s.create_component(p.$$.fragment),s.attr(n,"class","line svelte-4r8s18"),s.set_style(n,"width",i[2]+"px",!1),s.attr(d,"class","audio-icon svelte-4r8s18"),s.set_style(h,"display","inline-block",!1),s.attr(c,"class","wrapper svelte-4r8s18"),s.attr(l,"class","content svelte-4r8s18"),s.add_render_callback(()=>i[8].call(l)),s.attr(t,"class","audio-tag svelte-4r8s18"),s.toggle_class(t,"unfolded",i[5])},m(w,D){s.insert(w,t,D),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),s.mount_component(r,n,null),s.append(t,a),s.append(t,l),s.append(l,c),s.append(c,d),s.mount_component(u,d,null),s.append(c,f),s.append(c,h),s.mount_component(p,h,null),g=s.add_resize_listener(l,i[8].bind(l)),A=!0,b||(v=s.listen(h,"click",i[6]),b=!0)},p(w,D){var R,P,S,L;const x={};D&32&&(x.visible=w[5]),D&4&&(x.left=w[2]/2+"px"),e.$set(x);const z={};D&32&&(z.unfolded=w[5]),D&24&&(z.outDelay=w[4]+20*Math.min((P=(R=w[3][0])==null?void 0:R.content.length)!=null?P:10,15)),r.$set(z),D&4&&s.set_style(n,"width",w[2]+"px",!1);const _={};D&32&&(_.unfolded=w[5]),D&1&&(_.url=w[0].data.audioUrl),D&8&&(_.outDelay=20*Math.min((L=(S=w[3][0])==null?void 0:S.content.length)!=null?L:10,15)),D&1&&(_.hooksInfo={tag:w[0]}),u.$set(_);const j={};D&32&&(j.visible=w[5]),D&2&&(j.textUnfolded=w[1]),D&8&&(j.textItems=w[3]),p.$set(j),D&32&&s.toggle_class(t,"unfolded",w[5])},i(w){A||(s.transition_in(e.$$.fragment,w),s.transition_in(r.$$.fragment,w),s.transition_in(u.$$.fragment,w),s.transition_in(p.$$.fragment,w),A=!0)},o(w){s.transition_out(e.$$.fragment,w),s.transition_out(r.$$.fragment,w),s.transition_out(u.$$.fragment,w),s.transition_out(p.$$.fragment,w),A=!1},d(w){w&&s.detach(t),s.destroy_component(e),s.destroy_component(r),s.destroy_component(u),s.destroy_component(p),g(),b=!1,v()}}}function Pf(i){let t,e,o=i[0].state&&Nn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[0].state?o?(o.p(n,r),r&1&&s.transition_in(o,1)):(o=Nn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function If(i,t,e){let o,n,r,{tag:a}=t,l=!1,c,d=[];function u(){e(1,l=!l)}function f(){c=this.clientWidth,e(2,c)}return i.$$set=h=>{"tag"in h&&e(0,a=h.tag)},i.$$.update=()=>{var h;i.$$.dirty&1&&e(5,o=!!((h=a.state)!=null&&h.unfolded)),i.$$.dirty&1&&e(7,n=a.data.text),i.$$.dirty&128&&e(3,d=[{id:fe(),content:n}]),i.$$.dirty&2&&e(4,r=l?450:0)},[a,l,c,d,r,o,u,n,f]}class Ef extends s.SvelteComponent{constructor(t){super(),s.init(this,t,If,Pf,s.safe_not_equal,{tag:0},Cf)}}function kf(i){s.append_styles(i,"svelte-10cw0el",".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}")}function Wn(i){let t,e,o;return e=new kn({props:{unfolded:i[5],mediaData:i[4],objectFit:i[2],enableCarousel:i[1],autoplayConfig:i[3],tag:i[0],canPlay:!0,playButtonIfNeed:"large",inDelay:500,duration:500}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),s.attr(t,"class","media-wrapper svelte-10cw0el")},m(n,r){s.insert(n,t,r),s.mount_component(e,t,null),o=!0},p(n,r){const a={};r&32&&(a.unfolded=n[5]),r&16&&(a.mediaData=n[4]),r&4&&(a.objectFit=n[2]),r&2&&(a.enableCarousel=n[1]),r&8&&(a.autoplayConfig=n[3]),r&1&&(a.tag=n[0]),e.$set(a)},i(n){o||(s.transition_in(e.$$.fragment,n),o=!0)},o(n){s.transition_out(e.$$.fragment,n),o=!1},d(n){n&&s.detach(t),s.destroy_component(e)}}}function xf(i){let t,e,o=i[0].state&&i[4]&&Wn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[0].state&&n[4]?o?(o.p(n,r),r&17&&s.transition_in(o,1)):(o=Wn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function Df(i,t,e){let o,n,r,a,l,{tag:c}=t;return i.$$set=d=>{"tag"in d&&e(0,c=d.tag)},i.$$.update=()=>{var d,u;i.$$.dirty&1&&e(5,o=c.state?c.state.unfolded:!1),i.$$.dirty&1&&e(4,n=c.data.mediaData),i.$$.dirty&1&&e(1,r=c.data.enableCarousel),i.$$.dirty&3&&e(3,a=(d=c.data.autoplayConfig)!=null?d:{autoplay:r!=null?r:!0,autoplayVideo:!0}),i.$$.dirty&1&&e(2,l=(u=c.data.objectFit)!=null?u:(()=>c.data.adaptationMode==="stretch"?"cover":c.data.adaptationMode==="proportional"?"contain":void 0)())},[c,r,l,a,n,o]}class Sf extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Df,xf,s.safe_not_equal,{tag:0},kf)}}function Lf(i){s.append_styles(i,"svelte-7x7u86",".wrapper.svelte-7x7u86{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-7x7u86{position:relative;display:flex;align-items:center;justify-content:center}.icon.svelte-7x7u86{position:relative;margin-bottom:0.6875rem}.arrow0.svelte-7x7u86,.arrow1.svelte-7x7u86,.arrow2.svelte-7x7u86{position:absolute;width:1.625rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAAkCAYAAAAnxQwhAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAA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yEyXAvdIU4KUydaa4+r/cDl3UVaHMVzun7erp4+g/FWQWK5a6oeGeNoYHijAVFrIG44shmtKkK52x6FSZluMW4pVjvIJbHibPe0MPl61JWxEEZOvw216a3LkEeGMGFO0D1d8KqMyVu4WtRDE2Mh85Az6Wuso/RZA1ph38BBMvNbHuq7kAAAAAASUVORK5CYII=);background-repeat:no-repeat;background-size:contain;animation-fill-mode:backwards;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.2s}.arrow1.svelte-7x7u86{position:relative}.arrow0.svelte-7x7u86{top:-0.75rem;animation-name:svelte-7x7u86-up0}.arrow1.svelte-7x7u86{animation-name:svelte-7x7u86-up1}.arrow2.svelte-7x7u86{top:0.75rem;animation-name:svelte-7x7u86-up2}.text.svelte-7x7u86{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;word-break:break-all;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}@keyframes svelte-7x7u86-up0{0%{opacity:0.8;transform:translate3d(0, 0, 0) scale(0.84)}33.33%,100%{opacity:0;transform:translate3d(0, -0.75rem, 0) scale(0.84)}}@keyframes svelte-7x7u86-up1{0%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}33.33%,100%{opacity:0.8;transform:translate3d(0, -0.75rem, 0) scale(0.84)}}@keyframes svelte-7x7u86-up2{0%{opacity:0}33.33%,100%{opacity:1;transform:translate3d(0, -0.75rem, 0)}}.link.svelte-7x7u86{position:relative;width:1.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAkCAMAAAAgl+0yAAAAnFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+TINBkAAAAM3RSTlMAjLy6ILM2Fi+Zng3BrPvao4VC9ceneQfKkmNdV1AbEeLOsHA77ujUtn5JLnRraSUUjVLj/+RVAAABhElEQVRIx63V2W6CQBiGYUBUQGDYdwTZQZZa7v/eimik/ket/7yZ4yeTTCYf8+dOX8etxGVoxAvCVbguR3g0uRTMA0w4odGi+CbzFnGKosCqrmHc5rdEwzCwqtGFJlC7DqtOcTxANY67BHnVKOpVoEZRjFPdLgxbqIZhhFTjINChGgThF06NhpGd35OGMcCppyDPfajm+YhUR8cRoeo4+RGlJnnbalBt2x6nHh1dt4Gq6bqDU886y2ZQZVn9jFJ51vcbqPo+Up18UeSgKoo3nHqVJEkGqi1JPk49aLZmQdW2xXf1zP+vUFHsC1QVReK33xdk+w9SaqAq+732UvvdZ2UEqrud8lR5Wc4a7pO8GaoL9VBjy7rMlMosq1lV43LhZlrtF+yuJlbtEXpqXXP3NYwI8VJqakOIziw5aepV1FQuTdfhvlWVZdJCrao6MPe0spRpqV5ZFivqNqYpq3RQ2TST5/h4quoRCmwqq6rymol6plV53IZSomTKE/MroWfxDevL/wAEdPq1eGDh4AAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-size:contain;animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:1.2s;animation-name:svelte-7x7u86-left-right}@keyframes svelte-7x7u86-left-right{0%,100%{opacity:0.8;transform:translateX(-0.3125rem)}50%{opacity:1;transform:translateX(0)}}")}function _f(i){let t,e,o,n;return t=new we({props:{visible:!0,outDelay:0,inDelay:0,width:1.4,left:13,bottom:"auto",blurRadius:50,spreadRadius:18}}),{c(){s.create_component(t.$$.fragment),e=s.space(),o=s.element("div"),s.attr(o,"class","link svelte-7x7u86")},m(r,a){s.mount_component(t,r,a),s.insert(r,e,a),s.insert(r,o,a),n=!0},i(r){n||(s.transition_in(t.$$.fragment,r),n=!0)},o(r){s.transition_out(t.$$.fragment,r),n=!1},d(r){s.destroy_component(t,r),r&&s.detach(e),r&&s.detach(o)}}}function zf(i){let t,e,o,n,r,a,l,c;return t=new we({props:{visible:!0,outDelay:0,inDelay:0,height:1.2,left:13,bottom:12,blurRadius:50,spreadRadius:18}}),{c(){s.create_component(t.$$.fragment),e=s.space(),o=s.element("div"),n=s.space(),r=s.element("div"),a=s.space(),l=s.element("div"),s.attr(o,"class","arrow0 svelte-7x7u86"),s.attr(r,"class","arrow1 svelte-7x7u86"),s.attr(l,"class","arrow2 svelte-7x7u86")},m(d,u){s.mount_component(t,d,u),s.insert(d,e,u),s.insert(d,o,u),s.insert(d,n,u),s.insert(d,r,u),s.insert(d,a,u),s.insert(d,l,u),c=!0},i(d){c||(s.transition_in(t.$$.fragment,d),c=!0)},o(d){s.transition_out(t.$$.fragment,d),c=!1},d(d){s.destroy_component(t,d),d&&s.detach(e),d&&s.detach(o),d&&s.detach(n),d&&s.detach(r),d&&s.detach(a),d&&s.detach(l)}}}function Mf(i){let t,e,o,n,r,a,l,c,d,u=i[0].text+"",f,h;const p=[zf,_f],g=[];function A(b,v){return b[0].linkType===Yt.VrLink?0:b[0].linkType===Yt.NormalLink?1:-1}return~(o=A(i))&&(n=g[o]=p[o](i)),l=new we({props:{visible:!0,outDelay:0,inDelay:0,left:"auto",bottom:"auto",width:"80%",blurRadius:40,spreadRadius:16,opacity:.08}}),{c(){t=s.element("div"),e=s.element("div"),n&&n.c(),r=s.space(),a=s.element("div"),s.create_component(l.$$.fragment),c=s.space(),d=s.element("div"),f=s.text(u),s.attr(e,"class","icon svelte-7x7u86"),s.attr(d,"class","text svelte-7x7u86"),s.attr(a,"class","text-wrapper svelte-7x7u86"),s.attr(t,"class","wrapper svelte-7x7u86")},m(b,v){s.insert(b,t,v),s.append(t,e),~o&&g[o].m(e,null),s.append(t,r),s.append(t,a),s.mount_component(l,a,null),s.append(a,c),s.append(a,d),s.append(d,f),h=!0},p(b,[v]){let C=o;o=A(b),o!==C&&(n&&(s.group_outros(),s.transition_out(g[C],1,1,()=>{g[C]=null}),s.check_outros()),~o?(n=g[o],n||(n=g[o]=p[o](b),n.c()),s.transition_in(n,1),n.m(e,null)):n=null),(!h||v&1)&&u!==(u=b[0].text+"")&&s.set_data(f,u)},i(b){h||(s.transition_in(n),s.transition_in(l.$$.fragment,b),h=!0)},o(b){s.transition_out(n),s.transition_out(l.$$.fragment,b),h=!1},d(b){b&&s.detach(t),~o&&g[o].d(),s.destroy_component(l)}}}function jf(i,t,e){let o,{tag:n}=t;return i.$$set=r=>{"tag"in r&&e(1,n=r.tag)},i.$$.update=()=>{i.$$.dirty&2&&e(0,o=n.data)},[o,n]}class Bf extends s.SvelteComponent{constructor(t){super(),s.init(this,t,jf,Mf,s.safe_not_equal,{tag:1},Lf)}}function Tf(i){s.append_styles(i,"svelte-kzl2aj",".customElement__container.svelte-kzl2aj{position:relative}")}function Xn(i){let t,e=i[0].element+"",o;return{c(){t=new s.HtmlTag(!1),o=s.empty(),t.a=o},m(n,r){t.m(e,n,r),s.insert(n,o,r)},p(n,r){r&1&&e!==(e=n[0].element+"")&&t.p(e)},d(n){n&&s.detach(o),n&&t.d()}}}function Qf(i){let t,e=typeof i[0].element=="string"&&Xn(i);return{c(){t=s.element("div"),e&&e.c(),s.attr(t,"class","customElement__container svelte-kzl2aj")},m(o,n){s.insert(o,t,n),e&&e.m(t,null),i[2](t)},p(o,[n]){typeof o[0].element=="string"?e?e.p(o,n):(e=Xn(o),e.c(),e.m(t,null)):e&&(e.d(1),e=null)},i:s.noop,o:s.noop,d(o){o&&s.detach(t),e&&e.d(),i[2](null)}}}function Of(i,t,e){let{tag:o}=t,n,r;Z.onMount(()=>{if(n){if(o.element instanceof Element){const l=o.element;n.appendChild(l),r=()=>n==null?void 0:n.removeChild(l)}else if(typeof o.element=="function"){const l=o.element;r=l(n)}}}),Z.onDestroy(()=>{r==null||r()});function a(l){s.binding_callbacks[l?"unshift":"push"](()=>{n=l,e(1,n)})}return i.$$set=l=>{"tag"in l&&e(0,o=l.tag)},[o,n,a]}class Rf extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Of,Qf,s.safe_not_equal,{tag:0},Tf)}}function Ff(i){s.append_styles(i,"svelte-95x526",`@font-face{font-family:'TG-TYPE';font-style:normal;font-weight:400;src:local('TG-TYPE-Bold'),
540
540
  url(data:application/font-woff2;charset=utf-8;base64,T1RUTwAKAIAAAwAgQ0ZGINFD4CEAAAaQAAAHC0dTVUIAAQAAAAANnAAAAApPUy8yaB5pEwAAAjQAAABgY21hcEItjGUAAAT0AAABfGhlYWQS1WWOAAAAtAAAADZoaGVhBfMBxwAAAhAAAAAkaG10eJ9gBO8AAADsAAABJG1heHAASVAAAAAArAAAAAZuYW1lqczkZQAAApQAAAJecG9zdP+4ADIAAAZwAAAAIAAAUAAASQAAAAEAAAABAADkeHeyXw889QADA+gAAAAA2NoRKwAAAADY2hErACn/OAHgAyAAAQADAAIAAAAAAAAB9ABdAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACCAA7AcwAdwIIADMCCAA0AhwAMwISADkCCAAuAfQANAH+ACsB/gApAggANAEeAFABHgBQAR4AUAIIADQCCAAuAR4AUAEeAFABfAAxAAEAAAPo/zgAAAIcACkAKQHgAAEAAAAAAAAAAAAAAAAAAABJAAMCLgGQAAUACAKKAlgAAABLAooCWAAAAV4AMgEsAAAAAAgAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFVLV04AIAAg/xsDIP84AMgD6ADIAAAAAQAAAAAB9AK8AAAAIAAAAAAAEADGAAEAAAAAAAEADAAAAAEAAAAAAAIABAAMAAEAAAAAAAMAGwAQAAEAAAAAAAQAEQArAAEAAAAAAAUAPAA8AAEAAAAAAAYAEAB4AAEAAAAAAAgADAAAAAEAAAAAAAkADAAAAAMAAQQJAAEAGACIAAMA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/sCFVBbvMjHu7zGyLxbTk5aWk4fDvtd+AojCoz7jBUmCh8kCq1vqGkeDvtdi/cS94wjCvwKBCIKDiD3ru8BvPeuA7z4EhUn967vBw4eoDf/DAmLDAv47BT4exWcEwAHAQFBXW97ipCarPcv8+7yAfdl8gP4aPf6FfIjB+r3gwUiBi77gwWHBjH3gwUkBuP7gwUnJPcxKPsxI/cx+y/y9y/3MPP7MO4GDvtdi/cSJQr3JBZkcqOzsKSksrCkcWdlcnFmHw6up6eurm+naGhvb2hop2+uHwv3EiUK9yP4ChUiCgt3SgWxBrnmBZGVj5eZGgsB2/cSAwtobm5paqBzqoYLAAABAAAAAAAAAAAAAA==)
541
- format('woff2')}.content__container.svelte-95x526{position:relative;left:50%;top:50%;transform:translate(-50%, -50%);font-family:PingFangSC, Segoe UI, Rototo, sans-serif}.content__container.unClickable.svelte-95x526{pointer-events:none !important}.content__container.unClickable.svelte-95x526 *{pointer-events:none !important}*{-webkit-tap-highlight-color:transparent}.content__wrapper.svelte-95x526{pointer-events:none;width:100%;height:100%}.withAnimation.svelte-95x526{transition:opacity 0.3s linear}.content__container.hide.svelte-95x526{opacity:0;pointer-events:none}.content__container.hide.svelte-95x526 *{pointer-events:none !important}.content__container.disable.svelte-95x526{display:none}.content__container.hide.svelte-95x526 *{pointer-events:none}.content.svelte-95x526{position:relative;width:100%;height:100%;font-size:0.75rem;line-height:1.125rem;color:#fff}.content.svelte-95x526:not(.unfolded){pointer-events:none}.content.svelte-95x526:not(.unfolded) *{pointer-events:none !important}.content.unfolded.svelte-95x526{pointer-events:auto}`)}function Hf(i){let t,e;return t=new Sf({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Gf(i){let t,e;return t=new Bf({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Nf(i){let t,e;return t=new Af({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Wf(i){let t,e;return t=new Ef({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Xf(i){let t,e;return t=new ff({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Yf(i){let t,e;return t=new xh({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Uf(i){let t,e;return t=new Rf({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Vf(i){let t,e,o,n,r,a,l,c,d;const u=[Uf,Yf,Xf,Wf,Nf,Gf,Hf],f=[];function h(p,g){return p[1].element?0:p[1].contentType===ve.Text?1:p[1].contentType===ve.ImageText?2:p[1].contentType===ve.Audio?3:p[1].contentType===ve.Marketing?4:p[1].contentType===ve.Link?5:p[1].contentType===ve.MediaPlane?6:-1}return~(n=h(i))&&(r=f[n]=u[n](i)),{c(){var p,g,A;t=s.element("div"),e=s.element("div"),o=s.element("div"),r&&r.c(),s.attr(o,"class","content svelte-95x526"),s.toggle_class(o,"unfolded",(p=i[1].state)==null?void 0:p.unfolded),s.attr(e,"class","content__wrapper svelte-95x526"),s.attr(t,"class","content__container svelte-95x526"),s.attr(t,"data-id",a=i[1].id),s.toggle_class(t,"disable",i[1].enabled===!1||((g=i[1].temporaryState)==null?void 0:g.visible)===!1),s.toggle_class(t,"hide",!i[3].visible||!i[3].enabled||!i[4].visible||!((A=i[1].state)!=null&&A.visible)),s.toggle_class(t,"withAnimation",i[0]),s.toggle_class(t,"unClickable",i[1].clickable===!1),s.set_style(t,"width",i[1].pointType==="PointTag"?0:"100%",!1),s.set_style(t,"height",i[1].pointType==="PointTag"?0:"100%",!1)},m(p,g){s.insert(p,t,g),s.append(t,e),s.append(e,o),~n&&f[n].m(o,null),l=!0,c||(d=s.listen(t,"click",s.stop_propagation(i[11])),c=!0)},p(p,[g]){var b,v,w;let A=n;n=h(p),n===A?~n&&f[n].p(p,g):(r&&(s.group_outros(),s.transition_out(f[A],1,1,()=>{f[A]=null}),s.check_outros()),~n?(r=f[n],r?r.p(p,g):(r=f[n]=u[n](p),r.c()),s.transition_in(r,1),r.m(o,null)):r=null),g&2&&s.toggle_class(o,"unfolded",(b=p[1].state)==null?void 0:b.unfolded),(!l||g&2&&a!==(a=p[1].id))&&s.attr(t,"data-id",a),g&2&&s.toggle_class(t,"disable",p[1].enabled===!1||((v=p[1].temporaryState)==null?void 0:v.visible)===!1),g&26&&s.toggle_class(t,"hide",!p[3].visible||!p[3].enabled||!p[4].visible||!((w=p[1].state)!=null&&w.visible)),g&1&&s.toggle_class(t,"withAnimation",p[0]),g&2&&s.toggle_class(t,"unClickable",p[1].clickable===!1),g&2&&s.set_style(t,"width",p[1].pointType==="PointTag"?0:"100%",!1),g&2&&s.set_style(t,"height",p[1].pointType==="PointTag"?0:"100%",!1)},i(p){l||(s.transition_in(r),l=!0)},o(p){s.transition_out(r),l=!1},d(p){p&&s.detach(t),~n&&f[n].d(),c=!1,d()}}}function Jf(i,t,e){let o,n,r,a,{withAnimation:l=!1}=t,{tag:c}=t,{hooks:d}=t,{state:u}=t,{mediaStore:f}=t,{temporaryState:h}=t;Z.setContext("hooks",d),Z.setContext("mediaStore",f);let p,g;function A(v){v?d.emit("exposure",{id:a,type:"start"}):d.emit("exposure",{id:a,type:"end"})}const b=v=>d.emit("click",{event:v,target:"TagContent",tag:c});return i.$$set=v=>{"withAnimation"in v&&e(0,l=v.withAnimation),"tag"in v&&e(1,c=v.tag),"hooks"in v&&e(2,d=v.hooks),"state"in v&&e(3,u=v.state),"mediaStore"in v&&e(5,f=v.mediaStore),"temporaryState"in v&&e(4,h=v.temporaryState)},i.$$.update=()=>{var v,w;i.$$.dirty&2&&e(9,o=(v=c.state)==null?void 0:v.unfolded),i.$$.dirty&2&&e(8,n=(w=c.state)==null?void 0:w.visible),i.$$.dirty&280&&e(10,r=u.visible&&h.visible&&n),i.$$.dirty&2&&(a=c.id),i.$$.dirty&1024&&A(r),i.$$.dirty&962&&c.hooks&&(o!==void 0&&o!==g&&(e(7,g=o),o?c.hooks.emit("unfolded"):c.hooks.emit("folded")),n!==void 0&&n!==p&&(e(6,p=n),n?c.hooks.emit("show"):c.hooks.emit("hide")))},[l,c,d,u,h,f,p,g,n,o,r,b]}class Yn extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Jf,Vf,s.safe_not_equal,{withAnimation:0,tag:1,hooks:2,state:3,mediaStore:5,temporaryState:4},Ff)}}function Zf(i){s.append_styles(i,"svelte-fuismw",".point.svelte-fuismw.svelte-fuismw{pointer-events:none;width:1.5rem;height:1.5rem}.small-point.svelte-fuismw.svelte-fuismw,.big-point.svelte-fuismw.svelte-fuismw{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all 500ms}.big-point.svelte-fuismw.svelte-fuismw{background-color:rgba(0, 0, 0, 0.1)}.folded.point.svelte-fuismw.svelte-fuismw{animation:svelte-fuismw-breathing 2s linear infinite}.big-point.svelte-fuismw.svelte-fuismw::before,.big-point.svelte-fuismw.svelte-fuismw::after{content:'';display:block;position:absolute;background-size:contain;background-repeat:no-repeat;pointer-events:none}.big-point.svelte-fuismw.svelte-fuismw::before{width:100%;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAqFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8j1z1tAAAAOHRSTlMABgoNFBsYIhEmHyksMoJ6RZ5aXzpnU03AtqaZjLuGN+zcifnW0cjEqnA+lOZzbWLhkH6i8rGuagnOwPMAAAQOSURBVFjDrZiHctpAEIYXYzvGOvXeUe+IYuD93ywrJAIhFJX8M8zoBHzz757utHvwTETJHJPfGQZfWJXILWCMPuqNbuu6vj+khrHjed40TWvFfQ2jvCl8nGha6lQCl7s07UqcUlfOZrOxVtKsN2a+0uJYK+ScEIqiFifhBSGSsnJ8f8u99cLMVnEUHTKXIOMX6vuk5gpphFYyhmHzHpzcDqNUJGgEER+oz5OaK8ShNcIdt+zx1ys7lhdqiDlRkPF+JaSdWIhasaz6lLPQ1qFDIwYpDeTr62veCS8bGLIQRSsVK78/5nDeOlYIYhovHeOtU0dDXw2KSGiKesQRyjJ10Q66QcyZ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svelte-fuismw::before{animation:svelte-fuismw-rotate 2s linear infinite}.big-point.svelte-fuismw.svelte-fuismw::after{position:absolute;width:1rem;height:1rem;background-image:var(--iconUrl)}.small-point.svelte-fuismw.svelte-fuismw::before{content:'';display:block;position:absolute;pointer-events:none;width:0.25rem;height:0.25rem;border-radius:100%;background-color:white}.folded.svelte-fuismw .big-point.svelte-fuismw{opacity:1;scale:1}.unfolded.svelte-fuismw .big-point.svelte-fuismw{opacity:0;scale:0}.folded.svelte-fuismw .small-point.svelte-fuismw{opacity:0;scale:6}.unfolded.svelte-fuismw .small-point.svelte-fuismw{opacity:1;scale:1}@keyframes svelte-fuismw-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes svelte-fuismw-breathing{0%{transform:scale(1)}25%{transform:scale(0.9)}50%{transform:scale(1)}}")}function qf(i){let t,e,o,n,r,a,l;return e=new we({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),r=s.space(),a=s.element("div"),s.attr(n,"class","small-point svelte-fuismw"),s.set_style(n,"transition-delay",i[3]?i[2]+"ms":"0ms",!1),s.attr(a,"class","big-point svelte-fuismw"),s.set_style(a,"--iconUrl","url("+i[1]+")"),s.set_style(a,"transition-delay",i[3]?i[2]+"ms":"0ms",!1),s.attr(t,"class","point svelte-fuismw"),s.toggle_class(t,"folded",i[3]),s.toggle_class(t,"unfolded",i[0])},m(c,d){s.insert(c,t,d),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),s.append(t,r),s.append(t,a),l=!0},p(c,[d]){d&12&&s.set_style(n,"transition-delay",c[3]?c[2]+"ms":"0ms",!1),(!l||d&2)&&s.set_style(a,"--iconUrl","url("+c[1]+")"),d&12&&s.set_style(a,"transition-delay",c[3]?c[2]+"ms":"0ms",!1),d&8&&s.toggle_class(t,"folded",c[3]),d&1&&s.toggle_class(t,"unfolded",c[0])},i(c){l||(s.transition_in(e.$$.fragment,c),l=!0)},o(c){s.transition_out(e.$$.fragment,c),l=!1},d(c){c&&s.detach(t),s.destroy_component(e)}}}function Kf(i,t,e){let o,{unfolded:n}=t,{iconUrl:r}=t,{foldDelay:a=800}=t;return i.$$set=l=>{"unfolded"in l&&e(0,n=l.unfolded),"iconUrl"in l&&e(1,r=l.iconUrl),"foldDelay"in l&&e(2,a=l.foldDelay)},i.$$.update=()=>{i.$$.dirty&1&&e(3,o=!n)},[n,r,a,o]}class $f extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Kf,qf,s.safe_not_equal,{unfolded:0,iconUrl:1,foldDelay:2},Zf)}}function em(i){s.append_styles(i,"svelte-jzvcn0",".point.svelte-jzvcn0.svelte-jzvcn0{pointer-events:none;width:1rem;height:1rem}.small-point.svelte-jzvcn0.svelte-jzvcn0,.big-point.svelte-jzvcn0.svelte-jzvcn0{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all 500ms}.big-point.svelte-jzvcn0.svelte-jzvcn0::before,.big-point.svelte-jzvcn0.svelte-jzvcn0::after{content:'';display:block;position:absolute;background-size:contain;background-repeat:no-repeat;pointer-events:none}.big-point.svelte-jzvcn0.svelte-jzvcn0::before{width:100%;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAqFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8j1z1tAAAAOHRSTlMABgoNFBsYIhEmHyksMoJ6RZ5aXzpnU03AtqaZjLuGN+zcifnW0cjEqnA+lOZzbWLhkH6i8rGuagnOwPMAAAQOSURBVFjDrZiHctpAEIYXYzvGOvXeUe+IYuD93ywrJAIhFJX8M8zoBHzz757utHvwTETJHJPfGQZfWJXILWCMPuqNbuu6vj+khrHjed40TWvFfQ2jvCl8nGha6lQCl7s07UqcUlfOZrOxVtKsN2a+0uJYK+ScEIqiFifhBSGSsnJ8f8u99cLMVnEUHT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/doJLF2nPXbIlw5y1aC6t4eROW1pduaLs/7b6NEqFiWrWpBzaXuaOy4Nfe6bRfqGwzSXBJZhnF8y9oUhcnzOyM9pI7wCWP0LSkyy1iFWWwsFp8LeKLfd4doRyTLRacAAAAASUVORK5CYII=);background-size:contain;background-repeat:no-repeat}.small-point.svelte-jzvcn0.svelte-jzvcn0::before{content:'';display:block;position:absolute;pointer-events:none;width:0.375rem;height:0.375rem;border-radius:100%;background-color:white}.unfolded.svelte-jzvcn0 .big-point.svelte-jzvcn0{opacity:0;transform:scale(0)}.folded.svelte-jzvcn0 .big-point.svelte-jzvcn0{opacity:1;transform:scale(1)}.unfolded.svelte-jzvcn0 .small-point.svelte-jzvcn0{transform:scale(0.6)}.folded.svelte-jzvcn0 .small-point.svelte-jzvcn0{transform:scale(1)}")}function tm(i){let t,e,o,n,r,a,l;return e=new we({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),r=s.space(),a=s.element("div"),s.attr(n,"class","small-point svelte-jzvcn0"),s.set_style(n,"transition-delay",i[2]?i[1]+"ms":"0ms",!1),s.attr(a,"class","big-point svelte-jzvcn0"),s.set_style(a,"transition-delay",i[2]?i[1]+"ms":"0ms",!1),s.attr(t,"class","point svelte-jzvcn0"),s.toggle_class(t,"unfolded",i[0]),s.toggle_class(t,"folded",i[2])},m(c,d){s.insert(c,t,d),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),s.append(t,r),s.append(t,a),l=!0},p(c,[d]){d&6&&s.set_style(n,"transition-delay",c[2]?c[1]+"ms":"0ms",!1),d&6&&s.set_style(a,"transition-delay",c[2]?c[1]+"ms":"0ms",!1),d&1&&s.toggle_class(t,"unfolded",c[0]),d&4&&s.toggle_class(t,"folded",c[2])},i(c){l||(s.transition_in(e.$$.fragment,c),l=!0)},o(c){s.transition_out(e.$$.fragment,c),l=!1},d(c){c&&s.detach(t),s.destroy_component(e)}}}function om(i,t,e){let o,{unfolded:n}=t,{foldDelay:r=800}=t;return i.$$set=a=>{"unfolded"in a&&e(0,n=a.unfolded),"foldDelay"in a&&e(1,r=a.foldDelay)},i.$$.update=()=>{i.$$.dirty&1&&e(2,o=!n)},[n,r,o]}class sm extends s.SvelteComponent{constructor(t){super(),s.init(this,t,om,tm,s.safe_not_equal,{unfolded:0,foldDelay:1},em)}}function im(i){s.append_styles(i,"svelte-8en2lj",".point-click-helper.svelte-8en2lj{position:absolute;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}")}function Un(i){let t,e,o=i[0].contentType!==ve.Link&&Vn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,r){n[0].contentType!==ve.Link?o?(o.p(n,r),r&1&&s.transition_in(o,1)):(o=Vn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function Vn(i){let t,e,o,n,r,a;const l=[rm,nm],c=[];function d(u,f){var h,p,g,A;return((p=(h=u[0].style)==null?void 0:h.point)==null?void 0:p.style)==="CustomIcon"&&((A=(g=u[0].style)==null?void 0:g.point)==null?void 0:A.iconUrl)?0:1}return o=d(i),n=c[o]=l[o](i),{c(){t=s.element("div"),e=s.space(),n.c(),r=s.empty(),s.attr(t,"class","point-click-helper svelte-8en2lj")},m(u,f){s.insert(u,t,f),s.insert(u,e,f),c[o].m(u,f),s.insert(u,r,f),a=!0},p(u,f){let h=o;o=d(u),o===h?c[o].p(u,f):(s.group_outros(),s.transition_out(c[h],1,1,()=>{c[h]=null}),s.check_outros(),n=c[o],n?n.p(u,f):(n=c[o]=l[o](u),n.c()),s.transition_in(n,1),n.m(r.parentNode,r))},i(u){a||(s.transition_in(n),a=!0)},o(u){s.transition_out(n),a=!1},d(u){u&&s.detach(t),u&&s.detach(e),c[o].d(u),u&&s.detach(r)}}}function nm(i){let t,e;return t=new sm({props:{unfolded:i[0].state.unfolded,foldDelay:i[1]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.unfolded=o[0].state.unfolded),n&2&&(r.foldDelay=o[1]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function rm(i){let t,e;return t=new $f({props:{iconUrl:i[0].style.point.iconUrl,unfolded:i[0].state.unfolded,foldDelay:i[1]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.iconUrl=o[0].style.point.iconUrl),n&1&&(r.unfolded=o[0].state.unfolded),n&2&&(r.foldDelay=o[1]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function am(i){var n,r,a;let t,e,o=((n=i[0].pointTagStyle)==null?void 0:n.leftPercent)&&((r=i[0].pointTagStyle)==null?void 0:r.topPercent)&&i[0].enabled!==!1&&i[0].state&&((a=i[0].temporaryState)==null?void 0:a.visible)!==!1&&Un(i);return{c(){o&&o.c(),t=s.empty()},m(l,c){o&&o.m(l,c),s.insert(l,t,c),e=!0},p(l,[c]){var d,u,f;((d=l[0].pointTagStyle)==null?void 0:d.leftPercent)&&((u=l[0].pointTagStyle)==null?void 0:u.topPercent)&&l[0].enabled!==!1&&l[0].state&&((f=l[0].temporaryState)==null?void 0:f.visible)!==!1?o?(o.p(l,c),c&1&&s.transition_in(o,1)):(o=Un(l),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(l){e||(s.transition_in(o),e=!0)},o(l){s.transition_out(o),e=!1},d(l){o&&o.d(l),l&&s.detach(t)}}}function lm(i,t,e){let o,{tag:n}=t;return i.$$set=r=>{"tag"in r&&e(0,n=r.tag)},i.$$.update=()=>{var r,a;i.$$.dirty&1&&e(1,o=(a=(r=n.style)==null?void 0:r.foldedPointDelay)!=null?a:n.contentType===ve.Marketing?600:void 0)},[n,o]}class cm extends s.SvelteComponent{constructor(t){super(),s.init(this,t,lm,am,s.safe_not_equal,{tag:0},im)}}function dm(i){s.append_styles(i,"svelte-1vzhbu2",".wrapper.svelte-1vzhbu2{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}.point.svelte-1vzhbu2{-webkit-tap-highlight-color:transparent;position:absolute;transform:translate(-50%, -50%);left:50%;top:50%}")}function Jn(i){let t,e;return t=new Yn({props:{mediaStore:i[4],withAnimation:i[0],tag:re(i[1]),hooks:i[2],state:i[3],temporaryState:i[5]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&16&&(r.mediaStore=o[4]),n&1&&(r.withAnimation=o[0]),n&2&&(r.tag=re(o[1])),n&4&&(r.hooks=o[2]),n&8&&(r.state=o[3]),n&32&&(r.temporaryState=o[5]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Zn(i){let t,e,o,n,r;return e=new cm({props:{tag:i[1]}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),s.attr(t,"class","point svelte-1vzhbu2")},m(a,l){s.insert(a,t,l),s.mount_component(e,t,null),o=!0,n||(r=s.listen(t,"click",s.stop_propagation(i[11])),n=!0)},p(a,l){const c={};l&2&&(c.tag=a[1]),e.$set(c)},i(a){o||(s.transition_in(e.$$.fragment,a),o=!0)},o(a){s.transition_out(e.$$.fragment,a),o=!1},d(a){a&&s.detach(t),s.destroy_component(e),n=!1,r()}}}function um(i){var l,c;let t,e,o,n,r=i[1].dimensionType===ye.Two&&Jn(i),a=i[1].pointType===Ae.PointTag&&((c=(l=i[1].style)==null?void 0:l.point)==null?void 0:c.style)!=="noPoint"&&Zn(i);return{c(){t=s.element("div"),r&&r.c(),e=s.space(),a&&a.c(),s.attr(t,"class","wrapper svelte-1vzhbu2"),s.attr(t,"data-id",o=i[1].id),s.toggle_class(t,"hide",i[10]),s.toggle_class(t,"unfolded",i[6]),s.set_style(t,"left",i[9],!1),s.set_style(t,"top",i[8],!1),s.set_style(t,"z-index",i[7],!1)},m(d,u){s.insert(d,t,u),r&&r.m(t,null),s.append(t,e),a&&a.m(t,null),n=!0},p(d,[u]){var f,h;d[1].dimensionType===ye.Two?r?(r.p(d,u),u&2&&s.transition_in(r,1)):(r=Jn(d),r.c(),s.transition_in(r,1),r.m(t,e)):r&&(s.group_outros(),s.transition_out(r,1,1,()=>{r=null}),s.check_outros()),d[1].pointType===Ae.PointTag&&((h=(f=d[1].style)==null?void 0:f.point)==null?void 0:h.style)!=="noPoint"?a?(a.p(d,u),u&2&&s.transition_in(a,1)):(a=Zn(d),a.c(),s.transition_in(a,1),a.m(t,null)):a&&(s.group_outros(),s.transition_out(a,1,1,()=>{a=null}),s.check_outros()),(!n||u&2&&o!==(o=d[1].id))&&s.attr(t,"data-id",o),u&1024&&s.toggle_class(t,"hide",d[10]),u&64&&s.toggle_class(t,"unfolded",d[6]),u&512&&s.set_style(t,"left",d[9],!1),u&256&&s.set_style(t,"top",d[8],!1),u&128&&s.set_style(t,"z-index",d[7],!1)},i(d){n||(s.transition_in(r),s.transition_in(a),n=!0)},o(d){s.transition_out(r),s.transition_out(a),n=!1},d(d){d&&s.detach(t),r&&r.d(),a&&a.d()}}}function hm(i,t,e){let o,n,r,a,l,c,{withAnimation:d=!1}=t,{tag:u}=t,{hooks:f}=t,{state:h}=t,{mediaStore:p}=t,{temporaryState:g}=t,A,b=!1;function v(y){A!==void 0&&clearTimeout(A),b=!0,A=setTimeout(()=>{b=!1},800)}const w=y=>{b||f.emit("click",{event:y,target:"TagPoint",tag:u})};return i.$$set=y=>{"withAnimation"in y&&e(0,d=y.withAnimation),"tag"in y&&e(1,u=y.tag),"hooks"in y&&e(2,f=y.hooks),"state"in y&&e(3,h=y.state),"mediaStore"in y&&e(4,p=y.mediaStore),"temporaryState"in y&&e(5,g=y.temporaryState)},i.$$.update=()=>{var y,E,k,C;i.$$.dirty&2&&e(12,o=(y=u.state)==null?void 0:y.visible),i.$$.dirty&4096&&e(10,n=!o),i.$$.dirty&2&&e(6,r=(E=u.state)==null?void 0:E.unfolded),i.$$.dirty&2&&e(9,a=((k=u.pointTagStyle)==null?void 0:k.leftPercent)+"%"),i.$$.dirty&2&&e(8,l=((C=u.pointTagStyle)==null?void 0:C.topPercent)+"%"),i.$$.dirty&2&&e(7,c=u.contentType===ve.Link?1:0),i.$$.dirty&64&&v()},[d,u,f,h,p,g,r,c,l,a,n,w,o]}class fm extends s.SvelteComponent{constructor(t){super(),s.init(this,t,hm,um,s.safe_not_equal,{withAnimation:0,tag:1,hooks:2,state:3,mediaStore:4,temporaryState:5},dm)}}function mm(i){s.append_styles(i,"svelte-1eci49s",".tag--container.svelte-1eci49s{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}.tag.hide.svelte-1eci49s{display:none}.withAnimation.svelte-1eci49s{transition:opacity 0.3s linear}.tag--container.hide.svelte-1eci49s{opacity:0;pointer-events:none}.tag--container.hide.svelte-1eci49s *{pointer-events:none}")}function qn(i,t,e){const o=i.slice();return o[6]=t[e],o}function Kn(i){let t,e=[],o=new Map,n,r=i[1];const a=l=>l[6].id;for(let l=0;l<r.length;l+=1){let c=qn(i,r,l),d=a(c);o.set(d,e[l]=$n(d,c))}return{c(){t=s.element("div");for(let l=0;l<e.length;l+=1)e[l].c();s.attr(t,"class","tag--container svelte-1eci49s"),s.toggle_class(t,"hide",!i[3].visible||!i[5].visible),s.toggle_class(t,"withAnimation",i[0])},m(l,c){s.insert(l,t,c);for(let d=0;d<e.length;d+=1)e[d].m(t,null);n=!0},p(l,c){c&63&&(r=l[1],s.group_outros(),e=s.update_keyed_each(e,c,a,1,l,r,o,t,s.outro_and_destroy_block,$n,null,qn),s.check_outros()),c&40&&s.toggle_class(t,"hide",!l[3].visible||!l[5].visible),c&1&&s.toggle_class(t,"withAnimation",l[0])},i(l){if(!n){for(let c=0;c<r.length;c+=1)s.transition_in(e[c]);n=!0}},o(l){for(let c=0;c<e.length;c+=1)s.transition_out(e[c]);n=!1},d(l){l&&s.detach(t);for(let c=0;c<e.length;c+=1)e[c].d()}}}function $n(i,t){let e,o,n,r;const a=[{tag:t[6],hooks:t[2],state:t[3],mediaStore:t[4],temporaryState:t[5],withAnimation:t[0]}];let l={};for(let c=0;c<a.length;c+=1)l=s.assign(l,a[c]);return o=new fm({props:l}),{key:i,first:null,c(){var c,d,u;e=s.element("div"),s.create_component(o.$$.fragment),n=s.space(),s.attr(e,"class","tag svelte-1eci49s"),s.toggle_class(e,"hide",!((c=t[6].pointTagStyle)!=null&&c.leftPercent)||!((d=t[6].pointTagStyle)!=null&&d.topPercent)||t[6].enabled===!1||!t[6].state||((u=t[6].temporaryState)==null?void 0:u.visible)===!1),this.first=e},m(c,d){s.insert(c,e,d),s.mount_component(o,e,null),s.append(e,n),r=!0},p(c,d){var f,h,p;t=c;const u=d&63?s.get_spread_update(a,[{tag:t[6],hooks:t[2],state:t[3],mediaStore:t[4],temporaryState:t[5],withAnimation:t[0]}]):{};o.$set(u),d&2&&s.toggle_class(e,"hide",!((f=t[6].pointTagStyle)!=null&&f.leftPercent)||!((h=t[6].pointTagStyle)!=null&&h.topPercent)||t[6].enabled===!1||!t[6].state||((p=t[6].temporaryState)==null?void 0:p.visible)===!1)},i(c){r||(s.transition_in(o.$$.fragment,c),r=!0)},o(c){s.transition_out(o.$$.fragment,c),r=!1},d(c){c&&s.detach(e),s.destroy_component(o)}}}function pm(i){let t,e,o=i[3].enabled&&Kn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[3].enabled?o?(o.p(n,r),r&8&&s.transition_in(o,1)):(o=Kn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function gm(i,t,e){let{withAnimation:o=!1}=t,{tags:n=[]}=t,{hooks:r}=t,{state:a}=t,{mediaStore:l}=t,{temporaryState:c}=t;return i.$$set=d=>{"withAnimation"in d&&e(0,o=d.withAnimation),"tags"in d&&e(1,n=d.tags),"hooks"in d&&e(2,r=d.hooks),"state"in d&&e(3,a=d.state),"mediaStore"in d&&e(4,l=d.mediaStore),"temporaryState"in d&&e(5,c=d.temporaryState)},[o,n,r,a,l,c]}class Am extends s.SvelteComponent{constructor(t){super(),s.init(this,t,gm,pm,s.safe_not_equal,{withAnimation:0,tags:1,hooks:2,state:3,mediaStore:4,temporaryState:5},mm)}}const vm={globalConfig:{initialState:{},visibleConfig:{visibleDistance:{max:5},angleRange:{min:-45,max:45}},unfoldedConfig:{autoUnfold:{strategy:"MinimumDistance"}},tag3DConfig:{ratio:.0035}},contentTypeConfig:{"Any-Link-Any":{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},"Any-Marketing-Any":{unfoldedConfig:void 0},"3D-MediaPlane-PlaneTag":{unfoldedConfig:{keep:"unfolded"},visibleConfig:{alwaysShowWhenMovePano:!0,angleRange:void 0,visibleDistance:void 0}}}};class bm extends St{constructor(e){super(e);m(this,"tagCacheByPanoIndex",{})}getCaches({panoIndex:e,id:o,key:n}){var d,u,f,h;const{five:r}=this,a=(d=r.panoIndex)!=null?d:e;if(a===void 0)throw new Error(`TagCacheController getCache(): fivePanoIndex is ${a}`);const l=`${(f=(u=r.work)==null?void 0:u.workCode)!=null?f:r.model.uuid}-${a}`;let c=this.tagCacheByPanoIndex[l];if(c||(c=new Map,this.tagCacheByPanoIndex[l]=c),o===void 0)return c;if(n===void 0){const p=c.get(o);return p||(c.set(o,{}),c.get(o))}return(h=c.get(o))==null?void 0:h[n]}clearCache(){this.tagCacheByPanoIndex={}}}class ym extends bm{constructor(e){super(e);m(this,"tags",[]);m(this,"config",vm);m(this,"raycaster",new I.Raycaster)}getTagById(e){const o=this.tags.find(n=>n.id===e);if(!o){console.error(`getTagById(): tag is ${o}, id is ${e}`);return}return o}changeConfig(e,o=!0){o?this.config=Ge.default({},this.config,e):this.config=e,this.clearCache()}changeGlobalConfig(e,o=!0){o?this.config.globalConfig=Ge.default({},this.config.globalConfig,e):this.config.globalConfig=e,this.clearCache()}changeContentTypeConfig(e,o,n=!0){this.config.contentTypeConfig||(this.config.contentTypeConfig={}),n?this.config.contentTypeConfig[e]=Ge.default({},this.config.contentTypeConfig[e],o):this.config.contentTypeConfig[e]=o,this.clearCache()}getVisibleByPanoIndex(e,o){var a;const n=this.getCaches({panoIndex:o,id:e.id}),r=(a=this.five.panoIndex)!=null?a:o;if(n.visible!==void 0)return n.visible;{const l=(()=>{var u,f,h,p,g;const c=(u=this.getTagConfig(e).visibleConfig)!=null?u:{},d=this.getDistance(e);if(typeof c=="function")return c(this.five,{tag:e,distance:d});if(c.keep==="hidden")return!1;if(c.keep==="visible")return!0;if(c.visiblePanoIndex!==void 0&&(r===void 0||!c.visiblePanoIndex.includes(r))||c.visibleDistance!==void 0&&c.visibleDistance!=="unLimited"&&Xt(d,c.visibleDistance)===!1)return!1;if(((f=c.intersectRaycaster)==null?void 0:f.enabled)!==!1){if(r===void 0)return!1;const A=(h=this.five.work.observers[r])==null?void 0:h.position;if(A===void 0)throw new Error(`getVisible(): observerPosition is ${A}`);const b=Wt(e.position).sub(A).normalize();this.raycaster.set(A,b);const[v]=this.five.model.intersectRaycaster(this.raycaster),w=(g=(p=c.intersectRaycaster)==null?void 0:p.distanceAccuracy)!=null?g:.01;if(v&&v.distance+w<d)return!1}return!(c.angleRange&&e.dimensionType===ye.Three&&Xt(this.getAngle(e),c.angleRange)===!1)})();return n.visible=l,n.visible}}getUnfoldedByPanoIndex(e,o){if(!this.getVisibleByPanoIndex(e))return;const r=this.getCaches({panoIndex:o,id:e.id});if(r.unfolded!==void 0)return r.unfolded;{const a=this.getTagConfig(e).unfoldedConfig;if(!a)return;const l=(()=>{const d=this.getDistance(e);if(typeof a=="function")return a(this.five,{tag:e,distance:d});if(a.keep==="folded")return!1;if(a.keep==="unfolded")return!0;if(a.disableUnfold===!0)return!1;if(a.disableFold===!0)return!0;if(a.unfoldDistance&&Xt(d,a.unfoldDistance)===!1)return!1})();r.unfolded=l;const c=this.getUnfoldedByCamera(e);return c!==void 0?c:r.unfolded}}getUnfoldedByCamera(e){return this.getVisibleByPanoIndex(e)?(()=>{var l;const r=this.getDistance(e),a=this.getTagConfig(e).unfoldedConfig;if(!!a){if(typeof a=="function")return a(this.five,{tag:e,distance:r});if(a.keep==="folded")return!1;if(a.keep==="unfolded")return!0;if(a.disableUnfold===!0)return!1;if(a.disableFold===!0)return!0;if(a.autoUnfold===void 0)return;if(a.autoUnfold.strategy==="ScreenPostion"){const c=this.getTagProject(e);if(c&&Xt(c.x,a.autoUnfold.autoUnfoldProjectX)===!1)return!1}if(a.autoUnfold.strategy==="MinimumDistance"){const u=this.filterPointTag().filter(h=>this.getVisibleByPanoIndex(h)).filter(h=>{const p=this.getTagProject(h);if(!p)return!1;const{x:g,y:A,z:b}=p;return!(Math.abs(b)>1||Math.abs(g)>1||Math.abs(A)>1)}).filter(h=>{var g;const p=this.getTagConfig(h).unfoldedConfig;return typeof p=="object"&&((g=p.autoUnfold)==null?void 0:g.strategy)==="MinimumDistance"}).map(h=>({id:h.id,distance:this.getDistance(h)})).filter(h=>h.distance!==void 0).sort((h,p)=>h.distance-p.distance).findIndex(h=>h.id===e.id);if(u===-1||u<=((l=a.autoUnfold.maxNumber)!=null?l:1)-1===!1)return!1}return!0}})():void 0}getDistance(e,o){var a,l,c;const n=(a=this.five.panoIndex)!=null?a:o;if(n===void 0)throw new Error(`getDistance(): fivePanoIndex is ${n}`);const r=this.getCaches({panoIndex:o,id:e.id});if(r.distance!==void 0)return r.distance;{const d=(c=(l=this.five.work)==null?void 0:l.observers[n])==null?void 0:c.position;if(d===void 0)throw new Error(`getDistance(): observerPosition is ${d}`);const u=(()=>e.pointType===Ae.PointTag?Se(e==null?void 0:e.position):Wt(e.position))(),f=d.distanceTo(u);return r.distance=f,f}}getAngle(e,o){var a,l,c;const n=(a=this.five.panoIndex)!=null?a:o;if(n===void 0)throw new Error(`getDistance(): fivePanoIndex is ${n}`);const r=this.getCaches({panoIndex:o,id:e.id});if(r.angle!==void 0)return r.angle;{const d=(c=(l=this.five.work)==null?void 0:l.observers[n])==null?void 0:c.position;if(d===void 0)throw new Error(`getAngleRange(): observerPosition is ${d}`);const u=(()=>e.pointType===Ae.PointTag?ht(e.normal):Wi(e.position))();if(!u)return;const f=new I.Vector3().copy(d).sub(Wt(e.position)),h=u.angleTo(f)*180/Math.PI;return r.angle=h,r.angle}}getTagConfig(e){var r;if(!e)return(r=this.config.globalConfig)!=null?r:{};const o={};return this.config.contentTypeConfig&&Object.keys(this.config.contentTypeConfig).forEach(a=>{const l=a;if(o[l])return;const c=l.split("-"),[d="Any",u="Any",f="Any"]=c||[];(e.dimensionType===d||d==="Any")&&(e.contentType===u||u==="Any")&&(e.pointType===f||f==="Any")&&(o[l]=this.config.contentTypeConfig[l])}),Ge.default({},this.config.globalConfig,...Object.values(o),e.config)}canBe(e,o){const n=this.getTagConfig(o);if(!n||typeof n!="object")return!0;if(e==="show"||e==="hide"){if(!n.visibleConfig||typeof n.visibleConfig!="object")return!0;if(e==="show"&&n.visibleConfig.keep==="hidden"||e==="hide"&&(n.visibleConfig.keep==="visible"||n.visibleConfig.alwaysShowWhenMovePano))return!1}if(e==="fold"||e==="unfold"){if(!n.unfoldedConfig||typeof n.unfoldedConfig!="object")return!0;if(e==="fold"&&(n.unfoldedConfig.disableFold||n.unfoldedConfig.keep==="unfolded")||e==="unfold"&&(n.unfoldedConfig.disableUnfold||n.unfoldedConfig.keep==="folded"))return!1}return!0}setPointTagPosition(){const e=this.filterPointTag();e.length!==0&&e.forEach(o=>{var r;if(!((r=o.state)!=null&&r.visible)){o.pointTagStyle=void 0;return}const n=this.getTagProject(o);if(!n){o.pointTagStyle=void 0;return}o.pointTagStyle={leftPercent:(n.x+1)/2*100,topPercent:(-n.y+1)/2*100}})}setVisibleByPanoIndex(){this.tags.forEach(e=>{const o=this.getVisibleByPanoIndex(e);e.state&&(e.state.visible=o)})}setUnfoldedByPanoIndex(){this.tags.forEach(e=>{const o=this.getUnfoldedByPanoIndex(e);if(!!e.state&&(o!==void 0&&(e.state.unfolded=o),o&&!e.state.visible)){const n=this.getTagConfig(e);typeof n.unfoldedConfig=="object"&&n.unfoldedConfig.autoUnfoldWhenHide!==!1&&(e.state.unfolded=!1)}})}getTagProject(e){if(!this.getVisibleByPanoIndex(e))return;const n=Wt(e.position),{x:r,y:a,z:l}=n.project(this.five.camera);if(!(l>1))return{x:r,y:a,z:l}}filterPointTag(){return this.tags.filter(e=>e.pointType===Ae.PointTag)}filterTag2D(){return this.tags.filter(e=>e.dimensionType===ye.Two)}filter3DPointTag(){return this.tags.filter(e=>e.dimensionType===ye.Three&&e.pointType===Ae.PointTag)}filter3DTag(){return this.tags.filter(e=>e.dimensionType===ye.Three)}filterPlaneTag(){return this.tags.filter(e=>e.dimensionType===ye.Three&&e.pointType===Ae.PlaneTag)}}const er="1.2.6",So=`DnalogelPlugin-PanoTagPlugin@${er}`,wm=!1,Cm=i=>`${So}--${i}`;class tr extends ym{constructor(e,o){super(e);m(this,"version",er);m(this,"state",{enabled:!0,visible:!0});m(this,"params");m(this,"debug");m(this,"css3DRenderPlugin");m(this,"TagContainerSvelte");m(this,"temporaryState",{visible:!0});m(this,"mediaStore",$t.writable({currentMediaUrl:""}));m(this,"store",{disposers:[],disposed:!1,resizeObserverDisposerAdding:!1,css3DRenderDisposer:new Map});m(this,"staticUrl");m(this,"disposedErrorLog",()=>{console.error(`${So} is disposed`)});this.params=B({debug:!1,mergePluginDefaultConfigToLoadDataConfig:!1,config:this.config,staticConfig:{host:"vrlab-static.ljcdn.com"}},o),this.debug=this.params.debug,this.config=this.params.config,this.staticUrl=(()=>{var r;const n=this.params.staticConfig;if(typeof n=="string")return n;{const a=n.protocol?n.protocol+":":"",l=(r=n.host)!=null?r:"vrlab-static.ljcdn.com",c=n.port?":"+n.port:"";return`${a}//${l}${c}`}})(),Object.assign(window,{__PANOTAGPLUGIN_DEBUG__:this})}load(e,o){var n,r;this.clearTags(),console.log(So,"load:",{data:e}),this.params.mergePluginDefaultConfigToLoadDataConfig?this.config=Ge.default({},this.config,{globalConfig:(n=e.globalConfig)!=null?n:{},contentTypeConfig:(r=e.contentTypeConfig)!=null?r:{}}):(e.globalConfig&&(this.config.globalConfig=e.globalConfig),e.contentTypeConfig&&(this.config.contentTypeConfig=e.contentTypeConfig)),this.addTag(e.tagList,o),this.debug&&eh(this.five,this.tags)}addTag(e,o){const r=(Array.isArray(e)?e:[e]).map(a=>{const l=this.getTagConfig(a);return q(B({},a),{state:B({visible:void 0,unfolded:wm},l.initialState),hooks:new J.Subscribe,clickable:l.clickable})}).filter(a=>a.position);this.tags.push(...r),th(this.five,()=>{var a,l,c;this.store.eventListenerDisposer&&((l=(a=this.store).eventListenerDisposer)==null||l.call(a)),this.state.enabled&&(this.store.eventListenerDisposer=this.addEventListener()),this.addResizeListener(),this.checkPanelTag(),this.setVisibleAndUnfolded({withAnimation:(c=o==null?void 0:o.withAnimation)!=null?c:!0}).then(()=>this.updateRenderAllTags()),this.updateRenderAllTags()})}clearTags(){this.tags=[],this.clearCache(),this.disposeAllCSS3DContainer(),this.updateRenderAllTags()}show(e){return G(this,null,function*(){const{userAction:o=!0,withAnimation:n=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!0},{userAction:o,visibleWithAnimation:n}),this.hooks.emit("show",{userAction:o,withAnimation:n})})}hide(e){return G(this,null,function*(){const{userAction:o=!0,withAnimation:n=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!1},{userAction:o,visibleWithAnimation:n}),this.hooks.emit("hide",{userAction:o,withAnimation:n})})}enable(e){const{userAction:o=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!0},{userAction:o}),this.hooks.emit("enable",{userAction:o})}disable(e){const{userAction:o=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!1},{userAction:o}),this.hooks.emit("disable",{userAction:o})}dispose(){var e,o,n,r,a,l;this.disposeAllCSS3DContainer(),(e=this.TagContainerSvelte)==null||e.$destroy(),this.filter3DTag().forEach(c=>{var d;return(d=c.tag3DContentSvelte)==null?void 0:d.svelteApp.$destroy()}),this.tags=[],(o=this.store.disposers)==null||o.forEach(c=>c==null?void 0:c()),this.store.disposers=[],this.store.disposed=!0,(r=(n=this.store).eventListenerDisposer)==null||r.call(n),this.store.eventListenerDisposer=void 0,(l=(a=this.store).resizeObserverDisposer)==null||l.call(a),this.store.resizeObserverDisposer=void 0,this.store.resizeObserverDisposerAdding=!1,this.clearCache(),this.hooks.emit("dispose")}setState(e,o){if(this.store.disposed)return this.disposedErrorLog();const{userAction:n=!0,visibleWithAnimation:r=!1}=o,a=B({},this.state);this.state=Object.assign(this.state,e),this.store.visibleWithAnimation=r,a.visible!==this.state.visible&&(e.visible?this.handleShow():this.handleHide()),a.enabled!==this.state.enabled&&(e.enabled?this.handleEnable():this.handleDisable()),this.hooks.emit("stateChange",{state:this.state,prevState:a,userAction:n})}changeTagNormalById(e,o){const n=this.getTagById(e);!n||!n.tag3DContentSvelte||(n.tag3DContentSvelte.currentNormal=Se(o),this.updateRenderPlaneTag())}changeDataById(e,o,n=!0){const r=this.getTagById(e);!r||(n?r.data=Ge.default({},r.data,o):Object.assign(r.data,o),this.checkPanelTag(),this.updateRenderAllTags())}changeTagById(e,o,n=!0){const r=this.getTagById(e);!o||(n?Ge.default(r,o):Object.assign(r,o),(r==null?void 0:r.tag3DContentSvelte)&&(o==null?void 0:o.normal)&&(r.tag3DContentSvelte.currentNormal=Se(o.normal)),this.updateRenderAllTags(),this.checkPanelTag())}destroyTagById(e){(Array.isArray(e)?e:[e]).forEach(n=>{const r=this.tags.findIndex(a=>a.id===n);r!==-1&&this.tags.splice(r,1)}),this.updateRenderAllTags()}pauseCurrentMedia(){this.mediaStore.set({currentMediaUrl:""})}setVisibleAndUnfolded(){return G(this,arguments,function*({withAnimation:e}={withAnimation:!1}){return this.setVisibleByPanoIndex(),e?new Promise((o,n)=>{setTimeout(()=>{this.setUnfoldedByPanoIndex(),o()},10)}):(this.setUnfoldedByPanoIndex(),Promise.resolve())})}handleShow(){this.state.visible=!0,this.updateTagContainerVisible()}handleHide(){this.state.visible=!1,this.updateTagContainerVisible()}handleEnable(){this.state.enabled=!0,this.store.eventListenerDisposer=this.addEventListener(),this.updateRenderAllTags()}handleDisable(){var e,o,n;this.state.enabled=!1,(o=(e=this.store).eventListenerDisposer)==null||o.call(e),(n=this.TagContainerSvelte)==null||n.$set({tags:[]}),this.filter3DTag().forEach(r=>{var a;(a=r.tag3DContentSvelte)==null||a.svelteApp.$destroy(),r.tag3DContentSvelte=void 0})}addEventListener(){const{five:e,hooks:o}=this,n=this.handleFiveWantsMoveToPano.bind(this),r=this.handleFiveModeChange.bind(this),a=this.handleFiveCameraUpdate.bind(this),l=this.handleFiveCameraUpdateDebounce(),c=this.handleFivePanoArrived.bind(this),d=this.clickhandler.bind(this);return e.on("wantsMoveToPano",n),e.on("modeChange",r),e.on("cameraUpdate",a),e.on("cameraUpdate",l),e.on("panoArrived",c),o.on("click",d),()=>{e.off("wantsMoveToPano",n),e.off("modeChange",r),e.off("cameraUpdate",a),e.off("cameraUpdate",l),e.off("panoArrived",c),o.off("click",d),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(),o=()=>{!this.state.enabled||(this.show(),this.updateRenderAllTags())},n=()=>{!this.state.enabled||this.hide()},{observe:r,unobserve:a}=Yi(sh(()=>{!this.store.resizeObserverDisposer||n()},500),e),{observe:l,unobserve:c}=Yi(Xi(()=>o(),400),e);return r(),l(),()=>{a(),c()}}handleFiveModeChange(e){e==="Panorama"?this.five.once("panoArrived",()=>this.temporaryShow()):this.temporaryHide()}handleFiveWantsMoveToPano(){this.tags.forEach(e=>{const o=this.getTagConfig(e);typeof o.visibleConfig=="object"&&o.visibleConfig.keep?e.temporaryState=q(B({},e.temporaryState),{visible:o.visibleConfig.keep==="visible"}):typeof o.visibleConfig=="object"&&o.visibleConfig.alwaysShowWhenMovePano?e.temporaryState=q(B({},e.temporaryState),{visible:!0}):e.temporaryState=q(B({},e.temporaryState),{visible:!1})}),this.updateRenderAllTags()}temporaryShow(){this.temporaryState.visible=!0}temporaryHide(){this.temporaryState.visible=!1}clickhandler(e){if(e.target!=="TagPoint")return;if(!e.tag.state)return console.warn("Clickhandler: params.tag.state is undefined");const o=this.canBe("fold",e.tag),n=this.canBe("unfold",e.tag);o&&n&&(e.tag.state.unfolded=!e.tag.state.unfolded,e.tag.state.unfolded&&this.tags.forEach(r=>{r.id!==e.tag.id&&r.state&&this.canBe("fold",r)&&(r.state.unfolded=!1)}),this.updateRenderAllTags())}updateRenderAllTags(){this.updateRenderPointTag(),this.updateRenderPlaneTag()}updateTagContainerVisible(){var e;(e=this.TagContainerSvelte)==null||e.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation}),this.filter3DTag().forEach(o=>{var n;(n=o.tag3DContentSvelte)==null||n.svelteApp.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation})})}handleFiveCameraUpdateDebounce(){return Xi(()=>{this.setUnfoldedByCamera(),this.updateRenderAllTags()},100)}handleFiveCameraUpdate(){this.updateRenderPointTag()}handleFivePanoArrived(){return G(this,null,function*(){yield this.setVisibleAndUnfolded(),this.tags.forEach(e=>{e.temporaryState=q(B({},e.temporaryState),{visible:!0})}),this.updateRenderAllTags()})}setUnfoldedByCamera(){let e=!1;this.tags.forEach(o=>{const n=this.getUnfoldedByCamera(o);!o.state||n!==void 0&&(n===!0&&(e=!0),o.state.unfolded=n)}),e&&this.tags.forEach(o=>{const n=this.getTagConfig(o).unfoldedConfig;typeof n=="object"&&(n.autoUnfold||n.disableFold||n.keep)||o.state&&(o.state.unfolded=!1)})}updateRenderPointTag(){var o;const e=this.filterPointTag();if(this.setPointTagPosition(),this.TagContainerSvelte)this.TagContainerSvelte.$set({tags:e,state:this.state,temporaryState:this.temporaryState});else{const n=(o=this.five.getElement())==null?void 0:o.parentElement;if(!n)return console.error("updateRenderPlaneTag: tag2DContainer not found");this.TagContainerSvelte=new Am({target:n,props:{hooks:this.hooks,tags:e,state:this.state,temporaryState:this.temporaryState,mediaStore:this.mediaStore}})}}updateRenderPlaneTag(){[...this.filterPlaneTag(),...this.filter3DPointTag()].forEach(o=>{var n;if(o.tag3DContentSvelte){const{svelteApp:r,domContainer:a,initialNormal:l,currentNormal:c}=o.tag3DContentSvelte;if(r.$set({tag:o,hooks:this.hooks,state:this.state,temporaryState:this.temporaryState}),!l.equals(c)){const d=new M.Quaternion().setFromUnitVectors(l,c);a.css3DObject.setRotationFromQuaternion(d)}}else{if(((n=o.state)==null?void 0:n.visible)===!1)return;if(this.css3DRenderPlugin||(this.css3DRenderPlugin=et(this.five)),o.pointType===Ae.PointTag&&!o.normal)return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");const r=o.pointType===Ae.PlaneTag?o.position:oh(this.five.camera.position,Se(o.position),Se(o.normal)),a=o.pointType===Ae.PlaneTag?Wi(o.position):Se(o.normal),l=this.getTagConfig(o).tag3DConfig,c=this.css3DRenderPlugin.create3DDomContainer(r,l);if(!c)return;this.store.css3DRenderDisposer.set(o.id,c.dispose),o.tag3DContentSvelte={svelteApp:new Yn({target:c.container,props:{tag:o,hooks:this.hooks,state:this.state,mediaStore:this.mediaStore,temporaryState:this.temporaryState}}),domContainer:c,initialNormal:a,currentNormal:a}}}),this.checkPanelTag()}disposeAllCSS3DContainer(){for(const[e,o]of this.store.css3DRenderDisposer)o==null||o();this.store.css3DRenderDisposer=new Map}checkPanelTag(){this.tags.forEach(e=>{var o;e.dimensionType===ye.Two&&e.pointType===Ae.PointTag&&((o=e.tag3DContentSvelte)==null||o.domContainer.dispose(),e.tag3DContentSvelte=void 0)});for(const[e,o]of this.store.css3DRenderDisposer){const n=this.getTagById(e);(!n||n.dimensionType!==ye.Three)&&(o==null||o(),this.store.css3DRenderDisposer.delete(e))}}}const Pm=(i,t)=>new tr(i,t);class Lo extends M.Object3D{constructor(e,o){var n;super();m(this,"originObject3D");m(this,"onRender");this.originObject3D=e,this.onRender=(n=o==null?void 0:o.onRender)!=null?n:()=>{}}get helperObject(){return this}render(){this.onRender()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}updatePosition(){this.position.copy(this.originObject3D.position)}updateQuaternion(){this.quaternion.copy(this.originObject3D.quaternion)}applyHelperScaleMatrix4(e,o){this.scale.applyMatrix4(e)}applyHelperQuaternion(e,o){this.applyQuaternion(e)}}class Im extends Lo{}class Em extends Lo{}class km extends Lo{}class xm extends km{}class Dm extends I.Group{constructor(e){super();m(this,"direction");this.direction=e||"x"}}class or extends I.Mesh{constructor(e,o,n){super(e,o);m(this,"direction");this.direction=n||"x"}}function Sm(i,t){const{offsetWidth:e,offsetHeight:o}=t,{top:n,left:r}=t.getBoundingClientRect();return Object.assign(new I.Vector2,{x:(i.x-r)/e*2-1,y:-(i.y-n)/o*2+1})}function _o(i,t,e){if(!t||!e||!i)return;const o=Sm(t,e);if(Math.abs(o.x)===1||Math.abs(o.y)===1)return;const n=new I.Raycaster;return n.setFromCamera(o,i),n}function Lm(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 zo extends Dm{constructor(e){var u;super(e.direction);m(this,"line");m(this,"arrow");m(this,"lineHeight",.4);m(this,"arrowHeight",.1);this.name="ArrowGroup";const o=new I.Color((u=e.color)!=null?u:16214315),n=new I.MeshBasicMaterial({color:o,depthTest:!1,opacity:1,transparent:!0,side:I.DoubleSide}),r=new I.ConeGeometry(.04,.1,32),a=new or(r,n.clone(),e.direction);a.name=`arrow-${e.direction}`,this.arrow=a;const l=.004,c=new I.CylinderGeometry(l,l,.4,32),d=new or(c,n.clone(),e.direction);d.name=`line-${e.direction}`,this.line=d,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 Mo={X:15618642,Y:4765519,Z:4227839};class Le{static get X(){return new I.Color(Mo.X).convertSRGBToLinear().clone()}static get Y(){return new I.Color(Mo.Y).convertSRGBToLinear().clone()}static get Z(){return new I.Color(Mo.Z).convertSRGBToLinear().clone()}}class _m extends Im{constructor(e){super(e);m(this,"xArrow",new zo({direction:"x",color:Le.X}));m(this,"yArrow",new zo({direction:"y",color:Le.Y}));m(this,"zArrow",new zo({direction:"z",color:Le.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 Je(i,t){return zm(document.createElement(t!=null?t:"div"),i)}function zm(i,t){if(!t)return i;for(const e in t)e&&t[e]&&(i.style[e]=t[e]);return i}function Mm(i){const t=Je(B({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:(r,a)=>{t.style.left=r,t.style.top=a,e()}}}class jm extends Em{constructor(e,o){var n;super(e);m(this,"yzCircle",new jo({direction:"x",color:Le.X}));m(this,"xzCircle",new jo({direction:"y",color:Le.Y}));m(this,"xyCircle",new jo({direction:"z",color:Le.Z}));m(this,"xRingHelper",new Bo({direction:"x"}));m(this,"yRingHelper",new Bo({direction:"y"}));m(this,"zRingHelper",new Bo({direction:"z"}));m(this,"xAngleHelper",new To({direction:"x",color:Le.X}));m(this,"yAngleHelper",new To({direction:"y",color:Le.Y}));m(this,"zAngleHelper",new To({direction:"z",color:Le.Z}));m(this,"angleTips");m(this,"container");o&&(this.container=o==null?void 0:o.container,this.angleTips=Mm({display:"none"}),(n=this.container)==null||n.appendChild(this.angleTips.element)),this.show()}updateAngleHelperQuaternion(){this.xAngleHelper.quaternion.copy(this.yzCircle.quaternion),this.yAngleHelper.quaternion.copy(this.xzCircle.quaternion),this.zAngleHelper.quaternion.copy(this.xyCircle.quaternion),this.xRingHelper.quaternion.copy(this.yzCircle.quaternion),this.yRingHelper.quaternion.copy(this.xzCircle.quaternion),this.zRingHelper.quaternion.copy(this.xyCircle.quaternion)}applyHelperQuaternion(e,o){this.yzCircle.applyQuaternion(e),this.xzCircle.applyQuaternion(e),this.xyCircle.applyQuaternion(e),this.xAngleHelper.baseAxes.applyQuaternion(e),this.yAngleHelper.baseAxes.applyQuaternion(e),this.zAngleHelper.baseAxes.applyQuaternion(e)}hide(){this.remove(this.yzCircle,this.xzCircle,this.xyCircle,this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper)}show(){var e;this.add(this.xyCircle,this.xzCircle,this.yzCircle),this.remove(this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper),(e=this.angleTips)==null||e.hide()}showDraggingHelper(e){var o;this.hide(),this.add(...this.filterRingHelper(e)),this.add(...this.filterAngleHelper(e)),(o=this.angleTips)==null||o.show()}dispose(){var e,o;this.remove(this.yzCircle,this.xzCircle,this.xyCircle,this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper),(e=this.angleTips)!=null&&e.element&&((o=this.container)==null||o.removeChild(this.angleTips.element))}filterRingHelper(e){return[this.xRingHelper,this.yRingHelper,this.zRingHelper].filter(o=>e.includes(o.direction))}filterAngleHelper(e){return[this.xAngleHelper,this.yAngleHelper,this.zAngleHelper].filter(o=>e.includes(o.direction))}}class jo extends I.Mesh{constructor(e){var o;super();m(this,"direction");m(this,"gapAngle",.02);m(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:(o=e.color)!=null?o:16777215,transparent:!0,side:I.DoubleSide,depthTest:!1}),this.direction=e.direction,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`,this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}class Bo extends I.Group{constructor(e){super();m(this,"direction");this.direction=e.direction;const o=.015,n=new Array(8).fill(null).map((r,a)=>{const l=new I.RingGeometry(.25,.3,20,8,Math.PI/4*a+o,Math.PI/4-o*2),c=new I.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,transparent:!0,side:I.DoubleSide}),d=new I.Mesh(l,c);return d.name=`AxesDashedRing-${this.direction}-${a}`,d});this.add(...n),this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}class To extends I.Mesh{constructor(e){var n;super();m(this,"direction");m(this,"baseAxes");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 o=.3+5e-4;this.geometry=new I.CircleGeometry(o,48,0,1e-4),this.material=new I.MeshBasicMaterial({opacity:.4,color:(n=e.color)!=null?n:16777215,depthTest:!1,transparent:!0,side:I.DoubleSide}),this.direction=e.direction,this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}function Bm(){const i=Je({width:"100%",height:"100%",left:"0",top:"0",position:"absolute",pointerEvents:"none"}),t=Je({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}),e=Je({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 o="-4px",n={direction:"nesw",element:Qe({cursor:"nesw-resize",left:o,bottom:o})},r={direction:"ns",element:Qe({cursor:"ns-resize",bottom:o})},a={direction:"nwse",element:Qe({cursor:"nwse-resize",right:o,bottom:o})},l={direction:"ew",element:Qe({cursor:"ew-resize",right:o})},c={direction:"nesw",element:Qe({cursor:"nesw-resize",right:o,top:o})},d={direction:"ns",element:Qe({cursor:"ns-resize",top:o})},u={direction:"nwse",element:Qe({cursor:"nwse-resize",left:o,top:o})},f={direction:"ew",element:Qe({cursor:"ew-resize",left:o})};return new Array(r,l,d,f,n,a,c,u).forEach(p=>t.appendChild(p.element)),{container:i,squares:[n,r,a,l,c,d,u,f]}}function Qe(i){const t=Je(B({background:"#FFFFFF",width:"9px",height:"9px",position:"absolute",pointerEvents:"none"},i)),e=Je({width:"15px",height:"15px",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"}),o=Je({width:"15px",height:"15px",cursor:i==null?void 0:i.cursor,pointerEvents:"auto",background:"transparent"});return o.draggable=!0,e.appendChild(o),t.appendChild(e),t}class Tm extends xm{constructor(e,o,n,r){super(e);m(this,"points",[]);m(this,"cornerPositions",[]);m(this,"css3DInstance");m(this,"plane");m(this,"css3DRenderer",new ss);m(this,"camera");m(this,"scene");m(this,"container");m(this,"enabled",!1);this.camera=n,this.scene=r,this.container=o,this.initRectangleScaleHelper()}get helperObject(){var e;if(!((e=this.css3DInstance)!=null&&e.css3DObject))throw new Error("css3DInstance is not initialized");return this.css3DInstance.css3DObject}updatePosition(){var e;this.helperObject.position.copy(this.originObject3D.position),(e=this.plane)==null||e.position.copy(this.originObject3D.position)}updateQuaternion(){var e;(e=this.plane)==null||e.quaternion.copy(this.originObject3D.quaternion)}applyMatrix4(e){var o;super.applyMatrix4(e),this.helperObject.applyMatrix4(e),(o=this.plane)==null||o.applyMatrix4(e),this.cornerPositions.forEach(n=>n.applyMatrix4(e))}showDraggingHelper(){}applyHelperScaleMatrix4(e,o){var n;(n=this.plane)==null||n.scale.applyMatrix4(e),this.helperObject.applyScaleMatrix4(e)}updatePoints(){const e=this.calculatePointPosition(this.cornerPositions);this.points.forEach((o,n)=>{o.position.copy(e[n])})}applyHelperQuaternion(e,o){var r;const n=(r=this.css3DInstance)==null?void 0:r.css3DObject;if(n){const a=new I.Vector3().subVectors(n.position,o).applyQuaternion(e).add(o);n.position.copy(a),n.applyQuaternion(e)}if(this.plane){const a=new I.Vector3().subVectors(this.plane.position,o).applyQuaternion(e).add(o);this.plane.position.copy(a),this.plane.applyQuaternion(e)}this.cornerPositions.forEach(a=>{const l=new I.Vector3().subVectors(a,o).applyQuaternion(e).add(o);a.copy(l)})}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 u;const e=this.getCornerPositions();if(!e)return;this.cornerPositions=e;const o=this.css3DRenderer.create3DElement(this.camera,e,{ratio:.003});if(!o)return;this.css3DInstance=o,o.appendToElement(this.container);const n=o.css3DObject.container,{container:r,squares:a}=Bm();this.points=a.map((f,h)=>({direction:f.direction,point:f.element,position:this.calculatePointPosition(e)[h]})),n.insertBefore(r,(u=n.children[0])!=null?u:null);const l=new I.PlaneGeometry(o.css3DObject.width,o.css3DObject.height),c=new I.MeshBasicMaterial({color:0,opacity:.15,transparent:!0,side:I.DoubleSide}),d=new I.Mesh(l,c);this.scene.add(d),this.updatePosition()}getCornerPositions(){const{originObject3D:e}=this;if(e instanceof Fe.CSS3DObject){if(e.isCSS3DObjectPlus)return e.cornerPoints;console.error("\u6682\u65F6\u53EA\u652F\u6301 CSS3DRenderPlugin \u751F\u6210\u7684\u7269\u4F53")}else 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)]}}new I.Vector3;function $(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)}$.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)},$.eventNames=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu","touchstart","touchend"],$.prototype._getRelativeMouseXY=function(i){var t=i.target||i.srcElement;t.nodeType===3&&(t=t.parentNode);var e={x:0,y:0},o=t,n=getComputedStyle(o,null);e.y+=parseInt(n.getPropertyValue("padding-top"),10),e.x+=parseInt(n.getPropertyValue("padding-left"),10);do e.x+=o.offsetLeft,e.y+=o.offsetTop,n=getComputedStyle(o,null),e.x+=parseInt(n.getPropertyValue("border-left-width"),10),e.y+=parseInt(n.getPropertyValue("border-top-width"),10);while(o=o.offsetParent);var r={width:t===window?window.innerWidth:t.offsetWidth,height:t===window?window.innerHeight:t.offsetHeight};return{x:Number((i.pageX-e.x)/r.width)*2-1,y:-((i.pageY-e.y)/r.height)*2+1}},$.prototype._objectCtxInit=function(i){i._3xDomEvent={}},$.prototype._objectCtxDeinit=function(i){delete i._3xDomEvent},$.prototype._objectCtxIsInit=function(i){return!!i._3xDomEvent},$.prototype._objectCtxGet=function(i){return i._3xDomEvent},$.prototype.camera=function(i){return i&&(this._camera=i),this._camera},$.prototype.bind=function(i,t,e,o){console.assert($.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var n=this._objectCtxGet(i);n[t+"Handlers"]||(n[t+"Handlers"]=[]),n[t+"Handlers"].push({callback:e,useCapture:o}),this._boundObjs[t]===void 0&&(this._boundObjs[t]=[]),this._boundObjs[t].push(i)},$.prototype.addEventListener=$.prototype.bind,$.prototype.unbind=function(i,t,e,o){console.assert($.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var n=this._objectCtxGet(i);n[t+"Handlers"]||(n[t+"Handlers"]=[]);for(var r=n[t+"Handlers"],a=0;a<r.length;a++){var l=r[a];if(e==l.callback&&o==l.useCapture){r.splice(a,1);break}}var c=this._boundObjs[t].indexOf(i);console.assert(c!==-1),this._boundObjs[t].splice(c,1)},$.prototype.removeEventListener=$.prototype.unbind,$.prototype._bound=function(i,t){var e=this._objectCtxGet(t);return e?!!e[i+"Handlers"]:!1},$.prototype._onMove=function(i,t,e,o){var n=this._boundObjs[i];if(!(n===void 0||n.length===0)){var r=new I.Vector2;r.set(t,e),this._raycaster.setFromCamera(r,this._camera);var a=this._raycaster.intersectObjects(n),l=this._selected;if(a.length>0){var c,d,u,f=a[0],h=f.object;this._selected=h,u=this._bound("mousemove",h),l!=h&&(c=this._bound("mouseover",h),d=l&&this._bound("mouseout",l))}else d=l&&this._bound("mouseout",l),this._selected=null;u&&this._notify("mousemove",h,o,f),c&&this._notify("mouseover",h,o,f),d&&this._notify("mouseout",l,o,f)}},$.prototype._onEvent=function(i,t,e,o){var n=this._boundObjs[i];if(!(n===void 0||n.length===0)){var r=new I.Vector2;r.set(t,e),this._raycaster.setFromCamera(r,this._camera);var a=this._raycaster.intersectObjects(n,!0);if(a.length!==0){for(var l=a[0],c=l.object,d=this._objectCtxGet(c),u=c.parent;typeof d=="undefined"&&u;)d=this._objectCtxGet(u),u=u.parent;!d||this._notify(i,c,o,l)}}},$.prototype._notify=function(i,t,e,o){var n=this._objectCtxGet(t),r=n?n[i+"Handlers"]:null;if(console.assert(arguments.length===4),!n||!r||r.length===0){t.parent&&this._notify(i,t.parent,e,o);return}for(var r=n[i+"Handlers"],a=0;a<r.length;a++){var l=r[a],c=!0;l.callback({type:i,target:t,origDomEvent:e,intersect:o,stopPropagation:function(){c=!1}}),!!c&&l.useCapture===!1&&t.parent&&this._notify(i,t.parent,e,o)}},$.prototype._onMouseDown=function(i){return this._onMouseEvent("mousedown",i)},$.prototype._onMouseUp=function(i){return this._onMouseEvent("mouseup",i)},$.prototype._onMouseEvent=function(i,t){var e=this._getRelativeMouseXY(t);this._onEvent(i,e.x,e.y,t)},$.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)},$.prototype._onClick=function(i){this._onMouseEvent("click",i)},$.prototype._onDblClick=function(i){this._onMouseEvent("dblclick",i)},$.prototype._onContextmenu=function(i){this._onMouseEvent("contextmenu",i)},$.prototype._onTouchStart=function(i){return this._onTouchEvent("touchstart",i)},$.prototype._onTouchEnd=function(i){return this._onTouchEvent("touchend",i)},$.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)}},$.prototype._onTouchEvent=function(i,t){if(t.touches.length==1){t.preventDefault();var e=Number(t.touches[0].pageX/window.innerWidth)*2-1,o=-(t.touches[0].pageY/window.innerHeight)*2+1;this._onEvent(i,e,o,t)}};let Ze=null;class Qo{constructor(t,e,o,n,r,a,l){m(this,"hooks",new ut);m(this,"helperObject3D");m(this,"originObject3D");m(this,"camera");m(this,"model");m(this,"scene");m(this,"container");m(this,"domEvents");m(this,"isDragging",!1);m(this,"onRender");m(this,"enabled",!1);m(this,"onWantsTapGesture",t=>{if(this.getIntersectObject(t))return!1});this.camera=t,this.model=e,this.originObject3D=o,this.helperObject3D=n,this.container=r,this.scene=a,this.domEvents=new $(t,r),this.onRender=l!=null?l:()=>{},this.initialHelperPosition(),this.initialHelperQuaternion(),this.enable()}initialHelperPosition(){this.helperObject3D.updatePosition()}initialHelperQuaternion(){this.helperObject3D.updateQuaternion()}enable(){this.enabled||(this.enabled=!0,this.scene.add(this.helperObject3D),this.render())}disable(){!this.enabled||(this.enabled=!1,this.scene.remove(this.helperObject3D),this.render())}show(){this.helperObject3D.show(),this.render()}hide(){this.helperObject3D.hide(),this.render()}dispose(){this.helperObject3D.dispose(),this.scene.remove(this.helperObject3D),this.render()}setOpacity(t){this.setOriginOpacityProperty();const e=this.originObject3D;if(e instanceof I.Mesh&&(e.material.opacity=t),e.isCSS3DObjectPlus){const o=e;o.container.style.opacity=t.toString()}this.render()}restoreOpacity(){if(Ze===null)return;const t=this.originObject3D;if(t instanceof I.Mesh&&(t.material.opacity=Ze.opacity),t.isCSS3DObjectPlus){const e=t;e.container.style.opacity=Ze.opacity.toString()}this.render()}setOriginOpacityProperty(){var t,e;if(Ze===null){const o=this.originObject3D;o instanceof I.Mesh&&(Ze={opacity:o.material.opacity}),o instanceof es&&(Ze={opacity:(t=o.container.style.opacity)!=null?t:1}),o.isCSS3DObjectPlus&&(Ze={opacity:Number((e=o.container.style.opacity)!=null?e:1)})}}updateHelperPosition(){this.helperObject3D.updatePosition()}updateHelperQuaternion(){this.helperObject3D.updateQuaternion()}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,o){if(this.isDragging)return!1}render(){this.onRender()}hoverListener(t,e=16777215,o=1){const n=(Array.isArray(t)?t:[t]).filter(Ue),r=[];for(const a of n)if(a instanceof I.Mesh||a instanceof I.Group){const l=a instanceof I.Group?a.children.filter(h=>h instanceof I.Mesh):[a];l.forEach(h=>{h.__originalColor__=h.material.color.clone(),h.__originalOpacity__=h.material.opacity});const c=()=>{l.forEach(h=>{h.material.color.set(e),h.material.opacity=o}),this.render()},d=()=>{l.forEach(h=>{h.material.color.copy(h.__originalColor__),h.material.opacity=h.__originalOpacity__}),this.render()},u=()=>{this.isDragging||c()},f=()=>{this.isDragging||d()};for(const h of l)this.domEvents.addEventListener(h,"mouseover",u),this.domEvents.addEventListener(h,"mouseout",f),this.hooks.on("moveStart",c),this.hooks.on("moveEnd",d),this.hooks.on("rotateEnd",d),r.push(()=>{this.domEvents.removeEventListener(h,"mouseover",u),this.domEvents.removeEventListener(h,"mouseout",f),this.hooks.off("moveStart",c),this.hooks.off("moveEnd",d),this.hooks.off("rotateEnd",d)})}return()=>r.forEach(a=>a==null?void 0:a())}getIntersectObject(t){const e=this.camera.position,o=this.helperObject3D;if(!o)return;let n;const r=t.intersectObject(o,!0)[0];if(!!r&&(n=r,n.object=o,!!n)){if(this.model.intersectRaycaster){const a=this.model.intersectRaycaster(t)[0];if(a&&a.point.distanceTo(e)<n.point.distanceTo(e))return}return n.object}}}class Qm extends Qo{constructor(...e){super(...e);m(this,"startInfo");const o=this.helperObject3D;this.hoverListener([o.xArrow,o.yArrow,o.zArrow]);const n=this.dragStart.bind(this),r=this.dragging.bind(this),a=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",n),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)}dragStart(e){if(this.isDragging)return;const o=e==null?void 0:e.intersect;if(!o)return this.dragEnd();const n=(o==null?void 0:o.object).direction;if(!n)return this.dragEnd();const r=new I.Vector3(1,0,0).applyQuaternion(this.helperObject3D.quaternion),a=new I.Vector3(0,1,0).applyQuaternion(this.helperObject3D.quaternion),l=new I.Vector3(0,0,1).applyQuaternion(this.helperObject3D.quaternion),c=(()=>{switch(n){case"x":return r;case"y":return a;case"z":return l}})(),d=(()=>{switch(n){case"x":case"y":return l;case"z":return r}})(),u=o.point.clone(),f=new I.Plane;f.setFromNormalAndCoplanarPoint(d,u),this.startInfo={startVectorProject:u.clone().projectOnVector(c),directionVector:c,plane:f},this.helperObject3D.showDraggingHelper([n]),this.hooks.emit("moveStart"),this.isDragging=!0,console.log("%c MoveController dragStart","color: #e5af2e")}dragging(e){if(!this.isDragging||!this.startInfo)return;const o=_o(this.camera,e,this.container);return o?(console.log("%c RotateController dragging","color: #49de1b"),this.move(o),!1):this.dragEnd()}move(e){if(!this.startInfo)return this.dragEnd();const{plane:o,directionVector:n,startVectorProject:r}=this.startInfo,a=this.originObject3D,l=e.ray.intersectPlane(o,new I.Vector3);if(!l)return;const c=l.clone().projectOnVector(n),d=c.clone().sub(r),u=new I.Matrix4;u.setPosition(d),a.applyMatrix4(u),this.helperObject3D.applyMatrix4(u),r.copy(c),this.hooks.emit("positionUpdate",{matrix4:u})}dragEnd(){!this.isDragging||(console.log("%c MoveController dragEnd","color: #e94e4e"),this.startInfo=void 0,this.isDragging=!1,this.helperObject3D.show(),this.hooks.emit("moveEnd"))}}class Oo{constructor(t,e,o,n){m(this,"helperController");m(this,"five");m(this,"onFiveWantsTapGesture",t=>{if(!this.helperController)return;const e=this.helperController.onWantsTapGesture(t);return this.five.needsRender=!0,e});m(this,"onFiveWantsGesture",(...t)=>{if(!this.helperController)return;const e=this.helperController.onWantsGesture(...t);return this.five.needsRender=!0,e});const{camera:r,model:a,scene:l}=t,c=t.getElement();if(this.five=t,!r||!a||!c||!l)return;const d=()=>{t.needsRender=!0};this.helperController=new e(r,a,o,n,c,l,d),t.on("wantsTapGesture",this.onFiveWantsTapGesture),t.on("wantsGesture",this.onFiveWantsGesture)}}const Ro="Object3DHelper@v1.0.1",Om=()=>{console.error(`${Ro} is disposed`)},Rm=()=>{console.warn(`${Ro} is disabled`)},Fm=()=>{console.error(`${Ro} is disabled`)};class Hm{constructor(t,e){m(this,"controllers",{});m(this,"state",{visible:!0,enabled:!0,disposed:!1});m(this,"hooks",new ut);m(this,"helpers");m(this,"eventListener",{});m(this,"handlePositionUpdate",(t,...e)=>{var r,a,l,c;const[o]=e,n=o==null?void 0:o.matrix4;n&&(t!==this.controllers.moveController&&((r=this.controllers.moveController)==null||r.applyHelperMatrix4(n)),t!==this.controllers.rotateController&&((a=this.controllers.rotateController)==null||a.applyHelperMatrix4(n)),t!==this.controllers.scaleController&&((l=this.controllers.scaleController)==null||l.applyHelperMatrix4(n)),(c=this.helpers.outlineHelper)==null||c.applyMatrix4(n))});m(this,"handleScaleUpdate",(t,...e)=>{var r,a;const[o]=e,n=o==null?void 0:o.matrix4;n&&((r=this.controllers.scaleController)==null||r.applyHelperScaleMatrix4(n,o),(a=this.helpers.outlineHelper)==null||a.scale.applyMatrix4(n))});m(this,"handleRotateUpdate",(t,...e)=>{var n,r,a,l;const[o]=e;if(o){const{quaternion:c,origin:d}=o;c&&(t!==this.controllers.moveController&&((n=this.controllers.moveController)==null||n.applyHelperQuaternion(c,d)),t!==this.controllers.rotateController&&((r=this.controllers.rotateController)==null||r.applyHelperQuaternion(c,d)),t!==this.controllers.scaleController&&((a=this.controllers.scaleController)==null||a.applyHelperQuaternion(c,d)),(l=this.helpers.outlineHelper)==null||l.applyQuaternion(c))}});t&&this.addControllers(t),this.helpers=e!=null?e:{},this.setState(this.state)}show(t){return G(this,null,function*(){this.setState({visible:!0},t)})}hide(t){return G(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 Om();if(!this.state.enabled&&t.enabled!==!0&&t.disposed!==!0)return Fm();const o=B({},this.state);this.state=B(B({},this.state),t),t.disposed!==void 0&&t.disposed!==o.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:o})}addControllers(t){this.controllers=B(B({},this.controllers),t),this.addEventListener(),this.setState(this.state)}addHelpers(t){this.helpers=B(B({},this.helpers),t)}getCurrentState(){return this.state}addEventListener(){for(const t in this.controllers){if(!t)continue;const e=t;this.eventListener[e]||(this.eventListener[e]=(()=>{const o=this.controllers[e];if(!o)return;const n=()=>this.handleStart(o),r=()=>this.handleEnd(o),a=(...d)=>this.handlePositionUpdate(o,...d),l=(...d)=>this.handleRotateUpdate(o,...d),c=(...d)=>this.handleScaleUpdate(o,...d);return o.hooks.on("moveStart",n),o.hooks.on("rotateStart",n),o.hooks.on("scaleStart",n),o.hooks.on("positionUpdate",a),o.hooks.on("rotateUpdate",l),o.hooks.on("scaleUpdate",c),o.hooks.on("moveEnd",r),o.hooks.on("rotateEnd",r),o.hooks.on("scaleEnd",r),()=>{o.hooks.off("moveStart",n),o.hooks.off("rotateStart",n),o.hooks.off("scaleStart",n),o.hooks.off("positionUpdate",a),o.hooks.off("rotateUpdate",l),o.hooks.off("scaleUpdate",c),o.hooks.off("moveEnd",r),o.hooks.off("rotateEnd",r),o.hooks.off("scaleEnd",r)}})())}}handleEnd(t){t&&this.setOtherHelpersVisible(!0,t)}handleStart(t){t&&this.setOtherHelpersVisible(!1,t)}setOtherHelpersVisible(t,e){var o,n,r,a;t?((r=this.controllers.moveController)==null||r.helperObject3D.show(),(a=this.controllers.rotateController)==null||a.helperObject3D.show()):(e!==this.controllers.moveController&&((o=this.controllers.moveController)==null||o.helperObject3D.hide()),e!==this.controllers.rotateController&&((n=this.controllers.rotateController)==null||n.helperObject3D.hide()))}handleEnable(t,e=!0){t?(this.everyControllerDo(o=>{o.enable()}),this.hooks.emit("enable",{userAction:e})):(this.everyControllerDo(o=>{o.disable(),o.restoreOpacity()}),this.hooks.emit("disable",{userAction:e})),this.state.enabled=t}handleVisible(t,e=!0){t?(this.everyControllerDo(o=>{o.show()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:e}))):(this.everyControllerDo(o=>{o.hide(),o.restoreOpacity()}),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(o=>{o==null||o.dispose(),o==null||o.restoreOpacity()});for(const o in this.controllers){if(!o)continue;const n=o;(e=(t=this.eventListener)[n])==null||e.call(t)}}actionIfStateIsEnabled(t,e){if(this.state.enabled)return t();e!=null&&e.warnLog&&Rm()}}class Gm extends Qo{constructor(...e){super(...e);m(this,"startInfo");m(this,"lastRotation");m(this,"rotations",[]);m(this,"helperObject3DQuaternion",this.originObject3D.quaternion.clone());const o=this.helperObject3D;this.hoverListener([o.xyCircle,o.xzCircle,o.yzCircle]);const n=this.dragStart.bind(this),r=this.dragging.bind(this),a=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",n),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)}initialHelperQuaternion(){this.helperObject3D.updateAngleHelperQuaternion(),this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion)}dragStart(e){if(this.isDragging)return;const o=e==null?void 0:e.intersect;if(!o)return this.dragEnd();const n=(o==null?void 0:o.object).direction;if(!n)return this.dragEnd();this.helperObject3D.updateAngleHelperQuaternion();const r=o.point,a=this.originObject3D.position.clone(),l=this.getAngleHelper(n);this.setTipsAngle(0);const c=r.clone();c.y+=.2,this.setTipsPosition(c);const d=new I.Vector3(1,0,0).applyQuaternion(this.helperObject3DQuaternion),u=new I.Vector3(0,1,0).applyQuaternion(this.helperObject3DQuaternion),f=new I.Vector3(0,0,1).applyQuaternion(this.helperObject3DQuaternion),h=(()=>{switch(n){case"x":return d;case"y":return u;case"z":return f}})(),p=new I.Plane().setFromNormalAndCoplanarPoint(h,r),g=new I.Vector3;p.projectPoint(r.clone(),g);const A=g.clone().sub(a),b=A.clone(),v=A.angleTo(l.baseAxes);this.setAngleHelperStart(n,v),this.setAngleHelperLength(n,0),this.rotations.push({vector:A.clone(),direction:!0}),this.startInfo={direction:n,startVector:A,staticStartVector:b,plane:p,angleHelper:l},this.helperObject3D.showDraggingHelper([n]),this.hooks.emit("rotateStart"),this.isDragging=!0,console.log(`%c RotateController dragStart ${n}`,"color: #e5af2e")}dragging(e){var n;if(!this.isDragging)return;const o=_o(this.camera,e,this.container);return o?(console.log(`%c RotateController dragging ${(n=this.startInfo)==null?void 0:n.direction}`,"color: #49de1b"),this.rotate(o),!1):this.dragEnd()}rotate(e){if(!this.startInfo)return this.dragEnd();const{startVector:o,plane:n,angleHelper:r,staticStartVector:a,direction:l}=this.startInfo,c=this.originObject3D,d=e.ray.intersectPlane(n,new I.Vector3);if(!d)return;const u=c.position.clone(),f=new I.Vector3;n.projectPoint(d.clone(),f);const h=f.clone().sub(u);if(o.angleTo(h)===0||(this.lastRotation===void 0&&(this.lastRotation={angle:0}),this.rotations.length===0))return;const p=(()=>{if(this.rotations.length===1)return h.angleTo(r.baseAxes)>a.angleTo(r.baseAxes);{const A=this.rotations[this.rotations.length-1],b=this.rotations[this.rotations.length-2],v=h.angleTo(b.vector),w=h.angleTo(A.vector),y=A.vector.angleTo(b.vector);if(y===0||w===0||v===0)return;if(v>w&&v>y)return A.direction;if(v<y&&w<y||v<w&&w>y)return!A.direction}})();if(p===void 0)return console.warn("rotationDirection is undefined");this.rotations.push({vector:h,direction:p}),this.rotations=this.rotations.slice(-2),this.lastRotation.angle=this.lastRotation.angle+h.angleTo(o)*(p?1:-1),this.setAngleHelperLength(l,this.lastRotation.angle),this.setTipsAngle(this.lastRotation.angle/Math.PI*180);const g=new I.Quaternion().setFromUnitVectors(o.clone().normalize(),h.clone().normalize());c.applyQuaternion(g),this.helperObject3D.applyHelperQuaternion(g),this.helperObject3DQuaternion.premultiply(g),this.hooks.emit("rotateUpdate",{quaternion:g,origin:u}),this.startInfo.startVector=h}dragEnd(){!this.isDragging||(console.log("%c RotateController dragEnd","color: #e94e4e"),this.startInfo=void 0,this.isDragging=!1,this.lastRotation=void 0,this.rotations=[],this.helperObject3D.show(),this.hooks.emit("rotateEnd"))}getAngleHelper(e){switch(e){case"x":return this.helperObject3D.xAngleHelper;case"y":return this.helperObject3D.yAngleHelper;case"z":return this.helperObject3D.zAngleHelper}}setAngleHelperStart(e,o){const n=this.getAngleHelper(e);if(n instanceof I.Mesh&&n.geometry instanceof I.CircleGeometry){const{radius:r,segments:a,thetaLength:l}=n.geometry.parameters;n.geometry=new I.CircleGeometry(r,a,o,l)}else console.warn("only support THREE.CircleGeometry")}setAngleHelperLength(e,o){const r=o>=0?Math.max(o,.001):Math.min(o,-.001),a=this.getAngleHelper(e);if(a instanceof I.Mesh&&a.geometry instanceof I.CircleGeometry){const{radius:l,thetaStart:c}=a.geometry.parameters,d=Math.ceil(Math.abs(r)*(40/(2*Math.PI)));a.geometry=new I.CircleGeometry(l,d,c,r)}else console.warn("only support THREE.CircleGeometry")}setTipsAngle(e){var n;const o=(n=this.helperObject3D.angleTips)==null?void 0:n.element;!o||(o.innerText=`${e.toFixed(0)}\xB0`)}setTipsPosition(e){const o=this.helperObject3D.angleTips;if(!o)return;const n=e.project(this.camera),{x:r,y:a,z:l}=n;if(l>1)return;const c=(r+1)/2*100+"%",d=(-a+1)/2*100+"%";o.setLeftTop(c,d)}}class Nm extends Qo{constructor(...e){super(...e);m(this,"startInfo")}enable(){this.helperObject3D.enable(),super.enable()}disable(){this.helperObject3D.disable(),super.disable()}show(){this.helperObject3D.show(),super.show()}hide(){this.helperObject3D.hide(),super.hide()}getDragPlane(){const e=new I.Plane,o=this.helperObject3D.cornerPositions;if(o.length!==0)return o.length<3?e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new M.Vector3),o[0]):e.setFromCoplanarPoints(o[0],o[1],o[2]),e}dragStart(e,o){var r,a;(a=(r=this.helperObject3D).updatePoints)==null||a.call(r);const n=this.getDragPlane();if(!n)return this.dragEnd();this.startInfo={startPoint:{position:o.position.clone(),direction:o.direction},plane:n},this.hooks.emit("scaleStart"),this.render(),this.isDragging=!0,console.log("%c RectangleScaleController dragStart","color: #e5af2e")}dragging(e){if(!this.isDragging)return;const o=_o(this.camera,e,this.container);if(!o)return this.dragEnd();this.scale(o),console.log("%c RectangleScaleController dragging","color: #49de1b")}scale(e){var z,L;if(!this.startInfo)return;const o=this.originObject3D,{startPoint:n,plane:r}=this.startInfo,a=this.helperObject3D.cornerPositions;if(a.length<4)return this.dragEnd();const l=e.ray.intersectPlane(r,new M.Vector3);if(!l||Lm(l,this.camera.position))return;const c=new M.Vector3().addVectors(a[0],a[2]).divideScalar(2),{position:d,direction:u}=n,f=new M.Vector3().subVectors(a[1],a[0]),h=new M.Vector3().subVectors(a[3],a[0]),p=j=>{const O=new M.Vector3(0,0,0);if(!this.startInfo)return O;const P=(j==="ew"?f:h).clone(),S=d.clone().projectOnVector(P),_=l.clone().projectOnVector(P),T=c.clone().projectOnVector(P);if(_.equals(S))return O;if(j==="ns"&&typeof this.startInfo.dragPointInCenterBottom!="boolean"){const Q=new M.Vector3().subVectors(_,T),H=Q.x<0&&P.x>=0,Y=Q.y<0&&P.y>=0,U=Q.z<0&&P.z>=0;this.startInfo.dragPointInCenterBottom=H||Y||U}if(j==="ew"&&typeof this.startInfo.dragPointInCenterLeft!="boolean"){const Q=new M.Vector3().subVectors(_,T),H=Q.x<0&&P.x>=0,Y=Q.y<0&&P.y>=0,U=Q.z<0&&P.z>=0;this.startInfo.dragPointInCenterLeft=H||Y||U}const R=new M.Vector3().subVectors(_,S),N=R.length();return N>.3?(console.warn("offset.length() > 0.3, skipped",N),O):R},g=p("ew"),A=p("ns"),b=()=>{const j=g;this.helperObject3D.cornerPositions.forEach((O,P)=>{var S;(S=this.startInfo)!=null&&S.dragPointInCenterLeft?(P===0||P===3)&&O.add(j):(P===1||P===2)&&O.add(j)})},v=()=>{const j=A;this.helperObject3D.cornerPositions.forEach((O,P)=>{var S;(S=this.startInfo)!=null&&S.dragPointInCenterBottom?(P===0||P===1)&&O.add(j):(P===2||P===3)&&O.add(j)})};switch(u){case"ew":b();break;case"ns":v();break;case"nesw":case"nwse":b(),v()}const w=new M.Vector3().subVectors(a[1],a[0]).length()/f.length(),y=new M.Vector3().subVectors(a[3],a[0]).length()/h.length(),E=new M.Vector3(w,y,1),k=new I.Matrix4().scale(E);o.isCSS3DObjectPlus?o.applyScaleMatrix4(k):o.scale.applyMatrix4(k),n.position.copy(l);const C=new M.Vector3().addVectors(a[0],a[2]).divideScalar(2),D=new M.Vector3().subVectors(C,c),x=new I.Matrix4().setPosition(D);o.applyMatrix4(x),(z=this.helperObject3D.css3DInstance)==null||z.css3DObject.applyMatrix4(x),(L=this.helperObject3D.plane)==null||L.applyMatrix4(x),this.hooks.emit("scaleUpdate",{matrix4:k,helperOrigin:c}),this.hooks.emit("positionUpdate",{matrix4:x}),this.render()}dragEnd(){!this.isDragging||(this.startInfo=void 0,this.isDragging=!1,this.hooks.emit("scaleEnd"),this.render(),console.log("%c RectangleScaleController dragEnd","color: #e94e4e"))}}class Wm extends Nm{constructor(...t){super(...t),this.addHTMLEventListener()}addHTMLEventListener(){this.helperObject3D.points.forEach(t=>{if(!t)return;const e=t.point,o=a=>this.dragStart(a,t),n=this.dragging.bind(this),r=this.dragEnd.bind(this);e.addEventListener("dragstart",o),e.addEventListener("drag",n),e.addEventListener("dragend",r)})}}const Fo="v1.0.0",Ho="Object3DHelperPlugin",Zt=`${Ho}@${Fo}`,Xm=()=>{console.error(`${Zt} is disposed`)},Ym=()=>{console.warn(`${Zt} is disabled`)},Um=()=>{console.error(`${Zt} is disabled`)};class sr extends St{constructor(e){super(e);m(this,"version",Fo);m(this,"name",Ho);m(this,"state",{visible:!0,enabled:!0,disposed:!1});m(this,"objectHelperMap",new Map);this.five=e,console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"),Object.assign(window,{[`__${Ho.toUpperCase()}_DEBUG__`]:this})}show(e){return G(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return G(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,o){if(this.state.disposed)return Xm();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return Um();const n=B({},this.state);this.state=B(B({},this.state),e),e.disposed!==void 0&&e.disposed!==n.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==n.visible&&this.handleVisible(e.visible),e.enabled!==void 0&&e.enabled!==n.enabled&&this.handleEnable(e.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:n})}getObject3DHelper(e){return this.objectHelperMap.get(e)}addObject3DHelper(e,o={}){var u;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 n=new Hm;this.objectHelperMap.set(e,n);const r=(u=this.five.getElement())==null?void 0:u.parentElement,a=this.five.camera,{moveHelper:l=!0,rotateHelper:c=!0,scaleHelper:d=!0}=o;if(l){const f=new _m(e),h=new Oo(this.five,Qm,e,f);n.addControllers({moveController:h.helperController})}if(c){let f;r&&a&&(f={container:r});const h=new jm(e,f),p=new Oo(this.five,Gm,e,h);n.addControllers({rotateController:p.helperController})}if(d&&r){const f=new Tm(e,r,a,this.five.scene),h=new Oo(this.five,Wm,e,f);n.addControllers({scaleController:h.helperController})}e.isCSS3DObjectPlus&&e.changeMode("behind",this.five.scene)}removeObject3DHelper(e){const o=this.objectHelperMap.get(e);!o||(e.isCSS3DObjectPlus&&e.changeMode("front"),this.objectHelperMap.delete(e),o.dispose())}handleEnable(e,o=!0){e?(this.everyHelperDo(n=>n.enable()),this.hooks.emit("enable",{userAction:o})):(this.everyHelperDo(n=>n.disable()),this.hooks.emit("disable",{userAction:o})),this.state.enabled=e}handleVisible(e,o=!0){e?(this.everyHelperDo(n=>n.show()),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:o}))):(this.everyHelperDo(n=>n.hide()),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:o}))),this.state.visible=e}handleDispose(){this.everyHelperDo(e=>e.dispose())}everyHelperDo(e){this.objectHelperMap.forEach(o=>{o&&e(o)})}actionIfStateIsEnabled(e,o){if(this.state.enabled)return e();o!=null&&o.warnLog&&Ym()}}const Vm=i=>new sr(i);class Go{constructor(t=0,e=0){m(this,"min");m(this,"max");m(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 Jm{constructor(t,e){m(this,"min");m(this,"max");m(this,"xInterval");m(this,"yInterval");m(this,"isRectangle",!0);this.min=t,this.max=e,this.xInterval=new Go(this.min.x,this.max.x),this.yInterval=new Go(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 qt(i,t,e){const o=i[t],n=i[e];!o||!n||(i[t]=n,i[e]=o)}function Zm(i,t,e){const o=e/2;for(let n=1;n<=o;n++){const r=e-(n-1);for(let a=1;a<=t;a++){const l=(n-1)*t+a-1,c=(r-1)*t+a-1;qt(i,l*4+0,c*4+0),qt(i,l*4+1,c*4+1),qt(i,l*4+2,c*4+2),qt(i,l*4+3,c*4+3)}}}class ir{constructor(t,e){m(this,"width");m(this,"height");m(this,"containerDom");m(this,"hooks",new J.Subscribe);m(this,"canvas",document.createElement("canvas"));m(this,"five");m(this,"scale");m(this,"config");m(this,"offset",{x:0,y:0});m(this,"context");m(this,"renderCenter",new I.Vector3);m(this,"hammer");m(this,"state",{enabled:!1});m(this,"onPan",t=>{if(!this.containerDom||this.hooks.emit("wantsPanGesture",t))return;const o=this.offset.x+t.deltaX,n=this.offset.y+t.deltaY;this.canvas.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)",this.canvas.style.transform=`translate3d(${o}px, ${n}px, 100px)`});m(this,"onPanEnd",t=>{this.offset={x:this.offset.x+t.deltaX,y:this.offset.y+t.deltaY},this.canvas.style.boxShadow="none"});var n,r,a;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(n=e==null?void 0:e.scale)!=null?n:2,this.width=(r=e==null?void 0:e.width)!=null?r:190,this.height=(a=e==null?void 0:e.height)!=null?a: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 o=this.canvas.getContext("2d");if(!o)throw new Error("CANNOT CREATE CONTEXT2D");this.context=o,this.config.dragEnabled&&(this.hammer=new lt.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,o=this.renderCenter.clone().project(this.five.camera),n=(o.x+1)/2*this.containerDom.clientWidth,r=-(o.x-1)/2*this.containerDom.clientWidth,a=-(o.y-1)/2*this.containerDom.clientHeight;n<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):a<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):r<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, ${a}px, 10px)`,this.offset={x:n,y:a}}render(){if(!this.five.renderer||!this.containerDom)return;const{scale:t,context:e,width:o,height:n}=this,r=this.renderCenter.clone().project(this.five.camera),a=this.five.renderer.getSize(new I.Vector2),l=1,c=o/t,d=n/t,u=l*t,f=(r.x+1)/2*a.x,h=(r.y+1)/2*a.y,p=this.five.getPixels(f-c/2,h-c/2,c,d,u),g=Math.floor(o*l),A=Math.floor(n*l);Zm(p,g,A);const b=new ImageData(g,A);b.data.set(p),e.putImageData(b,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 qm(i,t){const{offsetWidth:e,offsetHeight:o}=t,{top:n,left:r}=t.getBoundingClientRect();return new I.Vector2().set((i.x-r)/e*2-1,-(i.y-n)/o*2+1)}function nr(i,t){const{offsetWidth:e,offsetHeight:o}=t;return new I.Vector2().set(i.x/e*2-1,-i.y/o*2+1)}function Km(i,t){const e=i.getElement();if(!e)return;const o=nr(t,e),n=new I.Raycaster;return n.setFromCamera(o,i.camera),n}function $m(i,t){const{x:e,y:o}=t,n=e*2-1,r=o*2-1,a=new I.Vector2().fromArray([n,r]),l=new I.Raycaster;return l.setFromCamera(a,i.camera),i.model.intersectRaycaster(l)[0]}const ep="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAE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BGS6BNwjkW0f+/rof8boaVx3dVZw+CUjgnQQUtneCM00CFwS6Y7vY/uqyY/uKwokE5gkobPNMrXguAd43i23x6u5t3TuXllcugU0EFLZNYC17JIGIVosbEPD1evWxp5WABJ4koLA9CdB0CRQBhI1u7apTq3CnEpDADgIK2w6q1jyVQH8wJKLGunnYqTUN5xLYQEBh2wDVkscSaNF6mf/xxx9fbuNm7vZYMl64BCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC",tp=`
541
+ format('woff2')}.content__container.svelte-95x526{position:relative;left:50%;top:50%;transform:translate(-50%, -50%);font-family:PingFangSC, Segoe UI, Rototo, sans-serif}.content__container.unClickable.svelte-95x526{pointer-events:none !important}.content__container.unClickable.svelte-95x526 *{pointer-events:none !important}*{-webkit-tap-highlight-color:transparent}.content__wrapper.svelte-95x526{pointer-events:none;width:100%;height:100%}.withAnimation.svelte-95x526{transition:opacity 0.3s linear}.content__container.hide.svelte-95x526{opacity:0;pointer-events:none}.content__container.hide.svelte-95x526 *{pointer-events:none !important}.content__container.disable.svelte-95x526{display:none}.content__container.hide.svelte-95x526 *{pointer-events:none}.content.svelte-95x526{position:relative;width:100%;height:100%;font-size:0.75rem;line-height:1.125rem;color:#fff}.content.svelte-95x526:not(.unfolded){pointer-events:none}.content.svelte-95x526:not(.unfolded) *{pointer-events:none !important}.content.unfolded.svelte-95x526{pointer-events:auto}`)}function Hf(i){let t,e;return t=new Sf({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Gf(i){let t,e;return t=new Bf({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Nf(i){let t,e;return t=new Af({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Wf(i){let t,e;return t=new Ef({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Xf(i){let t,e;return t=new ff({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Yf(i){let t,e;return t=new xh({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Uf(i){let t,e;return t=new Rf({props:{tag:re(i[1])}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&2&&(r.tag=re(o[1])),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Vf(i){let t,e,o,n,r,a,l,c,d;const u=[Uf,Yf,Xf,Wf,Nf,Gf,Hf],f=[];function h(p,g){return p[1].element?0:p[1].contentType===ve.Text?1:p[1].contentType===ve.ImageText?2:p[1].contentType===ve.Audio?3:p[1].contentType===ve.Marketing?4:p[1].contentType===ve.Link?5:p[1].contentType===ve.MediaPlane?6:-1}return~(n=h(i))&&(r=f[n]=u[n](i)),{c(){var p,g,A;t=s.element("div"),e=s.element("div"),o=s.element("div"),r&&r.c(),s.attr(o,"class","content svelte-95x526"),s.toggle_class(o,"unfolded",(p=i[1].state)==null?void 0:p.unfolded),s.attr(e,"class","content__wrapper svelte-95x526"),s.attr(t,"class","content__container svelte-95x526"),s.attr(t,"data-id",a=i[1].id),s.toggle_class(t,"disable",i[1].enabled===!1||((g=i[1].temporaryState)==null?void 0:g.visible)===!1),s.toggle_class(t,"hide",!i[3].visible||!i[3].enabled||!i[4].visible||!((A=i[1].state)!=null&&A.visible)),s.toggle_class(t,"withAnimation",i[0]),s.toggle_class(t,"unClickable",i[1].clickable===!1),s.set_style(t,"width",i[1].pointType==="PointTag"?0:"100%",!1),s.set_style(t,"height",i[1].pointType==="PointTag"?0:"100%",!1)},m(p,g){s.insert(p,t,g),s.append(t,e),s.append(e,o),~n&&f[n].m(o,null),l=!0,c||(d=s.listen(t,"click",s.stop_propagation(i[11])),c=!0)},p(p,[g]){var b,v,C;let A=n;n=h(p),n===A?~n&&f[n].p(p,g):(r&&(s.group_outros(),s.transition_out(f[A],1,1,()=>{f[A]=null}),s.check_outros()),~n?(r=f[n],r?r.p(p,g):(r=f[n]=u[n](p),r.c()),s.transition_in(r,1),r.m(o,null)):r=null),g&2&&s.toggle_class(o,"unfolded",(b=p[1].state)==null?void 0:b.unfolded),(!l||g&2&&a!==(a=p[1].id))&&s.attr(t,"data-id",a),g&2&&s.toggle_class(t,"disable",p[1].enabled===!1||((v=p[1].temporaryState)==null?void 0:v.visible)===!1),g&26&&s.toggle_class(t,"hide",!p[3].visible||!p[3].enabled||!p[4].visible||!((C=p[1].state)!=null&&C.visible)),g&1&&s.toggle_class(t,"withAnimation",p[0]),g&2&&s.toggle_class(t,"unClickable",p[1].clickable===!1),g&2&&s.set_style(t,"width",p[1].pointType==="PointTag"?0:"100%",!1),g&2&&s.set_style(t,"height",p[1].pointType==="PointTag"?0:"100%",!1)},i(p){l||(s.transition_in(r),l=!0)},o(p){s.transition_out(r),l=!1},d(p){p&&s.detach(t),~n&&f[n].d(),c=!1,d()}}}function Jf(i,t,e){let o,n,r,a,{withAnimation:l=!1}=t,{tag:c}=t,{hooks:d}=t,{state:u}=t,{mediaStore:f}=t,{temporaryState:h}=t;Z.setContext("hooks",d),Z.setContext("mediaStore",f);let p,g;function A(v){v?d.emit("exposure",{id:a,type:"start"}):d.emit("exposure",{id:a,type:"end"})}const b=v=>d.emit("click",{event:v,target:"TagContent",tag:c});return i.$$set=v=>{"withAnimation"in v&&e(0,l=v.withAnimation),"tag"in v&&e(1,c=v.tag),"hooks"in v&&e(2,d=v.hooks),"state"in v&&e(3,u=v.state),"mediaStore"in v&&e(5,f=v.mediaStore),"temporaryState"in v&&e(4,h=v.temporaryState)},i.$$.update=()=>{var v,C;i.$$.dirty&2&&e(9,o=(v=c.state)==null?void 0:v.unfolded),i.$$.dirty&2&&e(8,n=(C=c.state)==null?void 0:C.visible),i.$$.dirty&280&&e(10,r=u.visible&&h.visible&&n),i.$$.dirty&2&&(a=c.id),i.$$.dirty&1024&&A(r),i.$$.dirty&962&&c.hooks&&(o!==void 0&&o!==g&&(e(7,g=o),o?c.hooks.emit("unfolded"):c.hooks.emit("folded")),n!==void 0&&n!==p&&(e(6,p=n),n?c.hooks.emit("show"):c.hooks.emit("hide")))},[l,c,d,u,h,f,p,g,n,o,r,b]}class Yn extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Jf,Vf,s.safe_not_equal,{withAnimation:0,tag:1,hooks:2,state:3,mediaStore:5,temporaryState:4},Ff)}}function Zf(i){s.append_styles(i,"svelte-fuismw",".point.svelte-fuismw.svelte-fuismw{pointer-events:none;width:1.5rem;height:1.5rem}.small-point.svelte-fuismw.svelte-fuismw,.big-point.svelte-fuismw.svelte-fuismw{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all 500ms}.big-point.svelte-fuismw.svelte-fuismw{background-color:rgba(0, 0, 0, 0.1)}.folded.point.svelte-fuismw.svelte-fuismw{animation:svelte-fuismw-breathing 2s linear infinite}.big-point.svelte-fuismw.svelte-fuismw::before,.big-point.svelte-fuismw.svelte-fuismw::after{content:'';display:block;position:absolute;background-size:contain;background-repeat:no-repeat;pointer-events:none}.big-point.svelte-fuismw.svelte-fuismw::before{width:100%;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAqFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8j1z1tAAAAOHRSTlMABgoNFBsYIhEmHyksMoJ6RZ5aXzpnU03AtqaZjLuGN+zcifnW0cjEqnA+lOZzbWLhkH6i8rGuagnOwPMAAAQOSURBVFjDrZiHctpAEIYXYzvGOvXeUe+IYuD93ywrJAIhFJX8M8zoBHzz757utHvwTETJHJPfGQZfWJXILWCMPuqNbuu6vj+khrHjed40TWvFfQ2jvCl8nGha6lQCl7s07UqcUlfOZrOxVtKsN2a+0uJYK+ScEIqiFifhBSGSsnJ8f8u99cLMVnEUHTKXIOMX6vuk5gpphFYyhmHzHpzcDqNUJGgEER+oz5OaK8ShNcIdt+zx1ys7lhdqiDlRkPF+JaSdWIhasaz6lLPQ1qFDIwYpDeTr62veCS8bGLIQRSsVK78/5nDeOlYIYhovHeOtU0dDXw2KSGiKesQRyjJ10Q66QcyZMTvpTEMUumpMieyWvs9ZLZcmodAOYlorsysBflpjiEJTFBEY5+7sicul34T1iak5U25momN9Ya4wPCT57r8cteW0dk4YuKMTqjXVkgjciFr+8B3ngnmM6kii5X/efB0F+jUHnuiatLJY+Et84EnUNacfiaKZjQhX4oJAwPlqOB3mJaoh4dxxG5Nc3Q8DkywunP6kBalN53J7G3g0JqiNC3qpjQ7TRPvmn2U3L3/kU4JaTn/SKU0qb76dDf0kGNjHJbD+wX1gcMxO6fZVrzXUcQaROkvt3+pljIYugQ0LDi1ZBgeN9JK9MjTCkmgwgPou19I5QzBI5yy5RvqOw6xMMbKzoeGWmnQfBBwa6woj6wyNsYSx7R0chWuOwsjOqR6aboyNyvcpgOsl3ZzNhoNm3bztdAK1x5NuzmCwunkjjq4AEzKXFI1NUmVnwIfydJBoW7CPVAR1uR6XbVwlmgF2xF1yPTbbubYHLZamgyTNhiSmp4PoJIEk+R+gOAFb+x+hxRoctHw6iItsMLT/Mf3RHixbnP5AyhEPmZ1NB+E6A0V3pi9aPqyB6Pz0bSTxXID0kE/d2DgvxBFzEKdutdXawJGSMlM3/3Sd4fA93bnTXkfSuvwGFGOI016QbKm3VdbOn/bKjpd1e6Pg1SlFhPzjdXWNwjNTyprkhz33i4Wpji600FA5h05q4Ywv/bxge7mNRe7YYtQMwqt/kMLixpXHQhBwcCXBYukxBbvkBTv4S5V/HNNC6EF089tPxxGHNzV8sKTgRhSzVYa2Wf5yeadHphlWGdb4IUeEO5K2SHrUiqJuW9GiLFdwVzRbCXTf5tg11mvhYdufZbLUr11XEi/k4KHexUxWSY8DBCby7AU8E3eUhfzVkYZgR6H/agF8C3KNqCeHLIIRR7oEr0XXsixy9P1jH/doJLF2nPXbIlw5y1aC6t4eROW1pduaLs/7b6NEqFiWrWpBzaXuaOy4Nfe6bRfqGwzSXBJZhnF8y9oUhcnzOyM9pI7wCWP0LSkyy1iFWWwsFp8LeKLfd4doRyTLRacAAAAASUVORK5CYII=)}.folded.svelte-fuismw .big-point.svelte-fuismw::before{animation:svelte-fuismw-rotate 2s linear infinite}.big-point.svelte-fuismw.svelte-fuismw::after{position:absolute;width:1rem;height:1rem;background-image:var(--iconUrl)}.small-point.svelte-fuismw.svelte-fuismw::before{content:'';display:block;position:absolute;pointer-events:none;width:0.25rem;height:0.25rem;border-radius:100%;background-color:white}.folded.svelte-fuismw .big-point.svelte-fuismw{opacity:1;scale:1}.unfolded.svelte-fuismw .big-point.svelte-fuismw{opacity:0;scale:0}.folded.svelte-fuismw .small-point.svelte-fuismw{opacity:0;scale:6}.unfolded.svelte-fuismw .small-point.svelte-fuismw{opacity:1;scale:1}@keyframes svelte-fuismw-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes svelte-fuismw-breathing{0%{transform:scale(1)}25%{transform:scale(0.9)}50%{transform:scale(1)}}")}function qf(i){let t,e,o,n,r,a,l;return e=new we({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),r=s.space(),a=s.element("div"),s.attr(n,"class","small-point svelte-fuismw"),s.set_style(n,"transition-delay",i[3]?i[2]+"ms":"0ms",!1),s.attr(a,"class","big-point svelte-fuismw"),s.set_style(a,"--iconUrl","url("+i[1]+")"),s.set_style(a,"transition-delay",i[3]?i[2]+"ms":"0ms",!1),s.attr(t,"class","point svelte-fuismw"),s.toggle_class(t,"folded",i[3]),s.toggle_class(t,"unfolded",i[0])},m(c,d){s.insert(c,t,d),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),s.append(t,r),s.append(t,a),l=!0},p(c,[d]){d&12&&s.set_style(n,"transition-delay",c[3]?c[2]+"ms":"0ms",!1),(!l||d&2)&&s.set_style(a,"--iconUrl","url("+c[1]+")"),d&12&&s.set_style(a,"transition-delay",c[3]?c[2]+"ms":"0ms",!1),d&8&&s.toggle_class(t,"folded",c[3]),d&1&&s.toggle_class(t,"unfolded",c[0])},i(c){l||(s.transition_in(e.$$.fragment,c),l=!0)},o(c){s.transition_out(e.$$.fragment,c),l=!1},d(c){c&&s.detach(t),s.destroy_component(e)}}}function Kf(i,t,e){let o,{unfolded:n}=t,{iconUrl:r}=t,{foldDelay:a=800}=t;return i.$$set=l=>{"unfolded"in l&&e(0,n=l.unfolded),"iconUrl"in l&&e(1,r=l.iconUrl),"foldDelay"in l&&e(2,a=l.foldDelay)},i.$$.update=()=>{i.$$.dirty&1&&e(3,o=!n)},[n,r,a,o]}class $f extends s.SvelteComponent{constructor(t){super(),s.init(this,t,Kf,qf,s.safe_not_equal,{unfolded:0,iconUrl:1,foldDelay:2},Zf)}}function em(i){s.append_styles(i,"svelte-jzvcn0",".point.svelte-jzvcn0.svelte-jzvcn0{pointer-events:none;width:1rem;height:1rem}.small-point.svelte-jzvcn0.svelte-jzvcn0,.big-point.svelte-jzvcn0.svelte-jzvcn0{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all 500ms}.big-point.svelte-jzvcn0.svelte-jzvcn0::before,.big-point.svelte-jzvcn0.svelte-jzvcn0::after{content:'';display:block;position:absolute;background-size:contain;background-repeat:no-repeat;pointer-events:none}.big-point.svelte-jzvcn0.svelte-jzvcn0::before{width:100%;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAqFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8j1z1tAAAAOHRSTlMABgoNFBsYIhEmHyksMoJ6RZ5aXzpnU03AtqaZjLuGN+zcifnW0cjEqnA+lOZzbWLhkH6i8rGuagnOwPMAAAQOSURBVFjDrZiHctpAEIYXYzvGOvXeUe+IYuD93ywrJAIhFJX8M8zoBHzz757utHvwTETJHJPfGQZfWJXILWCMPuqNbuu6vj+khrHjed40TWvFfQ2jvCl8nGha6lQCl7s07UqcUlfOZrOxVtKsN2a+0uJYK+ScEIqiFifhBSGSsnJ8f8u99cLMVnEUHTKXIOMX6vuk5gpphFYyhmHzHpzcDqNUJGgEER+oz5OaK8ShNcIdt+zx1ys7lhdqiDlRkPF+JaSdWIhasaz6lLPQ1qFDIwYpDeTr62veCS8bGLIQRSsVK78/5nDeOlYIYhovHeOtU0dDXw2KSGiKesQRyjJ10Q66QcyZMTvpTEMUumpMieyWvs9ZLZcmodAOYlorsysBflpjiEJTFBEY5+7sicul34T1iak5U25momN9Ya4wPCT57r8cteW0dk4YuKMTqjXVkgjciFr+8B3ngnmM6kii5X/efB0F+jUHnuiatLJY+Et84EnUNacfiaKZjQhX4oJAwPlqOB3mJaoh4dxxG5Nc3Q8DkywunP6kBalN53J7G3g0JqiNC3qpjQ7TRPvmn2U3L3/kU4JaTn/SKU0qb76dDf0kGNjHJbD+wX1gcMxO6fZVrzXUcQaROkvt3+pljIYugQ0LDi1ZBgeN9JK9MjTCkmgwgPou19I5QzBI5yy5RvqOw6xMMbKzoeGWmnQfBBwa6woj6wyNsYSx7R0chWuOwsjOqR6aboyNyvcpgOsl3ZzNhoNm3bztdAK1x5NuzmCwunkjjq4AEzKXFI1NUmVnwIfydJBoW7CPVAR1uR6XbVwlmgF2xF1yPTbbubYHLZamgyTNhiSmp4PoJIEk+R+gOAFb+x+hxRoctHw6iItsMLT/Mf3RHixbnP5AyhEPmZ1NB+E6A0V3pi9aPqyB6Pz0bSTxXID0kE/d2DgvxBFzEKdutdXawJGSMlM3/3Sd4fA93bnTXkfSuvwGFGOI016QbKm3VdbOn/bKjpd1e6Pg1SlFhPzjdXWNwjNTyprkhz33i4Wpji600FA5h05q4Ywv/bxge7mNRe7YYtQMwqt/kMLixpXHQhBwcCXBYukxBbvkBTv4S5V/HNNC6EF089tPxxGHNzV8sKTgRhSzVYa2Wf5yeadHphlWGdb4IUeEO5K2SHrUiqJuW9GiLFdwVzRbCXTf5tg11mvhYdufZbLUr11XEi/k4KHexUxWSY8DBCby7AU8E3eUhfzVkYZgR6H/agF8C3KNqCeHLIIRR7oEr0XXsixy9P1jH/doJLF2nPXbIlw5y1aC6t4eROW1pduaLs/7b6NEqFiWrWpBzaXuaOy4Nfe6bRfqGwzSXBJZhnF8y9oUhcnzOyM9pI7wCWP0LSkyy1iFWWwsFp8LeKLfd4doRyTLRacAAAAASUVORK5CYII=);background-size:contain;background-repeat:no-repeat}.small-point.svelte-jzvcn0.svelte-jzvcn0::before{content:'';display:block;position:absolute;pointer-events:none;width:0.375rem;height:0.375rem;border-radius:100%;background-color:white}.unfolded.svelte-jzvcn0 .big-point.svelte-jzvcn0{opacity:0;transform:scale(0)}.folded.svelte-jzvcn0 .big-point.svelte-jzvcn0{opacity:1;transform:scale(1)}.unfolded.svelte-jzvcn0 .small-point.svelte-jzvcn0{transform:scale(0.6)}.folded.svelte-jzvcn0 .small-point.svelte-jzvcn0{transform:scale(1)}")}function tm(i){let t,e,o,n,r,a,l;return e=new we({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),o=s.space(),n=s.element("div"),r=s.space(),a=s.element("div"),s.attr(n,"class","small-point svelte-jzvcn0"),s.set_style(n,"transition-delay",i[2]?i[1]+"ms":"0ms",!1),s.attr(a,"class","big-point svelte-jzvcn0"),s.set_style(a,"transition-delay",i[2]?i[1]+"ms":"0ms",!1),s.attr(t,"class","point svelte-jzvcn0"),s.toggle_class(t,"unfolded",i[0]),s.toggle_class(t,"folded",i[2])},m(c,d){s.insert(c,t,d),s.mount_component(e,t,null),s.append(t,o),s.append(t,n),s.append(t,r),s.append(t,a),l=!0},p(c,[d]){d&6&&s.set_style(n,"transition-delay",c[2]?c[1]+"ms":"0ms",!1),d&6&&s.set_style(a,"transition-delay",c[2]?c[1]+"ms":"0ms",!1),d&1&&s.toggle_class(t,"unfolded",c[0]),d&4&&s.toggle_class(t,"folded",c[2])},i(c){l||(s.transition_in(e.$$.fragment,c),l=!0)},o(c){s.transition_out(e.$$.fragment,c),l=!1},d(c){c&&s.detach(t),s.destroy_component(e)}}}function om(i,t,e){let o,{unfolded:n}=t,{foldDelay:r=800}=t;return i.$$set=a=>{"unfolded"in a&&e(0,n=a.unfolded),"foldDelay"in a&&e(1,r=a.foldDelay)},i.$$.update=()=>{i.$$.dirty&1&&e(2,o=!n)},[n,r,o]}class sm extends s.SvelteComponent{constructor(t){super(),s.init(this,t,om,tm,s.safe_not_equal,{unfolded:0,foldDelay:1},em)}}function im(i){s.append_styles(i,"svelte-8en2lj",".point-click-helper.svelte-8en2lj{position:absolute;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}")}function Un(i){let t,e,o=i[0].contentType!==ve.Link&&Vn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,r){n[0].contentType!==ve.Link?o?(o.p(n,r),r&1&&s.transition_in(o,1)):(o=Vn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function Vn(i){let t,e,o,n,r,a;const l=[rm,nm],c=[];function d(u,f){var h,p,g,A;return((p=(h=u[0].style)==null?void 0:h.point)==null?void 0:p.style)==="CustomIcon"&&((A=(g=u[0].style)==null?void 0:g.point)==null?void 0:A.iconUrl)?0:1}return o=d(i),n=c[o]=l[o](i),{c(){t=s.element("div"),e=s.space(),n.c(),r=s.empty(),s.attr(t,"class","point-click-helper svelte-8en2lj")},m(u,f){s.insert(u,t,f),s.insert(u,e,f),c[o].m(u,f),s.insert(u,r,f),a=!0},p(u,f){let h=o;o=d(u),o===h?c[o].p(u,f):(s.group_outros(),s.transition_out(c[h],1,1,()=>{c[h]=null}),s.check_outros(),n=c[o],n?n.p(u,f):(n=c[o]=l[o](u),n.c()),s.transition_in(n,1),n.m(r.parentNode,r))},i(u){a||(s.transition_in(n),a=!0)},o(u){s.transition_out(n),a=!1},d(u){u&&s.detach(t),u&&s.detach(e),c[o].d(u),u&&s.detach(r)}}}function nm(i){let t,e;return t=new sm({props:{unfolded:i[0].state.unfolded,foldDelay:i[1]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.unfolded=o[0].state.unfolded),n&2&&(r.foldDelay=o[1]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function rm(i){let t,e;return t=new $f({props:{iconUrl:i[0].style.point.iconUrl,unfolded:i[0].state.unfolded,foldDelay:i[1]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&1&&(r.iconUrl=o[0].style.point.iconUrl),n&1&&(r.unfolded=o[0].state.unfolded),n&2&&(r.foldDelay=o[1]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function am(i){var n,r,a;let t,e,o=((n=i[0].pointTagStyle)==null?void 0:n.leftPercent)&&((r=i[0].pointTagStyle)==null?void 0:r.topPercent)&&i[0].enabled!==!1&&i[0].state&&((a=i[0].temporaryState)==null?void 0:a.visible)!==!1&&Un(i);return{c(){o&&o.c(),t=s.empty()},m(l,c){o&&o.m(l,c),s.insert(l,t,c),e=!0},p(l,[c]){var d,u,f;((d=l[0].pointTagStyle)==null?void 0:d.leftPercent)&&((u=l[0].pointTagStyle)==null?void 0:u.topPercent)&&l[0].enabled!==!1&&l[0].state&&((f=l[0].temporaryState)==null?void 0:f.visible)!==!1?o?(o.p(l,c),c&1&&s.transition_in(o,1)):(o=Un(l),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(l){e||(s.transition_in(o),e=!0)},o(l){s.transition_out(o),e=!1},d(l){o&&o.d(l),l&&s.detach(t)}}}function lm(i,t,e){let o,{tag:n}=t;return i.$$set=r=>{"tag"in r&&e(0,n=r.tag)},i.$$.update=()=>{var r,a;i.$$.dirty&1&&e(1,o=(a=(r=n.style)==null?void 0:r.foldedPointDelay)!=null?a:n.contentType===ve.Marketing?600:void 0)},[n,o]}class cm extends s.SvelteComponent{constructor(t){super(),s.init(this,t,lm,am,s.safe_not_equal,{tag:0},im)}}function dm(i){s.append_styles(i,"svelte-1vzhbu2",".wrapper.svelte-1vzhbu2{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}.point.svelte-1vzhbu2{-webkit-tap-highlight-color:transparent;position:absolute;transform:translate(-50%, -50%);left:50%;top:50%}")}function Jn(i){let t,e;return t=new Yn({props:{mediaStore:i[4],withAnimation:i[0],tag:re(i[1]),hooks:i[2],state:i[3],temporaryState:i[5]}}),{c(){s.create_component(t.$$.fragment)},m(o,n){s.mount_component(t,o,n),e=!0},p(o,n){const r={};n&16&&(r.mediaStore=o[4]),n&1&&(r.withAnimation=o[0]),n&2&&(r.tag=re(o[1])),n&4&&(r.hooks=o[2]),n&8&&(r.state=o[3]),n&32&&(r.temporaryState=o[5]),t.$set(r)},i(o){e||(s.transition_in(t.$$.fragment,o),e=!0)},o(o){s.transition_out(t.$$.fragment,o),e=!1},d(o){s.destroy_component(t,o)}}}function Zn(i){let t,e,o,n,r;return e=new cm({props:{tag:i[1]}}),{c(){t=s.element("div"),s.create_component(e.$$.fragment),s.attr(t,"class","point svelte-1vzhbu2")},m(a,l){s.insert(a,t,l),s.mount_component(e,t,null),o=!0,n||(r=s.listen(t,"click",s.stop_propagation(i[11])),n=!0)},p(a,l){const c={};l&2&&(c.tag=a[1]),e.$set(c)},i(a){o||(s.transition_in(e.$$.fragment,a),o=!0)},o(a){s.transition_out(e.$$.fragment,a),o=!1},d(a){a&&s.detach(t),s.destroy_component(e),n=!1,r()}}}function um(i){var l,c;let t,e,o,n,r=i[1].dimensionType===ye.Two&&Jn(i),a=i[1].pointType===Ae.PointTag&&((c=(l=i[1].style)==null?void 0:l.point)==null?void 0:c.style)!=="noPoint"&&Zn(i);return{c(){t=s.element("div"),r&&r.c(),e=s.space(),a&&a.c(),s.attr(t,"class","wrapper svelte-1vzhbu2"),s.attr(t,"data-id",o=i[1].id),s.toggle_class(t,"hide",i[10]),s.toggle_class(t,"unfolded",i[6]),s.set_style(t,"left",i[9],!1),s.set_style(t,"top",i[8],!1),s.set_style(t,"z-index",i[7],!1)},m(d,u){s.insert(d,t,u),r&&r.m(t,null),s.append(t,e),a&&a.m(t,null),n=!0},p(d,[u]){var f,h;d[1].dimensionType===ye.Two?r?(r.p(d,u),u&2&&s.transition_in(r,1)):(r=Jn(d),r.c(),s.transition_in(r,1),r.m(t,e)):r&&(s.group_outros(),s.transition_out(r,1,1,()=>{r=null}),s.check_outros()),d[1].pointType===Ae.PointTag&&((h=(f=d[1].style)==null?void 0:f.point)==null?void 0:h.style)!=="noPoint"?a?(a.p(d,u),u&2&&s.transition_in(a,1)):(a=Zn(d),a.c(),s.transition_in(a,1),a.m(t,null)):a&&(s.group_outros(),s.transition_out(a,1,1,()=>{a=null}),s.check_outros()),(!n||u&2&&o!==(o=d[1].id))&&s.attr(t,"data-id",o),u&1024&&s.toggle_class(t,"hide",d[10]),u&64&&s.toggle_class(t,"unfolded",d[6]),u&512&&s.set_style(t,"left",d[9],!1),u&256&&s.set_style(t,"top",d[8],!1),u&128&&s.set_style(t,"z-index",d[7],!1)},i(d){n||(s.transition_in(r),s.transition_in(a),n=!0)},o(d){s.transition_out(r),s.transition_out(a),n=!1},d(d){d&&s.detach(t),r&&r.d(),a&&a.d()}}}function hm(i,t,e){let o,n,r,a,l,c,{withAnimation:d=!1}=t,{tag:u}=t,{hooks:f}=t,{state:h}=t,{mediaStore:p}=t,{temporaryState:g}=t,A,b=!1;function v(y){A!==void 0&&clearTimeout(A),b=!0,A=setTimeout(()=>{b=!1},800)}const C=y=>{b||f.emit("click",{event:y,target:"TagPoint",tag:u})};return i.$$set=y=>{"withAnimation"in y&&e(0,d=y.withAnimation),"tag"in y&&e(1,u=y.tag),"hooks"in y&&e(2,f=y.hooks),"state"in y&&e(3,h=y.state),"mediaStore"in y&&e(4,p=y.mediaStore),"temporaryState"in y&&e(5,g=y.temporaryState)},i.$$.update=()=>{var y,E,k,w;i.$$.dirty&2&&e(12,o=(y=u.state)==null?void 0:y.visible),i.$$.dirty&4096&&e(10,n=!o),i.$$.dirty&2&&e(6,r=(E=u.state)==null?void 0:E.unfolded),i.$$.dirty&2&&e(9,a=((k=u.pointTagStyle)==null?void 0:k.leftPercent)+"%"),i.$$.dirty&2&&e(8,l=((w=u.pointTagStyle)==null?void 0:w.topPercent)+"%"),i.$$.dirty&2&&e(7,c=u.contentType===ve.Link?1:0),i.$$.dirty&64&&v()},[d,u,f,h,p,g,r,c,l,a,n,C,o]}class fm extends s.SvelteComponent{constructor(t){super(),s.init(this,t,hm,um,s.safe_not_equal,{withAnimation:0,tag:1,hooks:2,state:3,mediaStore:4,temporaryState:5},dm)}}function mm(i){s.append_styles(i,"svelte-1eci49s",".tag--container.svelte-1eci49s{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}.tag.hide.svelte-1eci49s{display:none}.withAnimation.svelte-1eci49s{transition:opacity 0.3s linear}.tag--container.hide.svelte-1eci49s{opacity:0;pointer-events:none}.tag--container.hide.svelte-1eci49s *{pointer-events:none}")}function qn(i,t,e){const o=i.slice();return o[6]=t[e],o}function Kn(i){let t,e=[],o=new Map,n,r=i[1];const a=l=>l[6].id;for(let l=0;l<r.length;l+=1){let c=qn(i,r,l),d=a(c);o.set(d,e[l]=$n(d,c))}return{c(){t=s.element("div");for(let l=0;l<e.length;l+=1)e[l].c();s.attr(t,"class","tag--container svelte-1eci49s"),s.toggle_class(t,"hide",!i[3].visible||!i[5].visible),s.toggle_class(t,"withAnimation",i[0])},m(l,c){s.insert(l,t,c);for(let d=0;d<e.length;d+=1)e[d].m(t,null);n=!0},p(l,c){c&63&&(r=l[1],s.group_outros(),e=s.update_keyed_each(e,c,a,1,l,r,o,t,s.outro_and_destroy_block,$n,null,qn),s.check_outros()),c&40&&s.toggle_class(t,"hide",!l[3].visible||!l[5].visible),c&1&&s.toggle_class(t,"withAnimation",l[0])},i(l){if(!n){for(let c=0;c<r.length;c+=1)s.transition_in(e[c]);n=!0}},o(l){for(let c=0;c<e.length;c+=1)s.transition_out(e[c]);n=!1},d(l){l&&s.detach(t);for(let c=0;c<e.length;c+=1)e[c].d()}}}function $n(i,t){let e,o,n,r;const a=[{tag:t[6],hooks:t[2],state:t[3],mediaStore:t[4],temporaryState:t[5],withAnimation:t[0]}];let l={};for(let c=0;c<a.length;c+=1)l=s.assign(l,a[c]);return o=new fm({props:l}),{key:i,first:null,c(){var c,d,u;e=s.element("div"),s.create_component(o.$$.fragment),n=s.space(),s.attr(e,"class","tag svelte-1eci49s"),s.toggle_class(e,"hide",!((c=t[6].pointTagStyle)!=null&&c.leftPercent)||!((d=t[6].pointTagStyle)!=null&&d.topPercent)||t[6].enabled===!1||!t[6].state||((u=t[6].temporaryState)==null?void 0:u.visible)===!1),this.first=e},m(c,d){s.insert(c,e,d),s.mount_component(o,e,null),s.append(e,n),r=!0},p(c,d){var f,h,p;t=c;const u=d&63?s.get_spread_update(a,[{tag:t[6],hooks:t[2],state:t[3],mediaStore:t[4],temporaryState:t[5],withAnimation:t[0]}]):{};o.$set(u),d&2&&s.toggle_class(e,"hide",!((f=t[6].pointTagStyle)!=null&&f.leftPercent)||!((h=t[6].pointTagStyle)!=null&&h.topPercent)||t[6].enabled===!1||!t[6].state||((p=t[6].temporaryState)==null?void 0:p.visible)===!1)},i(c){r||(s.transition_in(o.$$.fragment,c),r=!0)},o(c){s.transition_out(o.$$.fragment,c),r=!1},d(c){c&&s.detach(e),s.destroy_component(o)}}}function pm(i){let t,e,o=i[3].enabled&&Kn(i);return{c(){o&&o.c(),t=s.empty()},m(n,r){o&&o.m(n,r),s.insert(n,t,r),e=!0},p(n,[r]){n[3].enabled?o?(o.p(n,r),r&8&&s.transition_in(o,1)):(o=Kn(n),o.c(),s.transition_in(o,1),o.m(t.parentNode,t)):o&&(s.group_outros(),s.transition_out(o,1,1,()=>{o=null}),s.check_outros())},i(n){e||(s.transition_in(o),e=!0)},o(n){s.transition_out(o),e=!1},d(n){o&&o.d(n),n&&s.detach(t)}}}function gm(i,t,e){let{withAnimation:o=!1}=t,{tags:n=[]}=t,{hooks:r}=t,{state:a}=t,{mediaStore:l}=t,{temporaryState:c}=t;return i.$$set=d=>{"withAnimation"in d&&e(0,o=d.withAnimation),"tags"in d&&e(1,n=d.tags),"hooks"in d&&e(2,r=d.hooks),"state"in d&&e(3,a=d.state),"mediaStore"in d&&e(4,l=d.mediaStore),"temporaryState"in d&&e(5,c=d.temporaryState)},[o,n,r,a,l,c]}class Am extends s.SvelteComponent{constructor(t){super(),s.init(this,t,gm,pm,s.safe_not_equal,{withAnimation:0,tags:1,hooks:2,state:3,mediaStore:4,temporaryState:5},mm)}}const vm={globalConfig:{initialState:{},visibleConfig:{visibleDistance:{max:5},angleRange:{min:-45,max:45}},unfoldedConfig:{autoUnfold:{strategy:"MinimumDistance"}},tag3DConfig:{ratio:.0035}},contentTypeConfig:{"Any-Link-Any":{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},"Any-Marketing-Any":{unfoldedConfig:void 0},"3D-MediaPlane-PlaneTag":{unfoldedConfig:{keep:"unfolded"},visibleConfig:{alwaysShowWhenMovePano:!0,angleRange:void 0,visibleDistance:void 0}}}};class bm extends St{constructor(e){super(e);m(this,"tagCacheByPanoIndex",{})}getCaches({panoIndex:e,id:o,key:n}){var d,u,f,h;const{five:r}=this,a=(d=r.panoIndex)!=null?d:e;if(a===void 0)throw new Error(`TagCacheController getCache(): fivePanoIndex is ${a}`);const l=`${(f=(u=r.work)==null?void 0:u.workCode)!=null?f:r.model.uuid}-${a}`;let c=this.tagCacheByPanoIndex[l];if(c||(c=new Map,this.tagCacheByPanoIndex[l]=c),o===void 0)return c;if(n===void 0){const p=c.get(o);return p||(c.set(o,{}),c.get(o))}return(h=c.get(o))==null?void 0:h[n]}clearCache(){this.tagCacheByPanoIndex={}}}class ym extends bm{constructor(e){super(e);m(this,"tags",[]);m(this,"config",vm);m(this,"raycaster",new I.Raycaster)}getTagById(e){const o=this.tags.find(n=>n.id===e);if(!o){console.error(`getTagById(): tag is ${o}, id is ${e}`);return}return o}changeConfig(e,o=!0){o?this.config=Ge.default({},this.config,e):this.config=e,this.clearCache()}changeGlobalConfig(e,o=!0){o?this.config.globalConfig=Ge.default({},this.config.globalConfig,e):this.config.globalConfig=e,this.clearCache()}changeContentTypeConfig(e,o,n=!0){this.config.contentTypeConfig||(this.config.contentTypeConfig={}),n?this.config.contentTypeConfig[e]=Ge.default({},this.config.contentTypeConfig[e],o):this.config.contentTypeConfig[e]=o,this.clearCache()}getVisibleByPanoIndex(e,o){var a;const n=this.getCaches({panoIndex:o,id:e.id}),r=(a=this.five.panoIndex)!=null?a:o;if(n.visible!==void 0)return n.visible;{const l=(()=>{var u,f,h,p,g;const c=(u=this.getTagConfig(e).visibleConfig)!=null?u:{},d=this.getDistance(e);if(typeof c=="function")return c(this.five,{tag:e,distance:d});if(c.keep==="hidden")return!1;if(c.keep==="visible")return!0;if(c.visiblePanoIndex!==void 0&&(r===void 0||!c.visiblePanoIndex.includes(r))||c.visibleDistance!==void 0&&c.visibleDistance!=="unLimited"&&Xt(d,c.visibleDistance)===!1)return!1;if(((f=c.intersectRaycaster)==null?void 0:f.enabled)!==!1){if(r===void 0)return!1;const A=(h=this.five.work.observers[r])==null?void 0:h.position;if(A===void 0)throw new Error(`getVisible(): observerPosition is ${A}`);const b=Wt(e.position).sub(A).normalize();this.raycaster.set(A,b);const[v]=this.five.model.intersectRaycaster(this.raycaster),C=(g=(p=c.intersectRaycaster)==null?void 0:p.distanceAccuracy)!=null?g:.01;if(v&&v.distance+C<d)return!1}return!(c.angleRange&&e.dimensionType===ye.Three&&Xt(this.getAngle(e),c.angleRange)===!1)})();return n.visible=l,n.visible}}getUnfoldedByPanoIndex(e,o){if(!this.getVisibleByPanoIndex(e))return;const r=this.getCaches({panoIndex:o,id:e.id});if(r.unfolded!==void 0)return r.unfolded;{const a=this.getTagConfig(e).unfoldedConfig;if(!a)return;const l=(()=>{const d=this.getDistance(e);if(typeof a=="function")return a(this.five,{tag:e,distance:d});if(a.keep==="folded")return!1;if(a.keep==="unfolded")return!0;if(a.disableUnfold===!0)return!1;if(a.disableFold===!0)return!0;if(a.unfoldDistance&&Xt(d,a.unfoldDistance)===!1)return!1})();r.unfolded=l;const c=this.getUnfoldedByCamera(e);return c!==void 0?c:r.unfolded}}getUnfoldedByCamera(e){return this.getVisibleByPanoIndex(e)?(()=>{var l;const r=this.getDistance(e),a=this.getTagConfig(e).unfoldedConfig;if(!!a){if(typeof a=="function")return a(this.five,{tag:e,distance:r});if(a.keep==="folded")return!1;if(a.keep==="unfolded")return!0;if(a.disableUnfold===!0)return!1;if(a.disableFold===!0)return!0;if(a.autoUnfold===void 0)return;if(a.autoUnfold.strategy==="ScreenPostion"){const c=this.getTagProject(e);if(c&&Xt(c.x,a.autoUnfold.autoUnfoldProjectX)===!1)return!1}if(a.autoUnfold.strategy==="MinimumDistance"){const u=this.filterPointTag().filter(h=>this.getVisibleByPanoIndex(h)).filter(h=>{const p=this.getTagProject(h);if(!p)return!1;const{x:g,y:A,z:b}=p;return!(Math.abs(b)>1||Math.abs(g)>1||Math.abs(A)>1)}).filter(h=>{var g;const p=this.getTagConfig(h).unfoldedConfig;return typeof p=="object"&&((g=p.autoUnfold)==null?void 0:g.strategy)==="MinimumDistance"}).map(h=>({id:h.id,distance:this.getDistance(h)})).filter(h=>h.distance!==void 0).sort((h,p)=>h.distance-p.distance).findIndex(h=>h.id===e.id);if(u===-1||u<=((l=a.autoUnfold.maxNumber)!=null?l:1)-1===!1)return!1}return!0}})():void 0}getDistance(e,o){var a,l,c;const n=(a=this.five.panoIndex)!=null?a:o;if(n===void 0)throw new Error(`getDistance(): fivePanoIndex is ${n}`);const r=this.getCaches({panoIndex:o,id:e.id});if(r.distance!==void 0)return r.distance;{const d=(c=(l=this.five.work)==null?void 0:l.observers[n])==null?void 0:c.position;if(d===void 0)throw new Error(`getDistance(): observerPosition is ${d}`);const u=(()=>e.pointType===Ae.PointTag?Se(e==null?void 0:e.position):Wt(e.position))(),f=d.distanceTo(u);return r.distance=f,f}}getAngle(e,o){var a,l,c;const n=(a=this.five.panoIndex)!=null?a:o;if(n===void 0)throw new Error(`getDistance(): fivePanoIndex is ${n}`);const r=this.getCaches({panoIndex:o,id:e.id});if(r.angle!==void 0)return r.angle;{const d=(c=(l=this.five.work)==null?void 0:l.observers[n])==null?void 0:c.position;if(d===void 0)throw new Error(`getAngleRange(): observerPosition is ${d}`);const u=(()=>e.pointType===Ae.PointTag?ht(e.normal):Wi(e.position))();if(!u)return;const f=new I.Vector3().copy(d).sub(Wt(e.position)),h=u.angleTo(f)*180/Math.PI;return r.angle=h,r.angle}}getTagConfig(e){var r;if(!e)return(r=this.config.globalConfig)!=null?r:{};const o={};return this.config.contentTypeConfig&&Object.keys(this.config.contentTypeConfig).forEach(a=>{const l=a;if(o[l])return;const c=l.split("-"),[d="Any",u="Any",f="Any"]=c||[];(e.dimensionType===d||d==="Any")&&(e.contentType===u||u==="Any")&&(e.pointType===f||f==="Any")&&(o[l]=this.config.contentTypeConfig[l])}),Ge.default({},this.config.globalConfig,...Object.values(o),e.config)}canBe(e,o){const n=this.getTagConfig(o);if(!n||typeof n!="object")return!0;if(e==="show"||e==="hide"){if(!n.visibleConfig||typeof n.visibleConfig!="object")return!0;if(e==="show"&&n.visibleConfig.keep==="hidden"||e==="hide"&&(n.visibleConfig.keep==="visible"||n.visibleConfig.alwaysShowWhenMovePano))return!1}if(e==="fold"||e==="unfold"){if(!n.unfoldedConfig||typeof n.unfoldedConfig!="object")return!0;if(e==="fold"&&(n.unfoldedConfig.disableFold||n.unfoldedConfig.keep==="unfolded")||e==="unfold"&&(n.unfoldedConfig.disableUnfold||n.unfoldedConfig.keep==="folded"))return!1}return!0}setPointTagPosition(){const e=this.filterPointTag();e.length!==0&&e.forEach(o=>{var r;if(!((r=o.state)!=null&&r.visible)){o.pointTagStyle=void 0;return}const n=this.getTagProject(o);if(!n){o.pointTagStyle=void 0;return}o.pointTagStyle={leftPercent:(n.x+1)/2*100,topPercent:(-n.y+1)/2*100}})}setVisibleByPanoIndex(){this.tags.forEach(e=>{const o=this.getVisibleByPanoIndex(e);e.state&&(e.state.visible=o)})}setUnfoldedByPanoIndex(){this.tags.forEach(e=>{const o=this.getUnfoldedByPanoIndex(e);if(!!e.state&&(o!==void 0&&(e.state.unfolded=o),o&&!e.state.visible)){const n=this.getTagConfig(e);typeof n.unfoldedConfig=="object"&&n.unfoldedConfig.autoUnfoldWhenHide!==!1&&(e.state.unfolded=!1)}})}getTagProject(e){if(!this.getVisibleByPanoIndex(e))return;const n=Wt(e.position),{x:r,y:a,z:l}=n.project(this.five.camera);if(!(l>1))return{x:r,y:a,z:l}}filterPointTag(){return this.tags.filter(e=>e.pointType===Ae.PointTag)}filterTag2D(){return this.tags.filter(e=>e.dimensionType===ye.Two)}filter3DPointTag(){return this.tags.filter(e=>e.dimensionType===ye.Three&&e.pointType===Ae.PointTag)}filter3DTag(){return this.tags.filter(e=>e.dimensionType===ye.Three)}filterPlaneTag(){return this.tags.filter(e=>e.dimensionType===ye.Three&&e.pointType===Ae.PlaneTag)}}const er="1.2.6",So=`DnalogelPlugin-PanoTagPlugin@${er}`,wm=!1,Cm=i=>`${So}--${i}`;class tr extends ym{constructor(e,o){super(e);m(this,"version",er);m(this,"state",{enabled:!0,visible:!0});m(this,"params");m(this,"debug");m(this,"css3DRenderPlugin");m(this,"TagContainerSvelte");m(this,"temporaryState",{visible:!0});m(this,"mediaStore",$t.writable({currentMediaUrl:""}));m(this,"store",{disposers:[],disposed:!1,resizeObserverDisposerAdding:!1,css3DRenderDisposer:new Map});m(this,"staticUrl");m(this,"disposedErrorLog",()=>{console.error(`${So} is disposed`)});this.params=B({debug:!1,mergePluginDefaultConfigToLoadDataConfig:!1,config:this.config,staticConfig:{host:"vrlab-static.ljcdn.com"}},o),this.debug=this.params.debug,this.config=this.params.config,this.staticUrl=(()=>{var r;const n=this.params.staticConfig;if(typeof n=="string")return n;{const a=n.protocol?n.protocol+":":"",l=(r=n.host)!=null?r:"vrlab-static.ljcdn.com",c=n.port?":"+n.port:"";return`${a}//${l}${c}`}})(),Object.assign(window,{__PANOTAGPLUGIN_DEBUG__:this})}load(e,o){var n,r;this.clearTags(),console.log(So,"load:",{data:e}),this.params.mergePluginDefaultConfigToLoadDataConfig?this.config=Ge.default({},this.config,{globalConfig:(n=e.globalConfig)!=null?n:{},contentTypeConfig:(r=e.contentTypeConfig)!=null?r:{}}):(e.globalConfig&&(this.config.globalConfig=e.globalConfig),e.contentTypeConfig&&(this.config.contentTypeConfig=e.contentTypeConfig)),this.addTag(e.tagList,o),this.debug&&eh(this.five,this.tags)}addTag(e,o){const r=(Array.isArray(e)?e:[e]).map(a=>{const l=this.getTagConfig(a);return q(B({},a),{state:B({visible:void 0,unfolded:wm},l.initialState),hooks:new J.Subscribe,clickable:l.clickable})}).filter(a=>a.position);this.tags.push(...r),th(this.five,()=>{var a,l,c;this.store.eventListenerDisposer&&((l=(a=this.store).eventListenerDisposer)==null||l.call(a)),this.state.enabled&&(this.store.eventListenerDisposer=this.addEventListener()),this.addResizeListener(),this.checkPanelTag(),this.setVisibleAndUnfolded({withAnimation:(c=o==null?void 0:o.withAnimation)!=null?c:!0}).then(()=>this.updateRenderAllTags()),this.updateRenderAllTags()})}clearTags(){this.tags=[],this.clearCache(),this.disposeAllCSS3DContainer(),this.updateRenderAllTags()}show(e){return G(this,null,function*(){const{userAction:o=!0,withAnimation:n=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!0},{userAction:o,visibleWithAnimation:n}),this.hooks.emit("show",{userAction:o,withAnimation:n})})}hide(e){return G(this,null,function*(){const{userAction:o=!0,withAnimation:n=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!1},{userAction:o,visibleWithAnimation:n}),this.hooks.emit("hide",{userAction:o,withAnimation:n})})}enable(e){const{userAction:o=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!0},{userAction:o}),this.hooks.emit("enable",{userAction:o})}disable(e){const{userAction:o=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!1},{userAction:o}),this.hooks.emit("disable",{userAction:o})}dispose(){var e,o,n,r,a,l;this.disposeAllCSS3DContainer(),(e=this.TagContainerSvelte)==null||e.$destroy(),this.filter3DTag().forEach(c=>{var d;return(d=c.tag3DContentSvelte)==null?void 0:d.svelteApp.$destroy()}),this.tags=[],(o=this.store.disposers)==null||o.forEach(c=>c==null?void 0:c()),this.store.disposers=[],this.store.disposed=!0,(r=(n=this.store).eventListenerDisposer)==null||r.call(n),this.store.eventListenerDisposer=void 0,(l=(a=this.store).resizeObserverDisposer)==null||l.call(a),this.store.resizeObserverDisposer=void 0,this.store.resizeObserverDisposerAdding=!1,this.clearCache(),this.hooks.emit("dispose")}setState(e,o){if(this.store.disposed)return this.disposedErrorLog();const{userAction:n=!0,visibleWithAnimation:r=!1}=o,a=B({},this.state);this.state=Object.assign(this.state,e),this.store.visibleWithAnimation=r,a.visible!==this.state.visible&&(e.visible?this.handleShow():this.handleHide()),a.enabled!==this.state.enabled&&(e.enabled?this.handleEnable():this.handleDisable()),this.hooks.emit("stateChange",{state:this.state,prevState:a,userAction:n})}changeTagNormalById(e,o){const n=this.getTagById(e);!n||!n.tag3DContentSvelte||(n.tag3DContentSvelte.currentNormal=Se(o),this.updateRenderPlaneTag())}changeDataById(e,o,n=!0){const r=this.getTagById(e);!r||(n?r.data=Ge.default({},r.data,o):Object.assign(r.data,o),this.checkPanelTag(),this.updateRenderAllTags())}changeTagById(e,o,n=!0){const r=this.getTagById(e);!o||(n?Ge.default(r,o):Object.assign(r,o),(r==null?void 0:r.tag3DContentSvelte)&&(o==null?void 0:o.normal)&&(r.tag3DContentSvelte.currentNormal=Se(o.normal)),this.updateRenderAllTags(),this.checkPanelTag())}destroyTagById(e){(Array.isArray(e)?e:[e]).forEach(n=>{const r=this.tags.findIndex(a=>a.id===n);r!==-1&&this.tags.splice(r,1)}),this.updateRenderAllTags()}pauseCurrentMedia(){this.mediaStore.set({currentMediaUrl:""})}setVisibleAndUnfolded(){return G(this,arguments,function*({withAnimation:e}={withAnimation:!1}){return this.setVisibleByPanoIndex(),e?new Promise((o,n)=>{setTimeout(()=>{this.setUnfoldedByPanoIndex(),o()},10)}):(this.setUnfoldedByPanoIndex(),Promise.resolve())})}handleShow(){this.state.visible=!0,this.updateTagContainerVisible()}handleHide(){this.state.visible=!1,this.updateTagContainerVisible()}handleEnable(){this.state.enabled=!0,this.store.eventListenerDisposer=this.addEventListener(),this.updateRenderAllTags()}handleDisable(){var e,o,n;this.state.enabled=!1,(o=(e=this.store).eventListenerDisposer)==null||o.call(e),(n=this.TagContainerSvelte)==null||n.$set({tags:[]}),this.filter3DTag().forEach(r=>{var a;(a=r.tag3DContentSvelte)==null||a.svelteApp.$destroy(),r.tag3DContentSvelte=void 0})}addEventListener(){const{five:e,hooks:o}=this,n=this.handleFiveWantsMoveToPano.bind(this),r=this.handleFiveModeChange.bind(this),a=this.handleFiveCameraUpdate.bind(this),l=this.handleFiveCameraUpdateDebounce(),c=this.handleFivePanoArrived.bind(this),d=this.clickhandler.bind(this);return e.on("wantsMoveToPano",n),e.on("modeChange",r),e.on("cameraUpdate",a),e.on("cameraUpdate",l),e.on("panoArrived",c),o.on("click",d),()=>{e.off("wantsMoveToPano",n),e.off("modeChange",r),e.off("cameraUpdate",a),e.off("cameraUpdate",l),e.off("panoArrived",c),o.off("click",d),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(),o=()=>{!this.state.enabled||(this.show(),this.updateRenderAllTags())},n=()=>{!this.state.enabled||this.hide()},{observe:r,unobserve:a}=Yi(sh(()=>{!this.store.resizeObserverDisposer||n()},500),e),{observe:l,unobserve:c}=Yi(Xi(()=>o(),400),e);return r(),l(),()=>{a(),c()}}handleFiveModeChange(e){e==="Panorama"?this.five.once("panoArrived",()=>this.temporaryShow()):this.temporaryHide()}handleFiveWantsMoveToPano(){this.tags.forEach(e=>{const o=this.getTagConfig(e);typeof o.visibleConfig=="object"&&o.visibleConfig.keep?e.temporaryState=q(B({},e.temporaryState),{visible:o.visibleConfig.keep==="visible"}):typeof o.visibleConfig=="object"&&o.visibleConfig.alwaysShowWhenMovePano?e.temporaryState=q(B({},e.temporaryState),{visible:!0}):e.temporaryState=q(B({},e.temporaryState),{visible:!1})}),this.updateRenderAllTags()}temporaryShow(){this.temporaryState.visible=!0}temporaryHide(){this.temporaryState.visible=!1}clickhandler(e){if(e.target!=="TagPoint")return;if(!e.tag.state)return console.warn("Clickhandler: params.tag.state is undefined");const o=this.canBe("fold",e.tag),n=this.canBe("unfold",e.tag);o&&n&&(e.tag.state.unfolded=!e.tag.state.unfolded,e.tag.state.unfolded&&this.tags.forEach(r=>{r.id!==e.tag.id&&r.state&&this.canBe("fold",r)&&(r.state.unfolded=!1)}),this.updateRenderAllTags())}updateRenderAllTags(){this.updateRenderPointTag(),this.updateRenderPlaneTag()}updateTagContainerVisible(){var e;(e=this.TagContainerSvelte)==null||e.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation}),this.filter3DTag().forEach(o=>{var n;(n=o.tag3DContentSvelte)==null||n.svelteApp.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation})})}handleFiveCameraUpdateDebounce(){return Xi(()=>{this.setUnfoldedByCamera(),this.updateRenderAllTags()},100)}handleFiveCameraUpdate(){this.updateRenderPointTag()}handleFivePanoArrived(){return G(this,null,function*(){yield this.setVisibleAndUnfolded(),this.tags.forEach(e=>{e.temporaryState=q(B({},e.temporaryState),{visible:!0})}),this.updateRenderAllTags()})}setUnfoldedByCamera(){let e=!1;this.tags.forEach(o=>{const n=this.getUnfoldedByCamera(o);!o.state||n!==void 0&&(n===!0&&(e=!0),o.state.unfolded=n)}),e&&this.tags.forEach(o=>{const n=this.getTagConfig(o).unfoldedConfig;typeof n=="object"&&(n.autoUnfold||n.disableFold||n.keep)||o.state&&(o.state.unfolded=!1)})}updateRenderPointTag(){var o;const e=this.filterPointTag();if(this.setPointTagPosition(),this.TagContainerSvelte)this.TagContainerSvelte.$set({tags:e,state:this.state,temporaryState:this.temporaryState});else{const n=(o=this.five.getElement())==null?void 0:o.parentElement;if(!n)return console.error("updateRenderPlaneTag: tag2DContainer not found");this.TagContainerSvelte=new Am({target:n,props:{hooks:this.hooks,tags:e,state:this.state,temporaryState:this.temporaryState,mediaStore:this.mediaStore}})}}updateRenderPlaneTag(){[...this.filterPlaneTag(),...this.filter3DPointTag()].forEach(o=>{var n;if(o.tag3DContentSvelte){const{svelteApp:r,domContainer:a,initialNormal:l,currentNormal:c}=o.tag3DContentSvelte;if(r.$set({tag:o,hooks:this.hooks,state:this.state,temporaryState:this.temporaryState}),!l.equals(c)){const d=new M.Quaternion().setFromUnitVectors(l,c);a.css3DObject.setRotationFromQuaternion(d)}}else{if(((n=o.state)==null?void 0:n.visible)===!1)return;if(this.css3DRenderPlugin||(this.css3DRenderPlugin=et(this.five)),o.pointType===Ae.PointTag&&!o.normal)return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");const r=o.pointType===Ae.PlaneTag?o.position:oh(this.five.camera.position,Se(o.position),Se(o.normal)),a=o.pointType===Ae.PlaneTag?Wi(o.position):Se(o.normal),l=this.getTagConfig(o).tag3DConfig,c=this.css3DRenderPlugin.create3DDomContainer(r,l);if(!c)return;this.store.css3DRenderDisposer.set(o.id,c.dispose),o.tag3DContentSvelte={svelteApp:new Yn({target:c.container,props:{tag:o,hooks:this.hooks,state:this.state,mediaStore:this.mediaStore,temporaryState:this.temporaryState}}),domContainer:c,initialNormal:a,currentNormal:a}}}),this.checkPanelTag()}disposeAllCSS3DContainer(){for(const[e,o]of this.store.css3DRenderDisposer)o==null||o();this.store.css3DRenderDisposer=new Map}checkPanelTag(){this.tags.forEach(e=>{var o;e.dimensionType===ye.Two&&e.pointType===Ae.PointTag&&((o=e.tag3DContentSvelte)==null||o.domContainer.dispose(),e.tag3DContentSvelte=void 0)});for(const[e,o]of this.store.css3DRenderDisposer){const n=this.getTagById(e);(!n||n.dimensionType!==ye.Three)&&(o==null||o(),this.store.css3DRenderDisposer.delete(e))}}}const Pm=(i,t)=>new tr(i,t);class Lo extends M.Object3D{constructor(e,o){var n;super();m(this,"originObject3D");m(this,"onRender");this.originObject3D=e,this.onRender=(n=o==null?void 0:o.onRender)!=null?n:()=>{}}get helperObject(){return this}render(){this.onRender()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}updatePosition(){this.position.copy(this.originObject3D.position)}updateQuaternion(){this.quaternion.copy(this.originObject3D.quaternion)}applyHelperScaleMatrix4(e,o){this.scale.applyMatrix4(e)}applyHelperQuaternion(e,o){this.applyQuaternion(e)}}class Im extends Lo{}class Em extends Lo{}class km extends Lo{}class xm extends km{}class Dm extends I.Group{constructor(e){super();m(this,"direction");this.direction=e||"x"}}class or extends I.Mesh{constructor(e,o,n){super(e,o);m(this,"direction");this.direction=n||"x"}}function Sm(i,t){const{offsetWidth:e,offsetHeight:o}=t,{top:n,left:r}=t.getBoundingClientRect();return Object.assign(new I.Vector2,{x:(i.x-r)/e*2-1,y:-(i.y-n)/o*2+1})}function _o(i,t,e){if(!t||!e||!i)return;const o=Sm(t,e);if(Math.abs(o.x)===1||Math.abs(o.y)===1)return;const n=new I.Raycaster;return n.setFromCamera(o,i),n}function Lm(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 zo extends Dm{constructor(e){var u;super(e.direction);m(this,"line");m(this,"arrow");m(this,"lineHeight",.4);m(this,"arrowHeight",.1);this.name="ArrowGroup";const o=new I.Color((u=e.color)!=null?u:16214315),n=new I.MeshBasicMaterial({color:o,depthTest:!1,opacity:1,transparent:!0,side:I.DoubleSide}),r=new I.ConeGeometry(.04,.1,32),a=new or(r,n.clone(),e.direction);a.name=`arrow-${e.direction}`,this.arrow=a;const l=.004,c=new I.CylinderGeometry(l,l,.4,32),d=new or(c,n.clone(),e.direction);d.name=`line-${e.direction}`,this.line=d,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 Mo={X:15618642,Y:4765519,Z:4227839};class Le{static get X(){return new I.Color(Mo.X).convertSRGBToLinear().clone()}static get Y(){return new I.Color(Mo.Y).convertSRGBToLinear().clone()}static get Z(){return new I.Color(Mo.Z).convertSRGBToLinear().clone()}}class _m extends Im{constructor(e){super(e);m(this,"xArrow",new zo({direction:"x",color:Le.X}));m(this,"yArrow",new zo({direction:"y",color:Le.Y}));m(this,"zArrow",new zo({direction:"z",color:Le.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 Je(i,t){return zm(document.createElement(t!=null?t:"div"),i)}function zm(i,t){if(!t)return i;for(const e in t)e&&t[e]&&(i.style[e]=t[e]);return i}function Mm(i){const t=Je(B({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:(r,a)=>{t.style.left=r,t.style.top=a,e()}}}class jm extends Em{constructor(e,o){var n;super(e);m(this,"yzCircle",new jo({direction:"x",color:Le.X}));m(this,"xzCircle",new jo({direction:"y",color:Le.Y}));m(this,"xyCircle",new jo({direction:"z",color:Le.Z}));m(this,"xRingHelper",new Bo({direction:"x"}));m(this,"yRingHelper",new Bo({direction:"y"}));m(this,"zRingHelper",new Bo({direction:"z"}));m(this,"xAngleHelper",new To({direction:"x",color:Le.X}));m(this,"yAngleHelper",new To({direction:"y",color:Le.Y}));m(this,"zAngleHelper",new To({direction:"z",color:Le.Z}));m(this,"angleTips");m(this,"container");o&&(this.container=o==null?void 0:o.container,this.angleTips=Mm({display:"none"}),(n=this.container)==null||n.appendChild(this.angleTips.element)),this.show()}updateAngleHelperQuaternion(){this.xAngleHelper.quaternion.copy(this.yzCircle.quaternion),this.yAngleHelper.quaternion.copy(this.xzCircle.quaternion),this.zAngleHelper.quaternion.copy(this.xyCircle.quaternion),this.xRingHelper.quaternion.copy(this.yzCircle.quaternion),this.yRingHelper.quaternion.copy(this.xzCircle.quaternion),this.zRingHelper.quaternion.copy(this.xyCircle.quaternion)}applyHelperQuaternion(e,o){this.yzCircle.applyQuaternion(e),this.xzCircle.applyQuaternion(e),this.xyCircle.applyQuaternion(e),this.xAngleHelper.baseAxes.applyQuaternion(e),this.yAngleHelper.baseAxes.applyQuaternion(e),this.zAngleHelper.baseAxes.applyQuaternion(e)}hide(){this.remove(this.yzCircle,this.xzCircle,this.xyCircle,this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper)}show(){var e;this.add(this.xyCircle,this.xzCircle,this.yzCircle),this.remove(this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper),(e=this.angleTips)==null||e.hide()}showDraggingHelper(e){var o;this.hide(),this.add(...this.filterRingHelper(e)),this.add(...this.filterAngleHelper(e)),(o=this.angleTips)==null||o.show()}dispose(){var e,o;this.remove(this.yzCircle,this.xzCircle,this.xyCircle,this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper),(e=this.angleTips)!=null&&e.element&&((o=this.container)==null||o.removeChild(this.angleTips.element))}filterRingHelper(e){return[this.xRingHelper,this.yRingHelper,this.zRingHelper].filter(o=>e.includes(o.direction))}filterAngleHelper(e){return[this.xAngleHelper,this.yAngleHelper,this.zAngleHelper].filter(o=>e.includes(o.direction))}}class jo extends I.Mesh{constructor(e){var o;super();m(this,"direction");m(this,"gapAngle",.02);m(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:(o=e.color)!=null?o:16777215,transparent:!0,side:I.DoubleSide,depthTest:!1}),this.direction=e.direction,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`,this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}class Bo extends I.Group{constructor(e){super();m(this,"direction");this.direction=e.direction;const o=.015,n=new Array(8).fill(null).map((r,a)=>{const l=new I.RingGeometry(.25,.3,20,8,Math.PI/4*a+o,Math.PI/4-o*2),c=new I.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,transparent:!0,side:I.DoubleSide}),d=new I.Mesh(l,c);return d.name=`AxesDashedRing-${this.direction}-${a}`,d});this.add(...n),this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}class To extends I.Mesh{constructor(e){var n;super();m(this,"direction");m(this,"baseAxes");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 o=.3+5e-4;this.geometry=new I.CircleGeometry(o,48,0,1e-4),this.material=new I.MeshBasicMaterial({opacity:.4,color:(n=e.color)!=null?n:16777215,depthTest:!1,transparent:!0,side:I.DoubleSide}),this.direction=e.direction,this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}function Bm(){const i=Je({width:"100%",height:"100%",left:"0",top:"0",position:"absolute",pointerEvents:"none"}),t=Je({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}),e=Je({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 o="-4px",n={direction:"nesw",element:Qe({cursor:"nesw-resize",left:o,bottom:o})},r={direction:"ns",element:Qe({cursor:"ns-resize",bottom:o})},a={direction:"nwse",element:Qe({cursor:"nwse-resize",right:o,bottom:o})},l={direction:"ew",element:Qe({cursor:"ew-resize",right:o})},c={direction:"nesw",element:Qe({cursor:"nesw-resize",right:o,top:o})},d={direction:"ns",element:Qe({cursor:"ns-resize",top:o})},u={direction:"nwse",element:Qe({cursor:"nwse-resize",left:o,top:o})},f={direction:"ew",element:Qe({cursor:"ew-resize",left:o})};return new Array(r,l,d,f,n,a,c,u).forEach(p=>t.appendChild(p.element)),{container:i,squares:[n,r,a,l,c,d,u,f]}}function Qe(i){const t=Je(B({background:"#FFFFFF",width:"9px",height:"9px",position:"absolute",pointerEvents:"none"},i)),e=Je({width:"15px",height:"15px",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"}),o=Je({width:"15px",height:"15px",cursor:i==null?void 0:i.cursor,pointerEvents:"auto",background:"transparent"});return o.draggable=!0,e.appendChild(o),t.appendChild(e),t}class Tm extends xm{constructor(e,o,n,r){super(e);m(this,"points",[]);m(this,"cornerPositions",[]);m(this,"css3DInstance");m(this,"plane");m(this,"css3DRenderer",new ss);m(this,"camera");m(this,"scene");m(this,"container");m(this,"enabled",!1);this.camera=n,this.scene=r,this.container=o,this.initRectangleScaleHelper()}get helperObject(){var e;if(!((e=this.css3DInstance)!=null&&e.css3DObject))throw new Error("css3DInstance is not initialized");return this.css3DInstance.css3DObject}updatePosition(){var e;this.helperObject.position.copy(this.originObject3D.position),(e=this.plane)==null||e.position.copy(this.originObject3D.position)}updateQuaternion(){var e;(e=this.plane)==null||e.quaternion.copy(this.originObject3D.quaternion)}applyMatrix4(e){var o;super.applyMatrix4(e),this.helperObject.applyMatrix4(e),(o=this.plane)==null||o.applyMatrix4(e),this.cornerPositions.forEach(n=>n.applyMatrix4(e))}showDraggingHelper(){}applyHelperScaleMatrix4(e,o){var n;(n=this.plane)==null||n.scale.applyMatrix4(e),this.helperObject.applyScaleMatrix4(e)}updatePoints(){const e=this.calculatePointPosition(this.cornerPositions);this.points.forEach((o,n)=>{o.position.copy(e[n])})}applyHelperQuaternion(e,o){var r;const n=(r=this.css3DInstance)==null?void 0:r.css3DObject;if(n){const a=new I.Vector3().subVectors(n.position,o).applyQuaternion(e).add(o);n.position.copy(a),n.applyQuaternion(e)}if(this.plane){const a=new I.Vector3().subVectors(this.plane.position,o).applyQuaternion(e).add(o);this.plane.position.copy(a),this.plane.applyQuaternion(e)}this.cornerPositions.forEach(a=>{const l=new I.Vector3().subVectors(a,o).applyQuaternion(e).add(o);a.copy(l)})}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 u;const e=this.getCornerPositions();if(!e)return;this.cornerPositions=e;const o=this.css3DRenderer.create3DElement(this.camera,e,{ratio:.003});if(!o)return;this.css3DInstance=o,o.appendToElement(this.container);const n=o.css3DObject.container,{container:r,squares:a}=Bm();this.points=a.map((f,h)=>({direction:f.direction,point:f.element,position:this.calculatePointPosition(e)[h]})),n.insertBefore(r,(u=n.children[0])!=null?u:null);const l=new I.PlaneGeometry(o.css3DObject.width,o.css3DObject.height),c=new I.MeshBasicMaterial({color:0,opacity:.15,transparent:!0,side:I.DoubleSide}),d=new I.Mesh(l,c);this.scene.add(d),this.updatePosition()}getCornerPositions(){const{originObject3D:e}=this;if(e instanceof Fe.CSS3DObject){if(e.isCSS3DObjectPlus)return e.cornerPoints;console.error("\u6682\u65F6\u53EA\u652F\u6301 CSS3DRenderPlugin \u751F\u6210\u7684\u7269\u4F53")}else 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)]}}new I.Vector3;function $(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)}$.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)},$.eventNames=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu","touchstart","touchend"],$.prototype._getRelativeMouseXY=function(i){var t=i.target||i.srcElement;t.nodeType===3&&(t=t.parentNode);var e={x:0,y:0},o=t,n=getComputedStyle(o,null);e.y+=parseInt(n.getPropertyValue("padding-top"),10),e.x+=parseInt(n.getPropertyValue("padding-left"),10);do e.x+=o.offsetLeft,e.y+=o.offsetTop,n=getComputedStyle(o,null),e.x+=parseInt(n.getPropertyValue("border-left-width"),10),e.y+=parseInt(n.getPropertyValue("border-top-width"),10);while(o=o.offsetParent);var r={width:t===window?window.innerWidth:t.offsetWidth,height:t===window?window.innerHeight:t.offsetHeight};return{x:Number((i.pageX-e.x)/r.width)*2-1,y:-((i.pageY-e.y)/r.height)*2+1}},$.prototype._objectCtxInit=function(i){i._3xDomEvent={}},$.prototype._objectCtxDeinit=function(i){delete i._3xDomEvent},$.prototype._objectCtxIsInit=function(i){return!!i._3xDomEvent},$.prototype._objectCtxGet=function(i){return i._3xDomEvent},$.prototype.camera=function(i){return i&&(this._camera=i),this._camera},$.prototype.bind=function(i,t,e,o){console.assert($.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var n=this._objectCtxGet(i);n[t+"Handlers"]||(n[t+"Handlers"]=[]),n[t+"Handlers"].push({callback:e,useCapture:o}),this._boundObjs[t]===void 0&&(this._boundObjs[t]=[]),this._boundObjs[t].push(i)},$.prototype.addEventListener=$.prototype.bind,$.prototype.unbind=function(i,t,e,o){console.assert($.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var n=this._objectCtxGet(i);n[t+"Handlers"]||(n[t+"Handlers"]=[]);for(var r=n[t+"Handlers"],a=0;a<r.length;a++){var l=r[a];if(e==l.callback&&o==l.useCapture){r.splice(a,1);break}}var c=this._boundObjs[t].indexOf(i);console.assert(c!==-1),this._boundObjs[t].splice(c,1)},$.prototype.removeEventListener=$.prototype.unbind,$.prototype._bound=function(i,t){var e=this._objectCtxGet(t);return e?!!e[i+"Handlers"]:!1},$.prototype._onMove=function(i,t,e,o){var n=this._boundObjs[i];if(!(n===void 0||n.length===0)){var r=new I.Vector2;r.set(t,e),this._raycaster.setFromCamera(r,this._camera);var a=this._raycaster.intersectObjects(n),l=this._selected;if(a.length>0){var c,d,u,f=a[0],h=f.object;this._selected=h,u=this._bound("mousemove",h),l!=h&&(c=this._bound("mouseover",h),d=l&&this._bound("mouseout",l))}else d=l&&this._bound("mouseout",l),this._selected=null;u&&this._notify("mousemove",h,o,f),c&&this._notify("mouseover",h,o,f),d&&this._notify("mouseout",l,o,f)}},$.prototype._onEvent=function(i,t,e,o){var n=this._boundObjs[i];if(!(n===void 0||n.length===0)){var r=new I.Vector2;r.set(t,e),this._raycaster.setFromCamera(r,this._camera);var a=this._raycaster.intersectObjects(n,!0);if(a.length!==0){for(var l=a[0],c=l.object,d=this._objectCtxGet(c),u=c.parent;typeof d=="undefined"&&u;)d=this._objectCtxGet(u),u=u.parent;!d||this._notify(i,c,o,l)}}},$.prototype._notify=function(i,t,e,o){var n=this._objectCtxGet(t),r=n?n[i+"Handlers"]:null;if(console.assert(arguments.length===4),!n||!r||r.length===0){t.parent&&this._notify(i,t.parent,e,o);return}for(var r=n[i+"Handlers"],a=0;a<r.length;a++){var l=r[a],c=!0;l.callback({type:i,target:t,origDomEvent:e,intersect:o,stopPropagation:function(){c=!1}}),!!c&&l.useCapture===!1&&t.parent&&this._notify(i,t.parent,e,o)}},$.prototype._onMouseDown=function(i){return this._onMouseEvent("mousedown",i)},$.prototype._onMouseUp=function(i){return this._onMouseEvent("mouseup",i)},$.prototype._onMouseEvent=function(i,t){var e=this._getRelativeMouseXY(t);this._onEvent(i,e.x,e.y,t)},$.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)},$.prototype._onClick=function(i){this._onMouseEvent("click",i)},$.prototype._onDblClick=function(i){this._onMouseEvent("dblclick",i)},$.prototype._onContextmenu=function(i){this._onMouseEvent("contextmenu",i)},$.prototype._onTouchStart=function(i){return this._onTouchEvent("touchstart",i)},$.prototype._onTouchEnd=function(i){return this._onTouchEvent("touchend",i)},$.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)}},$.prototype._onTouchEvent=function(i,t){if(t.touches.length==1){t.preventDefault();var e=Number(t.touches[0].pageX/window.innerWidth)*2-1,o=-(t.touches[0].pageY/window.innerHeight)*2+1;this._onEvent(i,e,o,t)}};let Ze=null;class Qo{constructor(t,e,o,n,r,a,l){m(this,"hooks",new ut);m(this,"helperObject3D");m(this,"originObject3D");m(this,"camera");m(this,"model");m(this,"scene");m(this,"container");m(this,"domEvents");m(this,"isDragging",!1);m(this,"onRender");m(this,"enabled",!1);m(this,"onWantsTapGesture",t=>{if(this.getIntersectObject(t))return!1});this.camera=t,this.model=e,this.originObject3D=o,this.helperObject3D=n,this.container=r,this.scene=a,this.domEvents=new $(t,r),this.onRender=l!=null?l:()=>{},this.initialHelperPosition(),this.initialHelperQuaternion(),this.enable()}initialHelperPosition(){this.helperObject3D.updatePosition()}initialHelperQuaternion(){this.helperObject3D.updateQuaternion()}enable(){this.enabled||(this.enabled=!0,this.scene.add(this.helperObject3D),this.render())}disable(){!this.enabled||(this.enabled=!1,this.scene.remove(this.helperObject3D),this.render())}show(){this.helperObject3D.show(),this.render()}hide(){this.helperObject3D.hide(),this.render()}dispose(){this.helperObject3D.dispose(),this.scene.remove(this.helperObject3D),this.render()}setOpacity(t){this.setOriginOpacityProperty();const e=this.originObject3D;if(e instanceof I.Mesh&&(e.material.opacity=t),e.isCSS3DObjectPlus){const o=e;o.container.style.opacity=t.toString()}this.render()}restoreOpacity(){if(Ze===null)return;const t=this.originObject3D;if(t instanceof I.Mesh&&(t.material.opacity=Ze.opacity),t.isCSS3DObjectPlus){const e=t;e.container.style.opacity=Ze.opacity.toString()}this.render()}setOriginOpacityProperty(){var t,e;if(Ze===null){const o=this.originObject3D;o instanceof I.Mesh&&(Ze={opacity:o.material.opacity}),o instanceof es&&(Ze={opacity:(t=o.container.style.opacity)!=null?t:1}),o.isCSS3DObjectPlus&&(Ze={opacity:Number((e=o.container.style.opacity)!=null?e:1)})}}updateHelperPosition(){this.helperObject3D.updatePosition()}updateHelperQuaternion(){this.helperObject3D.updateQuaternion()}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,o){if(this.isDragging)return!1}render(){this.onRender()}hoverListener(t,e=16777215,o=1){const n=(Array.isArray(t)?t:[t]).filter(Ue),r=[];for(const a of n)if(a instanceof I.Mesh||a instanceof I.Group){const l=a instanceof I.Group?a.children.filter(h=>h instanceof I.Mesh):[a];l.forEach(h=>{h.__originalColor__=h.material.color.clone(),h.__originalOpacity__=h.material.opacity});const c=()=>{l.forEach(h=>{h.material.color.set(e),h.material.opacity=o}),this.render()},d=()=>{l.forEach(h=>{h.material.color.copy(h.__originalColor__),h.material.opacity=h.__originalOpacity__}),this.render()},u=()=>{this.isDragging||c()},f=()=>{this.isDragging||d()};for(const h of l)this.domEvents.addEventListener(h,"mouseover",u),this.domEvents.addEventListener(h,"mouseout",f),this.hooks.on("moveStart",c),this.hooks.on("moveEnd",d),this.hooks.on("rotateEnd",d),r.push(()=>{this.domEvents.removeEventListener(h,"mouseover",u),this.domEvents.removeEventListener(h,"mouseout",f),this.hooks.off("moveStart",c),this.hooks.off("moveEnd",d),this.hooks.off("rotateEnd",d)})}return()=>r.forEach(a=>a==null?void 0:a())}getIntersectObject(t){const e=this.camera.position,o=this.helperObject3D;if(!o)return;let n;const r=t.intersectObject(o,!0)[0];if(!!r&&(n=r,n.object=o,!!n)){if(this.model.intersectRaycaster){const a=this.model.intersectRaycaster(t)[0];if(a&&a.point.distanceTo(e)<n.point.distanceTo(e))return}return n.object}}}class Qm extends Qo{constructor(...e){super(...e);m(this,"startInfo");const o=this.helperObject3D;this.hoverListener([o.xArrow,o.yArrow,o.zArrow]);const n=this.dragStart.bind(this),r=this.dragging.bind(this),a=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",n),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)}dragStart(e){if(this.isDragging)return;const o=e==null?void 0:e.intersect;if(!o)return this.dragEnd();const n=(o==null?void 0:o.object).direction;if(!n)return this.dragEnd();const r=new I.Vector3(1,0,0).applyQuaternion(this.helperObject3D.quaternion),a=new I.Vector3(0,1,0).applyQuaternion(this.helperObject3D.quaternion),l=new I.Vector3(0,0,1).applyQuaternion(this.helperObject3D.quaternion),c=(()=>{switch(n){case"x":return r;case"y":return a;case"z":return l}})(),d=(()=>{switch(n){case"x":case"y":return l;case"z":return r}})(),u=o.point.clone(),f=new I.Plane;f.setFromNormalAndCoplanarPoint(d,u),this.startInfo={startVectorProject:u.clone().projectOnVector(c),directionVector:c,plane:f},this.helperObject3D.showDraggingHelper([n]),this.hooks.emit("moveStart"),this.isDragging=!0,console.log("%c MoveController dragStart","color: #e5af2e")}dragging(e){if(!this.isDragging||!this.startInfo)return;const o=_o(this.camera,e,this.container);return o?(console.log("%c RotateController dragging","color: #49de1b"),this.move(o),!1):this.dragEnd()}move(e){if(!this.startInfo)return this.dragEnd();const{plane:o,directionVector:n,startVectorProject:r}=this.startInfo,a=this.originObject3D,l=e.ray.intersectPlane(o,new I.Vector3);if(!l)return;const c=l.clone().projectOnVector(n),d=c.clone().sub(r),u=new I.Matrix4;u.setPosition(d),a.applyMatrix4(u),this.helperObject3D.applyMatrix4(u),r.copy(c),this.hooks.emit("positionUpdate",{matrix4:u})}dragEnd(){!this.isDragging||(console.log("%c MoveController dragEnd","color: #e94e4e"),this.startInfo=void 0,this.isDragging=!1,this.helperObject3D.show(),this.hooks.emit("moveEnd"))}}class Oo{constructor(t,e,o,n){m(this,"helperController");m(this,"five");m(this,"onFiveWantsTapGesture",t=>{if(!this.helperController)return;const e=this.helperController.onWantsTapGesture(t);return this.five.needsRender=!0,e});m(this,"onFiveWantsGesture",(...t)=>{if(!this.helperController)return;const e=this.helperController.onWantsGesture(...t);return this.five.needsRender=!0,e});const{camera:r,model:a,scene:l}=t,c=t.getElement();if(this.five=t,!r||!a||!c||!l)return;const d=()=>{t.needsRender=!0};this.helperController=new e(r,a,o,n,c,l,d),t.on("wantsTapGesture",this.onFiveWantsTapGesture),t.on("wantsGesture",this.onFiveWantsGesture)}}const Ro="Object3DHelper@v1.0.1",Om=()=>{console.error(`${Ro} is disposed`)},Rm=()=>{console.warn(`${Ro} is disabled`)},Fm=()=>{console.error(`${Ro} is disabled`)};class Hm{constructor(t,e){m(this,"controllers",{});m(this,"state",{visible:!0,enabled:!0,disposed:!1});m(this,"hooks",new ut);m(this,"helpers");m(this,"eventListener",{});m(this,"handlePositionUpdate",(t,...e)=>{var r,a,l,c;const[o]=e,n=o==null?void 0:o.matrix4;n&&(t!==this.controllers.moveController&&((r=this.controllers.moveController)==null||r.applyHelperMatrix4(n)),t!==this.controllers.rotateController&&((a=this.controllers.rotateController)==null||a.applyHelperMatrix4(n)),t!==this.controllers.scaleController&&((l=this.controllers.scaleController)==null||l.applyHelperMatrix4(n)),(c=this.helpers.outlineHelper)==null||c.applyMatrix4(n))});m(this,"handleScaleUpdate",(t,...e)=>{var r,a;const[o]=e,n=o==null?void 0:o.matrix4;n&&((r=this.controllers.scaleController)==null||r.applyHelperScaleMatrix4(n,o),(a=this.helpers.outlineHelper)==null||a.scale.applyMatrix4(n))});m(this,"handleRotateUpdate",(t,...e)=>{var n,r,a,l;const[o]=e;if(o){const{quaternion:c,origin:d}=o;c&&(t!==this.controllers.moveController&&((n=this.controllers.moveController)==null||n.applyHelperQuaternion(c,d)),t!==this.controllers.rotateController&&((r=this.controllers.rotateController)==null||r.applyHelperQuaternion(c,d)),t!==this.controllers.scaleController&&((a=this.controllers.scaleController)==null||a.applyHelperQuaternion(c,d)),(l=this.helpers.outlineHelper)==null||l.applyQuaternion(c))}});t&&this.addControllers(t),this.helpers=e!=null?e:{},this.setState(this.state)}show(t){return G(this,null,function*(){this.setState({visible:!0},t)})}hide(t){return G(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 Om();if(!this.state.enabled&&t.enabled!==!0&&t.disposed!==!0)return Fm();const o=B({},this.state);this.state=B(B({},this.state),t),t.disposed!==void 0&&t.disposed!==o.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:o})}addControllers(t){this.controllers=B(B({},this.controllers),t),this.addEventListener(),this.setState(this.state)}addHelpers(t){this.helpers=B(B({},this.helpers),t)}getCurrentState(){return this.state}addEventListener(){for(const t in this.controllers){if(!t)continue;const e=t;this.eventListener[e]||(this.eventListener[e]=(()=>{const o=this.controllers[e];if(!o)return;const n=()=>this.handleStart(o),r=()=>this.handleEnd(o),a=(...d)=>this.handlePositionUpdate(o,...d),l=(...d)=>this.handleRotateUpdate(o,...d),c=(...d)=>this.handleScaleUpdate(o,...d);return o.hooks.on("moveStart",n),o.hooks.on("rotateStart",n),o.hooks.on("scaleStart",n),o.hooks.on("positionUpdate",a),o.hooks.on("rotateUpdate",l),o.hooks.on("scaleUpdate",c),o.hooks.on("moveEnd",r),o.hooks.on("rotateEnd",r),o.hooks.on("scaleEnd",r),()=>{o.hooks.off("moveStart",n),o.hooks.off("rotateStart",n),o.hooks.off("scaleStart",n),o.hooks.off("positionUpdate",a),o.hooks.off("rotateUpdate",l),o.hooks.off("scaleUpdate",c),o.hooks.off("moveEnd",r),o.hooks.off("rotateEnd",r),o.hooks.off("scaleEnd",r)}})())}}handleEnd(t){t&&this.setOtherHelpersVisible(!0,t)}handleStart(t){t&&this.setOtherHelpersVisible(!1,t)}setOtherHelpersVisible(t,e){var o,n,r,a;t?((r=this.controllers.moveController)==null||r.helperObject3D.show(),(a=this.controllers.rotateController)==null||a.helperObject3D.show()):(e!==this.controllers.moveController&&((o=this.controllers.moveController)==null||o.helperObject3D.hide()),e!==this.controllers.rotateController&&((n=this.controllers.rotateController)==null||n.helperObject3D.hide()))}handleEnable(t,e=!0){t?(this.everyControllerDo(o=>{o.enable()}),this.hooks.emit("enable",{userAction:e})):(this.everyControllerDo(o=>{o.disable(),o.restoreOpacity()}),this.hooks.emit("disable",{userAction:e})),this.state.enabled=t}handleVisible(t,e=!0){t?(this.everyControllerDo(o=>{o.show()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:e}))):(this.everyControllerDo(o=>{o.hide(),o.restoreOpacity()}),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(o=>{o==null||o.dispose(),o==null||o.restoreOpacity()});for(const o in this.controllers){if(!o)continue;const n=o;(e=(t=this.eventListener)[n])==null||e.call(t)}}actionIfStateIsEnabled(t,e){if(this.state.enabled)return t();e!=null&&e.warnLog&&Rm()}}class Gm extends Qo{constructor(...e){super(...e);m(this,"startInfo");m(this,"lastRotation");m(this,"rotations",[]);m(this,"helperObject3DQuaternion",this.originObject3D.quaternion.clone());const o=this.helperObject3D;this.hoverListener([o.xyCircle,o.xzCircle,o.yzCircle]);const n=this.dragStart.bind(this),r=this.dragging.bind(this),a=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",n),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)}initialHelperQuaternion(){this.helperObject3D.updateAngleHelperQuaternion(),this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion)}dragStart(e){if(this.isDragging)return;const o=e==null?void 0:e.intersect;if(!o)return this.dragEnd();const n=(o==null?void 0:o.object).direction;if(!n)return this.dragEnd();this.helperObject3D.updateAngleHelperQuaternion();const r=o.point,a=this.originObject3D.position.clone(),l=this.getAngleHelper(n);this.setTipsAngle(0);const c=r.clone();c.y+=.2,this.setTipsPosition(c);const d=new I.Vector3(1,0,0).applyQuaternion(this.helperObject3DQuaternion),u=new I.Vector3(0,1,0).applyQuaternion(this.helperObject3DQuaternion),f=new I.Vector3(0,0,1).applyQuaternion(this.helperObject3DQuaternion),h=(()=>{switch(n){case"x":return d;case"y":return u;case"z":return f}})(),p=new I.Plane().setFromNormalAndCoplanarPoint(h,r),g=new I.Vector3;p.projectPoint(r.clone(),g);const A=g.clone().sub(a),b=A.clone(),v=A.angleTo(l.baseAxes);this.setAngleHelperStart(n,v),this.setAngleHelperLength(n,0),this.rotations.push({vector:A.clone(),direction:!0}),this.startInfo={direction:n,startVector:A,staticStartVector:b,plane:p,angleHelper:l},this.helperObject3D.showDraggingHelper([n]),this.hooks.emit("rotateStart"),this.isDragging=!0,console.log(`%c RotateController dragStart ${n}`,"color: #e5af2e")}dragging(e){var n;if(!this.isDragging)return;const o=_o(this.camera,e,this.container);return o?(console.log(`%c RotateController dragging ${(n=this.startInfo)==null?void 0:n.direction}`,"color: #49de1b"),this.rotate(o),!1):this.dragEnd()}rotate(e){if(!this.startInfo)return this.dragEnd();const{startVector:o,plane:n,angleHelper:r,staticStartVector:a,direction:l}=this.startInfo,c=this.originObject3D,d=e.ray.intersectPlane(n,new I.Vector3);if(!d)return;const u=c.position.clone(),f=new I.Vector3;n.projectPoint(d.clone(),f);const h=f.clone().sub(u);if(o.angleTo(h)===0||(this.lastRotation===void 0&&(this.lastRotation={angle:0}),this.rotations.length===0))return;const p=(()=>{if(this.rotations.length===1)return h.angleTo(r.baseAxes)>a.angleTo(r.baseAxes);{const A=this.rotations[this.rotations.length-1],b=this.rotations[this.rotations.length-2],v=h.angleTo(b.vector),C=h.angleTo(A.vector),y=A.vector.angleTo(b.vector);if(y===0||C===0||v===0)return;if(v>C&&v>y)return A.direction;if(v<y&&C<y||v<C&&C>y)return!A.direction}})();if(p===void 0)return console.warn("rotationDirection is undefined");this.rotations.push({vector:h,direction:p}),this.rotations=this.rotations.slice(-2),this.lastRotation.angle=this.lastRotation.angle+h.angleTo(o)*(p?1:-1),this.setAngleHelperLength(l,this.lastRotation.angle),this.setTipsAngle(this.lastRotation.angle/Math.PI*180);const g=new I.Quaternion().setFromUnitVectors(o.clone().normalize(),h.clone().normalize());c.applyQuaternion(g),this.helperObject3D.applyHelperQuaternion(g),this.helperObject3DQuaternion.premultiply(g),this.hooks.emit("rotateUpdate",{quaternion:g,origin:u}),this.startInfo.startVector=h}dragEnd(){!this.isDragging||(console.log("%c RotateController dragEnd","color: #e94e4e"),this.startInfo=void 0,this.isDragging=!1,this.lastRotation=void 0,this.rotations=[],this.helperObject3D.show(),this.hooks.emit("rotateEnd"))}getAngleHelper(e){switch(e){case"x":return this.helperObject3D.xAngleHelper;case"y":return this.helperObject3D.yAngleHelper;case"z":return this.helperObject3D.zAngleHelper}}setAngleHelperStart(e,o){const n=this.getAngleHelper(e);if(n instanceof I.Mesh&&n.geometry instanceof I.CircleGeometry){const{radius:r,segments:a,thetaLength:l}=n.geometry.parameters;n.geometry=new I.CircleGeometry(r,a,o,l)}else console.warn("only support THREE.CircleGeometry")}setAngleHelperLength(e,o){const r=o>=0?Math.max(o,.001):Math.min(o,-.001),a=this.getAngleHelper(e);if(a instanceof I.Mesh&&a.geometry instanceof I.CircleGeometry){const{radius:l,thetaStart:c}=a.geometry.parameters,d=Math.ceil(Math.abs(r)*(40/(2*Math.PI)));a.geometry=new I.CircleGeometry(l,d,c,r)}else console.warn("only support THREE.CircleGeometry")}setTipsAngle(e){var n;const o=(n=this.helperObject3D.angleTips)==null?void 0:n.element;!o||(o.innerText=`${e.toFixed(0)}\xB0`)}setTipsPosition(e){const o=this.helperObject3D.angleTips;if(!o)return;const n=e.project(this.camera),{x:r,y:a,z:l}=n;if(l>1)return;const c=(r+1)/2*100+"%",d=(-a+1)/2*100+"%";o.setLeftTop(c,d)}}class Nm extends Qo{constructor(...e){super(...e);m(this,"startInfo")}enable(){this.helperObject3D.enable(),super.enable()}disable(){this.helperObject3D.disable(),super.disable()}show(){this.helperObject3D.show(),super.show()}hide(){this.helperObject3D.hide(),super.hide()}getDragPlane(){const e=new I.Plane,o=this.helperObject3D.cornerPositions;if(o.length!==0)return o.length<3?e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new M.Vector3),o[0]):e.setFromCoplanarPoints(o[0],o[1],o[2]),e}dragStart(e,o){var r,a;(a=(r=this.helperObject3D).updatePoints)==null||a.call(r);const n=this.getDragPlane();if(!n)return this.dragEnd();this.startInfo={startPoint:{position:o.position.clone(),direction:o.direction},plane:n},this.hooks.emit("scaleStart"),this.render(),this.isDragging=!0,console.log("%c RectangleScaleController dragStart","color: #e5af2e")}dragging(e){if(!this.isDragging)return;const o=_o(this.camera,e,this.container);if(!o)return this.dragEnd();this.scale(o),console.log("%c RectangleScaleController dragging","color: #49de1b")}scale(e){var z,_;if(!this.startInfo)return;const o=this.originObject3D,{startPoint:n,plane:r}=this.startInfo,a=this.helperObject3D.cornerPositions;if(a.length<4)return this.dragEnd();const l=e.ray.intersectPlane(r,new M.Vector3);if(!l||Lm(l,this.camera.position))return;const c=new M.Vector3().addVectors(a[0],a[2]).divideScalar(2),{position:d,direction:u}=n,f=new M.Vector3().subVectors(a[1],a[0]),h=new M.Vector3().subVectors(a[3],a[0]),p=j=>{const R=new M.Vector3(0,0,0);if(!this.startInfo)return R;const P=(j==="ew"?f:h).clone(),S=d.clone().projectOnVector(P),L=l.clone().projectOnVector(P),T=c.clone().projectOnVector(P);if(L.equals(S))return R;if(j==="ns"&&typeof this.startInfo.dragPointInCenterBottom!="boolean"){const Q=new M.Vector3().subVectors(L,T),H=Q.x<0&&P.x>=0,Y=Q.y<0&&P.y>=0,U=Q.z<0&&P.z>=0;this.startInfo.dragPointInCenterBottom=H||Y||U}if(j==="ew"&&typeof this.startInfo.dragPointInCenterLeft!="boolean"){const Q=new M.Vector3().subVectors(L,T),H=Q.x<0&&P.x>=0,Y=Q.y<0&&P.y>=0,U=Q.z<0&&P.z>=0;this.startInfo.dragPointInCenterLeft=H||Y||U}const O=new M.Vector3().subVectors(L,S),N=O.length();return N>.3?(console.warn("offset.length() > 0.3, skipped",N),R):O},g=p("ew"),A=p("ns"),b=()=>{const j=g;this.helperObject3D.cornerPositions.forEach((R,P)=>{var S;(S=this.startInfo)!=null&&S.dragPointInCenterLeft?(P===0||P===3)&&R.add(j):(P===1||P===2)&&R.add(j)})},v=()=>{const j=A;this.helperObject3D.cornerPositions.forEach((R,P)=>{var S;(S=this.startInfo)!=null&&S.dragPointInCenterBottom?(P===0||P===1)&&R.add(j):(P===2||P===3)&&R.add(j)})};switch(u){case"ew":b();break;case"ns":v();break;case"nesw":case"nwse":b(),v()}const C=new M.Vector3().subVectors(a[1],a[0]).length()/f.length(),y=new M.Vector3().subVectors(a[3],a[0]).length()/h.length(),E=new M.Vector3(C,y,1),k=new I.Matrix4().scale(E);o.isCSS3DObjectPlus?o.applyScaleMatrix4(k):o.scale.applyMatrix4(k),n.position.copy(l);const w=new M.Vector3().addVectors(a[0],a[2]).divideScalar(2),D=new M.Vector3().subVectors(w,c),x=new I.Matrix4().setPosition(D);o.applyMatrix4(x),(z=this.helperObject3D.css3DInstance)==null||z.css3DObject.applyMatrix4(x),(_=this.helperObject3D.plane)==null||_.applyMatrix4(x),this.hooks.emit("scaleUpdate",{matrix4:k,helperOrigin:c}),this.hooks.emit("positionUpdate",{matrix4:x}),this.render()}dragEnd(){!this.isDragging||(this.startInfo=void 0,this.isDragging=!1,this.hooks.emit("scaleEnd"),this.render(),console.log("%c RectangleScaleController dragEnd","color: #e94e4e"))}}class Wm extends Nm{constructor(...t){super(...t),this.addHTMLEventListener()}addHTMLEventListener(){this.helperObject3D.points.forEach(t=>{if(!t)return;const e=t.point,o=a=>this.dragStart(a,t),n=this.dragging.bind(this),r=this.dragEnd.bind(this);e.addEventListener("dragstart",o),e.addEventListener("drag",n),e.addEventListener("dragend",r)})}}const Fo="v1.0.0",Ho="Object3DHelperPlugin",Zt=`${Ho}@${Fo}`,Xm=()=>{console.error(`${Zt} is disposed`)},Ym=()=>{console.warn(`${Zt} is disabled`)},Um=()=>{console.error(`${Zt} is disabled`)};class sr extends St{constructor(e){super(e);m(this,"version",Fo);m(this,"name",Ho);m(this,"state",{visible:!0,enabled:!0,disposed:!1});m(this,"objectHelperMap",new Map);this.five=e,console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"),Object.assign(window,{[`__${Ho.toUpperCase()}_DEBUG__`]:this})}show(e){return G(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return G(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,o){if(this.state.disposed)return Xm();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return Um();const n=B({},this.state);this.state=B(B({},this.state),e),e.disposed!==void 0&&e.disposed!==n.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==n.visible&&this.handleVisible(e.visible),e.enabled!==void 0&&e.enabled!==n.enabled&&this.handleEnable(e.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:n})}getObject3DHelper(e){return this.objectHelperMap.get(e)}addObject3DHelper(e,o={}){var u;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 n=new Hm;this.objectHelperMap.set(e,n);const r=(u=this.five.getElement())==null?void 0:u.parentElement,a=this.five.camera,{moveHelper:l=!0,rotateHelper:c=!0,scaleHelper:d=!0}=o;if(l){const f=new _m(e),h=new Oo(this.five,Qm,e,f);n.addControllers({moveController:h.helperController})}if(c){let f;r&&a&&(f={container:r});const h=new jm(e,f),p=new Oo(this.five,Gm,e,h);n.addControllers({rotateController:p.helperController})}if(d&&r){const f=new Tm(e,r,a,this.five.scene),h=new Oo(this.five,Wm,e,f);n.addControllers({scaleController:h.helperController})}e.isCSS3DObjectPlus&&e.changeMode("behind",this.five.scene)}removeObject3DHelper(e){const o=this.objectHelperMap.get(e);!o||(e.isCSS3DObjectPlus&&e.changeMode("front"),this.objectHelperMap.delete(e),o.dispose())}handleEnable(e,o=!0){e?(this.everyHelperDo(n=>n.enable()),this.hooks.emit("enable",{userAction:o})):(this.everyHelperDo(n=>n.disable()),this.hooks.emit("disable",{userAction:o})),this.state.enabled=e}handleVisible(e,o=!0){e?(this.everyHelperDo(n=>n.show()),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:o}))):(this.everyHelperDo(n=>n.hide()),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:o}))),this.state.visible=e}handleDispose(){this.everyHelperDo(e=>e.dispose())}everyHelperDo(e){this.objectHelperMap.forEach(o=>{o&&e(o)})}actionIfStateIsEnabled(e,o){if(this.state.enabled)return e();o!=null&&o.warnLog&&Ym()}}const Vm=i=>new sr(i);class Go{constructor(t=0,e=0){m(this,"min");m(this,"max");m(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 Jm{constructor(t,e){m(this,"min");m(this,"max");m(this,"xInterval");m(this,"yInterval");m(this,"isRectangle",!0);this.min=t,this.max=e,this.xInterval=new Go(this.min.x,this.max.x),this.yInterval=new Go(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 qt(i,t,e){const o=i[t],n=i[e];!o||!n||(i[t]=n,i[e]=o)}function Zm(i,t,e){const o=e/2;for(let n=1;n<=o;n++){const r=e-(n-1);for(let a=1;a<=t;a++){const l=(n-1)*t+a-1,c=(r-1)*t+a-1;qt(i,l*4+0,c*4+0),qt(i,l*4+1,c*4+1),qt(i,l*4+2,c*4+2),qt(i,l*4+3,c*4+3)}}}class ir{constructor(t,e){m(this,"width");m(this,"height");m(this,"containerDom");m(this,"hooks",new J.Subscribe);m(this,"canvas",document.createElement("canvas"));m(this,"five");m(this,"scale");m(this,"config");m(this,"offset",{x:0,y:0});m(this,"context");m(this,"renderCenter",new I.Vector3);m(this,"hammer");m(this,"state",{enabled:!1});m(this,"onPan",t=>{if(!this.containerDom||this.hooks.emit("wantsPanGesture",t))return;const o=this.offset.x+t.deltaX,n=this.offset.y+t.deltaY;this.canvas.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)",this.canvas.style.transform=`translate3d(${o}px, ${n}px, 100px)`});m(this,"onPanEnd",t=>{this.offset={x:this.offset.x+t.deltaX,y:this.offset.y+t.deltaY},this.canvas.style.boxShadow="none"});var n,r,a;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(n=e==null?void 0:e.scale)!=null?n:2,this.width=(r=e==null?void 0:e.width)!=null?r:190,this.height=(a=e==null?void 0:e.height)!=null?a: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 o=this.canvas.getContext("2d");if(!o)throw new Error("CANNOT CREATE CONTEXT2D");this.context=o,this.config.dragEnabled&&(this.hammer=new lt.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,o=this.renderCenter.clone().project(this.five.camera),n=(o.x+1)/2*this.containerDom.clientWidth,r=-(o.x-1)/2*this.containerDom.clientWidth,a=-(o.y-1)/2*this.containerDom.clientHeight;n<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):a<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):r<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, ${a}px, 10px)`,this.offset={x:n,y:a}}render(){if(!this.five.renderer||!this.containerDom)return;const{scale:t,context:e,width:o,height:n}=this,r=this.renderCenter.clone().project(this.five.camera),a=this.five.renderer.getSize(new I.Vector2),l=1,c=o/t,d=n/t,u=l*t,f=(r.x+1)/2*a.x,h=(r.y+1)/2*a.y,p=this.five.getPixels(f-c/2,h-c/2,c,d,u),g=Math.floor(o*l),A=Math.floor(n*l);Zm(p,g,A);const b=new ImageData(g,A);b.data.set(p),e.putImageData(b,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 qm(i,t){const{offsetWidth:e,offsetHeight:o}=t,{top:n,left:r}=t.getBoundingClientRect();return new I.Vector2().set((i.x-r)/e*2-1,-(i.y-n)/o*2+1)}function nr(i,t){const{offsetWidth:e,offsetHeight:o}=t;return new I.Vector2().set(i.x/e*2-1,-i.y/o*2+1)}function Km(i,t){const e=i.getElement();if(!e)return;const o=nr(t,e),n=new I.Raycaster;return n.setFromCamera(o,i.camera),n}function $m(i,t){const{x:e,y:o}=t,n=e*2-1,r=o*2-1,a=new I.Vector2().fromArray([n,r]),l=new I.Raycaster;return l.setFromCamera(a,i.camera),i.model.intersectRaycaster(l)[0]}const ep="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlW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gAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC",tp=`
542
542
  varying vec2 vUv;
543
543
  void main() {
544
544
  vUv = uv;