/** * SmartEarth WebSDK - https://websdk.terra-it.cn * Version 5.3.1 */ import{a as J}from"./chunk-QF4KKRQA.js";import{a as Nt}from"./chunk-KBTPUVX4.js";import{a as zt}from"./chunk-NLFLNVCF.js";import"./chunk-HV57XH4K.js";import"./chunk-X2QIAW2L.js";import{a as ut}from"./chunk-55FFQILS.js";import{a as X}from"./chunk-WF3WCQMH.js";import{b as Rt}from"./chunk-IRIBHMN7.js";import"./chunk-EPQZOCRV.js";import"./chunk-BUR4N7VJ.js";import"./chunk-33CJ2NM7.js";import{a as yt}from"./chunk-ZDNS2GYV.js";import{a as Vt}from"./chunk-LH4TAMBV.js";import{b as Mt,c as Pt,d as q}from"./chunk-TNSV6TPX.js";import{d as st}from"./chunk-QHUUGFLC.js";import{f as Lt,i as E,j as At}from"./chunk-BHJLM5NY.js";import{a as Y}from"./chunk-3LWOQSP3.js";import{b as w,c as _t,d as G,e as H,f as ft}from"./chunk-7DK7KB7Q.js";import{a as W}from"./chunk-JSZDCKFG.js";import"./chunk-YGIPMXAD.js";import"./chunk-54HAFFPJ.js";import{a as L}from"./chunk-5HWP5DW7.js";import{a as St,b as lt}from"./chunk-INT7THOB.js";import{e as $}from"./chunk-PPCZYYBW.js";var Tt=new w,Bt=new w,Ut=new w,Yt=new w,qt=new E,Zt=new G,Kt=new st,$t=new st;function Xt(t,e){let n=new Pt({attributes:new Vt,primitiveType:Mt.TRIANGLES});return n.attributes.position=new q({componentDatatype:Y.DOUBLE,componentsPerAttribute:3,values:e.positions}),t.normal&&(n.attributes.normal=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:e.normals})),t.tangent&&(n.attributes.tangent=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:e.tangents})),t.bitangent&&(n.attributes.bitangent=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:e.bitangents})),n}function Gt(t,e,n,r){let a=t.length,c=e.normal?new Float32Array(a):void 0,l=e.tangent?new Float32Array(a):void 0,u=e.bitangent?new Float32Array(a):void 0,d=0,p=Yt,o=Ut,i=Bt;if(e.normal||e.tangent||e.bitangent)for(let f=0;f1||T>1))for(let x=0;x0;o-=p)_=o*3,C=ht(C,v,_,f,A),v+=6,a.st&&(V=dt(V,B,o*2,T),B+=4),n&&(y+=3,S[y++]=m[_],S[y++]=m[_+1],S[y++]=m[_+2]),et&&(Z[U++]=1,U+=1);if(k){let R=nt;for(_=R*3,o=0;o<2;o++)C=ht(C,v,_,f,A),v+=6,a.st&&(V=dt(V,B,R*2,T),B+=4),n&&(y+=3,S[y++]=m[_],S[y++]=m[_+1],S[y++]=m[_+2]),et&&(Z[U++]=1,U+=1)}else for(o=p-1;o>=0;o--)_=o*3,C=ht(C,v,_,f,A),v+=6,a.st&&(V=dt(V,B,o*2,T),B+=4),n&&(y+=3,S[y++]=m[_],S[y++]=m[_+1],S[y++]=m[_+2]),et&&(Z[U++]=1,U+=1);let ot=te(C,a,u);a.st&&(ot.attributes.st=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:2,values:V})),n&&(ot.attributes.extrudeDirection=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:S})),P&&(ot.attributes.applyOffset=new q({componentDatatype:Y.UNSIGNED_BYTE,componentsPerAttribute:1,values:Z}));let it=yt.createTypedArray(gt,pt*6),mt,wt,kt,bt;s=C.length/3;let ct=0;for(o=0;o