/** * SmartEarth WebSDK - https://websdk.terra-it.cn * Version 5.3.1 */ import{a as M}from"./chunk-YMLWFA65.js";import{a as ht}from"./chunk-TGH7B4GN.js";import"./chunk-XDTNLL4L.js";import"./chunk-45NF2JU3.js";import{a as _t}from"./chunk-55FFQILS.js";import{a as G}from"./chunk-32UDSAPU.js";import"./chunk-TBSK33NR.js";import"./chunk-LSAUAD4X.js";import{b as yt}from"./chunk-VDNLYVKB.js";import{a as Pt}from"./chunk-EX67AA2G.js";import"./chunk-V5KKODOM.js";import"./chunk-AIYLFSI3.js";import"./chunk-FBQDLPON.js";import{a as Nt}from"./chunk-563CJZT3.js";import{a as Ct}from"./chunk-LH4TAMBV.js";import{b as Mt,c as Vt,d as x}from"./chunk-WI5KIEME.js";import{d as St}from"./chunk-ZPW6H6BB.js";import{i as Et}from"./chunk-HMXXHGCW.js";import{a as F}from"./chunk-NFDMGE7Q.js";import{b as o,c as bt,e as I}from"./chunk-VDZXURWO.js";import{a as st}from"./chunk-UEFEFMYS.js";import"./chunk-YGIPMXAD.js";import"./chunk-PZ34T7DL.js";import{a as B}from"./chunk-5HWP5DW7.js";import{b as it}from"./chunk-3K67FZLU.js";import{e as X}from"./chunk-55TU6MJR.js";var zt=new o,kt=new o,wt=new o,Tt=new o,jt=new o,Ht=new o,at=new o,ft=new o;function Ut(t,e){for(let i=0;ik;n--)N=st.PI_OVER_TWO-n*U,c[L++]=1-$*(1+Math.cos(N)),c[L++]=.5*(1+Math.sin(N));for(n=k;n>0;n--)N=st.PI_OVER_TWO-U*n,c[L++]=1-v*(1+Math.cos(N)),c[L++]=.5*(1+Math.sin(N));for(n=a-p;n>0;n--)c[L++]=n*v,c[L++]=1;for(n=1;n0;n--)c[L++]=(n-1)*v,c[L++]=1}g.st=new x({componentDatatype:F.FLOAT,componentsPerAttribute:2,values:c})}return e.normal&&(g.normal=new x({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:z.normals})),e.tangent&&(g.tangent=new x({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:z.tangents})),e.bitangent&&(g.bitangent=new x({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:z.bitangents})),{attributes:g,indices:_}}function qt(t,e){if(!e.normal&&!e.tangent&&!e.bitangent&&!e.st)return t;let i=t.position.values,l,d;(e.normal||e.bitangent)&&(l=t.normal.values,d=t.bitangent.values);let f=t.position.values.length/18,h=f*3,O=f*2,g=h*2,r;if(e.normal||e.bitangent||e.tangent){let a=e.normal?new Float32Array(h*6):void 0,s=e.tangent?new Float32Array(h*6):void 0,n=e.bitangent?new Float32Array(h*6):void 0,A=zt,u=kt,b=wt,p=Tt,R=jt,m=Ht,C=g;for(r=0;r