/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.115 * * 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 B}from"./chunk-4AFNJVTV.js";import"./chunk-QWQOVUJ7.js";import"./chunk-SVXBKJVU.js";import"./chunk-SPQOGAZ5.js";import"./chunk-63MCY5JU.js";import"./chunk-AT6LKTZH.js";import"./chunk-ASPQMVDG.js";import{a as N}from"./chunk-565QV2WE.js";import{a as M}from"./chunk-2OCTB5MG.js";import{b as q,c as R,d as W}from"./chunk-2NSXRWDL.js";import{d as D}from"./chunk-LCPJ46PJ.js";import"./chunk-IADNIOZ2.js";import"./chunk-QK5WKMSE.js";import"./chunk-DCQPNKAH.js";import{a as S}from"./chunk-HVT5SA4Z.js";import{a as p,d as l}from"./chunk-QHMHXQHC.js";import{a as O}from"./chunk-GGFNGKXD.js";import"./chunk-BPPZBFNC.js";import"./chunk-6DW2D3WX.js";import{a as d}from"./chunk-A7LPWAU6.js";import{a as _}from"./chunk-UNVMUIJM.js";import{e as m}from"./chunk-WVB7XP3Q.js";var G=new p,U=new p;function w(i){i=d(i,d.EMPTY_OBJECT);let t=i.positions,e=i.maximumHeights,o=i.minimumHeights;if(!m(t))throw new _("options.positions is required.");if(m(e)&&e.length!==t.length)throw new _("options.positions and options.maximumHeights must have the same length.");if(m(o)&&o.length!==t.length)throw new _("options.positions and options.minimumHeights must have the same length.");let s=d(i.granularity,O.RADIANS_PER_DEGREE),r=d(i.ellipsoid,l.WGS84);this._positions=t,this._minimumHeights=o,this._maximumHeights=e,this._granularity=s,this._ellipsoid=l.clone(r),this._workerName="createWallOutlineGeometry";let n=1+t.length*p.packedLength+2;m(o)&&(n+=o.length),m(e)&&(n+=e.length),this.packedLength=n+l.packedLength+1}w.pack=function(i,t,e){if(!m(i))throw new _("value is required");if(!m(t))throw new _("array is required");e=d(e,0);let o,s=i._positions,r=s.length;for(t[e++]=r,o=0;o0)for(n=new Array(s),o=0;o0)for(c=new Array(s),o=0;o