exodeui 2.6.27 → 2.6.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2,25 +2,25 @@ var JC = Object.defineProperty;
2
2
  var UC = (D, A, I) => A in D ? JC(D, A, { enumerable: !0, configurable: !0, writable: !0, value: I }) : D[A] = I;
3
3
  var _ = (D, A, I) => UC(D, typeof A != "symbol" ? A + "" : A, I);
4
4
  import { jsx as RC } from "react/jsx-runtime";
5
- import { forwardRef as tC, useRef as wI, useImperativeHandle as cC, useEffect as YA, useState as YC, useCallback as qA } from "react";
5
+ import { forwardRef as tC, useRef as wI, useImperativeHandle as cC, useEffect as rA, useState as YC, useCallback as lA } from "react";
6
6
  var eC = /* @__PURE__ */ ((D) => (D.Equal = "Equal", D.NotEqual = "NotEqual", D.GreaterThan = "GreaterThan", D.LessThan = "LessThan", D.GreaterEqual = "GreaterEqual", D.LessEqual = "LessEqual", D.IsTrue = "IsTrue", D.IsFalse = "IsFalse", D))(eC || {}), VA = /* @__PURE__ */ ((D) => (D.AND = "AND", D.OR = "OR", D.NOT = "NOT", D.XOR = "XOR", D))(VA || {});
7
7
  let E;
8
- const X = new Array(128).fill(void 0);
8
+ const v = new Array(128).fill(void 0);
9
9
  function j(D) {
10
- return X[D];
10
+ return v[D];
11
11
  }
12
- X.push(void 0, null, !0, !1);
13
- let II = X.length;
14
- function IA(D) {
15
- II === X.length && X.push(X.length + 1);
12
+ v.push(void 0, null, !0, !1);
13
+ let II = v.length;
14
+ function gA(D) {
15
+ II === v.length && v.push(v.length + 1);
16
16
  const A = II;
17
- return II = X[A], X[A] = D, A;
17
+ return II = v[A], v[A] = D, A;
18
18
  }
19
19
  function hI(D, A) {
20
20
  try {
21
21
  return D.apply(this, A);
22
22
  } catch (I) {
23
- E.__wbindgen_export_0(IA(I));
23
+ E.__wbindgen_export_0(gA(I));
24
24
  }
25
25
  }
26
26
  const jg = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }) : { decode: () => {
@@ -35,22 +35,22 @@ function q(D) {
35
35
  return D == null;
36
36
  }
37
37
  let OA = null;
38
- function GA() {
38
+ function KA() {
39
39
  return (OA === null || OA.buffer.detached === !0 || OA.buffer.detached === void 0 && OA.buffer !== E.memory.buffer) && (OA = new DataView(E.memory.buffer)), OA;
40
40
  }
41
41
  function sI(D) {
42
42
  const A = j(D);
43
43
  return function(I) {
44
- I < 132 || (X[I] = II, II = I);
44
+ I < 132 || (v[I] = II, II = I);
45
45
  }(D), A;
46
46
  }
47
47
  function K(D, A) {
48
48
  if (!(D instanceof A)) throw new Error(`expected instance of ${A.name}`);
49
49
  }
50
- let QA = 128;
51
- function iA(D) {
52
- if (QA == 1) throw new Error("out of js stack");
53
- return X[--QA] = D, QA;
50
+ let BA = 128;
51
+ function DA(D) {
52
+ if (BA == 1) throw new Error("out of js stack");
53
+ return v[--BA] = D, BA;
54
54
  }
55
55
  let _A = null;
56
56
  function rC(D, A) {
@@ -67,22 +67,22 @@ let AI = null;
67
67
  function xg() {
68
68
  return AI !== null && AI.byteLength !== 0 || (AI = new Uint32Array(E.memory.buffer)), AI;
69
69
  }
70
- let FA = 0;
70
+ let UA = 0;
71
71
  function qI(D, A) {
72
72
  const I = A(4 * D.length, 4) >>> 0;
73
- return xg().set(D, I / 4), FA = D.length, I;
73
+ return xg().set(D, I / 4), UA = D.length, I;
74
74
  }
75
- function dA(D, A) {
75
+ function fA(D, A) {
76
76
  const I = A(4 * D.length, 4) >>> 0;
77
- return mg().set(D, I / 4), FA = D.length, I;
77
+ return mg().set(D, I / 4), UA = D.length, I;
78
78
  }
79
- const yI = Object.freeze({ LinX: 0, 0: "LinX", LinY: 1, 1: "LinY", AngX: 2, 2: "AngX" }), fA = Object.freeze({ Revolute: 0, 0: "Revolute", Fixed: 1, 1: "Fixed", Prismatic: 2, 2: "Prismatic", Rope: 3, 3: "Rope", Spring: 4, 4: "Spring", Generic: 5, 5: "Generic" }), SA = Object.freeze({ Ball: 0, 0: "Ball", Cuboid: 1, 1: "Cuboid", Capsule: 2, 2: "Capsule", Segment: 3, 3: "Segment", Polyline: 4, 4: "Polyline", Triangle: 5, 5: "Triangle", TriMesh: 6, 6: "TriMesh", HeightField: 7, 7: "HeightField", Compound: 8, 8: "Compound", ConvexPolygon: 9, 9: "ConvexPolygon", RoundCuboid: 10, 10: "RoundCuboid", RoundTriangle: 11, 11: "RoundTriangle", RoundConvexPolygon: 12, 12: "RoundConvexPolygon", HalfSpace: 13, 13: "HalfSpace", Voxels: 14, 14: "Voxels" }), lI = typeof FinalizationRegistry > "u" ? { register: () => {
79
+ const yI = Object.freeze({ LinX: 0, 0: "LinX", LinY: 1, 1: "LinY", AngX: 2, 2: "AngX" }), bA = Object.freeze({ Revolute: 0, 0: "Revolute", Fixed: 1, 1: "Fixed", Prismatic: 2, 2: "Prismatic", Rope: 3, 3: "Rope", Spring: 4, 4: "Spring", Generic: 5, 5: "Generic" }), FA = Object.freeze({ Ball: 0, 0: "Ball", Cuboid: 1, 1: "Cuboid", Capsule: 2, 2: "Capsule", Segment: 3, 3: "Segment", Polyline: 4, 4: "Polyline", Triangle: 5, 5: "Triangle", TriMesh: 6, 6: "TriMesh", HeightField: 7, 7: "HeightField", Compound: 8, 8: "Compound", ConvexPolygon: 9, 9: "ConvexPolygon", RoundCuboid: 10, 10: "RoundCuboid", RoundTriangle: 11, 11: "RoundTriangle", RoundConvexPolygon: 12, 12: "RoundConvexPolygon", HalfSpace: 13, 13: "HalfSpace", Voxels: 14, 14: "Voxels" }), lI = typeof FinalizationRegistry > "u" ? { register: () => {
80
80
  }, unregister: () => {
81
81
  } } : new FinalizationRegistry((D) => E.__wbg_rawbroadphase_free(D >>> 0, 1));
82
- class bA {
82
+ class TA {
83
83
  static __wrap(A) {
84
84
  A >>>= 0;
85
- const I = Object.create(bA.prototype);
85
+ const I = Object.create(TA.prototype);
86
86
  return I.__wbg_ptr = A, lI.register(I, I.__wbg_ptr, I), I;
87
87
  }
88
88
  __destroy_into_raw() {
@@ -99,85 +99,85 @@ class bA {
99
99
  }
100
100
  castRay(A, I, C, g, Q, B, i, o, w, G, h, s) {
101
101
  try {
102
- K(A, hA), K(I, EA), K(C, oA), K(g, y), K(Q, y);
103
- const a = E.rawbroadphase_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B, i, o, q(w) ? 4294967297 : w >>> 0, !q(G), q(G) ? 0 : G, !q(h), q(h) ? 0 : h, iA(s));
102
+ K(A, GA), K(I, iA), K(C, hA), K(g, y), K(Q, y);
103
+ const a = E.rawbroadphase_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B, i, o, q(w) ? 4294967297 : w >>> 0, !q(G), q(G) ? 0 : G, !q(h), q(h) ? 0 : h, DA(s));
104
104
  return a === 0 ? void 0 : Cg.__wrap(a);
105
105
  } finally {
106
- X[QA++] = void 0;
106
+ v[BA++] = void 0;
107
107
  }
108
108
  }
109
109
  castRayAndGetNormal(A, I, C, g, Q, B, i, o, w, G, h, s) {
110
110
  try {
111
- K(A, hA), K(I, EA), K(C, oA), K(g, y), K(Q, y);
112
- const a = E.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B, i, o, q(w) ? 4294967297 : w >>> 0, !q(G), q(G) ? 0 : G, !q(h), q(h) ? 0 : h, iA(s));
111
+ K(A, GA), K(I, iA), K(C, hA), K(g, y), K(Q, y);
112
+ const a = E.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B, i, o, q(w) ? 4294967297 : w >>> 0, !q(G), q(G) ? 0 : G, !q(h), q(h) ? 0 : h, DA(s));
113
113
  return a === 0 ? void 0 : JI.__wrap(a);
114
114
  } finally {
115
- X[QA++] = void 0;
115
+ v[BA++] = void 0;
116
116
  }
117
117
  }
118
118
  intersectionsWithRay(A, I, C, g, Q, B, i, o, w, G, h, s, a) {
119
119
  try {
120
- K(A, hA), K(I, EA), K(C, oA), K(g, y), K(Q, y), E.rawbroadphase_intersectionsWithRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B, i, iA(o), w, q(G) ? 4294967297 : G >>> 0, !q(h), q(h) ? 0 : h, !q(s), q(s) ? 0 : s, iA(a));
120
+ K(A, GA), K(I, iA), K(C, hA), K(g, y), K(Q, y), E.rawbroadphase_intersectionsWithRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B, i, DA(o), w, q(G) ? 4294967297 : G >>> 0, !q(h), q(h) ? 0 : h, !q(s), q(s) ? 0 : s, DA(a));
121
121
  } finally {
122
- X[QA++] = void 0, X[QA++] = void 0;
122
+ v[BA++] = void 0, v[BA++] = void 0;
123
123
  }
124
124
  }
125
125
  intersectionWithShape(A, I, C, g, Q, B, i, o, w, G, h) {
126
126
  try {
127
127
  const N = E.__wbindgen_add_to_stack_pointer(-16);
128
- K(A, hA), K(I, EA), K(C, oA), K(g, y), K(Q, v), K(B, n), E.rawbroadphase_intersectionWithShape(N, this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i, q(o) ? 4294967297 : o >>> 0, !q(w), q(w) ? 0 : w, !q(G), q(G) ? 0 : G, iA(h));
129
- var s = GA().getInt32(N + 0, !0), a = GA().getFloat64(N + 8, !0);
128
+ K(A, GA), K(I, iA), K(C, hA), K(g, y), K(Q, u), K(B, n), E.rawbroadphase_intersectionWithShape(N, this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i, q(o) ? 4294967297 : o >>> 0, !q(w), q(w) ? 0 : w, !q(G), q(G) ? 0 : G, DA(h));
129
+ var s = KA().getInt32(N + 0, !0), a = KA().getFloat64(N + 8, !0);
130
130
  return s === 0 ? void 0 : a;
131
131
  } finally {
132
- E.__wbindgen_add_to_stack_pointer(16), X[QA++] = void 0;
132
+ E.__wbindgen_add_to_stack_pointer(16), v[BA++] = void 0;
133
133
  }
134
134
  }
135
135
  projectPoint(A, I, C, g, Q, B, i, o, w, G) {
136
136
  try {
137
- K(A, hA), K(I, EA), K(C, oA), K(g, y);
138
- const h = E.rawbroadphase_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q, B, q(i) ? 4294967297 : i >>> 0, !q(o), q(o) ? 0 : o, !q(w), q(w) ? 0 : w, iA(G));
137
+ K(A, GA), K(I, iA), K(C, hA), K(g, y);
138
+ const h = E.rawbroadphase_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q, B, q(i) ? 4294967297 : i >>> 0, !q(o), q(o) ? 0 : o, !q(w), q(w) ? 0 : w, DA(G));
139
139
  return h === 0 ? void 0 : GI.__wrap(h);
140
140
  } finally {
141
- X[QA++] = void 0;
141
+ v[BA++] = void 0;
142
142
  }
143
143
  }
144
144
  projectPointAndGetFeature(A, I, C, g, Q, B, i, o, w) {
145
145
  try {
146
- K(A, hA), K(I, EA), K(C, oA), K(g, y);
147
- const G = E.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q, q(B) ? 4294967297 : B >>> 0, !q(i), q(i) ? 0 : i, !q(o), q(o) ? 0 : o, iA(w));
146
+ K(A, GA), K(I, iA), K(C, hA), K(g, y);
147
+ const G = E.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q, q(B) ? 4294967297 : B >>> 0, !q(i), q(i) ? 0 : i, !q(o), q(o) ? 0 : o, DA(w));
148
148
  return G === 0 ? void 0 : GI.__wrap(G);
149
149
  } finally {
150
- X[QA++] = void 0;
150
+ v[BA++] = void 0;
151
151
  }
152
152
  }
153
153
  intersectionsWithPoint(A, I, C, g, Q, B, i, o, w, G) {
154
154
  try {
155
- K(A, hA), K(I, EA), K(C, oA), K(g, y), E.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, iA(Q), B, q(i) ? 4294967297 : i >>> 0, !q(o), q(o) ? 0 : o, !q(w), q(w) ? 0 : w, iA(G));
155
+ K(A, GA), K(I, iA), K(C, hA), K(g, y), E.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, DA(Q), B, q(i) ? 4294967297 : i >>> 0, !q(o), q(o) ? 0 : o, !q(w), q(w) ? 0 : w, DA(G));
156
156
  } finally {
157
- X[QA++] = void 0, X[QA++] = void 0;
157
+ v[BA++] = void 0, v[BA++] = void 0;
158
158
  }
159
159
  }
160
160
  castShape(A, I, C, g, Q, B, i, o, w, G, h, s, a, N, S) {
161
161
  try {
162
- K(A, hA), K(I, EA), K(C, oA), K(g, y), K(Q, v), K(B, y), K(i, n);
163
- const F = E.rawbroadphase_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, o, w, G, h, q(s) ? 4294967297 : s >>> 0, !q(a), q(a) ? 0 : a, !q(N), q(N) ? 0 : N, iA(S));
162
+ K(A, GA), K(I, iA), K(C, hA), K(g, y), K(Q, u), K(B, y), K(i, n);
163
+ const F = E.rawbroadphase_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, o, w, G, h, q(s) ? 4294967297 : s >>> 0, !q(a), q(a) ? 0 : a, !q(N), q(N) ? 0 : N, DA(S));
164
164
  return F === 0 ? void 0 : FI.__wrap(F);
165
165
  } finally {
166
- X[QA++] = void 0;
166
+ v[BA++] = void 0;
167
167
  }
168
168
  }
169
169
  intersectionsWithShape(A, I, C, g, Q, B, i, o, w, G, h, s) {
170
170
  try {
171
- K(A, hA), K(I, EA), K(C, oA), K(g, y), K(Q, v), K(B, n), E.rawbroadphase_intersectionsWithShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, iA(i), o, q(w) ? 4294967297 : w >>> 0, !q(G), q(G) ? 0 : G, !q(h), q(h) ? 0 : h, iA(s));
171
+ K(A, GA), K(I, iA), K(C, hA), K(g, y), K(Q, u), K(B, n), E.rawbroadphase_intersectionsWithShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, DA(i), o, q(w) ? 4294967297 : w >>> 0, !q(G), q(G) ? 0 : G, !q(h), q(h) ? 0 : h, DA(s));
172
172
  } finally {
173
- X[QA++] = void 0, X[QA++] = void 0;
173
+ v[BA++] = void 0, v[BA++] = void 0;
174
174
  }
175
175
  }
176
176
  collidersWithAabbIntersectingAabb(A, I, C, g, Q, B) {
177
177
  try {
178
- K(A, hA), K(I, EA), K(C, oA), K(g, y), K(Q, y), E.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, iA(B));
178
+ K(A, GA), K(I, iA), K(C, hA), K(g, y), K(Q, y), E.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, DA(B));
179
179
  } finally {
180
- X[QA++] = void 0;
180
+ v[BA++] = void 0;
181
181
  }
182
182
  }
183
183
  }
@@ -248,10 +248,10 @@ class Xg {
248
248
  const nI = typeof FinalizationRegistry > "u" ? { register: () => {
249
249
  }, unregister: () => {
250
250
  } } : new FinalizationRegistry((D) => E.__wbg_rawcolliderset_free(D >>> 0, 1));
251
- class oA {
251
+ class hA {
252
252
  static __wrap(A) {
253
253
  A >>>= 0;
254
- const I = Object.create(oA.prototype);
254
+ const I = Object.create(hA.prototype);
255
255
  return I.__wbg_ptr = A, nI.register(I, I.__wbg_ptr, I), I;
256
256
  }
257
257
  __destroy_into_raw() {
@@ -268,7 +268,7 @@ class oA {
268
268
  }
269
269
  coRotation(A) {
270
270
  const I = E.rawcolliderset_coRotation(this.__wbg_ptr, A);
271
- return v.__wrap(I);
271
+ return u.__wrap(I);
272
272
  }
273
273
  coTranslationWrtParent(A) {
274
274
  const I = E.rawcolliderset_coTranslationWrtParent(this.__wbg_ptr, A);
@@ -276,7 +276,7 @@ class oA {
276
276
  }
277
277
  coRotationWrtParent(A) {
278
278
  const I = E.rawcolliderset_coRotationWrtParent(this.__wbg_ptr, A);
279
- return I === 0 ? void 0 : v.__wrap(I);
279
+ return I === 0 ? void 0 : u.__wrap(I);
280
280
  }
281
281
  coSetTranslation(A, I, C) {
282
282
  E.rawcolliderset_coSetTranslation(this.__wbg_ptr, A, I, C);
@@ -332,7 +332,7 @@ class oA {
332
332
  try {
333
333
  const g = E.__wbindgen_add_to_stack_pointer(-16);
334
334
  E.rawcolliderset_coVoxelData(g, this.__wbg_ptr, A);
335
- var I = GA().getInt32(g + 0, !0), C = GA().getInt32(g + 4, !0);
335
+ var I = KA().getInt32(g + 0, !0), C = KA().getInt32(g + 4, !0);
336
336
  let Q;
337
337
  return I !== 0 && (Q = rC(I, C).slice(), E.__wbindgen_export_1(I, 4 * C, 4)), Q;
338
338
  } finally {
@@ -356,7 +356,7 @@ class oA {
356
356
  try {
357
357
  const g = E.__wbindgen_add_to_stack_pointer(-16);
358
358
  E.rawcolliderset_coVertices(g, this.__wbg_ptr, A);
359
- var I = GA().getInt32(g + 0, !0), C = GA().getInt32(g + 4, !0);
359
+ var I = KA().getInt32(g + 0, !0), C = KA().getInt32(g + 4, !0);
360
360
  let Q;
361
361
  return I !== 0 && (Q = kg(I, C).slice(), E.__wbindgen_export_1(I, 4 * C, 4)), Q;
362
362
  } finally {
@@ -367,7 +367,7 @@ class oA {
367
367
  try {
368
368
  const g = E.__wbindgen_add_to_stack_pointer(-16);
369
369
  E.rawcolliderset_coIndices(g, this.__wbg_ptr, A);
370
- var I = GA().getInt32(g + 0, !0), C = GA().getInt32(g + 4, !0);
370
+ var I = KA().getInt32(g + 0, !0), C = KA().getInt32(g + 4, !0);
371
371
  let Q;
372
372
  return I !== 0 && (Q = function(B, i) {
373
373
  return B >>>= 0, xg().subarray(B / 4, B / 4 + i);
@@ -384,7 +384,7 @@ class oA {
384
384
  try {
385
385
  const g = E.__wbindgen_add_to_stack_pointer(-16);
386
386
  E.rawcolliderset_coHeightfieldHeights(g, this.__wbg_ptr, A);
387
- var I = GA().getInt32(g + 0, !0), C = GA().getInt32(g + 4, !0);
387
+ var I = KA().getInt32(g + 0, !0), C = KA().getInt32(g + 4, !0);
388
388
  let Q;
389
389
  return I !== 0 && (Q = kg(I, C).slice(), E.__wbindgen_export_1(I, 4 * C, 4)), Q;
390
390
  } finally {
@@ -399,7 +399,7 @@ class oA {
399
399
  try {
400
400
  const g = E.__wbindgen_add_to_stack_pointer(-16);
401
401
  E.rawcolliderset_coParent(g, this.__wbg_ptr, A);
402
- var I = GA().getInt32(g + 0, !0), C = GA().getFloat64(g + 8, !0);
402
+ var I = KA().getInt32(g + 0, !0), C = KA().getFloat64(g + 8, !0);
403
403
  return I === 0 ? void 0 : C;
404
404
  } finally {
405
405
  E.__wbindgen_add_to_stack_pointer(16);
@@ -454,7 +454,7 @@ class oA {
454
454
  return K(I, y), E.rawcolliderset_coContainsPoint(this.__wbg_ptr, A, I.__wbg_ptr) !== 0;
455
455
  }
456
456
  coCastShape(A, I, C, g, Q, B, i, o, w) {
457
- K(I, y), K(C, n), K(g, y), K(Q, v), K(B, y);
457
+ K(I, y), K(C, n), K(g, y), K(Q, u), K(B, y);
458
458
  const G = E.rawcolliderset_coCastShape(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i, o, w);
459
459
  return G === 0 ? void 0 : RI.__wrap(G);
460
460
  }
@@ -464,10 +464,10 @@ class oA {
464
464
  return o === 0 ? void 0 : FI.__wrap(o);
465
465
  }
466
466
  coIntersectsShape(A, I, C, g) {
467
- return K(I, n), K(C, y), K(g, v), E.rawcolliderset_coIntersectsShape(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr) !== 0;
467
+ return K(I, n), K(C, y), K(g, u), E.rawcolliderset_coIntersectsShape(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr) !== 0;
468
468
  }
469
469
  coContactShape(A, I, C, g, Q) {
470
- K(I, n), K(C, y), K(g, v);
470
+ K(I, n), K(C, y), K(g, u);
471
471
  const B = E.rawcolliderset_coContactShape(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q);
472
472
  return B === 0 ? void 0 : gI.__wrap(B);
473
473
  }
@@ -554,25 +554,25 @@ class oA {
554
554
  }
555
555
  createCollider(A, I, C, g, Q, B, i, o, w, G, h, s, a, N, S, F, M, J, c, t, r, R, U, e) {
556
556
  try {
557
- const b = E.__wbindgen_add_to_stack_pointer(-16);
558
- K(I, n), K(C, y), K(g, v), K(i, y), K(e, EA), E.rawcolliderset_createCollider(b, this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q, B, i.__wbg_ptr, o, w, G, h, s, a, N, S, F, M, J, c, t, r, R, U, e.__wbg_ptr);
559
- var L = GA().getInt32(b + 0, !0), Y = GA().getFloat64(b + 8, !0);
557
+ const T = E.__wbindgen_add_to_stack_pointer(-16);
558
+ K(I, n), K(C, y), K(g, u), K(i, y), K(e, iA), E.rawcolliderset_createCollider(T, this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q, B, i.__wbg_ptr, o, w, G, h, s, a, N, S, F, M, J, c, t, r, R, U, e.__wbg_ptr);
559
+ var L = KA().getInt32(T + 0, !0), Y = KA().getFloat64(T + 8, !0);
560
560
  return L === 0 ? void 0 : Y;
561
561
  } finally {
562
562
  E.__wbindgen_add_to_stack_pointer(16);
563
563
  }
564
564
  }
565
565
  remove(A, I, C, g) {
566
- K(I, nA), K(C, EA), E.rawcolliderset_remove(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g);
566
+ K(I, HA), K(C, iA), E.rawcolliderset_remove(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g);
567
567
  }
568
568
  isHandleValid(A) {
569
569
  return E.rawcolliderset_contains(this.__wbg_ptr, A) !== 0;
570
570
  }
571
571
  forEachColliderHandle(A) {
572
572
  try {
573
- E.rawcolliderset_forEachColliderHandle(this.__wbg_ptr, iA(A));
573
+ E.rawcolliderset_forEachColliderHandle(this.__wbg_ptr, DA(A));
574
574
  } finally {
575
- X[QA++] = void 0;
575
+ v[BA++] = void 0;
576
576
  }
577
577
  }
578
578
  }
@@ -791,9 +791,9 @@ class LC {
791
791
  }
792
792
  render(A, I, C, g, Q, B, i) {
793
793
  try {
794
- K(A, EA), K(I, oA), K(C, lA), K(g, HA), K(Q, hA), E.rawdebugrenderpipeline_render(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B, iA(i));
794
+ K(A, iA), K(I, hA), K(C, nA), K(g, pA), K(Q, GA), E.rawdebugrenderpipeline_render(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B, DA(i));
795
795
  } finally {
796
- X[QA++] = void 0;
796
+ v[BA++] = void 0;
797
797
  }
798
798
  }
799
799
  }
@@ -824,31 +824,31 @@ class gg {
824
824
  }
825
825
  takeIslandManager() {
826
826
  const A = E.rawdeserializedworld_takeIslandManager(this.__wbg_ptr);
827
- return A === 0 ? void 0 : nA.__wrap(A);
827
+ return A === 0 ? void 0 : HA.__wrap(A);
828
828
  }
829
829
  takeBroadPhase() {
830
830
  const A = E.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);
831
- return A === 0 ? void 0 : bA.__wrap(A);
831
+ return A === 0 ? void 0 : TA.__wrap(A);
832
832
  }
833
833
  takeNarrowPhase() {
834
834
  const A = E.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);
835
- return A === 0 ? void 0 : hA.__wrap(A);
835
+ return A === 0 ? void 0 : GA.__wrap(A);
836
836
  }
837
837
  takeBodies() {
838
838
  const A = E.rawdeserializedworld_takeBodies(this.__wbg_ptr);
839
- return A === 0 ? void 0 : EA.__wrap(A);
839
+ return A === 0 ? void 0 : iA.__wrap(A);
840
840
  }
841
841
  takeColliders() {
842
842
  const A = E.rawdeserializedworld_takeColliders(this.__wbg_ptr);
843
- return A === 0 ? void 0 : oA.__wrap(A);
843
+ return A === 0 ? void 0 : hA.__wrap(A);
844
844
  }
845
845
  takeImpulseJoints() {
846
846
  const A = E.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);
847
- return A === 0 ? void 0 : lA.__wrap(A);
847
+ return A === 0 ? void 0 : nA.__wrap(A);
848
848
  }
849
849
  takeMultibodyJoints() {
850
850
  const A = E.rawdeserializedworld_takeMultibodyJoints(this.__wbg_ptr);
851
- return A === 0 ? void 0 : HA.__wrap(A);
851
+ return A === 0 ? void 0 : pA.__wrap(A);
852
852
  }
853
853
  }
854
854
  const Yg = typeof FinalizationRegistry > "u" ? { register: () => {
@@ -869,16 +869,16 @@ class vg {
869
869
  }
870
870
  drainCollisionEvents(A) {
871
871
  try {
872
- E.raweventqueue_drainCollisionEvents(this.__wbg_ptr, iA(A));
872
+ E.raweventqueue_drainCollisionEvents(this.__wbg_ptr, DA(A));
873
873
  } finally {
874
- X[QA++] = void 0;
874
+ v[BA++] = void 0;
875
875
  }
876
876
  }
877
877
  drainContactForceEvents(A) {
878
878
  try {
879
- E.raweventqueue_drainContactForceEvents(this.__wbg_ptr, iA(A));
879
+ E.raweventqueue_drainContactForceEvents(this.__wbg_ptr, DA(A));
880
880
  } finally {
881
- X[QA++] = void 0;
881
+ v[BA++] = void 0;
882
882
  }
883
883
  }
884
884
  clear() {
@@ -888,10 +888,10 @@ class vg {
888
888
  const eg = typeof FinalizationRegistry > "u" ? { register: () => {
889
889
  }, unregister: () => {
890
890
  } } : new FinalizationRegistry((D) => E.__wbg_rawgenericjoint_free(D >>> 0, 1));
891
- class NA {
891
+ class MA {
892
892
  static __wrap(A) {
893
893
  A >>>= 0;
894
- const I = Object.create(NA.prototype);
894
+ const I = Object.create(MA.prototype);
895
895
  return I.__wbg_ptr = A, eg.register(I, I.__wbg_ptr, I), I;
896
896
  }
897
897
  __destroy_into_raw() {
@@ -905,36 +905,36 @@ class NA {
905
905
  static spring(A, I, C, g, Q) {
906
906
  K(g, y), K(Q, y);
907
907
  const B = E.rawgenericjoint_spring(A, I, C, g.__wbg_ptr, Q.__wbg_ptr);
908
- return NA.__wrap(B);
908
+ return MA.__wrap(B);
909
909
  }
910
910
  static rope(A, I, C) {
911
911
  K(I, y), K(C, y);
912
912
  const g = E.rawgenericjoint_rope(A, I.__wbg_ptr, C.__wbg_ptr);
913
- return NA.__wrap(g);
913
+ return MA.__wrap(g);
914
914
  }
915
915
  static prismatic(A, I, C, g, Q, B) {
916
916
  K(A, y), K(I, y), K(C, y);
917
917
  const i = E.rawgenericjoint_prismatic(A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g, Q, B);
918
- return i === 0 ? void 0 : NA.__wrap(i);
918
+ return i === 0 ? void 0 : MA.__wrap(i);
919
919
  }
920
920
  static fixed(A, I, C, g) {
921
- K(A, y), K(I, v), K(C, y), K(g, v);
921
+ K(A, y), K(I, u), K(C, y), K(g, u);
922
922
  const Q = E.rawgenericjoint_fixed(A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr);
923
- return NA.__wrap(Q);
923
+ return MA.__wrap(Q);
924
924
  }
925
925
  static revolute(A, I) {
926
926
  K(A, y), K(I, y);
927
927
  const C = E.rawgenericjoint_revolute(A.__wbg_ptr, I.__wbg_ptr);
928
- return C === 0 ? void 0 : NA.__wrap(C);
928
+ return C === 0 ? void 0 : MA.__wrap(C);
929
929
  }
930
930
  }
931
931
  const HI = typeof FinalizationRegistry > "u" ? { register: () => {
932
932
  }, unregister: () => {
933
933
  } } : new FinalizationRegistry((D) => E.__wbg_rawimpulsejointset_free(D >>> 0, 1));
934
- class lA {
934
+ class nA {
935
935
  static __wrap(A) {
936
936
  A >>>= 0;
937
- const I = Object.create(lA.prototype);
937
+ const I = Object.create(nA.prototype);
938
938
  return I.__wbg_ptr = A, HI.register(I, I.__wbg_ptr, I), I;
939
939
  }
940
940
  __destroy_into_raw() {
@@ -956,11 +956,11 @@ class lA {
956
956
  }
957
957
  jointFrameX1(A) {
958
958
  const I = E.rawimpulsejointset_jointFrameX1(this.__wbg_ptr, A);
959
- return v.__wrap(I);
959
+ return u.__wrap(I);
960
960
  }
961
961
  jointFrameX2(A) {
962
962
  const I = E.rawimpulsejointset_jointFrameX2(this.__wbg_ptr, A);
963
- return v.__wrap(I);
963
+ return u.__wrap(I);
964
964
  }
965
965
  jointAnchor1(A) {
966
966
  const I = E.rawimpulsejointset_jointAnchor1(this.__wbg_ptr, A);
@@ -1011,7 +1011,7 @@ class lA {
1011
1011
  return this.__wbg_ptr = A >>> 0, HI.register(this, this.__wbg_ptr, this), this;
1012
1012
  }
1013
1013
  createJoint(A, I, C, g) {
1014
- return K(A, NA), E.rawimpulsejointset_createJoint(this.__wbg_ptr, A.__wbg_ptr, I, C, g);
1014
+ return K(A, MA), E.rawimpulsejointset_createJoint(this.__wbg_ptr, A.__wbg_ptr, I, C, g);
1015
1015
  }
1016
1016
  remove(A, I) {
1017
1017
  E.rawimpulsejointset_remove(this.__wbg_ptr, A, I);
@@ -1024,16 +1024,16 @@ class lA {
1024
1024
  }
1025
1025
  forEachJointHandle(A) {
1026
1026
  try {
1027
- E.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr, iA(A));
1027
+ E.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr, DA(A));
1028
1028
  } finally {
1029
- X[QA++] = void 0;
1029
+ v[BA++] = void 0;
1030
1030
  }
1031
1031
  }
1032
1032
  forEachJointAttachedToRigidBody(A, I) {
1033
1033
  try {
1034
- E.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A, iA(I));
1034
+ E.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A, DA(I));
1035
1035
  } finally {
1036
- X[QA++] = void 0;
1036
+ v[BA++] = void 0;
1037
1037
  }
1038
1038
  }
1039
1039
  }
@@ -1116,10 +1116,10 @@ class mA {
1116
1116
  const dI = typeof FinalizationRegistry > "u" ? { register: () => {
1117
1117
  }, unregister: () => {
1118
1118
  } } : new FinalizationRegistry((D) => E.__wbg_rawislandmanager_free(D >>> 0, 1));
1119
- class nA {
1119
+ class HA {
1120
1120
  static __wrap(A) {
1121
1121
  A >>>= 0;
1122
- const I = Object.create(nA.prototype);
1122
+ const I = Object.create(HA.prototype);
1123
1123
  return I.__wbg_ptr = A, dI.register(I, I.__wbg_ptr, I), I;
1124
1124
  }
1125
1125
  __destroy_into_raw() {
@@ -1136,9 +1136,9 @@ class nA {
1136
1136
  }
1137
1137
  forEachActiveRigidBodyHandle(A) {
1138
1138
  try {
1139
- E.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr, iA(A));
1139
+ E.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr, DA(A));
1140
1140
  } finally {
1141
- X[QA++] = void 0;
1141
+ v[BA++] = void 0;
1142
1142
  }
1143
1143
  }
1144
1144
  }
@@ -1231,9 +1231,9 @@ class qC {
1231
1231
  }
1232
1232
  computeColliderMovement(A, I, C, g, Q, B, i, o, w, G, h, s) {
1233
1233
  try {
1234
- K(I, bA), K(C, hA), K(g, EA), K(Q, oA), K(i, y), E.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B, i.__wbg_ptr, o, q(w) ? 4294967297 : Math.fround(w), G, q(h) ? 4294967297 : h >>> 0, iA(s));
1234
+ K(I, TA), K(C, GA), K(g, iA), K(Q, hA), K(i, y), E.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B, i.__wbg_ptr, o, q(w) ? 4294967297 : Math.fround(w), G, q(h) ? 4294967297 : h >>> 0, DA(s));
1235
1235
  } finally {
1236
- X[QA++] = void 0;
1236
+ v[BA++] = void 0;
1237
1237
  }
1238
1238
  }
1239
1239
  computedMovement() {
@@ -1253,10 +1253,10 @@ class qC {
1253
1253
  const fI = typeof FinalizationRegistry > "u" ? { register: () => {
1254
1254
  }, unregister: () => {
1255
1255
  } } : new FinalizationRegistry((D) => E.__wbg_rawmultibodyjointset_free(D >>> 0, 1));
1256
- class HA {
1256
+ class pA {
1257
1257
  static __wrap(A) {
1258
1258
  A >>>= 0;
1259
- const I = Object.create(HA.prototype);
1259
+ const I = Object.create(pA.prototype);
1260
1260
  return I.__wbg_ptr = A, fI.register(I, I.__wbg_ptr, I), I;
1261
1261
  }
1262
1262
  __destroy_into_raw() {
@@ -1272,11 +1272,11 @@ class HA {
1272
1272
  }
1273
1273
  jointFrameX1(A) {
1274
1274
  const I = E.rawmultibodyjointset_jointFrameX1(this.__wbg_ptr, A);
1275
- return v.__wrap(I);
1275
+ return u.__wrap(I);
1276
1276
  }
1277
1277
  jointFrameX2(A) {
1278
1278
  const I = E.rawmultibodyjointset_jointFrameX2(this.__wbg_ptr, A);
1279
- return v.__wrap(I);
1279
+ return u.__wrap(I);
1280
1280
  }
1281
1281
  jointAnchor1(A) {
1282
1282
  const I = E.rawmultibodyjointset_jointAnchor1(this.__wbg_ptr, A);
@@ -1306,7 +1306,7 @@ class HA {
1306
1306
  return this.__wbg_ptr = A >>> 0, fI.register(this, this.__wbg_ptr, this), this;
1307
1307
  }
1308
1308
  createJoint(A, I, C, g) {
1309
- return K(A, NA), E.rawmultibodyjointset_createJoint(this.__wbg_ptr, A.__wbg_ptr, I, C, g);
1309
+ return K(A, MA), E.rawmultibodyjointset_createJoint(this.__wbg_ptr, A.__wbg_ptr, I, C, g);
1310
1310
  }
1311
1311
  remove(A, I) {
1312
1312
  E.rawmultibodyjointset_remove(this.__wbg_ptr, A, I);
@@ -1316,26 +1316,26 @@ class HA {
1316
1316
  }
1317
1317
  forEachJointHandle(A) {
1318
1318
  try {
1319
- E.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr, iA(A));
1319
+ E.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr, DA(A));
1320
1320
  } finally {
1321
- X[QA++] = void 0;
1321
+ v[BA++] = void 0;
1322
1322
  }
1323
1323
  }
1324
1324
  forEachJointAttachedToRigidBody(A, I) {
1325
1325
  try {
1326
- E.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A, iA(I));
1326
+ E.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A, DA(I));
1327
1327
  } finally {
1328
- X[QA++] = void 0;
1328
+ v[BA++] = void 0;
1329
1329
  }
1330
1330
  }
1331
1331
  }
1332
1332
  const bI = typeof FinalizationRegistry > "u" ? { register: () => {
1333
1333
  }, unregister: () => {
1334
1334
  } } : new FinalizationRegistry((D) => E.__wbg_rawnarrowphase_free(D >>> 0, 1));
1335
- class hA {
1335
+ class GA {
1336
1336
  static __wrap(A) {
1337
1337
  A >>>= 0;
1338
- const I = Object.create(hA.prototype);
1338
+ const I = Object.create(GA.prototype);
1339
1339
  return I.__wbg_ptr = A, bI.register(I, I.__wbg_ptr, I), I;
1340
1340
  }
1341
1341
  __destroy_into_raw() {
@@ -1351,14 +1351,14 @@ class hA {
1351
1351
  return this.__wbg_ptr = A >>> 0, bI.register(this, this.__wbg_ptr, this), this;
1352
1352
  }
1353
1353
  contact_pairs_with(A, I) {
1354
- E.rawnarrowphase_contact_pairs_with(this.__wbg_ptr, A, IA(I));
1354
+ E.rawnarrowphase_contact_pairs_with(this.__wbg_ptr, A, gA(I));
1355
1355
  }
1356
1356
  contact_pair(A, I) {
1357
1357
  const C = E.rawnarrowphase_contact_pair(this.__wbg_ptr, A, I);
1358
1358
  return C === 0 ? void 0 : Ig.__wrap(C);
1359
1359
  }
1360
1360
  intersection_pairs_with(A, I) {
1361
- E.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr, A, IA(I));
1361
+ E.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr, A, gA(I));
1362
1362
  }
1363
1363
  intersection_pair(A, I) {
1364
1364
  return E.rawnarrowphase_intersection_pair(this.__wbg_ptr, A, I) !== 0;
@@ -1435,10 +1435,10 @@ class lC {
1435
1435
  return E.rawphysicspipeline_timing_user_changes(this.__wbg_ptr);
1436
1436
  }
1437
1437
  step(A, I, C, g, Q, B, i, o, w, G) {
1438
- K(A, y), K(I, mA), K(C, nA), K(g, bA), K(Q, hA), K(B, EA), K(i, oA), K(o, lA), K(w, HA), K(G, jI), E.rawphysicspipeline_step(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, G.__wbg_ptr);
1438
+ K(A, y), K(I, mA), K(C, HA), K(g, TA), K(Q, GA), K(B, iA), K(i, hA), K(o, nA), K(w, pA), K(G, jI), E.rawphysicspipeline_step(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, G.__wbg_ptr);
1439
1439
  }
1440
1440
  stepWithEvents(A, I, C, g, Q, B, i, o, w, G, h, s, a, N) {
1441
- K(A, y), K(I, mA), K(C, nA), K(g, bA), K(Q, hA), K(B, EA), K(i, oA), K(o, lA), K(w, HA), K(G, jI), K(h, vg), E.rawphysicspipeline_stepWithEvents(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, G.__wbg_ptr, h.__wbg_ptr, IA(s), IA(a), IA(N));
1441
+ K(A, y), K(I, mA), K(C, HA), K(g, TA), K(Q, GA), K(B, iA), K(i, hA), K(o, nA), K(w, pA), K(G, jI), K(h, vg), E.rawphysicspipeline_stepWithEvents(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, G.__wbg_ptr, h.__wbg_ptr, gA(s), gA(a), gA(N));
1442
1442
  }
1443
1443
  }
1444
1444
  const qg = typeof FinalizationRegistry > "u" ? { register: () => {
@@ -1473,18 +1473,18 @@ class nC {
1473
1473
  E.rawpidcontroller_reset_integrals(this.__wbg_ptr);
1474
1474
  }
1475
1475
  apply_linear_correction(A, I, C, g, Q) {
1476
- K(I, EA), K(g, y), K(Q, y), E.rawpidcontroller_apply_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, C, g.__wbg_ptr, Q.__wbg_ptr);
1476
+ K(I, iA), K(g, y), K(Q, y), E.rawpidcontroller_apply_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, C, g.__wbg_ptr, Q.__wbg_ptr);
1477
1477
  }
1478
1478
  apply_angular_correction(A, I, C, g, Q) {
1479
- K(I, EA), E.rawpidcontroller_apply_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, C, g, Q);
1479
+ K(I, iA), E.rawpidcontroller_apply_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, C, g, Q);
1480
1480
  }
1481
1481
  linear_correction(A, I, C, g, Q) {
1482
- K(I, EA), K(g, y), K(Q, y);
1482
+ K(I, iA), K(g, y), K(Q, y);
1483
1483
  const B = E.rawpidcontroller_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, C, g.__wbg_ptr, Q.__wbg_ptr);
1484
1484
  return y.__wrap(B);
1485
1485
  }
1486
1486
  angular_correction(A, I, C, g, Q) {
1487
- return K(I, EA), E.rawpidcontroller_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, C, g, Q);
1487
+ return K(I, iA), E.rawpidcontroller_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, C, g, Q);
1488
1488
  }
1489
1489
  }
1490
1490
  const lg = typeof FinalizationRegistry > "u" ? { register: () => {
@@ -1641,10 +1641,10 @@ class UI {
1641
1641
  const TI = typeof FinalizationRegistry > "u" ? { register: () => {
1642
1642
  }, unregister: () => {
1643
1643
  } } : new FinalizationRegistry((D) => E.__wbg_rawrigidbodyset_free(D >>> 0, 1));
1644
- class EA {
1644
+ class iA {
1645
1645
  static __wrap(A) {
1646
1646
  A >>>= 0;
1647
- const I = Object.create(EA.prototype);
1647
+ const I = Object.create(iA.prototype);
1648
1648
  return I.__wbg_ptr = A, TI.register(I, I.__wbg_ptr, I), I;
1649
1649
  }
1650
1650
  __destroy_into_raw() {
@@ -1661,7 +1661,7 @@ class EA {
1661
1661
  }
1662
1662
  rbRotation(A) {
1663
1663
  const I = E.rawrigidbodyset_rbRotation(this.__wbg_ptr, A);
1664
- return v.__wrap(I);
1664
+ return u.__wrap(I);
1665
1665
  }
1666
1666
  rbSleep(A) {
1667
1667
  E.rawrigidbodyset_rbSleep(this.__wbg_ptr, A);
@@ -1678,7 +1678,7 @@ class EA {
1678
1678
  }
1679
1679
  rbNextRotation(A) {
1680
1680
  const I = E.rawrigidbodyset_rbNextRotation(this.__wbg_ptr, A);
1681
- return v.__wrap(I);
1681
+ return u.__wrap(I);
1682
1682
  }
1683
1683
  rbSetTranslation(A, I, C, g) {
1684
1684
  E.rawrigidbodyset_rbSetTranslation(this.__wbg_ptr, A, I, C, g);
@@ -1699,7 +1699,7 @@ class EA {
1699
1699
  E.rawrigidbodyset_rbSetNextKinematicRotation(this.__wbg_ptr, A, I);
1700
1700
  }
1701
1701
  rbRecomputeMassPropertiesFromColliders(A, I) {
1702
- K(I, oA), E.rawrigidbodyset_rbRecomputeMassPropertiesFromColliders(this.__wbg_ptr, A, I.__wbg_ptr);
1702
+ K(I, hA), E.rawrigidbodyset_rbRecomputeMassPropertiesFromColliders(this.__wbg_ptr, A, I.__wbg_ptr);
1703
1703
  }
1704
1704
  rbSetAdditionalMass(A, I, C) {
1705
1705
  E.rawrigidbodyset_rbSetAdditionalMass(this.__wbg_ptr, A, I, C);
@@ -1872,10 +1872,10 @@ class EA {
1872
1872
  return this.__wbg_ptr = A >>> 0, TI.register(this, this.__wbg_ptr, this), this;
1873
1873
  }
1874
1874
  createRigidBody(A, I, C, g, Q, B, i, o, w, G, h, s, a, N, S, F, M, J, c, t, r, R) {
1875
- return K(I, y), K(C, v), K(i, y), K(o, y), E.rawrigidbodyset_createRigidBody(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g, Q, B, i.__wbg_ptr, o.__wbg_ptr, w, G, h, s, a, N, S, F, M, J, c, t, r, R);
1875
+ return K(I, y), K(C, u), K(i, y), K(o, y), E.rawrigidbodyset_createRigidBody(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g, Q, B, i.__wbg_ptr, o.__wbg_ptr, w, G, h, s, a, N, S, F, M, J, c, t, r, R);
1876
1876
  }
1877
1877
  remove(A, I, C, g, Q) {
1878
- K(I, nA), K(C, oA), K(g, lA), K(Q, HA), E.rawrigidbodyset_remove(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr);
1878
+ K(I, HA), K(C, hA), K(g, nA), K(Q, pA), E.rawrigidbodyset_remove(this.__wbg_ptr, A, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr);
1879
1879
  }
1880
1880
  len() {
1881
1881
  return E.rawrigidbodyset_len(this.__wbg_ptr) >>> 0;
@@ -1885,22 +1885,22 @@ class EA {
1885
1885
  }
1886
1886
  forEachRigidBodyHandle(A) {
1887
1887
  try {
1888
- E.rawrigidbodyset_forEachRigidBodyHandle(this.__wbg_ptr, iA(A));
1888
+ E.rawrigidbodyset_forEachRigidBodyHandle(this.__wbg_ptr, DA(A));
1889
1889
  } finally {
1890
- X[QA++] = void 0;
1890
+ v[BA++] = void 0;
1891
1891
  }
1892
1892
  }
1893
1893
  propagateModifiedBodyPositionsToColliders(A) {
1894
- K(A, oA), E.rawrigidbodyset_propagateModifiedBodyPositionsToColliders(this.__wbg_ptr, A.__wbg_ptr);
1894
+ K(A, hA), E.rawrigidbodyset_propagateModifiedBodyPositionsToColliders(this.__wbg_ptr, A.__wbg_ptr);
1895
1895
  }
1896
1896
  }
1897
1897
  const fg = typeof FinalizationRegistry > "u" ? { register: () => {
1898
1898
  }, unregister: () => {
1899
1899
  } } : new FinalizationRegistry((D) => E.__wbg_rawrotation_free(D >>> 0, 1));
1900
- class v {
1900
+ class u {
1901
1901
  static __wrap(A) {
1902
1902
  A >>>= 0;
1903
- const I = Object.create(v.prototype);
1903
+ const I = Object.create(u.prototype);
1904
1904
  return I.__wbg_ptr = A, fg.register(I, I.__wbg_ptr, I), I;
1905
1905
  }
1906
1906
  __destroy_into_raw() {
@@ -1913,11 +1913,11 @@ class v {
1913
1913
  }
1914
1914
  static identity() {
1915
1915
  const A = E.rawrotation_identity();
1916
- return v.__wrap(A);
1916
+ return u.__wrap(A);
1917
1917
  }
1918
1918
  static fromAngle(A) {
1919
1919
  const I = E.rawrotation_fromAngle(A);
1920
- return v.__wrap(I);
1920
+ return u.__wrap(I);
1921
1921
  }
1922
1922
  get im() {
1923
1923
  return E.rawkinematiccharactercontroller_offset(this.__wbg_ptr);
@@ -1946,10 +1946,10 @@ class HC {
1946
1946
  return this.__wbg_ptr = A >>> 0, bg.register(this, this.__wbg_ptr, this), this;
1947
1947
  }
1948
1948
  serializeAll(A, I, C, g, Q, B, i, o, w) {
1949
- return K(A, y), K(I, mA), K(C, nA), K(g, bA), K(Q, hA), K(B, EA), K(i, oA), K(o, lA), K(w, HA), sI(E.rawserializationpipeline_serializeAll(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr));
1949
+ return K(A, y), K(I, mA), K(C, HA), K(g, TA), K(Q, GA), K(B, iA), K(i, hA), K(o, nA), K(w, pA), sI(E.rawserializationpipeline_serializeAll(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr));
1950
1950
  }
1951
1951
  deserializeAll(A) {
1952
- const I = E.rawserializationpipeline_deserializeAll(this.__wbg_ptr, IA(A));
1952
+ const I = E.rawserializationpipeline_deserializeAll(this.__wbg_ptr, gA(A));
1953
1953
  return I === 0 ? void 0 : gg.__wrap(I);
1954
1954
  }
1955
1955
  }
@@ -1993,24 +1993,24 @@ class n {
1993
1993
  }
1994
1994
  static voxels(A, I) {
1995
1995
  K(A, y);
1996
- const C = qI(I, E.__wbindgen_export_2), g = FA, Q = E.rawshape_voxels(A.__wbg_ptr, C, g);
1996
+ const C = qI(I, E.__wbindgen_export_2), g = UA, Q = E.rawshape_voxels(A.__wbg_ptr, C, g);
1997
1997
  return n.__wrap(Q);
1998
1998
  }
1999
1999
  static voxelsFromPoints(A, I) {
2000
2000
  K(A, y);
2001
- const C = dA(I, E.__wbindgen_export_2), g = FA, Q = E.rawshape_voxelsFromPoints(A.__wbg_ptr, C, g);
2001
+ const C = fA(I, E.__wbindgen_export_2), g = UA, Q = E.rawshape_voxelsFromPoints(A.__wbg_ptr, C, g);
2002
2002
  return n.__wrap(Q);
2003
2003
  }
2004
2004
  static polyline(A, I) {
2005
- const C = dA(A, E.__wbindgen_export_2), g = FA, Q = qI(I, E.__wbindgen_export_2), B = FA, i = E.rawshape_polyline(C, g, Q, B);
2005
+ const C = fA(A, E.__wbindgen_export_2), g = UA, Q = qI(I, E.__wbindgen_export_2), B = UA, i = E.rawshape_polyline(C, g, Q, B);
2006
2006
  return n.__wrap(i);
2007
2007
  }
2008
2008
  static trimesh(A, I, C) {
2009
- const g = dA(A, E.__wbindgen_export_2), Q = FA, B = qI(I, E.__wbindgen_export_2), i = FA, o = E.rawshape_trimesh(g, Q, B, i, C);
2009
+ const g = fA(A, E.__wbindgen_export_2), Q = UA, B = qI(I, E.__wbindgen_export_2), i = UA, o = E.rawshape_trimesh(g, Q, B, i, C);
2010
2010
  return o === 0 ? void 0 : n.__wrap(o);
2011
2011
  }
2012
2012
  static heightfield(A, I) {
2013
- const C = dA(A, E.__wbindgen_export_2), g = FA;
2013
+ const C = fA(A, E.__wbindgen_export_2), g = UA;
2014
2014
  K(I, y);
2015
2015
  const Q = E.rawshape_heightfield(C, g, I.__wbg_ptr);
2016
2016
  return n.__wrap(Q);
@@ -2031,50 +2031,50 @@ class n {
2031
2031
  return n.__wrap(Q);
2032
2032
  }
2033
2033
  static convexHull(A) {
2034
- const I = dA(A, E.__wbindgen_export_2), C = FA, g = E.rawshape_convexHull(I, C);
2034
+ const I = fA(A, E.__wbindgen_export_2), C = UA, g = E.rawshape_convexHull(I, C);
2035
2035
  return g === 0 ? void 0 : n.__wrap(g);
2036
2036
  }
2037
2037
  static roundConvexHull(A, I) {
2038
- const C = dA(A, E.__wbindgen_export_2), g = FA, Q = E.rawshape_roundConvexHull(C, g, I);
2038
+ const C = fA(A, E.__wbindgen_export_2), g = UA, Q = E.rawshape_roundConvexHull(C, g, I);
2039
2039
  return Q === 0 ? void 0 : n.__wrap(Q);
2040
2040
  }
2041
2041
  static convexPolyline(A) {
2042
- const I = dA(A, E.__wbindgen_export_2), C = FA, g = E.rawshape_convexPolyline(I, C);
2042
+ const I = fA(A, E.__wbindgen_export_2), C = UA, g = E.rawshape_convexPolyline(I, C);
2043
2043
  return g === 0 ? void 0 : n.__wrap(g);
2044
2044
  }
2045
2045
  static roundConvexPolyline(A, I) {
2046
- const C = dA(A, E.__wbindgen_export_2), g = FA, Q = E.rawshape_roundConvexPolyline(C, g, I);
2046
+ const C = fA(A, E.__wbindgen_export_2), g = UA, Q = E.rawshape_roundConvexPolyline(C, g, I);
2047
2047
  return Q === 0 ? void 0 : n.__wrap(Q);
2048
2048
  }
2049
2049
  castShape(A, I, C, g, Q, B, i, o, w, G) {
2050
- K(A, y), K(I, v), K(C, y), K(g, n), K(Q, y), K(B, v), K(i, y);
2050
+ K(A, y), K(I, u), K(C, y), K(g, n), K(Q, y), K(B, u), K(i, y);
2051
2051
  const h = E.rawshape_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, o, w, G);
2052
2052
  return h === 0 ? void 0 : RI.__wrap(h);
2053
2053
  }
2054
2054
  intersectsShape(A, I, C, g, Q) {
2055
- return K(A, y), K(I, v), K(C, n), K(g, y), K(Q, v), E.rawshape_intersectsShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr) !== 0;
2055
+ return K(A, y), K(I, u), K(C, n), K(g, y), K(Q, u), E.rawshape_intersectsShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr) !== 0;
2056
2056
  }
2057
2057
  contactShape(A, I, C, g, Q, B) {
2058
- K(A, y), K(I, v), K(C, n), K(g, y), K(Q, v);
2058
+ K(A, y), K(I, u), K(C, n), K(g, y), K(Q, u);
2059
2059
  const i = E.rawshape_contactShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q.__wbg_ptr, B);
2060
2060
  return i === 0 ? void 0 : gI.__wrap(i);
2061
2061
  }
2062
2062
  containsPoint(A, I, C) {
2063
- return K(A, y), K(I, v), K(C, y), E.rawshape_containsPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr) !== 0;
2063
+ return K(A, y), K(I, u), K(C, y), E.rawshape_containsPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr) !== 0;
2064
2064
  }
2065
2065
  projectPoint(A, I, C, g) {
2066
- K(A, y), K(I, v), K(C, y);
2066
+ K(A, y), K(I, u), K(C, y);
2067
2067
  const Q = E.rawshape_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g);
2068
2068
  return MI.__wrap(Q);
2069
2069
  }
2070
2070
  intersectsRay(A, I, C, g, Q) {
2071
- return K(A, y), K(I, v), K(C, y), K(g, y), E.rawshape_intersectsRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q) !== 0;
2071
+ return K(A, y), K(I, u), K(C, y), K(g, y), E.rawshape_intersectsRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q) !== 0;
2072
2072
  }
2073
2073
  castRay(A, I, C, g, Q, B) {
2074
- return K(A, y), K(I, v), K(C, y), K(g, y), E.rawshape_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q, B);
2074
+ return K(A, y), K(I, u), K(C, y), K(g, y), E.rawshape_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q, B);
2075
2075
  }
2076
2076
  castRayAndGetNormal(A, I, C, g, Q, B) {
2077
- K(A, y), K(I, v), K(C, y), K(g, y);
2077
+ K(A, y), K(I, u), K(C, y), K(g, y);
2078
2078
  const i = E.rawshape_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, C.__wbg_ptr, g.__wbg_ptr, Q, B);
2079
2079
  return i === 0 ? void 0 : UI.__wrap(i);
2080
2080
  }
@@ -2205,63 +2205,63 @@ async function ug(D) {
2205
2205
  const A = function() {
2206
2206
  const g = { wbg: {} };
2207
2207
  return g.wbg.__wbg_bind_c8359b1cba058168 = function(Q, B, i, o) {
2208
- return IA(j(Q).bind(j(B), j(i), j(o)));
2208
+ return gA(j(Q).bind(j(B), j(i), j(o)));
2209
2209
  }, g.wbg.__wbg_buffer_609cc3eee51ed158 = function(Q) {
2210
- return IA(j(Q).buffer);
2210
+ return gA(j(Q).buffer);
2211
2211
  }, g.wbg.__wbg_call_672a4d21634d4a24 = function() {
2212
2212
  return hI(function(Q, B) {
2213
- return IA(j(Q).call(j(B)));
2213
+ return gA(j(Q).call(j(B)));
2214
2214
  }, arguments);
2215
2215
  }, g.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
2216
2216
  return hI(function(Q, B, i) {
2217
- return IA(j(Q).call(j(B), j(i)));
2217
+ return gA(j(Q).call(j(B), j(i)));
2218
2218
  }, arguments);
2219
2219
  }, g.wbg.__wbg_call_833bed5770ea2041 = function() {
2220
2220
  return hI(function(Q, B, i, o) {
2221
- return IA(j(Q).call(j(B), j(i), j(o)));
2221
+ return gA(j(Q).call(j(B), j(i), j(o)));
2222
2222
  }, arguments);
2223
2223
  }, g.wbg.__wbg_call_b8adc8b1d0a0d8eb = function() {
2224
2224
  return hI(function(Q, B, i, o, w) {
2225
- return IA(j(Q).call(j(B), j(i), j(o), j(w)));
2225
+ return gA(j(Q).call(j(B), j(i), j(o), j(w)));
2226
2226
  }, arguments);
2227
2227
  }, g.wbg.__wbg_length_3b4f022188ae8db6 = function(Q) {
2228
2228
  return j(Q).length;
2229
2229
  }, g.wbg.__wbg_length_a446193dc22c12f8 = function(Q) {
2230
2230
  return j(Q).length;
2231
2231
  }, g.wbg.__wbg_new_a12002a7f91c75be = function(Q) {
2232
- return IA(new Uint8Array(j(Q)));
2232
+ return gA(new Uint8Array(j(Q)));
2233
2233
  }, g.wbg.__wbg_newnoargs_105ed471475aaf50 = function(Q, B) {
2234
- return IA(new Function(WI(Q, B)));
2234
+ return gA(new Function(WI(Q, B)));
2235
2235
  }, g.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(Q, B, i) {
2236
- return IA(new Uint8Array(j(Q), B >>> 0, i >>> 0));
2236
+ return gA(new Uint8Array(j(Q), B >>> 0, i >>> 0));
2237
2237
  }, g.wbg.__wbg_newwithbyteoffsetandlength_e6b7e69acd4c7354 = function(Q, B, i) {
2238
- return IA(new Float32Array(j(Q), B >>> 0, i >>> 0));
2238
+ return gA(new Float32Array(j(Q), B >>> 0, i >>> 0));
2239
2239
  }, g.wbg.__wbg_newwithlength_5a5efe313cfd59f1 = function(Q) {
2240
- return IA(new Float32Array(Q >>> 0));
2240
+ return gA(new Float32Array(Q >>> 0));
2241
2241
  }, g.wbg.__wbg_now_2c95c9de01293173 = function(Q) {
2242
2242
  return j(Q).now();
2243
2243
  }, g.wbg.__wbg_performance_7a3ffd0b17f663ad = function(Q) {
2244
- return IA(j(Q).performance);
2244
+ return gA(j(Q).performance);
2245
2245
  }, g.wbg.__wbg_rawcontactforceevent_new = function(Q) {
2246
- return IA($I.__wrap(Q));
2246
+ return gA($I.__wrap(Q));
2247
2247
  }, g.wbg.__wbg_rawraycolliderintersection_new = function(Q) {
2248
- return IA(JI.__wrap(Q));
2248
+ return gA(JI.__wrap(Q));
2249
2249
  }, g.wbg.__wbg_set_10bad9bee0e9c58b = function(Q, B, i) {
2250
2250
  j(Q).set(j(B), i >>> 0);
2251
2251
  }, g.wbg.__wbg_set_65595bdd868b3009 = function(Q, B, i) {
2252
2252
  j(Q).set(j(B), i >>> 0);
2253
2253
  }, g.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
2254
2254
  const Q = typeof global > "u" ? null : global;
2255
- return q(Q) ? 0 : IA(Q);
2255
+ return q(Q) ? 0 : gA(Q);
2256
2256
  }, g.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
2257
2257
  const Q = typeof globalThis > "u" ? null : globalThis;
2258
- return q(Q) ? 0 : IA(Q);
2258
+ return q(Q) ? 0 : gA(Q);
2259
2259
  }, g.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
2260
2260
  const Q = typeof self > "u" ? null : self;
2261
- return q(Q) ? 0 : IA(Q);
2261
+ return q(Q) ? 0 : gA(Q);
2262
2262
  }, g.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
2263
2263
  const Q = typeof window > "u" ? null : window;
2264
- return q(Q) ? 0 : IA(Q);
2264
+ return q(Q) ? 0 : gA(Q);
2265
2265
  }, g.wbg.__wbindgen_boolean_get = function(Q) {
2266
2266
  const B = j(Q);
2267
2267
  return typeof B == "boolean" ? B ? 1 : 0 : 2;
@@ -2270,14 +2270,14 @@ async function ug(D) {
2270
2270
  }, g.wbg.__wbindgen_is_undefined = function(Q) {
2271
2271
  return j(Q) === void 0;
2272
2272
  }, g.wbg.__wbindgen_memory = function() {
2273
- return IA(E.memory);
2273
+ return gA(E.memory);
2274
2274
  }, g.wbg.__wbindgen_number_get = function(Q, B) {
2275
2275
  const i = j(B), o = typeof i == "number" ? i : void 0;
2276
- GA().setFloat64(Q + 8, q(o) ? 0 : o, !0), GA().setInt32(Q + 0, !q(o), !0);
2276
+ KA().setFloat64(Q + 8, q(o) ? 0 : o, !0), KA().setInt32(Q + 0, !q(o), !0);
2277
2277
  }, g.wbg.__wbindgen_number_new = function(Q) {
2278
- return IA(Q);
2278
+ return gA(Q);
2279
2279
  }, g.wbg.__wbindgen_object_clone_ref = function(Q) {
2280
- return IA(j(Q));
2280
+ return gA(j(Q));
2281
2281
  }, g.wbg.__wbindgen_object_drop_ref = function(Q) {
2282
2282
  sI(Q);
2283
2283
  }, g.wbg.__wbindgen_throw = function(Q, B) {
@@ -2329,7 +2329,7 @@ class k {
2329
2329
  A.x = I.x, A.y = I.y;
2330
2330
  }
2331
2331
  }
2332
- class gA {
2332
+ class CA {
2333
2333
  static identity() {
2334
2334
  return 0;
2335
2335
  }
@@ -2339,13 +2339,13 @@ class gA {
2339
2339
  return A.free(), I;
2340
2340
  }
2341
2341
  static intoRaw(A) {
2342
- return v.fromAngle(A);
2342
+ return u.fromAngle(A);
2343
2343
  }
2344
2344
  }
2345
- var cA, MA, mI, xI, CI, vA, aA, XI, vI, aI, KI, uI, PI, SI, jA;
2345
+ var eA, RA, mI, xI, CI, vA, SA, XI, vI, aI, KI, uI, PI, SI, jA;
2346
2346
  (function(D) {
2347
2347
  D[D.Dynamic = 0] = "Dynamic", D[D.Fixed = 1] = "Fixed", D[D.KinematicPositionBased = 2] = "KinematicPositionBased", D[D.KinematicVelocityBased = 3] = "KinematicVelocityBased";
2348
- })(cA || (cA = {}));
2348
+ })(eA || (eA = {}));
2349
2349
  class VI {
2350
2350
  constructor(A, I, C) {
2351
2351
  this.rawSet = A, this.colliderSet = I, this.handle = C;
@@ -2395,7 +2395,7 @@ class VI {
2395
2395
  }
2396
2396
  rotation() {
2397
2397
  let A = this.rawSet.rbRotation(this.handle);
2398
- return gA.fromRaw(A);
2398
+ return CA.fromRaw(A);
2399
2399
  }
2400
2400
  nextTranslation() {
2401
2401
  let A = this.rawSet.rbNextTranslation(this.handle);
@@ -2403,7 +2403,7 @@ class VI {
2403
2403
  }
2404
2404
  nextRotation() {
2405
2405
  let A = this.rawSet.rbNextRotation(this.handle);
2406
- return gA.fromRaw(A);
2406
+ return CA.fromRaw(A);
2407
2407
  }
2408
2408
  setTranslation(A, I) {
2409
2409
  this.rawSet.rbSetTranslation(this.handle, A.x, A.y, I);
@@ -2567,33 +2567,33 @@ class VI {
2567
2567
  return this.rawSet.rbUserTorque(this.handle);
2568
2568
  }
2569
2569
  }
2570
- class eA {
2570
+ class LA {
2571
2571
  constructor(A) {
2572
- this.enabled = !0, this.status = A, this.translation = k.zeros(), this.rotation = gA.identity(), this.gravityScale = 1, this.linvel = k.zeros(), this.mass = 0, this.massOnly = !1, this.centerOfMass = k.zeros(), this.translationsEnabledX = !0, this.translationsEnabledY = !0, this.angvel = 0, this.principalAngularInertia = 0, this.rotationsEnabled = !0, this.linearDamping = 0, this.angularDamping = 0, this.canSleep = !0, this.sleeping = !1, this.ccdEnabled = !1, this.softCcdPrediction = 0, this.dominanceGroup = 0, this.additionalSolverIterations = 0;
2572
+ this.enabled = !0, this.status = A, this.translation = k.zeros(), this.rotation = CA.identity(), this.gravityScale = 1, this.linvel = k.zeros(), this.mass = 0, this.massOnly = !1, this.centerOfMass = k.zeros(), this.translationsEnabledX = !0, this.translationsEnabledY = !0, this.angvel = 0, this.principalAngularInertia = 0, this.rotationsEnabled = !0, this.linearDamping = 0, this.angularDamping = 0, this.canSleep = !0, this.sleeping = !1, this.ccdEnabled = !1, this.softCcdPrediction = 0, this.dominanceGroup = 0, this.additionalSolverIterations = 0;
2573
2573
  }
2574
2574
  static dynamic() {
2575
- return new eA(cA.Dynamic);
2575
+ return new LA(eA.Dynamic);
2576
2576
  }
2577
2577
  static kinematicPositionBased() {
2578
- return new eA(cA.KinematicPositionBased);
2578
+ return new LA(eA.KinematicPositionBased);
2579
2579
  }
2580
2580
  static kinematicVelocityBased() {
2581
- return new eA(cA.KinematicVelocityBased);
2581
+ return new LA(eA.KinematicVelocityBased);
2582
2582
  }
2583
2583
  static fixed() {
2584
- return new eA(cA.Fixed);
2584
+ return new LA(eA.Fixed);
2585
2585
  }
2586
2586
  static newDynamic() {
2587
- return new eA(cA.Dynamic);
2587
+ return new LA(eA.Dynamic);
2588
2588
  }
2589
2589
  static newKinematicPositionBased() {
2590
- return new eA(cA.KinematicPositionBased);
2590
+ return new LA(eA.KinematicPositionBased);
2591
2591
  }
2592
2592
  static newKinematicVelocityBased() {
2593
- return new eA(cA.KinematicVelocityBased);
2593
+ return new LA(eA.KinematicVelocityBased);
2594
2594
  }
2595
2595
  static newStatic() {
2596
- return new eA(cA.Fixed);
2596
+ return new LA(eA.Fixed);
2597
2597
  }
2598
2598
  setDominanceGroup(A) {
2599
2599
  return this.dominanceGroup = A, this;
@@ -2696,7 +2696,7 @@ class tI {
2696
2696
  }
2697
2697
  class Vg {
2698
2698
  constructor(A) {
2699
- this.raw = A || new EA(), this.map = new tI(), A && A.forEachRigidBodyHandle((I) => {
2699
+ this.raw = A || new iA(), this.map = new tI(), A && A.forEachRigidBodyHandle((I) => {
2700
2700
  this.map.set(I, new VI(A, null, I));
2701
2701
  });
2702
2702
  }
@@ -2707,7 +2707,7 @@ class Vg {
2707
2707
  this.map.forEach((I) => I.finalizeDeserialization(A));
2708
2708
  }
2709
2709
  createRigidBody(A, I) {
2710
- let C = k.intoRaw(I.translation), g = gA.intoRaw(I.rotation), Q = k.intoRaw(I.linvel), B = k.intoRaw(I.centerOfMass), i = this.raw.createRigidBody(I.enabled, C, g, I.gravityScale, I.mass, I.massOnly, B, Q, I.angvel, I.principalAngularInertia, I.translationsEnabledX, I.translationsEnabledY, I.rotationsEnabled, I.linearDamping, I.angularDamping, I.status, I.canSleep, I.sleeping, I.softCcdPrediction, I.ccdEnabled, I.dominanceGroup, I.additionalSolverIterations);
2710
+ let C = k.intoRaw(I.translation), g = CA.intoRaw(I.rotation), Q = k.intoRaw(I.linvel), B = k.intoRaw(I.centerOfMass), i = this.raw.createRigidBody(I.enabled, C, g, I.gravityScale, I.mass, I.massOnly, B, Q, I.angvel, I.principalAngularInertia, I.translationsEnabledX, I.translationsEnabledY, I.rotationsEnabled, I.linearDamping, I.angularDamping, I.status, I.canSleep, I.sleeping, I.softCcdPrediction, I.ccdEnabled, I.dominanceGroup, I.additionalSolverIterations);
2711
2711
  C.free(), g.free(), Q.free(), B.free();
2712
2712
  const o = new VI(this.raw, A, i);
2713
2713
  return o.userData = I.userData, this.map.set(i, o), o;
@@ -2801,29 +2801,29 @@ class zg {
2801
2801
  }
2802
2802
  (function(D) {
2803
2803
  D[D.Revolute = 0] = "Revolute", D[D.Fixed = 1] = "Fixed", D[D.Prismatic = 2] = "Prismatic", D[D.Rope = 3] = "Rope", D[D.Spring = 4] = "Spring";
2804
- })(MA || (MA = {})), function(D) {
2804
+ })(RA || (RA = {})), function(D) {
2805
2805
  D[D.AccelerationBased = 0] = "AccelerationBased", D[D.ForceBased = 1] = "ForceBased";
2806
2806
  }(mI || (mI = {})), function(D) {
2807
2807
  D[D.LinX = 1] = "LinX", D[D.LinY = 2] = "LinY", D[D.LinZ = 4] = "LinZ", D[D.AngX = 8] = "AngX", D[D.AngY = 16] = "AngY", D[D.AngZ = 32] = "AngZ";
2808
2808
  }(xI || (xI = {}));
2809
- class pA {
2809
+ class dA {
2810
2810
  constructor(A, I, C) {
2811
2811
  this.rawSet = A, this.bodySet = I, this.handle = C;
2812
2812
  }
2813
2813
  static newTyped(A, I, C) {
2814
2814
  switch (A.jointType(C)) {
2815
- case fA.Revolute:
2815
+ case bA.Revolute:
2816
2816
  return new gC(A, I, C);
2817
- case fA.Prismatic:
2817
+ case bA.Prismatic:
2818
2818
  return new IC(A, I, C);
2819
- case fA.Fixed:
2819
+ case bA.Fixed:
2820
2820
  return new _g(A, I, C);
2821
- case fA.Spring:
2821
+ case bA.Spring:
2822
2822
  return new AC(A, I, C);
2823
- case fA.Rope:
2823
+ case bA.Rope:
2824
2824
  return new $g(A, I, C);
2825
2825
  default:
2826
- return new pA(A, I, C);
2826
+ return new dA(A, I, C);
2827
2827
  }
2828
2828
  }
2829
2829
  finalizeDeserialization(A) {
@@ -2862,7 +2862,7 @@ class pA {
2862
2862
  return this.rawSet.jointContactsEnabled(this.handle);
2863
2863
  }
2864
2864
  }
2865
- class Qg extends pA {
2865
+ class Qg extends dA {
2866
2866
  limitsEnabled() {
2867
2867
  return this.rawSet.jointLimitsEnabled(this.handle, this.rawAxis());
2868
2868
  }
@@ -2888,11 +2888,11 @@ class Qg extends pA {
2888
2888
  this.rawSet.jointConfigureMotor(this.handle, this.rawAxis(), A, I, C, g);
2889
2889
  }
2890
2890
  }
2891
- class _g extends pA {
2891
+ class _g extends dA {
2892
2892
  }
2893
- class $g extends pA {
2893
+ class $g extends dA {
2894
2894
  }
2895
- class AC extends pA {
2895
+ class AC extends dA {
2896
2896
  }
2897
2897
  class IC extends Qg {
2898
2898
  rawAxis() {
@@ -2909,50 +2909,50 @@ class WA {
2909
2909
  }
2910
2910
  static fixed(A, I, C, g) {
2911
2911
  let Q = new WA();
2912
- return Q.anchor1 = A, Q.anchor2 = C, Q.frame1 = I, Q.frame2 = g, Q.jointType = MA.Fixed, Q;
2912
+ return Q.anchor1 = A, Q.anchor2 = C, Q.frame1 = I, Q.frame2 = g, Q.jointType = RA.Fixed, Q;
2913
2913
  }
2914
2914
  static spring(A, I, C, g, Q) {
2915
2915
  let B = new WA();
2916
- return B.anchor1 = g, B.anchor2 = Q, B.length = A, B.stiffness = I, B.damping = C, B.jointType = MA.Spring, B;
2916
+ return B.anchor1 = g, B.anchor2 = Q, B.length = A, B.stiffness = I, B.damping = C, B.jointType = RA.Spring, B;
2917
2917
  }
2918
2918
  static rope(A, I, C) {
2919
2919
  let g = new WA();
2920
- return g.anchor1 = I, g.anchor2 = C, g.length = A, g.jointType = MA.Rope, g;
2920
+ return g.anchor1 = I, g.anchor2 = C, g.length = A, g.jointType = RA.Rope, g;
2921
2921
  }
2922
2922
  static revolute(A, I) {
2923
2923
  let C = new WA();
2924
- return C.anchor1 = A, C.anchor2 = I, C.jointType = MA.Revolute, C;
2924
+ return C.anchor1 = A, C.anchor2 = I, C.jointType = RA.Revolute, C;
2925
2925
  }
2926
2926
  static prismatic(A, I, C) {
2927
2927
  let g = new WA();
2928
- return g.anchor1 = A, g.anchor2 = I, g.axis = C, g.jointType = MA.Prismatic, g;
2928
+ return g.anchor1 = A, g.anchor2 = I, g.axis = C, g.jointType = RA.Prismatic, g;
2929
2929
  }
2930
2930
  intoRaw() {
2931
2931
  let A, I, C = k.intoRaw(this.anchor1), g = k.intoRaw(this.anchor2), Q = !1, B = 0, i = 0;
2932
2932
  switch (this.jointType) {
2933
- case MA.Fixed:
2934
- let o = gA.intoRaw(this.frame1), w = gA.intoRaw(this.frame2);
2935
- I = NA.fixed(C, o, g, w), o.free(), w.free();
2933
+ case RA.Fixed:
2934
+ let o = CA.intoRaw(this.frame1), w = CA.intoRaw(this.frame2);
2935
+ I = MA.fixed(C, o, g, w), o.free(), w.free();
2936
2936
  break;
2937
- case MA.Spring:
2938
- I = NA.spring(this.length, this.stiffness, this.damping, C, g);
2937
+ case RA.Spring:
2938
+ I = MA.spring(this.length, this.stiffness, this.damping, C, g);
2939
2939
  break;
2940
- case MA.Rope:
2941
- I = NA.rope(this.length, C, g);
2940
+ case RA.Rope:
2941
+ I = MA.rope(this.length, C, g);
2942
2942
  break;
2943
- case MA.Prismatic:
2944
- A = k.intoRaw(this.axis), this.limitsEnabled && (Q = !0, B = this.limits[0], i = this.limits[1]), I = NA.prismatic(C, g, A, Q, B, i), A.free();
2943
+ case RA.Prismatic:
2944
+ A = k.intoRaw(this.axis), this.limitsEnabled && (Q = !0, B = this.limits[0], i = this.limits[1]), I = MA.prismatic(C, g, A, Q, B, i), A.free();
2945
2945
  break;
2946
- case MA.Revolute:
2947
- I = NA.revolute(C, g);
2946
+ case RA.Revolute:
2947
+ I = MA.revolute(C, g);
2948
2948
  }
2949
2949
  return C.free(), g.free(), I;
2950
2950
  }
2951
2951
  }
2952
2952
  class CC {
2953
2953
  constructor(A) {
2954
- this.raw = A || new lA(), this.map = new tI(), A && A.forEachJointHandle((I) => {
2955
- this.map.set(I, pA.newTyped(A, null, I));
2954
+ this.raw = A || new nA(), this.map = new tI(), A && A.forEachJointHandle((I) => {
2955
+ this.map.set(I, dA.newTyped(A, null, I));
2956
2956
  });
2957
2957
  }
2958
2958
  free() {
@@ -2964,7 +2964,7 @@ class CC {
2964
2964
  createJoint(A, I, C, g, Q) {
2965
2965
  const B = I.intoRaw(), i = this.raw.createJoint(B, C, g, Q);
2966
2966
  B.free();
2967
- let o = pA.newTyped(this.raw, A, i);
2967
+ let o = dA.newTyped(this.raw, A, i);
2968
2968
  return this.map.set(i, o), o;
2969
2969
  }
2970
2970
  remove(A, I) {
@@ -2998,11 +2998,11 @@ class xA {
2998
2998
  }
2999
2999
  static newTyped(A, I) {
3000
3000
  switch (A.jointType(I)) {
3001
- case fA.Revolute:
3001
+ case bA.Revolute:
3002
3002
  return new EC(A, I);
3003
- case fA.Prismatic:
3003
+ case bA.Prismatic:
3004
3004
  return new BC(A, I);
3005
- case fA.Fixed:
3005
+ case bA.Fixed:
3006
3006
  return new QC(A, I);
3007
3007
  default:
3008
3008
  return new xA(A, I);
@@ -3034,7 +3034,7 @@ class EC extends Bg {
3034
3034
  }
3035
3035
  class iC {
3036
3036
  constructor(A) {
3037
- this.raw = A || new HA(), this.map = new tI(), A && A.forEachJointHandle((I) => {
3037
+ this.raw = A || new pA(), this.map = new tI(), A && A.forEachJointHandle((I) => {
3038
3038
  this.map.set(I, xA.newTyped(this.raw, I));
3039
3039
  });
3040
3040
  }
@@ -3085,7 +3085,7 @@ class DC {
3085
3085
  }
3086
3086
  class oC {
3087
3087
  constructor(A) {
3088
- this.raw = A || new nA();
3088
+ this.raw = A || new HA();
3089
3089
  }
3090
3090
  free() {
3091
3091
  this.raw && this.raw.free(), this.raw = void 0;
@@ -3177,7 +3177,7 @@ class DI extends PA {
3177
3177
  }
3178
3178
  class wC {
3179
3179
  constructor(A) {
3180
- this.raw = A || new bA();
3180
+ this.raw = A || new TA();
3181
3181
  }
3182
3182
  free() {
3183
3183
  this.raw && this.raw.free(), this.raw = void 0;
@@ -3195,7 +3195,7 @@ class wC {
3195
3195
  this.raw.intersectionsWithRay(A.raw, I.raw, C.raw, a, N, Q, B, (S) => i(QI.fromRaw(C, S)), o, w, G, h, s), a.free(), N.free();
3196
3196
  }
3197
3197
  intersectionWithShape(A, I, C, g, Q, B, i, o, w, G, h) {
3198
- let s = k.intoRaw(g), a = gA.intoRaw(Q), N = B.intoRaw(), S = this.raw.intersectionWithShape(A.raw, I.raw, C.raw, s, a, N, i, o, w, G, h);
3198
+ let s = k.intoRaw(g), a = CA.intoRaw(Q), N = B.intoRaw(), S = this.raw.intersectionWithShape(A.raw, I.raw, C.raw, s, a, N, i, o, w, G, h);
3199
3199
  return s.free(), a.free(), N.free(), S;
3200
3200
  }
3201
3201
  projectPoint(A, I, C, g, Q, B, i, o, w, G) {
@@ -3211,11 +3211,11 @@ class wC {
3211
3211
  this.raw.intersectionsWithPoint(A.raw, I.raw, C.raw, h, Q, B, i, o, w, G), h.free();
3212
3212
  }
3213
3213
  castShape(A, I, C, g, Q, B, i, o, w, G, h, s, a, N, S) {
3214
- let F = k.intoRaw(g), M = gA.intoRaw(Q), J = k.intoRaw(B), c = i.intoRaw(), t = DI.fromRaw(C, this.raw.castShape(A.raw, I.raw, C.raw, F, M, J, c, o, w, G, h, s, a, N, S));
3214
+ let F = k.intoRaw(g), M = CA.intoRaw(Q), J = k.intoRaw(B), c = i.intoRaw(), t = DI.fromRaw(C, this.raw.castShape(A.raw, I.raw, C.raw, F, M, J, c, o, w, G, h, s, a, N, S));
3215
3215
  return F.free(), M.free(), J.free(), c.free(), t;
3216
3216
  }
3217
3217
  intersectionsWithShape(A, I, C, g, Q, B, i, o, w, G, h, s) {
3218
- let a = k.intoRaw(g), N = gA.intoRaw(Q), S = B.intoRaw();
3218
+ let a = k.intoRaw(g), N = CA.intoRaw(Q), S = B.intoRaw();
3219
3219
  this.raw.intersectionsWithShape(A.raw, I.raw, C.raw, a, N, S, i, o, w, G, h, s), a.free(), N.free(), S.free();
3220
3220
  }
3221
3221
  collidersWithAabbIntersectingAabb(A, I, C, g, Q, B) {
@@ -3225,7 +3225,7 @@ class wC {
3225
3225
  }
3226
3226
  class hC {
3227
3227
  constructor(A) {
3228
- this.raw = A || new hA(), this.tempManifold = new sC(null);
3228
+ this.raw = A || new GA(), this.tempManifold = new sC(null);
3229
3229
  }
3230
3230
  free() {
3231
3231
  this.raw && this.raw.free(), this.raw = void 0;
@@ -3324,197 +3324,197 @@ class uA {
3324
3324
  return A.free(), I;
3325
3325
  }
3326
3326
  }
3327
- class KA {
3327
+ class yA {
3328
3328
  static fromRaw(A, I) {
3329
3329
  const C = A.coShapeType(I);
3330
3330
  let g, Q, B, i, o, w, G;
3331
3331
  switch (C) {
3332
- case SA.Ball:
3332
+ case FA.Ball:
3333
3333
  return new Eg(A.coRadius(I));
3334
- case SA.Cuboid:
3334
+ case FA.Cuboid:
3335
3335
  return g = A.coHalfExtents(I), new Dg(g.x, g.y);
3336
- case SA.RoundCuboid:
3336
+ case FA.RoundCuboid:
3337
3337
  return g = A.coHalfExtents(I), Q = A.coRoundRadius(I), new og(g.x, g.y, Q);
3338
- case SA.Capsule:
3338
+ case FA.Capsule:
3339
3339
  return o = A.coHalfHeight(I), w = A.coRadius(I), new wg(o, w);
3340
- case SA.Segment:
3340
+ case FA.Segment:
3341
3341
  return B = A.coVertices(I), new hg(k.new(B[0], B[1]), k.new(B[2], B[3]));
3342
- case SA.Polyline:
3342
+ case FA.Polyline:
3343
3343
  return B = A.coVertices(I), i = A.coIndices(I), new ag(B, i);
3344
- case SA.Triangle:
3344
+ case FA.Triangle:
3345
3345
  return B = A.coVertices(I), new sg(k.new(B[0], B[1]), k.new(B[2], B[3]), k.new(B[4], B[5]));
3346
- case SA.RoundTriangle:
3346
+ case FA.RoundTriangle:
3347
3347
  return B = A.coVertices(I), Q = A.coRoundRadius(I), new Gg(k.new(B[0], B[1]), k.new(B[2], B[3]), k.new(B[4], B[5]), Q);
3348
- case SA.HalfSpace:
3348
+ case FA.HalfSpace:
3349
3349
  return G = k.fromRaw(A.coHalfspaceNormal(I)), new ig(G);
3350
- case SA.Voxels:
3350
+ case FA.Voxels:
3351
3351
  const h = A.coVoxelData(I), s = A.coVoxelSize(I);
3352
3352
  return new Kg(h, s);
3353
- case SA.TriMesh:
3353
+ case FA.TriMesh:
3354
3354
  B = A.coVertices(I), i = A.coIndices(I);
3355
3355
  const a = A.coTriMeshFlags(I);
3356
3356
  return new Sg(B, i, a);
3357
- case SA.HeightField:
3357
+ case FA.HeightField:
3358
3358
  const N = A.coHeightfieldScale(I), S = A.coHeightfieldHeights(I);
3359
3359
  return new Ng(S, N);
3360
- case SA.ConvexPolygon:
3360
+ case FA.ConvexPolygon:
3361
3361
  return B = A.coVertices(I), new NI(B, !1);
3362
- case SA.RoundConvexPolygon:
3362
+ case FA.RoundConvexPolygon:
3363
3363
  return B = A.coVertices(I), Q = A.coRoundRadius(I), new kI(B, Q, !1);
3364
3364
  default:
3365
3365
  throw new Error("unknown shape type: " + C);
3366
3366
  }
3367
3367
  }
3368
3368
  castShape(A, I, C, g, Q, B, i, o, w, G) {
3369
- let h = k.intoRaw(A), s = gA.intoRaw(I), a = k.intoRaw(C), N = k.intoRaw(Q), S = gA.intoRaw(B), F = k.intoRaw(i), M = this.intoRaw(), J = g.intoRaw(), c = PA.fromRaw(null, M.castShape(h, s, a, J, N, S, F, o, w, G));
3369
+ let h = k.intoRaw(A), s = CA.intoRaw(I), a = k.intoRaw(C), N = k.intoRaw(Q), S = CA.intoRaw(B), F = k.intoRaw(i), M = this.intoRaw(), J = g.intoRaw(), c = PA.fromRaw(null, M.castShape(h, s, a, J, N, S, F, o, w, G));
3370
3370
  return h.free(), s.free(), a.free(), N.free(), S.free(), F.free(), M.free(), J.free(), c;
3371
3371
  }
3372
3372
  intersectsShape(A, I, C, g, Q) {
3373
- let B = k.intoRaw(A), i = gA.intoRaw(I), o = k.intoRaw(g), w = gA.intoRaw(Q), G = this.intoRaw(), h = C.intoRaw(), s = G.intersectsShape(B, i, h, o, w);
3373
+ let B = k.intoRaw(A), i = CA.intoRaw(I), o = k.intoRaw(g), w = CA.intoRaw(Q), G = this.intoRaw(), h = C.intoRaw(), s = G.intersectsShape(B, i, h, o, w);
3374
3374
  return B.free(), i.free(), o.free(), w.free(), G.free(), h.free(), s;
3375
3375
  }
3376
3376
  contactShape(A, I, C, g, Q, B) {
3377
- let i = k.intoRaw(A), o = gA.intoRaw(I), w = k.intoRaw(g), G = gA.intoRaw(Q), h = this.intoRaw(), s = C.intoRaw(), a = uA.fromRaw(h.contactShape(i, o, s, w, G, B));
3377
+ let i = k.intoRaw(A), o = CA.intoRaw(I), w = k.intoRaw(g), G = CA.intoRaw(Q), h = this.intoRaw(), s = C.intoRaw(), a = uA.fromRaw(h.contactShape(i, o, s, w, G, B));
3378
3378
  return i.free(), o.free(), w.free(), G.free(), h.free(), s.free(), a;
3379
3379
  }
3380
3380
  containsPoint(A, I, C) {
3381
- let g = k.intoRaw(A), Q = gA.intoRaw(I), B = k.intoRaw(C), i = this.intoRaw(), o = i.containsPoint(g, Q, B);
3381
+ let g = k.intoRaw(A), Q = CA.intoRaw(I), B = k.intoRaw(C), i = this.intoRaw(), o = i.containsPoint(g, Q, B);
3382
3382
  return g.free(), Q.free(), B.free(), i.free(), o;
3383
3383
  }
3384
3384
  projectPoint(A, I, C, g) {
3385
- let Q = k.intoRaw(A), B = gA.intoRaw(I), i = k.intoRaw(C), o = this.intoRaw(), w = iI.fromRaw(o.projectPoint(Q, B, i, g));
3385
+ let Q = k.intoRaw(A), B = CA.intoRaw(I), i = k.intoRaw(C), o = this.intoRaw(), w = iI.fromRaw(o.projectPoint(Q, B, i, g));
3386
3386
  return Q.free(), B.free(), i.free(), o.free(), w;
3387
3387
  }
3388
3388
  intersectsRay(A, I, C, g) {
3389
- let Q = k.intoRaw(I), B = gA.intoRaw(C), i = k.intoRaw(A.origin), o = k.intoRaw(A.dir), w = this.intoRaw(), G = w.intersectsRay(Q, B, i, o, g);
3389
+ let Q = k.intoRaw(I), B = CA.intoRaw(C), i = k.intoRaw(A.origin), o = k.intoRaw(A.dir), w = this.intoRaw(), G = w.intersectsRay(Q, B, i, o, g);
3390
3390
  return Q.free(), B.free(), i.free(), o.free(), w.free(), G;
3391
3391
  }
3392
3392
  castRay(A, I, C, g, Q) {
3393
- let B = k.intoRaw(I), i = gA.intoRaw(C), o = k.intoRaw(A.origin), w = k.intoRaw(A.dir), G = this.intoRaw(), h = G.castRay(B, i, o, w, g, Q);
3393
+ let B = k.intoRaw(I), i = CA.intoRaw(C), o = k.intoRaw(A.origin), w = k.intoRaw(A.dir), G = this.intoRaw(), h = G.castRay(B, i, o, w, g, Q);
3394
3394
  return B.free(), i.free(), o.free(), w.free(), G.free(), h;
3395
3395
  }
3396
3396
  castRayAndGetNormal(A, I, C, g, Q) {
3397
- let B = k.intoRaw(I), i = gA.intoRaw(C), o = k.intoRaw(A.origin), w = k.intoRaw(A.dir), G = this.intoRaw(), h = EI.fromRaw(G.castRayAndGetNormal(B, i, o, w, g, Q));
3397
+ let B = k.intoRaw(I), i = CA.intoRaw(C), o = k.intoRaw(A.origin), w = k.intoRaw(A.dir), G = this.intoRaw(), h = EI.fromRaw(G.castRayAndGetNormal(B, i, o, w, g, Q));
3398
3398
  return B.free(), i.free(), o.free(), w.free(), G.free(), h;
3399
3399
  }
3400
3400
  }
3401
3401
  (function(D) {
3402
3402
  D[D.Ball = 0] = "Ball", D[D.Cuboid = 1] = "Cuboid", D[D.Capsule = 2] = "Capsule", D[D.Segment = 3] = "Segment", D[D.Polyline = 4] = "Polyline", D[D.Triangle = 5] = "Triangle", D[D.TriMesh = 6] = "TriMesh", D[D.HeightField = 7] = "HeightField", D[D.ConvexPolygon = 9] = "ConvexPolygon", D[D.RoundCuboid = 10] = "RoundCuboid", D[D.RoundTriangle = 11] = "RoundTriangle", D[D.RoundConvexPolygon = 12] = "RoundConvexPolygon", D[D.HalfSpace = 13] = "HalfSpace", D[D.Voxels = 14] = "Voxels";
3403
- })(aA || (aA = {})), function(D) {
3403
+ })(SA || (SA = {})), function(D) {
3404
3404
  D[D.DELETE_BAD_TOPOLOGY_TRIANGLES = 4] = "DELETE_BAD_TOPOLOGY_TRIANGLES", D[D.ORIENTED = 8] = "ORIENTED", D[D.MERGE_DUPLICATE_VERTICES = 16] = "MERGE_DUPLICATE_VERTICES", D[D.DELETE_DEGENERATE_TRIANGLES = 32] = "DELETE_DEGENERATE_TRIANGLES", D[D.DELETE_DUPLICATE_TRIANGLES = 64] = "DELETE_DUPLICATE_TRIANGLES", D[D.FIX_INTERNAL_EDGES = 144] = "FIX_INTERNAL_EDGES";
3405
3405
  }(XI || (XI = {}));
3406
- class Eg extends KA {
3406
+ class Eg extends yA {
3407
3407
  constructor(A) {
3408
- super(), this.type = aA.Ball, this.radius = A;
3408
+ super(), this.type = SA.Ball, this.radius = A;
3409
3409
  }
3410
3410
  intoRaw() {
3411
3411
  return n.ball(this.radius);
3412
3412
  }
3413
3413
  }
3414
- class ig extends KA {
3414
+ class ig extends yA {
3415
3415
  constructor(A) {
3416
- super(), this.type = aA.HalfSpace, this.normal = A;
3416
+ super(), this.type = SA.HalfSpace, this.normal = A;
3417
3417
  }
3418
3418
  intoRaw() {
3419
3419
  let A = k.intoRaw(this.normal), I = n.halfspace(A);
3420
3420
  return A.free(), I;
3421
3421
  }
3422
3422
  }
3423
- class Dg extends KA {
3423
+ class Dg extends yA {
3424
3424
  constructor(A, I) {
3425
- super(), this.type = aA.Cuboid, this.halfExtents = k.new(A, I);
3425
+ super(), this.type = SA.Cuboid, this.halfExtents = k.new(A, I);
3426
3426
  }
3427
3427
  intoRaw() {
3428
3428
  return n.cuboid(this.halfExtents.x, this.halfExtents.y);
3429
3429
  }
3430
3430
  }
3431
- class og extends KA {
3431
+ class og extends yA {
3432
3432
  constructor(A, I, C) {
3433
- super(), this.type = aA.RoundCuboid, this.halfExtents = k.new(A, I), this.borderRadius = C;
3433
+ super(), this.type = SA.RoundCuboid, this.halfExtents = k.new(A, I), this.borderRadius = C;
3434
3434
  }
3435
3435
  intoRaw() {
3436
3436
  return n.roundCuboid(this.halfExtents.x, this.halfExtents.y, this.borderRadius);
3437
3437
  }
3438
3438
  }
3439
- class wg extends KA {
3439
+ class wg extends yA {
3440
3440
  constructor(A, I) {
3441
- super(), this.type = aA.Capsule, this.halfHeight = A, this.radius = I;
3441
+ super(), this.type = SA.Capsule, this.halfHeight = A, this.radius = I;
3442
3442
  }
3443
3443
  intoRaw() {
3444
3444
  return n.capsule(this.halfHeight, this.radius);
3445
3445
  }
3446
3446
  }
3447
- class hg extends KA {
3447
+ class hg extends yA {
3448
3448
  constructor(A, I) {
3449
- super(), this.type = aA.Segment, this.a = A, this.b = I;
3449
+ super(), this.type = SA.Segment, this.a = A, this.b = I;
3450
3450
  }
3451
3451
  intoRaw() {
3452
3452
  let A = k.intoRaw(this.a), I = k.intoRaw(this.b), C = n.segment(A, I);
3453
3453
  return A.free(), I.free(), C;
3454
3454
  }
3455
3455
  }
3456
- class sg extends KA {
3456
+ class sg extends yA {
3457
3457
  constructor(A, I, C) {
3458
- super(), this.type = aA.Triangle, this.a = A, this.b = I, this.c = C;
3458
+ super(), this.type = SA.Triangle, this.a = A, this.b = I, this.c = C;
3459
3459
  }
3460
3460
  intoRaw() {
3461
3461
  let A = k.intoRaw(this.a), I = k.intoRaw(this.b), C = k.intoRaw(this.c), g = n.triangle(A, I, C);
3462
3462
  return A.free(), I.free(), C.free(), g;
3463
3463
  }
3464
3464
  }
3465
- class Gg extends KA {
3465
+ class Gg extends yA {
3466
3466
  constructor(A, I, C, g) {
3467
- super(), this.type = aA.RoundTriangle, this.a = A, this.b = I, this.c = C, this.borderRadius = g;
3467
+ super(), this.type = SA.RoundTriangle, this.a = A, this.b = I, this.c = C, this.borderRadius = g;
3468
3468
  }
3469
3469
  intoRaw() {
3470
3470
  let A = k.intoRaw(this.a), I = k.intoRaw(this.b), C = k.intoRaw(this.c), g = n.roundTriangle(A, I, C, this.borderRadius);
3471
3471
  return A.free(), I.free(), C.free(), g;
3472
3472
  }
3473
3473
  }
3474
- class ag extends KA {
3474
+ class ag extends yA {
3475
3475
  constructor(A, I) {
3476
- super(), this.type = aA.Polyline, this.vertices = A, this.indices = I ?? new Uint32Array(0);
3476
+ super(), this.type = SA.Polyline, this.vertices = A, this.indices = I ?? new Uint32Array(0);
3477
3477
  }
3478
3478
  intoRaw() {
3479
3479
  return n.polyline(this.vertices, this.indices);
3480
3480
  }
3481
3481
  }
3482
- class Kg extends KA {
3482
+ class Kg extends yA {
3483
3483
  constructor(A, I) {
3484
- super(), this.type = aA.Voxels, this.data = A, this.voxelSize = I;
3484
+ super(), this.type = SA.Voxels, this.data = A, this.voxelSize = I;
3485
3485
  }
3486
3486
  intoRaw() {
3487
3487
  let A, I = k.intoRaw(this.voxelSize);
3488
3488
  return A = this.data instanceof Int32Array ? n.voxels(I, this.data) : n.voxelsFromPoints(I, this.data), I.free(), A;
3489
3489
  }
3490
3490
  }
3491
- class Sg extends KA {
3491
+ class Sg extends yA {
3492
3492
  constructor(A, I, C) {
3493
- super(), this.type = aA.TriMesh, this.vertices = A, this.indices = I, this.flags = C;
3493
+ super(), this.type = SA.TriMesh, this.vertices = A, this.indices = I, this.flags = C;
3494
3494
  }
3495
3495
  intoRaw() {
3496
3496
  return n.trimesh(this.vertices, this.indices, this.flags);
3497
3497
  }
3498
3498
  }
3499
- class NI extends KA {
3499
+ class NI extends yA {
3500
3500
  constructor(A, I) {
3501
- super(), this.type = aA.ConvexPolygon, this.vertices = A, this.skipConvexHullComputation = !!I;
3501
+ super(), this.type = SA.ConvexPolygon, this.vertices = A, this.skipConvexHullComputation = !!I;
3502
3502
  }
3503
3503
  intoRaw() {
3504
3504
  return this.skipConvexHullComputation ? n.convexPolyline(this.vertices) : n.convexHull(this.vertices);
3505
3505
  }
3506
3506
  }
3507
- class kI extends KA {
3507
+ class kI extends yA {
3508
3508
  constructor(A, I, C) {
3509
- super(), this.type = aA.RoundConvexPolygon, this.vertices = A, this.borderRadius = I, this.skipConvexHullComputation = !!C;
3509
+ super(), this.type = SA.RoundConvexPolygon, this.vertices = A, this.borderRadius = I, this.skipConvexHullComputation = !!C;
3510
3510
  }
3511
3511
  intoRaw() {
3512
3512
  return this.skipConvexHullComputation ? n.roundConvexPolyline(this.vertices, this.borderRadius) : n.roundConvexHull(this.vertices, this.borderRadius);
3513
3513
  }
3514
3514
  }
3515
- class Ng extends KA {
3515
+ class Ng extends yA {
3516
3516
  constructor(A, I) {
3517
- super(), this.type = aA.HeightField, this.heights = A, this.scale = I;
3517
+ super(), this.type = SA.HeightField, this.heights = A, this.scale = I;
3518
3518
  }
3519
3519
  intoRaw() {
3520
3520
  let A = k.intoRaw(this.scale), I = n.heightfield(this.heights, A);
@@ -3990,7 +3990,7 @@ class _I {
3990
3990
  this.handle != null && (this._parent = A.get(this.colliderSet.raw.coParent(this.handle)));
3991
3991
  }
3992
3992
  ensureShapeIsCached() {
3993
- this._shape || (this._shape = KA.fromRaw(this.colliderSet.raw, this.handle));
3993
+ this._shape || (this._shape = yA.fromRaw(this.colliderSet.raw, this.handle));
3994
3994
  }
3995
3995
  get shape() {
3996
3996
  return this.ensureShapeIsCached(), this._shape;
@@ -4008,10 +4008,10 @@ class _I {
4008
4008
  return k.fromRaw(this.colliderSet.raw.coTranslationWrtParent(this.handle));
4009
4009
  }
4010
4010
  rotation() {
4011
- return gA.fromRaw(this.colliderSet.raw.coRotation(this.handle));
4011
+ return CA.fromRaw(this.colliderSet.raw.coRotation(this.handle));
4012
4012
  }
4013
4013
  rotationWrtParent() {
4014
- return gA.fromRaw(this.colliderSet.raw.coRotationWrtParent(this.handle));
4014
+ return CA.fromRaw(this.colliderSet.raw.coRotationWrtParent(this.handle));
4015
4015
  }
4016
4016
  isSensor() {
4017
4017
  return this.colliderSet.raw.coIsSensor(this.handle);
@@ -4192,7 +4192,7 @@ class _I {
4192
4192
  return C.free(), g.free(), Q;
4193
4193
  }
4194
4194
  castShape(A, I, C, g, Q, B, i, o) {
4195
- let w = k.intoRaw(A), G = k.intoRaw(C), h = gA.intoRaw(g), s = k.intoRaw(Q), a = I.intoRaw(), N = PA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastShape(this.handle, w, a, G, h, s, B, i, o));
4195
+ let w = k.intoRaw(A), G = k.intoRaw(C), h = CA.intoRaw(g), s = k.intoRaw(Q), a = I.intoRaw(), N = PA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastShape(this.handle, w, a, G, h, s, B, i, o));
4196
4196
  return w.free(), G.free(), h.free(), s.free(), a.free(), N;
4197
4197
  }
4198
4198
  castCollider(A, I, C, g, Q, B) {
@@ -4200,11 +4200,11 @@ class _I {
4200
4200
  return i.free(), o.free(), w;
4201
4201
  }
4202
4202
  intersectsShape(A, I, C) {
4203
- let g = k.intoRaw(I), Q = gA.intoRaw(C), B = A.intoRaw(), i = this.colliderSet.raw.coIntersectsShape(this.handle, B, g, Q);
4203
+ let g = k.intoRaw(I), Q = CA.intoRaw(C), B = A.intoRaw(), i = this.colliderSet.raw.coIntersectsShape(this.handle, B, g, Q);
4204
4204
  return g.free(), Q.free(), B.free(), i;
4205
4205
  }
4206
4206
  contactShape(A, I, C, g) {
4207
- let Q = k.intoRaw(I), B = gA.intoRaw(C), i = A.intoRaw(), o = uA.fromRaw(this.colliderSet.raw.coContactShape(this.handle, i, Q, B, g));
4207
+ let Q = k.intoRaw(I), B = CA.intoRaw(C), i = A.intoRaw(), o = uA.fromRaw(this.colliderSet.raw.coContactShape(this.handle, i, Q, B, g));
4208
4208
  return Q.free(), B.free(), i.free(), o;
4209
4209
  }
4210
4210
  contactCollider(A, I) {
@@ -4222,73 +4222,73 @@ class _I {
4222
4222
  (function(D) {
4223
4223
  D[D.Density = 0] = "Density", D[D.Mass = 1] = "Mass", D[D.MassProps = 2] = "MassProps";
4224
4224
  })(jA || (jA = {}));
4225
- class sA {
4225
+ class aA {
4226
4226
  constructor(A) {
4227
- this.enabled = !0, this.shape = A, this.massPropsMode = jA.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = gA.identity(), this.translation = k.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = CI.Average, this.restitutionCombineRule = CI.Average, this.activeCollisionTypes = SI.DEFAULT, this.activeEvents = aI.NONE, this.activeHooks = KI.NONE, this.mass = 0, this.centerOfMass = k.zeros(), this.contactForceEventThreshold = 0, this.contactSkin = 0, this.principalAngularInertia = 0, this.rotationsEnabled = !0;
4227
+ this.enabled = !0, this.shape = A, this.massPropsMode = jA.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = CA.identity(), this.translation = k.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = CI.Average, this.restitutionCombineRule = CI.Average, this.activeCollisionTypes = SI.DEFAULT, this.activeEvents = aI.NONE, this.activeHooks = KI.NONE, this.mass = 0, this.centerOfMass = k.zeros(), this.contactForceEventThreshold = 0, this.contactSkin = 0, this.principalAngularInertia = 0, this.rotationsEnabled = !0;
4228
4228
  }
4229
4229
  static ball(A) {
4230
4230
  const I = new Eg(A);
4231
- return new sA(I);
4231
+ return new aA(I);
4232
4232
  }
4233
4233
  static capsule(A, I) {
4234
4234
  const C = new wg(A, I);
4235
- return new sA(C);
4235
+ return new aA(C);
4236
4236
  }
4237
4237
  static segment(A, I) {
4238
4238
  const C = new hg(A, I);
4239
- return new sA(C);
4239
+ return new aA(C);
4240
4240
  }
4241
4241
  static triangle(A, I, C) {
4242
4242
  const g = new sg(A, I, C);
4243
- return new sA(g);
4243
+ return new aA(g);
4244
4244
  }
4245
4245
  static roundTriangle(A, I, C, g) {
4246
4246
  const Q = new Gg(A, I, C, g);
4247
- return new sA(Q);
4247
+ return new aA(Q);
4248
4248
  }
4249
4249
  static polyline(A, I) {
4250
4250
  const C = new ag(A, I);
4251
- return new sA(C);
4251
+ return new aA(C);
4252
4252
  }
4253
4253
  static voxels(A, I) {
4254
4254
  const C = new Kg(A, I);
4255
- return new sA(C);
4255
+ return new aA(C);
4256
4256
  }
4257
4257
  static trimesh(A, I, C) {
4258
4258
  const g = new Sg(A, I, C);
4259
- return new sA(g);
4259
+ return new aA(g);
4260
4260
  }
4261
4261
  static cuboid(A, I) {
4262
4262
  const C = new Dg(A, I);
4263
- return new sA(C);
4263
+ return new aA(C);
4264
4264
  }
4265
4265
  static roundCuboid(A, I, C) {
4266
4266
  const g = new og(A, I, C);
4267
- return new sA(g);
4267
+ return new aA(g);
4268
4268
  }
4269
4269
  static halfspace(A) {
4270
4270
  const I = new ig(A);
4271
- return new sA(I);
4271
+ return new aA(I);
4272
4272
  }
4273
4273
  static heightfield(A, I) {
4274
4274
  const C = new Ng(A, I);
4275
- return new sA(C);
4275
+ return new aA(C);
4276
4276
  }
4277
4277
  static convexHull(A) {
4278
4278
  const I = new NI(A, !1);
4279
- return new sA(I);
4279
+ return new aA(I);
4280
4280
  }
4281
4281
  static convexPolyline(A) {
4282
4282
  const I = new NI(A, !0);
4283
- return new sA(I);
4283
+ return new aA(I);
4284
4284
  }
4285
4285
  static roundConvexHull(A, I) {
4286
4286
  const C = new kI(A, I, !1);
4287
- return new sA(C);
4287
+ return new aA(C);
4288
4288
  }
4289
4289
  static roundConvexPolyline(A, I) {
4290
4290
  const C = new kI(A, I, !0);
4291
- return new sA(C);
4291
+ return new aA(C);
4292
4292
  }
4293
4293
  setTranslation(A, I) {
4294
4294
  if (typeof A != "number" || typeof I != "number") throw TypeError("The translation components must be numbers.");
@@ -4348,7 +4348,7 @@ class sA {
4348
4348
  }
4349
4349
  class FC {
4350
4350
  constructor(A) {
4351
- this.raw = A || new oA(), this.map = new tI(), A && A.forEachColliderHandle((I) => {
4351
+ this.raw = A || new hA(), this.map = new tI(), A && A.forEachColliderHandle((I) => {
4352
4352
  this.map.set(I, new _I(this, I, null));
4353
4353
  });
4354
4354
  }
@@ -4364,7 +4364,7 @@ class FC {
4364
4364
  createCollider(A, I, C) {
4365
4365
  let g = C != null && C != null;
4366
4366
  if (g && isNaN(C)) throw Error("Cannot create a collider with a parent rigid-body handle that is not a number.");
4367
- let Q = I.shape.intoRaw(), B = k.intoRaw(I.translation), i = gA.intoRaw(I.rotation), o = k.intoRaw(I.centerOfMass), w = this.raw.createCollider(I.enabled, Q, B, i, I.massPropsMode, I.mass, o, I.principalAngularInertia, I.density, I.friction, I.restitution, I.frictionCombineRule, I.restitutionCombineRule, I.isSensor, I.collisionGroups, I.solverGroups, I.activeCollisionTypes, I.activeHooks, I.activeEvents, I.contactForceEventThreshold, I.contactSkin, g, g ? C : 0, A.raw);
4367
+ let Q = I.shape.intoRaw(), B = k.intoRaw(I.translation), i = CA.intoRaw(I.rotation), o = k.intoRaw(I.centerOfMass), w = this.raw.createCollider(I.enabled, Q, B, i, I.massPropsMode, I.mass, o, I.principalAngularInertia, I.density, I.friction, I.restitution, I.frictionCombineRule, I.restitutionCombineRule, I.isSensor, I.collisionGroups, I.solverGroups, I.activeCollisionTypes, I.activeHooks, I.activeEvents, I.contactForceEventThreshold, I.contactSkin, g, g ? C : 0, A.raw);
4368
4368
  Q.free(), B.free(), i.free(), o.free();
4369
4369
  let G = g ? A.get(C) : null, h = new _I(this, w, G, I.shape);
4370
4370
  return this.map.set(w, h), h;
@@ -4423,12 +4423,12 @@ for (var bC = { byteLength: function(D) {
4423
4423
  var A, I, C = Wg(D), g = C[0], Q = C[1], B = new TC(function(w, G, h) {
4424
4424
  return 3 * (G + h) / 4 - h;
4425
4425
  }(0, g, Q)), i = 0, o = Q > 0 ? g - 4 : g;
4426
- for (I = 0; I < o; I += 4) A = RA[D.charCodeAt(I)] << 18 | RA[D.charCodeAt(I + 1)] << 12 | RA[D.charCodeAt(I + 2)] << 6 | RA[D.charCodeAt(I + 3)], B[i++] = A >> 16 & 255, B[i++] = A >> 8 & 255, B[i++] = 255 & A;
4427
- return Q === 2 && (A = RA[D.charCodeAt(I)] << 2 | RA[D.charCodeAt(I + 1)] >> 4, B[i++] = 255 & A), Q === 1 && (A = RA[D.charCodeAt(I)] << 10 | RA[D.charCodeAt(I + 1)] << 4 | RA[D.charCodeAt(I + 2)] >> 2, B[i++] = A >> 8 & 255, B[i++] = 255 & A), B;
4426
+ for (I = 0; I < o; I += 4) A = tA[D.charCodeAt(I)] << 18 | tA[D.charCodeAt(I + 1)] << 12 | tA[D.charCodeAt(I + 2)] << 6 | tA[D.charCodeAt(I + 3)], B[i++] = A >> 16 & 255, B[i++] = A >> 8 & 255, B[i++] = 255 & A;
4427
+ return Q === 2 && (A = tA[D.charCodeAt(I)] << 2 | tA[D.charCodeAt(I + 1)] >> 4, B[i++] = 255 & A), Q === 1 && (A = tA[D.charCodeAt(I)] << 10 | tA[D.charCodeAt(I + 1)] << 4 | tA[D.charCodeAt(I + 2)] >> 2, B[i++] = A >> 8 & 255, B[i++] = 255 & A), B;
4428
4428
  }, fromByteArray: function(D) {
4429
4429
  for (var A, I = D.length, C = I % 3, g = [], Q = 16383, B = 0, i = I - C; B < i; B += Q) g.push(OC(D, B, B + Q > i ? i : B + Q));
4430
- return C === 1 ? (A = D[I - 1], g.push(rA[A >> 2] + rA[A << 4 & 63] + "==")) : C === 2 && (A = (D[I - 2] << 8) + D[I - 1], g.push(rA[A >> 10] + rA[A >> 4 & 63] + rA[A << 2 & 63] + "=")), g.join("");
4431
- } }, rA = [], RA = [], TC = typeof Uint8Array < "u" ? Uint8Array : Array, OI = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", XA = 0, ZC = OI.length; XA < ZC; ++XA) rA[XA] = OI[XA], RA[OI.charCodeAt(XA)] = XA;
4430
+ return C === 1 ? (A = D[I - 1], g.push(qA[A >> 2] + qA[A << 4 & 63] + "==")) : C === 2 && (A = (D[I - 2] << 8) + D[I - 1], g.push(qA[A >> 10] + qA[A >> 4 & 63] + qA[A << 2 & 63] + "=")), g.join("");
4431
+ } }, qA = [], tA = [], TC = typeof Uint8Array < "u" ? Uint8Array : Array, OI = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", XA = 0, ZC = OI.length; XA < ZC; ++XA) qA[XA] = OI[XA], tA[OI.charCodeAt(XA)] = XA;
4432
4432
  function Wg(D) {
4433
4433
  var A = D.length;
4434
4434
  if (A % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
@@ -4436,7 +4436,7 @@ function Wg(D) {
4436
4436
  return I === -1 && (I = A), [I, I === A ? 0 : 4 - I % 4];
4437
4437
  }
4438
4438
  function OC(D, A, I) {
4439
- for (var C, g, Q = [], B = A; B < I; B += 3) C = (D[B] << 16 & 16711680) + (D[B + 1] << 8 & 65280) + (255 & D[B + 2]), Q.push(rA[(g = C) >> 18 & 63] + rA[g >> 12 & 63] + rA[g >> 6 & 63] + rA[63 & g]);
4439
+ for (var C, g, Q = [], B = A; B < I; B += 3) C = (D[B] << 16 & 16711680) + (D[B + 1] << 8 & 65280) + (255 & D[B + 2]), Q.push(qA[(g = C) >> 18 & 63] + qA[g >> 12 & 63] + qA[g >> 6 & 63] + qA[63 & g]);
4440
4440
  return Q.join("");
4441
4441
  }
4442
4442
  function WC() {
@@ -4450,7 +4450,7 @@ function jC() {
4450
4450
  try {
4451
4451
  const g = E.__wbindgen_add_to_stack_pointer(-16);
4452
4452
  E.version(g);
4453
- var I = GA().getInt32(g + 0, !0), C = GA().getInt32(g + 4, !0);
4453
+ var I = KA().getInt32(g + 0, !0), C = KA().getInt32(g + 4, !0);
4454
4454
  return D = I, A = C, WI(I, C);
4455
4455
  } finally {
4456
4456
  E.__wbindgen_add_to_stack_pointer(16), E.__wbindgen_export_1(D, A, 1);
@@ -4461,26 +4461,26 @@ function mC(D) {
4461
4461
  var A;
4462
4462
  A = D, E.reserve_memory(A);
4463
4463
  }
4464
- RA[45] = 62, RA[95] = 63;
4465
- var yA = Object.freeze({ __proto__: null, version: jC, reserveMemory: mC, Vector2: Pg, VectorOps: k, RotationOps: gA, get RigidBodyType() {
4466
- return cA;
4467
- }, RigidBody: VI, RigidBodyDesc: eA, RigidBodySet: Vg, IntegrationParameters: zg, get JointType() {
4468
- return MA;
4464
+ tA[45] = 62, tA[95] = 63;
4465
+ var JA = Object.freeze({ __proto__: null, version: jC, reserveMemory: mC, Vector2: Pg, VectorOps: k, RotationOps: CA, get RigidBodyType() {
4466
+ return eA;
4467
+ }, RigidBody: VI, RigidBodyDesc: LA, RigidBodySet: Vg, IntegrationParameters: zg, get JointType() {
4468
+ return RA;
4469
4469
  }, get MotorModel() {
4470
4470
  return mI;
4471
4471
  }, get JointAxesMask() {
4472
4472
  return xI;
4473
- }, ImpulseJoint: pA, UnitImpulseJoint: Qg, FixedImpulseJoint: _g, RopeImpulseJoint: $g, SpringImpulseJoint: AC, PrismaticImpulseJoint: IC, RevoluteImpulseJoint: gC, JointData: WA, ImpulseJointSet: CC, MultibodyJoint: xA, UnitMultibodyJoint: Bg, FixedMultibodyJoint: QC, PrismaticMultibodyJoint: BC, RevoluteMultibodyJoint: EC, MultibodyJointSet: iC, get CoefficientCombineRule() {
4473
+ }, ImpulseJoint: dA, UnitImpulseJoint: Qg, FixedImpulseJoint: _g, RopeImpulseJoint: $g, SpringImpulseJoint: AC, PrismaticImpulseJoint: IC, RevoluteImpulseJoint: gC, JointData: WA, ImpulseJointSet: CC, MultibodyJoint: xA, UnitMultibodyJoint: Bg, FixedMultibodyJoint: QC, PrismaticMultibodyJoint: BC, RevoluteMultibodyJoint: EC, MultibodyJointSet: iC, get CoefficientCombineRule() {
4474
4474
  return CI;
4475
- }, CCDSolver: DC, IslandManager: oC, BroadPhase: wC, NarrowPhase: hC, TempContactManifold: sC, Shape: KA, get ShapeType() {
4476
- return aA;
4475
+ }, CCDSolver: DC, IslandManager: oC, BroadPhase: wC, NarrowPhase: hC, TempContactManifold: sC, Shape: yA, get ShapeType() {
4476
+ return SA;
4477
4477
  }, get TriMeshFlags() {
4478
4478
  return XI;
4479
4479
  }, Ball: Eg, HalfSpace: ig, Cuboid: Dg, RoundCuboid: og, Capsule: wg, Segment: hg, Triangle: sg, RoundTriangle: Gg, Polyline: ag, Voxels: Kg, TriMesh: Sg, ConvexPolygon: NI, RoundConvexPolygon: kI, Heightfield: Ng, get ActiveCollisionTypes() {
4480
4480
  return SI;
4481
4481
  }, Collider: _I, get MassPropsMode() {
4482
4482
  return jA;
4483
- }, ColliderDesc: sA, ColliderSet: FC, get FeatureType() {
4483
+ }, ColliderDesc: aA, ColliderSet: FC, get FeatureType() {
4484
4484
  return vA;
4485
4485
  }, Ray: pC, RayIntersection: EI, RayColliderIntersection: QI, RayColliderHit: cI, PointProjection: iI, PointColliderProjection: BI, ShapeCastHit: PA, ColliderShapeCastHit: DI, ShapeContact: uA, World: YI, PhysicsPipeline: GC, SerializationPipeline: zI, get ActiveEvents() {
4486
4486
  return aI;
@@ -4501,7 +4501,7 @@ class xC {
4501
4501
  _(this, "initialized", !1);
4502
4502
  }
4503
4503
  async init(A) {
4504
- this.initialized || (await yA.init(), this.world = new yA.World(new yA.Vector2(A.x, A.y)), this.initialized = !0);
4504
+ this.initialized || (await JA.init(), this.world = new JA.World(new JA.Vector2(A.x, A.y)), this.initialized = !0);
4505
4505
  }
4506
4506
  destroy() {
4507
4507
  this.bodies.clear(), this.colliders.clear(), this.world && (this.world.free(), this.world = null), this.initialized = !1;
@@ -4512,32 +4512,32 @@ class xC {
4512
4512
  return;
4513
4513
  }
4514
4514
  this.bodies.has(A.id) && this.removeBody(A.id);
4515
- const I = A.isStatic ? yA.RigidBodyDesc.fixed() : yA.RigidBodyDesc.dynamic();
4515
+ const I = A.isStatic ? JA.RigidBodyDesc.fixed() : JA.RigidBodyDesc.dynamic();
4516
4516
  I.setTranslation(A.x, A.y), A.rotation !== void 0 && I.setRotation(A.rotation);
4517
4517
  const C = this.world.createRigidBody(I);
4518
4518
  let g;
4519
4519
  switch (A.type) {
4520
4520
  case "Rectangle":
4521
- g = yA.ColliderDesc.cuboid(
4521
+ g = JA.ColliderDesc.cuboid(
4522
4522
  A.width / 2,
4523
4523
  A.height / 2
4524
4524
  );
4525
4525
  break;
4526
4526
  case "Ellipse":
4527
- g = yA.ColliderDesc.ball(
4527
+ g = JA.ColliderDesc.ball(
4528
4528
  Math.max(A.width, A.height) / 2
4529
4529
  );
4530
4530
  break;
4531
4531
  case "Triangle":
4532
4532
  case "Star":
4533
4533
  case "Polygon":
4534
- g = yA.ColliderDesc.cuboid(
4534
+ g = JA.ColliderDesc.cuboid(
4535
4535
  A.width / 2,
4536
4536
  A.height / 2
4537
4537
  );
4538
4538
  break;
4539
4539
  default:
4540
- g = yA.ColliderDesc.cuboid(
4540
+ g = JA.ColliderDesc.cuboid(
4541
4541
  A.width / 2,
4542
4542
  A.height / 2
4543
4543
  );
@@ -4577,7 +4577,7 @@ class xC {
4577
4577
  }
4578
4578
  setPosition(A, I, C) {
4579
4579
  const g = this.bodies.get(A);
4580
- g && g.setTranslation(new yA.Vector2(I, C), !0);
4580
+ g && g.setTranslation(new JA.Vector2(I, C), !0);
4581
4581
  }
4582
4582
  setRotation(A, I) {
4583
4583
  const C = this.bodies.get(A);
@@ -4585,15 +4585,15 @@ class xC {
4585
4585
  }
4586
4586
  setVelocity(A, I, C) {
4587
4587
  const g = this.bodies.get(A);
4588
- g && g.setLinvel(new yA.Vector2(I, C), !0);
4588
+ g && g.setLinvel(new JA.Vector2(I, C), !0);
4589
4589
  }
4590
4590
  applyForce(A, I, C) {
4591
4591
  const g = this.bodies.get(A);
4592
- g && g.addForce(new yA.Vector2(I, C), !0);
4592
+ g && g.addForce(new JA.Vector2(I, C), !0);
4593
4593
  }
4594
4594
  applyImpulse(A, I, C) {
4595
4595
  const g = this.bodies.get(A);
4596
- g && g.applyImpulse(new yA.Vector2(I, C), !0);
4596
+ g && g.applyImpulse(new JA.Vector2(I, C), !0);
4597
4597
  }
4598
4598
  }
4599
4599
  class XC {
@@ -4798,6 +4798,9 @@ class XC {
4798
4798
  const g = document.createElement("link");
4799
4799
  g.id = C, g.rel = "stylesheet", g.href = `https://fonts.googleapis.com/css2?display=swap${I}`, document.head.appendChild(g);
4800
4800
  }
4801
+ document.fonts && document.fonts.ready && document.fonts.ready.then(() => {
4802
+ this.advance(0);
4803
+ });
4801
4804
  }
4802
4805
  enterStates(A, I) {
4803
4806
  if (I.length === 0) return;
@@ -5142,9 +5145,9 @@ class XC {
5142
5145
  if ((A === "up" || A === "blur") && (this.draggingSliderId = null, this.draggingListViewId = null), this.activeDropdownId && A === "down") {
5143
5146
  const s = this.artboard.objects.find((a) => a.id === this.activeDropdownId);
5144
5147
  if (s && (s.type === "Dropdown" || s.variant === "dropdown")) {
5145
- const a = this.objectStates.get(s.id), N = (a == null ? void 0 : a.options) || s.options || {}, S = s.geometry || {}, F = S.width ?? s.width ?? 200, M = S.height ?? s.height ?? 40, J = N.optionsList || [], c = N.itemHeight || 32, t = N.listPadding ?? 4, r = J.length * c + t * 2, R = this.getWorldTransform(s.id), U = F * Math.abs(R.scaleX), e = M * Math.abs(R.scaleY), L = R.y + e / 2 + 4, Y = Math.abs(I - R.x) <= U / 2, b = C >= L && C <= L + r * Math.abs(R.scaleY);
5146
- if (Y && b) {
5147
- const u = Math.abs(R.scaleY), $ = C - (L + t * u), m = Math.floor($ / (c * u));
5148
+ const a = this.objectStates.get(s.id), N = (a == null ? void 0 : a.options) || s.options || {}, S = s.geometry || {}, F = S.width ?? s.width ?? 200, M = S.height ?? s.height ?? 40, J = N.optionsList || [], c = N.itemHeight || 32, t = N.listPadding ?? 4, r = J.length * c + t * 2, R = this.getWorldTransform(s.id), U = F * Math.abs(R.scaleX), e = M * Math.abs(R.scaleY), L = R.y + e / 2 + 4, Y = Math.abs(I - R.x) <= U / 2, T = C >= L && C <= L + r * Math.abs(R.scaleY);
5149
+ if (Y && T) {
5150
+ const P = Math.abs(R.scaleY), $ = C - (L + t * P), m = Math.floor($ / (c * P));
5148
5151
  if (m >= 0 && m < J.length) {
5149
5152
  const AA = J[m];
5150
5153
  N.selectedOption = AA, N.isOpen = !1, this.activeDropdownId = null, s.inputId && this.setInternalInput(s.inputId, AA), this.onComponentChange && this.onComponentChange({
@@ -5605,8 +5608,8 @@ class XC {
5605
5608
  e === "uppercase" ? U = U.toUpperCase() : e === "lowercase" ? U = U.toLowerCase() : e === "capitalize" && (U = U.replace(/\b\w/g, (O) => O.toUpperCase()));
5606
5609
  let L = ((r = Q.fontWeight) == null ? void 0 : r.toString()) || "400", Y = "normal";
5607
5610
  L.toLowerCase().includes("italic") && (Y = "italic", L = L.replace(/italic/gi, "").trim() || "400");
5608
- const b = this.mapFontWeight(L), u = Math.max(1, Q.fontSize || 16);
5609
- A.font = `${Y} ${b} ${u}px "${Q.fontFamily || "Inter"}", sans-serif`;
5611
+ const T = this.mapFontWeight(L), P = Math.max(1, Q.fontSize || 16);
5612
+ A.font = `${Y} ${T} ${P}px "${Q.fontFamily || "Inter"}", sans-serif`;
5610
5613
  const $ = Q.textVerticalAlign || "top";
5611
5614
  let m = -o / 2;
5612
5615
  $ === "middle" || $ === "center" ? (A.textBaseline = "middle", m = 0) : $ === "bottom" ? (A.textBaseline = "bottom", m = o / 2) : (A.textBaseline = "top", m = -o / 2);
@@ -5614,79 +5617,107 @@ class XC {
5614
5617
  A.textAlign = AA;
5615
5618
  let z = -i / 2;
5616
5619
  AA === "center" && (z = 0), AA === "right" && (z = i / 2);
5617
- const BA = Q.letterSpacing || 0, x = Q.paragraphSpacing || 0, CA = (Q.lineHeight || 1.16) * u, P = Q.width || i || 200, H = (O) => {
5618
- if (BA === 0) return A.measureText(O).width;
5619
- let d = 0;
5620
+ const EA = Q.letterSpacing || 0, x = Q.paragraphSpacing || 0, QA = (Q.lineHeight || 1.16) * P, X = Q.width || i || 200, H = (O) => {
5621
+ if (EA === 0) return A.measureText(O).width;
5622
+ let f = 0;
5620
5623
  for (let l = 0; l < O.length; l++)
5621
- d += A.measureText(O[l]).width + BA;
5622
- return d - BA;
5623
- }, p = [], f = String(U || "").split(`
5624
+ f += A.measureText(O[l]).width + EA;
5625
+ return f - EA;
5626
+ }, p = [], b = String(U || "").split(`
5624
5627
  `);
5625
- f.forEach((O, d) => {
5628
+ b.forEach((O, f) => {
5626
5629
  const l = String(O || "").split(" ");
5627
- let Z = "";
5630
+ let d = "";
5628
5631
  for (let W = 0; W < l.length; W++) {
5629
- const DA = Z + l[W] + " ";
5630
- H(DA.trim()) > P && W > 0 ? (p.push({ text: Z.trim(), isParaEnd: !1 }), Z = l[W] + " ") : Z = DA;
5632
+ let IA = l[W];
5633
+ const NA = d + IA + " ";
5634
+ if (H(NA.trim()) <= X)
5635
+ d = NA;
5636
+ else {
5637
+ if (d !== "") {
5638
+ let oA = -1;
5639
+ for (let wA = 0; wA < IA.length; wA++) {
5640
+ const cA = d + IA.substring(0, wA + 1);
5641
+ if (H(cA) <= X)
5642
+ oA = wA;
5643
+ else
5644
+ break;
5645
+ }
5646
+ if (oA !== -1) {
5647
+ const wA = IA.substring(0, oA + 1), cA = IA.substring(oA + 1);
5648
+ p.push({ text: d + wA, isParaEnd: !1 }), d = "", l[W] = cA, W--;
5649
+ continue;
5650
+ } else {
5651
+ p.push({ text: d.trim(), isParaEnd: !1 }), d = "", W--;
5652
+ continue;
5653
+ }
5654
+ }
5655
+ let kA = "";
5656
+ for (let oA = 0; oA < IA.length; oA++) {
5657
+ const wA = kA + IA[oA];
5658
+ H(wA) > X && kA !== "" ? (p.push({ text: kA, isParaEnd: !1 }), kA = IA[oA]) : kA = wA;
5659
+ }
5660
+ d = kA + " ";
5661
+ }
5631
5662
  }
5632
- p.push({ text: Z.trim(), isParaEnd: d < f.length - 1 });
5663
+ p.push({ text: d.trim(), isParaEnd: f < b.length - 1 });
5633
5664
  });
5634
- let T = m, V = p.length * CA;
5665
+ let Z = m, V = p.length * QA;
5635
5666
  if (x > 0) {
5636
- const O = p.filter((d, l) => d.isParaEnd && l < p.length - 1).length;
5667
+ const O = p.filter((f, l) => f.isParaEnd && l < p.length - 1).length;
5637
5668
  V += O * x;
5638
5669
  }
5639
- $ === "middle" || $ === "center" ? T -= V / 2 - u / 2 : $ === "bottom" && (T -= V - u);
5640
- const wA = (O, d, l, Z, W) => {
5641
- var DA, kA;
5642
- if (BA === 0 && (Q.enableSegments !== !0 || !Q.segments || Q.segments.length === 0))
5643
- Z ? A.strokeText(O, d, l) : A.fillText(O, d, l);
5670
+ $ === "middle" || $ === "center" ? Z -= V / 2 - P / 2 : $ === "bottom" && (Z -= V - P);
5671
+ const sA = (O, f, l, d, W) => {
5672
+ var IA, NA;
5673
+ if (EA === 0 && (Q.enableSegments !== !0 || !Q.segments || Q.segments.length === 0))
5674
+ d ? A.strokeText(O, f, l) : A.fillText(O, f, l);
5644
5675
  else {
5645
- const LA = H(O);
5646
- let JA = d;
5647
- AA === "center" ? JA -= LA / 2 : AA === "right" && (JA -= LA);
5648
- let UA = JA;
5649
- for (let TA = 0; TA < O.length; TA++) {
5650
- const oI = O[TA];
5676
+ const kA = H(O);
5677
+ let oA = f;
5678
+ AA === "center" ? oA -= kA / 2 : AA === "right" && (oA -= kA);
5679
+ let wA = oA;
5680
+ for (let cA = 0; cA < O.length; cA++) {
5681
+ const oI = O[cA];
5651
5682
  if (Q.enableSegments === !0 && Q.segments && Q.segments.length > 0) {
5652
- const eI = W + TA;
5683
+ const eI = W + cA;
5653
5684
  let rI = 0;
5654
- const tA = Q.segments.find((ZA) => {
5685
+ const YA = Q.segments.find((ZA) => {
5655
5686
  if (!ZA || typeof ZA.text != "string") return !1;
5656
5687
  const LI = rI;
5657
5688
  return rI += ZA.text.length, eI >= LI && eI < rI;
5658
5689
  });
5659
- if (tA) {
5660
- if (tA.fill) {
5661
- const ZA = ((kA = (DA = g == null ? void 0 : g.style) == null ? void 0 : DA.fill) == null ? void 0 : kA.color) || null;
5662
- Z ? A.strokeStyle = tA.fill.color || A.strokeStyle : A.fillStyle = ZA || tA.fill.color || A.fillStyle;
5690
+ if (YA) {
5691
+ if (YA.fill) {
5692
+ const ZA = ((NA = (IA = g == null ? void 0 : g.style) == null ? void 0 : IA.fill) == null ? void 0 : NA.color) || null;
5693
+ d ? A.strokeStyle = YA.fill.color || A.strokeStyle : A.fillStyle = ZA || YA.fill.color || A.fillStyle;
5663
5694
  }
5664
- if (tA.fontSize || tA.fontFamily || tA.fontWeight) {
5665
- const ZA = tA.fontWeight ? this.mapFontWeight(tA.fontWeight.toString()) : b, LI = tA.fontSize || u, MC = tA.fontFamily || Q.fontFamily || "Inter";
5695
+ if (YA.fontSize || YA.fontFamily || YA.fontWeight) {
5696
+ const ZA = YA.fontWeight ? this.mapFontWeight(YA.fontWeight.toString()) : T, LI = YA.fontSize || P, MC = YA.fontFamily || Q.fontFamily || "Inter";
5666
5697
  A.font = `${Y} ${ZA} ${LI}px "${MC}", sans-serif`;
5667
5698
  }
5668
5699
  }
5669
5700
  }
5670
- Z ? A.strokeText(oI, UA, l) : A.fillText(oI, UA, l), Q.enableSegments === !0 && Q.segments && Q.segments.length > 0 && (A.font = `${Y} ${b} ${u}px "${Q.fontFamily || "Inter"}", sans-serif`), UA += A.measureText(oI).width + BA;
5701
+ d ? A.strokeText(oI, wA, l) : A.fillText(oI, wA, l), Q.enableSegments === !0 && Q.segments && Q.segments.length > 0 && (A.font = `${Y} ${T} ${P}px "${Q.fontFamily || "Inter"}", sans-serif`), wA += A.measureText(oI).width + EA;
5671
5702
  }
5672
5703
  }
5673
5704
  };
5674
5705
  if (B.fill) {
5675
- const O = A.globalAlpha, d = this.createCanvasFill(A, B.fill, i, o);
5676
- A.fillStyle = d || B.fill.color || "#000000", A.globalAlpha = O * (B.fill.opacity ?? 1);
5677
- let l = 0, Z = T;
5706
+ const O = A.globalAlpha, f = this.createCanvasFill(A, B.fill, i, o);
5707
+ A.fillStyle = f || B.fill.color || "#000000", A.globalAlpha = O * (B.fill.opacity ?? 1);
5708
+ let l = 0, d = Z;
5678
5709
  p.forEach((W) => {
5679
- const DA = U.indexOf(W.text, l);
5680
- DA !== -1 && (wA(W.text, z, Z, !1, DA), l = DA + W.text.length, Z += CA + (W.isParaEnd ? x : 0));
5710
+ const IA = U.indexOf(W.text, l);
5711
+ IA !== -1 && (sA(W.text, z, d, !1, IA), l = IA + W.text.length, d += QA + (W.isParaEnd ? x : 0));
5681
5712
  }), A.globalAlpha = O;
5682
5713
  }
5683
5714
  if (B.stroke && B.stroke.width > 0) {
5684
5715
  const O = A.globalAlpha;
5685
5716
  A.strokeStyle = B.stroke.color, A.lineWidth = B.stroke.width, A.globalAlpha = O * (B.stroke.opacity ?? 1);
5686
- let d = 0, l = T;
5687
- p.forEach((Z) => {
5688
- const W = U.indexOf(Z.text, d);
5689
- W !== -1 && (wA(Z.text, z, l, !0, W), d = W + Z.text.length, l += CA + (Z.isParaEnd ? x : 0));
5717
+ let f = 0, l = Z;
5718
+ p.forEach((d) => {
5719
+ const W = U.indexOf(d.text, f);
5720
+ W !== -1 && (sA(d.text, z, l, !0, W), f = W + d.text.length, l += QA + (d.isParaEnd ? x : 0));
5690
5721
  }), A.globalAlpha = O;
5691
5722
  }
5692
5723
  } else if (Q.type === "Image") {
@@ -5712,10 +5743,10 @@ class XC {
5712
5743
  Y = Y.replace(z, U[m]);
5713
5744
  }
5714
5745
  });
5715
- const b = new Blob([Y], { type: "image/svg+xml" }), u = URL.createObjectURL(b);
5746
+ const T = new Blob([Y], { type: "image/svg+xml" }), P = URL.createObjectURL(T);
5716
5747
  L.onload = () => {
5717
5748
  this.artboard && this.reset();
5718
- }, L.src = u, this.imageCache.set(e, L);
5749
+ }, L.src = P, this.imageCache.set(e, L);
5719
5750
  }
5720
5751
  L.complete && L.naturalWidth > 0 && (G !== 0 ? (A.save(), this.drawRoundRect(A, -i / 2, -o / 2, i, o, G), A.clip(), A.drawImage(L, -i / 2, -o / 2, i, o), A.restore()) : A.drawImage(L, -i / 2, -o / 2, i, o));
5721
5752
  }
@@ -5726,8 +5757,8 @@ class XC {
5726
5757
  const R = B.shadow.color || "#000000", U = B.shadow.opacity ?? 1;
5727
5758
  let e = R;
5728
5759
  if (R.startsWith("#")) {
5729
- const L = parseInt(R.slice(1, 3), 16), Y = parseInt(R.slice(3, 5), 16), b = parseInt(R.slice(5, 7), 16);
5730
- e = `rgba(${L}, ${Y}, ${b}, ${U})`;
5760
+ const L = parseInt(R.slice(1, 3), 16), Y = parseInt(R.slice(3, 5), 16), T = parseInt(R.slice(5, 7), 16);
5761
+ e = `rgba(${L}, ${Y}, ${T}, ${U})`;
5731
5762
  } else R.startsWith("rgba") && (e = R.replace(/[\d.]+\)$/g, `${U})`));
5732
5763
  A.shadowColor = e, A.shadowBlur = B.shadow.blur, A.shadowOffsetX = B.shadow.offsetX, A.shadowOffsetY = B.shadow.offsetY;
5733
5764
  }
@@ -5739,17 +5770,17 @@ class XC {
5739
5770
  } else if (I.type === "Frame" || I.type === "Group" && !I.isStructuralGroup) {
5740
5771
  const R = g.width ?? Q.width ?? I.width ?? i, U = g.height ?? Q.height ?? I.height ?? o, e = G;
5741
5772
  if (A.save(), B.shadow && B.shadow.opacity > 0) {
5742
- const Y = B.shadow.color || "#000000", b = B.shadow.opacity ?? 1;
5743
- let u = Y;
5773
+ const Y = B.shadow.color || "#000000", T = B.shadow.opacity ?? 1;
5774
+ let P = Y;
5744
5775
  if (Y.startsWith("#")) {
5745
5776
  const $ = parseInt(Y.slice(1, 3), 16), m = parseInt(Y.slice(3, 5), 16), AA = parseInt(Y.slice(5, 7), 16);
5746
- u = `rgba(${$}, ${m}, ${AA}, ${b})`;
5777
+ P = `rgba(${$}, ${m}, ${AA}, ${T})`;
5747
5778
  }
5748
- A.shadowColor = u, A.shadowBlur = B.shadow.blur, A.shadowOffsetX = B.shadow.offsetX, A.shadowOffsetY = B.shadow.offsetY;
5779
+ A.shadowColor = P, A.shadowBlur = B.shadow.blur, A.shadowOffsetX = B.shadow.offsetX, A.shadowOffsetY = B.shadow.offsetY;
5749
5780
  }
5750
5781
  if (A.beginPath(), this.drawRoundRect(A, -R / 2, -U / 2, R, U, e), B.fill && B.fill.type !== "None") {
5751
- const Y = A.globalAlpha, b = this.createCanvasFill(A, B.fill, R, U);
5752
- A.fillStyle = b || B.fill.color || "transparent", A.globalAlpha = Y * (B.fill.opacity ?? 1), A.fill(), A.globalAlpha = Y;
5782
+ const Y = A.globalAlpha, T = this.createCanvasFill(A, B.fill, R, U);
5783
+ A.fillStyle = T || B.fill.color || "transparent", A.globalAlpha = Y * (B.fill.opacity ?? 1), A.fill(), A.globalAlpha = Y;
5753
5784
  }
5754
5785
  if (A.restore(), B.stroke && B.stroke.width > 0 && B.stroke.isEnabled !== !1) {
5755
5786
  const Y = { type: "Rectangle", corner_radius: e };
@@ -5765,8 +5796,8 @@ class XC {
5765
5796
  if (!e) return;
5766
5797
  const L = this.objectStates.get(U), Y = (L == null ? void 0 : L.geometry) || e.geometry;
5767
5798
  if (Y && Y.isMask && (L == null ? void 0 : L.visible) !== !1) {
5768
- const b = Y.width || 0, u = Y.height || 0;
5769
- this.applyObjectTransform(A, U), this.applyPath(A, Y, b, u), A.clip(), R++;
5799
+ const T = Y.width || 0, P = Y.height || 0;
5800
+ this.applyObjectTransform(A, U), this.applyPath(A, Y, T, P), A.clip(), R++;
5770
5801
  } else
5771
5802
  this.renderObject(A, e, C);
5772
5803
  }); R > 0; )
@@ -5890,117 +5921,117 @@ class XC {
5890
5921
  A.beginPath(), this._tracePath(A, I, C, g);
5891
5922
  }
5892
5923
  renderInputBox(A, I) {
5893
- var wA, O;
5894
- const C = this.objectStates.get(I.id), g = (C == null ? void 0 : C.options) || I.options || {}, Q = ((wA = I.geometry) == null ? void 0 : wA.width) || 250, B = ((O = I.geometry) == null ? void 0 : O.height) || 45, i = this.focusedId === I.id, o = this.lastHoveredObjectId === I.id, w = g.previewState || "default", G = w !== "default" ? w : i ? "focused" : o ? "hovered" : "default", h = g.label || { visible: !0, text: "Label" }, s = g.helperText || { visible: !1, text: "Helper text" }, a = g.leftIcon || { visible: !1 }, N = g.rightIcon || { visible: !1 }, S = g.multiline === !0, F = g.cornerRadius ?? 8, M = g.corners || { tl: F, tr: F, bl: F, br: F }, J = [M.tl, M.tr, M.br, M.bl];
5924
+ var sA, O;
5925
+ const C = this.objectStates.get(I.id), g = (C == null ? void 0 : C.options) || I.options || {}, Q = ((sA = I.geometry) == null ? void 0 : sA.width) || 250, B = ((O = I.geometry) == null ? void 0 : O.height) || 45, i = this.focusedId === I.id, o = this.lastHoveredObjectId === I.id, w = g.previewState || "default", G = w !== "default" ? w : i ? "focused" : o ? "hovered" : "default", h = g.label || { visible: !0, text: "Label" }, s = g.helperText || { visible: !1, text: "Helper text" }, a = g.leftIcon || { visible: !1 }, N = g.rightIcon || { visible: !1 }, S = g.multiline === !0, F = g.cornerRadius ?? 8, M = g.corners || { tl: F, tr: F, bl: F, br: F }, J = [M.tl, M.tr, M.br, M.bl];
5895
5926
  let c = g.backgroundColor || "rgba(31, 41, 55, 1)", t = g.borderColor || "rgba(55, 65, 81, 1)", r = g.borderWidth ?? 1.5, R = g.color || "#ffffff", U = g.placeholderColor || "rgba(156, 163, 175, 1)", e = g.fontSize || 14;
5896
5927
  const L = `${G}Style`, Y = g[L];
5897
5928
  if (Y ? (Y.backgroundColor !== void 0 && (c = Y.backgroundColor), Y.borderColor !== void 0 && (t = Y.borderColor), Y.borderWidth !== void 0 && (r = Y.borderWidth), Y.color !== void 0 && (R = Y.color), Y.placeholderColor !== void 0 && (U = Y.placeholderColor), Y.fontSize !== void 0 && (e = Y.fontSize)) : G === "focused" ? (t = g.focusBorderColor || "rgba(59, 130, 246, 1)", r = Math.max(r, 2)) : G === "hovered" || G === "hover" ? (t = g.hoverBorderColor || t, c = g.hoverBackgroundColor || c) : G === "disabled" ? (c = g.disabledBackgroundColor || "rgba(31, 41, 55, 0.6)", t = g.disabledBorderColor || "rgba(55, 65, 81, 0.4)") : G === "error" && (t = "rgba(239, 68, 68, 1)", r = Math.max(r, 2)), A.beginPath(), this.drawRoundRect(A, -Q / 2, -B / 2, Q, B, J), A.fillStyle = c, A.fill(), r > 0 && (A.strokeStyle = t, A.lineWidth = r, A.stroke(), G === "focused" || G === "focus")) {
5898
5929
  A.save(), A.beginPath();
5899
- const d = J.map((l) => l + 2);
5900
- this.drawRoundRect(A, -Q / 2 - 2, -B / 2 - 2, Q + 4, B + 4, d), A.strokeStyle = "rgba(59, 130, 246, 0.3)", A.lineWidth = 2, A.stroke(), A.restore();
5930
+ const f = J.map((l) => l + 2);
5931
+ this.drawRoundRect(A, -Q / 2 - 2, -B / 2 - 2, Q + 4, B + 4, f), A.strokeStyle = "rgba(59, 130, 246, 0.3)", A.lineWidth = 2, A.stroke(), A.restore();
5901
5932
  }
5902
- const b = (d, l) => {
5903
- if (!d.visible || !d.svgPath) return;
5904
- const Z = d.size || 14, W = d.offset ?? 16, DA = d.color || "#ffffff", kA = l ? -(Q / 2) + W : Q / 2 - W, LA = d.svgPath;
5905
- if (A.save(), A.translate(kA, 0), !LA.startsWith("<svg")) {
5906
- const JA = new Path2D(LA), UA = Z / 24;
5907
- A.scale(UA, UA), A.translate(-12, -12), A.fillStyle = DA, A.fill(JA);
5933
+ const T = (f, l) => {
5934
+ if (!f.visible || !f.svgPath) return;
5935
+ const d = f.size || 14, W = f.offset ?? 16, IA = f.color || "#ffffff", NA = l ? -(Q / 2) + W : Q / 2 - W, kA = f.svgPath;
5936
+ if (A.save(), A.translate(NA, 0), !kA.startsWith("<svg")) {
5937
+ const oA = new Path2D(kA), wA = d / 24;
5938
+ A.scale(wA, wA), A.translate(-12, -12), A.fillStyle = IA, A.fill(oA);
5908
5939
  }
5909
5940
  A.restore();
5910
5941
  };
5911
- b(a, !0), b(N, !1);
5912
- const u = g.text || "", $ = g.placeholder || "Enter text...", m = !u, AA = u || $, z = m ? U : R, BA = e, x = g.fontFamily || "Inter", CA = g.fontWeight || 400;
5913
- A.font = `${CA} ${BA}px "${x}", sans-serif`, A.fillStyle = z, A.textAlign = "left", A.textBaseline = S ? "top" : "middle";
5914
- const P = g.inputPadding ?? 16, H = a.visible ? (a.offset ?? 16) + (a.size || 14) / 2 + 8 : P, p = N.visible ? (N.offset ?? 16) + (N.size || 14) / 2 + 8 : P, f = -(Q / 2) + H, T = Q - H - p, V = g.inputType === "password" ? "•".repeat(AA.length) : AA;
5915
- if (A.save(), A.beginPath(), A.rect(f - 2, -B / 2 + 4, T + 4, B - 8), A.clip(), S) {
5916
- const d = V.split(`
5942
+ T(a, !0), T(N, !1);
5943
+ const P = g.text || "", $ = g.placeholder || "Enter text...", m = !P, AA = P || $, z = m ? U : R, EA = e, x = g.fontFamily || "Inter", QA = g.fontWeight || 400;
5944
+ A.font = `${QA} ${EA}px "${x}", sans-serif`, A.fillStyle = z, A.textAlign = "left", A.textBaseline = S ? "top" : "middle";
5945
+ const X = g.inputPadding ?? 16, H = a.visible ? (a.offset ?? 16) + (a.size || 14) / 2 + 8 : X, p = N.visible ? (N.offset ?? 16) + (N.size || 14) / 2 + 8 : X, b = -(Q / 2) + H, Z = Q - H - p, V = g.inputType === "password" ? "•".repeat(AA.length) : AA;
5946
+ if (A.save(), A.beginPath(), A.rect(b - 2, -B / 2 + 4, Z + 4, B - 8), A.clip(), S) {
5947
+ const f = V.split(`
5917
5948
  `);
5918
- let l = -B / 2 + P;
5919
- const Z = BA * 1.2;
5949
+ let l = -B / 2 + X;
5950
+ const d = EA * 1.2;
5920
5951
  let W = 0;
5921
- d.forEach((DA, kA) => {
5922
- const LA = DA.split(" ");
5923
- let JA = "";
5924
- for (let UA = 0; UA < LA.length; UA++) {
5925
- const TA = JA + LA[UA] + " ";
5926
- A.measureText(TA).width > T && UA > 0 ? (A.fillText(JA, f, l), JA = LA[UA] + " ", l += Z) : JA = TA;
5952
+ f.forEach((IA, NA) => {
5953
+ const kA = IA.split(" ");
5954
+ let oA = "";
5955
+ for (let wA = 0; wA < kA.length; wA++) {
5956
+ const cA = oA + kA[wA] + " ";
5957
+ A.measureText(cA).width > Z && wA > 0 ? (A.fillText(oA, b, l), oA = kA[wA] + " ", l += d) : oA = cA;
5927
5958
  }
5928
- A.fillText(JA, f, l), W = A.measureText(JA).width, kA < d.length - 1 && (l += Z, W = 0);
5929
- }), i && !m && Math.floor(performance.now() / 500) % 2 === 0 && A.fillRect(f + W, l, 1.5, BA);
5959
+ A.fillText(oA, b, l), W = A.measureText(oA).width, NA < f.length - 1 && (l += d, W = 0);
5960
+ }), i && !m && Math.floor(performance.now() / 500) % 2 === 0 && A.fillRect(b + W, l, 1.5, EA);
5930
5961
  } else {
5931
5962
  const l = A.measureText(V).width;
5932
- let Z = 0;
5933
- if (l > T && (Z = l - T), A.fillText(V, f - Z, 0), i && !m && Math.floor(performance.now() / 500) % 2 === 0) {
5934
- const DA = f + l - Z;
5935
- A.fillRect(DA, -(BA / 2), 1.5, BA);
5963
+ let d = 0;
5964
+ if (l > Z && (d = l - Z), A.fillText(V, b - d, 0), i && !m && Math.floor(performance.now() / 500) % 2 === 0) {
5965
+ const IA = b + l - d;
5966
+ A.fillRect(IA, -(EA / 2), 1.5, EA);
5936
5967
  }
5937
5968
  }
5938
5969
  if (A.restore(), h.visible !== !1) {
5939
- const d = h.text || "Label", l = h.fontSize || 12, Z = h.color || "rgba(156, 163, 175, 1)", W = h.offset ?? 8;
5940
- A.font = `600 ${l}px "${x}", sans-serif`, A.fillStyle = Z, A.textAlign = "left", A.textBaseline = "bottom";
5941
- const DA = -(Q / 2), kA = -(B / 2) - W;
5942
- A.fillText(d, DA, kA);
5970
+ const f = h.text || "Label", l = h.fontSize || 12, d = h.color || "rgba(156, 163, 175, 1)", W = h.offset ?? 8;
5971
+ A.font = `600 ${l}px "${x}", sans-serif`, A.fillStyle = d, A.textAlign = "left", A.textBaseline = "bottom";
5972
+ const IA = -(Q / 2), NA = -(B / 2) - W;
5973
+ A.fillText(f, IA, NA);
5943
5974
  }
5944
5975
  if (s.visible === !0) {
5945
- const d = s.text || "Helper text", l = s.fontSize || 11, Z = G === "error" ? "rgba(239, 68, 68, 1)" : s.color || "rgba(156, 163, 175, 1)", W = s.offset ?? 6;
5946
- A.font = `400 ${l}px "${x}", sans-serif`, A.fillStyle = Z, A.textAlign = "left", A.textBaseline = "top";
5947
- const DA = -(Q / 2), kA = B / 2 + W;
5948
- A.fillText(d, DA, kA);
5976
+ const f = s.text || "Helper text", l = s.fontSize || 11, d = G === "error" ? "rgba(239, 68, 68, 1)" : s.color || "rgba(156, 163, 175, 1)", W = s.offset ?? 6;
5977
+ A.font = `400 ${l}px "${x}", sans-serif`, A.fillStyle = d, A.textAlign = "left", A.textBaseline = "top";
5978
+ const IA = -(Q / 2), NA = B / 2 + W;
5979
+ A.fillText(f, IA, NA);
5949
5980
  }
5950
5981
  }
5951
5982
  renderSlider(A, I) {
5952
- const C = this.objectStates.get(I.id), g = (C == null ? void 0 : C.geometry) || I.geometry, Q = (C == null ? void 0 : C.options) || I.options || {}, B = g.width || 200, i = Q.value ?? 50, o = Q.min ?? 0, G = (Q.max ?? 100) - o, h = G === 0 ? 0 : (i - o) / G, s = Q.trackHeight || 4, a = Q.trackRoundedness ?? 2, N = Q.trackShape ?? "Rectangle", S = Q.trackPath || "", F = Q.activeColor || "#3b82f6", M = Q.inactiveColor || "#374151", J = Q.thumbShape || "Ellipse", c = Q.thumbWidth ?? 16, t = Q.thumbHeight ?? 16, r = Q.thumbRoundedness ?? 0, R = Q.thumbColor || "#ffffff", U = Q.thumbPath || "", e = Q.thumbIcon || "", L = Q.showValueTooltip ?? !1, Y = Q.tooltipBgColor || "#333333", b = Q.tooltipColor || "#ffffff", u = Q.tooltipOffsetX ?? 0, $ = Q.tooltipOffsetY ?? -25, m = (H, p, f, T, V, wA, O) => {
5983
+ const C = this.objectStates.get(I.id), g = (C == null ? void 0 : C.geometry) || I.geometry, Q = (C == null ? void 0 : C.options) || I.options || {}, B = g.width || 200, i = Q.value ?? 50, o = Q.min ?? 0, G = (Q.max ?? 100) - o, h = G === 0 ? 0 : (i - o) / G, s = Q.trackHeight || 4, a = Q.trackRoundedness ?? 2, N = Q.trackShape ?? "Rectangle", S = Q.trackPath || "", F = Q.activeColor || "#3b82f6", M = Q.inactiveColor || "#374151", J = Q.thumbShape || "Ellipse", c = Q.thumbWidth ?? 16, t = Q.thumbHeight ?? 16, r = Q.thumbRoundedness ?? 0, R = Q.thumbColor || "#ffffff", U = Q.thumbPath || "", e = Q.thumbIcon || "", L = Q.showValueTooltip ?? !1, Y = Q.tooltipBgColor || "#333333", T = Q.tooltipColor || "#ffffff", P = Q.tooltipOffsetX ?? 0, $ = Q.tooltipOffsetY ?? -25, m = (H, p, b, Z, V, sA, O) => {
5953
5984
  if ((H === "Custom" || H === "Icon") && O)
5954
5985
  try {
5955
- const d = new Path2D(O);
5956
- if (A.save(), A.translate(p, f), H === "Icon") {
5957
- const l = Math.min(T, V) / 24;
5986
+ const f = new Path2D(O);
5987
+ if (A.save(), A.translate(p, b), H === "Icon") {
5988
+ const l = Math.min(Z, V) / 24;
5958
5989
  A.scale(l, l), A.translate(-12, -12);
5959
5990
  }
5960
- A.fill(d), A.restore();
5991
+ A.fill(f), A.restore();
5961
5992
  return;
5962
- } catch (d) {
5963
- console.error("Error drawing slider shape in engine:", d);
5993
+ } catch (f) {
5994
+ console.error("Error drawing slider shape in engine:", f);
5964
5995
  }
5965
5996
  if (A.beginPath(), H === "Ellipse")
5966
- A.ellipse(p, f, T / 2, V / 2, 0, 0, Math.PI * 2);
5997
+ A.ellipse(p, b, Z / 2, V / 2, 0, 0, Math.PI * 2);
5967
5998
  else if (H === "Rectangle")
5968
- this.drawRoundRect(A, p - T / 2, f - V / 2, T, V, wA);
5999
+ this.drawRoundRect(A, p - Z / 2, b - V / 2, Z, V, sA);
5969
6000
  else if (H === "Triangle")
5970
- A.moveTo(p, f - V / 2), A.lineTo(p + T / 2, f + V / 2), A.lineTo(p - T / 2, f + V / 2), A.closePath();
6001
+ A.moveTo(p, b - V / 2), A.lineTo(p + Z / 2, b + V / 2), A.lineTo(p - Z / 2, b + V / 2), A.closePath();
5971
6002
  else if (H === "Diamond")
5972
- A.moveTo(p, f - V / 2), A.lineTo(p + T / 2, f), A.lineTo(p, f + V / 2), A.lineTo(p - T / 2, f), A.closePath();
6003
+ A.moveTo(p, b - V / 2), A.lineTo(p + Z / 2, b), A.lineTo(p, b + V / 2), A.lineTo(p - Z / 2, b), A.closePath();
5973
6004
  else if (H === "Star") {
5974
- const l = Math.min(T, V) / 2, Z = l / 2;
6005
+ const l = Math.min(Z, V) / 2, d = l / 2;
5975
6006
  for (let W = 0; W < 5 * 2; W++) {
5976
- const DA = W % 2 === 0 ? l : Z, kA = W * Math.PI / 5 - Math.PI / 2;
5977
- A.lineTo(p + DA * Math.cos(kA), f + DA * Math.sin(kA));
6007
+ const IA = W % 2 === 0 ? l : d, NA = W * Math.PI / 5 - Math.PI / 2;
6008
+ A.lineTo(p + IA * Math.cos(NA), b + IA * Math.sin(NA));
5978
6009
  }
5979
6010
  A.closePath();
5980
- } else H === "Line" && (A.moveTo(p - T / 2, f), A.lineTo(p + T / 2, f));
6011
+ } else H === "Line" && (A.moveTo(p - Z / 2, b), A.lineTo(p + Z / 2, b));
5981
6012
  A.fill();
5982
6013
  };
5983
6014
  A.fillStyle = M, N === "Line" ? (A.strokeStyle = M, A.lineWidth = s, A.beginPath(), A.moveTo(-B / 2, 0), A.lineTo(B / 2, 0), A.stroke()) : m(N, 0, 0, B, s, a, S);
5984
- const AA = B - c, z = -B / 2 + c / 2 + h * AA, BA = z - -B / 2;
5985
- if (BA > 0 && (A.fillStyle = F, N === "Line" ? (A.strokeStyle = F, A.lineWidth = s, A.beginPath(), A.moveTo(-B / 2, 0), A.lineTo(z, 0), A.stroke()) : N === "Rectangle" && (A.beginPath(), this.drawRoundRect(A, -B / 2, -s / 2, BA, s, a), A.fill())), A.save(), A.translate(z, 0), A.shadowColor = "rgba(0,0,0,0.2)", A.shadowBlur = 4, A.shadowOffsetY = 1, A.fillStyle = R, m(J, 0, 0, c, t, r, J === "Icon" ? e : U), A.restore(), L) {
5986
- A.save(), A.translate(z + u, $);
6015
+ const AA = B - c, z = -B / 2 + c / 2 + h * AA, EA = z - -B / 2;
6016
+ if (EA > 0 && (A.fillStyle = F, N === "Line" ? (A.strokeStyle = F, A.lineWidth = s, A.beginPath(), A.moveTo(-B / 2, 0), A.lineTo(z, 0), A.stroke()) : N === "Rectangle" && (A.beginPath(), this.drawRoundRect(A, -B / 2, -s / 2, EA, s, a), A.fill())), A.save(), A.translate(z, 0), A.shadowColor = "rgba(0,0,0,0.2)", A.shadowBlur = 4, A.shadowOffsetY = 1, A.fillStyle = R, m(J, 0, 0, c, t, r, J === "Icon" ? e : U), A.restore(), L) {
6017
+ A.save(), A.translate(z + P, $);
5987
6018
  const H = Math.round(i).toString();
5988
6019
  A.font = "10px Inter, sans-serif";
5989
- const p = A.measureText(H), f = 6, T = 4, V = p.width + f * 2, wA = 14 + T;
5990
- A.beginPath(), this.drawRoundRect(A, -V / 2, -wA / 2, V, wA, 4), A.fillStyle = Y, A.fill(), A.fillStyle = b, A.textAlign = "center", A.textBaseline = "middle", A.fillText(H, 0, 0), A.restore();
6020
+ const p = A.measureText(H), b = 6, Z = 4, V = p.width + b * 2, sA = 14 + Z;
6021
+ A.beginPath(), this.drawRoundRect(A, -V / 2, -sA / 2, V, sA, 4), A.fillStyle = Y, A.fill(), A.fillStyle = T, A.textAlign = "center", A.textBaseline = "middle", A.fillText(H, 0, 0), A.restore();
5991
6022
  }
5992
- const x = Q.label || {}, CA = Q.helperText || {}, P = Q.fontFamily || "Inter";
6023
+ const x = Q.label || {}, QA = Q.helperText || {}, X = Q.fontFamily || "Inter";
5993
6024
  if (x.visible !== !1) {
5994
- const H = x.text || "Label", p = x.fontSize || 12, f = x.color || "rgba(156, 163, 175, 1)", T = x.offset ?? 8;
5995
- A.font = `600 ${p}px "${P}", sans-serif`, A.fillStyle = f, A.textAlign = "left", A.textBaseline = "bottom";
5996
- const V = -(B / 2), wA = -(s / 2) - T;
5997
- A.fillText(H, V, wA);
6025
+ const H = x.text || "Label", p = x.fontSize || 12, b = x.color || "rgba(156, 163, 175, 1)", Z = x.offset ?? 8;
6026
+ A.font = `600 ${p}px "${X}", sans-serif`, A.fillStyle = b, A.textAlign = "left", A.textBaseline = "bottom";
6027
+ const V = -(B / 2), sA = -(s / 2) - Z;
6028
+ A.fillText(H, V, sA);
5998
6029
  }
5999
- if (CA.visible === !0) {
6000
- const H = CA.text || "Helper text", p = CA.fontSize || 11, f = CA.color || "rgba(156, 163, 175, 1)", T = CA.offset ?? 6;
6001
- A.font = `400 ${p}px "${P}", sans-serif`, A.fillStyle = f, A.textAlign = "left", A.textBaseline = "top";
6002
- const V = -(B / 2), wA = s / 2 + T;
6003
- A.fillText(H, V, wA);
6030
+ if (QA.visible === !0) {
6031
+ const H = QA.text || "Helper text", p = QA.fontSize || 11, b = QA.color || "rgba(156, 163, 175, 1)", Z = QA.offset ?? 6;
6032
+ A.font = `400 ${p}px "${X}", sans-serif`, A.fillStyle = b, A.textAlign = "left", A.textBaseline = "top";
6033
+ const V = -(B / 2), sA = s / 2 + Z;
6034
+ A.fillText(H, V, sA);
6004
6035
  }
6005
6036
  }
6006
6037
  renderDropdown(A, I) {
@@ -6024,10 +6055,10 @@ class XC {
6024
6055
  else if (c === "custom" || c === "path") {
6025
6056
  const z = s && g.openIconPath || g.closedIconPath;
6026
6057
  if (z) {
6027
- const BA = new Path2D(z);
6058
+ const EA = new Path2D(z);
6028
6059
  A.save();
6029
6060
  const x = t / 24;
6030
- A.scale(x, x), A.translate(-12, -12), A.fill(BA), A.restore();
6061
+ A.scale(x, x), A.translate(-12, -12), A.fill(EA), A.restore();
6031
6062
  }
6032
6063
  }
6033
6064
  A.restore();
@@ -6036,24 +6067,24 @@ class XC {
6036
6067
  A.font = `${e} ${U}px ${L}`;
6037
6068
  const Y = G ? g.disabledColor || "#9ca3af" : !g.selectedOption && g.placeholder ? "#9ca3af" : S;
6038
6069
  A.fillStyle = this.createCanvasFill(A, typeof Y == "string" ? { type: "Solid", color: Y } : Y, Q, B) || "#333333", A.textAlign = "left", A.textBaseline = "middle";
6039
- const b = c === "none" ? 0 : t + 8, u = Q - J * 2 - b;
6040
- if (A.save(), A.beginPath(), A.rect(i + J, o, u, B), A.clip(), A.fillText(R, i + J, 0), A.restore(), s && !G) {
6041
- const m = o + B + 4, AA = g.optionsList || [], z = g.itemHeight || 32, BA = g.listPadding ?? 4, x = AA.length * z + BA * 2, CA = g.listCornerRadius ?? w;
6070
+ const T = c === "none" ? 0 : t + 8, P = Q - J * 2 - T;
6071
+ if (A.save(), A.beginPath(), A.rect(i + J, o, P, B), A.clip(), A.fillText(R, i + J, 0), A.restore(), s && !G) {
6072
+ const m = o + B + 4, AA = g.optionsList || [], z = g.itemHeight || 32, EA = g.listPadding ?? 4, x = AA.length * z + EA * 2, QA = g.listCornerRadius ?? w;
6042
6073
  A.save();
6043
- const P = g.listShadow || {};
6044
- A.shadowColor = typeof P.color == "string" ? P.color : (($ = P.color) == null ? void 0 : $.color) || "rgba(0,0,0,0.15)", A.shadowBlur = P.blur ?? 12, A.shadowOffsetY = P.offsetY ?? 6, A.beginPath(), this.drawRoundRect(A, i, m, Q, x, CA), A.fillStyle = this.createCanvasFill(A, typeof g.listBackgroundColor == "string" ? { type: "Solid", color: g.listBackgroundColor } : g.listBackgroundColor || { type: "Solid", color: "#ffffff" }, Q, x) || "#ffffff", A.fill();
6074
+ const X = g.listShadow || {};
6075
+ A.shadowColor = typeof X.color == "string" ? X.color : (($ = X.color) == null ? void 0 : $.color) || "rgba(0,0,0,0.15)", A.shadowBlur = X.blur ?? 12, A.shadowOffsetY = X.offsetY ?? 6, A.beginPath(), this.drawRoundRect(A, i, m, Q, x, QA), A.fillStyle = this.createCanvasFill(A, typeof g.listBackgroundColor == "string" ? { type: "Solid", color: g.listBackgroundColor } : g.listBackgroundColor || { type: "Solid", color: "#ffffff" }, Q, x) || "#ffffff", A.fill();
6045
6076
  const H = g.listBorderWidth ?? 1;
6046
6077
  H > 0 && (A.shadowColor = "transparent", A.strokeStyle = this.createCanvasFill(A, typeof g.listBorderColor == "string" ? { type: "Solid", color: g.listBorderColor } : g.listBorderColor || { type: "Solid", color: N }, Q, x) || "#e5e7eb", A.lineWidth = H, A.stroke()), A.restore();
6047
- const p = g.itemFontSize || U, f = g.itemFontFamily || L;
6048
- A.font = `${e} ${p}px ${f}`, AA.forEach((T, V) => {
6049
- const wA = m + BA + V * z;
6050
- if (T === g.selectedOption)
6051
- A.fillStyle = this.createCanvasFill(A, typeof g.itemSelectedBackgroundColor == "string" ? { type: "Solid", color: g.itemSelectedBackgroundColor } : g.itemSelectedBackgroundColor || { type: "Solid", color: "#f3f4f6" }, Q, z) || "#f3f4f6", A.fillRect(i + H, wA, Q - H * 2, z), A.fillStyle = g.itemSelectedColor || g.activeColor || S || "#374151";
6078
+ const p = g.itemFontSize || U, b = g.itemFontFamily || L;
6079
+ A.font = `${e} ${p}px ${b}`, AA.forEach((Z, V) => {
6080
+ const sA = m + EA + V * z;
6081
+ if (Z === g.selectedOption)
6082
+ A.fillStyle = this.createCanvasFill(A, typeof g.itemSelectedBackgroundColor == "string" ? { type: "Solid", color: g.itemSelectedBackgroundColor } : g.itemSelectedBackgroundColor || { type: "Solid", color: "#f3f4f6" }, Q, z) || "#f3f4f6", A.fillRect(i + H, sA, Q - H * 2, z), A.fillStyle = g.itemSelectedColor || g.activeColor || S || "#374151";
6052
6083
  else if (A.fillStyle = g.listTextColor || S || "#333333", this.activeDropdownId === I.id && this._lastPointerPos) {
6053
- const d = this._lastPointerPos.y - (m + BA), l = Math.floor(d / z);
6054
- V === l && (A.fillStyle = this.createCanvasFill(A, typeof g.itemHoverBackgroundColor == "string" ? { type: "Solid", color: g.itemHoverBackgroundColor } : g.itemHoverBackgroundColor || { type: "Solid", color: "#f9fafb" }, Q, z) || "#f9fafb", A.fillRect(i + H, wA, Q - H * 2, z), A.fillStyle = g.itemHoverColor || S);
6084
+ const f = this._lastPointerPos.y - (m + EA), l = Math.floor(f / z);
6085
+ V === l && (A.fillStyle = this.createCanvasFill(A, typeof g.itemHoverBackgroundColor == "string" ? { type: "Solid", color: g.itemHoverBackgroundColor } : g.itemHoverBackgroundColor || { type: "Solid", color: "#f9fafb" }, Q, z) || "#f9fafb", A.fillRect(i + H, sA, Q - H * 2, z), A.fillStyle = g.itemHoverColor || S);
6055
6086
  }
6056
- A.fillText(T, i + J, wA + z / 2);
6087
+ A.fillText(Z, i + J, sA + z / 2);
6057
6088
  });
6058
6089
  }
6059
6090
  A.globalAlpha = F;
@@ -6068,8 +6099,8 @@ class XC {
6068
6099
  if (S.enabled && S.svgPath) {
6069
6100
  const U = S.size || 16, e = S.gap || 8, L = S.position === "left" ? -(A.measureText(a.text || "").width / 2 + U / 2 + e / 2) : A.measureText(a.text || "").width / 2 + U / 2 + e / 2;
6070
6101
  A.save(), A.translate(L, 0);
6071
- const Y = new Path2D(S.svgPath), b = U / 24;
6072
- A.scale(b, b), A.translate(-12, -12), A.fillStyle = S.color || N, A.fill(Y), A.restore(), J = S.position === "left" ? U / 2 + e / 2 : -(U / 2 + e / 2);
6102
+ const Y = new Path2D(S.svgPath), T = U / 24;
6103
+ A.scale(T, T), A.translate(-12, -12), A.fillStyle = S.color || N, A.fill(Y), A.restore(), J = S.position === "left" ? U / 2 + e / 2 : -(U / 2 + e / 2);
6073
6104
  }
6074
6105
  A.fillText(a.text || "Button", J, 0), A.restore();
6075
6106
  }
@@ -6253,48 +6284,48 @@ class XC {
6253
6284
  o = Math.min(Math.max(0, o), s), w = Math.min(Math.max(0, w), s), G = Math.min(Math.max(0, G), s), h = Math.min(Math.max(0, h), s), A.moveTo(I + o, C), A.lineTo(I + g - w, C), A.quadraticCurveTo(I + g, C, I + g, C + w), A.lineTo(I + g, C + Q - G), A.quadraticCurveTo(I + g, C + Q, I + g - G, C + Q), A.lineTo(I + h, C + Q), A.quadraticCurveTo(I, C + Q, I, C + Q - h), A.lineTo(I, C + o), A.quadraticCurveTo(I, C, I + o, C), A.closePath();
6254
6285
  }
6255
6286
  renderListView(A, I) {
6256
- var m, AA, z, BA;
6257
- const C = this.objectStates.get(I.id) || {}, g = C.options || I.options || {}, Q = C.width !== void 0 ? C.width : ((m = I.geometry) == null ? void 0 : m.width) || 200, B = C.height !== void 0 ? C.height : ((AA = I.geometry) == null ? void 0 : AA.height) || 300, i = -Q / 2, o = -B / 2, w = C.cornerRadius !== void 0 ? C.cornerRadius : g.cornerRadius ?? 0, G = g.orientation || "vertical", h = g.items || [], s = g.itemGap ?? 10, a = g.itemHeight ?? 50, N = g.itemWidth ?? 200, S = g.scrollOffset ?? 0, F = g.padding ?? 0, M = g.glassEffect !== !1, J = g.accentColor || "#3b82f6", c = g.itemTextColor || "#333333", t = g.itemBackgroundColor || "#ffffff", r = g.hoveredIndex ?? null, R = g.activeItemIndex ?? null, U = g.glowIntensity ?? 0, e = g.glowColor || "#3b82f6", L = typeof e == "string" ? e : e.color || ((BA = (z = e.stops) == null ? void 0 : z[0]) == null ? void 0 : BA.color) || "#3b82f6", Y = g.opacity !== void 0 ? g.opacity : I.opacity !== void 0 ? I.opacity : 1;
6287
+ var m, AA, z, EA;
6288
+ const C = this.objectStates.get(I.id) || {}, g = C.options || I.options || {}, Q = C.width !== void 0 ? C.width : ((m = I.geometry) == null ? void 0 : m.width) || 200, B = C.height !== void 0 ? C.height : ((AA = I.geometry) == null ? void 0 : AA.height) || 300, i = -Q / 2, o = -B / 2, w = C.cornerRadius !== void 0 ? C.cornerRadius : g.cornerRadius ?? 0, G = g.orientation || "vertical", h = g.items || [], s = g.itemGap ?? 10, a = g.itemHeight ?? 50, N = g.itemWidth ?? 200, S = g.scrollOffset ?? 0, F = g.padding ?? 0, M = g.glassEffect !== !1, J = g.accentColor || "#3b82f6", c = g.itemTextColor || "#333333", t = g.itemBackgroundColor || "#ffffff", r = g.hoveredIndex ?? null, R = g.activeItemIndex ?? null, U = g.glowIntensity ?? 0, e = g.glowColor || "#3b82f6", L = typeof e == "string" ? e : e.color || ((EA = (z = e.stops) == null ? void 0 : z[0]) == null ? void 0 : EA.color) || "#3b82f6", Y = g.opacity !== void 0 ? g.opacity : I.opacity !== void 0 ? I.opacity : 1;
6258
6289
  if (A.save(), A.globalAlpha *= Y, U > 0 && (A.shadowColor = L, A.shadowBlur = U * 2, A.shadowOffsetX = 0, A.shadowOffsetY = 0), M) {
6259
- const x = g.listBackgroundColor || "rgba(31, 41, 55, 0.4)", CA = this.createCanvasFill(A, x, Q, B);
6260
- A.fillStyle = CA || "rgba(31, 41, 55, 0.4)", this.drawListViewRect(A, i, o, Q, B, w), A.fill();
6261
- const P = A.createLinearGradient(i, o, i + Q, o + B);
6262
- P.addColorStop(0, "rgba(255, 255, 255, 0.15)"), P.addColorStop(0.5, "rgba(255, 255, 255, 0.08)"), P.addColorStop(1, "rgba(255, 255, 255, 0.03)"), A.fillStyle = P, this.drawListViewRect(A, i, o, Q, B, w), A.fill(), A.strokeStyle = "rgba(255, 255, 255, 0.25)", A.lineWidth = 1, this.drawListViewRect(A, i, o, Q, B, w), A.stroke();
6290
+ const x = g.listBackgroundColor || "rgba(31, 41, 55, 0.4)", QA = this.createCanvasFill(A, x, Q, B);
6291
+ A.fillStyle = QA || "rgba(31, 41, 55, 0.4)", this.drawListViewRect(A, i, o, Q, B, w), A.fill();
6292
+ const X = A.createLinearGradient(i, o, i + Q, o + B);
6293
+ X.addColorStop(0, "rgba(255, 255, 255, 0.15)"), X.addColorStop(0.5, "rgba(255, 255, 255, 0.08)"), X.addColorStop(1, "rgba(255, 255, 255, 0.03)"), A.fillStyle = X, this.drawListViewRect(A, i, o, Q, B, w), A.fill(), A.strokeStyle = "rgba(255, 255, 255, 0.25)", A.lineWidth = 1, this.drawListViewRect(A, i, o, Q, B, w), A.stroke();
6263
6294
  } else {
6264
- const x = g.listBackgroundColor || "transparent", CA = this.createCanvasFill(A, x, Q, B);
6265
- CA && (A.fillStyle = CA, this.drawListViewRect(A, i, o, Q, B, w), A.fill());
6266
- const P = g.borderWidth ?? 0;
6267
- P > 0 && (A.strokeStyle = g.borderColor || "#cccccc", A.lineWidth = P, this.drawListViewRect(A, i, o, Q, B, w), A.stroke());
6295
+ const x = g.listBackgroundColor || "transparent", QA = this.createCanvasFill(A, x, Q, B);
6296
+ QA && (A.fillStyle = QA, this.drawListViewRect(A, i, o, Q, B, w), A.fill());
6297
+ const X = g.borderWidth ?? 0;
6298
+ X > 0 && (A.strokeStyle = g.borderColor || "#cccccc", A.lineWidth = X, this.drawListViewRect(A, i, o, Q, B, w), A.stroke());
6268
6299
  }
6269
6300
  A.shadowBlur = 0, A.save(), this.drawListViewRect(A, i, o, Q, B, w), A.clip();
6270
- const b = typeof F == "number" ? F : G === "vertical" ? F[0] : F[3];
6271
- let u = (G === "vertical" ? o : i) + S + b;
6272
- if (A.textBaseline = "middle", h.forEach((x, CA) => {
6273
- const P = G === "vertical" ? Q : N, H = G === "vertical" ? a : B, p = G === "vertical" ? i : u, f = G === "vertical" ? u : o, T = r === CA, V = R === CA;
6301
+ const T = typeof F == "number" ? F : G === "vertical" ? F[0] : F[3];
6302
+ let P = (G === "vertical" ? o : i) + S + T;
6303
+ if (A.textBaseline = "middle", h.forEach((x, QA) => {
6304
+ const X = G === "vertical" ? Q : N, H = G === "vertical" ? a : B, p = G === "vertical" ? i : P, b = G === "vertical" ? P : o, Z = r === QA, V = R === QA;
6274
6305
  if (V) {
6275
- const Z = this.createCanvasFill(A, J, P, H);
6276
- A.fillStyle = Z || J;
6306
+ const d = this.createCanvasFill(A, J, X, H);
6307
+ A.fillStyle = d || J;
6277
6308
  const W = A.globalAlpha;
6278
- A.globalAlpha = W * 0.8, A.fillRect(p, f, P, H), A.globalAlpha = W;
6279
- } else if (T)
6280
- A.fillStyle = M ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.05)", A.fillRect(p, f, P, H);
6309
+ A.globalAlpha = W * 0.8, A.fillRect(p, b, X, H), A.globalAlpha = W;
6310
+ } else if (Z)
6311
+ A.fillStyle = M ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.05)", A.fillRect(p, b, X, H);
6281
6312
  else if (t !== "transparent") {
6282
- const Z = this.createCanvasFill(A, t, P, H);
6283
- A.fillStyle = Z || t, A.fillRect(p, f, P, H);
6313
+ const d = this.createCanvasFill(A, t, X, H);
6314
+ A.fillStyle = d || t, A.fillRect(p, b, X, H);
6284
6315
  }
6285
- if (V || T) {
6286
- const Z = this.createCanvasFill(A, J, G === "vertical" ? 3 : P, G === "vertical" ? H : 3);
6287
- A.fillStyle = Z || J, G === "vertical" ? A.fillRect(p, f, 3, H) : A.fillRect(p, f + H - 3, P, 3);
6316
+ if (V || Z) {
6317
+ const d = this.createCanvasFill(A, J, G === "vertical" ? 3 : X, G === "vertical" ? H : 3);
6318
+ A.fillStyle = d || J, G === "vertical" ? A.fillRect(p, b, 3, H) : A.fillRect(p, b + H - 3, X, 3);
6288
6319
  }
6289
- const wA = V ? "#ffffff" : M ? "rgba(255, 255, 255, 0.9)" : c;
6290
- A.fillStyle = wA, A.font = V || T ? "600 14px Inter, sans-serif" : "400 14px Inter, sans-serif";
6291
- const O = typeof x == "string" ? x : (x == null ? void 0 : x.label) || `Item ${CA + 1}`, d = p + (G === "vertical" ? 16 : P / 2), l = f + H / 2;
6292
- G === "horizontal" ? A.textAlign = "center" : A.textAlign = "left", A.fillText(O, d, l), u += (G === "vertical" ? a : N) + s;
6320
+ const sA = V ? "#ffffff" : M ? "rgba(255, 255, 255, 0.9)" : c;
6321
+ A.fillStyle = sA, A.font = V || Z ? "600 14px Inter, sans-serif" : "400 14px Inter, sans-serif";
6322
+ const O = typeof x == "string" ? x : (x == null ? void 0 : x.label) || `Item ${QA + 1}`, f = p + (G === "vertical" ? 16 : X / 2), l = b + H / 2;
6323
+ G === "horizontal" ? A.textAlign = "center" : A.textAlign = "left", A.fillText(O, f, l), P += (G === "vertical" ? a : N) + s;
6293
6324
  }), A.restore(), g.showScrollbar !== !1) {
6294
- const x = (h.length || 0) * (G === "vertical" ? a : N) + ((h.length || 0) - 1) * s, CA = G === "vertical" ? B : Q;
6295
- if (x > CA) {
6296
- const P = CA / x, H = CA * P, p = -S / x * CA, f = g.scrollbarColor || "rgba(255,255,255,0.3)", T = g.scrollbarWidth || 4;
6297
- A.fillStyle = f, G === "vertical" ? A.fillRect(i + Q - T - 2, o + p, T, H) : A.fillRect(i + p, o + B - T - 2, H, T);
6325
+ const x = (h.length || 0) * (G === "vertical" ? a : N) + ((h.length || 0) - 1) * s, QA = G === "vertical" ? B : Q;
6326
+ if (x > QA) {
6327
+ const X = QA / x, H = QA * X, p = -S / x * QA, b = g.scrollbarColor || "rgba(255,255,255,0.3)", Z = g.scrollbarWidth || 4;
6328
+ A.fillStyle = b, G === "vertical" ? A.fillRect(i + Q - Z - 2, o + p, Z, H) : A.fillRect(i + p, o + B - Z - 2, H, Z);
6298
6329
  }
6299
6330
  }
6300
6331
  A.restore();
@@ -6312,14 +6343,14 @@ class XC {
6312
6343
  Q.hoveredIndex !== g && (Q.hoveredIndex = g);
6313
6344
  }
6314
6345
  getListViewItemIndexAtPointer(A, I, C) {
6315
- var b, u;
6346
+ var T, P;
6316
6347
  const g = A.options || {}, Q = this.objectStates.get(A.id) || {}, B = g.items || [];
6317
6348
  if (B.length === 0) return null;
6318
- const i = Q.width !== void 0 ? Q.width : ((b = A.geometry) == null ? void 0 : b.width) || 200, o = Q.height !== void 0 ? Q.height : ((u = A.geometry) == null ? void 0 : u.height) || 300, w = g.orientation || "vertical", G = g.itemGap ?? 10, h = g.itemHeight ?? 50, s = g.itemWidth ?? 200, a = g.scrollOffset ?? 0, N = g.padding ?? 0, S = this.getWorldTransform(A.id), F = I - S.x, M = C - S.y, J = -S.rotation * (Math.PI / 180), c = Math.cos(J), t = Math.sin(J), r = F * c - M * t, R = F * t + M * c, U = -i / 2, e = -o / 2, L = typeof N == "number" ? N : w === "vertical" ? N[0] : N[3];
6349
+ const i = Q.width !== void 0 ? Q.width : ((T = A.geometry) == null ? void 0 : T.width) || 200, o = Q.height !== void 0 ? Q.height : ((P = A.geometry) == null ? void 0 : P.height) || 300, w = g.orientation || "vertical", G = g.itemGap ?? 10, h = g.itemHeight ?? 50, s = g.itemWidth ?? 200, a = g.scrollOffset ?? 0, N = g.padding ?? 0, S = this.getWorldTransform(A.id), F = I - S.x, M = C - S.y, J = -S.rotation * (Math.PI / 180), c = Math.cos(J), t = Math.sin(J), r = F * c - M * t, R = F * t + M * c, U = -i / 2, e = -o / 2, L = typeof N == "number" ? N : w === "vertical" ? N[0] : N[3];
6319
6350
  let Y = (w === "vertical" ? e : U) + a + L;
6320
6351
  for (let $ = 0; $ < B.length; $++) {
6321
- const m = w === "vertical" ? i : s, AA = w === "vertical" ? h : o, z = w === "vertical" ? U : Y, BA = w === "vertical" ? Y : e;
6322
- if (r >= z && r <= z + m && R >= BA && R <= BA + AA)
6352
+ const m = w === "vertical" ? i : s, AA = w === "vertical" ? h : o, z = w === "vertical" ? U : Y, EA = w === "vertical" ? Y : e;
6353
+ if (r >= z && r <= z + m && R >= EA && R <= EA + AA)
6323
6354
  return $;
6324
6355
  Y += (w === "vertical" ? h : s) + G;
6325
6356
  }
@@ -6348,23 +6379,23 @@ const VC = tC(
6348
6379
  onInputBlur: N
6349
6380
  }, S) => {
6350
6381
  const F = wI(null), M = wI(new XC()), J = wI(), c = wI(0);
6351
- cC(S, () => F.current), YA(() => {
6382
+ cC(S, () => F.current), rA(() => {
6352
6383
  console.log("[ExodeUI] Layout Effect - Component Updated/Mounted"), M.current.setLayout(Q, B);
6353
- }, [Q, B]), YA(() => {
6384
+ }, [Q, B]), rA(() => {
6354
6385
  o && M.current.setTriggerCallback(o);
6355
- }, [o]), YA(() => {
6386
+ }, [o]), rA(() => {
6356
6387
  w && M.current.setInputUpdateCallback(w);
6357
- }, [w]), YA(() => {
6388
+ }, [w]), rA(() => {
6358
6389
  G && M.current.setComponentChangeCallback(G);
6359
- }, [G]), YA(() => {
6390
+ }, [G]), rA(() => {
6360
6391
  h && M.current.setToggleCallback(h);
6361
- }, [h]), YA(() => {
6392
+ }, [h]), rA(() => {
6362
6393
  s && M.current.setInputChangeCallback(s);
6363
- }, [s]), YA(() => {
6394
+ }, [s]), rA(() => {
6364
6395
  a && M.current.setInputFocusCallback(a);
6365
- }, [a]), YA(() => {
6396
+ }, [a]), rA(() => {
6366
6397
  N && M.current.setInputBlurCallback(N);
6367
- }, [N]), YA(() => {
6398
+ }, [N]), rA(() => {
6368
6399
  (async () => {
6369
6400
  const R = M.current;
6370
6401
  let U = D;
@@ -6377,7 +6408,7 @@ const VC = tC(
6377
6408
  }
6378
6409
  U && (R.load(U), i && i(R));
6379
6410
  })();
6380
- }, [D, A]), YA(() => {
6411
+ }, [D, A]), rA(() => {
6381
6412
  const r = M.current, R = F.current;
6382
6413
  if (!R) return;
6383
6414
  const U = R.getContext("2d");
@@ -6386,7 +6417,7 @@ const VC = tC(
6386
6417
  c.current || (c.current = L);
6387
6418
  const Y = (L - c.current) / 1e3;
6388
6419
  c.current = L, g && r.advance(Y);
6389
- const b = window.devicePixelRatio || 1, u = R.getBoundingClientRect(), $ = Math.floor(u.width * b), m = Math.floor(u.height * b);
6420
+ const T = window.devicePixelRatio || 1, P = R.getBoundingClientRect(), $ = Math.floor(P.width * T), m = Math.floor(P.height * T);
6390
6421
  (R.width !== $ || R.height !== m) && (R.width = $, R.height = m), r.render(U, $, m), J.current = requestAnimationFrame(e);
6391
6422
  };
6392
6423
  return J.current = requestAnimationFrame(e), () => {
@@ -6394,8 +6425,8 @@ const VC = tC(
6394
6425
  };
6395
6426
  }, [g]);
6396
6427
  const t = (r, R) => {
6397
- const U = r.currentTarget.getBoundingClientRect(), e = r.clientX - U.left, L = r.clientY - U.top, Y = U.width, b = U.height;
6398
- M.current.handlePointerInput(R, e, L, Y, b);
6428
+ const U = r.currentTarget.getBoundingClientRect(), e = r.clientX - U.left, L = r.clientY - U.top, Y = U.width, T = U.height;
6429
+ M.current.handlePointerInput(R, e, L, Y, T);
6399
6430
  };
6400
6431
  return /* @__PURE__ */ RC(
6401
6432
  "canvas",
@@ -6420,23 +6451,23 @@ const VC = tC(
6420
6451
  }
6421
6452
  );
6422
6453
  function zC() {
6423
- const [D, A] = YC(null), I = qA((h, s) => {
6454
+ const [D, A] = YC(null), I = lA((h, s) => {
6424
6455
  D == null || D.setInputBool(h, s);
6425
- }, [D]), C = qA((h, s) => {
6456
+ }, [D]), C = lA((h, s) => {
6426
6457
  D == null || D.setInputNumber(h, s);
6427
- }, [D]), g = qA((h) => {
6458
+ }, [D]), g = lA((h) => {
6428
6459
  D == null || D.fireTrigger(h);
6429
- }, [D]), Q = qA((h, s) => {
6460
+ }, [D]), Q = lA((h, s) => {
6430
6461
  D == null || D.setInputText(h, s);
6431
- }, [D]), B = qA((h, s) => {
6462
+ }, [D]), B = lA((h, s) => {
6432
6463
  D == null || D.setInputNumberArray(h, s);
6433
- }, [D]), i = qA((h, s) => {
6464
+ }, [D]), i = lA((h, s) => {
6434
6465
  D == null || D.setInputStringArray(h, s);
6435
- }, [D]), o = qA((h, s) => {
6466
+ }, [D]), o = lA((h, s) => {
6436
6467
  D == null || D.updateObjectOptions(h, s);
6437
- }, [D]), w = qA((h, s, a) => {
6468
+ }, [D]), w = lA((h, s, a) => {
6438
6469
  D == null || D.updateConstraint(h, s, a);
6439
- }, [D]), G = qA((h, s) => {
6470
+ }, [D]), G = lA((h, s) => {
6440
6471
  D == null || D.updateGraphData(h, s);
6441
6472
  }, [D]);
6442
6473
  return {