x_ite 8.8.3 → 8.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/dist/assets/components/Annotation.js +13 -13
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +13 -13
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +29 -29
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -13
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +9 -9
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +22 -22
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +48 -48
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +19 -19
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +32 -32
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +35 -35
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +33 -33
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +32 -35
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +47 -56
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +38 -45
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +26 -26
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjector.js +16 -16
  34. package/dist/assets/components/TextureProjector.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +37 -37
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +18 -18
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +9 -9
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +1762 -1827
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.zip +0 -0
  45. package/docs/_config.yml +1 -1
  46. package/package.json +2 -2
  47. package/src/bookmarks.js +1 -1
  48. package/src/lib/jquery.js +8 -0
  49. package/src/lib/nurbs/src/utils/create-accessors.js +4 -4
  50. package/src/lib/nurbs/src/utils/variable.js +1 -1
  51. package/src/shim.js +1 -1
  52. package/src/standard/Math/Algorithms/Bezier.js +2 -2
  53. package/src/standard/Math/Geometry/Box2.js +4 -4
  54. package/src/standard/Math/Geometry/Box3.js +8 -8
  55. package/src/standard/Math/Geometry/Camera.js +1 -1
  56. package/src/standard/Math/Geometry/Line2.js +2 -2
  57. package/src/standard/Math/Geometry/Line3.js +4 -4
  58. package/src/standard/Math/Geometry/Sphere3.js +1 -1
  59. package/src/standard/Math/Geometry/Triangle3.js +2 -2
  60. package/src/standard/Math/Geometry/ViewVolume.js +10 -10
  61. package/src/standard/Math/Numbers/Matrix2.js +2 -2
  62. package/src/standard/Math/Numbers/Matrix3.js +10 -10
  63. package/src/standard/Math/Numbers/Matrix4.js +12 -12
  64. package/src/standard/Math/Numbers/Quaternion.js +2 -2
  65. package/src/standard/Math/Numbers/Rotation4.js +2 -2
  66. package/src/standard/Math/Numbers/Vector3.js +1 -1
  67. package/src/standard/Utility/MapUtilities.js +2 -2
  68. package/src/x_ite/Base/Events.js +6 -33
  69. package/src/x_ite/Base/FieldArray.js +1 -1
  70. package/src/x_ite/Base/FieldDefinitionArray.js +1 -1
  71. package/src/x_ite/Base/X3DArrayField.js +1 -1
  72. package/src/x_ite/Base/X3DBaseNode.js +58 -69
  73. package/src/x_ite/Base/X3DChildObject.js +46 -14
  74. package/src/x_ite/Base/X3DConstants.js +1 -1
  75. package/src/x_ite/Base/X3DField.js +4 -6
  76. package/src/x_ite/Base/X3DFieldDefinition.js +1 -1
  77. package/src/x_ite/Base/X3DInfoArray.js +1 -1
  78. package/src/x_ite/Base/X3DObject.js +5 -5
  79. package/src/x_ite/Base/X3DObjectArrayField.js +1 -1
  80. package/src/x_ite/Base/X3DTypedArrayField.js +1 -1
  81. package/src/x_ite/Browser/Core/BrowserOptions.js +7 -3
  82. package/src/x_ite/Browser/Core/BrowserTimings.js +1 -1
  83. package/src/x_ite/Browser/Core/ContextMenu.js +1 -12
  84. package/src/x_ite/Browser/Core/X3DCoreContext.js +1 -2
  85. package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +1 -1
  86. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +2 -2
  87. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +1 -1
  88. package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +1 -1
  89. package/src/x_ite/Browser/Layout/ScreenText.js +4 -4
  90. package/src/x_ite/Browser/Layout/X3DLayoutContext.js +1 -1
  91. package/src/x_ite/Browser/NURBS/NURBS.js +3 -3
  92. package/src/x_ite/Browser/Navigation/ExamineViewer.js +9 -13
  93. package/src/x_ite/Browser/Navigation/LookAtViewer.js +4 -7
  94. package/src/x_ite/Browser/Navigation/WalkViewer.js +1 -1
  95. package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +5 -6
  96. package/src/x_ite/Browser/Navigation/X3DViewer.js +2 -2
  97. package/src/x_ite/Browser/Networking/URLs.js +17 -9
  98. package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +0 -2
  99. package/src/x_ite/Browser/Picking/VolumePicker.js +2 -2
  100. package/src/x_ite/Browser/Text/PolygonText.js +2 -2
  101. package/src/x_ite/Browser/Texturing3D/DICOMParser.js +3 -3
  102. package/src/x_ite/Browser/Texturing3D/NRRDParser.js +2 -2
  103. package/src/x_ite/Browser/Time/X3DTimeContext.js +1 -1
  104. package/src/x_ite/Browser/VERSION.js +1 -1
  105. package/src/x_ite/Browser/X3DBrowser.js +148 -67
  106. package/src/x_ite/Browser/X3DBrowserContext.js +52 -16
  107. package/src/x_ite/Components/Core/X3DNode.js +21 -2
  108. package/src/x_ite/Components/Core/X3DPrototypeInstance.js +38 -42
  109. package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +2 -2
  110. package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +1 -1
  111. package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +4 -4
  112. package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +1 -1
  113. package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +2 -2
  114. package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +2 -2
  115. package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +1 -1
  116. package/src/x_ite/Components/Followers/X3DFollowerNode.js +1 -1
  117. package/src/x_ite/Components/Geometry2D/ArcClose2D.js +1 -1
  118. package/src/x_ite/Components/Geometry2D/Rectangle2D.js +1 -1
  119. package/src/x_ite/Components/Geometry3D/Box.js +1 -1
  120. package/src/x_ite/Components/Geometry3D/Extrusion.js +3 -3
  121. package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +3 -3
  122. package/src/x_ite/Components/Geospatial/GeoCoordinate.js +6 -6
  123. package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +1 -1
  124. package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +1 -1
  125. package/src/x_ite/Components/Geospatial/GeoViewpoint.js +7 -7
  126. package/src/x_ite/Components/Grouping/StaticGroup.js +1 -1
  127. package/src/x_ite/Components/Grouping/X3DBoundedObject.js +2 -2
  128. package/src/x_ite/Components/HAnim/HAnimHumanoid.js +1 -1
  129. package/src/x_ite/Components/Interpolation/ColorInterpolator.js +1 -1
  130. package/src/x_ite/Components/Interpolation/NormalInterpolator.js +1 -1
  131. package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +1 -1
  132. package/src/x_ite/Components/Interpolation/PositionInterpolator.js +1 -1
  133. package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +1 -1
  134. package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
  135. package/src/x_ite/Components/Lighting/X3DLightNode.js +1 -1
  136. package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +1 -1
  137. package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +2 -2
  138. package/src/x_ite/Components/Navigation/Billboard.js +1 -1
  139. package/src/x_ite/Components/Navigation/LOD.js +2 -2
  140. package/src/x_ite/Components/Navigation/OrthoViewpoint.js +1 -1
  141. package/src/x_ite/Components/Navigation/Viewpoint.js +1 -1
  142. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +3 -3
  143. package/src/x_ite/Components/Networking/Inline.js +0 -4
  144. package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +1 -1
  145. package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +2 -2
  146. package/src/x_ite/Components/ParticleSystems/PointEmitter.js +1 -1
  147. package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +2 -2
  148. package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +1 -1
  149. package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +2 -2
  150. package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +1 -1
  151. package/src/x_ite/Components/Picking/LinePickSensor.js +1 -1
  152. package/src/x_ite/Components/Picking/PickableGroup.js +1 -1
  153. package/src/x_ite/Components/Picking/PointPickSensor.js +2 -2
  154. package/src/x_ite/Components/Picking/PrimitivePickSensor.js +1 -1
  155. package/src/x_ite/Components/Picking/VolumePickSensor.js +1 -1
  156. package/src/x_ite/Components/Picking/X3DPickSensorNode.js +6 -9
  157. package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +1 -1
  158. package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +1 -1
  159. package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +2 -2
  160. package/src/x_ite/Components/Rendering/X3DGeometryNode.js +8 -11
  161. package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +2 -2
  162. package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +2 -2
  163. package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +3 -3
  164. package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +1 -1
  165. package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +5 -14
  166. package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +3 -3
  167. package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +9 -9
  168. package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +1 -1
  169. package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +3 -3
  170. package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +1 -1
  171. package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +1 -1
  172. package/src/x_ite/Components/Scripting/Script.js +1 -8
  173. package/src/x_ite/Components/Shaders/ShaderPart.js +2 -2
  174. package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +385 -382
  175. package/src/x_ite/Components/Shape/Appearance.js +1 -1
  176. package/src/x_ite/Components/Shape/Material.js +1 -1
  177. package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -1
  178. package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +1 -1
  179. package/src/x_ite/Components/Sound/Sound.js +2 -2
  180. package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +2 -2
  181. package/src/x_ite/Components/Texturing/MultiTexture.js +3 -3
  182. package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +1 -1
  183. package/src/x_ite/Components/Texturing/TextureProperties.js +4 -4
  184. package/src/x_ite/Components/Texturing/TextureTransform.js +1 -1
  185. package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +2 -2
  186. package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +1 -1
  187. package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +1 -1
  188. package/src/x_ite/Components.js +1 -20
  189. package/src/x_ite/Configuration/AbstractNodesArray.js +1 -1
  190. package/src/x_ite/Configuration/ComponentInfo.js +1 -1
  191. package/src/x_ite/Configuration/ComponentInfoArray.js +1 -1
  192. package/src/x_ite/Configuration/ConcreteNodesArray.js +1 -1
  193. package/src/x_ite/Configuration/ProfileInfo.js +1 -1
  194. package/src/x_ite/Configuration/ProfileInfoArray.js +1 -1
  195. package/src/x_ite/Configuration/UnitInfo.js +1 -1
  196. package/src/x_ite/Configuration/UnitInfoArray.js +1 -1
  197. package/src/x_ite/Execution/BindableList.js +1 -1
  198. package/src/x_ite/Execution/BindableStack.js +1 -1
  199. package/src/x_ite/Execution/ExportedNodesArray.js +1 -1
  200. package/src/x_ite/Execution/ImportedNodesArray.js +1 -1
  201. package/src/x_ite/Execution/NamedNodesArray.js +1 -1
  202. package/src/x_ite/Execution/X3DExecutionContext.js +9 -11
  203. package/src/x_ite/Execution/X3DExportedNode.js +1 -1
  204. package/src/x_ite/Execution/X3DImportedNode.js +1 -1
  205. package/src/x_ite/Execution/X3DScene.js +2 -6
  206. package/src/x_ite/Execution/X3DWorld.js +1 -2
  207. package/src/x_ite/{Browser/Networking/Features.js → Features.js} +9 -2
  208. package/src/x_ite/Fields/ArrayFields.js +9 -51
  209. package/src/x_ite/Fields/SFBool.js +1 -1
  210. package/src/x_ite/Fields/SFColor.js +2 -2
  211. package/src/x_ite/Fields/SFColorRGBA.js +2 -2
  212. package/src/x_ite/Fields/SFDouble.js +1 -1
  213. package/src/x_ite/Fields/SFFloat.js +1 -1
  214. package/src/x_ite/Fields/SFImage.js +2 -2
  215. package/src/x_ite/Fields/SFInt32.js +1 -1
  216. package/src/x_ite/Fields/SFMatrix3.js +1 -1
  217. package/src/x_ite/Fields/SFMatrix4.js +1 -1
  218. package/src/x_ite/Fields/SFNode.js +3 -25
  219. package/src/x_ite/Fields/SFNodeCache.js +24 -3
  220. package/src/x_ite/Fields/SFRotation.js +1 -1
  221. package/src/x_ite/Fields/SFString.js +1 -1
  222. package/src/x_ite/Fields/SFTime.js +1 -1
  223. package/src/x_ite/Fields/SFVec2.js +1 -1
  224. package/src/x_ite/Fields/SFVec3.js +1 -1
  225. package/src/x_ite/Fields/SFVec4.js +1 -1
  226. package/src/x_ite/InputOutput/FileLoader.js +1 -1
  227. package/src/x_ite/InputOutput/Generator.js +8 -8
  228. package/src/x_ite/Parser/GLTF2Parser.js +5 -5
  229. package/src/x_ite/Parser/HTMLSupport.js +3 -0
  230. package/src/x_ite/Parser/SVGParser.js +2 -2
  231. package/src/x_ite/Parser/VRMLParser.js +1 -1
  232. package/src/x_ite/Parser/XMLParser.js +1 -1
  233. package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +1 -1
  234. package/src/x_ite/Prototype/ProtoDeclarationArray.js +1 -1
  235. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +1 -3
  236. package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -2
  237. package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -2
  238. package/src/x_ite/Rendering/DependentRenderer.js +1 -1
  239. package/src/x_ite/Rendering/TextureBuffer.js +2 -2
  240. package/src/x_ite/Rendering/X3DRenderObject.js +11 -11
  241. package/src/x_ite/Routing/RouteArray.js +1 -1
  242. package/src/x_ite/Routing/X3DRoute.js +1 -1
  243. package/src/x_ite/X3D.js +2 -2
  244. package/src/x_ite.html +3 -3
  245. package/x_ite.min.html +3 -3
  246. package/src/x_ite/Base/X3DEventObject.js +0 -115
@@ -1,4 +1,4 @@
1
- /* X_ITE v8.8.3 */(() => { // webpackBootstrap
1
+ /* X_ITE v8.8.4 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ // The require scope
4
4
  /******/ var __webpack_require__ = {};
@@ -39,28 +39,28 @@ var __webpack_exports__ = {};
39
39
  // UNUSED EXPORTS: default
40
40
 
41
41
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
42
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("x_ite/Components");
43
43
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
44
44
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
45
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("x_ite/Fields");
46
46
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
47
47
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
48
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("x_ite/Base/X3DFieldDefinition");
48
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("x_ite/Base/X3DFieldDefinition");
49
49
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
50
50
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
51
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("x_ite/Base/FieldDefinitionArray");
51
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("x_ite/Base/FieldDefinitionArray");
52
52
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
53
53
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
54
- const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("x_ite/Components/Core/X3DSensorNode");
54
+ const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("x_ite/Components/Core/X3DSensorNode");
55
55
  var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
56
56
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
57
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("x_ite/Rendering/TraverseType");
57
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("x_ite/Rendering/TraverseType");
58
58
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
59
59
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
60
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("x_ite/Base/X3DConstants");
60
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("x_ite/Base/X3DConstants");
61
61
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
62
62
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
63
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("x_ite/Namespace");
63
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("x_ite/Namespace");
64
64
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
65
65
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/MatchCriterion.js
66
66
  /*******************************************************************************
@@ -249,7 +249,7 @@ const SortOrder_default_ = SortOrder;
249
249
  Namespace_default().set ("x_ite/Browser/Picking/SortOrder", SortOrder_default_);
250
250
  /* harmony default export */ const Picking_SortOrder = (SortOrder_default_);
251
251
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
252
- const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("standard/Math/Numbers/Matrix4");
252
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("standard/Math/Numbers/Matrix4");
253
253
  var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
254
254
  ;// CONCATENATED MODULE: ./src/standard/Math/Algorithms/QuickSort.js
255
255
  /*******************************************************************************
@@ -363,7 +363,7 @@ const QuickSort_default_ = QuickSort;
363
363
  Namespace_default().set ("standard/Math/Algorithms/QuickSort", QuickSort_default_);
364
364
  /* harmony default export */ const Algorithms_QuickSort = (QuickSort_default_);
365
365
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/ObjectCache\")"
366
- const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("standard/Utility/ObjectCache");
366
+ const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("standard/Utility/ObjectCache");
367
367
  var ObjectCache_default = /*#__PURE__*/__webpack_require__.n(ObjectCache_namespaceObject);
368
368
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/X3DPickSensorNode.js
369
369
  /*******************************************************************************
@@ -489,7 +489,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, (X3DSensor
489
489
  {
490
490
  return this .targets;
491
491
  },
492
- getPickShape: (function ()
492
+ getPickShape: (() =>
493
493
  {
494
494
  const pickShapes = new WeakMap ();
495
495
 
@@ -520,7 +520,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, (X3DSensor
520
520
  return collidableShapeNode;
521
521
  };
522
522
  })(),
523
- getPickedGeometries: (function ()
523
+ getPickedGeometries: (() =>
524
524
  {
525
525
  return function ()
526
526
  {
@@ -653,7 +653,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, (X3DSensor
653
653
 
654
654
  this .set_live__ ();
655
655
  },
656
- set_matchCriterion__: (function ()
656
+ set_matchCriterion__: (() =>
657
657
  {
658
658
  var matchCriterions = new Map ([
659
659
  ["MATCH_ANY", Picking_MatchCriterion .MATCH_ANY],
@@ -669,7 +669,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, (X3DSensor
669
669
  this .matchCriterion = MatchCriterionType .MATCH_ANY;
670
670
  };
671
671
  })(),
672
- set_intersectionType__: (function ()
672
+ set_intersectionType__: (() =>
673
673
  {
674
674
  var intersectionTypes = new Map ([
675
675
  ["BOUNDS", Picking_IntersectionType .BOUNDS],
@@ -684,7 +684,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, (X3DSensor
684
684
  this .intersectionType = Picking_IntersectionType .BOUNDS;
685
685
  };
686
686
  })(),
687
- set_sortOrder__: (function ()
687
+ set_sortOrder__: (() =>
688
688
  {
689
689
  var sortOrders = new Map ([
690
690
  ["ANY", Picking_SortOrder .ANY],
@@ -747,10 +747,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, (X3DSensor
747
747
  {
748
748
  var pickTargetNodes = this .pickTargetNodes;
749
749
 
750
- var haveTarget = pickingHierarchy .some (function (node)
751
- {
752
- return pickTargetNodes .has (node);
753
- });
750
+ var haveTarget = pickingHierarchy .some (node => pickTargetNodes .has (node));
754
751
 
755
752
  if (haveTarget)
756
753
  {
@@ -815,13 +812,13 @@ const X3DPickSensorNode_default_ = X3DPickSensorNode;
815
812
  Namespace_default().set ("x_ite/Components/Picking/X3DPickSensorNode", X3DPickSensorNode_default_);
816
813
  /* harmony default export */ const Picking_X3DPickSensorNode = (X3DPickSensorNode_default_);
817
814
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
818
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("standard/Math/Numbers/Vector3");
815
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("standard/Math/Numbers/Vector3");
819
816
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
820
817
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
821
- const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("standard/Math/Geometry/Box3");
818
+ const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("standard/Math/Geometry/Box3");
822
819
  var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
823
820
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Line3\")"
824
- const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("standard/Math/Geometry/Line3");
821
+ const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("standard/Math/Geometry/Line3");
825
822
  var Line3_default = /*#__PURE__*/__webpack_require__.n(Line3_namespaceObject);
826
823
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/LinePickSensor.js
827
824
  /*******************************************************************************
@@ -929,7 +926,7 @@ Object .assign (Object .setPrototypeOf (LinePickSensor .prototype, Picking_X3DPi
929
926
  catch
930
927
  { }
931
928
  },
932
- process: (function ()
929
+ process: (() =>
933
930
  {
934
931
  var
935
932
  pickingBBox = new (Box3_default()) (),
@@ -1168,7 +1165,7 @@ const LinePickSensor_default_ = LinePickSensor;
1168
1165
  Namespace_default().set ("x_ite/Components/Picking/LinePickSensor", LinePickSensor_default_);
1169
1166
  /* harmony default export */ const Picking_LinePickSensor = (LinePickSensor_default_);
1170
1167
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
1171
- const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
1168
+ const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
1172
1169
  var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
1173
1170
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/X3DPickableObject.js
1174
1171
  /*******************************************************************************
@@ -1355,7 +1352,7 @@ Object .assign (Object .setPrototypeOf (PickableGroup .prototype, (X3DGroupingNo
1355
1352
  {
1356
1353
  this .setPickableObject (!!(this ._pickable .getValue () || this .getTransformSensors () .size));
1357
1354
  },
1358
- traverse: (function ()
1355
+ traverse: (() =>
1359
1356
  {
1360
1357
  const pickSensorNodes = new Set ();
1361
1358
 
@@ -1499,13 +1496,13 @@ const PickableGroup_default_ = PickableGroup;
1499
1496
  Namespace_default().set ("x_ite/Components/Picking/PickableGroup", PickableGroup_default_);
1500
1497
  /* harmony default export */ const Picking_PickableGroup = (PickableGroup_default_);
1501
1498
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
1502
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("x_ite/Base/X3DCast");
1499
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("x_ite/Base/X3DCast");
1503
1500
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
1504
1501
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
1505
- const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("standard/Math/Numbers/Rotation4");
1502
+ const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("standard/Math/Numbers/Rotation4");
1506
1503
  var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
1507
1504
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"lib/ammojs/AmmoClass\")"
1508
- const AmmoClass_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.3")] .require ("lib/ammojs/AmmoClass");
1505
+ const AmmoClass_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.4")] .require ("lib/ammojs/AmmoClass");
1509
1506
  var AmmoClass_default = /*#__PURE__*/__webpack_require__.n(AmmoClass_namespaceObject);
1510
1507
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/VolumePicker.js
1511
1508
  /*******************************************************************************
@@ -1600,7 +1597,7 @@ Object .assign (VolumePicker .prototype,
1600
1597
  {
1601
1598
  this .setChildShapeComponents (this .compoundShape2, transform, localScaling, childShape);
1602
1599
  },
1603
- setChildShape: (function ()
1600
+ setChildShape: (() =>
1604
1601
  {
1605
1602
  const
1606
1603
  translation = new (Vector3_default()) (0, 0, 0),
@@ -1658,7 +1655,7 @@ Object .assign (VolumePicker .prototype,
1658
1655
 
1659
1656
  return false;
1660
1657
  },
1661
- getTransform: (function ()
1658
+ getTransform: (() =>
1662
1659
  {
1663
1660
  const
1664
1661
  T = new (AmmoClass_default()).btTransform (),
@@ -1783,7 +1780,7 @@ Object .assign (Object .setPrototypeOf (PointPickSensor .prototype, Picking_X3DP
1783
1780
 
1784
1781
  this .set_geometry__ ();
1785
1782
  },
1786
- set_geometry__: (function ()
1783
+ set_geometry__: (() =>
1787
1784
  {
1788
1785
  var
1789
1786
  defaultScale = new (AmmoClass_default()).btVector3 (1, 1, 1),
@@ -1844,7 +1841,7 @@ Object .assign (Object .setPrototypeOf (PointPickSensor .prototype, Picking_X3DP
1844
1841
  }
1845
1842
  };
1846
1843
  })(),
1847
- process: (function ()
1844
+ process: (() =>
1848
1845
  {
1849
1846
  var
1850
1847
  pickingBBox = new (Box3_default()) (),
@@ -2152,7 +2149,7 @@ Object .assign (Object .setPrototypeOf (PrimitivePickSensor .prototype, Picking_
2152
2149
  catch
2153
2150
  { }
2154
2151
  },
2155
- process: (function ()
2152
+ process: (() =>
2156
2153
  {
2157
2154
  var
2158
2155
  pickingBBox = new (Box3_default()) (),
@@ -2402,7 +2399,7 @@ Object .assign (Object .setPrototypeOf (VolumePickSensor .prototype, Picking_X3D
2402
2399
  {
2403
2400
  this .pickingGeometryNode = X3DCast_default() ((X3DConstants_default()).X3DGeometryNode, this ._pickingGeometry);
2404
2401
  },
2405
- process: (function ()
2402
+ process: (() =>
2406
2403
  {
2407
2404
  var
2408
2405
  pickingBBox = new (Box3_default()) (),
@@ -1 +1 @@
1
- /* X_ITE v8.8.3 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.8.3")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-8.8.3")].require("x_ite/Fields");var s=e.n(n);const o=window[Symbol.for("X_ITE.X3D-8.8.3")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(o);const a=window[Symbol.for("X_ITE.X3D-8.8.3")].require("x_ite/Base/FieldDefinitionArray");var c=e.n(a);const h=window[Symbol.for("X_ITE.X3D-8.8.3")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(h);const l=window[Symbol.for("X_ITE.X3D-8.8.3")].require("x_ite/Rendering/TraverseType");var d=e.n(l);const g=window[Symbol.for("X_ITE.X3D-8.8.3")].require("x_ite/Base/X3DConstants");var u=e.n(g);const m=window[Symbol.for("X_ITE.X3D-8.8.3")].require("x_ite/Namespace");var y=e.n(m);let _=0;const w={MATCH_ANY:_++,MATCH_EVERY:_++,MATCH_ONLY_ONE:_++};y().set("x_ite/Browser/Picking/MatchCriterion",w);const k=w;let f=0;const S={BOUNDS:f++,GEOMETRY:f++};y().set("x_ite/Browser/Picking/IntersectionType",S);const b=S;let v=0;const O={ANY:v++,CLOSEST:v++,ALL:v++,ALL_SORTED:v++};y().set("x_ite/Browser/Picking/SortOrder",O);const T=O,N=window[Symbol.for("X_ITE.X3D-8.8.3")].require("standard/Math/Numbers/Matrix4");var C=e.n(N);function P(e,t){this.array=e,t&&(this.compare=t)}Object.assign(P.prototype,{compare:(e,t)=>e<t,sort(e,t){t-e>1&&this.quicksort(e,t-1)},quicksort(e,t){let i=e,n=t;const{array:s,compare:o}=this,r=s[e+t>>>1];for(;;){for(;o(s[i],r);)++i;for(;o(r,s[n]);)--n;if(!(i<n)){i===n&&(++i,--n);break}{const e=s[i];s[i]=s[n],s[n]=e,i++,n--}}e<n&&this.quicksort(e,n),i<t&&this.quicksort(i,t)}});const G=P;y().set("standard/Math/Algorithms/QuickSort",G);const M=G,x=window[Symbol.for("X_ITE.X3D-8.8.3")].require("standard/Utility/ObjectCache");var B,j,A,F=e.n(x)()(C());function E(e,t){return e.distance<t.distance}function D(e){p().call(this,e),this.addType(u().X3DPickSensorNode),this.objectType=new Set,this.intersectionType=b.BOUNDS,this.sortOrder=T.CLOSEST,this.pickTargetNodes=new Set,this.modelMatrices=[],this.targets=[],this.targets.size=0,this.pickedTargets=[],this.pickedTargetsSorter=new M(this.pickedTargets,E),this.pickedGeometries=new(s().MFNode)}Object.assign(Object.setPrototypeOf(D.prototype,p().prototype),{initialize(){this.getLive().addInterest("set_live__",this),this._enabled.addInterest("set_live__",this),this._objectType.addInterest("set_objectType__",this),this._matchCriterion.addInterest("set_matchCriterion__",this),this._intersectionType.addInterest("set_intersectionType__",this),this._sortOrder.addInterest("set_sortOrder__",this),this._pickTarget.addInterest("set_pickTarget__",this),this.set_objectType__(),this.set_matchCriterion__(),this.set_intersectionType__(),this.set_sortOrder__(),this.set_pickTarget__()},getObjectType(){return this.objectType},getMatchCriterion(){return this.matchCriterion},getIntersectionType(){return this.intersectionType},getSortOrder(){return this.sortOrder},getModelMatrices(){return this.modelMatrices},getTargets(){return this.targets},getPickShape:function(){const e=new WeakMap;return function(t){const i=e.get(t);if(void 0!==i)return i;const n=this.getBrowser(),s=n.getPrivateScene().createNode("Shape",!1),o=n.getPrivateScene().createNode("CollidableShape",!1);return s.setPrivate(!0),o.setPrivate(!0),o.setConvex(!0),s._geometry=t,o._shape=s,s.setup(),o.setup(),e.set(t,o),o}}(),getPickedGeometries:function(){var e=this.targets,t=e.size,i=this.pickedTargets,n=this.pickedGeometries;i.length=0;for(var s=0;s<t;++s){var o=e[s];o.intersected&&i.push(o)}if(0===i.length)return n.length=0,n;switch(this.sortOrder){case T.ANY:i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case T.CLOSEST:this.pickedTargetsSorter.sort(0,i.length),i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case T.ALL:s=0;for(var r=i.length;s<r;++s)n[s]=this.getPickedGeometry(i[s]);n.length=r;break;case T.ALL_SORTED:for(this.pickedTargetsSorter.sort(0,i.length),s=0,r=i.length;s<r;++s)n[s]=this.getPickedGeometry(i[s]);n.length=r}return n},getPickedGeometry(e){var t=this.getExecutionContext(),i=e.geometryNode;if(i.getExecutionContext()===t)return i;if((o=i.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&o.getExecutionContext()===t)return o;for(var n=e.pickingHierarchy,s=n.length-1;s>=0;--s){var o,r=n[s];if(r.getExecutionContext()===t)return r;if((o=r.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&o.getExecutionContext()===t)return o}return null},getPickedTargets(){return this.pickedTargets},set_live__(){this.getLive().getValue()&&this._enabled.getValue()&&!this.objectType.has("NONE")?(this.getBrowser().addPickSensor(this),this.setPickableObject(!0)):(this.getBrowser().removePickSensor(this),this.setPickableObject(!1))},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e]);this.set_live__()},set_matchCriterion__:(A=new Map([["MATCH_ANY",k.MATCH_ANY],["MATCH_EVERY",k.MATCH_EVERY],["MATCH_ONLY_ONE",k.MATCH_ONLY_ONE]]),function(){this.matchCriterion=A.get(this._matchCriterion.getValue()),void 0===this.matchCriterion&&(this.matchCriterion=MatchCriterionType.MATCH_ANY)}),set_intersectionType__:(j=new Map([["BOUNDS",b.BOUNDS],["GEOMETRY",b.GEOMETRY]]),function(){this.intersectionType=j.get(this._intersectionType.getValue()),void 0===this.intersectionType&&(this.intersectionType=b.BOUNDS)}),set_sortOrder__:(B=new Map([["ANY",T.ANY],["CLOSEST",T.CLOSEST],["ALL",T.ALL],["ALL_SORTED",T.ALL_SORTED]]),function(){this.sortOrder=B.get(this._sortOrder.getValue()),void 0===this.sortOrder&&(this.sortOrder=T.CLOSEST)}),set_pickTarget__(){this.pickTargetNodes.clear();for(var e=0,t=this._pickTarget.length;e<t;++e)try{for(var i=this._pickTarget[e].getValue().getInnerNode(),n=i.getType(),s=n.length-1;s>=0;--s)switch(n[s]){case u().Inline:case u().Shape:case u().X3DGroupingNode:this.pickTargetNodes.add(i);break;default:continue}}catch{}},traverse(e,t){e===d().PICKING&&this.isPickableObject()&&this.modelMatrices.push(F.pop().assign(t.getModelViewMatrix().get()))},collect(e,t,i){var n=this.pickTargetNodes;if(i.some((function(e){return n.has(e)}))){var s=this.targets;if(s.size<s.length)var o=s[s.size];else{o={modelMatrix:new(C()),pickingHierarchy:[],pickedPoint:[],intersections:[]};s.push(o)}++s.size,o.intersected=!1,o.geometryNode=e,o.pickedPoint.length=0,o.intersections.length=0,o.modelMatrix.assign(t);for(var r=o.pickingHierarchy,a=0,c=i.length;a<c;++a)r[a]=i[a];r.length=c}},process(){for(var e=this.modelMatrices,t=0,i=e.length;t<i;++t)F.push(e[t]);this.modelMatrices.length=0,this.targets.size=0}}),Object.defineProperties(D,{typeName:{value:"X3DPickSensorNode",enumerable:!0},componentName:{value:"Picking",enumerable:!0}});const I=D;y().set("x_ite/Components/Picking/X3DPickSensorNode",I);const L=I,z=window[Symbol.for("X_ITE.X3D-8.8.3")].require("standard/Math/Numbers/Vector3");var V=e.n(z);const X=window[Symbol.for("X_ITE.X3D-8.8.3")].require("standard/Math/Geometry/Box3");var R=e.n(X);const q=window[Symbol.for("X_ITE.X3D-8.8.3")].require("standard/Math/Geometry/Line3");var Y,H,U,W,K,Q,Z,J,$,ee,te,ie,ne,se,oe,re,ae=e.n(q);function ce(e){L.call(this,e),this.addType(u().LinePickSensor),this.pickingGeometryNode=null}Object.assign(Object.setPrototypeOf(ce.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().IndexedLineSet:case u().LineSet:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:(Y=new(R()),H=new(R()),U=new(V())(0,0,0),W=new(V())(0,0,0),K=new(C()),Q=new(V())(0,0,0),Z=new(V())(0,0,0),J=new(ae())(V().Zero,V().zAxis),$=new(V())(0,0,0),ee=new(V())(0,0,0),te=[],ie=[],ne=new(V())(0,0,0),se=new(s().MFVec3f),oe=new(s().MFVec3f),re=new(s().MFVec3f),function(){if(this.pickingGeometryNode){var e=this.getModelMatrices(),t=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:for(var i=0,n=e.length;i<n;++i){var s=e[i];Y.assign(this.pickingGeometryNode.getBBox()).multRight(s);for(var o=0,r=t.size;o<r;++o){var a=t[o];H.assign(a.geometryNode.getBBox()).multRight(a.modelMatrix),Y.intersectsBox(H)&&(U.assign(Y.center),W.assign(H.center),a.intersected=!0,a.distance=U.distance(W))}}var c=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case b.GEOMETRY:for(i=0,n=e.length;i<n;++i)for(s=e[i],Y.assign(this.pickingGeometryNode.getBBox()).multRight(s),o=0,r=t.size;o<r;++o){var h=(a=t[o]).geometryNode,p=this.pickingGeometryNode.getVertices();H.assign(h.getBBox()).multRight(a.modelMatrix),K.assign(a.modelMatrix).inverse().multLeft(s);for(var l=0,d=p.length;l<d;l+=8)if(K.multVecMatrix(Q.set(p[l+0],p[l+1],p[l+2])),K.multVecMatrix(Z.set(p[l+4],p[l+5],p[l+6])),J.setPoints(Q,Z),ie.length=0,h.intersectsLine(J,a.modelMatrix,te,ie))for(var g=0,u=ie.length;g<u;++g){var m=ie[g];$.assign(m.point).subtract(Q),ee.assign(m.point).subtract(Z),$.add(ee).magnitude()<=Q.distance(Z)&&a.intersections.push(m)}a.intersections.length&&(U.assign(Y.center),W.assign(H.center),a.intersected=!0,a.distance=U.distance(W))}var y;c=!!(y=this.getPickedGeometries()).length,y.assign(y.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);var _=this.getPickedTargets();for(se.length=0,oe.length=0,re.length=0,o=0,r=_.length;o<r;++o){var w=_[o].intersections;for(g=0,u=w.length;g<u;++g)o=(m=w[g]).texCoord,ne.set(o.x,o.y,o.z),se.push(ne),oe.push(m.normal),re.push(m.point)}this._pickedTextureCoordinate.equals(se)||(this._pickedTextureCoordinate=se),this._pickedNormal.equals(oe)||(this._pickedNormal=oe),this._pickedPoint.equals(re)||(this._pickedPoint=re)}}L.prototype.process.call(this)})}),Object.defineProperties(ce,{typeName:{value:"LinePickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().outputOnly,"pickedTextureCoordinate",new(s().MFVec3f)),new(r())(u().outputOnly,"pickedNormal",new(s().MFVec3f)),new(r())(u().outputOnly,"pickedPoint",new(s().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const he=ce;y().set("x_ite/Components/Picking/LinePickSensor",he);const pe=he,le=window[Symbol.for("X_ITE.X3D-8.8.3")].require("x_ite/Components/Grouping/X3DGroupingNode");var de=e.n(le);function ge(e){this.addType(u().X3DPickableObject),this.objectType=new Set}Object.assign(ge.prototype,{initialize(){this._objectType.addInterest("set_objectType__",this),this.set_objectType__()},getObjectType(){return this.objectType},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e])},dispose(){}}),Object.defineProperties(ge,{typeName:{value:"X3DPickableObject",enumerable:!0},componentName:{value:"Picking",enumerable:!0}});const ue=ge;y().set("x_ite/Components/Picking/X3DPickableObject",ue);const me=ue;function ye(e){de().call(this,e),me.call(this,e),this.addType(u().PickableGroup)}Object.assign(Object.setPrototypeOf(ye.prototype,de().prototype),me.prototype,{initialize(){de().prototype.initialize.call(this),me.prototype.initialize.call(this),this._pickable.addInterest("set_pickable__",this),this.set_pickable__()},set_pickableObjects__(){this.set_pickable__()},set_pickable__(){this.setPickableObject(!(!this._pickable.getValue()&&!this.getTransformSensors().size))},traverse:function(){const e=new Set;return function(t,i){if(t===d().PICKING){if(this._pickable.getValue()){if(this.getObjectType().has("NONE"))return;const n=this.getBrowser(),s=n.getPickable();if(this.getObjectType().has("ALL"))s.push(!0),de().prototype.traverse.call(this,t,i),s.pop();else{const o=n.getPickSensors();for(const t of o.at(-1)){if(!t.getObjectType().has("ALL")){let e=0;for(const i of this.getObjectType())if(t.getObjectType().has(i)){++e;break}switch(t.getMatchCriterion()){case k.MATCH_ANY:if(0===e)continue;break;case k.MATCH_EVERY:if(e!==pickSensor.getObjectType().size)continue;break;case k.MATCH_ONLY_ONE:if(1!==e)continue}}e.add(t)}s.push(!0),o.push(e),de().prototype.traverse.call(this,t,i),o.pop(),s.pop(),e.clear()}}}else de().prototype.traverse.call(this,t,i)}}(),dispose(){me.prototype.dispose.call(this),de().prototype.dispose.call(this)}}),Object.defineProperties(ye,{typeName:{value:"PickableGroup",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"pickable",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(s().MFNode)),new(r())(u().inputOnly,"removeChildren",new(s().MFNode)),new(r())(u().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const _e=ye;y().set("x_ite/Components/Picking/PickableGroup",_e);const we=_e,ke=window[Symbol.for("X_ITE.X3D-8.8.3")].require("x_ite/Base/X3DCast");var fe=e.n(ke);const Se=window[Symbol.for("X_ITE.X3D-8.8.3")].require("standard/Math/Numbers/Rotation4");var be=e.n(Se);const ve=window[Symbol.for("X_ITE.X3D-8.8.3")].require("lib/ammojs/AmmoClass");var Oe=e.n(ve);function Te(){this.broadphase=new(Oe().btDbvtBroadphase),this.collisionConfiguration=new(Oe().btDefaultCollisionConfiguration),this.dispatcher=new(Oe().btCollisionDispatcher)(this.collisionConfiguration),this.collisionWorld=new(Oe().btCollisionWorld)(this.dispatcher,this.broadphase,this.collisionConfiguration),this.compoundShape1=new(Oe().btCompoundShape),this.motionState1=new(Oe().btDefaultMotionState),this.constructionInfo1=new(Oe().btRigidBodyConstructionInfo)(0,this.motionState1,this.compoundShape1),this.rigidBody1=new(Oe().btRigidBody)(this.constructionInfo1),this.compoundShape2=new(Oe().btCompoundShape),this.motionState2=new(Oe().btDefaultMotionState),this.constructionInfo2=new(Oe().btRigidBodyConstructionInfo)(0,this.motionState2,this.compoundShape2),this.rigidBody2=new(Oe().btRigidBody)(this.constructionInfo2),this.collisionWorld.addCollisionObject(this.rigidBody1),this.collisionWorld.addCollisionObject(this.rigidBody2)}Object.assign(Te.prototype,{constuctor:Te,setChildShape1(e,t){this.setChildShape(this.compoundShape1,e,t)},setChildShape2(e,t){this.setChildShape(this.compoundShape2,e,t)},setChildShape1Components(e,t,i){this.setChildShapeComponents(this.compoundShape1,e,t,i)},setChildShape2Components(e,t,i){this.setChildShapeComponents(this.compoundShape2,e,t,i)},setChildShape:function(){const e=new(V())(0,0,0),t=new(be()),i=new(V())(1,1,1),n=new(Oe().btVector3)(0,0,0);return function(s,o,r){s.getNumChildShapes()&&s.removeChildShapeByIndex(0),r.getNumChildShapes()&&(o.get(e,t,i),n.setValue(i.x,i.y,i.z),r.setLocalScaling(n),s.addChildShape(this.getTransform(e,t),r))}}(),setChildShapeComponents(e,t,i,n){e.getNumChildShapes()&&e.removeChildShapeByIndex(0),n.getNumChildShapes()&&(n.setLocalScaling(i),e.addChildShape(t,n))},contactTest(){this.collisionWorld.performDiscreteCollisionDetection();const e=this.dispatcher.getNumManifolds();for(let t=0;t<e;++t){const e=this.dispatcher.getManifoldByIndexInternal(t),i=e.getNumContacts();for(let t=0;t<i;++t){if(e.getContactPoint(t).getDistance()<=0)return!0}}return!1},getTransform:function(){const e=new(Oe().btTransform),t=new(Oe().btVector3)(0,0,0),i=new(C());return function(n,s,o){const r=o||e;return i.set(n,s),t.setValue(i[12],i[13],i[14]),r.getBasis().setValue(i[0],i[4],i[8],i[1],i[5],i[9],i[2],i[6],i[10]),r.setOrigin(t),r}}()});const Ne=Te;y().set("x_ite/Browser/Picking/VolumePicker",Ne);const Ce=Ne;function Pe(e){L.call(this,e),this.addType(u().PointPickSensor),this.pickingGeometryNode=null,this.picker=new Ce,this.compoundShapes=[]}var Ge,Me,xe;Object.assign(Object.setPrototypeOf(Pe.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.removeInterest("set_geometry__",this),this.pickingGeometryNode=fe()(u().PointSet,this._pickingGeometry),this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.addInterest("set_geometry__",this),this.set_geometry__()},set_geometry__:(Ge=new(Oe().btVector3)(1,1,1),Me=new(Oe().btVector3),xe=new(Oe().btTransform),function(){var e=this.compoundShapes;if(this.pickingGeometryNode){var t=this.pickingGeometryNode.getCoord();if(t){for(var i=0,n=t.getSize();i<n;++i)if(i<e.length){var s=e[i],o=t.get1Point(i,s.point);Me.setValue(o.x,o.y,o.z),xe.setOrigin(Me),s.setLocalScaling(Ge),s.updateChildTransform(0,xe)}else{s=new(Oe().btCompoundShape);var r=new(Oe().btSphereShape)(0);o=t.get1Point(i,new(V())(0,0,0)),s.point=o,Me.setValue(o.x,o.y,o.z),xe.setOrigin(Me),s.addChildShape(xe,r),e.push(s)}e.length=n}else e.length=0}else e.length=0}),process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0),o=new(Oe().btTransform),r=new(Oe().btVector3),a=new(V())(0,0,0),c=new(be()),h=new(V())(1,1,1),p=new(s().MFVec3f);return function(){if(this.pickingGeometryNode){var s=this.getModelMatrices(),l=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:for(var d=0,g=s.length;d<g;++d){var u=s[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u);for(var m=0,y=l.size;m<y;++m){var _=l[m];t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n))}}var w=!!(N=this.getPickedGeometries()).length;N.assign(N.filter((e=>e))),w!==this._isActive.getValue()&&(this._isActive=w),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);break;case b.GEOMETRY:var k=this.picker,f=this.compoundShapes;for(d=0,g=s.length;d<g;++d){u=s[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u),u.get(a,c,h),k.getTransform(a,c,o),r.setValue(h.x,h.y,h.z);for(var S=0,v=f.length;S<v;++S){var O=f[S];k.setChildShape1Components(o,r,O);for(m=0,y=l.size;m<y;++m){_=l[m];var T=this.getPickShape(_.geometryNode);t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),k.setChildShape2(_.modelMatrix,T.getCompoundShape()),k.contactTest()&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n),_.pickedPoint.push(O.point))}}}var N;w=!!(N=this.getPickedGeometries()).length;N.assign(N.filter((e=>e))),w!==this._isActive.getValue()&&(this._isActive=w),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);var C=this.getPickedTargets();p.length=0;for(m=0,y=C.length;m<y;++m)for(var P=C[m].pickedPoint,G=0,M=P.length;G<M;++G)p.push(P[G]);this._pickedPoint.equals(p)||(this._pickedPoint=p)}}L.prototype.process.call(this)}}()}),Object.defineProperties(Pe,{typeName:{value:"PointPickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().outputOnly,"pickedPoint",new(s().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const Be=Pe;y().set("x_ite/Components/Picking/PointPickSensor",Be);const je=Be;function Ae(e){L.call(this,e),this.addType(u().PrimitivePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}Object.assign(Object.setPrototypeOf(Ae.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().Box:case u().Cone:case u().Cylinder:case u().Sphere:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var s=this.getModelMatrices(),o=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:for(var r=0,a=s.length;r<a;++r){var c=s[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(var h=0,p=o.size;h<p;++h){var l=o[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case b.GEOMETRY:var g=this.picker;for(r=0,a=s.length;r<a;++r){c=s[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(c),g.setChildShape1(c,u.getCompoundShape());for(h=0,p=o.size;h<p;++h){l=o[h];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),g.setChildShape2(l.modelMatrix,m.getCompoundShape()),g.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}L.prototype.process.call(this)}}()}),Object.defineProperties(Ae,{typeName:{value:"PrimitivePickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const Fe=Ae;y().set("x_ite/Components/Picking/PrimitivePickSensor",Fe);const Ee=Fe;function De(e){L.call(this,e),this.addType(u().VolumePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}Object.assign(Object.setPrototypeOf(De.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=fe()(u().X3DGeometryNode,this._pickingGeometry)},process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var s=this.getModelMatrices(),o=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:for(var r=0,a=s.length;r<a;++r){var c=s[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(var h=0,p=o.size;h<p;++h){var l=o[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case b.GEOMETRY:var g=this.picker;for(r=0,a=s.length;r<a;++r){c=s[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(c),g.setChildShape1(c,u.getCompoundShape());for(h=0,p=o.size;h<p;++h){l=o[h];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),g.setChildShape2(l.modelMatrix,m.getCompoundShape()),g.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}L.prototype.process.call(this)}}()}),Object.defineProperties(De,{typeName:{value:"VolumePickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const Ie=De;y().set("x_ite/Components/Picking/VolumePickSensor",Ie);const Le=Ie;i().add({name:"Picking",concreteNodes:[pe,we,je,Ee,Le],abstractNodes:[L,me]});const ze=void 0;y().set("assets/components/Picking",ze)})();
1
+ /* X_ITE v8.8.4 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.8.4")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-8.8.4")].require("x_ite/Fields");var s=e.n(n);const o=window[Symbol.for("X_ITE.X3D-8.8.4")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(o);const a=window[Symbol.for("X_ITE.X3D-8.8.4")].require("x_ite/Base/FieldDefinitionArray");var c=e.n(a);const h=window[Symbol.for("X_ITE.X3D-8.8.4")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(h);const l=window[Symbol.for("X_ITE.X3D-8.8.4")].require("x_ite/Rendering/TraverseType");var d=e.n(l);const g=window[Symbol.for("X_ITE.X3D-8.8.4")].require("x_ite/Base/X3DConstants");var u=e.n(g);const m=window[Symbol.for("X_ITE.X3D-8.8.4")].require("x_ite/Namespace");var y=e.n(m);let _=0;const w={MATCH_ANY:_++,MATCH_EVERY:_++,MATCH_ONLY_ONE:_++};y().set("x_ite/Browser/Picking/MatchCriterion",w);const k=w;let S=0;const b={BOUNDS:S++,GEOMETRY:S++};y().set("x_ite/Browser/Picking/IntersectionType",b);const f=b;let v=0;const O={ANY:v++,CLOSEST:v++,ALL:v++,ALL_SORTED:v++};y().set("x_ite/Browser/Picking/SortOrder",O);const T=O,N=window[Symbol.for("X_ITE.X3D-8.8.4")].require("standard/Math/Numbers/Matrix4");var C=e.n(N);function P(e,t){this.array=e,t&&(this.compare=t)}Object.assign(P.prototype,{compare:(e,t)=>e<t,sort(e,t){t-e>1&&this.quicksort(e,t-1)},quicksort(e,t){let i=e,n=t;const{array:s,compare:o}=this,r=s[e+t>>>1];for(;;){for(;o(s[i],r);)++i;for(;o(r,s[n]);)--n;if(!(i<n)){i===n&&(++i,--n);break}{const e=s[i];s[i]=s[n],s[n]=e,i++,n--}}e<n&&this.quicksort(e,n),i<t&&this.quicksort(i,t)}});const G=P;y().set("standard/Math/Algorithms/QuickSort",G);const M=G,x=window[Symbol.for("X_ITE.X3D-8.8.4")].require("standard/Utility/ObjectCache");var B,j,A,F=e.n(x)()(C());function E(e,t){return e.distance<t.distance}function D(e){p().call(this,e),this.addType(u().X3DPickSensorNode),this.objectType=new Set,this.intersectionType=f.BOUNDS,this.sortOrder=T.CLOSEST,this.pickTargetNodes=new Set,this.modelMatrices=[],this.targets=[],this.targets.size=0,this.pickedTargets=[],this.pickedTargetsSorter=new M(this.pickedTargets,E),this.pickedGeometries=new(s().MFNode)}Object.assign(Object.setPrototypeOf(D.prototype,p().prototype),{initialize(){this.getLive().addInterest("set_live__",this),this._enabled.addInterest("set_live__",this),this._objectType.addInterest("set_objectType__",this),this._matchCriterion.addInterest("set_matchCriterion__",this),this._intersectionType.addInterest("set_intersectionType__",this),this._sortOrder.addInterest("set_sortOrder__",this),this._pickTarget.addInterest("set_pickTarget__",this),this.set_objectType__(),this.set_matchCriterion__(),this.set_intersectionType__(),this.set_sortOrder__(),this.set_pickTarget__()},getObjectType(){return this.objectType},getMatchCriterion(){return this.matchCriterion},getIntersectionType(){return this.intersectionType},getSortOrder(){return this.sortOrder},getModelMatrices(){return this.modelMatrices},getTargets(){return this.targets},getPickShape:(()=>{const e=new WeakMap;return function(t){const i=e.get(t);if(void 0!==i)return i;const n=this.getBrowser(),s=n.getPrivateScene().createNode("Shape",!1),o=n.getPrivateScene().createNode("CollidableShape",!1);return s.setPrivate(!0),o.setPrivate(!0),o.setConvex(!0),s._geometry=t,o._shape=s,s.setup(),o.setup(),e.set(t,o),o}})(),getPickedGeometries:function(){var e=this.targets,t=e.size,i=this.pickedTargets,n=this.pickedGeometries;i.length=0;for(var s=0;s<t;++s){var o=e[s];o.intersected&&i.push(o)}if(0===i.length)return n.length=0,n;switch(this.sortOrder){case T.ANY:i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case T.CLOSEST:this.pickedTargetsSorter.sort(0,i.length),i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case T.ALL:s=0;for(var r=i.length;s<r;++s)n[s]=this.getPickedGeometry(i[s]);n.length=r;break;case T.ALL_SORTED:for(this.pickedTargetsSorter.sort(0,i.length),s=0,r=i.length;s<r;++s)n[s]=this.getPickedGeometry(i[s]);n.length=r}return n},getPickedGeometry(e){var t=this.getExecutionContext(),i=e.geometryNode;if(i.getExecutionContext()===t)return i;if((o=i.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&o.getExecutionContext()===t)return o;for(var n=e.pickingHierarchy,s=n.length-1;s>=0;--s){var o,r=n[s];if(r.getExecutionContext()===t)return r;if((o=r.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&o.getExecutionContext()===t)return o}return null},getPickedTargets(){return this.pickedTargets},set_live__(){this.getLive().getValue()&&this._enabled.getValue()&&!this.objectType.has("NONE")?(this.getBrowser().addPickSensor(this),this.setPickableObject(!0)):(this.getBrowser().removePickSensor(this),this.setPickableObject(!1))},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e]);this.set_live__()},set_matchCriterion__:(A=new Map([["MATCH_ANY",k.MATCH_ANY],["MATCH_EVERY",k.MATCH_EVERY],["MATCH_ONLY_ONE",k.MATCH_ONLY_ONE]]),function(){this.matchCriterion=A.get(this._matchCriterion.getValue()),void 0===this.matchCriterion&&(this.matchCriterion=MatchCriterionType.MATCH_ANY)}),set_intersectionType__:(j=new Map([["BOUNDS",f.BOUNDS],["GEOMETRY",f.GEOMETRY]]),function(){this.intersectionType=j.get(this._intersectionType.getValue()),void 0===this.intersectionType&&(this.intersectionType=f.BOUNDS)}),set_sortOrder__:(B=new Map([["ANY",T.ANY],["CLOSEST",T.CLOSEST],["ALL",T.ALL],["ALL_SORTED",T.ALL_SORTED]]),function(){this.sortOrder=B.get(this._sortOrder.getValue()),void 0===this.sortOrder&&(this.sortOrder=T.CLOSEST)}),set_pickTarget__(){this.pickTargetNodes.clear();for(var e=0,t=this._pickTarget.length;e<t;++e)try{for(var i=this._pickTarget[e].getValue().getInnerNode(),n=i.getType(),s=n.length-1;s>=0;--s)switch(n[s]){case u().Inline:case u().Shape:case u().X3DGroupingNode:this.pickTargetNodes.add(i);break;default:continue}}catch{}},traverse(e,t){e===d().PICKING&&this.isPickableObject()&&this.modelMatrices.push(F.pop().assign(t.getModelViewMatrix().get()))},collect(e,t,i){var n=this.pickTargetNodes;if(i.some((e=>n.has(e)))){var s=this.targets;if(s.size<s.length)var o=s[s.size];else{o={modelMatrix:new(C()),pickingHierarchy:[],pickedPoint:[],intersections:[]};s.push(o)}++s.size,o.intersected=!1,o.geometryNode=e,o.pickedPoint.length=0,o.intersections.length=0,o.modelMatrix.assign(t);for(var r=o.pickingHierarchy,a=0,c=i.length;a<c;++a)r[a]=i[a];r.length=c}},process(){for(var e=this.modelMatrices,t=0,i=e.length;t<i;++t)F.push(e[t]);this.modelMatrices.length=0,this.targets.size=0}}),Object.defineProperties(D,{typeName:{value:"X3DPickSensorNode",enumerable:!0},componentName:{value:"Picking",enumerable:!0}});const I=D;y().set("x_ite/Components/Picking/X3DPickSensorNode",I);const L=I,z=window[Symbol.for("X_ITE.X3D-8.8.4")].require("standard/Math/Numbers/Vector3");var V=e.n(z);const X=window[Symbol.for("X_ITE.X3D-8.8.4")].require("standard/Math/Geometry/Box3");var R=e.n(X);const q=window[Symbol.for("X_ITE.X3D-8.8.4")].require("standard/Math/Geometry/Line3");var Y,H,U,W,K,Q,Z,J,$,ee,te,ie,ne,se,oe,re,ae=e.n(q);function ce(e){L.call(this,e),this.addType(u().LinePickSensor),this.pickingGeometryNode=null}Object.assign(Object.setPrototypeOf(ce.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().IndexedLineSet:case u().LineSet:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:(Y=new(R()),H=new(R()),U=new(V())(0,0,0),W=new(V())(0,0,0),K=new(C()),Q=new(V())(0,0,0),Z=new(V())(0,0,0),J=new(ae())(V().Zero,V().zAxis),$=new(V())(0,0,0),ee=new(V())(0,0,0),te=[],ie=[],ne=new(V())(0,0,0),se=new(s().MFVec3f),oe=new(s().MFVec3f),re=new(s().MFVec3f),function(){if(this.pickingGeometryNode){var e=this.getModelMatrices(),t=this.getTargets();switch(this.getIntersectionType()){case f.BOUNDS:for(var i=0,n=e.length;i<n;++i){var s=e[i];Y.assign(this.pickingGeometryNode.getBBox()).multRight(s);for(var o=0,r=t.size;o<r;++o){var a=t[o];H.assign(a.geometryNode.getBBox()).multRight(a.modelMatrix),Y.intersectsBox(H)&&(U.assign(Y.center),W.assign(H.center),a.intersected=!0,a.distance=U.distance(W))}}var c=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case f.GEOMETRY:for(i=0,n=e.length;i<n;++i)for(s=e[i],Y.assign(this.pickingGeometryNode.getBBox()).multRight(s),o=0,r=t.size;o<r;++o){var h=(a=t[o]).geometryNode,p=this.pickingGeometryNode.getVertices();H.assign(h.getBBox()).multRight(a.modelMatrix),K.assign(a.modelMatrix).inverse().multLeft(s);for(var l=0,d=p.length;l<d;l+=8)if(K.multVecMatrix(Q.set(p[l+0],p[l+1],p[l+2])),K.multVecMatrix(Z.set(p[l+4],p[l+5],p[l+6])),J.setPoints(Q,Z),ie.length=0,h.intersectsLine(J,a.modelMatrix,te,ie))for(var g=0,u=ie.length;g<u;++g){var m=ie[g];$.assign(m.point).subtract(Q),ee.assign(m.point).subtract(Z),$.add(ee).magnitude()<=Q.distance(Z)&&a.intersections.push(m)}a.intersections.length&&(U.assign(Y.center),W.assign(H.center),a.intersected=!0,a.distance=U.distance(W))}var y;c=!!(y=this.getPickedGeometries()).length,y.assign(y.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);var _=this.getPickedTargets();for(se.length=0,oe.length=0,re.length=0,o=0,r=_.length;o<r;++o){var w=_[o].intersections;for(g=0,u=w.length;g<u;++g)o=(m=w[g]).texCoord,ne.set(o.x,o.y,o.z),se.push(ne),oe.push(m.normal),re.push(m.point)}this._pickedTextureCoordinate.equals(se)||(this._pickedTextureCoordinate=se),this._pickedNormal.equals(oe)||(this._pickedNormal=oe),this._pickedPoint.equals(re)||(this._pickedPoint=re)}}L.prototype.process.call(this)})}),Object.defineProperties(ce,{typeName:{value:"LinePickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().outputOnly,"pickedTextureCoordinate",new(s().MFVec3f)),new(r())(u().outputOnly,"pickedNormal",new(s().MFVec3f)),new(r())(u().outputOnly,"pickedPoint",new(s().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const he=ce;y().set("x_ite/Components/Picking/LinePickSensor",he);const pe=he,le=window[Symbol.for("X_ITE.X3D-8.8.4")].require("x_ite/Components/Grouping/X3DGroupingNode");var de=e.n(le);function ge(e){this.addType(u().X3DPickableObject),this.objectType=new Set}Object.assign(ge.prototype,{initialize(){this._objectType.addInterest("set_objectType__",this),this.set_objectType__()},getObjectType(){return this.objectType},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e])},dispose(){}}),Object.defineProperties(ge,{typeName:{value:"X3DPickableObject",enumerable:!0},componentName:{value:"Picking",enumerable:!0}});const ue=ge;y().set("x_ite/Components/Picking/X3DPickableObject",ue);const me=ue;function ye(e){de().call(this,e),me.call(this,e),this.addType(u().PickableGroup)}Object.assign(Object.setPrototypeOf(ye.prototype,de().prototype),me.prototype,{initialize(){de().prototype.initialize.call(this),me.prototype.initialize.call(this),this._pickable.addInterest("set_pickable__",this),this.set_pickable__()},set_pickableObjects__(){this.set_pickable__()},set_pickable__(){this.setPickableObject(!(!this._pickable.getValue()&&!this.getTransformSensors().size))},traverse:(()=>{const e=new Set;return function(t,i){if(t===d().PICKING){if(this._pickable.getValue()){if(this.getObjectType().has("NONE"))return;const n=this.getBrowser(),s=n.getPickable();if(this.getObjectType().has("ALL"))s.push(!0),de().prototype.traverse.call(this,t,i),s.pop();else{const o=n.getPickSensors();for(const t of o.at(-1)){if(!t.getObjectType().has("ALL")){let e=0;for(const i of this.getObjectType())if(t.getObjectType().has(i)){++e;break}switch(t.getMatchCriterion()){case k.MATCH_ANY:if(0===e)continue;break;case k.MATCH_EVERY:if(e!==pickSensor.getObjectType().size)continue;break;case k.MATCH_ONLY_ONE:if(1!==e)continue}}e.add(t)}s.push(!0),o.push(e),de().prototype.traverse.call(this,t,i),o.pop(),s.pop(),e.clear()}}}else de().prototype.traverse.call(this,t,i)}})(),dispose(){me.prototype.dispose.call(this),de().prototype.dispose.call(this)}}),Object.defineProperties(ye,{typeName:{value:"PickableGroup",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"pickable",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(s().MFNode)),new(r())(u().inputOnly,"removeChildren",new(s().MFNode)),new(r())(u().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const _e=ye;y().set("x_ite/Components/Picking/PickableGroup",_e);const we=_e,ke=window[Symbol.for("X_ITE.X3D-8.8.4")].require("x_ite/Base/X3DCast");var Se=e.n(ke);const be=window[Symbol.for("X_ITE.X3D-8.8.4")].require("standard/Math/Numbers/Rotation4");var fe=e.n(be);const ve=window[Symbol.for("X_ITE.X3D-8.8.4")].require("lib/ammojs/AmmoClass");var Oe=e.n(ve);function Te(){this.broadphase=new(Oe().btDbvtBroadphase),this.collisionConfiguration=new(Oe().btDefaultCollisionConfiguration),this.dispatcher=new(Oe().btCollisionDispatcher)(this.collisionConfiguration),this.collisionWorld=new(Oe().btCollisionWorld)(this.dispatcher,this.broadphase,this.collisionConfiguration),this.compoundShape1=new(Oe().btCompoundShape),this.motionState1=new(Oe().btDefaultMotionState),this.constructionInfo1=new(Oe().btRigidBodyConstructionInfo)(0,this.motionState1,this.compoundShape1),this.rigidBody1=new(Oe().btRigidBody)(this.constructionInfo1),this.compoundShape2=new(Oe().btCompoundShape),this.motionState2=new(Oe().btDefaultMotionState),this.constructionInfo2=new(Oe().btRigidBodyConstructionInfo)(0,this.motionState2,this.compoundShape2),this.rigidBody2=new(Oe().btRigidBody)(this.constructionInfo2),this.collisionWorld.addCollisionObject(this.rigidBody1),this.collisionWorld.addCollisionObject(this.rigidBody2)}Object.assign(Te.prototype,{constuctor:Te,setChildShape1(e,t){this.setChildShape(this.compoundShape1,e,t)},setChildShape2(e,t){this.setChildShape(this.compoundShape2,e,t)},setChildShape1Components(e,t,i){this.setChildShapeComponents(this.compoundShape1,e,t,i)},setChildShape2Components(e,t,i){this.setChildShapeComponents(this.compoundShape2,e,t,i)},setChildShape:(()=>{const e=new(V())(0,0,0),t=new(fe()),i=new(V())(1,1,1),n=new(Oe().btVector3)(0,0,0);return function(s,o,r){s.getNumChildShapes()&&s.removeChildShapeByIndex(0),r.getNumChildShapes()&&(o.get(e,t,i),n.setValue(i.x,i.y,i.z),r.setLocalScaling(n),s.addChildShape(this.getTransform(e,t),r))}})(),setChildShapeComponents(e,t,i,n){e.getNumChildShapes()&&e.removeChildShapeByIndex(0),n.getNumChildShapes()&&(n.setLocalScaling(i),e.addChildShape(t,n))},contactTest(){this.collisionWorld.performDiscreteCollisionDetection();const e=this.dispatcher.getNumManifolds();for(let t=0;t<e;++t){const e=this.dispatcher.getManifoldByIndexInternal(t),i=e.getNumContacts();for(let t=0;t<i;++t){if(e.getContactPoint(t).getDistance()<=0)return!0}}return!1},getTransform:(()=>{const e=new(Oe().btTransform),t=new(Oe().btVector3)(0,0,0),i=new(C());return function(n,s,o){const r=o||e;return i.set(n,s),t.setValue(i[12],i[13],i[14]),r.getBasis().setValue(i[0],i[4],i[8],i[1],i[5],i[9],i[2],i[6],i[10]),r.setOrigin(t),r}})()});const Ne=Te;y().set("x_ite/Browser/Picking/VolumePicker",Ne);const Ce=Ne;function Pe(e){L.call(this,e),this.addType(u().PointPickSensor),this.pickingGeometryNode=null,this.picker=new Ce,this.compoundShapes=[]}var Ge,Me,xe;Object.assign(Object.setPrototypeOf(Pe.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.removeInterest("set_geometry__",this),this.pickingGeometryNode=Se()(u().PointSet,this._pickingGeometry),this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.addInterest("set_geometry__",this),this.set_geometry__()},set_geometry__:(Ge=new(Oe().btVector3)(1,1,1),Me=new(Oe().btVector3),xe=new(Oe().btTransform),function(){var e=this.compoundShapes;if(this.pickingGeometryNode){var t=this.pickingGeometryNode.getCoord();if(t){for(var i=0,n=t.getSize();i<n;++i)if(i<e.length){var s=e[i],o=t.get1Point(i,s.point);Me.setValue(o.x,o.y,o.z),xe.setOrigin(Me),s.setLocalScaling(Ge),s.updateChildTransform(0,xe)}else{s=new(Oe().btCompoundShape);var r=new(Oe().btSphereShape)(0);o=t.get1Point(i,new(V())(0,0,0)),s.point=o,Me.setValue(o.x,o.y,o.z),xe.setOrigin(Me),s.addChildShape(xe,r),e.push(s)}e.length=n}else e.length=0}else e.length=0}),process:(()=>{var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0),o=new(Oe().btTransform),r=new(Oe().btVector3),a=new(V())(0,0,0),c=new(fe()),h=new(V())(1,1,1),p=new(s().MFVec3f);return function(){if(this.pickingGeometryNode){var s=this.getModelMatrices(),l=this.getTargets();switch(this.getIntersectionType()){case f.BOUNDS:for(var d=0,g=s.length;d<g;++d){var u=s[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u);for(var m=0,y=l.size;m<y;++m){var _=l[m];t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n))}}var w=!!(N=this.getPickedGeometries()).length;N.assign(N.filter((e=>e))),w!==this._isActive.getValue()&&(this._isActive=w),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);break;case f.GEOMETRY:var k=this.picker,S=this.compoundShapes;for(d=0,g=s.length;d<g;++d){u=s[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u),u.get(a,c,h),k.getTransform(a,c,o),r.setValue(h.x,h.y,h.z);for(var b=0,v=S.length;b<v;++b){var O=S[b];k.setChildShape1Components(o,r,O);for(m=0,y=l.size;m<y;++m){_=l[m];var T=this.getPickShape(_.geometryNode);t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),k.setChildShape2(_.modelMatrix,T.getCompoundShape()),k.contactTest()&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n),_.pickedPoint.push(O.point))}}}var N;w=!!(N=this.getPickedGeometries()).length;N.assign(N.filter((e=>e))),w!==this._isActive.getValue()&&(this._isActive=w),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);var C=this.getPickedTargets();p.length=0;for(m=0,y=C.length;m<y;++m)for(var P=C[m].pickedPoint,G=0,M=P.length;G<M;++G)p.push(P[G]);this._pickedPoint.equals(p)||(this._pickedPoint=p)}}L.prototype.process.call(this)}})()}),Object.defineProperties(Pe,{typeName:{value:"PointPickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().outputOnly,"pickedPoint",new(s().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const Be=Pe;y().set("x_ite/Components/Picking/PointPickSensor",Be);const je=Be;function Ae(e){L.call(this,e),this.addType(u().PrimitivePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}Object.assign(Object.setPrototypeOf(Ae.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().Box:case u().Cone:case u().Cylinder:case u().Sphere:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:(()=>{var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var s=this.getModelMatrices(),o=this.getTargets();switch(this.getIntersectionType()){case f.BOUNDS:for(var r=0,a=s.length;r<a;++r){var c=s[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(var h=0,p=o.size;h<p;++h){var l=o[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case f.GEOMETRY:var g=this.picker;for(r=0,a=s.length;r<a;++r){c=s[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(c),g.setChildShape1(c,u.getCompoundShape());for(h=0,p=o.size;h<p;++h){l=o[h];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),g.setChildShape2(l.modelMatrix,m.getCompoundShape()),g.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}L.prototype.process.call(this)}})()}),Object.defineProperties(Ae,{typeName:{value:"PrimitivePickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const Fe=Ae;y().set("x_ite/Components/Picking/PrimitivePickSensor",Fe);const Ee=Fe;function De(e){L.call(this,e),this.addType(u().VolumePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}Object.assign(Object.setPrototypeOf(De.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=Se()(u().X3DGeometryNode,this._pickingGeometry)},process:(()=>{var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var s=this.getModelMatrices(),o=this.getTargets();switch(this.getIntersectionType()){case f.BOUNDS:for(var r=0,a=s.length;r<a;++r){var c=s[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(var h=0,p=o.size;h<p;++h){var l=o[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case f.GEOMETRY:var g=this.picker;for(r=0,a=s.length;r<a;++r){c=s[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(c),g.setChildShape1(c,u.getCompoundShape());for(h=0,p=o.size;h<p;++h){l=o[h];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),g.setChildShape2(l.modelMatrix,m.getCompoundShape()),g.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}L.prototype.process.call(this)}})()}),Object.defineProperties(De,{typeName:{value:"VolumePickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const Ie=De;y().set("x_ite/Components/Picking/VolumePickSensor",Ie);const Le=Ie;i().add({name:"Picking",concreteNodes:[pe,we,je,Ee,Le],abstractNodes:[L,me]});const ze=void 0;y().set("assets/components/Picking",ze)})();