@car-cutter/react-webplayer 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import xe, { createContext as Le, useContext as _e, useRef as W, useState as F, useCallback as T, useEffect as A, useMemo as Q, Fragment as Ot } from "react";
2
- import At from "react-dom";
1
+ import we, { createContext as Le, useContext as _e, useRef as W, useState as $, useCallback as T, useEffect as A, useMemo as Q, Fragment as Ot } from "react";
2
+ import Pt from "react-dom";
3
3
  var tt = { exports: {} }, he = {};
4
4
  /**
5
5
  * @license React
@@ -11,27 +11,27 @@ var tt = { exports: {} }, he = {};
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
13
  var Ye;
14
- function Pt() {
14
+ function At() {
15
15
  if (Ye) return he;
16
16
  Ye = 1;
17
- var e = xe, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function i(d, s, g) {
19
- var c, f = {}, p = null, M = null;
20
- g !== void 0 && (p = "" + g), s.key !== void 0 && (p = "" + s.key), s.ref !== void 0 && (M = s.ref);
21
- for (c in s) o.call(s, c) && !l.hasOwnProperty(c) && (f[c] = s[c]);
22
- if (d && d.defaultProps) for (c in s = d.defaultProps, s) f[c] === void 0 && (f[c] = s[c]);
23
- return { $$typeof: r, type: d, key: p, ref: M, props: f, _owner: a.current };
17
+ var e = we, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function l(c, a, f) {
19
+ var d, h = {}, g = null, z = null;
20
+ f !== void 0 && (g = "" + f), a.key !== void 0 && (g = "" + a.key), a.ref !== void 0 && (z = a.ref);
21
+ for (d in a) o.call(a, d) && !s.hasOwnProperty(d) && (h[d] = a[d]);
22
+ if (c && c.defaultProps) for (d in a = c.defaultProps, a) h[d] === void 0 && (h[d] = a[d]);
23
+ return { $$typeof: r, type: c, key: g, ref: z, props: h, _owner: i.current };
24
24
  }
25
- return he.Fragment = n, he.jsx = i, he.jsxs = i, he;
25
+ return he.Fragment = n, he.jsx = l, he.jsxs = l, he;
26
26
  }
27
- tt.exports = Pt();
27
+ tt.exports = At();
28
28
  var rt = tt.exports;
29
- const Ze = "cc-webplayer", Fe = "cc-webplayer-icon", nt = "composition-loading", ot = "composition-loaded", st = "composition-load-error", at = "extend-mode-on", it = "extend-mode-off", lt = "hotspots-on", ct = "hotspots-off", dt = "gallery-open", ut = "gallery-close", Zt = !1, Ft = !1, $t = !1, Wt = "quality", Dt = !1, mt = "cc-webplayer:", Ut = !1;
29
+ const Ze = "cc-webplayer", $e = "cc-webplayer-icon", nt = "composition-loading", ot = "composition-loaded", st = "composition-load-error", at = "extend-mode-on", it = "extend-mode-off", lt = "hotspots-on", ct = "hotspots-off", dt = "gallery-open", ut = "gallery-close", Zt = !1, $t = !1, Ft = !1, Wt = "quality", Dt = !1, mt = "cc-webplayer:", Ut = !1;
30
30
  function Yt(e, r) {
31
31
  const n = e.split("/"), o = n.pop();
32
32
  return [n.join("/"), r, o].join("/");
33
33
  }
34
- var pt = { exports: {} }, fe = {};
34
+ var pt = { exports: {} }, ge = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.production.min.js
@@ -43,17 +43,17 @@ var pt = { exports: {} }, fe = {};
43
43
  */
44
44
  var Xe;
45
45
  function Xt() {
46
- if (Xe) return fe;
46
+ if (Xe) return ge;
47
47
  Xe = 1;
48
- var e = xe, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
49
- function i(d, s, g) {
50
- var c, f = {}, p = null, M = null;
51
- g !== void 0 && (p = "" + g), s.key !== void 0 && (p = "" + s.key), s.ref !== void 0 && (M = s.ref);
52
- for (c in s) o.call(s, c) && !l.hasOwnProperty(c) && (f[c] = s[c]);
53
- if (d && d.defaultProps) for (c in s = d.defaultProps, s) f[c] === void 0 && (f[c] = s[c]);
54
- return { $$typeof: r, type: d, key: p, ref: M, props: f, _owner: a.current };
48
+ var e = we, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
49
+ function l(c, a, f) {
50
+ var d, h = {}, g = null, z = null;
51
+ f !== void 0 && (g = "" + f), a.key !== void 0 && (g = "" + a.key), a.ref !== void 0 && (z = a.ref);
52
+ for (d in a) o.call(a, d) && !s.hasOwnProperty(d) && (h[d] = a[d]);
53
+ if (c && c.defaultProps) for (d in a = c.defaultProps, a) h[d] === void 0 && (h[d] = a[d]);
54
+ return { $$typeof: r, type: c, key: g, ref: z, props: h, _owner: i.current };
55
55
  }
56
- return fe.Fragment = n, fe.jsx = i, fe.jsxs = i, fe;
56
+ return ge.Fragment = n, ge.jsx = l, ge.jsxs = l, ge;
57
57
  }
58
58
  pt.exports = Xt();
59
59
  var t = pt.exports;
@@ -64,14 +64,14 @@ async function Gt(e) {
64
64
  return await r.json();
65
65
  }
66
66
  const Oe = /* @__PURE__ */ new Map(), Bt = (e) => {
67
- const [r, n] = F({
67
+ const [r, n] = $({
68
68
  status: "pending",
69
69
  isSuccess: !1
70
70
  });
71
71
  return A(() => {
72
- const o = (l) => n({ status: "success", data: l, isSuccess: !0 }), a = Oe.get(e);
73
- if (a && !(a instanceof Promise)) {
74
- o(a);
72
+ const o = (s) => n({ status: "success", data: s, isSuccess: !0 }), i = Oe.get(e);
73
+ if (i && !(i instanceof Promise)) {
74
+ o(i);
75
75
  return;
76
76
  }
77
77
  n({
@@ -79,19 +79,19 @@ const Oe = /* @__PURE__ */ new Map(), Bt = (e) => {
79
79
  isSuccess: !1
80
80
  }), async function() {
81
81
  try {
82
- let l;
83
- if (a)
84
- l = await a;
82
+ let s;
83
+ if (i)
84
+ s = await i;
85
85
  else {
86
- const i = Gt(e);
87
- Oe.set(e, i), l = await i, Oe.set(e, l);
86
+ const l = Gt(e);
87
+ Oe.set(e, l), s = await l, Oe.set(e, s);
88
88
  }
89
- o(l);
90
- } catch (l) {
89
+ o(s);
90
+ } catch (s) {
91
91
  n({
92
92
  status: "error",
93
93
  isSuccess: !1,
94
- error: l
94
+ error: s
95
95
  });
96
96
  }
97
97
  }();
@@ -104,10 +104,10 @@ const Oe = /* @__PURE__ */ new Map(), Bt = (e) => {
104
104
  );
105
105
  return e;
106
106
  }, qt = ({ composition: e, children: r }) => {
107
- const { aspectRatio: n, categories: o } = e, a = Q(
108
- () => o.flatMap(({ items: i }) => i),
107
+ const { aspectRatio: n, categories: o } = e, i = Q(
108
+ () => o.flatMap(({ items: l }) => l),
109
109
  [o]
110
- ), l = {
110
+ ), s = {
111
111
  aspectRatio: n.replace(":", " / ")
112
112
  };
113
113
  return /* @__PURE__ */ t.jsx(
@@ -115,24 +115,24 @@ const Oe = /* @__PURE__ */ new Map(), Bt = (e) => {
115
115
  {
116
116
  value: {
117
117
  ...e,
118
- items: a,
119
- aspectRatioStyle: l
118
+ items: i,
119
+ aspectRatioStyle: s
120
120
  },
121
121
  children: r
122
122
  }
123
123
  );
124
- }, ft = 500, Pe = 0.75, Ne = 1 + Pe * 2;
124
+ }, gt = 500, Ae = 0.75, Ee = 1 + Ae * 2;
125
125
  function ae(e, r, n) {
126
126
  return Math.min(Math.max(e, r), n);
127
127
  }
128
- const Ee = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Le(null), te = () => {
129
- const e = _e(gt);
128
+ const Ne = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, ft = Le(null), te = () => {
129
+ const e = _e(ft);
130
130
  if (!e)
131
131
  throw new Error(
132
132
  "useGlobalContext must be used within a GlobalContextProvider"
133
133
  );
134
134
  return e;
135
- }, Kt = ({ children: e, ...r }) => /* @__PURE__ */ t.jsx(gt.Provider, { value: r, children: e }), vt = Le(null), q = () => {
135
+ }, Kt = ({ children: e, ...r }) => /* @__PURE__ */ t.jsx(ft.Provider, { value: r, children: e }), vt = Le(null), q = () => {
136
136
  const e = _e(vt);
137
137
  if (!e)
138
138
  throw new Error(
@@ -146,56 +146,56 @@ const Ee = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Le
146
146
  emitEvent: r,
147
147
  isFullScreen: n,
148
148
  preventFullScreen: o,
149
- requestFullscreen: a,
150
- exitFullscreen: l
151
- } = te(), { categories: i, items: d } = ee(), s = T(() => d.map(() => null), [d]), [g, c] = F(s), f = T(
152
- (O, de) => {
153
- c(
154
- (ye) => ye.map((Re, pe) => pe === O ? de : Re)
149
+ requestFullscreen: i,
150
+ exitFullscreen: s
151
+ } = te(), { categories: l, items: c } = ee(), a = T(() => c.map(() => null), [c]), [f, d] = $(a), h = T(
152
+ (P, de) => {
153
+ d(
154
+ (ye) => ye.map((He, pe) => pe === P ? de : He)
155
155
  );
156
156
  },
157
157
  []
158
- ), [p, M] = F(0), [u, h] = F(null), j = u ?? p, N = d[j], E = g[j], [w, k] = F(null), y = T(() => k(null), []), I = T(() => {
159
- if (w || u !== null)
158
+ ), [g, z] = $(0), [u, p] = $(null), j = u ?? g, C = c[j], E = f[j], [x, k] = $(null), y = T(() => k(null), []), I = T(() => {
159
+ if (x || u !== null)
160
160
  return;
161
- const O = p - 1;
162
- O < 0 ? (k("first_to_last"), h(d.length - 1)) : h(O);
163
- }, [p, d.length, w, u]), v = T(() => {
164
- if (w || u !== null)
161
+ const P = g - 1;
162
+ P < 0 ? (k("first_to_last"), p(c.length - 1)) : p(P);
163
+ }, [g, c.length, x, u]), v = T(() => {
164
+ if (x || u !== null)
165
165
  return;
166
- const O = p + 1;
167
- O > d.length - 1 ? (k("last_to_first"), h(0)) : h(O);
168
- }, [p, d.length, w, u]), L = Q(() => {
169
- for (const O of i)
170
- if (O.items.includes(N))
171
- return O.id;
166
+ const P = g + 1;
167
+ P > c.length - 1 ? (k("last_to_first"), p(0)) : p(P);
168
+ }, [g, c.length, x, u]), L = Q(() => {
169
+ for (const P of l)
170
+ if (P.items.includes(C))
171
+ return P.id;
172
172
  throw new Error("Current item not found in any category");
173
- }, [i, N]), z = T(
174
- (O) => {
173
+ }, [l, C]), M = T(
174
+ (P) => {
175
175
  var de;
176
- const ye = (de = i.find(({ id: pe }) => pe === O)) == null ? void 0 : de.items[0];
176
+ const ye = (de = l.find(({ id: pe }) => pe === P)) == null ? void 0 : de.items[0];
177
177
  if (ye === void 0)
178
178
  throw new Error("Failed to find target category");
179
- const Re = d.findIndex((pe) => pe === ye);
180
- h(Re);
179
+ const He = c.findIndex((pe) => pe === ye);
180
+ p(He);
181
181
  },
182
- [i, d]
183
- ), C = Q(() => {
184
- var O;
185
- switch (N.type) {
182
+ [l, c]
183
+ ), N = Q(() => {
184
+ var P;
185
+ switch (C.type) {
186
186
  case "image":
187
- return !!((O = N.hotspots) != null && O.length);
187
+ return !!((P = C.hotspots) != null && P.length);
188
188
  case "360":
189
189
  return E !== null;
190
190
  case "video":
191
191
  case "omni_directional":
192
192
  return !1;
193
193
  }
194
- }, [N, E]), [S, H] = F(!0), R = T(() => {
195
- const O = !S;
196
- H(O), r(O ? lt : ct);
194
+ }, [C, E]), [S, R] = $(!0), H = T(() => {
195
+ const P = !S;
196
+ R(P), r(P ? lt : ct);
197
197
  }, [r, S]), U = Q(() => {
198
- switch (N.type) {
198
+ switch (C.type) {
199
199
  case "image":
200
200
  case "360":
201
201
  case "omni_directional":
@@ -203,11 +203,11 @@ const Ee = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Le
203
203
  case "video":
204
204
  return E !== "running";
205
205
  }
206
- }, [N, E]), [_, x] = F(!1), m = T(() => {
207
- const O = !_;
208
- x(O), r(O ? dt : ut);
209
- }, [r, _]), [b, V] = F(null), P = T(() => V(null), []), $ = !!b, D = Q(() => {
210
- switch (N.type) {
206
+ }, [C, E]), [_, w] = $(!1), m = T(() => {
207
+ const P = !_;
208
+ w(P), r(P ? dt : ut);
209
+ }, [r, _]), [b, V] = $(null), Z = T(() => V(null), []), F = !!b, D = Q(() => {
210
+ switch (C.type) {
211
211
  case "image":
212
212
  return !0;
213
213
  case "360":
@@ -216,43 +216,43 @@ const Ee = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Le
216
216
  case "omni_directional":
217
217
  return !1;
218
218
  }
219
- }, [N.type, E]), [X, G] = F(1), K = X !== 1, re = X < Ne, ne = X > 1, oe = T((O) => {
220
- G((de) => ae(de + O, 1, Ne));
221
- }, []), me = T(() => G(1), []), ze = T(() => oe(Pe), [oe]), Me = T(() => oe(-Pe), [oe]), Ie = T(() => {
222
- me(), P();
223
- }, [me, P]), [ie, Ht] = F(!1), [Te, De] = F(), [Ve, Ue] = F(!1), le = T(
224
- async (O) => {
225
- Ie(), Ht(O), r(O ? at : it);
219
+ }, [C.type, E]), [X, G] = $(1), K = X !== 1, re = X < Ee, ne = X > 1, oe = T((P) => {
220
+ G((de) => ae(de + P, 1, Ee));
221
+ }, []), me = T(() => G(1), []), ze = T(() => oe(Ae), [oe]), Me = T(() => oe(-Ae), [oe]), Ie = T(() => {
222
+ me(), Z();
223
+ }, [me, Z]), [ie, Rt] = $(!1), [Te, De] = $(), [Ve, Ue] = $(!1), le = T(
224
+ async (P) => {
225
+ Ie(), Rt(P), r(P ? at : it);
226
226
  },
227
227
  [r, Ie]
228
228
  ), ce = T(() => {
229
229
  clearTimeout(Te);
230
- const O = setTimeout(() => {
230
+ const P = setTimeout(() => {
231
231
  De(void 0);
232
- }, ft);
233
- De(O);
232
+ }, gt);
233
+ De(P);
234
234
  }, [Te]), Se = T(async () => {
235
235
  if (ce(), !o) {
236
- const O = await a();
237
- if (Ue(!O), O)
236
+ const P = await i();
237
+ if (Ue(!P), P)
238
238
  return;
239
239
  }
240
240
  le(!0);
241
241
  }, [
242
242
  o,
243
243
  le,
244
- a,
244
+ i,
245
245
  ce
246
- ]), He = T(async () => {
247
- ce(), !(!o && (Ue(!1), await l())) && le(!1);
246
+ ]), Re = T(async () => {
247
+ ce(), !(!o && (Ue(!1), await s())) && le(!1);
248
248
  }, [
249
249
  o,
250
250
  le,
251
- l,
251
+ s,
252
252
  ce
253
- ]), Rt = T(() => {
254
- ie ? He() : Se();
255
- }, [He, Se, ie]);
253
+ ]), Ht = T(() => {
254
+ ie ? Re() : Se();
255
+ }, [Re, Se, ie]);
256
256
  return A(() => {
257
257
  o || Ve && ie || n !== ie && (ce(), le(n));
258
258
  }, [
@@ -266,30 +266,30 @@ const Ee = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Le
266
266
  vt.Provider,
267
267
  {
268
268
  value: {
269
- setItemInteraction: f,
270
- slidable: d.length > 1,
271
- carrouselItemIndex: p,
272
- setCarrouselItemIndex: M,
269
+ setItemInteraction: h,
270
+ slidable: c.length > 1,
271
+ carrouselItemIndex: g,
272
+ setCarrouselItemIndex: z,
273
273
  itemIndexCommand: u,
274
- setItemIndexCommand: h,
274
+ setItemIndexCommand: p,
275
275
  masterItemIndex: j,
276
- cycling: w,
277
- isCycling: !!w,
276
+ cycling: x,
277
+ isCycling: !!x,
278
278
  finishCycling: y,
279
279
  prevImage: I,
280
280
  nextImage: v,
281
281
  displayedCategoryId: L,
282
- changeCategory: z,
283
- enableHotspotsControl: C,
282
+ changeCategory: M,
283
+ enableHotspotsControl: N,
284
284
  showHotspots: S,
285
- toggleHotspots: R,
285
+ toggleHotspots: H,
286
286
  showGalleryControls: U,
287
287
  showGallery: _,
288
288
  toggleGallery: m,
289
289
  shownDetails: b,
290
- isShowingDetails: $,
290
+ isShowingDetails: F,
291
291
  setShownDetails: V,
292
- resetShownDetails: P,
292
+ resetShownDetails: Z,
293
293
  showZoomControls: D,
294
294
  zoom: X,
295
295
  isZooming: K,
@@ -302,17 +302,17 @@ const Ee = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Le
302
302
  resetView: Ie,
303
303
  extendMode: ie,
304
304
  enableExtendMode: Se,
305
- disableExtendMode: He,
306
- toggleExtendMode: Rt,
305
+ disableExtendMode: Re,
306
+ toggleExtendMode: Ht,
307
307
  extendTransition: !!Te,
308
308
  fakeFullScreen: Ve
309
309
  },
310
310
  children: e
311
311
  }
312
312
  );
313
- }, wt = ["left", "center", "right", "fullW"], xt = ["top", "middle", "bottom", "fullH"], Qt = [
314
- ...wt,
313
+ }, xt = ["left", "center", "right", "fullW"], wt = ["top", "middle", "bottom", "fullH"], Qt = [
315
314
  ...xt,
315
+ ...wt,
316
316
  "top-left",
317
317
  "top-center",
318
318
  "top-right",
@@ -331,10 +331,10 @@ const Ee = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Le
331
331
  "fullW-fullW"
332
332
  ];
333
333
  function er(e) {
334
- return wt.includes(e);
334
+ return xt.includes(e);
335
335
  }
336
336
  function tr(e) {
337
- return xt.includes(e);
337
+ return wt.includes(e);
338
338
  }
339
339
  function rr(e) {
340
340
  return Qt.includes(e);
@@ -344,7 +344,7 @@ function nr(e) {
344
344
  throw new Error(`Invalid position: ${e}`);
345
345
  return tr(e) ? [e, void 0] : er(e) ? [void 0, e] : e.split("-");
346
346
  }
347
- function Z(...e) {
347
+ function O(...e) {
348
348
  return e.filter((r) => !!r).map((r) => r.trim()).join(" ");
349
349
  }
350
350
  function or(e) {
@@ -382,7 +382,7 @@ function ue(e) {
382
382
  const [r, n] = nr(e);
383
383
  return sr({ positionX: n, positionY: r });
384
384
  }
385
- const bt = Le(null), jt = () => _e(bt), $e = () => {
385
+ const bt = Le(null), jt = () => _e(bt), Fe = () => {
386
386
  const e = jt();
387
387
  if (!e)
388
388
  throw new Error(
@@ -390,44 +390,44 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
390
390
  );
391
391
  return e;
392
392
  }, ar = ({ children: e }) => {
393
- const [r, n] = F(
393
+ const [r, n] = $(
394
394
  /* @__PURE__ */ new Map()
395
395
  ), o = T(
396
- (i) => {
397
- const d = r.get(i);
398
- if (d)
399
- return d;
400
- const s = document.querySelector(
401
- `${Fe}[name="${i}"]`
396
+ (l) => {
397
+ const c = r.get(l);
398
+ if (c)
399
+ return c;
400
+ const a = document.querySelector(
401
+ `${$e}[name="${l}"]`
402
402
  );
403
- if (!s)
403
+ if (!a)
404
404
  return;
405
- const g = s.getAttribute("color") ?? void 0, c = s.innerHTML, f = c ? /* @__PURE__ */ t.jsx(
405
+ const f = a.getAttribute("color") ?? void 0, d = a.innerHTML, h = d ? /* @__PURE__ */ t.jsx(
406
406
  "div",
407
407
  {
408
408
  className: "size-full",
409
- dangerouslySetInnerHTML: { __html: c }
409
+ dangerouslySetInnerHTML: { __html: d }
410
410
  }
411
411
  ) : void 0;
412
- if (!(!g && !f))
413
- return { Icon: f, color: g };
412
+ if (!(!f && !h))
413
+ return { Icon: h, color: f };
414
414
  },
415
415
  [r]
416
- ), a = T(
417
- (i, d) => {
418
- n((s) => new Map(s.set(i, d)));
416
+ ), i = T(
417
+ (l, c) => {
418
+ n((a) => new Map(a.set(l, c)));
419
419
  },
420
420
  []
421
- ), l = T((i) => {
422
- n((d) => (d.delete(i), new Map(d)));
421
+ ), s = T((l) => {
422
+ n((c) => (c.delete(l), new Map(c)));
423
423
  }, []);
424
424
  return /* @__PURE__ */ t.jsx(
425
425
  bt.Provider,
426
426
  {
427
427
  value: {
428
428
  getIconConfig: o,
429
- setIconConfig: a,
430
- resetIconConfig: l
429
+ setIconConfig: i,
430
+ resetIconConfig: s
431
431
  },
432
432
  children: e
433
433
  }
@@ -437,13 +437,13 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
437
437
  className: r = "",
438
438
  children: n
439
439
  }) => {
440
- const { getIconConfig: o } = $e(), a = o(e);
441
- return a ? /* @__PURE__ */ t.jsx(
440
+ const { getIconConfig: o } = Fe(), i = o(e);
441
+ return i ? /* @__PURE__ */ t.jsx(
442
442
  "div",
443
443
  {
444
444
  className: r,
445
- style: { color: a == null ? void 0 : a.color },
446
- children: (a == null ? void 0 : a.Icon) ?? n
445
+ style: { color: i == null ? void 0 : i.color },
446
+ children: (i == null ? void 0 : i.Icon) ?? n
447
447
  }
448
448
  ) : n;
449
449
  }, ir = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_CLOSE", children: /* @__PURE__ */ t.jsx(
@@ -480,16 +480,16 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
480
480
  shape: r = "button",
481
481
  color: n = "primary",
482
482
  className: o = "",
483
- children: a,
484
- ...l
483
+ children: i,
484
+ ...s
485
485
  }) => {
486
- const i = lr[e][n], d = cr[r];
486
+ const l = lr[e][n], c = cr[r];
487
487
  return /* @__PURE__ */ t.jsx(
488
488
  "button",
489
489
  {
490
- className: `${i} ${d} flex items-center justify-center rounded-ui text-sm transition disabled:opacity-60 ${o}`,
491
- ...l,
492
- children: a
490
+ className: `${l} ${c} flex items-center justify-center rounded-ui text-sm transition disabled:opacity-60 ${o}`,
491
+ ...s,
492
+ children: i
493
493
  }
494
494
  );
495
495
  }, kt = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(B, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(ir, { className: "size-full" }) }), Ct = ({
@@ -508,7 +508,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
508
508
  sm: "size-4 border",
509
509
  md: "size-8 border-2",
510
510
  lg: "size-12 border-4"
511
- }, Et = ({
511
+ }, Nt = ({
512
512
  color: e = "neutral",
513
513
  size: r = "md"
514
514
  }) => {
@@ -519,52 +519,52 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
519
519
  className: `inline-block ${o} animate-rotation rounded-full ${n} border-b-transparent`
520
520
  }
521
521
  );
522
- }, we = ({
522
+ }, xe = ({
523
523
  src: e,
524
524
  imgInPlayerWidthRatio: r = 1,
525
525
  onlyThumbnail: n,
526
526
  ...o
527
527
  }) => {
528
528
  const {
529
- minImageWidth: a,
530
- maxImageWidth: l,
531
- imageLoadStrategy: i,
532
- playerInViewportWidthRatio: d
533
- } = te(), { imageHdWidth: s, imageSubWidths: g } = ee(), [c, f] = Q(() => {
534
- const p = g.concat(s).sort((h, j) => h - j).filter((h) => !(a && h < a || l && h > l));
535
- if (p.length === 0)
529
+ minImageWidth: i,
530
+ maxImageWidth: s,
531
+ imageLoadStrategy: l,
532
+ playerInViewportWidthRatio: c
533
+ } = te(), { imageHdWidth: a, imageSubWidths: f } = ee(), [d, h] = Q(() => {
534
+ const g = f.concat(a).sort((p, j) => p - j).filter((p) => !(i && p < i || s && p > s));
535
+ if (g.length === 0)
536
536
  throw new Error("No image widths available for the given constraints");
537
- const M = p.map((h) => `${h !== s ? Yt(e, h) : e} ${h}w`);
537
+ const z = g.map((p) => `${p !== a ? Yt(e, p) : e} ${p}w`);
538
538
  let u;
539
539
  if (n)
540
- u = [`${p.shift()}px`];
540
+ u = [`${g.shift()}px`];
541
541
  else {
542
- const h = 1 / (r * d);
543
- if (i === "quality") {
544
- const j = p.pop();
545
- u = p.map(
546
- (N) => `(max-width: ${h * N}px) ${N}px`
542
+ const p = 1 / (r * c);
543
+ if (l === "quality") {
544
+ const j = g.pop();
545
+ u = g.map(
546
+ (C) => `(max-width: ${p * C}px) ${C}px`
547
547
  ), u.push(`${j}px`);
548
548
  } else {
549
- const j = p.shift();
550
- u = p.reverse().map(
551
- (N) => `(min-width: ${h * N}px) ${N}px`
549
+ const j = g.shift();
550
+ u = g.reverse().map(
551
+ (C) => `(min-width: ${p * C}px) ${C}px`
552
552
  ), u.push(`${j}px`);
553
553
  }
554
554
  }
555
- return [M.join(", "), u.join(", ")];
555
+ return [z.join(", "), u.join(", ")];
556
556
  }, [
557
+ a,
558
+ l,
559
+ f,
560
+ r,
557
561
  s,
558
562
  i,
559
- g,
560
- r,
561
- l,
562
- a,
563
563
  n,
564
- d,
564
+ c,
565
565
  e
566
566
  ]);
567
- return /* @__PURE__ */ t.jsx("img", { src: e, srcSet: c, sizes: f, ...o });
567
+ return /* @__PURE__ */ t.jsx("img", { src: e, srcSet: d, sizes: h, ...o });
568
568
  }, We = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_PLAY", children: /* @__PURE__ */ t.jsx(
569
569
  "svg",
570
570
  {
@@ -577,7 +577,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
577
577
  strokeLinejoin: "round",
578
578
  children: /* @__PURE__ */ t.jsx("polygon", { points: "6 3 20 12 6 21 6 3" })
579
579
  }
580
- ) }), Nt = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_360", children: /* @__PURE__ */ t.jsxs(
580
+ ) }), Et = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_360", children: /* @__PURE__ */ t.jsxs(
581
581
  "svg",
582
582
  {
583
583
  className: e,
@@ -639,7 +639,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
639
639
  return /* @__PURE__ */ t.jsx(
640
640
  "div",
641
641
  {
642
- className: Z(
642
+ className: O(
643
643
  "flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",
644
644
  r && "large:h-3/5 large:p-2"
645
645
  ),
@@ -649,30 +649,41 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
649
649
  }, mr = ({ item: e }) => {
650
650
  const { aspectRatioStyle: r } = ee(), { type: n } = e;
651
651
  let o;
652
- if (n === "360" || n === "image") {
653
- const l = n === "360" ? e.images[0].src : e.src;
654
- o = /* @__PURE__ */ t.jsx(we, { className: "size-full object-cover", src: l, onlyThumbnail: !0 });
652
+ if (n !== "omni_directional") {
653
+ let s;
654
+ switch (n) {
655
+ case "360":
656
+ s = e.images[0].src;
657
+ break;
658
+ case "image":
659
+ s = e.src;
660
+ break;
661
+ case "video":
662
+ s = e.poster;
663
+ break;
664
+ }
665
+ o = /* @__PURE__ */ t.jsx(xe, { className: "size-full object-cover", src: s, onlyThumbnail: !0 });
655
666
  } else {
656
- const l = n === "video" ? e.poster : e.src;
657
- o = /* @__PURE__ */ t.jsx("img", { className: "size-full object-cover", src: l });
667
+ const s = e.src;
668
+ o = /* @__PURE__ */ t.jsx("img", { className: "size-full object-cover", src: s });
658
669
  }
659
- let a;
670
+ let i;
660
671
  switch (n) {
661
672
  case "360":
662
- a = /* @__PURE__ */ t.jsx(Be, { children: /* @__PURE__ */ t.jsx(Nt, { className: "size-full text-primary" }) });
673
+ i = /* @__PURE__ */ t.jsx(Be, { children: /* @__PURE__ */ t.jsx(Et, { className: "size-full text-primary" }) });
663
674
  break;
664
675
  case "video":
665
- a = /* @__PURE__ */ t.jsx(Be, { children: /* @__PURE__ */ t.jsx(We, { className: "size-full p-0.5 text-background" }) });
676
+ i = /* @__PURE__ */ t.jsx(Be, { children: /* @__PURE__ */ t.jsx(We, { className: "size-full p-0.5 text-background" }) });
666
677
  break;
667
678
  }
668
679
  return /* @__PURE__ */ t.jsxs(
669
680
  "div",
670
681
  {
671
- className: "relative overflow-hidden rounded-gallery bg-foreground/50",
682
+ className: "relative overflow-hidden rounded-gallery bg-foreground/30",
672
683
  style: r,
673
684
  children: [
674
685
  o,
675
- a && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-foreground/25", children: a })
686
+ i && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-foreground/25", children: i })
676
687
  ]
677
688
  }
678
689
  );
@@ -686,93 +697,93 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
686
697
  orientation: r = "horizontal"
687
698
  }) => {
688
699
  const n = pr[e], o = r === "horizontal" ? "h-px w-full" : "w-px h-full";
689
- return /* @__PURE__ */ t.jsx("div", { className: Z(n, o) });
700
+ return /* @__PURE__ */ t.jsx("div", { className: O(n, o) });
690
701
  }, _t = ({
691
702
  className: e = "",
692
703
  containerClassName: r = ""
693
704
  }) => {
694
- const { flatten: n, isFullScreen: o, permanentGallery: a } = te(), { categories: l, items: i, aspectRatioStyle: d } = ee(), {
695
- extendMode: s,
696
- extendTransition: g,
697
- masterItemIndex: c,
698
- setItemIndexCommand: f,
699
- resetView: p
700
- } = q(), M = Q(() => {
705
+ const { flatten: n, isFullScreen: o, permanentGallery: i } = te(), { categories: s, items: l, aspectRatioStyle: c } = ee(), {
706
+ extendMode: a,
707
+ extendTransition: f,
708
+ masterItemIndex: d,
709
+ setItemIndexCommand: h,
710
+ resetView: g
711
+ } = q(), z = Q(() => {
701
712
  if (n)
702
713
  return [];
703
714
  const v = new Array();
704
715
  let L = 0;
705
- for (let z = 0; z < l.length - 1; z++) {
706
- const C = l[z].items.length;
707
- v.push(L + C), L += C;
716
+ for (let M = 0; M < s.length - 1; M++) {
717
+ const N = s[M].items.length;
718
+ v.push(L + N), L += N;
708
719
  }
709
720
  return v;
710
- }, [l, n]), u = W(null), h = T(() => {
721
+ }, [s, n]), u = W(null), p = T(() => {
711
722
  if (!u.current)
712
723
  throw new Error("slider.current is null");
713
724
  return u.current;
714
- }, []), j = W(!1), N = W(
725
+ }, []), j = W(!1), C = W(
715
726
  null
716
- ), [E, w] = F(!1), k = T(
727
+ ), [E, x] = $(!1), k = T(
717
728
  (v, L) => {
718
- const z = h(), C = z.clientWidth, S = z.scrollWidth / i.length, H = (v + 1 / 2) * S - C / 2, R = z.scrollWidth - z.clientWidth;
719
- z.scrollTo({
720
- left: ae(H, 0, R),
729
+ const M = p(), N = M.clientWidth, S = M.scrollWidth / l.length, R = (v + 1 / 2) * S - N / 2, H = M.scrollWidth - M.clientWidth;
730
+ M.scrollTo({
731
+ left: ae(R, 0, H),
721
732
  behavior: L
722
733
  });
723
734
  },
724
- [i.length, h]
735
+ [l.length, p]
725
736
  );
726
737
  A(() => {
727
738
  const v = u.current;
728
739
  if (!v)
729
740
  return;
730
741
  const L = (S) => {
731
- S.preventDefault(), j.current = !0, N.current = {
742
+ S.preventDefault(), j.current = !0, C.current = {
732
743
  x: S.pageX - v.offsetLeft,
733
744
  scrollLeft: v.scrollLeft
734
745
  };
735
- }, z = (S) => {
746
+ }, M = (S) => {
736
747
  if (!j.current)
737
748
  return;
738
- if (N.current === null)
749
+ if (C.current === null)
739
750
  throw new Error("[onMouseMove] scrollStart is null");
740
- const H = S.pageX - v.offsetLeft - N.current.x;
741
- if (!E && Math.abs(H) < 5)
751
+ const R = S.pageX - v.offsetLeft - C.current.x;
752
+ if (!E && Math.abs(R) < 5)
742
753
  return;
743
- const R = N.current.scrollLeft - H;
744
- w(!0), requestAnimationFrame(() => {
745
- v.scrollLeft = R;
754
+ const H = C.current.scrollLeft - R;
755
+ x(!0), requestAnimationFrame(() => {
756
+ v.scrollLeft = H;
746
757
  });
747
- }, C = () => {
758
+ }, N = () => {
748
759
  j.current && (j.current = !1, requestAnimationFrame(() => {
749
- w(!1);
760
+ x(!1);
750
761
  }));
751
762
  };
752
- return v.addEventListener("mousedown", L), document.addEventListener("mousemove", z), document.addEventListener("mouseleave", C), document.addEventListener("mouseup", C), document.addEventListener("contextmenu", C), () => {
753
- v.removeEventListener("mousedown", L), document.removeEventListener("mousemove", z), document.removeEventListener("mouseleave", C), document.removeEventListener("mouseup", C), document.removeEventListener("contextmenu", C);
763
+ return v.addEventListener("mousedown", L), document.addEventListener("mousemove", M), document.addEventListener("mouseleave", N), document.addEventListener("mouseup", N), document.addEventListener("contextmenu", N), () => {
764
+ v.removeEventListener("mousedown", L), document.removeEventListener("mousemove", M), document.removeEventListener("mouseleave", N), document.removeEventListener("mouseup", N), document.removeEventListener("contextmenu", N);
754
765
  };
755
766
  }, [E]);
756
- const y = W(c);
767
+ const y = W(d);
757
768
  A(() => {
758
- u.current && (k(c, "smooth"), y.current = c);
759
- }, [c, k]), A(() => {
769
+ u.current && (k(d, "smooth"), y.current = d);
770
+ }, [d, k]), A(() => {
760
771
  u.current && k(y.current, "instant");
761
772
  }, [
762
773
  k,
763
774
  // - Run the effect when those values change
764
775
  o,
765
- s,
766
- g
776
+ a,
777
+ f
767
778
  ]);
768
779
  const I = (v, L) => {
769
- E || (f(L), p());
780
+ E || (h(L), g());
770
781
  };
771
782
  return /* @__PURE__ */ t.jsx(
772
783
  "div",
773
784
  {
774
785
  ref: u,
775
- className: Z(
786
+ className: O(
776
787
  "relative w-full overflow-x-auto no-scrollbar",
777
788
  E ? "cursor-grab" : "cursor-grabbing",
778
789
  e
@@ -780,29 +791,29 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
780
791
  children: /* @__PURE__ */ t.jsx(
781
792
  "div",
782
793
  {
783
- className: Z(
794
+ className: O(
784
795
  "flex h-10 w-fit gap-1 small:h-12 small:gap-2",
785
- s && "large:h-20 large:gap-4",
796
+ a && "large:h-20 large:gap-4",
786
797
  r
787
798
  ),
788
- children: i.map((v, L) => /* @__PURE__ */ t.jsxs(Ot, { children: [
789
- M.includes(L) && /* @__PURE__ */ t.jsx("div", { className: "my-2", children: /* @__PURE__ */ t.jsx(
799
+ children: l.map((v, L) => /* @__PURE__ */ t.jsxs(Ot, { children: [
800
+ z.includes(L) && /* @__PURE__ */ t.jsx("div", { className: "my-2", children: /* @__PURE__ */ t.jsx(
790
801
  Lt,
791
802
  {
792
- color: a && !o ? "neutral" : "background",
803
+ color: i && !o ? "neutral" : "background",
793
804
  orientation: "vertical"
794
805
  }
795
806
  ) }),
796
807
  /* @__PURE__ */ t.jsx(
797
808
  "div",
798
809
  {
799
- className: Z(
810
+ className: O(
800
811
  "relative h-full rounded-gallery ",
801
812
  !E && "cursor-pointer",
802
813
  "after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-opacity",
803
- L === c ? "after:opacity-100" : "after:opacity-0 hover:after:opacity-70"
814
+ L === d ? "after:opacity-100" : "after:opacity-0 hover:after:opacity-70"
804
815
  ),
805
- style: d,
816
+ style: c,
806
817
  onClick: () => I(v, L),
807
818
  children: /* @__PURE__ */ t.jsx(mr, { item: v })
808
819
  }
@@ -818,81 +829,81 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
818
829
  /* @__PURE__ */ t.jsx("span", { children: r + 1 })
819
830
  ] }), qe = (e, r) => Math.sqrt(
820
831
  (e.clientX - r.clientX) ** 2 + (e.clientY - r.clientY) ** 2
821
- ), fr = ({
832
+ ), gr = ({
822
833
  onlyPreload: e,
823
834
  ...r
824
835
  }) => {
825
- const { zoom: n, isZooming: o, setZoom: a } = q(), l = W(null), i = W(null), d = T((E) => {
826
- if (!i.current)
836
+ const { zoom: n, isZooming: o, setZoom: i } = q(), s = W(null), l = W(null), c = T((E) => {
837
+ if (!l.current)
827
838
  throw new Error(
828
839
  `[${E ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
829
840
  );
830
- return i.current;
831
- }, []), s = W(!1), g = W(null), c = W(/* @__PURE__ */ new Map()), f = W({ x: 0, y: 0, scale: 1 }), p = W(null), M = T(
841
+ return l.current;
842
+ }, []), a = W(!1), f = W(null), d = W(/* @__PURE__ */ new Map()), h = W({ x: 0, y: 0, scale: 1 }), g = W(null), z = T(
832
843
  (E) => {
833
- const w = d("setTransformStyle"), {
844
+ const x = c("setTransformStyle"), {
834
845
  x: k,
835
846
  y,
836
847
  scale: I
837
848
  } = {
838
- ...f.current,
849
+ ...h.current,
839
850
  ...E
840
- }, v = ae(I, 1, Ne), L = w.clientWidth, z = w.clientHeight, C = L * v, S = z * v, H = ae(k, -(C - L), 0), R = ae(y, -(S - z), 0);
841
- f.current = { x: H, y: R, scale: v }, w.style.transform = `translate(${H}px, ${R}px) scale(${v})`;
851
+ }, v = ae(I, 1, Ee), L = x.clientWidth, M = x.clientHeight, N = L * v, S = M * v, R = ae(k, -(N - L), 0), H = ae(y, -(S - M), 0);
852
+ h.current = { x: R, y: H, scale: v }, x.style.transform = `translate(${R}px, ${H}px) scale(${v})`;
842
853
  },
843
- [d]
854
+ [c]
844
855
  ), u = T(
845
- (E, w) => {
856
+ (E, x) => {
846
857
  const {
847
858
  x: k,
848
859
  y,
849
860
  scale: I
850
- } = f.current, {
861
+ } = h.current, {
851
862
  x: v,
852
863
  y: L,
853
- scale: z
864
+ scale: M
854
865
  } = {
855
- ...f.current,
866
+ ...h.current,
856
867
  ...E
857
868
  };
858
- p.current && (cancelAnimationFrame(p.current), p.current = null);
859
- const C = () => {
860
- M({ x: v, y: L, scale: z }), a(z);
861
- }, S = Math.abs(v - k) < 1 && Math.abs(L - y) < 1 && Math.abs(z - I) < 5e-3;
862
- if (!w || S) {
863
- C();
869
+ g.current && (cancelAnimationFrame(g.current), g.current = null);
870
+ const N = () => {
871
+ z({ x: v, y: L, scale: M }), i(M);
872
+ }, S = Math.abs(v - k) < 1 && Math.abs(L - y) < 1 && Math.abs(M - I) < 5e-3;
873
+ if (!x || S) {
874
+ N();
864
875
  return;
865
876
  }
866
- const H = (/* @__PURE__ */ new Date()).getTime(), R = () => {
877
+ const R = (/* @__PURE__ */ new Date()).getTime(), H = () => {
867
878
  const U = () => {
868
- const _ = (/* @__PURE__ */ new Date()).getTime() - H;
869
- if (_ >= w) {
870
- C(), p.current = null;
879
+ const _ = (/* @__PURE__ */ new Date()).getTime() - R;
880
+ if (_ >= x) {
881
+ N(), g.current = null;
871
882
  return;
872
883
  }
873
- const x = Math.min(_ / w, 1), m = zt(x), b = Ee(k, v, m), V = Ee(y, L, m), P = Ee(I, z, m);
874
- M({ x: b, y: V, scale: P }), R();
884
+ const w = Math.min(_ / x, 1), m = zt(w), b = Ne(k, v, m), V = Ne(y, L, m), Z = Ne(I, M, m);
885
+ z({ x: b, y: V, scale: Z }), H();
875
886
  };
876
- p.current = requestAnimationFrame(U);
887
+ g.current = requestAnimationFrame(U);
877
888
  };
878
- R();
889
+ H();
879
890
  },
880
- [M, a]
881
- ), h = T(
882
- (E, w) => {
883
- let { x: k, y } = f.current;
891
+ [z, i]
892
+ ), p = T(
893
+ (E, x) => {
894
+ let { x: k, y } = h.current;
884
895
  E.x && (k += E.x), E.y && (y += E.y), u(
885
896
  {
886
897
  x: k,
887
898
  y
888
899
  },
889
- w
900
+ x
890
901
  );
891
902
  },
892
903
  [u]
893
904
  ), j = T(
894
- (E, w, k) => {
895
- const y = f.current.scale, I = ae(E, 1, Ne), v = I / y, { x: L, y: z } = f.current, { x: C, y: S } = w, H = -L + C, R = -z + S, U = H * v, _ = R * v, x = U - C, m = _ - S, b = -x, V = -m;
905
+ (E, x, k) => {
906
+ const y = h.current.scale, I = ae(E, 1, Ee), v = I / y, { x: L, y: M } = h.current, { x: N, y: S } = x, R = -L + N, H = -M + S, U = R * v, _ = H * v, w = U - N, m = _ - S, b = -w, V = -m;
896
907
  u(
897
908
  {
898
909
  x: b,
@@ -903,11 +914,11 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
903
914
  );
904
915
  },
905
916
  [u]
906
- ), N = T(
917
+ ), C = T(
907
918
  (E) => {
908
- const w = d(
919
+ const x = c(
909
920
  "shiftZoomFromButton"
910
- ), k = w.clientWidth, y = w.clientHeight;
921
+ ), k = x.clientWidth, y = x.clientHeight;
911
922
  j(
912
923
  E,
913
924
  {
@@ -917,126 +928,126 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
917
928
  200
918
929
  );
919
930
  },
920
- [d, j]
931
+ [c, j]
921
932
  );
922
933
  return A(() => {
923
- i.current && N(n);
924
- }, [N, n]), A(() => {
934
+ l.current && C(n);
935
+ }, [C, n]), A(() => {
925
936
  if (!o)
926
937
  return;
927
- const E = i.current;
938
+ const E = l.current;
928
939
  if (!E)
929
940
  return;
930
- const w = (I) => {
931
- I.preventDefault(), I.stopPropagation(), s.current = !0, g.current = {
941
+ const x = (I) => {
942
+ I.preventDefault(), I.stopPropagation(), a.current = !0, f.current = {
932
943
  x: I.clientX,
933
944
  y: I.clientY
934
945
  };
935
946
  }, k = (I) => {
936
- if (!s.current)
947
+ if (!a.current)
937
948
  return;
938
- if (!g.current)
949
+ if (!f.current)
939
950
  throw new Error("mouseStartXY.current is null");
940
951
  I.stopPropagation();
941
- const v = I.clientX - g.current.x, L = I.clientY - g.current.y;
942
- h({
952
+ const v = I.clientX - f.current.x, L = I.clientY - f.current.y;
953
+ p({
943
954
  x: v,
944
955
  y: L
945
- }), g.current = {
956
+ }), f.current = {
946
957
  x: I.clientX,
947
958
  y: I.clientY
948
959
  };
949
960
  }, y = () => {
950
- s.current = !1;
961
+ a.current = !1;
951
962
  };
952
- return E.addEventListener("mousedown", w), document.addEventListener("mousemove", k), document.addEventListener("mouseleave", y), document.addEventListener("mouseup", y), document.addEventListener("contextmenu", y), () => {
953
- E.removeEventListener("mousedown", w), document.removeEventListener("mousemove", k), document.removeEventListener("mouseleave", y), document.removeEventListener("mouseup", y), document.removeEventListener("contextmenu", y);
963
+ return E.addEventListener("mousedown", x), document.addEventListener("mousemove", k), document.addEventListener("mouseleave", y), document.addEventListener("mouseup", y), document.addEventListener("contextmenu", y), () => {
964
+ E.removeEventListener("mousedown", x), document.removeEventListener("mousemove", k), document.removeEventListener("mouseleave", y), document.removeEventListener("mouseup", y), document.removeEventListener("contextmenu", y);
954
965
  };
955
- }, [o, h]), A(() => {
956
- const E = l.current;
966
+ }, [o, p]), A(() => {
967
+ const E = s.current;
957
968
  if (!E)
958
969
  return;
959
- const w = (k) => {
960
- const { ctrlKey: y, clientX: I, clientY: v, deltaX: L, deltaY: z } = k;
970
+ const x = (k) => {
971
+ const { ctrlKey: y, clientX: I, clientY: v, deltaX: L, deltaY: M } = k;
961
972
  if (y) {
962
- if (!o && z >= 0)
973
+ if (!o && M >= 0)
963
974
  return;
964
- const { left: C, top: S } = E.getBoundingClientRect(), H = I - C, R = v - S;
965
- j(n - 0.01 * z, {
966
- x: H,
967
- y: R
975
+ const { left: N, top: S } = E.getBoundingClientRect(), R = I - N, H = v - S;
976
+ j(n - 0.01 * M, {
977
+ x: R,
978
+ y: H
968
979
  });
969
980
  } else {
970
981
  if (!o)
971
982
  return;
972
- h({
983
+ p({
973
984
  x: -2 * L,
974
- y: -2 * z
985
+ y: -2 * M
975
986
  });
976
987
  }
977
988
  k.preventDefault();
978
989
  };
979
- return E.addEventListener("wheel", w), () => {
980
- E.removeEventListener("wheel", w);
990
+ return E.addEventListener("wheel", x), () => {
991
+ E.removeEventListener("wheel", x);
981
992
  };
982
- }, [o, h, j, n]), A(() => {
983
- const E = l.current, w = i.current;
984
- if (!E || !w)
993
+ }, [o, p, j, n]), A(() => {
994
+ const E = s.current, x = l.current;
995
+ if (!E || !x)
985
996
  return;
986
- const k = c.current, y = (L) => {
987
- for (let z = 0; z < L.changedTouches.length; z++) {
988
- const C = L.changedTouches[z];
989
- k.set(C.identifier, C);
997
+ const k = d.current, y = (L) => {
998
+ for (let M = 0; M < L.changedTouches.length; M++) {
999
+ const N = L.changedTouches[M];
1000
+ k.set(N.identifier, N);
990
1001
  }
991
1002
  }, I = (L) => {
992
- for (let z = 0; z < L.changedTouches.length; z++) {
993
- const C = L.changedTouches[z];
994
- k.delete(C.identifier);
1003
+ for (let M = 0; M < L.changedTouches.length; M++) {
1004
+ const N = L.changedTouches[M];
1005
+ k.delete(N.identifier);
995
1006
  }
996
1007
  }, v = (L) => {
997
- const z = L.touches.length;
998
- if (z === 1) {
1008
+ const M = L.touches.length;
1009
+ if (M === 1) {
999
1010
  if (!o)
1000
1011
  return;
1001
1012
  L.preventDefault();
1002
- const C = L.touches[0], S = k.get(C.identifier);
1013
+ const N = L.touches[0], S = k.get(N.identifier);
1003
1014
  if (!S)
1004
1015
  throw new Error("touchStart is null");
1005
- const H = C.clientX - S.clientX, R = C.clientY - S.clientY;
1006
- h({
1007
- x: H,
1008
- y: R
1009
- }), k.set(C.identifier, C);
1010
- } else if (z === 2) {
1016
+ const R = N.clientX - S.clientX, H = N.clientY - S.clientY;
1017
+ p({
1018
+ x: R,
1019
+ y: H
1020
+ }), k.set(N.identifier, N);
1021
+ } else if (M === 2) {
1011
1022
  L.preventDefault();
1012
- const [C, S] = L.touches, H = k.get(C.identifier), R = k.get(S.identifier);
1013
- if (!H || !R)
1023
+ const [N, S] = L.touches, R = k.get(N.identifier), H = k.get(S.identifier);
1024
+ if (!R || !H)
1014
1025
  throw new Error("intialTouch1 or intialTouch2 is null");
1015
1026
  const U = qe(
1016
- H,
1017
- R
1018
- ), _ = qe(C, S) / U, { left: x, top: m } = E.getBoundingClientRect();
1027
+ R,
1028
+ H
1029
+ ), _ = qe(N, S) / U, { left: w, top: m } = E.getBoundingClientRect();
1019
1030
  j(_ * n, {
1020
- x: (C.clientX + S.clientX) / 2 - x,
1021
- y: (C.clientY + S.clientY) / 2 - m
1022
- }), k.set(C.identifier, C), k.set(S.identifier, S);
1031
+ x: (N.clientX + S.clientX) / 2 - w,
1032
+ y: (N.clientY + S.clientY) / 2 - m
1033
+ }), k.set(N.identifier, N), k.set(S.identifier, S);
1023
1034
  }
1024
1035
  };
1025
- return w.addEventListener("touchstart", y), w.addEventListener("touchmove", v), w.addEventListener("touchend", I), w.addEventListener("touchcancel", I), () => {
1026
- w.removeEventListener("touchstart", y), w.removeEventListener("touchmove", v), w.removeEventListener("touchend", I), w.removeEventListener("touchcancel", I);
1036
+ return x.addEventListener("touchstart", y), x.addEventListener("touchmove", v), x.addEventListener("touchend", I), x.addEventListener("touchcancel", I), () => {
1037
+ x.removeEventListener("touchstart", y), x.removeEventListener("touchmove", v), x.removeEventListener("touchend", I), x.removeEventListener("touchcancel", I);
1027
1038
  };
1028
- }, [o, h, j, n]), /* @__PURE__ */ t.jsx(
1039
+ }, [o, p, j, n]), /* @__PURE__ */ t.jsx(
1029
1040
  "div",
1030
1041
  {
1031
- ref: l,
1042
+ ref: s,
1032
1043
  className: `relative size-full overflow-hidden ${o ? "z-zoomed-image cursor-move" : ""}`,
1033
1044
  children: /* @__PURE__ */ t.jsx(
1034
1045
  "div",
1035
1046
  {
1036
- ref: i,
1047
+ ref: l,
1037
1048
  className: "origin-top-left",
1038
1049
  children: /* @__PURE__ */ t.jsx(
1039
- we,
1050
+ xe,
1040
1051
  {
1041
1052
  ...r,
1042
1053
  imgInPlayerWidthRatio: e ? 1 : n
@@ -1046,16 +1057,16 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1046
1057
  )
1047
1058
  }
1048
1059
  );
1049
- }, gr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_IMAGE", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ t.jsx(
1060
+ }, fr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_IMAGE", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ t.jsx(
1050
1061
  "path",
1051
1062
  {
1052
1063
  d: "M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",
1053
1064
  fill: "currentColor"
1054
1065
  }
1055
1066
  ) }) }), vr = ({ hotspot: e }) => {
1056
- const { title: r, icon: n, description: o, position: a, detail: l } = e, { getIconConfig: i } = $e(), d = n ? i(n) : void 0, { setShownDetails: s } = q(), g = !!l, c = (l == null ? void 0 : l.type) === "image", f = c ? /* @__PURE__ */ t.jsx(gr, { className: "size-4" }) : /* @__PURE__ */ t.jsx("div", { className: "size-1" }), p = () => {
1057
- c && s({
1058
- src: l.src,
1067
+ const { title: r, icon: n, description: o, position: i, detail: s } = e, { getIconConfig: l } = Fe(), c = n ? l(n) : void 0, { extendMode: a, setShownDetails: f } = q(), d = !!s, h = (s == null ? void 0 : s.type) === "image", g = !!r || !!o, z = h ? /* @__PURE__ */ t.jsx(fr, { className: "size-4" }) : /* @__PURE__ */ t.jsx("div", { className: "size-1" }), u = () => {
1068
+ h && f({
1069
+ src: s.src,
1059
1070
  title: r,
1060
1071
  text: o
1061
1072
  });
@@ -1063,18 +1074,21 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1063
1074
  return /* @__PURE__ */ t.jsxs(
1064
1075
  "div",
1065
1076
  {
1066
- className: `group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 ${g ? "cursor-pointer" : "cursor-help"} hover:z-hotspot-hover`,
1077
+ className: O(
1078
+ "group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",
1079
+ d ? "cursor-pointer" : "cursor-help"
1080
+ ),
1067
1081
  style: {
1068
1082
  top: `${100 * e.position.y}%`,
1069
1083
  left: `${100 * e.position.x}%`
1070
1084
  },
1071
- onClick: p,
1085
+ onClick: u,
1072
1086
  children: [
1073
1087
  /* @__PURE__ */ t.jsxs(
1074
1088
  "div",
1075
1089
  {
1076
1090
  className: "relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",
1077
- style: { backgroundColor: d == null ? void 0 : d.color },
1091
+ style: { backgroundColor: c == null ? void 0 : c.color },
1078
1092
  children: [
1079
1093
  /* @__PURE__ */ t.jsx(
1080
1094
  "div",
@@ -1082,21 +1096,22 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1082
1096
  className: "pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"
1083
1097
  }
1084
1098
  ),
1085
- d != null && d.Icon ? /* @__PURE__ */ t.jsx("div", { className: "size-5", children: d.Icon }) : /* @__PURE__ */ t.jsx("div", { className: "p-1", children: f })
1099
+ c != null && c.Icon ? /* @__PURE__ */ t.jsx("div", { className: "size-5", children: c.Icon }) : /* @__PURE__ */ t.jsx("div", { className: "p-1", children: z })
1086
1100
  ]
1087
1101
  }
1088
1102
  ),
1089
- !c && o && /* @__PURE__ */ t.jsx(
1103
+ !h && g && /* @__PURE__ */ t.jsx(
1090
1104
  "div",
1091
1105
  {
1092
- className: Z(
1093
- "absolute -z-10 w-max max-w-40 rounded-ui-lg bg-background p-2 pl-6 small:max-w-48 small:pl-8",
1094
- a.y < 0.55 ? "-top-0.5" : "-bottom-0.5",
1095
- a.x < 0.55 ? "-left-0.5" : "-right-0.5",
1106
+ className: O(
1107
+ "absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",
1108
+ a && "large:max-w-56",
1109
+ i.y < 0.55 ? "-top-1" : "-bottom-1",
1110
+ i.x < 0.55 ? "-left-1 pl-6 small:pl-8" : "-right-1 pr-4 small:pr-6",
1096
1111
  "pointer-events-none opacity-0 transition-opacity duration-300 group-hover:pointer-events-auto group-hover:opacity-100"
1097
1112
  ),
1098
1113
  children: /* @__PURE__ */ t.jsxs("div", { className: "space-y-1", children: [
1099
- /* @__PURE__ */ t.jsx("div", { className: "text-sm", children: r }),
1114
+ r && /* @__PURE__ */ t.jsx("div", { className: "text-sm", children: r }),
1100
1115
  o && /* @__PURE__ */ t.jsx("div", { className: "text-xs", children: o })
1101
1116
  ] })
1102
1117
  }
@@ -1104,7 +1119,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1104
1119
  ]
1105
1120
  }
1106
1121
  );
1107
- }, wr = ({ hotspot: e }) => {
1122
+ }, xr = ({ hotspot: e }) => {
1108
1123
  const { icon: r, detail: n } = e;
1109
1124
  let o;
1110
1125
  switch (r) {
@@ -1140,167 +1155,167 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1140
1155
  return o;
1141
1156
  }
1142
1157
  }, Mt = ({ className: e, hotspots: r, ...n }) => {
1143
- const { isShowingDetails: o, showHotspots: a } = q();
1144
- return /* @__PURE__ */ t.jsx("div", { className: Z("relative size-full overflow-hidden", e), children: /* @__PURE__ */ t.jsxs(
1158
+ const { isShowingDetails: o, showHotspots: i } = q();
1159
+ return /* @__PURE__ */ t.jsx("div", { className: O("relative size-full overflow-hidden", e), children: /* @__PURE__ */ t.jsxs(
1145
1160
  "div",
1146
1161
  {
1147
1162
  className: `size-full duration-details ${o ? "scale-105" : "scale-100"}`,
1148
1163
  children: [
1149
- /* @__PURE__ */ t.jsx(fr, { className: "size-full", ...n }),
1150
- a && (r == null ? void 0 : r.map((l, i) => /* @__PURE__ */ t.jsx(wr, { hotspot: l }, i)))
1164
+ /* @__PURE__ */ t.jsx(gr, { className: "size-full", ...n }),
1165
+ i && (r == null ? void 0 : r.map((s, l) => /* @__PURE__ */ t.jsx(xr, { hotspot: s }, l)))
1151
1166
  ]
1152
1167
  }
1153
1168
  ) });
1154
- }, xr = ({ item: { src: e } }) => /* @__PURE__ */ t.jsx("img", { className: "size-full", src: e, alt: "" }, e), ge = 10, yr = 15, br = ({
1169
+ }, wr = ({ item: { src: e } }) => /* @__PURE__ */ t.jsx("img", { className: "size-full", src: e, alt: "" }, e), fe = 10, yr = 15, br = ({
1155
1170
  images: e,
1156
1171
  onlyPreload: r
1157
1172
  }) => {
1158
- const { reverse360: n } = te(), { isShowingDetails: o, isZooming: a } = q(), l = a || o, i = W(null), d = W(null), [s, g] = F(0), c = e.length, f = T(() => {
1159
- g((M) => (M - 1 + c) % c);
1160
- }, [c]), p = T(() => {
1161
- g((M) => (M + 1) % c);
1162
- }, [c]);
1173
+ const { reverse360: n } = te(), { isShowingDetails: o, isZooming: i } = q(), s = i || o, l = W(null), c = W(null), [a, f] = $(0), d = e.length, h = T(() => {
1174
+ f((z) => (z - 1 + d) % d);
1175
+ }, [d]), g = T(() => {
1176
+ f((z) => (z + 1) % d);
1177
+ }, [d]);
1163
1178
  return A(() => {
1164
- if (l)
1179
+ if (s)
1165
1180
  return;
1166
- const M = i.current, u = d.current;
1167
- if (!M || !u)
1181
+ const z = l.current, u = c.current;
1182
+ if (!z || !u)
1168
1183
  return;
1169
- let h = null, j = [], N = null;
1170
- const E = (x) => {
1171
- j.push(x), j.length > 20 && j.shift();
1172
- }, w = () => {
1173
- const x = Date.now(), m = (() => {
1174
- const $ = Date.now(), D = j.filter(
1175
- (K) => $ - K.timestamp < 50
1184
+ let p = null, j = [], C = null;
1185
+ const E = (w) => {
1186
+ j.push(w), j.length > 20 && j.shift();
1187
+ }, x = () => {
1188
+ const w = Date.now(), m = (() => {
1189
+ const F = Date.now(), D = j.filter(
1190
+ (K) => F - K.timestamp < 50
1176
1191
  );
1177
1192
  if (D.length < 2)
1178
1193
  return 0;
1179
1194
  const X = D[0], G = D[D.length - 1];
1180
1195
  return (G.value - X.value) / (1e-3 * Math.max(G.timestamp - X.timestamp, 1));
1181
1196
  })();
1182
- let b = 0, V = x;
1183
- const P = () => {
1184
- N = requestAnimationFrame(() => {
1185
- const $ = Date.now(), D = ($ - x) / 1e3, X = Math.pow(0.05, D), G = m * X, K = ($ - V) / 1e3;
1186
- if (b += G * K, Math.abs(G) < 5 * ge && Math.abs(b) < ge) {
1187
- N = null;
1197
+ let b = 0, V = w;
1198
+ const Z = () => {
1199
+ C = requestAnimationFrame(() => {
1200
+ const F = Date.now(), D = (F - w) / 1e3, X = Math.pow(0.05, D), G = m * X, K = (F - V) / 1e3;
1201
+ if (b += G * K, Math.abs(G) < 5 * fe && Math.abs(b) < fe) {
1202
+ C = null;
1188
1203
  return;
1189
1204
  }
1190
- Math.abs(b) >= ge && (b > 0 !== n ? p() : f(), b = 0), V = $, P();
1205
+ Math.abs(b) >= fe && (b > 0 !== n ? g() : h(), b = 0), V = F, Z();
1191
1206
  });
1192
1207
  };
1193
- P();
1208
+ Z();
1194
1209
  }, k = () => {
1195
- N && (cancelAnimationFrame(N), N = null);
1196
- }, y = (x) => {
1197
- if (x.button !== 0)
1210
+ C && (cancelAnimationFrame(C), C = null);
1211
+ }, y = (w) => {
1212
+ if (w.button !== 0)
1198
1213
  return;
1199
- x.preventDefault(), x.stopPropagation(), k();
1200
- const m = x.clientX;
1201
- h = m, j = [{ timestamp: Date.now(), value: m }];
1202
- }, I = (x) => {
1203
- if (h === null)
1214
+ w.preventDefault(), w.stopPropagation(), k();
1215
+ const m = w.clientX;
1216
+ p = m, j = [{ timestamp: Date.now(), value: m }];
1217
+ }, I = (w) => {
1218
+ if (p === null)
1204
1219
  return;
1205
- x.stopPropagation();
1206
- const { clientX: m } = x;
1220
+ w.stopPropagation();
1221
+ const { clientX: m } = w;
1207
1222
  E({ timestamp: Date.now(), value: m });
1208
- const b = m - h;
1209
- Math.abs(b) < ge || (b > 0 !== n ? p() : f(), h = m);
1223
+ const b = m - p;
1224
+ Math.abs(b) < fe || (b > 0 !== n ? g() : h(), p = m);
1210
1225
  }, v = () => {
1211
- h !== null && (h = null, w());
1226
+ p !== null && (p = null, x());
1212
1227
  };
1213
- M.addEventListener("mousedown", y), document.addEventListener("mousemove", I), document.addEventListener("mouseleave", v), document.addEventListener("mouseup", v), document.addEventListener("contextmenu", v);
1214
- const L = () => u.getBoundingClientRect().width, z = () => u.scrollWidth / 2 - L() / 2, C = () => {
1215
- const x = z();
1216
- u.scrollLeft = x;
1228
+ z.addEventListener("mousedown", y), document.addEventListener("mousemove", I), document.addEventListener("mouseleave", v), document.addEventListener("mouseup", v), document.addEventListener("contextmenu", v);
1229
+ const L = () => u.getBoundingClientRect().width, M = () => u.scrollWidth / 2 - L() / 2, N = () => {
1230
+ const w = M();
1231
+ u.scrollLeft = w;
1217
1232
  };
1218
- C();
1233
+ N();
1219
1234
  const S = () => {
1220
- const x = u.scrollLeft - z();
1221
- Math.abs(x) < yr || (x < 0 !== n ? p() : f(), C());
1235
+ const w = u.scrollLeft - M();
1236
+ Math.abs(w) < yr || (w < 0 !== n ? g() : h(), N());
1222
1237
  };
1223
1238
  u.addEventListener("scroll", S);
1224
- let H = null;
1225
- const R = (x) => {
1226
- if (H !== null || x.changedTouches.length !== 1)
1239
+ let R = null;
1240
+ const H = (w) => {
1241
+ if (R !== null || w.changedTouches.length !== 1)
1227
1242
  return;
1228
1243
  k();
1229
- const { identifier: m, clientX: b } = x.changedTouches[0];
1230
- H = m, h = b, j = [{ timestamp: Date.now(), value: b }];
1231
- }, U = (x) => {
1232
- if (!h)
1244
+ const { identifier: m, clientX: b } = w.changedTouches[0];
1245
+ R = m, p = b, j = [{ timestamp: Date.now(), value: b }];
1246
+ }, U = (w) => {
1247
+ if (!p)
1233
1248
  return;
1234
- const m = Array.from(x.changedTouches).find(
1235
- ({ identifier: P }) => P === H
1249
+ const m = Array.from(w.changedTouches).find(
1250
+ ({ identifier: Z }) => Z === R
1236
1251
  );
1237
1252
  if (!m)
1238
1253
  return;
1239
- x.preventDefault();
1254
+ w.preventDefault();
1240
1255
  const { clientX: b } = m;
1241
1256
  E({ timestamp: Date.now(), value: b });
1242
- const V = b - h;
1243
- Math.abs(V) < ge || (V > 0 !== n ? p() : f(), h = b);
1244
- }, _ = (x) => {
1245
- !h || !Array.from(x.changedTouches).some(
1246
- ({ identifier: m }) => m === H
1247
- ) || (H = null, h = null, w());
1257
+ const V = b - p;
1258
+ Math.abs(V) < fe || (V > 0 !== n ? g() : h(), p = b);
1259
+ }, _ = (w) => {
1260
+ !p || !Array.from(w.changedTouches).some(
1261
+ ({ identifier: m }) => m === R
1262
+ ) || (R = null, p = null, x());
1248
1263
  };
1249
- return u.addEventListener("touchstart", R), u.addEventListener("touchmove", U), u.addEventListener("touchend", _), u.addEventListener("touchcancel", _), () => {
1250
- M.removeEventListener("mousedown", y), document.removeEventListener("mousemove", I), document.removeEventListener("mouseleave", v), document.removeEventListener("mouseup", v), document.removeEventListener("contextmenu", v), u.removeEventListener("scroll", S), u.removeEventListener("touchstart", R), u.removeEventListener("touchmove", U), u.removeEventListener("touchend", _), u.removeEventListener("touchcancel", _);
1264
+ return u.addEventListener("touchstart", H), u.addEventListener("touchmove", U), u.addEventListener("touchend", _), u.addEventListener("touchcancel", _), () => {
1265
+ z.removeEventListener("mousedown", y), document.removeEventListener("mousemove", I), document.removeEventListener("mouseleave", v), document.removeEventListener("mouseup", v), document.removeEventListener("contextmenu", v), u.removeEventListener("scroll", S), u.removeEventListener("touchstart", H), u.removeEventListener("touchmove", U), u.removeEventListener("touchend", _), u.removeEventListener("touchcancel", _);
1251
1266
  };
1252
- }, [p, f, l, n]), /* @__PURE__ */ t.jsx("div", { ref: i, className: "cursor-ew-resize", children: /* @__PURE__ */ t.jsxs("div", { ref: d, className: "overflow-x-scroll no-scrollbar", children: [
1253
- /* @__PURE__ */ t.jsx("div", { className: "sticky left-0 top-0", children: e.map((M, u) => /* @__PURE__ */ t.jsx(
1267
+ }, [g, h, s, n]), /* @__PURE__ */ t.jsx("div", { ref: l, className: "cursor-ew-resize", children: /* @__PURE__ */ t.jsxs("div", { ref: c, className: "overflow-x-scroll no-scrollbar", children: [
1268
+ /* @__PURE__ */ t.jsx("div", { className: "sticky left-0 top-0", children: e.map((z, u) => /* @__PURE__ */ t.jsx(
1254
1269
  Mt,
1255
1270
  {
1256
- ...M,
1257
- className: Z(
1258
- u !== s && "pointer-events-none !absolute left-0 top-0 -z-10"
1271
+ ...z,
1272
+ className: O(
1273
+ u !== a && "pointer-events-none !absolute left-0 top-0 -z-10"
1259
1274
  ),
1260
- onlyPreload: u !== s || r
1275
+ onlyPreload: u !== a || r
1261
1276
  },
1262
- M.src
1277
+ z.src
1263
1278
  )) }),
1264
1279
  /* @__PURE__ */ t.jsx("div", { className: "pointer-events-none -mt-px h-px w-[calc(100%+1024px)]" })
1265
1280
  ] }) });
1266
1281
  }, jr = ({ images: e, onReady: r, onError: n }) => {
1267
- const o = Q(() => e.map(({ src: g }) => g), [e]), [a, l] = F(null), i = a ? [...a.values()].filter((g) => g).length / e.length * 100 : null, d = T(() => {
1268
- i === null && l(new Map(o.map((g) => [g, !1])));
1269
- }, [o, i]), s = T((g) => {
1270
- l((c) => {
1271
- const f = new Map(c);
1272
- return f.set(g, !0), f;
1282
+ const o = Q(() => e.map(({ src: f }) => f), [e]), [i, s] = $(null), l = i ? [...i.values()].filter((f) => f).length / e.length * 100 : null, c = T(() => {
1283
+ l === null && s(new Map(o.map((f) => [f, !1])));
1284
+ }, [o, l]), a = T((f) => {
1285
+ s((d) => {
1286
+ const h = new Map(d);
1287
+ return h.set(f, !0), h;
1273
1288
  });
1274
1289
  }, []);
1275
1290
  return A(() => {
1276
- i === 100 && r();
1277
- }, [i, r]), /* @__PURE__ */ t.jsxs("div", { className: "relative size-full", children: [
1278
- i !== null && i !== 100 && // Add images to DOM to preload them
1279
- /* @__PURE__ */ t.jsx("div", { className: "hidden", children: o.map((g) => /* @__PURE__ */ t.jsx(
1280
- we,
1291
+ l === 100 && r();
1292
+ }, [l, r]), /* @__PURE__ */ t.jsxs("div", { className: "relative size-full", children: [
1293
+ l !== null && l !== 100 && // Add images to DOM to preload them
1294
+ /* @__PURE__ */ t.jsx("div", { className: "hidden", children: o.map((f) => /* @__PURE__ */ t.jsx(
1295
+ xe,
1281
1296
  {
1282
- src: g,
1283
- onLoad: () => s(g),
1297
+ src: f,
1298
+ onLoad: () => a(f),
1284
1299
  onError: n
1285
1300
  },
1286
- g
1301
+ f
1287
1302
  )) }),
1288
- /* @__PURE__ */ t.jsx(we, { className: "size-full", src: o[0] }),
1303
+ /* @__PURE__ */ t.jsx(xe, { className: "size-full", src: o[0] }),
1289
1304
  /* @__PURE__ */ t.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
1290
- /* @__PURE__ */ t.jsx(Nt, { className: "size-20 text-primary" }),
1291
- /* @__PURE__ */ t.jsx(B, { color: "neutral", shape: "icon", onClick: d, children: /* @__PURE__ */ t.jsx(We, { className: "size-full" }) }),
1305
+ /* @__PURE__ */ t.jsx(Et, { className: "size-20 text-primary" }),
1306
+ /* @__PURE__ */ t.jsx(B, { color: "neutral", shape: "icon", onClick: c, children: /* @__PURE__ */ t.jsx(We, { className: "size-full" }) }),
1292
1307
  /* @__PURE__ */ t.jsx(
1293
1308
  "div",
1294
1309
  {
1295
- className: Z(
1310
+ className: O(
1296
1311
  "relative h-1 w-3/5 overflow-hidden rounded-full bg-background",
1297
- i === null && "invisible"
1312
+ l === null && "invisible"
1298
1313
  ),
1299
1314
  children: /* @__PURE__ */ t.jsx(
1300
1315
  "div",
1301
1316
  {
1302
1317
  className: "h-full bg-primary transition-[width]",
1303
- style: { width: `${i ?? 0}%` }
1318
+ style: { width: `${l ?? 0}%` }
1304
1319
  }
1305
1320
  )
1306
1321
  }
@@ -1308,7 +1323,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1308
1323
  ] })
1309
1324
  ] });
1310
1325
  }, kr = (e) => {
1311
- const { index: r } = e, { setItemInteraction: n } = q(), [o, a] = F(
1326
+ const { index: r } = e, { setItemInteraction: n } = q(), [o, i] = $(
1312
1327
  "placeholder"
1313
1328
  );
1314
1329
  return A(() => {
@@ -1319,11 +1334,11 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1319
1334
  jr,
1320
1335
  {
1321
1336
  ...e,
1322
- onReady: () => a("ready"),
1323
- onError: () => a("error")
1337
+ onReady: () => i("ready"),
1338
+ onError: () => i("error")
1324
1339
  }
1325
1340
  ) : /* @__PURE__ */ t.jsx(br, { ...e });
1326
- }, Cr = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(B, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(We, { className: "size-full" }) }), Er = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ t.jsx(
1341
+ }, Cr = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(B, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(We, { className: "size-full" }) }), Nr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ t.jsx(
1327
1342
  "svg",
1328
1343
  {
1329
1344
  className: e,
@@ -1340,7 +1355,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1340
1355
  }
1341
1356
  )
1342
1357
  }
1343
- ) }), Nr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_VOLUME", children: /* @__PURE__ */ t.jsx(
1358
+ ) }), Er = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_VOLUME", children: /* @__PURE__ */ t.jsx(
1344
1359
  "svg",
1345
1360
  {
1346
1361
  className: e,
@@ -1381,35 +1396,35 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1381
1396
  style: { transform: `translateX(-${100 * (1 - e)}%)` }
1382
1397
  }
1383
1398
  ) }), _r = 3e3, zr = ({ src: e, poster: r, index: n }) => {
1384
- const { carrouselItemIndex: o, setItemInteraction: a } = q(), l = o === n, i = W(null), d = W(null), s = T(() => {
1385
- if (!d.current)
1399
+ const { carrouselItemIndex: o, setItemInteraction: i } = q(), s = o === n, l = W(null), c = W(null), a = T(() => {
1400
+ if (!c.current)
1386
1401
  throw new Error("videoRef.current is null");
1387
- return d.current;
1388
- }, []), g = T(() => {
1389
- s().play();
1390
- }, [s]), c = T(() => {
1391
- s().pause();
1392
- }, [s]);
1402
+ return c.current;
1403
+ }, []), f = T(() => {
1404
+ a().play();
1405
+ }, [a]), d = T(() => {
1406
+ a().pause();
1407
+ }, [a]);
1393
1408
  A(() => {
1394
- l || c();
1395
- }, [c, l]);
1396
- const [f, p] = F(!1), [M, u] = F(!0), h = () => {
1397
- p(!0), a(n, "running");
1409
+ s || d();
1410
+ }, [d, s]);
1411
+ const [h, g] = $(!1), [z, u] = $(!0), p = () => {
1412
+ g(!0), i(n, "running");
1398
1413
  }, j = () => {
1399
- p(!1), a(n, null);
1400
- }, N = () => {
1414
+ g(!1), i(n, null);
1415
+ }, C = () => {
1401
1416
  u(!1);
1402
1417
  }, E = () => {
1403
1418
  u(!0);
1404
- }, [w, k] = F(null), y = (m) => {
1405
- const b = s(), V = m.currentTarget.getBoundingClientRect(), P = (m.clientX - V.left) / V.width, $ = Math.min(1, Math.max(0, P));
1406
- b.volume = $, b.muted = !1;
1419
+ }, [x, k] = $(null), y = (m) => {
1420
+ const b = a(), V = m.currentTarget.getBoundingClientRect(), Z = (m.clientX - V.left) / V.width, F = Math.min(1, Math.max(0, Z));
1421
+ b.volume = F, b.muted = !1;
1407
1422
  }, I = (m) => {
1408
- const b = s();
1423
+ const b = a();
1409
1424
  b.muted = m;
1410
1425
  };
1411
1426
  A(() => {
1412
- const m = d.current;
1427
+ const m = c.current;
1413
1428
  if (!m)
1414
1429
  return;
1415
1430
  const b = () => {
@@ -1422,81 +1437,81 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1422
1437
  m.removeEventListener("volumechange", b);
1423
1438
  };
1424
1439
  }, []);
1425
- const [v, L] = F(null), z = v ? v.currentTime / v.duration : 0;
1440
+ const [v, L] = $(null), M = v ? v.currentTime / v.duration : 0;
1426
1441
  A(() => {
1427
- const m = d.current;
1442
+ const m = c.current;
1428
1443
  if (!m) return;
1429
1444
  const b = () => {
1430
- const V = m.currentTime, P = m.duration;
1431
- isNaN(V) || isNaN(P) || L({
1445
+ const V = m.currentTime, Z = m.duration;
1446
+ isNaN(V) || isNaN(Z) || L({
1432
1447
  currentTime: V,
1433
- duration: P
1448
+ duration: Z
1434
1449
  });
1435
1450
  };
1436
1451
  return b(), m.addEventListener("timeupdate", b), () => {
1437
1452
  m.removeEventListener("timeupdate", b);
1438
1453
  };
1439
1454
  }, []);
1440
- const C = (m) => {
1441
- const b = s(), V = m.currentTarget.getBoundingClientRect(), P = (m.clientX - V.left) / V.width, $ = b.duration * P;
1442
- b.currentTime = $;
1455
+ const N = (m) => {
1456
+ const b = a(), V = m.currentTarget.getBoundingClientRect(), Z = (m.clientX - V.left) / V.width, F = b.duration * Z;
1457
+ b.currentTime = F;
1443
1458
  }, S = (m) => {
1444
1459
  const b = Math.floor(m % 3600 / 60), V = Math.floor(m % 60);
1445
1460
  return `${b}:${V.toString().padStart(2, "0")}`;
1446
- }, [H, R] = F(!1), U = W(void 0), _ = T(
1461
+ }, [R, H] = $(!1), U = W(void 0), _ = T(
1447
1462
  () => clearTimeout(U.current),
1448
1463
  []
1449
- ), x = T(() => {
1464
+ ), w = T(() => {
1450
1465
  _(), U.current = setTimeout(() => {
1451
- R(!1);
1466
+ H(!1);
1452
1467
  }, _r);
1453
1468
  }, [_]);
1454
1469
  return A(() => {
1455
- const m = i.current, b = d.current;
1470
+ const m = l.current, b = c.current;
1456
1471
  if (!m || !b)
1457
1472
  return;
1458
1473
  const V = () => {
1459
- x(), R(!0);
1460
- }, P = () => {
1461
- _(), R(!1);
1474
+ w(), H(!0);
1475
+ }, Z = () => {
1476
+ _(), H(!1);
1462
1477
  };
1463
- let $ = !1;
1478
+ let F = !1;
1464
1479
  const D = () => {
1465
- $ = !0;
1480
+ F = !0;
1466
1481
  }, X = () => {
1467
- $ && ($ = !1, c());
1482
+ F && (F = !1, d());
1468
1483
  }, G = () => {
1469
- $ = !1, V();
1484
+ F = !1, V();
1470
1485
  }, K = (re) => {
1471
- re.preventDefault(), re.touches.length === 1 && (x(), R((ne) => !ne));
1486
+ re.preventDefault(), re.touches.length === 1 && (w(), H((ne) => !ne));
1472
1487
  };
1473
- return m.addEventListener("mousedown", D), m.addEventListener("mouseup", X), m.addEventListener("mouseenter", V), m.addEventListener("mousemove", G), m.addEventListener("mouseleave", P), b.addEventListener("touchstart", K), () => {
1474
- m.removeEventListener("mousedown", D), m.removeEventListener("mouseup", X), m.removeEventListener("mouseenter", V), m.removeEventListener("mousemove", V), m.removeEventListener("mouseleave", P), b.removeEventListener("touchstart", K);
1488
+ return m.addEventListener("mousedown", D), m.addEventListener("mouseup", X), m.addEventListener("mouseenter", V), m.addEventListener("mousemove", G), m.addEventListener("mouseleave", Z), b.addEventListener("touchstart", K), () => {
1489
+ m.removeEventListener("mousedown", D), m.removeEventListener("mouseup", X), m.removeEventListener("mouseenter", V), m.removeEventListener("mousemove", V), m.removeEventListener("mouseleave", Z), b.removeEventListener("touchstart", K);
1475
1490
  };
1476
- }, [_, c, x]), /* @__PURE__ */ t.jsxs("div", { ref: i, className: "relative size-full", children: [
1491
+ }, [_, d, w]), /* @__PURE__ */ t.jsxs("div", { ref: l, className: "relative size-full", children: [
1477
1492
  /* @__PURE__ */ t.jsx(
1478
1493
  "video",
1479
1494
  {
1480
- ref: d,
1495
+ ref: c,
1481
1496
  className: "size-full",
1482
1497
  src: e,
1483
1498
  poster: r,
1484
1499
  disablePictureInPicture: !0,
1485
1500
  playsInline: !0,
1486
- onPlay: h,
1501
+ onPlay: p,
1487
1502
  onPause: j,
1488
1503
  onEnded: j,
1489
- onCanPlay: N,
1504
+ onCanPlay: C,
1490
1505
  onWaiting: E
1491
1506
  }
1492
1507
  ),
1493
- f ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1508
+ h ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1494
1509
  /* @__PURE__ */ t.jsxs(
1495
1510
  "div",
1496
1511
  {
1497
- className: Z(
1512
+ className: O(
1498
1513
  "absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",
1499
- H ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"
1514
+ R ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"
1500
1515
  ),
1501
1516
  onMouseDownCapture: (m) => m.stopPropagation(),
1502
1517
  children: [
@@ -1512,8 +1527,8 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1512
1527
  shape: "icon",
1513
1528
  variant: "ghost",
1514
1529
  color: "neutral",
1515
- onClick: c,
1516
- children: /* @__PURE__ */ t.jsx(Er, { className: "size-full" })
1530
+ onClick: d,
1531
+ children: /* @__PURE__ */ t.jsx(Nr, { className: "size-full" })
1517
1532
  }
1518
1533
  ),
1519
1534
  v && /* @__PURE__ */ t.jsxs("span", { className: "text-sm", children: [
@@ -1525,7 +1540,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1525
1540
  ]
1526
1541
  }
1527
1542
  ),
1528
- w && /* @__PURE__ */ t.jsxs(
1543
+ x && /* @__PURE__ */ t.jsxs(
1529
1544
  "div",
1530
1545
  {
1531
1546
  className: "group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",
@@ -1533,17 +1548,17 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1533
1548
  /* @__PURE__ */ t.jsx(
1534
1549
  "div",
1535
1550
  {
1536
- className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${w.isMuted ? "group-hover/volume:opacity-50" : "group-hover/volume:opacity-100"}`,
1551
+ className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${x.isMuted ? "group-hover/volume:opacity-50" : "group-hover/volume:opacity-100"}`,
1537
1552
  onClick: y,
1538
- children: /* @__PURE__ */ t.jsx(Ke, { progress: w.volume })
1553
+ children: /* @__PURE__ */ t.jsx(Ke, { progress: x.volume })
1539
1554
  }
1540
1555
  ),
1541
1556
  /* @__PURE__ */ t.jsx(
1542
1557
  "div",
1543
1558
  {
1544
1559
  className: "size-5 cursor-pointer",
1545
- onClick: () => I(!w.isMuted),
1546
- children: w.isMuted ? /* @__PURE__ */ t.jsx(Lr, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Nr, { className: "size-full" })
1560
+ onClick: () => I(!x.isMuted),
1561
+ children: x.isMuted ? /* @__PURE__ */ t.jsx(Lr, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Er, { className: "size-full" })
1547
1562
  }
1548
1563
  )
1549
1564
  ]
@@ -1554,51 +1569,51 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1554
1569
  "div",
1555
1570
  {
1556
1571
  className: "cursor-pointer py-1",
1557
- onClick: C,
1558
- children: /* @__PURE__ */ t.jsx(Ke, { progress: z })
1572
+ onClick: N,
1573
+ children: /* @__PURE__ */ t.jsx(Ke, { progress: M })
1559
1574
  }
1560
1575
  )
1561
1576
  ]
1562
1577
  }
1563
1578
  ),
1564
- M && /* @__PURE__ */ t.jsx(
1579
+ z && /* @__PURE__ */ t.jsx(
1565
1580
  "div",
1566
1581
  {
1567
1582
  className: "pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",
1568
- children: /* @__PURE__ */ t.jsx(Et, { size: "lg" })
1583
+ children: /* @__PURE__ */ t.jsx(Nt, { size: "lg" })
1569
1584
  }
1570
1585
  )
1571
1586
  ] }) : /* @__PURE__ */ t.jsx(
1572
1587
  "div",
1573
1588
  {
1574
1589
  className: "absolute inset-0 flex items-center justify-center bg-foreground/25",
1575
- children: /* @__PURE__ */ t.jsx(Cr, { onClick: g })
1590
+ children: /* @__PURE__ */ t.jsx(Cr, { onClick: f })
1576
1591
  }
1577
1592
  )
1578
1593
  ] });
1579
1594
  }, Mr = ({ index: e, item: r, isShown: n, lazy: o }) => {
1580
- const { type: a } = r;
1581
- let l;
1595
+ const { type: i } = r;
1596
+ let s;
1582
1597
  if (o)
1583
- l = null;
1598
+ s = null;
1584
1599
  else
1585
- switch (a) {
1600
+ switch (i) {
1586
1601
  case "image":
1587
- l = /* @__PURE__ */ t.jsx(Mt, { onlyPreload: !n, ...r });
1602
+ s = /* @__PURE__ */ t.jsx(Mt, { onlyPreload: !n, ...r });
1588
1603
  break;
1589
1604
  case "video":
1590
- l = /* @__PURE__ */ t.jsx(zr, { index: e, ...r });
1605
+ s = /* @__PURE__ */ t.jsx(zr, { index: e, ...r });
1591
1606
  break;
1592
1607
  case "360":
1593
- l = /* @__PURE__ */ t.jsx(kr, { index: e, onlyPreload: !n, ...r });
1608
+ s = /* @__PURE__ */ t.jsx(kr, { index: e, onlyPreload: !n, ...r });
1594
1609
  break;
1595
1610
  case "omni_directional":
1596
- l = /* @__PURE__ */ t.jsx(xr, { item: r });
1611
+ s = /* @__PURE__ */ t.jsx(wr, { item: r });
1597
1612
  break;
1598
1613
  default:
1599
- throw new Error(`Unsupported item type: ${a}`);
1614
+ throw new Error(`Unsupported item type: ${i}`);
1600
1615
  }
1601
- return l;
1616
+ return s;
1602
1617
  }, Ir = (e) => {
1603
1618
  A(() => {
1604
1619
  const r = (n) => {
@@ -1630,7 +1645,7 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1630
1645
  d: "M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",
1631
1646
  fill: "currentColor"
1632
1647
  }
1633
- ) }) }), Hr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_HOTSPOTS", children: /* @__PURE__ */ t.jsxs(
1648
+ ) }) }), Rr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_HOTSPOTS", children: /* @__PURE__ */ t.jsxs(
1634
1649
  "svg",
1635
1650
  {
1636
1651
  className: e,
@@ -1650,7 +1665,7 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1650
1665
  /* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx("clipPath", { id: "clip0_418_982", children: /* @__PURE__ */ t.jsx("rect", { width: "12", height: "12", fill: "white" }) }) })
1651
1666
  ]
1652
1667
  }
1653
- ) }), Rr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_MINUS", children: /* @__PURE__ */ t.jsx(
1668
+ ) }), Hr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_MINUS", children: /* @__PURE__ */ t.jsx(
1654
1669
  "svg",
1655
1670
  {
1656
1671
  className: e,
@@ -1684,22 +1699,22 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1684
1699
  }
1685
1700
  )
1686
1701
  }
1687
- ) }), Ar = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_REDUCE", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
1702
+ ) }), Pr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_REDUCE", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
1688
1703
  "path",
1689
1704
  {
1690
1705
  d: "M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",
1691
1706
  fill: "currentColor"
1692
1707
  }
1693
- ) }) }), Pr = ({
1708
+ ) }) }), Ar = ({
1694
1709
  enabled: e,
1695
1710
  onToggle: r,
1696
1711
  label: n,
1697
1712
  className: o,
1698
- children: a
1713
+ children: i
1699
1714
  }) => /* @__PURE__ */ t.jsxs(
1700
1715
  "label",
1701
1716
  {
1702
- className: Z(
1717
+ className: O(
1703
1718
  "flex cursor-pointer items-center justify-center gap-x-2",
1704
1719
  o
1705
1720
  ),
@@ -1717,18 +1732,18 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1717
1732
  /* @__PURE__ */ t.jsx(
1718
1733
  "div",
1719
1734
  {
1720
- className: Z(
1735
+ className: O(
1721
1736
  "flex h-5 w-8 items-center justify-center rounded-full transition-colors",
1722
1737
  e ? "bg-primary" : "bg-background/60"
1723
1738
  ),
1724
1739
  children: /* @__PURE__ */ t.jsx(
1725
1740
  "div",
1726
1741
  {
1727
- className: Z(
1742
+ className: O(
1728
1743
  "flex size-4 items-center justify-center rounded-full p-0.5 transition",
1729
1744
  e ? "translate-x-1.5 bg-primary-foreground text-primary" : "-translate-x-1.5 bg-background text-foreground"
1730
1745
  ),
1731
- children: a
1746
+ children: i
1732
1747
  }
1733
1748
  )
1734
1749
  }
@@ -1752,24 +1767,24 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1752
1767
  }
1753
1768
  )
1754
1769
  }
1755
- ) }), Fr = ({ sharedClassName: e }) => {
1756
- const { categories: r } = ee(), { displayedCategoryId: n, changeCategory: o } = q(), [a, l] = F(!1), i = () => {
1757
- l(!a);
1758
- }, d = () => {
1759
- l(!1);
1770
+ ) }), $r = ({ sharedClassName: e }) => {
1771
+ const { categories: r } = ee(), { displayedCategoryId: n, changeCategory: o } = q(), [i, s] = $(!1), l = () => {
1772
+ s(!i);
1773
+ }, c = () => {
1774
+ s(!1);
1760
1775
  };
1761
1776
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1762
- a && /* @__PURE__ */ t.jsx(
1777
+ i && /* @__PURE__ */ t.jsx(
1763
1778
  "div",
1764
1779
  {
1765
- className: Z(e, "inset-0 small:hidden"),
1766
- onClick: d
1780
+ className: O(e, "inset-0 small:hidden"),
1781
+ onClick: c
1767
1782
  }
1768
1783
  ),
1769
1784
  /* @__PURE__ */ t.jsxs(
1770
1785
  "div",
1771
1786
  {
1772
- className: Z(
1787
+ className: O(
1773
1788
  e,
1774
1789
  ue("top-left"),
1775
1790
  "flex gap-x-2 small:hidden"
@@ -1779,24 +1794,24 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1779
1794
  B,
1780
1795
  {
1781
1796
  shape: "icon",
1782
- color: a ? "primary" : "neutral",
1783
- onClick: i,
1797
+ color: i ? "primary" : "neutral",
1798
+ onClick: l,
1784
1799
  children: /* @__PURE__ */ t.jsx(Zr, {})
1785
1800
  }
1786
1801
  ),
1787
- a && /* @__PURE__ */ t.jsx("div", { className: "rounded-ui-md bg-background", children: /* @__PURE__ */ t.jsx("ul", { className: "space-y-0.5 p-1", children: r.map(({ id: s, title: g }) => /* @__PURE__ */ t.jsx(
1802
+ i && /* @__PURE__ */ t.jsx("div", { className: "rounded-ui-md bg-background", children: /* @__PURE__ */ t.jsx("ul", { className: "space-y-0.5 p-1", children: r.map(({ id: a, title: f }) => /* @__PURE__ */ t.jsx(
1788
1803
  "li",
1789
1804
  {
1790
- className: Z(
1805
+ className: O(
1791
1806
  "cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-colors hover:bg-primary/30",
1792
- s === n && "bg-primary/50"
1807
+ a === n && "bg-primary/50"
1793
1808
  ),
1794
1809
  onClick: () => {
1795
- o(s), l(!1);
1810
+ o(a), s(!1);
1796
1811
  },
1797
- children: g
1812
+ children: f
1798
1813
  },
1799
- s
1814
+ a
1800
1815
  )) }) })
1801
1816
  ]
1802
1817
  }
@@ -1804,69 +1819,69 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1804
1819
  /* @__PURE__ */ t.jsx(
1805
1820
  "div",
1806
1821
  {
1807
- className: Z(
1822
+ className: O(
1808
1823
  e,
1809
1824
  yt("top"),
1810
1825
  "w-full overflow-x-auto max-small:hidden"
1811
1826
  ),
1812
- children: /* @__PURE__ */ t.jsx("div", { className: "mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow", children: r.map(({ id: s, title: g }) => /* @__PURE__ */ t.jsx(
1827
+ children: /* @__PURE__ */ t.jsx("div", { className: "mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow", children: r.map(({ id: a, title: f }) => /* @__PURE__ */ t.jsx(
1813
1828
  B,
1814
1829
  {
1815
- variant: s === n ? "fill" : "ghost",
1816
- onClick: () => o(s),
1817
- children: g
1830
+ variant: a === n ? "fill" : "ghost",
1831
+ onClick: () => o(a),
1832
+ children: f
1818
1833
  },
1819
- s
1834
+ a
1820
1835
  )) })
1821
1836
  }
1822
1837
  )
1823
1838
  ] });
1824
- }, $r = () => {
1839
+ }, Fr = () => {
1825
1840
  const { flatten: e, infiniteCarrousel: r, permanentGallery: n } = te(), {
1826
1841
  items: { length: o },
1827
- aspectRatioStyle: a
1842
+ aspectRatioStyle: i
1828
1843
  } = ee(), {
1829
- slidable: l,
1830
- masterItemIndex: i,
1831
- prevImage: d,
1832
- nextImage: s,
1833
- showGalleryControls: g,
1834
- enableHotspotsControl: c,
1835
- showHotspots: f,
1836
- toggleHotspots: p,
1837
- showGallery: M,
1844
+ slidable: s,
1845
+ masterItemIndex: l,
1846
+ prevImage: c,
1847
+ nextImage: a,
1848
+ showGalleryControls: f,
1849
+ enableHotspotsControl: d,
1850
+ showHotspots: h,
1851
+ toggleHotspots: g,
1852
+ showGallery: z,
1838
1853
  toggleGallery: u,
1839
- extendMode: h,
1854
+ extendMode: p,
1840
1855
  toggleExtendMode: j,
1841
- shownDetails: N,
1856
+ shownDetails: C,
1842
1857
  isShowingDetails: E,
1843
- resetShownDetails: w,
1858
+ resetShownDetails: x,
1844
1859
  showZoomControls: k,
1845
1860
  isZooming: y,
1846
1861
  canZoomIn: I,
1847
1862
  zoomIn: v,
1848
1863
  canZoomOut: L,
1849
- zoomOut: z,
1850
- resetView: C
1864
+ zoomOut: M,
1865
+ resetView: N
1851
1866
  } = q(), S = T(
1852
1867
  (U) => {
1853
- Tr(U) && w();
1868
+ Tr(U) && x();
1854
1869
  },
1855
- [w]
1870
+ [x]
1856
1871
  );
1857
- Ir(w);
1858
- const H = "absolute z-overlay", R = `transition-opacity ${g ? "opacity-100" : "opacity-0 !pointer-events-none"}`;
1872
+ Ir(x);
1873
+ const R = "absolute z-overlay", H = `transition-opacity ${f ? "opacity-100" : "opacity-0 !pointer-events-none"}`;
1859
1874
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1860
- !e && !y && /* @__PURE__ */ t.jsx(Fr, { sharedClassName: H }),
1861
- l && !y && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1875
+ !e && !y && /* @__PURE__ */ t.jsx($r, { sharedClassName: R }),
1876
+ s && !y && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1862
1877
  /* @__PURE__ */ t.jsx(
1863
1878
  B,
1864
1879
  {
1865
1880
  shape: "icon",
1866
1881
  color: "neutral",
1867
- className: Z(H, ue("middle-left")),
1868
- onClick: d,
1869
- disabled: !r && i <= 0,
1882
+ className: O(R, ue("middle-left")),
1883
+ onClick: c,
1884
+ disabled: !r && l <= 0,
1870
1885
  children: /* @__PURE__ */ t.jsx(Y, { customizationKey: "CONTROLS_ARROW_LEFT", children: /* @__PURE__ */ t.jsx(Je, { className: "size-full rotate-180" }) })
1871
1886
  }
1872
1887
  ),
@@ -1875,9 +1890,9 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1875
1890
  {
1876
1891
  shape: "icon",
1877
1892
  color: "neutral",
1878
- className: Z(H, ue("middle-right")),
1879
- onClick: s,
1880
- disabled: !r && i >= o - 1,
1893
+ className: O(R, ue("middle-right")),
1894
+ onClick: a,
1895
+ disabled: !r && l >= o - 1,
1881
1896
  children: /* @__PURE__ */ t.jsx(Y, { customizationKey: "CONTROLS_ARROW_RIGHT", children: /* @__PURE__ */ t.jsx(Je, { className: "size-full" }) })
1882
1897
  }
1883
1898
  )
@@ -1885,8 +1900,8 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1885
1900
  /* @__PURE__ */ t.jsxs(
1886
1901
  "div",
1887
1902
  {
1888
- className: Z(
1889
- H,
1903
+ className: O(
1904
+ R,
1890
1905
  ue("bottom-fullW"),
1891
1906
  "pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"
1892
1907
  ),
@@ -1895,19 +1910,19 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1895
1910
  /* @__PURE__ */ t.jsx(
1896
1911
  B,
1897
1912
  {
1898
- className: R,
1913
+ className: H,
1899
1914
  variant: "fill",
1900
- color: M ? "primary" : "neutral",
1915
+ color: z ? "primary" : "neutral",
1901
1916
  shape: "icon",
1902
1917
  onClick: u,
1903
1918
  children: /* @__PURE__ */ t.jsx(Y, { customizationKey: "CONTROLS_GALLERY", children: /* @__PURE__ */ t.jsx(Sr, { className: "size-full" }) })
1904
1919
  }
1905
1920
  ),
1906
- M && /* @__PURE__ */ t.jsx(
1921
+ z && /* @__PURE__ */ t.jsx(
1907
1922
  _t,
1908
1923
  {
1909
- className: Z(
1910
- R,
1924
+ className: O(
1925
+ H,
1911
1926
  "[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"
1912
1927
  ),
1913
1928
  containerClassName: "mx-1"
@@ -1915,7 +1930,7 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1915
1930
  )
1916
1931
  ] }),
1917
1932
  /* @__PURE__ */ t.jsxs("div", { className: "col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2", children: [
1918
- c && !y && /* @__PURE__ */ t.jsx(Pr, { enabled: f, onToggle: p, children: /* @__PURE__ */ t.jsx(Hr, { className: "size-full" }) }),
1933
+ d && !y && /* @__PURE__ */ t.jsx(Ar, { enabled: h, onToggle: g, children: /* @__PURE__ */ t.jsx(Rr, { className: "size-full" }) }),
1919
1934
  k && /* @__PURE__ */ t.jsxs("div", { className: "max-small:hidden", children: [
1920
1935
  /* @__PURE__ */ t.jsx(
1921
1936
  B,
@@ -1936,8 +1951,8 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1936
1951
  color: "neutral",
1937
1952
  shape: "icon",
1938
1953
  disabled: !L,
1939
- onClick: z,
1940
- children: /* @__PURE__ */ t.jsx(Rr, { className: "size-full" })
1954
+ onClick: M,
1955
+ children: /* @__PURE__ */ t.jsx(Hr, { className: "size-full" })
1941
1956
  }
1942
1957
  )
1943
1958
  ] }),
@@ -1945,10 +1960,10 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1945
1960
  B,
1946
1961
  {
1947
1962
  variant: "fill",
1948
- color: h ? "primary" : "neutral",
1963
+ color: p ? "primary" : "neutral",
1949
1964
  shape: "icon",
1950
1965
  onClick: j,
1951
- children: h ? /* @__PURE__ */ t.jsx(Ar, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Vr, { className: "size-full" })
1966
+ children: p ? /* @__PURE__ */ t.jsx(Pr, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Vr, { className: "size-full" })
1952
1967
  }
1953
1968
  )
1954
1969
  ] })
@@ -1958,8 +1973,8 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1958
1973
  /* @__PURE__ */ t.jsx(
1959
1974
  "div",
1960
1975
  {
1961
- className: Z(
1962
- H,
1976
+ className: O(
1977
+ R,
1963
1978
  "inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",
1964
1979
  E ? "opacity-100" : "pointer-events-none opacity-0"
1965
1980
  ),
@@ -1967,24 +1982,51 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1967
1982
  children: /* @__PURE__ */ t.jsx(
1968
1983
  "div",
1969
1984
  {
1970
- className: Z(
1985
+ className: O(
1971
1986
  "h-full w-3/5 bg-background transition-transform duration-details",
1972
1987
  E ? "translate-x-0" : "translate-x-full"
1973
1988
  ),
1974
- children: !!N && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1989
+ children: !!C && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1975
1990
  /* @__PURE__ */ t.jsx(
1976
- we,
1991
+ xe,
1977
1992
  {
1978
1993
  className: "w-full bg-foreground/65",
1979
- style: a,
1980
- src: N.src,
1994
+ style: i,
1995
+ src: C.src,
1981
1996
  imgInPlayerWidthRatio: 0.6
1982
1997
  }
1983
1998
  ),
1984
- /* @__PURE__ */ t.jsxs("div", { className: "space-y-1 p-3", children: [
1985
- /* @__PURE__ */ t.jsx("span", { children: N.title }),
1986
- /* @__PURE__ */ t.jsx("p", { children: N.text })
1987
- ] })
1999
+ /* @__PURE__ */ t.jsxs(
2000
+ "div",
2001
+ {
2002
+ className: O(
2003
+ "space-y-1 p-1.5 small:p-2",
2004
+ p && "large:p-3"
2005
+ ),
2006
+ children: [
2007
+ C.title && /* @__PURE__ */ t.jsx(
2008
+ "span",
2009
+ {
2010
+ className: O(
2011
+ "text-sm small:text-base",
2012
+ p && "large:text-lg"
2013
+ ),
2014
+ children: C.title
2015
+ }
2016
+ ),
2017
+ C.text && /* @__PURE__ */ t.jsx(
2018
+ "p",
2019
+ {
2020
+ className: O(
2021
+ "text-xs small:text-sm",
2022
+ p && "large:text-base"
2023
+ ),
2024
+ children: C.text
2025
+ }
2026
+ )
2027
+ ]
2028
+ }
2029
+ )
1988
2030
  ] })
1989
2031
  }
1990
2032
  )
@@ -1993,196 +2035,196 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1993
2035
  (y || E) && /* @__PURE__ */ t.jsx(
1994
2036
  kt,
1995
2037
  {
1996
- className: Z(H, ue("top-right")),
1997
- onClick: C
2038
+ className: O(R, ue("top-right")),
2039
+ onClick: N
1998
2040
  }
1999
2041
  )
2000
2042
  ] });
2001
2043
  }, Wr = ({ className: e = "" }) => {
2002
- const { infiniteCarrousel: r, isFullScreen: n } = te(), { items: o, aspectRatioStyle: a } = ee(), {
2003
- slidable: l,
2004
- carrouselItemIndex: i,
2005
- setCarrouselItemIndex: d,
2006
- itemIndexCommand: s,
2007
- setItemIndexCommand: g,
2008
- cycling: c,
2009
- isCycling: f,
2010
- finishCycling: p,
2011
- extendMode: M,
2044
+ const { infiniteCarrousel: r, isFullScreen: n } = te(), { items: o, aspectRatioStyle: i } = ee(), {
2045
+ slidable: s,
2046
+ carrouselItemIndex: l,
2047
+ setCarrouselItemIndex: c,
2048
+ itemIndexCommand: a,
2049
+ setItemIndexCommand: f,
2050
+ cycling: d,
2051
+ isCycling: h,
2052
+ finishCycling: g,
2053
+ extendMode: z,
2012
2054
  extendTransition: u,
2013
- isZooming: h
2014
- } = q(), j = W(null), N = T((_) => {
2055
+ isZooming: p
2056
+ } = q(), j = W(null), C = T((_) => {
2015
2057
  if (!j.current)
2016
2058
  throw new Error(`[${_ ?? "sliderOrThrow"}] slider.current is null`);
2017
2059
  return j.current;
2018
- }, []), E = W(!1), w = W(null), k = W(null), y = W(null), I = T(() => {
2060
+ }, []), E = W(!1), x = W(null), k = W(null), y = W(null), I = T(() => {
2019
2061
  y.current && (cancelAnimationFrame(y.current), y.current = null);
2020
2062
  }, []), v = T(() => {
2021
- const _ = N("computeClosestSnapIndex"), x = Array.from(_.children), m = _.scrollLeft, b = x.reduce(
2022
- (V, P, $) => {
2023
- const D = P.offsetLeft;
2024
- return Math.abs(D - m) < Math.abs(x[V].offsetLeft - m) ? $ : V;
2063
+ const _ = C("computeClosestSnapIndex"), w = Array.from(_.children), m = _.scrollLeft, b = w.reduce(
2064
+ (V, Z, F) => {
2065
+ const D = Z.offsetLeft;
2066
+ return Math.abs(D - m) < Math.abs(w[V].offsetLeft - m) ? F : V;
2025
2067
  },
2026
2068
  0
2027
2069
  );
2028
- return c === "first_to_last" ? Ge(b, o.length) : c === "last_to_first" ? Ge(b - 1, o.length) : b;
2029
- }, [c, N, o.length]), L = T(
2070
+ return d === "first_to_last" ? Ge(b, o.length) : d === "last_to_first" ? Ge(b - 1, o.length) : b;
2071
+ }, [d, C, o.length]), L = T(
2030
2072
  (_) => {
2031
- const x = N("setStyleCursor");
2032
- x.style.cursor = _;
2073
+ const w = C("setStyleCursor");
2074
+ w.style.cursor = _;
2033
2075
  },
2034
- [N]
2035
- ), z = T(
2076
+ [C]
2077
+ ), M = T(
2036
2078
  (_) => {
2037
- const x = N("setStyleSnapState");
2038
- _ === "mandatory" ? x.style.scrollSnapType = "x mandatory" : x.style.scrollSnapType = "none";
2079
+ const w = C("setStyleSnapState");
2080
+ _ === "mandatory" ? w.style.scrollSnapType = "x mandatory" : w.style.scrollSnapType = "none";
2039
2081
  },
2040
- [N]
2041
- ), C = T(
2042
- (_, x, m) => {
2082
+ [C]
2083
+ ), N = T(
2084
+ (_, w, m) => {
2043
2085
  I();
2044
- const b = N("scrollToIndex"), V = Array.from(b.children), P = b.scrollLeft, $ = V[_].offsetLeft, D = (ne) => {
2086
+ const b = C("scrollToIndex"), V = Array.from(b.children), Z = b.scrollLeft, F = V[_].offsetLeft, D = (ne) => {
2045
2087
  b.scrollTo({
2046
2088
  left: ne,
2047
2089
  behavior: "instant"
2048
2090
  });
2049
- }, X = Math.abs(P - $);
2050
- if (X < 1 || x === "instant") {
2051
- D($), m == null || m();
2091
+ }, X = Math.abs(Z - F);
2092
+ if (X < 1 || w === "instant") {
2093
+ D(F), m == null || m();
2052
2094
  return;
2053
2095
  }
2054
2096
  const G = ae(X / 2.5, 300, 1e3), K = (/* @__PURE__ */ new Date()).getTime();
2055
- z("none");
2097
+ M("none");
2056
2098
  const re = () => {
2057
2099
  const ne = () => {
2058
2100
  const oe = (/* @__PURE__ */ new Date()).getTime() - K;
2059
2101
  if (oe >= G) {
2060
- D($), m == null || m(), y.current = requestAnimationFrame(() => {
2061
- z("mandatory"), y.current = null;
2102
+ D(F), m == null || m(), y.current = requestAnimationFrame(() => {
2103
+ M("mandatory"), y.current = null;
2062
2104
  });
2063
2105
  return;
2064
2106
  }
2065
- const me = Math.min(oe / G, 1), ze = zt(me), Me = Ee(P, $, ze);
2107
+ const me = Math.min(oe / G, 1), ze = zt(me), Me = Ne(Z, F, ze);
2066
2108
  D(Me), re();
2067
2109
  };
2068
2110
  y.current = requestAnimationFrame(ne);
2069
2111
  };
2070
2112
  re();
2071
2113
  },
2072
- [I, N, z]
2073
- ), [S, H] = F(), R = !!S;
2114
+ [I, C, M]
2115
+ ), [S, R] = $(), H = !!S;
2074
2116
  A(() => {
2075
2117
  const _ = () => {
2076
2118
  clearTimeout(S);
2077
- const x = setTimeout(() => {
2078
- H(void 0);
2079
- }, ft);
2080
- H(x);
2119
+ const w = setTimeout(() => {
2120
+ R(void 0);
2121
+ }, gt);
2122
+ R(w);
2081
2123
  };
2082
2124
  return addEventListener("resize", _), document.addEventListener("fullscreenchange", _), () => {
2083
2125
  removeEventListener("resize", _), document.removeEventListener("fullscreenchange", _);
2084
2126
  };
2085
2127
  }, [S]), A(() => {
2086
2128
  const _ = v();
2087
- Number.isNaN(_) || _ !== i && C(i, "instant");
2129
+ Number.isNaN(_) || _ !== l && N(l, "instant");
2088
2130
  }, [
2089
- i,
2090
- C,
2131
+ l,
2132
+ N,
2091
2133
  v,
2092
2134
  // - Run the effect when those values change
2093
2135
  o,
2094
2136
  S,
2095
2137
  n,
2096
- M,
2138
+ z,
2097
2139
  u
2098
2140
  ]), A(() => {
2099
- if (!l || f) {
2141
+ if (!s || h) {
2100
2142
  L("auto");
2101
2143
  return;
2102
2144
  }
2103
2145
  const _ = j.current;
2104
2146
  if (!_)
2105
2147
  return;
2106
- L("grab"), z("mandatory");
2107
- const x = (V) => {
2108
- V.button === 0 && (V.preventDefault(), V.stopPropagation(), E.current = !0, w.current = V.pageX - _.offsetLeft, k.current = _.scrollLeft, I(), L("grabbing"), z("none"));
2148
+ L("grab"), M("mandatory");
2149
+ const w = (V) => {
2150
+ V.button === 0 && (V.preventDefault(), V.stopPropagation(), E.current = !0, x.current = V.pageX - _.offsetLeft, k.current = _.scrollLeft, I(), L("grabbing"), M("none"));
2109
2151
  }, m = (V) => {
2110
2152
  if (!E.current)
2111
2153
  return;
2112
- if (w.current === null)
2154
+ if (x.current === null)
2113
2155
  throw new Error("[onMouseMove] startX is null");
2114
- const P = V.pageX - _.offsetLeft - w.current;
2156
+ const Z = V.pageX - _.offsetLeft - x.current;
2115
2157
  requestAnimationFrame(() => {
2116
2158
  if (k.current === null)
2117
2159
  throw new Error("[onMouseMove] scrollLeft is null");
2118
- _.scrollLeft = k.current - P;
2160
+ _.scrollLeft = k.current - Z;
2119
2161
  });
2120
2162
  }, b = () => {
2121
2163
  if (!E.current)
2122
2164
  return;
2123
2165
  E.current = !1, L("grab");
2124
2166
  const V = v();
2125
- C(V, "smooth");
2167
+ N(V, "smooth");
2126
2168
  };
2127
- return _.addEventListener("mousedown", x), document.addEventListener("mousemove", m), document.addEventListener("mouseleave", b), document.addEventListener("mouseup", b), document.addEventListener("contextmenu", b), () => {
2128
- _.removeEventListener("mousedown", x), document.removeEventListener("mousemove", m), document.removeEventListener("mouseleave", b), document.removeEventListener("mouseup", b), document.removeEventListener("contextmenu", b);
2169
+ return _.addEventListener("mousedown", w), document.addEventListener("mousemove", m), document.addEventListener("mouseleave", b), document.addEventListener("mouseup", b), document.addEventListener("contextmenu", b), () => {
2170
+ _.removeEventListener("mousedown", w), document.removeEventListener("mousemove", m), document.removeEventListener("mouseleave", b), document.removeEventListener("mouseup", b), document.removeEventListener("contextmenu", b);
2129
2171
  };
2130
2172
  }, [
2131
2173
  I,
2132
2174
  v,
2133
- f,
2134
- C,
2175
+ h,
2176
+ N,
2135
2177
  L,
2136
- z,
2137
- l
2178
+ M,
2179
+ s
2138
2180
  ]), A(() => {
2139
- if (u || R)
2181
+ if (u || H)
2140
2182
  return;
2141
2183
  const _ = j.current;
2142
2184
  if (!_)
2143
2185
  return;
2144
- const x = () => {
2186
+ const w = () => {
2145
2187
  const m = v();
2146
- Number.isNaN(m) || (d(m), m === s && g(null));
2188
+ Number.isNaN(m) || (c(m), m === a && f(null));
2147
2189
  };
2148
- return _.addEventListener("scroll", x), () => {
2149
- _.removeEventListener("scroll", x);
2190
+ return _.addEventListener("scroll", w), () => {
2191
+ _.removeEventListener("scroll", w);
2150
2192
  };
2151
2193
  }, [
2152
2194
  v,
2153
2195
  u,
2154
- f,
2155
- R,
2156
- s,
2196
+ h,
2197
+ H,
2198
+ a,
2157
2199
  o.length,
2158
- d,
2159
- g
2200
+ c,
2201
+ f
2160
2202
  ]), A(() => {
2161
- s !== null && (c === "first_to_last" ? (C(o.length, "instant"), C(o.length - 1, "smooth", () => p())) : c === "last_to_first" ? (C(0, "instant"), C(1, "smooth", () => p())) : C(s, "smooth"));
2162
- }, [c, p, s, o.length, C]);
2163
- const U = () => /* @__PURE__ */ t.jsx("div", { className: "h-full", style: a });
2203
+ a !== null && (d === "first_to_last" ? (N(o.length, "instant"), N(o.length - 1, "smooth", () => g())) : d === "last_to_first" ? (N(0, "instant"), N(1, "smooth", () => g())) : N(a, "smooth"));
2204
+ }, [d, g, a, o.length, N]);
2205
+ const U = () => /* @__PURE__ */ t.jsx("div", { className: "h-full", style: i });
2164
2206
  return /* @__PURE__ */ t.jsxs(
2165
2207
  "div",
2166
2208
  {
2167
- className: Z("relative overflow-hidden rounded-carrousel", e),
2168
- style: a,
2209
+ className: O("relative overflow-hidden rounded-carrousel", e),
2210
+ style: i,
2169
2211
  children: [
2170
2212
  /* @__PURE__ */ t.jsxs(
2171
2213
  "div",
2172
2214
  {
2173
2215
  ref: j,
2174
- className: `flex size-full ${l ? "overflow-x-auto no-scrollbar *:snap-start *:snap-always" : "justify-center"}`,
2216
+ className: `flex size-full ${s ? "overflow-x-auto no-scrollbar *:snap-start *:snap-always" : "justify-center"}`,
2175
2217
  children: [
2176
- c === "last_to_first" && /* @__PURE__ */ t.jsx(U, {}),
2177
- o.map((_, x) => {
2178
- const m = _.type === "360" ? _.images[0] : _.src, b = x === i, V = x === 0, P = i === o.length - 1, $ = x === o.length - 1, D = i === 0, X = Math.abs(x - i) > 1 && // Not next to the current one
2179
- !(r && V && P) && // Not the last one when the first one is shown (only for infinite carrousel)
2180
- !(r && $ && D), G = (() => {
2181
- if (c === "first_to_last" && V)
2218
+ d === "last_to_first" && /* @__PURE__ */ t.jsx(U, {}),
2219
+ o.map((_, w) => {
2220
+ const m = _.type === "360" ? _.images[0] : _.src, b = w === l, V = w === 0, Z = l === o.length - 1, F = w === o.length - 1, D = l === 0, X = Math.abs(w - l) > 1 && // Not next to the current one
2221
+ !(r && V && Z) && // Not the last one when the first one is shown (only for infinite carrousel)
2222
+ !(r && F && D), G = (() => {
2223
+ if (d === "first_to_last" && V)
2182
2224
  return {
2183
2225
  transform: `translateX(${100 * o.length}%)`
2184
2226
  };
2185
- if (c === "last_to_first" && $)
2227
+ if (d === "last_to_first" && F)
2186
2228
  return {
2187
2229
  transform: `translateX(-${100 * o.length}%)`
2188
2230
  };
@@ -2191,32 +2233,32 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
2191
2233
  "div",
2192
2234
  {
2193
2235
  className: "relative h-full bg-foreground/50",
2194
- style: { ...a, ...G },
2236
+ style: { ...i, ...G },
2195
2237
  children: /* @__PURE__ */ t.jsx(
2196
2238
  Mr,
2197
2239
  {
2198
- index: x,
2240
+ index: w,
2199
2241
  item: _,
2200
2242
  isShown: b,
2201
2243
  lazy: X
2202
2244
  }
2203
2245
  )
2204
2246
  },
2205
- `${x}_${m}`
2247
+ `${w}_${m}`
2206
2248
  );
2207
2249
  }),
2208
- c === "first_to_last" && /* @__PURE__ */ t.jsx(U, {})
2250
+ d === "first_to_last" && /* @__PURE__ */ t.jsx(U, {})
2209
2251
  ]
2210
2252
  }
2211
2253
  ),
2212
- l && !h && /* @__PURE__ */ t.jsx("div", { className: `absolute ${ue("top-right")}`, children: /* @__PURE__ */ t.jsx(
2254
+ s && !p && /* @__PURE__ */ t.jsx("div", { className: `absolute ${ue("top-right")}`, children: /* @__PURE__ */ t.jsx(
2213
2255
  hr,
2214
2256
  {
2215
- currentIndex: i,
2257
+ currentIndex: l,
2216
2258
  maxIndex: o.length - 1
2217
2259
  }
2218
2260
  ) }),
2219
- /* @__PURE__ */ t.jsx($r, {})
2261
+ /* @__PURE__ */ t.jsx(Fr, {})
2220
2262
  ]
2221
2263
  }
2222
2264
  );
@@ -2224,36 +2266,36 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
2224
2266
  const { permanentGallery: e } = te(), { aspectRatioStyle: r } = ee(), {
2225
2267
  prevImage: n,
2226
2268
  nextImage: o,
2227
- isShowingDetails: a,
2228
- resetShownDetails: l,
2229
- extendMode: i,
2230
- disableExtendMode: d,
2231
- isZooming: s,
2232
- resetZoom: g,
2233
- fakeFullScreen: c
2234
- } = q(), f = W(null), p = W(null), M = W(null);
2269
+ isShowingDetails: i,
2270
+ resetShownDetails: s,
2271
+ extendMode: l,
2272
+ disableExtendMode: c,
2273
+ isZooming: a,
2274
+ resetZoom: f,
2275
+ fakeFullScreen: d
2276
+ } = q(), h = W(null), g = W(null), z = W(null);
2235
2277
  return A(() => {
2236
- if (!i)
2278
+ if (!l)
2237
2279
  return;
2238
- const u = f.current, h = p.current, j = M.current;
2239
- if (!u || !h || !j)
2280
+ const u = h.current, p = g.current, j = z.current;
2281
+ if (!u || !p || !j)
2240
2282
  return;
2241
- let N = !1;
2242
- const E = (y) => [u, h, j].includes(y.target), w = (y) => {
2243
- N = E(y);
2283
+ let C = !1;
2284
+ const E = (y) => [u, p, j].includes(y.target), x = (y) => {
2285
+ C = E(y);
2244
2286
  }, k = (y) => {
2245
- N && (E(y) && d(), N = !1);
2287
+ C && (E(y) && c(), C = !1);
2246
2288
  };
2247
- return u.addEventListener("mousedown", w), u.addEventListener("mouseup", k), () => {
2248
- u.removeEventListener("mousedown", w), u.removeEventListener("mouseup", k);
2289
+ return u.addEventListener("mousedown", x), u.addEventListener("mouseup", k), () => {
2290
+ u.removeEventListener("mousedown", x), u.removeEventListener("mouseup", k);
2249
2291
  };
2250
- }, [d, i]), A(() => {
2251
- const u = (h) => {
2252
- const j = h.key === "Escape", N = !s && !a;
2292
+ }, [c, l]), A(() => {
2293
+ const u = (p) => {
2294
+ const j = p.key === "Escape", C = !a && !i;
2253
2295
  if (j)
2254
- s ? g() : a ? l() : d();
2255
- else if (N)
2256
- switch (h.key) {
2296
+ a ? f() : i ? s() : c();
2297
+ else if (C)
2298
+ switch (p.key) {
2257
2299
  case "ArrowLeft":
2258
2300
  n();
2259
2301
  break;
@@ -2266,49 +2308,49 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
2266
2308
  removeEventListener("keydown", u);
2267
2309
  };
2268
2310
  }, [
2269
- d,
2311
+ c,
2312
+ i,
2270
2313
  a,
2271
- s,
2272
2314
  o,
2273
2315
  n,
2274
- l,
2275
- g
2316
+ s,
2317
+ f
2276
2318
  ]), /* @__PURE__ */ t.jsxs(
2277
2319
  "div",
2278
2320
  {
2279
- ref: f,
2280
- className: Z(
2321
+ ref: h,
2322
+ className: O(
2281
2323
  "relative",
2282
- i && "flex size-full items-center justify-center bg-foreground/75",
2283
- c && "fixed inset-0 z-overlay"
2324
+ l && "flex size-full items-center justify-center bg-foreground/75",
2325
+ d && "fixed inset-0 z-overlay"
2284
2326
  ),
2285
2327
  children: [
2286
2328
  /* @__PURE__ */ t.jsxs(
2287
2329
  "div",
2288
2330
  {
2289
- ref: p,
2290
- className: i ? "flex size-full flex-col justify-center gap-y-2 small:gap-y-4" : "space-y-2",
2331
+ ref: g,
2332
+ className: l ? "flex size-full flex-col justify-center gap-y-2 small:gap-y-4" : "space-y-2",
2291
2333
  children: [
2292
2334
  /* @__PURE__ */ t.jsx(
2293
2335
  "div",
2294
2336
  {
2295
- ref: M,
2296
- className: Z(
2297
- i && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
2337
+ ref: z,
2338
+ className: O(
2339
+ l && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
2298
2340
  ),
2299
2341
  style: r,
2300
- children: /* @__PURE__ */ t.jsx(Wr, { className: Z(i && "h-full min-w-0") })
2342
+ children: /* @__PURE__ */ t.jsx(Wr, { className: O(l && "h-full min-w-0") })
2301
2343
  }
2302
2344
  ),
2303
- e && /* @__PURE__ */ t.jsx(_t, { className: Z(i && "my-2 shrink-0 small:my-4") })
2345
+ e && /* @__PURE__ */ t.jsx(_t, { className: O(l && "my-2 shrink-0 small:my-4") })
2304
2346
  ]
2305
2347
  }
2306
2348
  ),
2307
- i && /* @__PURE__ */ t.jsx(
2349
+ l && /* @__PURE__ */ t.jsx(
2308
2350
  kt,
2309
2351
  {
2310
2352
  className: "absolute right-2 top-2 small:right-4 small:top-4",
2311
- onClick: d
2353
+ onClick: c
2312
2354
  }
2313
2355
  )
2314
2356
  ]
@@ -2320,53 +2362,53 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
2320
2362
  const { emitEvent: r } = te(), {
2321
2363
  data: n,
2322
2364
  status: o,
2323
- isSuccess: a,
2324
- error: l
2365
+ isSuccess: i,
2366
+ error: s
2325
2367
  } = Bt(e);
2326
2368
  return A(() => {
2327
- l ? r(st, l) : a ? r(ot) : o === "fetching" && r(nt);
2328
- }, [r, l, a, o]), l ? /* @__PURE__ */ t.jsx(Ct, { title: "Failed to fetch composition", error: l }) : a ? /* @__PURE__ */ t.jsx(qt, { composition: n, children: /* @__PURE__ */ t.jsx(Jt, { children: /* @__PURE__ */ t.jsx(Dr, {}) }) }) : /* @__PURE__ */ t.jsxs("div", { className: "flex aspect-video size-full flex-col items-center justify-center gap-y-4", children: [
2369
+ s ? r(st, s) : i ? r(ot) : o === "fetching" && r(nt);
2370
+ }, [r, s, i, o]), s ? /* @__PURE__ */ t.jsx(Ct, { title: "Failed to fetch composition", error: s }) : i ? /* @__PURE__ */ t.jsx(qt, { composition: n, children: /* @__PURE__ */ t.jsx(Jt, { children: /* @__PURE__ */ t.jsx(Dr, {}) }) }) : /* @__PURE__ */ t.jsxs("div", { className: "flex aspect-video size-full flex-col items-center justify-center gap-y-4", children: [
2329
2371
  /* @__PURE__ */ t.jsx("div", { className: "text-xl", children: "Loading WebPlayer..." }),
2330
- /* @__PURE__ */ t.jsx(Et, { color: "primary" })
2372
+ /* @__PURE__ */ t.jsx(Nt, { color: "primary" })
2331
2373
  ] });
2332
2374
  }, Yr = ({
2333
2375
  compositionUrl: e,
2334
2376
  flatten: r = Zt,
2335
- infiniteCarrousel: n = Ft,
2336
- permanentGallery: o = $t,
2337
- imageLoadStrategy: a = Wt,
2338
- preventFullScreen: l = Dt,
2339
- eventPrefix: i = mt,
2340
- reverse360: d = Ut,
2341
- children: s,
2377
+ infiniteCarrousel: n = $t,
2378
+ permanentGallery: o = Ft,
2379
+ imageLoadStrategy: i = Wt,
2380
+ preventFullScreen: s = Dt,
2381
+ eventPrefix: l = mt,
2382
+ reverse360: c = Ut,
2383
+ children: a,
2342
2384
  // NOTE: use to customize the player, not to display the content
2343
- ...g
2385
+ ...f
2344
2386
  }) => {
2345
- const c = W(null), [f, p] = F(), [M, u] = F(0.5), [h, j] = F(!1), N = T(
2387
+ const d = W(null), [h, g] = $(), [z, u] = $(0.5), [p, j] = $(!1), C = T(
2346
2388
  (k, y) => {
2347
- const I = i + k, v = new CustomEvent(I, { detail: y });
2389
+ const I = l + k, v = new CustomEvent(I, { detail: y });
2348
2390
  document.dispatchEvent(v);
2349
2391
  },
2350
- [i]
2392
+ [l]
2351
2393
  );
2352
2394
  A(() => {
2353
- if (h) {
2395
+ if (p) {
2354
2396
  u(1);
2355
2397
  return;
2356
2398
  }
2357
- if (!c.current)
2399
+ if (!d.current)
2358
2400
  return;
2359
- const k = c.current, y = () => {
2401
+ const k = d.current, y = () => {
2360
2402
  const I = window.innerWidth, v = getComputedStyle(k), L = k.getBoundingClientRect().width + parseFloat(v.marginLeft) + parseFloat(v.marginRight);
2361
- p(L), u(L / I);
2403
+ g(L), u(L / I);
2362
2404
  };
2363
2405
  return y(), addEventListener("resize", y), () => {
2364
2406
  removeEventListener("resize", y);
2365
2407
  };
2366
- }, [h]), A(() => {
2367
- if (l)
2408
+ }, [p]), A(() => {
2409
+ if (s)
2368
2410
  return;
2369
- const k = c.current;
2411
+ const k = d.current;
2370
2412
  if (!k)
2371
2413
  throw new Error("Wrapper not found");
2372
2414
  const y = () => {
@@ -2379,9 +2421,9 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
2379
2421
  return document.addEventListener("fullscreenchange", y), () => {
2380
2422
  document.removeEventListener("fullscreenchange", y);
2381
2423
  };
2382
- }, [l]);
2424
+ }, [s]);
2383
2425
  const E = T(async () => {
2384
- const k = c.current;
2426
+ const k = d.current;
2385
2427
  if (!k)
2386
2428
  throw new Error("Wrapper not found");
2387
2429
  try {
@@ -2389,7 +2431,7 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
2389
2431
  } catch {
2390
2432
  return !1;
2391
2433
  }
2392
- }, []), w = T(async () => {
2434
+ }, []), x = T(async () => {
2393
2435
  try {
2394
2436
  return await document.exitFullscreen(), !0;
2395
2437
  } catch {
@@ -2399,48 +2441,48 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
2399
2441
  return /* @__PURE__ */ t.jsx(
2400
2442
  Kt,
2401
2443
  {
2402
- ...g,
2403
- reverse360: d,
2404
- imageLoadStrategy: a,
2444
+ ...f,
2445
+ reverse360: c,
2446
+ imageLoadStrategy: i,
2405
2447
  flatten: r,
2406
2448
  infiniteCarrousel: n,
2407
- preventFullScreen: l,
2449
+ preventFullScreen: s,
2408
2450
  permanentGallery: o,
2409
- emitEvent: N,
2410
- playerInViewportWidthRatio: M,
2411
- isFullScreen: h,
2451
+ emitEvent: C,
2452
+ playerInViewportWidthRatio: z,
2453
+ isFullScreen: p,
2412
2454
  requestFullscreen: E,
2413
- exitFullscreen: w,
2455
+ exitFullscreen: x,
2414
2456
  children: /* @__PURE__ */ t.jsxs(ar, { children: [
2415
2457
  /* @__PURE__ */ t.jsx(
2416
2458
  "div",
2417
2459
  {
2418
2460
  id: "cc-webplayer-wrapper",
2419
- ref: c,
2461
+ ref: d,
2420
2462
  className: "select-none text-foreground",
2421
2463
  style: {
2422
2464
  marginInline: "auto",
2423
- maxWidth: f && Math.floor(f)
2465
+ maxWidth: h && Math.floor(h)
2424
2466
  },
2425
2467
  children: /* @__PURE__ */ t.jsx(Ur, { compositionUrl: e })
2426
2468
  }
2427
2469
  ),
2428
- s
2470
+ a
2429
2471
  ] })
2430
2472
  }
2431
2473
  );
2432
2474
  }, Xr = ({ name: e, color: r, children: n }) => {
2433
- const { setIconConfig: o, resetIconConfig: a } = $e();
2475
+ const { setIconConfig: o, resetIconConfig: i } = Fe();
2434
2476
  return A(() => {
2435
2477
  if (!(!n && !r))
2436
2478
  return o(e, {
2437
2479
  Icon: n,
2438
2480
  color: r
2439
2481
  }), () => {
2440
- a(e);
2482
+ i(e);
2441
2483
  };
2442
- }, [n, r, e, a, o]), null;
2443
- }, Gr = (e) => jt() ? /* @__PURE__ */ t.jsx(Xr, { ...e }) : /* @__PURE__ */ t.jsx("slot", {});
2484
+ }, [n, r, e, i, o]), null;
2485
+ }, Gr = (e) => jt() ? /* @__PURE__ */ t.jsx(Xr, { ...e }) : /* @__PURE__ */ t.jsx("slot", {}), Br = '*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}#cc-webplayer-wrapper{--background: var(--cc-webplayer-background, 0 0% 100%);--foreground: var(--cc-webplayer-foreground, 240 10% 3.9%);--primary: var(--cc-webplayer-primary, 216 100% 52%);--primary-foreground: var( --cc-webplayer-primary-foreground, var(--background) );--neutral: var(--cc-webplayer-neutral, 0 0% 39%);--neutral-foreground: var( --cc-webplayer-neutral-foreground, var(--foreground) );--radius-ui: var(--cc-webplayer-radius-ui, 1rem);--radius-carrousel: var(--cc-webplayer-radius-carrousel, 0);--radius-gallery: var(--cc-webplayer-radius-gallery, 0)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-x-1{left:.25rem;right:.25rem}.inset-y-1{top:.25rem;bottom:.25rem}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-1{width:.25rem;height:.25rem}.size-12{width:3rem;height:3rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-1{height:.25rem}.h-10{height:2.5rem}.h-3\\/4{height:75%}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3\\/5{width:60%}.w-8{width:2rem}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-40{max-width:10rem}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -.375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + .125rem)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - .125rem)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-opacity:after{content:var(--tw-content);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:.5rem;right:.5rem}.small\\:inset-y-2{top:.5rem;bottom:.5rem}.small\\:bottom-2{bottom:.5rem}.small\\:left-2{left:.5rem}.small\\:right-2{right:.5rem}.small\\:right-4{right:1rem}.small\\:top-2{top:.5rem}.small\\:top-4{top:1rem}.small\\:my-4{margin-top:1rem;margin-bottom:1rem}.small\\:hidden{display:none}.small\\:h-12{height:3rem}.small\\:max-w-48{max-width:12rem}.small\\:gap-2{gap:.5rem}.small\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.small\\:gap-y-2{row-gap:.5rem}.small\\:gap-y-4{row-gap:1rem}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-2{padding:.5rem}.small\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.small\\:pr-6{padding-right:1.5rem}.small\\:text-base{font-size:1rem;line-height:1.5rem}.small\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1280px){.large\\:h-20{height:5rem}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:14rem}.large\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}.large\\:p-3{padding:.75rem}.large\\:text-base{font-size:1rem;line-height:1.5rem}.large\\:text-lg{font-size:1.125rem;line-height:1.75rem}}';
2444
2486
  var It = { exports: {} }, ve = {};
2445
2487
  /**
2446
2488
  * @license React
@@ -2452,33 +2494,33 @@ var It = { exports: {} }, ve = {};
2452
2494
  * LICENSE file in the root directory of this source tree.
2453
2495
  */
2454
2496
  var Qe;
2455
- function Br() {
2497
+ function qr() {
2456
2498
  if (Qe) return ve;
2457
2499
  Qe = 1;
2458
- var e = xe, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
2459
- function i(d, s, g) {
2460
- var c, f = {}, p = null, M = null;
2461
- g !== void 0 && (p = "" + g), s.key !== void 0 && (p = "" + s.key), s.ref !== void 0 && (M = s.ref);
2462
- for (c in s) o.call(s, c) && !l.hasOwnProperty(c) && (f[c] = s[c]);
2463
- if (d && d.defaultProps) for (c in s = d.defaultProps, s) f[c] === void 0 && (f[c] = s[c]);
2464
- return { $$typeof: r, type: d, key: p, ref: M, props: f, _owner: a.current };
2500
+ var e = we, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
2501
+ function l(c, a, f) {
2502
+ var d, h = {}, g = null, z = null;
2503
+ f !== void 0 && (g = "" + f), a.key !== void 0 && (g = "" + a.key), a.ref !== void 0 && (z = a.ref);
2504
+ for (d in a) o.call(a, d) && !s.hasOwnProperty(d) && (h[d] = a[d]);
2505
+ if (c && c.defaultProps) for (d in a = c.defaultProps, a) h[d] === void 0 && (h[d] = a[d]);
2506
+ return { $$typeof: r, type: c, key: g, ref: z, props: h, _owner: i.current };
2465
2507
  }
2466
- return ve.Fragment = n, ve.jsx = i, ve.jsxs = i, ve;
2508
+ return ve.Fragment = n, ve.jsx = l, ve.jsxs = l, ve;
2467
2509
  }
2468
- It.exports = Br();
2469
- var be = It.exports, Tt, et = At;
2510
+ It.exports = qr();
2511
+ var be = It.exports, Tt, et = Pt;
2470
2512
  Tt = et.createRoot, et.hydrateRoot;
2471
- var qr = Object.defineProperty, Kr = (e, r, n) => r in e ? qr(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, je = (e, r, n) => (Kr(e, typeof r != "symbol" ? r + "" : r, n), n);
2472
- const Jr = {
2513
+ var Kr = Object.defineProperty, Jr = (e, r, n) => r in e ? Kr(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, je = (e, r, n) => (Jr(e, typeof r != "symbol" ? r + "" : r, n), n);
2514
+ const Qr = {
2473
2515
  stringify: (e) => e,
2474
2516
  parse: (e) => e
2475
- }, Qr = {
2517
+ }, en = {
2476
2518
  stringify: (e) => `${e}`,
2477
2519
  parse: (e) => parseFloat(e)
2478
- }, en = {
2520
+ }, tn = {
2479
2521
  stringify: (e) => e ? "true" : "false",
2480
2522
  parse: (e) => /^[ty1-9]/i.test(e)
2481
- }, tn = {
2523
+ }, rn = {
2482
2524
  stringify: (e) => e.name,
2483
2525
  parse: (e, r, n) => {
2484
2526
  const o = (() => {
@@ -2489,44 +2531,44 @@ const Jr = {
2489
2531
  })();
2490
2532
  return typeof o == "function" ? o.bind(n) : void 0;
2491
2533
  }
2492
- }, rn = {
2534
+ }, nn = {
2493
2535
  stringify: (e) => JSON.stringify(e),
2494
2536
  parse: (e) => JSON.parse(e)
2495
- }, Ae = {
2496
- string: Jr,
2497
- number: Qr,
2498
- boolean: en,
2499
- function: tn,
2500
- json: rn
2537
+ }, Pe = {
2538
+ string: Qr,
2539
+ number: en,
2540
+ boolean: tn,
2541
+ function: rn,
2542
+ json: nn
2501
2543
  };
2502
- function nn(e) {
2544
+ function on(e) {
2503
2545
  return e.replace(
2504
2546
  /([a-z0-9])([A-Z])/g,
2505
2547
  (r, n, o) => `${n}-${o.toLowerCase()}`
2506
2548
  );
2507
2549
  }
2508
2550
  const ke = Symbol.for("r2wc.render"), Ce = Symbol.for("r2wc.connected"), se = Symbol.for("r2wc.context"), J = Symbol.for("r2wc.props");
2509
- function on(e, r, n) {
2510
- var o, a, l;
2551
+ function sn(e, r, n) {
2552
+ var o, i, s;
2511
2553
  r.props || (r.props = e.propTypes ? Object.keys(e.propTypes) : []);
2512
- const i = Array.isArray(r.props) ? r.props.slice() : Object.keys(r.props), d = {}, s = {}, g = {};
2513
- for (const f of i) {
2514
- d[f] = Array.isArray(r.props) ? "string" : r.props[f];
2515
- const p = nn(f);
2516
- s[f] = p, g[p] = f;
2554
+ const l = Array.isArray(r.props) ? r.props.slice() : Object.keys(r.props), c = {}, a = {}, f = {};
2555
+ for (const h of l) {
2556
+ c[h] = Array.isArray(r.props) ? "string" : r.props[h];
2557
+ const g = on(h);
2558
+ a[h] = g, f[g] = h;
2517
2559
  }
2518
- class c extends HTMLElement {
2560
+ class d extends HTMLElement {
2519
2561
  constructor() {
2520
- super(), je(this, o, !0), je(this, a), je(this, l, {}), je(this, "container"), r.shadow ? this.container = this.attachShadow({
2562
+ super(), je(this, o, !0), je(this, i), je(this, s, {}), je(this, "container"), r.shadow ? this.container = this.attachShadow({
2521
2563
  mode: r.shadow
2522
2564
  }) : this.container = this, this[J].container = this.container;
2523
- for (const p of i) {
2524
- const M = s[p], u = this.getAttribute(M), h = d[p], j = h ? Ae[h] : null;
2525
- j != null && j.parse && u && (this[J][p] = j.parse(u, M, this));
2565
+ for (const g of l) {
2566
+ const z = a[g], u = this.getAttribute(z), p = c[g], j = p ? Pe[p] : null;
2567
+ j != null && j.parse && u && (this[J][g] = j.parse(u, z, this));
2526
2568
  }
2527
2569
  }
2528
2570
  static get observedAttributes() {
2529
- return Object.keys(g);
2571
+ return Object.keys(f);
2530
2572
  }
2531
2573
  connectedCallback() {
2532
2574
  this[Ce] = !0, this[ke]();
@@ -2534,11 +2576,11 @@ function on(e, r, n) {
2534
2576
  disconnectedCallback() {
2535
2577
  this[Ce] = !1, this[se] && n.unmount(this[se]), delete this[se];
2536
2578
  }
2537
- attributeChangedCallback(p, M, u) {
2538
- const h = g[p], j = d[h], N = j ? Ae[j] : null;
2539
- h in d && N != null && N.parse && u && (this[J][h] = N.parse(u, p, this), this[ke]());
2579
+ attributeChangedCallback(g, z, u) {
2580
+ const p = f[g], j = c[p], C = j ? Pe[j] : null;
2581
+ p in c && C != null && C.parse && u && (this[J][p] = C.parse(u, g, this), this[ke]());
2540
2582
  }
2541
- [(o = Ce, a = se, l = J, ke)]() {
2583
+ [(o = Ce, i = se, s = J, ke)]() {
2542
2584
  this[Ce] && (this[se] ? n.update(this[se], this[J]) : this[se] = n.mount(
2543
2585
  this.container,
2544
2586
  e,
@@ -2546,45 +2588,44 @@ function on(e, r, n) {
2546
2588
  ));
2547
2589
  }
2548
2590
  }
2549
- for (const f of i) {
2550
- const p = s[f], M = d[f];
2551
- Object.defineProperty(c.prototype, f, {
2591
+ for (const h of l) {
2592
+ const g = a[h], z = c[h];
2593
+ Object.defineProperty(d.prototype, h, {
2552
2594
  enumerable: !0,
2553
2595
  configurable: !0,
2554
2596
  get() {
2555
- return this[J][f];
2597
+ return this[J][h];
2556
2598
  },
2557
2599
  set(u) {
2558
- this[J][f] = u;
2559
- const h = M ? Ae[M] : null;
2560
- if (h != null && h.stringify) {
2561
- const j = h.stringify(u, p, this);
2562
- this.getAttribute(p) !== j && this.setAttribute(p, j);
2600
+ this[J][h] = u;
2601
+ const p = z ? Pe[z] : null;
2602
+ if (p != null && p.stringify) {
2603
+ const j = p.stringify(u, g, this);
2604
+ this.getAttribute(g) !== j && this.setAttribute(g, j);
2563
2605
  } else
2564
2606
  this[ke]();
2565
2607
  }
2566
2608
  });
2567
2609
  }
2568
- return c;
2610
+ return d;
2569
2611
  }
2570
- function sn(e, r, n) {
2571
- const o = Tt(e), a = xe.createElement(r, n);
2572
- return o.render(a), {
2612
+ function an(e, r, n) {
2613
+ const o = Tt(e), i = we.createElement(r, n);
2614
+ return o.render(i), {
2573
2615
  root: o,
2574
2616
  ReactComponent: r
2575
2617
  };
2576
2618
  }
2577
- function an({ root: e, ReactComponent: r }, n) {
2578
- const o = xe.createElement(r, n);
2619
+ function ln({ root: e, ReactComponent: r }, n) {
2620
+ const o = we.createElement(r, n);
2579
2621
  e.render(o);
2580
2622
  }
2581
- function ln({ root: e }) {
2623
+ function cn({ root: e }) {
2582
2624
  e.unmount();
2583
2625
  }
2584
2626
  function Vt(e, r = {}) {
2585
- return on(e, r, { mount: sn, update: an, unmount: ln });
2627
+ return sn(e, r, { mount: an, update: ln, unmount: cn });
2586
2628
  }
2587
- const cn = '*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}#cc-webplayer-wrapper{--background: var(--cc-webplayer-background, 0 0% 100%);--foreground: var(--cc-webplayer-foreground, 240 10% 3.9%);--primary: var(--cc-webplayer-primary, 216 100% 52%);--primary-foreground: var( --cc-webplayer-primary-foreground, var(--background) );--neutral: var(--cc-webplayer-neutral, 0 0% 39%);--neutral-foreground: var( --cc-webplayer-neutral-foreground, var(--foreground) );--radius-ui: var(--cc-webplayer-radius-ui, 1rem);--radius-carrousel: var(--cc-webplayer-radius-carrousel, 0);--radius-gallery: var(--cc-webplayer-radius-gallery, 0)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-x-1{left:.25rem;right:.25rem}.inset-y-1{top:.25rem;bottom:.25rem}.-bottom-0\\.5{bottom:-.125rem}.-left-0\\.5{left:-.125rem}.-right-0\\.5{right:-.125rem}.-top-0\\.5{top:-.125rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-1{width:.25rem;height:.25rem}.size-12{width:3rem;height:3rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-1{height:.25rem}.h-10{height:2.5rem}.h-3\\/4{height:75%}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3\\/5{width:60%}.w-8{width:2rem}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-40{max-width:10rem}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -.375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-lg{border-radius:calc(var(--radius-ui) + .25rem)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + .125rem)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - .125rem)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pt-8{padding-top:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-opacity:after{content:var(--tw-content);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:.5rem;right:.5rem}.small\\:inset-y-2{top:.5rem;bottom:.5rem}.small\\:bottom-2{bottom:.5rem}.small\\:left-2{left:.5rem}.small\\:right-2{right:.5rem}.small\\:right-4{right:1rem}.small\\:top-2{top:.5rem}.small\\:top-4{top:1rem}.small\\:my-4{margin-top:1rem;margin-bottom:1rem}.small\\:hidden{display:none}.small\\:h-12{height:3rem}.small\\:max-w-48{max-width:12rem}.small\\:gap-2{gap:.5rem}.small\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.small\\:gap-y-2{row-gap:.5rem}.small\\:gap-y-4{row-gap:1rem}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.small\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.small\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1280px){.large\\:h-20{height:5rem}.large\\:h-3\\/5{height:60%}.large\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}}';
2588
2629
  function dn(e) {
2589
2630
  return e.replace(
2590
2631
  /([a-z0-9])([A-Z])/g,
@@ -2598,7 +2639,7 @@ function un(e) {
2598
2639
  }), r;
2599
2640
  }
2600
2641
  const mn = (e) => /* @__PURE__ */ be.jsxs(be.Fragment, { children: [
2601
- /* @__PURE__ */ be.jsx("style", { children: cn }),
2642
+ /* @__PURE__ */ be.jsx("style", { children: Br }),
2602
2643
  /* @__PURE__ */ be.jsx(Yr, { ...e })
2603
2644
  ] }), pn = Vt(mn, {
2604
2645
  shadow: "open",
@@ -2614,21 +2655,21 @@ const mn = (e) => /* @__PURE__ */ be.jsxs(be.Fragment, { children: [
2614
2655
  eventPrefix: "string",
2615
2656
  reverse360: "boolean"
2616
2657
  }
2617
- }), hn = (e) => un(e), fn = Vt(Gr, {
2658
+ }), hn = (e) => un(e), gn = Vt(Gr, {
2618
2659
  shadow: "closed",
2619
2660
  props: {
2620
2661
  name: "string",
2621
2662
  color: "string"
2622
2663
  }
2623
2664
  });
2624
- function gn() {
2625
- return !!customElements.get(Ze) && !!customElements.get(Fe);
2665
+ function fn() {
2666
+ return !!customElements.get(Ze) && !!customElements.get($e);
2626
2667
  }
2627
2668
  function vn() {
2628
- customElements.define(Ze, pn), customElements.define(Fe, fn);
2669
+ customElements.define(Ze, pn), customElements.define($e, gn);
2629
2670
  }
2630
2671
  function St() {
2631
- gn() || vn();
2672
+ fn() || vn();
2632
2673
  }
2633
2674
  St();
2634
2675
  const yn = ({
@@ -2636,51 +2677,51 @@ const yn = ({
2636
2677
  onCompositionLoaded: r,
2637
2678
  onCompositionLoadError: n,
2638
2679
  onExtendModeOn: o,
2639
- onExtendModeOff: a,
2640
- onHotspotsOn: l,
2641
- onHotspotsOff: i,
2642
- onGalleryOpen: d,
2643
- onGalleryClose: s,
2644
- ...g
2680
+ onExtendModeOff: i,
2681
+ onHotspotsOn: s,
2682
+ onHotspotsOff: l,
2683
+ onGalleryOpen: c,
2684
+ onGalleryClose: a,
2685
+ ...f
2645
2686
  }) => {
2646
- const c = hn(g);
2687
+ const d = hn(f);
2647
2688
  return A(() => {
2648
- const f = g.eventPrefix ?? mt, p = (u) => `${f}${u}`, M = /* @__PURE__ */ new Map([
2689
+ const h = f.eventPrefix ?? mt, g = (u) => `${h}${u}`, z = /* @__PURE__ */ new Map([
2649
2690
  [nt, e],
2650
2691
  [ot, r],
2651
2692
  [st, n],
2652
2693
  [at, o],
2653
- [it, a],
2654
- [lt, l],
2655
- [ct, i],
2656
- [dt, d],
2657
- [ut, s]
2694
+ [it, i],
2695
+ [lt, s],
2696
+ [ct, l],
2697
+ [dt, c],
2698
+ [ut, a]
2658
2699
  ]);
2659
- return M.forEach((u, h) => {
2700
+ return z.forEach((u, p) => {
2660
2701
  if (u) {
2661
- const j = p(h);
2702
+ const j = g(p);
2662
2703
  document.addEventListener(j, u);
2663
2704
  }
2664
2705
  }), () => {
2665
- M.forEach((u, h) => {
2706
+ z.forEach((u, p) => {
2666
2707
  if (u) {
2667
- const j = p(h);
2708
+ const j = g(p);
2668
2709
  document.removeEventListener(j, u);
2669
2710
  }
2670
2711
  });
2671
2712
  };
2672
2713
  }, [
2673
- g.eventPrefix,
2714
+ f.eventPrefix,
2674
2715
  e,
2675
2716
  r,
2676
2717
  n,
2677
2718
  o,
2678
- a,
2679
- l,
2680
2719
  i,
2681
- d,
2682
- s
2683
- ]), /* @__PURE__ */ rt.jsx("cc-webplayer", { ...c });
2720
+ s,
2721
+ l,
2722
+ c,
2723
+ a
2724
+ ]), /* @__PURE__ */ rt.jsx("cc-webplayer", { ...d });
2684
2725
  };
2685
2726
  St();
2686
2727
  const bn = ({ name: e, color: r }) => /* @__PURE__ */ rt.jsx("cc-webplayer-icon", { name: e, color: r });
@@ -2695,7 +2736,7 @@ export {
2695
2736
  dt as EVENT_GALLERY_OPEN,
2696
2737
  ct as EVENT_HOTSPOTS_OFF,
2697
2738
  lt as EVENT_HOTSPOTS_ON,
2698
- Fe as WEB_PLAYER_ICON_WC_TAG,
2739
+ $e as WEB_PLAYER_ICON_WC_TAG,
2699
2740
  Ze as WEB_PLAYER_WC_TAG,
2700
2741
  yn as WebPlayer,
2701
2742
  bn as WebPlayerIcon