/** * Cesium - https://github.com/CesiumGS/cesium * * Copyright 2011-2020 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/master/LICENSE.md for full licensing details. */ define(["./when-8d13db60","./Check-70bec281","./Math-61ede240","./Cartographic-f27b0939","./Cartesian2-09435a6c","./BoundingSphere-c409f092","./Cartesian4-5af5bb24","./RuntimeError-ba10bc3e","./WebGLConstants-4c11ee5f","./ComponentDatatype-5862616f","./PrimitiveType-97893bc7","./FeatureDetection-7bd32c34","./buildModuleUrl-392763e2","./IndexDatatype-9435b55f","./createTaskProcessorWorker","./arrayFill-9766fb2e","./BoundingRectangle-3d4f3d01","./Color-69f1845f","./pako_inflate-8ea163f9","./S3MCompressType-c0bf5136","./unzip-9ad5f9b4","./CompressedTextureBuffer-21cababf","./PixelFormat-8e0e5be1"],function(_t,E,t,at,p,nt,g,A,e,it,d,s,r,l,a,M,n,N,pt,At,ct,c,v){function ot(t,e,r){if(E.Check.defined("array",t),_t.defined(e)&&E.Check.typeOf.number("begin",e),_t.defined(r)&&E.Check.typeOf.number("end",r),"function"==typeof t.slice)return t.slice(e,r);for(var a=Array.prototype.slice.call(t,e,r),n=s.FeatureDetection.typedArrayTypes,i=n.length,o=0;o>s,T>>s);if(Lv[5]?v[4]:v[5];T={left:m,top:g,right:B,bottom:P,minHeight:U,maxHeight:S,width:(f=new Ut(m,P,B,g,U,S)).width,length:f.length,height:f.height};var b=new Uint32Array(_,48+c,7),L=b[0],M=b[1],N=b[2],h=b[3];u={nFormat:L,nSideBlockCount:M,nBlockLength:N,nLength:h,nWidth:b[4],nHeight:b[5],nDepth:b[6],imageArray:new Uint8Array(_,76+c,h*h*4)}}}var R=0,x={};x.ignoreNormal=t.ignoreNormal;var Y=t.rootBatchIdMap||{},I=t.ancestorMap||{},C={},F=new DataView(r),D=F.getFloat32(R,!0);if(R+=Float32Array.BYTES_PER_ELEMENT,2.2At.S3MPixelFormat.BGR||A===At.S3MPixelFormat.LUMINANCE_ALPHA?new Uint8Array(d*l*4):new Uint16Array(d*l),At.DXTTextureDecode.decode(v,d,l,c,A),i.push(v.buffer),_=0):v=c,n[f]={id:f,width:d,height:l,compressType:_,nFormat:A,imageBuffer:v,mipmapLevel:u}}}(i,(G=St(F,r,R=G.byteOffset)).buffer,F,G.dataViewByteOffset,rt,e),R=G.byteOffset;var at=F.getUint32(R,!0);R+=Uint32Array.BYTES_PER_ELEMENT;var nt=new Uint8Array(r).subarray(R,R+at),it=At.getStringFromTypedArray(nt);R+=at,it=it.replace(/\n\0/,"");var ot=JSON.parse(it);(k&mt.SVO_HasInstSelInfo)==mt.SVO_HasInstSelInfo&&Ft((G=St(F,r,R)).buffer,F,G.dataViewByteOffset,x,D);var Et=W.pageLods,st=!0;for(J=0;J