bridgeapp-ai-chat-widget 0.0.5 → 0.0.6

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.
@@ -45,8 +45,8 @@ function v7() {
45
45
  enqueueSetState: function() {
46
46
  }
47
47
  }, w = Object.assign, C = {};
48
- function A(V, oe, xe) {
49
- this.props = V, this.context = oe, this.refs = C, this.updater = xe || T;
48
+ function A(V, oe, Se) {
49
+ this.props = V, this.context = oe, this.refs = C, this.updater = Se || T;
50
50
  }
51
51
  A.prototype.isReactComponent = {}, A.prototype.setState = function(V, oe) {
52
52
  if (typeof V != "object" && typeof V != "function" && V != null)
@@ -60,8 +60,8 @@ function v7() {
60
60
  function L() {
61
61
  }
62
62
  L.prototype = A.prototype;
63
- function N(V, oe, xe) {
64
- this.props = V, this.context = oe, this.refs = C, this.updater = xe || T;
63
+ function N(V, oe, Se) {
64
+ this.props = V, this.context = oe, this.refs = C, this.updater = Se || T;
65
65
  }
66
66
  var z = N.prototype = new L();
67
67
  z.constructor = N, w(z, A.prototype), z.isPureReactComponent = !0;
@@ -69,14 +69,14 @@ function v7() {
69
69
  function j() {
70
70
  }
71
71
  var Y = { H: null, A: null, T: null, S: null }, Z = Object.prototype.hasOwnProperty;
72
- function U(V, oe, xe) {
73
- var Re = xe.ref;
72
+ function U(V, oe, Se) {
73
+ var Re = Se.ref;
74
74
  return {
75
75
  $$typeof: i,
76
76
  type: V,
77
77
  key: oe,
78
78
  ref: Re !== void 0 ? Re : null,
79
- props: xe
79
+ props: Se
80
80
  };
81
81
  }
82
82
  function F(V, oe) {
@@ -87,8 +87,8 @@ function v7() {
87
87
  }
88
88
  function te(V) {
89
89
  var oe = { "=": "=0", ":": "=2" };
90
- return "$" + V.replace(/[=:]/g, function(xe) {
91
- return oe[xe];
90
+ return "$" + V.replace(/[=:]/g, function(Se) {
91
+ return oe[Se];
92
92
  });
93
93
  }
94
94
  var re = /\/+/g;
@@ -118,7 +118,7 @@ function v7() {
118
118
  }
119
119
  throw V;
120
120
  }
121
- function X(V, oe, xe, Re, Qe) {
121
+ function X(V, oe, Se, Re, Qe) {
122
122
  var Me = typeof V;
123
123
  (Me === "undefined" || Me === "boolean") && (V = null);
124
124
  var ve = !1;
@@ -140,39 +140,39 @@ function v7() {
140
140
  return ve = V._init, X(
141
141
  ve(V._payload),
142
142
  oe,
143
- xe,
143
+ Se,
144
144
  Re,
145
145
  Qe
146
146
  );
147
147
  }
148
148
  }
149
149
  if (ve)
150
- return Qe = Qe(V), ve = Re === "" ? "." + he(V, 0) : Re, B(Qe) ? (xe = "", ve != null && (xe = ve.replace(re, "$&/") + "/"), X(Qe, oe, xe, "", function(ut) {
150
+ return Qe = Qe(V), ve = Re === "" ? "." + he(V, 0) : Re, B(Qe) ? (Se = "", ve != null && (Se = ve.replace(re, "$&/") + "/"), X(Qe, oe, Se, "", function(ut) {
151
151
  return ut;
152
152
  })) : Qe != null && (Q(Qe) && (Qe = F(
153
153
  Qe,
154
- xe + (Qe.key == null || V && V.key === Qe.key ? "" : ("" + Qe.key).replace(
154
+ Se + (Qe.key == null || V && V.key === Qe.key ? "" : ("" + Qe.key).replace(
155
155
  re,
156
156
  "$&/"
157
157
  ) + "/") + ve
158
158
  )), oe.push(Qe)), 1;
159
159
  ve = 0;
160
- var tt = Re === "" ? "." : Re + ":";
160
+ var nt = Re === "" ? "." : Re + ":";
161
161
  if (B(V))
162
162
  for (var lt = 0; lt < V.length; lt++)
163
- Re = V[lt], Me = tt + he(Re, lt), ve += X(
163
+ Re = V[lt], Me = nt + he(Re, lt), ve += X(
164
164
  Re,
165
165
  oe,
166
- xe,
166
+ Se,
167
167
  Me,
168
168
  Qe
169
169
  );
170
170
  else if (lt = x(V), typeof lt == "function")
171
171
  for (V = lt.call(V), lt = 0; !(Re = V.next()).done; )
172
- Re = Re.value, Me = tt + he(Re, lt++), ve += X(
172
+ Re = Re.value, Me = nt + he(Re, lt++), ve += X(
173
173
  Re,
174
174
  oe,
175
- xe,
175
+ Se,
176
176
  Me,
177
177
  Qe
178
178
  );
@@ -181,7 +181,7 @@ function v7() {
181
181
  return X(
182
182
  me(V),
183
183
  oe,
184
- xe,
184
+ Se,
185
185
  Re,
186
186
  Qe
187
187
  );
@@ -191,22 +191,22 @@ function v7() {
191
191
  }
192
192
  return ve;
193
193
  }
194
- function K(V, oe, xe) {
194
+ function K(V, oe, Se) {
195
195
  if (V == null) return V;
196
196
  var Re = [], Qe = 0;
197
197
  return X(V, Re, "", "", function(Me) {
198
- return oe.call(xe, Me, Qe++);
198
+ return oe.call(Se, Me, Qe++);
199
199
  }), Re;
200
200
  }
201
201
  function ee(V) {
202
202
  if (V._status === -1) {
203
203
  var oe = V._result;
204
204
  oe = oe(), oe.then(
205
- function(xe) {
206
- (V._status === 0 || V._status === -1) && (V._status = 1, V._result = xe);
205
+ function(Se) {
206
+ (V._status === 0 || V._status === -1) && (V._status = 1, V._result = Se);
207
207
  },
208
- function(xe) {
209
- (V._status === 0 || V._status === -1) && (V._status = 2, V._result = xe);
208
+ function(Se) {
209
+ (V._status === 0 || V._status === -1) && (V._status = 2, V._result = Se);
210
210
  }
211
211
  ), V._status === -1 && (V._status = 0, V._result = oe);
212
212
  }
@@ -229,13 +229,13 @@ function v7() {
229
229
  console.error(V);
230
230
  }, ze = {
231
231
  map: K,
232
- forEach: function(V, oe, xe) {
232
+ forEach: function(V, oe, Se) {
233
233
  K(
234
234
  V,
235
235
  function() {
236
236
  oe.apply(this, arguments);
237
237
  },
238
- xe
238
+ Se
239
239
  );
240
240
  },
241
241
  count: function(V) {
@@ -268,7 +268,7 @@ function v7() {
268
268
  };
269
269
  }, on.cacheSignal = function() {
270
270
  return null;
271
- }, on.cloneElement = function(V, oe, xe) {
271
+ }, on.cloneElement = function(V, oe, Se) {
272
272
  if (V == null)
273
273
  throw Error(
274
274
  "The argument must be a React element, but you passed " + V + "."
@@ -278,10 +278,10 @@ function v7() {
278
278
  for (Me in oe.key !== void 0 && (Qe = "" + oe.key), oe)
279
279
  !Z.call(oe, Me) || Me === "key" || Me === "__self" || Me === "__source" || Me === "ref" && oe.ref === void 0 || (Re[Me] = oe[Me]);
280
280
  var Me = arguments.length - 2;
281
- if (Me === 1) Re.children = xe;
281
+ if (Me === 1) Re.children = Se;
282
282
  else if (1 < Me) {
283
- for (var ve = Array(Me), tt = 0; tt < Me; tt++)
284
- ve[tt] = arguments[tt + 2];
283
+ for (var ve = Array(Me), nt = 0; nt < Me; nt++)
284
+ ve[nt] = arguments[nt + 2];
285
285
  Re.children = ve;
286
286
  }
287
287
  return U(V.type, Qe, Re);
@@ -297,17 +297,17 @@ function v7() {
297
297
  $$typeof: o,
298
298
  _context: V
299
299
  }, V;
300
- }, on.createElement = function(V, oe, xe) {
300
+ }, on.createElement = function(V, oe, Se) {
301
301
  var Re, Qe = {}, Me = null;
302
302
  if (oe != null)
303
303
  for (Re in oe.key !== void 0 && (Me = "" + oe.key), oe)
304
304
  Z.call(oe, Re) && Re !== "key" && Re !== "__self" && Re !== "__source" && (Qe[Re] = oe[Re]);
305
305
  var ve = arguments.length - 2;
306
- if (ve === 1) Qe.children = xe;
306
+ if (ve === 1) Qe.children = Se;
307
307
  else if (1 < ve) {
308
- for (var tt = Array(ve), lt = 0; lt < ve; lt++)
309
- tt[lt] = arguments[lt + 2];
310
- Qe.children = tt;
308
+ for (var nt = Array(ve), lt = 0; lt < ve; lt++)
309
+ nt[lt] = arguments[lt + 2];
310
+ Qe.children = nt;
311
311
  }
312
312
  if (V && V.defaultProps)
313
313
  for (Re in ve = V.defaultProps, ve)
@@ -330,22 +330,22 @@ function v7() {
330
330
  compare: oe === void 0 ? null : oe
331
331
  };
332
332
  }, on.startTransition = function(V) {
333
- var oe = Y.T, xe = {};
334
- Y.T = xe;
333
+ var oe = Y.T, Se = {};
334
+ Y.T = Se;
335
335
  try {
336
336
  var Re = V(), Qe = Y.S;
337
- Qe !== null && Qe(xe, Re), typeof Re == "object" && Re !== null && typeof Re.then == "function" && Re.then(j, Ae);
337
+ Qe !== null && Qe(Se, Re), typeof Re == "object" && Re !== null && typeof Re.then == "function" && Re.then(j, Ae);
338
338
  } catch (Me) {
339
339
  Ae(Me);
340
340
  } finally {
341
- oe !== null && xe.types !== null && (oe.types = xe.types), Y.T = oe;
341
+ oe !== null && Se.types !== null && (oe.types = Se.types), Y.T = oe;
342
342
  }
343
343
  }, on.unstable_useCacheRefresh = function() {
344
344
  return Y.H.useCacheRefresh();
345
345
  }, on.use = function(V) {
346
346
  return Y.H.use(V);
347
- }, on.useActionState = function(V, oe, xe) {
348
- return Y.H.useActionState(V, oe, xe);
347
+ }, on.useActionState = function(V, oe, Se) {
348
+ return Y.H.useActionState(V, oe, Se);
349
349
  }, on.useCallback = function(V, oe) {
350
350
  return Y.H.useCallback(V, oe);
351
351
  }, on.useContext = function(V) {
@@ -359,8 +359,8 @@ function v7() {
359
359
  return Y.H.useEffectEvent(V);
360
360
  }, on.useId = function() {
361
361
  return Y.H.useId();
362
- }, on.useImperativeHandle = function(V, oe, xe) {
363
- return Y.H.useImperativeHandle(V, oe, xe);
362
+ }, on.useImperativeHandle = function(V, oe, Se) {
363
+ return Y.H.useImperativeHandle(V, oe, Se);
364
364
  }, on.useInsertionEffect = function(V, oe) {
365
365
  return Y.H.useInsertionEffect(V, oe);
366
366
  }, on.useLayoutEffect = function(V, oe) {
@@ -369,17 +369,17 @@ function v7() {
369
369
  return Y.H.useMemo(V, oe);
370
370
  }, on.useOptimistic = function(V, oe) {
371
371
  return Y.H.useOptimistic(V, oe);
372
- }, on.useReducer = function(V, oe, xe) {
373
- return Y.H.useReducer(V, oe, xe);
372
+ }, on.useReducer = function(V, oe, Se) {
373
+ return Y.H.useReducer(V, oe, Se);
374
374
  }, on.useRef = function(V) {
375
375
  return Y.H.useRef(V);
376
376
  }, on.useState = function(V) {
377
377
  return Y.H.useState(V);
378
- }, on.useSyncExternalStore = function(V, oe, xe) {
378
+ }, on.useSyncExternalStore = function(V, oe, Se) {
379
379
  return Y.H.useSyncExternalStore(
380
380
  V,
381
381
  oe,
382
- xe
382
+ Se
383
383
  );
384
384
  }, on.useTransition = function() {
385
385
  return Y.H.useTransition();
@@ -452,13 +452,13 @@ function _7() {
452
452
  switch (H) {
453
453
  case V:
454
454
  return "Fragment";
455
- case xe:
455
+ case Se:
456
456
  return "Profiler";
457
457
  case oe:
458
458
  return "StrictMode";
459
459
  case ve:
460
460
  return "Suspense";
461
- case tt:
461
+ case nt:
462
462
  return "SuspenseList";
463
463
  case $e:
464
464
  return "Activity";
@@ -499,7 +499,7 @@ function _7() {
499
499
  }
500
500
  }
501
501
  function x() {
502
- var H = et.A;
502
+ var H = tt.A;
503
503
  return H === null ? null : H.getOwner();
504
504
  }
505
505
  function T() {
@@ -531,14 +531,14 @@ function _7() {
531
531
  )), H = this.props.ref, H !== void 0 ? H : null;
532
532
  }
533
533
  function L(H, q, _e, be, Fe, Ue) {
534
- var Se = _e.ref;
534
+ var Ee = _e.ref;
535
535
  return H = {
536
536
  $$typeof: Ae,
537
537
  type: H,
538
538
  key: q,
539
539
  props: _e,
540
540
  _owner: be
541
- }, (Se !== void 0 ? Se : null) !== null ? Object.defineProperty(H, "ref", {
541
+ }, (Ee !== void 0 ? Ee : null) !== null ? Object.defineProperty(H, "ref", {
542
542
  enumerable: !1,
543
543
  get: A
544
544
  }) : Object.defineProperty(H, "ref", { enumerable: !1, value: null }), H._store = {}, Object.defineProperty(H._store, "validated", {
@@ -614,24 +614,24 @@ function _7() {
614
614
  function U(H, q, _e, be, Fe) {
615
615
  var Ue = typeof H;
616
616
  (Ue === "undefined" || Ue === "boolean") && (H = null);
617
- var Se = !1;
618
- if (H === null) Se = !0;
617
+ var Ee = !1;
618
+ if (H === null) Ee = !0;
619
619
  else
620
620
  switch (Ue) {
621
621
  case "bigint":
622
622
  case "string":
623
623
  case "number":
624
- Se = !0;
624
+ Ee = !0;
625
625
  break;
626
626
  case "object":
627
627
  switch (H.$$typeof) {
628
628
  case Ae:
629
629
  case ze:
630
- Se = !0;
630
+ Ee = !0;
631
631
  break;
632
632
  case ut:
633
- return Se = H._init, U(
634
- Se(H._payload),
633
+ return Ee = H._init, U(
634
+ Ee(H._payload),
635
635
  q,
636
636
  _e,
637
637
  be,
@@ -639,22 +639,22 @@ function _7() {
639
639
  );
640
640
  }
641
641
  }
642
- if (Se) {
643
- Se = H, Fe = Fe(Se);
644
- var Xe = be === "" ? "." + Y(Se, 0) : be;
642
+ if (Ee) {
643
+ Ee = H, Fe = Fe(Ee);
644
+ var Xe = be === "" ? "." + Y(Ee, 0) : be;
645
645
  return le(Fe) ? (_e = "", Xe != null && (_e = Xe.replace(wt, "$&/") + "/"), U(Fe, q, _e, "", function(rn) {
646
646
  return rn;
647
- })) : Fe != null && (B(Fe) && (Fe.key != null && (Se && Se.key === Fe.key || _(Fe.key)), _e = N(
647
+ })) : Fe != null && (B(Fe) && (Fe.key != null && (Ee && Ee.key === Fe.key || _(Fe.key)), _e = N(
648
648
  Fe,
649
- _e + (Fe.key == null || Se && Se.key === Fe.key ? "" : ("" + Fe.key).replace(
649
+ _e + (Fe.key == null || Ee && Ee.key === Fe.key ? "" : ("" + Fe.key).replace(
650
650
  wt,
651
651
  "$&/"
652
652
  ) + "/") + Xe
653
- ), be !== "" && Se != null && B(Se) && Se.key == null && Se._store && !Se._store.validated && (_e._store.validated = 2), Fe = _e), q.push(Fe)), 1;
653
+ ), be !== "" && Ee != null && B(Ee) && Ee.key == null && Ee._store && !Ee._store.validated && (_e._store.validated = 2), Fe = _e), q.push(Fe)), 1;
654
654
  }
655
- if (Se = 0, Xe = be === "" ? "." : be + ":", le(H))
655
+ if (Ee = 0, Xe = be === "" ? "." : be + ":", le(H))
656
656
  for (var at = 0; at < H.length; at++)
657
- be = H[at], Ue = Xe + Y(be, at), Se += U(
657
+ be = H[at], Ue = Xe + Y(be, at), Ee += U(
658
658
  be,
659
659
  q,
660
660
  _e,
@@ -665,7 +665,7 @@ function _7() {
665
665
  for (at === H.entries && (Pe || console.warn(
666
666
  "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
667
667
  ), Pe = !0), H = at.call(H), at = 0; !(be = H.next()).done; )
668
- be = be.value, Ue = Xe + Y(be, at++), Se += U(
668
+ be = be.value, Ue = Xe + Y(be, at++), Ee += U(
669
669
  be,
670
670
  q,
671
671
  _e,
@@ -685,7 +685,7 @@ function _7() {
685
685
  "Objects are not valid as a React child (found: " + (q === "[object Object]" ? "object with keys {" + Object.keys(H).join(", ") + "}" : q) + "). If you meant to render a collection of children, use an array instead."
686
686
  );
687
687
  }
688
- return Se;
688
+ return Ee;
689
689
  }
690
690
  function F(H, q, _e) {
691
691
  if (H == null) return H;
@@ -740,7 +740,7 @@ Your code should look like:
740
740
  throw H._result;
741
741
  }
742
742
  function te() {
743
- var H = et.H;
743
+ var H = tt.H;
744
744
  return H === null && console.error(
745
745
  `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
746
746
  1. You might have mismatching versions of React and the renderer (such as React DOM)
@@ -750,7 +750,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
750
750
  ), H;
751
751
  }
752
752
  function re() {
753
- et.asyncTransitions--;
753
+ tt.asyncTransitions--;
754
754
  }
755
755
  function he(H) {
756
756
  if (kt === null)
@@ -780,7 +780,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
780
780
  ), Ke = q;
781
781
  }
782
782
  function K(H, q, _e) {
783
- var be = et.actQueue;
783
+ var be = tt.actQueue;
784
784
  if (be !== null)
785
785
  if (be.length !== 0)
786
786
  try {
@@ -789,10 +789,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
789
789
  });
790
790
  return;
791
791
  } catch (Fe) {
792
- et.thrownErrors.push(Fe);
792
+ tt.thrownErrors.push(Fe);
793
793
  }
794
- else et.actQueue = null;
795
- 0 < et.thrownErrors.length ? (be = me(et.thrownErrors), et.thrownErrors.length = 0, _e(be)) : q(H);
794
+ else tt.actQueue = null;
795
+ 0 < tt.thrownErrors.length ? (be = me(tt.thrownErrors), tt.thrownErrors.length = 0, _e(be)) : q(H);
796
796
  }
797
797
  function ee(H) {
798
798
  if (!mt) {
@@ -802,10 +802,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
802
802
  for (; q < H.length; q++) {
803
803
  var _e = H[q];
804
804
  do {
805
- et.didUsePromise = !1;
805
+ tt.didUsePromise = !1;
806
806
  var be = _e(!1);
807
807
  if (be !== null) {
808
- if (et.didUsePromise) {
808
+ if (tt.didUsePromise) {
809
809
  H[q] = _e, H.splice(0, q);
810
810
  return;
811
811
  }
@@ -815,14 +815,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
815
815
  }
816
816
  H.length = 0;
817
817
  } catch (Fe) {
818
- H.splice(0, q + 1), et.thrownErrors.push(Fe);
818
+ H.splice(0, q + 1), tt.thrownErrors.push(Fe);
819
819
  } finally {
820
820
  mt = !1;
821
821
  }
822
822
  }
823
823
  }
824
824
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
825
- var Ae = /* @__PURE__ */ Symbol.for("react.transitional.element"), ze = /* @__PURE__ */ Symbol.for("react.portal"), V = /* @__PURE__ */ Symbol.for("react.fragment"), oe = /* @__PURE__ */ Symbol.for("react.strict_mode"), xe = /* @__PURE__ */ Symbol.for("react.profiler"), Re = /* @__PURE__ */ Symbol.for("react.consumer"), Qe = /* @__PURE__ */ Symbol.for("react.context"), Me = /* @__PURE__ */ Symbol.for("react.forward_ref"), ve = /* @__PURE__ */ Symbol.for("react.suspense"), tt = /* @__PURE__ */ Symbol.for("react.suspense_list"), lt = /* @__PURE__ */ Symbol.for("react.memo"), ut = /* @__PURE__ */ Symbol.for("react.lazy"), $e = /* @__PURE__ */ Symbol.for("react.activity"), On = Symbol.iterator, Qt = {}, nn = {
825
+ var Ae = /* @__PURE__ */ Symbol.for("react.transitional.element"), ze = /* @__PURE__ */ Symbol.for("react.portal"), V = /* @__PURE__ */ Symbol.for("react.fragment"), oe = /* @__PURE__ */ Symbol.for("react.strict_mode"), Se = /* @__PURE__ */ Symbol.for("react.profiler"), Re = /* @__PURE__ */ Symbol.for("react.consumer"), Qe = /* @__PURE__ */ Symbol.for("react.context"), Me = /* @__PURE__ */ Symbol.for("react.forward_ref"), ve = /* @__PURE__ */ Symbol.for("react.suspense"), nt = /* @__PURE__ */ Symbol.for("react.suspense_list"), lt = /* @__PURE__ */ Symbol.for("react.memo"), ut = /* @__PURE__ */ Symbol.for("react.lazy"), $e = /* @__PURE__ */ Symbol.for("react.activity"), On = Symbol.iterator, Qt = {}, nn = {
826
826
  isMounted: function() {
827
827
  return !1;
828
828
  },
@@ -858,7 +858,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
858
858
  for (st in Tn)
859
859
  Tn.hasOwnProperty(st) && t(st, Tn[st]);
860
860
  c.prototype = o.prototype, Tn = f.prototype = new c(), Tn.constructor = f, bn(Tn, o.prototype), Tn.isPureReactComponent = !0;
861
- var le = Array.isArray, fi = /* @__PURE__ */ Symbol.for("react.client.reference"), et = {
861
+ var le = Array.isArray, fi = /* @__PURE__ */ Symbol.for("react.client.reference"), tt = {
862
862
  H: null,
863
863
  A: null,
864
864
  T: null,
@@ -896,7 +896,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
896
896
  return;
897
897
  }
898
898
  console.error(H);
899
- }, Et = !1, kt = null, Ke = 0, Je = !1, mt = !1, ht = typeof queueMicrotask == "function" ? function(H) {
899
+ }, Et = !1, kt = null, Ke = 0, et = !1, mt = !1, ht = typeof queueMicrotask == "function" ? function(H) {
900
900
  queueMicrotask(function() {
901
901
  return queueMicrotask(H);
902
902
  });
@@ -937,26 +937,26 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
937
937
  return H;
938
938
  }
939
939
  };
940
- e.Activity = $e, e.Children = st, e.Component = o, e.Fragment = V, e.Profiler = xe, e.PureComponent = f, e.StrictMode = oe, e.Suspense = ve, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = et, e.__COMPILER_RUNTIME = Tn, e.act = function(H) {
941
- var q = et.actQueue, _e = Ke;
940
+ e.Activity = $e, e.Children = st, e.Component = o, e.Fragment = V, e.Profiler = Se, e.PureComponent = f, e.StrictMode = oe, e.Suspense = ve, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = tt, e.__COMPILER_RUNTIME = Tn, e.act = function(H) {
941
+ var q = tt.actQueue, _e = Ke;
942
942
  Ke++;
943
- var be = et.actQueue = q !== null ? q : [], Fe = !1;
943
+ var be = tt.actQueue = q !== null ? q : [], Fe = !1;
944
944
  try {
945
945
  var Ue = H();
946
946
  } catch (at) {
947
- et.thrownErrors.push(at);
947
+ tt.thrownErrors.push(at);
948
948
  }
949
- if (0 < et.thrownErrors.length)
950
- throw X(q, _e), H = me(et.thrownErrors), et.thrownErrors.length = 0, H;
949
+ if (0 < tt.thrownErrors.length)
950
+ throw X(q, _e), H = me(tt.thrownErrors), tt.thrownErrors.length = 0, H;
951
951
  if (Ue !== null && typeof Ue == "object" && typeof Ue.then == "function") {
952
- var Se = Ue;
952
+ var Ee = Ue;
953
953
  return ht(function() {
954
- Fe || Je || (Je = !0, console.error(
954
+ Fe || et || (et = !0, console.error(
955
955
  "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
956
956
  ));
957
957
  }), {
958
958
  then: function(at, rn) {
959
- Fe = !0, Se.then(
959
+ Fe = !0, Ee.then(
960
960
  function(sn) {
961
961
  if (X(q, _e), _e === 0) {
962
962
  try {
@@ -968,20 +968,20 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
968
968
  );
969
969
  });
970
970
  } catch (sa) {
971
- et.thrownErrors.push(sa);
971
+ tt.thrownErrors.push(sa);
972
972
  }
973
- if (0 < et.thrownErrors.length) {
973
+ if (0 < tt.thrownErrors.length) {
974
974
  var ur = me(
975
- et.thrownErrors
975
+ tt.thrownErrors
976
976
  );
977
- et.thrownErrors.length = 0, rn(ur);
977
+ tt.thrownErrors.length = 0, rn(ur);
978
978
  }
979
979
  } else at(sn);
980
980
  },
981
981
  function(sn) {
982
- X(q, _e), 0 < et.thrownErrors.length && (sn = me(
983
- et.thrownErrors
984
- ), et.thrownErrors.length = 0), rn(sn);
982
+ X(q, _e), 0 < tt.thrownErrors.length && (sn = me(
983
+ tt.thrownErrors
984
+ ), tt.thrownErrors.length = 0), rn(sn);
985
985
  }
986
986
  );
987
987
  }
@@ -989,14 +989,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
989
989
  }
990
990
  var Xe = Ue;
991
991
  if (X(q, _e), _e === 0 && (ee(be), be.length !== 0 && ht(function() {
992
- Fe || Je || (Je = !0, console.error(
992
+ Fe || et || (et = !0, console.error(
993
993
  "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
994
994
  ));
995
- }), et.actQueue = null), 0 < et.thrownErrors.length)
996
- throw H = me(et.thrownErrors), et.thrownErrors.length = 0, H;
995
+ }), tt.actQueue = null), 0 < tt.thrownErrors.length)
996
+ throw H = me(tt.thrownErrors), tt.thrownErrors.length = 0, H;
997
997
  return {
998
998
  then: function(at, rn) {
999
- Fe = !0, _e === 0 ? (et.actQueue = be, he(function() {
999
+ Fe = !0, _e === 0 ? (tt.actQueue = be, he(function() {
1000
1000
  return K(
1001
1001
  Xe,
1002
1002
  at,
@@ -1012,7 +1012,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1012
1012
  }, e.cacheSignal = function() {
1013
1013
  return null;
1014
1014
  }, e.captureOwnerStack = function() {
1015
- var H = et.getCurrentStack;
1015
+ var H = tt.getCurrentStack;
1016
1016
  return H === null ? null : H();
1017
1017
  }, e.cloneElement = function(H, q, _e) {
1018
1018
  if (H == null)
@@ -1021,28 +1021,28 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1021
1021
  );
1022
1022
  var be = bn({}, H.props), Fe = H.key, Ue = H._owner;
1023
1023
  if (q != null) {
1024
- var Se;
1024
+ var Ee;
1025
1025
  e: {
1026
- if (Ln.call(q, "ref") && (Se = Object.getOwnPropertyDescriptor(
1026
+ if (Ln.call(q, "ref") && (Ee = Object.getOwnPropertyDescriptor(
1027
1027
  q,
1028
1028
  "ref"
1029
- ).get) && Se.isReactWarning) {
1030
- Se = !1;
1029
+ ).get) && Ee.isReactWarning) {
1030
+ Ee = !1;
1031
1031
  break e;
1032
1032
  }
1033
- Se = q.ref !== void 0;
1033
+ Ee = q.ref !== void 0;
1034
1034
  }
1035
- Se && (Ue = x()), w(q) && (_(q.key), Fe = "" + q.key);
1035
+ Ee && (Ue = x()), w(q) && (_(q.key), Fe = "" + q.key);
1036
1036
  for (Xe in q)
1037
1037
  !Ln.call(q, Xe) || Xe === "key" || Xe === "__self" || Xe === "__source" || Xe === "ref" && q.ref === void 0 || (be[Xe] = q[Xe]);
1038
1038
  }
1039
1039
  var Xe = arguments.length - 2;
1040
1040
  if (Xe === 1) be.children = _e;
1041
1041
  else if (1 < Xe) {
1042
- Se = Array(Xe);
1042
+ Ee = Array(Xe);
1043
1043
  for (var at = 0; at < Xe; at++)
1044
- Se[at] = arguments[at + 2];
1045
- be.children = Se;
1044
+ Ee[at] = arguments[at + 2];
1045
+ be.children = Ee;
1046
1046
  }
1047
1047
  for (be = L(
1048
1048
  H.type,
@@ -1079,9 +1079,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1079
1079
  var Ue = arguments.length - 2;
1080
1080
  if (Ue === 1) be.children = _e;
1081
1081
  else if (1 < Ue) {
1082
- for (var Se = Array(Ue), Xe = 0; Xe < Ue; Xe++)
1083
- Se[Xe] = arguments[Xe + 2];
1084
- Object.freeze && Object.freeze(Se), be.children = Se;
1082
+ for (var Ee = Array(Ue), Xe = 0; Xe < Ue; Xe++)
1083
+ Ee[Xe] = arguments[Xe + 2];
1084
+ Object.freeze && Object.freeze(Ee), be.children = Ee;
1085
1085
  }
1086
1086
  if (H && H.defaultProps)
1087
1087
  for (at in Ue = H.defaultProps, Ue)
@@ -1090,7 +1090,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1090
1090
  be,
1091
1091
  typeof H == "function" ? H.displayName || H.name || "Unknown" : H
1092
1092
  );
1093
- var at = 1e4 > et.recentlyCreatedOwnerStacks++;
1093
+ var at = 1e4 > tt.recentlyCreatedOwnerStacks++;
1094
1094
  return L(
1095
1095
  H,
1096
1096
  Fe,
@@ -1162,11 +1162,11 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1162
1162
  }
1163
1163
  }), q;
1164
1164
  }, e.startTransition = function(H) {
1165
- var q = et.T, _e = {};
1166
- _e._updatedFibers = /* @__PURE__ */ new Set(), et.T = _e;
1165
+ var q = tt.T, _e = {};
1166
+ _e._updatedFibers = /* @__PURE__ */ new Set(), tt.T = _e;
1167
1167
  try {
1168
- var be = H(), Fe = et.S;
1169
- Fe !== null && Fe(_e, be), typeof be == "object" && be !== null && typeof be.then == "function" && (et.asyncTransitions++, be.then(re, re), be.then(h, ot));
1168
+ var be = H(), Fe = tt.S;
1169
+ Fe !== null && Fe(_e, be), typeof be == "object" && be !== null && typeof be.then == "function" && (tt.asyncTransitions++, be.then(re, re), be.then(h, ot));
1170
1170
  } catch (Ue) {
1171
1171
  ot(Ue);
1172
1172
  } finally {
@@ -1174,7 +1174,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1174
1174
  "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1175
1175
  )), q !== null && _e.types !== null && (q.types !== null && q.types !== _e.types && console.error(
1176
1176
  "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1177
- ), q.types = _e.types), et.T = q;
1177
+ ), q.types = _e.types), tt.T = q;
1178
1178
  }
1179
1179
  }, e.unstable_useCacheRefresh = function() {
1180
1180
  return te().useCacheRefresh();
@@ -1299,8 +1299,8 @@ function b7() {
1299
1299
  }
1300
1300
  if (oe) {
1301
1301
  oe = console;
1302
- var xe = oe.error, Re = typeof Symbol == "function" && Symbol.toStringTag && V[Symbol.toStringTag] || V.constructor.name || "Object";
1303
- return xe.call(
1302
+ var Se = oe.error, Re = typeof Symbol == "function" && Symbol.toStringTag && V[Symbol.toStringTag] || V.constructor.name || "Object";
1303
+ return Se.call(
1304
1304
  oe,
1305
1305
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1306
1306
  Re
@@ -1333,14 +1333,14 @@ function b7() {
1333
1333
  return V.key !== void 0;
1334
1334
  }
1335
1335
  function f(V, oe) {
1336
- function xe() {
1336
+ function Se() {
1337
1337
  X || (X = !0, console.error(
1338
1338
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
1339
1339
  oe
1340
1340
  ));
1341
1341
  }
1342
- xe.isReactWarning = !0, Object.defineProperty(V, "key", {
1343
- get: xe,
1342
+ Se.isReactWarning = !0, Object.defineProperty(V, "key", {
1343
+ get: Se,
1344
1344
  configurable: !0
1345
1345
  });
1346
1346
  }
@@ -1350,13 +1350,13 @@ function b7() {
1350
1350
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
1351
1351
  )), V = this.props.ref, V !== void 0 ? V : null;
1352
1352
  }
1353
- function y(V, oe, xe, Re, Qe, Me) {
1354
- var ve = xe.ref;
1353
+ function y(V, oe, Se, Re, Qe, Me) {
1354
+ var ve = Se.ref;
1355
1355
  return V = {
1356
1356
  $$typeof: T,
1357
1357
  type: V,
1358
1358
  key: oe,
1359
- props: xe,
1359
+ props: Se,
1360
1360
  _owner: Re
1361
1361
  }, (ve !== void 0 ? ve : null) !== null ? Object.defineProperty(V, "ref", {
1362
1362
  enumerable: !1,
@@ -1383,7 +1383,7 @@ function b7() {
1383
1383
  value: Me
1384
1384
  }), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
1385
1385
  }
1386
- function _(V, oe, xe, Re, Qe, Me) {
1386
+ function _(V, oe, Se, Re, Qe, Me) {
1387
1387
  var ve = oe.children;
1388
1388
  if (ve !== void 0)
1389
1389
  if (Re)
@@ -1398,10 +1398,10 @@ function b7() {
1398
1398
  else p(ve);
1399
1399
  if (re.call(oe, "key")) {
1400
1400
  ve = i(V);
1401
- var tt = Object.keys(oe).filter(function(ut) {
1401
+ var nt = Object.keys(oe).filter(function(ut) {
1402
1402
  return ut !== "key";
1403
1403
  });
1404
- Re = 0 < tt.length ? "{key: someKey, " + tt.join(": ..., ") + ": ...}" : "{key: someKey}", ze[ve + Re] || (tt = 0 < tt.length ? "{" + tt.join(": ..., ") + ": ...}" : "{}", console.error(
1404
+ Re = 0 < nt.length ? "{key: someKey, " + nt.join(": ..., ") + ": ...}" : "{key: someKey}", ze[ve + Re] || (nt = 0 < nt.length ? "{" + nt.join(": ..., ") + ": ...}" : "{}", console.error(
1405
1405
  `A props object containing a "key" prop is being spread into JSX:
1406
1406
  let props = %s;
1407
1407
  <%s {...props} />
@@ -1410,22 +1410,22 @@ React keys must be passed directly to JSX without using spread:
1410
1410
  <%s key={someKey} {...props} />`,
1411
1411
  Re,
1412
1412
  ve,
1413
- tt,
1413
+ nt,
1414
1414
  ve
1415
1415
  ), ze[ve + Re] = !0);
1416
1416
  }
1417
- if (ve = null, xe !== void 0 && (t(xe), ve = "" + xe), c(oe) && (t(oe.key), ve = "" + oe.key), "key" in oe) {
1418
- xe = {};
1417
+ if (ve = null, Se !== void 0 && (t(Se), ve = "" + Se), c(oe) && (t(oe.key), ve = "" + oe.key), "key" in oe) {
1418
+ Se = {};
1419
1419
  for (var lt in oe)
1420
- lt !== "key" && (xe[lt] = oe[lt]);
1421
- } else xe = oe;
1420
+ lt !== "key" && (Se[lt] = oe[lt]);
1421
+ } else Se = oe;
1422
1422
  return ve && f(
1423
- xe,
1423
+ Se,
1424
1424
  typeof V == "function" ? V.displayName || V.name || "Unknown" : V
1425
1425
  ), y(
1426
1426
  V,
1427
1427
  ve,
1428
- xe,
1428
+ Se,
1429
1429
  a(),
1430
1430
  Qe,
1431
1431
  Me
@@ -1449,22 +1449,22 @@ React keys must be passed directly to JSX without using spread:
1449
1449
  x,
1450
1450
  o
1451
1451
  )(), Ae = me(n(o)), ze = {};
1452
- Cx.Fragment = C, Cx.jsx = function(V, oe, xe) {
1452
+ Cx.Fragment = C, Cx.jsx = function(V, oe, Se) {
1453
1453
  var Re = 1e4 > te.recentlyCreatedOwnerStacks++;
1454
1454
  return _(
1455
1455
  V,
1456
1456
  oe,
1457
- xe,
1457
+ Se,
1458
1458
  !1,
1459
1459
  Re ? Error("react-stack-top-frame") : ee,
1460
1460
  Re ? me(n(V)) : Ae
1461
1461
  );
1462
- }, Cx.jsxs = function(V, oe, xe) {
1462
+ }, Cx.jsxs = function(V, oe, Se) {
1463
1463
  var Re = 1e4 > te.recentlyCreatedOwnerStacks++;
1464
1464
  return _(
1465
1465
  V,
1466
1466
  oe,
1467
- xe,
1467
+ Se,
1468
1468
  !0,
1469
1469
  Re ? Error("react-stack-top-frame") : ee,
1470
1470
  Re ? me(n(V)) : Ae
@@ -1476,7 +1476,7 @@ var FN;
1476
1476
  function x7() {
1477
1477
  return FN || (FN = 1, process.env.NODE_ENV === "production" ? gM.exports = y7() : gM.exports = b7()), gM.exports;
1478
1478
  }
1479
- var nt = x7(), Ze = D_();
1479
+ var Je = x7(), Ze = D_();
1480
1480
  const Hg = /* @__PURE__ */ g7(Ze);
1481
1481
  const XD = "182", S7 = 0, HN = 1, E7 = 2, uw = 1, T7 = 2, Vx = 3, Rp = 0, ro = 1, md = 2, gd = 0, n_ = 1, VN = 2, GN = 3, jN = 4, M7 = 5, Bg = 100, w7 = 101, A7 = 102, C7 = 103, R7 = 104, D7 = 200, O7 = 201, L7 = 202, N7 = 203, eR = 204, tR = 205, k7 = 206, U7 = 207, z7 = 208, I7 = 209, B7 = 210, P7 = 211, F7 = 212, H7 = 213, V7 = 214, nR = 0, iR = 1, rR = 2, f_ = 3, aR = 4, sR = 5, oR = 6, lR = 7, NA = 0, G7 = 1, j7 = 2, Vu = 0, KU = 1, QU = 2, JU = 3, e6 = 4, t6 = 5, n6 = 6, i6 = 7, XN = "attached", X7 = "detached", r6 = 300, a0 = 301, d_ = 302, ww = 303, cR = 304, kA = 306, _r = 1e3, Fc = 1001, uR = 1002, Fa = 1003, q7 = 1004, vM = 1005, rs = 1006, LC = 1007, Vg = 1008, jo = 1009, a6 = 1010, s6 = 1011, hS = 1012, qD = 1013, qu = 1014, Hc = 1015, _d = 1016, YD = 1017, $D = 1018, pS = 1020, o6 = 35902, l6 = 35899, c6 = 1021, u6 = 1022, Zl = 1023, bd = 1026, Gg = 1027, f6 = 1028, WD = 1029, h_ = 1030, ZD = 1031, KD = 1033, fw = 33776, dw = 33777, hw = 33778, pw = 33779, fR = 35840, dR = 35841, hR = 35842, pR = 35843, mR = 36196, gR = 37492, yR = 37496, vR = 37488, _R = 37489, bR = 37490, xR = 37491, SR = 37808, ER = 37809, TR = 37810, MR = 37811, wR = 37812, AR = 37813, CR = 37814, RR = 37815, DR = 37816, OR = 37817, LR = 37818, NR = 37819, kR = 37820, UR = 37821, zR = 36492, IR = 36494, BR = 36495, PR = 36283, FR = 36284, HR = 36285, VR = 36286, d6 = 2200, Y7 = 2201, $7 = 2202, Aw = 2300, GR = 2301, NC = 2302, Zv = 2400, Kv = 2401, Cw = 2402, QD = 2500, W7 = 2501, Z7 = 3200, UA = 0, K7 = 1, mp = "", en = "srgb", p_ = "srgb-linear", Rw = "linear", ui = "srgb", Mv = 7680, qN = 519, Q7 = 512, J7 = 513, e9 = 514, JD = 515, t9 = 516, n9 = 517, eO = 518, i9 = 519, YN = 35044, $N = "300 es", Fu = 2e3, Dw = 2001;
1482
1482
  function h6(i) {
@@ -2942,7 +2942,7 @@ class Ba {
2942
2942
  yield this._x, yield this._y, yield this._z, yield this._w;
2943
2943
  }
2944
2944
  }
2945
- class Te {
2945
+ class xe {
2946
2946
  /**
2947
2947
  * Constructs a new 3D vector.
2948
2948
  *
@@ -2951,7 +2951,7 @@ class Te {
2951
2951
  * @param {number} [z=0] - The z value of this vector.
2952
2952
  */
2953
2953
  constructor(e = 0, t = 0, n = 0) {
2954
- Te.prototype.isVector3 = !0, this.x = e, this.y = t, this.z = n;
2954
+ xe.prototype.isVector3 = !0, this.x = e, this.y = t, this.z = n;
2955
2955
  }
2956
2956
  /**
2957
2957
  * Sets the vector components.
@@ -3700,7 +3700,7 @@ class Te {
3700
3700
  yield this.x, yield this.y, yield this.z;
3701
3701
  }
3702
3702
  }
3703
- const kC = /* @__PURE__ */ new Te(), QN = /* @__PURE__ */ new Ba();
3703
+ const kC = /* @__PURE__ */ new xe(), QN = /* @__PURE__ */ new Ba();
3704
3704
  class gn {
3705
3705
  /**
3706
3706
  * Constructs a new 3x3 matrix. The arguments are supposed to be
@@ -4306,7 +4306,7 @@ function zC(i) {
4306
4306
  } : (Ft("Texture: Unable to serialize Texture."), {});
4307
4307
  }
4308
4308
  let w9 = 0;
4309
- const IC = /* @__PURE__ */ new Te();
4309
+ const IC = /* @__PURE__ */ new xe();
4310
4310
  class Ha extends f0 {
4311
4311
  /**
4312
4312
  * Constructs a new texture.
@@ -5272,7 +5272,7 @@ class O_ {
5272
5272
  * @param {Vector3} [min=(Infinity,Infinity,Infinity)] - A vector representing the lower boundary of the box.
5273
5273
  * @param {Vector3} [max=(-Infinity,-Infinity,-Infinity)] - A vector representing the upper boundary of the box.
5274
5274
  */
5275
- constructor(e = new Te(1 / 0, 1 / 0, 1 / 0), t = new Te(-1 / 0, -1 / 0, -1 / 0)) {
5275
+ constructor(e = new xe(1 / 0, 1 / 0, 1 / 0), t = new xe(-1 / 0, -1 / 0, -1 / 0)) {
5276
5276
  this.isBox3 = !0, this.min = e, this.max = t;
5277
5277
  }
5278
5278
  /**
@@ -5666,15 +5666,15 @@ class O_ {
5666
5666
  }
5667
5667
  }
5668
5668
  const id = [
5669
- /* @__PURE__ */ new Te(),
5670
- /* @__PURE__ */ new Te(),
5671
- /* @__PURE__ */ new Te(),
5672
- /* @__PURE__ */ new Te(),
5673
- /* @__PURE__ */ new Te(),
5674
- /* @__PURE__ */ new Te(),
5675
- /* @__PURE__ */ new Te(),
5676
- /* @__PURE__ */ new Te()
5677
- ], Oc = /* @__PURE__ */ new Te(), _M = /* @__PURE__ */ new O_(), Av = /* @__PURE__ */ new Te(), Cv = /* @__PURE__ */ new Te(), Rv = /* @__PURE__ */ new Te(), ip = /* @__PURE__ */ new Te(), rp = /* @__PURE__ */ new Te(), Tg = /* @__PURE__ */ new Te(), Rx = /* @__PURE__ */ new Te(), bM = /* @__PURE__ */ new Te(), xM = /* @__PURE__ */ new Te(), Mg = /* @__PURE__ */ new Te();
5669
+ /* @__PURE__ */ new xe(),
5670
+ /* @__PURE__ */ new xe(),
5671
+ /* @__PURE__ */ new xe(),
5672
+ /* @__PURE__ */ new xe(),
5673
+ /* @__PURE__ */ new xe(),
5674
+ /* @__PURE__ */ new xe(),
5675
+ /* @__PURE__ */ new xe(),
5676
+ /* @__PURE__ */ new xe()
5677
+ ], Oc = /* @__PURE__ */ new xe(), _M = /* @__PURE__ */ new O_(), Av = /* @__PURE__ */ new xe(), Cv = /* @__PURE__ */ new xe(), Rv = /* @__PURE__ */ new xe(), ip = /* @__PURE__ */ new xe(), rp = /* @__PURE__ */ new xe(), Tg = /* @__PURE__ */ new xe(), Rx = /* @__PURE__ */ new xe(), bM = /* @__PURE__ */ new xe(), xM = /* @__PURE__ */ new xe(), Mg = /* @__PURE__ */ new xe();
5678
5678
  function BC(i, e, t, n, a) {
5679
5679
  for (let o = 0, c = i.length - 3; o <= c; o += 3) {
5680
5680
  Mg.fromArray(i, o);
@@ -5684,7 +5684,7 @@ function BC(i, e, t, n, a) {
5684
5684
  }
5685
5685
  return !0;
5686
5686
  }
5687
- const R9 = /* @__PURE__ */ new O_(), Dx = /* @__PURE__ */ new Te(), PC = /* @__PURE__ */ new Te();
5687
+ const R9 = /* @__PURE__ */ new O_(), Dx = /* @__PURE__ */ new xe(), PC = /* @__PURE__ */ new xe();
5688
5688
  class L_ {
5689
5689
  /**
5690
5690
  * Constructs a new sphere.
@@ -5692,7 +5692,7 @@ class L_ {
5692
5692
  * @param {Vector3} [center=(0,0,0)] - The center of the sphere
5693
5693
  * @param {number} [radius=-1] - The radius of the sphere.
5694
5694
  */
5695
- constructor(e = new Te(), t = -1) {
5695
+ constructor(e = new xe(), t = -1) {
5696
5696
  this.isSphere = !0, this.center = e, this.radius = t;
5697
5697
  }
5698
5698
  /**
@@ -5904,7 +5904,7 @@ class L_ {
5904
5904
  return this.radius = e.radius, this.center.fromArray(e.center), this;
5905
5905
  }
5906
5906
  }
5907
- const rd = /* @__PURE__ */ new Te(), FC = /* @__PURE__ */ new Te(), SM = /* @__PURE__ */ new Te(), ap = /* @__PURE__ */ new Te(), HC = /* @__PURE__ */ new Te(), EM = /* @__PURE__ */ new Te(), VC = /* @__PURE__ */ new Te();
5907
+ const rd = /* @__PURE__ */ new xe(), FC = /* @__PURE__ */ new xe(), SM = /* @__PURE__ */ new xe(), ap = /* @__PURE__ */ new xe(), HC = /* @__PURE__ */ new xe(), EM = /* @__PURE__ */ new xe(), VC = /* @__PURE__ */ new xe();
5908
5908
  class iO {
5909
5909
  /**
5910
5910
  * Constructs a new ray.
@@ -5912,7 +5912,7 @@ class iO {
5912
5912
  * @param {Vector3} [origin=(0,0,0)] - The origin of the ray.
5913
5913
  * @param {Vector3} [direction=(0,0,-1)] - The (normalized) direction of the ray.
5914
5914
  */
5915
- constructor(e = new Te(), t = new Te(0, 0, -1)) {
5915
+ constructor(e = new xe(), t = new xe(0, 0, -1)) {
5916
5916
  this.origin = e, this.direction = t;
5917
5917
  }
5918
5918
  /**
@@ -6876,7 +6876,7 @@ class Pt {
6876
6876
  return e[t] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3], e[t + 4] = n[4], e[t + 5] = n[5], e[t + 6] = n[6], e[t + 7] = n[7], e[t + 8] = n[8], e[t + 9] = n[9], e[t + 10] = n[10], e[t + 11] = n[11], e[t + 12] = n[12], e[t + 13] = n[13], e[t + 14] = n[14], e[t + 15] = n[15], e;
6877
6877
  }
6878
6878
  }
6879
- const Dv = /* @__PURE__ */ new Te(), Lc = /* @__PURE__ */ new Pt(), D9 = /* @__PURE__ */ new Te(0, 0, 0), O9 = /* @__PURE__ */ new Te(1, 1, 1), sp = /* @__PURE__ */ new Te(), TM = /* @__PURE__ */ new Te(), Ho = /* @__PURE__ */ new Te(), t5 = /* @__PURE__ */ new Pt(), n5 = /* @__PURE__ */ new Ba();
6879
+ const Dv = /* @__PURE__ */ new xe(), Lc = /* @__PURE__ */ new Pt(), D9 = /* @__PURE__ */ new xe(0, 0, 0), O9 = /* @__PURE__ */ new xe(1, 1, 1), sp = /* @__PURE__ */ new xe(), TM = /* @__PURE__ */ new xe(), Ho = /* @__PURE__ */ new xe(), t5 = /* @__PURE__ */ new Pt(), n5 = /* @__PURE__ */ new Ba();
6880
6880
  class ta {
6881
6881
  /**
6882
6882
  * Constructs a new euler instance.
@@ -7148,14 +7148,14 @@ class m6 {
7148
7148
  }
7149
7149
  }
7150
7150
  let L9 = 0;
7151
- const i5 = /* @__PURE__ */ new Te(), Ov = /* @__PURE__ */ new Ba(), ad = /* @__PURE__ */ new Pt(), MM = /* @__PURE__ */ new Te(), Ox = /* @__PURE__ */ new Te(), N9 = /* @__PURE__ */ new Te(), k9 = /* @__PURE__ */ new Ba(), r5 = /* @__PURE__ */ new Te(1, 0, 0), a5 = /* @__PURE__ */ new Te(0, 1, 0), s5 = /* @__PURE__ */ new Te(0, 0, 1), o5 = { type: "added" }, U9 = { type: "removed" }, Lv = { type: "childadded", child: null }, GC = { type: "childremoved", child: null };
7151
+ const i5 = /* @__PURE__ */ new xe(), Ov = /* @__PURE__ */ new Ba(), ad = /* @__PURE__ */ new Pt(), MM = /* @__PURE__ */ new xe(), Ox = /* @__PURE__ */ new xe(), N9 = /* @__PURE__ */ new xe(), k9 = /* @__PURE__ */ new Ba(), r5 = /* @__PURE__ */ new xe(1, 0, 0), a5 = /* @__PURE__ */ new xe(0, 1, 0), s5 = /* @__PURE__ */ new xe(0, 0, 1), o5 = { type: "added" }, U9 = { type: "removed" }, Lv = { type: "childadded", child: null }, GC = { type: "childremoved", child: null };
7152
7152
  class ji extends f0 {
7153
7153
  /**
7154
7154
  * Constructs a new 3D object.
7155
7155
  */
7156
7156
  constructor() {
7157
7157
  super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: L9++ }), this.uuid = Up(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = ji.DEFAULT_UP.clone();
7158
- const e = new Te(), t = new ta(), n = new Ba(), a = new Te(1, 1, 1);
7158
+ const e = new xe(), t = new ta(), n = new Ba(), a = new xe(1, 1, 1);
7159
7159
  function o() {
7160
7160
  n.setFromEuler(t, !1);
7161
7161
  }
@@ -7803,10 +7803,10 @@ class ji extends f0 {
7803
7803
  return this;
7804
7804
  }
7805
7805
  }
7806
- ji.DEFAULT_UP = /* @__PURE__ */ new Te(0, 1, 0);
7806
+ ji.DEFAULT_UP = /* @__PURE__ */ new xe(0, 1, 0);
7807
7807
  ji.DEFAULT_MATRIX_AUTO_UPDATE = !0;
7808
7808
  ji.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
7809
- const Nc = /* @__PURE__ */ new Te(), sd = /* @__PURE__ */ new Te(), jC = /* @__PURE__ */ new Te(), od = /* @__PURE__ */ new Te(), Nv = /* @__PURE__ */ new Te(), kv = /* @__PURE__ */ new Te(), l5 = /* @__PURE__ */ new Te(), XC = /* @__PURE__ */ new Te(), qC = /* @__PURE__ */ new Te(), YC = /* @__PURE__ */ new Te(), $C = /* @__PURE__ */ new li(), WC = /* @__PURE__ */ new li(), ZC = /* @__PURE__ */ new li();
7809
+ const Nc = /* @__PURE__ */ new xe(), sd = /* @__PURE__ */ new xe(), jC = /* @__PURE__ */ new xe(), od = /* @__PURE__ */ new xe(), Nv = /* @__PURE__ */ new xe(), kv = /* @__PURE__ */ new xe(), l5 = /* @__PURE__ */ new xe(), XC = /* @__PURE__ */ new xe(), qC = /* @__PURE__ */ new xe(), YC = /* @__PURE__ */ new xe(), $C = /* @__PURE__ */ new li(), WC = /* @__PURE__ */ new li(), ZC = /* @__PURE__ */ new li();
7810
7810
  class Bc {
7811
7811
  /**
7812
7812
  * Constructs a new triangle.
@@ -7815,7 +7815,7 @@ class Bc {
7815
7815
  * @param {Vector3} [b=(0,0,0)] - The second corner of the triangle.
7816
7816
  * @param {Vector3} [c=(0,0,0)] - The third corner of the triangle.
7817
7817
  */
7818
- constructor(e = new Te(), t = new Te(), n = new Te()) {
7818
+ constructor(e = new xe(), t = new xe(), n = new xe()) {
7819
7819
  this.a = e, this.b = t, this.c = n;
7820
7820
  }
7821
7821
  /**
@@ -8900,7 +8900,7 @@ class y6 extends zp {
8900
8900
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
8901
8901
  }
8902
8902
  }
8903
- const Hr = /* @__PURE__ */ new Te(), AM = /* @__PURE__ */ new Vn();
8903
+ const Hr = /* @__PURE__ */ new xe(), AM = /* @__PURE__ */ new Vn();
8904
8904
  let I9 = 0;
8905
8905
  class ju {
8906
8906
  /**
@@ -9261,7 +9261,7 @@ class ns extends ju {
9261
9261
  }
9262
9262
  }
9263
9263
  let B9 = 0;
9264
- const Gl = /* @__PURE__ */ new Pt(), QC = /* @__PURE__ */ new ji(), Uv = /* @__PURE__ */ new Te(), Vo = /* @__PURE__ */ new O_(), Lx = /* @__PURE__ */ new O_(), ma = /* @__PURE__ */ new Te();
9264
+ const Gl = /* @__PURE__ */ new Pt(), QC = /* @__PURE__ */ new ji(), Uv = /* @__PURE__ */ new xe(), Vo = /* @__PURE__ */ new O_(), Lx = /* @__PURE__ */ new O_(), ma = /* @__PURE__ */ new xe();
9265
9265
  class Zo extends f0 {
9266
9266
  /**
9267
9267
  * Constructs a new geometry.
@@ -9517,8 +9517,8 @@ class Zo extends f0 {
9517
9517
  const e = this.attributes.position, t = this.morphAttributes.position;
9518
9518
  if (e && e.isGLBufferAttribute) {
9519
9519
  Kt("BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.", this), this.boundingBox.set(
9520
- new Te(-1 / 0, -1 / 0, -1 / 0),
9521
- new Te(1 / 0, 1 / 0, 1 / 0)
9520
+ new xe(-1 / 0, -1 / 0, -1 / 0),
9521
+ new xe(1 / 0, 1 / 0, 1 / 0)
9522
9522
  );
9523
9523
  return;
9524
9524
  }
@@ -9541,7 +9541,7 @@ class Zo extends f0 {
9541
9541
  this.boundingSphere === null && (this.boundingSphere = new L_());
9542
9542
  const e = this.attributes.position, t = this.morphAttributes.position;
9543
9543
  if (e && e.isGLBufferAttribute) {
9544
- Kt("BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.", this), this.boundingSphere.set(new Te(), 1 / 0);
9544
+ Kt("BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.", this), this.boundingSphere.set(new xe(), 1 / 0);
9545
9545
  return;
9546
9546
  }
9547
9547
  if (e) {
@@ -9581,8 +9581,8 @@ class Zo extends f0 {
9581
9581
  this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new ju(new Float32Array(4 * n.count), 4));
9582
9582
  const c = this.getAttribute("tangent"), f = [], h = [];
9583
9583
  for (let Z = 0; Z < n.count; Z++)
9584
- f[Z] = new Te(), h[Z] = new Te();
9585
- const y = new Te(), _ = new Te(), p = new Te(), v = new Vn(), x = new Vn(), T = new Vn(), w = new Te(), C = new Te();
9584
+ f[Z] = new xe(), h[Z] = new xe();
9585
+ const y = new xe(), _ = new xe(), p = new xe(), v = new Vn(), x = new Vn(), T = new Vn(), w = new xe(), C = new xe();
9586
9586
  function A(Z, U, F) {
9587
9587
  y.fromBufferAttribute(n, Z), _.fromBufferAttribute(n, U), p.fromBufferAttribute(n, F), v.fromBufferAttribute(o, Z), x.fromBufferAttribute(o, U), T.fromBufferAttribute(o, F), _.sub(y), p.sub(y), x.sub(v), T.sub(v);
9588
9588
  const Q = 1 / (x.x * T.y - T.x * x.y);
@@ -9602,7 +9602,7 @@ class Zo extends f0 {
9602
9602
  e.getX(re + 2)
9603
9603
  );
9604
9604
  }
9605
- const N = new Te(), z = new Te(), B = new Te(), j = new Te();
9605
+ const N = new xe(), z = new xe(), B = new xe(), j = new xe();
9606
9606
  function Y(Z) {
9607
9607
  B.fromBufferAttribute(a, Z), j.copy(B);
9608
9608
  const U = f[Z];
@@ -9631,7 +9631,7 @@ class Zo extends f0 {
9631
9631
  else
9632
9632
  for (let v = 0, x = n.count; v < x; v++)
9633
9633
  n.setXYZ(v, 0, 0, 0);
9634
- const a = new Te(), o = new Te(), c = new Te(), f = new Te(), h = new Te(), y = new Te(), _ = new Te(), p = new Te();
9634
+ const a = new xe(), o = new xe(), c = new xe(), f = new xe(), h = new xe(), y = new xe(), _ = new xe(), p = new xe();
9635
9635
  if (e)
9636
9636
  for (let v = 0, x = e.count; v < x; v += 3) {
9637
9637
  const T = e.getX(v + 0), w = e.getX(v + 1), C = e.getX(v + 2);
@@ -9792,7 +9792,7 @@ class Zo extends f0 {
9792
9792
  this.dispatchEvent({ type: "dispose" });
9793
9793
  }
9794
9794
  }
9795
- const c5 = /* @__PURE__ */ new Pt(), wg = /* @__PURE__ */ new iO(), CM = /* @__PURE__ */ new L_(), u5 = /* @__PURE__ */ new Te(), RM = /* @__PURE__ */ new Te(), DM = /* @__PURE__ */ new Te(), OM = /* @__PURE__ */ new Te(), JC = /* @__PURE__ */ new Te(), LM = /* @__PURE__ */ new Te(), f5 = /* @__PURE__ */ new Te(), NM = /* @__PURE__ */ new Te();
9795
+ const c5 = /* @__PURE__ */ new Pt(), wg = /* @__PURE__ */ new iO(), CM = /* @__PURE__ */ new L_(), u5 = /* @__PURE__ */ new xe(), RM = /* @__PURE__ */ new xe(), DM = /* @__PURE__ */ new xe(), OM = /* @__PURE__ */ new xe(), JC = /* @__PURE__ */ new xe(), LM = /* @__PURE__ */ new xe(), f5 = /* @__PURE__ */ new xe(), NM = /* @__PURE__ */ new xe();
9796
9796
  class Gc extends ji {
9797
9797
  /**
9798
9798
  * Constructs a new mesh.
@@ -9907,13 +9907,13 @@ function kM(i, e, t, n, a, o, c, f, h, y) {
9907
9907
  i.getVertexPosition(f, RM), i.getVertexPosition(h, DM), i.getVertexPosition(y, OM);
9908
9908
  const _ = P9(i, e, t, n, RM, DM, OM, f5);
9909
9909
  if (_) {
9910
- const p = new Te();
9911
- Bc.getBarycoord(f5, RM, DM, OM, p), a && (_.uv = Bc.getInterpolatedAttribute(a, f, h, y, p, new Vn())), o && (_.uv1 = Bc.getInterpolatedAttribute(o, f, h, y, p, new Vn())), c && (_.normal = Bc.getInterpolatedAttribute(c, f, h, y, p, new Te()), _.normal.dot(n.direction) > 0 && _.normal.multiplyScalar(-1));
9910
+ const p = new xe();
9911
+ Bc.getBarycoord(f5, RM, DM, OM, p), a && (_.uv = Bc.getInterpolatedAttribute(a, f, h, y, p, new Vn())), o && (_.uv1 = Bc.getInterpolatedAttribute(o, f, h, y, p, new Vn())), c && (_.normal = Bc.getInterpolatedAttribute(c, f, h, y, p, new xe()), _.normal.dot(n.direction) > 0 && _.normal.multiplyScalar(-1));
9912
9912
  const v = {
9913
9913
  a: f,
9914
9914
  b: h,
9915
9915
  c: y,
9916
- normal: new Te(),
9916
+ normal: new xe(),
9917
9917
  materialIndex: 0
9918
9918
  };
9919
9919
  Bc.getNormal(RM, DM, OM, v.normal), _.face = v, _.barycoord = p;
@@ -9948,18 +9948,18 @@ class GS extends Zo {
9948
9948
  function T(w, C, A, L, N, z, B, j, Y, Z, U) {
9949
9949
  const F = z / Y, Q = B / Z, te = z / 2, re = B / 2, he = j / 2, me = Y + 1, X = Z + 1;
9950
9950
  let K = 0, ee = 0;
9951
- const Ae = new Te();
9951
+ const Ae = new xe();
9952
9952
  for (let ze = 0; ze < X; ze++) {
9953
9953
  const V = ze * Q - re;
9954
9954
  for (let oe = 0; oe < me; oe++) {
9955
- const xe = oe * F - te;
9956
- Ae[w] = xe * L, Ae[C] = V * N, Ae[A] = he, y.push(Ae.x, Ae.y, Ae.z), Ae[w] = 0, Ae[C] = 0, Ae[A] = j > 0 ? 1 : -1, _.push(Ae.x, Ae.y, Ae.z), p.push(oe / Y), p.push(1 - ze / Z), K += 1;
9955
+ const Se = oe * F - te;
9956
+ Ae[w] = Se * L, Ae[C] = V * N, Ae[A] = he, y.push(Ae.x, Ae.y, Ae.z), Ae[w] = 0, Ae[C] = 0, Ae[A] = j > 0 ? 1 : -1, _.push(Ae.x, Ae.y, Ae.z), p.push(oe / Y), p.push(1 - ze / Z), K += 1;
9957
9957
  }
9958
9958
  }
9959
9959
  for (let ze = 0; ze < Z; ze++)
9960
9960
  for (let V = 0; V < Y; V++) {
9961
- const oe = v + V + me * ze, xe = v + V + me * (ze + 1), Re = v + (V + 1) + me * (ze + 1), Qe = v + (V + 1) + me * ze;
9962
- h.push(oe, xe, Qe), h.push(xe, Re, Qe), ee += 6;
9961
+ const oe = v + V + me * ze, Se = v + V + me * (ze + 1), Re = v + (V + 1) + me * (ze + 1), Qe = v + (V + 1) + me * ze;
9962
+ h.push(oe, Se, Qe), h.push(Se, Re, Qe), ee += 6;
9963
9963
  }
9964
9964
  f.addGroup(x, ee, U), x += ee, v += K;
9965
9965
  }
@@ -10117,7 +10117,7 @@ class b6 extends ji {
10117
10117
  return new this.constructor().copy(this);
10118
10118
  }
10119
10119
  }
10120
- const lp = /* @__PURE__ */ new Te(), d5 = /* @__PURE__ */ new Vn(), h5 = /* @__PURE__ */ new Vn();
10120
+ const lp = /* @__PURE__ */ new xe(), d5 = /* @__PURE__ */ new Vn(), h5 = /* @__PURE__ */ new Vn();
10121
10121
  class zs extends b6 {
10122
10122
  /**
10123
10123
  * Constructs a new perspective camera.
@@ -10492,7 +10492,7 @@ class e3 {
10492
10492
  * @return {Group} A group representing the target ray space of the XR controller.
10493
10493
  */
10494
10494
  getTargetRaySpace() {
10495
- return this._targetRay === null && (this._targetRay = new Qv(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new Te(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new Te()), this._targetRay;
10495
+ return this._targetRay === null && (this._targetRay = new Qv(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new xe(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new xe()), this._targetRay;
10496
10496
  }
10497
10497
  /**
10498
10498
  * Returns a group representing the grip space of the XR controller.
@@ -10500,7 +10500,7 @@ class e3 {
10500
10500
  * @return {Group} A group representing the grip space of the XR controller.
10501
10501
  */
10502
10502
  getGripSpace() {
10503
- return this._grip === null && (this._grip = new Qv(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new Te(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new Te()), this._grip;
10503
+ return this._grip === null && (this._grip = new Qv(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new xe(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new xe()), this._grip;
10504
10504
  }
10505
10505
  /**
10506
10506
  * Dispatches the given event to the groups representing
@@ -10603,7 +10603,7 @@ class q9 extends ji {
10603
10603
  return this.fog !== null && (t.object.fog = this.fog.toJSON()), this.backgroundBlurriness > 0 && (t.object.backgroundBlurriness = this.backgroundBlurriness), this.backgroundIntensity !== 1 && (t.object.backgroundIntensity = this.backgroundIntensity), t.object.backgroundRotation = this.backgroundRotation.toArray(), this.environmentIntensity !== 1 && (t.object.environmentIntensity = this.environmentIntensity), t.object.environmentRotation = this.environmentRotation.toArray(), t;
10604
10604
  }
10605
10605
  }
10606
- const p5 = /* @__PURE__ */ new Te(), m5 = /* @__PURE__ */ new li(), g5 = /* @__PURE__ */ new li(), Y9 = /* @__PURE__ */ new Te(), y5 = /* @__PURE__ */ new Pt(), UM = /* @__PURE__ */ new Te(), t3 = /* @__PURE__ */ new L_(), v5 = /* @__PURE__ */ new Pt(), n3 = /* @__PURE__ */ new iO();
10606
+ const p5 = /* @__PURE__ */ new xe(), m5 = /* @__PURE__ */ new li(), g5 = /* @__PURE__ */ new li(), Y9 = /* @__PURE__ */ new xe(), y5 = /* @__PURE__ */ new Pt(), UM = /* @__PURE__ */ new xe(), t3 = /* @__PURE__ */ new L_(), v5 = /* @__PURE__ */ new Pt(), n3 = /* @__PURE__ */ new iO();
10607
10607
  class $9 extends Gc {
10608
10608
  /**
10609
10609
  * Constructs a new skinned mesh.
@@ -10879,7 +10879,7 @@ class sO {
10879
10879
  return e;
10880
10880
  }
10881
10881
  }
10882
- const i3 = /* @__PURE__ */ new Te(), Z9 = /* @__PURE__ */ new Te(), K9 = /* @__PURE__ */ new gn();
10882
+ const i3 = /* @__PURE__ */ new xe(), Z9 = /* @__PURE__ */ new xe(), K9 = /* @__PURE__ */ new gn();
10883
10883
  class zg {
10884
10884
  /**
10885
10885
  * Constructs a new plane.
@@ -10887,7 +10887,7 @@ class zg {
10887
10887
  * @param {Vector3} [normal=(1,0,0)] - A unit length vector defining the normal of the plane.
10888
10888
  * @param {number} [constant=0] - The signed distance from the origin to the plane.
10889
10889
  */
10890
- constructor(e = new Te(1, 0, 0), t = 0) {
10890
+ constructor(e = new xe(1, 0, 0), t = 0) {
10891
10891
  this.isPlane = !0, this.normal = e, this.constant = t;
10892
10892
  }
10893
10893
  /**
@@ -11090,7 +11090,7 @@ class zg {
11090
11090
  return new this.constructor().copy(this);
11091
11091
  }
11092
11092
  }
11093
- const Ag = /* @__PURE__ */ new L_(), Q9 = /* @__PURE__ */ new Vn(0.5, 0.5), zM = /* @__PURE__ */ new Te();
11093
+ const Ag = /* @__PURE__ */ new L_(), Q9 = /* @__PURE__ */ new Vn(0.5, 0.5), zM = /* @__PURE__ */ new xe();
11094
11094
  class oO {
11095
11095
  /**
11096
11096
  * Constructs a new frustum.
@@ -11247,7 +11247,7 @@ class E6 extends zp {
11247
11247
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
11248
11248
  }
11249
11249
  }
11250
- const Ow = /* @__PURE__ */ new Te(), Lw = /* @__PURE__ */ new Te(), b5 = /* @__PURE__ */ new Pt(), Nx = /* @__PURE__ */ new iO(), IM = /* @__PURE__ */ new L_(), r3 = /* @__PURE__ */ new Te(), x5 = /* @__PURE__ */ new Te();
11250
+ const Ow = /* @__PURE__ */ new xe(), Lw = /* @__PURE__ */ new xe(), b5 = /* @__PURE__ */ new Pt(), Nx = /* @__PURE__ */ new iO(), IM = /* @__PURE__ */ new L_(), r3 = /* @__PURE__ */ new xe(), x5 = /* @__PURE__ */ new xe();
11251
11251
  class J9 extends ji {
11252
11252
  /**
11253
11253
  * Constructs a new line.
@@ -11559,7 +11559,7 @@ class tF {
11559
11559
  getTangent(e, t) {
11560
11560
  let a = e - 1e-4, o = e + 1e-4;
11561
11561
  a < 0 && (a = 0), o > 1 && (o = 1);
11562
- const c = this.getPoint(a), f = this.getPoint(o), h = t || (c.isVector2 ? new Vn() : new Te());
11562
+ const c = this.getPoint(a), f = this.getPoint(o), h = t || (c.isVector2 ? new Vn() : new xe());
11563
11563
  return h.copy(f).sub(c).normalize(), h;
11564
11564
  }
11565
11565
  /**
@@ -11583,12 +11583,12 @@ class tF {
11583
11583
  * @return {{tangents: Array<Vector3>, normals: Array<Vector3>, binormals: Array<Vector3>}} The Frenet Frames.
11584
11584
  */
11585
11585
  computeFrenetFrames(e, t = !1) {
11586
- const n = new Te(), a = [], o = [], c = [], f = new Te(), h = new Pt();
11586
+ const n = new xe(), a = [], o = [], c = [], f = new xe(), h = new Pt();
11587
11587
  for (let x = 0; x <= e; x++) {
11588
11588
  const T = x / e;
11589
- a[x] = this.getTangentAt(T, new Te());
11589
+ a[x] = this.getTangentAt(T, new xe());
11590
11590
  }
11591
- o[0] = new Te(), c[0] = new Te();
11591
+ o[0] = new xe(), c[0] = new xe();
11592
11592
  let y = Number.MAX_VALUE;
11593
11593
  const _ = Math.abs(a[0].x), p = Math.abs(a[0].y), v = Math.abs(a[0].z);
11594
11594
  _ <= y && (y = _, n.set(1, 0, 0)), p <= y && (y = p, n.set(0, 1, 0)), v <= y && n.set(0, 0, 1), f.crossVectors(a[0], n).normalize(), o[0].crossVectors(a[0], f), c[0].crossVectors(a[0], o[0]);
@@ -13584,7 +13584,7 @@ class BA extends ji {
13584
13584
  return t.object.color = this.color.getHex(), t.object.intensity = this.intensity, t;
13585
13585
  }
13586
13586
  }
13587
- const a3 = /* @__PURE__ */ new Pt(), w5 = /* @__PURE__ */ new Te(), A5 = /* @__PURE__ */ new Te();
13587
+ const a3 = /* @__PURE__ */ new Pt(), w5 = /* @__PURE__ */ new xe(), A5 = /* @__PURE__ */ new xe();
13588
13588
  class cO {
13589
13589
  /**
13590
13590
  * Constructs a new light shadow.
@@ -19462,7 +19462,7 @@ void main() {
19462
19462
  gt.common,
19463
19463
  gt.displacementmap,
19464
19464
  {
19465
- referencePosition: { value: /* @__PURE__ */ new Te() },
19465
+ referencePosition: { value: /* @__PURE__ */ new xe() },
19466
19466
  nearDistance: { value: 1 },
19467
19467
  farDistance: { value: 1e3 }
19468
19468
  }
@@ -19714,9 +19714,9 @@ function BG(i, e) {
19714
19714
  if (Ae === void 0 && (K === "instanceMatrix" && F.instanceMatrix && (Ae = F.instanceMatrix), K === "instanceColor" && F.instanceColor && (Ae = F.instanceColor)), Ae !== void 0) {
19715
19715
  const ze = Ae.normalized, V = Ae.itemSize, oe = e.get(Ae);
19716
19716
  if (oe === void 0) continue;
19717
- const xe = oe.buffer, Re = oe.type, Qe = oe.bytesPerElement, Me = Re === i.INT || Re === i.UNSIGNED_INT || Ae.gpuType === qD;
19717
+ const Se = oe.buffer, Re = oe.type, Qe = oe.bytesPerElement, Me = Re === i.INT || Re === i.UNSIGNED_INT || Ae.gpuType === qD;
19718
19718
  if (Ae.isInterleavedBufferAttribute) {
19719
- const ve = Ae.data, tt = ve.stride, lt = Ae.offset;
19719
+ const ve = Ae.data, nt = ve.stride, lt = Ae.offset;
19720
19720
  if (ve.isInstancedInterleavedBuffer) {
19721
19721
  for (let ut = 0; ut < ee.locationSize; ut++)
19722
19722
  A(ee.location + ut, ve.meshPerAttribute);
@@ -19724,14 +19724,14 @@ function BG(i, e) {
19724
19724
  } else
19725
19725
  for (let ut = 0; ut < ee.locationSize; ut++)
19726
19726
  C(ee.location + ut);
19727
- i.bindBuffer(i.ARRAY_BUFFER, xe);
19727
+ i.bindBuffer(i.ARRAY_BUFFER, Se);
19728
19728
  for (let ut = 0; ut < ee.locationSize; ut++)
19729
19729
  N(
19730
19730
  ee.location + ut,
19731
19731
  V / ee.locationSize,
19732
19732
  Re,
19733
19733
  ze,
19734
- tt * Qe,
19734
+ nt * Qe,
19735
19735
  (lt + V / ee.locationSize * ut) * Qe,
19736
19736
  Me
19737
19737
  );
@@ -19743,7 +19743,7 @@ function BG(i, e) {
19743
19743
  } else
19744
19744
  for (let ve = 0; ve < ee.locationSize; ve++)
19745
19745
  C(ee.location + ve);
19746
- i.bindBuffer(i.ARRAY_BUFFER, xe);
19746
+ i.bindBuffer(i.ARRAY_BUFFER, Se);
19747
19747
  for (let ve = 0; ve < ee.locationSize; ve++)
19748
19748
  N(
19749
19749
  ee.location + ve,
@@ -20001,7 +20001,7 @@ function VG(i) {
20001
20001
  }
20002
20002
  const vp = 4, D5 = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Pg = 20, GG = 256, kx = /* @__PURE__ */ new uO(), O5 = /* @__PURE__ */ new tn();
20003
20003
  let s3 = null, o3 = 0, l3 = 0, c3 = !1;
20004
- const jG = /* @__PURE__ */ new Te();
20004
+ const jG = /* @__PURE__ */ new xe();
20005
20005
  class L5 {
20006
20006
  /**
20007
20007
  * Constructs a new PMREM generator.
@@ -20417,7 +20417,7 @@ function qG(i, e, t) {
20417
20417
  });
20418
20418
  }
20419
20419
  function YG(i, e, t) {
20420
- const n = new Float32Array(Pg), a = new Te(0, 1, 0);
20420
+ const n = new Float32Array(Pg), a = new xe(0, 1, 0);
20421
20421
  return new Yu({
20422
20422
  name: "SphericalGaussianBlur",
20423
20423
  defines: {
@@ -21594,7 +21594,7 @@ function Jj(i, e) {
21594
21594
  const t = Qj[e];
21595
21595
  return t === void 0 ? (Ft("WebGLProgram: Unsupported toneMapping:", e), "vec3 " + i + "( vec3 color ) { return LinearToneMapping( color ); }") : "vec3 " + i + "( vec3 color ) { return " + t + "ToneMapping( color ); }";
21596
21596
  }
21597
- const jM = /* @__PURE__ */ new Te();
21597
+ const jM = /* @__PURE__ */ new xe();
21598
21598
  function eX() {
21599
21599
  _n.getLuminanceCoefficients(jM);
21600
21600
  const i = jM.x.toFixed(4), e = jM.y.toFixed(4), t = jM.z.toFixed(4);
@@ -22112,20 +22112,20 @@ function SX(i, e, t, n, a, o, c) {
22112
22112
  const ze = me.morphAttributes.position || me.morphAttributes.normal || me.morphAttributes.color, V = ze !== void 0 ? ze.length : 0;
22113
22113
  let oe = 0;
22114
22114
  me.morphAttributes.position !== void 0 && (oe = 1), me.morphAttributes.normal !== void 0 && (oe = 2), me.morphAttributes.color !== void 0 && (oe = 3);
22115
- let xe, Re, Qe, Me;
22115
+ let Se, Re, Qe, Me;
22116
22116
  if (Ae) {
22117
22117
  const sn = zu[Ae];
22118
- xe = sn.vertexShader, Re = sn.fragmentShader;
22118
+ Se = sn.vertexShader, Re = sn.fragmentShader;
22119
22119
  } else
22120
- xe = U.vertexShader, Re = U.fragmentShader, h.update(U), Qe = h.getVertexShaderID(U), Me = h.getFragmentShaderID(U);
22121
- const ve = i.getRenderTarget(), tt = i.state.buffers.depth.getReversed(), lt = re.isInstancedMesh === !0, ut = re.isBatchedMesh === !0, $e = !!U.map, On = !!U.matcap, Qt = !!K, nn = !!U.aoMap, bn = !!U.lightMap, yt = !!U.bumpMap, Tn = !!U.normalMap, le = !!U.displacementMap, fi = !!U.emissiveMap, et = !!U.metalnessMap, Ln = !!U.roughnessMap, bt = U.anisotropy > 0, J = U.clearcoat > 0, P = U.dispersion > 0, pe = U.iridescence > 0, Ve = U.sheen > 0, We = U.transmission > 0, Pe = bt && !!U.anisotropyMap, wt = J && !!U.clearcoatMap, ot = J && !!U.clearcoatNormalMap, Et = J && !!U.clearcoatRoughnessMap, kt = pe && !!U.iridescenceMap, Ke = pe && !!U.iridescenceThicknessMap, Je = Ve && !!U.sheenColorMap, mt = Ve && !!U.sheenRoughnessMap, ht = !!U.specularMap, st = !!U.specularColorMap, H = !!U.specularIntensityMap, q = We && !!U.transmissionMap, _e = We && !!U.thicknessMap, be = !!U.gradientMap, Fe = !!U.alphaMap, Ue = U.alphaTest > 0, Se = !!U.alphaHash, Xe = !!U.extensions;
22120
+ Se = U.vertexShader, Re = U.fragmentShader, h.update(U), Qe = h.getVertexShaderID(U), Me = h.getFragmentShaderID(U);
22121
+ const ve = i.getRenderTarget(), nt = i.state.buffers.depth.getReversed(), lt = re.isInstancedMesh === !0, ut = re.isBatchedMesh === !0, $e = !!U.map, On = !!U.matcap, Qt = !!K, nn = !!U.aoMap, bn = !!U.lightMap, yt = !!U.bumpMap, Tn = !!U.normalMap, le = !!U.displacementMap, fi = !!U.emissiveMap, tt = !!U.metalnessMap, Ln = !!U.roughnessMap, bt = U.anisotropy > 0, J = U.clearcoat > 0, P = U.dispersion > 0, pe = U.iridescence > 0, Ve = U.sheen > 0, We = U.transmission > 0, Pe = bt && !!U.anisotropyMap, wt = J && !!U.clearcoatMap, ot = J && !!U.clearcoatNormalMap, Et = J && !!U.clearcoatRoughnessMap, kt = pe && !!U.iridescenceMap, Ke = pe && !!U.iridescenceThicknessMap, et = Ve && !!U.sheenColorMap, mt = Ve && !!U.sheenRoughnessMap, ht = !!U.specularMap, st = !!U.specularColorMap, H = !!U.specularIntensityMap, q = We && !!U.transmissionMap, _e = We && !!U.thicknessMap, be = !!U.gradientMap, Fe = !!U.alphaMap, Ue = U.alphaTest > 0, Ee = !!U.alphaHash, Xe = !!U.extensions;
22122
22122
  let at = Vu;
22123
22123
  U.toneMapped && (ve === null || ve.isXRRenderTarget === !0) && (at = i.toneMapping);
22124
22124
  const rn = {
22125
22125
  shaderID: Ae,
22126
22126
  shaderType: U.type,
22127
22127
  shaderName: U.name,
22128
- vertexShader: xe,
22128
+ vertexShader: Se,
22129
22129
  fragmentShader: Re,
22130
22130
  defines: U.defines,
22131
22131
  customVertexShaderID: Qe,
@@ -22153,7 +22153,7 @@ function SX(i, e, t, n, a, o, c) {
22153
22153
  emissiveMap: fi,
22154
22154
  normalMapObjectSpace: Tn && U.normalMapType === K7,
22155
22155
  normalMapTangentSpace: Tn && U.normalMapType === UA,
22156
- metalnessMap: et,
22156
+ metalnessMap: tt,
22157
22157
  roughnessMap: Ln,
22158
22158
  anisotropy: bt,
22159
22159
  anisotropyMap: Pe,
@@ -22166,7 +22166,7 @@ function SX(i, e, t, n, a, o, c) {
22166
22166
  iridescenceMap: kt,
22167
22167
  iridescenceThicknessMap: Ke,
22168
22168
  sheen: Ve,
22169
- sheenColorMap: Je,
22169
+ sheenColorMap: et,
22170
22170
  sheenRoughnessMap: mt,
22171
22171
  specularMap: ht,
22172
22172
  specularColorMap: st,
@@ -22178,7 +22178,7 @@ function SX(i, e, t, n, a, o, c) {
22178
22178
  opaque: U.transparent === !1 && U.blending === n_ && U.alphaToCoverage === !1,
22179
22179
  alphaMap: Fe,
22180
22180
  alphaTest: Ue,
22181
- alphaHash: Se,
22181
+ alphaHash: Ee,
22182
22182
  combine: U.combine,
22183
22183
  //
22184
22184
  mapUv: $e && w(U.map.channel),
@@ -22188,7 +22188,7 @@ function SX(i, e, t, n, a, o, c) {
22188
22188
  normalMapUv: Tn && w(U.normalMap.channel),
22189
22189
  displacementMapUv: le && w(U.displacementMap.channel),
22190
22190
  emissiveMapUv: fi && w(U.emissiveMap.channel),
22191
- metalnessMapUv: et && w(U.metalnessMap.channel),
22191
+ metalnessMapUv: tt && w(U.metalnessMap.channel),
22192
22192
  roughnessMapUv: Ln && w(U.roughnessMap.channel),
22193
22193
  anisotropyMapUv: Pe && w(U.anisotropyMap.channel),
22194
22194
  clearcoatMapUv: wt && w(U.clearcoatMap.channel),
@@ -22196,7 +22196,7 @@ function SX(i, e, t, n, a, o, c) {
22196
22196
  clearcoatRoughnessMapUv: Et && w(U.clearcoatRoughnessMap.channel),
22197
22197
  iridescenceMapUv: kt && w(U.iridescenceMap.channel),
22198
22198
  iridescenceThicknessMapUv: Ke && w(U.iridescenceThicknessMap.channel),
22199
- sheenColorMapUv: Je && w(U.sheenColorMap.channel),
22199
+ sheenColorMapUv: et && w(U.sheenColorMap.channel),
22200
22200
  sheenRoughnessMapUv: mt && w(U.sheenRoughnessMap.channel),
22201
22201
  specularMapUv: ht && w(U.specularMap.channel),
22202
22202
  specularColorMapUv: st && w(U.specularColorMap.channel),
@@ -22215,7 +22215,7 @@ function SX(i, e, t, n, a, o, c) {
22215
22215
  flatShading: U.flatShading === !0 && U.wireframe === !1,
22216
22216
  sizeAttenuation: U.sizeAttenuation === !0,
22217
22217
  logarithmicDepthBuffer: v,
22218
- reversedDepthBuffer: tt,
22218
+ reversedDepthBuffer: nt,
22219
22219
  skinning: re.isSkinnedMesh === !0,
22220
22220
  morphTargets: me.morphAttributes.position !== void 0,
22221
22221
  morphNormals: me.morphAttributes.normal !== void 0,
@@ -22411,14 +22411,14 @@ function wX() {
22411
22411
  switch (e.type) {
22412
22412
  case "DirectionalLight":
22413
22413
  t = {
22414
- direction: new Te(),
22414
+ direction: new xe(),
22415
22415
  color: new tn()
22416
22416
  };
22417
22417
  break;
22418
22418
  case "SpotLight":
22419
22419
  t = {
22420
- position: new Te(),
22421
- direction: new Te(),
22420
+ position: new xe(),
22421
+ direction: new xe(),
22422
22422
  color: new tn(),
22423
22423
  distance: 0,
22424
22424
  coneCos: 0,
@@ -22428,7 +22428,7 @@ function wX() {
22428
22428
  break;
22429
22429
  case "PointLight":
22430
22430
  t = {
22431
- position: new Te(),
22431
+ position: new xe(),
22432
22432
  color: new tn(),
22433
22433
  distance: 0,
22434
22434
  decay: 0
@@ -22436,7 +22436,7 @@ function wX() {
22436
22436
  break;
22437
22437
  case "HemisphereLight":
22438
22438
  t = {
22439
- direction: new Te(),
22439
+ direction: new xe(),
22440
22440
  skyColor: new tn(),
22441
22441
  groundColor: new tn()
22442
22442
  };
@@ -22444,9 +22444,9 @@ function wX() {
22444
22444
  case "RectAreaLight":
22445
22445
  t = {
22446
22446
  color: new tn(),
22447
- position: new Te(),
22448
- halfWidth: new Te(),
22449
- halfHeight: new Te()
22447
+ position: new xe(),
22448
+ halfWidth: new xe(),
22449
+ halfHeight: new xe()
22450
22450
  };
22451
22451
  break;
22452
22452
  }
@@ -22537,8 +22537,8 @@ function DX(i) {
22537
22537
  numSpotLightShadowsWithMaps: 0,
22538
22538
  numLightProbes: 0
22539
22539
  };
22540
- for (let y = 0; y < 9; y++) n.probe.push(new Te());
22541
- const a = new Te(), o = new Pt(), c = new Pt();
22540
+ for (let y = 0; y < 9; y++) n.probe.push(new xe());
22541
+ const a = new xe(), o = new Pt(), c = new Pt();
22542
22542
  function f(y) {
22543
22543
  let _ = 0, p = 0, v = 0;
22544
22544
  for (let U = 0; U < 9; U++) n.probe[U].set(0, 0, 0);
@@ -22693,20 +22693,20 @@ void main() {
22693
22693
  float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) );
22694
22694
  gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 );
22695
22695
  }`, kX = [
22696
- /* @__PURE__ */ new Te(1, 0, 0),
22697
- /* @__PURE__ */ new Te(-1, 0, 0),
22698
- /* @__PURE__ */ new Te(0, 1, 0),
22699
- /* @__PURE__ */ new Te(0, -1, 0),
22700
- /* @__PURE__ */ new Te(0, 0, 1),
22701
- /* @__PURE__ */ new Te(0, 0, -1)
22696
+ /* @__PURE__ */ new xe(1, 0, 0),
22697
+ /* @__PURE__ */ new xe(-1, 0, 0),
22698
+ /* @__PURE__ */ new xe(0, 1, 0),
22699
+ /* @__PURE__ */ new xe(0, -1, 0),
22700
+ /* @__PURE__ */ new xe(0, 0, 1),
22701
+ /* @__PURE__ */ new xe(0, 0, -1)
22702
22702
  ], UX = [
22703
- /* @__PURE__ */ new Te(0, -1, 0),
22704
- /* @__PURE__ */ new Te(0, -1, 0),
22705
- /* @__PURE__ */ new Te(0, 0, 1),
22706
- /* @__PURE__ */ new Te(0, 0, -1),
22707
- /* @__PURE__ */ new Te(0, -1, 0),
22708
- /* @__PURE__ */ new Te(0, -1, 0)
22709
- ], Q5 = /* @__PURE__ */ new Pt(), Ux = /* @__PURE__ */ new Te(), f3 = /* @__PURE__ */ new Te();
22703
+ /* @__PURE__ */ new xe(0, -1, 0),
22704
+ /* @__PURE__ */ new xe(0, -1, 0),
22705
+ /* @__PURE__ */ new xe(0, 0, 1),
22706
+ /* @__PURE__ */ new xe(0, 0, -1),
22707
+ /* @__PURE__ */ new xe(0, -1, 0),
22708
+ /* @__PURE__ */ new xe(0, -1, 0)
22709
+ ], Q5 = /* @__PURE__ */ new Pt(), Ux = /* @__PURE__ */ new xe(), f3 = /* @__PURE__ */ new xe();
22710
22710
  function zX(i, e, t) {
22711
22711
  let n = new oO();
22712
22712
  const a = new Vn(), o = new Vn(), c = new li(), f = new SF(), h = new EF(), y = {}, _ = t.maxTextureSize, p = { [Rp]: ro, [ro]: Rp, [md]: md }, v = new Yu({
@@ -22786,8 +22786,8 @@ function zX(i, e, t) {
22786
22786
  ), te.viewport(c);
22787
22787
  }
22788
22788
  if (X.isPointLight) {
22789
- const V = K.camera, oe = K.matrix, xe = X.distance || V.far;
22790
- xe !== V.far && (V.far = xe, V.updateProjectionMatrix()), Ux.setFromMatrixPosition(X.matrixWorld), V.position.copy(Ux), f3.copy(V.position), f3.add(kX[ze]), V.up.copy(UX[ze]), V.lookAt(f3), V.updateMatrixWorld(), oe.makeTranslation(-Ux.x, -Ux.y, -Ux.z), Q5.multiplyMatrices(V.projectionMatrix, V.matrixWorldInverse), K._frustum.setFromProjectionMatrix(Q5, V.coordinateSystem, V.reversedDepth);
22789
+ const V = K.camera, oe = K.matrix, Se = X.distance || V.far;
22790
+ Se !== V.far && (V.far = Se, V.updateProjectionMatrix()), Ux.setFromMatrixPosition(X.matrixWorld), V.position.copy(Ux), f3.copy(V.position), f3.add(kX[ze]), V.up.copy(UX[ze]), V.lookAt(f3), V.updateMatrixWorld(), oe.makeTranslation(-Ux.x, -Ux.y, -Ux.z), Q5.multiplyMatrices(V.projectionMatrix, V.matrixWorldInverse), K._frustum.setFromProjectionMatrix(Q5, V.coordinateSystem, V.reversedDepth);
22791
22791
  } else
22792
22792
  K.updateMatrices(X);
22793
22793
  n = K.getFrustum(), z(Y, Z, K.camera, X, this.type);
@@ -22875,8 +22875,8 @@ function BX(i, e) {
22875
22875
  setLocked: function(Ue) {
22876
22876
  q = Ue;
22877
22877
  },
22878
- setClear: function(Ue, Se, Xe, at, rn) {
22879
- rn === !0 && (Ue *= at, Se *= at, Xe *= at), _e.set(Ue, Se, Xe, at), Fe.equals(_e) === !1 && (i.clearColor(Ue, Se, Xe, at), Fe.copy(_e));
22878
+ setClear: function(Ue, Ee, Xe, at, rn) {
22879
+ rn === !0 && (Ue *= at, Ee *= at, Xe *= at), _e.set(Ue, Ee, Xe, at), Fe.equals(_e) === !1 && (i.clearColor(Ue, Ee, Xe, at), Fe.copy(_e));
22880
22880
  },
22881
22881
  reset: function() {
22882
22882
  q = !1, be = null, Fe.set(-1, 0, 0, 0);
@@ -22886,10 +22886,10 @@ function BX(i, e) {
22886
22886
  function n() {
22887
22887
  let q = !1, _e = !1, be = null, Fe = null, Ue = null;
22888
22888
  return {
22889
- setReversed: function(Se) {
22890
- if (_e !== Se) {
22889
+ setReversed: function(Ee) {
22890
+ if (_e !== Ee) {
22891
22891
  const Xe = e.get("EXT_clip_control");
22892
- Se ? Xe.clipControlEXT(Xe.LOWER_LEFT_EXT, Xe.ZERO_TO_ONE_EXT) : Xe.clipControlEXT(Xe.LOWER_LEFT_EXT, Xe.NEGATIVE_ONE_TO_ONE_EXT), _e = Se;
22892
+ Ee ? Xe.clipControlEXT(Xe.LOWER_LEFT_EXT, Xe.ZERO_TO_ONE_EXT) : Xe.clipControlEXT(Xe.LOWER_LEFT_EXT, Xe.NEGATIVE_ONE_TO_ONE_EXT), _e = Ee;
22893
22893
  const at = Ue;
22894
22894
  Ue = null, this.setClear(at);
22895
22895
  }
@@ -22897,15 +22897,15 @@ function BX(i, e) {
22897
22897
  getReversed: function() {
22898
22898
  return _e;
22899
22899
  },
22900
- setTest: function(Se) {
22901
- Se ? ve(i.DEPTH_TEST) : tt(i.DEPTH_TEST);
22900
+ setTest: function(Ee) {
22901
+ Ee ? ve(i.DEPTH_TEST) : nt(i.DEPTH_TEST);
22902
22902
  },
22903
- setMask: function(Se) {
22904
- be !== Se && !q && (i.depthMask(Se), be = Se);
22903
+ setMask: function(Ee) {
22904
+ be !== Ee && !q && (i.depthMask(Ee), be = Ee);
22905
22905
  },
22906
- setFunc: function(Se) {
22907
- if (_e && (Se = IX[Se]), Fe !== Se) {
22908
- switch (Se) {
22906
+ setFunc: function(Ee) {
22907
+ if (_e && (Ee = IX[Ee]), Fe !== Ee) {
22908
+ switch (Ee) {
22909
22909
  case nR:
22910
22910
  i.depthFunc(i.NEVER);
22911
22911
  break;
@@ -22933,14 +22933,14 @@ function BX(i, e) {
22933
22933
  default:
22934
22934
  i.depthFunc(i.LEQUAL);
22935
22935
  }
22936
- Fe = Se;
22936
+ Fe = Ee;
22937
22937
  }
22938
22938
  },
22939
- setLocked: function(Se) {
22940
- q = Se;
22939
+ setLocked: function(Ee) {
22940
+ q = Ee;
22941
22941
  },
22942
- setClear: function(Se) {
22943
- Ue !== Se && (_e && (Se = 1 - Se), i.clearDepth(Se), Ue = Se);
22942
+ setClear: function(Ee) {
22943
+ Ue !== Ee && (_e && (Ee = 1 - Ee), i.clearDepth(Ee), Ue = Ee);
22944
22944
  },
22945
22945
  reset: function() {
22946
22946
  q = !1, be = null, Fe = null, Ue = null, _e = !1;
@@ -22948,10 +22948,10 @@ function BX(i, e) {
22948
22948
  };
22949
22949
  }
22950
22950
  function a() {
22951
- let q = !1, _e = null, be = null, Fe = null, Ue = null, Se = null, Xe = null, at = null, rn = null;
22951
+ let q = !1, _e = null, be = null, Fe = null, Ue = null, Ee = null, Xe = null, at = null, rn = null;
22952
22952
  return {
22953
22953
  setTest: function(sn) {
22954
- q || (sn ? ve(i.STENCIL_TEST) : tt(i.STENCIL_TEST));
22954
+ q || (sn ? ve(i.STENCIL_TEST) : nt(i.STENCIL_TEST));
22955
22955
  },
22956
22956
  setMask: function(sn) {
22957
22957
  _e !== sn && !q && (i.stencilMask(sn), _e = sn);
@@ -22960,7 +22960,7 @@ function BX(i, e) {
22960
22960
  (be !== sn || Fe !== ur || Ue !== sa) && (i.stencilFunc(sn, ur, sa), be = sn, Fe = ur, Ue = sa);
22961
22961
  },
22962
22962
  setOp: function(sn, ur, sa) {
22963
- (Se !== sn || Xe !== ur || at !== sa) && (i.stencilOp(sn, ur, sa), Se = sn, Xe = ur, at = sa);
22963
+ (Ee !== sn || Xe !== ur || at !== sa) && (i.stencilOp(sn, ur, sa), Ee = sn, Xe = ur, at = sa);
22964
22964
  },
22965
22965
  setLocked: function(sn) {
22966
22966
  q = sn;
@@ -22969,7 +22969,7 @@ function BX(i, e) {
22969
22969
  rn !== sn && (i.clearStencil(sn), rn = sn);
22970
22970
  },
22971
22971
  reset: function() {
22972
- q = !1, _e = null, be = null, Fe = null, Ue = null, Se = null, Xe = null, at = null, rn = null;
22972
+ q = !1, _e = null, be = null, Fe = null, Ue = null, Ee = null, Xe = null, at = null, rn = null;
22973
22973
  }
22974
22974
  };
22975
22975
  }
@@ -22980,20 +22980,20 @@ function BX(i, e) {
22980
22980
  const ee = i.getParameter(i.VERSION);
22981
22981
  ee.indexOf("WebGL") !== -1 ? (K = parseFloat(/^WebGL (\d)/.exec(ee)[1]), X = K >= 1) : ee.indexOf("OpenGL ES") !== -1 && (K = parseFloat(/^OpenGL ES (\d)/.exec(ee)[1]), X = K >= 2);
22982
22982
  let Ae = null, ze = {};
22983
- const V = i.getParameter(i.SCISSOR_BOX), oe = i.getParameter(i.VIEWPORT), xe = new li().fromArray(V), Re = new li().fromArray(oe);
22983
+ const V = i.getParameter(i.SCISSOR_BOX), oe = i.getParameter(i.VIEWPORT), Se = new li().fromArray(V), Re = new li().fromArray(oe);
22984
22984
  function Qe(q, _e, be, Fe) {
22985
- const Ue = new Uint8Array(4), Se = i.createTexture();
22986
- i.bindTexture(q, Se), i.texParameteri(q, i.TEXTURE_MIN_FILTER, i.NEAREST), i.texParameteri(q, i.TEXTURE_MAG_FILTER, i.NEAREST);
22985
+ const Ue = new Uint8Array(4), Ee = i.createTexture();
22986
+ i.bindTexture(q, Ee), i.texParameteri(q, i.TEXTURE_MIN_FILTER, i.NEAREST), i.texParameteri(q, i.TEXTURE_MAG_FILTER, i.NEAREST);
22987
22987
  for (let Xe = 0; Xe < be; Xe++)
22988
22988
  q === i.TEXTURE_3D || q === i.TEXTURE_2D_ARRAY ? i.texImage3D(_e, 0, i.RGBA, 1, 1, Fe, 0, i.RGBA, i.UNSIGNED_BYTE, Ue) : i.texImage2D(_e + Xe, 0, i.RGBA, 1, 1, 0, i.RGBA, i.UNSIGNED_BYTE, Ue);
22989
- return Se;
22989
+ return Ee;
22990
22990
  }
22991
22991
  const Me = {};
22992
22992
  Me[i.TEXTURE_2D] = Qe(i.TEXTURE_2D, i.TEXTURE_2D, 1), Me[i.TEXTURE_CUBE_MAP] = Qe(i.TEXTURE_CUBE_MAP, i.TEXTURE_CUBE_MAP_POSITIVE_X, 6), Me[i.TEXTURE_2D_ARRAY] = Qe(i.TEXTURE_2D_ARRAY, i.TEXTURE_2D_ARRAY, 1, 1), Me[i.TEXTURE_3D] = Qe(i.TEXTURE_3D, i.TEXTURE_3D, 1, 1), o.setClear(0, 0, 0, 1), c.setClear(1), f.setClear(0), ve(i.DEPTH_TEST), c.setFunc(f_), yt(!1), Tn(HN), ve(i.CULL_FACE), nn(gd);
22993
22993
  function ve(q) {
22994
22994
  _[q] !== !0 && (i.enable(q), _[q] = !0);
22995
22995
  }
22996
- function tt(q) {
22996
+ function nt(q) {
22997
22997
  _[q] !== !1 && (i.disable(q), _[q] = !1);
22998
22998
  }
22999
22999
  function lt(q, _e) {
@@ -23005,8 +23005,8 @@ function BX(i, e) {
23005
23005
  be = v.get(_e), be === void 0 && (be = [], v.set(_e, be));
23006
23006
  const Ue = q.textures;
23007
23007
  if (be.length !== Ue.length || be[0] !== i.COLOR_ATTACHMENT0) {
23008
- for (let Se = 0, Xe = Ue.length; Se < Xe; Se++)
23009
- be[Se] = i.COLOR_ATTACHMENT0 + Se;
23008
+ for (let Ee = 0, Xe = Ue.length; Ee < Xe; Ee++)
23009
+ be[Ee] = i.COLOR_ATTACHMENT0 + Ee;
23010
23010
  be.length = Ue.length, Fe = !0;
23011
23011
  }
23012
23012
  } else
@@ -23039,9 +23039,9 @@ function BX(i, e) {
23039
23039
  [H7]: i.CONSTANT_ALPHA,
23040
23040
  [V7]: i.ONE_MINUS_CONSTANT_ALPHA
23041
23041
  };
23042
- function nn(q, _e, be, Fe, Ue, Se, Xe, at, rn, sn) {
23042
+ function nn(q, _e, be, Fe, Ue, Ee, Xe, at, rn, sn) {
23043
23043
  if (q === gd) {
23044
- w === !0 && (tt(i.BLEND), w = !1);
23044
+ w === !0 && (nt(i.BLEND), w = !1);
23045
23045
  return;
23046
23046
  }
23047
23047
  if (w === !1 && (ve(i.BLEND), w = !0), q !== M7) {
@@ -23086,29 +23086,29 @@ function BX(i, e) {
23086
23086
  }
23087
23087
  return;
23088
23088
  }
23089
- Ue = Ue || _e, Se = Se || be, Xe = Xe || Fe, (_e !== A || Ue !== z) && (i.blendEquationSeparate(On[_e], On[Ue]), A = _e, z = Ue), (be !== L || Fe !== N || Se !== B || Xe !== j) && (i.blendFuncSeparate(Qt[be], Qt[Fe], Qt[Se], Qt[Xe]), L = be, N = Fe, B = Se, j = Xe), (at.equals(Y) === !1 || rn !== Z) && (i.blendColor(at.r, at.g, at.b, rn), Y.copy(at), Z = rn), C = q, U = !1;
23089
+ Ue = Ue || _e, Ee = Ee || be, Xe = Xe || Fe, (_e !== A || Ue !== z) && (i.blendEquationSeparate(On[_e], On[Ue]), A = _e, z = Ue), (be !== L || Fe !== N || Ee !== B || Xe !== j) && (i.blendFuncSeparate(Qt[be], Qt[Fe], Qt[Ee], Qt[Xe]), L = be, N = Fe, B = Ee, j = Xe), (at.equals(Y) === !1 || rn !== Z) && (i.blendColor(at.r, at.g, at.b, rn), Y.copy(at), Z = rn), C = q, U = !1;
23090
23090
  }
23091
23091
  function bn(q, _e) {
23092
- q.side === md ? tt(i.CULL_FACE) : ve(i.CULL_FACE);
23092
+ q.side === md ? nt(i.CULL_FACE) : ve(i.CULL_FACE);
23093
23093
  let be = q.side === ro;
23094
23094
  _e && (be = !be), yt(be), q.blending === n_ && q.transparent === !1 ? nn(gd) : nn(q.blending, q.blendEquation, q.blendSrc, q.blendDst, q.blendEquationAlpha, q.blendSrcAlpha, q.blendDstAlpha, q.blendColor, q.blendAlpha, q.premultipliedAlpha), c.setFunc(q.depthFunc), c.setTest(q.depthTest), c.setMask(q.depthWrite), o.setMask(q.colorWrite);
23095
23095
  const Fe = q.stencilWrite;
23096
- f.setTest(Fe), Fe && (f.setMask(q.stencilWriteMask), f.setFunc(q.stencilFunc, q.stencilRef, q.stencilFuncMask), f.setOp(q.stencilFail, q.stencilZFail, q.stencilZPass)), fi(q.polygonOffset, q.polygonOffsetFactor, q.polygonOffsetUnits), q.alphaToCoverage === !0 ? ve(i.SAMPLE_ALPHA_TO_COVERAGE) : tt(i.SAMPLE_ALPHA_TO_COVERAGE);
23096
+ f.setTest(Fe), Fe && (f.setMask(q.stencilWriteMask), f.setFunc(q.stencilFunc, q.stencilRef, q.stencilFuncMask), f.setOp(q.stencilFail, q.stencilZFail, q.stencilZPass)), fi(q.polygonOffset, q.polygonOffsetFactor, q.polygonOffsetUnits), q.alphaToCoverage === !0 ? ve(i.SAMPLE_ALPHA_TO_COVERAGE) : nt(i.SAMPLE_ALPHA_TO_COVERAGE);
23097
23097
  }
23098
23098
  function yt(q) {
23099
23099
  F !== q && (q ? i.frontFace(i.CW) : i.frontFace(i.CCW), F = q);
23100
23100
  }
23101
23101
  function Tn(q) {
23102
- q !== S7 ? (ve(i.CULL_FACE), q !== Q && (q === HN ? i.cullFace(i.BACK) : q === E7 ? i.cullFace(i.FRONT) : i.cullFace(i.FRONT_AND_BACK))) : tt(i.CULL_FACE), Q = q;
23102
+ q !== S7 ? (ve(i.CULL_FACE), q !== Q && (q === HN ? i.cullFace(i.BACK) : q === E7 ? i.cullFace(i.FRONT) : i.cullFace(i.FRONT_AND_BACK))) : nt(i.CULL_FACE), Q = q;
23103
23103
  }
23104
23104
  function le(q) {
23105
23105
  q !== te && (X && i.lineWidth(q), te = q);
23106
23106
  }
23107
23107
  function fi(q, _e, be) {
23108
- q ? (ve(i.POLYGON_OFFSET_FILL), (re !== _e || he !== be) && (i.polygonOffset(_e, be), re = _e, he = be)) : tt(i.POLYGON_OFFSET_FILL);
23108
+ q ? (ve(i.POLYGON_OFFSET_FILL), (re !== _e || he !== be) && (i.polygonOffset(_e, be), re = _e, he = be)) : nt(i.POLYGON_OFFSET_FILL);
23109
23109
  }
23110
- function et(q) {
23111
- q ? ve(i.SCISSOR_TEST) : tt(i.SCISSOR_TEST);
23110
+ function tt(q) {
23111
+ q ? ve(i.SCISSOR_TEST) : nt(i.SCISSOR_TEST);
23112
23112
  }
23113
23113
  function Ln(q) {
23114
23114
  q === void 0 && (q = i.TEXTURE0 + me - 1), Ae !== q && (i.activeTexture(q), Ae = q);
@@ -23192,8 +23192,8 @@ function BX(i, e) {
23192
23192
  Kt("WebGLState:", q);
23193
23193
  }
23194
23194
  }
23195
- function Je(q) {
23196
- xe.equals(q) === !1 && (i.scissor(q.x, q.y, q.z, q.w), xe.copy(q));
23195
+ function et(q) {
23196
+ Se.equals(q) === !1 && (i.scissor(q.x, q.y, q.z, q.w), Se.copy(q));
23197
23197
  }
23198
23198
  function mt(q) {
23199
23199
  Re.equals(q) === !1 && (i.viewport(q.x, q.y, q.z, q.w), Re.copy(q));
@@ -23209,7 +23209,7 @@ function BX(i, e) {
23209
23209
  h.get(_e) !== Fe && (i.uniformBlockBinding(_e, Fe, q.__bindingPointIndex), h.set(_e, Fe));
23210
23210
  }
23211
23211
  function H() {
23212
- i.disable(i.BLEND), i.disable(i.CULL_FACE), i.disable(i.DEPTH_TEST), i.disable(i.POLYGON_OFFSET_FILL), i.disable(i.SCISSOR_TEST), i.disable(i.STENCIL_TEST), i.disable(i.SAMPLE_ALPHA_TO_COVERAGE), i.blendEquation(i.FUNC_ADD), i.blendFunc(i.ONE, i.ZERO), i.blendFuncSeparate(i.ONE, i.ZERO, i.ONE, i.ZERO), i.blendColor(0, 0, 0, 0), i.colorMask(!0, !0, !0, !0), i.clearColor(0, 0, 0, 0), i.depthMask(!0), i.depthFunc(i.LESS), c.setReversed(!1), i.clearDepth(1), i.stencilMask(4294967295), i.stencilFunc(i.ALWAYS, 0, 4294967295), i.stencilOp(i.KEEP, i.KEEP, i.KEEP), i.clearStencil(0), i.cullFace(i.BACK), i.frontFace(i.CCW), i.polygonOffset(0, 0), i.activeTexture(i.TEXTURE0), i.bindFramebuffer(i.FRAMEBUFFER, null), i.bindFramebuffer(i.DRAW_FRAMEBUFFER, null), i.bindFramebuffer(i.READ_FRAMEBUFFER, null), i.useProgram(null), i.lineWidth(1), i.scissor(0, 0, i.canvas.width, i.canvas.height), i.viewport(0, 0, i.canvas.width, i.canvas.height), _ = {}, Ae = null, ze = {}, p = {}, v = /* @__PURE__ */ new WeakMap(), x = [], T = null, w = !1, C = null, A = null, L = null, N = null, z = null, B = null, j = null, Y = new tn(0, 0, 0), Z = 0, U = !1, F = null, Q = null, te = null, re = null, he = null, xe.set(0, 0, i.canvas.width, i.canvas.height), Re.set(0, 0, i.canvas.width, i.canvas.height), o.reset(), c.reset(), f.reset();
23212
+ i.disable(i.BLEND), i.disable(i.CULL_FACE), i.disable(i.DEPTH_TEST), i.disable(i.POLYGON_OFFSET_FILL), i.disable(i.SCISSOR_TEST), i.disable(i.STENCIL_TEST), i.disable(i.SAMPLE_ALPHA_TO_COVERAGE), i.blendEquation(i.FUNC_ADD), i.blendFunc(i.ONE, i.ZERO), i.blendFuncSeparate(i.ONE, i.ZERO, i.ONE, i.ZERO), i.blendColor(0, 0, 0, 0), i.colorMask(!0, !0, !0, !0), i.clearColor(0, 0, 0, 0), i.depthMask(!0), i.depthFunc(i.LESS), c.setReversed(!1), i.clearDepth(1), i.stencilMask(4294967295), i.stencilFunc(i.ALWAYS, 0, 4294967295), i.stencilOp(i.KEEP, i.KEEP, i.KEEP), i.clearStencil(0), i.cullFace(i.BACK), i.frontFace(i.CCW), i.polygonOffset(0, 0), i.activeTexture(i.TEXTURE0), i.bindFramebuffer(i.FRAMEBUFFER, null), i.bindFramebuffer(i.DRAW_FRAMEBUFFER, null), i.bindFramebuffer(i.READ_FRAMEBUFFER, null), i.useProgram(null), i.lineWidth(1), i.scissor(0, 0, i.canvas.width, i.canvas.height), i.viewport(0, 0, i.canvas.width, i.canvas.height), _ = {}, Ae = null, ze = {}, p = {}, v = /* @__PURE__ */ new WeakMap(), x = [], T = null, w = !1, C = null, A = null, L = null, N = null, z = null, B = null, j = null, Y = new tn(0, 0, 0), Z = 0, U = !1, F = null, Q = null, te = null, re = null, he = null, Se.set(0, 0, i.canvas.width, i.canvas.height), Re.set(0, 0, i.canvas.width, i.canvas.height), o.reset(), c.reset(), f.reset();
23213
23213
  }
23214
23214
  return {
23215
23215
  buffers: {
@@ -23218,7 +23218,7 @@ function BX(i, e) {
23218
23218
  stencil: f
23219
23219
  },
23220
23220
  enable: ve,
23221
- disable: tt,
23221
+ disable: nt,
23222
23222
  bindFramebuffer: lt,
23223
23223
  drawBuffers: ut,
23224
23224
  useProgram: $e,
@@ -23228,7 +23228,7 @@ function BX(i, e) {
23228
23228
  setCullFace: Tn,
23229
23229
  setLineWidth: le,
23230
23230
  setPolygonOffset: fi,
23231
- setScissorTest: et,
23231
+ setScissorTest: tt,
23232
23232
  activeTexture: Ln,
23233
23233
  bindTexture: bt,
23234
23234
  unbindTexture: J,
@@ -23244,7 +23244,7 @@ function BX(i, e) {
23244
23244
  texSubImage3D: We,
23245
23245
  compressedTexSubImage2D: Pe,
23246
23246
  compressedTexSubImage3D: wt,
23247
- scissor: Je,
23247
+ scissor: et,
23248
23248
  viewport: mt,
23249
23249
  reset: H
23250
23250
  };
@@ -23367,7 +23367,7 @@ function PX(i, e, t, n, a, o, c) {
23367
23367
  }
23368
23368
  function me(J, P) {
23369
23369
  const pe = n.get(J);
23370
- if (J.isVideoTexture && et(J), J.isRenderTargetTexture === !1 && J.isExternalTexture !== !0 && J.version > 0 && pe.__version !== J.version) {
23370
+ if (J.isVideoTexture && tt(J), J.isRenderTargetTexture === !1 && J.isExternalTexture !== !0 && J.version > 0 && pe.__version !== J.version) {
23371
23371
  const Ve = J.image;
23372
23372
  if (Ve === null)
23373
23373
  Ft("WebGLRenderer: Texture marked for update but no image data found.");
@@ -23434,7 +23434,7 @@ function PX(i, e, t, n, a, o, c) {
23434
23434
  }
23435
23435
  }
23436
23436
  }
23437
- function xe(J, P) {
23437
+ function Se(J, P) {
23438
23438
  let pe = !1;
23439
23439
  J.__webglInit === void 0 && (J.__webglInit = !0, P.addEventListener("dispose", j));
23440
23440
  const Ve = P.source;
@@ -23459,19 +23459,19 @@ function PX(i, e, t, n, a, o, c) {
23459
23459
  if (Pe.length === 0)
23460
23460
  t.texSubImage2D(i.TEXTURE_2D, 0, 0, 0, P.width, P.height, pe, Ve, P.data);
23461
23461
  else {
23462
- Pe.sort((Ke, Je) => Ke.start - Je.start);
23462
+ Pe.sort((Ke, et) => Ke.start - et.start);
23463
23463
  let wt = 0;
23464
23464
  for (let Ke = 1; Ke < Pe.length; Ke++) {
23465
- const Je = Pe[wt], mt = Pe[Ke], ht = Je.start + Je.count, st = Re(mt.start, P.width, 4), H = Re(Je.start, P.width, 4);
23466
- mt.start <= ht + 1 && st === H && Re(mt.start + mt.count - 1, P.width, 4) === st ? Je.count = Math.max(
23467
- Je.count,
23468
- mt.start + mt.count - Je.start
23465
+ const et = Pe[wt], mt = Pe[Ke], ht = et.start + et.count, st = Re(mt.start, P.width, 4), H = Re(et.start, P.width, 4);
23466
+ mt.start <= ht + 1 && st === H && Re(mt.start + mt.count - 1, P.width, 4) === st ? et.count = Math.max(
23467
+ et.count,
23468
+ mt.start + mt.count - et.start
23469
23469
  ) : (++wt, Pe[wt] = mt);
23470
23470
  }
23471
23471
  Pe.length = wt + 1;
23472
23472
  const ot = i.getParameter(i.UNPACK_ROW_LENGTH), Et = i.getParameter(i.UNPACK_SKIP_PIXELS), kt = i.getParameter(i.UNPACK_SKIP_ROWS);
23473
23473
  i.pixelStorei(i.UNPACK_ROW_LENGTH, P.width);
23474
- for (let Ke = 0, Je = Pe.length; Ke < Je; Ke++) {
23474
+ for (let Ke = 0, et = Pe.length; Ke < et; Ke++) {
23475
23475
  const mt = Pe[Ke], ht = Math.floor(mt.start / 4), st = Math.ceil(mt.count / 4), H = ht % P.width, q = Math.floor(ht / P.width), _e = st, be = 1;
23476
23476
  i.pixelStorei(i.UNPACK_SKIP_PIXELS, H), i.pixelStorei(i.UNPACK_SKIP_ROWS, q), t.texSubImage2D(i.TEXTURE_2D, 0, H, q, _e, be, pe, Ve, P.data);
23477
23477
  }
@@ -23481,7 +23481,7 @@ function PX(i, e, t, n, a, o, c) {
23481
23481
  function Me(J, P, pe) {
23482
23482
  let Ve = i.TEXTURE_2D;
23483
23483
  (P.isDataArrayTexture || P.isCompressedArrayTexture) && (Ve = i.TEXTURE_2D_ARRAY), P.isData3DTexture && (Ve = i.TEXTURE_3D);
23484
- const We = xe(J, P), Pe = P.source;
23484
+ const We = Se(J, P), Pe = P.source;
23485
23485
  t.bindTexture(Ve, J.__webglTexture, i.TEXTURE0 + pe);
23486
23486
  const wt = n.get(Pe);
23487
23487
  if (Pe.version !== wt.__version || We === !0) {
@@ -23490,27 +23490,27 @@ function PX(i, e, t, n, a, o, c) {
23490
23490
  i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL, P.flipY), i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL, P.premultiplyAlpha), i.pixelStorei(i.UNPACK_ALIGNMENT, P.unpackAlignment), i.pixelStorei(i.UNPACK_COLORSPACE_CONVERSION_WEBGL, kt);
23491
23491
  let Ke = w(P.image, !1, a.maxTextureSize);
23492
23492
  Ke = Ln(P, Ke);
23493
- const Je = o.convert(P.format, P.colorSpace), mt = o.convert(P.type);
23494
- let ht = N(P.internalFormat, Je, mt, P.colorSpace, P.isVideoTexture);
23493
+ const et = o.convert(P.format, P.colorSpace), mt = o.convert(P.type);
23494
+ let ht = N(P.internalFormat, et, mt, P.colorSpace, P.isVideoTexture);
23495
23495
  oe(Ve, P);
23496
23496
  let st;
23497
23497
  const H = P.mipmaps, q = P.isVideoTexture !== !0, _e = wt.__version === void 0 || We === !0, be = Pe.dataReady, Fe = B(P, Ke);
23498
23498
  if (P.isDepthTexture)
23499
- ht = z(P.format === Gg, P.type), _e && (q ? t.texStorage2D(i.TEXTURE_2D, 1, ht, Ke.width, Ke.height) : t.texImage2D(i.TEXTURE_2D, 0, ht, Ke.width, Ke.height, 0, Je, mt, null));
23499
+ ht = z(P.format === Gg, P.type), _e && (q ? t.texStorage2D(i.TEXTURE_2D, 1, ht, Ke.width, Ke.height) : t.texImage2D(i.TEXTURE_2D, 0, ht, Ke.width, Ke.height, 0, et, mt, null));
23500
23500
  else if (P.isDataTexture)
23501
23501
  if (H.length > 0) {
23502
23502
  q && _e && t.texStorage2D(i.TEXTURE_2D, Fe, ht, H[0].width, H[0].height);
23503
- for (let Ue = 0, Se = H.length; Ue < Se; Ue++)
23504
- st = H[Ue], q ? be && t.texSubImage2D(i.TEXTURE_2D, Ue, 0, 0, st.width, st.height, Je, mt, st.data) : t.texImage2D(i.TEXTURE_2D, Ue, ht, st.width, st.height, 0, Je, mt, st.data);
23503
+ for (let Ue = 0, Ee = H.length; Ue < Ee; Ue++)
23504
+ st = H[Ue], q ? be && t.texSubImage2D(i.TEXTURE_2D, Ue, 0, 0, st.width, st.height, et, mt, st.data) : t.texImage2D(i.TEXTURE_2D, Ue, ht, st.width, st.height, 0, et, mt, st.data);
23505
23505
  P.generateMipmaps = !1;
23506
23506
  } else
23507
- q ? (_e && t.texStorage2D(i.TEXTURE_2D, Fe, ht, Ke.width, Ke.height), be && Qe(P, Ke, Je, mt)) : t.texImage2D(i.TEXTURE_2D, 0, ht, Ke.width, Ke.height, 0, Je, mt, Ke.data);
23507
+ q ? (_e && t.texStorage2D(i.TEXTURE_2D, Fe, ht, Ke.width, Ke.height), be && Qe(P, Ke, et, mt)) : t.texImage2D(i.TEXTURE_2D, 0, ht, Ke.width, Ke.height, 0, et, mt, Ke.data);
23508
23508
  else if (P.isCompressedTexture)
23509
23509
  if (P.isCompressedArrayTexture) {
23510
23510
  q && _e && t.texStorage3D(i.TEXTURE_2D_ARRAY, Fe, ht, H[0].width, H[0].height, Ke.depth);
23511
- for (let Ue = 0, Se = H.length; Ue < Se; Ue++)
23511
+ for (let Ue = 0, Ee = H.length; Ue < Ee; Ue++)
23512
23512
  if (st = H[Ue], P.format !== Zl)
23513
- if (Je !== null)
23513
+ if (et !== null)
23514
23514
  if (q) {
23515
23515
  if (be)
23516
23516
  if (P.layerUpdates.size > 0) {
@@ -23520,113 +23520,113 @@ function PX(i, e, t, n, a, o, c) {
23520
23520
  at * Xe / st.data.BYTES_PER_ELEMENT,
23521
23521
  (at + 1) * Xe / st.data.BYTES_PER_ELEMENT
23522
23522
  );
23523
- t.compressedTexSubImage3D(i.TEXTURE_2D_ARRAY, Ue, 0, 0, at, st.width, st.height, 1, Je, rn);
23523
+ t.compressedTexSubImage3D(i.TEXTURE_2D_ARRAY, Ue, 0, 0, at, st.width, st.height, 1, et, rn);
23524
23524
  }
23525
23525
  P.clearLayerUpdates();
23526
23526
  } else
23527
- t.compressedTexSubImage3D(i.TEXTURE_2D_ARRAY, Ue, 0, 0, 0, st.width, st.height, Ke.depth, Je, st.data);
23527
+ t.compressedTexSubImage3D(i.TEXTURE_2D_ARRAY, Ue, 0, 0, 0, st.width, st.height, Ke.depth, et, st.data);
23528
23528
  } else
23529
23529
  t.compressedTexImage3D(i.TEXTURE_2D_ARRAY, Ue, ht, st.width, st.height, Ke.depth, 0, st.data, 0, 0);
23530
23530
  else
23531
23531
  Ft("WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");
23532
23532
  else
23533
- q ? be && t.texSubImage3D(i.TEXTURE_2D_ARRAY, Ue, 0, 0, 0, st.width, st.height, Ke.depth, Je, mt, st.data) : t.texImage3D(i.TEXTURE_2D_ARRAY, Ue, ht, st.width, st.height, Ke.depth, 0, Je, mt, st.data);
23533
+ q ? be && t.texSubImage3D(i.TEXTURE_2D_ARRAY, Ue, 0, 0, 0, st.width, st.height, Ke.depth, et, mt, st.data) : t.texImage3D(i.TEXTURE_2D_ARRAY, Ue, ht, st.width, st.height, Ke.depth, 0, et, mt, st.data);
23534
23534
  } else {
23535
23535
  q && _e && t.texStorage2D(i.TEXTURE_2D, Fe, ht, H[0].width, H[0].height);
23536
- for (let Ue = 0, Se = H.length; Ue < Se; Ue++)
23537
- st = H[Ue], P.format !== Zl ? Je !== null ? q ? be && t.compressedTexSubImage2D(i.TEXTURE_2D, Ue, 0, 0, st.width, st.height, Je, st.data) : t.compressedTexImage2D(i.TEXTURE_2D, Ue, ht, st.width, st.height, 0, st.data) : Ft("WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : q ? be && t.texSubImage2D(i.TEXTURE_2D, Ue, 0, 0, st.width, st.height, Je, mt, st.data) : t.texImage2D(i.TEXTURE_2D, Ue, ht, st.width, st.height, 0, Je, mt, st.data);
23536
+ for (let Ue = 0, Ee = H.length; Ue < Ee; Ue++)
23537
+ st = H[Ue], P.format !== Zl ? et !== null ? q ? be && t.compressedTexSubImage2D(i.TEXTURE_2D, Ue, 0, 0, st.width, st.height, et, st.data) : t.compressedTexImage2D(i.TEXTURE_2D, Ue, ht, st.width, st.height, 0, st.data) : Ft("WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : q ? be && t.texSubImage2D(i.TEXTURE_2D, Ue, 0, 0, st.width, st.height, et, mt, st.data) : t.texImage2D(i.TEXTURE_2D, Ue, ht, st.width, st.height, 0, et, mt, st.data);
23538
23538
  }
23539
23539
  else if (P.isDataArrayTexture)
23540
23540
  if (q) {
23541
23541
  if (_e && t.texStorage3D(i.TEXTURE_2D_ARRAY, Fe, ht, Ke.width, Ke.height, Ke.depth), be)
23542
23542
  if (P.layerUpdates.size > 0) {
23543
23543
  const Ue = R5(Ke.width, Ke.height, P.format, P.type);
23544
- for (const Se of P.layerUpdates) {
23544
+ for (const Ee of P.layerUpdates) {
23545
23545
  const Xe = Ke.data.subarray(
23546
- Se * Ue / Ke.data.BYTES_PER_ELEMENT,
23547
- (Se + 1) * Ue / Ke.data.BYTES_PER_ELEMENT
23546
+ Ee * Ue / Ke.data.BYTES_PER_ELEMENT,
23547
+ (Ee + 1) * Ue / Ke.data.BYTES_PER_ELEMENT
23548
23548
  );
23549
- t.texSubImage3D(i.TEXTURE_2D_ARRAY, 0, 0, 0, Se, Ke.width, Ke.height, 1, Je, mt, Xe);
23549
+ t.texSubImage3D(i.TEXTURE_2D_ARRAY, 0, 0, 0, Ee, Ke.width, Ke.height, 1, et, mt, Xe);
23550
23550
  }
23551
23551
  P.clearLayerUpdates();
23552
23552
  } else
23553
- t.texSubImage3D(i.TEXTURE_2D_ARRAY, 0, 0, 0, 0, Ke.width, Ke.height, Ke.depth, Je, mt, Ke.data);
23553
+ t.texSubImage3D(i.TEXTURE_2D_ARRAY, 0, 0, 0, 0, Ke.width, Ke.height, Ke.depth, et, mt, Ke.data);
23554
23554
  } else
23555
- t.texImage3D(i.TEXTURE_2D_ARRAY, 0, ht, Ke.width, Ke.height, Ke.depth, 0, Je, mt, Ke.data);
23555
+ t.texImage3D(i.TEXTURE_2D_ARRAY, 0, ht, Ke.width, Ke.height, Ke.depth, 0, et, mt, Ke.data);
23556
23556
  else if (P.isData3DTexture)
23557
- q ? (_e && t.texStorage3D(i.TEXTURE_3D, Fe, ht, Ke.width, Ke.height, Ke.depth), be && t.texSubImage3D(i.TEXTURE_3D, 0, 0, 0, 0, Ke.width, Ke.height, Ke.depth, Je, mt, Ke.data)) : t.texImage3D(i.TEXTURE_3D, 0, ht, Ke.width, Ke.height, Ke.depth, 0, Je, mt, Ke.data);
23557
+ q ? (_e && t.texStorage3D(i.TEXTURE_3D, Fe, ht, Ke.width, Ke.height, Ke.depth), be && t.texSubImage3D(i.TEXTURE_3D, 0, 0, 0, 0, Ke.width, Ke.height, Ke.depth, et, mt, Ke.data)) : t.texImage3D(i.TEXTURE_3D, 0, ht, Ke.width, Ke.height, Ke.depth, 0, et, mt, Ke.data);
23558
23558
  else if (P.isFramebufferTexture) {
23559
23559
  if (_e)
23560
23560
  if (q)
23561
23561
  t.texStorage2D(i.TEXTURE_2D, Fe, ht, Ke.width, Ke.height);
23562
23562
  else {
23563
- let Ue = Ke.width, Se = Ke.height;
23563
+ let Ue = Ke.width, Ee = Ke.height;
23564
23564
  for (let Xe = 0; Xe < Fe; Xe++)
23565
- t.texImage2D(i.TEXTURE_2D, Xe, ht, Ue, Se, 0, Je, mt, null), Ue >>= 1, Se >>= 1;
23565
+ t.texImage2D(i.TEXTURE_2D, Xe, ht, Ue, Ee, 0, et, mt, null), Ue >>= 1, Ee >>= 1;
23566
23566
  }
23567
23567
  } else if (H.length > 0) {
23568
23568
  if (q && _e) {
23569
23569
  const Ue = bt(H[0]);
23570
23570
  t.texStorage2D(i.TEXTURE_2D, Fe, ht, Ue.width, Ue.height);
23571
23571
  }
23572
- for (let Ue = 0, Se = H.length; Ue < Se; Ue++)
23573
- st = H[Ue], q ? be && t.texSubImage2D(i.TEXTURE_2D, Ue, 0, 0, Je, mt, st) : t.texImage2D(i.TEXTURE_2D, Ue, ht, Je, mt, st);
23572
+ for (let Ue = 0, Ee = H.length; Ue < Ee; Ue++)
23573
+ st = H[Ue], q ? be && t.texSubImage2D(i.TEXTURE_2D, Ue, 0, 0, et, mt, st) : t.texImage2D(i.TEXTURE_2D, Ue, ht, et, mt, st);
23574
23574
  P.generateMipmaps = !1;
23575
23575
  } else if (q) {
23576
23576
  if (_e) {
23577
23577
  const Ue = bt(Ke);
23578
23578
  t.texStorage2D(i.TEXTURE_2D, Fe, ht, Ue.width, Ue.height);
23579
23579
  }
23580
- be && t.texSubImage2D(i.TEXTURE_2D, 0, 0, 0, Je, mt, Ke);
23580
+ be && t.texSubImage2D(i.TEXTURE_2D, 0, 0, 0, et, mt, Ke);
23581
23581
  } else
23582
- t.texImage2D(i.TEXTURE_2D, 0, ht, Je, mt, Ke);
23582
+ t.texImage2D(i.TEXTURE_2D, 0, ht, et, mt, Ke);
23583
23583
  C(P) && A(Ve), wt.__version = Pe.version, P.onUpdate && P.onUpdate(P);
23584
23584
  }
23585
23585
  J.__version = P.version;
23586
23586
  }
23587
23587
  function ve(J, P, pe) {
23588
23588
  if (P.image.length !== 6) return;
23589
- const Ve = xe(J, P), We = P.source;
23589
+ const Ve = Se(J, P), We = P.source;
23590
23590
  t.bindTexture(i.TEXTURE_CUBE_MAP, J.__webglTexture, i.TEXTURE0 + pe);
23591
23591
  const Pe = n.get(We);
23592
23592
  if (We.version !== Pe.__version || Ve === !0) {
23593
23593
  t.activeTexture(i.TEXTURE0 + pe);
23594
23594
  const wt = _n.getPrimaries(_n.workingColorSpace), ot = P.colorSpace === mp ? null : _n.getPrimaries(P.colorSpace), Et = P.colorSpace === mp || wt === ot ? i.NONE : i.BROWSER_DEFAULT_WEBGL;
23595
23595
  i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL, P.flipY), i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL, P.premultiplyAlpha), i.pixelStorei(i.UNPACK_ALIGNMENT, P.unpackAlignment), i.pixelStorei(i.UNPACK_COLORSPACE_CONVERSION_WEBGL, Et);
23596
- const kt = P.isCompressedTexture || P.image[0].isCompressedTexture, Ke = P.image[0] && P.image[0].isDataTexture, Je = [];
23597
- for (let Se = 0; Se < 6; Se++)
23598
- !kt && !Ke ? Je[Se] = w(P.image[Se], !0, a.maxCubemapSize) : Je[Se] = Ke ? P.image[Se].image : P.image[Se], Je[Se] = Ln(P, Je[Se]);
23599
- const mt = Je[0], ht = o.convert(P.format, P.colorSpace), st = o.convert(P.type), H = N(P.internalFormat, ht, st, P.colorSpace), q = P.isVideoTexture !== !0, _e = Pe.__version === void 0 || Ve === !0, be = We.dataReady;
23596
+ const kt = P.isCompressedTexture || P.image[0].isCompressedTexture, Ke = P.image[0] && P.image[0].isDataTexture, et = [];
23597
+ for (let Ee = 0; Ee < 6; Ee++)
23598
+ !kt && !Ke ? et[Ee] = w(P.image[Ee], !0, a.maxCubemapSize) : et[Ee] = Ke ? P.image[Ee].image : P.image[Ee], et[Ee] = Ln(P, et[Ee]);
23599
+ const mt = et[0], ht = o.convert(P.format, P.colorSpace), st = o.convert(P.type), H = N(P.internalFormat, ht, st, P.colorSpace), q = P.isVideoTexture !== !0, _e = Pe.__version === void 0 || Ve === !0, be = We.dataReady;
23600
23600
  let Fe = B(P, mt);
23601
23601
  oe(i.TEXTURE_CUBE_MAP, P);
23602
23602
  let Ue;
23603
23603
  if (kt) {
23604
23604
  q && _e && t.texStorage2D(i.TEXTURE_CUBE_MAP, Fe, H, mt.width, mt.height);
23605
- for (let Se = 0; Se < 6; Se++) {
23606
- Ue = Je[Se].mipmaps;
23605
+ for (let Ee = 0; Ee < 6; Ee++) {
23606
+ Ue = et[Ee].mipmaps;
23607
23607
  for (let Xe = 0; Xe < Ue.length; Xe++) {
23608
23608
  const at = Ue[Xe];
23609
- P.format !== Zl ? ht !== null ? q ? be && t.compressedTexSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, Xe, 0, 0, at.width, at.height, ht, at.data) : t.compressedTexImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, Xe, H, at.width, at.height, 0, at.data) : Ft("WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : q ? be && t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, Xe, 0, 0, at.width, at.height, ht, st, at.data) : t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, Xe, H, at.width, at.height, 0, ht, st, at.data);
23609
+ P.format !== Zl ? ht !== null ? q ? be && t.compressedTexSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, Xe, 0, 0, at.width, at.height, ht, at.data) : t.compressedTexImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, Xe, H, at.width, at.height, 0, at.data) : Ft("WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : q ? be && t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, Xe, 0, 0, at.width, at.height, ht, st, at.data) : t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, Xe, H, at.width, at.height, 0, ht, st, at.data);
23610
23610
  }
23611
23611
  }
23612
23612
  } else {
23613
23613
  if (Ue = P.mipmaps, q && _e) {
23614
23614
  Ue.length > 0 && Fe++;
23615
- const Se = bt(Je[0]);
23616
- t.texStorage2D(i.TEXTURE_CUBE_MAP, Fe, H, Se.width, Se.height);
23615
+ const Ee = bt(et[0]);
23616
+ t.texStorage2D(i.TEXTURE_CUBE_MAP, Fe, H, Ee.width, Ee.height);
23617
23617
  }
23618
- for (let Se = 0; Se < 6; Se++)
23618
+ for (let Ee = 0; Ee < 6; Ee++)
23619
23619
  if (Ke) {
23620
- q ? be && t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, 0, 0, 0, Je[Se].width, Je[Se].height, ht, st, Je[Se].data) : t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, 0, H, Je[Se].width, Je[Se].height, 0, ht, st, Je[Se].data);
23620
+ q ? be && t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, 0, 0, 0, et[Ee].width, et[Ee].height, ht, st, et[Ee].data) : t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, 0, H, et[Ee].width, et[Ee].height, 0, ht, st, et[Ee].data);
23621
23621
  for (let Xe = 0; Xe < Ue.length; Xe++) {
23622
- const rn = Ue[Xe].image[Se].image;
23623
- q ? be && t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, Xe + 1, 0, 0, rn.width, rn.height, ht, st, rn.data) : t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, Xe + 1, H, rn.width, rn.height, 0, ht, st, rn.data);
23622
+ const rn = Ue[Xe].image[Ee].image;
23623
+ q ? be && t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, Xe + 1, 0, 0, rn.width, rn.height, ht, st, rn.data) : t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, Xe + 1, H, rn.width, rn.height, 0, ht, st, rn.data);
23624
23624
  }
23625
23625
  } else {
23626
- q ? be && t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, 0, 0, 0, ht, st, Je[Se]) : t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, 0, H, ht, st, Je[Se]);
23626
+ q ? be && t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, 0, 0, 0, ht, st, et[Ee]) : t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, 0, H, ht, st, et[Ee]);
23627
23627
  for (let Xe = 0; Xe < Ue.length; Xe++) {
23628
23628
  const at = Ue[Xe];
23629
- q ? be && t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, Xe + 1, 0, 0, ht, st, at.image[Se]) : t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Se, Xe + 1, H, ht, st, at.image[Se]);
23629
+ q ? be && t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, Xe + 1, 0, 0, ht, st, at.image[Ee]) : t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + Ee, Xe + 1, H, ht, st, at.image[Ee]);
23630
23630
  }
23631
23631
  }
23632
23632
  }
@@ -23634,11 +23634,11 @@ function PX(i, e, t, n, a, o, c) {
23634
23634
  }
23635
23635
  J.__version = P.version;
23636
23636
  }
23637
- function tt(J, P, pe, Ve, We, Pe) {
23637
+ function nt(J, P, pe, Ve, We, Pe) {
23638
23638
  const wt = o.convert(pe.format, pe.colorSpace), ot = o.convert(pe.type), Et = N(pe.internalFormat, wt, ot, pe.colorSpace), kt = n.get(P), Ke = n.get(pe);
23639
23639
  if (Ke.__renderTarget = P, !kt.__hasExternalTextures) {
23640
- const Je = Math.max(1, P.width >> Pe), mt = Math.max(1, P.height >> Pe);
23641
- We === i.TEXTURE_3D || We === i.TEXTURE_2D_ARRAY ? t.texImage3D(We, Pe, Et, Je, mt, P.depth, 0, wt, ot, null) : t.texImage2D(We, Pe, Et, Je, mt, 0, wt, ot, null);
23640
+ const et = Math.max(1, P.width >> Pe), mt = Math.max(1, P.height >> Pe);
23641
+ We === i.TEXTURE_3D || We === i.TEXTURE_2D_ARRAY ? t.texImage3D(We, Pe, Et, et, mt, P.depth, 0, wt, ot, null) : t.texImage2D(We, Pe, Et, et, mt, 0, wt, ot, null);
23642
23642
  }
23643
23643
  t.bindFramebuffer(i.FRAMEBUFFER, J), fi(P) ? f.framebufferTexture2DMultisampleEXT(i.FRAMEBUFFER, Ve, We, Ke.__webglTexture, 0, le(P)) : (We === i.TEXTURE_2D || We >= i.TEXTURE_CUBE_MAP_POSITIVE_X && We <= i.TEXTURE_CUBE_MAP_NEGATIVE_Z) && i.framebufferTexture2D(i.FRAMEBUFFER, Ve, We, Ke.__webglTexture, Pe), t.bindFramebuffer(i.FRAMEBUFFER, null);
23644
23644
  }
@@ -23664,10 +23664,10 @@ function PX(i, e, t, n, a, o, c) {
23664
23664
  if (We.__webglInit === void 0 && (We.__webglInit = !0, P.depthTexture.addEventListener("dispose", j)), We.__webglTexture === void 0) {
23665
23665
  We.__webglTexture = i.createTexture(), t.bindTexture(i.TEXTURE_CUBE_MAP, We.__webglTexture), oe(i.TEXTURE_CUBE_MAP, P.depthTexture);
23666
23666
  const kt = o.convert(P.depthTexture.format), Ke = o.convert(P.depthTexture.type);
23667
- let Je;
23668
- P.depthTexture.format === bd ? Je = i.DEPTH_COMPONENT24 : P.depthTexture.format === Gg && (Je = i.DEPTH24_STENCIL8);
23667
+ let et;
23668
+ P.depthTexture.format === bd ? et = i.DEPTH_COMPONENT24 : P.depthTexture.format === Gg && (et = i.DEPTH24_STENCIL8);
23669
23669
  for (let mt = 0; mt < 6; mt++)
23670
- i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + mt, 0, Je, P.width, P.height, 0, kt, Ke, null);
23670
+ i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X + mt, 0, et, P.width, P.height, 0, kt, Ke, null);
23671
23671
  }
23672
23672
  } else
23673
23673
  me(P.depthTexture, 0);
@@ -23721,7 +23721,7 @@ function PX(i, e, t, n, a, o, c) {
23721
23721
  }
23722
23722
  function On(J, P, pe) {
23723
23723
  const Ve = n.get(J);
23724
- P !== void 0 && tt(Ve.__webglFramebuffer, J, J.texture, i.COLOR_ATTACHMENT0, i.TEXTURE_2D, 0), pe !== void 0 && $e(J);
23724
+ P !== void 0 && nt(Ve.__webglFramebuffer, J, J.texture, i.COLOR_ATTACHMENT0, i.TEXTURE_2D, 0), pe !== void 0 && $e(J);
23725
23725
  }
23726
23726
  function Qt(J) {
23727
23727
  const P = J.texture, pe = n.get(J), Ve = n.get(P);
@@ -23753,8 +23753,8 @@ function PX(i, e, t, n, a, o, c) {
23753
23753
  for (let ot = 0; ot < We.length; ot++) {
23754
23754
  const Et = We[ot];
23755
23755
  pe.__webglColorRenderbuffer[ot] = i.createRenderbuffer(), i.bindRenderbuffer(i.RENDERBUFFER, pe.__webglColorRenderbuffer[ot]);
23756
- const kt = o.convert(Et.format, Et.colorSpace), Ke = o.convert(Et.type), Je = N(Et.internalFormat, kt, Ke, Et.colorSpace, J.isXRRenderTarget === !0), mt = le(J);
23757
- i.renderbufferStorageMultisample(i.RENDERBUFFER, mt, Je, J.width, J.height), i.framebufferRenderbuffer(i.FRAMEBUFFER, i.COLOR_ATTACHMENT0 + ot, i.RENDERBUFFER, pe.__webglColorRenderbuffer[ot]);
23756
+ const kt = o.convert(Et.format, Et.colorSpace), Ke = o.convert(Et.type), et = N(Et.internalFormat, kt, Ke, Et.colorSpace, J.isXRRenderTarget === !0), mt = le(J);
23757
+ i.renderbufferStorageMultisample(i.RENDERBUFFER, mt, et, J.width, J.height), i.framebufferRenderbuffer(i.FRAMEBUFFER, i.COLOR_ATTACHMENT0 + ot, i.RENDERBUFFER, pe.__webglColorRenderbuffer[ot]);
23758
23758
  }
23759
23759
  i.bindRenderbuffer(i.RENDERBUFFER, null), J.depthBuffer && (pe.__webglDepthRenderbuffer = i.createRenderbuffer(), lt(pe.__webglDepthRenderbuffer, J, !0)), t.bindFramebuffer(i.FRAMEBUFFER, null);
23760
23760
  }
@@ -23764,24 +23764,24 @@ function PX(i, e, t, n, a, o, c) {
23764
23764
  for (let ot = 0; ot < 6; ot++)
23765
23765
  if (P.mipmaps && P.mipmaps.length > 0)
23766
23766
  for (let Et = 0; Et < P.mipmaps.length; Et++)
23767
- tt(pe.__webglFramebuffer[ot][Et], J, P, i.COLOR_ATTACHMENT0, i.TEXTURE_CUBE_MAP_POSITIVE_X + ot, Et);
23767
+ nt(pe.__webglFramebuffer[ot][Et], J, P, i.COLOR_ATTACHMENT0, i.TEXTURE_CUBE_MAP_POSITIVE_X + ot, Et);
23768
23768
  else
23769
- tt(pe.__webglFramebuffer[ot], J, P, i.COLOR_ATTACHMENT0, i.TEXTURE_CUBE_MAP_POSITIVE_X + ot, 0);
23769
+ nt(pe.__webglFramebuffer[ot], J, P, i.COLOR_ATTACHMENT0, i.TEXTURE_CUBE_MAP_POSITIVE_X + ot, 0);
23770
23770
  C(P) && A(i.TEXTURE_CUBE_MAP), t.unbindTexture();
23771
23771
  } else if (wt) {
23772
23772
  for (let ot = 0, Et = We.length; ot < Et; ot++) {
23773
23773
  const kt = We[ot], Ke = n.get(kt);
23774
- let Je = i.TEXTURE_2D;
23775
- (J.isWebGL3DRenderTarget || J.isWebGLArrayRenderTarget) && (Je = J.isWebGL3DRenderTarget ? i.TEXTURE_3D : i.TEXTURE_2D_ARRAY), t.bindTexture(Je, Ke.__webglTexture), oe(Je, kt), tt(pe.__webglFramebuffer, J, kt, i.COLOR_ATTACHMENT0 + ot, Je, 0), C(kt) && A(Je);
23774
+ let et = i.TEXTURE_2D;
23775
+ (J.isWebGL3DRenderTarget || J.isWebGLArrayRenderTarget) && (et = J.isWebGL3DRenderTarget ? i.TEXTURE_3D : i.TEXTURE_2D_ARRAY), t.bindTexture(et, Ke.__webglTexture), oe(et, kt), nt(pe.__webglFramebuffer, J, kt, i.COLOR_ATTACHMENT0 + ot, et, 0), C(kt) && A(et);
23776
23776
  }
23777
23777
  t.unbindTexture();
23778
23778
  } else {
23779
23779
  let ot = i.TEXTURE_2D;
23780
23780
  if ((J.isWebGL3DRenderTarget || J.isWebGLArrayRenderTarget) && (ot = J.isWebGL3DRenderTarget ? i.TEXTURE_3D : i.TEXTURE_2D_ARRAY), t.bindTexture(ot, Ve.__webglTexture), oe(ot, P), P.mipmaps && P.mipmaps.length > 0)
23781
23781
  for (let Et = 0; Et < P.mipmaps.length; Et++)
23782
- tt(pe.__webglFramebuffer[Et], J, P, i.COLOR_ATTACHMENT0, ot, Et);
23782
+ nt(pe.__webglFramebuffer[Et], J, P, i.COLOR_ATTACHMENT0, ot, Et);
23783
23783
  else
23784
- tt(pe.__webglFramebuffer, J, P, i.COLOR_ATTACHMENT0, ot, 0);
23784
+ nt(pe.__webglFramebuffer, J, P, i.COLOR_ATTACHMENT0, ot, 0);
23785
23785
  C(P) && A(ot), t.unbindTexture();
23786
23786
  }
23787
23787
  J.depthBuffer && $e(J);
@@ -23837,7 +23837,7 @@ function PX(i, e, t, n, a, o, c) {
23837
23837
  const P = n.get(J);
23838
23838
  return J.samples > 0 && e.has("WEBGL_multisampled_render_to_texture") === !0 && P.__useRenderToTexture !== !1;
23839
23839
  }
23840
- function et(J) {
23840
+ function tt(J) {
23841
23841
  const P = c.render.frame;
23842
23842
  _.get(J) !== P && (_.set(J, P), J.update());
23843
23843
  }
@@ -23848,7 +23848,7 @@ function PX(i, e, t, n, a, o, c) {
23848
23848
  function bt(J) {
23849
23849
  return typeof HTMLImageElement < "u" && J instanceof HTMLImageElement ? (y.width = J.naturalWidth || J.width, y.height = J.naturalHeight || J.height) : typeof VideoFrame < "u" && J instanceof VideoFrame ? (y.width = J.displayWidth, y.height = J.displayHeight) : (y.width = J.width, y.height = J.height), y;
23850
23850
  }
23851
- this.allocateTextureUnit = re, this.resetTextureUnits = te, this.setTexture2D = me, this.setTexture2DArray = X, this.setTexture3D = K, this.setTextureCube = ee, this.rebindTextures = On, this.setupRenderTarget = Qt, this.updateRenderTargetMipmap = nn, this.updateMultisampleRenderTarget = Tn, this.setupDepthRenderbuffer = $e, this.setupFrameBufferTexture = tt, this.useMultisampledRTT = fi, this.isReversedDepthBuffer = function() {
23851
+ this.allocateTextureUnit = re, this.resetTextureUnits = te, this.setTexture2D = me, this.setTexture2DArray = X, this.setTexture3D = K, this.setTextureCube = ee, this.rebindTextures = On, this.setupRenderTarget = Qt, this.updateRenderTargetMipmap = nn, this.updateMultisampleRenderTarget = Tn, this.setupDepthRenderbuffer = $e, this.setupFrameBufferTexture = nt, this.useMultisampledRTT = fi, this.isReversedDepthBuffer = function() {
23852
23852
  return t.buffers.depth.getReversed();
23853
23853
  };
23854
23854
  }
@@ -24064,8 +24064,8 @@ class jX extends f0 {
24064
24064
  const ve = j.indexOf(Me.inputSource);
24065
24065
  if (ve === -1)
24066
24066
  return;
24067
- const tt = B[ve];
24068
- tt !== void 0 && (tt.update(Me.inputSource, Me.frame, y || c), tt.dispatchEvent({ type: Me.type, data: Me.inputSource }));
24067
+ const nt = B[ve];
24068
+ nt !== void 0 && (nt.update(Me.inputSource, Me.frame, y || c), nt.dispatchEvent({ type: Me.type, data: Me.inputSource }));
24069
24069
  }
24070
24070
  function X() {
24071
24071
  a.removeEventListener("select", me), a.removeEventListener("selectstart", me), a.removeEventListener("selectend", me), a.removeEventListener("squeeze", me), a.removeEventListener("squeezestart", me), a.removeEventListener("squeezeend", me), a.removeEventListener("end", X), a.removeEventListener("inputsourceschange", K);
@@ -24097,8 +24097,8 @@ class jX extends f0 {
24097
24097
  }, this.setSession = async function(Me) {
24098
24098
  if (a = Me, a !== null) {
24099
24099
  if (N = e.getRenderTarget(), a.addEventListener("select", me), a.addEventListener("selectstart", me), a.addEventListener("selectend", me), a.addEventListener("squeeze", me), a.addEventListener("squeezestart", me), a.addEventListener("squeezeend", me), a.addEventListener("end", X), a.addEventListener("inputsourceschange", K), L.xrCompatible !== !0 && await t.makeXRCompatible(), Z = e.getPixelRatio(), e.getSize(Y), w && "createProjectionLayer" in XRWebGLBinding.prototype) {
24100
- let tt = null, lt = null, ut = null;
24101
- L.depth && (ut = L.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, tt = L.stencil ? Gg : bd, lt = L.stencil ? pS : qu);
24100
+ let nt = null, lt = null, ut = null;
24101
+ L.depth && (ut = L.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, nt = L.stencil ? Gg : bd, lt = L.stencil ? pS : qu);
24102
24102
  const $e = {
24103
24103
  colorFormat: t.RGBA8,
24104
24104
  depthFormat: ut,
@@ -24110,7 +24110,7 @@ class jX extends f0 {
24110
24110
  {
24111
24111
  format: Zl,
24112
24112
  type: jo,
24113
- depthTexture: new yS(v.textureWidth, v.textureHeight, lt, void 0, void 0, void 0, void 0, void 0, void 0, tt),
24113
+ depthTexture: new yS(v.textureWidth, v.textureHeight, lt, void 0, void 0, void 0, void 0, void 0, void 0, nt),
24114
24114
  stencilBuffer: L.stencil,
24115
24115
  colorSpace: e.outputColorSpace,
24116
24116
  samples: L.antialias ? 4 : 0,
@@ -24119,14 +24119,14 @@ class jX extends f0 {
24119
24119
  }
24120
24120
  );
24121
24121
  } else {
24122
- const tt = {
24122
+ const nt = {
24123
24123
  antialias: L.antialias,
24124
24124
  alpha: !0,
24125
24125
  depth: L.depth,
24126
24126
  stencil: L.stencil,
24127
24127
  framebufferScaleFactor: o
24128
24128
  };
24129
- x = new XRWebGLLayer(a, t, tt), a.updateRenderState({ baseLayer: x }), e.setPixelRatio(1), e.setSize(x.framebufferWidth, x.framebufferHeight, !1), z = new Gu(
24129
+ x = new XRWebGLLayer(a, t, nt), a.updateRenderState({ baseLayer: x }), e.setPixelRatio(1), e.setSize(x.framebufferWidth, x.framebufferHeight, !1), z = new Gu(
24130
24130
  x.framebufferWidth,
24131
24131
  x.framebufferHeight,
24132
24132
  {
@@ -24149,35 +24149,35 @@ class jX extends f0 {
24149
24149
  };
24150
24150
  function K(Me) {
24151
24151
  for (let ve = 0; ve < Me.removed.length; ve++) {
24152
- const tt = Me.removed[ve], lt = j.indexOf(tt);
24153
- lt >= 0 && (j[lt] = null, B[lt].disconnect(tt));
24152
+ const nt = Me.removed[ve], lt = j.indexOf(nt);
24153
+ lt >= 0 && (j[lt] = null, B[lt].disconnect(nt));
24154
24154
  }
24155
24155
  for (let ve = 0; ve < Me.added.length; ve++) {
24156
- const tt = Me.added[ve];
24157
- let lt = j.indexOf(tt);
24156
+ const nt = Me.added[ve];
24157
+ let lt = j.indexOf(nt);
24158
24158
  if (lt === -1) {
24159
24159
  for (let $e = 0; $e < B.length; $e++)
24160
24160
  if ($e >= j.length) {
24161
- j.push(tt), lt = $e;
24161
+ j.push(nt), lt = $e;
24162
24162
  break;
24163
24163
  } else if (j[$e] === null) {
24164
- j[$e] = tt, lt = $e;
24164
+ j[$e] = nt, lt = $e;
24165
24165
  break;
24166
24166
  }
24167
24167
  if (lt === -1) break;
24168
24168
  }
24169
24169
  const ut = B[lt];
24170
- ut && ut.connect(tt);
24170
+ ut && ut.connect(nt);
24171
24171
  }
24172
24172
  }
24173
- const ee = new Te(), Ae = new Te();
24174
- function ze(Me, ve, tt) {
24175
- ee.setFromMatrixPosition(ve.matrixWorld), Ae.setFromMatrixPosition(tt.matrixWorld);
24176
- const lt = ee.distanceTo(Ae), ut = ve.projectionMatrix.elements, $e = tt.projectionMatrix.elements, On = ut[14] / (ut[10] - 1), Qt = ut[14] / (ut[10] + 1), nn = (ut[9] + 1) / ut[5], bn = (ut[9] - 1) / ut[5], yt = (ut[8] - 1) / ut[0], Tn = ($e[8] + 1) / $e[0], le = On * yt, fi = On * Tn, et = lt / (-yt + Tn), Ln = et * -yt;
24177
- if (ve.matrixWorld.decompose(Me.position, Me.quaternion, Me.scale), Me.translateX(Ln), Me.translateZ(et), Me.matrixWorld.compose(Me.position, Me.quaternion, Me.scale), Me.matrixWorldInverse.copy(Me.matrixWorld).invert(), ut[10] === -1)
24173
+ const ee = new xe(), Ae = new xe();
24174
+ function ze(Me, ve, nt) {
24175
+ ee.setFromMatrixPosition(ve.matrixWorld), Ae.setFromMatrixPosition(nt.matrixWorld);
24176
+ const lt = ee.distanceTo(Ae), ut = ve.projectionMatrix.elements, $e = nt.projectionMatrix.elements, On = ut[14] / (ut[10] - 1), Qt = ut[14] / (ut[10] + 1), nn = (ut[9] + 1) / ut[5], bn = (ut[9] - 1) / ut[5], yt = (ut[8] - 1) / ut[0], Tn = ($e[8] + 1) / $e[0], le = On * yt, fi = On * Tn, tt = lt / (-yt + Tn), Ln = tt * -yt;
24177
+ if (ve.matrixWorld.decompose(Me.position, Me.quaternion, Me.scale), Me.translateX(Ln), Me.translateZ(tt), Me.matrixWorld.compose(Me.position, Me.quaternion, Me.scale), Me.matrixWorldInverse.copy(Me.matrixWorld).invert(), ut[10] === -1)
24178
24178
  Me.projectionMatrix.copy(ve.projectionMatrix), Me.projectionMatrixInverse.copy(ve.projectionMatrixInverse);
24179
24179
  else {
24180
- const bt = On + et, J = Qt + et, P = le - Ln, pe = fi + (lt - Ln), Ve = nn * Qt / J * bt, We = bn * Qt / J * bt;
24180
+ const bt = On + tt, J = Qt + tt, P = le - Ln, pe = fi + (lt - Ln), Ve = nn * Qt / J * bt, We = bn * Qt / J * bt;
24181
24181
  Me.projectionMatrix.makePerspective(P, pe, Ve, We, bt, J), Me.projectionMatrixInverse.copy(Me.projectionMatrix).invert();
24182
24182
  }
24183
24183
  }
@@ -24186,8 +24186,8 @@ class jX extends f0 {
24186
24186
  }
24187
24187
  this.updateCamera = function(Me) {
24188
24188
  if (a === null) return;
24189
- let ve = Me.near, tt = Me.far;
24190
- C.texture !== null && (C.depthNear > 0 && (ve = C.depthNear), C.depthFar > 0 && (tt = C.depthFar)), te.near = F.near = U.near = ve, te.far = F.far = U.far = tt, (re !== te.near || he !== te.far) && (a.updateRenderState({
24189
+ let ve = Me.near, nt = Me.far;
24190
+ C.texture !== null && (C.depthNear > 0 && (ve = C.depthNear), C.depthFar > 0 && (nt = C.depthFar)), te.near = F.near = U.near = ve, te.far = F.far = U.far = nt, (re !== te.near || he !== te.far) && (a.updateRenderState({
24191
24191
  depthNear: te.near,
24192
24192
  depthFar: te.far
24193
24193
  }), re = te.near, he = te.far), te.layers.mask = Me.layers.mask | 6, U.layers.mask = te.layers.mask & 3, F.layers.mask = te.layers.mask & 5;
@@ -24197,8 +24197,8 @@ class jX extends f0 {
24197
24197
  V(ut[$e], lt);
24198
24198
  ut.length === 2 ? ze(te, U, F) : te.projectionMatrix.copy(U.projectionMatrix), oe(Me, te, lt);
24199
24199
  };
24200
- function oe(Me, ve, tt) {
24201
- tt === null ? Me.matrix.copy(ve.matrixWorld) : (Me.matrix.copy(tt.matrixWorld), Me.matrix.invert(), Me.matrix.multiply(ve.matrixWorld)), Me.matrix.decompose(Me.position, Me.quaternion, Me.scale), Me.updateMatrixWorld(!0), Me.projectionMatrix.copy(ve.projectionMatrix), Me.projectionMatrixInverse.copy(ve.projectionMatrixInverse), Me.isPerspectiveCamera && (Me.fov = m_ * 2 * Math.atan(1 / Me.projectionMatrix.elements[5]), Me.zoom = 1);
24200
+ function oe(Me, ve, nt) {
24201
+ nt === null ? Me.matrix.copy(ve.matrixWorld) : (Me.matrix.copy(nt.matrixWorld), Me.matrix.invert(), Me.matrix.multiply(ve.matrixWorld)), Me.matrix.decompose(Me.position, Me.quaternion, Me.scale), Me.updateMatrixWorld(!0), Me.projectionMatrix.copy(ve.projectionMatrix), Me.projectionMatrixInverse.copy(ve.projectionMatrixInverse), Me.isPerspectiveCamera && (Me.fov = m_ * 2 * Math.atan(1 / Me.projectionMatrix.elements[5]), Me.zoom = 1);
24202
24202
  }
24203
24203
  this.getCamera = function() {
24204
24204
  return te;
@@ -24214,15 +24214,15 @@ class jX extends f0 {
24214
24214
  }, this.getCameraTexture = function(Me) {
24215
24215
  return A[Me];
24216
24216
  };
24217
- let xe = null;
24217
+ let Se = null;
24218
24218
  function Re(Me, ve) {
24219
24219
  if (_ = ve.getViewerPose(y || c), T = ve, _ !== null) {
24220
- const tt = _.views;
24220
+ const nt = _.views;
24221
24221
  x !== null && (e.setRenderTargetFramebuffer(z, x.framebuffer), e.setRenderTarget(z));
24222
24222
  let lt = !1;
24223
- tt.length !== te.cameras.length && (te.cameras.length = 0, lt = !0);
24224
- for (let Qt = 0; Qt < tt.length; Qt++) {
24225
- const nn = tt[Qt];
24223
+ nt.length !== te.cameras.length && (te.cameras.length = 0, lt = !0);
24224
+ for (let Qt = 0; Qt < nt.length; Qt++) {
24225
+ const nn = nt[Qt];
24226
24226
  let bn = null;
24227
24227
  if (x !== null)
24228
24228
  bn = x.getViewport(nn);
@@ -24240,13 +24240,13 @@ class jX extends f0 {
24240
24240
  const ut = a.enabledFeatures;
24241
24241
  if (ut && ut.includes("depth-sensing") && a.depthUsage == "gpu-optimized" && w) {
24242
24242
  p = n.getBinding();
24243
- const Qt = p.getDepthInformation(tt[0]);
24243
+ const Qt = p.getDepthInformation(nt[0]);
24244
24244
  Qt && Qt.isValid && Qt.texture && C.init(Qt, a.renderState);
24245
24245
  }
24246
24246
  if (ut && ut.includes("camera-access") && w) {
24247
24247
  e.state.unbindTexture(), p = n.getBinding();
24248
- for (let Qt = 0; Qt < tt.length; Qt++) {
24249
- const nn = tt[Qt].camera;
24248
+ for (let Qt = 0; Qt < nt.length; Qt++) {
24249
+ const nn = nt[Qt].camera;
24250
24250
  if (nn) {
24251
24251
  let bn = A[nn];
24252
24252
  bn || (bn = new T6(), A[nn] = bn);
@@ -24256,15 +24256,15 @@ class jX extends f0 {
24256
24256
  }
24257
24257
  }
24258
24258
  }
24259
- for (let tt = 0; tt < B.length; tt++) {
24260
- const lt = j[tt], ut = B[tt];
24259
+ for (let nt = 0; nt < B.length; nt++) {
24260
+ const lt = j[nt], ut = B[nt];
24261
24261
  lt !== null && ut !== void 0 && ut.update(lt, ve, y || c);
24262
24262
  }
24263
- xe && xe(Me, ve), ve.detectedPlanes && n.dispatchEvent({ type: "planesdetected", data: ve }), T = null;
24263
+ Se && Se(Me, ve), ve.detectedPlanes && n.dispatchEvent({ type: "planesdetected", data: ve }), T = null;
24264
24264
  }
24265
24265
  const Qe = new z6();
24266
24266
  Qe.setAnimationLoop(Re), this.setAnimationLoop = function(Me) {
24267
- xe = Me;
24267
+ Se = Me;
24268
24268
  }, this.dispose = function() {
24269
24269
  };
24270
24270
  }
@@ -25006,15 +25006,15 @@ class ZX {
25006
25006
  const X = new li(), K = new li();
25007
25007
  let ee = null;
25008
25008
  const Ae = new tn(0);
25009
- let ze = 0, V = t.width, oe = t.height, xe = 1, Re = null, Qe = null;
25009
+ let ze = 0, V = t.width, oe = t.height, Se = 1, Re = null, Qe = null;
25010
25010
  const Me = new li(0, 0, V, oe), ve = new li(0, 0, V, oe);
25011
- let tt = !1;
25011
+ let nt = !1;
25012
25012
  const lt = new oO();
25013
25013
  let ut = !1, $e = !1;
25014
- const On = new Pt(), Qt = new Te(), nn = new li(), bn = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
25014
+ const On = new Pt(), Qt = new xe(), nn = new li(), bn = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
25015
25015
  let yt = !1;
25016
25016
  function Tn() {
25017
- return re === null ? xe : 1;
25017
+ return re === null ? Se : 1;
25018
25018
  }
25019
25019
  let le = n;
25020
25020
  function fi($, ge) {
@@ -25039,26 +25039,26 @@ class ZX {
25039
25039
  } catch ($) {
25040
25040
  throw Kt("WebGLRenderer: " + $.message), $;
25041
25041
  }
25042
- let et, Ln, bt, J, P, pe, Ve, We, Pe, wt, ot, Et, kt, Ke, Je, mt, ht, st, H, q, _e, be, Fe, Ue;
25043
- function Se() {
25044
- et = new WG(le), et.init(), be = new FX(le, et), Ln = new FG(le, et, e, be), bt = new BX(le, et), Ln.reversedDepthBuffer && v && bt.buffers.depth.setReversed(!0), J = new QG(le), P = new EX(), pe = new PX(le, et, bt, P, Ln, be, J), Ve = new VG(U), We = new $G(U), Pe = new nH(le), Fe = new BG(le, Pe), wt = new ZG(le, Pe, J, Fe), ot = new ej(le, wt, Pe, J), H = new JG(le, Ln, pe), mt = new HG(P), Et = new SX(U, Ve, We, et, Ln, Fe, mt), kt = new qX(U, P), Ke = new MX(), Je = new OX(et), st = new IG(U, Ve, We, bt, ot, T, h), ht = new zX(U, ot, Ln), Ue = new YX(le, J, Ln, bt), q = new PG(le, et, J), _e = new KG(le, et, J), J.programs = Et.programs, U.capabilities = Ln, U.extensions = et, U.properties = P, U.renderLists = Ke, U.shadowMap = ht, U.state = bt, U.info = J;
25042
+ let tt, Ln, bt, J, P, pe, Ve, We, Pe, wt, ot, Et, kt, Ke, et, mt, ht, st, H, q, _e, be, Fe, Ue;
25043
+ function Ee() {
25044
+ tt = new WG(le), tt.init(), be = new FX(le, tt), Ln = new FG(le, tt, e, be), bt = new BX(le, tt), Ln.reversedDepthBuffer && v && bt.buffers.depth.setReversed(!0), J = new QG(le), P = new EX(), pe = new PX(le, tt, bt, P, Ln, be, J), Ve = new VG(U), We = new $G(U), Pe = new nH(le), Fe = new BG(le, Pe), wt = new ZG(le, Pe, J, Fe), ot = new ej(le, wt, Pe, J), H = new JG(le, Ln, pe), mt = new HG(P), Et = new SX(U, Ve, We, tt, Ln, Fe, mt), kt = new qX(U, P), Ke = new MX(), et = new OX(tt), st = new IG(U, Ve, We, bt, ot, T, h), ht = new zX(U, ot, Ln), Ue = new YX(le, J, Ln, bt), q = new PG(le, tt, J), _e = new KG(le, tt, J), J.programs = Et.programs, U.capabilities = Ln, U.extensions = tt, U.properties = P, U.renderLists = Ke, U.shadowMap = ht, U.state = bt, U.info = J;
25045
25045
  }
25046
- Se(), w !== jo && (Z = new nj(w, t.width, t.height, a, o));
25046
+ Ee(), w !== jo && (Z = new nj(w, t.width, t.height, a, o));
25047
25047
  const Xe = new jX(U, le);
25048
25048
  this.xr = Xe, this.getContext = function() {
25049
25049
  return le;
25050
25050
  }, this.getContextAttributes = function() {
25051
25051
  return le.getContextAttributes();
25052
25052
  }, this.forceContextLoss = function() {
25053
- const $ = et.get("WEBGL_lose_context");
25053
+ const $ = tt.get("WEBGL_lose_context");
25054
25054
  $ && $.loseContext();
25055
25055
  }, this.forceContextRestore = function() {
25056
- const $ = et.get("WEBGL_lose_context");
25056
+ const $ = tt.get("WEBGL_lose_context");
25057
25057
  $ && $.restoreContext();
25058
25058
  }, this.getPixelRatio = function() {
25059
- return xe;
25059
+ return Se;
25060
25060
  }, this.setPixelRatio = function($) {
25061
- $ !== void 0 && (xe = $, this.setSize(V, oe, !1));
25061
+ $ !== void 0 && (Se = $, this.setSize(V, oe, !1));
25062
25062
  }, this.getSize = function($) {
25063
25063
  return $.set(V, oe);
25064
25064
  }, this.setSize = function($, ge, Ne = !0) {
@@ -25066,11 +25066,11 @@ class ZX {
25066
25066
  Ft("WebGLRenderer: Can't change size while VR device is presenting.");
25067
25067
  return;
25068
25068
  }
25069
- V = $, oe = ge, t.width = Math.floor($ * xe), t.height = Math.floor(ge * xe), Ne === !0 && (t.style.width = $ + "px", t.style.height = ge + "px"), Z !== null && Z.setSize(t.width, t.height), this.setViewport(0, 0, $, ge);
25069
+ V = $, oe = ge, t.width = Math.floor($ * Se), t.height = Math.floor(ge * Se), Ne === !0 && (t.style.width = $ + "px", t.style.height = ge + "px"), Z !== null && Z.setSize(t.width, t.height), this.setViewport(0, 0, $, ge);
25070
25070
  }, this.getDrawingBufferSize = function($) {
25071
- return $.set(V * xe, oe * xe).floor();
25071
+ return $.set(V * Se, oe * Se).floor();
25072
25072
  }, this.setDrawingBufferSize = function($, ge, Ne) {
25073
- V = $, oe = ge, xe = Ne, t.width = Math.floor($ * Ne), t.height = Math.floor(ge * Ne), this.setViewport(0, 0, $, ge);
25073
+ V = $, oe = ge, Se = Ne, t.width = Math.floor($ * Ne), t.height = Math.floor(ge * Ne), this.setViewport(0, 0, $, ge);
25074
25074
  }, this.setEffects = function($) {
25075
25075
  if (w === jo) {
25076
25076
  console.error("THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.");
@@ -25089,15 +25089,15 @@ class ZX {
25089
25089
  }, this.getViewport = function($) {
25090
25090
  return $.copy(Me);
25091
25091
  }, this.setViewport = function($, ge, Ne, Oe) {
25092
- $.isVector4 ? Me.set($.x, $.y, $.z, $.w) : Me.set($, ge, Ne, Oe), bt.viewport(X.copy(Me).multiplyScalar(xe).round());
25092
+ $.isVector4 ? Me.set($.x, $.y, $.z, $.w) : Me.set($, ge, Ne, Oe), bt.viewport(X.copy(Me).multiplyScalar(Se).round());
25093
25093
  }, this.getScissor = function($) {
25094
25094
  return $.copy(ve);
25095
25095
  }, this.setScissor = function($, ge, Ne, Oe) {
25096
- $.isVector4 ? ve.set($.x, $.y, $.z, $.w) : ve.set($, ge, Ne, Oe), bt.scissor(K.copy(ve).multiplyScalar(xe).round());
25096
+ $.isVector4 ? ve.set($.x, $.y, $.z, $.w) : ve.set($, ge, Ne, Oe), bt.scissor(K.copy(ve).multiplyScalar(Se).round());
25097
25097
  }, this.getScissorTest = function() {
25098
- return tt;
25098
+ return nt;
25099
25099
  }, this.setScissorTest = function($) {
25100
- bt.setScissorTest(tt = $);
25100
+ bt.setScissorTest(nt = $);
25101
25101
  }, this.setOpaqueSort = function($) {
25102
25102
  Re = $;
25103
25103
  }, this.setTransparentSort = function($) {
@@ -25113,12 +25113,12 @@ class ZX {
25113
25113
  }, this.clear = function($ = !0, ge = !0, Ne = !0) {
25114
25114
  let Oe = 0;
25115
25115
  if ($) {
25116
- let Ee = !1;
25116
+ let Te = !1;
25117
25117
  if (re !== null) {
25118
25118
  const ft = re.texture.format;
25119
- Ee = C.has(ft);
25119
+ Te = C.has(ft);
25120
25120
  }
25121
- if (Ee) {
25121
+ if (Te) {
25122
25122
  const ft = re.texture.type, _t = A.has(ft), dt = st.getClearColor(), xt = st.getClearAlpha(), Mt = dt.r, It = dt.g, At = dt.b;
25123
25123
  _t ? (L[0] = Mt, L[1] = It, L[2] = At, L[3] = xt, le.clearBufferuiv(le.COLOR, 0, L)) : (N[0] = Mt, N[1] = It, N[2] = At, N[3] = xt, le.clearBufferiv(le.COLOR, 0, N));
25124
25124
  } else
@@ -25132,15 +25132,15 @@ class ZX {
25132
25132
  }, this.clearStencil = function() {
25133
25133
  this.clear(!1, !1, !0);
25134
25134
  }, this.dispose = function() {
25135
- t.removeEventListener("webglcontextlost", at, !1), t.removeEventListener("webglcontextrestored", rn, !1), t.removeEventListener("webglcontextcreationerror", sn, !1), st.dispose(), Ke.dispose(), Je.dispose(), P.dispose(), Ve.dispose(), We.dispose(), ot.dispose(), Fe.dispose(), Ue.dispose(), Et.dispose(), Xe.dispose(), Xe.removeEventListener("sessionstart", Cd), Xe.removeEventListener("sessionend", Ku), uo.stop();
25135
+ t.removeEventListener("webglcontextlost", at, !1), t.removeEventListener("webglcontextrestored", rn, !1), t.removeEventListener("webglcontextcreationerror", sn, !1), st.dispose(), Ke.dispose(), et.dispose(), P.dispose(), Ve.dispose(), We.dispose(), ot.dispose(), Fe.dispose(), Ue.dispose(), Et.dispose(), Xe.dispose(), Xe.removeEventListener("sessionstart", Cd), Xe.removeEventListener("sessionend", Ku), uo.stop();
25136
25136
  };
25137
25137
  function at($) {
25138
25138
  $.preventDefault(), ZN("WebGLRenderer: Context Lost."), F = !0;
25139
25139
  }
25140
25140
  function rn() {
25141
25141
  ZN("WebGLRenderer: Context Restored."), F = !1;
25142
- const $ = J.autoReset, ge = ht.enabled, Ne = ht.autoUpdate, Oe = ht.needsUpdate, Ee = ht.type;
25143
- Se(), J.autoReset = $, ht.enabled = ge, ht.autoUpdate = Ne, ht.needsUpdate = Oe, ht.type = Ee;
25142
+ const $ = J.autoReset, ge = ht.enabled, Ne = ht.autoUpdate, Oe = ht.needsUpdate, Te = ht.type;
25143
+ Ee(), J.autoReset = $, ht.enabled = ge, ht.autoUpdate = Ne, ht.needsUpdate = Oe, ht.type = Te;
25144
25144
  }
25145
25145
  function sn($) {
25146
25146
  Kt("WebGLRenderer: A WebGL context could not be created. Reason: ", $.statusMessage);
@@ -25158,9 +25158,9 @@ class ZX {
25158
25158
  Et.releaseProgram(Ne);
25159
25159
  }), $.isShaderMaterial && Et.releaseShaderCache($));
25160
25160
  }
25161
- this.renderBufferDirect = function($, ge, Ne, Oe, Ee, ft) {
25161
+ this.renderBufferDirect = function($, ge, Ne, Oe, Te, ft) {
25162
25162
  ge === null && (ge = bn);
25163
- const _t = Ee.isMesh && Ee.matrixWorld.determinant() < 0, dt = Bs($, ge, Ne, Oe, Ee);
25163
+ const _t = Te.isMesh && Te.matrixWorld.determinant() < 0, dt = Bs($, ge, Ne, Oe, Te);
25164
25164
  bt.setMaterial(Oe, _t);
25165
25165
  let xt = Ne.index, Mt = 1;
25166
25166
  if (Oe.wireframe === !0) {
@@ -25172,26 +25172,26 @@ class ZX {
25172
25172
  ft !== null && (Bt = Math.max(Bt, ft.start * Mt), Bn = Math.min(Bn, (ft.start + ft.count) * Mt)), xt !== null ? (Bt = Math.max(Bt, 0), Bn = Math.min(Bn, xt.count)) : At != null && (Bt = Math.max(Bt, 0), Bn = Math.min(Bn, At.count));
25173
25173
  const di = Bn - Bt;
25174
25174
  if (di < 0 || di === 1 / 0) return;
25175
- Fe.setup(Ee, Oe, dt, Ne, xt);
25175
+ Fe.setup(Te, Oe, dt, Ne, xt);
25176
25176
  let ci, qn = q;
25177
- if (xt !== null && (ci = Pe.get(xt), qn = _e, qn.setIndex(ci)), Ee.isMesh)
25177
+ if (xt !== null && (ci = Pe.get(xt), qn = _e, qn.setIndex(ci)), Te.isMesh)
25178
25178
  Oe.wireframe === !0 ? (bt.setLineWidth(Oe.wireframeLinewidth * Tn()), qn.setMode(le.LINES)) : qn.setMode(le.TRIANGLES);
25179
- else if (Ee.isLine) {
25179
+ else if (Te.isLine) {
25180
25180
  let Lt = Oe.linewidth;
25181
- Lt === void 0 && (Lt = 1), bt.setLineWidth(Lt * Tn()), Ee.isLineSegments ? qn.setMode(le.LINES) : Ee.isLineLoop ? qn.setMode(le.LINE_LOOP) : qn.setMode(le.LINE_STRIP);
25182
- } else Ee.isPoints ? qn.setMode(le.POINTS) : Ee.isSprite && qn.setMode(le.TRIANGLES);
25183
- if (Ee.isBatchedMesh)
25184
- if (Ee._multiDrawInstances !== null)
25185
- gS("WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), qn.renderMultiDrawInstances(Ee._multiDrawStarts, Ee._multiDrawCounts, Ee._multiDrawCount, Ee._multiDrawInstances);
25186
- else if (et.get("WEBGL_multi_draw"))
25187
- qn.renderMultiDraw(Ee._multiDrawStarts, Ee._multiDrawCounts, Ee._multiDrawCount);
25181
+ Lt === void 0 && (Lt = 1), bt.setLineWidth(Lt * Tn()), Te.isLineSegments ? qn.setMode(le.LINES) : Te.isLineLoop ? qn.setMode(le.LINE_LOOP) : qn.setMode(le.LINE_STRIP);
25182
+ } else Te.isPoints ? qn.setMode(le.POINTS) : Te.isSprite && qn.setMode(le.TRIANGLES);
25183
+ if (Te.isBatchedMesh)
25184
+ if (Te._multiDrawInstances !== null)
25185
+ gS("WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), qn.renderMultiDrawInstances(Te._multiDrawStarts, Te._multiDrawCounts, Te._multiDrawCount, Te._multiDrawInstances);
25186
+ else if (tt.get("WEBGL_multi_draw"))
25187
+ qn.renderMultiDraw(Te._multiDrawStarts, Te._multiDrawCounts, Te._multiDrawCount);
25188
25188
  else {
25189
- const Lt = Ee._multiDrawStarts, Yn = Ee._multiDrawCounts, Yt = Ee._multiDrawCount, fr = xt ? Pe.get(xt).bytesPerElement : 1, Ps = P.get(Oe).currentProgram.getUniforms();
25189
+ const Lt = Te._multiDrawStarts, Yn = Te._multiDrawCounts, Yt = Te._multiDrawCount, fr = xt ? Pe.get(xt).bytesPerElement : 1, Ps = P.get(Oe).currentProgram.getUniforms();
25190
25190
  for (let Xi = 0; Xi < Yt; Xi++)
25191
25191
  Ps.setValue(le, "_gl_DrawID", Xi), qn.render(Lt[Xi] / fr, Yn[Xi]);
25192
25192
  }
25193
- else if (Ee.isInstancedMesh)
25194
- qn.renderInstances(Bt, di, Ee.count);
25193
+ else if (Te.isInstancedMesh)
25194
+ qn.renderInstances(Bt, di, Te.count);
25195
25195
  else if (Ne.isInstancedBufferGeometry) {
25196
25196
  const Lt = Ne._maxInstanceCount !== void 0 ? Ne._maxInstanceCount : 1 / 0, Yn = Math.min(Ne.instanceCount, Lt);
25197
25197
  qn.renderInstances(Bt, di, Yn);
@@ -25202,38 +25202,38 @@ class ZX {
25202
25202
  $.transparent === !0 && $.side === md && $.forceSinglePass === !1 ? ($.side = ro, $.needsUpdate = !0, qc($, ge, Ne), $.side = Rp, $.needsUpdate = !0, qc($, ge, Ne), $.side = md) : qc($, ge, Ne);
25203
25203
  }
25204
25204
  this.compile = function($, ge, Ne = null) {
25205
- Ne === null && (Ne = $), B = Je.get(Ne), B.init(ge), Y.push(B), Ne.traverseVisible(function(Ee) {
25206
- Ee.isLight && Ee.layers.test(ge.layers) && (B.pushLight(Ee), Ee.castShadow && B.pushShadow(Ee));
25207
- }), $ !== Ne && $.traverseVisible(function(Ee) {
25208
- Ee.isLight && Ee.layers.test(ge.layers) && (B.pushLight(Ee), Ee.castShadow && B.pushShadow(Ee));
25205
+ Ne === null && (Ne = $), B = et.get(Ne), B.init(ge), Y.push(B), Ne.traverseVisible(function(Te) {
25206
+ Te.isLight && Te.layers.test(ge.layers) && (B.pushLight(Te), Te.castShadow && B.pushShadow(Te));
25207
+ }), $ !== Ne && $.traverseVisible(function(Te) {
25208
+ Te.isLight && Te.layers.test(ge.layers) && (B.pushLight(Te), Te.castShadow && B.pushShadow(Te));
25209
25209
  }), B.setupLights();
25210
25210
  const Oe = /* @__PURE__ */ new Set();
25211
- return $.traverse(function(Ee) {
25212
- if (!(Ee.isMesh || Ee.isPoints || Ee.isLine || Ee.isSprite))
25211
+ return $.traverse(function(Te) {
25212
+ if (!(Te.isMesh || Te.isPoints || Te.isLine || Te.isSprite))
25213
25213
  return;
25214
- const ft = Ee.material;
25214
+ const ft = Te.material;
25215
25215
  if (ft)
25216
25216
  if (Array.isArray(ft))
25217
25217
  for (let _t = 0; _t < ft.length; _t++) {
25218
25218
  const dt = ft[_t];
25219
- ls(dt, Ne, Ee), Oe.add(dt);
25219
+ ls(dt, Ne, Te), Oe.add(dt);
25220
25220
  }
25221
25221
  else
25222
- ls(ft, Ne, Ee), Oe.add(ft);
25222
+ ls(ft, Ne, Te), Oe.add(ft);
25223
25223
  }), B = Y.pop(), Oe;
25224
25224
  }, this.compileAsync = function($, ge, Ne = null) {
25225
25225
  const Oe = this.compile($, ge, Ne);
25226
- return new Promise((Ee) => {
25226
+ return new Promise((Te) => {
25227
25227
  function ft() {
25228
25228
  if (Oe.forEach(function(_t) {
25229
25229
  P.get(_t).currentProgram.isReady() && Oe.delete(_t);
25230
25230
  }), Oe.size === 0) {
25231
- Ee($);
25231
+ Te($);
25232
25232
  return;
25233
25233
  }
25234
25234
  setTimeout(ft, 10);
25235
25235
  }
25236
- et.get("KHR_parallel_shader_compile") !== null ? ft() : setTimeout(ft, 10);
25236
+ tt.get("KHR_parallel_shader_compile") !== null ? ft() : setTimeout(ft, 10);
25237
25237
  });
25238
25238
  };
25239
25239
  let qr = null;
@@ -25256,13 +25256,13 @@ class ZX {
25256
25256
  }
25257
25257
  if (F === !0) return;
25258
25258
  const Ne = Xe.enabled === !0 && Xe.isPresenting === !0, Oe = Z !== null && (re === null || Ne) && Z.begin(U, re);
25259
- if ($.matrixWorldAutoUpdate === !0 && $.updateMatrixWorld(), ge.parent === null && ge.matrixWorldAutoUpdate === !0 && ge.updateMatrixWorld(), Xe.enabled === !0 && Xe.isPresenting === !0 && (Z === null || Z.isCompositing() === !1) && (Xe.cameraAutoUpdate === !0 && Xe.updateCamera(ge), ge = Xe.getCamera()), $.isScene === !0 && $.onBeforeRender(U, $, ge, re), B = Je.get($, Y.length), B.init(ge), Y.push(B), On.multiplyMatrices(ge.projectionMatrix, ge.matrixWorldInverse), lt.setFromProjectionMatrix(On, Fu, ge.reversedDepth), $e = this.localClippingEnabled, ut = mt.init(this.clippingPlanes, $e), z = Ke.get($, j.length), z.init(), j.push(z), Xe.enabled === !0 && Xe.isPresenting === !0) {
25259
+ if ($.matrixWorldAutoUpdate === !0 && $.updateMatrixWorld(), ge.parent === null && ge.matrixWorldAutoUpdate === !0 && ge.updateMatrixWorld(), Xe.enabled === !0 && Xe.isPresenting === !0 && (Z === null || Z.isCompositing() === !1) && (Xe.cameraAutoUpdate === !0 && Xe.updateCamera(ge), ge = Xe.getCamera()), $.isScene === !0 && $.onBeforeRender(U, $, ge, re), B = et.get($, Y.length), B.init(ge), Y.push(B), On.multiplyMatrices(ge.projectionMatrix, ge.matrixWorldInverse), lt.setFromProjectionMatrix(On, Fu, ge.reversedDepth), $e = this.localClippingEnabled, ut = mt.init(this.clippingPlanes, $e), z = Ke.get($, j.length), z.init(), j.push(z), Xe.enabled === !0 && Xe.isPresenting === !0) {
25260
25260
  const _t = U.xr.getDepthSensingMesh();
25261
25261
  _t !== null && ba(_t, ge, -1 / 0, U.sortObjects);
25262
25262
  }
25263
25263
  ba($, ge, 0, U.sortObjects), z.finish(), U.sortObjects === !0 && z.sort(Re, Qe), yt = Xe.enabled === !1 || Xe.isPresenting === !1 || Xe.hasDepthSensing() === !1, yt && st.addToRenderList(z, $), this.info.render.frame++, ut === !0 && mt.beginShadows();
25264
- const Ee = B.state.shadowsArray;
25265
- if (ht.render(Ee, $, ge), ut === !0 && mt.endShadows(), this.info.autoReset === !0 && this.info.reset(), (Oe && Z.hasRenderPass()) === !1) {
25264
+ const Te = B.state.shadowsArray;
25265
+ if (ht.render(Te, $, ge), ut === !0 && mt.endShadows(), this.info.autoReset === !0 && this.info.reset(), (Oe && Z.hasRenderPass()) === !1) {
25266
25266
  const _t = z.opaque, dt = z.transmissive;
25267
25267
  if (B.setupLights(), ge.isArrayCamera) {
25268
25268
  const xt = ge.cameras;
@@ -25312,14 +25312,14 @@ class ZX {
25312
25312
  ba(ft[_t], ge, Ne, Oe);
25313
25313
  }
25314
25314
  function Xn($, ge, Ne, Oe) {
25315
- const { opaque: Ee, transmissive: ft, transparent: _t } = $;
25316
- B.setupLightsView(Ne), ut === !0 && mt.setGlobalState(U.clippingPlanes, Ne), Oe && bt.viewport(X.copy(Oe)), Ee.length > 0 && cs(Ee, ge, Ne), ft.length > 0 && cs(ft, ge, Ne), _t.length > 0 && cs(_t, ge, Ne), bt.buffers.depth.setTest(!0), bt.buffers.depth.setMask(!0), bt.buffers.color.setMask(!0), bt.setPolygonOffset(!1);
25315
+ const { opaque: Te, transmissive: ft, transparent: _t } = $;
25316
+ B.setupLightsView(Ne), ut === !0 && mt.setGlobalState(U.clippingPlanes, Ne), Oe && bt.viewport(X.copy(Oe)), Te.length > 0 && cs(Te, ge, Ne), ft.length > 0 && cs(ft, ge, Ne), _t.length > 0 && cs(_t, ge, Ne), bt.buffers.depth.setTest(!0), bt.buffers.depth.setMask(!0), bt.buffers.color.setMask(!0), bt.setPolygonOffset(!1);
25317
25317
  }
25318
25318
  function Er($, ge, Ne, Oe) {
25319
25319
  if ((Ne.isScene === !0 ? Ne.overrideMaterial : null) !== null)
25320
25320
  return;
25321
25321
  if (B.state.transmissionRenderTarget[Oe.id] === void 0) {
25322
- const Bt = et.has("EXT_color_buffer_half_float") || et.has("EXT_color_buffer_float");
25322
+ const Bt = tt.has("EXT_color_buffer_half_float") || tt.has("EXT_color_buffer_float");
25323
25323
  B.state.transmissionRenderTarget[Oe.id] = new Gu(1, 1, {
25324
25324
  generateMipmaps: !0,
25325
25325
  type: Bt ? _d : jo,
@@ -25338,7 +25338,7 @@ class ZX {
25338
25338
  const It = U.toneMapping;
25339
25339
  U.toneMapping = Vu;
25340
25340
  const At = Oe.viewport;
25341
- if (Oe.viewport !== void 0 && (Oe.viewport = void 0), B.setupLightsView(Oe), ut === !0 && mt.setGlobalState(U.clippingPlanes, Oe), cs($, Ne, Oe), pe.updateMultisampleRenderTarget(ft), pe.updateRenderTargetMipmap(ft), et.has("WEBGL_multisampled_render_to_texture") === !1) {
25341
+ if (Oe.viewport !== void 0 && (Oe.viewport = void 0), B.setupLightsView(Oe), ut === !0 && mt.setGlobalState(U.clippingPlanes, Oe), cs($, Ne, Oe), pe.updateMultisampleRenderTarget(ft), pe.updateRenderTargetMipmap(ft), tt.has("WEBGL_multisampled_render_to_texture") === !1) {
25342
25342
  let Bt = !1;
25343
25343
  for (let Bn = 0, di = ge.length; Bn < di; Bn++) {
25344
25344
  const ci = ge[Bn], { object: qn, geometry: Lt, material: Yn, group: Yt } = ci;
@@ -25353,18 +25353,18 @@ class ZX {
25353
25353
  }
25354
25354
  function cs($, ge, Ne) {
25355
25355
  const Oe = ge.isScene === !0 ? ge.overrideMaterial : null;
25356
- for (let Ee = 0, ft = $.length; Ee < ft; Ee++) {
25357
- const _t = $[Ee], { object: dt, geometry: xt, group: Mt } = _t;
25356
+ for (let Te = 0, ft = $.length; Te < ft; Te++) {
25357
+ const _t = $[Te], { object: dt, geometry: xt, group: Mt } = _t;
25358
25358
  let It = _t.material;
25359
25359
  It.allowOverride === !0 && Oe !== null && (It = Oe), dt.layers.test(Ne.layers) && Qu(dt, ge, Ne, xt, It, Mt);
25360
25360
  }
25361
25361
  }
25362
- function Qu($, ge, Ne, Oe, Ee, ft) {
25363
- $.onBeforeRender(U, ge, Ne, Oe, Ee, ft), $.modelViewMatrix.multiplyMatrices(Ne.matrixWorldInverse, $.matrixWorld), $.normalMatrix.getNormalMatrix($.modelViewMatrix), Ee.onBeforeRender(U, ge, Ne, Oe, $, ft), Ee.transparent === !0 && Ee.side === md && Ee.forceSinglePass === !1 ? (Ee.side = ro, Ee.needsUpdate = !0, U.renderBufferDirect(Ne, ge, Oe, Ee, $, ft), Ee.side = Rp, Ee.needsUpdate = !0, U.renderBufferDirect(Ne, ge, Oe, Ee, $, ft), Ee.side = md) : U.renderBufferDirect(Ne, ge, Oe, Ee, $, ft), $.onAfterRender(U, ge, Ne, Oe, Ee, ft);
25362
+ function Qu($, ge, Ne, Oe, Te, ft) {
25363
+ $.onBeforeRender(U, ge, Ne, Oe, Te, ft), $.modelViewMatrix.multiplyMatrices(Ne.matrixWorldInverse, $.matrixWorld), $.normalMatrix.getNormalMatrix($.modelViewMatrix), Te.onBeforeRender(U, ge, Ne, Oe, $, ft), Te.transparent === !0 && Te.side === md && Te.forceSinglePass === !1 ? (Te.side = ro, Te.needsUpdate = !0, U.renderBufferDirect(Ne, ge, Oe, Te, $, ft), Te.side = Rp, Te.needsUpdate = !0, U.renderBufferDirect(Ne, ge, Oe, Te, $, ft), Te.side = md) : U.renderBufferDirect(Ne, ge, Oe, Te, $, ft), $.onAfterRender(U, ge, Ne, Oe, Te, ft);
25364
25364
  }
25365
25365
  function qc($, ge, Ne) {
25366
25366
  ge.isScene !== !0 && (ge = bn);
25367
- const Oe = P.get($), Ee = B.state.lights, ft = B.state.shadowsArray, _t = Ee.state.version, dt = Et.getParameters($, Ee.state, ft, ge, Ne), xt = Et.getProgramCacheKey(dt);
25367
+ const Oe = P.get($), Te = B.state.lights, ft = B.state.shadowsArray, _t = Te.state.version, dt = Et.getParameters($, Te.state, ft, ge, Ne), xt = Et.getProgramCacheKey(dt);
25368
25368
  let Mt = Oe.programs;
25369
25369
  Oe.environment = $.isMeshStandardMaterial ? ge.environment : null, Oe.fog = ge.fog, Oe.envMap = ($.isMeshStandardMaterial ? We : Ve).get($.envMap || Oe.environment), Oe.envMapRotation = Oe.environment !== null && $.envMap === null ? ge.environmentRotation : $.envMapRotation, Mt === void 0 && ($.addEventListener("dispose", ur), Mt = /* @__PURE__ */ new Map(), Oe.programs = Mt);
25370
25370
  let It = Mt.get(xt);
@@ -25374,7 +25374,7 @@ class ZX {
25374
25374
  } else
25375
25375
  dt.uniforms = Et.getUniforms($), $.onBeforeCompile(dt, U), It = Et.acquireProgram(dt, xt), Mt.set(xt, It), Oe.uniforms = dt.uniforms;
25376
25376
  const At = Oe.uniforms;
25377
- return (!$.isShaderMaterial && !$.isRawShaderMaterial || $.clipping === !0) && (At.clippingPlanes = mt.uniform), Rd($, dt), Oe.needsLights = ec($), Oe.lightsStateVersion = _t, Oe.needsLights && (At.ambientLightColor.value = Ee.state.ambient, At.lightProbe.value = Ee.state.probe, At.directionalLights.value = Ee.state.directional, At.directionalLightShadows.value = Ee.state.directionalShadow, At.spotLights.value = Ee.state.spot, At.spotLightShadows.value = Ee.state.spotShadow, At.rectAreaLights.value = Ee.state.rectArea, At.ltc_1.value = Ee.state.rectAreaLTC1, At.ltc_2.value = Ee.state.rectAreaLTC2, At.pointLights.value = Ee.state.point, At.pointLightShadows.value = Ee.state.pointShadow, At.hemisphereLights.value = Ee.state.hemi, At.directionalShadowMap.value = Ee.state.directionalShadowMap, At.directionalShadowMatrix.value = Ee.state.directionalShadowMatrix, At.spotShadowMap.value = Ee.state.spotShadowMap, At.spotLightMatrix.value = Ee.state.spotLightMatrix, At.spotLightMap.value = Ee.state.spotLightMap, At.pointShadowMap.value = Ee.state.pointShadowMap, At.pointShadowMatrix.value = Ee.state.pointShadowMatrix), Oe.currentProgram = It, Oe.uniformsList = null, It;
25377
+ return (!$.isShaderMaterial && !$.isRawShaderMaterial || $.clipping === !0) && (At.clippingPlanes = mt.uniform), Rd($, dt), Oe.needsLights = ec($), Oe.lightsStateVersion = _t, Oe.needsLights && (At.ambientLightColor.value = Te.state.ambient, At.lightProbe.value = Te.state.probe, At.directionalLights.value = Te.state.directional, At.directionalLightShadows.value = Te.state.directionalShadow, At.spotLights.value = Te.state.spot, At.spotLightShadows.value = Te.state.spotShadow, At.rectAreaLights.value = Te.state.rectArea, At.ltc_1.value = Te.state.rectAreaLTC1, At.ltc_2.value = Te.state.rectAreaLTC2, At.pointLights.value = Te.state.point, At.pointLightShadows.value = Te.state.pointShadow, At.hemisphereLights.value = Te.state.hemi, At.directionalShadowMap.value = Te.state.directionalShadowMap, At.directionalShadowMatrix.value = Te.state.directionalShadowMatrix, At.spotShadowMap.value = Te.state.spotShadowMap, At.spotLightMatrix.value = Te.state.spotLightMatrix, At.spotLightMap.value = Te.state.spotLightMap, At.pointShadowMap.value = Te.state.pointShadowMap, At.pointShadowMatrix.value = Te.state.pointShadowMatrix), Oe.currentProgram = It, Oe.uniformsList = null, It;
25378
25378
  }
25379
25379
  function Vp($) {
25380
25380
  if ($.uniformsList === null) {
@@ -25387,7 +25387,7 @@ class ZX {
25387
25387
  const Ne = P.get($);
25388
25388
  Ne.outputColorSpace = ge.outputColorSpace, Ne.batching = ge.batching, Ne.batchingColor = ge.batchingColor, Ne.instancing = ge.instancing, Ne.instancingColor = ge.instancingColor, Ne.instancingMorph = ge.instancingMorph, Ne.skinning = ge.skinning, Ne.morphTargets = ge.morphTargets, Ne.morphNormals = ge.morphNormals, Ne.morphColors = ge.morphColors, Ne.morphTargetsCount = ge.morphTargetsCount, Ne.numClippingPlanes = ge.numClippingPlanes, Ne.numIntersection = ge.numClipIntersection, Ne.vertexAlphas = ge.vertexAlphas, Ne.vertexTangents = ge.vertexTangents, Ne.toneMapping = ge.toneMapping;
25389
25389
  }
25390
- function Bs($, ge, Ne, Oe, Ee) {
25390
+ function Bs($, ge, Ne, Oe, Te) {
25391
25391
  ge.isScene !== !0 && (ge = bn), pe.resetTextureUnits();
25392
25392
  const ft = ge.fog, _t = Oe.isMeshStandardMaterial ? ge.environment : null, dt = re === null ? U.outputColorSpace : re.isXRRenderTarget === !0 ? re.texture.colorSpace : p_, xt = (Oe.isMeshStandardMaterial ? We : Ve).get(Oe.envMap || _t), Mt = Oe.vertexColors === !0 && !!Ne.attributes.color && Ne.attributes.color.itemSize === 4, It = !!Ne.attributes.tangent && (!!Oe.normalMap || Oe.anisotropy > 0), At = !!Ne.morphAttributes.position, Bt = !!Ne.morphAttributes.normal, Bn = !!Ne.morphAttributes.color;
25393
25393
  let di = Vu;
@@ -25398,9 +25398,9 @@ class ZX {
25398
25398
  mt.setState(Oe, $, Mr);
25399
25399
  }
25400
25400
  let Yt = !1;
25401
- Oe.version === Lt.__version ? (Lt.needsLights && Lt.lightsStateVersion !== Yn.state.version || Lt.outputColorSpace !== dt || Ee.isBatchedMesh && Lt.batching === !1 || !Ee.isBatchedMesh && Lt.batching === !0 || Ee.isBatchedMesh && Lt.batchingColor === !0 && Ee.colorTexture === null || Ee.isBatchedMesh && Lt.batchingColor === !1 && Ee.colorTexture !== null || Ee.isInstancedMesh && Lt.instancing === !1 || !Ee.isInstancedMesh && Lt.instancing === !0 || Ee.isSkinnedMesh && Lt.skinning === !1 || !Ee.isSkinnedMesh && Lt.skinning === !0 || Ee.isInstancedMesh && Lt.instancingColor === !0 && Ee.instanceColor === null || Ee.isInstancedMesh && Lt.instancingColor === !1 && Ee.instanceColor !== null || Ee.isInstancedMesh && Lt.instancingMorph === !0 && Ee.morphTexture === null || Ee.isInstancedMesh && Lt.instancingMorph === !1 && Ee.morphTexture !== null || Lt.envMap !== xt || Oe.fog === !0 && Lt.fog !== ft || Lt.numClippingPlanes !== void 0 && (Lt.numClippingPlanes !== mt.numPlanes || Lt.numIntersection !== mt.numIntersection) || Lt.vertexAlphas !== Mt || Lt.vertexTangents !== It || Lt.morphTargets !== At || Lt.morphNormals !== Bt || Lt.morphColors !== Bn || Lt.toneMapping !== di || Lt.morphTargetsCount !== qn) && (Yt = !0) : (Yt = !0, Lt.__version = Oe.version);
25401
+ Oe.version === Lt.__version ? (Lt.needsLights && Lt.lightsStateVersion !== Yn.state.version || Lt.outputColorSpace !== dt || Te.isBatchedMesh && Lt.batching === !1 || !Te.isBatchedMesh && Lt.batching === !0 || Te.isBatchedMesh && Lt.batchingColor === !0 && Te.colorTexture === null || Te.isBatchedMesh && Lt.batchingColor === !1 && Te.colorTexture !== null || Te.isInstancedMesh && Lt.instancing === !1 || !Te.isInstancedMesh && Lt.instancing === !0 || Te.isSkinnedMesh && Lt.skinning === !1 || !Te.isSkinnedMesh && Lt.skinning === !0 || Te.isInstancedMesh && Lt.instancingColor === !0 && Te.instanceColor === null || Te.isInstancedMesh && Lt.instancingColor === !1 && Te.instanceColor !== null || Te.isInstancedMesh && Lt.instancingMorph === !0 && Te.morphTexture === null || Te.isInstancedMesh && Lt.instancingMorph === !1 && Te.morphTexture !== null || Lt.envMap !== xt || Oe.fog === !0 && Lt.fog !== ft || Lt.numClippingPlanes !== void 0 && (Lt.numClippingPlanes !== mt.numPlanes || Lt.numIntersection !== mt.numIntersection) || Lt.vertexAlphas !== Mt || Lt.vertexTangents !== It || Lt.morphTargets !== At || Lt.morphNormals !== Bt || Lt.morphColors !== Bn || Lt.toneMapping !== di || Lt.morphTargetsCount !== qn) && (Yt = !0) : (Yt = !0, Lt.__version = Oe.version);
25402
25402
  let fr = Lt.currentProgram;
25403
- Yt === !0 && (fr = qc(Oe, ge, Ee));
25403
+ Yt === !0 && (fr = qc(Oe, ge, Te));
25404
25404
  let Ps = !1, Xi = !1, Fs = !1;
25405
25405
  const Qn = fr.getUniforms(), Tr = Lt.uniforms;
25406
25406
  if (bt.useProgram(fr.program) && (Ps = !0, Xi = !0, Fs = !0), Oe.id !== he && (he = Oe.id, Xi = !0), Ps || me !== $) {
@@ -25412,14 +25412,14 @@ class ZX {
25412
25412
  2 / (Math.log($.far + 1) / Math.LN2)
25413
25413
  ), (Oe.isMeshPhongMaterial || Oe.isMeshToonMaterial || Oe.isMeshLambertMaterial || Oe.isMeshBasicMaterial || Oe.isMeshStandardMaterial || Oe.isShaderMaterial) && Qn.setValue(le, "isOrthographic", $.isOrthographicCamera === !0), me !== $ && (me = $, Xi = !0, Fs = !0);
25414
25414
  }
25415
- if (Lt.needsLights && (Yn.state.directionalShadowMap.length > 0 && Qn.setValue(le, "directionalShadowMap", Yn.state.directionalShadowMap, pe), Yn.state.spotShadowMap.length > 0 && Qn.setValue(le, "spotShadowMap", Yn.state.spotShadowMap, pe), Yn.state.pointShadowMap.length > 0 && Qn.setValue(le, "pointShadowMap", Yn.state.pointShadowMap, pe)), Ee.isSkinnedMesh) {
25416
- Qn.setOptional(le, Ee, "bindMatrix"), Qn.setOptional(le, Ee, "bindMatrixInverse");
25417
- const Mr = Ee.skeleton;
25415
+ if (Lt.needsLights && (Yn.state.directionalShadowMap.length > 0 && Qn.setValue(le, "directionalShadowMap", Yn.state.directionalShadowMap, pe), Yn.state.spotShadowMap.length > 0 && Qn.setValue(le, "spotShadowMap", Yn.state.spotShadowMap, pe), Yn.state.pointShadowMap.length > 0 && Qn.setValue(le, "pointShadowMap", Yn.state.pointShadowMap, pe)), Te.isSkinnedMesh) {
25416
+ Qn.setOptional(le, Te, "bindMatrix"), Qn.setOptional(le, Te, "bindMatrixInverse");
25417
+ const Mr = Te.skeleton;
25418
25418
  Mr && (Mr.boneTexture === null && Mr.computeBoneTexture(), Qn.setValue(le, "boneTexture", Mr.boneTexture, pe));
25419
25419
  }
25420
- Ee.isBatchedMesh && (Qn.setOptional(le, Ee, "batchingTexture"), Qn.setValue(le, "batchingTexture", Ee._matricesTexture, pe), Qn.setOptional(le, Ee, "batchingIdTexture"), Qn.setValue(le, "batchingIdTexture", Ee._indirectTexture, pe), Qn.setOptional(le, Ee, "batchingColorTexture"), Ee._colorsTexture !== null && Qn.setValue(le, "batchingColorTexture", Ee._colorsTexture, pe));
25420
+ Te.isBatchedMesh && (Qn.setOptional(le, Te, "batchingTexture"), Qn.setValue(le, "batchingTexture", Te._matricesTexture, pe), Qn.setOptional(le, Te, "batchingIdTexture"), Qn.setValue(le, "batchingIdTexture", Te._indirectTexture, pe), Qn.setOptional(le, Te, "batchingColorTexture"), Te._colorsTexture !== null && Qn.setValue(le, "batchingColorTexture", Te._colorsTexture, pe));
25421
25421
  const Di = Ne.morphAttributes;
25422
- if ((Di.position !== void 0 || Di.normal !== void 0 || Di.color !== void 0) && H.update(Ee, Ne, fr), (Xi || Lt.receiveShadow !== Ee.receiveShadow) && (Lt.receiveShadow = Ee.receiveShadow, Qn.setValue(le, "receiveShadow", Ee.receiveShadow)), Oe.isMeshGouraudMaterial && Oe.envMap !== null && (Tr.envMap.value = xt, Tr.flipEnvMap.value = xt.isCubeTexture && xt.isRenderTargetTexture === !1 ? -1 : 1), Oe.isMeshStandardMaterial && Oe.envMap === null && ge.environment !== null && (Tr.envMapIntensity.value = ge.environmentIntensity), Tr.dfgLUT !== void 0 && (Tr.dfgLUT.value = WX()), Xi && (Qn.setValue(le, "toneMappingExposure", U.toneMappingExposure), Lt.needsLights && Dd(Tr, Fs), ft && Oe.fog === !0 && kt.refreshFogUniforms(Tr, ft), kt.refreshMaterialUniforms(Tr, Oe, xe, oe, B.state.transmissionRenderTarget[$.id]), mw.upload(le, Vp(Lt), Tr, pe)), Oe.isShaderMaterial && Oe.uniformsNeedUpdate === !0 && (mw.upload(le, Vp(Lt), Tr, pe), Oe.uniformsNeedUpdate = !1), Oe.isSpriteMaterial && Qn.setValue(le, "center", Ee.center), Qn.setValue(le, "modelViewMatrix", Ee.modelViewMatrix), Qn.setValue(le, "normalMatrix", Ee.normalMatrix), Qn.setValue(le, "modelMatrix", Ee.matrixWorld), Oe.isShaderMaterial || Oe.isRawShaderMaterial) {
25422
+ if ((Di.position !== void 0 || Di.normal !== void 0 || Di.color !== void 0) && H.update(Te, Ne, fr), (Xi || Lt.receiveShadow !== Te.receiveShadow) && (Lt.receiveShadow = Te.receiveShadow, Qn.setValue(le, "receiveShadow", Te.receiveShadow)), Oe.isMeshGouraudMaterial && Oe.envMap !== null && (Tr.envMap.value = xt, Tr.flipEnvMap.value = xt.isCubeTexture && xt.isRenderTargetTexture === !1 ? -1 : 1), Oe.isMeshStandardMaterial && Oe.envMap === null && ge.environment !== null && (Tr.envMapIntensity.value = ge.environmentIntensity), Tr.dfgLUT !== void 0 && (Tr.dfgLUT.value = WX()), Xi && (Qn.setValue(le, "toneMappingExposure", U.toneMappingExposure), Lt.needsLights && Dd(Tr, Fs), ft && Oe.fog === !0 && kt.refreshFogUniforms(Tr, ft), kt.refreshMaterialUniforms(Tr, Oe, Se, oe, B.state.transmissionRenderTarget[$.id]), mw.upload(le, Vp(Lt), Tr, pe)), Oe.isShaderMaterial && Oe.uniformsNeedUpdate === !0 && (mw.upload(le, Vp(Lt), Tr, pe), Oe.uniformsNeedUpdate = !1), Oe.isSpriteMaterial && Qn.setValue(le, "center", Te.center), Qn.setValue(le, "modelViewMatrix", Te.modelViewMatrix), Qn.setValue(le, "normalMatrix", Te.normalMatrix), Qn.setValue(le, "modelMatrix", Te.matrixWorld), Oe.isShaderMaterial || Oe.isRawShaderMaterial) {
25423
25423
  const Mr = Oe.uniformsGroups;
25424
25424
  for (let Yr = 0, Od = Mr.length; Yr < Od; Yr++) {
25425
25425
  const fo = Mr[Yr];
@@ -25450,7 +25450,7 @@ class ZX {
25450
25450
  const tc = le.createFramebuffer();
25451
25451
  this.setRenderTarget = function($, ge = 0, Ne = 0) {
25452
25452
  re = $, Q = ge, te = Ne;
25453
- let Oe = null, Ee = !1, ft = !1;
25453
+ let Oe = null, Te = !1, ft = !1;
25454
25454
  if ($) {
25455
25455
  const dt = P.get($);
25456
25456
  if (dt.__useDefaultFramebuffer !== void 0) {
@@ -25471,10 +25471,10 @@ class ZX {
25471
25471
  const xt = $.texture;
25472
25472
  (xt.isData3DTexture || xt.isDataArrayTexture || xt.isCompressedArrayTexture) && (ft = !0);
25473
25473
  const Mt = P.get($).__webglFramebuffer;
25474
- $.isWebGLCubeRenderTarget ? (Array.isArray(Mt[ge]) ? Oe = Mt[ge][Ne] : Oe = Mt[ge], Ee = !0) : $.samples > 0 && pe.useMultisampledRTT($) === !1 ? Oe = P.get($).__webglMultisampledFramebuffer : Array.isArray(Mt) ? Oe = Mt[Ne] : Oe = Mt, X.copy($.viewport), K.copy($.scissor), ee = $.scissorTest;
25474
+ $.isWebGLCubeRenderTarget ? (Array.isArray(Mt[ge]) ? Oe = Mt[ge][Ne] : Oe = Mt[ge], Te = !0) : $.samples > 0 && pe.useMultisampledRTT($) === !1 ? Oe = P.get($).__webglMultisampledFramebuffer : Array.isArray(Mt) ? Oe = Mt[Ne] : Oe = Mt, X.copy($.viewport), K.copy($.scissor), ee = $.scissorTest;
25475
25475
  } else
25476
- X.copy(Me).multiplyScalar(xe).floor(), K.copy(ve).multiplyScalar(xe).floor(), ee = tt;
25477
- if (Ne !== 0 && (Oe = tc), bt.bindFramebuffer(le.FRAMEBUFFER, Oe) && bt.drawBuffers($, Oe), bt.viewport(X), bt.scissor(K), bt.setScissorTest(ee), Ee) {
25476
+ X.copy(Me).multiplyScalar(Se).floor(), K.copy(ve).multiplyScalar(Se).floor(), ee = nt;
25477
+ if (Ne !== 0 && (Oe = tc), bt.bindFramebuffer(le.FRAMEBUFFER, Oe) && bt.drawBuffers($, Oe), bt.viewport(X), bt.scissor(K), bt.setScissorTest(ee), Te) {
25478
25478
  const dt = P.get($.texture);
25479
25479
  le.framebufferTexture2D(le.FRAMEBUFFER, le.COLOR_ATTACHMENT0, le.TEXTURE_CUBE_MAP_POSITIVE_X + ge, dt.__webglTexture, Ne);
25480
25480
  } else if (ft) {
@@ -25488,7 +25488,7 @@ class ZX {
25488
25488
  le.framebufferTexture2D(le.FRAMEBUFFER, le.COLOR_ATTACHMENT0, le.TEXTURE_2D, dt.__webglTexture, Ne);
25489
25489
  }
25490
25490
  he = -1;
25491
- }, this.readRenderTargetPixels = function($, ge, Ne, Oe, Ee, ft, _t, dt = 0) {
25491
+ }, this.readRenderTargetPixels = function($, ge, Ne, Oe, Te, ft, _t, dt = 0) {
25492
25492
  if (!($ && $.isWebGLRenderTarget)) {
25493
25493
  Kt("WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
25494
25494
  return;
@@ -25506,18 +25506,18 @@ class ZX {
25506
25506
  Kt("WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
25507
25507
  return;
25508
25508
  }
25509
- ge >= 0 && ge <= $.width - Oe && Ne >= 0 && Ne <= $.height - Ee && ($.textures.length > 1 && le.readBuffer(le.COLOR_ATTACHMENT0 + dt), le.readPixels(ge, Ne, Oe, Ee, be.convert(It), be.convert(At), ft));
25509
+ ge >= 0 && ge <= $.width - Oe && Ne >= 0 && Ne <= $.height - Te && ($.textures.length > 1 && le.readBuffer(le.COLOR_ATTACHMENT0 + dt), le.readPixels(ge, Ne, Oe, Te, be.convert(It), be.convert(At), ft));
25510
25510
  } finally {
25511
25511
  const Mt = re !== null ? P.get(re).__webglFramebuffer : null;
25512
25512
  bt.bindFramebuffer(le.FRAMEBUFFER, Mt);
25513
25513
  }
25514
25514
  }
25515
- }, this.readRenderTargetPixelsAsync = async function($, ge, Ne, Oe, Ee, ft, _t, dt = 0) {
25515
+ }, this.readRenderTargetPixelsAsync = async function($, ge, Ne, Oe, Te, ft, _t, dt = 0) {
25516
25516
  if (!($ && $.isWebGLRenderTarget))
25517
25517
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
25518
25518
  let xt = P.get($).__webglFramebuffer;
25519
25519
  if ($.isWebGLCubeRenderTarget && _t !== void 0 && (xt = xt[_t]), xt)
25520
- if (ge >= 0 && ge <= $.width - Oe && Ne >= 0 && Ne <= $.height - Ee) {
25520
+ if (ge >= 0 && ge <= $.width - Oe && Ne >= 0 && Ne <= $.height - Te) {
25521
25521
  bt.bindFramebuffer(le.FRAMEBUFFER, xt);
25522
25522
  const Mt = $.textures[dt], It = Mt.format, At = Mt.type;
25523
25523
  if (!Ln.textureFormatReadable(It))
@@ -25525,7 +25525,7 @@ class ZX {
25525
25525
  if (!Ln.textureTypeReadable(At))
25526
25526
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");
25527
25527
  const Bt = le.createBuffer();
25528
- le.bindBuffer(le.PIXEL_PACK_BUFFER, Bt), le.bufferData(le.PIXEL_PACK_BUFFER, ft.byteLength, le.STREAM_READ), $.textures.length > 1 && le.readBuffer(le.COLOR_ATTACHMENT0 + dt), le.readPixels(ge, Ne, Oe, Ee, be.convert(It), be.convert(At), 0);
25528
+ le.bindBuffer(le.PIXEL_PACK_BUFFER, Bt), le.bufferData(le.PIXEL_PACK_BUFFER, ft.byteLength, le.STREAM_READ), $.textures.length > 1 && le.readBuffer(le.COLOR_ATTACHMENT0 + dt), le.readPixels(ge, Ne, Oe, Te, be.convert(It), be.convert(At), 0);
25529
25529
  const Bn = re !== null ? P.get(re).__webglFramebuffer : null;
25530
25530
  bt.bindFramebuffer(le.FRAMEBUFFER, Bn);
25531
25531
  const di = le.fenceSync(le.SYNC_GPU_COMMANDS_COMPLETE, 0);
@@ -25533,18 +25533,18 @@ class ZX {
25533
25533
  } else
25534
25534
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.");
25535
25535
  }, this.copyFramebufferToTexture = function($, ge = null, Ne = 0) {
25536
- const Oe = Math.pow(2, -Ne), Ee = Math.floor($.image.width * Oe), ft = Math.floor($.image.height * Oe), _t = ge !== null ? ge.x : 0, dt = ge !== null ? ge.y : 0;
25537
- pe.setTexture2D($, 0), le.copyTexSubImage2D(le.TEXTURE_2D, Ne, 0, 0, _t, dt, Ee, ft), bt.unbindTexture();
25536
+ const Oe = Math.pow(2, -Ne), Te = Math.floor($.image.width * Oe), ft = Math.floor($.image.height * Oe), _t = ge !== null ? ge.x : 0, dt = ge !== null ? ge.y : 0;
25537
+ pe.setTexture2D($, 0), le.copyTexSubImage2D(le.TEXTURE_2D, Ne, 0, 0, _t, dt, Te, ft), bt.unbindTexture();
25538
25538
  };
25539
25539
  const Yc = le.createFramebuffer(), nc = le.createFramebuffer();
25540
- this.copyTextureToTexture = function($, ge, Ne = null, Oe = null, Ee = 0, ft = null) {
25541
- ft === null && (Ee !== 0 ? (gS("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), ft = Ee, Ee = 0) : ft = 0);
25540
+ this.copyTextureToTexture = function($, ge, Ne = null, Oe = null, Te = 0, ft = null) {
25541
+ ft === null && (Te !== 0 ? (gS("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), ft = Te, Te = 0) : ft = 0);
25542
25542
  let _t, dt, xt, Mt, It, At, Bt, Bn, di;
25543
25543
  const ci = $.isCompressedTexture ? $.mipmaps[ft] : $.image;
25544
25544
  if (Ne !== null)
25545
25545
  _t = Ne.max.x - Ne.min.x, dt = Ne.max.y - Ne.min.y, xt = Ne.isBox3 ? Ne.max.z - Ne.min.z : 1, Mt = Ne.min.x, It = Ne.min.y, At = Ne.isBox3 ? Ne.min.z : 0;
25546
25546
  else {
25547
- const Di = Math.pow(2, -Ee);
25547
+ const Di = Math.pow(2, -Te);
25548
25548
  _t = Math.floor(ci.width * Di), dt = Math.floor(ci.height * Di), $.isDataArrayTexture ? xt = ci.depth : $.isData3DTexture ? xt = Math.floor(ci.depth * Di) : xt = 1, Mt = 0, It = 0, At = 0;
25549
25549
  }
25550
25550
  Oe !== null ? (Bt = Oe.x, Bn = Oe.y, di = Oe.z) : (Bt = 0, Bn = 0, di = 0);
@@ -25558,13 +25558,13 @@ class ZX {
25558
25558
  const Di = P.get($), Mr = P.get(ge), Yr = P.get(Di.__renderTarget), Od = P.get(Mr.__renderTarget);
25559
25559
  bt.bindFramebuffer(le.READ_FRAMEBUFFER, Yr.__webglFramebuffer), bt.bindFramebuffer(le.DRAW_FRAMEBUFFER, Od.__webglFramebuffer);
25560
25560
  for (let fo = 0; fo < xt; fo++)
25561
- Qn && (le.framebufferTextureLayer(le.READ_FRAMEBUFFER, le.COLOR_ATTACHMENT0, P.get($).__webglTexture, Ee, At + fo), le.framebufferTextureLayer(le.DRAW_FRAMEBUFFER, le.COLOR_ATTACHMENT0, P.get(ge).__webglTexture, ft, di + fo)), le.blitFramebuffer(Mt, It, _t, dt, Bt, Bn, _t, dt, le.DEPTH_BUFFER_BIT, le.NEAREST);
25561
+ Qn && (le.framebufferTextureLayer(le.READ_FRAMEBUFFER, le.COLOR_ATTACHMENT0, P.get($).__webglTexture, Te, At + fo), le.framebufferTextureLayer(le.DRAW_FRAMEBUFFER, le.COLOR_ATTACHMENT0, P.get(ge).__webglTexture, ft, di + fo)), le.blitFramebuffer(Mt, It, _t, dt, Bt, Bn, _t, dt, le.DEPTH_BUFFER_BIT, le.NEAREST);
25562
25562
  bt.bindFramebuffer(le.READ_FRAMEBUFFER, null), bt.bindFramebuffer(le.DRAW_FRAMEBUFFER, null);
25563
- } else if (Ee !== 0 || $.isRenderTargetTexture || P.has($)) {
25563
+ } else if (Te !== 0 || $.isRenderTargetTexture || P.has($)) {
25564
25564
  const Di = P.get($), Mr = P.get(ge);
25565
25565
  bt.bindFramebuffer(le.READ_FRAMEBUFFER, Yc), bt.bindFramebuffer(le.DRAW_FRAMEBUFFER, nc);
25566
25566
  for (let Yr = 0; Yr < xt; Yr++)
25567
- Qn ? le.framebufferTextureLayer(le.READ_FRAMEBUFFER, le.COLOR_ATTACHMENT0, Di.__webglTexture, Ee, At + Yr) : le.framebufferTexture2D(le.READ_FRAMEBUFFER, le.COLOR_ATTACHMENT0, le.TEXTURE_2D, Di.__webglTexture, Ee), Tr ? le.framebufferTextureLayer(le.DRAW_FRAMEBUFFER, le.COLOR_ATTACHMENT0, Mr.__webglTexture, ft, di + Yr) : le.framebufferTexture2D(le.DRAW_FRAMEBUFFER, le.COLOR_ATTACHMENT0, le.TEXTURE_2D, Mr.__webglTexture, ft), Ee !== 0 ? le.blitFramebuffer(Mt, It, _t, dt, Bt, Bn, _t, dt, le.COLOR_BUFFER_BIT, le.NEAREST) : Tr ? le.copyTexSubImage3D(Yn, ft, Bt, Bn, di + Yr, Mt, It, _t, dt) : le.copyTexSubImage2D(Yn, ft, Bt, Bn, Mt, It, _t, dt);
25567
+ Qn ? le.framebufferTextureLayer(le.READ_FRAMEBUFFER, le.COLOR_ATTACHMENT0, Di.__webglTexture, Te, At + Yr) : le.framebufferTexture2D(le.READ_FRAMEBUFFER, le.COLOR_ATTACHMENT0, le.TEXTURE_2D, Di.__webglTexture, Te), Tr ? le.framebufferTextureLayer(le.DRAW_FRAMEBUFFER, le.COLOR_ATTACHMENT0, Mr.__webglTexture, ft, di + Yr) : le.framebufferTexture2D(le.DRAW_FRAMEBUFFER, le.COLOR_ATTACHMENT0, le.TEXTURE_2D, Mr.__webglTexture, ft), Te !== 0 ? le.blitFramebuffer(Mt, It, _t, dt, Bt, Bn, _t, dt, le.COLOR_BUFFER_BIT, le.NEAREST) : Tr ? le.copyTexSubImage3D(Yn, ft, Bt, Bn, di + Yr, Mt, It, _t, dt) : le.copyTexSubImage2D(Yn, ft, Bt, Bn, Mt, It, _t, dt);
25568
25568
  bt.bindFramebuffer(le.READ_FRAMEBUFFER, null), bt.bindFramebuffer(le.DRAW_FRAMEBUFFER, null);
25569
25569
  } else
25570
25570
  Tr ? $.isDataTexture || $.isData3DTexture ? le.texSubImage3D(Yn, ft, Bt, Bn, di, _t, dt, xt, qn, Lt, ci.data) : ge.isCompressedArrayTexture ? le.compressedTexSubImage3D(Yn, ft, Bt, Bn, di, _t, dt, xt, qn, ci.data) : le.texSubImage3D(Yn, ft, Bt, Bn, di, _t, dt, xt, qn, Lt, ci) : $.isDataTexture ? le.texSubImage2D(le.TEXTURE_2D, ft, Bt, Bn, _t, dt, qn, Lt, ci.data) : $.isCompressedTexture ? le.compressedTexSubImage2D(le.TEXTURE_2D, ft, Bt, Bn, ci.width, ci.height, qn, ci.data) : le.texSubImage2D(le.TEXTURE_2D, ft, Bt, Bn, _t, dt, qn, Lt, ci);
@@ -25810,20 +25810,20 @@ var nq = /* @__PURE__ */ Jx(jS, 9, 1), iq = /* @__PURE__ */ Jx(q6, 5, 1), d3 = f
25810
25810
  }
25811
25811
  f && y(v + 131072);
25812
25812
  for (var ze = (1 << w) - 1, V = (1 << C) - 1, oe = p; ; oe = p) {
25813
- var X = x[h3(i, p) & ze], xe = X >> 4;
25813
+ var X = x[h3(i, p) & ze], Se = X >> 4;
25814
25814
  if (p += X & 15, p > A) {
25815
25815
  h && Uc(0);
25816
25816
  break;
25817
25817
  }
25818
- if (X || Uc(2), xe < 256)
25819
- t[v++] = xe;
25820
- else if (xe == 256) {
25818
+ if (X || Uc(2), Se < 256)
25819
+ t[v++] = Se;
25820
+ else if (Se == 256) {
25821
25821
  oe = p, x = null;
25822
25822
  break;
25823
25823
  } else {
25824
- var Re = xe - 254;
25825
- if (xe > 264) {
25826
- var Q = xe - 257, Qe = H6[Q];
25824
+ var Re = Se - 254;
25825
+ if (Se > 264) {
25826
+ var Q = Se - 257, Qe = H6[Q];
25827
25827
  Re = kc(i, p, (1 << Qe) - 1) + X6[Q], p += Qe;
25828
25828
  }
25829
25829
  var Me = T[h3(i, p) & V], ve = Me >> 4;
@@ -25838,13 +25838,13 @@ var nq = /* @__PURE__ */ Jx(jS, 9, 1), iq = /* @__PURE__ */ Jx(q6, 5, 1), d3 = f
25838
25838
  break;
25839
25839
  }
25840
25840
  f && y(v + 131072);
25841
- var tt = v + Re;
25841
+ var nt = v + Re;
25842
25842
  if (v < Ae) {
25843
- var lt = o - Ae, ut = Math.min(Ae, tt);
25843
+ var lt = o - Ae, ut = Math.min(Ae, nt);
25844
25844
  for (lt + v < 0 && Uc(3); v < ut; ++v)
25845
25845
  t[v] = n[lt + v];
25846
25846
  }
25847
- for (; v < tt; ++v)
25847
+ for (; v < nt; ++v)
25848
25848
  t[v] = t[v - Ae];
25849
25849
  }
25850
25850
  }
@@ -25977,7 +25977,7 @@ function vq(i) {
25977
25977
  const e = i.length, t = [], n = [];
25978
25978
  for (let o = 0; o < e; ++o) {
25979
25979
  const c = i[o];
25980
- t[o] = new Te(c.x, c.y, c.z), n[o] = c.w;
25980
+ t[o] = new xe(c.x, c.y, c.z), n[o] = c.w;
25981
25981
  }
25982
25982
  const a = [];
25983
25983
  for (let o = 0; o < e; ++o) {
@@ -26018,7 +26018,7 @@ class bq extends tF {
26018
26018
  * @param {Vector3} [optionalTarget] - The optional target vector the result is written to.
26019
26019
  * @return {Vector3} The position on the curve.
26020
26020
  */
26021
- getPoint(e, t = new Te()) {
26021
+ getPoint(e, t = new xe()) {
26022
26022
  const n = t, a = this.knots[this.startKnot] + e * (this.knots[this.endKnot] - this.knots[this.startKnot]), o = pq(this.degree, this.knots, this.controlPoints, a);
26023
26023
  return o.w !== 1 && o.divideScalar(o.w), n.set(o.x, o.y, o.z);
26024
26024
  }
@@ -26029,7 +26029,7 @@ class bq extends tF {
26029
26029
  * @param {Vector3} [optionalTarget] - The optional target vector the result is written to.
26030
26030
  * @return {Vector3} The tangent vector.
26031
26031
  */
26032
- getTangent(e, t = new Te()) {
26032
+ getTangent(e, t = new xe()) {
26033
26033
  const n = t, a = this.knots[0] + e * (this.knots[this.knots.length - 1] - this.knots[0]), o = _q(this.degree, this.knots, this.controlPoints, a, 1);
26034
26034
  return n.copy(o[1]).normalize(), n;
26035
26035
  }
@@ -26556,7 +26556,7 @@ class Sq {
26556
26556
  const o = Cn.Objects.Model[a.ID];
26557
26557
  if ("Lcl_Translation" in o) {
26558
26558
  const c = o.Lcl_Translation.value;
26559
- e.target !== void 0 ? (e.target.position.fromArray(c), Ns.add(e.target)) : e.lookAt(new Te().fromArray(c));
26559
+ e.target !== void 0 ? (e.target.position.fromArray(c), Ns.add(e.target)) : e.lookAt(new xe().fromArray(c));
26560
26560
  }
26561
26561
  }
26562
26562
  });
@@ -26739,7 +26739,7 @@ class Eq {
26739
26739
  }
26740
26740
  // See https://www.khronos.org/opengl/wiki/Calculating_a_Surface_Normal
26741
26741
  getNormalNewell(e) {
26742
- const t = new Te(0, 0, 0);
26742
+ const t = new xe(0, 0, 0);
26743
26743
  for (let n = 0; n < e.length; n++) {
26744
26744
  const a = e[n], o = e[(n + 1) % e.length];
26745
26745
  t.x += (a.y - o.y) * (a.z + o.z), t.y += (a.z - o.z) * (a.x + o.x), t.z += (a.x - o.x) * (a.y + o.y);
@@ -26747,7 +26747,7 @@ class Eq {
26747
26747
  return t.normalize(), t;
26748
26748
  }
26749
26749
  getNormalTangentAndBitangent(e) {
26750
- const t = this.getNormalNewell(e), a = (Math.abs(t.z) > 0.5 ? new Te(0, 1, 0) : new Te(0, 0, 1)).cross(t).normalize(), o = t.clone().cross(a).normalize();
26750
+ const t = this.getNormalNewell(e), a = (Math.abs(t.z) > 0.5 ? new xe(0, 1, 0) : new xe(0, 0, 1)).cross(t).normalize(), o = t.clone().cross(a).normalize();
26751
26751
  return {
26752
26752
  normal: t,
26753
26753
  tangent: a,
@@ -26767,7 +26767,7 @@ class Eq {
26767
26767
  const v = [], x = t.baseVertexPositions || t.vertexPositions;
26768
26768
  for (let A = 0; A < n.length; A += 3)
26769
26769
  v.push(
26770
- new Te(
26770
+ new xe(
26771
26771
  x[n[A]],
26772
26772
  x[n[A + 1]],
26773
26773
  x[n[A + 2]]
@@ -27021,7 +27021,7 @@ class Tq {
27021
27021
  }
27022
27022
  generateTracks(e) {
27023
27023
  const t = [];
27024
- let n = new Te(), a = new Te();
27024
+ let n = new xe(), a = new xe();
27025
27025
  if (e.transform && e.transform.decompose(n, new Ba(), a), n = n.toArray(), a = a.toArray(), e.T !== void 0 && Object.keys(e.T.curves).length > 0) {
27026
27026
  const o = this.generateVectorTrack(e.modelName, e.T.curves, n, "position");
27027
27027
  o !== void 0 && t.push(o);
@@ -27518,7 +27518,7 @@ function XM(i, e, t, n) {
27518
27518
  const o = a * n.dataSize, c = o + n.dataSize;
27519
27519
  return Lq(Dq, n.buffer, o, c);
27520
27520
  }
27521
- const p3 = new ta(), Fv = new Te();
27521
+ const p3 = new ta(), Fv = new xe();
27522
27522
  function W6(i) {
27523
27523
  const e = new Pt(), t = new Pt(), n = new Pt(), a = new Pt(), o = new Pt(), c = new Pt(), f = new Pt(), h = new Pt(), y = new Pt(), _ = new Pt(), p = new Pt(), v = new Pt(), x = i.inheritType ? i.inheritType : 0;
27524
27524
  i.translation && e.setPosition(Fv.fromArray(i.translation));
@@ -27546,7 +27546,7 @@ function W6(i) {
27546
27546
  else if (x === 1)
27547
27547
  B.copy(C).multiply(N).multiply(w).multiply(z);
27548
27548
  else {
27549
- const te = new Pt().scale(new Te().setFromMatrixScale(p)).clone().invert(), re = N.clone().multiply(te);
27549
+ const te = new Pt().scale(new xe().setFromMatrixScale(p)).clone().invert(), re = N.clone().multiply(te);
27550
27550
  B.copy(C).multiply(w).multiply(re).multiply(z);
27551
27551
  }
27552
27552
  const j = y.clone().invert(), Y = c.clone().invert();
@@ -31889,8 +31889,8 @@ var fk, bp, a_, CO, jg, dk, RO, VY = function() {
31889
31889
  var n = e._gsap || new Rz(e);
31890
31890
  if ("x" in n && !t && !n.uncache)
31891
31891
  return n;
31892
- var a = e.style, o = n.scaleX < 0, c = "px", f = "deg", h = getComputedStyle(e), y = $o(e, lo) || "0", _, p, v, x, T, w, C, A, L, N, z, B, j, Y, Z, U, F, Q, te, re, he, me, X, K, ee, Ae, ze, V, oe, xe, Re, Qe;
31893
- return _ = p = v = w = C = A = L = N = z = 0, x = T = 1, n.svg = !!(e.getCTM && jz(e)), h.translate && ((h.translate !== "none" || h.scale !== "none" || h.rotate !== "none") && (a[tr] = (h.translate !== "none" ? "translate3d(" + (h.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (h.rotate !== "none" ? "rotate(" + h.rotate + ") " : "") + (h.scale !== "none" ? "scale(" + h.scale.split(" ").join(",") + ") " : "") + (h[tr] !== "none" ? h[tr] : "")), a.scale = a.rotate = a.translate = "none"), Y = OO(e, n.svg), n.svg && (n.uncache ? (ee = e.getBBox(), y = n.xOrigin - ee.x + "px " + (n.yOrigin - ee.y) + "px", K = "") : K = !t && e.getAttribute("data-svg-origin"), fD(e, K || y, !!K || n.originIsAbsolute, n.smooth !== !1, Y)), B = n.xOrigin || 0, j = n.yOrigin || 0, Y !== DS && (Q = Y[0], te = Y[1], re = Y[2], he = Y[3], _ = me = Y[4], p = X = Y[5], Y.length === 6 ? (x = Math.sqrt(Q * Q + te * te), T = Math.sqrt(he * he + re * re), w = Q || te ? Hv(te, Q) * Ig : 0, L = re || he ? Hv(re, he) * Ig + w : 0, L && (T *= Math.abs(Math.cos(L * s_))), n.svg && (_ -= B - (B * Q + j * re), p -= j - (B * te + j * he))) : (Qe = Y[6], xe = Y[7], ze = Y[8], V = Y[9], oe = Y[10], Re = Y[11], _ = Y[12], p = Y[13], v = Y[14], Z = Hv(Qe, oe), C = Z * Ig, Z && (U = Math.cos(-Z), F = Math.sin(-Z), K = me * U + ze * F, ee = X * U + V * F, Ae = Qe * U + oe * F, ze = me * -F + ze * U, V = X * -F + V * U, oe = Qe * -F + oe * U, Re = xe * -F + Re * U, me = K, X = ee, Qe = Ae), Z = Hv(-re, oe), A = Z * Ig, Z && (U = Math.cos(-Z), F = Math.sin(-Z), K = Q * U - ze * F, ee = te * U - V * F, Ae = re * U - oe * F, Re = he * F + Re * U, Q = K, te = ee, re = Ae), Z = Hv(te, Q), w = Z * Ig, Z && (U = Math.cos(Z), F = Math.sin(Z), K = Q * U + te * F, ee = me * U + X * F, te = te * U - Q * F, X = X * U - me * F, Q = K, me = ee), C && Math.abs(C) + Math.abs(w) > 359.9 && (C = w = 0, A = 180 - A), x = xr(Math.sqrt(Q * Q + te * te + re * re)), T = xr(Math.sqrt(X * X + Qe * Qe)), Z = Hv(me, X), L = Math.abs(Z) > 2e-4 ? Z * Ig : 0, z = Re ? 1 / (Re < 0 ? -Re : Re) : 0), n.svg && (K = e.getAttribute("transform"), n.forceCSS = e.setAttribute("transform", "") || !qz($o(e, tr)), K && e.setAttribute("transform", K))), Math.abs(L) > 90 && Math.abs(L) < 270 && (o ? (x *= -1, L += w <= 0 ? 180 : -180, w += w <= 0 ? 180 : -180) : (T *= -1, L += L <= 0 ? 180 : -180)), t = t || n.uncache, n.x = _ - ((n.xPercent = _ && (!t && n.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-_) ? -50 : 0))) ? e.offsetWidth * n.xPercent / 100 : 0) + c, n.y = p - ((n.yPercent = p && (!t && n.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-p) ? -50 : 0))) ? e.offsetHeight * n.yPercent / 100 : 0) + c, n.z = v + c, n.scaleX = xr(x), n.scaleY = xr(T), n.rotation = xr(w) + f, n.rotationX = xr(C) + f, n.rotationY = xr(A) + f, n.skewX = L + f, n.skewY = N + f, n.transformPerspective = z + c, (n.zOrigin = parseFloat(y.split(" ")[2]) || !t && n.zOrigin || 0) && (a[lo] = Pw(y)), n.xOffset = n.yOffset = 0, n.force3D = Ko.force3D, n.renderTransform = n.svg ? l$ : Vz ? Yz : o$, n.uncache = 0, n;
31892
+ var a = e.style, o = n.scaleX < 0, c = "px", f = "deg", h = getComputedStyle(e), y = $o(e, lo) || "0", _, p, v, x, T, w, C, A, L, N, z, B, j, Y, Z, U, F, Q, te, re, he, me, X, K, ee, Ae, ze, V, oe, Se, Re, Qe;
31893
+ return _ = p = v = w = C = A = L = N = z = 0, x = T = 1, n.svg = !!(e.getCTM && jz(e)), h.translate && ((h.translate !== "none" || h.scale !== "none" || h.rotate !== "none") && (a[tr] = (h.translate !== "none" ? "translate3d(" + (h.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (h.rotate !== "none" ? "rotate(" + h.rotate + ") " : "") + (h.scale !== "none" ? "scale(" + h.scale.split(" ").join(",") + ") " : "") + (h[tr] !== "none" ? h[tr] : "")), a.scale = a.rotate = a.translate = "none"), Y = OO(e, n.svg), n.svg && (n.uncache ? (ee = e.getBBox(), y = n.xOrigin - ee.x + "px " + (n.yOrigin - ee.y) + "px", K = "") : K = !t && e.getAttribute("data-svg-origin"), fD(e, K || y, !!K || n.originIsAbsolute, n.smooth !== !1, Y)), B = n.xOrigin || 0, j = n.yOrigin || 0, Y !== DS && (Q = Y[0], te = Y[1], re = Y[2], he = Y[3], _ = me = Y[4], p = X = Y[5], Y.length === 6 ? (x = Math.sqrt(Q * Q + te * te), T = Math.sqrt(he * he + re * re), w = Q || te ? Hv(te, Q) * Ig : 0, L = re || he ? Hv(re, he) * Ig + w : 0, L && (T *= Math.abs(Math.cos(L * s_))), n.svg && (_ -= B - (B * Q + j * re), p -= j - (B * te + j * he))) : (Qe = Y[6], Se = Y[7], ze = Y[8], V = Y[9], oe = Y[10], Re = Y[11], _ = Y[12], p = Y[13], v = Y[14], Z = Hv(Qe, oe), C = Z * Ig, Z && (U = Math.cos(-Z), F = Math.sin(-Z), K = me * U + ze * F, ee = X * U + V * F, Ae = Qe * U + oe * F, ze = me * -F + ze * U, V = X * -F + V * U, oe = Qe * -F + oe * U, Re = Se * -F + Re * U, me = K, X = ee, Qe = Ae), Z = Hv(-re, oe), A = Z * Ig, Z && (U = Math.cos(-Z), F = Math.sin(-Z), K = Q * U - ze * F, ee = te * U - V * F, Ae = re * U - oe * F, Re = he * F + Re * U, Q = K, te = ee, re = Ae), Z = Hv(te, Q), w = Z * Ig, Z && (U = Math.cos(Z), F = Math.sin(Z), K = Q * U + te * F, ee = me * U + X * F, te = te * U - Q * F, X = X * U - me * F, Q = K, me = ee), C && Math.abs(C) + Math.abs(w) > 359.9 && (C = w = 0, A = 180 - A), x = xr(Math.sqrt(Q * Q + te * te + re * re)), T = xr(Math.sqrt(X * X + Qe * Qe)), Z = Hv(me, X), L = Math.abs(Z) > 2e-4 ? Z * Ig : 0, z = Re ? 1 / (Re < 0 ? -Re : Re) : 0), n.svg && (K = e.getAttribute("transform"), n.forceCSS = e.setAttribute("transform", "") || !qz($o(e, tr)), K && e.setAttribute("transform", K))), Math.abs(L) > 90 && Math.abs(L) < 270 && (o ? (x *= -1, L += w <= 0 ? 180 : -180, w += w <= 0 ? 180 : -180) : (T *= -1, L += L <= 0 ? 180 : -180)), t = t || n.uncache, n.x = _ - ((n.xPercent = _ && (!t && n.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-_) ? -50 : 0))) ? e.offsetWidth * n.xPercent / 100 : 0) + c, n.y = p - ((n.yPercent = p && (!t && n.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-p) ? -50 : 0))) ? e.offsetHeight * n.yPercent / 100 : 0) + c, n.z = v + c, n.scaleX = xr(x), n.scaleY = xr(T), n.rotation = xr(w) + f, n.rotationX = xr(C) + f, n.rotationY = xr(A) + f, n.skewX = L + f, n.skewY = N + f, n.transformPerspective = z + c, (n.zOrigin = parseFloat(y.split(" ")[2]) || !t && n.zOrigin || 0) && (a[lo] = Pw(y)), n.xOffset = n.yOffset = 0, n.force3D = Ko.force3D, n.renderTransform = n.svg ? l$ : Vz ? Yz : o$, n.uncache = 0, n;
31894
31894
  }, Pw = function(e) {
31895
31895
  return (e = e.split(" "))[0] + " " + e[1];
31896
31896
  }, M3 = function(e, t, n) {
@@ -32194,7 +32194,7 @@ class m$ {
32194
32194
  async init() {
32195
32195
  this.mixer = new eH(this.model);
32196
32196
  const t = await (await fetch(`${this.assetsUrl}/animations/animation_assets.json`)).json();
32197
- await Promise.all(t.map((n) => this.loadAnimation(n))).then(() => {
32197
+ console.log(t), await Promise.all(t.map((n) => this.loadAnimation(n))).then(() => {
32198
32198
  this.actions.get("idle_1")?.animation.play(), this.activeActionName = "idle_1";
32199
32199
  });
32200
32200
  }
@@ -32211,17 +32211,15 @@ class m$ {
32211
32211
  }
32212
32212
  playKiss() {
32213
32213
  }
32214
- fadeToAction(e, t) {
32215
- const n = this.actions.get(this.activeActionName);
32214
+ fadeDuration = 0.2;
32215
+ fadeToAction(e) {
32216
+ const t = this.actions.get(this.activeActionName);
32216
32217
  this.activeActionName = e;
32217
- const a = this.actions.get(this.activeActionName);
32218
- n !== a && (n?.animation.fadeOut(t), n?.blendShapeScenario?.stop()), a.animation.reset().setEffectiveTimeScale(1).setEffectiveWeight(1).fadeIn(0).play(), a.blendShapeScenario?.play(), this.mixer.addEventListener("finished", (o) => {
32219
- a !== this.actions.get("idle_1") && !a.loop && this.setAction("idle_1");
32218
+ const n = this.actions.get(this.activeActionName);
32219
+ t !== n && (t?.animation.fadeOut(this.fadeDuration), t?.blendShapeScenario?.stop()), n.animation.reset().setEffectiveTimeScale(1).setEffectiveWeight(1).fadeIn(this.fadeDuration).play(), n.blendShapeScenario?.play(), this.mixer.addEventListener("finished", (a) => {
32220
+ n !== this.actions.get("idle_1") && !n.loop && this.fadeToAction("idle_1");
32220
32221
  });
32221
32222
  }
32222
- setAction(e) {
32223
- this.activeActionName = e, this.fadeToAction(e, 0.3);
32224
- }
32225
32223
  reset() {
32226
32224
  this.visemeDataIndex = 0;
32227
32225
  }
@@ -32303,8 +32301,8 @@ class m$ {
32303
32301
  }
32304
32302
  }
32305
32303
  class g$ {
32306
- constructor(e, t) {
32307
- this.canvas = e, this.config = t, this.renderer = new ZX({
32304
+ constructor(e, t, n) {
32305
+ this.canvas = e, this.videoContainer = t, this.config = n, this.renderer = new ZX({
32308
32306
  canvas: this.canvas,
32309
32307
  antialias: !0,
32310
32308
  powerPreference: "high-performance",
@@ -32328,9 +32326,16 @@ class g$ {
32328
32326
  body;
32329
32327
  animationManager;
32330
32328
  cameraParams = {
32331
- position: new Te(0, 140, 200),
32332
- lookAt: new Te(-7, 115, 0),
32333
- fov: 35
32329
+ zoomIn: {
32330
+ position: new xe(0, 140, 200),
32331
+ lookAt: new xe(-7, 115, 0),
32332
+ fov: 35
32333
+ },
32334
+ zoomOut: {
32335
+ position: new xe(0, 125, 200),
32336
+ lookAt: new xe(-7, 90, 0),
32337
+ fov: 48
32338
+ }
32334
32339
  };
32335
32340
  resolveAsset(e) {
32336
32341
  return new URL(e, this.config.assetsUrl).href;
@@ -32346,7 +32351,7 @@ class g$ {
32346
32351
  const n = new k6(0, 10);
32347
32352
  n.position.set(10, 10, 5), this.scene.add(n);
32348
32353
  const { width: a, height: o } = this.canvas.getBoundingClientRect(), c = new zs(65, a / o, 0.1, 1e3);
32349
- this.camera = c, this.setCamera();
32354
+ this.camera = c, this.setCamera(this.cameraParams.zoomIn);
32350
32355
  const f = await this.textureLoader.loadAsync(
32351
32356
  this.resolveAsset("/textures/bg1.jpg")
32352
32357
  );
@@ -32493,36 +32498,43 @@ class g$ {
32493
32498
  addGui() {
32494
32499
  this.gui.show();
32495
32500
  const e = {
32496
- excited: this.excited,
32497
- fixHair: this.fixHair,
32498
- genericSpeaking: () => this.speak("generic_speaking_1"),
32499
- genericSpeaking2: () => this.speak("generic_speaking_2"),
32500
- spin: this.spin,
32501
- waitingIdle: this.waitingIdle,
32502
- speak: () => this.speak("voice_1"),
32503
- kiss: this.kiss
32501
+ excited: () => this.playAction("excited", !1),
32502
+ fixHair: () => this.playAction("fix_hair", !1),
32503
+ genericSpeaking: () => this.playAction("generic_speaking_1", !0),
32504
+ genericSpeaking2: () => this.playAction("generic_speaking_2", !0),
32505
+ spin: () => this.playAction("spin", !1),
32506
+ waitingIdle: () => this.playAction("waiting_idle", !0),
32507
+ speak: () => this.playAction("voice_1", !0),
32508
+ kiss: () => this.playAction("kiss", !1),
32509
+ playVideoIdle1: () => this.playVideo("idle_1"),
32510
+ playVideoIdle2: () => this.playVideo("idle_2"),
32511
+ playVideoWave: () => this.playVideo("wave")
32504
32512
  };
32505
- this.gui.add(e, "excited"), this.gui.add(e, "fixHair"), this.gui.add(e, "genericSpeaking"), this.gui.add(e, "genericSpeaking2"), this.gui.add(e, "spin"), this.gui.add(e, "waitingIdle"), this.gui.add(e, "speak"), this.gui.add(e, "kiss");
32513
+ this.gui.add(e, "excited").name("Excited"), this.gui.add(e, "fixHair").name("Fix Hair"), this.gui.add(e, "genericSpeaking").name("Generic Speaking"), this.gui.add(e, "genericSpeaking2").name("Generic Speaking 2"), this.gui.add(e, "spin").name("Spin"), this.gui.add(e, "waitingIdle").name("Waiting Idle"), this.gui.add(e, "speak").name("Speak"), this.gui.add(e, "kiss").name("Kiss"), this.gui.add(e, "playVideoIdle1").name("Play Video Idle 1"), this.gui.add(e, "playVideoIdle2").name("Play Video Idle 2"), this.gui.add(e, "playVideoWave").name("Play Video Wave");
32506
32514
  }
32507
- tempLookAt = new Te();
32508
- setCamera() {
32509
- const { position: e, lookAt: t, fov: n } = this.cameraParams;
32515
+ tempLookAt = new xe();
32516
+ setCamera(e, t) {
32517
+ const { position: n, lookAt: a, fov: o } = e;
32510
32518
  Pu.to(this.camera.position, {
32511
- x: e.x,
32512
- y: e.y,
32513
- z: e.z
32519
+ x: n.x,
32520
+ y: n.y,
32521
+ z: n.z,
32522
+ duration: 0.5
32514
32523
  }), Pu.to(this.camera, {
32515
- fov: n,
32524
+ fov: o,
32525
+ duration: 0.5,
32516
32526
  onUpdate: () => {
32517
32527
  this.camera.updateProjectionMatrix();
32518
32528
  }
32519
32529
  }), Pu.to(this.tempLookAt, {
32520
- x: t.x,
32521
- y: t.y,
32522
- z: t.z,
32530
+ x: a.x,
32531
+ y: a.y,
32532
+ z: a.z,
32533
+ duration: 0.5,
32523
32534
  onUpdate: () => {
32524
32535
  this.camera.lookAt(this.tempLookAt);
32525
- }
32536
+ },
32537
+ onComplete: t
32526
32538
  });
32527
32539
  }
32528
32540
  setMaterialsByType(e) {
@@ -32546,32 +32558,22 @@ class g$ {
32546
32558
  const e = this.clock.getDelta(), t = this.sound.seek();
32547
32559
  this.animationManager.update(e, t), this.render();
32548
32560
  };
32549
- excited = () => {
32550
- this.animationManager.fadeToAction("excited", 0);
32551
- };
32552
- fixHair = () => {
32553
- this.animationManager.fadeToAction("fix_hair", 0);
32554
- };
32555
- kiss = () => {
32556
- this.animationManager.fadeToAction("kiss", 0);
32561
+ playAction = (e, t) => {
32562
+ this.shutDownVideo(), this.setCamera(this.cameraParams.zoomIn), this.animationManager.reset(), this.sound.stop(), t && this.sound.play(), this.animationManager.fadeToAction(e);
32557
32563
  };
32558
- shy = () => {
32559
- this.animationManager.fadeToAction("shy", 0.3);
32560
- };
32561
- spin = () => {
32562
- this.animationManager.fadeToAction("spin", 0);
32563
- };
32564
- waitingIdle = () => {
32565
- this.animationManager.fadeToAction("waiting_idle", 0.3);
32566
- };
32567
- speak = (e) => {
32568
- this.animationManager.reset(), this.sound.stop(), this.sound.play(), this.animationManager.fadeToAction(e, 0.3);
32569
- };
32570
- smileClosed = () => {
32571
- this.showcaseBlendShape("blendShape1.Smile_Closed");
32564
+ playVideo = (e) => {
32565
+ this.setCamera(this.cameraParams.zoomOut, () => {
32566
+ for (const n of this.videoContainer.children)
32567
+ n.style.visibility = "hidden";
32568
+ const t = this.videoContainer.querySelector(`#${e}`);
32569
+ t.style.visibility = "visible", t.play(), t.addEventListener("ended", () => {
32570
+ t.style.visibility = "hidden";
32571
+ });
32572
+ });
32572
32573
  };
32573
- smileOpen = () => {
32574
- this.showcaseBlendShape("blendShape1.Smile_Open");
32574
+ shutDownVideo = () => {
32575
+ for (const e of this.videoContainer.children)
32576
+ e.style.visibility = "hidden";
32575
32577
  };
32576
32578
  showcaseBlendShape(e) {
32577
32579
  this.sound.stop(), this.animationManager.showcaseBlendShape(e);
@@ -32906,7 +32908,7 @@ const x$ = (i, e) => {
32906
32908
  repeat: ["", "x", "y", "space", "round"]
32907
32909
  }], V = () => ["auto", "cover", "contain", iW, eW, {
32908
32910
  size: [Dt, Rt]
32909
- }], oe = () => [w3, Ix, Lg], xe = () => [
32911
+ }], oe = () => [w3, Ix, Lg], Se = () => [
32910
32912
  // Deprecated since Tailwind CSS v4.0.0
32911
32913
  "",
32912
32914
  "none",
@@ -32914,7 +32916,7 @@ const x$ = (i, e) => {
32914
32916
  y,
32915
32917
  Dt,
32916
32918
  Rt
32917
- ], Re = () => ["", An, Ix, Lg], Qe = () => ["solid", "dashed", "dotted", "double"], Me = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ve = () => [An, w3, Mk, Tk], tt = () => [
32919
+ ], Re = () => ["", An, Ix, Lg], Qe = () => ["solid", "dashed", "dotted", "double"], Me = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ve = () => [An, w3, Mk, Tk], nt = () => [
32918
32920
  // Deprecated since Tailwind CSS v4.0.0
32919
32921
  "",
32920
32922
  "none",
@@ -33959,105 +33961,105 @@ const x$ = (i, e) => {
33959
33961
  * @see https://tailwindcss.com/docs/border-radius
33960
33962
  */
33961
33963
  rounded: [{
33962
- rounded: xe()
33964
+ rounded: Se()
33963
33965
  }],
33964
33966
  /**
33965
33967
  * Border Radius Start
33966
33968
  * @see https://tailwindcss.com/docs/border-radius
33967
33969
  */
33968
33970
  "rounded-s": [{
33969
- "rounded-s": xe()
33971
+ "rounded-s": Se()
33970
33972
  }],
33971
33973
  /**
33972
33974
  * Border Radius End
33973
33975
  * @see https://tailwindcss.com/docs/border-radius
33974
33976
  */
33975
33977
  "rounded-e": [{
33976
- "rounded-e": xe()
33978
+ "rounded-e": Se()
33977
33979
  }],
33978
33980
  /**
33979
33981
  * Border Radius Top
33980
33982
  * @see https://tailwindcss.com/docs/border-radius
33981
33983
  */
33982
33984
  "rounded-t": [{
33983
- "rounded-t": xe()
33985
+ "rounded-t": Se()
33984
33986
  }],
33985
33987
  /**
33986
33988
  * Border Radius Right
33987
33989
  * @see https://tailwindcss.com/docs/border-radius
33988
33990
  */
33989
33991
  "rounded-r": [{
33990
- "rounded-r": xe()
33992
+ "rounded-r": Se()
33991
33993
  }],
33992
33994
  /**
33993
33995
  * Border Radius Bottom
33994
33996
  * @see https://tailwindcss.com/docs/border-radius
33995
33997
  */
33996
33998
  "rounded-b": [{
33997
- "rounded-b": xe()
33999
+ "rounded-b": Se()
33998
34000
  }],
33999
34001
  /**
34000
34002
  * Border Radius Left
34001
34003
  * @see https://tailwindcss.com/docs/border-radius
34002
34004
  */
34003
34005
  "rounded-l": [{
34004
- "rounded-l": xe()
34006
+ "rounded-l": Se()
34005
34007
  }],
34006
34008
  /**
34007
34009
  * Border Radius Start Start
34008
34010
  * @see https://tailwindcss.com/docs/border-radius
34009
34011
  */
34010
34012
  "rounded-ss": [{
34011
- "rounded-ss": xe()
34013
+ "rounded-ss": Se()
34012
34014
  }],
34013
34015
  /**
34014
34016
  * Border Radius Start End
34015
34017
  * @see https://tailwindcss.com/docs/border-radius
34016
34018
  */
34017
34019
  "rounded-se": [{
34018
- "rounded-se": xe()
34020
+ "rounded-se": Se()
34019
34021
  }],
34020
34022
  /**
34021
34023
  * Border Radius End End
34022
34024
  * @see https://tailwindcss.com/docs/border-radius
34023
34025
  */
34024
34026
  "rounded-ee": [{
34025
- "rounded-ee": xe()
34027
+ "rounded-ee": Se()
34026
34028
  }],
34027
34029
  /**
34028
34030
  * Border Radius End Start
34029
34031
  * @see https://tailwindcss.com/docs/border-radius
34030
34032
  */
34031
34033
  "rounded-es": [{
34032
- "rounded-es": xe()
34034
+ "rounded-es": Se()
34033
34035
  }],
34034
34036
  /**
34035
34037
  * Border Radius Top Left
34036
34038
  * @see https://tailwindcss.com/docs/border-radius
34037
34039
  */
34038
34040
  "rounded-tl": [{
34039
- "rounded-tl": xe()
34041
+ "rounded-tl": Se()
34040
34042
  }],
34041
34043
  /**
34042
34044
  * Border Radius Top Right
34043
34045
  * @see https://tailwindcss.com/docs/border-radius
34044
34046
  */
34045
34047
  "rounded-tr": [{
34046
- "rounded-tr": xe()
34048
+ "rounded-tr": Se()
34047
34049
  }],
34048
34050
  /**
34049
34051
  * Border Radius Bottom Right
34050
34052
  * @see https://tailwindcss.com/docs/border-radius
34051
34053
  */
34052
34054
  "rounded-br": [{
34053
- "rounded-br": xe()
34055
+ "rounded-br": Se()
34054
34056
  }],
34055
34057
  /**
34056
34058
  * Border Radius Bottom Left
34057
34059
  * @see https://tailwindcss.com/docs/border-radius
34058
34060
  */
34059
34061
  "rounded-bl": [{
34060
- "rounded-bl": xe()
34062
+ "rounded-bl": Se()
34061
34063
  }],
34062
34064
  /**
34063
34065
  * Border Width
@@ -34601,7 +34603,7 @@ const x$ = (i, e) => {
34601
34603
  * @see https://tailwindcss.com/docs/blur
34602
34604
  */
34603
34605
  blur: [{
34604
- blur: tt()
34606
+ blur: nt()
34605
34607
  }],
34606
34608
  /**
34607
34609
  * Brightness
@@ -34691,7 +34693,7 @@ const x$ = (i, e) => {
34691
34693
  * @see https://tailwindcss.com/docs/backdrop-blur
34692
34694
  */
34693
34695
  "backdrop-blur": [{
34694
- "backdrop-blur": tt()
34696
+ "backdrop-blur": nt()
34695
34697
  }],
34696
34698
  /**
34697
34699
  * Backdrop Brightness
@@ -36554,7 +36556,7 @@ function NI({
36554
36556
  className: e,
36555
36557
  ...t
36556
36558
  }) {
36557
- return /* @__PURE__ */ nt.jsxs(
36559
+ return /* @__PURE__ */ Je.jsxs(
36558
36560
  "div",
36559
36561
  {
36560
36562
  ...t,
@@ -36563,8 +36565,8 @@ function NI({
36563
36565
  e
36564
36566
  ),
36565
36567
  children: [
36566
- /* @__PURE__ */ nt.jsx(_Z, {}),
36567
- /* @__PURE__ */ nt.jsx("span", { children: i })
36568
+ /* @__PURE__ */ Je.jsx(_Z, {}),
36569
+ /* @__PURE__ */ Je.jsx("span", { children: i })
36568
36570
  ]
36569
36571
  }
36570
36572
  );
@@ -38138,7 +38140,7 @@ const jw = HI((i, e) => ({
38138
38140
  if (e().status === "loading" || e().status === "ready") return;
38139
38141
  i({ status: "loading", error: void 0, config: t });
38140
38142
  const n = JZ();
38141
- if (n && !eK(n)) {
38143
+ if (!t.customerId && n && !eK(n)) {
38142
38144
  i({ session: n, status: "ready" });
38143
38145
  return;
38144
38146
  }
@@ -38219,7 +38221,7 @@ const VI = Ze.createContext(void 0), iK = (i) => {
38219
38221
  } : null;
38220
38222
  }, rK = ({ children: i, config: e }) => {
38221
38223
  const t = iK(e);
38222
- return t ? /* @__PURE__ */ nt.jsx(VI.Provider, { value: t, children: i }) : null;
38224
+ return t ? /* @__PURE__ */ Je.jsx(VI.Provider, { value: t, children: i }) : null;
38223
38225
  }, HO = () => {
38224
38226
  const i = Ze.useContext(VI);
38225
38227
  if (i === void 0)
@@ -38233,21 +38235,21 @@ const VI = Ze.createContext(void 0), iK = (i) => {
38233
38235
  };
38234
38236
  function aK({ className: i }) {
38235
38237
  const [e, t] = Ze.useState(!1), { setMode: n } = wd(), { networkStatus: a } = HO(), o = Ze.useMemo(() => a === Ic.Unavailable ? o_.connectionFailed : a === Ic.Offline ? o_.offline : null, [a]);
38236
- return /* @__PURE__ */ nt.jsxs("div", { className: Jl("z-1 flex w-full flex-col items-center", i), children: [
38237
- o && /* @__PURE__ */ nt.jsx(NI, { className: "mb-4", message: o }),
38238
- /* @__PURE__ */ nt.jsxs("div", { className: "flex flex-col items-center gap-6", children: [
38239
- /* @__PURE__ */ nt.jsxs("div", { className: "flex flex-col items-center gap-3 text-white", children: [
38240
- /* @__PURE__ */ nt.jsx("span", { className: "text-xs font-medium text-white", children: e ? "Muted" : "Start talking" }),
38241
- /* @__PURE__ */ nt.jsx(
38238
+ return /* @__PURE__ */ Je.jsxs("div", { className: Jl("z-1 flex w-full flex-col items-center", i), children: [
38239
+ o && /* @__PURE__ */ Je.jsx(NI, { className: "mb-4", message: o }),
38240
+ /* @__PURE__ */ Je.jsxs("div", { className: "flex flex-col items-center gap-6", children: [
38241
+ /* @__PURE__ */ Je.jsxs("div", { className: "flex flex-col items-center gap-3 text-white", children: [
38242
+ /* @__PURE__ */ Je.jsx("span", { className: "text-xs font-medium text-white", children: e ? "Muted" : "Start talking" }),
38243
+ /* @__PURE__ */ Je.jsx(
38242
38244
  Ed,
38243
38245
  {
38244
38246
  className: `flex h-19 w-19 items-center justify-center rounded-full backdrop-blur-sm ${e ? "bg-black/30" : "bg-white/20"}`,
38245
38247
  onClick: () => t(!e),
38246
- children: e ? /* @__PURE__ */ nt.jsx(v$, {}) : /* @__PURE__ */ nt.jsx(y$, {})
38248
+ children: e ? /* @__PURE__ */ Je.jsx(v$, {}) : /* @__PURE__ */ Je.jsx(y$, {})
38247
38249
  }
38248
38250
  )
38249
38251
  ] }),
38250
- /* @__PURE__ */ nt.jsx(Ed, { className: "data-hover:text-purple-accent flex h-10 w-10 items-center justify-center rounded-full text-white backdrop-blur-sm data-hover:bg-white", children: /* @__PURE__ */ nt.jsx(_$, { onClick: () => n(i0.Text) }) })
38252
+ /* @__PURE__ */ Je.jsx(Ed, { className: "data-hover:text-purple-accent flex h-10 w-10 items-center justify-center rounded-full text-white backdrop-blur-sm data-hover:bg-white", children: /* @__PURE__ */ Je.jsx(_$, { onClick: () => n(i0.Text) }) })
38251
38253
  ] })
38252
38254
  ] });
38253
38255
  }
@@ -50886,23 +50888,23 @@ function XB(i) {
50886
50888
  return (i.author.type === Iu.Customer ? i.content.text : "") || o;
50887
50889
  }
50888
50890
  function die({ className: i }) {
50889
- return /* @__PURE__ */ nt.jsxs(
50891
+ return /* @__PURE__ */ Je.jsxs(
50890
50892
  "div",
50891
50893
  {
50892
50894
  role: "status",
50893
50895
  "aria-label": "AI is typing",
50894
50896
  className: Jl("chat-typing-indicator", i),
50895
50897
  children: [
50896
- /* @__PURE__ */ nt.jsx("span", { className: "chat-typing-indicator__dot chat-typing-indicator__dot_left" }),
50897
- /* @__PURE__ */ nt.jsx("span", { className: "chat-typing-indicator__dot chat-typing-indicator__dot_center" }),
50898
- /* @__PURE__ */ nt.jsx("span", { className: "chat-typing-indicator__dot chat-typing-indicator__dot_right" })
50898
+ /* @__PURE__ */ Je.jsx("span", { className: "chat-typing-indicator__dot chat-typing-indicator__dot_left" }),
50899
+ /* @__PURE__ */ Je.jsx("span", { className: "chat-typing-indicator__dot chat-typing-indicator__dot_center" }),
50900
+ /* @__PURE__ */ Je.jsx("span", { className: "chat-typing-indicator__dot chat-typing-indicator__dot_right" })
50899
50901
  ]
50900
50902
  }
50901
50903
  );
50902
50904
  }
50903
50905
  function hie({ message: i, ...e }) {
50904
50906
  const { author: t } = i, n = i.status === s2.Failed, a = XB(i);
50905
- return n ? null : /* @__PURE__ */ nt.jsx(
50907
+ return n ? null : /* @__PURE__ */ Je.jsx(
50906
50908
  "div",
50907
50909
  {
50908
50910
  ...e,
@@ -50917,7 +50919,7 @@ function hie({ message: i, ...e }) {
50917
50919
  "self-end": t.type === Iu.Customer
50918
50920
  }
50919
50921
  ),
50920
- children: a ? /* @__PURE__ */ nt.jsx("div", { className: "w-full break-all", dangerouslySetInnerHTML: { __html: a } }) : /* @__PURE__ */ nt.jsx(die, {})
50922
+ children: a ? /* @__PURE__ */ Je.jsx("div", { className: "w-full", dangerouslySetInnerHTML: { __html: a } }) : /* @__PURE__ */ Je.jsx(die, {})
50921
50923
  }
50922
50924
  );
50923
50925
  }
@@ -51059,33 +51061,33 @@ function yie() {
51059
51061
  const v = async () => {
51060
51062
  await f(t), n(""), a.current.style.height = "auto";
51061
51063
  };
51062
- return /* @__PURE__ */ nt.jsxs("div", { className: "z-1 mx-4 flex flex-col items-center", children: [
51063
- /* @__PURE__ */ nt.jsx(
51064
+ return /* @__PURE__ */ Je.jsxs("div", { className: "z-1 mx-4 flex flex-col items-center", children: [
51065
+ /* @__PURE__ */ Je.jsx(
51064
51066
  "div",
51065
51067
  {
51066
51068
  ref: c,
51067
51069
  className: "mb-8 flex w-full flex-col overflow-y-auto",
51068
51070
  style: { maxHeight: o + "px" },
51069
- children: /* @__PURE__ */ nt.jsxs("div", { className: "z-1 mt-16 flex flex-1 flex-col gap-4", children: [
51070
- y.map((x, T) => /* @__PURE__ */ nt.jsx(hie, { message: x }, x.id ?? T)),
51071
- p && /* @__PURE__ */ nt.jsx(NI, { message: p, className: "mt-2" })
51071
+ children: /* @__PURE__ */ Je.jsxs("div", { className: "z-1 mt-16 flex flex-1 flex-col gap-4", children: [
51072
+ y.map((x, T) => /* @__PURE__ */ Je.jsx(hie, { message: x }, x.id ?? T)),
51073
+ p && /* @__PURE__ */ Je.jsx(NI, { message: p, className: "mt-2" })
51072
51074
  ] })
51073
51075
  }
51074
51076
  ),
51075
- /* @__PURE__ */ nt.jsxs("div", { className: "bottom-0 flex w-full flex-row items-center justify-between gap-2 px-2", children: [
51076
- /* @__PURE__ */ nt.jsxs("div", { className: "group flex min-w-0 flex-1 flex-row items-center items-end justify-between gap-2", children: [
51077
- /* @__PURE__ */ nt.jsxs(
51077
+ /* @__PURE__ */ Je.jsxs("div", { className: "bottom-0 flex w-full flex-row items-center justify-between gap-2 px-2", children: [
51078
+ /* @__PURE__ */ Je.jsxs("div", { className: "group flex min-w-0 flex-1 flex-row items-center items-end justify-between gap-2", children: [
51079
+ /* @__PURE__ */ Je.jsxs(
51078
51080
  Ed,
51079
51081
  {
51080
- className: "data-hover:text-purple-accent flex h-10 w-[77px] flex-row items-center gap-1 rounded-full bg-white/20 px-3 py-2.5 text-sm leading-5 font-bold text-white backdrop-blur-sm transition-[width] group-[&:has(textarea:focus)]:w-10 data-hover:bg-white",
51082
+ className: "data-hover:text-purple-accent flex h-10 w-[77px] flex-row items-center gap-1 rounded-full bg-white/20 px-3 py-2.5 text-sm leading-5 font-bold text-white backdrop-blur-sm transition-[width] group-[&:has(textarea:focus)]:w-10 data-hover:bg-white overflow-hidden",
51081
51083
  onClick: () => i(i0.Voice),
51082
51084
  children: [
51083
- /* @__PURE__ */ nt.jsx(sK, {}),
51084
- /* @__PURE__ */ nt.jsx("span", { className: "absolute left-9 group-[&:has(textarea:focus)]:w-0 group-[&:has(textarea:focus)]:overflow-hidden group-[&:has(textarea:focus)]:opacity-0", children: "Talk" })
51085
+ /* @__PURE__ */ Je.jsx(sK, {}),
51086
+ /* @__PURE__ */ Je.jsx("span", { className: "absolute left-9 group-[&:has(textarea:focus)]:w-0 group-[&:has(textarea:focus)]:overflow-hidden group-[&:has(textarea:focus)]:opacity-0", children: "Talk" })
51085
51087
  ]
51086
51088
  }
51087
51089
  ),
51088
- /* @__PURE__ */ nt.jsx(
51090
+ /* @__PURE__ */ Je.jsx(
51089
51091
  vZ,
51090
51092
  {
51091
51093
  ref: a,
@@ -51108,15 +51110,15 @@ function yie() {
51108
51110
  }
51109
51111
  )
51110
51112
  ] }),
51111
- /* @__PURE__ */ nt.jsxs(
51113
+ /* @__PURE__ */ Je.jsxs(
51112
51114
  Ed,
51113
51115
  {
51114
51116
  disabled: !t,
51115
51117
  className: `${t && "group"} data-disabled:backdrop-blur-sm'} z-0 flex min-h-10 min-w-10 items-center justify-center rounded-full bg-white text-black data-disabled:bg-white/20 data-disabled:text-white/30`,
51116
51118
  onClick: v,
51117
51119
  children: [
51118
- /* @__PURE__ */ nt.jsx(oK, { className: "group-hover:hidden" }),
51119
- /* @__PURE__ */ nt.jsx(lK, { className: "hidden group-hover:block" })
51120
+ /* @__PURE__ */ Je.jsx(oK, { className: "group-hover:hidden" }),
51121
+ /* @__PURE__ */ Je.jsx(lK, { className: "hidden group-hover:block" })
51120
51122
  ]
51121
51123
  }
51122
51124
  )
@@ -51125,22 +51127,22 @@ function yie() {
51125
51127
  }
51126
51128
  const vie = (i) => /* @__PURE__ */ Ze.createElement("svg", { width: 17, height: 10, viewBox: "0 0 17 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ Ze.createElement("path", { d: "M12.0437 0C10.6549 0 9.4001 0.576997 8.50032 1.50511C7.60021 0.576997 6.3457 0 4.95659 0C2.21922 0 0 2.23866 0 5C0 7.76134 2.21922 10 4.95659 10C6.34539 10 7.60021 9.423 8.5 8.49489C9.39979 9.42332 10.6546 10 12.0434 10C14.7808 10 17 7.76134 17 5C17 2.23866 14.7811 0 12.0437 0ZM12.0437 8.68946C10.9495 8.68946 9.96861 8.20383 9.29844 7.43578C9.0267 7.45847 5.57799 7.8016 3.02115 5.58403L3.58585 4.92141C5.584 6.65431 8.30205 6.70224 9.68103 6.51374C11.1265 6.31629 12.4466 5.7607 13.4145 4.92141L12.5673 3.92748C11.8755 4.52748 10.9469 4.94888 9.91065 5.15016C9.91223 5.09936 9.99933 3.85815 9.29052 2.57284C9.96101 1.79968 10.9454 1.31054 12.0437 1.31054C14.0637 1.31054 15.7012 2.9623 15.7012 5C15.7012 7.0377 14.0637 8.68946 12.0437 8.68946Z", fill: "white" }));
51127
51129
  function _ie({ className: i, ...e }) {
51128
- return /* @__PURE__ */ nt.jsxs(
51130
+ return /* @__PURE__ */ Je.jsxs(
51129
51131
  "div",
51130
51132
  {
51131
51133
  ...e,
51132
51134
  className: Jl("flex flex-row gap-0.5 items-center justify-center text-white text-xs font-medium leading-4 mt-6", i),
51133
51135
  children: [
51134
51136
  "Powered by Bridge ",
51135
- /* @__PURE__ */ nt.jsx(vie, {})
51137
+ /* @__PURE__ */ Je.jsx(vie, {})
51136
51138
  ]
51137
51139
  }
51138
51140
  );
51139
51141
  }
51140
51142
  const bie = (i) => /* @__PURE__ */ Ze.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ Ze.createElement("path", { d: "M15.4238 13.8329C15.6352 14.0442 15.7539 14.3309 15.7539 14.6298C15.7539 14.9286 15.6352 15.2153 15.4238 15.4266C15.2125 15.638 14.9258 15.7567 14.627 15.7567C14.3281 15.7567 14.0414 15.638 13.8301 15.4266L7.87789 9.47258L1.92383 15.4248C1.71248 15.6361 1.42584 15.7548 1.12695 15.7548C0.828065 15.7548 0.541421 15.6361 0.330077 15.4248C0.118732 15.2134 4.45375e-09 14.9268 0 14.6279C-4.45375e-09 14.329 0.118732 14.0424 0.330077 13.831L6.28414 7.87883L0.331951 1.92476C0.120607 1.71342 0.00187504 1.42677 0.00187504 1.12789C0.00187505 0.829003 0.120607 0.542358 0.331951 0.331014C0.543296 0.11967 0.82994 0.000937346 1.12883 0.000937343C1.42771 0.00093734 1.71436 0.11967 1.9257 0.331014L7.87789 6.28508L13.832 0.330076C14.0433 0.118732 14.3299 -4.97944e-09 14.6288 0C14.9277 4.97944e-09 15.2144 0.118732 15.4257 0.330076C15.637 0.541421 15.7558 0.828065 15.7558 1.12695C15.7558 1.42584 15.637 1.71248 15.4257 1.92383L9.47164 7.87883L15.4238 13.8329Z" })), xie = (i) => /* @__PURE__ */ Ze.createElement("svg", { width: 16, height: 3, viewBox: "0 0 16 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ Ze.createElement("path", { d: "M9.375 1.5C9.375 1.79667 9.28703 2.08668 9.1222 2.33336C8.95738 2.58003 8.72312 2.77229 8.44903 2.88582C8.17494 2.99935 7.87334 3.02906 7.58237 2.97118C7.29139 2.9133 7.02412 2.77044 6.81434 2.56066C6.60456 2.35088 6.4617 2.08361 6.40382 1.79264C6.34594 1.50166 6.37565 1.20006 6.48918 0.925975C6.60271 0.651886 6.79497 0.417618 7.04165 0.252796C7.28832 0.0879736 7.57833 0 7.875 0C8.27283 0 8.65436 0.158036 8.93566 0.43934C9.21696 0.720645 9.375 1.10218 9.375 1.5ZM1.5 0C1.20333 0 0.913319 0.0879736 0.666646 0.252796C0.419972 0.417618 0.227713 0.651886 0.114181 0.925975C0.000649922 1.20006 -0.0290551 1.50166 0.0288228 1.79264C0.0867006 2.08361 0.229562 2.35088 0.439341 2.56066C0.649119 2.77044 0.916394 2.9133 1.20737 2.97118C1.49834 3.02906 1.79994 2.99935 2.07403 2.88582C2.34811 2.77229 2.58238 2.58003 2.74721 2.33336C2.91203 2.08668 3 1.79667 3 1.5C3 1.10218 2.84197 0.720645 2.56066 0.43934C2.27936 0.158036 1.89783 0 1.5 0ZM14.25 0C13.9533 0 13.6633 0.0879736 13.4166 0.252796C13.17 0.417618 12.9777 0.651886 12.8642 0.925975C12.7507 1.20006 12.7209 1.50166 12.7788 1.79264C12.8367 2.08361 12.9796 2.35088 13.1893 2.56066C13.3991 2.77044 13.6664 2.9133 13.9574 2.97118C14.2483 3.02906 14.5499 2.99935 14.824 2.88582C15.0981 2.77229 15.3324 2.58003 15.4972 2.33336C15.662 2.08668 15.75 1.79667 15.75 1.5C15.75 1.10218 15.592 0.720645 15.3107 0.43934C15.0294 0.158036 14.6478 0 14.25 0Z", fill: "white" }));
51141
51143
  function Sie({ className: i }) {
51142
- return /* @__PURE__ */ nt.jsxs("div", { className: Jl("transition-opacity tob-blur-parent", i), children: [
51143
- /* @__PURE__ */ nt.jsx(
51144
+ return /* @__PURE__ */ Je.jsxs("div", { className: Jl("transition-opacity tob-blur-parent", i), children: [
51145
+ /* @__PURE__ */ Je.jsx(
51144
51146
  "div",
51145
51147
  {
51146
51148
  className: "w-full h-full backdrop-blur-xs",
@@ -51153,7 +51155,7 @@ function Sie({ className: i }) {
51153
51155
  }
51154
51156
  }
51155
51157
  ),
51156
- /* @__PURE__ */ nt.jsx("div", { className: "absolute inset-0 bg-[linear-gradient(to_bottom,rgba(0,0,0,0.7)_0%,rgba(0,0,0,0.7)_20%,rgba(0,0,0,0.2)_60%,rgba(0,0,0,0)_100%)]" })
51158
+ /* @__PURE__ */ Je.jsx("div", { className: "absolute inset-0 bg-[linear-gradient(to_bottom,rgba(0,0,0,0.7)_0%,rgba(0,0,0,0.7)_20%,rgba(0,0,0,0.2)_60%,rgba(0,0,0,0)_100%)]" })
51157
51159
  ] });
51158
51160
  }
51159
51161
  function Eie({
@@ -51161,37 +51163,37 @@ function Eie({
51161
51163
  ...e
51162
51164
  }) {
51163
51165
  const { setOpen: t, setView: n, mode: a } = wd();
51164
- return /* @__PURE__ */ nt.jsxs("div", { ...e, className: Jl("", i), children: [
51165
- /* @__PURE__ */ nt.jsx(
51166
+ return /* @__PURE__ */ Je.jsxs("div", { ...e, className: Jl("", i), children: [
51167
+ /* @__PURE__ */ Je.jsx(
51166
51168
  Sie,
51167
51169
  {
51168
51170
  className: `absolute h-20 w-full opacity-${a == i0.Text ? 100 : 0}`
51169
51171
  }
51170
51172
  ),
51171
- /* @__PURE__ */ nt.jsxs("div", { className: "pointer-events-auto mx-4 mt-6 mb-4 flex flex-row justify-between", children: [
51172
- /* @__PURE__ */ nt.jsx(
51173
+ /* @__PURE__ */ Je.jsxs("div", { className: "pointer-events-auto mx-4 mt-6 mb-4 flex flex-row justify-between", children: [
51174
+ /* @__PURE__ */ Je.jsx(
51173
51175
  Ed,
51174
51176
  {
51175
51177
  className: "flex h-10 w-10 items-center justify-center rounded-full bg-white/20 text-white backdrop-blur-sm",
51176
51178
  onClick: () => t(!1),
51177
- children: /* @__PURE__ */ nt.jsx(bie, {})
51179
+ children: /* @__PURE__ */ Je.jsx(bie, {})
51178
51180
  }
51179
51181
  ),
51180
- /* @__PURE__ */ nt.jsx(
51182
+ /* @__PURE__ */ Je.jsx(
51181
51183
  Ed,
51182
51184
  {
51183
51185
  onClick: () => n("list"),
51184
51186
  "aria-label": "Open chat list",
51185
51187
  className: "flex h-10 w-10 items-center justify-center rounded-full bg-white/20 text-white backdrop-blur-sm",
51186
- children: /* @__PURE__ */ nt.jsx(xie, {})
51188
+ children: /* @__PURE__ */ Je.jsx(xie, {})
51187
51189
  }
51188
51190
  )
51189
51191
  ] })
51190
51192
  ] });
51191
51193
  }
51192
51194
  function Tie({ className: i }) {
51193
- return /* @__PURE__ */ nt.jsxs("div", { className: Jl("w-full h-21 absolute bottom-0 transition-opacity", i), children: [
51194
- /* @__PURE__ */ nt.jsx(
51195
+ return /* @__PURE__ */ Je.jsxs("div", { className: Jl("w-full h-21 absolute bottom-0 transition-opacity", i), children: [
51196
+ /* @__PURE__ */ Je.jsx(
51195
51197
  "div",
51196
51198
  {
51197
51199
  className: "backdrop-blur-xs h-full",
@@ -51204,15 +51206,15 @@ function Tie({ className: i }) {
51204
51206
  }
51205
51207
  }
51206
51208
  ),
51207
- /* @__PURE__ */ nt.jsx("div", { className: "absolute inset-0 bg-[linear-gradient(to_top,rgba(0,0,0,0.5)_0%,rgba(0,0,0,0.5)_15%,rgba(0,0,0,0)_100%)]" })
51209
+ /* @__PURE__ */ Je.jsx("div", { className: "absolute inset-0 bg-[linear-gradient(to_top,rgba(0,0,0,0.5)_0%,rgba(0,0,0,0.5)_15%,rgba(0,0,0,0)_100%)]" })
51208
51210
  ] });
51209
51211
  }
51210
51212
  function Mie({ className: i }) {
51211
- return /* @__PURE__ */ nt.jsx("div", { className: Jl("absolute top-0 w-full h-full bg-black/50 transition-opacity", i) });
51213
+ return /* @__PURE__ */ Je.jsx("div", { className: Jl("absolute top-0 w-full h-full bg-black/50 transition-opacity", i) });
51212
51214
  }
51213
51215
  function wie() {
51214
51216
  const { open: i } = wd();
51215
- return /* @__PURE__ */ nt.jsx("div", { className: `fixed z-51 right-[54px] box-content bottom-[145px] bg-purple-accent h-4 w-4 rounded-full outline-solid outline-2 outline-white transition-[opacity, position] duration-500 ${i ? "opacity-0" : "opacity-100"}` });
51217
+ return /* @__PURE__ */ Je.jsx("div", { className: `fixed z-51 right-[54px] box-content bottom-[145px] bg-purple-accent h-4 w-4 rounded-full outline-solid outline-2 outline-white transition-[opacity, position] duration-500 ${i ? "opacity-0" : "opacity-100"}` });
51216
51218
  }
51217
51219
  const Aie = (i) => /* @__PURE__ */ Ze.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ Ze.createElement("path", { d: "M15 18L9 12L15 6", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Cie = (i) => /* @__PURE__ */ Ze.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ Ze.createElement("path", { d: "M12 5V19M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Rie = (i) => /* @__PURE__ */ Ze.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ Ze.createElement("path", { d: "M9 18L15 12L9 6", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
51218
51220
  function Die(i) {
@@ -51236,7 +51238,7 @@ function Oie({
51236
51238
  onSelect: n
51237
51239
  }) {
51238
51240
  const a = `${t}/chat_trigger.png`, o = XB(i.message), c = fie(o);
51239
- return /* @__PURE__ */ nt.jsxs(
51241
+ return /* @__PURE__ */ Je.jsxs(
51240
51242
  Ed,
51241
51243
  {
51242
51244
  onClick: n,
@@ -51246,7 +51248,7 @@ function Oie({
51246
51248
  e && "bg-gray-100"
51247
51249
  ),
51248
51250
  children: [
51249
- /* @__PURE__ */ nt.jsx(
51251
+ /* @__PURE__ */ Je.jsx(
51250
51252
  "img",
51251
51253
  {
51252
51254
  src: a,
@@ -51254,11 +51256,11 @@ function Oie({
51254
51256
  className: "h-12 w-12 shrink-0 rounded-full object-cover"
51255
51257
  }
51256
51258
  ),
51257
- /* @__PURE__ */ nt.jsxs("div", { className: "min-w-0 flex-1", children: [
51258
- /* @__PURE__ */ nt.jsx("p", { className: "truncate text-base leading-6 font-medium text-black", children: c }),
51259
- /* @__PURE__ */ nt.jsx("p", { className: "text-sm leading-5 text-gray-500", children: Die(i.message.updatedAt) })
51259
+ /* @__PURE__ */ Je.jsxs("div", { className: "min-w-0 flex-1", children: [
51260
+ /* @__PURE__ */ Je.jsx("p", { className: "truncate text-base leading-6 font-medium text-black", children: c }),
51261
+ /* @__PURE__ */ Je.jsx("p", { className: "text-sm leading-5 text-gray-500", children: Die(i.message.updatedAt) })
51260
51262
  ] }),
51261
- /* @__PURE__ */ nt.jsx(Rie, { className: "h-5 w-5 shrink-0 text-gray-400" })
51263
+ /* @__PURE__ */ Je.jsx(Rie, { className: "h-5 w-5 shrink-0 text-gray-400" })
51262
51264
  ]
51263
51265
  }
51264
51266
  );
@@ -51280,7 +51282,7 @@ function Lie({
51280
51282
  function x(T) {
51281
51283
  y(T), t("chat"), a(i0.Text);
51282
51284
  }
51283
- return /* @__PURE__ */ nt.jsxs(
51285
+ return /* @__PURE__ */ Je.jsxs(
51284
51286
  "div",
51285
51287
  {
51286
51288
  ...e,
@@ -51289,32 +51291,32 @@ function Lie({
51289
51291
  i
51290
51292
  ),
51291
51293
  children: [
51292
- /* @__PURE__ */ nt.jsxs("header", { className: "flex shrink-0 items-center justify-between gap-4 px-4 py-4", children: [
51293
- /* @__PURE__ */ nt.jsx(
51294
+ /* @__PURE__ */ Je.jsxs("header", { className: "flex shrink-0 items-center justify-between gap-4 px-4 py-4", children: [
51295
+ /* @__PURE__ */ Je.jsx(
51294
51296
  Ed,
51295
51297
  {
51296
51298
  onClick: p,
51297
51299
  "aria-label": "Back to chat",
51298
51300
  className: "text-purple-accent flex h-10 w-10 shrink-0 items-center justify-center rounded-full transition-colors data-hover:bg-gray-100",
51299
- children: /* @__PURE__ */ nt.jsx(Aie, { className: "h-6 w-6" })
51301
+ children: /* @__PURE__ */ Je.jsx(Aie, { className: "h-6 w-6" })
51300
51302
  }
51301
51303
  ),
51302
- /* @__PURE__ */ nt.jsx("h1", { className: "text-lg leading-7 font-bold text-black", children: "Chats" }),
51303
- /* @__PURE__ */ nt.jsx(
51304
+ /* @__PURE__ */ Je.jsx("h1", { className: "text-lg leading-7 font-bold text-black", children: "Chats" }),
51305
+ /* @__PURE__ */ Je.jsx(
51304
51306
  Ed,
51305
51307
  {
51306
51308
  onClick: v,
51307
51309
  "aria-label": "New chat",
51308
51310
  className: "text-purple-accent flex h-10 w-10 shrink-0 items-center justify-center rounded-full transition-colors data-hover:bg-gray-100",
51309
- children: /* @__PURE__ */ nt.jsx(Cie, { className: "h-6 w-6" })
51311
+ children: /* @__PURE__ */ Je.jsx(Cie, { className: "h-6 w-6" })
51310
51312
  }
51311
51313
  )
51312
51314
  ] }),
51313
- /* @__PURE__ */ nt.jsx("div", { className: "no-scrollbar flex flex-1 flex-col overflow-y-auto", children: f.map((T) => /* @__PURE__ */ nt.jsx(
51315
+ /* @__PURE__ */ Je.jsx("div", { className: "no-scrollbar flex flex-1 flex-col overflow-y-auto", children: f.map((T) => /* @__PURE__ */ Je.jsx(
51314
51316
  "div",
51315
51317
  {
51316
51318
  className: "border-b border-gray-200 last:border-b-0",
51317
- children: /* @__PURE__ */ nt.jsx(
51319
+ children: /* @__PURE__ */ Je.jsx(
51318
51320
  Oie,
51319
51321
  {
51320
51322
  chat: {
@@ -51353,7 +51355,7 @@ const Nie = 640, qB = Ze.createContext(null), kie = ({
51353
51355
  isMobile: _,
51354
51356
  config: e
51355
51357
  };
51356
- return /* @__PURE__ */ nt.jsx(qB.Provider, { value: p, children: i });
51358
+ return /* @__PURE__ */ Je.jsx(qB.Provider, { value: p, children: i });
51357
51359
  };
51358
51360
  function wd() {
51359
51361
  const i = Ze.useContext(qB);
@@ -51379,15 +51381,15 @@ function r0() {
51379
51381
  return () => {
51380
51382
  h();
51381
51383
  };
51382
- }, [n?.channels.chat]), /* @__PURE__ */ nt.jsxs(r0.Container, { children: [
51383
- /* @__PURE__ */ nt.jsx(r0.Toggle, {}),
51384
- /* @__PURE__ */ nt.jsx(r0.Content, {})
51384
+ }, [n?.channels.chat]), /* @__PURE__ */ Je.jsxs(r0.Container, { children: [
51385
+ /* @__PURE__ */ Je.jsx(r0.Toggle, {}),
51386
+ /* @__PURE__ */ Je.jsx(r0.Content, {})
51385
51387
  ] });
51386
51388
  }
51387
51389
  r0.Container = function(i) {
51388
51390
  const { open: e, isMobile: t } = wd();
51389
- return /* @__PURE__ */ nt.jsxs(nt.Fragment, { children: [
51390
- /* @__PURE__ */ nt.jsx(
51391
+ return /* @__PURE__ */ Je.jsxs(Je.Fragment, { children: [
51392
+ /* @__PURE__ */ Je.jsx(
51391
51393
  "div",
51392
51394
  {
51393
51395
  className: `bridge-ai-chat-widget fixed z-50 overflow-hidden transition-all duration-500 ease-in-out ${e ? `${t ? "right-0 bottom-0 h-full w-full rounded-none" : "right-4 bottom-4 h-[calc(100%-32px)] w-[calc(100%-32px)] rounded-[40px]"} outline outline-black/9 sm:right-10 sm:bottom-10 sm:h-170 sm:w-90` : "right-10 bottom-10 h-33 w-33 rounded-[66px]"} `,
@@ -51397,18 +51399,18 @@ r0.Container = function(i) {
51397
51399
  children: i.children
51398
51400
  }
51399
51401
  ),
51400
- /* @__PURE__ */ nt.jsx(wie, {})
51402
+ /* @__PURE__ */ Je.jsx(wie, {})
51401
51403
  ] });
51402
51404
  };
51403
51405
  r0.Toggle = function() {
51404
51406
  const { open: i, setOpen: e, config: t } = wd();
51405
- return /* @__PURE__ */ nt.jsx(
51407
+ return /* @__PURE__ */ Je.jsx(
51406
51408
  "button",
51407
51409
  {
51408
51410
  onClick: () => e(!i),
51409
51411
  "aria-expanded": i,
51410
51412
  className: `absolute top-0 left-0 z-10 transition-opacity duration-500 ${i ? "pointer-events-none opacity-0" : "pointer-events-auto opacity-100"} `,
51411
- children: /* @__PURE__ */ nt.jsx(
51413
+ children: /* @__PURE__ */ Je.jsx(
51412
51414
  "img",
51413
51415
  {
51414
51416
  src: `${t.assetsUrl}/chat_trigger.png`,
@@ -51420,55 +51422,62 @@ r0.Toggle = function() {
51420
51422
  );
51421
51423
  };
51422
51424
  r0.Content = function() {
51423
- const { view: i, mode: e, config: t } = wd(), n = Ze.useRef(null), a = Ze.useRef(null);
51425
+ const { view: i, mode: e, config: t } = wd(), n = Ze.useRef(null), a = Ze.useRef(null), o = Ze.useRef(null);
51424
51426
  return Ze.useEffect(() => {
51425
- const o = n.current;
51426
- if (!o) return;
51427
- a.current = a.current ?? new g$(o, t);
51428
- const c = new ResizeObserver((f) => {
51429
- for (const h of f) {
51430
- const { width: y, height: _ } = h.contentRect;
51431
- a.current?.onResize(y, _);
51427
+ const c = n.current, f = a.current;
51428
+ if (!c || !f) return;
51429
+ o.current = o.current ?? new g$(c, f, t);
51430
+ const h = new ResizeObserver((y) => {
51431
+ for (const _ of y) {
51432
+ const { width: p, height: v } = _.contentRect;
51433
+ o.current?.onResize(p, v);
51432
51434
  }
51433
51435
  });
51434
- return c.observe(o), () => {
51435
- a.current = null, c.unobserve(o);
51436
+ return h.observe(c), () => {
51437
+ o.current = null, h.unobserve(c);
51436
51438
  };
51437
- }, [t.assetsUrl]), /* @__PURE__ */ nt.jsxs("div", { className: "relative flex h-full flex-col justify-end bg-gray-500", children: [
51438
- !t.noAIAvatar && /* @__PURE__ */ nt.jsx(
51439
- "canvas",
51440
- {
51441
- ref: n,
51442
- className: `absolute top-0 h-full w-full ${i === "list" ? "invisible" : ""}`,
51443
- "aria-hidden": i === "list"
51444
- }
51445
- ),
51446
- i === "list" ? /* @__PURE__ */ nt.jsx(Lie, { className: "h-full w-full" }) : /* @__PURE__ */ nt.jsxs(nt.Fragment, { children: [
51447
- /* @__PURE__ */ nt.jsxs("div", { className: "pointer-events-none absolute h-full w-full", children: [
51448
- /* @__PURE__ */ nt.jsx(
51439
+ }, [t.assetsUrl]), /* @__PURE__ */ Je.jsxs("div", { className: "relative flex h-full flex-col justify-end bg-gray-500", children: [
51440
+ t.AIAvatar && /* @__PURE__ */ Je.jsxs("div", { className: `absolute top-0 h-full w-full ${i === "list" ? "invisible" : ""}`, children: [
51441
+ /* @__PURE__ */ Je.jsx(
51442
+ "canvas",
51443
+ {
51444
+ ref: n,
51445
+ className: "absolute top-0 h-full w-full",
51446
+ "aria-hidden": i === "list"
51447
+ }
51448
+ ),
51449
+ /* @__PURE__ */ Je.jsxs("div", { ref: a, className: "absolute top-0 h-full w-full invisible", children: [
51450
+ /* @__PURE__ */ Je.jsx("video", { id: "idle_1", src: `${t.assetsUrl}/videos/idle_1.mp4`, className: "absolute top-0 min-w-full min-h-full object-cover" }),
51451
+ /* @__PURE__ */ Je.jsx("video", { id: "idle_2", src: `${t.assetsUrl}/videos/idle_2.mp4`, className: "absolute top-0 min-w-full min-h-full object-cover" }),
51452
+ /* @__PURE__ */ Je.jsx("video", { id: "wave", src: `${t.assetsUrl}/videos/wave.mp4`, className: "absolute top-0 min-w-full min-h-full object-cover" })
51453
+ ] })
51454
+ ] }),
51455
+ i === "list" ? /* @__PURE__ */ Je.jsx(Lie, { className: "h-full w-full" }) : /* @__PURE__ */ Je.jsxs(Je.Fragment, { children: [
51456
+ /* @__PURE__ */ Je.jsxs("div", { className: "pointer-events-none absolute h-full w-full", children: [
51457
+ /* @__PURE__ */ Je.jsx(
51449
51458
  Tie,
51450
51459
  {
51451
51460
  className: `opacity-${e == "text" ? 100 : 0}`
51452
51461
  }
51453
51462
  ),
51454
- /* @__PURE__ */ nt.jsx(
51463
+ /* @__PURE__ */ Je.jsx(
51455
51464
  Mie,
51456
51465
  {
51457
51466
  className: `opacity-${e == "text" ? 100 : 0}`
51458
51467
  }
51459
51468
  )
51460
51469
  ] }),
51461
- /* @__PURE__ */ nt.jsx("div", { className: "flex w-full shrink-0 flex-col justify-end", children: e == "voice" ? /* @__PURE__ */ nt.jsx(aK, {}) : /* @__PURE__ */ nt.jsx(yie, {}) }),
51462
- /* @__PURE__ */ nt.jsx("div", { className: "h-16 shrink-0" }),
51463
- /* @__PURE__ */ nt.jsxs("div", { className: "pointer-events-none absolute top-0 left-0 z-5 flex h-full w-full flex-col justify-between pb-6", children: [
51464
- /* @__PURE__ */ nt.jsx(Eie, {}),
51465
- /* @__PURE__ */ nt.jsx(_ie, {})
51470
+ /* @__PURE__ */ Je.jsx("div", { className: "flex w-full shrink-0 flex-col justify-end", children: e == "voice" ? /* @__PURE__ */ Je.jsx(aK, {}) : /* @__PURE__ */ Je.jsx(yie, {}) }),
51471
+ /* @__PURE__ */ Je.jsx("div", { className: "h-16 shrink-0" }),
51472
+ /* @__PURE__ */ Je.jsxs("div", { className: "pointer-events-none absolute top-0 left-0 z-5 flex h-full w-full flex-col justify-between pb-6", children: [
51473
+ /* @__PURE__ */ Je.jsx(Eie, {}),
51474
+ /* @__PURE__ */ Je.jsx(_ie, {})
51466
51475
  ] })
51467
51476
  ] })
51468
51477
  ] });
51469
51478
  };
51470
51479
  function Uie({ config: i }) {
51471
- return /* @__PURE__ */ nt.jsx(kie, { config: i, children: /* @__PURE__ */ nt.jsx(rK, { config: i, children: /* @__PURE__ */ nt.jsx(r0, {}) }) });
51480
+ return /* @__PURE__ */ Je.jsx(kie, { config: i, children: /* @__PURE__ */ Je.jsx(rK, { config: i, children: /* @__PURE__ */ Je.jsx(r0, {}) }) });
51472
51481
  }
51473
51482
  var lw = { exports: {} }, Px = {}, cw = { exports: {} }, Q3 = {};
51474
51483
  var XU;
@@ -51493,9 +51502,9 @@ function zie() {
51493
51502
  if (ee !== K) {
51494
51503
  X[0] = ee;
51495
51504
  e: for (var Ae = 0, ze = X.length, V = ze >>> 1; Ae < V; ) {
51496
- var oe = 2 * (Ae + 1) - 1, xe = X[oe], Re = oe + 1, Qe = X[Re];
51497
- if (0 > a(xe, ee))
51498
- Re < ze && 0 > a(Qe, xe) ? (X[Ae] = Qe, X[Re] = ee, Ae = Re) : (X[Ae] = xe, X[oe] = ee, Ae = oe);
51505
+ var oe = 2 * (Ae + 1) - 1, Se = X[oe], Re = oe + 1, Qe = X[Re];
51506
+ if (0 > a(Se, ee))
51507
+ Re < ze && 0 > a(Qe, Se) ? (X[Ae] = Qe, X[Re] = ee, Ae = Re) : (X[Ae] = Se, X[oe] = ee, Ae = oe);
51499
51508
  else if (Re < ze && 0 > a(Qe, ee))
51500
51509
  X[Ae] = Qe, X[Re] = ee, Ae = Re;
51501
51510
  else break e;
@@ -51761,9 +51770,9 @@ function Iie() {
51761
51770
  if (ee !== K) {
51762
51771
  X[0] = ee;
51763
51772
  e: for (var Ae = 0, ze = X.length, V = ze >>> 1; Ae < V; ) {
51764
- var oe = 2 * (Ae + 1) - 1, xe = X[oe], Re = oe + 1, Qe = X[Re];
51765
- if (0 > o(xe, ee))
51766
- Re < ze && 0 > o(Qe, xe) ? (X[Ae] = Qe, X[Re] = ee, Ae = Re) : (X[Ae] = xe, X[oe] = ee, Ae = oe);
51773
+ var oe = 2 * (Ae + 1) - 1, Se = X[oe], Re = oe + 1, Qe = X[Re];
51774
+ if (0 > o(Se, ee))
51775
+ Re < ze && 0 > o(Qe, Se) ? (X[Ae] = Qe, X[Re] = ee, Ae = Re) : (X[Ae] = Se, X[oe] = ee, Ae = oe);
51767
51776
  else if (Re < ze && 0 > o(Qe, ee))
51768
51777
  X[Ae] = Qe, X[Re] = ee, Ae = Re;
51769
51778
  else break e;
@@ -52090,12 +52099,12 @@ function Bie() {
52090
52099
  function oe(l) {
52091
52100
  0 > ze || (l.current = Ae[ze], Ae[ze] = null, ze--);
52092
52101
  }
52093
- function xe(l, d) {
52102
+ function Se(l, d) {
52094
52103
  ze++, Ae[ze] = l.current, l.current = d;
52095
52104
  }
52096
52105
  var Re = V(null), Qe = V(null), Me = V(null), ve = V(null);
52097
- function tt(l, d) {
52098
- switch (xe(Me, d), xe(Qe, l), xe(Re, null), d.nodeType) {
52106
+ function nt(l, d) {
52107
+ switch (Se(Me, d), Se(Qe, l), Se(Re, null), d.nodeType) {
52099
52108
  case 9:
52100
52109
  case 11:
52101
52110
  l = (l = d.documentElement) && (l = l.namespaceURI) ? oT(l) : 0;
@@ -52115,15 +52124,15 @@ function Bie() {
52115
52124
  l = 0;
52116
52125
  }
52117
52126
  }
52118
- oe(Re), xe(Re, l);
52127
+ oe(Re), Se(Re, l);
52119
52128
  }
52120
52129
  function lt() {
52121
52130
  oe(Re), oe(Qe), oe(Me);
52122
52131
  }
52123
52132
  function ut(l) {
52124
- l.memoizedState !== null && xe(ve, l);
52133
+ l.memoizedState !== null && Se(ve, l);
52125
52134
  var d = Re.current, m = x1(d, l.type);
52126
- d !== m && (xe(Qe, l), xe(Re, m));
52135
+ d !== m && (Se(Qe, l), Se(Re, m));
52127
52136
  }
52128
52137
  function $e(l) {
52129
52138
  Qe.current === l && (oe(Re), oe(Qe)), ve.current === l && (oe(ve), Km._currentValue = ee);
@@ -52270,11 +52279,11 @@ Error generating stack: ` + b.message + `
52270
52279
  ` + b.stack;
52271
52280
  }
52272
52281
  }
52273
- var fi = Object.prototype.hasOwnProperty, et = i.unstable_scheduleCallback, Ln = i.unstable_cancelCallback, bt = i.unstable_shouldYield, J = i.unstable_requestPaint, P = i.unstable_now, pe = i.unstable_getCurrentPriorityLevel, Ve = i.unstable_ImmediatePriority, We = i.unstable_UserBlockingPriority, Pe = i.unstable_NormalPriority, wt = i.unstable_LowPriority, ot = i.unstable_IdlePriority, Et = i.log, kt = i.unstable_setDisableYieldValue, Ke = null, Je = null;
52282
+ var fi = Object.prototype.hasOwnProperty, tt = i.unstable_scheduleCallback, Ln = i.unstable_cancelCallback, bt = i.unstable_shouldYield, J = i.unstable_requestPaint, P = i.unstable_now, pe = i.unstable_getCurrentPriorityLevel, Ve = i.unstable_ImmediatePriority, We = i.unstable_UserBlockingPriority, Pe = i.unstable_NormalPriority, wt = i.unstable_LowPriority, ot = i.unstable_IdlePriority, Et = i.log, kt = i.unstable_setDisableYieldValue, Ke = null, et = null;
52274
52283
  function mt(l) {
52275
- if (typeof Et == "function" && kt(l), Je && typeof Je.setStrictMode == "function")
52284
+ if (typeof Et == "function" && kt(l), et && typeof et.setStrictMode == "function")
52276
52285
  try {
52277
- Je.setStrictMode(Ke, l);
52286
+ et.setStrictMode(Ke, l);
52278
52287
  } catch {
52279
52288
  }
52280
52289
  }
@@ -52338,7 +52347,7 @@ Error generating stack: ` + b.message + `
52338
52347
  return l;
52339
52348
  }
52340
52349
  }
52341
- function Se(l, d, m) {
52350
+ function Ee(l, d, m) {
52342
52351
  var b = l.pendingLanes;
52343
52352
  if (b === 0) return 0;
52344
52353
  var M = 0, R = l.suspendedLanes, k = l.pingedLanes;
@@ -52530,9 +52539,9 @@ Error generating stack: ` + b.message + `
52530
52539
  }
52531
52540
  var ge = /* @__PURE__ */ new Set(), Ne = {};
52532
52541
  function Oe(l, d) {
52533
- Ee(l, d), Ee(l + "Capture", d);
52542
+ Te(l, d), Te(l + "Capture", d);
52534
52543
  }
52535
- function Ee(l, d) {
52544
+ function Te(l, d) {
52536
52545
  for (Ne[l] = d, l = 0; l < d.length; l++)
52537
52546
  ge.add(d[l]);
52538
52547
  }
@@ -53719,7 +53728,7 @@ Error generating stack: ` + b.message + `
53719
53728
  }
53720
53729
  var k0 = V(null), cc = null, So = null;
53721
53730
  function Ma(l, d, m) {
53722
- xe(k0, d._currentValue), d._currentValue = m;
53731
+ Se(k0, d._currentValue), d._currentValue = m;
53723
53732
  }
53724
53733
  function Eo(l) {
53725
53734
  l._currentValue = k0.current, oe(k0);
@@ -53911,7 +53920,7 @@ Error generating stack: ` + b.message + `
53911
53920
  return l !== null ? l : ri.pooledCache;
53912
53921
  }
53913
53922
  function Xd(l, d) {
53914
- d === null ? xe(ps, ps.current) : xe(ps, d.pool);
53923
+ d === null ? Se(ps, ps.current) : Se(ps, d.pool);
53915
53924
  }
53916
53925
  function mf() {
53917
53926
  var l = ms();
@@ -54514,10 +54523,10 @@ Error generating stack: ` + b.message + `
54514
54523
  }
54515
54524
  var hr = V(null), _f = V(0);
54516
54525
  function gE(l, d) {
54517
- l = Ro, xe(_f, l), xe(hr, d), Ro = l | d.baseLanes;
54526
+ l = Ro, Se(_f, l), Se(hr, d), Ro = l | d.baseLanes;
54518
54527
  }
54519
54528
  function hm() {
54520
- xe(_f, Ro), xe(hr, hr.current);
54529
+ Se(_f, Ro), Se(hr, hr.current);
54521
54530
  }
54522
54531
  function $d() {
54523
54532
  Ro = _f.current, oe(hr), oe(_f);
@@ -54525,16 +54534,16 @@ Error generating stack: ` + b.message + `
54525
54534
  var wa = V(null), ys = null;
54526
54535
  function hl(l) {
54527
54536
  var d = l.alternate;
54528
- xe(Ti, Ti.current & 1), xe(wa, l), ys === null && (d === null || hr.current !== null || d.memoizedState !== null) && (ys = l);
54537
+ Se(Ti, Ti.current & 1), Se(wa, l), ys === null && (d === null || hr.current !== null || d.memoizedState !== null) && (ys = l);
54529
54538
  }
54530
54539
  function Wd(l) {
54531
- xe(Ti, Ti.current), xe(wa, l), ys === null && (ys = l);
54540
+ Se(Ti, Ti.current), Se(wa, l), ys === null && (ys = l);
54532
54541
  }
54533
54542
  function F0(l) {
54534
- l.tag === 22 ? (xe(Ti, Ti.current), xe(wa, l), ys === null && (ys = l)) : To();
54543
+ l.tag === 22 ? (Se(Ti, Ti.current), Se(wa, l), ys === null && (ys = l)) : To();
54535
54544
  }
54536
54545
  function To() {
54537
- xe(Ti, Ti.current), xe(wa, wa.current);
54546
+ Se(Ti, Ti.current), Se(wa, wa.current);
54538
54547
  }
54539
54548
  function Aa(l) {
54540
54549
  oe(wa), ys === l && (ys = null), oe(Ti);
@@ -56176,7 +56185,7 @@ Error generating stack: ` + b.message + `
56176
56185
  var b = d.pendingProps, M = b.revealOrder, R = b.tail;
56177
56186
  b = b.children;
56178
56187
  var k = Ti.current, W = (k & 2) !== 0;
56179
- if (W ? (k = k & 1 | 2, d.flags |= 128) : k &= 1, xe(Ti, k), _i(l, d, b, m), b = Mn ? qi : 0, !W && l !== null && (l.flags & 128) !== 0)
56188
+ if (W ? (k = k & 1 | 2, d.flags |= 128) : k &= 1, Se(Ti, k), _i(l, d, b, m), b = Mn ? qi : 0, !W && l !== null && (l.flags & 128) !== 0)
56180
56189
  e: for (l = d.child; l !== null; ) {
56181
56190
  if (l.tag === 13)
56182
56191
  l.memoizedState !== null && Cf(l, m, d);
@@ -56266,14 +56275,14 @@ Error generating stack: ` + b.message + `
56266
56275
  function uy(l, d, m) {
56267
56276
  switch (d.tag) {
56268
56277
  case 3:
56269
- tt(d, d.stateNode.containerInfo), Ma(d, Yi, l.memoizedState.cache), tu();
56278
+ nt(d, d.stateNode.containerInfo), Ma(d, Yi, l.memoizedState.cache), tu();
56270
56279
  break;
56271
56280
  case 27:
56272
56281
  case 5:
56273
56282
  ut(d);
56274
56283
  break;
56275
56284
  case 4:
56276
- tt(d, d.stateNode.containerInfo);
56285
+ nt(d, d.stateNode.containerInfo);
56277
56286
  break;
56278
56287
  case 10:
56279
56288
  Ma(
@@ -56312,7 +56321,7 @@ Error generating stack: ` + b.message + `
56312
56321
  );
56313
56322
  d.flags |= 128;
56314
56323
  }
56315
- if (M = d.memoizedState, M !== null && (M.rendering = null, M.tail = null, M.lastEffect = null), xe(Ti, Ti.current), b) break;
56324
+ if (M = d.memoizedState, M !== null && (M.rendering = null, M.tail = null, M.lastEffect = null), Se(Ti, Ti.current), b) break;
56316
56325
  return null;
56317
56326
  case 22:
56318
56327
  return d.lanes = 0, CE(
@@ -56407,7 +56416,7 @@ Error generating stack: ` + b.message + `
56407
56416
  );
56408
56417
  case 3:
56409
56418
  e: {
56410
- if (tt(
56419
+ if (nt(
56411
56420
  d,
56412
56421
  d.stateNode.containerInfo
56413
56422
  ), l === null) throw Error(n(387));
@@ -56514,7 +56523,7 @@ Error generating stack: ` + b.message + `
56514
56523
  case 13:
56515
56524
  return Gb(l, d, m);
56516
56525
  case 4:
56517
- return tt(
56526
+ return nt(
56518
56527
  d,
56519
56528
  d.stateNode.containerInfo
56520
56529
  ), b = d.pendingProps, l === null ? d.child = ou(
@@ -56857,7 +56866,7 @@ Error generating stack: ` + b.message + `
56857
56866
  if (R = Zd(l), R !== null) {
56858
56867
  for (d.flags |= 128, rh(b, !1), l = R.updateQueue, d.updateQueue = l, ca(d, l), d.subtreeFlags = 0, l = m, m = d.child; m !== null; )
56859
56868
  ab(m, l), m = m.sibling;
56860
- return xe(
56869
+ return Se(
56861
56870
  Ti,
56862
56871
  Ti.current & 1 | 2
56863
56872
  ), Mn && Ys(d, b.treeForkCount), d.child;
@@ -56875,7 +56884,7 @@ Error generating stack: ` + b.message + `
56875
56884
  2 * P() - b.renderingStartTime > Wn && m !== 536870912 && (d.flags |= 128, M = !0, rh(b, !1), d.lanes = 4194304);
56876
56885
  b.isBackwards ? (R.sibling = d.child, d.child = R) : (l = b.last, l !== null ? l.sibling = R : d.child = R, b.last = R);
56877
56886
  }
56878
- return b.tail !== null ? (l = b.tail, b.rendering = l, b.tail = l.sibling, b.renderingStartTime = P(), l.sibling = null, m = Ti.current, xe(
56887
+ return b.tail !== null ? (l = b.tail, b.rendering = l, b.tail = l.sibling, b.renderingStartTime = P(), l.sibling = null, m = Ti.current, Se(
56879
56888
  Ti,
56880
56889
  M ? m & 1 | 2 : m & 1
56881
56890
  ), Mn && Ys(d, b.treeForkCount), l) : (qt(d), null);
@@ -57351,9 +57360,9 @@ Error generating stack: ` + b.message + `
57351
57360
  Jb(l, d, m), m = m.sibling;
57352
57361
  }
57353
57362
  function Jb(l, d, m) {
57354
- if (Je && typeof Je.onCommitFiberUnmount == "function")
57363
+ if (et && typeof et.onCommitFiberUnmount == "function")
57355
57364
  try {
57356
- Je.onCommitFiberUnmount(Ke, m);
57365
+ et.onCommitFiberUnmount(Ke, m);
57357
57366
  } catch {
57358
57367
  }
57359
57368
  switch (m.tag) {
@@ -58406,7 +58415,7 @@ Error generating stack: ` + b.message + `
58406
58415
  d,
58407
58416
  La,
58408
58417
  !El
58409
- ), Se(b, 0, !0) !== 0) break e;
58418
+ ), Ee(b, 0, !0) !== 0) break e;
58410
58419
  Tl = d, b.timeoutHandle = qm(
58411
58420
  Im.bind(
58412
58421
  null,
@@ -58930,9 +58939,9 @@ Error generating stack: ` + b.message + `
58930
58939
  var l = _c, d = _u, m = Tl, b = Ey;
58931
58940
  (d.subtreeFlags & 10256) !== 0 || (d.flags & 10256) !== 0 ? pr = 5 : (pr = 0, _u = _c = null, ZE(l, l.pendingLanes));
58932
58941
  var M = l.pendingLanes;
58933
- if (M === 0 && (Mi = null), Cd(m), d = d.stateNode, Je && typeof Je.onCommitFiberRoot == "function")
58942
+ if (M === 0 && (Mi = null), Cd(m), d = d.stateNode, et && typeof et.onCommitFiberRoot == "function")
58934
58943
  try {
58935
- Je.onCommitFiberRoot(
58944
+ et.onCommitFiberRoot(
58936
58945
  Ke,
58937
58946
  d,
58938
58947
  void 0,
@@ -58977,9 +58986,9 @@ Error generating stack: ` + b.message + `
58977
58986
  R.current,
58978
58987
  k,
58979
58988
  m
58980
- ), Gn = W, Sc(0, !1), Je && typeof Je.onPostCommitFiberRoot == "function")
58989
+ ), Gn = W, Sc(0, !1), et && typeof et.onPostCommitFiberRoot == "function")
58981
58990
  try {
58982
- Je.onPostCommitFiberRoot(Ke, R);
58991
+ et.onPostCommitFiberRoot(Ke, R);
58983
58992
  } catch {
58984
58993
  }
58985
58994
  return !0;
@@ -59058,7 +59067,7 @@ Error generating stack: ` + b.message + `
59058
59067
  b !== null && b.delete(d), JE(l, m);
59059
59068
  }
59060
59069
  function tT(l, d) {
59061
- return et(l, d);
59070
+ return tt(l, d);
59062
59071
  }
59063
59072
  var yh = null, Lf = null, o1 = !1, wy = !1, l1 = !1, xc = 0;
59064
59073
  function wl(l) {
@@ -59078,7 +59087,7 @@ Error generating stack: ` + b.message + `
59078
59087
  }
59079
59088
  R !== 0 && (m = !0, Nf(b, R));
59080
59089
  } else
59081
- R = yn, R = Se(
59090
+ R = yn, R = Ee(
59082
59091
  b,
59083
59092
  b === ri ? R : 0,
59084
59093
  b.cancelPendingCommit !== null || b.timeoutHandle !== -1
@@ -59107,7 +59116,7 @@ Error generating stack: ` + b.message + `
59107
59116
  var k = 31 - ht(R), W = 1 << k, se = M[k];
59108
59117
  se === -1 ? ((W & m) === 0 || (W & b) !== 0) && (M[k] = at(W, d)) : se <= d && (l.expiredLanes |= W), R &= ~W;
59109
59118
  }
59110
- if (d = ri, m = yn, m = Se(
59119
+ if (d = ri, m = yn, m = Ee(
59111
59120
  l,
59112
59121
  l === d ? m : 0,
59113
59122
  l.cancelPendingCommit !== null || l.timeoutHandle !== -1
@@ -59129,7 +59138,7 @@ Error generating stack: ` + b.message + `
59129
59138
  default:
59130
59139
  m = Pe;
59131
59140
  }
59132
- return b = Fm.bind(null, l), m = et(m, b), l.callbackPriority = d, l.callbackNode = m, d;
59141
+ return b = Fm.bind(null, l), m = tt(m, b), l.callbackPriority = d, l.callbackNode = m, d;
59133
59142
  }
59134
59143
  return b !== null && b !== null && Ln(b), l.callbackPriority = 2, l.callbackNode = null, 2;
59135
59144
  }
@@ -59140,7 +59149,7 @@ Error generating stack: ` + b.message + `
59140
59149
  if (gh() && l.callbackNode !== m)
59141
59150
  return null;
59142
59151
  var b = yn;
59143
- return b = Se(
59152
+ return b = Ee(
59144
59153
  l,
59145
59154
  l === ri ? b : 0,
59146
59155
  l.cancelPendingCommit !== null || l.timeoutHandle !== -1
@@ -59152,7 +59161,7 @@ Error generating stack: ` + b.message + `
59152
59161
  }
59153
59162
  function Hm() {
59154
59163
  cT(function() {
59155
- (Gn & 6) !== 0 ? et(
59164
+ (Gn & 6) !== 0 ? tt(
59156
59165
  Ve,
59157
59166
  Ay
59158
59167
  ) : c1();
@@ -59232,7 +59241,7 @@ Error generating stack: ` + b.message + `
59232
59241
  "on" + d1
59233
59242
  );
59234
59243
  }
59235
- Sa(Qp, "onAnimationEnd"), Sa(rb, "onAnimationIteration"), Sa(R0, "onAnimationStart"), Sa("dblclick", "onDoubleClick"), Sa("focusin", "onFocus"), Sa("focusout", "onBlur"), Sa(cf, "onTransitionRun"), Sa(Jp, "onTransitionStart"), Sa(sl, "onTransitionCancel"), Sa(hE, "onTransitionEnd"), Ee("onMouseEnter", ["mouseout", "mouseover"]), Ee("onMouseLeave", ["mouseout", "mouseover"]), Ee("onPointerEnter", ["pointerout", "pointerover"]), Ee("onPointerLeave", ["pointerout", "pointerover"]), Oe(
59244
+ Sa(Qp, "onAnimationEnd"), Sa(rb, "onAnimationIteration"), Sa(R0, "onAnimationStart"), Sa("dblclick", "onDoubleClick"), Sa("focusin", "onFocus"), Sa("focusout", "onBlur"), Sa(cf, "onTransitionRun"), Sa(Jp, "onTransitionStart"), Sa(sl, "onTransitionCancel"), Sa(hE, "onTransitionEnd"), Te("onMouseEnter", ["mouseout", "mouseover"]), Te("onMouseLeave", ["mouseout", "mouseover"]), Te("onPointerEnter", ["pointerout", "pointerover"]), Te("onPointerLeave", ["pointerout", "pointerover"]), Oe(
59236
59245
  "onChange",
59237
59246
  "change click focusin focusout input keydown keyup selectionchange".split(" ")
59238
59247
  ), Oe(
@@ -61616,7 +61625,7 @@ Error generating stack: ` + b.message + `
61616
61625
  try {
61617
61626
  Ke = eg.inject(
61618
61627
  vT
61619
- ), Je = eg;
61628
+ ), et = eg;
61620
61629
  } catch {
61621
61630
  }
61622
61631
  }
@@ -62058,7 +62067,7 @@ function Pie() {
62058
62067
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
62059
62068
  );
62060
62069
  }
62061
- function xe(r) {
62070
+ function Se(r) {
62062
62071
  var s = Error.prepareStackTrace;
62063
62072
  if (Error.prepareStackTrace = void 0, r = r.stack, Error.prepareStackTrace = s, r.startsWith(`Error: react-stack-top-frame
62064
62073
  `) && (r = r.slice(29)), s = r.indexOf(`
@@ -62219,7 +62228,7 @@ function Pie() {
62219
62228
  e: {
62220
62229
  var O = E.name, I = E.env, G = E.debugLocation;
62221
62230
  if (G != null) {
62222
- var ue = xe(G), de = ue.lastIndexOf(`
62231
+ var ue = Se(G), de = ue.lastIndexOf(`
62223
62232
  `), ie = de === -1 ? ue : ue.slice(de + 1);
62224
62233
  if (ie.indexOf(O) !== -1) {
62225
62234
  var Le = `
@@ -62243,7 +62252,7 @@ Error generating stack: ` + ct.message + `
62243
62252
  ` + ct.stack;
62244
62253
  }
62245
62254
  }
62246
- function tt(r) {
62255
+ function nt(r) {
62247
62256
  return (r = r ? r.displayName || r.name : "") ? Re(r) : "";
62248
62257
  }
62249
62258
  function lt() {
@@ -62275,12 +62284,12 @@ Error generating stack: ` + ct.message + `
62275
62284
  case 0:
62276
62285
  case 15:
62277
62286
  case 1:
62278
- r._debugOwner || s !== "" || (s += tt(
62287
+ r._debugOwner || s !== "" || (s += nt(
62279
62288
  r.type
62280
62289
  ));
62281
62290
  break;
62282
62291
  case 11:
62283
- r._debugOwner || s !== "" || (s += tt(
62292
+ r._debugOwner || s !== "" || (s += nt(
62284
62293
  r.type.render
62285
62294
  ));
62286
62295
  }
@@ -62290,14 +62299,14 @@ Error generating stack: ` + ct.message + `
62290
62299
  r = u._debugOwner;
62291
62300
  var g = u._debugStack;
62292
62301
  if (r && g) {
62293
- var S = xe(g);
62302
+ var S = Se(g);
62294
62303
  S !== "" && (s += `
62295
62304
  ` + S);
62296
62305
  }
62297
62306
  } else if (r.debugStack != null) {
62298
62307
  var E = r.debugStack;
62299
62308
  (r = r.owner) && E && (s += `
62300
- ` + xe(E));
62309
+ ` + Se(E));
62301
62310
  } else break;
62302
62311
  var D = s;
62303
62312
  } catch (O) {
@@ -62375,7 +62384,7 @@ Error generating stack: ` + O.message + `
62375
62384
  }
62376
62385
  return !!s.checkDCE;
62377
62386
  }
62378
- function et(r) {
62387
+ function tt(r) {
62379
62388
  if (typeof O1 == "function" && pT(r), mr && typeof mr.setStrictMode == "function")
62380
62389
  try {
62381
62390
  mr.setStrictMode(Pf, r);
@@ -62583,7 +62592,7 @@ Error generating stack: ` + O.message + `
62583
62592
  }
62584
62593
  return r;
62585
62594
  }
62586
- function Je(r, s, u) {
62595
+ function et(r, s, u) {
62587
62596
  if (Rl)
62588
62597
  for (r = r.pendingUpdatersLaneMap; 0 < u; ) {
62589
62598
  var g = 31 - Zr(u), S = 1 << g;
@@ -62653,7 +62662,7 @@ Error generating stack: ` + O.message + `
62653
62662
  var s = r[Jm];
62654
62663
  return s || (s = r[Jm] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() }), s;
62655
62664
  }
62656
- function Se(r) {
62665
+ function Ee(r) {
62657
62666
  r[Oh] = !0;
62658
62667
  }
62659
62668
  function Xe(r, s) {
@@ -62976,21 +62985,21 @@ Check the render method of \`` + r + "`." : "";
62976
62985
  return null;
62977
62986
  }
62978
62987
  }
62979
- function Ee(r, s) {
62988
+ function Te(r, s) {
62980
62989
  return R.test(r) ? (r = JSON.stringify(r), r.length > s - 2 ? 8 > s ? '{"..."}' : "{" + r.slice(0, s - 7) + '..."}' : "{" + r + "}") : r.length > s ? 5 > s ? '{"..."}' : r.slice(0, s - 3) + "..." : r;
62981
62990
  }
62982
62991
  function ft(r, s, u) {
62983
62992
  var g = 120 - 2 * u;
62984
62993
  if (s === null)
62985
- return ge(u) + Ee(r, g) + `
62994
+ return ge(u) + Te(r, g) + `
62986
62995
  `;
62987
62996
  if (typeof s == "string") {
62988
62997
  for (var S = 0; S < s.length && S < r.length && s.charCodeAt(S) === r.charCodeAt(S); S++) ;
62989
- return S > g - 8 && 10 < S && (r = "..." + r.slice(S - 8), s = "..." + s.slice(S - 8)), ge(u) + Ee(r, g) + `
62990
- ` + Ne(u) + Ee(s, g) + `
62998
+ return S > g - 8 && 10 < S && (r = "..." + r.slice(S - 8), s = "..." + s.slice(S - 8)), ge(u) + Te(r, g) + `
62999
+ ` + Ne(u) + Te(s, g) + `
62991
63000
  `;
62992
63001
  }
62993
- return $(u) + Ee(r, g) + `
63002
+ return $(u) + Te(r, g) + `
62994
63003
  `;
62995
63004
  }
62996
63005
  function _t(r) {
@@ -63183,7 +63192,7 @@ Check the render method of \`` + r + "`." : "";
63183
63192
  D = r.children[E], D.fiber === S ? (G += Bn(D, s), E++) : G += Bt(S, s), S = S.sibling;
63184
63193
  for (S && 0 < r.children.length && (G += $(s) + `...
63185
63194
  `), S = r.serverTail, r.serverProps === null && s--, r = 0; r < S.length; r++)
63186
- E = S[r], G = typeof E == "string" ? G + (Ne(s) + Ee(E, 120 - 2 * s) + `
63195
+ E = S[r], G = typeof E == "string" ? G + (Ne(s) + Te(E, 120 - 2 * s) + `
63187
63196
  `) : G + Mt(
63188
63197
  E.type,
63189
63198
  E.props,
@@ -66182,11 +66191,11 @@ Please update the following component: %s`,
66182
66191
  vt
66183
66192
  );
66184
66193
  if (ie.mode & Ka) {
66185
- et(!0);
66194
+ tt(!0);
66186
66195
  try {
66187
66196
  ct.call(bi, de, vt);
66188
66197
  } finally {
66189
- et(!1);
66198
+ tt(!1);
66190
66199
  }
66191
66200
  }
66192
66201
  av = !1, de = kn;
@@ -66203,11 +66212,11 @@ Please update the following component: %s`,
66203
66212
  de,
66204
66213
  vt
66205
66214
  ), ie.mode & Ka) {
66206
- et(!0);
66215
+ tt(!0);
66207
66216
  try {
66208
66217
  kn.call(bi, de, vt);
66209
66218
  } finally {
66210
- et(!1);
66219
+ tt(!1);
66211
66220
  }
66212
66221
  }
66213
66222
  av = !1;
@@ -66400,7 +66409,7 @@ Incoming: %s`,
66400
66409
  g,
66401
66410
  S
66402
66411
  )), E) {
66403
- et(!0);
66412
+ tt(!0);
66404
66413
  try {
66405
66414
  D = am(
66406
66415
  s,
@@ -66409,7 +66418,7 @@ Incoming: %s`,
66409
66418
  S
66410
66419
  );
66411
66420
  } finally {
66412
- et(!1);
66421
+ tt(!1);
66413
66422
  }
66414
66423
  }
66415
66424
  return Yi(r, s), D;
@@ -66545,11 +66554,11 @@ Incoming: %s`,
66545
66554
  if (u !== void 0) {
66546
66555
  var S = u(s);
66547
66556
  if (dg) {
66548
- et(!0);
66557
+ tt(!0);
66549
66558
  try {
66550
66559
  u(s);
66551
66560
  } finally {
66552
- et(!1);
66561
+ tt(!1);
66553
66562
  }
66554
66563
  }
66555
66564
  } else S = s;
@@ -66759,11 +66768,11 @@ Incoming: %s`,
66759
66768
  if (typeof r == "function") {
66760
66769
  var u = r;
66761
66770
  if (r = u(), dg) {
66762
- et(!0);
66771
+ tt(!0);
66763
66772
  try {
66764
66773
  u();
66765
66774
  } finally {
66766
- et(!1);
66775
+ tt(!1);
66767
66776
  }
66768
66777
  }
66769
66778
  }
@@ -67110,11 +67119,11 @@ Incoming: %s`,
67110
67119
  s = s === void 0 ? null : s;
67111
67120
  var g = r();
67112
67121
  if (dg) {
67113
- et(!0);
67122
+ tt(!0);
67114
67123
  try {
67115
67124
  r();
67116
67125
  } finally {
67117
- et(!1);
67126
+ tt(!1);
67118
67127
  }
67119
67128
  }
67120
67129
  return u.memoizedState = [g, s], g;
@@ -67126,11 +67135,11 @@ Incoming: %s`,
67126
67135
  if (s !== null && ub(s, g[1]))
67127
67136
  return g[0];
67128
67137
  if (g = r(), dg) {
67129
- et(!0);
67138
+ tt(!0);
67130
67139
  try {
67131
67140
  r();
67132
67141
  } finally {
67133
- et(!1);
67142
+ tt(!1);
67134
67143
  }
67135
67144
  }
67136
67145
  return u.memoizedState = [g, s], g;
@@ -67425,11 +67434,11 @@ Incoming: %s`,
67425
67434
  function Qd(r, s, u, g) {
67426
67435
  var S = r.memoizedState, E = u(g, S);
67427
67436
  if (r.mode & Ka) {
67428
- et(!0);
67437
+ tt(!0);
67429
67438
  try {
67430
67439
  E = u(g, S);
67431
67440
  } finally {
67432
- et(!1);
67441
+ tt(!1);
67433
67442
  }
67434
67443
  }
67435
67444
  E === void 0 && (s = Z(s) || "Component", kL.has(s) || (kL.add(s), console.error(
@@ -67445,7 +67454,7 @@ Incoming: %s`,
67445
67454
  E,
67446
67455
  D
67447
67456
  ), r.mode & Ka) {
67448
- et(!0);
67457
+ tt(!0);
67449
67458
  try {
67450
67459
  u = O.shouldComponentUpdate(
67451
67460
  g,
@@ -67453,7 +67462,7 @@ Incoming: %s`,
67453
67462
  D
67454
67463
  );
67455
67464
  } finally {
67456
- et(!1);
67465
+ tt(!1);
67457
67466
  }
67458
67467
  }
67459
67468
  return u === void 0 && console.error(
@@ -67969,11 +67978,11 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
67969
67978
  Z(u) || "Component",
67970
67979
  O
67971
67980
  )), typeof E == "object" && E !== null && (D = $n(E)), E = new u(g, D), s.mode & Ka) {
67972
- et(!0);
67981
+ tt(!0);
67973
67982
  try {
67974
67983
  E = new u(g, D);
67975
67984
  } finally {
67976
- et(!1);
67985
+ tt(!1);
67977
67986
  }
67978
67987
  }
67979
67988
  if (D = s.memoizedState = E.state !== null && E.state !== void 0 ? E.state : null, E.updater = nC, s.stateNode = E, E._reactInternals = s, E._reactInternalInstance = CL, typeof u.getDerivedStateFromProps == "function" && D === null && (D = Z(u) || "Component", DL.has(D) || (DL.add(D), console.error(
@@ -68144,11 +68153,11 @@ https://react.dev/link/unsafe-component-lifecycles`,
68144
68153
  if (O = s.stateNode, On(s), D && typeof u.getDerivedStateFromError != "function")
68145
68154
  u = null, As = -1;
68146
68155
  else if (u = rL(O), s.mode & Ka) {
68147
- et(!0);
68156
+ tt(!0);
68148
68157
  try {
68149
68158
  rL(O);
68150
68159
  } finally {
68151
- et(!1);
68160
+ tt(!1);
68152
68161
  }
68153
68162
  }
68154
68163
  s.flags |= 1, r !== null && D ? (s.child = fg(
@@ -68826,7 +68835,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
68826
68835
  Es.current
68827
68836
  ), g = Im(
68828
68837
  g
68829
- ).createElement(u), g[wi] = s, g[Ua] = r, Mi(g, u, r), Se(g), s.stateNode = g) : s.memoizedState = u1(
68838
+ ).createElement(u), g[wi] = s, g[Ua] = r, Mi(g, u, r), Ee(g), s.stateNode = g) : s.memoizedState = u1(
68830
68839
  s.type,
68831
68840
  r.memoizedProps,
68832
68841
  s.pendingProps,
@@ -70393,7 +70402,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
70393
70402
  I.querySelector(
70394
70403
  "head > title"
70395
70404
  )
70396
- )), Mi(G, O, D), G[wi] = r, Se(G), O = G;
70405
+ )), Mi(G, O, D), G[wi] = r, Ee(G), O = G;
70397
70406
  break e;
70398
70407
  case "link":
70399
70408
  var ue = _h(
@@ -70436,7 +70445,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
70436
70445
  'getNodesForType encountered a type it did not expect: "' + O + '". This is a bug in React.'
70437
70446
  );
70438
70447
  }
70439
- G[wi] = r, Se(G), O = G;
70448
+ G[wi] = r, Ee(G), O = G;
70440
70449
  }
70441
70450
  r.stateNode = O;
70442
70451
  } else
@@ -71456,7 +71465,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
71456
71465
  ), sN = !0);
71457
71466
  }
71458
71467
  } else
71459
- Rl && Je(r, s, u), Nm(s), r === yi && ((Fn & Jr) === pa && (Yh |= u), Hi === jh && Zs(
71468
+ Rl && et(r, s, u), Nm(s), r === yi && ((Fn & Jr) === pa && (Yh |= u), Hi === jh && Zs(
71460
71469
  r,
71461
71470
  mn,
71462
71471
  no,
@@ -72780,11 +72789,11 @@ This ensures that you're testing the behavior the user would see in the browser.
72780
72789
  }
72781
72790
  }
72782
72791
  function my(r, s) {
72783
- et(!0);
72792
+ tt(!0);
72784
72793
  try {
72785
72794
  oy(s), Xb(s), Vb(r, s.alternate, s, !1), Rm(r, s, 0, null, !1, 0);
72786
72795
  } finally {
72787
- et(!1);
72796
+ tt(!1);
72788
72797
  }
72789
72798
  }
72790
72799
  function gy(r) {
@@ -72813,7 +72822,7 @@ This ensures that you're testing the behavior the user would see in the browser.
72813
72822
  }
72814
72823
  function ch(r, s) {
72815
72824
  Rl && r.memoizedUpdaters.forEach(function(u) {
72816
- Je(r, u, s);
72825
+ et(r, u, s);
72817
72826
  });
72818
72827
  }
72819
72828
  function uh(r, s) {
@@ -75402,7 +75411,7 @@ This ensures that you're testing the behavior the user would see in the browser.
75402
75411
  var g = Tv;
75403
75412
  if (g && typeof s == "string" && s) {
75404
75413
  var S = Xn(s);
75405
- S = 'link[rel="' + r + '"][href="' + S + '"]', typeof u == "string" && (S += '[crossorigin="' + u + '"]'), _N.has(S) || (_N.add(S), r = { rel: r, crossOrigin: u, href: s }, g.querySelector(S) === null && (s = g.createElement("link"), Mi(s, "link", r), Se(s), g.head.appendChild(s)));
75414
+ S = 'link[rel="' + r + '"][href="' + S + '"]', typeof u == "string" && (S += '[crossorigin="' + u + '"]'), _N.has(S) || (_N.add(S), r = { rel: r, crossOrigin: u, href: s }, g.querySelector(S) === null && (s = g.createElement("link"), Mi(s, "link", r), Ee(s), g.head.appendChild(s)));
75406
75415
  }
75407
75416
  }
75408
75417
  function u1(r, s, u, g) {
@@ -75504,7 +75513,7 @@ This ensures that you're testing the behavior the user would see in the browser.
75504
75513
  return g.loading |= Sx;
75505
75514
  }), s.addEventListener("error", function() {
75506
75515
  return g.loading |= yN;
75507
- }), Mi(s, "link", u), Se(s), r.head.appendChild(s));
75516
+ }), Mi(s, "link", u), Ee(s), r.head.appendChild(s));
75508
75517
  }
75509
75518
  function kf(r) {
75510
75519
  return '[src="' + Xn(r) + '"]';
@@ -75520,22 +75529,22 @@ This ensures that you're testing the behavior the user would see in the browser.
75520
75529
  'style[data-href~="' + Xn(u.href) + '"]'
75521
75530
  );
75522
75531
  if (g)
75523
- return s.instance = g, Se(g), g;
75532
+ return s.instance = g, Ee(g), g;
75524
75533
  var S = dn({}, u, {
75525
75534
  "data-href": u.href,
75526
75535
  "data-precedence": u.precedence,
75527
75536
  href: null,
75528
75537
  precedence: null
75529
75538
  });
75530
- return g = (r.ownerDocument || r).createElement("style"), Se(g), Mi(g, "style", S), vh(g, u.precedence, r), s.instance = g;
75539
+ return g = (r.ownerDocument || r).createElement("style"), Ee(g), Mi(g, "style", S), vh(g, u.precedence, r), s.instance = g;
75531
75540
  case "stylesheet":
75532
75541
  S = Nf(u.href);
75533
75542
  var E = r.querySelector(
75534
75543
  Hm(S)
75535
75544
  );
75536
75545
  if (E)
75537
- return s.state.loading |= Hl, s.instance = E, Se(E), E;
75538
- g = Cy(u), (S = Vl.get(S)) && f1(g, S), E = (r.ownerDocument || r).createElement("link"), Se(E);
75546
+ return s.state.loading |= Hl, s.instance = E, Ee(E), E;
75547
+ g = Cy(u), (S = Vl.get(S)) && f1(g, S), E = (r.ownerDocument || r).createElement("link"), Ee(E);
75539
75548
  var D = E;
75540
75549
  return D._p = new Promise(function(O, I) {
75541
75550
  D.onload = O, D.onerror = I;
@@ -75543,7 +75552,7 @@ This ensures that you're testing the behavior the user would see in the browser.
75543
75552
  case "script":
75544
75553
  return E = kf(u.src), (S = r.querySelector(
75545
75554
  Vm(E)
75546
- )) ? (s.instance = S, Se(S), S) : (g = u, (S = Vl.get(E)) && (g = dn({}, u), d1(g, S)), r = r.ownerDocument || r, S = r.createElement("script"), Se(S), Mi(S, "link", g), r.head.appendChild(S), s.instance = S);
75555
+ )) ? (s.instance = S, Ee(S), S) : (g = u, (S = Vl.get(E)) && (g = dn({}, u), d1(g, S)), r = r.ownerDocument || r, S = r.createElement("script"), Ee(S), Mi(S, "link", g), r.head.appendChild(S), s.instance = S);
75547
75556
  case "void":
75548
75557
  return null;
75549
75558
  default:
@@ -75668,10 +75677,10 @@ This ensures that you're testing the behavior the user would see in the browser.
75668
75677
  Hm(S)
75669
75678
  );
75670
75679
  if (E) {
75671
- s = E._p, s !== null && typeof s == "object" && typeof s.then == "function" && (r.count++, r = bh.bind(r), s.then(r, r)), u.state.loading |= Hl, u.instance = E, Se(E);
75680
+ s = E._p, s !== null && typeof s == "object" && typeof s.then == "function" && (r.count++, r = bh.bind(r), s.then(r, r)), u.state.loading |= Hl, u.instance = E, Ee(E);
75672
75681
  return;
75673
75682
  }
75674
- E = s.ownerDocument || s, g = Cy(g), (S = Vl.get(S)) && f1(g, S), E = E.createElement("link"), Se(E);
75683
+ E = s.ownerDocument || s, g = Cy(g), (S = Vl.get(S)) && f1(g, S), E = E.createElement("link"), Ee(E);
75675
75684
  var D = E;
75676
75685
  D._p = new Promise(function(O, I) {
75677
75686
  D.onload = O, D.onerror = I;
@@ -78411,7 +78420,7 @@ Check the top-level render call using <` + g + ">.");
78411
78420
  u
78412
78421
  ), Vl.set(E, r), g.querySelector(S) !== null || s === "style" && g.querySelector(
78413
78422
  Hm(E)
78414
- ) || s === "script" && g.querySelector(Vm(E)) || (s = g.createElement("link"), Mi(s, "link", r), Se(s), g.head.appendChild(s)));
78423
+ ) || s === "script" && g.querySelector(Vm(E)) || (s = g.createElement("link"), Mi(s, "link", r), Ee(s), g.head.appendChild(s)));
78415
78424
  }
78416
78425
  },
78417
78426
  m: function(r, s) {
@@ -78439,7 +78448,7 @@ Check the top-level render call using <` + g + ">.");
78439
78448
  if (u.querySelector(Vm(E)))
78440
78449
  return;
78441
78450
  }
78442
- g = u.createElement("link"), Mi(g, "link", r), Se(g), u.head.appendChild(g);
78451
+ g = u.createElement("link"), Mi(g, "link", r), Ee(g), u.head.appendChild(g);
78443
78452
  }
78444
78453
  }
78445
78454
  },
@@ -78450,7 +78459,7 @@ Check the top-level render call using <` + g + ">.");
78450
78459
  var g = Ue(u).hoistableScripts, S = kf(r), E = g.get(S);
78451
78460
  E || (E = u.querySelector(
78452
78461
  Vm(S)
78453
- ), E || (r = dn({ src: r, async: !0 }, s), (s = Vl.get(S)) && d1(r, s), E = u.createElement("script"), Se(E), Mi(E, "link", r), u.head.appendChild(E)), E = {
78462
+ ), E || (r = dn({ src: r, async: !0 }, s), (s = Vl.get(S)) && d1(r, s), E = u.createElement("script"), Ee(E), Mi(E, "link", r), u.head.appendChild(E)), E = {
78454
78463
  type: "script",
78455
78464
  instance: E,
78456
78465
  count: 1,
@@ -78481,7 +78490,7 @@ Check the top-level render call using <` + g + ">.");
78481
78490
  u
78482
78491
  ), (u = Vl.get(E)) && f1(r, u);
78483
78492
  var I = D = g.createElement("link");
78484
- Se(I), Mi(I, "link", r), I._p = new Promise(function(G, ue) {
78493
+ Ee(I), Mi(I, "link", r), I._p = new Promise(function(G, ue) {
78485
78494
  I.onload = G, I.onerror = ue;
78486
78495
  }), I.addEventListener("load", function() {
78487
78496
  O.loading |= Sx;
@@ -78505,7 +78514,7 @@ Check the top-level render call using <` + g + ">.");
78505
78514
  var g = Ue(u).hoistableScripts, S = kf(r), E = g.get(S);
78506
78515
  E || (E = u.querySelector(
78507
78516
  Vm(S)
78508
- ), E || (r = dn({ src: r, async: !0, type: "module" }, s), (s = Vl.get(S)) && d1(r, s), E = u.createElement("script"), Se(E), Mi(E, "link", r), u.head.appendChild(E)), E = {
78517
+ ), E || (r = dn({ src: r, async: !0, type: "module" }, s), (s = Vl.get(S)) && d1(r, s), E = u.createElement("script"), Ee(E), Mi(E, "link", r), u.head.appendChild(E)), E = {
78509
78518
  type: "script",
78510
78519
  instance: E,
78511
78520
  count: 1,
@@ -78688,9 +78697,9 @@ function Fie() {
78688
78697
  var Hie = Fie();
78689
78698
  function Vie(i, e) {
78690
78699
  const t = Hie.createRoot(i);
78691
- return t.render(/* @__PURE__ */ nt.jsx(Uie, { config: e })), t;
78700
+ return t.render(/* @__PURE__ */ Je.jsx(Uie, { config: e })), t;
78692
78701
  }
78693
- const Gie = '@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-outline-style:solid;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-500:oklch(62.3% .214 259.815);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-bold:700;--ease-in-out:cubic-bezier(.4,0,.2,1);--blur-xs:4px;--blur-sm:8px;--blur-xl:24px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-purple-accent:#544ec2}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{.btn-preview{border-style:var(--tw-border-style);border-width:5px;border-color:var(--color-blue-500);border-radius:3.40282e38px}.message{padding-inline:calc(var(--spacing)*3.5);padding-block:calc(var(--spacing)*1.5);font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height));--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6);--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);color:var(--color-white);border-radius:18px}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.chat-typing-indicator{aspect-ratio:3.5;justify-content:space-between;align-items:center;width:28px;display:flex}.chat-typing-indicator__dot{background:radial-gradient(circle closest-side,#fff 90%,#fff0) no-repeat;border-radius:50%;width:8px;height:8px}.chat-typing-indicator__dot_left{animation:2s ease-in-out infinite both chat-typing-dot_left}.chat-typing-indicator__dot_center{animation:2s ease-in-out infinite both chat-typing-dot_center}.chat-typing-indicator__dot_right{animation:2s ease-in-out infinite both chat-typing-dot_right}@keyframes chat-typing-dot_left{0%{opacity:.5;transform:scale(.5)}20%{opacity:.5;transform:scale(.5)}40%{opacity:1;transform:scale(1)}60%{opacity:1;transform:scale(.75)}80%{opacity:1;transform:scale(.5)}to{opacity:.5;transform:scale(.5)}}@keyframes chat-typing-dot_center{0%{opacity:.5;transform:scale(.5)}20%{opacity:.5;transform:scale(.5)}40%{opacity:.5;transform:scale(.5)}60%{opacity:1;transform:scale(1)}80%{opacity:1;transform:scale(.75)}to{opacity:.5;transform:scale(.5)}}@keyframes chat-typing-dot_right{0%{opacity:.5;transform:scale(.5)}20%{opacity:.5;transform:scale(.5)}40%{opacity:.5;transform:scale(.5)}60%{opacity:.5;transform:scale(.5)}80%{opacity:1;transform:scale(1)}to{opacity:.5;transform:scale(.5)}}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.right-10{right:calc(var(--spacing)*10)}.right-\\[54px\\]{right:54px}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-10{bottom:calc(var(--spacing)*10)}.bottom-\\[145px\\]{bottom:145px}.left-0{left:calc(var(--spacing)*0)}.left-9{left:calc(var(--spacing)*9)}.z-0{z-index:0}.z-1{z-index:1}.z-5{z-index:5}.z-10{z-index:10}.z-50{z-index:50}.z-51{z-index:51}.mx-4{margin-inline:calc(var(--spacing)*4)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-16{margin-top:calc(var(--spacing)*16)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.box-content{box-sizing:content-box}.flex{display:flex}.hidden{display:none}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-19{height:calc(var(--spacing)*19)}.h-20{height:calc(var(--spacing)*20)}.h-21{height:calc(var(--spacing)*21)}.h-33{height:calc(var(--spacing)*33)}.h-\\[calc\\(100\\%-32px\\)\\]{height:calc(100% - 32px)}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-9{min-height:calc(var(--spacing)*9)}.min-h-10{min-height:calc(var(--spacing)*10)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-19{width:calc(var(--spacing)*19)}.w-33{width:calc(var(--spacing)*33)}.w-\\[77px\\]{width:77px}.w-\\[calc\\(100\\%-32px\\)\\]{width:calc(100% - 32px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-70{max-width:calc(var(--spacing)*70)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-10{min-width:calc(var(--spacing)*10)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-3xl{border-radius:calc(var(--radius) + 12px)}.rounded-\\[40px\\]{border-radius:40px}.rounded-\\[66px\\]{border-radius:66px}.rounded-full{border-radius:3.40282e38px}.rounded-none{border-radius:0}.rounded-t-\\[40px\\]{border-top-left-radius:40px;border-top-right-radius:40px}.rounded-br-sm{border-bottom-right-radius:calc(var(--radius) - 4px)}.rounded-bl-sm{border-bottom-left-radius:calc(var(--radius) - 4px)}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-gray-200{border-color:var(--color-gray-200)}.bg-black{background-color:var(--color-black)}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-purple-accent{background-color:var(--color-purple-accent)}.bg-purple-accent\\/80{background-color:#544ec2cc}@supports (color:color-mix(in lab,red,red)){.bg-purple-accent\\/80{background-color:color-mix(in oklab,var(--color-purple-accent)80%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-\\[linear-gradient\\(to_bottom\\,rgba\\(0\\,0\\,0\\,0\\.7\\)_0\\%\\,rgba\\(0\\,0\\,0\\,0\\.7\\)_20\\%\\,rgba\\(0\\,0\\,0\\,0\\.2\\)_60\\%\\,rgba\\(0\\,0\\,0\\,0\\)_100\\%\\)\\]{background-image:linear-gradient(#000000b3 0% 20%,#0003 60%,#0000)}.bg-\\[linear-gradient\\(to_top\\,rgba\\(0\\,0\\,0\\,0\\.5\\)_0\\%\\,rgba\\(0\\,0\\,0\\,0\\.5\\)_15\\%\\,rgba\\(0\\,0\\,0\\,0\\)_100\\%\\)\\]{background-image:linear-gradient(#0000,#00000080 85% 100%)}.object-cover{-o-object-fit:cover;object-fit:cover}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.pb-6{padding-bottom:calc(var(--spacing)*6)}.text-left{text-align:left}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-base\\/6{font-size:var(--text-base);line-height:calc(var(--spacing)*6)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.leading-7{--tw-leading:calc(var(--spacing)*7);line-height:calc(var(--spacing)*7)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.break-all{word-break:break-all}.text-black{color:var(--color-black)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-purple-accent{color:var(--color-purple-accent)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-black\\/9{outline-color:#00000017}@supports (color:color-mix(in lab,red,red)){.outline-black\\/9{outline-color:color-mix(in oklab,var(--color-black)9%,transparent)}}.outline-white{outline-color:var(--color-white)}.outline-white\\/30{outline-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.outline-white\\/30{outline-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.outline-solid{--tw-outline-style:solid;outline-style:solid}.paused{animation-play-state:paused}@media(hover:hover){.group-hover\\:block:is(:where(.group):hover *){display:block}.group-hover\\:hidden:is(:where(.group):hover *){display:none}}.group-\\[\\&\\:has\\(textarea\\:focus\\)\\]\\:w-0:is(:where(.group):has(textarea:focus) *){width:calc(var(--spacing)*0)}.group-\\[\\&\\:has\\(textarea\\:focus\\)\\]\\:w-10:is(:where(.group):has(textarea:focus) *){width:calc(var(--spacing)*10)}.group-\\[\\&\\:has\\(textarea\\:focus\\)\\]\\:overflow-hidden:is(:where(.group):has(textarea:focus) *){overflow:hidden}.group-\\[\\&\\:has\\(textarea\\:focus\\)\\]\\:opacity-0:is(:where(.group):has(textarea:focus) *){opacity:0}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.data-active\\:bg-gray-100[data-active]{background-color:var(--color-gray-100)}.data-disabled\\:bg-white\\/20[data-disabled]{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.data-disabled\\:bg-white\\/20[data-disabled]{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.data-disabled\\:text-white\\/30[data-disabled]{color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.data-disabled\\:text-white\\/30[data-disabled]{color:color-mix(in oklab,var(--color-white)30%,transparent)}}.data-disabled\\:backdrop-blur-sm[data-disabled]{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.data-hover\\:bg-gray-100[data-hover]{background-color:var(--color-gray-100)}.data-hover\\:bg-white[data-hover]{background-color:var(--color-white)}.data-hover\\:text-purple-accent[data-hover]{color:var(--color-purple-accent)}@media(min-width:40rem){.sm\\:right-10{right:calc(var(--spacing)*10)}.sm\\:bottom-10{bottom:calc(var(--spacing)*10)}.sm\\:h-170{height:calc(var(--spacing)*170)}.sm\\:w-90{width:calc(var(--spacing)*90)}.sm\\:text-sm\\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}.bridge-ai-chat-widget{--radius:.625rem;-webkit-text-size-adjust:100%}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}';
78702
+ const Gie = '@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-outline-style:solid;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-500:oklch(62.3% .214 259.815);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-bold:700;--ease-in-out:cubic-bezier(.4,0,.2,1);--blur-xs:4px;--blur-sm:8px;--blur-xl:24px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-purple-accent:#544ec2}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{.btn-preview{border-style:var(--tw-border-style);border-width:5px;border-color:var(--color-blue-500);border-radius:3.40282e38px}.message{padding-inline:calc(var(--spacing)*3.5);padding-block:calc(var(--spacing)*1.5);font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height));--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6);--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);color:var(--color-white);border-radius:18px}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.chat-typing-indicator{aspect-ratio:3.5;justify-content:space-between;align-items:center;width:28px;display:flex}.chat-typing-indicator__dot{background:radial-gradient(circle closest-side,#fff 90%,#fff0) no-repeat;border-radius:50%;width:8px;height:8px}.chat-typing-indicator__dot_left{animation:2s ease-in-out infinite both chat-typing-dot_left}.chat-typing-indicator__dot_center{animation:2s ease-in-out infinite both chat-typing-dot_center}.chat-typing-indicator__dot_right{animation:2s ease-in-out infinite both chat-typing-dot_right}@keyframes chat-typing-dot_left{0%{opacity:.5;transform:scale(.5)}20%{opacity:.5;transform:scale(.5)}40%{opacity:1;transform:scale(1)}60%{opacity:1;transform:scale(.75)}80%{opacity:1;transform:scale(.5)}to{opacity:.5;transform:scale(.5)}}@keyframes chat-typing-dot_center{0%{opacity:.5;transform:scale(.5)}20%{opacity:.5;transform:scale(.5)}40%{opacity:.5;transform:scale(.5)}60%{opacity:1;transform:scale(1)}80%{opacity:1;transform:scale(.75)}to{opacity:.5;transform:scale(.5)}}@keyframes chat-typing-dot_right{0%{opacity:.5;transform:scale(.5)}20%{opacity:.5;transform:scale(.5)}40%{opacity:.5;transform:scale(.5)}60%{opacity:.5;transform:scale(.5)}80%{opacity:1;transform:scale(1)}to{opacity:.5;transform:scale(.5)}}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.right-10{right:calc(var(--spacing)*10)}.right-\\[54px\\]{right:54px}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-10{bottom:calc(var(--spacing)*10)}.bottom-\\[145px\\]{bottom:145px}.left-0{left:calc(var(--spacing)*0)}.left-9{left:calc(var(--spacing)*9)}.z-0{z-index:0}.z-1{z-index:1}.z-5{z-index:5}.z-10{z-index:10}.z-50{z-index:50}.z-51{z-index:51}.mx-4{margin-inline:calc(var(--spacing)*4)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-16{margin-top:calc(var(--spacing)*16)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.box-content{box-sizing:content-box}.flex{display:flex}.hidden{display:none}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-19{height:calc(var(--spacing)*19)}.h-20{height:calc(var(--spacing)*20)}.h-21{height:calc(var(--spacing)*21)}.h-33{height:calc(var(--spacing)*33)}.h-\\[calc\\(100\\%-32px\\)\\]{height:calc(100% - 32px)}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-9{min-height:calc(var(--spacing)*9)}.min-h-10{min-height:calc(var(--spacing)*10)}.min-h-full{min-height:100%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-19{width:calc(var(--spacing)*19)}.w-33{width:calc(var(--spacing)*33)}.w-\\[77px\\]{width:77px}.w-\\[calc\\(100\\%-32px\\)\\]{width:calc(100% - 32px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-70{max-width:calc(var(--spacing)*70)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-10{min-width:calc(var(--spacing)*10)}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-3xl{border-radius:calc(var(--radius) + 12px)}.rounded-\\[40px\\]{border-radius:40px}.rounded-\\[66px\\]{border-radius:66px}.rounded-full{border-radius:3.40282e38px}.rounded-none{border-radius:0}.rounded-t-\\[40px\\]{border-top-left-radius:40px;border-top-right-radius:40px}.rounded-br-sm{border-bottom-right-radius:calc(var(--radius) - 4px)}.rounded-bl-sm{border-bottom-left-radius:calc(var(--radius) - 4px)}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-gray-200{border-color:var(--color-gray-200)}.bg-black{background-color:var(--color-black)}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-purple-accent{background-color:var(--color-purple-accent)}.bg-purple-accent\\/80{background-color:#544ec2cc}@supports (color:color-mix(in lab,red,red)){.bg-purple-accent\\/80{background-color:color-mix(in oklab,var(--color-purple-accent)80%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-\\[linear-gradient\\(to_bottom\\,rgba\\(0\\,0\\,0\\,0\\.7\\)_0\\%\\,rgba\\(0\\,0\\,0\\,0\\.7\\)_20\\%\\,rgba\\(0\\,0\\,0\\,0\\.2\\)_60\\%\\,rgba\\(0\\,0\\,0\\,0\\)_100\\%\\)\\]{background-image:linear-gradient(#000000b3 0% 20%,#0003 60%,#0000)}.bg-\\[linear-gradient\\(to_top\\,rgba\\(0\\,0\\,0\\,0\\.5\\)_0\\%\\,rgba\\(0\\,0\\,0\\,0\\.5\\)_15\\%\\,rgba\\(0\\,0\\,0\\,0\\)_100\\%\\)\\]{background-image:linear-gradient(#0000,#00000080 85% 100%)}.object-cover{-o-object-fit:cover;object-fit:cover}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.pb-6{padding-bottom:calc(var(--spacing)*6)}.text-left{text-align:left}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-base\\/6{font-size:var(--text-base);line-height:calc(var(--spacing)*6)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.leading-7{--tw-leading:calc(var(--spacing)*7);line-height:calc(var(--spacing)*7)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-black{color:var(--color-black)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-purple-accent{color:var(--color-purple-accent)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-black\\/9{outline-color:#00000017}@supports (color:color-mix(in lab,red,red)){.outline-black\\/9{outline-color:color-mix(in oklab,var(--color-black)9%,transparent)}}.outline-white{outline-color:var(--color-white)}.outline-white\\/30{outline-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.outline-white\\/30{outline-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.outline-solid{--tw-outline-style:solid;outline-style:solid}.paused{animation-play-state:paused}@media(hover:hover){.group-hover\\:block:is(:where(.group):hover *){display:block}.group-hover\\:hidden:is(:where(.group):hover *){display:none}}.group-\\[\\&\\:has\\(textarea\\:focus\\)\\]\\:w-0:is(:where(.group):has(textarea:focus) *){width:calc(var(--spacing)*0)}.group-\\[\\&\\:has\\(textarea\\:focus\\)\\]\\:w-10:is(:where(.group):has(textarea:focus) *){width:calc(var(--spacing)*10)}.group-\\[\\&\\:has\\(textarea\\:focus\\)\\]\\:overflow-hidden:is(:where(.group):has(textarea:focus) *){overflow:hidden}.group-\\[\\&\\:has\\(textarea\\:focus\\)\\]\\:opacity-0:is(:where(.group):has(textarea:focus) *){opacity:0}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.data-active\\:bg-gray-100[data-active]{background-color:var(--color-gray-100)}.data-disabled\\:bg-white\\/20[data-disabled]{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.data-disabled\\:bg-white\\/20[data-disabled]{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.data-disabled\\:text-white\\/30[data-disabled]{color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.data-disabled\\:text-white\\/30[data-disabled]{color:color-mix(in oklab,var(--color-white)30%,transparent)}}.data-disabled\\:backdrop-blur-sm[data-disabled]{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.data-hover\\:bg-gray-100[data-hover]{background-color:var(--color-gray-100)}.data-hover\\:bg-white[data-hover]{background-color:var(--color-white)}.data-hover\\:text-purple-accent[data-hover]{color:var(--color-purple-accent)}@media(min-width:40rem){.sm\\:right-10{right:calc(var(--spacing)*10)}.sm\\:bottom-10{bottom:calc(var(--spacing)*10)}.sm\\:h-170{height:calc(var(--spacing)*170)}.sm\\:w-90{width:calc(var(--spacing)*90)}.sm\\:text-sm\\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}.bridge-ai-chat-widget{--radius:.625rem;-webkit-text-size-adjust:100%}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}';
78694
78703
  class qie {
78695
78704
  root;
78696
78705
  shadowRoot;