define(["exports","./when-b60132fc","./Check-7b2a090c","./buildModuleUrl-8cce5713","./ArcType-f8a754c5","./Cartesian4-b0ddc4ba","./FeatureDetection-ab6f364c","./EllipsoidRhumbLine-3ee4574a","./GeometryAttribute-923c2729","./GeometryAttributes-252e9929","./GeometryPipeline-54076c24","./IndexDatatype-3565e02d","./Math-31e539c2","./PolygonPipeline-f2f37e26"],(function(e,t,i,r,a,n,o,s,u,l,h,c,f,d){"use strict";function p(){this._array=[],this._offset=0,this._length=0}Object.defineProperties(p.prototype,{length:{get:function(){return this._length}}}),p.prototype.enqueue=function(e){this._array.push(e),this._length++},p.prototype.dequeue=function(){if(0!==this._length){var e=this._array,t=this._offset,i=e[t];return e[t]=void 0,++t>10&&2*t>e.length&&(this._array=e.slice(t),t=0),this._offset=t,this._length--,i}},p.prototype.peek=function(){if(0!==this._length)return this._array[this._offset]},p.prototype.contains=function(e){return-1!==this._array.indexOf(e)},p.prototype.clear=function(){this._array.length=this._offset=this._length=0},p.prototype.sort=function(e){this._offset>0&&(this._array=this._array.slice(this._offset),this._offset=0),this._array.sort(e)};var y={computeHierarchyPackedLength:function(e){for(var i=0,r=[e];r.length>0;){var a=r.pop();if(t.defined(a)){i+=2;var o=a.positions,s=a.holes;if(t.defined(o)&&(i+=o.length*n.Cartesian3.packedLength),t.defined(s))for(var u=s.length,l=0;l0;){var o=a.pop();if(t.defined(o)){var s=o.positions,u=o.holes;if(i[r++]=t.defined(s)?s.length:0,i[r++]=t.defined(u)?u.length:0,t.defined(s))for(var l=s.length,h=0;h0?new Array(r):void 0,s=0;s