@vincentt-xr/sdk 2.0.0-alpha.21 → 2.0.0-alpha.22

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.
Files changed (61) hide show
  1. package/components.json +1 -1
  2. package/dist/{CanonicalHeadFrame-CQe2YX9a.js → CanonicalHeadFrame-S3Jk9F1P.js} +15 -15
  3. package/dist/{DebuggerUI-CKYrYmod.js → DebuggerUI-B8bheFk-.js} +1 -1
  4. package/dist/{FaceRetouch-l7y4oZBu.js → FaceRetouch-DW_9g5EA.js} +4 -4
  5. package/dist/{bodyMaskMaterial-BOdSJUEM.js → bodyMaskMaterial-CUlzyXnJ.js} +1 -1
  6. package/dist/cache-CsH3zPDX.js +307 -0
  7. package/dist/cache-DrEDi7qn.cjs +1 -0
  8. package/dist/components/Button/index.d.ts +1 -1
  9. package/dist/components/FaceSwap/settings.d.ts +1 -1
  10. package/dist/components/Light/index.d.ts +1 -1
  11. package/dist/components/Model/index.d.ts +1 -1
  12. package/dist/components/Object3D/index.d.ts +1 -1
  13. package/dist/components/PaintedFace/index.d.ts +1 -1
  14. package/dist/components/ScreenText/liveEditable.d.ts +1 -1
  15. package/dist/{contexts-Cl-4dUOI.js → contexts-C_l5hzI8.js} +52 -52
  16. package/dist/debug-ui/media-source.js +1 -1
  17. package/dist/debug-ui.cjs +1 -1
  18. package/dist/debug-ui.js +11 -11
  19. package/dist/{drawNormalizedCrop-D606u5-F.js → drawNormalizedCrop-D48Layv4.js} +14 -14
  20. package/dist/editor-defs/live.d.ts +18 -0
  21. package/dist/editor-defs/live.generated.d.ts +2 -0
  22. package/dist/face-effects.cjs +31 -31
  23. package/dist/face-effects.js +1287 -1287
  24. package/dist/{getFaceInfo-Mt44zlej.js → getFaceInfo-e9XzHPLC.js} +1 -1
  25. package/dist/{index-CicO_Tnw.js → index-B34w-TyW.js} +1 -1
  26. package/dist/{index-D5NbXaCn.js → index-B9ph9k5I.js} +4 -4
  27. package/dist/{index-Bn72laBn.js → index-BKZPBg1D.js} +1 -1
  28. package/dist/{index-CM3jkleV.js → index-DCjFgbB8.js} +12 -10
  29. package/dist/{index-fDwL47CM.cjs → index-DSMv6GWI.cjs} +1 -1
  30. package/dist/{index-CbBCl2ZU.js → index-Dk1UOe-H.js} +10 -10
  31. package/dist/{index-BDxJWWyy.js → index-MzlPbe9t.js} +9 -9
  32. package/dist/{index-B0EYdofX.js → index-em1AaMkI.js} +1 -1
  33. package/dist/instructions.js +7 -7
  34. package/dist/{internal-BoFDq5hC.js → internal-kwJxojDs.js} +3 -3
  35. package/dist/internal.js +2 -2
  36. package/dist/{landmarks-C3LvDhMt.js → landmarks-BgLF-yfd.js} +6 -6
  37. package/dist/low-level.js +17 -17
  38. package/dist/main.cjs +1 -1
  39. package/dist/main.js +720 -719
  40. package/dist/particles.js +5 -5
  41. package/dist/product.js +2 -2
  42. package/dist/{providers-Bxt_MfPK.js → providers-Bo1gfoXg.js} +3 -3
  43. package/dist/{renderGroups-uYPzUa66.js → renderGroups-Cul4eOG8.js} +1 -1
  44. package/dist/{renderPasses-C0wu5Cwg.js → renderPasses-CLOTeP38.js} +40 -40
  45. package/dist/scene-object.js +2 -2
  46. package/dist/{segmentation-DccvYBBO.js → segmentation-Q1eXSt_x.js} +1 -1
  47. package/dist/{selectors-J06V0eDb.js → selectors-CiawE6Ox.js} +4 -4
  48. package/dist/{session-CYiWfcvz.js → session-CmpigDxI.js} +9 -9
  49. package/dist/tracking.js +127 -127
  50. package/dist/{trigger-CQviD4xp.js → trigger-BHKfnvtB.js} +7 -7
  51. package/dist/{useBodies-DOuwRuew.js → useBodies-DzRzQg88.js} +7 -7
  52. package/dist/{useFaceInfo-XUGYTdfN.js → useFaceInfo-DUxqnPek.js} +10 -10
  53. package/dist/{useFaceResultReader-D8wXbF1L.js → useFaceResultReader-DSnUjQcw.js} +1 -1
  54. package/dist/{useIrisTracking-B0uLWgNE.js → useIrisTracking-Bfp1Fv66.js} +10 -10
  55. package/dist/{useXRCapabilities-DPUOvpdf.js → useXRCapabilities-BhN_CKwJ.js} +1 -1
  56. package/dist/utils/useEditOverrides.d.ts +4 -0
  57. package/dist/utils/useLiveProps.d.ts +8 -0
  58. package/package.json +1 -1
  59. package/settings.json +1 -1
  60. package/dist/cache-DFqZYsHC.cjs +0 -1
  61. package/dist/cache-Mu-VO_6E.js +0 -212
package/dist/tracking.js CHANGED
@@ -1,38 +1,38 @@
1
- import { T as me } from "./index-CbBCl2ZU.js";
2
- import { a as ts, F as rs } from "./index-CbBCl2ZU.js";
1
+ import { T as me } from "./index-Dk1UOe-H.js";
2
+ import { a as ts, F as rs } from "./index-Dk1UOe-H.js";
3
3
  import { jsx as N, jsxs as _t, Fragment as St } from "react/jsx-runtime";
4
4
  import { useThree as q, useFrame as U, createPortal as Rt } from "@react-three/fiber";
5
5
  import { useRef as _, useMemo as v, useCallback as Y, useContext as Se, useEffect as b, useState as W, createContext as At, useId as yt, useSyncExternalStore as Ot } from "react";
6
- import { j as J, t as $, J as Re, Q as Dt, n as Ke, f as bt, i as It, u as at, q as Nt } from "./index-BDxJWWyy.js";
7
- import { B as ss, T as os, Y as as, V as is, U as cs, W as us, Z as ls, e as ds, H as fs, R as hs, X as ms, _ as ps, h as gs, D as Ts, G as Es, $ as _s, a0 as Ss, C as Rs, g as As, a1 as ys } from "./index-BDxJWWyy.js";
6
+ import { f as J, t as $, J as Re, Q as Dt, n as Ke, E as bt, i as It, u as at, q as Nt } from "./index-MzlPbe9t.js";
7
+ import { B as ss, T as os, Y as as, V as is, U as cs, W as us, Z as ls, a as ds, H as fs, R as hs, X as ms, _ as ps, e as Ts, D as gs, G as Es, $ as _s, a0 as Ss, C as Rs, b as As, a1 as ys } from "./index-MzlPbe9t.js";
8
8
  import { R as pe } from "./uv-DJU_XfmN.js";
9
- import { u as fe, r as vt } from "./landmarks-C3LvDhMt.js";
10
- import { a as Ds } from "./landmarks-C3LvDhMt.js";
11
- import { r as xt, M as Ye, B as Ct, g as Ee, c as We, s as Mt, a as Ht } from "./useIrisTracking-B0uLWgNE.js";
12
- import { b as Is, j as Ns, C as vs, k as xs, l as Cs, m as Ms, e as Hs, D as Ls, p as ws, F as Fs, S as ks, f as Bs, h as Ps, d as Us, q as Gs, t as js, i as Ks, n as Ys, u as Ws, o as Vs } from "./useIrisTracking-B0uLWgNE.js";
13
- import { S as Lt, u as wt, B as Ft, a as it, b as kt, c as Bt, d as Pt, r as Ut, H as Gt, e as jt, O as Kt, m as Yt, f as ce, g as Ve, h as ue, i as Wt, j as Vt, k as zt, l as Xt, n as qt, o as Jt, s as be, p as $t, q as Qt, t as Zt, v as ze } from "./trigger-CQviD4xp.js";
14
- import { E as Xs, ab as qs, ac as Js, ad as $s, ae as Qs, a8 as Zs, x as eo, y as to, z as ro, A as no, C as so, a9 as oo, aa as ao, D as io, I as co, J as uo, K as lo, F as fo, Y as ho, Z as mo, _ as po, $ as go, a0 as To, P as Eo, T as _o, U as So, a5 as Ro, a1 as Ao, a2 as yo, a6 as Oo, V as Do, Q as bo, w as Io, X as No, R as vo, a3 as xo, a7 as Co, L as Mo, M as Ho, W as Lo, G as wo, af as Fo, ag as ko, a4 as Bo, N as Po } from "./trigger-CQviD4xp.js";
15
- import { d as er, S as Xe } from "./segmentation-DccvYBBO.js";
16
- import { a as Go } from "./segmentation-DccvYBBO.js";
9
+ import { u as fe, r as vt } from "./landmarks-BgLF-yfd.js";
10
+ import { a as Ds } from "./landmarks-BgLF-yfd.js";
11
+ import { r as xt, M as Ye, B as Ct, g as Ee, c as We, s as Mt, a as Ht } from "./useIrisTracking-Bfp1Fv66.js";
12
+ import { b as Is, j as Ns, C as vs, k as xs, l as Cs, m as Ms, e as Hs, D as Ls, p as ws, F as Fs, S as ks, f as Bs, h as Ps, d as Us, q as Gs, t as js, i as Ks, n as Ys, u as Ws, o as Vs } from "./useIrisTracking-Bfp1Fv66.js";
13
+ import { S as Lt, u as wt, B as Ft, a as it, b as kt, c as Bt, d as Pt, r as Ut, H as Gt, e as jt, O as Kt, m as Yt, f as ce, g as Ve, h as ue, i as Wt, j as Vt, k as zt, l as Xt, n as qt, o as Jt, s as be, p as $t, q as Qt, t as Zt, v as ze } from "./trigger-BHKfnvtB.js";
14
+ import { E as Xs, ab as qs, ac as Js, ad as $s, ae as Qs, a8 as Zs, x as eo, y as to, z as ro, A as no, C as so, a9 as oo, aa as ao, D as io, I as co, J as uo, K as lo, F as fo, Y as ho, Z as mo, _ as po, $ as To, a0 as go, P as Eo, T as _o, U as So, a5 as Ro, a1 as Ao, a2 as yo, a6 as Oo, V as Do, Q as bo, w as Io, X as No, R as vo, a3 as xo, a7 as Co, L as Mo, M as Ho, W as Lo, G as wo, af as Fo, ag as ko, a4 as Bo, N as Po } from "./trigger-BHKfnvtB.js";
15
+ import { d as er, S as Xe } from "./segmentation-Q1eXSt_x.js";
16
+ import { a as Go } from "./segmentation-Q1eXSt_x.js";
17
17
  import * as H from "three";
18
- import { l as tr, B as rr, g as nr } from "./index-B0EYdofX.js";
19
- import { n as Ko, o as Yo } from "./index-B0EYdofX.js";
18
+ import { l as tr, B as rr, g as nr } from "./index-em1AaMkI.js";
19
+ import { n as Ko, o as Yo } from "./index-em1AaMkI.js";
20
20
  import { H as ct } from "./settings-BJ7FMBsO.js";
21
21
  import { c as Vo, D as zo, G as Xo, a as qo, b as Jo, d as $o, p as Qo, e as Zo, r as ea, t as ta } from "./settings-BJ7FMBsO.js";
22
- import { b as sr, f as Le, g as or } from "./selectors-J06V0eDb.js";
23
- import { b as ar, r as ir, u as cr } from "./useBodies-DOuwRuew.js";
24
- import { a as na } from "./useBodies-DOuwRuew.js";
25
- import { d as ur } from "./drawNormalizedCrop-D606u5-F.js";
26
- import { u as oa } from "./drawNormalizedCrop-D606u5-F.js";
27
- import { B as ia, D as ca, F as ua, H as la, T as da, g as fa } from "./index-CicO_Tnw.js";
22
+ import { u as sr, f as Le, g as or } from "./selectors-CiawE6Ox.js";
23
+ import { b as ar, r as ir, u as cr } from "./useBodies-DzRzQg88.js";
24
+ import { a as na } from "./useBodies-DzRzQg88.js";
25
+ import { d as ur } from "./drawNormalizedCrop-D48Layv4.js";
26
+ import { u as oa } from "./drawNormalizedCrop-D48Layv4.js";
27
+ import { B as ia, D as ca, F as ua, H as la, T as da, g as fa } from "./index-B34w-TyW.js";
28
28
  import { r as qe, c as He, s as ut, a as lr, g as dr } from "./detector-K8aej4MB.js";
29
29
  import { D as ma } from "./detector-K8aej4MB.js";
30
- import { d as Je, a as fr, b as hr } from "./getFaceInfo-Mt44zlej.js";
31
- import { D as ga, e as Ta, h as Ea } from "./getFaceInfo-Mt44zlej.js";
30
+ import { d as Je, a as fr, b as hr } from "./getFaceInfo-e9XzHPLC.js";
31
+ import { D as Ta, e as ga, h as Ea } from "./getFaceInfo-e9XzHPLC.js";
32
32
  import { s as mr } from "./useInstructionHold-DOu-RpCM.js";
33
- import { u as pr } from "./useFaceInfo-XUGYTdfN.js";
34
- import { D as Sa, a as Ra } from "./useFaceInfo-XUGYTdfN.js";
35
- import { a as ya, b as Oa, P as Da, S as ba, d as Ia, e as Na, f as va } from "./providers-Bxt_MfPK.js";
33
+ import { u as pr } from "./useFaceInfo-DUxqnPek.js";
34
+ import { D as Sa, a as Ra } from "./useFaceInfo-DUxqnPek.js";
35
+ import { a as ya, b as Oa, P as Da, S as ba, d as Ia, e as Na, f as va } from "./providers-Bo1gfoXg.js";
36
36
  import { D as Ca, e as Ma, r as Ha } from "./landmarkMask-DHivVjJm.js";
37
37
  const lt = {
38
38
  "hand.wrist": 0,
@@ -85,26 +85,26 @@ const Cn = ({
85
85
  if (!s || !a || !u.current) return;
86
86
  const S = dt(a, r, t);
87
87
  f.current = S ?? null;
88
- const T = (l = S == null ? void 0 : S.coordinates) == null ? void 0 : l[0];
89
- if (!T) {
88
+ const g = (l = S == null ? void 0 : S.coordinates) == null ? void 0 : l[0];
89
+ if (!g) {
90
90
  u.current.visible = !1;
91
91
  return;
92
92
  }
93
- const p = $(T, d.current);
93
+ const p = $(g, d.current);
94
94
  u.current.visible = !0, u.current.position.copy(p);
95
95
  });
96
96
  const h = Y((S) => {
97
97
  var l, m;
98
- const T = lt[S];
99
- if (T === void 0) return null;
100
- const p = (m = (l = f.current) == null ? void 0 : l.coordinates) == null ? void 0 : m[T];
98
+ const g = lt[S];
99
+ if (g === void 0) return null;
100
+ const p = (m = (l = f.current) == null ? void 0 : l.coordinates) == null ? void 0 : m[g];
101
101
  return p ? { position: $(p, d.current) } : null;
102
- }, []), g = v(
102
+ }, []), T = v(
103
103
  () => ({ type: "hand", resolveLandmark: h }),
104
104
  [h]
105
105
  );
106
- return /* @__PURE__ */ N(me.Provider, { value: g, children: /* @__PURE__ */ N("group", { ref: u, renderOrder: pe.TRACKED, children: e }) });
107
- }, gr = {
106
+ return /* @__PURE__ */ N(me.Provider, { value: T, children: /* @__PURE__ */ N("group", { ref: u, renderOrder: pe.TRACKED, children: e }) });
107
+ }, Tr = {
108
108
  "hand.wrist": 0,
109
109
  "hand.thumbTip": 4,
110
110
  "hand.indexTip": 8,
@@ -135,25 +135,25 @@ const Cn = ({
135
135
  n.current.visible = !1;
136
136
  return;
137
137
  }
138
- const g = $(h, a.current);
139
- n.current.visible = !0, n.current.position.copy(g);
138
+ const T = $(h, a.current);
139
+ n.current.visible = !0, n.current.position.copy(T);
140
140
  });
141
141
  const d = Y((h) => {
142
- var T, p;
143
- const g = gr[h];
144
- if (g === void 0) return null;
145
- const S = (p = (T = i.current) == null ? void 0 : T.coordinates) == null ? void 0 : p[g];
142
+ var g, p;
143
+ const T = Tr[h];
144
+ if (T === void 0) return null;
145
+ const S = (p = (g = i.current) == null ? void 0 : g.coordinates) == null ? void 0 : p[T];
146
146
  return S ? { position: $(S, a.current) } : null;
147
147
  }, []), f = v(
148
148
  () => ({ type: "hand", resolveLandmark: d }),
149
149
  [d]
150
150
  );
151
151
  return /* @__PURE__ */ N(me.Provider, { value: f, children: /* @__PURE__ */ N("group", { ref: n, renderOrder: pe.TRACKED, children: e }) });
152
- }, Tr = {
152
+ }, gr = {
153
153
  hand: "/assets/xr/3d-models/hand-v1.glb",
154
154
  glove: "/assets/xr/3d-models/glove-v1.glb",
155
155
  body: "/assets/xr/3d-models/ybot-v1.glb"
156
- }, Er = (e) => new URL(Tr[e], Re.assetStorageEndpoint).toString(), Hn = (e) => er(Er(e)), Ln = Lt, wn = ({
156
+ }, Er = (e) => new URL(gr[e], Re.assetStorageEndpoint).toString(), Hn = (e) => er(Er(e)), Ln = Lt, wn = ({
157
157
  inflate: e = 0,
158
158
  showDebugMaterial: r = !1,
159
159
  opacity: t = 0.5,
@@ -234,18 +234,18 @@ const Fn = ({
234
234
  []
235
235
  );
236
236
  U(() => {
237
- var h, g, S, T, p, l;
237
+ var h, T, S, g, p, l;
238
238
  const i = u.current;
239
239
  if (!i || !o) return;
240
240
  const { position: d, quaternion: f } = tr(o, e, r, c.transform);
241
241
  c.offsetQ.setFromEuler(
242
242
  c.offsetE.set(
243
243
  ((h = t == null ? void 0 : t.rotation) == null ? void 0 : h[0]) ?? 0,
244
- ((g = t == null ? void 0 : t.rotation) == null ? void 0 : g[1]) ?? 0,
244
+ ((T = t == null ? void 0 : t.rotation) == null ? void 0 : T[1]) ?? 0,
245
245
  ((S = t == null ? void 0 : t.rotation) == null ? void 0 : S[2]) ?? 0
246
246
  )
247
247
  ), c.offsetP.set(
248
- ((T = t == null ? void 0 : t.position) == null ? void 0 : T[0]) ?? 0,
248
+ ((g = t == null ? void 0 : t.position) == null ? void 0 : g[0]) ?? 0,
249
249
  ((p = t == null ? void 0 : t.position) == null ? void 0 : p[1]) ?? 0,
250
250
  ((l = t == null ? void 0 : t.position) == null ? void 0 : l[2]) ?? 0
251
251
  ), i.position.copy(d).add(c.offsetP.applyQuaternion(f)), i.quaternion.copy(f).multiply(c.offsetQ), i.scale.setScalar((t == null ? void 0 : t.scale) ?? 1);
@@ -263,18 +263,18 @@ const Fn = ({
263
263
  const s = (E, A) => {
264
264
  o[c * 2] = E, o[c * 2 + 1] = A, c += 1;
265
265
  }, a = (E) => e[E].x * r, i = (E) => e[E].y, d = Math.hypot(a(0) - a(9), i(0) - i(9)), f = 0.12 * d * t;
266
- let h = 0, g = 0;
266
+ let h = 0, T = 0;
267
267
  for (const E of ee)
268
- h += a(E), g += i(E);
269
- h /= ee.length, g /= ee.length;
268
+ h += a(E), T += i(E);
269
+ h /= ee.length, T /= ee.length;
270
270
  for (let E = 0; E < ee.length; E += 1) {
271
271
  const A = ee[E], D = ee[(E + 1) % ee.length];
272
- s(h / r, g), s(a(A) / r, i(A)), s(a(D) / r, i(D));
272
+ s(h / r, T), s(a(A) / r, i(A)), s(a(D) / r, i(D));
273
273
  }
274
274
  const S = (E, A, D, O, L) => {
275
275
  const G = D - E, I = O - A, y = Math.hypot(G, I) || 1, M = -I / y * L, w = G / y * L;
276
276
  s((E + M) / r, A + w), s((D + M) / r, O + w), s((D - M) / r, O - w), s((E + M) / r, A + w), s((D - M) / r, O - w), s((E - M) / r, A - w);
277
- }, T = (E, A, D) => {
277
+ }, g = (E, A, D) => {
278
278
  for (let O = 0; O < de; O += 1) {
279
279
  const L = O / de * Math.PI * 2, G = (O + 1) / de * Math.PI * 2;
280
280
  s(E / r, A), s((E + Math.cos(L) * D) / r, A + Math.sin(L) * D), s((E + Math.cos(G) * D) / r, A + Math.sin(G) * D);
@@ -284,11 +284,11 @@ const Fn = ({
284
284
  const D = E === 0 ? f * 1.4 : f;
285
285
  S(a(E), i(E), a(A), i(A), D);
286
286
  }
287
- for (let E = 0; E < 21; E += 1) T(a(E), i(E), E === 0 ? f * 1.6 : f);
287
+ for (let E = 0; E < 21; E += 1) g(a(E), i(E), E === 0 ? f * 1.6 : f);
288
288
  const p = a(0) - a(9), l = i(0) - i(9), m = Math.hypot(p, l) || 1, x = n * d, R = a(0) + p / m * x, C = i(0) + l / m * x;
289
289
  if (n > 0) {
290
290
  const E = f * 2, A = -l / m * E, D = p / m * E;
291
- s((a(0) + A) / r, i(0) + D), s((R + A) / r, C + D), s((R - A) / r, C - D), s((a(0) + A) / r, i(0) + D), s((R - A) / r, C - D), s((a(0) - A) / r, i(0) - D), T(R, C, E);
291
+ s((a(0) + A) / r, i(0) + D), s((R + A) / r, C + D), s((R - A) / r, C - D), s((a(0) + A) / r, i(0) + D), s((R - A) / r, C - D), s((a(0) - A) / r, i(0) - D), g(R, C, E);
292
292
  } else
293
293
  for (let E = 0; E < (2 + de) * 3; E += 1) s(a(0) / r, i(0));
294
294
  return c - u;
@@ -323,11 +323,11 @@ const Fn = ({
323
323
  renderOrder: n = -900
324
324
  }) => {
325
325
  const o = sr(J.HAND_TRACKER), u = q((h) => h.size), c = q((h) => h.scene), s = v(() => {
326
- const h = new H.BufferGeometry(), g = new H.BufferAttribute(
326
+ const h = new H.BufferGeometry(), T = new H.BufferAttribute(
327
327
  new Float32Array(Ie * Qe * 3 * 3),
328
328
  3
329
329
  );
330
- return g.setUsage(H.DynamicDrawUsage), h.setAttribute("position", g), h.setDrawRange(0, 0), h;
330
+ return T.setUsage(H.DynamicDrawUsage), h.setAttribute("position", T), h.setDrawRange(0, 0), h;
331
331
  }, []);
332
332
  b(() => () => s.dispose(), [s]), b(() => xt(c, s), [c, s]);
333
333
  const a = v(yr, []);
@@ -342,16 +342,16 @@ const Fn = ({
342
342
  }, [t]);
343
343
  const f = _({ inflate: e, forearm: r });
344
344
  return f.current = { inflate: e, forearm: r }, U(() => {
345
- const h = (o == null ? void 0 : o.hands) ?? [], g = u.width / Math.max(1, u.height);
345
+ const h = (o == null ? void 0 : o.hands) ?? [], T = u.width / Math.max(1, u.height);
346
346
  let S = 0;
347
347
  for (const l of h.slice(0, Ie)) {
348
348
  const m = l.coordinates;
349
- !m || m.length < 21 || (S += Sr(m, g, f.current, i, S));
349
+ !m || m.length < 21 || (S += Sr(m, T, f.current, i, S));
350
350
  }
351
- const T = s.getAttribute("position"), p = T.array;
351
+ const g = s.getAttribute("position"), p = g.array;
352
352
  for (let l = 0; l < S; l += 1)
353
353
  p[l * 3] = i[l * 2], p[l * 3 + 1] = i[l * 2 + 1], p[l * 3 + 2] = 0;
354
- T.needsUpdate = !0, s.setDrawRange(0, S);
354
+ g.needsUpdate = !0, s.setDrawRange(0, S);
355
355
  }, _r), /* @__PURE__ */ N("group", { children: /* @__PURE__ */ N(
356
356
  "mesh",
357
357
  {
@@ -376,11 +376,11 @@ const Fn = ({
376
376
  onGrab: d,
377
377
  onRelease: f,
378
378
  onTap: h,
379
- onTouch: g,
379
+ onTouch: T,
380
380
  onHoverChange: S,
381
- children: T
381
+ children: g
382
382
  }) => {
383
- const p = Se(jt), l = _(null), [m, x] = W(Ne), [R, C] = W(null), E = { onGrab: d, onRelease: f, onTap: h, onTouch: g, onHoverChange: S }, A = _(E);
383
+ const p = Se(jt), l = _(null), [m, x] = W(Ne), [R, C] = W(null), E = { onGrab: d, onRelease: f, onTap: h, onTouch: T, onHoverChange: S }, A = _(E);
384
384
  A.current = E;
385
385
  const D = _((I) => {
386
386
  var M, w, V, z, Q, X;
@@ -432,7 +432,7 @@ const Fn = ({
432
432
  b(() => {
433
433
  L && console.warn(`${Re.loggerPrefix} Touchable must be inside a HandTouch`);
434
434
  }, [L]);
435
- const G = T === void 0 ? /* @__PURE__ */ N(Dr, { shape: e, size: r, color: i, state: m }) : typeof T == "function" ? T(m) : T;
435
+ const G = g === void 0 ? /* @__PURE__ */ N(Dr, { shape: e, size: r, color: i, state: m }) : typeof g == "function" ? g(m) : g;
436
436
  return /* @__PURE__ */ N("group", { ref: l, children: /* @__PURE__ */ N("group", { scale: m.grabbed ? Or : 1, children: G }) });
437
437
  }, Dr = ({
438
438
  shape: e,
@@ -451,7 +451,7 @@ const Fn = ({
451
451
  metalness: 0.05
452
452
  }
453
453
  )
454
- ] }), ge = { leftShoulder: 11, rightShoulder: 12, leftWrist: 15, rightWrist: 16 }, br = 0, Ir = [
454
+ ] }), Te = { leftShoulder: 11, rightShoulder: 12, leftWrist: 15, rightWrist: 16 }, br = 0, Ir = [
455
455
  [5, 8],
456
456
  [9, 12],
457
457
  [13, 16],
@@ -487,7 +487,7 @@ const Fn = ({
487
487
  }, tt = (e, r, t = we.minVisibility) => {
488
488
  const { pose: n } = e;
489
489
  if (!n || n.landmarks.length < 33) return !1;
490
- const o = r === "left" ? ge.leftWrist : ge.rightWrist, u = r === "left" ? ge.leftShoulder : ge.rightShoulder;
490
+ const o = r === "left" ? Te.leftWrist : Te.rightWrist, u = r === "left" ? Te.leftShoulder : Te.rightShoulder;
491
491
  return n.visibility[o] < t || n.visibility[u] < t ? !1 : n.landmarks[o].y > n.landmarks[u].y;
492
492
  }, Un = (e, r = {}, t = Nr()) => {
493
493
  const n = { ...we, ...r }, { face: o, leftHand: u, rightHand: c, pose: s } = e;
@@ -513,9 +513,9 @@ const Fn = ({
513
513
  outputFaceBlendshapes: d,
514
514
  targetFps: f,
515
515
  hands: h,
516
- analysisMaxDimension: g,
516
+ analysisMaxDimension: T,
517
517
  holdMs: S,
518
- predictMs: T
518
+ predictMs: g
519
519
  }) => {
520
520
  const p = v(() => {
521
521
  const O = {};
@@ -537,9 +537,9 @@ const Fn = ({
537
537
  );
538
538
  b(() => {
539
539
  m && m.setOptions(
540
- Dt({ hands: h, analysisMaxDimension: g, holdMs: S, predictMs: T })
540
+ Dt({ hands: h, analysisMaxDimension: T, holdMs: S, predictMs: g })
541
541
  );
542
- }, [m, h, g, S, T]);
542
+ }, [m, h, T, S, g]);
543
543
  const [R, C] = W(() => rt(m, x)), E = _(R), A = _(t);
544
544
  A.current = t, U(() => {
545
545
  var L;
@@ -641,8 +641,8 @@ const pt = ({ children: e }) => {
641
641
  if (c === "body.neck") {
642
642
  const f = s[11], h = s[12];
643
643
  if (!f || !h) return null;
644
- const g = { x: (f.x + h.x) / 2, y: (f.y + h.y) / 2, z: (f.z + h.z) / 2 };
645
- return { position: $(g, t.current) };
644
+ const T = { x: (f.x + h.x) / 2, y: (f.y + h.y) / 2, z: (f.z + h.z) / 2 };
645
+ return { position: $(T, t.current) };
646
646
  }
647
647
  const a = Ct[c];
648
648
  if (a === void 0) return null;
@@ -708,7 +708,7 @@ function kr({
708
708
  const d = _(wr());
709
709
  U(() => {
710
710
  if (!u || !c || !s) return;
711
- const f = s.gesture, h = !!(f && i.current.has(f)), g = Fr(d.current, {
711
+ const f = s.gesture, h = !!(f && i.current.has(f)), T = Fr(d.current, {
712
712
  isTrigger: h,
713
713
  gesture: f,
714
714
  now: performance.now(),
@@ -716,7 +716,7 @@ function kr({
716
716
  debounceMs: t,
717
717
  holdMs: n
718
718
  });
719
- g && a.current(g);
719
+ T && a.current(T);
720
720
  });
721
721
  }
722
722
  const jn = (e) => (kr(e), null), Br = ({
@@ -725,7 +725,7 @@ const jn = (e) => (kr(e), null), Br = ({
725
725
  canvas: t,
726
726
  outputSize: n,
727
727
  padding: o = 0.2
728
- }) => ur({ source: e, bounds: r.bounds, canvas: t, outputSize: n, padding: o }), Ae = (e) => ({ value: e, confidence: 1 }), Te = (e, r, t, n) => ({
728
+ }) => ur({ source: e, bounds: r.bounds, canvas: t, outputSize: n, padding: o }), Ae = (e) => ({ value: e, confidence: 1 }), ge = (e, r, t, n) => ({
729
729
  name: e,
730
730
  kind: "face",
731
731
  description: r,
@@ -750,26 +750,26 @@ const jn = (e) => (kr(e), null), Br = ({
750
750
  enterThreshold: 0.99,
751
751
  exitThreshold: 0.3,
752
752
  cooldownMs: 600
753
- }, gt = {
753
+ }, Tt = {
754
754
  // ── Face ───────────────────────────────────────────────────────────────
755
- mouthOpen: Te(
755
+ mouthOpen: ge(
756
756
  "mouthOpen",
757
757
  "Jaw open (blendshape jawOpen).",
758
758
  (e) => Ee(e, "mouthOpen")
759
759
  ),
760
- smile: Te(
760
+ smile: ge(
761
761
  "smile",
762
762
  "Mean of the two mouthSmile blendshapes.",
763
763
  (e) => (Je(e, "mouthSmileLeft") + Je(e, "mouthSmileRight")) / 2,
764
764
  { enterThreshold: 0.4 }
765
765
  ),
766
- blink: Te(
766
+ blink: ge(
767
767
  "blink",
768
768
  "Both eyes closed (min of the eyeBlink blendshapes).",
769
769
  (e) => Ee(e, "eyeBlink"),
770
770
  { enterThreshold: 0.55, holdMs: 50 }
771
771
  ),
772
- browRaise: Te(
772
+ browRaise: ge(
773
773
  "browRaise",
774
774
  "Eyebrows raised (max of the brow-up blendshapes).",
775
775
  (e) => Ee(e, "browRaise"),
@@ -902,7 +902,7 @@ const jn = (e) => (kr(e), null), Br = ({
902
902
  exitThreshold: 0.4,
903
903
  holdMs: 150
904
904
  })
905
- }, Kn = Object.keys(gt), Pr = (e) => typeof e == "string" ? gt[e] : e, Yn = (e) => e, Ur = {
905
+ }, Kn = Object.keys(Tt), Pr = (e) => typeof e == "string" ? Tt[e] : e, Yn = (e) => e, Ur = {
906
906
  face: J.FACE_TRACKER,
907
907
  hand: J.HAND_TRACKER,
908
908
  body: J.BODY_TRACKER
@@ -919,9 +919,9 @@ const jn = (e) => (kr(e), null), Br = ({
919
919
  subject: d,
920
920
  numBodies: f,
921
921
  targetFps: h,
922
- onBegin: g,
922
+ onBegin: T,
923
923
  onEnd: S,
924
- onChange: T,
924
+ onChange: g,
925
925
  ...p
926
926
  } = r, l = Ur[t.kind], m = Math.max(u ?? o + 1, o + 1), x = v(() => {
927
927
  const F = {};
@@ -958,8 +958,8 @@ const jn = (e) => (kr(e), null), Br = ({
958
958
  const F = nt(t.name);
959
959
  V.current = F, w(F);
960
960
  }, [t]);
961
- const z = _({ onBegin: g, onEnd: S, onChange: T });
962
- z.current = { onBegin: g, onEnd: S, onChange: T };
961
+ const z = _({ onBegin: T, onEnd: S, onChange: g });
962
+ z.current = { onBegin: T, onEnd: S, onChange: g };
963
963
  const Q = Le(), X = _({ mirrored: Q });
964
964
  X.current.mirrored = Q;
965
965
  const B = _({ faceIndex: o, hand: c, handIndex: s, bodyIndex: a, bodyId: i, subject: d, active: n });
@@ -1030,9 +1030,9 @@ const jn = (e) => (kr(e), null), Br = ({
1030
1030
  view: d,
1031
1031
  onBegin: f,
1032
1032
  onEnd: h,
1033
- onChange: g,
1033
+ onChange: T,
1034
1034
  ...S
1035
- } = e, T = t !== void 0 ? { move: t } : { pose: r }, p = t !== void 0 ? `move:${typeof t == "string" ? t : t.name}` : `pose:${mr(r)}`, l = v(
1035
+ } = e, g = t !== void 0 ? { move: t } : { pose: r }, p = t !== void 0 ? `move:${typeof t == "string" ? t : t.name}` : `pose:${mr(r)}`, l = v(
1036
1036
  () => a !== void 0 && a > 0 ? { targetFps: a } : void 0,
1037
1037
  [a]
1038
1038
  ), {
@@ -1040,7 +1040,7 @@ const jn = (e) => (kr(e), null), Br = ({
1040
1040
  ready: x,
1041
1041
  index: R
1042
1042
  } = cr({ bodyIndex: n, bodyId: o, subject: u, numBodies: c, active: s, acquireOptions: l }), C = Le(), E = or(), A = JSON.stringify(i ?? null), D = v(() => Kr(i), [A]), O = JSON.stringify(d ?? null), L = v(() => d, [O]), G = JSON.stringify(S) + A, I = { ...S, limits: i }, y = _(null), M = _("");
1043
- (y.current === null || M.current !== p) && (y.current = qt(T, I), M.current = p), t !== void 0 ? y.current.move = Jt(t) : y.current.pose = r;
1043
+ (y.current === null || M.current !== p) && (y.current = qt(g, I), M.current = p), t !== void 0 ? y.current.move = Jt(t) : y.current.pose = r;
1044
1044
  const [w, V] = W(
1045
1045
  () => be(y.current)
1046
1046
  ), z = _(w);
@@ -1048,10 +1048,10 @@ const jn = (e) => (kr(e), null), Br = ({
1048
1048
  const Z = be(y.current);
1049
1049
  z.current = Z, V(Z);
1050
1050
  }, [p]), b(() => {
1051
- y.current && $t(y.current, T, I);
1051
+ y.current && $t(y.current, g, I);
1052
1052
  }, [G]);
1053
- const Q = _({ onBegin: f, onEnd: h, onChange: g });
1054
- Q.current = { onBegin: f, onEnd: h, onChange: g };
1053
+ const Q = _({ onBegin: f, onEnd: h, onChange: T });
1054
+ Q.current = { onBegin: f, onEnd: h, onChange: T };
1055
1055
  const X = _(null), B = _(null);
1056
1056
  return U(() => {
1057
1057
  var re;
@@ -1111,7 +1111,7 @@ const jn = (e) => (kr(e), null), Br = ({
1111
1111
  rightTemple: 234,
1112
1112
  leftEyeOuter: 263,
1113
1113
  rightEyeOuter: 33
1114
- }), Tt = (e, r = Date.now()) => {
1114
+ }), gt = (e, r = Date.now()) => {
1115
1115
  if (!e || e.length < 468) return null;
1116
1116
  const { leftTemple: t, rightTemple: n, leftEyeOuter: o, rightEyeOuter: u } = $r, c = _e(e[t], e[n]), s = _e(e[o], e[u]);
1117
1117
  return !c || !s ? null : { faceWidth: c, eyeDistance: s, capturedAt: r };
@@ -1130,7 +1130,7 @@ const jn = (e) => (kr(e), null), Br = ({
1130
1130
  );
1131
1131
  return { shoulderWidth: c, hipWidth: s, torsoLength: h, capturedAt: r };
1132
1132
  }, Zr = (e, r) => {
1133
- const t = r.face, n = Tt(e, 0);
1133
+ const t = r.face, n = gt(e, 0);
1134
1134
  return !t || !n ? null : t.faceWidth > 0 && n.faceWidth > 0 ? n.faceWidth / t.faceWidth : t.eyeDistance > 0 && n.eyeDistance > 0 ? n.eyeDistance / t.eyeDistance : null;
1135
1135
  }, en = (e, r) => {
1136
1136
  const t = r.body, n = Et(e, 0);
@@ -1195,39 +1195,39 @@ const jn = (e) => (kr(e), null), Br = ({
1195
1195
  const h = Y(
1196
1196
  (l) => (f.current = l, a(l), t && rn(l, r, n), l),
1197
1197
  [t, r, n]
1198
- ), g = Y(
1198
+ ), T = Y(
1199
1199
  (l) => h(ye(f.current, l)),
1200
1200
  [h]
1201
1201
  ), S = Y(() => {
1202
1202
  const l = Xr();
1203
1203
  return f.current = l, a(l), t && nn(r, n), l;
1204
- }, [t, r, n]), T = Y(
1204
+ }, [t, r, n]), g = Y(
1205
1205
  (l) => {
1206
- const m = Tt(l);
1207
- return m ? (g({ face: m }), !0) : !1;
1206
+ const m = gt(l);
1207
+ return m ? (T({ face: m }), !0) : !1;
1208
1208
  },
1209
- [g]
1209
+ [T]
1210
1210
  ), p = Y(
1211
1211
  (l) => {
1212
1212
  const m = Et(l);
1213
- return m ? (g({ body: m }), !0) : !1;
1213
+ return m ? (T({ body: m }), !0) : !1;
1214
1214
  },
1215
- [g]
1215
+ [T]
1216
1216
  );
1217
1217
  return v(
1218
1218
  () => ({
1219
1219
  calibration: s,
1220
1220
  hydrated: i,
1221
- update: g,
1221
+ update: T,
1222
1222
  reset: S,
1223
- calibrateFace: T,
1223
+ calibrateFace: g,
1224
1224
  calibrateBody: p,
1225
1225
  applyToFeedPoint: (l, m) => Jr(l, s, c, m),
1226
1226
  faceDistance: (l) => Zr(l, s),
1227
1227
  bodyScale: (l) => en(l, s),
1228
1228
  sourceKind: c
1229
1229
  }),
1230
- [s, i, g, S, T, p, c]
1230
+ [s, i, T, S, g, p, c]
1231
1231
  );
1232
1232
  }, sn = (e, r) => r && !e ? "begin" : !r && e ? "end" : r ? "stay" : "none", on = {
1233
1233
  face: null,
@@ -1249,10 +1249,10 @@ const jn = (e) => (kr(e), null), Br = ({
1249
1249
  return b(() => {
1250
1250
  u.current = o, c.current = n;
1251
1251
  }, [o, n]), U(() => {
1252
- const f = u.current, h = c.current, g = f[h] ?? null, S = !!g, T = s.current.faceIndex === h && s.current.detected, p = sn(T, S);
1252
+ const f = u.current, h = c.current, T = f[h] ?? null, S = !!T, g = s.current.faceIndex === h && s.current.detected, p = sn(g, S);
1253
1253
  s.current = { detected: S, faceIndex: h };
1254
1254
  const l = {
1255
- face: g,
1255
+ face: T,
1256
1256
  faces: f,
1257
1257
  faceCount: f.length,
1258
1258
  detected: S,
@@ -1278,22 +1278,22 @@ const jn = (e) => (kr(e), null), Br = ({
1278
1278
  const d = ot(r);
1279
1279
  i.current = d, a(d);
1280
1280
  }, [r]), U(({ clock: d }) => {
1281
- const f = o.current, h = u.current, g = c.current, S = f ? Ee(f, h, g) : 0, T = Mt(
1281
+ const f = o.current, h = u.current, T = c.current, S = f ? Ee(f, h, T) : 0, g = Mt(
1282
1282
  n.current,
1283
1283
  S,
1284
1284
  d.elapsedTime * 1e3,
1285
1285
  !!f,
1286
- Ht(h, g)
1286
+ Ht(h, T)
1287
1287
  ), p = i.current;
1288
- if (p.action === T.action && p.active === T.active && p.value === T.value && p.justStarted === T.justStarted && p.justEnded === T.justEnded && p.phase === T.phase)
1288
+ if (p.action === g.action && p.active === g.active && p.value === g.value && p.justStarted === g.justStarted && p.justEnded === g.justEnded && p.phase === g.phase)
1289
1289
  return;
1290
1290
  const l = {
1291
- action: T.action,
1292
- active: T.active,
1293
- value: T.value,
1294
- justStarted: T.justStarted,
1295
- justEnded: T.justEnded,
1296
- phase: T.phase
1291
+ action: g.action,
1292
+ active: g.active,
1293
+ value: g.value,
1294
+ justStarted: g.justStarted,
1295
+ justEnded: g.justEnded,
1296
+ phase: g.phase
1297
1297
  };
1298
1298
  i.current = l, a(l);
1299
1299
  }), s;
@@ -1354,17 +1354,17 @@ const jn = (e) => (kr(e), null), Br = ({
1354
1354
  error: null
1355
1355
  });
1356
1356
  return b(() => {
1357
- const g = document.createElement("canvas");
1358
- return c.current = g, s.current = g.getContext("2d", { willReadFrequently: !0 }), d.current = !0, () => {
1357
+ const T = document.createElement("canvas");
1358
+ return c.current = T, s.current = T.getContext("2d", { willReadFrequently: !0 }), d.current = !0, () => {
1359
1359
  d.current = !1, c.current = null, s.current = null;
1360
1360
  };
1361
- }, []), U(({ clock: g }) => {
1361
+ }, []), U(({ clock: T }) => {
1362
1362
  if (!r || !e || a.current || f.status === "error") return;
1363
- const S = Number.isFinite(t) && t > 0 ? t : 5, T = g.elapsedTime * 1e3;
1364
- if (T - i.current < 1e3 / S) return;
1363
+ const S = Number.isFinite(t) && t > 0 ? t : 5, g = T.elapsedTime * 1e3;
1364
+ if (g - i.current < 1e3 / S) return;
1365
1365
  const p = u.getInputFrame(), l = c.current, m = s.current;
1366
1366
  if (!p || !l || !m || !Br({ source: p, face: e, canvas: l, outputSize: { width: 112, height: 112 } })) return;
1367
- i.current = T, a.current = !0, f.status === "idle" && h({ status: "loading", result: null, error: null });
1367
+ i.current = g, a.current = !0, f.status === "idle" && h({ status: "loading", result: null, error: null });
1368
1368
  const x = cn(m.getImageData(0, 0, 112, 112));
1369
1369
  Promise.all([import("onnxruntime-web/wasm"), dn(o)]).then(async ([R, C]) => {
1370
1370
  const E = await C.run({
@@ -1423,7 +1423,7 @@ export {
1423
1423
  Pe as DEFAULT_CALIBRATION,
1424
1424
  Ls as DEFAULT_FACE_ACTION_OPTIONS,
1425
1425
  un as DEFAULT_FACE_ATTRIBUTE_EXPRESSION_MODEL_URL,
1426
- ga as DEFAULT_FACE_EXPRESSION_THRESHOLD,
1426
+ Ta as DEFAULT_FACE_EXPRESSION_THRESHOLD,
1427
1427
  ma as DEFAULT_GESTURE_DETECTOR_OPTIONS,
1428
1428
  Vo as DEFAULT_GESTURE_SETTINGS,
1429
1429
  as as DEFAULT_HOLISTIC_ANALYSIS_MAX_DIMENSION,
@@ -1449,7 +1449,7 @@ export {
1449
1449
  ts as FaceMesh,
1450
1450
  rs as FaceTracker,
1451
1451
  fo as ForearmOccluder,
1452
- gt as GESTURES,
1452
+ Tt as GESTURES,
1453
1453
  Kn as GESTURE_NAMES,
1454
1454
  Xo as GESTURE_SETTINGS_FIELDS,
1455
1455
  Wn as GestureListener,
@@ -1461,8 +1461,8 @@ export {
1461
1461
  ho as HAND_NAIL_FINGERS,
1462
1462
  mo as HAND_NAIL_FINISHES,
1463
1463
  po as HAND_NAIL_RENDER_ORDER,
1464
- go as HAND_NAIL_SHADES,
1465
- To as HAND_NAIL_SHAPES,
1464
+ To as HAND_NAIL_SHADES,
1465
+ go as HAND_NAIL_SHAPES,
1466
1466
  Eo as HAND_OCCLUDER_RENDER_ORDER,
1467
1467
  hs as HAND_POSE_DEFAULT_HOLD_MS,
1468
1468
  Ko as HAND_RIG_REQUIRED_JOINTS,
@@ -1488,7 +1488,7 @@ export {
1488
1488
  ya as IRIS_LANDMARKS,
1489
1489
  Oa as IRIS_LANDMARK_COUNT,
1490
1490
  Da as PERSON_MASK_LABELS,
1491
- Tr as SDK_MODEL_PATHS,
1491
+ gr as SDK_MODEL_PATHS,
1492
1492
  Xe as SEGMENTATION_TYPES,
1493
1493
  Go as SEMANTIC_SEGMENTATION_PRESETS,
1494
1494
  ks as SHOULDER_OCCLUDER_DEFAULT_OPACITY,
@@ -1505,10 +1505,10 @@ export {
1505
1505
  ms as XR_MAX_SUBJECTS,
1506
1506
  Jr as applyCalibrationToFeedPoint,
1507
1507
  ps as associateSubjects,
1508
- gs as bodyCandidates,
1508
+ Ts as bodyCandidates,
1509
1509
  Us as bodyLandmarkIndex,
1510
1510
  nn as clearCalibration,
1511
- Ts as clearSemanticMask,
1511
+ gs as clearSemanticMask,
1512
1512
  Wr as createCalibration,
1513
1513
  wo as createForearmGeometry,
1514
1514
  Nr as createHolisticSignals,
@@ -1521,7 +1521,7 @@ export {
1521
1521
  _s as faceCandidates,
1522
1522
  Ee as getFaceActionValue,
1523
1523
  Je as getFaceBlendshape,
1524
- Ta as getFaceEyeDistance,
1524
+ ga as getFaceEyeDistance,
1525
1525
  Un as getHolisticSignals,
1526
1526
  Gs as getStrongestFaceAction,
1527
1527
  fa as getTargetNamespace,
@@ -1534,7 +1534,7 @@ export {
1534
1534
  Ss as jointCandidates,
1535
1535
  tn as loadCalibration,
1536
1536
  Et as measureBodyCalibration,
1537
- Tt as measureFaceCalibration,
1537
+ gt as measureFaceCalibration,
1538
1538
  Rs as normalizedTrackerPointToTrackerPoint,
1539
1539
  $o as patchGestureSettings,
1540
1540
  Qo as patchHolisticTrackerSettings,
@@ -2,19 +2,19 @@ var Ls = Object.defineProperty;
2
2
  var Hs = (t, e, n) => e in t ? Ls(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var B = (t, e, n) => Hs(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { useCallback as Kn, useMemo as K, createContext as oe, useRef as st, useEffect as Z, useContext as qt, useState as Vs } from "react";
5
- import { p as Bs, u as Fs } from "./useFaceResultReader-D8wXbF1L.js";
5
+ import { p as Bs, u as Fs } from "./useFaceResultReader-DSnUjQcw.js";
6
6
  import { jsx as at, jsxs as ie, Fragment as Ws } from "react/jsx-runtime";
7
7
  import { useThree as Ot, useFrame as ye, createPortal as Pe } from "@react-three/fiber";
8
8
  import * as c from "three";
9
- import { e as ut, j as Et, T as $e, B as m, t as Jt, J as re, H as Je, A as Us, k as Ps } from "./index-BDxJWWyy.js";
9
+ import { a as ut, f as Et, T as $e, B as m, t as Jt, J as re, H as Je, A as Us, g as Ps } from "./index-MzlPbe9t.js";
10
10
  import { c as Yn } from "./SkeletonUtils-C2r90MtN.js";
11
- import { b as te, f as $n } from "./selectors-J06V0eDb.js";
12
- import { u as qs } from "./useBodies-DOuwRuew.js";
11
+ import { u as te, f as $n } from "./selectors-CiawE6Ox.js";
12
+ import { u as qs } from "./useBodies-DzRzQg88.js";
13
13
  import { a as de, s as Xe, L as Cs } from "./useLandmarkPoseFit-Bmb3h6Mw.js";
14
14
  import { R as zs } from "./uv-DJU_XfmN.js";
15
- import { u as ee } from "./landmarks-C3LvDhMt.js";
16
- import { S as be } from "./providers-Bxt_MfPK.js";
17
- import { b as js, y as Gs, z as Qs, H as Ze, v as Ks, x as Ys, o as $s, B as tn, k as Js, a as Xs, e as ft, r as Jn, m as Zs } from "./index-B0EYdofX.js";
15
+ import { u as ee } from "./landmarks-BgLF-yfd.js";
16
+ import { S as be } from "./providers-Bo1gfoXg.js";
17
+ import { b as js, y as Gs, z as Qs, H as Ze, v as Ks, x as Ys, o as $s, B as tn, k as Js, a as Xs, e as ft, r as Jn, m as Zs } from "./index-em1AaMkI.js";
18
18
  import { g as to, r as en, c as eo, s as Xn, a as no } from "./detector-K8aej4MB.js";
19
19
  const _a = ({
20
20
  node: t,