* 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/main/LICENSE.md for full licensing details.
*/
vari=Object.create;varu=Object.defineProperty;varr=Object.getOwnPropertyDescriptor;varl=Object.getOwnPropertyNames;varo=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;vara=(n=>typeofrequire<"u"?require:typeofProxy<"u"?newProxy(n,{get:(e,d)=>(typeofrequire<"u"?require:e)[d]}):n)(function(n){if(typeofrequire<"u")returnrequire.apply(this,arguments);throwError('Dynamic require of "'+n+'" is not supported')}),b=n=>e=>{vard=n[e];if(d)returnd();thrownewError("Module not found in bundle: "+e)};varg=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);varp=(n,e,d,t)=>{if(e&&typeofe=="object"||typeofe=="function")for(letfofl(e))!c.call(n,f)&&f!==d&&u(n,f,{get:()=>e[f],enumerable:!(t=r(e,f))||t.enumerable});returnn};varh=(n,e,d)=>(d=n!=null?i(o(n)):{},p(e||!n||!n.__esModule?u(d,"default",{value:n,enumerable:!0}):d,n));functionx(n){returnn!=null}vark=x;export{a,b,gasc,hasd,kase};
* 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/main/LICENSE.md for full licensing details.
*/
import{aasQ}from"./chunk-ICZXFP3D.js";import{aasz}from"./chunk-ZFTFDHK4.js";import{aas_}from"./chunk-74GQJJ7R.js";import{aasK}from"./chunk-NNHN6WUY.js";import{aasH}from"./chunk-T7ERZ2CJ.js";import{basJ,casW,dasP}from"./chunk-GSNDLQ4C.js";import{dasj}from"./chunk-BKSIEBAA.js";import{aasL}from"./chunk-VTVHUB7E.js";import{aasb,cask}from"./chunk-JMSSU44E.js";import{aasZ}from"./chunk-4UYSGV57.js";import{aasx}from"./chunk-VLPNAR64.js";import{aasF}from"./chunk-GE5NEIZC.js";import{easg}from"./chunk-35CVRQTC.js";varM=newk,ot=newb,nt=newb,it=newb,st=newb;functionO(t){t=x(t,x.EMPTY_OBJECT);letn=t.length,e=t.topRadius,h=t.bottomRadius,o=x(t.vertexFormat,_.DEFAULT),r=x(t.slices,128);if(!g(n))thrownewF("options.length must be defined.");if(!g(e))thrownewF("options.topRadius must be defined.");if(!g(h))thrownewF("options.bottomRadius must be defined.");if(r<3)thrownewF("options.slices must be greater than or equal to 3.");if(g(t.offsetAttribute)&&t.offsetAttribute===z.TOP)thrownewF("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._length=n,this._topRadius=e,this._bottomRadius=h,this._vertexFormat=_.clone(o),this._slices=r,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}O.packedLength=_.packedLength+5;O.pack=function(t,n,e){if(!g(t))thrownewF("value is required");if(!g(n))thrownewF("array is required");returne=x(e,0),_.pack(t._vertexFormat,n,e),e+=_.packedLength,n[e++]=t._length,n[e++]=t._topRadius,n[e++]=t._bottomRadius,n[e++]=t._slices,n[e]=x(t._offsetAttribute,-1),n};varX=new_,C={vertexFormat:X,length:void0,topRadius:void0,bottomRadius:void0,slices:void0,offsetAttribute:void0};O.unpack=function(t,n,e){if(!g(t))thrownewF("array is required");n=x(n,0);leth=_.unpack(t,n,X);n+=_.packedLength;leto=t[n++],r=t[n++],p=t[n++],D=t[n++],w=t[n];returng(e)?(e._vertexFormat=_.clone(h,e._vertexFormat),e._length=o,e._topRadius=r,e._bottomRadius=p,e._slices=D,e._offsetAttribute=w===-1?void0:w,e):(C.length=o,C.topRadius=r,C.bottomRadius=p,C.slices=D,C.offsetAttribute=w===-1?void0:w,newO(C))};O.createGeometry=function(t){letn=t._length,e=t._topRadius,h=t._bottomRadius,o=t._vertexFormat,r=t._slices;if(n<=0||e<0||h<0||e===0&&h===0)return;letp=r+r,D=r+p,w=p+p,E=Q.computePositions(n,e,h,r,!0),N=o.st?newFloat32Array(w*2):void0,c=o.normal?newFloat32Array(w*3):void0,m=o.tangent?newFloat32Array(w*3):void0,u=o.bitangent?newFloat32Array(w*3):void0,i,U=o.normal||o.tangent||o.bitangent;if(U){letT=o.tangent||o.bitangent,f=0,d=0,l=0,q=Math.atan2(h-e,n),A=ot;A.z=Math.sin(q);letB=Math.cos(q),R=it,y=nt;for(i=0;i<r;i++){letY=i/r*Z.TWO_PI,tt=B*Math.cos(Y),et=B*Math.sin(Y);U&&(A.x=tt,A.y=et,T&&(R=b.normalize(b.cross(b.UNIT_Z,A,R),R)),o.normal&&(c[f++]=A.x,c[f++]=A.y,c[f++]=A.z,c[f++]=A.x,c[f++]=A.y,c[f++]=A.z),o.tangent&&(m[d++]=R.x,m[d++]=R.y,m[d++]=R.z,m[d++]=R.x,m[d++]=R.y,m[d++]=R.z),o.bitangent&&(y=b.normalize(b.cross(A,R,y),y),u[l++]=y.x,u[l++]=y.y,u[l++]=y.z,u[l++]=y.x,u[l++]=y.y,u[l++]=y.z))}for(i=0;i<r;i++)o.normal&&(c[f++]=0,c[f++]=0,c[f++]=-1),o.tangent&&(m[d++]=1,m[d++]=0,m[d++]=0),o.bitangent&&(u[l++]=0,u[l++]=-1,u[l++]=0);for(i=0;i<r;i++)o.normal&&(c[f++]=0,c[f++]=0,c[f++]=1),o.tangent&&(m[d++]=1,m[d++]=0,m[d++]=0),o.bitangent&&(u[l++]=0,u[l++]=1,u[l++]=0)}let$=12*r-12,s=K.createTypedArray(w,$),a=0,v=0;for(i=0;i<r-1;i++)s[a++]=v,s[a++]=v+2,s[a++]=v+3,s[a++]=v,s[a++]=v+3,s[a++]=v+1,v+=2;for(s[a++]=p-2,s[a++]=0,s[a++]=1,s[a++]=p-2,s[a++]=1,s[a++]=p-1,i=1;i<r-1;i++)s[a++]=p+i+1,s[a++]=p+i,s[a++]=p;for(i=1;i<r-1;i++)s[a++]=D,s[a++]=D+i,s[a++]=D+i+1;letV=0;if(o.st){letT=Math.max(e,h);for(i=0;i<w;i++){letf=b.fromArray(E,i*3,st);N[V++]=(f.x+T)/(2*T),N[V++]=(f.y+T)/(2*T)}}letS=newH;o.position&&(S.position=newP({componentDatatype:L.DOUBLE,componentsPerAttribute:3,values:E})),o.normal&&(S.normal=newP({componentDatatype:L.FLOAT,componentsPerAttribute:3,values:c})),o.tangent&&(S.tangent=newP({componentDatatype:L.FLOAT,componentsPerAttribute:3,values:m})),o.bitangent&&(S.bitangent=newP({componentDatatype:L.FLOAT,componentsPerAttribute:3,values:u})),o.st&&(S.st=newP({componentDatatype:L.FLOAT,componentsPerAttribute:2,values:N})),M.x=n*.5,M.y=Math.max(h,e);letI=newj(b.ZERO,k.magnitude(M));if(g(t._offsetAttribute)){n=E.length;letT=t._offsetAttribute===z.NONE?0:1,f=newUint8Array(n/3).fill(T);S.applyOffset=newP({componentDatatype:L.UNSIGNED_BYTE,componentsPerAttribute:1,values:f})}returnnewW({attributes:S,indices:s,primitiveType:J.TRIANGLES,boundingSphere:I,offsetAttribute:t._offsetAttribute})};varG;O.getUnitCylinder=function(){returng(G)||(G=O.createGeometry(newO({topRadius:1,bottomRadius:1,length:1,vertexFormat:_.POSITION_ONLY}))),G};varyt=O;export{ytasa};
* 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/main/LICENSE.md for full licensing details.
*/
import{aasb}from"./chunk-ZFTFDHK4.js";import{aasu}from"./chunk-74GQJJ7R.js";import{aasO}from"./chunk-T7ERZ2CJ.js";import{basw,cash,dasx}from"./chunk-GSNDLQ4C.js";import{d}from"./chunk-BKSIEBAA.js";import{aasy}from"./chunk-VTVHUB7E.js";import{aasi}from"./chunk-JMSSU44E.js";import{aasp}from"./chunk-VLPNAR64.js";import{aasz,basc}from"./chunk-GE5NEIZC.js";import{easA}from"./chunk-35CVRQTC.js";varD=newi;functionf(r){r=p(r,p.EMPTY_OBJECT);leto=r.minimum,m=r.maximum;if(c.typeOf.object("min",o),c.typeOf.object("max",m),A(r.offsetAttribute)&&r.offsetAttribute===b.TOP)thrownewz("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");leta=p(r.vertexFormat,u.DEFAULT);this._minimum=i.clone(o),this._maximum=i.clone(m),this._vertexFormat=a,this._offsetAttribute=r.offsetAttribute,this._workerName="createBoxGeometry"}f.fromDimensions=function(r){r=p(r,p.EMPTY_OBJECT);leto=r.dimensions;c.typeOf.object("dimensions",o),c.typeOf.number.greaterThanOrEquals("dimensions.x",o.x,0),c.typeOf.number.greaterThanOrEquals("dimensions.y",o.y,0),c.typeOf.number.greaterThanOrEquals("dimensions.z",o.z,0);letm=i.multiplyByScalar(o,.5,newi);returnnewf({minimum:i.negate(m,newi),maximum:m,vertexFormat:r.vertexFormat,offsetAttribute:r.offsetAttribute})};f.fromAxisAlignedBoundingBox=function(r){returnc.typeOf.object("boundingBox",r),newf({minimum:r.minimum,maximum:r.maximum})};f.packedLength=2*i.packedLength+u.packedLength+1;f.pack=function(r,o,m){returnc.typeOf.object("value",r),c.defined("array",o),m=p(m,0),i.pack(r._minimum,o,m),i.pack(r._maximum,o,m+i.packedLength),u.pack(r._vertexFormat,o,m+2*i.packedLength),o[m+2*i.packedLength+u.packedLength]=p(r._offsetAttribute,-1),o};var_=newi,g=newi,k=newu,F={minimum:_,maximum:g,vertexFormat:k,offsetAttribute:void0};f.unpack=function(r,o,m){c.defined("array",r),o=p(o,0);leta=i.unpack(r,o,_),s=i.unpack(r,o+i.packedLength,g),n=u.unpack(r,o+2*i.packedLength,k),e=r[o+2*i.packedLength+u.packedLength];returnA(m)?(m._minimum=i.clone(a,m._minimum),m._maximum=i.clone(s,m._maximum),m._vertexFormat=u.clone(n,m._vertexFormat),m._offsetAttribute=e===-1?void0:e,m):(F.offsetAttribute=e===-1?void0:e,newf(F))};f.createGeometry=function(r){leto=r._minimum,m=r._maximum,a=r._vertexFormat;if(i.equals(o,m))return;lets=newO,n,e;if(a.position&&(a.st||a.normal||a.tangent||a.bitangent)){if(a.position&&(e=newFloat64Array(6*4*3),e[0]=o.x,e[1]=o.y,e[2]=m.z,e[3]=m.x,e[4]=o.y,e[5]=m.z,e[6]=m.x,e[7]=m.y,e[8]=m.z,e[9]=o.x,e[10]=m.y,e[11]=m.z,e[12]=o.x,e[13]=o.y,e[14]=o.z,e[15]=m.x,e[16]=o.y,e[17]=o.z,e[18]=m.x,e[19]=m.y,e[20]=o.z,e[21]=o.x,e[22]=m.y,e[23]=o.z,e[24]=m.x,e[25]=o.y,e[26]=o.z,e[27]=m.x,e[28]=m.y,e[29]=o.z,e[30]=m.x,e[31]=m.y,e[32]=m.z,e[33]=m.x,e[34]=o.y,e[35]=m.z,e[36]=o.x,e[37]=o.y,e[38]=o.z,e[39]=o.x,e[40]=m.y,e[41]=o.z,e[42]=o.x,e[43]=m.y,e[44]=m.z,e[45]=o.x,e[46]=o.y,e[47]=m.z,e[48]=o.x,e[49]=m.y,e[50]=o.z,e[51]=m.x,e[52]=m.y,e[53]=o.z,e[54]=m.x,e[55]=m.y,e[56]=m.z,e[57]=o.x,e[58]=m.y,e[59]=m.z,e[60]=o.x,e[61]=o.y,e[62]=o.z,e[63]=m.x,e[64]=o.y,e[65]=o.z,e[66]=m.x,e[67]=o.y,e[68]=m.z,e[69]=o.x,e[70]=o.y,e[71]=m.z,s.position=newx({componentDatatype:y.DOUBLE,componentsPerAttribute:3,values:e})),a.normal){lett=newFloat32Array(72);t[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=1,t[9]=0,t[10]=0,t[11]=1,t[12]=0,t[13]=0,t[14]=-1,t[15]=0,t[16]=0,t[17]=-1,t[18]=0,t[19]=0,t[20]=-1,t[21]=0,t[22]=0,t[23]=-1,t[24]=1,t[25]=0,t[26]=0,t[27]=1,t[28]=0,t[29]=0,t[30]=1,t[31]=0,t[32]=0,t[33]=1,t[34]=0,t[35]=0,t[36]=-1,t[37]=0,t[38]=0,t[39]=-1,t[40]=0,t[41]=0,t[42]=-1,t[43]=0,t[44]=0,t[45]=-1,t[46]=0,t[47]=0,t[48]=0,t[49]=1,t[50]=0,t[51]=0,t[52]=1,t[53]=0,t[54]=0,t[55]=1,t[56]=0,t[57]=0,t[58]=1,t[59]=0,t[60]=0,t[61]=-1,t[62]=0,t[63]=0,t[64]=-1,t[65]=0,t[66]=0,t[67]=-1,t[68]=0,t[69]=0,t[70]=-1,t[71]=0,s.normal=newx({componentDatatype:y.FLOAT,componentsPerAttribute:3,values:t})}if(a.st){lett=newFloat32Array(48);t[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=1,t[5]=1,t[6]=0,t[7]=1,t[8]=1,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=1,t[14]=1,t[15]=1,t[16]=0,t[17]=0,t[18]=1,t[19]=0,t[20]=1,t[21]=1,t[22]=0,t[23]=1,t[24]=1,t[25]=0,t[26]=0,t[27]=0,t[28]=0,t[29]=1,t[30]=1,t[31]=1,t[32]=1,t[33]=0,t[34]=0,t[35]=0,t[36]=0,t[37]=1,t[38]=1,t[39]=1,t[40]=0,t[41]=0,t[42]=1,t[43]=0,t[44]=1,t[45]=1,t[46]=0,t[47]=1,s.st=newx({componentDatatype:y.FLOAT,componentsPerAttribute:2,values:t})}if(a.tangent){lett=newFloat32Array(72);t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=1,t[7]=0,t[8]=0,t[9]=1,t[10]=0,t[11]=0,t[12]=-1,t[13]=0,t[14]=0,t[15]=-1,t[16]=0,t[17]=0,t[18]=-1,t[19]=0,t[20]=0,t[21]=-1,t[22]=0,t[23]=0,t[24]=0,t[25]=1,t[26]=0,t[27]=0,t[28]=1,t[29]=0,t[30]=0,t[31]=1,t[32]=0,t[33]=0,t[34]=1,t[35]=0,t[36]=0,t[37]=-1,t[38]=0,t[39]=0,t[40]=-1,t[41]=0,t[42]=0,t[43]=-1,t[44]=0,t[45]=0,t[46]=-1,t[47]=0,t[48]=-1,t[49]=0,t[50]=0,t[51]=-1,t[52]=0,t[53]=0,t[54]=-1,t[55]=0,t[56]=0,t[57]=-1,t[58]=0,t[59]=0,t[60]=1,t[61]=0,t[62]=0,t[63]=1,t[64]=0,t[65]=0,t[66]=1,t[67]=0,t[68]=0,t[69]=1,t[70]=0,t[71]=0,s.tangent=newx({componentDatatype:y.FLOAT,componentsPerAttribute:3,values:t})}if(a.bitangent){lett=newFloat32Array(72);t[0]=0,t[1]=1,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=1,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=1,t[14]=0,t[15]=0,t[16]=1,t[17]=0,t[18]=0,t[19]=1,t[20]=0,t[21]=0,t[22]=1,t[23]=0,t[24]=0,t[25]=0,t[26]=1,t[27]=0,t[28]=0,t[29]=1,t[30]=0,t[31]=0,t[32]=1,t[33]=0,t[34]=0,t[35]=1,t[36]=0,t[37]=0,t[38]=1,t[39]=0,t[40]=0,t[41]=1,t[42]=0,t[43]=0,t[44]=1,t[45]=0,t[46]=0,t[47]=1,t[48]=0,t[49]=0,t[50]=1,t[51]=0,t[52]=0,t[53]=1,t[54]=0,t[55]=0,t[56]=1,t[57]=0,t[58]=0,t[59]=1,t[60]=0,t[61]=0,t[62]=1,t[63]=0,t[64]=0,t[65]=1,t[66]=0,t[67]=0,t[68]=1,t[69]=0,t[70]=0,t[71]=1,s.bitangent=newx({componentDatatype:y.FLOAT,componentsPerAttribute:3,values:t})}n=newUint16Array(6*2*3),n[0]=0,n[1]=1,n[2]=2,n[3]=0,n[4]=2,n[5]=3,n[6]=6,n[7]=5,n[8]=4,n[9]=7,n[10]=6,n[11]=4,n[12]=8,n[13]=9,n[14]=10,n[15]=8,n[16]=10,n[17]=11,n[18]=14,n[19]=13,n[20]=12,n[21]=15,n[22]=14,n[23]=12,n[24]=18,n[25]=17,n[26]=16,n[27]=19,n[28]=18,n[29]=16,n[30]=20,n[31]=21,n[32]=22,n[33]=20,n[34]=22,n[35]=23}elsee=newFloat64Array(8*3),e[0]=o.x,e[1]=o.y,e[2]=o.z,e[3]=m.x,e[4]=o.y,e[5]=o.z,e[6]=m.x,e[7]=m.y,e[8]=o.z,e[9]=o.x,e[10]=m.y,e[11]=o.z,e[12]=o.x,e[13]=o.y,e[14]=m.z,e[15]=m.x,e[16]=o.y,e[17]=m.z,e[18]=m.x,e[19]=m.y,e[20]=m.z,e[21]=o.x,e[22]=m.y,e[23]=m.z,s.position=newx({componentDatatype:y.DOUBLE,componentsPerAttribute:3,values:e}),n=newUint16Array(6*2*3),n[0]=4,n[1]=5,n[2]=6,n[3]=4,n[4]=6,n[5]=7,n[6]=1,n[7]=0,n[8]=3,n[9]=1,n[10]=3,n[11]=2,n[12]=1,n[13]=6,n[14]=5,n[15]=1,n[16]=2,n[17]=6,n[18]=2,n[19]=3,n[20]=7,n[21]=2,n[22]=7,n[23]=6,n[24]=3,n[25]=0,n[26]=4,n[27]=3,n[28]=4,n[29]=7,n[30]=0,n[31]=1,n[32]=5,n[33]=0,n[34]=5,n[35]=4;letv=i.subtract(m,o,D),L=i.magnitude(v)*.5;if(A(r._offsetAttribute)){lett=e.length,T=r._offsetAttribute===b.NONE?0:1,E=newUint8Array(t/3).fill(T);s.applyOffset=newx({componentDatatype:y.UNSIGNED_BYTE,componentsPerAttribute:1,values:E})}returnnewh({attributes:s,indices:n,primitiveType:w.TRIANGLES,boundingSphere:newd(i.ZERO,L),offsetAttribute:r._offsetAttribute})};varl;f.getUnitBox=function(){returnA(l)||(l=f.createGeometry(f.fromDimensions({dimensions:newi(1,1,1),vertexFormat:u.POSITION_ONLY}))),l};varR=f;export{Rasa};
* 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/main/LICENSE.md for full licensing details.
*/
import{aasf}from"./chunk-VLPNAR64.js";import{aasn,basc}from"./chunk-GE5NEIZC.js";import{casI,das_,easo}from"./chunk-35CVRQTC.js";varP=I((O,d)=>{varu=function(t){t==null&&(t=newDate().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=newArray(this.N),this.mti=this.N+1,t.constructor==Array?this.init_by_array(t,t.length):this.init_seed(t)};u.prototype.init_seed=function(t){for(this.mt[0]=t>>>0,this.mti=1;this.mti<this.N;this.mti++){vart=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(((t&4294901760)>>>16)*1812433253<<16)+(t&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};u.prototype.init_by_array=function(t,i){vare,s,h;for(this.init_seed(19650218),e=1,s=0,h=this.N>i?this.N:i;h;h--){vara=this.mt[e-1]^this.mt[e-1]>>>30;this.mt[e]=(this.mt[e]^(((a&4294901760)>>>16)*1664525<<16)+(a&65535)*1664525)+t[s]+s,this.mt[e]>>>=0,e++,s++,e>=this.N&&(this.mt[0]=this.mt[this.N-1],e=1),s>=i&&(s=0)}for(h=this.N-1;h;h--){vara=this.mt[e-1]^this.mt[e-1]>>>30;this.mt[e]=(this.mt[e]^(((a&4294901760)>>>16)*1566083941<<16)+(a&65535)*1566083941)-e,this.mt[e]>>>=0,e++,e>=this.N&&(this.mt[0]=this.mt[this.N-1],e=1)}this.mt[0]=2147483648};u.prototype.random_int=function(){vart,i=newArray(0,this.MATRIX_A);if(this.mti>=this.N){vare;for(this.mti==this.N+1&&this.init_seed(5489),e=0;e<this.N-this.M;e++)t=this.mt[e]&this.UPPER_MASK|this.mt[e+1]&this.LOWER_MASK,this.mt[e]=this.mt[e+this.M]^t>>>1^i[t&1];for(;e<this.N-1;e++)t=this.mt[e]&this.UPPER_MASK|this.mt[e+1]&this.LOWER_MASK,this.mt[e]=this.mt[e+(this.M-this.N)]^t>>>1^i[t&1];t=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^t>>>1^i[t&1],this.mti=0}returnt=this.mt[this.mti++],t^=t>>>11,t^=t<<7&2636928640,t^=t<<15&4022730752,t^=t>>>18,t>>>0};u.prototype.random_int31=function(){returnthis.random_int()>>>1};u.prototype.random_incl=function(){returnthis.random_int()*(1/4294967295)};u.prototype.random=function(){returnthis.random_int()*(1/4294967296)};u.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};u.prototype.random_long=function(){vart=this.random_int()>>>5,i=this.random_int()>>>6;return(t*67108864+i)*(1/9007199254740992)};d.exports=u});varm=_(P(),1);varr={};r.EPSILON1=.1;r.EPSILON2=.01;r.EPSILON3=.001;r.EPSILON4=1e-4;r.EPSILON5=1e-5;r.EPSILON6=1e-6;r.EPSILON7=1e-7;r.EPSILON8=1e-8;r.EPSILON9=1e-9;r.EPSILON10=1e-10;r.EPSILON11=1e-11;r.EPSILON12=1e-12;r.EPSILON13=1e-13;r.EPSILON14=1e-14;r.EPSILON15=1e-15;r.EPSILON16=1e-16;r.EPSILON17=1e-17;r.EPSILON18=1e-18;r.EPSILON19=1e-19;r.EPSILON20=1e-20;r.EPSILON21=1e-21;r.GRAVITATIONALPARAMETER=3986004418e5;r.SOLAR_RADIUS=6955e5;r.LUNAR_RADIUS=1737400;r.SIXTY_FOUR_KILOBYTES=64*1024;r.FOUR_GIGABYTES=4*1024*1024*1024;r.sign=f(Math.sign,function(i){returni=+i,i===0||i!==i?i:i>0?1:-1});r.signNotZero=function(t){returnt<0?-1:1};r.toSNorm=function(t,i){returni=f(i,255),Math.round((r.clamp(t,-1,1)*.5+.5)*i)};r.fromSNorm=function(t,i){returni=f(i,255),r.clamp(t,0,i)/i*2-1};r.normalize=function(t,i,e){returne=Math.max(e-i,0),e===0?0:r.clamp((t-i)/e,0,1)};r.sinh=f(Math.sinh,function(i){return(Math.exp(i)-Math.exp(-i))/2});r.cosh=f(Math.cosh,function(i){return(Math.exp(i)+Math.exp(-i))/2});r.lerp=function(t,i,e){return(1-e)*t+e*i};r.PI=Math.PI;r.ONE_OVER_PI=1/Math.PI;r.PI_OVER_TWO=Math.PI/2;r.PI_OVER_THREE=Math.PI/3;r.PI_OVER_FOUR=Math.PI/4;r.PI_OVER_SIX=Math.PI/6;r.THREE_PI_OVER_TWO=3*Math.PI/2;r.TWO_PI=2*Math.PI;r.ONE_OVER_TWO_PI=1/(2*Math.PI);r.RADIANS_PER_DEGREE=Math.PI/180;r.DEGREES_PER_RADIAN=180/Math.PI;r.RADIANS_PER_ARCSECOND=r.RADIANS_PER_DEGREE/3600;r.toRadians=function(t){if(!o(t))thrownewn("degrees is required.");returnt*r.RADIANS_PER_DEGREE};r.toDegrees=function(t){if(!o(t))thrownewn("radians is required.");returnt*r.DEGREES_PER_RADIAN};r.convertLongitudeRange=function(t){if(!o(t))thrownewn("angle is required.");leti=r.TWO_PI,e=t-Math.floor(t/i)*i;returne<-Math.PI?e+i:e>=Math.PI?e-i:e};r.clampToLatitudeRange=function(t){if(!o(t))thrownewn("angle is required.");returnr.clamp(t,-1*r.PI_OVER_TWO,r.PI_OVER_TWO)};r.negativePiToPi=function(t){if(!o(t))thrownewn("angle is required.");returnt>=-r.PI&&t<=r.PI?t:r.zeroToTwoPi(t+r.PI)-r.PI};r.zeroToTwoPi=function(t){if(!o(t))thrownewn("angle is required.");if(t>=0&&t<=r.TWO_PI)returnt;leti=r.mod(t,r.TWO_PI);returnMath.abs(i)<r.EPSILON14&&Math.abs(t)>r.EPSILON14?r.TWO_PI:i};r.mod=function(t,i){if(!o(t))thrownewn("m is required.");if(!o(i))thrownewn("n is required.");if(i===0)thrownewn("divisor cannot be 0.");returnr.sign(t)===r.sign(i)&&Math.abs(t)<Math.abs(i)?t:(t%i+i)%i};r.equalsEpsilon=function(t,i,e,s){if(!o(t))thrownewn("left is required.");if(!o(i))thrownewn("right is required.");e=f(e,0),s=f(s,e);leth=Math.abs(t-i);returnh<=s||h<=e*Math.max(Math.abs(t),Math.abs(i))};r.lessThan=function(t,i,e){if(!o(t))thrownewn("first is required.");if(!o(i))thrownewn("second is required.");if(!o(e))thrownewn("absoluteEpsilon is required.");returnt-i<-e};r.lessThanOrEquals=function(t,i,e){if(!o(t))thrownewn("first is required.");if(!o(i))thrownewn("second is required.");if(!o(e))thrownewn("absoluteEpsilon is required.");returnt-i<e};r.greaterThan=function(t,i,e){if(!o(t))thrownewn("first is required.");if(!o(i))thrownewn("second is required.");if(!o(e))thrownewn("absoluteEpsilon is required.");returnt-i>e};r.greaterThanOrEquals=function(t,i,e){if(!o(t))thrownewn("first is required.");if(!o(i))thrownewn("second is required.");if(!o(e))thrownewn("absoluteEpsilon is required.");returnt-i>-e};varw=[1];r.factorial=function(t){if(typeoft!="number"||t<0)thrownewn("A number greater than or equal to 0 is required.");leti=w.length;if(t>=i){lete=w[i-1];for(lets=i;s<=t;s++){leth=e*s;w.push(h),e=h}}returnw[t]};r.incrementWrap=function(t,i,e){if(e=f(e,0),!o(t))thrownewn("n is required.");if(i<=e)thrownewn("maximumValue must be greater than minimumValue.");return++t,t>i&&(t=e),t};r.isPowerOfTwo=function(t){if(typeoft!="number"||t<0||t>4294967295)thrownewn("A number between 0 and (2^32)-1 is required.");returnt!==0&&(t&t-1)===0};r.nextPowerOfTwo=function(t){if(typeoft!="number"||t<0||t>2147483648)thrownewn("A number between 0 and 2^31 is required.");return--t,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t,t};r.previousPowerOfTwo=function(t){if(typeoft!="number"||t<0||t>4294967295)thrownewn("A number between 0 and (2^32)-1 is required.");returnt|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t|=t>>32,t=(t>>>0)-(t>>>1),t};r.clamp=function(t,i,e){returnc.typeOf.number("value",t),c.typeOf.number("min",i),c.typeOf.number("max",e),t<i?i:t>e?e:t};varE=newm.default;r.setRandomNumberSeed=function(t){if(!o(t))thrownewn("seed is required.");E=newm.default(t)};r.nextRandomNumber=function(){returnE.random()};r.randomBetween=function(t,i){returnr.nextRandomNumber()*(i-t)+t};r.acosClamped=function(t){if(!o(t))thrownewn("value is required.");returnMath.acos(r.clamp(t,-1,1))};r.asinClamped=function(t){if(!o(t))thrownewn("value is required.");returnMath.asin(r.clamp(t,-1,1))};r.chordLength=function(t,i){if(!o(t))thrownewn("angle is required.");if(!o(i))thrownewn("radius is required.");return2*i*Math.sin(t*.5)};r.logBase=function(t,i){if(!o(t))thrownewn("number is required.");if(!o(i))thrownewn("base is required.");returnMath.log(t)/Math.log(i)};r.cbrt=f(Math.cbrt,function(i){lete=Math.pow(Math.abs(i),.3333333333333333);returni<0?-e:e});r.log2=f(Math.log2,function(i){returnMath.log(i)*Math.LOG2E});r.fog=function(t,i){lete=t*i;return1-Math.exp(-(e*e))};r.fastApproximateAtan=function(t){returnc.typeOf.number("x",t),t*(-.1784*Math.abs(t)-.0663*t*t+1.0301)};r.fastApproximateAtan2=function(t,i){c.typeOf.number("x",t),c.typeOf.number("y",i);lete,s=Math.abs(t);e=Math.abs(i);leth=Math.max(s,e);e=Math.min(s,e);leta=e/h;if(isNaN(a))thrownewn("either x or y must be nonzero");returns=r.fastApproximateAtan(a),s=Math.abs(i)>Math.abs(t)?r.PI_OVER_TWO-s:s,s=t<0?r.PI-s:s,s=i<0?-s:s,s};varA=r;export{Aasa};
* 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/main/LICENSE.md for full licensing details.
*/
import{aaswt}from"./chunk-ZFTFDHK4.js";import{aask}from"./chunk-74GQJJ7R.js";import{aaskt}from"./chunk-NNHN6WUY.js";import{aasCt}from"./chunk-T7ERZ2CJ.js";import{basdt,cas_t,dasR}from"./chunk-GSNDLQ4C.js";import{dasht}from"./chunk-BKSIEBAA.js";import{aasN}from"./chunk-VTVHUB7E.js";import{aass,caspt,dasot}from"./chunk-JMSSU44E.js";import{aasM}from"./chunk-4UYSGV57.js";import{aasp}from"./chunk-VLPNAR64.js";import{aasz}from"./chunk-GE5NEIZC.js";import{easE}from"./chunk-35CVRQTC.js";varyt=news,vt=news,Et=news,Mt=news,Nt=news,Rt=news(1,1,1),Pt=Math.cos,At=Math.sin;functionO(n){n=p(n,p.EMPTY_OBJECT);letm=p(n.radii,Rt),i=p(n.innerRadii,m),P=p(n.minimumClock,0),T=p(n.maximumClock,M.TWO_PI),A=p(n.minimumCone,0),b=p(n.maximumCone,M.PI),a=Math.round(p(n.stackPartitions,64)),u=Math.round(p(n.slicePartitions,64)),h=p(n.vertexFormat,k.DEFAULT);if(u<3)thrownewz("options.slicePartitions cannot be less than three.");if(a<3)thrownewz("options.stackPartitions cannot be less than three.");this._radii=s.clone(m),this._innerRadii=s.clone(i),this._minimumClock=P,this._maximumClock=T,this._minimumCone=A,this._maximumCone=b,this._stackPartitions=a,this._slicePartitions=u,this._vertexFormat=k.clone(h),this._offsetAttribute=n.offsetAttribute,this._workerName="createEllipsoidGeometry"}O.packedLength=2*s.packedLength+k.packedLength+7;O.pack=function(n,m,i){if(!E(n))thrownewz("value is required");if(!E(m))thrownewz("array is required");returni=p(i,0),s.pack(n._radii,m,i),i+=s.packedLength,s.pack(n._innerRadii,m,i),i+=s.packedLength,k.pack(n._vertexFormat,m,i),i+=k.packedLength,m[i++]=n._minimumClock,m[i++]=n._maximumClock,m[i++]=n._minimumCone,m[i++]=n._maximumCone,m[i++]=n._stackPartitions,m[i++]=n._slicePartitions,m[i]=p(n._offsetAttribute,-1),m};varbt=news,xt=news,Ot=newk,y={radii:bt,innerRadii:xt,vertexFormat:Ot,minimumClock:void0,maximumClock:void0,minimumCone:void0,maximumCone:void0,stackPartitions:void0,slicePartitions:void0,offsetAttribute:void0};O.unpack=function(n,m,i){if(!E(n))thrownewz("array is required");m=p(m,0);letP=s.unpack(n,m,bt);m+=s.packedLength;letT=s.unpack(n,m,xt);m+=s.packedLength;letA=k.unpack(n,m,Ot);m+=k.packedLength;letb=n[m++],a=n[m++],u=n[m++],h=n[m++],t=n[m++],o=n[m++],e=n[m];returnE(i)?(i._radii=s.clone(P,i._radii),i._innerRadii=s.clone(T,i._innerRadii),i._vertexFormat=k.clone(A,i._vertexFormat),i._minimumClock=b,i._maximumClock=a,i._minimumCone=u,i._maximumCone=h,i._stackPartitions=t,i._slicePartitions=o,i._offsetAttribute=e===-1?void0:e,i):(y.minimumClock=b,y.maximumClock=a,y.minimumCone=u,y.maximumCone=h,y.stackPartitions=t,y.slicePartitions=o,y.offsetAttribute=e===-1?void0:e,newO(y))};O.createGeometry=function(n){letm=n._radii;if(m.x<=0||m.y<=0||m.z<=0)return;leti=n._innerRadii;if(i.x<=0||i.y<=0||i.z<=0)return;letP=n._minimumClock,T=n._maximumClock,A=n._minimumCone,b=n._maximumCone,a=n._vertexFormat,u=n._slicePartitions+1,h=n._stackPartitions+1;u=Math.round(u*Math.abs(T-P)/M.TWO_PI),h=Math.round(h*Math.abs(b-A)/M.PI),u<2&&(u=2),h<2&&(h=2);lett,o,e=0,D=[A],S=[P];for(t=0;t<h;t++)D.push(A+t*(b-A)/(h-1));for(D.push(b),o=0;o<u;o++)S.push(P+o*(T-P)/(u-1));S.push(T);letf=D.length,c=S.length,U=0,B=1,q=i.x!==m.x||i.y!==m.y||i.z!==m.z,J=!1,rt=!1,ct=!1;q&&(B=2,A>0&&(J=!0,U+=u-1),b<Math.PI&&(rt=!0,U+=u-1),(T-P)%M.TWO_PI?(ct=!0,U+=(h-1)*2+1):U+=1);letw=c*f*B,x=newFloat64Array(w*3),X=newArray(w).fill(!1),st=newArray(w).fill(!1),at=u*h*B,Tt=6*(at+U+1-(u+h)*B),r=kt.createTypedArray(at,Tt),Y=a.normal?newFloat32Array(w*3):void0,j=a.tangent?newFloat32Array(w*3):void0,H=a.bitangent?newFloat32Array(w*3):void0,Z=a.st?newFloat32Array(w*2):void0,V=newArray(f),G=newArray(f);for(t=0;t<f;t++)V[t]=At(D[t]),G[t]=Pt(D[t]);letK=newArray(c),Q=newArray(c);for(o=0;o<c;o++)Q[o]=Pt(S[o]),K[o]=At(S[o]);for(t=0;t<f;t++)for(o=0;o<c;o++)x[e++]=m.x*V[t]*Q[o],x[e++]=m.y*V[t]*K[o],x[e++]=m.z*G[t];let$=w/2;if(q)for(t=0;t<f;t++)for(o=0;o<c;o++)x[e++]=i.x*V[t]*Q[o],x[e++]=i.y*V[t]*K[o],x[e++]=i.z*G[t],X[$]=!0,t>0&&t!==f-1&&o!==0&&o!==c-1&&(st[$]=!0),$++;e=0;letF,L;for(t=1;t<f-2;t++)for(F=t*c,L=(t+1)*c,o=1;o<c-2;o++)r[e++]=L+o,r[e++]=L+o+1,r[e++]=F+o+1,r[e++]=L+o,r[e++]=F+o+1,r[e++]=F+o;if(q){letg=f*c;for(t=1;t<f-2;t++)for(F=g+t*c,L=g+(t+1)*c,o=1;o<c-2;o++)r[e++]=L+o,r[e++]=F+o,r[e++]=F+o+1,r[e++]=L+o,r[e++]=F+o+1,r[e++]=L+o+1}letd,l;if(q){if(J)for(l=f*c,t=1;t<c-2;t++)r[e++]=t,r[e++]=t+1,r[e++]=l+t+1,r[e++]=t,r[e++]=l+t+1,r[e++]=l+t;if(rt)for(d=f*c-c,l=f*c*B-c,t=1;t<c-2;t++)r[e++]=d+t+1,r[e++]=d+t,r[e++]=l+t,r[e++]=d+t+1,r[e++]=l+t,r[e++]=l+t+1}if(ct){for(t=1;t<f-2;t++)l=c*f+c*t,d=c*t,r[e++]=l,r[e++]=d+c,r[e++]=d,r[e++]=l,r[e++]=l+c,r[e++]=d+c;for(t=1;t<f-2;t++)l=c*f+c*(t+1)-1,d=c*(t+1)-1,r[e++]=d+c,r[e++]=l,r[e++]=d,r[e++]=d+c,r[e++]=l+c,r[e++]=l}letv=newCt;a.position&&(v.position=newR({componentDatatype:N.DOUBLE,componentsPerAttribute:3,values:x}));letft=0,I=0,tt=0,nt=0,Ft=w/2,ut,lt=ot.fromCartesian3(m),Lt=ot.fromCartesian3(i);if(a.st||a.normal||a.tangent||a.bitangent){for(t=0;t<w;t++){ut=X[t]?Lt:lt;letg=s.fromArray(x,t*3,yt),C=ut.geodeticSurfaceNormal(g,vt);if(st[t]&&s.negate(C,C),a.st){let_=pt.negate(C,Nt);Z[ft++]=Math.atan2(_.y,_.x)/M.TWO_PI+.5,Z[ft++]=Math.asin(C.z)/Math.PI+.5}if(a.normal&&(Y[I++]=C.x,Y[I++]=C.y,Y[I++]=C.z),a.tangent||a.bitangent){let_=Et,et=0,it;if(X[t]&&(et=Ft),!J&&t>=et&&t<et+c*2?it=s.UNIT_X:it=s.UNIT_Z,s.cross(it,C,_),s.normalize(_,_),a.tangent&&(j[tt++]=_.x,j[tt++]=_.y,j[tt++]=_.z),a.bitangent){letW=s.cross(C,_,Mt);s.normalize(W,W),H[nt++]=W.x,H[nt++]=W.y,H[nt++]=W.z}}}a.st&&(v.st=newR({componentDatatype:N.FLOAT,componentsPerAttribute:2,values:Z})),a.normal&&(v.normal=newR({componentDatatype:N.FLOAT,componentsPerAttribute:3,values:Y})),a.tangent&&(v.tangent=newR({componentDatatype:N.FLOAT,componentsPerAttribute:3,values:j})),a.bitangent&&(v.bitangent=newR({componentDatatype:N.FLOAT,componentsPerAttribute:3,values:H}))}if(E(n._offsetAttribute)){letg=x.length,C=n._offsetAttribute===wt.NONE?0:1,_=newUint8Array(g/3).fill(C);v.applyOffset=newR({componentDatatype:N.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})}returnnew_t({attributes:v,indices:r,primitiveType:dt.TRIANGLES,boundingSphere:ht.fromEllipsoid(lt),offsetAttribute:n._offsetAttribute})};varmt;O.getUnitEllipsoid=function(){returnE(mt)||(mt=O.createGeometry(newO({radii:news(1,1,1),vertexFormat:k.POSITION_ONLY}))),mt};varKt=O;export{Ktasa};
* 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/main/LICENSE.md for full licensing details.
*/
import{aas_}from"./chunk-M5SITFFN.js";import{aaste}from"./chunk-FNJKWSPR.js";import{aasfe,basj,fasZ,gasme}from"./chunk-YWRPWWKI.js";import{aase,basie,casee,easO}from"./chunk-JMSSU44E.js";import{aasQ}from"./chunk-4UYSGV57.js";import{aasse}from"./chunk-VLPNAR64.js";import{aasle}from"./chunk-GE5NEIZC.js";import{eas$}from"./chunk-35CVRQTC.js";varSe={ROUNDED:0,MITERED:1,BEVELED:2},G=Object.freeze(Se);varue={};functionP(r,n){if(!$(r))thrownewle("identifier is required.");$(ue[r])||(ue[r]=!0,console.warn(se(n,r)))}P.geometryOutlines="Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.";P.geometryZIndex="Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored";P.geometryHeightReference="Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored";P.geometryExtrudedHeightReference="Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";varhe=P;varw=[newe,newe],Te=newe,Be=newe,Ce=newe,ze=newe,Ae=newe,be=newe,Oe=newe,ve=newe,De=newe,I=newe,W=newe,R={},re=newie;functionje(r,n){leta=newArray(r.length);for(leto=0;o<r.length;o++){lett=r[o];re=n.cartesianToCartographic(t,re),a[o]=re.height,r[o]=n.scaleToGeodeticSurface(t,t)}returna}functionne(r,n,a,o){lett=r[0],c=r[1],f=e.angleBetween(t,c),l=Math.ceil(f/o),m=newArray(l),s;if(n===a){for(s=0;s<l;s++)m[s]=n;returnm.push(a),m}letd=(a-n)/l;for(s=1;s<l;s++){letx=n+s*d;m[s]=x}returnm[0]=n,m.push(a),m}varX=newe,Y=newe;functionHe(r,n,a,o){lett=newte(a,o),c=t.projectPointOntoPlane(e.add(a,r,X),X),f=t.projectPointOntoPlane(e.add(a,n,Y),Y),l=ee.angleBetween(c,f);returnf.x*c.y-f.y*c.x>=0?-l:l}varMe=newe(-1,0,0),H=newj,Ve=newj,oe=newO,Ne=O.IDENTITY.clone(),Fe=newe,Ge=newfe,de=newe;functionv(r,n,a,o,t,c,f,l){letm=Fe,s=Ge;H=me.eastNorthUpToFixedFrame(r,t,H),m=j.multiplyByPointAsVector(H,Me,m),m=e.normalize(m,m);letS=He(m,n,r,t);oe=O.fromRotationZ(S,oe),de.z=c,H=j.multiplyTransformation(H,j.fromRotationTranslation(oe,de,Ve),H);letd=Ne;d[0]=f;for(letx=0;x<l;x++)for(leti=0;i<a.length;i+=3)s=e.fromArray(a,i,s),s=O.multiplyByVector(d,s,s),s=j.multiplyByPoint(H,s,s),o.push(s.x,s.y,s.z);returno}varIe=newe;functionce(r,n,a,o,t,c,f){for(letl=0;l<r.length;l+=3){letm=e.fromArray(r,l,Ie);o=v(m,n,a,o,t,c[l/3],f,1)}returno}functionLe(r,n){leta=r.length,o=newArray(a*6),t=0,c=n.x+n.width/2,f=n.y+n.height/2,l=r[0];o[t++]=l.x-c,o[t++]=0,o[t++]=l.y-f;for(letm=1;m<a;m++){l=r[m];lets=l.x-c,S=l.y-f;o[t++]=s,o[t++]=0,o[t++]=S,o[t++]=s,o[t++]=0,o[t++]=S}returnl=r[0],o[t++]=l.x-c,o[t++]=0,o[t++]=l.y-f,o}functionge(r,n){leta=r.length,o=newArray(a*3),t=0,c=n.x+n.width/2,f=n.y+n.height/2;for(letl=0;l<a;l++)o[t++]=r[l].x-c,o[t++]=0,o[t++]=r[l].y-f;returno}varye=newZ,we=newe,pe=newO;functionxe(r,n,a,o,t,c,f,l,m,s){letS=e.angleBetween(e.subtract(n,r,I),e.subtract(a,r,W)),d=o===G.BEVELED?0:Math.ceil(S/Q.toRadians(5)),x;t?x=O.fromQuaternion(Z.fromAxisAngle(e.negate(r,I),S/(d+1),ye),pe):x=O.fromQuaternion(Z.fromAxisAngle(r,S/(d+1),ye),pe);leti,g;if(n=e.clone(n,we),d>0){letD=s?2:1;for(lety=0;y<d;y++)n=O.multiplyByVector(x,n,n),i=e.subtract(n,r,I),i=e.normalize(i,i),t||(i=e.negate(i,i)),g=c.scaleToGeodeticSurface(n,W),f=v(g,i,l,f,c,m,1,D)}elsei=e.subtract(n,r,I),i=e.normalize(i,i),t||(i=e.negate(i,i)),g=c.scaleToGeodeticSurface(n,W),f=v(g,i,l,f,c,m,1,1),a=e.clone(a,we),i=e.subtract(a,r,I),i=e.normalize(i,i),t||(i=e.negate(i,i)),g=c.scaleToGeodeticSurface(a,W),f=v(g,i,l,f,c,m,1,1);returnf}R.removeDuplicatesFromShape=function(r){letn=r.length,a=[];for(leto=n-1,t=0;t<n;o=t++){letc=r[o],f=r[t];ee.equals(c,f)||a.push(f)}returna};R.angleIsGreaterThanPi=function(r,n,a,o){lett=newte(a,o),c=t.projectPointOntoPlane(e.add(a,r,X),X),f=t.projectPointOntoPlane(e.add(a,n,Y),Y);returnf.x*c.y-f.y*c.x>=0};varqe=newe,Pe=newe;R.computePositions=function(r,n,a,o,t){letc=o._ellipsoid,f=je(r,c),l=o._granularity,m=o._cornerType,s=t?Le(n,a):ge(n,a),S=t?ge(n,a):void0,d=a.height/2,x=a.width/2,i=r.length,g=[],D=t?[]:void0,y=Te,b=Be,h=Ce,E=ze,B=Ae,C=be,z=Oe,u=ve,T=De,p=r[0],M=r[1];E=c.geodeticSurfaceNormal(p,E),y=e.subtract(M,p,y),y=e.normalize(y,y),u=e.cross(E,y,u),u=e.normalize(u,u);letV=f[0],A=f[1];t&&(D=v(p,u,S,D,c,V+d,1,1)),T=e.clone(p,T),p=M,b=e.negate(y,b);letN,F;for(letU=1;U<i-1;U++){letae=t?2:1;if(M=r[U+1],p.equals(M)){he("Positions are too close and are considered equivalent with rounding error.");continue}y=e.subtract(M,p,y),y=e.normalize(y,y),E=c.geodeticSurfaceNormal(p,E);letL=e.multiplyByScalar(E,e.dot(y,E),qe);e.subtract(y,L,L),e.normalize(L,L);letq=e.multiplyByScalar(E,e.dot(b,E),Pe);if(e.subtract(b,q,q),e.normalize(q,q),!Q.equalsEpsilon(Math.abs(e.dot(L,q)),1,Q.EPSILON7)){h=e.add(y,b,h),h=e.normalize(h,h),h=e.cross(h,E,h),h=e.cross(E,h,h),h=e.normalize(h,h);letk=1/Math.max(.25,e.magnitude(e.cross(h,b,I))),K=R.angleIsGreaterThanPi(y,b,p,c);K?(B=e.add(p,e.multiplyByScalar(h,k*x,h),B),C=e.add(B,e.multiplyByScalar(u,x,C),C),w[0]=e.clone(T,w[0]),w[1]=e.clone(C,w[1]),N=ne(w,V+d,A+d,l),F=_.generateArc({positions:w,granularity:l,ellipsoid:c}),g=ce(F,u,s,g,c,N,1),u=e.cross(E,y,u),u=e.normalize(u,u),z=e.add(B,e.multiplyByScalar(u,x,z),z),m===G.ROUNDED||m===G.BEVELED?xe(B,C,z,m,K,c,g,s,A+d,t):(h=e.negate(h,h),g=v(p,h,s,g,c,A+d,k,ae)),T=e.clone(z,T)):(B=e.add(p,e.multiplyByScalar(h,k*x,h),B),C=e.add(B,e.multiplyByScalar(u,-x,C),C),w[0]=e.clone(T,w[0]),w[1]=e.clone(C,w[1]),N=ne(w,V+d,A+d,l),F=_.generateArc({positions:w,granularity:l,ellipsoid:c}),g=ce(F,u,s,g,c,N,1),u=e.cross(E,y,u),u=e.normalize(u,u),z=e.add(B,e.multiplyByScalar(u,-x,z),z),m===G.ROUNDED||m===G.BEVELED?xe(B,C,z,m,K,c,g,s,A+d,t):g=v(p,h,s,g,c,A+d,k,ae),T=e.clone(z,T)),b=e.negate(y,b)}elseg=v(T,u,s,g,c,V+d,1,1),T=p;V=A,A=f[U+1],p=M}w[0]=e.clone(T,w[0]),w[1]=e.clone(p,w[1]),N=ne(w,V+d,A+d,l),F=_.generateArc({positions:w,granularity:l,ellipsoid:c}),g=ce(F,u,s,g,c,N,1),t&&(D=v(p,u,S,D,c,A+d,1,1)),i=g.length;letEe=t?i+D.length:i,J=newFloat64Array(Ee);returnJ.set(g),t&&J.set(D,i),J};varlt=R;export{Gasa,heasb,ltasc};
* 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/main/LICENSE.md for full licensing details.
*/
import{aast}from"./chunk-VLPNAR64.js";import{aasO}from"./chunk-GE5NEIZC.js";import{easf}from"./chunk-35CVRQTC.js";functionn(e){e=t(e,t.EMPTY_OBJECT),this.position=t(e.position,!1),this.normal=t(e.normal,!1),this.st=t(e.st,!1),this.bitangent=t(e.bitangent,!1),this.tangent=t(e.tangent,!1),this.color=t(e.color,!1)}n.POSITION_ONLY=Object.freeze(newn({position:!0}));n.POSITION_AND_NORMAL=Object.freeze(newn({position:!0,normal:!0}));n.POSITION_NORMAL_AND_ST=Object.freeze(newn({position:!0,normal:!0,st:!0}));n.POSITION_AND_ST=Object.freeze(newn({position:!0,st:!0}));n.POSITION_AND_COLOR=Object.freeze(newn({position:!0,color:!0}));n.ALL=Object.freeze(newn({position:!0,normal:!0,st:!0,tangent:!0,bitangent:!0}));n.DEFAULT=n.POSITION_NORMAL_AND_ST;n.packedLength=6;n.pack=function(e,o,i){if(!f(e))thrownewO("value is required");if(!f(o))thrownewO("array is required");returni=t(i,0),o[i++]=e.position?1:0,o[i++]=e.normal?1:0,o[i++]=e.st?1:0,o[i++]=e.tangent?1:0,o[i++]=e.bitangent?1:0,o[i]=e.color?1:0,o};n.unpack=function(e,o,i){if(!f(e))thrownewO("array is required");returno=t(o,0),f(i)||(i=newn),i.position=e[o++]===1,i.normal=e[o++]===1,i.st=e[o++]===1,i.tangent=e[o++]===1,i.bitangent=e[o++]===1,i.color=e[o]===1,i};n.clone=function(e,o){if(f(e))returnf(o)||(o=newn),o.position=e.position,o.normal=e.normal,o.st=e.st,o.tangent=e.tangent,o.bitangent=e.bitangent,o.color=e.color,o};var_=n;export{_asa};