/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.114 * * Copyright 2011-2022 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/main/LICENSE.md for full licensing details. */ import{a as et}from"./chunk-UFTYIC6P.js";import{a as U}from"./chunk-DLD6AV3S.js";import"./chunk-AM36JLPO.js";import{a as y}from"./chunk-OBH4SRMM.js";import"./chunk-KGSL5AZH.js";import{a as I}from"./chunk-LAFYIXBI.js";import{a as $}from"./chunk-Y4WDS4E7.js";import"./chunk-NQBIZOW4.js";import"./chunk-G3ANYX6B.js";import{a as u}from"./chunk-SCJI2CER.js";import"./chunk-RNO4G5Q4.js";import"./chunk-OFYQOYUL.js";import{b as ot}from"./chunk-VELFSPBY.js";import{a as tt}from"./chunk-GLM7D42Y.js";import"./chunk-7UQWW73Z.js";import"./chunk-5W56CV6U.js";import"./chunk-FW5QB3YT.js";import{a as J}from"./chunk-Y3QWB4WF.js";import{a as X}from"./chunk-KJJSAVM5.js";import{b as K,c as Y,d as z}from"./chunk-32QBF3VP.js";import{d as Z,f as Q}from"./chunk-VUQ65SO2.js";import"./chunk-XHQXTKN5.js";import"./chunk-CAREXCTE.js";import{a as N}from"./chunk-PF7ABWYW.js";import{a as i,c as x,d as m,e as P}from"./chunk-6A72MMRO.js";import{a as q}from"./chunk-4BEFMW7D.js";import"./chunk-UMJEX7YU.js";import"./chunk-72JWF3LF.js";import{a as f}from"./chunk-2F4MHS2T.js";import{b as B}from"./chunk-3Z2AZRQC.js";import{e as g}from"./chunk-A5XXOFX2.js";var st=new i,at=new et,pt=new x,lt=new x,mt=new i,ft=new i,ut=new i,V=new i,yt=new i,ht=new i,nt=new Q,dt=new P,gt=new P,Pt=new i;function wt(e,t,o,a,h,A,r,n,p){let b=e.positions,c=ot.triangulate(e.positions2D,e.holes);c.length<3&&(c=[0,1,2]);let w=J.createTypedArray(b.length,c.length);w.set(c);let S=dt;if(a!==0){let d=Q.fromAxisAngle(r,a,nt);if(S=P.fromQuaternion(d,S),t.tangent||t.bitangent){d=Q.fromAxisAngle(r,-a,nt);let G=P.fromQuaternion(d,gt);n=i.normalize(P.multiplyByVector(G,n,n),n),t.bitangent&&(p=i.normalize(i.cross(r,n,p),p))}}else S=P.clone(P.IDENTITY,S);let j=lt;t.st&&(j.x=o.x,j.y=o.y);let k=b.length,C=k*3,L=new Float64Array(C),T=t.normal?new Float32Array(C):void 0,D=t.tangent?new Float32Array(C):void 0,R=t.bitangent?new Float32Array(C):void 0,H=t.st?new Float32Array(k*2):void 0,M=0,F=0,l=0,O=0,s=0;for(let d=0;d