/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.109.1 * * 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 L,b as x,c as dn,d as cn}from"./chunk-WADCMYQO.js";import{a as E}from"./chunk-2LQD2HPA.js";import{a as Rn}from"./chunk-P2U2ARL5.js";import{a as T}from"./chunk-3B6S2GOO.js";import{a as H,b as f}from"./chunk-EYEHMX6X.js";import{e as M}from"./chunk-BWKFPVR5.js";function b(t,e,n,r){this.x=T(t,0),this.y=T(e,0),this.z=T(n,0),this.w=T(r,0)}b.fromElements=function(t,e,n,r,f){return M(f)?(f.x=t,f.y=e,f.z=n,f.w=r,f):new b(t,e,n,r)},b.fromColor=function(t,e){return f.typeOf.object("color",t),M(e)?(e.x=t.red,e.y=t.green,e.z=t.blue,e.w=t.alpha,e):new b(t.red,t.green,t.blue,t.alpha)},b.clone=function(t,e){if(M(t))return M(e)?(e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e):new b(t.x,t.y,t.z,t.w)},b.packedLength=4,b.pack=function(t,e,n){return f.typeOf.object("value",t),f.defined("array",e),n=T(n,0),e[n++]=t.x,e[n++]=t.y,e[n++]=t.z,e[n]=t.w,e},b.unpack=function(t,e,n){return f.defined("array",t),e=T(e,0),M(n)||(n=new b),n.x=t[e++],n.y=t[e++],n.z=t[e++],n.w=t[e],n},b.packArray=function(t,e){f.defined("array",t);let n=t.length,r=4*n;if(M(e)){if(!Array.isArray(e)&&e.length!==r)throw new H("If result is a typed array, it must have exactly array.length * 4 elements");e.length!==r&&(e.length=r)}else e=new Array(r);for(let f=0;f<n;++f)b.pack(t[f],e,4*f);return e},b.unpackArray=function(t,e){if(f.defined("array",t),f.typeOf.number.greaterThanOrEquals("array.length",t.length,4),t.length%4!==0)throw new H("array length must be a multiple of 4.");let n=t.length;M(e)?e.length=n/4:e=new Array(n/4);for(let r=0;r<n;r+=4){let n=r/4;e[n]=b.unpack(t,r,e[n])}return e},b.fromArray=b.unpack,b.maximumComponent=function(t){return f.typeOf.object("cartesian",t),Math.max(t.x,t.y,t.z,t.w)},b.minimumComponent=function(t){return f.typeOf.object("cartesian",t),Math.min(t.x,t.y,t.z,t.w)},b.minimumByComponent=function(t,e,n){return f.typeOf.object("first",t),f.typeOf.object("second",e),f.typeOf.object("result",n),n.x=Math.min(t.x,e.x),n.y=Math.min(t.y,e.y),n.z=Math.min(t.z,e.z),n.w=Math.min(t.w,e.w),n},b.maximumByComponent=function(t,e,n){return f.typeOf.object("first",t),f.typeOf.object("second",e),f.typeOf.object("result",n),n.x=Math.max(t.x,e.x),n.y=Math.max(t.y,e.y),n.z=Math.max(t.z,e.z),n.w=Math.max(t.w,e.w),n},b.clamp=function(t,e,n,r){f.typeOf.object("value",t),f.typeOf.object("min",e),f.typeOf.object("max",n),f.typeOf.object("result",r);let a=E.clamp(t.x,e.x,n.x),o=E.clamp(t.y,e.y,n.y),u=E.clamp(t.z,e.z,n.z),i=E.clamp(t.w,e.w,n.w);return r.x=a,r.y=o,r.z=u,r.w=i,r},b.magnitudeSquared=function(t){return f.typeOf.object("cartesian",t),t.x*t.x+t.y*t.y+t.z*t.z+t.w*t.w},b.magnitude=function(t){return Math.sqrt(b.magnitudeSquared(t))};var yn=new b;b.distance=function(t,e){return f.typeOf.object("left",t),f.typeOf.object("right",e),b.subtract(t,e,yn),b.magnitude(yn)},b.distanceSquared=function(t,e){return f.typeOf.object("left",t),f.typeOf.object("right",e),b.subtract(t,e,yn),b.magnitudeSquared(yn)},b.normalize=function(t,e){f.typeOf.object("cartesian",t),f.typeOf.object("result",e);let n=b.magnitude(t);if(e.x=t.x/n,e.y=t.y/n,e.z=t.z/n,e.w=t.w/n,isNaN(e.x)||isNaN(e.y)||isNaN(e.z)||isNaN(e.w))throw new H("normalized result is not a number");return e},b.dot=function(t,e){return f.typeOf.object("left",t),f.typeOf.object("right",e),t.x*e.x+t.y*e.y+t.z*e.z+t.w*e.w},b.multiplyComponents=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n.x=t.x*e.x,n.y=t.y*e.y,n.z=t.z*e.z,n.w=t.w*e.w,n},b.divideComponents=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n.x=t.x/e.x,n.y=t.y/e.y,n.z=t.z/e.z,n.w=t.w/e.w,n},b.add=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n.x=t.x+e.x,n.y=t.y+e.y,n.z=t.z+e.z,n.w=t.w+e.w,n},b.subtract=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n.x=t.x-e.x,n.y=t.y-e.y,n.z=t.z-e.z,n.w=t.w-e.w,n},b.multiplyByScalar=function(t,e,n){return f.typeOf.object("cartesian",t),f.typeOf.number("scalar",e),f.typeOf.object("result",n),n.x=t.x*e,n.y=t.y*e,n.z=t.z*e,n.w=t.w*e,n},b.divideByScalar=function(t,e,n){return f.typeOf.object("cartesian",t),f.typeOf.number("scalar",e),f.typeOf.object("result",n),n.x=t.x/e,n.y=t.y/e,n.z=t.z/e,n.w=t.w/e,n},b.negate=function(t,e){return f.typeOf.object("cartesian",t),f.typeOf.object("result",e),e.x=-t.x,e.y=-t.y,e.z=-t.z,e.w=-t.w,e},b.abs=function(t,e){return f.typeOf.object("cartesian",t),f.typeOf.object("result",e),e.x=Math.abs(t.x),e.y=Math.abs(t.y),e.z=Math.abs(t.z),e.w=Math.abs(t.w),e};var En=new b;b.lerp=function(t,e,n,r){return f.typeOf.object("start",t),f.typeOf.object("end",e),f.typeOf.number("t",n),f.typeOf.object("result",r),b.multiplyByScalar(e,n,En),r=b.multiplyByScalar(t,1-n,r),b.add(En,r,r)};var kn=new b;b.mostOrthogonalAxis=function(t,e){f.typeOf.object("cartesian",t),f.typeOf.object("result",e);let n=b.normalize(t,kn);return b.abs(n,n),e=n.x<=n.y?n.x<=n.z?n.x<=n.w?b.clone(b.UNIT_X,e):b.clone(b.UNIT_W,e):n.z<=n.w?b.clone(b.UNIT_Z,e):b.clone(b.UNIT_W,e):n.y<=n.z?n.y<=n.w?b.clone(b.UNIT_Y,e):b.clone(b.UNIT_W,e):n.z<=n.w?b.clone(b.UNIT_Z,e):b.clone(b.UNIT_W,e),e},b.equals=function(t,e){return t===e||M(t)&&M(e)&&t.x===e.x&&t.y===e.y&&t.z===e.z&&t.w===e.w},b.equalsArray=function(t,e,n){return t.x===e[n]&&t.y===e[n+1]&&t.z===e[n+2]&&t.w===e[n+3]},b.equalsEpsilon=function(t,e,n,r){return t===e||M(t)&&M(e)&&E.equalsEpsilon(t.x,e.x,n,r)&&E.equalsEpsilon(t.y,e.y,n,r)&&E.equalsEpsilon(t.z,e.z,n,r)&&E.equalsEpsilon(t.w,e.w,n,r)},b.ZERO=Object.freeze(new b(0,0,0,0)),b.ONE=Object.freeze(new b(1,1,1,1)),b.UNIT_X=Object.freeze(new b(1,0,0,0)),b.UNIT_Y=Object.freeze(new b(0,1,0,0)),b.UNIT_Z=Object.freeze(new b(0,0,1,0)),b.UNIT_W=Object.freeze(new b(0,0,0,1)),b.prototype.clone=function(t){return b.clone(this,t)},b.prototype.equals=function(t){return b.equals(this,t)},b.prototype.equalsEpsilon=function(t,e,n){return b.equalsEpsilon(this,t,e,n)},b.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};var zn=new Float32Array(1),Q=new Uint8Array(zn.buffer),Vn=new Uint32Array([287454020]),Xn=new Uint8Array(Vn.buffer),mn=68===Xn[0];b.packFloat=function(t,e){return f.typeOf.number("value",t),M(e)||(e=new b),zn[0]=t,mn?(e.x=Q[0],e.y=Q[1],e.z=Q[2],e.w=Q[3]):(e.x=Q[3],e.y=Q[2],e.z=Q[1],e.w=Q[0]),e},b.unpackFloat=function(t){return f.typeOf.object("packedFloat",t),mn?(Q[0]=t.x,Q[1]=t.y,Q[2]=t.z,Q[3]=t.w):(Q[0]=t.w,Q[1]=t.z,Q[2]=t.y,Q[3]=t.x),zn[0]};var pn=b;function t(t,e,n,r,f,a,o,u,i,c,s,l,y,p,b,O){this[0]=T(t,0),this[1]=T(f,0),this[2]=T(i,0),this[3]=T(y,0),this[4]=T(e,0),this[5]=T(a,0),this[6]=T(c,0),this[7]=T(p,0),this[8]=T(n,0),this[9]=T(o,0),this[10]=T(s,0),this[11]=T(b,0),this[12]=T(r,0),this[13]=T(u,0),this[14]=T(l,0),this[15]=T(O,0)}t.packedLength=16,t.pack=function(t,e,n){return f.typeOf.object("value",t),f.defined("array",e),n=T(n,0),e[n++]=t[0],e[n++]=t[1],e[n++]=t[2],e[n++]=t[3],e[n++]=t[4],e[n++]=t[5],e[n++]=t[6],e[n++]=t[7],e[n++]=t[8],e[n++]=t[9],e[n++]=t[10],e[n++]=t[11],e[n++]=t[12],e[n++]=t[13],e[n++]=t[14],e[n]=t[15],e},t.unpack=function(e,n,r){return f.defined("array",e),n=T(n,0),M(r)||(r=new t),r[0]=e[n++],r[1]=e[n++],r[2]=e[n++],r[3]=e[n++],r[4]=e[n++],r[5]=e[n++],r[6]=e[n++],r[7]=e[n++],r[8]=e[n++],r[9]=e[n++],r[10]=e[n++],r[11]=e[n++],r[12]=e[n++],r[13]=e[n++],r[14]=e[n++],r[15]=e[n],r},t.packArray=function(e,n){f.defined("array",e);let r=e.length,a=16*r;if(M(n)){if(!Array.isArray(n)&&n.length!==a)throw new H("If result is a typed array, it must have exactly array.length * 16 elements");n.length!==a&&(n.length=a)}else n=new Array(a);for(let f=0;f<r;++f)t.pack(e[f],n,16*f);return n},t.unpackArray=function(e,n){if(f.defined("array",e),f.typeOf.number.greaterThanOrEquals("array.length",e.length,16),e.length%16!==0)throw new H("array length must be a multiple of 16.");let r=e.length;M(n)?n.length=r/16:n=new Array(r/16);for(let f=0;f<r;f+=16){let r=f/16;n[r]=t.unpack(e,f,n[r])}return n},t.clone=function(e,n){if(M(e))return M(n)?(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15],n):new t(e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15])},t.fromArray=t.unpack,t.fromColumnMajorArray=function(e,n){return f.defined("values",e),t.clone(e,n)},t.fromRowMajorArray=function(e,n){return f.defined("values",e),M(n)?(n[0]=e[0],n[1]=e[4],n[2]=e[8],n[3]=e[12],n[4]=e[1],n[5]=e[5],n[6]=e[9],n[7]=e[13],n[8]=e[2],n[9]=e[6],n[10]=e[10],n[11]=e[14],n[12]=e[3],n[13]=e[7],n[14]=e[11],n[15]=e[15],n):new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},t.fromRotationTranslation=function(e,n,r){return f.typeOf.object("rotation",e),n=T(n,L.ZERO),M(r)?(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=0,r[4]=e[3],r[5]=e[4],r[6]=e[5],r[7]=0,r[8]=e[6],r[9]=e[7],r[10]=e[8],r[11]=0,r[12]=n.x,r[13]=n.y,r[14]=n.z,r[15]=1,r):new t(e[0],e[3],e[6],n.x,e[1],e[4],e[7],n.y,e[2],e[5],e[8],n.z,0,0,0,1)},t.fromTranslationQuaternionRotationScale=function(e,n,r,a){f.typeOf.object("translation",e),f.typeOf.object("rotation",n),f.typeOf.object("scale",r),M(a)||(a=new t);let o=r.x,u=r.y,i=r.z,c=n.x*n.x,s=n.x*n.y,l=n.x*n.z,y=n.x*n.w,p=n.y*n.y,b=n.y*n.z,O=n.y*n.w,h=n.z*n.z,m=n.z*n.w,w=n.w*n.w,j=c-p-h+w,x=2*(s-m),g=2*(l+O),d=2*(s+m),z=-c+p-h+w,T=2*(b-y),E=2*(l-O),q=2*(b+y),L=-c-p+h+w;return a[0]=j*o,a[1]=d*o,a[2]=E*o,a[3]=0,a[4]=x*u,a[5]=z*u,a[6]=q*u,a[7]=0,a[8]=g*i,a[9]=T*i,a[10]=L*i,a[11]=0,a[12]=e.x,a[13]=e.y,a[14]=e.z,a[15]=1,a},t.fromTranslationRotationScale=function(e,n){return f.typeOf.object("translationRotationScale",e),t.fromTranslationQuaternionRotationScale(e.translation,e.rotation,e.scale,n)},t.fromTranslation=function(e,n){return f.typeOf.object("translation",e),t.fromRotationTranslation(cn.IDENTITY,e,n)},t.fromScale=function(e,n){return f.typeOf.object("scale",e),M(n)?(n[0]=e.x,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=e.y,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=e.z,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n):new t(e.x,0,0,0,0,e.y,0,0,0,0,e.z,0,0,0,0,1)},t.fromUniformScale=function(e,n){return f.typeOf.number("scale",e),M(n)?(n[0]=e,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=e,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=e,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n):new t(e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1)},t.fromRotation=function(e,n){return f.typeOf.object("rotation",e),M(n)||(n=new t),n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=0,n[4]=e[3],n[5]=e[4],n[6]=e[5],n[7]=0,n[8]=e[6],n[9]=e[7],n[10]=e[8],n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n};var a=new L,s=new L,fn=new L;t.fromCamera=function(e,n){f.typeOf.object("camera",e);let r=e.position,o=e.direction,u=e.up;f.typeOf.object("camera.position",r),f.typeOf.object("camera.direction",o),f.typeOf.object("camera.up",u),L.normalize(o,a),L.normalize(L.cross(a,u,s),s),L.normalize(L.cross(s,a,fn),fn);let i=s.x,c=s.y,l=s.z,y=a.x,p=a.y,b=a.z,O=fn.x,h=fn.y,m=fn.z,w=r.x,j=r.y,x=r.z,g=i*-w+c*-j+l*-x,d=O*-w+h*-j+m*-x,z=y*w+p*j+b*x;return M(n)?(n[0]=i,n[1]=O,n[2]=-y,n[3]=0,n[4]=c,n[5]=h,n[6]=-p,n[7]=0,n[8]=l,n[9]=m,n[10]=-b,n[11]=0,n[12]=g,n[13]=d,n[14]=z,n[15]=1,n):new t(i,c,l,g,O,h,m,d,-y,-p,-b,z,0,0,0,1)},t.computePerspectiveFieldOfView=function(t,e,n,r,a){f.typeOf.number.greaterThan("fovY",t,0),f.typeOf.number.lessThan("fovY",t,Math.PI),f.typeOf.number.greaterThan("near",n,0),f.typeOf.number.greaterThan("far",r,0),f.typeOf.object("result",a);let o=1/Math.tan(.5*t),u=o/e,i=(r+n)/(n-r),c=2*r*n/(n-r);return a[0]=u,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=o,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=i,a[11]=-1,a[12]=0,a[13]=0,a[14]=c,a[15]=0,a},t.computeOrthographicOffCenter=function(t,e,n,r,a,o,u){f.typeOf.number("left",t),f.typeOf.number("right",e),f.typeOf.number("bottom",n),f.typeOf.number("top",r),f.typeOf.number("near",a),f.typeOf.number("far",o),f.typeOf.object("result",u);let i=1/(e-t),c=1/(r-n),s=1/(o-a),l=-(e+t)*i,y=-(r+n)*c,p=-(o+a)*s;return i*=2,c*=2,s*=-2,u[0]=i,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=c,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=s,u[11]=0,u[12]=l,u[13]=y,u[14]=p,u[15]=1,u},t.computePerspectiveOffCenter=function(t,e,n,r,a,o,u){f.typeOf.number("left",t),f.typeOf.number("right",e),f.typeOf.number("bottom",n),f.typeOf.number("top",r),f.typeOf.number("near",a),f.typeOf.number("far",o),f.typeOf.object("result",u);let i=2*a/(e-t),c=2*a/(r-n),s=(e+t)/(e-t),l=(r+n)/(r-n),y=-(o+a)/(o-a),p=-1,b=-2*o*a/(o-a);return u[0]=i,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=c,u[6]=0,u[7]=0,u[8]=s,u[9]=l,u[10]=y,u[11]=p,u[12]=0,u[13]=0,u[14]=b,u[15]=0,u},t.computeInfinitePerspectiveOffCenter=function(t,e,n,r,a,o){f.typeOf.number("left",t),f.typeOf.number("right",e),f.typeOf.number("bottom",n),f.typeOf.number("top",r),f.typeOf.number("near",a),f.typeOf.object("result",o);let u=2*a/(e-t),i=2*a/(r-n),c=(e+t)/(e-t),s=(r+n)/(r-n),l=-1,y=-1,p=-2*a;return o[0]=u,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=i,o[6]=0,o[7]=0,o[8]=c,o[9]=s,o[10]=l,o[11]=y,o[12]=0,o[13]=0,o[14]=p,o[15]=0,o},t.computeViewportTransformation=function(e,n,r,f){M(f)||(f=new t),e=T(e,T.EMPTY_OBJECT);let a=T(e.x,0),o=T(e.y,0),u=T(e.width,0),i=T(e.height,0);n=T(n,0),r=T(r,1);let c=.5*u,s=.5*i,l=.5*(r-n),y=c,p=s,b=l,O=a+c,h=o+s,m=n+l,w=1;return f[0]=y,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=p,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=b,f[11]=0,f[12]=O,f[13]=h,f[14]=m,f[15]=w,f},t.computeView=function(t,e,n,r,a){return f.typeOf.object("position",t),f.typeOf.object("direction",e),f.typeOf.object("up",n),f.typeOf.object("right",r),f.typeOf.object("result",a),a[0]=r.x,a[1]=n.x,a[2]=-e.x,a[3]=0,a[4]=r.y,a[5]=n.y,a[6]=-e.y,a[7]=0,a[8]=r.z,a[9]=n.z,a[10]=-e.z,a[11]=0,a[12]=-L.dot(r,t),a[13]=-L.dot(n,t),a[14]=L.dot(e,t),a[15]=1,a},t.toArray=function(t,e){return f.typeOf.object("matrix",t),M(e)?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e):[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]},t.getElementIndex=function(t,e){return f.typeOf.number.greaterThanOrEquals("row",e,0),f.typeOf.number.lessThanOrEquals("row",e,3),f.typeOf.number.greaterThanOrEquals("column",t,0),f.typeOf.number.lessThanOrEquals("column",t,3),4*t+e},t.getColumn=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.number.greaterThanOrEquals("index",e,0),f.typeOf.number.lessThanOrEquals("index",e,3),f.typeOf.object("result",n);let r=4*e,a=t[r],o=t[r+1],u=t[r+2],i=t[r+3];return n.x=a,n.y=o,n.z=u,n.w=i,n},t.setColumn=function(e,n,r,a){f.typeOf.object("matrix",e),f.typeOf.number.greaterThanOrEquals("index",n,0),f.typeOf.number.lessThanOrEquals("index",n,3),f.typeOf.object("cartesian",r),f.typeOf.object("result",a),a=t.clone(e,a);let o=4*n;return a[o]=r.x,a[o+1]=r.y,a[o+2]=r.z,a[o+3]=r.w,a},t.getRow=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.number.greaterThanOrEquals("index",e,0),f.typeOf.number.lessThanOrEquals("index",e,3),f.typeOf.object("result",n);let r=t[e],a=t[e+4],o=t[e+8],u=t[e+12];return n.x=r,n.y=a,n.z=o,n.w=u,n},t.setRow=function(e,n,r,a){return f.typeOf.object("matrix",e),f.typeOf.number.greaterThanOrEquals("index",n,0),f.typeOf.number.lessThanOrEquals("index",n,3),f.typeOf.object("cartesian",r),f.typeOf.object("result",a),a=t.clone(e,a),a[n]=r.x,a[n+4]=r.y,a[n+8]=r.z,a[n+12]=r.w,a},t.setTranslation=function(t,e,n){return f.typeOf.object("matrix",t),f.typeOf.object("translation",e),f.typeOf.object("result",n),n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=e.x,n[13]=e.y,n[14]=e.z,n[15]=t[15],n};var Bn=new L;t.setScale=function(e,n,r){f.typeOf.object("matrix",e),f.typeOf.object("scale",n),f.typeOf.object("result",r);let a=t.getScale(e,Bn),o=n.x/a.x,u=n.y/a.y,i=n.z/a.z;return r[0]=e[0]*o,r[1]=e[1]*o,r[2]=e[2]*o,r[3]=e[3],r[4]=e[4]*u,r[5]=e[5]*u,r[6]=e[6]*u,r[7]=e[7],r[8]=e[8]*i,r[9]=e[9]*i,r[10]=e[10]*i,r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r};var $n=new L;t.setUniformScale=function(e,n,r){f.typeOf.object("matrix",e),f.typeOf.number("scale",n),f.typeOf.object("result",r);let a=t.getScale(e,$n),o=n/a.x,u=n/a.y,i=n/a.z;return r[0]=e[0]*o,r[1]=e[1]*o,r[2]=e[2]*o,r[3]=e[3],r[4]=e[4]*u,r[5]=e[5]*u,r[6]=e[6]*u,r[7]=e[7],r[8]=e[8]*i,r[9]=e[9]*i,r[10]=e[10]*i,r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r};var Tn=new L;t.getScale=function(t,e){return f.typeOf.object("matrix",t),f.typeOf.object("result",e),e.x=L.magnitude(L.fromElements(t[0],t[1],t[2],Tn)),e.y=L.magnitude(L.fromElements(t[4],t[5],t[6],Tn)),e.z=L.magnitude(L.fromElements(t[8],t[9],t[10],Tn)),e};var qn=new L;t.getMaximumScale=function(e){return t.getScale(e,qn),L.maximumComponent(qn)};var Yn=new L;t.setRotation=function(e,n,r){f.typeOf.object("matrix",e),f.typeOf.object("result",r);let a=t.getScale(e,Yn);return r[0]=n[0]*a.x,r[1]=n[1]*a.x,r[2]=n[2]*a.x,r[3]=e[3],r[4]=n[3]*a.y,r[5]=n[4]*a.y,r[6]=n[5]*a.y,r[7]=e[7],r[8]=n[6]*a.z,r[9]=n[7]*a.z,r[10]=n[8]*a.z,r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r};var Zn=new L;t.getRotation=function(e,n){f.typeOf.object("matrix",e),f.typeOf.object("result",n);let r=t.getScale(e,Zn);return n[0]=e[0]/r.x,n[1]=e[1]/r.x,n[2]=e[2]/r.x,n[3]=e[4]/r.y,n[4]=e[5]/r.y,n[5]=e[6]/r.y,n[6]=e[8]/r.z,n[7]=e[9]/r.z,n[8]=e[10]/r.z,n},t.multiply=function(t,e,n){f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n);let r=t[0],a=t[1],o=t[2],u=t[3],i=t[4],c=t[5],s=t[6],l=t[7],y=t[8],p=t[9],b=t[10],O=t[11],h=t[12],m=t[13],w=t[14],j=t[15],x=e[0],g=e[1],M=e[2],d=e[3],z=e[4],T=e[5],E=e[6],q=e[7],L=e[8],A=e[9],I=e[10],N=e[11],P=e[12],v=e[13],C=e[14],R=e[15],_=r*x+i*g+y*M+h*d,S=a*x+c*g+p*M+m*d,U=o*x+s*g+b*M+w*d,W=u*x+l*g+O*M+j*d,k=r*z+i*T+y*E+h*q,V=a*z+c*T+p*E+m*q,B=o*z+s*T+b*E+w*q,$=u*z+l*T+O*E+j*q,Q=r*L+i*A+y*I+h*N,X=a*L+c*A+p*I+m*N,H=o*L+s*A+b*I+w*N,J=u*L+l*A+O*I+j*N,Y=r*P+i*v+y*C+h*R,Z=a*P+c*v+p*C+m*R,D=o*P+s*v+b*C+w*R,F=u*P+l*v+O*C+j*R;return n[0]=_,n[1]=S,n[2]=U,n[3]=W,n[4]=k,n[5]=V,n[6]=B,n[7]=$,n[8]=Q,n[9]=X,n[10]=H,n[11]=J,n[12]=Y,n[13]=Z,n[14]=D,n[15]=F,n},t.add=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n[0]=t[0]+e[0],n[1]=t[1]+e[1],n[2]=t[2]+e[2],n[3]=t[3]+e[3],n[4]=t[4]+e[4],n[5]=t[5]+e[5],n[6]=t[6]+e[6],n[7]=t[7]+e[7],n[8]=t[8]+e[8],n[9]=t[9]+e[9],n[10]=t[10]+e[10],n[11]=t[11]+e[11],n[12]=t[12]+e[12],n[13]=t[13]+e[13],n[14]=t[14]+e[14],n[15]=t[15]+e[15],n},t.subtract=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n[0]=t[0]-e[0],n[1]=t[1]-e[1],n[2]=t[2]-e[2],n[3]=t[3]-e[3],n[4]=t[4]-e[4],n[5]=t[5]-e[5],n[6]=t[6]-e[6],n[7]=t[7]-e[7],n[8]=t[8]-e[8],n[9]=t[9]-e[9],n[10]=t[10]-e[10],n[11]=t[11]-e[11],n[12]=t[12]-e[12],n[13]=t[13]-e[13],n[14]=t[14]-e[14],n[15]=t[15]-e[15],n},t.multiplyTransformation=function(t,e,n){f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n);let r=t[0],a=t[1],o=t[2],u=t[4],i=t[5],c=t[6],s=t[8],l=t[9],y=t[10],p=t[12],b=t[13],O=t[14],h=e[0],m=e[1],w=e[2],j=e[4],x=e[5],g=e[6],M=e[8],d=e[9],z=e[10],T=e[12],E=e[13],q=e[14],L=r*h+u*m+s*w,A=a*h+i*m+l*w,I=o*h+c*m+y*w,N=r*j+u*x+s*g,P=a*j+i*x+l*g,v=o*j+c*x+y*g,C=r*M+u*d+s*z,R=a*M+i*d+l*z,_=o*M+c*d+y*z,S=r*T+u*E+s*q+p,U=a*T+i*E+l*q+b,W=o*T+c*E+y*q+O;return n[0]=L,n[1]=A,n[2]=I,n[3]=0,n[4]=N,n[5]=P,n[6]=v,n[7]=0,n[8]=C,n[9]=R,n[10]=_,n[11]=0,n[12]=S,n[13]=U,n[14]=W,n[15]=1,n},t.multiplyByMatrix3=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.object("rotation",e),f.typeOf.object("result",n);let r=t[0],a=t[1],o=t[2],u=t[4],i=t[5],c=t[6],s=t[8],l=t[9],y=t[10],p=e[0],b=e[1],O=e[2],h=e[3],m=e[4],w=e[5],j=e[6],x=e[7],g=e[8],M=r*p+u*b+s*O,d=a*p+i*b+l*O,z=o*p+c*b+y*O,T=r*h+u*m+s*w,E=a*h+i*m+l*w,q=o*h+c*m+y*w,L=r*j+u*x+s*g,A=a*j+i*x+l*g,I=o*j+c*x+y*g;return n[0]=M,n[1]=d,n[2]=z,n[3]=0,n[4]=T,n[5]=E,n[6]=q,n[7]=0,n[8]=L,n[9]=A,n[10]=I,n[11]=0,n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n},t.multiplyByTranslation=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.object("translation",e),f.typeOf.object("result",n);let r=e.x,a=e.y,o=e.z,u=r*t[0]+a*t[4]+o*t[8]+t[12],i=r*t[1]+a*t[5]+o*t[9]+t[13],c=r*t[2]+a*t[6]+o*t[10]+t[14];return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=u,n[13]=i,n[14]=c,n[15]=t[15],n},t.multiplyByScale=function(e,n,r){f.typeOf.object("matrix",e),f.typeOf.object("scale",n),f.typeOf.object("result",r);let a=n.x,o=n.y,u=n.z;return 1===a&&1===o&&1===u?t.clone(e,r):(r[0]=a*e[0],r[1]=a*e[1],r[2]=a*e[2],r[3]=e[3],r[4]=o*e[4],r[5]=o*e[5],r[6]=o*e[6],r[7]=e[7],r[8]=u*e[8],r[9]=u*e[9],r[10]=u*e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r)},t.multiplyByUniformScale=function(t,e,n){return f.typeOf.object("matrix",t),f.typeOf.number("scale",e),f.typeOf.object("result",n),n[0]=t[0]*e,n[1]=t[1]*e,n[2]=t[2]*e,n[3]=t[3],n[4]=t[4]*e,n[5]=t[5]*e,n[6]=t[6]*e,n[7]=t[7],n[8]=t[8]*e,n[9]=t[9]*e,n[10]=t[10]*e,n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n},t.multiplyByVector=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.object("cartesian",e),f.typeOf.object("result",n);let r=e.x,a=e.y,o=e.z,u=e.w,i=t[0]*r+t[4]*a+t[8]*o+t[12]*u,c=t[1]*r+t[5]*a+t[9]*o+t[13]*u,s=t[2]*r+t[6]*a+t[10]*o+t[14]*u,l=t[3]*r+t[7]*a+t[11]*o+t[15]*u;return n.x=i,n.y=c,n.z=s,n.w=l,n},t.multiplyByPointAsVector=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.object("cartesian",e),f.typeOf.object("result",n);let r=e.x,a=e.y,o=e.z,u=t[0]*r+t[4]*a+t[8]*o,i=t[1]*r+t[5]*a+t[9]*o,c=t[2]*r+t[6]*a+t[10]*o;return n.x=u,n.y=i,n.z=c,n},t.multiplyByPoint=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.object("cartesian",e),f.typeOf.object("result",n);let r=e.x,a=e.y,o=e.z,u=t[0]*r+t[4]*a+t[8]*o+t[12],i=t[1]*r+t[5]*a+t[9]*o+t[13],c=t[2]*r+t[6]*a+t[10]*o+t[14];return n.x=u,n.y=i,n.z=c,n},t.multiplyByScalar=function(t,e,n){return f.typeOf.object("matrix",t),f.typeOf.number("scalar",e),f.typeOf.object("result",n),n[0]=t[0]*e,n[1]=t[1]*e,n[2]=t[2]*e,n[3]=t[3]*e,n[4]=t[4]*e,n[5]=t[5]*e,n[6]=t[6]*e,n[7]=t[7]*e,n[8]=t[8]*e,n[9]=t[9]*e,n[10]=t[10]*e,n[11]=t[11]*e,n[12]=t[12]*e,n[13]=t[13]*e,n[14]=t[14]*e,n[15]=t[15]*e,n},t.negate=function(t,e){return f.typeOf.object("matrix",t),f.typeOf.object("result",e),e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e[4]=-t[4],e[5]=-t[5],e[6]=-t[6],e[7]=-t[7],e[8]=-t[8],e[9]=-t[9],e[10]=-t[10],e[11]=-t[11],e[12]=-t[12],e[13]=-t[13],e[14]=-t[14],e[15]=-t[15],e},t.transpose=function(t,e){f.typeOf.object("matrix",t),f.typeOf.object("result",e);let n=t[1],r=t[2],a=t[3],o=t[6],u=t[7],i=t[11];return e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=o,e[10]=t[10],e[11]=t[14],e[12]=a,e[13]=u,e[14]=i,e[15]=t[15],e},t.abs=function(t,e){return f.typeOf.object("matrix",t),f.typeOf.object("result",e),e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e[3]=Math.abs(t[3]),e[4]=Math.abs(t[4]),e[5]=Math.abs(t[5]),e[6]=Math.abs(t[6]),e[7]=Math.abs(t[7]),e[8]=Math.abs(t[8]),e[9]=Math.abs(t[9]),e[10]=Math.abs(t[10]),e[11]=Math.abs(t[11]),e[12]=Math.abs(t[12]),e[13]=Math.abs(t[13]),e[14]=Math.abs(t[14]),e[15]=Math.abs(t[15]),e},t.equals=function(t,e){return t===e||M(t)&&M(e)&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[3]===e[3]&&t[7]===e[7]&&t[11]===e[11]&&t[15]===e[15]},t.equalsEpsilon=function(t,e,n){return n=T(n,0),t===e||M(t)&&M(e)&&Math.abs(t[0]-e[0])<=n&&Math.abs(t[1]-e[1])<=n&&Math.abs(t[2]-e[2])<=n&&Math.abs(t[3]-e[3])<=n&&Math.abs(t[4]-e[4])<=n&&Math.abs(t[5]-e[5])<=n&&Math.abs(t[6]-e[6])<=n&&Math.abs(t[7]-e[7])<=n&&Math.abs(t[8]-e[8])<=n&&Math.abs(t[9]-e[9])<=n&&Math.abs(t[10]-e[10])<=n&&Math.abs(t[11]-e[11])<=n&&Math.abs(t[12]-e[12])<=n&&Math.abs(t[13]-e[13])<=n&&Math.abs(t[14]-e[14])<=n&&Math.abs(t[15]-e[15])<=n},t.getTranslation=function(t,e){return f.typeOf.object("matrix",t),f.typeOf.object("result",e),e.x=t[12],e.y=t[13],e.z=t[14],e},t.getMatrix3=function(t,e){return f.typeOf.object("matrix",t),f.typeOf.object("result",e),e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e};var In=new cn,Dn=new cn,Gn=new pn,Qn=new pn(0,0,0,1);t.inverse=function(e,n){f.typeOf.object("matrix",e),f.typeOf.object("result",n);let r=e[0],a=e[4],o=e[8],u=e[12],i=e[1],c=e[5],s=e[9],l=e[13],y=e[2],p=e[6],b=e[10],O=e[14],h=e[3],m=e[7],w=e[11],j=e[15],x=b*j,g=O*w,M=p*j,d=O*m,z=p*w,T=b*m,q=y*j,L=O*h,A=y*w,I=b*h,N=y*m,P=p*h,v=x*c+d*s+z*l-(g*c+M*s+T*l),C=g*i+q*s+I*l-(x*i+L*s+A*l),R=M*i+L*c+N*l-(d*i+q*c+P*l),_=T*i+A*c+P*s-(z*i+I*c+N*s),S=g*a+M*o+T*u-(x*a+d*o+z*u),U=x*r+L*o+A*u-(g*r+q*o+I*u),W=d*r+q*a+P*u-(M*r+L*a+N*u),k=z*r+I*a+N*o-(T*r+A*a+P*o);x=o*l,g=u*s,M=a*l,d=u*c,z=a*s,T=o*c,q=r*l,L=u*i,A=r*s,I=o*i,N=r*c,P=a*i;let V=x*m+d*w+z*j-(g*m+M*w+T*j),B=g*h+q*w+I*j-(x*h+L*w+A*j),$=M*h+L*m+N*j-(d*h+q*m+P*j),Q=T*h+A*m+P*w-(z*h+I*m+N*w),X=M*b+T*O+g*p-(z*O+x*p+d*b),H=A*O+x*y+L*b-(q*b+I*O+g*y),J=q*p+P*O+d*y-(N*O+M*y+L*p),Y=N*b+z*y+I*p-(A*p+P*b+T*y),Z=r*v+a*C+o*R+u*_;if(Math.abs(Z)<E.EPSILON21){if(cn.equalsEpsilon(t.getMatrix3(e,In),Dn,E.EPSILON7)&&pn.equals(t.getRow(e,3,Gn),Qn))return n[0]=0,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=0,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=0,n[11]=0,n[12]=-e[12],n[13]=-e[13],n[14]=-e[14],n[15]=1,n;throw new Rn("matrix is not invertible because its determinate is zero.")}return Z=1/Z,n[0]=v*Z,n[1]=C*Z,n[2]=R*Z,n[3]=_*Z,n[4]=S*Z,n[5]=U*Z,n[6]=W*Z,n[7]=k*Z,n[8]=V*Z,n[9]=B*Z,n[10]=$*Z,n[11]=Q*Z,n[12]=X*Z,n[13]=H*Z,n[14]=J*Z,n[15]=Y*Z,n},t.inverseTransformation=function(t,e){f.typeOf.object("matrix",t),f.typeOf.object("result",e);let n=t[0],r=t[1],a=t[2],o=t[4],u=t[5],i=t[6],c=t[8],s=t[9],l=t[10],y=t[12],p=t[13],b=t[14],O=-n*y-r*p-a*b,h=-o*y-u*p-i*b,m=-c*y-s*p-l*b;return e[0]=n,e[1]=o,e[2]=c,e[3]=0,e[4]=r,e[5]=u,e[6]=s,e[7]=0,e[8]=a,e[9]=i,e[10]=l,e[11]=0,e[12]=O,e[13]=h,e[14]=m,e[15]=1,e};var Hn=new t;t.inverseTranspose=function(e,n){return f.typeOf.object("matrix",e),f.typeOf.object("result",n),t.inverse(t.transpose(e,Hn),n)},t.IDENTITY=Object.freeze(new t(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)),t.ZERO=Object.freeze(new t(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)),t.COLUMN0ROW0=0,t.COLUMN0ROW1=1,t.COLUMN0ROW2=2,t.COLUMN0ROW3=3,t.COLUMN1ROW0=4,t.COLUMN1ROW1=5,t.COLUMN1ROW2=6,t.COLUMN1ROW3=7,t.COLUMN2ROW0=8,t.COLUMN2ROW1=9,t.COLUMN2ROW2=10,t.COLUMN2ROW3=11,t.COLUMN3ROW0=12,t.COLUMN3ROW1=13,t.COLUMN3ROW2=14,t.COLUMN3ROW3=15,Object.defineProperties(t.prototype,{length:{get:function(){return t.packedLength}}}),t.prototype.clone=function(e){return t.clone(this,e)},t.prototype.equals=function(e){return t.equals(this,e)},t.equalsArray=function(t,e,n){return t[0]===e[n]&&t[1]===e[n+1]&&t[2]===e[n+2]&&t[3]===e[n+3]&&t[4]===e[n+4]&&t[5]===e[n+5]&&t[6]===e[n+6]&&t[7]===e[n+7]&&t[8]===e[n+8]&&t[9]===e[n+9]&&t[10]===e[n+10]&&t[11]===e[n+11]&&t[12]===e[n+12]&&t[13]===e[n+13]&&t[14]===e[n+14]&&t[15]===e[n+15]},t.prototype.equalsEpsilon=function(e,n){return t.equalsEpsilon(this,e,n)},t.prototype.toString=function(){return`(${this[0]}, ${this[4]}, ${this[8]}, ${this[12]})\n(${this[1]}, ${this[5]}, ${this[9]}, ${this[13]})\n(${this[2]}, ${this[6]}, ${this[10]}, ${this[14]})\n(${this[3]}, ${this[7]}, ${this[11]}, ${this[15]})`};var ho=t;function q(t,e,n,r){this.west=T(t,0),this.south=T(e,0),this.east=T(n,0),this.north=T(r,0)}Object.defineProperties(q.prototype,{width:{get:function(){return q.computeWidth(this)}},height:{get:function(){return q.computeHeight(this)}}}),q.packedLength=4,q.pack=function(t,e,n){return f.typeOf.object("value",t),f.defined("array",e),n=T(n,0),e[n++]=t.west,e[n++]=t.south,e[n++]=t.east,e[n]=t.north,e},q.unpack=function(t,e,n){return f.defined("array",t),e=T(e,0),M(n)||(n=new q),n.west=t[e++],n.south=t[e++],n.east=t[e++],n.north=t[e],n},q.computeWidth=function(t){f.typeOf.object("rectangle",t);let e=t.east,n=t.west;return e<n&&(e+=E.TWO_PI),e-n},q.computeHeight=function(t){return f.typeOf.object("rectangle",t),t.north-t.south},q.fromDegrees=function(t,e,n,r,f){return t=E.toRadians(T(t,0)),e=E.toRadians(T(e,0)),n=E.toRadians(T(n,0)),r=E.toRadians(T(r,0)),M(f)?(f.west=t,f.south=e,f.east=n,f.north=r,f):new q(t,e,n,r)},q.fromRadians=function(t,e,n,r,f){return M(f)?(f.west=T(t,0),f.south=T(e,0),f.east=T(n,0),f.north=T(r,0),f):new q(t,e,n,r)},q.fromCartographicArray=function(t,e){f.defined("cartographics",t);let n=Number.MAX_VALUE,r=-Number.MAX_VALUE,a=Number.MAX_VALUE,o=-Number.MAX_VALUE,u=Number.MAX_VALUE,i=-Number.MAX_VALUE;for(let f=0,c=t.length;f<c;f++){let e=t[f];n=Math.min(n,e.longitude),r=Math.max(r,e.longitude),u=Math.min(u,e.latitude),i=Math.max(i,e.latitude);let c=e.longitude>=0?e.longitude:e.longitude+E.TWO_PI;a=Math.min(a,c),o=Math.max(o,c)}return r-n>o-a&&(n=a,r=o,r>E.PI&&(r-=E.TWO_PI),n>E.PI&&(n-=E.TWO_PI)),M(e)?(e.west=n,e.south=u,e.east=r,e.north=i,e):new q(n,u,r,i)},q.fromCartesianArray=function(t,e,n){f.defined("cartesians",t),e=T(e,dn.WGS84);let r=Number.MAX_VALUE,a=-Number.MAX_VALUE,o=Number.MAX_VALUE,u=-Number.MAX_VALUE,i=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(let f=0,s=t.length;f<s;f++){let n=e.cartesianToCartographic(t[f]);r=Math.min(r,n.longitude),a=Math.max(a,n.longitude),i=Math.min(i,n.latitude),c=Math.max(c,n.latitude);let s=n.longitude>=0?n.longitude:n.longitude+E.TWO_PI;o=Math.min(o,s),u=Math.max(u,s)}return a-r>u-o&&(r=o,a=u,a>E.PI&&(a-=E.TWO_PI),r>E.PI&&(r-=E.TWO_PI)),M(n)?(n.west=r,n.south=i,n.east=a,n.north=c,n):new q(r,i,a,c)},q.clone=function(t,e){if(M(t))return M(e)?(e.west=t.west,e.south=t.south,e.east=t.east,e.north=t.north,e):new q(t.west,t.south,t.east,t.north)},q.equalsEpsilon=function(t,e,n){return n=T(n,0),t===e||M(t)&&M(e)&&Math.abs(t.west-e.west)<=n&&Math.abs(t.south-e.south)<=n&&Math.abs(t.east-e.east)<=n&&Math.abs(t.north-e.north)<=n},q.prototype.clone=function(t){return q.clone(this,t)},q.prototype.equals=function(t){return q.equals(this,t)},q.equals=function(t,e){return t===e||M(t)&&M(e)&&t.west===e.west&&t.south===e.south&&t.east===e.east&&t.north===e.north},q.prototype.equalsEpsilon=function(t,e){return q.equalsEpsilon(this,t,e)},q.validate=function(t){f.typeOf.object("rectangle",t);let e=t.north;f.typeOf.number.greaterThanOrEquals("north",e,-E.PI_OVER_TWO),f.typeOf.number.lessThanOrEquals("north",e,E.PI_OVER_TWO);let n=t.south;f.typeOf.number.greaterThanOrEquals("south",n,-E.PI_OVER_TWO),f.typeOf.number.lessThanOrEquals("south",n,E.PI_OVER_TWO);let r=t.west;f.typeOf.number.greaterThanOrEquals("west",r,-Math.PI),f.typeOf.number.lessThanOrEquals("west",r,Math.PI);let a=t.east;f.typeOf.number.greaterThanOrEquals("east",a,-Math.PI),f.typeOf.number.lessThanOrEquals("east",a,Math.PI)},q.southwest=function(t,e){return f.typeOf.object("rectangle",t),M(e)?(e.longitude=t.west,e.latitude=t.south,e.height=0,e):new x(t.west,t.south)},q.northwest=function(t,e){return f.typeOf.object("rectangle",t),M(e)?(e.longitude=t.west,e.latitude=t.north,e.height=0,e):new x(t.west,t.north)},q.northeast=function(t,e){return f.typeOf.object("rectangle",t),M(e)?(e.longitude=t.east,e.latitude=t.north,e.height=0,e):new x(t.east,t.north)},q.southeast=function(t,e){return f.typeOf.object("rectangle",t),M(e)?(e.longitude=t.east,e.latitude=t.south,e.height=0,e):new x(t.east,t.south)},q.center=function(t,e){f.typeOf.object("rectangle",t);let n=t.east,r=t.west;n<r&&(n+=E.TWO_PI);let a=E.negativePiToPi(.5*(r+n)),o=.5*(t.south+t.north);return M(e)?(e.longitude=a,e.latitude=o,e.height=0,e):new x(a,o)},q.intersection=function(t,e,n){f.typeOf.object("rectangle",t),f.typeOf.object("otherRectangle",e);let r=t.east,a=t.west,o=e.east,u=e.west;r<a&&o>0?r+=E.TWO_PI:o<u&&r>0&&(o+=E.TWO_PI),r<a&&u<0?u+=E.TWO_PI:o<u&&a<0&&(a+=E.TWO_PI);let i=E.negativePiToPi(Math.max(a,u)),c=E.negativePiToPi(Math.min(r,o));if((t.west<t.east||e.west<e.east)&&c<=i)return;let s=Math.max(t.south,e.south),l=Math.min(t.north,e.north);return s>=l?void 0:M(n)?(n.west=i,n.south=s,n.east=c,n.north=l,n):new q(i,s,c,l)},q.simpleIntersection=function(t,e,n){f.typeOf.object("rectangle",t),f.typeOf.object("otherRectangle",e);let r=Math.max(t.west,e.west),a=Math.max(t.south,e.south),o=Math.min(t.east,e.east),u=Math.min(t.north,e.north);if(!(a>=u||r>=o))return M(n)?(n.west=r,n.south=a,n.east=o,n.north=u,n):new q(r,a,o,u)},q.union=function(t,e,n){f.typeOf.object("rectangle",t),f.typeOf.object("otherRectangle",e),M(n)||(n=new q);let r=t.east,a=t.west,o=e.east,u=e.west;r<a&&o>0?r+=E.TWO_PI:o<u&&r>0&&(o+=E.TWO_PI),r<a&&u<0?u+=E.TWO_PI:o<u&&a<0&&(a+=E.TWO_PI);let i=E.negativePiToPi(Math.min(a,u)),c=E.negativePiToPi(Math.max(r,o));return n.west=i,n.south=Math.min(t.south,e.south),n.east=c,n.north=Math.max(t.north,e.north),n},q.expand=function(t,e,n){return f.typeOf.object("rectangle",t),f.typeOf.object("cartographic",e),M(n)||(n=new q),n.west=Math.min(t.west,e.longitude),n.south=Math.min(t.south,e.latitude),n.east=Math.max(t.east,e.longitude),n.north=Math.max(t.north,e.latitude),n},q.contains=function(t,e){f.typeOf.object("rectangle",t),f.typeOf.object("cartographic",e);let n=e.longitude,r=e.latitude,a=t.west,o=t.east;return o<a&&(o+=E.TWO_PI,n<0&&(n+=E.TWO_PI)),(n>a||E.equalsEpsilon(n,a,E.EPSILON14))&&(n<o||E.equalsEpsilon(n,o,E.EPSILON14))&&r>=t.south&&r<=t.north};var Jn=new x;q.subsample=function(t,e,n,r){f.typeOf.object("rectangle",t),e=T(e,dn.WGS84),n=T(n,0),M(r)||(r=[]);let a=0,o=t.north,u=t.south,i=t.east,c=t.west,s=Jn;s.height=n,s.longitude=c,s.latitude=o,r[a]=e.cartographicToCartesian(s,r[a]),a++,s.longitude=i,r[a]=e.cartographicToCartesian(s,r[a]),a++,s.latitude=u,r[a]=e.cartographicToCartesian(s,r[a]),a++,s.longitude=c,r[a]=e.cartographicToCartesian(s,r[a]),a++,s.latitude=o<0?o:u>0?u:0;for(let f=1;f<8;++f)s.longitude=-Math.PI+f*E.PI_OVER_TWO,q.contains(t,s)&&(r[a]=e.cartographicToCartesian(s,r[a]),a++);return 0===s.latitude&&(s.longitude=c,r[a]=e.cartographicToCartesian(s,r[a]),a++,s.longitude=i,r[a]=e.cartographicToCartesian(s,r[a]),a++),r.length=a,r},q.subsection=function(t,e,n,r,a,o){if(f.typeOf.object("rectangle",t),f.typeOf.number.greaterThanOrEquals("westLerp",e,0),f.typeOf.number.lessThanOrEquals("westLerp",e,1),f.typeOf.number.greaterThanOrEquals("southLerp",n,0),f.typeOf.number.lessThanOrEquals("southLerp",n,1),f.typeOf.number.greaterThanOrEquals("eastLerp",r,0),f.typeOf.number.lessThanOrEquals("eastLerp",r,1),f.typeOf.number.greaterThanOrEquals("northLerp",a,0),f.typeOf.number.lessThanOrEquals("northLerp",a,1),f.typeOf.number.lessThanOrEquals("westLerp",e,r),f.typeOf.number.lessThanOrEquals("southLerp",n,a),M(o)||(o=new q),t.west<=t.east){let n=t.east-t.west;o.west=t.west+e*n,o.east=t.west+r*n}else{let n=E.TWO_PI+t.east-t.west;o.west=E.negativePiToPi(t.west+e*n),o.east=E.negativePiToPi(t.west+r*n)}let u=t.north-t.south;return o.south=t.south+n*u,o.north=t.south+a*u,1===e&&(o.west=t.east),1===r&&(o.east=t.east),1===n&&(o.south=t.north),1===a&&(o.north=t.north),o},q.MAX_VALUE=Object.freeze(new q(-Math.PI,-E.PI_OVER_TWO,Math.PI,E.PI_OVER_TWO));var mo=q;function w(t,e){this.x=T(t,0),this.y=T(e,0)}w.fromElements=function(t,e,n){return M(n)?(n.x=t,n.y=e,n):new w(t,e)},w.clone=function(t,e){if(M(t))return M(e)?(e.x=t.x,e.y=t.y,e):new w(t.x,t.y)},w.fromCartesian3=w.clone,w.fromCartesian4=w.clone,w.packedLength=2,w.pack=function(t,e,n){return f.typeOf.object("value",t),f.defined("array",e),n=T(n,0),e[n++]=t.x,e[n]=t.y,e},w.unpack=function(t,e,n){return f.defined("array",t),e=T(e,0),M(n)||(n=new w),n.x=t[e++],n.y=t[e],n},w.packArray=function(t,e){f.defined("array",t);let n=t.length,r=2*n;if(M(e)){if(!Array.isArray(e)&&e.length!==r)throw new H("If result is a typed array, it must have exactly array.length * 2 elements");e.length!==r&&(e.length=r)}else e=new Array(r);for(let f=0;f<n;++f)w.pack(t[f],e,2*f);return e},w.unpackArray=function(t,e){if(f.defined("array",t),f.typeOf.number.greaterThanOrEquals("array.length",t.length,2),t.length%2!==0)throw new H("array length must be a multiple of 2.");let n=t.length;M(e)?e.length=n/2:e=new Array(n/2);for(let r=0;r<n;r+=2){let n=r/2;e[n]=w.unpack(t,r,e[n])}return e},w.fromArray=w.unpack,w.maximumComponent=function(t){return f.typeOf.object("cartesian",t),Math.max(t.x,t.y)},w.minimumComponent=function(t){return f.typeOf.object("cartesian",t),Math.min(t.x,t.y)},w.minimumByComponent=function(t,e,n){return f.typeOf.object("first",t),f.typeOf.object("second",e),f.typeOf.object("result",n),n.x=Math.min(t.x,e.x),n.y=Math.min(t.y,e.y),n},w.maximumByComponent=function(t,e,n){return f.typeOf.object("first",t),f.typeOf.object("second",e),f.typeOf.object("result",n),n.x=Math.max(t.x,e.x),n.y=Math.max(t.y,e.y),n},w.clamp=function(t,e,n,r){f.typeOf.object("value",t),f.typeOf.object("min",e),f.typeOf.object("max",n),f.typeOf.object("result",r);let a=E.clamp(t.x,e.x,n.x),o=E.clamp(t.y,e.y,n.y);return r.x=a,r.y=o,r},w.magnitudeSquared=function(t){return f.typeOf.object("cartesian",t),t.x*t.x+t.y*t.y},w.magnitude=function(t){return Math.sqrt(w.magnitudeSquared(t))};var On=new w;w.distance=function(t,e){return f.typeOf.object("left",t),f.typeOf.object("right",e),w.subtract(t,e,On),w.magnitude(On)},w.distanceSquared=function(t,e){return f.typeOf.object("left",t),f.typeOf.object("right",e),w.subtract(t,e,On),w.magnitudeSquared(On)},w.normalize=function(t,e){f.typeOf.object("cartesian",t),f.typeOf.object("result",e);let n=w.magnitude(t);if(e.x=t.x/n,e.y=t.y/n,isNaN(e.x)||isNaN(e.y))throw new H("normalized result is not a number");return e},w.dot=function(t,e){return f.typeOf.object("left",t),f.typeOf.object("right",e),t.x*e.x+t.y*e.y},w.cross=function(t,e){return f.typeOf.object("left",t),f.typeOf.object("right",e),t.x*e.y-t.y*e.x},w.multiplyComponents=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n.x=t.x*e.x,n.y=t.y*e.y,n},w.divideComponents=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n.x=t.x/e.x,n.y=t.y/e.y,n},w.add=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n.x=t.x+e.x,n.y=t.y+e.y,n},w.subtract=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n.x=t.x-e.x,n.y=t.y-e.y,n},w.multiplyByScalar=function(t,e,n){return f.typeOf.object("cartesian",t),f.typeOf.number("scalar",e),f.typeOf.object("result",n),n.x=t.x*e,n.y=t.y*e,n},w.divideByScalar=function(t,e,n){return f.typeOf.object("cartesian",t),f.typeOf.number("scalar",e),f.typeOf.object("result",n),n.x=t.x/e,n.y=t.y/e,n},w.negate=function(t,e){return f.typeOf.object("cartesian",t),f.typeOf.object("result",e),e.x=-t.x,e.y=-t.y,e},w.abs=function(t,e){return f.typeOf.object("cartesian",t),f.typeOf.object("result",e),e.x=Math.abs(t.x),e.y=Math.abs(t.y),e};var An=new w;w.lerp=function(t,e,n,r){return f.typeOf.object("start",t),f.typeOf.object("end",e),f.typeOf.number("t",n),f.typeOf.object("result",r),w.multiplyByScalar(e,n,An),r=w.multiplyByScalar(t,1-n,r),w.add(An,r,r)};var Cn=new w,Sn=new w;w.angleBetween=function(t,e){return f.typeOf.object("left",t),f.typeOf.object("right",e),w.normalize(t,Cn),w.normalize(e,Sn),E.acosClamped(w.dot(Cn,Sn))};var Kn=new w;w.mostOrthogonalAxis=function(t,e){f.typeOf.object("cartesian",t),f.typeOf.object("result",e);let n=w.normalize(t,Kn);return w.abs(n,n),e=n.x<=n.y?w.clone(w.UNIT_X,e):w.clone(w.UNIT_Y,e),e},w.equals=function(t,e){return t===e||M(t)&&M(e)&&t.x===e.x&&t.y===e.y},w.equalsArray=function(t,e,n){return t.x===e[n]&&t.y===e[n+1]},w.equalsEpsilon=function(t,e,n,r){return t===e||M(t)&&M(e)&&E.equalsEpsilon(t.x,e.x,n,r)&&E.equalsEpsilon(t.y,e.y,n,r)},w.ZERO=Object.freeze(new w(0,0)),w.ONE=Object.freeze(new w(1,1)),w.UNIT_X=Object.freeze(new w(1,0)),w.UNIT_Y=Object.freeze(new w(0,1)),w.prototype.clone=function(t){return w.clone(this,t)},w.prototype.equals=function(t){return w.equals(this,t)},w.prototype.equalsEpsilon=function(t,e,n){return w.equalsEpsilon(this,t,e,n)},w.prototype.toString=function(){return`(${this.x}, ${this.y})`};var J=w;function z(t,e,n,r){this[0]=T(t,0),this[1]=T(n,0),this[2]=T(e,0),this[3]=T(r,0)}z.packedLength=4,z.pack=function(t,e,n){return f.typeOf.object("value",t),f.defined("array",e),n=T(n,0),e[n++]=t[0],e[n++]=t[1],e[n++]=t[2],e[n++]=t[3],e},z.unpack=function(t,e,n){return f.defined("array",t),e=T(e,0),M(n)||(n=new z),n[0]=t[e++],n[1]=t[e++],n[2]=t[e++],n[3]=t[e++],n},z.packArray=function(t,e){f.defined("array",t);let n=t.length,r=4*n;if(M(e)){if(!Array.isArray(e)&&e.length!==r)throw new H("If result is a typed array, it must have exactly array.length * 4 elements");e.length!==r&&(e.length=r)}else e=new Array(r);for(let f=0;f<n;++f)z.pack(t[f],e,4*f);return e},z.unpackArray=function(t,e){if(f.defined("array",t),f.typeOf.number.greaterThanOrEquals("array.length",t.length,4),t.length%4!==0)throw new H("array length must be a multiple of 4.");let n=t.length;M(e)?e.length=n/4:e=new Array(n/4);for(let r=0;r<n;r+=4){let n=r/4;e[n]=z.unpack(t,r,e[n])}return e},z.clone=function(t,e){if(M(t))return M(e)?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):new z(t[0],t[2],t[1],t[3])},z.fromArray=z.unpack,z.fromColumnMajorArray=function(t,e){return f.defined("values",t),z.clone(t,e)},z.fromRowMajorArray=function(t,e){return f.defined("values",t),M(e)?(e[0]=t[0],e[1]=t[2],e[2]=t[1],e[3]=t[3],e):new z(t[0],t[1],t[2],t[3])},z.fromScale=function(t,e){return f.typeOf.object("scale",t),M(e)?(e[0]=t.x,e[1]=0,e[2]=0,e[3]=t.y,e):new z(t.x,0,0,t.y)},z.fromUniformScale=function(t,e){return f.typeOf.number("scale",t),M(e)?(e[0]=t,e[1]=0,e[2]=0,e[3]=t,e):new z(t,0,0,t)},z.fromRotation=function(t,e){f.typeOf.number("angle",t);let n=Math.cos(t),r=Math.sin(t);return M(e)?(e[0]=n,e[1]=r,e[2]=-r,e[3]=n,e):new z(n,-r,r,n)},z.toArray=function(t,e){return f.typeOf.object("matrix",t),M(e)?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):[t[0],t[1],t[2],t[3]]},z.getElementIndex=function(t,e){return f.typeOf.number.greaterThanOrEquals("row",e,0),f.typeOf.number.lessThanOrEquals("row",e,1),f.typeOf.number.greaterThanOrEquals("column",t,0),f.typeOf.number.lessThanOrEquals("column",t,1),2*t+e},z.getColumn=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.number.greaterThanOrEquals("index",e,0),f.typeOf.number.lessThanOrEquals("index",e,1),f.typeOf.object("result",n);let r=2*e,a=t[r],o=t[r+1];return n.x=a,n.y=o,n},z.setColumn=function(t,e,n,r){f.typeOf.object("matrix",t),f.typeOf.number.greaterThanOrEquals("index",e,0),f.typeOf.number.lessThanOrEquals("index",e,1),f.typeOf.object("cartesian",n),f.typeOf.object("result",r),r=z.clone(t,r);let a=2*e;return r[a]=n.x,r[a+1]=n.y,r},z.getRow=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.number.greaterThanOrEquals("index",e,0),f.typeOf.number.lessThanOrEquals("index",e,1),f.typeOf.object("result",n);let r=t[e],a=t[e+2];return n.x=r,n.y=a,n},z.setRow=function(t,e,n,r){return f.typeOf.object("matrix",t),f.typeOf.number.greaterThanOrEquals("index",e,0),f.typeOf.number.lessThanOrEquals("index",e,1),f.typeOf.object("cartesian",n),f.typeOf.object("result",r),r=z.clone(t,r),r[e]=n.x,r[e+2]=n.y,r};var Fn=new J;z.setScale=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.object("scale",e),f.typeOf.object("result",n);let r=z.getScale(t,Fn),a=e.x/r.x,o=e.y/r.y;return n[0]=t[0]*a,n[1]=t[1]*a,n[2]=t[2]*o,n[3]=t[3]*o,n};var vn=new J;z.setUniformScale=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.number("scale",e),f.typeOf.object("result",n);let r=z.getScale(t,vn),a=e/r.x,o=e/r.y;return n[0]=t[0]*a,n[1]=t[1]*a,n[2]=t[2]*o,n[3]=t[3]*o,n};var Nn=new J;z.getScale=function(t,e){return f.typeOf.object("matrix",t),f.typeOf.object("result",e),e.x=J.magnitude(J.fromElements(t[0],t[1],Nn)),e.y=J.magnitude(J.fromElements(t[2],t[3],Nn)),e};var Pn=new J;z.getMaximumScale=function(t){return z.getScale(t,Pn),J.maximumComponent(Pn)};var gn=new J;z.setRotation=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.object("result",n);let r=z.getScale(t,gn);return n[0]=e[0]*r.x,n[1]=e[1]*r.x,n[2]=e[2]*r.y,n[3]=e[3]*r.y,n};var un=new J;z.getRotation=function(t,e){f.typeOf.object("matrix",t),f.typeOf.object("result",e);let n=z.getScale(t,un);return e[0]=t[0]/n.x,e[1]=t[1]/n.x,e[2]=t[2]/n.y,e[3]=t[3]/n.y,e},z.multiply=function(t,e,n){f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n);let r=t[0]*e[0]+t[2]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[0]+t[3]*e[1],u=t[1]*e[2]+t[3]*e[3];return n[0]=r,n[1]=o,n[2]=a,n[3]=u,n},z.add=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n[0]=t[0]+e[0],n[1]=t[1]+e[1],n[2]=t[2]+e[2],n[3]=t[3]+e[3],n},z.subtract=function(t,e,n){return f.typeOf.object("left",t),f.typeOf.object("right",e),f.typeOf.object("result",n),n[0]=t[0]-e[0],n[1]=t[1]-e[1],n[2]=t[2]-e[2],n[3]=t[3]-e[3],n},z.multiplyByVector=function(t,e,n){f.typeOf.object("matrix",t),f.typeOf.object("cartesian",e),f.typeOf.object("result",n);let r=t[0]*e.x+t[2]*e.y,a=t[1]*e.x+t[3]*e.y;return n.x=r,n.y=a,n},z.multiplyByScalar=function(t,e,n){return f.typeOf.object("matrix",t),f.typeOf.number("scalar",e),f.typeOf.object("result",n),n[0]=t[0]*e,n[1]=t[1]*e,n[2]=t[2]*e,n[3]=t[3]*e,n},z.multiplyByScale=function(t,e,n){return f.typeOf.object("matrix",t),f.typeOf.object("scale",e),f.typeOf.object("result",n),n[0]=t[0]*e.x,n[1]=t[1]*e.x,n[2]=t[2]*e.y,n[3]=t[3]*e.y,n},z.multiplyByUniformScale=function(t,e,n){return f.typeOf.object("matrix",t),f.typeOf.number("scale",e),f.typeOf.object("result",n),n[0]=t[0]*e,n[1]=t[1]*e,n[2]=t[2]*e,n[3]=t[3]*e,n},z.negate=function(t,e){return f.typeOf.object("matrix",t),f.typeOf.object("result",e),e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},z.transpose=function(t,e){f.typeOf.object("matrix",t),f.typeOf.object("result",e);let n=t[0],r=t[2],a=t[1],o=t[3];return e[0]=n,e[1]=r,e[2]=a,e[3]=o,e},z.abs=function(t,e){return f.typeOf.object("matrix",t),f.typeOf.object("result",e),e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e[3]=Math.abs(t[3]),e},z.equals=function(t,e){return t===e||M(t)&&M(e)&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},z.equalsArray=function(t,e,n){return t[0]===e[n]&&t[1]===e[n+1]&&t[2]===e[n+2]&&t[3]===e[n+3]},z.equalsEpsilon=function(t,e,n){return n=T(n,0),t===e||M(t)&&M(e)&&Math.abs(t[0]-e[0])<=n&&Math.abs(t[1]-e[1])<=n&&Math.abs(t[2]-e[2])<=n&&Math.abs(t[3]-e[3])<=n},z.IDENTITY=Object.freeze(new z(1,0,0,1)),z.ZERO=Object.freeze(new z(0,0,0,0)),z.COLUMN0ROW0=0,z.COLUMN0ROW1=1,z.COLUMN1ROW0=2,z.COLUMN1ROW1=3,Object.defineProperties(z.prototype,{length:{get:function(){return z.packedLength}}}),z.prototype.clone=function(t){return z.clone(this,t)},z.prototype.equals=function(t){return z.equals(this,t)},z.prototype.equalsEpsilon=function(t,e){return z.equalsEpsilon(this,t,e)},z.prototype.toString=function(){return`(${this[0]}, ${this[2]})\n(${this[1]}, ${this[3]})`};var Vo=z;export{pn as a,ho as b,mo as c,J as d,Vo as e};