/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.109 * * 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 N}from"./chunk-6A32WNKQ.js";import{a as ot}from"./chunk-GH2M3QEY.js";import{a as K,b as B}from"./chunk-MUMMGJJL.js";import{a as k}from"./chunk-RUSF25XT.js";import{a as F}from"./chunk-Y5NK5HSS.js";import{a as nt}from"./chunk-67OQHZOZ.js";import{a as et}from"./chunk-FUN3J34G.js";import{b as Y,c as Q,d as H}from"./chunk-A4RD4IQP.js";import{f as j}from"./chunk-NNIY7VTE.js";import{d as A}from"./chunk-5EDTRNG5.js";import{a as q}from"./chunk-IO6LETQ6.js";import{a as b,b as W,c as tt,d as z}from"./chunk-C6Y3PRDH.js";import{a as S}from"./chunk-LI57NJAL.js";import{a as X}from"./chunk-P44SUSQU.js";import{e as w}from"./chunk-ODUTJJQ5.js";function _(){this._array=[],this._offset=0,this._length=0}Object.defineProperties(_.prototype,{length:{get:function(){return this._length}}});_.prototype.enqueue=function(n){this._array.push(n),this._length++};_.prototype.dequeue=function(){if(this._length===0)return;let n=this._array,s=this._offset,c=n[s];return n[s]=void 0,s++,s>10&&s*2>n.length&&(this._array=n.slice(s),s=0),this._offset=s,this._length--,c};_.prototype.peek=function(){if(this._length!==0)return this._array[this._offset]};_.prototype.contains=function(n){return this._array.indexOf(n)!==-1};_.prototype.clear=function(){this._array.length=this._offset=this._length=0};_.prototype.sort=function(n){this._offset>0&&(this._array=this._array.slice(this._offset),this._offset=0),this._array.sort(n)};var J=_;var x={};x.computeHierarchyPackedLength=function(n,s){let c=0,f=[n];for(;f.length>0;){let u=f.pop();if(!w(u))continue;c+=2;let r=u.positions,t=u.holes;if(w(r)&&r.length>0&&(c+=r.length*s.packedLength),w(t)){let e=t.length;for(let o=0;o0;){let r=u.pop();if(!w(r))continue;let t=r.positions,e=r.holes;if(s[c++]=w(t)?t.length:0,s[c++]=w(e)?e.length:0,w(t)){let o=t.length;for(let i=0;i0?new Array(u):void 0;for(let e=0;e