import{fs as ir,fD as sr,dj as lr,_ as T,$ as A,a0 as fr,cp as cr,E as x,ab as ur,fE as pr,fF as K,fG as q,fH as M,fI as w,fJ as yr,fK as I,fL as gr,a7 as mr,a as S,fM as hr,fN as Tr,fO as B,s as Ar,fP as k,d_ as D,dZ as H,fQ as $r,fy as dr,fR as Pr,fS as Fr,fT as Er,t as m,fU as C,fV as Q,fW as Mr,ci as Rr,fX as _r,fY as vr}from"./index.6c049565.js";import{e as X}from"./mat3f64.6d32a1d7.js";import{e as $,o as xr}from"./mat4f64.ff2a477c.js";import{v as z,y as wr,x as Cr}from"./quat.4f976512.js";import{e as U}from"./quatf64.4ae3e6f1.js";import{T as p,i as u}from"./BufferView.f5101c27.js";import{t as F,e as Or,r as d,o as rr}from"./vec33.9bd40b84.js";function E(r=br){return[r[0],r[1],r[2],r[3]]}function ct(r,t,e=E()){return ir(e,r),e[3]=t,e}function ut(r,t,e=E()){return z(R,r,Y(r)),z(J,t,Y(t)),wr(R,J,R),Nr(e,sr(Cr(e,R)))}function pt(r){return r}function Y(r){return lr(r[3])}function Nr(r,t){return r[3]=t,r}const br=[0,0,1,0],R=U(),J=U();E();var j;let g=j=class extends cr{constructor(r){super(r),this.origin=x(),this.translation=x(),this.rotation=E(),this.scale=ur(1,1,1),this.geographic=!0}get localMatrix(){const r=$();return z(Z,this.rotation,Y(this.rotation)),pr(r,Z,this.translation,this.scale),r}get localMatrixInverse(){return K($(),this.localMatrix)}applyLocal(r,t){return q(t,r,this.localMatrix)}applyLocalInverse(r,t){return q(t,r,this.localMatrixInverse)}project(r,t){const e=new Float64Array(r.length),o=p.fromTypedArray(e),n=p.fromTypedArray(r);if(this.geographic){const l=M(t),f=$();return w(t,this.origin,f,l),yr(f,f,this.localMatrix),F(o,n,f),I(e,l,0,e,t,0,e.length/3),e}const{localMatrix:a,origin:i}=this;gr(a,xr)?Or(o,n):F(o,n,a);for(let l=0;l