define(["exports","./buildModuleUrl-dba4ec07","./ComponentDatatype-d430c7f7","./when-515d5295","./Check-3aa71481","./Rectangle-e170be8b","./Intersect-53434a77","./GeometryAttribute-9bc31a7f","./GeometryAttributes-7d904f0f","./GeometryPipeline-137aa28e","./IndexDatatype-eefd5922","./PrimitiveType-b38a4004","./WebMercatorProjection-aa5a37a5"],(function(e,t,r,n,o,i,a,s,c,p,u,f,m){"use strict";function d(e,t,r){e=n.e(e,0),t=n.e(t,0),r=n.e(r,0),this.value=new Float32Array([e,t,r])}function h(e,t){var n=e.attributes,o=n.position,i=o.values.length/o.componentsPerAttribute;n.batchId=new s.r({componentDatatype:r.ComponentDatatype.FLOAT,componentsPerAttribute:1,values:new Float32Array(i)});for(var a=n.batchId.values,c=0;c1){var s=e[0].modelMatrix;for(o=1;o=0){var p=o[c];i=p.offset+p.count,a=r[s=p.index].indices.length}else i=0,a=r[s=0].indices.length;for(var u=e.length,f=0;fa&&(i=0,a=r[++s].indices.length),o.push({index:s,offset:i,count:d}),i+=d}}}Object.defineProperties(d.prototype,{componentDatatype:{get:function(){return r.ComponentDatatype.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),d.fromCartesian3=function(e){return o.n.defined("offset",e),new d(e.x,e.y,e.z)},d.toValue=function(e,t){return o.n.defined("offset",e),n.t(t)||(t=new Float32Array([e.x,e.y,e.z])),t[0]=e.x,t[1]=e.y,t[2]=e.z,t};var y={};function v(e,t){var r=e.attributes;for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];n.t(i)&&n.t(i.values)&&t.push(i.values.buffer)}n.t(e.indices)&&t.push(e.indices.buffer)}function b(e,t){var r=e.length,o=new Float64Array(1+19*r),i=0;o[i++]=r;for(var a=0;a0&&((r=l(e)).length>0&&(o=p.F.createAttributeLocations(r[0]),e.createPickOffsets&&(i=function(e,t){var r=[];return g(e,"geometry",t,r),g(e,"westHemisphereGeometry",t,r),g(e,"eastHemisphereGeometry",t,r),r}(s,r))),n.t(s[0].attributes)&&n.t(s[0].attributes.offset)&&(a=new Array(c),u=!0));for(var f=new Array(c),m=new Array(c),d=0;d0&&(o.set(u.indices,c),c+=x)}}return r.push(o.buffer),{stringTable:i,packedData:o}},y.unpackCreateGeometryResults=function(e){for(var n,o=e.stringTable,i=e.packedData,a=new Array(i[0]),p=0,f=1;f0){var F=v.length/b;for(x=u.IndexDatatype.createTypedArray(F,y),n=0;n