chunk-VGWC3IKZ.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. import {
  2. n
  3. } from "./chunk-TJNOJH33.js";
  4. import {
  5. a
  6. } from "./chunk-OSHI574D.js";
  7. // node_modules/@arcgis/core/chunks/mat4.js
  8. function n2(t, a2) {
  9. return t[0] = a2[0], t[1] = a2[1], t[2] = a2[2], t[3] = a2[3], t[4] = a2[4], t[5] = a2[5], t[6] = a2[6], t[7] = a2[7], t[8] = a2[8], t[9] = a2[9], t[10] = a2[10], t[11] = a2[11], t[12] = a2[12], t[13] = a2[13], t[14] = a2[14], t[15] = a2[15], t;
  10. }
  11. function s(t, a2, n3, s2, r2, o2, h2, e2, M2, u2, c2, i2, f2, b2, l2, m2, x2) {
  12. return t[0] = a2, t[1] = n3, t[2] = s2, t[3] = r2, t[4] = o2, t[5] = h2, t[6] = e2, t[7] = M2, t[8] = u2, t[9] = c2, t[10] = i2, t[11] = f2, t[12] = b2, t[13] = l2, t[14] = m2, t[15] = x2, t;
  13. }
  14. function r(t) {
  15. return t[0] = 1, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = 1, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = 1, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t;
  16. }
  17. function o(t, a2) {
  18. if (t === a2) {
  19. const n3 = a2[1], s2 = a2[2], r2 = a2[3], o2 = a2[6], h2 = a2[7], e2 = a2[11];
  20. t[1] = a2[4], t[2] = a2[8], t[3] = a2[12], t[4] = n3, t[6] = a2[9], t[7] = a2[13], t[8] = s2, t[9] = o2, t[11] = a2[14], t[12] = r2, t[13] = h2, t[14] = e2;
  21. } else
  22. t[0] = a2[0], t[1] = a2[4], t[2] = a2[8], t[3] = a2[12], t[4] = a2[1], t[5] = a2[5], t[6] = a2[9], t[7] = a2[13], t[8] = a2[2], t[9] = a2[6], t[10] = a2[10], t[11] = a2[14], t[12] = a2[3], t[13] = a2[7], t[14] = a2[11], t[15] = a2[15];
  23. return t;
  24. }
  25. function h(t, a2) {
  26. const n3 = a2[0], s2 = a2[1], r2 = a2[2], o2 = a2[3], h2 = a2[4], e2 = a2[5], M2 = a2[6], u2 = a2[7], c2 = a2[8], i2 = a2[9], f2 = a2[10], b2 = a2[11], l2 = a2[12], m2 = a2[13], x2 = a2[14], q2 = a2[15], g2 = n3 * e2 - s2 * h2, p2 = n3 * M2 - r2 * h2, d2 = n3 * u2 - o2 * h2, R2 = s2 * M2 - r2 * e2, S2 = s2 * u2 - o2 * e2, y2 = r2 * u2 - o2 * M2, T2 = c2 * m2 - i2 * l2, j2 = c2 * x2 - f2 * l2, v2 = c2 * q2 - b2 * l2, O2 = i2 * x2 - f2 * m2, P2 = i2 * q2 - b2 * m2, D2 = f2 * q2 - b2 * x2;
  27. let I2 = g2 * D2 - p2 * P2 + d2 * O2 + R2 * v2 - S2 * j2 + y2 * T2;
  28. return I2 ? (I2 = 1 / I2, t[0] = (e2 * D2 - M2 * P2 + u2 * O2) * I2, t[1] = (r2 * P2 - s2 * D2 - o2 * O2) * I2, t[2] = (m2 * y2 - x2 * S2 + q2 * R2) * I2, t[3] = (f2 * S2 - i2 * y2 - b2 * R2) * I2, t[4] = (M2 * v2 - h2 * D2 - u2 * j2) * I2, t[5] = (n3 * D2 - r2 * v2 + o2 * j2) * I2, t[6] = (x2 * d2 - l2 * y2 - q2 * p2) * I2, t[7] = (c2 * y2 - f2 * d2 + b2 * p2) * I2, t[8] = (h2 * P2 - e2 * v2 + u2 * T2) * I2, t[9] = (s2 * v2 - n3 * P2 - o2 * T2) * I2, t[10] = (l2 * S2 - m2 * d2 + q2 * g2) * I2, t[11] = (i2 * d2 - c2 * S2 - b2 * g2) * I2, t[12] = (e2 * j2 - h2 * O2 - M2 * T2) * I2, t[13] = (n3 * O2 - s2 * j2 + r2 * T2) * I2, t[14] = (m2 * p2 - l2 * R2 - x2 * g2) * I2, t[15] = (c2 * R2 - i2 * p2 + f2 * g2) * I2, t) : null;
  29. }
  30. function e(t, a2) {
  31. const n3 = a2[0], s2 = a2[1], r2 = a2[2], o2 = a2[3], h2 = a2[4], e2 = a2[5], M2 = a2[6], u2 = a2[7], c2 = a2[8], i2 = a2[9], f2 = a2[10], b2 = a2[11], l2 = a2[12], m2 = a2[13], x2 = a2[14], q2 = a2[15];
  32. return t[0] = e2 * (f2 * q2 - b2 * x2) - i2 * (M2 * q2 - u2 * x2) + m2 * (M2 * b2 - u2 * f2), t[1] = -(s2 * (f2 * q2 - b2 * x2) - i2 * (r2 * q2 - o2 * x2) + m2 * (r2 * b2 - o2 * f2)), t[2] = s2 * (M2 * q2 - u2 * x2) - e2 * (r2 * q2 - o2 * x2) + m2 * (r2 * u2 - o2 * M2), t[3] = -(s2 * (M2 * b2 - u2 * f2) - e2 * (r2 * b2 - o2 * f2) + i2 * (r2 * u2 - o2 * M2)), t[4] = -(h2 * (f2 * q2 - b2 * x2) - c2 * (M2 * q2 - u2 * x2) + l2 * (M2 * b2 - u2 * f2)), t[5] = n3 * (f2 * q2 - b2 * x2) - c2 * (r2 * q2 - o2 * x2) + l2 * (r2 * b2 - o2 * f2), t[6] = -(n3 * (M2 * q2 - u2 * x2) - h2 * (r2 * q2 - o2 * x2) + l2 * (r2 * u2 - o2 * M2)), t[7] = n3 * (M2 * b2 - u2 * f2) - h2 * (r2 * b2 - o2 * f2) + c2 * (r2 * u2 - o2 * M2), t[8] = h2 * (i2 * q2 - b2 * m2) - c2 * (e2 * q2 - u2 * m2) + l2 * (e2 * b2 - u2 * i2), t[9] = -(n3 * (i2 * q2 - b2 * m2) - c2 * (s2 * q2 - o2 * m2) + l2 * (s2 * b2 - o2 * i2)), t[10] = n3 * (e2 * q2 - u2 * m2) - h2 * (s2 * q2 - o2 * m2) + l2 * (s2 * u2 - o2 * e2), t[11] = -(n3 * (e2 * b2 - u2 * i2) - h2 * (s2 * b2 - o2 * i2) + c2 * (s2 * u2 - o2 * e2)), t[12] = -(h2 * (i2 * x2 - f2 * m2) - c2 * (e2 * x2 - M2 * m2) + l2 * (e2 * f2 - M2 * i2)), t[13] = n3 * (i2 * x2 - f2 * m2) - c2 * (s2 * x2 - r2 * m2) + l2 * (s2 * f2 - r2 * i2), t[14] = -(n3 * (e2 * x2 - M2 * m2) - h2 * (s2 * x2 - r2 * m2) + l2 * (s2 * M2 - r2 * e2)), t[15] = n3 * (e2 * f2 - M2 * i2) - h2 * (s2 * f2 - r2 * i2) + c2 * (s2 * M2 - r2 * e2), t;
  33. }
  34. function M(t) {
  35. const a2 = t[0], n3 = t[1], s2 = t[2], r2 = t[3], o2 = t[4], h2 = t[5], e2 = t[6], M2 = t[7], u2 = t[8], c2 = t[9], i2 = t[10], f2 = t[11], b2 = t[12], l2 = t[13], m2 = t[14], x2 = t[15];
  36. return (a2 * h2 - n3 * o2) * (i2 * x2 - f2 * m2) - (a2 * e2 - s2 * o2) * (c2 * x2 - f2 * l2) + (a2 * M2 - r2 * o2) * (c2 * m2 - i2 * l2) + (n3 * e2 - s2 * h2) * (u2 * x2 - f2 * b2) - (n3 * M2 - r2 * h2) * (u2 * m2 - i2 * b2) + (s2 * M2 - r2 * e2) * (u2 * l2 - c2 * b2);
  37. }
  38. function u(t, a2, n3) {
  39. const s2 = a2[0], r2 = a2[1], o2 = a2[2], h2 = a2[3], e2 = a2[4], M2 = a2[5], u2 = a2[6], c2 = a2[7], i2 = a2[8], f2 = a2[9], b2 = a2[10], l2 = a2[11], m2 = a2[12], x2 = a2[13], q2 = a2[14], g2 = a2[15];
  40. let p2 = n3[0], d2 = n3[1], R2 = n3[2], S2 = n3[3];
  41. return t[0] = p2 * s2 + d2 * e2 + R2 * i2 + S2 * m2, t[1] = p2 * r2 + d2 * M2 + R2 * f2 + S2 * x2, t[2] = p2 * o2 + d2 * u2 + R2 * b2 + S2 * q2, t[3] = p2 * h2 + d2 * c2 + R2 * l2 + S2 * g2, p2 = n3[4], d2 = n3[5], R2 = n3[6], S2 = n3[7], t[4] = p2 * s2 + d2 * e2 + R2 * i2 + S2 * m2, t[5] = p2 * r2 + d2 * M2 + R2 * f2 + S2 * x2, t[6] = p2 * o2 + d2 * u2 + R2 * b2 + S2 * q2, t[7] = p2 * h2 + d2 * c2 + R2 * l2 + S2 * g2, p2 = n3[8], d2 = n3[9], R2 = n3[10], S2 = n3[11], t[8] = p2 * s2 + d2 * e2 + R2 * i2 + S2 * m2, t[9] = p2 * r2 + d2 * M2 + R2 * f2 + S2 * x2, t[10] = p2 * o2 + d2 * u2 + R2 * b2 + S2 * q2, t[11] = p2 * h2 + d2 * c2 + R2 * l2 + S2 * g2, p2 = n3[12], d2 = n3[13], R2 = n3[14], S2 = n3[15], t[12] = p2 * s2 + d2 * e2 + R2 * i2 + S2 * m2, t[13] = p2 * r2 + d2 * M2 + R2 * f2 + S2 * x2, t[14] = p2 * o2 + d2 * u2 + R2 * b2 + S2 * q2, t[15] = p2 * h2 + d2 * c2 + R2 * l2 + S2 * g2, t;
  42. }
  43. function c(t, a2, n3) {
  44. const s2 = n3[0], r2 = n3[1], o2 = n3[2];
  45. if (a2 === t)
  46. t[12] = a2[0] * s2 + a2[4] * r2 + a2[8] * o2 + a2[12], t[13] = a2[1] * s2 + a2[5] * r2 + a2[9] * o2 + a2[13], t[14] = a2[2] * s2 + a2[6] * r2 + a2[10] * o2 + a2[14], t[15] = a2[3] * s2 + a2[7] * r2 + a2[11] * o2 + a2[15];
  47. else {
  48. const n4 = a2[0], h2 = a2[1], e2 = a2[2], M2 = a2[3], u2 = a2[4], c2 = a2[5], i2 = a2[6], f2 = a2[7], b2 = a2[8], l2 = a2[9], m2 = a2[10], x2 = a2[11];
  49. t[0] = n4, t[1] = h2, t[2] = e2, t[3] = M2, t[4] = u2, t[5] = c2, t[6] = i2, t[7] = f2, t[8] = b2, t[9] = l2, t[10] = m2, t[11] = x2, t[12] = n4 * s2 + u2 * r2 + b2 * o2 + a2[12], t[13] = h2 * s2 + c2 * r2 + l2 * o2 + a2[13], t[14] = e2 * s2 + i2 * r2 + m2 * o2 + a2[14], t[15] = M2 * s2 + f2 * r2 + x2 * o2 + a2[15];
  50. }
  51. return t;
  52. }
  53. function i(t, a2, n3) {
  54. const s2 = n3[0], r2 = n3[1], o2 = n3[2];
  55. return t[0] = a2[0] * s2, t[1] = a2[1] * s2, t[2] = a2[2] * s2, t[3] = a2[3] * s2, t[4] = a2[4] * r2, t[5] = a2[5] * r2, t[6] = a2[6] * r2, t[7] = a2[7] * r2, t[8] = a2[8] * o2, t[9] = a2[9] * o2, t[10] = a2[10] * o2, t[11] = a2[11] * o2, t[12] = a2[12], t[13] = a2[13], t[14] = a2[14], t[15] = a2[15], t;
  56. }
  57. function f(t, n3, s2, r2) {
  58. let o2, h2, e2, M2, u2, c2, i2, f2, b2, l2, m2, x2, q2, g2, p2, d2, R2, S2, y2, T2, j2, v2, O2, P2, D2 = r2[0], I2 = r2[1], A2 = r2[2], _2 = Math.sqrt(D2 * D2 + I2 * I2 + A2 * A2);
  59. return _2 < a() ? null : (_2 = 1 / _2, D2 *= _2, I2 *= _2, A2 *= _2, o2 = Math.sin(s2), h2 = Math.cos(s2), e2 = 1 - h2, M2 = n3[0], u2 = n3[1], c2 = n3[2], i2 = n3[3], f2 = n3[4], b2 = n3[5], l2 = n3[6], m2 = n3[7], x2 = n3[8], q2 = n3[9], g2 = n3[10], p2 = n3[11], d2 = D2 * D2 * e2 + h2, R2 = I2 * D2 * e2 + A2 * o2, S2 = A2 * D2 * e2 - I2 * o2, y2 = D2 * I2 * e2 - A2 * o2, T2 = I2 * I2 * e2 + h2, j2 = A2 * I2 * e2 + D2 * o2, v2 = D2 * A2 * e2 + I2 * o2, O2 = I2 * A2 * e2 - D2 * o2, P2 = A2 * A2 * e2 + h2, t[0] = M2 * d2 + f2 * R2 + x2 * S2, t[1] = u2 * d2 + b2 * R2 + q2 * S2, t[2] = c2 * d2 + l2 * R2 + g2 * S2, t[3] = i2 * d2 + m2 * R2 + p2 * S2, t[4] = M2 * y2 + f2 * T2 + x2 * j2, t[5] = u2 * y2 + b2 * T2 + q2 * j2, t[6] = c2 * y2 + l2 * T2 + g2 * j2, t[7] = i2 * y2 + m2 * T2 + p2 * j2, t[8] = M2 * v2 + f2 * O2 + x2 * P2, t[9] = u2 * v2 + b2 * O2 + q2 * P2, t[10] = c2 * v2 + l2 * O2 + g2 * P2, t[11] = i2 * v2 + m2 * O2 + p2 * P2, n3 !== t && (t[12] = n3[12], t[13] = n3[13], t[14] = n3[14], t[15] = n3[15]), t);
  60. }
  61. function b(t, a2, n3) {
  62. const s2 = Math.sin(n3), r2 = Math.cos(n3), o2 = a2[4], h2 = a2[5], e2 = a2[6], M2 = a2[7], u2 = a2[8], c2 = a2[9], i2 = a2[10], f2 = a2[11];
  63. return a2 !== t && (t[0] = a2[0], t[1] = a2[1], t[2] = a2[2], t[3] = a2[3], t[12] = a2[12], t[13] = a2[13], t[14] = a2[14], t[15] = a2[15]), t[4] = o2 * r2 + u2 * s2, t[5] = h2 * r2 + c2 * s2, t[6] = e2 * r2 + i2 * s2, t[7] = M2 * r2 + f2 * s2, t[8] = u2 * r2 - o2 * s2, t[9] = c2 * r2 - h2 * s2, t[10] = i2 * r2 - e2 * s2, t[11] = f2 * r2 - M2 * s2, t;
  64. }
  65. function l(t, a2, n3) {
  66. const s2 = Math.sin(n3), r2 = Math.cos(n3), o2 = a2[0], h2 = a2[1], e2 = a2[2], M2 = a2[3], u2 = a2[8], c2 = a2[9], i2 = a2[10], f2 = a2[11];
  67. return a2 !== t && (t[4] = a2[4], t[5] = a2[5], t[6] = a2[6], t[7] = a2[7], t[12] = a2[12], t[13] = a2[13], t[14] = a2[14], t[15] = a2[15]), t[0] = o2 * r2 - u2 * s2, t[1] = h2 * r2 - c2 * s2, t[2] = e2 * r2 - i2 * s2, t[3] = M2 * r2 - f2 * s2, t[8] = o2 * s2 + u2 * r2, t[9] = h2 * s2 + c2 * r2, t[10] = e2 * s2 + i2 * r2, t[11] = M2 * s2 + f2 * r2, t;
  68. }
  69. function m(t, a2, n3) {
  70. const s2 = Math.sin(n3), r2 = Math.cos(n3), o2 = a2[0], h2 = a2[1], e2 = a2[2], M2 = a2[3], u2 = a2[4], c2 = a2[5], i2 = a2[6], f2 = a2[7];
  71. return a2 !== t && (t[8] = a2[8], t[9] = a2[9], t[10] = a2[10], t[11] = a2[11], t[12] = a2[12], t[13] = a2[13], t[14] = a2[14], t[15] = a2[15]), t[0] = o2 * r2 + u2 * s2, t[1] = h2 * r2 + c2 * s2, t[2] = e2 * r2 + i2 * s2, t[3] = M2 * r2 + f2 * s2, t[4] = u2 * r2 - o2 * s2, t[5] = c2 * r2 - h2 * s2, t[6] = i2 * r2 - e2 * s2, t[7] = f2 * r2 - M2 * s2, t;
  72. }
  73. function x(t, a2) {
  74. return t[0] = 1, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = 1, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = 1, t[11] = 0, t[12] = a2[0], t[13] = a2[1], t[14] = a2[2], t[15] = 1, t;
  75. }
  76. function q(t, a2) {
  77. return t[0] = a2[0], t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = a2[1], t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = a2[2], t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t;
  78. }
  79. function g(t, n3, s2) {
  80. if (0 === n3)
  81. return r(t);
  82. let o2, h2, e2, M2 = s2[0], u2 = s2[1], c2 = s2[2], i2 = Math.sqrt(M2 * M2 + u2 * u2 + c2 * c2);
  83. return i2 < a() ? null : (i2 = 1 / i2, M2 *= i2, u2 *= i2, c2 *= i2, o2 = Math.sin(n3), h2 = Math.cos(n3), e2 = 1 - h2, t[0] = M2 * M2 * e2 + h2, t[1] = u2 * M2 * e2 + c2 * o2, t[2] = c2 * M2 * e2 - u2 * o2, t[3] = 0, t[4] = M2 * u2 * e2 - c2 * o2, t[5] = u2 * u2 * e2 + h2, t[6] = c2 * u2 * e2 + M2 * o2, t[7] = 0, t[8] = M2 * c2 * e2 + u2 * o2, t[9] = u2 * c2 * e2 - M2 * o2, t[10] = c2 * c2 * e2 + h2, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t);
  84. }
  85. function p(t, a2) {
  86. const n3 = Math.sin(a2), s2 = Math.cos(a2);
  87. return t[0] = 1, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = s2, t[6] = n3, t[7] = 0, t[8] = 0, t[9] = -n3, t[10] = s2, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t;
  88. }
  89. function d(t, a2) {
  90. const n3 = Math.sin(a2), s2 = Math.cos(a2);
  91. return t[0] = s2, t[1] = 0, t[2] = -n3, t[3] = 0, t[4] = 0, t[5] = 1, t[6] = 0, t[7] = 0, t[8] = n3, t[9] = 0, t[10] = s2, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t;
  92. }
  93. function R(t, a2) {
  94. const n3 = Math.sin(a2), s2 = Math.cos(a2);
  95. return t[0] = s2, t[1] = n3, t[2] = 0, t[3] = 0, t[4] = -n3, t[5] = s2, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = 1, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t;
  96. }
  97. function S(t, a2, n3) {
  98. const s2 = a2[0], r2 = a2[1], o2 = a2[2], h2 = a2[3], e2 = s2 + s2, M2 = r2 + r2, u2 = o2 + o2, c2 = s2 * e2, i2 = s2 * M2, f2 = s2 * u2, b2 = r2 * M2, l2 = r2 * u2, m2 = o2 * u2, x2 = h2 * e2, q2 = h2 * M2, g2 = h2 * u2;
  99. return t[0] = 1 - (b2 + m2), t[1] = i2 + g2, t[2] = f2 - q2, t[3] = 0, t[4] = i2 - g2, t[5] = 1 - (c2 + m2), t[6] = l2 + x2, t[7] = 0, t[8] = f2 + q2, t[9] = l2 - x2, t[10] = 1 - (c2 + b2), t[11] = 0, t[12] = n3[0], t[13] = n3[1], t[14] = n3[2], t[15] = 1, t;
  100. }
  101. function y(t, a2) {
  102. const n3 = T, s2 = -a2[0], r2 = -a2[1], o2 = -a2[2], h2 = a2[3], e2 = a2[4], M2 = a2[5], u2 = a2[6], c2 = a2[7], i2 = s2 * s2 + r2 * r2 + o2 * o2 + h2 * h2;
  103. return i2 > 0 ? (n3[0] = 2 * (e2 * h2 + c2 * s2 + M2 * o2 - u2 * r2) / i2, n3[1] = 2 * (M2 * h2 + c2 * r2 + u2 * s2 - e2 * o2) / i2, n3[2] = 2 * (u2 * h2 + c2 * o2 + e2 * r2 - M2 * s2) / i2) : (n3[0] = 2 * (e2 * h2 + c2 * s2 + M2 * o2 - u2 * r2), n3[1] = 2 * (M2 * h2 + c2 * r2 + u2 * s2 - e2 * o2), n3[2] = 2 * (u2 * h2 + c2 * o2 + e2 * r2 - M2 * s2)), S(t, a2, n3), t;
  104. }
  105. var T = n();
  106. function j(t, a2) {
  107. return t[0] = a2[12], t[1] = a2[13], t[2] = a2[14], t;
  108. }
  109. function v(t, a2) {
  110. const n3 = a2[0], s2 = a2[1], r2 = a2[2], o2 = a2[4], h2 = a2[5], e2 = a2[6], M2 = a2[8], u2 = a2[9], c2 = a2[10];
  111. return t[0] = Math.sqrt(n3 * n3 + s2 * s2 + r2 * r2), t[1] = Math.sqrt(o2 * o2 + h2 * h2 + e2 * e2), t[2] = Math.sqrt(M2 * M2 + u2 * u2 + c2 * c2), t;
  112. }
  113. function O(t, a2) {
  114. const n3 = a2[0] + a2[5] + a2[10];
  115. let s2 = 0;
  116. return n3 > 0 ? (s2 = 2 * Math.sqrt(n3 + 1), t[3] = 0.25 * s2, t[0] = (a2[6] - a2[9]) / s2, t[1] = (a2[8] - a2[2]) / s2, t[2] = (a2[1] - a2[4]) / s2) : a2[0] > a2[5] && a2[0] > a2[10] ? (s2 = 2 * Math.sqrt(1 + a2[0] - a2[5] - a2[10]), t[3] = (a2[6] - a2[9]) / s2, t[0] = 0.25 * s2, t[1] = (a2[1] + a2[4]) / s2, t[2] = (a2[8] + a2[2]) / s2) : a2[5] > a2[10] ? (s2 = 2 * Math.sqrt(1 + a2[5] - a2[0] - a2[10]), t[3] = (a2[8] - a2[2]) / s2, t[0] = (a2[1] + a2[4]) / s2, t[1] = 0.25 * s2, t[2] = (a2[6] + a2[9]) / s2) : (s2 = 2 * Math.sqrt(1 + a2[10] - a2[0] - a2[5]), t[3] = (a2[1] - a2[4]) / s2, t[0] = (a2[8] + a2[2]) / s2, t[1] = (a2[6] + a2[9]) / s2, t[2] = 0.25 * s2), t;
  117. }
  118. function P(t, a2, n3, s2) {
  119. const r2 = a2[0], o2 = a2[1], h2 = a2[2], e2 = a2[3], M2 = r2 + r2, u2 = o2 + o2, c2 = h2 + h2, i2 = r2 * M2, f2 = r2 * u2, b2 = r2 * c2, l2 = o2 * u2, m2 = o2 * c2, x2 = h2 * c2, q2 = e2 * M2, g2 = e2 * u2, p2 = e2 * c2, d2 = s2[0], R2 = s2[1], S2 = s2[2];
  120. return t[0] = (1 - (l2 + x2)) * d2, t[1] = (f2 + p2) * d2, t[2] = (b2 - g2) * d2, t[3] = 0, t[4] = (f2 - p2) * R2, t[5] = (1 - (i2 + x2)) * R2, t[6] = (m2 + q2) * R2, t[7] = 0, t[8] = (b2 + g2) * S2, t[9] = (m2 - q2) * S2, t[10] = (1 - (i2 + l2)) * S2, t[11] = 0, t[12] = n3[0], t[13] = n3[1], t[14] = n3[2], t[15] = 1, t;
  121. }
  122. function D(t, a2, n3, s2, r2) {
  123. const o2 = a2[0], h2 = a2[1], e2 = a2[2], M2 = a2[3], u2 = o2 + o2, c2 = h2 + h2, i2 = e2 + e2, f2 = o2 * u2, b2 = o2 * c2, l2 = o2 * i2, m2 = h2 * c2, x2 = h2 * i2, q2 = e2 * i2, g2 = M2 * u2, p2 = M2 * c2, d2 = M2 * i2, R2 = s2[0], S2 = s2[1], y2 = s2[2], T2 = r2[0], j2 = r2[1], v2 = r2[2], O2 = (1 - (m2 + q2)) * R2, P2 = (b2 + d2) * R2, D2 = (l2 - p2) * R2, I2 = (b2 - d2) * S2, A2 = (1 - (f2 + q2)) * S2, _2 = (x2 + g2) * S2, w2 = (l2 + p2) * y2, F2 = (x2 - g2) * y2, Q2 = (1 - (f2 + m2)) * y2;
  124. return t[0] = O2, t[1] = P2, t[2] = D2, t[3] = 0, t[4] = I2, t[5] = A2, t[6] = _2, t[7] = 0, t[8] = w2, t[9] = F2, t[10] = Q2, t[11] = 0, t[12] = n3[0] + T2 - (O2 * T2 + I2 * j2 + w2 * v2), t[13] = n3[1] + j2 - (P2 * T2 + A2 * j2 + F2 * v2), t[14] = n3[2] + v2 - (D2 * T2 + _2 * j2 + Q2 * v2), t[15] = 1, t;
  125. }
  126. function I(t, a2) {
  127. const n3 = a2[0], s2 = a2[1], r2 = a2[2], o2 = a2[3], h2 = n3 + n3, e2 = s2 + s2, M2 = r2 + r2, u2 = n3 * h2, c2 = s2 * h2, i2 = s2 * e2, f2 = r2 * h2, b2 = r2 * e2, l2 = r2 * M2, m2 = o2 * h2, x2 = o2 * e2, q2 = o2 * M2;
  128. return t[0] = 1 - i2 - l2, t[1] = c2 + q2, t[2] = f2 - x2, t[3] = 0, t[4] = c2 - q2, t[5] = 1 - u2 - l2, t[6] = b2 + m2, t[7] = 0, t[8] = f2 + x2, t[9] = b2 - m2, t[10] = 1 - u2 - i2, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t;
  129. }
  130. function A(t, a2, n3, s2, r2, o2, h2) {
  131. const e2 = 1 / (n3 - a2), M2 = 1 / (r2 - s2), u2 = 1 / (o2 - h2);
  132. return t[0] = 2 * o2 * e2, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = 2 * o2 * M2, t[6] = 0, t[7] = 0, t[8] = (n3 + a2) * e2, t[9] = (r2 + s2) * M2, t[10] = (h2 + o2) * u2, t[11] = -1, t[12] = 0, t[13] = 0, t[14] = h2 * o2 * 2 * u2, t[15] = 0, t;
  133. }
  134. function _(t, a2, n3, s2, r2) {
  135. const o2 = 1 / Math.tan(a2 / 2);
  136. let h2;
  137. return t[0] = o2 / n3, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = o2, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[11] = -1, t[12] = 0, t[13] = 0, t[15] = 0, null != r2 && r2 !== 1 / 0 ? (h2 = 1 / (s2 - r2), t[10] = (r2 + s2) * h2, t[14] = 2 * r2 * s2 * h2) : (t[10] = -1, t[14] = -2 * s2), t;
  138. }
  139. function w(t, a2, n3, s2) {
  140. const r2 = Math.tan(a2.upDegrees * Math.PI / 180), o2 = Math.tan(a2.downDegrees * Math.PI / 180), h2 = Math.tan(a2.leftDegrees * Math.PI / 180), e2 = Math.tan(a2.rightDegrees * Math.PI / 180), M2 = 2 / (h2 + e2), u2 = 2 / (r2 + o2);
  141. return t[0] = M2, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = u2, t[6] = 0, t[7] = 0, t[8] = -(h2 - e2) * M2 * 0.5, t[9] = (r2 - o2) * u2 * 0.5, t[10] = s2 / (n3 - s2), t[11] = -1, t[12] = 0, t[13] = 0, t[14] = s2 * n3 / (n3 - s2), t[15] = 0, t;
  142. }
  143. function F(t, a2, n3, s2, r2, o2, h2) {
  144. const e2 = 1 / (a2 - n3), M2 = 1 / (s2 - r2), u2 = 1 / (o2 - h2);
  145. return t[0] = -2 * e2, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = -2 * M2, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = 2 * u2, t[11] = 0, t[12] = (a2 + n3) * e2, t[13] = (r2 + s2) * M2, t[14] = (h2 + o2) * u2, t[15] = 1, t;
  146. }
  147. function Q(t, n3, s2, o2) {
  148. let h2, e2, M2, u2, c2, i2, f2, b2, l2, m2;
  149. const x2 = n3[0], q2 = n3[1], g2 = n3[2], p2 = o2[0], d2 = o2[1], R2 = o2[2], S2 = s2[0], y2 = s2[1], T2 = s2[2], j2 = a();
  150. return Math.abs(x2 - S2) < j2 && Math.abs(q2 - y2) < j2 && Math.abs(g2 - T2) < j2 ? r(t) : (f2 = x2 - S2, b2 = q2 - y2, l2 = g2 - T2, m2 = 1 / Math.sqrt(f2 * f2 + b2 * b2 + l2 * l2), f2 *= m2, b2 *= m2, l2 *= m2, h2 = d2 * l2 - R2 * b2, e2 = R2 * f2 - p2 * l2, M2 = p2 * b2 - d2 * f2, m2 = Math.sqrt(h2 * h2 + e2 * e2 + M2 * M2), m2 ? (m2 = 1 / m2, h2 *= m2, e2 *= m2, M2 *= m2) : (h2 = 0, e2 = 0, M2 = 0), u2 = b2 * M2 - l2 * e2, c2 = l2 * h2 - f2 * M2, i2 = f2 * e2 - b2 * h2, m2 = Math.sqrt(u2 * u2 + c2 * c2 + i2 * i2), m2 ? (m2 = 1 / m2, u2 *= m2, c2 *= m2, i2 *= m2) : (u2 = 0, c2 = 0, i2 = 0), t[0] = h2, t[1] = u2, t[2] = f2, t[3] = 0, t[4] = e2, t[5] = c2, t[6] = b2, t[7] = 0, t[8] = M2, t[9] = i2, t[10] = l2, t[11] = 0, t[12] = -(h2 * x2 + e2 * q2 + M2 * g2), t[13] = -(u2 * x2 + c2 * q2 + i2 * g2), t[14] = -(f2 * x2 + b2 * q2 + l2 * g2), t[15] = 1, t);
  151. }
  152. function k(t, a2, n3, s2) {
  153. const r2 = a2[0], o2 = a2[1], h2 = a2[2], e2 = s2[0], M2 = s2[1], u2 = s2[2];
  154. let c2 = r2 - n3[0], i2 = o2 - n3[1], f2 = h2 - n3[2], b2 = c2 * c2 + i2 * i2 + f2 * f2;
  155. b2 > 0 && (b2 = 1 / Math.sqrt(b2), c2 *= b2, i2 *= b2, f2 *= b2);
  156. let l2 = M2 * f2 - u2 * i2, m2 = u2 * c2 - e2 * f2, x2 = e2 * i2 - M2 * c2;
  157. return b2 = l2 * l2 + m2 * m2 + x2 * x2, b2 > 0 && (b2 = 1 / Math.sqrt(b2), l2 *= b2, m2 *= b2, x2 *= b2), t[0] = l2, t[1] = m2, t[2] = x2, t[3] = 0, t[4] = i2 * x2 - f2 * m2, t[5] = f2 * l2 - c2 * x2, t[6] = c2 * m2 - i2 * l2, t[7] = 0, t[8] = c2, t[9] = i2, t[10] = f2, t[11] = 0, t[12] = r2, t[13] = o2, t[14] = h2, t[15] = 1, t;
  158. }
  159. function z(t) {
  160. return "mat4(" + 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] + ")";
  161. }
  162. function E(t) {
  163. return Math.sqrt(t[0] ** 2 + t[1] ** 2 + t[2] ** 2 + t[3] ** 2 + t[4] ** 2 + t[5] ** 2 + t[6] ** 2 + t[7] ** 2 + t[8] ** 2 + t[9] ** 2 + t[10] ** 2 + t[11] ** 2 + t[12] ** 2 + t[13] ** 2 + t[14] ** 2 + t[15] ** 2);
  164. }
  165. function N(t, a2, n3) {
  166. return t[0] = a2[0] + n3[0], t[1] = a2[1] + n3[1], t[2] = a2[2] + n3[2], t[3] = a2[3] + n3[3], t[4] = a2[4] + n3[4], t[5] = a2[5] + n3[5], t[6] = a2[6] + n3[6], t[7] = a2[7] + n3[7], t[8] = a2[8] + n3[8], t[9] = a2[9] + n3[9], t[10] = a2[10] + n3[10], t[11] = a2[11] + n3[11], t[12] = a2[12] + n3[12], t[13] = a2[13] + n3[13], t[14] = a2[14] + n3[14], t[15] = a2[15] + n3[15], t;
  167. }
  168. function X(t, a2, n3) {
  169. return t[0] = a2[0] - n3[0], t[1] = a2[1] - n3[1], t[2] = a2[2] - n3[2], t[3] = a2[3] - n3[3], t[4] = a2[4] - n3[4], t[5] = a2[5] - n3[5], t[6] = a2[6] - n3[6], t[7] = a2[7] - n3[7], t[8] = a2[8] - n3[8], t[9] = a2[9] - n3[9], t[10] = a2[10] - n3[10], t[11] = a2[11] - n3[11], t[12] = a2[12] - n3[12], t[13] = a2[13] - n3[13], t[14] = a2[14] - n3[14], t[15] = a2[15] - n3[15], t;
  170. }
  171. function Y(t, a2, n3) {
  172. return t[0] = a2[0] * n3, t[1] = a2[1] * n3, t[2] = a2[2] * n3, t[3] = a2[3] * n3, t[4] = a2[4] * n3, t[5] = a2[5] * n3, t[6] = a2[6] * n3, t[7] = a2[7] * n3, t[8] = a2[8] * n3, t[9] = a2[9] * n3, t[10] = a2[10] * n3, t[11] = a2[11] * n3, t[12] = a2[12] * n3, t[13] = a2[13] * n3, t[14] = a2[14] * n3, t[15] = a2[15] * n3, t;
  173. }
  174. function Z(t, a2, n3, s2) {
  175. return t[0] = a2[0] + n3[0] * s2, t[1] = a2[1] + n3[1] * s2, t[2] = a2[2] + n3[2] * s2, t[3] = a2[3] + n3[3] * s2, t[4] = a2[4] + n3[4] * s2, t[5] = a2[5] + n3[5] * s2, t[6] = a2[6] + n3[6] * s2, t[7] = a2[7] + n3[7] * s2, t[8] = a2[8] + n3[8] * s2, t[9] = a2[9] + n3[9] * s2, t[10] = a2[10] + n3[10] * s2, t[11] = a2[11] + n3[11] * s2, t[12] = a2[12] + n3[12] * s2, t[13] = a2[13] + n3[13] * s2, t[14] = a2[14] + n3[14] * s2, t[15] = a2[15] + n3[15] * s2, t;
  176. }
  177. function B(t, a2) {
  178. return t[0] === a2[0] && t[1] === a2[1] && t[2] === a2[2] && t[3] === a2[3] && t[4] === a2[4] && t[5] === a2[5] && t[6] === a2[6] && t[7] === a2[7] && t[8] === a2[8] && t[9] === a2[9] && t[10] === a2[10] && t[11] === a2[11] && t[12] === a2[12] && t[13] === a2[13] && t[14] === a2[14] && t[15] === a2[15];
  179. }
  180. function C(t, n3) {
  181. if (t === n3)
  182. return true;
  183. const s2 = t[0], r2 = t[1], o2 = t[2], h2 = t[3], e2 = t[4], M2 = t[5], u2 = t[6], c2 = t[7], i2 = t[8], f2 = t[9], b2 = t[10], l2 = t[11], m2 = t[12], x2 = t[13], q2 = t[14], g2 = t[15], p2 = n3[0], d2 = n3[1], R2 = n3[2], S2 = n3[3], y2 = n3[4], T2 = n3[5], j2 = n3[6], v2 = n3[7], O2 = n3[8], P2 = n3[9], D2 = n3[10], I2 = n3[11], A2 = n3[12], _2 = n3[13], w2 = n3[14], F2 = n3[15], Q2 = a();
  184. return Math.abs(s2 - p2) <= Q2 * Math.max(1, Math.abs(s2), Math.abs(p2)) && Math.abs(r2 - d2) <= Q2 * Math.max(1, Math.abs(r2), Math.abs(d2)) && Math.abs(o2 - R2) <= Q2 * Math.max(1, Math.abs(o2), Math.abs(R2)) && Math.abs(h2 - S2) <= Q2 * Math.max(1, Math.abs(h2), Math.abs(S2)) && Math.abs(e2 - y2) <= Q2 * Math.max(1, Math.abs(e2), Math.abs(y2)) && Math.abs(M2 - T2) <= Q2 * Math.max(1, Math.abs(M2), Math.abs(T2)) && Math.abs(u2 - j2) <= Q2 * Math.max(1, Math.abs(u2), Math.abs(j2)) && Math.abs(c2 - v2) <= Q2 * Math.max(1, Math.abs(c2), Math.abs(v2)) && Math.abs(i2 - O2) <= Q2 * Math.max(1, Math.abs(i2), Math.abs(O2)) && Math.abs(f2 - P2) <= Q2 * Math.max(1, Math.abs(f2), Math.abs(P2)) && Math.abs(b2 - D2) <= Q2 * Math.max(1, Math.abs(b2), Math.abs(D2)) && Math.abs(l2 - I2) <= Q2 * Math.max(1, Math.abs(l2), Math.abs(I2)) && Math.abs(m2 - A2) <= Q2 * Math.max(1, Math.abs(m2), Math.abs(A2)) && Math.abs(x2 - _2) <= Q2 * Math.max(1, Math.abs(x2), Math.abs(_2)) && Math.abs(q2 - w2) <= Q2 * Math.max(1, Math.abs(q2), Math.abs(w2)) && Math.abs(g2 - F2) <= Q2 * Math.max(1, Math.abs(g2), Math.abs(F2));
  185. }
  186. function G(t) {
  187. const n3 = a(), s2 = t[0], r2 = t[1], o2 = t[2], h2 = t[4], e2 = t[5], M2 = t[6], u2 = t[8], c2 = t[9], i2 = t[10];
  188. return Math.abs(1 - (s2 * s2 + h2 * h2 + u2 * u2)) <= n3 && Math.abs(1 - (r2 * r2 + e2 * e2 + c2 * c2)) <= n3 && Math.abs(1 - (o2 * o2 + M2 * M2 + i2 * i2)) <= n3;
  189. }
  190. var H = u;
  191. var J = X;
  192. var K = Object.freeze(Object.defineProperty({ __proto__: null, copy: n2, set: s, identity: r, transpose: o, invert: h, adjoint: e, determinant: M, multiply: u, translate: c, scale: i, rotate: f, rotateX: b, rotateY: l, rotateZ: m, fromTranslation: x, fromScaling: q, fromRotation: g, fromXRotation: p, fromYRotation: d, fromZRotation: R, fromRotationTranslation: S, fromQuat2: y, getTranslation: j, getScaling: v, getRotation: O, fromRotationTranslationScale: P, fromRotationTranslationScaleOrigin: D, fromQuat: I, frustum: A, perspective: _, perspectiveFromFieldOfView: w, ortho: F, lookAt: Q, targetTo: k, str: z, frob: E, add: N, subtract: X, multiplyScalar: Y, multiplyScalarAndAdd: Z, exactEquals: B, equals: C, isOrthoNormal: G, mul: H, sub: J }, Symbol.toStringTag, { value: "Module" }));
  193. export {
  194. s,
  195. r,
  196. o,
  197. h,
  198. u,
  199. c,
  200. i,
  201. f,
  202. x,
  203. g,
  204. p,
  205. P,
  206. B,
  207. C,
  208. G
  209. };
  210. //# sourceMappingURL=chunk-VGWC3IKZ.js.map