/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.140.0 * * 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 Dt,c as Gt}from"./chunk-TJUBNZ45.js";import{a as Lt}from"./chunk-WYMSHGR6.js";import{a as lt}from"./chunk-7U5EVTKW.js";import{a as qt}from"./chunk-KIXGV6RH.js";import"./chunk-JD76ATDQ.js";import"./chunk-RPFEAA52.js";import{a as kt}from"./chunk-JQWGTP3K.js";import"./chunk-SDQXNLTQ.js";import"./chunk-PUOAX5MA.js";import{c as zt}from"./chunk-UKJ254OV.js";import"./chunk-YDQLCOZM.js";import{i as Ot,j as Vt}from"./chunk-MWY74K7V.js";import{b as $}from"./chunk-YECQFZBX.js";import"./chunk-TOK3PZ73.js";import"./chunk-65MI2E3A.js";import{a as Ht}from"./chunk-422SYBQS.js";import{a as N,b as wt,c as Ut}from"./chunk-QQJ4EFK2.js";import{a as P}from"./chunk-XXWWJ3QU.js";import{a as r}from"./chunk-N6SIW7ZL.js";import"./chunk-K35RPNUR.js";import{e as ht}from"./chunk-RTRJ3LVQ.js";var $t=Uint16Array.BYTES_PER_ELEMENT,mt=Int32Array.BYTES_PER_ELEMENT,Pt=Uint32Array.BYTES_PER_ELEMENT,te=Float32Array.BYTES_PER_ELEMENT,H=Float64Array.BYTES_PER_ELEMENT;function tt(n,l,e){e=e??r;let i=n.length;for(let c=0;c0&&W.length>0){let t=k[0].index,d=Mt,Y=W[W.length-1].index,B=g.length-1;v.push(Y,B,d,d,t,Y)}S=g.length;let jt=zt.fromPoints(g),Rt;ht(i)&&(Rt=qt.fromRectangle(i,z,J,e));let Qt=new Dt(e).computeHorizonCullingPointPossiblyUnderEllipsoid(l,g,z),Jt=new kt(b,M,l),It=new Gt(l,Jt,K.hMin,J,O,!1,T,y,et,m),_t=new Float32Array(S*It.stride),Ct=0;for(let t=0;t0&&i.push(i[x]),c.length>0&&c.push(c[x]),$.multiplyByPoint(m.toENU,j,G);let V=m.minimum,Q=m.maximum;P.minimumByComponent(G,V,V),P.maximumByComponent(G,Q,Q);let ft=m.lastBorderPoint;if(ht(ft)){let y=ft.index;et.push(y,p-1,p,p,x,y)}m.lastBorderPoint=E}}var we=Lt(ee);export{we as default};