x_ite 8.6.10 → 8.6.12

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 (128) hide show
  1. package/Makefile +12 -12
  2. package/build/bin/version.pl +6 -0
  3. package/dist/assets/components/Annotation.js +13 -13
  4. package/dist/assets/components/Annotation.min.js +1 -1
  5. package/dist/assets/components/CADGeometry.js +21 -45
  6. package/dist/assets/components/CADGeometry.min.js +1 -1
  7. package/dist/assets/components/CubeMapTexturing.js +25 -25
  8. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  9. package/dist/assets/components/DIS.js +13 -13
  10. package/dist/assets/components/DIS.min.js +1 -1
  11. package/dist/assets/components/EventUtilities.js +9 -9
  12. package/dist/assets/components/EventUtilities.min.js +1 -1
  13. package/dist/assets/components/Geometry2D.js +19 -19
  14. package/dist/assets/components/Geometry2D.min.js +1 -1
  15. package/dist/assets/components/Geospatial.js +40 -58
  16. package/dist/assets/components/Geospatial.min.js +1 -1
  17. package/dist/assets/components/HAnim.js +18 -18
  18. package/dist/assets/components/HAnim.min.js +1 -1
  19. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  20. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  21. package/dist/assets/components/Layout.js +48 -42
  22. package/dist/assets/components/Layout.min.js +1 -1
  23. package/dist/assets/components/NURBS.js +28 -34
  24. package/dist/assets/components/NURBS.min.js +1 -1
  25. package/dist/assets/components/ParticleSystems.js +140 -29
  26. package/dist/assets/components/ParticleSystems.min.js +1 -1
  27. package/dist/assets/components/Picking.js +132 -22
  28. package/dist/assets/components/Picking.min.js +1 -1
  29. package/dist/assets/components/RigidBodyPhysics.js +33 -77
  30. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  31. package/dist/assets/components/Scripting.js +28 -28
  32. package/dist/assets/components/Scripting.min.js +1 -1
  33. package/dist/assets/components/Text.js +24 -24
  34. package/dist/assets/components/Text.min.js +1 -1
  35. package/dist/assets/components/TextureProjector.js +14 -14
  36. package/dist/assets/components/TextureProjector.min.js +1 -1
  37. package/dist/assets/components/Texturing3D.js +30 -30
  38. package/dist/assets/components/Texturing3D.min.js +1 -1
  39. package/dist/assets/components/VolumeRendering.js +19 -19
  40. package/dist/assets/components/VolumeRendering.min.js +1 -1
  41. package/dist/assets/components/X_ITE.js +9 -9
  42. package/dist/assets/components/X_ITE.min.js +1 -1
  43. package/dist/x_ite.css +1 -1
  44. package/dist/x_ite.js +645 -786
  45. package/dist/x_ite.min.js +1 -1
  46. package/dist/x_ite.zip +0 -0
  47. package/docs/_config.yml +1 -1
  48. package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +1 -1
  49. package/docs/_posts/components/Lighting/DirectionalLight.md +4 -4
  50. package/docs/_posts/components/Lighting/EnvironmentLight.md +4 -4
  51. package/docs/_posts/components/Lighting/PointLight.md +4 -4
  52. package/docs/_posts/components/Lighting/SpotLight.md +4 -4
  53. package/docs/_posts/components/Rendering/IndexedLineSet.md +1 -1
  54. package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +1 -1
  55. package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +1 -1
  56. package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +1 -1
  57. package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +1 -1
  58. package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +3 -3
  59. package/docs/_posts/components/X_ITE/BlendMode.md +1 -1
  60. package/docs/_posts/getting-started.md +8 -3
  61. package/docs/_posts/reference/browser-services.md +1 -1
  62. package/docs/_posts/reference/ecmascript-object-and-function-definitions.md +16 -99
  63. package/docs/_posts/what's-new.md +1 -1
  64. package/docs/laboratory/gltf-sample-viewer.html +4 -2
  65. package/package.json +3 -3
  66. package/src/assets/shaders/webgl1/include/Fragment.glsl.js +11 -4
  67. package/src/assets/shaders/webgl2/include/Fragment.glsl.js +11 -4
  68. package/src/lib/jquery.js +6 -1
  69. package/src/standard/Math/Algorithm.js +8 -1
  70. package/src/standard/Math/Geometry/Box3.js +2 -5
  71. package/src/standard/Utility/BitSet.js +33 -0
  72. package/src/x_ite/Base/X3DBaseNode.js +8 -0
  73. package/src/x_ite/Base/X3DObject.js +14 -1
  74. package/src/x_ite/Browser/Core/BrowserOptions.js +27 -29
  75. package/src/x_ite/Browser/Core/BrowserTimings.js +4 -12
  76. package/src/x_ite/Browser/Core/Context.js +1 -1
  77. package/src/x_ite/Browser/Core/X3DCoreContext.js +5 -0
  78. package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +3 -3
  79. package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +20 -15
  80. package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +3 -3
  81. package/src/x_ite/Browser/Rendering/GeometryContext.js +2 -0
  82. package/src/x_ite/Browser/Shape/AlphaMode.js +1 -1
  83. package/src/x_ite/Browser/VERSION.js +1 -1
  84. package/src/x_ite/Browser/X3DBrowser.js +4 -4
  85. package/src/x_ite/Browser/X3DBrowserContext.js +21 -12
  86. package/src/x_ite/Components/CADGeometry/CADFace.js +8 -32
  87. package/src/x_ite/Components/Core/X3DNode.js +1 -1
  88. package/src/x_ite/Components/Core/X3DPrototypeInstance.js +1 -1
  89. package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +115 -139
  90. package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +1 -1
  91. package/src/x_ite/Components/Geometry3D/ElevationGrid.js +10 -31
  92. package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +3 -6
  93. package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +7 -25
  94. package/src/x_ite/Components/Grouping/StaticGroup.js +19 -0
  95. package/src/x_ite/Components/Grouping/Switch.js +7 -25
  96. package/src/x_ite/Components/Grouping/X3DBoundedObject.js +0 -1
  97. package/src/x_ite/Components/Grouping/X3DGroupingNode.js +1 -1
  98. package/src/x_ite/Components/Layout/Layout.js +12 -10
  99. package/src/x_ite/Components/Layout/LayoutGroup.js +9 -5
  100. package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +4 -10
  101. package/src/x_ite/Components/Navigation/LOD.js +7 -25
  102. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +1 -11
  103. package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +4 -3
  104. package/src/x_ite/Components/Rendering/IndexedLineSet.js +11 -33
  105. package/src/x_ite/Components/Rendering/LineSet.js +12 -37
  106. package/src/x_ite/Components/Rendering/PointSet.js +11 -24
  107. package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +14 -39
  108. package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +15 -8
  109. package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +7 -29
  110. package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +8 -30
  111. package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +3 -10
  112. package/src/x_ite/Components/Shape/Appearance.js +9 -5
  113. package/src/x_ite/Components/Shape/Material.js +1 -2
  114. package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -2
  115. package/src/x_ite/Components/Shape/Shape.js +0 -5
  116. package/src/x_ite/Components/Shape/TwoSidedMaterial.js +1 -1
  117. package/src/x_ite/Components/Shape/UnlitMaterial.js +1 -1
  118. package/src/x_ite/Components/Shape/X3DMaterialNode.js +24 -9
  119. package/src/x_ite/Components/Shape/X3DShapeNode.js +21 -18
  120. package/src/x_ite/Components/Texturing/ImageTexture.js +1 -1
  121. package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +2 -0
  122. package/src/x_ite/Fields/SFImage.js +9 -9
  123. package/src/x_ite/Fields/SFInt32.js +2 -2
  124. package/src/x_ite/Fields/SFNode.js +8 -0
  125. package/src/x_ite/Rendering/X3DRenderObject.js +0 -1
  126. package/src/x_ite/{X3DCanvas.js → X3DCanvasElement.js} +23 -4
  127. package/src/x_ite.js +4 -4
  128. package/x_ite.min.html +1 -1
@@ -1 +1 @@
1
- /* X_ITE v8.6.10 */(()=>{"use strict";var t={n:e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return t.d(i,{a:i}),i},d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components");var i=t.n(e);const n=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Fields");var o=t.n(n);const s=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/X3DFieldDefinition");var r=t.n(s);const a=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/FieldDefinitionArray");var l=t.n(a);const h=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Rendering/X3DCoordinateNode");var c=t.n(h);const d=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/X3DConstants");var u=t.n(d);const p=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Namespace");var g=t.n(p);function _(t,e){switch(arguments.length){case 0:this.semiMajorAxis=0,this.semiMinorAxis=0;break;case 2:this.semiMajorAxis=t,this.semiMinorAxis=e;break;case 3:const i=arguments[1];this.semiMajorAxis=t,this.semiMinorAxis=t*(1-1/i)}}_.prototype={constructor:_,getSemiMajorAxis:function(){return this.semiMajorAxis},getSemiMinorAxis:function(){return this.semiMinorAxis},toString:function(){return this.semiMajorAxis+" "+this.semiMinorAxis}};const w=_;g().set("standard/Math/Geometry/Spheroid3",w);const m=w,f={AA:new m(6377563.396,299.3249646,!0),AM:new m(6377340.189,299.3249646,!0),AN:new m(6378160,298.25,!0),BN:new m(6377483.865,299.1528128,!0),BR:new m(6377397.155,299.1528128,!0),CC:new m(6378206.4,294.9786982,!0),CD:new m(6378249.145,293.465,!0),EA:new m(6377276.345,300.8017,!0),EB:new m(6377298.556,300.8017,!0),EC:new m(6377301.243,300.8017,!0),ED:new m(6377295.664,300.8017,!0),EE:new m(6377304.063,300.8017,!0),EF:new m(6377309.613,300.8017,!0),FA:new m(6378155,298.3,!0),HE:new m(6378200,298.3,!0),HO:new m(6378270,297,!0),ID:new m(6378160,298.247,!0),IN:new m(6378388,297,!0),KA:new m(6378245,298.3,!0),RF:new m(6378137,298.257222101,!0),SA:new m(6378160,298.25,!0),WD:new m(6378135,298.26,!0),WE:new m(6378137,298.257223563,!0),SUN:new m(696342e3,1/9e-6,!0),MERCURY:new m(2439700,2439700),VENUS:new m(6051800,6051800),MOON:new m(1738140,1735970),MARS:new m(3395428,3377678),JUPITER:new m(71492e3,66854e3),SATURN:new m(60268e3,54364e3),URANUS:new m(2555e3,24973e3),NEPTUNE:new m(24764e3,24341e3),PLUTO:new m(1153e3,1153e3)};g().set("standard/Geospatial/ReferenceEllipsoids",f);const y=f,O=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Numbers/Vector3");var S=t.n(O);const I=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Algorithm");var b=t.n(I);function F(t,e,i){this.longitudeFirst=!e,this.degrees=!i,this.a=t.getSemiMajorAxis(),this.c=t.getSemiMinorAxis(),this.c2a2=Math.pow(t.getSemiMinorAxis()/this.a,2),this.ecc2=1-this.c2a2}F.prototype={constructor:F,convert:function(t,e){const i=t.z;if(this.longitudeFirst)var n=t.y,o=t.x;else n=t.x,o=t.y;return this.degrees&&(n*=Math.PI/180,o*=Math.PI/180),this.convertRadians(n,o,i,e)},convertRadians:function(t,e,i,n){const o=Math.sin(t),s=Math.pow(o,2),r=Math.cos(t),a=this.a/Math.sqrt(1-this.ecc2*s),l=(a+i)*r;return n.set(l*Math.cos(e),l*Math.sin(e),(a*this.c2a2+i)*o)},apply:function(t,e){if(this.applyRadians(t,e),this.degrees&&(e.x*=180/Math.PI,e.y*=180/Math.PI),this.longitudeFirst){const t=e.x;e.x=e.y,e.y=t}return e},applyRadians:function(t,e){const i=t.x,n=t.y,o=t.z,s=Math.sqrt(i*i+n*n);if(0==s)return e.set(Math.PI,0,o-this.c);let r=0,a=Math.atan2(n,i),l=0,h=this.a,c=h,d=this.ecc2;for(let t=0;t<30;++t){const t=l,e=r;r=Math.atan(o/s/(1-d*c/(c+l)));const i=Math.sin(r);if(c=h/Math.sqrt(1-d*i*i),l=s/Math.cos(r)-c,Math.abs(l-t)<.001&&Math.abs(r-e)<1e-10)break}return e.set(r,a,l)},normal:function(t,e){const i=this.applyRadians(t,e),n=i.x,o=i.y,s=Math.cos(n),r=Math.cos(o)*s,a=Math.sin(o)*s,l=Math.sin(n);return e.set(r,a,l)}};const C=F;g().set("standard/Geospatial/Geodetic",C);const x=C,v=1e7,N=5e5,M=.9996;function T(t,e,i,n){const o=t.getSemiMajorAxis(),s=1-Math.pow(t.getSemiMinorAxis()/o,2),r=s/(1-s),a=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s));this.southernHemisphere=!i,this.eastingFirst=!n,this.a=o,this.ecc2=s,this.EE=r,this.E8=8*r,this.E9=9*r,this.E252=252*r,this.e1=a,this.A=M*(o*(1-s/4-3*s*s/64-5*s*s*s/256)),this.B=3*a/2-7*a*a*a/32,this.C=21*a*a/16-55*a*a*a*a/32,this.D=151*a*a*a/96,this.E=o*(1-s),this.W=1-s/4-3*s*s/64-5*s*s*s/256,this.X=3*s/8+3*s*s/32+45*s*s*s/1024,this.Y=15*s*s/256+45*s*s*s/1024,this.Z=35*s*s*s/3072,this.longitude0=b().radians(6*e-183),this.geodeticConverter=new x(t,!0,!0)}T.prototype={constructor:T,convert:function(t,e){if(this.eastingFirst)var i=t.y,n=t.x;else i=t.x,n=t.y;let o=this.southernHemisphere;i<0&&(o=!this.southernHemisphere,i=-i),o&&(i-=v),n-=N;const s=i/this.A,r=s+this.B*Math.sin(2*s)+this.C*Math.sin(4*s)+this.D*Math.sin(6*s),a=Math.pow(Math.sin(r),2),l=Math.cos(r),h=Math.tan(r),c=this.a/Math.sqrt(1-this.ecc2*a),d=Math.pow(h,2),u=Math.pow(h,8),p=this.EE*d,g=p*p,_=this.E/Math.pow(1-this.ecc2*a,1.5),w=n/(c*M),m=(5+3*d+10*p-4*g-this.E9)*Math.pow(w,4)/24,f=(61+90*d+298*p+45*u-this.E252-3*g)*Math.pow(w,6)/720,y=(5-2*p+28*d-3*g+this.E8+24*u)*Math.pow(w,5)/120,O=r-c*h/_*(w*w/2-m+f),S=this.longitude0+(w-(1+2*d+p)*Math.pow(w,3)/6+y)/l;return this.geodeticConverter.convertRadians(O,S,t.z,e)},apply:function(t,e){const i=this.geodeticConverter.applyRadians(t,e),n=i.x,o=i.y,s=Math.tan(n),r=Math.cos(n),a=this.EE,l=this.a/Math.sqrt(1-this.ecc2*Math.pow(Math.sin(n),2)),h=s*s,c=h*h*h,d=a*r*r,u=r*(o-this.longitude0),p=this.a*(this.W*n-this.X*Math.sin(2*n)+this.Y*Math.sin(4*n)-this.Z*Math.sin(6*n)),g=M*l*(u+(1-h+d)*Math.pow(u,3)/6+(5-18*c+72*d-58*a)*Math.pow(u,5)/120)+N;let _=M*(p+l*s*(u*u/2+(5-h+9*d+4*d*d)*Math.pow(u,4)/24+(61-58*c+600*d-330*a)*Math.pow(u,6)/720));return n<0?(_+=v,this.southernHemisphere||(_=-_)):this.southernHemisphere&&(_=-_),this.eastingFirst?e.set(g,_,i.z):e.set(_,g,i.z)}};const G=T;g().set("standard/Geospatial/UniversalTransverseMercator",G);const D=G;function E(){}E.prototype={constructor:E,convert:function(t,e){return e.assign(t)},apply:function(t,e){return e.assign(t)},slerp:function(t,e,i){const n=t.magnitude(),o=e.magnitude();return t.normalize(),e.normalize(),b().simpleSlerp(t,e,i).multiply(b().lerp(n,o,i))}};const V=E;g().set("x_ite/Browser/Geospatial/Geocentric",V);const z=V;let j=0;const X=j++,P=j++,B=j++,k={GD:X,GDC:X,UTM:P,GC:B,GCC:B,GS:B},L=/^Z(\d+)$/,A={GD:X,UTM:P,GC:B,getReferenceFrame:function(t,e){switch(this.getCoordinateSystem(t)){case X:return new x(this.getEllipsoid(t),this.getLatitudeFirst(t),e);case P:return new D(this.getEllipsoid(t),this.getZone(t),this.getNorthernHemisphere(t),this.getNorthingFirst(t));case B:return new z}return new x(y.WE,!0,e)},getElevationFrame:function(t,e){return new x(this.getEllipsoid(t),!0,e)},getCoordinateSystem:function(t){for(const e of t){const t=k[e];if(void 0!==t)return t}return X},getEllipsoid:function(t){for(const e of t){const t=y[e];if(void 0!==t)return t}return y.WE},getEllipsoidString:function(t){for(const e of t){if(void 0!==y[e])return e}return"WE"},isStandardOrder:function(t){switch(this.getCoordinateSystem(t)){case X:return this.getLatitudeFirst(t);case P:return this.getNorthingFirst(t);case B:return!0}return this.getLatitudeFirst(t)},getLatitudeFirst:function(t){for(const e of t)if("longitude_first"===e)return!1;return!0},getNorthingFirst:function(t){for(const e of t)if("easting_first"===e)return!1;return!0},getZone:function(t){for(const e of t){const t=e.match(L);if(t)return parseInt(t[1])}return 1},getNorthernHemisphere:function(t){for(const e of t)if("S"===e)return!1;return!0}};g().set("x_ite/Browser/Geospatial/Geospatial",A);const R=A,U=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/X3DCast");var q=t.n(U);const W=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Numbers/Matrix4");var H=t.n(W),Y=new(S())(0,0,0),Z=new(S())(0,0,0),K=new(S())(0,0,0),J=new(S())(0,0,0),Q=new(S())(0,0,0),$=new(S())(0,0,0);function tt(t){this.addType(u().X3DGeospatialObject),this.radians=!1,this.origin=new(S())(0,0,0),this.originMatrix=new(H()),this.invOriginMatrix=new(H())}function et(t,e){return this.invOriginMatrix.multVecMatrix(this.referenceFrame.convert(t,e))}function it(t,e){return this.referenceFrame.apply(this.originMatrix.multVecMatrix(Y.assign(t)),e)}function nt(t,e){return this.invOriginMatrix.multDirMatrix(this.elevationFrame.normal(this.originMatrix.multVecMatrix(Y.assign(t)),e))}function ot(t,e){return st.call(this,t,e).multRight(this.invOriginMatrix)}function st(t,e){return this.referenceFrame.convert(t,K),this.elevationFrame.normal(K,Q),J.set(0,0,1).cross(Q),J.equals(S().Zero)&&J.set(1,0,0),$.assign(J).cross(Q),J.normalize(),$.normalize(),e.set(J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,0,K.x,K.y,K.z,1)}tt.prototype={constructor:tt,initialize:function(){this._geoSystem.addInterest("set_geoSystem__",this),this._geoOrigin.addInterest("set_geoOrigin__",this),this.set_geoSystem__(),this.set_geoOrigin__()},set_geoSystem__:function(){this.coordinateSystem=R.getCoordinateSystem(this._geoSystem),this.referenceFrame=R.getReferenceFrame(this._geoSystem,this.radians),this.elevationFrame=R.getElevationFrame(this._geoSystem,this.radians),this.standardOrder=R.isStandardOrder(this._geoSystem)},set_geoOrigin__:function(){this.geoOriginNode&&(this.geoOriginNode.removeInterest("set_origin__",this),this.geoOriginNode.removeInterest("set_rotateYUp__",this),this.geoOriginNode.removeInterest("addNodeEvent",this)),this.geoOriginNode=q()(u().GeoOrigin,this._geoOrigin),this.geoOriginNode&&(this.geoOriginNode.addInterest("set_origin__",this),this.geoOriginNode.addInterest("set_rotateYUp__",this),this.geoOriginNode.addInterest("addNodeEvent",this)),this.set_origin__(),this.set_rotateYUp__()},set_origin__:function(){this.geoOriginNode?this.geoOriginNode.getOrigin(this.origin):this.origin.set(0,0,0),this.set_originMatrix__()},set_originMatrix__:function(){if(this.geoOriginNode){var t=this.origin;this.elevationFrame.normal(t,Q),J.set(0,0,1).cross(Q),J.equals(S().Zero)&&J.set(1,0,0),$.assign(J).cross(Q),J.normalize(),$.normalize(),this.originMatrix.set(J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,0,t.x,t.y,t.z,1),this.invOriginMatrix.assign(this.originMatrix).inverse()}},set_rotateYUp__:function(){this.geoOriginNode&&this.geoOriginNode._rotateYUp.getValue()?(this.getCoord=et,this.getGeoCoord=it,this.getGeoUpVector=nt,this.getLocationMatrix=ot):(delete this.getCoord,delete this.getGeoCoord,delete this.getGeoUpVector,delete this.getLocationMatrix)},getReferenceFrame:function(){return this.referenceFrame},getStandardOrder:function(){return this.standardOrder},getCoord:function(t,e){return this.referenceFrame.convert(t,e).subtract(this.origin)},getGeoCoord:function(t,e){return this.referenceFrame.apply(Y.assign(t).add(this.origin),e)},getGeoElevation:function(t){return this.getGeoCoord(t,Z).z},getGeoUpVector:function(t,e){return this.elevationFrame.normal(Y.assign(t).add(this.origin),e)},getLocationMatrix:function(t,e){var i=this.origin,n=st.call(this,t,e);return n[12]-=i.x,n[13]-=i.y,n[14]-=i.z,n},dispose:function(){}};const rt=tt;g().set("x_ite/Components/Geospatial/X3DGeospatialObject",rt);const at=rt,lt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Geometry/Triangle3");var ht=t.n(lt);function ct(t){c().call(this,t),at.call(this,t),this.addType(u().GeoCoordinate)}ct.prototype=Object.assign(Object.create(c().prototype),at.prototype,{constructor:ct,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"point",new(o().MFVec3d))]),getTypeName:function(){return"GeoCoordinate"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"coord"},initialize:function(){c().prototype.initialize.call(this),at.prototype.initialize.call(this)},set1Point:function(){const t=new(S())(0,0,0);return function(e,i){this._point[e]=this.getGeoCoord(i,t)}}(),get1Point:function(){const t=new(S())(0,0,0);return function(e,i){if(e<this.length){const n=this.point;return e*=3,this.getCoord(t.set(n[e],n[e+1],n[e+2]),i)}return i.set(0,0,0)}}(),addPoint:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0);return function(i,n){if(i<this.length){const o=this.point;i*=3,this.getCoord(t.set(o[i],o[i+1],o[i+2]),e),n.push(e[0],e[1],e[2],1)}else n.push(0,0,0,1)}}(),addPoints:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0);return function(i,n){const o=this.point;for(let n=0,s=3*this.length;n<s;n+=3)this.getCoord(t.set(o[n],o[n+1],o[n+2]),e),i.push(e[0],e[1],e[2],1);for(let t=3*this.length,e=3*n;t<e;t+=3)i.push(0,0,0,1)}}(),getNormal:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0),i=new(S())(0,0,0);return function(n,o,s){const r=this.length;return n<r&&o<r&&s<r?ht().normal(this.get1Point(n,t),this.get1Point(o,e),this.get1Point(s,i),new(S())(0,0,0)):new(S())(0,0,0)}}(),getQuadNormal:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0),i=new(S())(0,0,0),n=new(S())(0,0,0);return function(o,s,r,a){const l=this.length;return o<l&&s<l&&r<l&&a<l?ht().quadNormal(this.get1Point(o,t),this.get1Point(s,e),this.get1Point(r,i),this.get1Point(a,n),new(S())(0,0,0)):new(S())(0,0,0)}}(),dispose:function(){at.prototype.dispose.call(this),c().prototype.dispose.call(this)}});const dt=ct;g().set("x_ite/Components/Geospatial/GeoCoordinate",dt);const ut=dt,pt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Rendering/X3DGeometryNode");var gt=t.n(pt);const _t=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Numbers/Vector2");var wt=t.n(_t);function mt(t){gt().call(this,t),at.call(this,t),this.addType(u().GeoElevationGrid),this._creaseAngle.setUnit("angle"),this._height.setUnit("length"),this.colorNode=null,this.texCoordNode=null,this.normalNode=null}mt.prototype=Object.assign(Object.create(gt().prototype),at.prototype,{constructor:mt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"geoGridOrigin",new(o().SFVec3d)),new(r())(u().initializeOnly,"xDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"zDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"xSpacing",new(o().SFDouble)(1)),new(r())(u().initializeOnly,"zSpacing",new(o().SFDouble)(1)),new(r())(u().inputOutput,"yScale",new(o().SFFloat)(1)),new(r())(u().initializeOnly,"solid",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"ccw",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"creaseAngle",new(o().SFDouble)),new(r())(u().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(r())(u().inputOutput,"color",new(o().SFNode)),new(r())(u().inputOutput,"texCoord",new(o().SFNode)),new(r())(u().inputOutput,"normal",new(o().SFNode)),new(r())(u().inputOutput,"height",new(o().MFDouble)(0,0))]),getTypeName:function(){return"GeoElevationGrid"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"geometry"},initialize:function(){gt().prototype.initialize.call(this),at.prototype.initialize.call(this),this._color.addInterest("set_color__",this),this._texCoord.addInterest("set_texCoord__",this),this._normal.addInterest("set_normal__",this),this.set_color__(),this.set_texCoord__(),this.set_normal__()},set_color__:function(){this.colorNode&&(this.colorNode.removeInterest("requestRebuild",this),this.colorNode._transparent.removeInterest("set_transparent__",this)),this.colorNode=q()(u().X3DColorNode,this._color),this.colorNode?(this.colorNode.addInterest("requestRebuild",this),this.colorNode._transparent.addInterest("set_transparent__",this),this.set_transparent__()):this.setTransparent(!1)},set_transparent__:function(){this.setTransparent(this.colorNode.isTransparent())},set_texCoord__:function(){this.texCoordNode&&this.texCoordNode.removeInterest("requestRebuild",this),this.texCoordNode=q()(u().X3DTextureCoordinateNode,this._texCoord),this.texCoordNode&&this.texCoordNode.addInterest("requestRebuild",this),this.setTextureCoordinate(this.texCoordNode)},set_normal__:function(){this.normalNode&&this.normalNode.removeInterest("requestRebuild",this),this.normalNode=q()(u().X3DNormalNode,this._normal),this.normalNode&&this.normalNode.addInterest("requestRebuild",this)},getColor:function(){return this.colorNode},getTexCoord:function(){return this.texCoordNode},getNormal:function(){return this.normalNode},getHeight:function(t){return t<this._height.length?this._height[t]*this._yScale.getValue():0},createTexCoords:function(){for(var t=[],e=this._xDimension.getValue(),i=this._zDimension.getValue(),n=e-1,o=i-1,s=0;s<i;++s)for(var r=0;r<e;++r)t.push(new(wt())(r/n,s/o));return t},createNormals:function(t,e,i){for(var n=!this._ccw.getValue(),o=[],s=[],r=0;r<t.length;++r)o[r]=[];for(var a=0;a<e.length;a+=3){var l=e[a],h=e[a+1],c=e[a+2];o[l].push(s.length),o[h].push(s.length+1),o[c].push(s.length+2);var d=ht().normal(t[l],t[h],t[c],new(S())(0,0,0));n&&d.negate(),s.push(d),s.push(d),s.push(d)}return this.refineNormals(o,s,this._creaseAngle.getValue())},createCoordIndex:function(){for(var t=[],e=this._xDimension.getValue(),i=e-1,n=this._zDimension.getValue()-1,o=0;o<n;++o)for(var s=0;s<i;++s){var r=o*e+s,a=(o+1)*e+s,l=(o+1)*e+(s+1),h=o*e+(s+1);t.push(r),t.push(l),t.push(a),t.push(r),t.push(h),t.push(l)}return t},createPoints:function(){var t=[],e=this._xDimension.getValue(),i=this._zDimension.getValue(),n=this._xSpacing.getValue(),o=this._zSpacing.getValue();if(this.getStandardOrder())for(var s=0;s<i;++s)for(var r=0;r<e;++r){(a=new(S())(o*s,n*r,this.getHeight(r+s*e))).add(this._geoGridOrigin.getValue()),t.push(this.getCoord(a,a))}else for(s=0;s<i;++s)for(r=0;r<e;++r){var a;(a=new(S())(n*r,o*s,this.getHeight(r+s*e))).add(this._geoGridOrigin.getValue()),t.push(this.getCoord(a,a))}return t},build:function(){if(!(this._xDimension.getValue()<2||this._zDimension.getValue()<2)){var t=this._colorPerVertex.getValue(),e=this._normalPerVertex.getValue(),i=this.createCoordIndex(),n=this.getColor(),o=this.getTexCoord(),s=this.getNormal(),r=this.createPoints(),a=this.getColors(),l=this.getMultiTexCoords(),h=this.getNormals(),c=this.getVertices(),d=0;if(o)o.init(l);else{var u=this.createTexCoords(),p=this.getTexCoords();l.push(p)}for(var g=0;g<i.length;++d)for(var _=0;_<6;++_,++g){var w=i[g],m=r[w];if(n&&(t?n.addColor(w,a):n.addColor(d,a)),o)o.addPoint(w,l);else{var f=u[w];p.push(f.x,f.y,0,1)}s&&(e?s.addVector(w,h):s.addVector(d,h)),c.push(m.x,m.y,m.z,1)}if(!s)for(var y=this.createNormals(r,i),O=0;O<y.length;++O){var S=y[O];h.push(S.x,S.y,S.z)}this.setSolid(this._solid.getValue()),this.setCCW(this._ccw.getValue())}},dispose:function(){at.prototype.dispose.call(this),gt().prototype.dispose.call(this)}});const ft=mt;g().set("x_ite/Components/Geospatial/GeoElevationGrid",ft);const yt=ft,Ot=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Core/X3DChildNode");var St=t.n(Ot);const It=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Grouping/X3DBoundedObject");var bt=t.n(It);const Ft=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Rendering/TraverseType");var Ct=t.n(Ft);const xt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Grouping/Group");var vt=t.n(xt);const Nt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Networking/Inline");var Mt=t.n(Nt);const Tt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Geometry/Box3");var Gt=t.n(Tt),Dt=new(S())(0,0,0);function Et(t){St().call(this,t),bt().call(this,t),at.call(this,t),this.addType(u().GeoLOD),this._range.setUnit("length"),this.unload=!1,this.rootGroup=new(vt())(this.getBrowser().getPrivateScene()),this.rootInline=new(Mt())(t),this.child1Inline=new(Mt())(t),this.child2Inline=new(Mt())(t),this.child3Inline=new(Mt())(t),this.child4Inline=new(Mt())(t),this.childrenLoaded=!1,this.childBBox=new(Gt()),this.keepCurrentLevel=!1,this.modelViewMatrix=new(H())}Et.prototype=Object.assign(Object.create(St().prototype),bt().prototype,at.prototype,{constructor:Et,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"rootUrl",new(o().MFString)),new(r())(u().initializeOnly,"child1Url",new(o().MFString)),new(r())(u().initializeOnly,"child2Url",new(o().MFString)),new(r())(u().initializeOnly,"child3Url",new(o().MFString)),new(r())(u().initializeOnly,"child4Url",new(o().MFString)),new(r())(u().initializeOnly,"center",new(o().SFVec3d)),new(r())(u().initializeOnly,"range",new(o().SFFloat)(10)),new(r())(u().outputOnly,"level_changed",new(o().SFInt32)(-1)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().initializeOnly,"rootNode",new(o().MFNode)),new(r())(u().outputOnly,"children",new(o().MFNode))]),getTypeName:function(){return"GeoLOD"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){St().prototype.initialize.call(this),bt().prototype.initialize.call(this),at.prototype.initialize.call(this),this._rootNode.addFieldInterest(this.rootGroup._children),this.rootGroup._children=this._rootNode,this.rootGroup.setPrivate(!0),this.rootGroup.setup(),this.rootInline._loadState.addInterest("set_rootLoadState__",this),this.child1Inline._loadState.addInterest("set_childLoadState__",this),this.child2Inline._loadState.addInterest("set_childLoadState__",this),this.child3Inline._loadState.addInterest("set_childLoadState__",this),this.child4Inline._loadState.addInterest("set_childLoadState__",this),this._rootUrl.addFieldInterest(this.rootInline._url),this._child1Url.addFieldInterest(this.child1Inline._url),this._child2Url.addFieldInterest(this.child2Inline._url),this._child3Url.addFieldInterest(this.child3Inline._url),this._child4Url.addFieldInterest(this.child4Inline._url),this.rootInline._load=!0,this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1,this.rootInline._url=this._rootUrl,this.child1Inline._url=this._child1Url,this.child2Inline._url=this._child2Url,this.child3Inline._url=this._child3Url,this.child4Inline._url=this._child4Url,this.rootInline.setup(),this.child1Inline.setup(),this.child2Inline.setup(),this.child3Inline.setup(),this.child4Inline.setup()},getBBox:function(t,e){if(this._bboxSize.getValue().equals(this.getDefaultBBoxSize())){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:return this._rootNode.length?this.rootGroup.getBBox(t,e):this.rootInline.getBBox(t,e);case 1:{const i=this.childBBox;return t.set(),t.add(this.child1Inline.getBBox(i,e)),t.add(this.child2Inline.getBBox(i,e)),t.add(this.child3Inline.getBBox(i,e)),t.add(this.child4Inline.getBBox(i,e)),t}}return t.set()}return t.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_rootLoadState__:function(){0===this._level_changed.getValue()&&(this._rootNode.length||this.rootInline.checkLoadState()===u().COMPLETE_STATE&&(this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1))},set_childLoadState__:function(){if(1===this._level_changed.getValue()){var t=0;if(this.child1Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child1Inline.checkLoadState()!==u().FAILED_STATE||++t,this.child2Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child2Inline.checkLoadState()!==u().FAILED_STATE||++t,this.child3Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child3Inline.checkLoadState()!==u().FAILED_STATE||++t,this.child4Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child4Inline.checkLoadState()!==u().FAILED_STATE||++t,4===t){this.childrenLoaded=!0;var e=this._children;e.length=0;for(var i=0,n=(o=this.child1Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i]);for(i=0,n=(o=this.child2Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i]);for(i=0,n=(o=this.child3Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i]);var o;for(i=0,n=(o=this.child4Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i])}}},set_childCameraObject__:function(){this.setCameraObject(this.child1Inline.isCameraObject()||this.child2Inline.isCameraObject()||this.child3Inline.isCameraObject()||this.child4Inline.isCameraObject())},set_childPickableObject__:function(){this.setPickableObject(this.child1Inline.isPickableObject()||this.child2Inline.isPickableObject()||this.child3Inline.isPickableObject()||this.child4Inline.isPickableObject())},getLevel:function(t){return this.getDistance(t)<this._range.getValue()?1:0},getDistance:function(t){return t.translate(this.getCoord(this._center.getValue(),Dt)),t.origin.magnitude()},traverse:function(t,e){switch(t){case Ct().PICKING:var i=this.getBrowser().getPickingHierarchy();return i.push(this),this.traverseChildren(t,e),void i.pop();case Ct().DISPLAY:var n=this.getLevel(this.modelViewMatrix.assign(e.getModelViewMatrix().get()));if(n!==this._level_changed.getValue())switch(this._level_changed=n,n){case 0:this.child1Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this._rootNode.length?(this.rootGroup._isCameraObject.addFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootGroup.isCameraObject()),this.setPickableObject(this.rootGroup.isPickableObject()),this._children=this._rootNode,this.childrenLoaded=!1):this.rootInline.checkLoadState()==u().COMPLETE_STATE&&(this.rootInline._isCameraObject.addFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootInline.isCameraObject()),this.setPickableObject(this.rootInline.isPickableObject()),this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1),this.unload&&(this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1);break;case 1:this._rootNode.length?(this.rootGroup._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.removeFieldInterest(this._isPickableObject)):(this.rootInline._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.removeFieldInterest(this._isPickableObject)),this.child1Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.set_childCameraObject__(),this.set_childPickableObject__(),this.child1Inline._load.getValue()?this.set_childLoadState__():(this.child1Inline._load=!0,this.child2Inline._load=!0,this.child3Inline._load=!0,this.child4Inline._load=!0)}return void this.traverseChildren(t,e);default:return void this.traverseChildren(t,e)}},traverseChildren:function(t,e){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:this._rootNode.length?this.rootGroup.traverse(t,e):this.rootInline.traverse(t,e);break;case 1:this.child1Inline.traverse(t,e),this.child2Inline.traverse(t,e),this.child3Inline.traverse(t,e),this.child4Inline.traverse(t,e)}},dispose:function(){at.prototype.dispose.call(this),bt().prototype.dispose.call(this),St().prototype.dispose.call(this)}});const Vt=Et;g().set("x_ite/Components/Geospatial/GeoLOD",Vt);const zt=Vt,jt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Grouping/X3DTransformMatrix3DNode");var Xt=t.n(jt),Pt=new(H());function Bt(t){Xt().call(this,t),at.call(this,t),this.addType(u().GeoLocation)}Bt.prototype=Object.assign(Object.create(Xt().prototype),at.prototype,{constructor:Bt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCoords",new(o().SFVec3d)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"GeoLocation"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Xt().prototype.initialize.call(this),at.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed:function(){this.setMatrix(this.getLocationMatrix(this._geoCoords.getValue(),Pt))},dispose:function(){at.prototype.dispose.call(this),Xt().prototype.dispose.call(this)}});const kt=Bt;g().set("x_ite/Components/Geospatial/GeoLocation",kt);const Lt=kt,At=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Core/X3DInfoNode");var Rt=t.n(At);const Ut=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Networking/X3DUrlObject");var qt=t.n(Ut);function Wt(t){Rt().call(this,t),qt().call(this,t),this.addType(u().GeoMetadata)}Wt.prototype=Object.assign(Object.create(Rt().prototype),qt().prototype,{constructor:Wt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"load",new(o().SFBool)(!0)),new(r())(u().inputOutput,"url",new(o().MFString)),new(r())(u().inputOutput,"autoRefresh",new(o().SFTime)),new(r())(u().inputOutput,"autoRefreshTimeLimit",new(o().SFTime)(3600)),new(r())(u().inputOutput,"summary",new(o().MFString)),new(r())(u().inputOutput,"data",new(o().MFNode))]),getTypeName:function(){return"GeoMetadata"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Rt().prototype.initialize.call(this),qt().prototype.initialize.call(this)},requestImmediateLoad:function(t=!0){},requestUnload:function(){},set_load__:function(){},set_url__:function(){},dispose:function(){qt().prototype.dispose.call(this),Rt().prototype.dispose.call(this)}});const Ht=Wt;g().set("x_ite/Components/Geospatial/GeoMetadata",Ht);const Yt=Ht,Zt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Core/X3DNode");var Kt=t.n(Zt);function Jt(t){Kt().call(this,t),this.addType(u().GeoOrigin),this.radians=!1}Jt.prototype=Object.assign(Object.create(Kt().prototype),{constructor:Jt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCoords",new(o().SFVec3d)),new(r())(u().initializeOnly,"rotateYUp",new(o().SFBool))]),getTypeName:function(){return"GeoOrigin"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"geoOrigin"},initialize:function(){Kt().prototype.initialize.call(this),this._geoSystem.addInterest("set_geoSystem__",this),this.set_geoSystem__()},set_geoSystem__:function(){this.referenceFrame=R.getReferenceFrame(this._geoSystem,this.radians)},getOrigin:function(t){return this.referenceFrame.convert(this._geoCoords.getValue(),t)}});const Qt=Jt;g().set("x_ite/Components/Geospatial/GeoOrigin",Qt);const $t=Qt,te=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Interpolation/X3DInterpolatorNode");var ee=t.n(te);function ie(t){ee().call(this,t),at.call(this,t),this.addType(u().GeoPositionInterpolator),this._value_changed.setUnit("length"),this.geocentric=new z}ie.prototype=Object.assign(Object.create(ee().prototype),at.prototype,{constructor:ie,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_fraction",new(o().SFFloat)),new(r())(u().inputOutput,"key",new(o().MFFloat)),new(r())(u().inputOutput,"keyValue",new(o().MFVec3d)),new(r())(u().outputOnly,"value_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"geovalue_changed",new(o().SFVec3d))]),getTypeName:function(){return"GeoPositionInterpolator"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},setup:function(){at.prototype.initialize.call(this),ee().prototype.setup.call(this)},initialize:function(){ee().prototype.initialize.call(this),this._keyValue.addInterest("set_keyValue__",this)},set_keyValue__:function(){const t=this._key,e=this._keyValue;e.length<t.length&&e.resize(t.length,e.length?e[e.length-1]:new(o().SFVec3f))},interpolate:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0),i=new(S())(0,0,0);return function(n,o,s){this.getCoord(this._keyValue[n].getValue(),t),this.getCoord(this._keyValue[o].getValue(),e);const r=this.geocentric.slerp(t,e,s);this._geovalue_changed=this.getGeoCoord(r,i),this._value_changed=r}}(),dispose:function(){at.prototype.dispose.call(this),ee().prototype.dispose.call(this)}});const ne=ie;g().set("x_ite/Components/Geospatial/GeoPositionInterpolator",ne);const oe=ne,se=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode");var re=t.n(se);const ae=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/EnvironmentalSensor/ProximitySensor");var le=t.n(ae),he=new(S())(0,0,0);function ce(t){re().call(this,t),at.call(this,t),this.addType(u().GeoProximitySensor),this._position_changed.setUnit("length"),this._centerOfRotation_changed.setUnit("length"),this.proximitySensor=new(le())(t),this.setCameraObject(this.proximitySensor.isCameraObject()),this.setPickableObject(this.proximitySensor.isPickableObject())}ce.prototype=Object.assign(Object.create(re().prototype),at.prototype,{constructor:ce,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"size",new(o().SFVec3f)),new(r())(u().inputOutput,"center",new(o().SFVec3f)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"enterTime",new(o().SFTime)),new(r())(u().outputOnly,"exitTime",new(o().SFTime)),new(r())(u().outputOnly,"geoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"position_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"orientation_changed",new(o().SFRotation)),new(r())(u().outputOnly,"centerOfRotation_changed",new(o().SFVec3f))]),getTypeName:function(){return"GeoProximitySensor"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){re().prototype.initialize.call(this),at.prototype.initialize.call(this),this._enabled.addFieldInterest(this.proximitySensor._enabled),this._size.addFieldInterest(this.proximitySensor._size),this._center.addFieldInterest(this.proximitySensor._center),this.proximitySensor._isCameraObject.addFieldInterest(this._isCameraObject),this.proximitySensor._isPickableObject.addFieldInterest(this._isPickableObject),this.proximitySensor._isActive.addFieldInterest(this._isActive),this.proximitySensor._enterTime.addFieldInterest(this._enterTime),this.proximitySensor._exitTime.addFieldInterest(this._exitTime),this.proximitySensor._position_changed.addFieldInterest(this._position_changed),this.proximitySensor._orientation_changed.addFieldInterest(this._orientation_changed),this.proximitySensor._centerOfRotation_changed.addFieldInterest(this._centerOfRotation_changed),this.proximitySensor._position_changed.addInterest("set_position__",this),this.proximitySensor._enabled=this._enabled,this.proximitySensor._size=this._size,this.proximitySensor._center=this._center,this.proximitySensor.setup()},set_position__:function(t){this._geoCoord_changed=this.getGeoCoord(this.proximitySensor._position_changed.getValue(),he)},traverse:function(t,e){this.proximitySensor.traverse(t,e)},dispose:function(){at.prototype.dispose.call(this),re().prototype.dispose.call(this)}});const de=ce;g().set("x_ite/Components/Geospatial/GeoProximitySensor",de);const ue=de,pe=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode");var ge=t.n(pe);function _e(t){ge().call(this,t),at.call(this,t),this.addType(u().GeoTouchSensor),this._hitPoint_changed.setUnit("length")}_e.prototype=Object.assign(Object.create(ge().prototype),at.prototype,{constructor:_e,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().outputOnly,"hitTexCoord_changed",new(o().SFVec2f)),new(r())(u().outputOnly,"hitNormal_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitPoint_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitGeoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"isOver",new(o().SFBool)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"touchTime",new(o().SFTime))]),getTypeName:function(){return"GeoTouchSensor"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){ge().prototype.initialize.call(this),at.prototype.initialize.call(this)},set_over__:function(){const t=new(S())(0,0,0);return function(e,i,n,o,s){ge().prototype.set_over__.call(this,e,i,n,o,s),this._isOver.getValue()&&(this._hitGeoCoord_changed=this.getGeoCoord(this._hitPoint_changed.getValue(),t))}}(),dispose:function(){at.prototype.dispose.call(this),ge().prototype.dispose.call(this)}});const we=_e;g().set("x_ite/Components/Geospatial/GeoTouchSensor",we);const me=we;var fe=new(H()),ye=new(H());function Oe(t){Xt().call(this,t),at.call(this,t),this.addType(u().GeoTransform),this._translation.setUnit("length")}Oe.prototype=Object.assign(Object.create(Xt().prototype),at.prototype,{constructor:Oe,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"translation",new(o().SFVec3f)),new(r())(u().inputOutput,"rotation",new(o().SFRotation)),new(r())(u().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(u().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCenter",new(o().SFVec3d)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"GeoTransform"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Xt().prototype.initialize.call(this),at.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed:function(){this.getLocationMatrix(this._geoCenter.getValue(),ye),fe.set(this._translation.getValue(),this._rotation.getValue(),this._scale.getValue(),this._scaleOrientation.getValue()),this.setMatrix(fe.multRight(ye).multLeft(ye.inverse()))},dispose:function(){at.prototype.dispose.call(this),Xt().prototype.dispose.call(this)}});const Se=Oe;g().set("x_ite/Components/Geospatial/GeoTransform",Se);const Ie=Se,be=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Navigation/X3DViewpointNode");var Fe=t.n(be);const Ce=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Navigation/Viewpoint");var xe=t.n(Ce);const ve=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Navigation/NavigationInfo");var Ne=t.n(ve);const Me=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Numbers/Rotation4");var Te=t.n(Me);function Ge(t){Fe().call(this,t),at.call(this,t),this.addType(u().GeoViewpoint),this._centerOfRotation.setUnit("length"),this._fieldOfView.setUnit("angle"),t.getSpecificationVersion()<=3.2&&(this.traverse=De),this.geoNavigationInfoNode=new(Ne())(t),this.projectionMatrix=new(H()),this.elevation=0}function De(t,e){Fe().prototype.traverse.call(this,t,e),this.geoNavigationInfoNode.traverse(t,e)}Ge.prototype=Object.assign(Object.create(Fe().prototype),at.prototype,{constructor:Ge,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_bind",new(o().SFBool)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"position",new(o().SFVec3d)(0,0,1e5)),new(r())(u().inputOutput,"orientation",new(o().SFRotation)),new(r())(u().inputOutput,"centerOfRotation",new(o().SFVec3d)),new(r())(u().inputOutput,"fieldOfView",new(o().SFFloat)(.7854)),new(r())(u().inputOutput,"nearDistance",new(o().SFFloat)(-1)),new(r())(u().inputOutput,"farDistance",new(o().SFFloat)(-1)),new(r())(u().inputOutput,"viewAll",new(o().SFBool)),new(r())(u().inputOutput,"jump",new(o().SFBool)(!0)),new(r())(u().inputOutput,"retainUserOffsets",new(o().SFBool)),new(r())(u().inputOutput,"navType",new(o().MFString)("EXAMINE","ANY")),new(r())(u().inputOutput,"headlight",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"speedFactor",new(o().SFFloat)(1)),new(r())(u().outputOnly,"isBound",new(o().SFBool)),new(r())(u().outputOnly,"bindTime",new(o().SFTime)),new(r())(u().inputOutput,"navigationInfo",new(o().SFNode))]),getTypeName:function(){return"GeoViewpoint"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Fe().prototype.initialize.call(this),at.prototype.initialize.call(this);const t=this.getBrowser().getContext();this.logarithmicDepthBuffer=t.HAS_FEATURE_FRAG_DEPTH,this._position.addInterest("set_position__",this),this._positionOffset.addInterest("set_position__",this),this._navType.addFieldInterest(this.geoNavigationInfoNode._type),this._headlight.addFieldInterest(this.geoNavigationInfoNode._headlight),this.geoNavigationInfoNode.setup(),this.set_position__()},getRelativeTransformation:xe().prototype.getRelativeTransformation,setInterpolators:xe().prototype.setInterpolators,getFieldOfView:xe().prototype.getFieldOfView,getScreenScale:xe().prototype.getScreenScale,getViewportSize:xe().prototype.getViewportSize,getLookAtDistance:xe().prototype.getLookAtDistance,getProjectionMatrixWithLimits:xe().prototype.getProjectionMatrixWithLimits,getLogarithmicDepthBuffer:function(){return this.logarithmicDepthBuffer},setPosition:function(){const t=new(S())(0,0,0);return function(e){this._position.setValue(this.getGeoCoord(e,t))}}(),getPosition:function(){const t=new(S())(0,0,0);return function(){return this.getCoord(this._position.getValue(),t)}}(),set_position__:function(){const t=new(S())(0,0,0);return function(){this.getCoord(this._position.getValue(),t),this.elevation=this.getGeoElevation(t.add(this._positionOffset.getValue()))}}(),setOrientation:function(){const t=new(H()),e=new(Te())(0,0,1,0);return function(i){const n=this.getLocationMatrix(this._position.getValue(),t).submatrix;e.setMatrix(n),this._orientation.setValue(e.inverse().multLeft(i))}}(),getOrientation:function(){const t=new(H()),e=new(Te())(0,0,1,0);return function(){const i=this.getLocationMatrix(this._position.getValue(),t).submatrix;return e.setMatrix(i),e.multLeft(this._orientation.getValue())}}(),getCenterOfRotation:function(){const t=new(S())(0,0,0);return function(){return this.getCoord(this._centerOfRotation.getValue(),t)}}(),getMaxFarValue:function(){return 1e9},getUpVector:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0);return function(i=!1){return!i||this.getUserPosition().magnitude()<65e5?(this.getCoord(this._position.getValue(),t),this.getGeoUpVector(t.add(this._positionOffset.getValue()),e)):e.assign(S().zAxis)}}(),getSpeedFactor:function(){return(Math.max(this.elevation,0)+10)/10*this._speedFactor.getValue()},dispose:function(){at.prototype.dispose.call(this),Fe().prototype.dispose.call(this)}});const Ee=Ge;g().set("x_ite/Components/Geospatial/GeoViewpoint",Ee);const Ve=Ee;i().addComponent({name:"Geospatial",types:{GeoCoordinate:ut,GeoElevationGrid:yt,GeoLOD:zt,GeoLocation:Lt,GeoMetadata:Yt,GeoOrigin:$t,GeoPositionInterpolator:oe,GeoProximitySensor:ue,GeoTouchSensor:me,GeoTransform:Ie,GeoViewpoint:Ve},abstractTypes:{X3DGeospatialObject:at}});const ze=void 0;g().set("assets/components/Geospatial",ze)})();
1
+ /* X_ITE v8.6.12 */(()=>{"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.6.12")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/FieldDefinitionArray");var l=e.n(a);const h=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Rendering/X3DCoordinateNode");var c=e.n(h);const d=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/X3DConstants");var u=e.n(d);const p=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Namespace");var g=e.n(p);function _(e,t){switch(arguments.length){case 0:this.semiMajorAxis=0,this.semiMinorAxis=0;break;case 2:this.semiMajorAxis=e,this.semiMinorAxis=t;break;case 3:const i=arguments[1];this.semiMajorAxis=e,this.semiMinorAxis=e*(1-1/i)}}_.prototype={constructor:_,getSemiMajorAxis:function(){return this.semiMajorAxis},getSemiMinorAxis:function(){return this.semiMinorAxis},toString:function(){return this.semiMajorAxis+" "+this.semiMinorAxis}};const w=_;g().set("standard/Math/Geometry/Spheroid3",w);const f=w,m={AA:new f(6377563.396,299.3249646,!0),AM:new f(6377340.189,299.3249646,!0),AN:new f(6378160,298.25,!0),BN:new f(6377483.865,299.1528128,!0),BR:new f(6377397.155,299.1528128,!0),CC:new f(6378206.4,294.9786982,!0),CD:new f(6378249.145,293.465,!0),EA:new f(6377276.345,300.8017,!0),EB:new f(6377298.556,300.8017,!0),EC:new f(6377301.243,300.8017,!0),ED:new f(6377295.664,300.8017,!0),EE:new f(6377304.063,300.8017,!0),EF:new f(6377309.613,300.8017,!0),FA:new f(6378155,298.3,!0),HE:new f(6378200,298.3,!0),HO:new f(6378270,297,!0),ID:new f(6378160,298.247,!0),IN:new f(6378388,297,!0),KA:new f(6378245,298.3,!0),RF:new f(6378137,298.257222101,!0),SA:new f(6378160,298.25,!0),WD:new f(6378135,298.26,!0),WE:new f(6378137,298.257223563,!0),SUN:new f(696342e3,1/9e-6,!0),MERCURY:new f(2439700,2439700),VENUS:new f(6051800,6051800),MOON:new f(1738140,1735970),MARS:new f(3395428,3377678),JUPITER:new f(71492e3,66854e3),SATURN:new f(60268e3,54364e3),URANUS:new f(2555e3,24973e3),NEPTUNE:new f(24764e3,24341e3),PLUTO:new f(1153e3,1153e3)};g().set("standard/Geospatial/ReferenceEllipsoids",m);const y=m,O=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Numbers/Vector3");var S=e.n(O);const I=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Algorithm");var b=e.n(I);function F(e,t,i){this.longitudeFirst=!t,this.degrees=!i,this.a=e.getSemiMajorAxis(),this.c=e.getSemiMinorAxis(),this.c2a2=Math.pow(e.getSemiMinorAxis()/this.a,2),this.ecc2=1-this.c2a2}F.prototype={constructor:F,convert:function(e,t){const i=e.z;if(this.longitudeFirst)var n=e.y,o=e.x;else n=e.x,o=e.y;return this.degrees&&(n*=Math.PI/180,o*=Math.PI/180),this.convertRadians(n,o,i,t)},convertRadians:function(e,t,i,n){const o=Math.sin(e),s=Math.pow(o,2),r=Math.cos(e),a=this.a/Math.sqrt(1-this.ecc2*s),l=(a+i)*r;return n.set(l*Math.cos(t),l*Math.sin(t),(a*this.c2a2+i)*o)},apply:function(e,t){if(this.applyRadians(e,t),this.degrees&&(t.x*=180/Math.PI,t.y*=180/Math.PI),this.longitudeFirst){const e=t.x;t.x=t.y,t.y=e}return t},applyRadians:function(e,t){const i=e.x,n=e.y,o=e.z,s=Math.sqrt(i*i+n*n);if(0==s)return t.set(Math.PI,0,o-this.c);let r=0,a=Math.atan2(n,i),l=0,h=this.a,c=h,d=this.ecc2;for(let e=0;e<30;++e){const e=l,t=r;r=Math.atan(o/s/(1-d*c/(c+l)));const i=Math.sin(r);if(c=h/Math.sqrt(1-d*i*i),l=s/Math.cos(r)-c,Math.abs(l-e)<.001&&Math.abs(r-t)<1e-10)break}return t.set(r,a,l)},normal:function(e,t){const i=this.applyRadians(e,t),n=i.x,o=i.y,s=Math.cos(n),r=Math.cos(o)*s,a=Math.sin(o)*s,l=Math.sin(n);return t.set(r,a,l)}};const C=F;g().set("standard/Geospatial/Geodetic",C);const v=C,x=1e7,N=5e5,M=.9996;function G(e,t,i,n){const o=e.getSemiMajorAxis(),s=1-Math.pow(e.getSemiMinorAxis()/o,2),r=s/(1-s),a=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s));this.southernHemisphere=!i,this.eastingFirst=!n,this.a=o,this.ecc2=s,this.EE=r,this.E8=8*r,this.E9=9*r,this.E252=252*r,this.e1=a,this.A=M*(o*(1-s/4-3*s*s/64-5*s*s*s/256)),this.B=3*a/2-7*a*a*a/32,this.C=21*a*a/16-55*a*a*a*a/32,this.D=151*a*a*a/96,this.E=o*(1-s),this.W=1-s/4-3*s*s/64-5*s*s*s/256,this.X=3*s/8+3*s*s/32+45*s*s*s/1024,this.Y=15*s*s/256+45*s*s*s/1024,this.Z=35*s*s*s/3072,this.longitude0=b().radians(6*t-183),this.geodeticConverter=new v(e,!0,!0)}G.prototype={constructor:G,convert:function(e,t){if(this.eastingFirst)var i=e.y,n=e.x;else i=e.x,n=e.y;let o=this.southernHemisphere;i<0&&(o=!this.southernHemisphere,i=-i),o&&(i-=x),n-=N;const s=i/this.A,r=s+this.B*Math.sin(2*s)+this.C*Math.sin(4*s)+this.D*Math.sin(6*s),a=Math.pow(Math.sin(r),2),l=Math.cos(r),h=Math.tan(r),c=this.a/Math.sqrt(1-this.ecc2*a),d=Math.pow(h,2),u=Math.pow(h,8),p=this.EE*d,g=p*p,_=this.E/Math.pow(1-this.ecc2*a,1.5),w=n/(c*M),f=(5+3*d+10*p-4*g-this.E9)*Math.pow(w,4)/24,m=(61+90*d+298*p+45*u-this.E252-3*g)*Math.pow(w,6)/720,y=(5-2*p+28*d-3*g+this.E8+24*u)*Math.pow(w,5)/120,O=r-c*h/_*(w*w/2-f+m),S=this.longitude0+(w-(1+2*d+p)*Math.pow(w,3)/6+y)/l;return this.geodeticConverter.convertRadians(O,S,e.z,t)},apply:function(e,t){const i=this.geodeticConverter.applyRadians(e,t),n=i.x,o=i.y,s=Math.tan(n),r=Math.cos(n),a=this.EE,l=this.a/Math.sqrt(1-this.ecc2*Math.pow(Math.sin(n),2)),h=s*s,c=h*h*h,d=a*r*r,u=r*(o-this.longitude0),p=this.a*(this.W*n-this.X*Math.sin(2*n)+this.Y*Math.sin(4*n)-this.Z*Math.sin(6*n)),g=M*l*(u+(1-h+d)*Math.pow(u,3)/6+(5-18*c+72*d-58*a)*Math.pow(u,5)/120)+N;let _=M*(p+l*s*(u*u/2+(5-h+9*d+4*d*d)*Math.pow(u,4)/24+(61-58*c+600*d-330*a)*Math.pow(u,6)/720));return n<0?(_+=x,this.southernHemisphere||(_=-_)):this.southernHemisphere&&(_=-_),this.eastingFirst?t.set(g,_,i.z):t.set(_,g,i.z)}};const T=G;g().set("standard/Geospatial/UniversalTransverseMercator",T);const D=T;function E(){}E.prototype={constructor:E,convert:function(e,t){return t.assign(e)},apply:function(e,t){return t.assign(e)},slerp:function(e,t,i){const n=e.magnitude(),o=t.magnitude();return e.normalize(),t.normalize(),b().simpleSlerp(e,t,i).multiply(b().lerp(n,o,i))}};const V=E;g().set("x_ite/Browser/Geospatial/Geocentric",V);const z=V;let j=0;const X=j++,P=j++,B=j++,k={GD:X,GDC:X,UTM:P,GC:B,GCC:B,GS:B},L=/^Z(\d+)$/,A={GD:X,UTM:P,GC:B,getReferenceFrame:function(e,t){switch(this.getCoordinateSystem(e)){case X:return new v(this.getEllipsoid(e),this.getLatitudeFirst(e),t);case P:return new D(this.getEllipsoid(e),this.getZone(e),this.getNorthernHemisphere(e),this.getNorthingFirst(e));case B:return new z}return new v(y.WE,!0,t)},getElevationFrame:function(e,t){return new v(this.getEllipsoid(e),!0,t)},getCoordinateSystem:function(e){for(const t of e){const e=k[t];if(void 0!==e)return e}return X},getEllipsoid:function(e){for(const t of e){const e=y[t];if(void 0!==e)return e}return y.WE},getEllipsoidString:function(e){for(const t of e){if(void 0!==y[t])return t}return"WE"},isStandardOrder:function(e){switch(this.getCoordinateSystem(e)){case X:return this.getLatitudeFirst(e);case P:return this.getNorthingFirst(e);case B:return!0}return this.getLatitudeFirst(e)},getLatitudeFirst:function(e){for(const t of e)if("longitude_first"===t)return!1;return!0},getNorthingFirst:function(e){for(const t of e)if("easting_first"===t)return!1;return!0},getZone:function(e){for(const t of e){const e=t.match(L);if(e)return parseInt(e[1])}return 1},getNorthernHemisphere:function(e){for(const t of e)if("S"===t)return!1;return!0}};g().set("x_ite/Browser/Geospatial/Geospatial",A);const R=A,U=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/X3DCast");var q=e.n(U);const W=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Numbers/Matrix4");var H=e.n(W),Y=new(S())(0,0,0),Z=new(S())(0,0,0),K=new(S())(0,0,0),J=new(S())(0,0,0),Q=new(S())(0,0,0),$=new(S())(0,0,0);function ee(e){this.addType(u().X3DGeospatialObject),this.radians=!1,this.origin=new(S())(0,0,0),this.originMatrix=new(H()),this.invOriginMatrix=new(H())}function te(e,t){return this.invOriginMatrix.multVecMatrix(this.referenceFrame.convert(e,t))}function ie(e,t){return this.referenceFrame.apply(this.originMatrix.multVecMatrix(Y.assign(e)),t)}function ne(e,t){return this.invOriginMatrix.multDirMatrix(this.elevationFrame.normal(this.originMatrix.multVecMatrix(Y.assign(e)),t))}function oe(e,t){return se.call(this,e,t).multRight(this.invOriginMatrix)}function se(e,t){return this.referenceFrame.convert(e,K),this.elevationFrame.normal(K,Q),J.set(0,0,1).cross(Q),J.equals(S().Zero)&&J.set(1,0,0),$.assign(J).cross(Q),J.normalize(),$.normalize(),t.set(J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,0,K.x,K.y,K.z,1)}ee.prototype={constructor:ee,initialize:function(){this._geoSystem.addInterest("set_geoSystem__",this),this._geoOrigin.addInterest("set_geoOrigin__",this),this.set_geoSystem__(),this.set_geoOrigin__()},set_geoSystem__:function(){this.coordinateSystem=R.getCoordinateSystem(this._geoSystem),this.referenceFrame=R.getReferenceFrame(this._geoSystem,this.radians),this.elevationFrame=R.getElevationFrame(this._geoSystem,this.radians),this.standardOrder=R.isStandardOrder(this._geoSystem)},set_geoOrigin__:function(){this.geoOriginNode&&(this.geoOriginNode.removeInterest("set_origin__",this),this.geoOriginNode.removeInterest("set_rotateYUp__",this),this.geoOriginNode.removeInterest("addNodeEvent",this)),this.geoOriginNode=q()(u().GeoOrigin,this._geoOrigin),this.geoOriginNode&&(this.geoOriginNode.addInterest("set_origin__",this),this.geoOriginNode.addInterest("set_rotateYUp__",this),this.geoOriginNode.addInterest("addNodeEvent",this)),this.set_origin__(),this.set_rotateYUp__()},set_origin__:function(){this.geoOriginNode?this.geoOriginNode.getOrigin(this.origin):this.origin.set(0,0,0),this.set_originMatrix__()},set_originMatrix__:function(){if(this.geoOriginNode){var e=this.origin;this.elevationFrame.normal(e,Q),J.set(0,0,1).cross(Q),J.equals(S().Zero)&&J.set(1,0,0),$.assign(J).cross(Q),J.normalize(),$.normalize(),this.originMatrix.set(J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,0,e.x,e.y,e.z,1),this.invOriginMatrix.assign(this.originMatrix).inverse()}},set_rotateYUp__:function(){this.geoOriginNode&&this.geoOriginNode._rotateYUp.getValue()?(this.getCoord=te,this.getGeoCoord=ie,this.getGeoUpVector=ne,this.getLocationMatrix=oe):(delete this.getCoord,delete this.getGeoCoord,delete this.getGeoUpVector,delete this.getLocationMatrix)},getReferenceFrame:function(){return this.referenceFrame},getStandardOrder:function(){return this.standardOrder},getCoord:function(e,t){return this.referenceFrame.convert(e,t).subtract(this.origin)},getGeoCoord:function(e,t){return this.referenceFrame.apply(Y.assign(e).add(this.origin),t)},getGeoElevation:function(e){return this.getGeoCoord(e,Z).z},getGeoUpVector:function(e,t){return this.elevationFrame.normal(Y.assign(e).add(this.origin),t)},getLocationMatrix:function(e,t){var i=this.origin,n=se.call(this,e,t);return n[12]-=i.x,n[13]-=i.y,n[14]-=i.z,n},dispose:function(){}};const re=ee;g().set("x_ite/Components/Geospatial/X3DGeospatialObject",re);const ae=re,le=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Geometry/Triangle3");var he=e.n(le);function ce(e){c().call(this,e),ae.call(this,e),this.addType(u().GeoCoordinate)}ce.prototype=Object.assign(Object.create(c().prototype),ae.prototype,{constructor:ce,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"point",new(o().MFVec3d))]),getTypeName:function(){return"GeoCoordinate"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"coord"},initialize:function(){c().prototype.initialize.call(this),ae.prototype.initialize.call(this)},set1Point:function(){const e=new(S())(0,0,0);return function(t,i){this._point[t]=this.getGeoCoord(i,e)}}(),get1Point:function(){const e=new(S())(0,0,0);return function(t,i){if(t<this.length){const n=this.point;return t*=3,this.getCoord(e.set(n[t],n[t+1],n[t+2]),i)}return i.set(0,0,0)}}(),addPoint:function(){const e=new(S())(0,0,0),t=new(S())(0,0,0);return function(i,n){if(i<this.length){const o=this.point;i*=3,this.getCoord(e.set(o[i],o[i+1],o[i+2]),t),n.push(t[0],t[1],t[2],1)}else n.push(0,0,0,1)}}(),addPoints:function(){const e=new(S())(0,0,0),t=new(S())(0,0,0);return function(i,n){const o=this.point;for(let n=0,s=3*this.length;n<s;n+=3)this.getCoord(e.set(o[n],o[n+1],o[n+2]),t),i.push(t[0],t[1],t[2],1);for(let e=3*this.length,t=3*n;e<t;e+=3)i.push(0,0,0,1)}}(),getNormal:function(){const e=new(S())(0,0,0),t=new(S())(0,0,0),i=new(S())(0,0,0);return function(n,o,s){const r=this.length;return n<r&&o<r&&s<r?he().normal(this.get1Point(n,e),this.get1Point(o,t),this.get1Point(s,i),new(S())(0,0,0)):new(S())(0,0,0)}}(),getQuadNormal:function(){const e=new(S())(0,0,0),t=new(S())(0,0,0),i=new(S())(0,0,0),n=new(S())(0,0,0);return function(o,s,r,a){const l=this.length;return o<l&&s<l&&r<l&&a<l?he().quadNormal(this.get1Point(o,e),this.get1Point(s,t),this.get1Point(r,i),this.get1Point(a,n),new(S())(0,0,0)):new(S())(0,0,0)}}(),dispose:function(){ae.prototype.dispose.call(this),c().prototype.dispose.call(this)}});const de=ce;g().set("x_ite/Components/Geospatial/GeoCoordinate",de);const ue=de,pe=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Rendering/X3DGeometryNode");var ge=e.n(pe);const _e=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Numbers/Vector2");var we=e.n(_e);function fe(e){ge().call(this,e),ae.call(this,e),this.addType(u().GeoElevationGrid),this._creaseAngle.setUnit("angle"),this._height.setUnit("length"),this.colorNode=null,this.texCoordNode=null,this.normalNode=null}fe.prototype=Object.assign(Object.create(ge().prototype),ae.prototype,{constructor:fe,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"geoGridOrigin",new(o().SFVec3d)),new(r())(u().initializeOnly,"xDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"zDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"xSpacing",new(o().SFDouble)(1)),new(r())(u().initializeOnly,"zSpacing",new(o().SFDouble)(1)),new(r())(u().inputOutput,"yScale",new(o().SFFloat)(1)),new(r())(u().initializeOnly,"solid",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"ccw",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"creaseAngle",new(o().SFDouble)),new(r())(u().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(r())(u().inputOutput,"color",new(o().SFNode)),new(r())(u().inputOutput,"texCoord",new(o().SFNode)),new(r())(u().inputOutput,"normal",new(o().SFNode)),new(r())(u().inputOutput,"height",new(o().MFDouble)(0,0))]),getTypeName:function(){return"GeoElevationGrid"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"geometry"},initialize:function(){ge().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._color.addInterest("set_color__",this),this._texCoord.addInterest("set_texCoord__",this),this._normal.addInterest("set_normal__",this),this.set_color__(),this.set_texCoord__(),this.set_normal__()},set_color__:function(){this.colorNode?.removeInterest("requestRebuild",this),this.colorNode=q()(u().X3DColorNode,this._color),this.colorNode?.addInterest("requestRebuild",this),this.setTransparent(this.colorNode?.isTransparent()??!1)},set_texCoord__:function(){this.texCoordNode?.removeInterest("requestRebuild",this),this.texCoordNode=q()(u().X3DTextureCoordinateNode,this._texCoord),this.texCoordNode?.addInterest("requestRebuild",this),this.setTextureCoordinate(this.texCoordNode)},set_normal__:function(){this.normalNode?.removeInterest("requestRebuild",this),this.normalNode=q()(u().X3DNormalNode,this._normal),this.normalNode?.addInterest("requestRebuild",this)},getColor:function(){return this.colorNode},getTexCoord:function(){return this.texCoordNode},getNormal:function(){return this.normalNode},getHeight:function(e){return e<this._height.length?this._height[e]*this._yScale.getValue():0},createTexCoords:function(){for(var e=[],t=this._xDimension.getValue(),i=this._zDimension.getValue(),n=t-1,o=i-1,s=0;s<i;++s)for(var r=0;r<t;++r)e.push(new(we())(r/n,s/o));return e},createNormals:function(e,t,i){for(var n=!this._ccw.getValue(),o=[],s=[],r=0;r<e.length;++r)o[r]=[];for(var a=0;a<t.length;a+=3){var l=t[a],h=t[a+1],c=t[a+2];o[l].push(s.length),o[h].push(s.length+1),o[c].push(s.length+2);var d=he().normal(e[l],e[h],e[c],new(S())(0,0,0));n&&d.negate(),s.push(d),s.push(d),s.push(d)}return this.refineNormals(o,s,this._creaseAngle.getValue())},createCoordIndex:function(){for(var e=[],t=this._xDimension.getValue(),i=t-1,n=this._zDimension.getValue()-1,o=0;o<n;++o)for(var s=0;s<i;++s){var r=o*t+s,a=(o+1)*t+s,l=(o+1)*t+(s+1),h=o*t+(s+1);e.push(r),e.push(l),e.push(a),e.push(r),e.push(h),e.push(l)}return e},createPoints:function(){var e=[],t=this._xDimension.getValue(),i=this._zDimension.getValue(),n=this._xSpacing.getValue(),o=this._zSpacing.getValue();if(this.getStandardOrder())for(var s=0;s<i;++s)for(var r=0;r<t;++r){(a=new(S())(o*s,n*r,this.getHeight(r+s*t))).add(this._geoGridOrigin.getValue()),e.push(this.getCoord(a,a))}else for(s=0;s<i;++s)for(r=0;r<t;++r){var a;(a=new(S())(n*r,o*s,this.getHeight(r+s*t))).add(this._geoGridOrigin.getValue()),e.push(this.getCoord(a,a))}return e},build:function(){if(!(this._xDimension.getValue()<2||this._zDimension.getValue()<2)){var e=this._colorPerVertex.getValue(),t=this._normalPerVertex.getValue(),i=this.createCoordIndex(),n=this.getColor(),o=this.getTexCoord(),s=this.getNormal(),r=this.createPoints(),a=this.getColors(),l=this.getMultiTexCoords(),h=this.getNormals(),c=this.getVertices(),d=0;if(o)o.init(l);else{var u=this.createTexCoords(),p=this.getTexCoords();l.push(p)}for(var g=0;g<i.length;++d)for(var _=0;_<6;++_,++g){var w=i[g],f=r[w];if(n&&(e?n.addColor(w,a):n.addColor(d,a)),o)o.addPoint(w,l);else{var m=u[w];p.push(m.x,m.y,0,1)}s&&(t?s.addVector(w,h):s.addVector(d,h)),c.push(f.x,f.y,f.z,1)}if(!s)for(var y=this.createNormals(r,i),O=0;O<y.length;++O){var S=y[O];h.push(S.x,S.y,S.z)}this.setSolid(this._solid.getValue()),this.setCCW(this._ccw.getValue())}},dispose:function(){ae.prototype.dispose.call(this),ge().prototype.dispose.call(this)}});const me=fe;g().set("x_ite/Components/Geospatial/GeoElevationGrid",me);const ye=me,Oe=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Core/X3DChildNode");var Se=e.n(Oe);const Ie=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Grouping/X3DBoundedObject");var be=e.n(Ie);const Fe=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Rendering/TraverseType");var Ce=e.n(Fe);const ve=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Grouping/Group");var xe=e.n(ve);const Ne=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Networking/Inline");var Me=e.n(Ne);const Ge=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Geometry/Box3");var Te=e.n(Ge),De=new(S())(0,0,0);function Ee(e){Se().call(this,e),be().call(this,e),ae.call(this,e),this.addType(u().GeoLOD),this._range.setUnit("length"),this.unload=!1,this.rootGroup=new(xe())(this.getBrowser().getPrivateScene()),this.rootInline=new(Me())(e),this.child1Inline=new(Me())(e),this.child2Inline=new(Me())(e),this.child3Inline=new(Me())(e),this.child4Inline=new(Me())(e),this.childrenLoaded=!1,this.childBBox=new(Te()),this.keepCurrentLevel=!1,this.modelViewMatrix=new(H())}Ee.prototype=Object.assign(Object.create(Se().prototype),be().prototype,ae.prototype,{constructor:Ee,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"rootUrl",new(o().MFString)),new(r())(u().initializeOnly,"child1Url",new(o().MFString)),new(r())(u().initializeOnly,"child2Url",new(o().MFString)),new(r())(u().initializeOnly,"child3Url",new(o().MFString)),new(r())(u().initializeOnly,"child4Url",new(o().MFString)),new(r())(u().initializeOnly,"center",new(o().SFVec3d)),new(r())(u().initializeOnly,"range",new(o().SFFloat)(10)),new(r())(u().outputOnly,"level_changed",new(o().SFInt32)(-1)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().initializeOnly,"rootNode",new(o().MFNode)),new(r())(u().outputOnly,"children",new(o().MFNode))]),getTypeName:function(){return"GeoLOD"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Se().prototype.initialize.call(this),be().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._rootNode.addFieldInterest(this.rootGroup._children),this.rootGroup._children=this._rootNode,this.rootGroup.setPrivate(!0),this.rootGroup.setup(),this.rootInline._loadState.addInterest("set_rootLoadState__",this),this.child1Inline._loadState.addInterest("set_childLoadState__",this),this.child2Inline._loadState.addInterest("set_childLoadState__",this),this.child3Inline._loadState.addInterest("set_childLoadState__",this),this.child4Inline._loadState.addInterest("set_childLoadState__",this),this._rootUrl.addFieldInterest(this.rootInline._url),this._child1Url.addFieldInterest(this.child1Inline._url),this._child2Url.addFieldInterest(this.child2Inline._url),this._child3Url.addFieldInterest(this.child3Inline._url),this._child4Url.addFieldInterest(this.child4Inline._url),this.rootInline._load=!0,this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1,this.rootInline._url=this._rootUrl,this.child1Inline._url=this._child1Url,this.child2Inline._url=this._child2Url,this.child3Inline._url=this._child3Url,this.child4Inline._url=this._child4Url,this.rootInline.setup(),this.child1Inline.setup(),this.child2Inline.setup(),this.child3Inline.setup(),this.child4Inline.setup()},getBBox:function(e,t){if(this._bboxSize.getValue().equals(this.getDefaultBBoxSize())){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:return this._rootNode.length?this.rootGroup.getBBox(e,t):this.rootInline.getBBox(e,t);case 1:{const i=this.childBBox;return e.set(),e.add(this.child1Inline.getBBox(i,t)),e.add(this.child2Inline.getBBox(i,t)),e.add(this.child3Inline.getBBox(i,t)),e.add(this.child4Inline.getBBox(i,t)),e}}return e.set()}return e.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_rootLoadState__:function(){0===this._level_changed.getValue()&&(this._rootNode.length||this.rootInline.checkLoadState()===u().COMPLETE_STATE&&(this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1))},set_childLoadState__:function(){if(1===this._level_changed.getValue()){var e=0;if(this.child1Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child1Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child2Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child2Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child3Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child3Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child4Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child4Inline.checkLoadState()!==u().FAILED_STATE||++e,4===e){this.childrenLoaded=!0;var t=this._children;t.length=0;for(var i=0,n=(o=this.child1Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);for(i=0,n=(o=this.child2Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);for(i=0,n=(o=this.child3Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);var o;for(i=0,n=(o=this.child4Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i])}}},set_childCameraObject__:function(){this.setCameraObject(this.child1Inline.isCameraObject()||this.child2Inline.isCameraObject()||this.child3Inline.isCameraObject()||this.child4Inline.isCameraObject())},set_childPickableObject__:function(){this.setPickableObject(this.child1Inline.isPickableObject()||this.child2Inline.isPickableObject()||this.child3Inline.isPickableObject()||this.child4Inline.isPickableObject())},getLevel:function(e){return this.getDistance(e)<this._range.getValue()?1:0},getDistance:function(e){return e.translate(this.getCoord(this._center.getValue(),De)),e.origin.magnitude()},traverse:function(e,t){switch(e){case Ce().PICKING:var i=this.getBrowser().getPickingHierarchy();return i.push(this),this.traverseChildren(e,t),void i.pop();case Ce().DISPLAY:var n=this.getLevel(this.modelViewMatrix.assign(t.getModelViewMatrix().get()));if(n!==this._level_changed.getValue())switch(this._level_changed=n,n){case 0:this.child1Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this._rootNode.length?(this.rootGroup._isCameraObject.addFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootGroup.isCameraObject()),this.setPickableObject(this.rootGroup.isPickableObject()),this._children=this._rootNode,this.childrenLoaded=!1):this.rootInline.checkLoadState()==u().COMPLETE_STATE&&(this.rootInline._isCameraObject.addFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootInline.isCameraObject()),this.setPickableObject(this.rootInline.isPickableObject()),this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1),this.unload&&(this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1);break;case 1:this._rootNode.length?(this.rootGroup._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.removeFieldInterest(this._isPickableObject)):(this.rootInline._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.removeFieldInterest(this._isPickableObject)),this.child1Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.set_childCameraObject__(),this.set_childPickableObject__(),this.child1Inline._load.getValue()?this.set_childLoadState__():(this.child1Inline._load=!0,this.child2Inline._load=!0,this.child3Inline._load=!0,this.child4Inline._load=!0)}return void this.traverseChildren(e,t);default:return void this.traverseChildren(e,t)}},traverseChildren:function(e,t){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:this._rootNode.length?this.rootGroup.traverse(e,t):this.rootInline.traverse(e,t);break;case 1:this.child1Inline.traverse(e,t),this.child2Inline.traverse(e,t),this.child3Inline.traverse(e,t),this.child4Inline.traverse(e,t)}},dispose:function(){ae.prototype.dispose.call(this),be().prototype.dispose.call(this),Se().prototype.dispose.call(this)}});const Ve=Ee;g().set("x_ite/Components/Geospatial/GeoLOD",Ve);const ze=Ve,je=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Grouping/X3DTransformMatrix3DNode");var Xe=e.n(je),Pe=new(H());function Be(e){Xe().call(this,e),ae.call(this,e),this.addType(u().GeoLocation)}Be.prototype=Object.assign(Object.create(Xe().prototype),ae.prototype,{constructor:Be,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCoords",new(o().SFVec3d)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"GeoLocation"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Xe().prototype.initialize.call(this),ae.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed:function(){this.setMatrix(this.getLocationMatrix(this._geoCoords.getValue(),Pe))},dispose:function(){ae.prototype.dispose.call(this),Xe().prototype.dispose.call(this)}});const ke=Be;g().set("x_ite/Components/Geospatial/GeoLocation",ke);const Le=ke,Ae=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Core/X3DInfoNode");var Re=e.n(Ae);const Ue=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Networking/X3DUrlObject");var qe=e.n(Ue);function We(e){Re().call(this,e),qe().call(this,e),this.addType(u().GeoMetadata)}We.prototype=Object.assign(Object.create(Re().prototype),qe().prototype,{constructor:We,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"load",new(o().SFBool)(!0)),new(r())(u().inputOutput,"url",new(o().MFString)),new(r())(u().inputOutput,"autoRefresh",new(o().SFTime)),new(r())(u().inputOutput,"autoRefreshTimeLimit",new(o().SFTime)(3600)),new(r())(u().inputOutput,"summary",new(o().MFString)),new(r())(u().inputOutput,"data",new(o().MFNode))]),getTypeName:function(){return"GeoMetadata"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Re().prototype.initialize.call(this),qe().prototype.initialize.call(this)},requestImmediateLoad:function(e=!0){},requestUnload:function(){},set_load__:function(){},set_url__:function(){},dispose:function(){qe().prototype.dispose.call(this),Re().prototype.dispose.call(this)}});const He=We;g().set("x_ite/Components/Geospatial/GeoMetadata",He);const Ye=He,Ze=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Core/X3DNode");var Ke=e.n(Ze);function Je(e){Ke().call(this,e),this.addType(u().GeoOrigin),this.radians=!1}Je.prototype=Object.assign(Object.create(Ke().prototype),{constructor:Je,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCoords",new(o().SFVec3d)),new(r())(u().initializeOnly,"rotateYUp",new(o().SFBool))]),getTypeName:function(){return"GeoOrigin"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"geoOrigin"},initialize:function(){Ke().prototype.initialize.call(this),this._geoSystem.addInterest("set_geoSystem__",this),this.set_geoSystem__()},set_geoSystem__:function(){this.referenceFrame=R.getReferenceFrame(this._geoSystem,this.radians)},getOrigin:function(e){return this.referenceFrame.convert(this._geoCoords.getValue(),e)}});const Qe=Je;g().set("x_ite/Components/Geospatial/GeoOrigin",Qe);const $e=Qe,et=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Interpolation/X3DInterpolatorNode");var tt=e.n(et);function it(e){tt().call(this,e),ae.call(this,e),this.addType(u().GeoPositionInterpolator),this._value_changed.setUnit("length"),this.geocentric=new z}it.prototype=Object.assign(Object.create(tt().prototype),ae.prototype,{constructor:it,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_fraction",new(o().SFFloat)),new(r())(u().inputOutput,"key",new(o().MFFloat)),new(r())(u().inputOutput,"keyValue",new(o().MFVec3d)),new(r())(u().outputOnly,"value_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"geovalue_changed",new(o().SFVec3d))]),getTypeName:function(){return"GeoPositionInterpolator"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},setup:function(){ae.prototype.initialize.call(this),tt().prototype.setup.call(this)},initialize:function(){tt().prototype.initialize.call(this),this._keyValue.addInterest("set_keyValue__",this)},set_keyValue__:function(){const e=this._key,t=this._keyValue;t.length<e.length&&t.resize(e.length,t.length?t[t.length-1]:new(o().SFVec3f))},interpolate:function(){const e=new(S())(0,0,0),t=new(S())(0,0,0),i=new(S())(0,0,0);return function(n,o,s){this.getCoord(this._keyValue[n].getValue(),e),this.getCoord(this._keyValue[o].getValue(),t);const r=this.geocentric.slerp(e,t,s);this._geovalue_changed=this.getGeoCoord(r,i),this._value_changed=r}}(),dispose:function(){ae.prototype.dispose.call(this),tt().prototype.dispose.call(this)}});const nt=it;g().set("x_ite/Components/Geospatial/GeoPositionInterpolator",nt);const ot=nt,st=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode");var rt=e.n(st);const at=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/EnvironmentalSensor/ProximitySensor");var lt=e.n(at),ht=new(S())(0,0,0);function ct(e){rt().call(this,e),ae.call(this,e),this.addType(u().GeoProximitySensor),this._position_changed.setUnit("length"),this._centerOfRotation_changed.setUnit("length"),this.proximitySensor=new(lt())(e),this.setCameraObject(this.proximitySensor.isCameraObject()),this.setPickableObject(this.proximitySensor.isPickableObject())}ct.prototype=Object.assign(Object.create(rt().prototype),ae.prototype,{constructor:ct,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"size",new(o().SFVec3f)),new(r())(u().inputOutput,"center",new(o().SFVec3f)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"enterTime",new(o().SFTime)),new(r())(u().outputOnly,"exitTime",new(o().SFTime)),new(r())(u().outputOnly,"geoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"position_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"orientation_changed",new(o().SFRotation)),new(r())(u().outputOnly,"centerOfRotation_changed",new(o().SFVec3f))]),getTypeName:function(){return"GeoProximitySensor"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){rt().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._enabled.addFieldInterest(this.proximitySensor._enabled),this._size.addFieldInterest(this.proximitySensor._size),this._center.addFieldInterest(this.proximitySensor._center),this.proximitySensor._isCameraObject.addFieldInterest(this._isCameraObject),this.proximitySensor._isPickableObject.addFieldInterest(this._isPickableObject),this.proximitySensor._isActive.addFieldInterest(this._isActive),this.proximitySensor._enterTime.addFieldInterest(this._enterTime),this.proximitySensor._exitTime.addFieldInterest(this._exitTime),this.proximitySensor._position_changed.addFieldInterest(this._position_changed),this.proximitySensor._orientation_changed.addFieldInterest(this._orientation_changed),this.proximitySensor._centerOfRotation_changed.addFieldInterest(this._centerOfRotation_changed),this.proximitySensor._position_changed.addInterest("set_position__",this),this.proximitySensor._enabled=this._enabled,this.proximitySensor._size=this._size,this.proximitySensor._center=this._center,this.proximitySensor.setup()},set_position__:function(e){this._geoCoord_changed=this.getGeoCoord(this.proximitySensor._position_changed.getValue(),ht)},traverse:function(e,t){this.proximitySensor.traverse(e,t)},dispose:function(){ae.prototype.dispose.call(this),rt().prototype.dispose.call(this)}});const dt=ct;g().set("x_ite/Components/Geospatial/GeoProximitySensor",dt);const ut=dt,pt=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode");var gt=e.n(pt);function _t(e){gt().call(this,e),ae.call(this,e),this.addType(u().GeoTouchSensor),this._hitPoint_changed.setUnit("length")}_t.prototype=Object.assign(Object.create(gt().prototype),ae.prototype,{constructor:_t,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().outputOnly,"hitTexCoord_changed",new(o().SFVec2f)),new(r())(u().outputOnly,"hitNormal_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitPoint_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitGeoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"isOver",new(o().SFBool)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"touchTime",new(o().SFTime))]),getTypeName:function(){return"GeoTouchSensor"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){gt().prototype.initialize.call(this),ae.prototype.initialize.call(this)},set_over__:function(){const e=new(S())(0,0,0);return function(t,i,n,o,s){gt().prototype.set_over__.call(this,t,i,n,o,s),this._isOver.getValue()&&(this._hitGeoCoord_changed=this.getGeoCoord(this._hitPoint_changed.getValue(),e))}}(),dispose:function(){ae.prototype.dispose.call(this),gt().prototype.dispose.call(this)}});const wt=_t;g().set("x_ite/Components/Geospatial/GeoTouchSensor",wt);const ft=wt;var mt=new(H()),yt=new(H());function Ot(e){Xe().call(this,e),ae.call(this,e),this.addType(u().GeoTransform),this._translation.setUnit("length")}Ot.prototype=Object.assign(Object.create(Xe().prototype),ae.prototype,{constructor:Ot,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"translation",new(o().SFVec3f)),new(r())(u().inputOutput,"rotation",new(o().SFRotation)),new(r())(u().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(u().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCenter",new(o().SFVec3d)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"GeoTransform"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Xe().prototype.initialize.call(this),ae.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed:function(){this.getLocationMatrix(this._geoCenter.getValue(),yt),mt.set(this._translation.getValue(),this._rotation.getValue(),this._scale.getValue(),this._scaleOrientation.getValue()),this.setMatrix(mt.multRight(yt).multLeft(yt.inverse()))},dispose:function(){ae.prototype.dispose.call(this),Xe().prototype.dispose.call(this)}});const St=Ot;g().set("x_ite/Components/Geospatial/GeoTransform",St);const It=St,bt=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Navigation/X3DViewpointNode");var Ft=e.n(bt);const Ct=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Navigation/Viewpoint");var vt=e.n(Ct);const xt=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Navigation/NavigationInfo");var Nt=e.n(xt);const Mt=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Numbers/Rotation4");var Gt=e.n(Mt);function Tt(e){Ft().call(this,e),ae.call(this,e),this.addType(u().GeoViewpoint),this._centerOfRotation.setUnit("length"),this._fieldOfView.setUnit("angle"),e.getSpecificationVersion()<=3.2&&(this.traverse=Dt),this.geoNavigationInfoNode=new(Nt())(e),this.projectionMatrix=new(H()),this.elevation=0}function Dt(e,t){Ft().prototype.traverse.call(this,e,t),this.geoNavigationInfoNode.traverse(e,t)}Tt.prototype=Object.assign(Object.create(Ft().prototype),ae.prototype,{constructor:Tt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_bind",new(o().SFBool)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"position",new(o().SFVec3d)(0,0,1e5)),new(r())(u().inputOutput,"orientation",new(o().SFRotation)),new(r())(u().inputOutput,"centerOfRotation",new(o().SFVec3d)),new(r())(u().inputOutput,"fieldOfView",new(o().SFFloat)(.7854)),new(r())(u().inputOutput,"nearDistance",new(o().SFFloat)(-1)),new(r())(u().inputOutput,"farDistance",new(o().SFFloat)(-1)),new(r())(u().inputOutput,"viewAll",new(o().SFBool)),new(r())(u().inputOutput,"jump",new(o().SFBool)(!0)),new(r())(u().inputOutput,"retainUserOffsets",new(o().SFBool)),new(r())(u().inputOutput,"navType",new(o().MFString)("EXAMINE","ANY")),new(r())(u().inputOutput,"headlight",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"speedFactor",new(o().SFFloat)(1)),new(r())(u().outputOnly,"isBound",new(o().SFBool)),new(r())(u().outputOnly,"bindTime",new(o().SFTime)),new(r())(u().inputOutput,"navigationInfo",new(o().SFNode))]),getTypeName:function(){return"GeoViewpoint"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Ft().prototype.initialize.call(this),ae.prototype.initialize.call(this);const e=this.getBrowser().getContext();this.logarithmicDepthBuffer=e.HAS_FEATURE_FRAG_DEPTH,this._position.addInterest("set_position__",this),this._positionOffset.addInterest("set_position__",this),this._navType.addFieldInterest(this.geoNavigationInfoNode._type),this._headlight.addFieldInterest(this.geoNavigationInfoNode._headlight),this.geoNavigationInfoNode.setup(),this.set_position__()},getRelativeTransformation:vt().prototype.getRelativeTransformation,setInterpolators:vt().prototype.setInterpolators,getFieldOfView:vt().prototype.getFieldOfView,getScreenScale:vt().prototype.getScreenScale,getViewportSize:vt().prototype.getViewportSize,getLookAtDistance:vt().prototype.getLookAtDistance,getProjectionMatrixWithLimits:vt().prototype.getProjectionMatrixWithLimits,getLogarithmicDepthBuffer:function(){return this.logarithmicDepthBuffer},setPosition:function(){const e=new(S())(0,0,0);return function(t){this._position.setValue(this.getGeoCoord(t,e))}}(),getPosition:function(){const e=new(S())(0,0,0);return function(){return this.getCoord(this._position.getValue(),e)}}(),set_position__:function(){const e=new(S())(0,0,0);return function(){this.getCoord(this._position.getValue(),e),this.elevation=this.getGeoElevation(e.add(this._positionOffset.getValue()))}}(),setOrientation:function(){const e=new(H()),t=new(Gt())(0,0,1,0);return function(i){const n=this.getLocationMatrix(this._position.getValue(),e).submatrix;t.setMatrix(n),this._orientation.setValue(t.inverse().multLeft(i))}}(),getOrientation:function(){const e=new(H()),t=new(Gt())(0,0,1,0);return function(){const i=this.getLocationMatrix(this._position.getValue(),e).submatrix;return t.setMatrix(i),t.multLeft(this._orientation.getValue())}}(),getCenterOfRotation:function(){const e=new(S())(0,0,0);return function(){return this.getCoord(this._centerOfRotation.getValue(),e)}}(),getMaxFarValue:function(){return 1e9},getUpVector:function(){const e=new(S())(0,0,0),t=new(S())(0,0,0);return function(i=!1){return!i||this.getUserPosition().magnitude()<65e5?(this.getCoord(this._position.getValue(),e),this.getGeoUpVector(e.add(this._positionOffset.getValue()),t)):t.assign(S().zAxis)}}(),getSpeedFactor:function(){return(Math.max(this.elevation,0)+10)/10*this._speedFactor.getValue()},dispose:function(){ae.prototype.dispose.call(this),Ft().prototype.dispose.call(this)}});const Et=Tt;g().set("x_ite/Components/Geospatial/GeoViewpoint",Et);const Vt=Et;i().addComponent({name:"Geospatial",types:{GeoCoordinate:ue,GeoElevationGrid:ye,GeoLOD:ze,GeoLocation:Le,GeoMetadata:Ye,GeoOrigin:$e,GeoPositionInterpolator:ot,GeoProximitySensor:ut,GeoTouchSensor:ft,GeoTransform:It,GeoViewpoint:Vt},abstractTypes:{X3DGeospatialObject:ae}});const zt=void 0;g().set("assets/components/Geospatial",zt)})();
@@ -1,4 +1,4 @@
1
- /* X_ITE v8.6.10 */(() => { // webpackBootstrap
1
+ /* X_ITE v8.6.12 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ // The require scope
4
4
  /******/ var __webpack_require__ = {};
@@ -39,25 +39,25 @@ 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.6.10")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.10")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.10")] .require ("x_ite/Base/X3DFieldDefinition");
48
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.10")] .require ("x_ite/Base/FieldDefinitionArray");
51
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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/Rendering/X3DGeometricPropertyNode\")"
54
- const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Components/Rendering/X3DGeometricPropertyNode");
54
+ const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Rendering/X3DGeometricPropertyNode");
55
55
  var X3DGeometricPropertyNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometricPropertyNode_namespaceObject);
56
56
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
57
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Base/X3DConstants");
57
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Base/X3DConstants");
58
58
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
59
59
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
60
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Namespace");
60
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Namespace");
61
61
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
62
62
  ;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimDisplacer.js
63
63
  /*******************************************************************************
@@ -153,28 +153,28 @@ const __default__ = HAnimDisplacer;
153
153
  Namespace_default().set ("x_ite/Components/HAnim/HAnimDisplacer", __default__);
154
154
  /* harmony default export */ const HAnim_HAnimDisplacer = (__default__);
155
155
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
156
- const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Components/Core/X3DChildNode");
156
+ const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Core/X3DChildNode");
157
157
  var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
158
158
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Group\")"
159
- const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Components/Grouping/Group");
159
+ const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Grouping/Group");
160
160
  var Group_default = /*#__PURE__*/__webpack_require__.n(Group_namespaceObject);
161
161
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Transform\")"
162
- const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Components/Grouping/Transform");
162
+ const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Grouping/Transform");
163
163
  var Transform_default = /*#__PURE__*/__webpack_require__.n(Transform_namespaceObject);
164
164
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
165
- const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
165
+ const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
166
166
  var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
167
167
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
168
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Rendering/TraverseType");
168
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Rendering/TraverseType");
169
169
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
170
170
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
171
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Base/X3DCast");
171
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Base/X3DCast");
172
172
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
173
173
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
174
- const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("standard/Math/Numbers/Matrix4");
174
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Numbers/Matrix4");
175
175
  var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
176
176
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
177
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("standard/Math/Numbers/Vector3");
177
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Numbers/Vector3");
178
178
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
179
179
  ;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimHumanoid.js
180
180
  /*******************************************************************************
@@ -585,7 +585,7 @@ const HAnimHumanoid_default_ = HAnimHumanoid;
585
585
  Namespace_default().set ("x_ite/Components/HAnim/HAnimHumanoid", HAnimHumanoid_default_);
586
586
  /* harmony default export */ const HAnim_HAnimHumanoid = (HAnimHumanoid_default_);
587
587
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DTransformNode\")"
588
- const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Components/Grouping/X3DTransformNode");
588
+ const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Grouping/X3DTransformNode");
589
589
  var X3DTransformNode_default = /*#__PURE__*/__webpack_require__.n(X3DTransformNode_namespaceObject);
590
590
  ;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimJoint.js
591
591
  /*******************************************************************************
@@ -872,7 +872,7 @@ const HAnimMotion_default_ = HAnimMotion;
872
872
  Namespace_default().set ("x_ite/Components/HAnim/HAnimMotion", HAnimMotion_default_);
873
873
  /* harmony default export */ const HAnim_HAnimMotion = (HAnimMotion_default_);
874
874
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
875
- const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
875
+ const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
876
876
  var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
877
877
  ;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimSegment.js
878
878
  /*******************************************************************************
@@ -1 +1 @@
1
- /* X_ITE v8.6.10 */(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components");var n=t.n(e);const i=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Fields");var o=t.n(i);const s=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/X3DFieldDefinition");var r=t.n(s);const u=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/FieldDefinitionArray");var a=t.n(u);const d=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var p=t.n(d);const l=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/X3DConstants");var c=t.n(l);const w=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Namespace");var h=t.n(w);function m(t){p().call(this,t),this.addType(c().HAnimDisplacer),this._displacements.setUnit("length")}m.prototype=Object.assign(Object.create(p().prototype),{constructor:m,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(c().inputOutput,"weight",new(o().SFFloat)),new(r())(c().inputOutput,"displacements",new(o().MFVec3f))]),getTypeName:function(){return"HAnimDisplacer"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"displacers"}});const _=m;h().set("x_ite/Components/HAnim/HAnimDisplacer",_);const N=_,f=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Core/X3DChildNode");var O=t.n(f);const S=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Grouping/Group");var F=t.n(S);const g=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Grouping/Transform");var b=t.n(g);const y=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Grouping/X3DBoundedObject");var C=t.n(y);const x=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Rendering/TraverseType");var k=t.n(x);const I=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/X3DCast");var M=t.n(I);const v=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Numbers/Matrix4");var D=t.n(v);const X=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Numbers/Vector3");var A=t.n(X);function H(t){O().call(this,t),C().call(this,t),this.addType(c().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(F())(t),this.viewpointsNode=new(F())(t),this.skinNode=new(F())(t),this.transformNode=new(b())(t),this.jointNodes=[],this.skinNormalNode=null,this.skinCoordNode=null,this.restNormalNode=null,this.restCoordNode=null,this.changed=!1}H.prototype=Object.assign(Object.create(O().prototype),C().prototype,{constructor:H,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"version",new(o().SFString)),new(r())(c().inputOutput,"info",new(o().MFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(c().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(c().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(c().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(c().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(c().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOutput,"skeleton",new(o().MFNode)),new(r())(c().inputOutput,"viewpoints",new(o().MFNode)),new(r())(c().inputOutput,"sites",new(o().MFNode)),new(r())(c().inputOutput,"segments",new(o().MFNode)),new(r())(c().inputOutput,"joints",new(o().MFNode)),new(r())(c().inputOutput,"motions",new(o().MFNode)),new(r())(c().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(c().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(c().inputOutput,"skinNormal",new(o().SFNode)),new(r())(c().inputOutput,"skinCoord",new(o().SFNode)),new(r())(c().inputOutput,"skin",new(o().MFNode))]),getTypeName:function(){return"HAnimHumanoid"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){O().prototype.initialize.call(this),C().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(c().HAnimJoint,c().HAnimSite),this.viewpointsNode.setAllowedTypes(c().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._visible.addFieldInterest(this.transformNode._visible),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._visible=this._visible,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject()),this._joints.addInterest("set_joints__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinNormal__(),this.set_skinCoord__()},getBBox:function(t,e){return this.transformNode.getBBox(t,e)},set_joints__:function(){const t=this.jointNodes;for(const e of t)e.removeInterest("set_joint__",this);t.length=0;for(const e of this._joints){const n=M()(c().HAnimJoint,e);n&&t.push(n)}for(const e of t)e.addInterest("set_joint__",this);this.set_joint__()},set_joint__:function(){this.changed=!0},set_skinNormal__:function(){this.restNormalNode=null,this.skinNormalNode=M()(c().X3DNormalNode,this._skinNormal),this.skinNormalNode&&(this.restNormalNode=this.skinNormalNode.copy()),this.changed=!0},set_skinCoord__:function(){this.restCoordNode=null,this.skinCoordNode=M()(c().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(this.restCoordNode=this.skinCoordNode.copy(),delete this.skinning):this.skinning=Function.prototype,this.changed=!0},traverse:function(t,e){this.transformNode.traverse(t,e),this.skinning(t,e)},skinning:function(){const t=new(D()),e=new(A())(0,0,0),n=new(A())(0,0,0),i=new(A())(0,0,0),o=new(A())(0,0,0);return function(s,r){if(s!==k().CAMERA)return;if(!this.changed)return;this.changed=!1;const u=this.jointNodes,a=this.skinNormalNode,d=this.skinCoordNode,p=this.restNormalNode,l=this.restCoordNode;a&&a._vector.assign(p._vector),d._point.assign(l._point),t.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(const s of u){const r=s._skinCoordIndex.length,u=s.getModelMatrix().multRight(t),c=s.getDisplacers();for(const t of c){const e=t._coordIndex.getValue(),n=t._coordIndex.length,s=t._weight.getValue(),r=t._displacements.getValue(),a=t._displacements.length;for(let t=0;t<n;++t){const n=3*t,p=e[t],l=t<a?o.set(r[n],r[n+1],r[n+2]):o.assign(A().Zero);d.get1Point(p,i),u.multDirMatrix(l).multiply(s).add(i),d.set1Point(p,l)}}const w=a?u.submatrix.transpose().inverse():null,h=s._skinCoordIndex.getValue(),m=s._skinCoordWeight.getValue(),_=s._skinCoordWeight.length;for(let t=0;t<r;++t){const s=h[t],r=t<_?m[t]:1;a&&(n.assign(p.get1Vector(s,e)),a.get1Vector(s,i),w.multVecMatrix(e).subtract(n).multiply(r).add(i),a.set1Vector(s,e)),n.assign(l.get1Point(s,o)),d.get1Point(s,i),u.multVecMatrix(o).subtract(n).multiply(r).add(i),d.set1Point(s,o)}}}}(),toVRMLStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),O().prototype.toVRMLStream.call(this,t)},toXMLStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),O().prototype.toXMLStream.call(this,t)},toJSONStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),O().prototype.toJSONStream.call(this,t)},dispose:function(){C().prototype.dispose.call(this),O().prototype.dispose.call(this)}});const T=H;h().set("x_ite/Components/HAnim/HAnimHumanoid",T);const j=T,V=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Grouping/X3DTransformNode");var B=t.n(V);function E(t){B().call(this,t),this.addType(c().HAnimJoint),this.setAllowedTypes(c().HAnimJoint,c().HAnimSegment,c().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(D())}E.prototype=Object.assign(Object.create(B().prototype),{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"llimit",new(o().MFFloat)),new(r())(c().inputOutput,"ulimit",new(o().MFFloat)),new(r())(c().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(c().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(c().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(c().inputOutput,"displacers",new(o().MFNode)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimJoint"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){B().prototype.initialize.call(this),this._skinCoordIndex.addInterest("set_skinCoordIndex__",this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject:function(t){B().prototype.setCameraObject.call(this,t||!!this._skinCoordIndex.length)},getModelMatrix:function(){return this.modelMatrix},getDisplacers:function(){return this.displacerNodes},set_skinCoordIndex__:function(){this.set_cameraObjects__()},set_displacers__:function(){const t=this.displacerNodes;t.length=0;for(const e of this._displacers){const n=M()(c().HAnimDisplacer,e);n&&t.push(n)}},traverse:function(t,e){t===k().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(this.getMatrix()).multRight(e.getModelViewMatrix().get()),B().prototype.traverse.call(this,t,e)},groupTraverse:function(t,e){t===k().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(e.getModelViewMatrix().get()),B().prototype.groupTraverse.call(this,t,e)}});const z=E;h().set("x_ite/Components/HAnim/HAnimJoint",z);const R=z;function q(t){O().call(this,t),this.addType(c().HAnimMotion)}q.prototype=Object.assign(Object.create(O().prototype),{constructor:q,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(c().inputOnly,"next",new(o().SFBool)),new(r())(c().inputOnly,"previous",new(o().SFBool)),new(r())(c().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(c().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(c().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(c().inputOutput,"loop",new(o().SFBool)),new(r())(c().inputOutput,"channels",new(o().SFString)),new(r())(c().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(c().inputOutput,"joints",new(o().MFString)),new(r())(c().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(c().inputOutput,"startFrame",new(o().SFInt32)),new(r())(c().inputOutput,"endFrame",new(o().SFInt32)),new(r())(c().inputOutput,"values",new(o().MFFloat)),new(r())(c().outputOnly,"cycleTime",new(o().SFTime)),new(r())(c().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(c().outputOnly,"frameCount",new(o().SFInt32))]),getTypeName:function(){return"HAnimMotion"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){O().prototype.initialize.call(this)}});const P=q;h().set("x_ite/Components/HAnim/HAnimMotion",P);const J=P,G=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=t.n(G);function L(t){U().call(this,t),this.addType(c().HAnimSegment),this._mass.setUnit("mass")}L.prototype=Object.assign(Object.create(U().prototype),{constructor:L,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"mass",new(o().SFFloat)),new(r())(c().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(c().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(c().inputOutput,"displacers",new(o().MFNode)),new(r())(c().inputOutput,"coord",new(o().SFNode)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSegment"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const W=L;h().set("x_ite/Components/HAnim/HAnimSegment",W);const Z=W;function K(t){B().call(this,t),this.addType(c().HAnimSite)}K.prototype=Object.assign(Object.create(B().prototype),{constructor:K,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSite"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const Q=K;h().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().addComponent({name:"HAnim",types:{HAnimDisplacer:N,HAnimHumanoid:j,HAnimJoint:R,HAnimMotion:J,HAnimSegment:Z,HAnimSite:Y},abstractTypes:{}});const $=void 0;h().set("assets/components/HAnim",$)})();
1
+ /* X_ITE v8.6.12 */(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components");var n=t.n(e);const i=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Fields");var o=t.n(i);const s=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/X3DFieldDefinition");var r=t.n(s);const u=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/FieldDefinitionArray");var a=t.n(u);const d=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var p=t.n(d);const l=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/X3DConstants");var c=t.n(l);const w=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Namespace");var h=t.n(w);function m(t){p().call(this,t),this.addType(c().HAnimDisplacer),this._displacements.setUnit("length")}m.prototype=Object.assign(Object.create(p().prototype),{constructor:m,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(c().inputOutput,"weight",new(o().SFFloat)),new(r())(c().inputOutput,"displacements",new(o().MFVec3f))]),getTypeName:function(){return"HAnimDisplacer"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"displacers"}});const _=m;h().set("x_ite/Components/HAnim/HAnimDisplacer",_);const N=_,f=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Core/X3DChildNode");var O=t.n(f);const S=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Grouping/Group");var F=t.n(S);const g=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Grouping/Transform");var b=t.n(g);const y=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Grouping/X3DBoundedObject");var C=t.n(y);const x=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Rendering/TraverseType");var k=t.n(x);const I=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/X3DCast");var M=t.n(I);const v=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Numbers/Matrix4");var D=t.n(v);const X=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Numbers/Vector3");var A=t.n(X);function H(t){O().call(this,t),C().call(this,t),this.addType(c().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(F())(t),this.viewpointsNode=new(F())(t),this.skinNode=new(F())(t),this.transformNode=new(b())(t),this.jointNodes=[],this.skinNormalNode=null,this.skinCoordNode=null,this.restNormalNode=null,this.restCoordNode=null,this.changed=!1}H.prototype=Object.assign(Object.create(O().prototype),C().prototype,{constructor:H,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"version",new(o().SFString)),new(r())(c().inputOutput,"info",new(o().MFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(c().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(c().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(c().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(c().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(c().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOutput,"skeleton",new(o().MFNode)),new(r())(c().inputOutput,"viewpoints",new(o().MFNode)),new(r())(c().inputOutput,"sites",new(o().MFNode)),new(r())(c().inputOutput,"segments",new(o().MFNode)),new(r())(c().inputOutput,"joints",new(o().MFNode)),new(r())(c().inputOutput,"motions",new(o().MFNode)),new(r())(c().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(c().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(c().inputOutput,"skinNormal",new(o().SFNode)),new(r())(c().inputOutput,"skinCoord",new(o().SFNode)),new(r())(c().inputOutput,"skin",new(o().MFNode))]),getTypeName:function(){return"HAnimHumanoid"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){O().prototype.initialize.call(this),C().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(c().HAnimJoint,c().HAnimSite),this.viewpointsNode.setAllowedTypes(c().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._visible.addFieldInterest(this.transformNode._visible),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._visible=this._visible,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject()),this._joints.addInterest("set_joints__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinNormal__(),this.set_skinCoord__()},getBBox:function(t,e){return this.transformNode.getBBox(t,e)},set_joints__:function(){const t=this.jointNodes;for(const e of t)e.removeInterest("set_joint__",this);t.length=0;for(const e of this._joints){const n=M()(c().HAnimJoint,e);n&&t.push(n)}for(const e of t)e.addInterest("set_joint__",this);this.set_joint__()},set_joint__:function(){this.changed=!0},set_skinNormal__:function(){this.restNormalNode=null,this.skinNormalNode=M()(c().X3DNormalNode,this._skinNormal),this.skinNormalNode&&(this.restNormalNode=this.skinNormalNode.copy()),this.changed=!0},set_skinCoord__:function(){this.restCoordNode=null,this.skinCoordNode=M()(c().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(this.restCoordNode=this.skinCoordNode.copy(),delete this.skinning):this.skinning=Function.prototype,this.changed=!0},traverse:function(t,e){this.transformNode.traverse(t,e),this.skinning(t,e)},skinning:function(){const t=new(D()),e=new(A())(0,0,0),n=new(A())(0,0,0),i=new(A())(0,0,0),o=new(A())(0,0,0);return function(s,r){if(s!==k().CAMERA)return;if(!this.changed)return;this.changed=!1;const u=this.jointNodes,a=this.skinNormalNode,d=this.skinCoordNode,p=this.restNormalNode,l=this.restCoordNode;a&&a._vector.assign(p._vector),d._point.assign(l._point),t.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(const s of u){const r=s._skinCoordIndex.length,u=s.getModelMatrix().multRight(t),c=s.getDisplacers();for(const t of c){const e=t._coordIndex.getValue(),n=t._coordIndex.length,s=t._weight.getValue(),r=t._displacements.getValue(),a=t._displacements.length;for(let t=0;t<n;++t){const n=3*t,p=e[t],l=t<a?o.set(r[n],r[n+1],r[n+2]):o.assign(A().Zero);d.get1Point(p,i),u.multDirMatrix(l).multiply(s).add(i),d.set1Point(p,l)}}const w=a?u.submatrix.transpose().inverse():null,h=s._skinCoordIndex.getValue(),m=s._skinCoordWeight.getValue(),_=s._skinCoordWeight.length;for(let t=0;t<r;++t){const s=h[t],r=t<_?m[t]:1;a&&(n.assign(p.get1Vector(s,e)),a.get1Vector(s,i),w.multVecMatrix(e).subtract(n).multiply(r).add(i),a.set1Vector(s,e)),n.assign(l.get1Point(s,o)),d.get1Point(s,i),u.multVecMatrix(o).subtract(n).multiply(r).add(i),d.set1Point(s,o)}}}}(),toVRMLStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),O().prototype.toVRMLStream.call(this,t)},toXMLStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),O().prototype.toXMLStream.call(this,t)},toJSONStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),O().prototype.toJSONStream.call(this,t)},dispose:function(){C().prototype.dispose.call(this),O().prototype.dispose.call(this)}});const T=H;h().set("x_ite/Components/HAnim/HAnimHumanoid",T);const j=T,V=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Grouping/X3DTransformNode");var B=t.n(V);function E(t){B().call(this,t),this.addType(c().HAnimJoint),this.setAllowedTypes(c().HAnimJoint,c().HAnimSegment,c().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(D())}E.prototype=Object.assign(Object.create(B().prototype),{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"llimit",new(o().MFFloat)),new(r())(c().inputOutput,"ulimit",new(o().MFFloat)),new(r())(c().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(c().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(c().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(c().inputOutput,"displacers",new(o().MFNode)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimJoint"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){B().prototype.initialize.call(this),this._skinCoordIndex.addInterest("set_skinCoordIndex__",this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject:function(t){B().prototype.setCameraObject.call(this,t||!!this._skinCoordIndex.length)},getModelMatrix:function(){return this.modelMatrix},getDisplacers:function(){return this.displacerNodes},set_skinCoordIndex__:function(){this.set_cameraObjects__()},set_displacers__:function(){const t=this.displacerNodes;t.length=0;for(const e of this._displacers){const n=M()(c().HAnimDisplacer,e);n&&t.push(n)}},traverse:function(t,e){t===k().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(this.getMatrix()).multRight(e.getModelViewMatrix().get()),B().prototype.traverse.call(this,t,e)},groupTraverse:function(t,e){t===k().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(e.getModelViewMatrix().get()),B().prototype.groupTraverse.call(this,t,e)}});const z=E;h().set("x_ite/Components/HAnim/HAnimJoint",z);const R=z;function q(t){O().call(this,t),this.addType(c().HAnimMotion)}q.prototype=Object.assign(Object.create(O().prototype),{constructor:q,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(c().inputOnly,"next",new(o().SFBool)),new(r())(c().inputOnly,"previous",new(o().SFBool)),new(r())(c().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(c().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(c().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(c().inputOutput,"loop",new(o().SFBool)),new(r())(c().inputOutput,"channels",new(o().SFString)),new(r())(c().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(c().inputOutput,"joints",new(o().MFString)),new(r())(c().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(c().inputOutput,"startFrame",new(o().SFInt32)),new(r())(c().inputOutput,"endFrame",new(o().SFInt32)),new(r())(c().inputOutput,"values",new(o().MFFloat)),new(r())(c().outputOnly,"cycleTime",new(o().SFTime)),new(r())(c().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(c().outputOnly,"frameCount",new(o().SFInt32))]),getTypeName:function(){return"HAnimMotion"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){O().prototype.initialize.call(this)}});const P=q;h().set("x_ite/Components/HAnim/HAnimMotion",P);const J=P,G=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=t.n(G);function L(t){U().call(this,t),this.addType(c().HAnimSegment),this._mass.setUnit("mass")}L.prototype=Object.assign(Object.create(U().prototype),{constructor:L,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"mass",new(o().SFFloat)),new(r())(c().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(c().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(c().inputOutput,"displacers",new(o().MFNode)),new(r())(c().inputOutput,"coord",new(o().SFNode)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSegment"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const W=L;h().set("x_ite/Components/HAnim/HAnimSegment",W);const Z=W;function K(t){B().call(this,t),this.addType(c().HAnimSite)}K.prototype=Object.assign(Object.create(B().prototype),{constructor:K,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSite"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const Q=K;h().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().addComponent({name:"HAnim",types:{HAnimDisplacer:N,HAnimHumanoid:j,HAnimJoint:R,HAnimMotion:J,HAnimSegment:Z,HAnimSite:Y},abstractTypes:{}});const $=void 0;h().set("assets/components/HAnim",$)})();
@@ -1,4 +1,4 @@
1
- /* X_ITE v8.6.10 */(() => { // webpackBootstrap
1
+ /* X_ITE v8.6.12 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ // The require scope
4
4
  /******/ var __webpack_require__ = {};
@@ -39,13 +39,13 @@ 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.6.10")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.10")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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/Namespace\")"
48
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Namespace");
48
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Namespace");
49
49
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
50
50
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js
51
51
  /*******************************************************************************
@@ -150,16 +150,16 @@ const __default__ = X3DKeyDeviceSensorContext;
150
150
  Namespace_default().set ("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext", __default__);
151
151
  /* harmony default export */ const KeyDeviceSensor_X3DKeyDeviceSensorContext = (__default__);
152
152
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
153
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Base/X3DFieldDefinition");
153
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Base/X3DFieldDefinition");
154
154
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
155
155
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
156
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Base/FieldDefinitionArray");
156
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Base/FieldDefinitionArray");
157
157
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
158
158
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
159
- const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Components/Core/X3DSensorNode");
159
+ const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Core/X3DSensorNode");
160
160
  var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
161
161
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
162
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.10")] .require ("x_ite/Base/X3DConstants");
162
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Base/X3DConstants");
163
163
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
164
164
  ;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js
165
165
  /*******************************************************************************
@@ -1 +1 @@
1
- /* X_ITE v8.6.10 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components");var s=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Fields");var n=e.n(i);const a=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Namespace");var o=e.n(a);const r=Symbol(),c=Symbol(),h=Symbol();function l(){this[r]=new Set}l.prototype={initialize:function(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[c].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[h].bind(this))},addKeyDeviceSensorNode:function(e){this[r].add(e)},removeKeyDeviceSensorNode:function(e){this[r].delete(e)},getKeyDeviceSensorNodes:function(){return this[r]},[c]:function(e){for(const t of this[r])t.keydown(e)},[h]:function(e){for(const t of this[r])t.keyup(e)}};const y=l;o().set("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",y);const _=y,u=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(u);const b=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(b);const K=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(K);const f=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/X3DConstants");var S=e.n(f);function w(e){p().call(this,e),this.addType(S().X3DKeyDeviceSensorNode)}w.prototype=Object.assign(Object.create(p().prototype),{constructor:w,initialize:function(){p().prototype.initialize.call(this),this.isLive().addInterest("set_live__",this),this.set_live__()},set_live__:function(){this.isLive().getValue()?(this._enabled.addInterest("set_enabled__",this),this._enabled.getValue()&&this.enable()):(this._enabled.removeInterest("set_enabled__",this),this.disable())},set_enabled__:function(){this._enabled.getValue()?this.enable():this.disable()},enable:function(){this.getBrowser().addKeyDeviceSensorNode(this)},disable:function(){this.getBrowser().removeKeyDeviceSensorNode(this),this.release()},keydown:function(){},keyup:function(){},release:function(){}});const v=w;o().set("x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode",v);const g=v;function D(e){g.call(this,e),this.addType(S().KeySensor)}D.prototype=Object.assign(Object.create(g.prototype),{constructor:D,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(k())([new(d())(S().inputOutput,"metadata",new(n().SFNode)),new(d())(S().inputOutput,"enabled",new(n().SFBool)(!0)),new(d())(S().outputOnly,"controlKey",new(n().SFBool)),new(d())(S().outputOnly,"shiftKey",new(n().SFBool)),new(d())(S().outputOnly,"altKey",new(n().SFBool)),new(d())(S().outputOnly,"actionKeyPress",new(n().SFInt32)),new(d())(S().outputOnly,"actionKeyRelease",new(n().SFInt32)),new(d())(S().outputOnly,"keyPress",new(n().SFString)),new(d())(S().outputOnly,"keyRelease",new(n().SFString)),new(d())(S().outputOnly,"isActive",new(n().SFBool))]),getTypeName:function(){return"KeySensor"},getComponentName:function(){return"KeyDeviceSensor"},getContainerField:function(){return"children"},keydown:function(e){switch(e.preventDefault(),this._isActive.getValue()||(this._isActive=!0),e.which){case 16:this._shiftKey=!0;break;case 17:this._controlKey=!0;break;case 18:this._altKey=!0;break;case 112:this._actionKeyPress=1;break;case 113:this._actionKeyPress=2;break;case 114:this._actionKeyPress=3;break;case 115:this._actionKeyPress=4;break;case 116:this._actionKeyPress=5;break;case 117:this._actionKeyPress=6;break;case 118:this._actionKeyPress=7;break;case 119:this._actionKeyPress=8;break;case 120:this._actionKeyPress=9;break;case 121:this._actionKeyPress=10;break;case 122:this._actionKeyPress=11;break;case 123:this._actionKeyPress=12;break;case 36:this._actionKeyPress=13;break;case 35:this._actionKeyPress=14;break;case 33:this._actionKeyPress=15;break;case 34:this._actionKeyPress=16;break;case 38:this._actionKeyPress=17;break;case 40:this._actionKeyPress=18;break;case 37:this._actionKeyPress=19;break;case 39:this._actionKeyPress=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyPress=String.fromCharCode(8);break;case"Delete":this._keyPress=String.fromCharCode(127);break;case"Enter":this._keyPress="\n";break;case"Escape":this._keyPress=String.fromCharCode(27);break;case"Tab":this._keyPress="\t";break;default:1===e.key.length&&(this._keyPress=e.key)}}},keyup:function(e){switch(e.preventDefault(),e.which){case 16:this._shiftKey=!1;break;case 17:this._controlKey=!1;break;case 18:this._altKey=!1;break;case 112:this._actionKeyRelease=1;break;case 113:this._actionKeyRelease=2;break;case 114:this._actionKeyRelease=3;break;case 115:this._actionKeyRelease=4;break;case 116:this._actionKeyRelease=5;break;case 117:this._actionKeyRelease=6;break;case 118:this._actionKeyRelease=7;break;case 119:this._actionKeyRelease=8;break;case 120:this._actionKeyRelease=9;break;case 121:this._actionKeyRelease=10;break;case 122:this._actionKeyRelease=11;break;case 123:this._actionKeyRelease=12;break;case 36:this._actionKeyRelease=13;break;case 35:this._actionKeyRelease=14;break;case 33:this._actionKeyRelease=15;break;case 34:this._actionKeyRelease=16;break;case 38:this._actionKeyRelease=17;break;case 40:this._actionKeyRelease=18;break;case 37:this._actionKeyRelease=19;break;case 39:this._actionKeyRelease=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyRelease=String.fromCharCode(8);break;case"Delete":this._keyRelease=String.fromCharCode(127);break;case"Enter":this._keyRelease="\n";break;case"Escape":this._keyRelease=String.fromCharCode(27);break;case"Tab":this._keyRelease="\t";break;default:1===e.key.length&&(this._keyRelease=e.key)}}this._isActive.getValue()&&(this._isActive=!1)},release:function(){this._shiftKey.getValue()&&(this._shiftKey=!1),this._controlKey.getValue()&&(this._controlKey=!1),this._altKey.getValue()&&(this._altKey=!1)}});const m=D;o().set("x_ite/Components/KeyDeviceSensor/KeySensor",m);const C=m;function T(e){g.call(this,e),this.addType(S().StringSensor)}T.prototype=Object.assign(Object.create(g.prototype),{constructor:T,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(k())([new(d())(S().inputOutput,"metadata",new(n().SFNode)),new(d())(S().inputOutput,"enabled",new(n().SFBool)(!0)),new(d())(S().inputOutput,"deletionAllowed",new(n().SFBool)(!0)),new(d())(S().outputOnly,"enteredText",new(n().SFString)),new(d())(S().outputOnly,"finalText",new(n().SFString)),new(d())(S().outputOnly,"isActive",new(n().SFBool))]),getTypeName:function(){return"StringSensor"},getComponentName:function(){return"KeyDeviceSensor"},getContainerField:function(){return"children"},keydown:function(e){switch(e.preventDefault(),e.key){case"Backspace":this._isActive.getValue()&&this._deletionAllowed.getValue()&&this._enteredText.length&&(this._enteredText=this._enteredText.getValue().substr(0,this._enteredText.length-1));break;case"Enter":this._finalText=this._enteredText,this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Escape":this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Tab":break;default:(e.charCode||e.keyCode)&&1===e.key.length&&(this._isActive.getValue()||(this._isActive=!0,this._enteredText=""),this._enteredText=this._enteredText.getValue()+e.key)}}});const P=T;o().set("x_ite/Components/KeyDeviceSensor/StringSensor",P);const x=P;s().addComponent({name:"KeyDeviceSensor",types:{KeySensor:C,StringSensor:x},abstractTypes:{X3DKeyDeviceSensorNode:g},browserContext:_});const R=void 0;o().set("assets/components/KeyDeviceSensor",R)})();
1
+ /* X_ITE v8.6.12 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components");var s=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Fields");var n=e.n(i);const a=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Namespace");var o=e.n(a);const r=Symbol(),c=Symbol(),h=Symbol();function l(){this[r]=new Set}l.prototype={initialize:function(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[c].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[h].bind(this))},addKeyDeviceSensorNode:function(e){this[r].add(e)},removeKeyDeviceSensorNode:function(e){this[r].delete(e)},getKeyDeviceSensorNodes:function(){return this[r]},[c]:function(e){for(const t of this[r])t.keydown(e)},[h]:function(e){for(const t of this[r])t.keyup(e)}};const y=l;o().set("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",y);const _=y,u=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(u);const b=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(b);const K=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(K);const f=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/X3DConstants");var S=e.n(f);function w(e){p().call(this,e),this.addType(S().X3DKeyDeviceSensorNode)}w.prototype=Object.assign(Object.create(p().prototype),{constructor:w,initialize:function(){p().prototype.initialize.call(this),this.isLive().addInterest("set_live__",this),this.set_live__()},set_live__:function(){this.isLive().getValue()?(this._enabled.addInterest("set_enabled__",this),this._enabled.getValue()&&this.enable()):(this._enabled.removeInterest("set_enabled__",this),this.disable())},set_enabled__:function(){this._enabled.getValue()?this.enable():this.disable()},enable:function(){this.getBrowser().addKeyDeviceSensorNode(this)},disable:function(){this.getBrowser().removeKeyDeviceSensorNode(this),this.release()},keydown:function(){},keyup:function(){},release:function(){}});const v=w;o().set("x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode",v);const g=v;function D(e){g.call(this,e),this.addType(S().KeySensor)}D.prototype=Object.assign(Object.create(g.prototype),{constructor:D,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(k())([new(d())(S().inputOutput,"metadata",new(n().SFNode)),new(d())(S().inputOutput,"enabled",new(n().SFBool)(!0)),new(d())(S().outputOnly,"controlKey",new(n().SFBool)),new(d())(S().outputOnly,"shiftKey",new(n().SFBool)),new(d())(S().outputOnly,"altKey",new(n().SFBool)),new(d())(S().outputOnly,"actionKeyPress",new(n().SFInt32)),new(d())(S().outputOnly,"actionKeyRelease",new(n().SFInt32)),new(d())(S().outputOnly,"keyPress",new(n().SFString)),new(d())(S().outputOnly,"keyRelease",new(n().SFString)),new(d())(S().outputOnly,"isActive",new(n().SFBool))]),getTypeName:function(){return"KeySensor"},getComponentName:function(){return"KeyDeviceSensor"},getContainerField:function(){return"children"},keydown:function(e){switch(e.preventDefault(),this._isActive.getValue()||(this._isActive=!0),e.which){case 16:this._shiftKey=!0;break;case 17:this._controlKey=!0;break;case 18:this._altKey=!0;break;case 112:this._actionKeyPress=1;break;case 113:this._actionKeyPress=2;break;case 114:this._actionKeyPress=3;break;case 115:this._actionKeyPress=4;break;case 116:this._actionKeyPress=5;break;case 117:this._actionKeyPress=6;break;case 118:this._actionKeyPress=7;break;case 119:this._actionKeyPress=8;break;case 120:this._actionKeyPress=9;break;case 121:this._actionKeyPress=10;break;case 122:this._actionKeyPress=11;break;case 123:this._actionKeyPress=12;break;case 36:this._actionKeyPress=13;break;case 35:this._actionKeyPress=14;break;case 33:this._actionKeyPress=15;break;case 34:this._actionKeyPress=16;break;case 38:this._actionKeyPress=17;break;case 40:this._actionKeyPress=18;break;case 37:this._actionKeyPress=19;break;case 39:this._actionKeyPress=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyPress=String.fromCharCode(8);break;case"Delete":this._keyPress=String.fromCharCode(127);break;case"Enter":this._keyPress="\n";break;case"Escape":this._keyPress=String.fromCharCode(27);break;case"Tab":this._keyPress="\t";break;default:1===e.key.length&&(this._keyPress=e.key)}}},keyup:function(e){switch(e.preventDefault(),e.which){case 16:this._shiftKey=!1;break;case 17:this._controlKey=!1;break;case 18:this._altKey=!1;break;case 112:this._actionKeyRelease=1;break;case 113:this._actionKeyRelease=2;break;case 114:this._actionKeyRelease=3;break;case 115:this._actionKeyRelease=4;break;case 116:this._actionKeyRelease=5;break;case 117:this._actionKeyRelease=6;break;case 118:this._actionKeyRelease=7;break;case 119:this._actionKeyRelease=8;break;case 120:this._actionKeyRelease=9;break;case 121:this._actionKeyRelease=10;break;case 122:this._actionKeyRelease=11;break;case 123:this._actionKeyRelease=12;break;case 36:this._actionKeyRelease=13;break;case 35:this._actionKeyRelease=14;break;case 33:this._actionKeyRelease=15;break;case 34:this._actionKeyRelease=16;break;case 38:this._actionKeyRelease=17;break;case 40:this._actionKeyRelease=18;break;case 37:this._actionKeyRelease=19;break;case 39:this._actionKeyRelease=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyRelease=String.fromCharCode(8);break;case"Delete":this._keyRelease=String.fromCharCode(127);break;case"Enter":this._keyRelease="\n";break;case"Escape":this._keyRelease=String.fromCharCode(27);break;case"Tab":this._keyRelease="\t";break;default:1===e.key.length&&(this._keyRelease=e.key)}}this._isActive.getValue()&&(this._isActive=!1)},release:function(){this._shiftKey.getValue()&&(this._shiftKey=!1),this._controlKey.getValue()&&(this._controlKey=!1),this._altKey.getValue()&&(this._altKey=!1)}});const m=D;o().set("x_ite/Components/KeyDeviceSensor/KeySensor",m);const C=m;function T(e){g.call(this,e),this.addType(S().StringSensor)}T.prototype=Object.assign(Object.create(g.prototype),{constructor:T,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(k())([new(d())(S().inputOutput,"metadata",new(n().SFNode)),new(d())(S().inputOutput,"enabled",new(n().SFBool)(!0)),new(d())(S().inputOutput,"deletionAllowed",new(n().SFBool)(!0)),new(d())(S().outputOnly,"enteredText",new(n().SFString)),new(d())(S().outputOnly,"finalText",new(n().SFString)),new(d())(S().outputOnly,"isActive",new(n().SFBool))]),getTypeName:function(){return"StringSensor"},getComponentName:function(){return"KeyDeviceSensor"},getContainerField:function(){return"children"},keydown:function(e){switch(e.preventDefault(),e.key){case"Backspace":this._isActive.getValue()&&this._deletionAllowed.getValue()&&this._enteredText.length&&(this._enteredText=this._enteredText.getValue().substr(0,this._enteredText.length-1));break;case"Enter":this._finalText=this._enteredText,this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Escape":this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Tab":break;default:(e.charCode||e.keyCode)&&1===e.key.length&&(this._isActive.getValue()||(this._isActive=!0,this._enteredText=""),this._enteredText=this._enteredText.getValue()+e.key)}}});const P=T;o().set("x_ite/Components/KeyDeviceSensor/StringSensor",P);const x=P;s().addComponent({name:"KeyDeviceSensor",types:{KeySensor:C,StringSensor:x},abstractTypes:{X3DKeyDeviceSensorNode:g},browserContext:_});const R=void 0;o().set("assets/components/KeyDeviceSensor",R)})();