define(["./when-92c6cf3c","./Rectangle-bab7abf0","./buildModuleUrl-3d15f25c","./Cartographic-67e73ef9","./ComponentDatatype-81047f82","./Check-52a7d806","./GeometryAttribute-ef657318","./GeometryAttributes-7f66ea53","./IndexDatatype-4c0e98b8","./Math-92c3b5f7","./PrimitiveType-cdfe443e","./WallGeometryLibrary-74484942","./Intersect-b97e930a","./Event-3390cd7d","./RuntimeError-c6a62a80","./WebGLConstants-71f10989","./Cartesian2-6033fa5d","./FeatureDetection-067cb23c","./Cartesian4-ad128b5d","./arrayRemoveDuplicates-f7eaafa2","./PolylinePipeline-c0932bf7","./EllipsoidGeodesic-04ac0e77","./EllipsoidRhumbLine-8847d1a1","./IntersectionTests-a42760d9","./Plane-f8d22530"],(function(e,t,i,n,r,o,a,s,m,u,l,p,h,d,c,f,g,y,v,_,w,b,A,H,E){"use strict";var x=new n.t,k=new n.t;function L(i){var r=(i=e.u(i,e.u.EMPTY_OBJECT)).positions,a=i.maximumHeights,s=i.minimumHeights;if(!e.e(r))throw new o.t("options.positions is required.");if(e.e(a)&&a.length!==r.length)throw new o.t("options.positions and options.maximumHeights must have the same length.");if(e.e(s)&&s.length!==r.length)throw new o.t("options.positions and options.minimumHeights must have the same length.");var m=e.u(i.granularity,u.e.RADIANS_PER_DEGREE),l=e.u(i.ellipsoid,t.t.WGS84);this._positions=r,this._minimumHeights=s,this._maximumHeights=a,this._granularity=m,this._ellipsoid=t.t.clone(l),this._workerName="createWallOutlineGeometry",this._outlineWidth=e.u(i.outlineWidth,1);var p=1+r.length*n.t.packedLength+2;e.e(s)&&(p+=s.length),e.e(a)&&(p+=a.length),this.packedLength=p+t.t.packedLength+2}L.pack=function(i,r,a){if(!e.e(i))throw new o.t("value is required");if(!e.e(r))throw new o.t("array is required");a=e.u(a,0);var s,m=i._positions,u=m.length;for(r[a++]=u,s=0;s0)for(m=new Array(l),s=0;s0)for(u=new Array(l),s=0;s=0;--E){D=3*E;P=n.t.fromArray(y,D,k),A[H++]=P.x,A[H++]=P.y,A[H++]=P.z}let C=new s.a({position:new a.o({componentDatatype:r.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:A})});C.sideness=new a.o({componentDatatype:r.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:new Float32Array([0,0,0,1,1,1,1,0])}),C.sideness.isInstanceAttribute=!0;var G=b/3;b=2*G-4+G;var T=m.IndexDatatype.createTypedArray(G,b),I=0;for(E=0;E