@car-cutter/react-webplayer 3.2.2 → 3.2.4

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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as a, jsxs as me, Fragment as nt } from "react/jsx-runtime";
2
- import { useState as Ie, useEffect as ve, createContext as Lt, useContext as Et, useMemo as Ue, useCallback as G, forwardRef as Br, useRef as Le, Fragment as Wr } from "react";
3
- const At = "cc-webplayer", Qt = "cc-webplayer-custom-media", er = "cc-webplayer-icon", tr = "composition-loading", rr = "composition-loaded", nr = "composition-load-error", or = "item-change", ar = "extend-mode-on", ir = "extend-mode-off", Pt = "hotspots-on", Nt = "hotspots-off", sr = "gallery-open", lr = "gallery-close", Xr = "analytics-load", Zr = "analytics-display", Vr = "analytics-interaction", Yr = "analytics-error", Gr = !1, jr = !1, qr = !1, Kr = "quality", $r = 0, Jr = 1 / 0, Qr = 1, en = !1, tn = !1, rn = "*", nn = "full_screen", cr = "cc-webplayer:", on = !0, an = !1, Dt = "ew-resize", sn = !1, ur = 1, dr = "cc-analytics:", ln = "", cn = "", un = !1, dn = !1, pn = !1;
2
+ import { useState as Ie, useEffect as ve, createContext as Et, useContext as Mt, useMemo as Ue, useCallback as G, forwardRef as Br, useRef as Le, Fragment as Wr } from "react";
3
+ const At = "cc-webplayer", Qt = "cc-webplayer-custom-media", er = "cc-webplayer-icon", tr = "composition-loading", rr = "composition-loaded", nr = "composition-load-error", or = "item-change", ar = "extend-mode-on", ir = "extend-mode-off", Pt = "hotspots-on", Nt = "hotspots-off", sr = "gallery-open", lr = "gallery-close", Xr = "analytics-load", Zr = "analytics-display", Vr = "analytics-interaction", Yr = "analytics-error", Gr = !1, jr = !1, qr = !1, Kr = "quality", $r = 0, Jr = 1 / 0, Qr = 1, en = !1, tn = !1, rn = "*", nn = "full_screen", cr = "cc-webplayer:", on = !0, an = !1, Dt = "ew-resize", sn = !1, ur = 1, dr = "cc-analytics:", ln = "", cn = "", un = !1, dn = !1, hn = !1;
4
4
  function Ft() {
5
5
  if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
6
6
  return crypto.randomUUID();
@@ -17,14 +17,14 @@ function Ft() {
17
17
  return (t === "x" ? o : o & 3 | 8).toString(16);
18
18
  });
19
19
  }
20
- function h2(t, o) {
20
+ function p2(t, o) {
21
21
  return `https://cdn.car-cutter.com/gallery/${t}/${o}/composition_v3.json`;
22
22
  }
23
23
  function fn(t, o) {
24
24
  const i = t.split("/"), d = i.pop();
25
25
  return [i.join("/"), o, d].join("/");
26
26
  }
27
- function hn() {
27
+ function pn() {
28
28
  const t = "car-cutter-webplayer-browser-id", o = typeof window < "u" ? window.localStorage.getItem(t) : null;
29
29
  if (o) return o;
30
30
  const i = Ft();
@@ -48,15 +48,15 @@ async function vn(t) {
48
48
  throw new Error(`Failed to fetch composition: ${o.statusText}`);
49
49
  return await o.json();
50
50
  }
51
- const St = /* @__PURE__ */ new Map(), wn = (t) => {
51
+ const mt = /* @__PURE__ */ new Map(), wn = (t) => {
52
52
  const [o, i] = Ie({
53
53
  status: "pending",
54
54
  isSuccess: !1
55
55
  });
56
56
  return ve(() => {
57
- const d = (c) => i({ status: "success", data: c, isSuccess: !0 }), l = St.get(t);
58
- if (l && !(l instanceof Promise)) {
59
- d(l);
57
+ const d = (u) => i({ status: "success", data: u, isSuccess: !0 }), c = mt.get(t);
58
+ if (c && !(c instanceof Promise)) {
59
+ d(c);
60
60
  return;
61
61
  }
62
62
  i({
@@ -64,32 +64,42 @@ const St = /* @__PURE__ */ new Map(), wn = (t) => {
64
64
  isSuccess: !1
65
65
  }), (async function() {
66
66
  try {
67
- let c;
68
- if (l)
69
- c = await l;
67
+ let u;
68
+ if (c)
69
+ try {
70
+ u = await c;
71
+ } catch (v) {
72
+ throw mt.delete(t), v;
73
+ }
70
74
  else {
71
75
  const v = vn(t);
72
- St.set(t, v), c = await v, St.set(t, c);
76
+ mt.set(t, v);
77
+ try {
78
+ u = await v;
79
+ } catch (e) {
80
+ throw mt.delete(t), e;
81
+ }
82
+ mt.set(t, u);
73
83
  }
74
- d(c);
75
- } catch (c) {
84
+ d(u);
85
+ } catch (u) {
76
86
  i({
77
87
  status: "error",
78
88
  isSuccess: !1,
79
- error: c
89
+ error: u
80
90
  });
81
91
  }
82
92
  })();
83
93
  }, [t]), o;
84
- }, pr = Lt(null), je = () => {
85
- const t = Et(pr);
94
+ }, hr = Et(null), je = () => {
95
+ const t = Mt(hr);
86
96
  if (!t)
87
97
  throw new Error(
88
98
  "useGlobalContext must be used within a GlobalContextProvider"
89
99
  );
90
100
  return t;
91
- }, xn = ({ children: t, ...o }) => /* @__PURE__ */ a(pr.Provider, { value: o, children: t }), fr = Lt(null), lt = () => {
92
- const t = Et(fr);
101
+ }, xn = ({ children: t, ...o }) => /* @__PURE__ */ a(hr.Provider, { value: o, children: t }), fr = Et(null), lt = () => {
102
+ const t = Mt(fr);
93
103
  if (!t)
94
104
  throw new Error(
95
105
  "useCompositionContext must be used within a CompositionContextProvider"
@@ -99,8 +109,8 @@ const St = /* @__PURE__ */ new Map(), wn = (t) => {
99
109
  const {
100
110
  aspectRatio: i,
101
111
  categories: d,
102
- imageHdWidth: l,
103
- imageSubWidths: c
112
+ imageHdWidth: c,
113
+ imageSubWidths: u
104
114
  } = t, { minMediaWidth: v, maxMediaWidth: e, categoriesFilter: E } = je(), k = Ue(() => {
105
115
  if (E === "*")
106
116
  return d;
@@ -113,14 +123,14 @@ const St = /* @__PURE__ */ new Map(), wn = (t) => {
113
123
  [k]
114
124
  ), L = {
115
125
  aspectRatio: i.replace(":", " / ")
116
- }, p = Ue(() => {
117
- const n = c.concat(l), b = n.sort((_, w) => _ - w), P = b.filter(
126
+ }, h = Ue(() => {
127
+ const n = u.concat(c), b = n.sort((_, w) => _ - w), P = b.filter(
118
128
  (_) => _ >= v && _ <= e
119
129
  );
120
130
  if (P.length === 0) {
121
131
  const _ = (v + e) / 2, w = n.reduce(
122
132
  (C, x) => Math.abs(x - _) < Math.abs(C - _) ? x : C,
123
- l
133
+ c
124
134
  );
125
135
  return console.warn(
126
136
  `None of available media widths (${b.join("|")}) match the given constraints (${v > 0 ? `${v} ≤ ` : ""}width${e < 1 / 0 ? ` ≤ ${e}` : ""}).`,
@@ -128,7 +138,7 @@ const St = /* @__PURE__ */ new Map(), wn = (t) => {
128
138
  ), [w];
129
139
  }
130
140
  return P;
131
- }, [c, l, v, e]);
141
+ }, [u, c, v, e]);
132
142
  return /* @__PURE__ */ a(
133
143
  fr.Provider,
134
144
  {
@@ -137,34 +147,34 @@ const St = /* @__PURE__ */ new Map(), wn = (t) => {
137
147
  categories: k,
138
148
  items: N,
139
149
  aspectRatioStyle: L,
140
- usedMediaWidths: p
150
+ usedMediaWidths: h
141
151
  },
142
152
  children: o
143
153
  }
144
154
  );
145
- }, hr = 500, dt = 0.75, st = 1 + dt * 2, mr = () => {
155
+ }, pr = 500, dt = 0.75, st = 1 + dt * 2, mr = () => {
146
156
  const { isFullScreen: t, maxItemsShown: o, integration: i } = je();
147
157
  return { effectiveMaxItemsShown: i && t ? ur : o };
148
158
  };
149
159
  function tt(t, o, i) {
150
160
  return Math.min(Math.max(t, o), i);
151
161
  }
152
- const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
162
+ const Lt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, c, u = !1) => {
153
163
  const v = tt(t, o, i);
154
- if (v === (c ? i : o)) return d;
155
- if (v === (c ? o : i)) return 1;
156
- const e = (v - o) / (i - o), k = 1 + (c ? e : 1 - e) * (d - 1), L = 1 + Math.round((k - 1) / l) * l;
164
+ if (v === (u ? i : o)) return d;
165
+ if (v === (u ? o : i)) return 1;
166
+ const e = (v - o) / (i - o), k = 1 + (u ? e : 1 - e) * (d - 1), L = 1 + Math.round((k - 1) / c) * c;
157
167
  return tt(L, 1, d);
158
168
  }, Cn = (t, o) => {
159
169
  if (o.includes(t))
160
170
  return t;
161
171
  let i = o[0], d = Math.abs(t - i);
162
- for (let l = 1; l < o.length; l++) {
163
- const c = Math.abs(t - o[l]);
164
- c < d && (d = c, i = o[l]);
172
+ for (let c = 1; c < o.length; c++) {
173
+ const u = Math.abs(t - o[c]);
174
+ u < d && (d = u, i = o[c]);
165
175
  }
166
176
  return i;
167
- }, gr = Lt(null), Ot = () => Et(gr), gt = () => {
177
+ }, gr = Et(null), Ot = () => Mt(gr), vt = () => {
168
178
  const t = Ot();
169
179
  if (!t)
170
180
  throw new Error(
@@ -185,21 +195,21 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
185
195
  console.warn("Icon element is missing a name attribute");
186
196
  continue;
187
197
  }
188
- const x = w.innerHTML, h = x ? /* @__PURE__ */ a(
198
+ const x = w.innerHTML, p = x ? /* @__PURE__ */ a(
189
199
  "div",
190
200
  {
191
201
  className: qt,
192
202
  dangerouslySetInnerHTML: { __html: x }
193
203
  }
194
204
  ) : void 0;
195
- if (!h) {
205
+ if (!p) {
196
206
  console.warn(`Icon "${C}" customization is empty.`);
197
207
  continue;
198
208
  }
199
- _.set(C, { Icon: h });
209
+ _.set(C, { Icon: p });
200
210
  }
201
211
  return _;
202
- }, []), [l, c] = Ie(
212
+ }, []), [c, u] = Ie(
203
213
  () => {
204
214
  const b = i();
205
215
  return b ? d(b) : /* @__PURE__ */ new Map();
@@ -210,7 +220,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
210
220
  if (!b)
211
221
  return;
212
222
  const P = new MutationObserver(() => {
213
- c(d(b));
223
+ u(d(b));
214
224
  });
215
225
  return P.observe(b, {
216
226
  childList: !0,
@@ -218,11 +228,11 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
218
228
  }), () => P.disconnect();
219
229
  }, [d, i]);
220
230
  const v = G(
221
- (b) => l.get(b),
222
- [l]
231
+ (b) => c.get(b),
232
+ [c]
223
233
  ), e = G(
224
234
  (b, P) => {
225
- c((_) => {
235
+ u((_) => {
226
236
  const { Icon: w, ...C } = P;
227
237
  return new Map(
228
238
  _.set(b, {
@@ -234,7 +244,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
234
244
  },
235
245
  []
236
246
  ), E = G((b) => {
237
- c((P) => (P.delete(b), new Map(P)));
247
+ u((P) => (P.delete(b), new Map(P)));
238
248
  }, []), k = G((b) => {
239
249
  const P = b.querySelectorAll(
240
250
  Qt
@@ -250,7 +260,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
250
260
  console.warn("Custom media element is missing the 'index' attribute");
251
261
  continue;
252
262
  }
253
- const h = w.getAttribute("thumbnail-src") ?? void 0, y = JSON.stringify({ index: x, thumbnailSrc: h });
263
+ const p = w.getAttribute("thumbnail-src") ?? void 0, y = JSON.stringify({ index: x, thumbnailSrc: p });
254
264
  _.push({
255
265
  id: y,
256
266
  Media: /* @__PURE__ */ a(
@@ -261,7 +271,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
261
271
  }
262
272
  ),
263
273
  index: x,
264
- thumbnailSrc: h
274
+ thumbnailSrc: p
265
275
  });
266
276
  }
267
277
  return _;
@@ -281,7 +291,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
281
291
  subtree: !0
282
292
  }), () => P.disconnect();
283
293
  }, [k, i]);
284
- const p = G((b) => {
294
+ const h = G((b) => {
285
295
  const { Media: P, ..._ } = b, w = /* @__PURE__ */ a("div", { className: Kt, children: P }), C = JSON.stringify(_);
286
296
  return L((x) => [
287
297
  ...x,
@@ -304,14 +314,14 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
304
314
  registerIconConfig: e,
305
315
  unregisterIconConfig: E,
306
316
  customMediaList: N,
307
- registerCustomMedia: p,
317
+ registerCustomMedia: h,
308
318
  unregisterCustomMedia: n
309
319
  },
310
320
  children: t
311
321
  }
312
322
  );
313
- }, vr = Lt(null), Ke = () => {
314
- const t = Et(vr);
323
+ }, vr = Et(null), Ke = () => {
324
+ const t = Mt(vr);
315
325
  if (!t)
316
326
  throw new Error(
317
327
  "useControlsContext must be used within a ControlsContextProvider"
@@ -324,35 +334,35 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
324
334
  infiniteCarrousel: o,
325
335
  extendBehavior: i,
326
336
  integration: d,
327
- emitEvent: l,
328
- emitAnalyticsEvent: c,
337
+ emitEvent: c,
338
+ emitAnalyticsEvent: u,
329
339
  isFullScreen: v,
330
340
  requestFullscreen: e,
331
341
  exitFullscreen: E
332
- } = je(), { customMediaList: k } = gt(), { categories: N, items: L } = lt(), p = Ue(() => {
342
+ } = je(), { customMediaList: k } = vt(), { categories: N, items: L } = lt(), h = Ue(() => {
333
343
  const O = new Array(
334
344
  ...L
335
- ), se = k.slice().sort((A, he) => A.index < 0 && he.index < 0 ? he.index - A.index : A.index < 0 ? 1 : he.index < 0 ? -1 : A.index - he.index);
345
+ ), se = k.slice().sort((A, pe) => A.index < 0 && pe.index < 0 ? pe.index - A.index : A.index < 0 ? 1 : pe.index < 0 ? -1 : A.index - pe.index);
336
346
  for (const A of se) {
337
- let he = A.index;
338
- he < 0 && (he = O.length + he + 1), O.splice(he, 0, {
347
+ let pe = A.index;
348
+ pe < 0 && (pe = O.length + pe + 1), O.splice(pe, 0, {
339
349
  type: "custom",
340
350
  ...A
341
351
  });
342
352
  }
343
353
  return O;
344
- }, [L, k]), [n, b] = Ie(p.map(() => null));
354
+ }, [L, k]), [n, b] = Ie(h.map(() => null));
345
355
  ve(() => {
346
- b(p.map(() => null));
347
- }, [p]);
356
+ b(h.map(() => null));
357
+ }, [h]);
348
358
  const P = G(
349
359
  (O, se) => {
350
360
  b(
351
- (A) => A.map((he, _e) => _e === O ? se : he)
361
+ (A) => A.map((pe, _e) => _e === O ? se : pe)
352
362
  );
353
363
  },
354
364
  []
355
- ), [_, w] = Ie(0), [C, x] = Ie(null), h = C ?? _, y = p[h], T = n[h], [$, I] = Ie(
365
+ ), [_, w] = Ie(0), [C, x] = Ie(null), p = C ?? _, y = h[p], T = n[p], [$, I] = Ie(
356
366
  null
357
367
  ), X = !!$, V = G(() => I(null), []), { effectiveMaxItemsShown: z } = mr(), H = G(
358
368
  (O) => {
@@ -363,7 +373,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
363
373
  ), R = Ue(() => {
364
374
  let O;
365
375
  if (y.type === "custom") {
366
- const se = p.slice(0, h).reverse().find((A) => A.type !== "custom") ?? p.slice(h + 1).find((A) => A.type !== "custom");
376
+ const se = h.slice(0, p).reverse().find((A) => A.type !== "custom") ?? h.slice(p + 1).find((A) => A.type !== "custom");
367
377
  if (!se)
368
378
  throw new Error("No non-custom item found");
369
379
  O = se;
@@ -373,18 +383,18 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
373
383
  if (se.items.includes(O))
374
384
  return se.id;
375
385
  throw new Error("Current item not found in any category");
376
- }, [N, y, p, h]), q = Ue(
386
+ }, [N, y, h, p]), q = Ue(
377
387
  () => N.find(({ id: O }) => O === R)?.title ?? "Unnamed Category",
378
388
  [N, R]
379
- ), ce = Ue(() => p.length, [p]), U = G(
389
+ ), ce = Ue(() => h.length, [h]), U = G(
380
390
  (O) => {
381
- const se = N.find(({ id: he }) => he === O)?.items[0];
391
+ const se = N.find(({ id: pe }) => pe === O)?.items[0];
382
392
  if (se === void 0)
383
393
  throw new Error("Failed to find target category");
384
- const A = p.findIndex((he) => he === se);
394
+ const A = h.findIndex((pe) => pe === se);
385
395
  H(A);
386
396
  },
387
- [N, p, H]
397
+ [N, h, H]
388
398
  ), D = G(() => {
389
399
  if (X || C !== null)
390
400
  return;
@@ -393,10 +403,10 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
393
403
  x(O);
394
404
  else if (o) {
395
405
  I("first_to_last");
396
- const se = Math.ceil(z), A = p.length + (d && !o && z % 1 !== 0 ? 1 : 0), he = z > 1 ? Math.max(0, A - se) : p.length - 1;
397
- x(he);
406
+ const se = Math.ceil(z), A = h.length + (d && !o && z % 1 !== 0 ? 1 : 0), pe = z > 1 ? Math.max(0, A - se) : h.length - 1;
407
+ x(pe);
398
408
  }
399
- c({
409
+ u({
400
410
  type: "interaction",
401
411
  current: {
402
412
  category_id: R,
@@ -415,18 +425,18 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
415
425
  C,
416
426
  _,
417
427
  o,
418
- c,
428
+ u,
419
429
  R,
420
430
  q,
421
431
  y.type,
422
432
  z,
423
- p.length,
433
+ h.length,
424
434
  d
425
435
  ]), J = G(() => {
426
436
  if (X || C !== null)
427
437
  return;
428
- const O = _ + 1, se = Math.ceil(z), A = p.length + (d && !o && z % 1 !== 0 ? 1 : 0), he = z > 1 ? Math.max(0, A - se) : p.length - 1;
429
- O <= he ? x(O) : o && (I("last_to_first"), x(0)), c({
438
+ const O = _ + 1, se = Math.ceil(z), A = h.length + (d && !o && z % 1 !== 0 ? 1 : 0), pe = z > 1 ? Math.max(0, A - se) : h.length - 1;
439
+ O <= pe ? x(O) : o && (I("last_to_first"), x(0)), u({
430
440
  type: "interaction",
431
441
  current: {
432
442
  category_id: R,
@@ -445,20 +455,20 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
445
455
  C,
446
456
  _,
447
457
  z,
448
- p.length,
458
+ h.length,
449
459
  d,
450
460
  o,
451
- c,
461
+ u,
452
462
  R,
453
463
  q,
454
464
  y.type
455
465
  ]);
456
466
  ve(() => {
457
- l(or, {
458
- index: h,
467
+ c(or, {
468
+ index: p,
459
469
  item: y
460
470
  });
461
- }, [y, l, h]), ve(() => {
471
+ }, [y, c, p]), ve(() => {
462
472
  if (X || C !== null)
463
473
  return;
464
474
  const O = {
@@ -470,7 +480,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
470
480
  item_position: _,
471
481
  items_count: ce
472
482
  }
473
- }, se = setTimeout(() => c(O), 0);
483
+ }, se = setTimeout(() => u(O), 0);
474
484
  return () => clearTimeout(se);
475
485
  }, [
476
486
  R,
@@ -478,13 +488,13 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
478
488
  ce,
479
489
  y.type,
480
490
  _,
481
- c,
491
+ u,
482
492
  X,
483
493
  C
484
494
  ]);
485
495
  const S = Ue(() => {
486
496
  if (d && !v)
487
- return p.some((O) => {
497
+ return h.some((O) => {
488
498
  switch (O.type) {
489
499
  case "image":
490
500
  return !!O.hotspots?.length;
@@ -506,19 +516,19 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
506
516
  default:
507
517
  return !1;
508
518
  }
509
- }, [y, T, d, p, v]), [B, ie] = Ie(!0), [F, te] = Ie({}), K = Ue(() => d && v ? F[h] ?? !0 : B, [
519
+ }, [y, T, d, h, v]), [B, ie] = Ie(!0), [F, te] = Ie({}), K = Ue(() => d && v ? F[p] ?? !0 : B, [
510
520
  d,
511
521
  v,
512
522
  F,
513
- h,
523
+ p,
514
524
  B
515
525
  ]), ne = G(() => {
516
526
  if (d && v) {
517
- const se = !(F[h] ?? !0);
527
+ const se = !(F[p] ?? !0);
518
528
  te((A) => ({
519
529
  ...A,
520
- [h]: se
521
- })), l(se ? Pt : Nt), c({
530
+ [p]: se
531
+ })), c(se ? Pt : Nt), u({
522
532
  type: "interaction",
523
533
  current: {
524
534
  category_id: R,
@@ -534,7 +544,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
534
544
  });
535
545
  } else {
536
546
  const O = !B;
537
- ie(O), l(O ? Pt : Nt), c({
547
+ ie(O), c(O ? Pt : Nt), u({
538
548
  type: "interaction",
539
549
  current: {
540
550
  category_id: R,
@@ -553,9 +563,9 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
553
563
  d,
554
564
  v,
555
565
  F,
556
- h,
557
- l,
566
+ p,
558
567
  c,
568
+ u,
559
569
  R,
560
570
  q,
561
571
  y.type,
@@ -570,7 +580,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
570
580
  }
571
581
  }, [y, T]), [le, j] = Ie(!1), Te = G(() => {
572
582
  const O = !le;
573
- j(O), l(O ? sr : lr), c({
583
+ j(O), c(O ? sr : lr), u({
574
584
  type: "interaction",
575
585
  current: {
576
586
  category_id: R,
@@ -586,13 +596,13 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
586
596
  });
587
597
  }, [
588
598
  le,
589
- l,
590
599
  c,
600
+ u,
591
601
  R,
592
602
  q,
593
603
  y.type,
594
604
  _
595
- ]), [Ye, Ve] = Ie(null), we = G(() => Ve(null), []), u = !!Ye, f = Ue(() => {
605
+ ]), [Ye, Ve] = Ie(null), we = G(() => Ve(null), []), l = !!Ye, f = Ue(() => {
596
606
  switch (y.type) {
597
607
  case "image":
598
608
  return !0;
@@ -604,10 +614,10 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
604
614
  default:
605
615
  return !1;
606
616
  }
607
- }, [y.type, T]), [ee, oe] = Ie(1), Q = G(
617
+ }, [y.type, T]), [Q, oe] = Ie(1), ee = G(
608
618
  (O) => {
609
- const se = typeof O == "function" ? O(ee) : O;
610
- ee !== se && (oe(se), c({
619
+ const se = typeof O == "function" ? O(Q) : O;
620
+ Q !== se && (oe(se), u({
611
621
  type: "interaction",
612
622
  current: {
613
623
  category_id: R,
@@ -623,23 +633,23 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
623
633
  }));
624
634
  },
625
635
  [
626
- ee,
627
- c,
636
+ Q,
637
+ u,
628
638
  R,
629
639
  q,
630
640
  y.type,
631
641
  _
632
642
  ]
633
- ), g = ee !== 1, ae = ee < st, re = ee > 1, xe = G(
643
+ ), g = Q !== 1, ae = Q < st, re = Q > 1, xe = G(
634
644
  (O) => {
635
- Q((se) => tt(se + O, 1, st));
645
+ ee((se) => tt(se + O, 1, st));
636
646
  },
637
- [Q]
638
- ), pe = G(() => Q(1), [Q]), Ge = G(() => xe(dt), [xe]), He = G(() => xe(-dt), [xe]), ge = G(() => {
639
- pe(), we();
640
- }, [pe, we]), [ye, Ce] = Ie(!1), [Pe, Ne] = Ie(), [Be, We] = Ie(!1), ke = G(
647
+ [ee]
648
+ ), he = G(() => ee(1), [ee]), Ge = G(() => xe(dt), [xe]), He = G(() => xe(-dt), [xe]), ge = G(() => {
649
+ he(), we();
650
+ }, [he, we]), [ye, Ce] = Ie(!1), [Pe, Ne] = Ie(), [Be, We] = Ie(!1), ke = G(
641
651
  async (O) => {
642
- ge(), Ce(O), l(O ? ar : ir), c({
652
+ ge(), Ce(O), c(O ? ar : ir), u({
643
653
  type: "interaction",
644
654
  current: {
645
655
  category_id: R,
@@ -656,8 +666,8 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
656
666
  },
657
667
  [
658
668
  ge,
659
- l,
660
669
  c,
670
+ u,
661
671
  R,
662
672
  q,
663
673
  y.type,
@@ -667,11 +677,11 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
667
677
  clearTimeout(Pe);
668
678
  const O = setTimeout(() => {
669
679
  Ne(void 0);
670
- }, hr);
680
+ }, pr);
671
681
  Ne(O);
672
682
  }, [Pe]), Xe = G(async () => {
673
683
  const O = await e();
674
- return O && c({
684
+ return O && u({
675
685
  type: "interaction",
676
686
  current: {
677
687
  category_id: R,
@@ -687,14 +697,14 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
687
697
  }), O;
688
698
  }, [
689
699
  e,
690
- c,
700
+ u,
691
701
  R,
692
702
  q,
693
703
  y.type,
694
704
  _
695
705
  ]), De = G(async () => {
696
706
  const O = await E();
697
- return O && c({
707
+ return O && u({
698
708
  type: "interaction",
699
709
  current: {
700
710
  category_id: R,
@@ -710,7 +720,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
710
720
  }), O;
711
721
  }, [
712
722
  E,
713
- c,
723
+ u,
714
724
  R,
715
725
  q,
716
726
  y.type,
@@ -750,14 +760,14 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
750
760
  vr.Provider,
751
761
  {
752
762
  value: {
753
- items: p,
763
+ items: h,
754
764
  setItemInteraction: P,
755
- slidable: p.length > 1,
765
+ slidable: h.length > 1,
756
766
  carrouselItemIndex: _,
757
767
  setCarrouselItemIndex: w,
758
768
  itemIndexCommand: C,
759
769
  setItemIndexCommand: x,
760
- masterItemIndex: h,
770
+ masterItemIndex: p,
761
771
  specialCommand: $,
762
772
  isRunningSpecialCommand: X,
763
773
  finishSpecialCommand: V,
@@ -775,14 +785,14 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
775
785
  showGallery: le,
776
786
  toggleGallery: Te,
777
787
  shownDetails: Ye,
778
- isShowingDetails: u,
788
+ isShowingDetails: l,
779
789
  setShownDetails: Ve,
780
790
  resetShownDetails: we,
781
791
  showZoomControls: f,
782
- zoom: ee,
792
+ zoom: Q,
783
793
  isZooming: g,
784
- setZoom: Q,
785
- resetZoom: pe,
794
+ setZoom: ee,
795
+ resetZoom: he,
786
796
  canZoomIn: ae,
787
797
  zoomIn: Ge,
788
798
  canZoomOut: re,
@@ -866,7 +876,7 @@ function Sn({
866
876
  const i = new Array();
867
877
  return t && i.push(Tn(t)), o && i.push(yr(o)), i.join(" ");
868
878
  }
869
- function pt(t) {
879
+ function ht(t) {
870
880
  const [o, i] = _n(t);
871
881
  return Sn({ positionX: i, positionY: o });
872
882
  }
@@ -875,8 +885,8 @@ const qe = ({
875
885
  className: o,
876
886
  children: i
877
887
  }) => {
878
- const { getIconConfig: d } = gt(), c = d(t)?.Icon;
879
- return c ? o ? /* @__PURE__ */ a("div", { className: o, children: c }) : c : i;
888
+ const { getIconConfig: d } = vt(), u = d(t)?.Icon;
889
+ return u ? o ? /* @__PURE__ */ a("div", { className: o, children: u }) : u : i;
880
890
  }, Pn = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customizationKey: "UI_CLOSE", children: /* @__PURE__ */ a("svg", { className: t, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ a(
881
891
  "path",
882
892
  {
@@ -903,8 +913,8 @@ const qe = ({
903
913
  shape: o = "button",
904
914
  color: i = "primary",
905
915
  className: d,
906
- children: l,
907
- ...c
916
+ children: c,
917
+ ...u
908
918
  }) => {
909
919
  const v = Nn[t][i], e = Rn[o];
910
920
  return /* @__PURE__ */ a(
@@ -916,8 +926,8 @@ const qe = ({
916
926
  e,
917
927
  d
918
928
  ),
919
- ...c,
920
- children: l
929
+ ...u,
930
+ children: c
921
931
  }
922
932
  );
923
933
  }, Rt = (t) => /* @__PURE__ */ a(Qe, { color: "neutral", shape: "icon", ...t, children: /* @__PURE__ */ a(Pn, { className: "size-full" }) }), zn = "data:image/svg+xml,%3csvg%20width='84'%20height='44'%20viewBox='0%200%2084%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20shape-rendering='geometricPrecision'%3e%3crect%20width='84'%20height='44'%20rx='22'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.7657%2015.2278C28.0781%2015.5315%2028.0781%2016.024%2027.7657%2016.3277L21.9314%2022L27.7657%2027.6723C28.0781%2027.976%2028.0781%2028.4685%2027.7657%2028.7722C27.4533%2029.0759%2026.9467%2029.0759%2026.6343%2028.7722L20.2343%2022.55C19.9219%2022.2462%2019.9219%2021.7538%2020.2343%2021.45L26.6343%2015.2278C26.9467%2014.9241%2027.4533%2014.9241%2027.7657%2015.2278Z'%20fill='%230F0F0F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.2343%2015.2278C56.5467%2014.9241%2057.0533%2014.9241%2057.3657%2015.2278L63.7657%2021.45C64.0781%2021.7538%2064.0781%2022.2462%2063.7657%2022.55L57.3657%2028.7722C57.0533%2029.0759%2056.5467%2029.0759%2056.2343%2028.7722C55.9219%2028.4685%2055.9219%2027.976%2056.2343%2027.6723L62.0686%2022L56.2343%2016.3277C55.9219%2016.024%2055.9219%2015.5315%2056.2343%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/svg%3e", An = "data:image/svg+xml,%3csvg%20width='84'%20height='44'%20viewBox='0%200%2084%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20shape-rendering='geometricPrecision'%3e%3crect%20width='84'%20height='44'%20rx='22'%20fill='white'/%3e%3cpath%20d='M0%2022C0%209.84974%209.84974%200%2022%200H42V44H22C9.84974%2044%200%2034.1503%200%2022Z'%20fill='%23F5F5F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.7657%2015.2278C28.0781%2015.5315%2028.0781%2016.024%2027.7657%2016.3277L21.9314%2022L27.7657%2027.6723C28.0781%2027.976%2028.0781%2028.4685%2027.7657%2028.7722C27.4533%2029.0759%2026.9467%2029.0759%2026.6343%2028.7722L20.2343%2022.55C19.9219%2022.2462%2019.9219%2021.7538%2020.2343%2021.45L26.6343%2015.2278C26.9467%2014.9241%2027.4533%2014.9241%2027.7657%2015.2278Z'%20fill='%230F0F0F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.2343%2015.2278C56.5467%2014.9241%2057.0533%2014.9241%2057.3657%2015.2278L63.7657%2021.45C64.0781%2021.7538%2064.0781%2022.2462%2063.7657%2022.55L57.3657%2028.7722C57.0533%2029.0759%2056.5467%2029.0759%2056.2343%2028.7722C55.9219%2028.4685%2055.9219%2027.976%2056.2343%2027.6723L62.0686%2022L56.2343%2016.3277C55.9219%2016.024%2055.9219%2015.5315%2056.2343%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/svg%3e", Dn = "data:image/svg+xml,%3csvg%20width='78'%20height='78'%20viewBox='0%200%2078%2078'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.36035%2038.4241C1.36035%2017.9895%2017.9258%201.42407%2038.3604%201.42407C58.7949%201.42407%2075.3604%2017.9895%2075.3604%2038.4241C75.3604%2058.8586%2058.7949%2075.4241%2038.3604%2075.4241C17.9258%2075.4241%201.36035%2058.8586%201.36035%2038.4241Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M63.6101%2047.2044L66.7877%2048.587L66.5803%2049.0636L63.8703%2047.8845L63.181%2049.4687L62.7134%2049.2653L63.6101%2047.2044ZM61.5503%2054.7756C61.7117%2054.8903%2061.8699%2054.9725%2062.025%2055.022C62.1809%2055.0762%2062.3281%2055.0999%2062.4666%2055.093C62.6077%2055.0881%2062.7369%2055.0545%2062.8542%2054.9921C62.9696%2054.9324%2063.0674%2054.8461%2063.1478%2054.7331C63.2281%2054.6201%2063.2775%2054.4994%2063.2961%2054.3708C63.3154%2054.2469%2063.3045%2054.1197%2063.2636%2053.9893C63.2227%2053.859%2063.151%2053.7291%2063.0487%2053.5996C62.9491%2053.4721%2062.8186%2053.3509%2062.6572%2053.2361C62.4958%2053.1214%2062.3372%2053.0369%2062.1813%2052.9828C62.0262%2052.9332%2061.8791%2052.9095%2061.7398%2052.9117C61.6013%2052.9185%2061.4744%2052.9518%2061.359%2053.0115C61.2418%2053.0739%2061.143%2053.1616%2061.0626%2053.2745C60.9823%2053.3875%2060.9325%2053.506%2060.9132%2053.6299C60.8946%2053.7585%2060.9058%2053.888%2060.9468%2054.0183C60.9858%2054.1514%2061.0551%2054.2817%2061.1548%2054.4092C61.2571%2054.5387%2061.3889%2054.6608%2061.5503%2054.7756ZM61.2514%2055.213C61.0308%2055.0561%2060.8515%2054.884%2060.7134%2054.6967C60.5779%2054.5113%2060.4839%2054.3189%2060.4313%2054.1195C60.3795%2053.9247%2060.3713%2053.7285%2060.4065%2053.5308C60.4418%2053.3332%2060.5235%2053.1443%2060.6517%2052.9641C60.7779%2052.7866%2060.9272%2052.6477%2061.0997%2052.5476C61.2748%2052.4494%2061.4629%2052.3928%2061.6639%2052.3778C61.8649%2052.3629%2062.0752%2052.3889%2062.2948%2052.456C62.5151%2052.5276%2062.7356%2052.6419%2062.9561%2052.7987C63.1767%2052.9556%2063.3547%2053.1267%2063.4901%2053.3121C63.6282%2053.4994%2063.7232%2053.6905%2063.775%2053.8853C63.8276%2054.0847%2063.8363%2054.2832%2063.801%2054.4808C63.7657%2054.6785%2063.685%2054.8661%2063.5587%2055.0436C63.4306%2055.2238%2063.2789%2055.363%2063.1038%2055.4612C62.9314%2055.5613%2062.7446%2055.6188%2062.5436%2055.6338C62.3426%2055.6488%2062.1319%2055.6205%2061.9116%2055.5488C61.692%2055.4818%2061.4719%2055.3698%2061.2514%2055.213ZM58.2673%2059.1725C58.324%2059.2057%2058.3876%2059.2416%2058.4581%2059.2803C58.5286%2059.3189%2058.5991%2059.3575%2058.6696%2059.3961C58.7376%2059.437%2058.8012%2059.4729%2058.8604%2059.5039C58.9193%2059.5396%2058.9647%2059.5676%2058.9963%2059.5879C58.9793%2059.5544%2058.9561%2059.5064%2058.9265%2059.4442C58.8992%2059.3844%2058.8686%2059.3186%2058.8349%2059.2468C58.8033%2059.1774%2058.7708%2059.1045%2058.7373%2059.028C58.7013%2058.9538%2058.6709%2058.8856%2058.646%2058.8236L58.3207%2058.0501L57.5273%2058.7669L58.2673%2059.1725ZM56.3301%2058.1139L57.0977%2058.5279L58.1262%2057.5986L57.7883%2056.7963L58.1887%2056.4346L59.5863%2059.8421L59.1786%2060.2105L55.9187%2058.4857L56.3301%2058.1139ZM52.6993%2062.9259C52.7889%2063.0838%2052.8889%2063.2168%2052.9995%2063.3248C53.1117%2063.4357%2053.2363%2063.515%2053.3732%2063.5625C53.5073%2063.6117%2053.6536%2063.6255%2053.8121%2063.6039C53.9677%2063.584%2054.1346%2063.5235%2054.3126%2063.4226L54.6829%2063.2127L53.4719%2061.0766L53.1016%2061.2866C52.9236%2061.3875%2052.7861%2061.4996%2052.689%2061.6229C52.5891%2061.7478%2052.5258%2061.8804%2052.4992%2062.0208C52.4696%2062.1627%2052.4728%2062.3089%2052.5087%2062.4592C52.5463%2062.6124%2052.6098%2062.768%2052.6993%2062.9259ZM52.2385%2063.1872C52.0872%2062.9202%2051.998%2062.6691%2051.9709%2062.4341C51.941%2062.2006%2051.9585%2061.9839%2052.0235%2061.784C52.0901%2061.5869%2052.1961%2061.4092%2052.3415%2061.2508C52.4841%2061.0941%2052.6544%2060.9596%2052.8525%2060.8473L53.6751%2060.381L55.3842%2063.3956L54.5616%2063.8619C54.3606%2063.9758%2054.1549%2064.0546%2053.9443%2064.098C53.7309%2064.1432%2053.5231%2064.1414%2053.3211%2064.0929C53.1206%2064.0471%2052.928%2063.9515%2052.743%2063.806C52.5581%2063.6604%2052.3899%2063.4542%2052.2385%2063.1872ZM43.3091%2065.6047C43.2474%2065.2537%2043.3126%2064.9674%2043.5049%2064.7459C43.6977%2064.5277%2043.9956%2064.3831%2044.3987%2064.3122C44.5189%2064.291%2044.6415%2064.2829%2044.7663%2064.2877C44.8912%2064.2926%2045.0131%2064.3097%2045.1322%2064.339C45.2481%2064.3688%2045.3575%2064.4099%2045.4605%2064.4622C45.5641%2064.5177%2045.6529%2064.5841%2045.7268%2064.6616L45.3951%2065.0618C45.2677%2064.9468%2045.1234%2064.87%2044.9625%2064.8313C44.8021%2064.7958%2044.6439%2064.7918%2044.4879%2064.8193C44.2148%2064.8673%2044.0317%2064.9498%2043.9383%2065.0668C43.8423%2065.1875%2043.8097%2065.3357%2043.8406%2065.5112C43.8714%2065.6867%2043.9525%2065.8048%2044.0839%2065.8655C44.2157%2065.9294%2044.3711%2065.9457%2044.5498%2065.9142L44.8668%2065.8584L44.9543%2066.3558L44.6422%2066.4107C44.4829%2066.4387%2044.3707%2066.5053%2044.3054%2066.6107C44.2402%2066.716%2044.219%2066.8336%2044.2419%2066.9636C44.2505%2067.0124%2044.2694%2067.0627%2044.2986%2067.1145C44.3278%2067.1663%2044.3708%2067.2107%2044.4276%2067.2476C44.4843%2067.2846%2044.5575%2067.3102%2044.6472%2067.3246C44.7342%2067.3428%2044.8411%2067.3408%2044.9678%2067.3185C45.1043%2067.2944%2045.223%2067.2451%2045.3238%2067.1704C45.4213%2067.0963%2045.5084%2067.0005%2045.5849%2066.8832L46.0287%2067.1771C45.9087%2067.3523%2045.7695%2067.4941%2045.6109%2067.6024C45.4497%2067.7146%2045.2618%2067.7895%2045.0473%2067.8272C44.888%2067.8553%2044.7332%2067.8607%2044.5827%2067.8436C44.4328%2067.8298%2044.299%2067.793%2044.1813%2067.7333C44.0635%2067.6736%2043.9635%2067.5907%2043.8811%2067.4845C43.7994%2067.3816%2043.7453%2067.2554%2043.719%2067.1059C43.683%2066.9011%2043.6956%2066.7347%2043.7568%2066.6067C43.8148%2066.4792%2043.8966%2066.3726%2044.0022%2066.287C43.8317%2066.2701%2043.683%2066.2058%2043.5561%2066.0941C43.4292%2065.9824%2043.3469%2065.8192%2043.3091%2065.6047ZM38.1161%2066.0627C38.1101%2066.2706%2038.1749%2066.4243%2038.3107%2066.524C38.4464%2066.627%2038.6379%2066.6822%2038.8853%2066.6894C39.1394%2066.6968%2039.3404%2066.6514%2039.4886%2066.5534C39.6366%2066.4587%2039.7136%2066.309%2039.7196%2066.1045C39.7221%2066.0187%2039.7079%2065.9374%2039.6772%2065.8606C39.6464%2065.7838%2039.5989%2065.7147%2039.5346%2065.6534C39.467%2065.5953%2039.3842%2065.5466%2039.2863%2065.5075C39.1883%2065.4716%2039.0749%2065.4518%2038.9463%2065.448C38.6824%2065.4403%2038.4795%2065.4906%2038.3377%2065.5987C38.1958%2065.7101%2038.1219%2065.8648%2038.1161%2066.0627ZM37.5913%2066.0573C37.5968%2065.8693%2037.6363%2065.7037%2037.7098%2065.5606C37.7833%2065.4174%2037.8825%2065.2998%2038.0073%2065.2077C38.1322%2065.1156%2038.2778%2065.0472%2038.4442%2065.0025C38.6106%2064.9579%2038.7895%2064.9383%2038.9808%2064.9439C39.1622%2064.9492%2039.3314%2064.9789%2039.4883%2065.033C39.6451%2065.0904%2039.7813%2065.1769%2039.8968%2065.2925C40.009%2065.408%2040.0971%2065.5542%2040.1613%2065.7311C40.2222%2065.9078%2040.2491%2066.1183%2040.242%2066.3624C40.2376%2066.5142%2040.2181%2066.6721%2040.1836%2066.8362C40.1491%2067.0002%2040.0966%2067.1605%2040.026%2067.3169C39.9521%2067.4732%2039.8586%2067.6224%2039.7455%2067.7644C39.6291%2067.9063%2039.4901%2068.031%2039.3285%2068.1385C39.1668%2068.2461%2038.9795%2068.3314%2038.7663%2068.3945C38.5499%2068.4576%2038.3046%2068.49%2038.0305%2068.492L38.0448%2068.0021C38.4444%2067.9972%2038.7805%2067.9063%2039.0531%2067.7293C39.3224%2067.5523%2039.5185%2067.284%2039.6412%2066.9244C39.5164%2067.0165%2039.3857%2067.082%2039.2492%2067.1209C39.1093%2067.1631%2038.9337%2067.1811%2038.7226%2067.1749C38.5643%2067.1703%2038.4165%2067.1429%2038.2793%2067.0927C38.1387%2067.0457%2038.0169%2066.9761%2037.9139%2066.8839C37.811%2066.7918%2037.7301%2066.6772%2037.6714%2066.5401C37.6126%2066.403%2037.5859%2066.2421%2037.5913%2066.0573ZM32.327%2065.9829C32.2844%2066.1594%2032.2608%2066.3269%2032.2565%2066.4854C32.2481%2066.6463%2032.264%2066.7911%2032.3042%2066.9197C32.3413%2067.0475%2032.4049%2067.1562%2032.4953%2067.246C32.5824%2067.335%2032.6998%2067.3973%2032.8473%2067.433C32.9949%2067.4687%2033.1278%2067.4668%2033.2459%2067.4275C33.3633%2067.3914%2033.4693%2067.3253%2033.5638%2067.2293C33.6543%2067.1358%2033.7326%2067.0155%2033.7987%2066.8685C33.8641%2066.7247%2033.9181%2066.5646%2033.9607%2066.3882C34.0034%2066.2117%2034.0289%2066.043%2034.0373%2065.8821C34.0416%2065.7235%2034.0253%2065.5804%2033.9883%2065.4526C33.9481%2065.324%2033.8844%2065.2153%2033.7973%2065.1263C33.7069%2065.0365%2033.588%2064.9738%2033.4404%2064.9381C33.2928%2064.9024%2033.1604%2064.9027%2033.043%2064.9388C32.9248%2064.9781%2032.8205%2065.0446%2032.7299%2065.1381C32.6354%2065.2341%2032.5555%2065.354%2032.4902%2065.4978C32.4241%2065.6448%2032.3697%2065.8065%2032.327%2065.9829ZM31.8146%2065.8692C31.8767%2065.6126%2031.9626%2065.3838%2032.0723%2065.1828C32.1812%2064.9851%2032.3105%2064.8228%2032.46%2064.696C32.6095%2064.5691%2032.7781%2064.4826%2032.9659%2064.4363C33.1496%2064.3924%2033.3506%2064.3969%2033.5687%2064.4496C33.7868%2064.5024%2033.9692%2064.5906%2034.1159%2064.7144C34.2585%2064.8405%2034.3678%2064.9926%2034.4436%2065.1705C34.5154%2065.3509%2034.5546%2065.5539%2034.5612%2065.7796C34.5645%2066.0045%2034.5352%2066.2452%2034.4731%2066.5019C34.4118%2066.7553%2034.3267%2066.9809%2034.2178%2067.1786C34.1081%2067.3796%2033.9785%2067.5435%2033.8289%2067.6703C33.6794%2067.7972%2033.5124%2067.8841%2033.3279%2067.9312C33.1401%2067.9774%2032.9372%2067.9742%2032.719%2067.9215C32.5009%2067.8687%2032.3205%2067.7793%2032.1778%2067.6531C32.0312%2067.5293%2031.922%2067.3773%2031.8501%2067.1969C31.7743%2067.019%2031.7351%2066.816%2031.7325%2066.5879C31.726%2066.3622%2031.7534%2066.1227%2031.8146%2065.8692ZM27.1159%2065.1708C27.0856%2065.2367%2027.0708%2065.3044%2027.0716%2065.3738C27.0681%2065.4448%2027.0784%2065.5131%2027.1027%2065.5788C27.1241%2065.6431%2027.1592%2065.701%2027.2082%2065.7525C27.2527%2065.8057%2027.3095%2065.8481%2027.3785%2065.8798C27.4475%2065.9115%2027.5181%2065.9276%2027.5905%2065.9282C27.6585%2065.9304%2027.7254%2065.9193%2027.791%2065.895C27.8537%2065.8693%2027.9123%2065.8327%2027.9668%2065.7851C28.017%2065.7391%2028.0572%2065.6832%2028.0875%2065.6172C28.1192%2065.5482%2028.1368%2065.4782%2028.1404%2065.4072C28.141%2065.3349%2028.1306%2065.2665%2028.1093%2065.2022C28.085%2065.1366%2028.0505%2065.0772%2028.0059%2065.024C27.957%2064.9725%2027.898%2064.9308%2027.829%2064.8992C27.7601%2064.8675%2027.6916%2064.8505%2027.6236%2064.8483C27.5512%2064.8478%2027.4837%2064.8603%2027.421%2064.886C27.3554%2064.9103%2027.2968%2064.947%2027.2452%2064.9959C27.1907%2065.0435%2027.1476%2065.1018%2027.1159%2065.1708ZM26.711%2064.9848C26.7689%2064.8588%2026.8458%2064.7507%2026.9418%2064.6604C27.0364%2064.5731%2027.1427%2064.5076%2027.2609%2064.4638C27.3791%2064.42%2027.5025%2064.4004%2027.6311%2064.4051C27.7597%2064.4097%2027.887%2064.4409%2028.013%2064.4988C28.139%2064.5567%2028.2456%2064.6329%2028.3329%2064.7275C28.4202%2064.8221%2028.4857%2064.9285%2028.5295%2065.0466C28.5702%2065.1634%2028.5898%2065.2868%2028.5882%2065.4168C28.5822%2065.5485%2028.5503%2065.6773%2028.4924%2065.8032C28.4359%2065.9262%2028.3604%2066.0313%2028.2658%2066.1186C28.1682%2066.2045%2028.0625%2066.2685%2027.9487%2066.3107C27.8305%2066.3544%2027.7071%2066.374%2027.5785%2066.3694C27.4485%2066.3678%2027.3205%2066.338%2027.1945%2066.2802C27.0686%2066.2223%2026.9627%2066.1446%2026.8767%2066.047C26.7894%2065.9524%2026.7239%2065.846%2026.6801%2065.7278C26.635%2065.6127%2026.6147%2065.4908%2026.6193%2065.3621C26.624%2065.2335%2026.6545%2065.1077%2026.711%2064.9848ZM21.0589%2058.281L21.4547%2058.6622L19.9168%2061.9925L19.5104%2061.601L20.5217%2059.5094C20.5441%2059.4623%2020.57%2059.4093%2020.5992%2059.3504C20.6262%2059.2939%2020.6543%2059.2385%2020.6836%2059.1843C20.7106%2059.1278%2020.7376%2059.0759%2020.7648%2059.0287C20.7872%2058.9816%2020.8064%2058.9451%2020.8222%2058.9191C20.7969%2058.9359%2020.7623%2058.9576%2020.7184%2058.9841C20.6699%2059.0107%2020.6191%2059.0396%2020.566%2059.0709C20.5105%2059.1%2020.4539%2059.1302%2020.3961%2059.1616C20.3384%2059.1931%2020.2864%2059.2209%2020.2401%2059.2451L18.1984%2060.3371L17.7991%2059.9524L21.0589%2058.281ZM18.1215%2055.3391L15.3278%2057.3893L15.0202%2056.9702L17.814%2054.92L18.1215%2055.3391ZM15.9886%2052.3007L12.8819%2053.836L11.8927%2051.8344L12.3454%2051.6107L13.1043%2053.1463L13.8721%2052.7668L13.4312%2051.8748L13.8839%2051.6511L14.3248%2052.5431L15.3056%2052.0584L14.5138%2050.4562L14.9665%2050.2325L15.9886%2052.3007ZM13.0654%2044.7145L13.187%2045.225L11.1353%2046.2685C11.108%2046.2818%2011.0745%2046.2982%2011.0351%2046.3178C10.9925%2046.3381%2010.9514%2046.3581%2010.912%2046.3777C10.8693%2046.398%2010.8299%2046.4176%2010.7936%2046.4364C10.7566%2046.452%2010.7289%2046.4637%2010.7104%2046.4715C10.7304%2046.4701%2010.7609%2046.4697%2010.8017%2046.4701C10.8417%2046.4674%2010.8854%2046.4654%2010.9326%2046.4644C10.9766%2046.464%2011.0223%2046.4634%2011.0695%2046.4623C11.1136%2046.462%2011.1508%2046.4616%2011.1812%2046.4611L13.4887%2046.4915L13.608%2046.9924L10.4011%2048.4841L10.2795%2047.9736L12.3116%2047.062C12.3366%2047.0527%2012.3675%2047.0402%2012.4045%2047.0246C12.4407%2047.0058%2012.479%2046.9882%2012.5192%2046.9719C12.5586%2046.9523%2012.5984%2046.9343%2012.6386%2046.918C12.6756%2046.9024%2012.7082%2046.8895%2012.7363%2046.8794C12.7067%2046.8831%2012.6718%2046.8863%2012.6318%2046.8891C12.5909%2046.8886%2012.5485%2046.8885%2012.5045%2046.8889C12.4605%2046.8892%2012.4184%2046.8907%2012.3784%2046.8935C12.3375%2046.893%2012.3035%2046.8926%2012.2763%2046.8923L10.0144%2046.8612L9.91119%2046.4278L11.9619%2045.3591C12.0038%2045.3355%2012.0614%2045.3066%2012.1346%2045.2722C12.2078%2045.2377%2012.2738%2045.2085%2012.3325%2045.1843C12.2652%2045.1867%2012.1915%2045.1907%2012.1114%2045.1962C12.0281%2045.2025%2011.9648%2045.2074%2011.9215%2045.2109L9.64731%2045.3202L9.53029%2044.829L13.0654%2044.7145ZM10.5555%2035.995C10.6605%2036.0061%2010.7553%2036.036%2010.8397%2036.0847C10.9246%2036.1302%2010.9978%2036.191%2011.0594%2036.2672C11.1182%2036.3397%2011.1624%2036.424%2011.1921%2036.5201C11.2188%2036.6125%2011.2269%2036.7096%2011.2161%2036.8113C11.2051%2036.9164%2011.1768%2037.0113%2011.1314%2037.0961C11.0826%2037.1806%2011.0218%2037.2538%2010.9489%2037.3158C10.8731%2037.3742%2010.7888%2037.4184%2010.696%2037.4485C10.6036%2037.4752%2010.5049%2037.4831%2010.3998%2037.472C10.2981%2037.4613%2010.2032%2037.433%2010.1151%2037.3872C10.0273%2037.3382%209.95408%2037.2773%209.89535%2037.2048C9.83369%2037.1286%209.78784%2037.0441%209.75779%2036.9513C9.72775%2036.8586%209.71826%2036.7597%209.72933%2036.6546C9.74005%2036.5529%209.76978%2036.4598%209.8185%2036.3753C9.86758%2036.2876%209.93003%2036.2145%2010.0059%2036.1561C10.0788%2036.0941%2010.1631%2036.0499%2010.2588%2036.0235C10.3548%2035.9938%2010.4537%2035.9843%2010.5555%2035.995ZM13.7648%2029.7157L10.6128%2028.2756L10.8288%2027.8028L13.517%2029.031L14.235%2027.4595L14.6988%2027.6714L13.7648%2029.7157ZM15.9499%2022.181C15.7902%2022.064%2015.6332%2021.9796%2015.4788%2021.9278C15.3237%2021.8714%2015.1769%2021.8456%2015.0383%2021.8505C14.8971%2021.8534%2014.7674%2021.8852%2014.6492%2021.9459C14.5331%2022.0039%2014.434%2022.0888%2014.352%2022.2006C14.2701%2022.3124%2014.2189%2022.4325%2014.1986%2022.5608C14.1775%2022.6844%2014.1865%2022.8117%2014.2256%2022.9427C14.2646%2023.0736%2014.3344%2023.2045%2014.4349%2023.3354C14.5327%2023.4644%2014.6614%2023.5874%2014.8211%2023.7045C14.9809%2023.8215%2015.1383%2023.9082%2015.2933%2023.9646C15.4477%2024.0164%2015.5945%2024.0422%2015.7338%2024.0419C15.8724%2024.0371%2015.9998%2024.0057%2016.116%2023.9476C16.2341%2023.8869%2016.3342%2023.8007%2016.4161%2023.6889C16.4981%2023.5771%2016.5496%2023.4593%2016.5706%2023.3356C16.591%2023.2074%2016.5817%2023.0777%2016.5426%2022.9468C16.5055%2022.8132%2016.438%2022.6819%2016.3402%2022.553C16.2397%2022.4221%2016.1097%2022.2981%2015.9499%2022.181ZM16.2551%2021.7479C16.4734%2021.9079%2016.6502%2022.0825%2016.7856%2022.2718C16.9184%2022.4591%2017.0097%2022.6529%2017.0594%2022.853C17.1084%2023.0485%2017.1139%2023.2448%2017.0758%2023.442C17.0377%2023.6391%2016.9533%2023.8268%2016.8226%2024.0052C16.6938%2024.1809%2016.5425%2024.3175%2016.3687%2024.4152C16.1922%2024.5108%2016.0033%2024.5647%2015.8021%2024.5769C15.6009%2024.589%2015.391%2024.56%2015.1724%2024.4898C14.9531%2024.4149%2014.7343%2024.2975%2014.516%2024.1376C14.2977%2023.9776%2014.1222%2023.8039%2013.9894%2023.6166C13.854%2023.4273%2013.7618%2023.2349%2013.7127%2023.0394C13.663%2022.8393%2013.6572%2022.6407%2013.6953%2022.4435C13.7334%2022.2464%2013.8168%2022.06%2013.9456%2021.8843C14.0763%2021.706%2014.2299%2021.5689%2014.4064%2021.4733C14.5802%2021.3756%2014.7678%2021.3208%2014.969%2021.3086C15.1702%2021.2965%2015.3804%2021.3279%2015.5998%2021.4027C15.8184%2021.4729%2016.0368%2021.588%2016.2551%2021.7479ZM19.3021%2017.8311C19.2459%2017.797%2019.1829%2017.76%2019.1131%2017.7202C19.0432%2017.6804%2018.9734%2017.6407%2018.9035%2017.6009C18.8362%2017.559%2018.7732%2017.522%2018.7145%2017.49C18.6562%2017.4533%2018.6113%2017.4246%2018.58%2017.4038C18.5964%2017.4376%2018.6189%2017.4859%2018.6474%2017.5486C18.6738%2017.6089%2018.7033%2017.6752%2018.7358%2017.7475C18.7662%2017.8174%2018.7975%2017.8908%2018.8298%2017.9678C18.8645%2018.0427%2018.8938%2018.1113%2018.9177%2018.1737L19.2303%2018.9525L20.0354%2018.2488L19.3021%2017.8311ZM21.2217%2018.9213L20.4609%2018.4949L19.4173%2019.4071L19.742%2020.2148L19.3357%2020.57L17.9942%2017.1399L18.408%2016.7782L21.6391%2018.5564L21.2217%2018.9213ZM24.9375%2014.1721C24.8509%2014.0126%2024.7534%2013.8778%2024.6448%2013.7677C24.5347%2013.6547%2024.4116%2013.5732%2024.2755%2013.5231C24.1424%2013.4715%2023.9964%2013.455%2023.8375%2013.4736C23.6815%2013.4906%2023.5136%2013.5479%2023.3338%2013.6455L22.9596%2013.8486L24.1307%2016.0068L24.5049%2015.8037C24.6847%2015.7061%2024.8243%2015.5966%2024.9236%2015.4751C25.0258%2015.3521%2025.0915%2015.2206%2025.1208%2015.0808C25.153%2014.9395%2025.1525%2014.7933%2025.1194%2014.6423C25.0847%2014.4884%2025.0241%2014.3317%2024.9375%2014.1721ZM25.4031%2013.9195C25.5495%2014.1893%2025.634%2014.4419%2025.6567%2014.6774C25.6822%2014.9114%2025.6607%2015.1277%2025.592%2015.3264C25.5218%2015.5222%2025.4125%2015.698%2025.2641%2015.8536C25.1187%2016.0076%2024.9459%2016.1389%2024.7457%2016.2475L23.9146%2016.6985L22.2619%2013.6527L23.0929%2013.2017C23.296%2013.0915%2023.5032%2013.0167%2023.7145%2012.9771C23.9287%2012.9359%2024.1364%2012.9415%2024.3375%2012.9938C24.5371%2013.0433%2024.728%2013.1425%2024.9102%2013.2914C25.0924%2013.4404%2025.2567%2013.6497%2025.4031%2013.9195ZM34.3617%2011.6339C34.4181%2011.9858%2034.3486%2012.2711%2034.153%2012.4896C33.9569%2012.7049%2033.6568%2012.845%2033.2527%2012.9098C33.1322%2012.9291%2033.0095%2012.9354%2032.8847%2012.9287C32.76%2012.922%2032.6383%2012.9031%2032.5197%2012.872C32.4043%2012.8403%2032.2955%2012.7976%2032.1933%2012.7438C32.0905%2012.6868%2032.0028%2012.619%2031.93%2012.5404L32.2677%2012.1453C32.3934%2012.2621%2032.5365%2012.3411%2032.6968%2012.3823C32.8566%2012.4201%2033.0148%2012.4265%2033.1712%2012.4014C33.4449%2012.3575%2033.6293%2012.2778%2033.7244%2012.1623C33.8223%2012.043%2033.8571%2011.8953%2033.8289%2011.7194C33.8007%2011.5434%2033.7214%2011.4241%2033.591%2011.3614C33.4601%2011.2955%2033.305%2011.2769%2033.1258%2011.3057L32.8081%2011.3567L32.7281%2010.8581L33.0409%2010.8079C33.2006%2010.7823%2033.3138%2010.7173%2033.3807%2010.613C33.4475%2010.5087%2033.4705%2010.3914%2033.4496%2010.261C33.4417%2010.2122%2033.4236%2010.1616%2033.3951%2010.1093C33.3667%2010.0571%2033.3244%2010.012%2033.2682%209.97426C33.212%209.93648%2033.1392%209.90972%2033.0497%209.89398C32.963%209.87446%2032.8562%209.8749%2032.7291%209.89528C32.5922%209.91724%2032.4728%209.9648%2032.3709%2010.038C32.2723%2010.1106%2032.1838%2010.205%2032.1055%2010.3212L31.6662%2010.0206C31.7888%209.84723%2031.9302%209.70756%2032.0903%209.60165C32.2532%209.49196%2032.4422%209.41986%2032.6573%209.38536C32.817%209.35975%2032.9719%209.35662%2033.1221%209.37599C33.2717%209.39209%2033.405%209.43088%2033.5218%209.49236C33.6386%209.55385%2033.7374%209.63828%2033.8181%209.74566C33.8983%209.84978%2033.9505%209.97679%2033.9745%2010.1267C34.0074%2010.332%2033.9923%2010.4982%2033.9291%2010.6253C33.8692%2010.7519%2033.7858%2010.8572%2033.679%2010.9412C33.8492%2010.9607%2033.997%2011.0272%2034.1221%2011.1409C34.2473%2011.2545%2034.3272%2011.4188%2034.3617%2011.6339ZM39.5621%2011.2542C39.5713%2011.0465%2039.5088%2010.8918%2039.3745%2010.79C39.2404%2010.685%2039.0497%2010.627%2038.8024%2010.616C38.5486%2010.6048%2038.3468%2010.6471%2038.1972%2010.7429C38.0478%2010.8353%2037.9685%2010.9838%2037.9595%2011.1882C37.9557%2011.2739%2037.9686%2011.3555%2037.9982%2011.4327C38.0278%2011.51%2038.0743%2011.5798%2038.1376%2011.6421C38.2044%2011.7012%2038.2864%2011.7511%2038.3837%2011.7917C38.4812%2011.8291%2038.5942%2011.8506%2038.7228%2011.8563C38.9865%2011.868%2039.1901%2011.8208%2039.3336%2011.7148C39.4772%2011.6056%2039.5533%2011.452%2039.5621%2011.2542ZM40.0868%2011.2675C40.0785%2011.4555%2040.0365%2011.6204%2039.9608%2011.7624C39.8851%2011.9044%2039.7842%2012.0206%2039.658%2012.1108C39.5318%2012.201%2039.3851%2012.2672%2039.2181%2012.3093C39.051%2012.3515%2038.8719%2012.3683%2038.6807%2012.3599C38.4993%2012.3518%2038.3306%2012.3196%2038.1745%2012.2631C38.0186%2012.2034%2037.8838%2012.1148%2037.77%2011.9975C37.6596%2011.8803%2037.5736%2011.7327%2037.5121%2011.5549C37.4539%2011.3773%2037.4302%2011.1664%2037.441%2010.9225C37.4477%2010.7708%2037.4696%2010.6132%2037.5066%2010.4496C37.5435%2010.2861%2037.5985%2010.1267%2037.6714%209.97132C37.7477%209.81613%2037.8434%209.6684%2037.9586%209.52815C38.0772%209.38803%2038.218%209.26543%2038.3813%209.16034C38.5445%209.05524%2038.7331%208.97274%2038.9472%208.91284C39.1646%208.85309%2039.4103%208.82432%2039.6844%208.82655L39.6627%209.31617C39.2631%209.31499%2038.9256%209.40081%2038.6504%209.57363C38.3784%209.74659%2038.1784%2010.0119%2038.0502%2010.3697C38.1765%2010.2794%2038.3081%2010.2159%2038.4452%2010.179C38.5857%2010.139%2038.7615%2010.1236%2038.9725%2010.133C39.1307%2010.14%2039.2781%2010.1696%2039.4145%2010.2219C39.5544%2010.2711%2039.6751%2010.3425%2039.7767%2010.4362C39.8783%2010.5299%2039.9574%2010.6457%2040.014%2010.7836C40.0707%2010.9216%2040.0949%2011.0829%2040.0868%2011.2675ZM45.3511%2011.4213C45.3964%2011.2455%2045.4225%2011.0784%2045.4292%2010.92C45.44%2010.7592%2045.4262%2010.6142%2045.388%2010.485C45.3529%2010.3567%2045.2908%2010.247%2045.2019%2010.1559C45.1161%2010.0656%2044.9997%2010.0015%2044.8527%209.9636C44.7057%209.9257%2044.5728%209.92553%2044.454%209.96309C44.3361%209.99745%2044.2292%2010.0619%2044.1332%2010.1565C44.0413%2010.2486%2043.9612%2010.3677%2043.8929%2010.5137C43.8254%2010.6565%2043.769%2010.8158%2043.7237%2010.9916C43.6784%2011.1673%2043.6503%2011.3356%2043.6396%2011.4964C43.6328%2011.6549%2043.647%2011.7983%2043.682%2011.9266C43.7203%2012.0558%2043.7824%2012.1655%2043.8682%2012.2558C43.9571%2012.3469%2044.0751%2012.4114%2044.2221%2012.4493C44.3692%2012.4871%2044.5016%2012.4889%2044.6195%2012.4546C44.7383%2012.417%2044.8436%2012.3521%2044.9355%2012.2599C45.0315%2012.1654%2045.1132%2012.0467%2045.1807%2011.9039C45.249%2011.7579%2045.3058%2011.5971%2045.3511%2011.4213ZM45.8617%2011.5427C45.7958%2011.7984%2045.7065%2012.0258%2045.5938%2012.2251C45.4819%2012.4212%2045.3502%2012.5816%2045.1988%2012.7061C45.0474%2012.8307%2044.8775%2012.9147%2044.6891%2012.9582C44.5047%2012.9992%2044.3038%2012.9918%2044.0865%2012.9357C43.8692%2012.8797%2043.6882%2012.7888%2043.5434%2012.6628C43.4026%2012.5345%2043.2957%2012.3808%2043.2226%2012.2018C43.1534%2012.0204%2043.1173%2011.8168%2043.1142%2011.5911C43.1142%2011.3661%2043.1472%2011.1258%2043.2131%2010.8702C43.2782%2010.6177%2043.3667%2010.3934%2043.4785%2010.1973C43.5913%209.99801%2043.7233%209.83608%2043.8747%209.71151C44.0261%209.58694%2044.1944%209.50252%2044.3797%209.45825C44.5681%209.4148%2044.771%209.42108%2044.9883%209.4771C45.2056%209.53312%2045.3846%209.62528%2045.5254%209.75359C45.6702%209.87952%2045.7771%2010.0332%2045.8462%2010.2146C45.9193%2010.3936%2045.9555%2010.5972%2045.9546%2010.8253C45.9578%2011.0511%2045.9268%2011.2902%2045.8617%2011.5427ZM50.5577%2012.3223C50.5892%2012.2569%2050.6052%2012.1895%2050.6057%2012.1201C50.6106%2012.0492%2050.6015%2011.9807%2050.5785%2011.9146C50.5584%2011.8499%2050.5243%2011.7913%2050.4763%2011.7389C50.4328%2011.6849%2050.3768%2011.6414%2050.3084%2011.6084C50.24%2011.5755%2050.1697%2011.558%2050.0973%2011.5561C50.0294%2011.5526%2049.9624%2011.5624%2049.8963%2011.5855C49.8331%2011.61%2049.7739%2011.6455%2049.7184%2011.6921C49.6674%2011.7371%2049.6261%2011.7923%2049.5946%2011.8577C49.5616%2011.9261%2049.5427%2011.9957%2049.5378%2012.0666C49.5358%2012.139%2049.5449%2012.2075%2049.565%2012.2722C49.5881%2012.3383%2049.6214%2012.3983%2049.665%2012.4523C49.713%2012.5048%2049.7712%2012.5475%2049.8395%2012.5805C49.9079%2012.6134%2049.9761%2012.6317%2050.044%2012.6351C50.1164%2012.637%2050.1841%2012.6258%2050.2472%2012.6012C50.3133%2012.5782%2050.3726%2012.5426%2050.4251%2012.4946C50.4805%2012.4481%2050.5247%2012.3906%2050.5577%2012.3223ZM50.959%2012.5158C50.8988%2012.6407%2050.8198%2012.7474%2050.7222%2012.8358C50.626%2012.9213%2050.5184%2012.9849%2050.3994%2013.0264C50.2804%2013.068%2050.1567%2013.0852%2050.0282%2013.0782C49.8997%2013.0712%2049.773%2013.0375%2049.6481%2012.9773C49.5233%2012.9171%2049.4181%2012.8389%2049.3326%2012.7427C49.2471%2012.6465%2049.1836%2012.5389%2049.142%2012.4199C49.1034%2012.3023%2049.0862%2012.1786%2049.0902%2012.0486C49.0987%2011.9172%2049.133%2011.789%2049.1933%2011.6641C49.2521%2011.5423%2049.3296%2011.4386%2049.4258%2011.3531C49.5249%2011.269%2049.6318%2011.207%2049.7464%2011.1669C49.8654%2011.1254%2049.9891%2011.1081%2050.1176%2011.1152C50.2476%2011.1192%2050.375%2011.1514%2050.4998%2011.2116C50.6247%2011.2718%2050.7291%2011.3515%2050.8132%2011.4507C50.8987%2011.5469%2050.9622%2011.6545%2051.0038%2011.7735C51.0468%2011.8895%2051.0647%2012.0117%2051.0577%2012.1402C51.0507%2012.2688%2051.0178%2012.394%2050.959%2012.5158ZM56.4961%2019.3123L56.1061%2018.9252L57.6939%2015.6184L58.0944%2016.016L57.0517%2018.0921C57.0286%2018.1389%2057.0019%2018.1915%2056.9718%2018.25C56.944%2018.3061%2056.915%2018.361%2056.8849%2018.4148C56.8571%2018.4709%2056.8293%2018.5223%2056.8014%2018.5691C56.7783%2018.6159%2056.7586%2018.6521%2056.7423%2018.6779C56.7679%2018.6614%2056.8029%2018.6403%2056.8471%2018.6145C56.896%2018.5886%2056.9473%2018.5604%2057.0008%2018.5299C57.0567%2018.5017%2057.1138%2018.4723%2057.172%2018.4418C57.2303%2018.4112%2057.2827%2018.3842%2057.3293%2018.3607L59.3872%2017.2996L59.7807%2017.6902L56.4961%2019.3123ZM59.3871%2022.2996L62.2211%2020.3055L62.5202%2020.7306L59.6862%2022.7247L59.3871%2022.2996ZM61.4608%2025.3785L64.59%2023.8895L65.5493%2025.9055L65.0934%2026.1225L64.3574%2024.5758L63.584%2024.9438L64.0116%2025.8423L63.5556%2026.0593L63.1281%2025.1608L62.1402%2025.6309L62.9081%2027.2446L62.4521%2027.4616L61.4608%2025.3785ZM64.2671%2033.0066L64.1536%2032.4942L66.2216%2031.4834C66.2491%2031.4706%2066.2828%2031.4547%2066.3226%2031.4357C66.3655%2031.4161%2066.4069%2031.3968%2066.4466%2031.3778C66.4896%2031.3582%2066.5293%2031.3392%2066.5659%2031.321C66.6031%2031.306%2066.631%2031.2947%2066.6497%2031.2872C66.6296%2031.2883%2066.5992%2031.2883%2066.5584%2031.2872C66.5183%2031.2893%2066.4746%2031.2905%2066.4274%2031.2908C66.3833%2031.2904%2066.3377%2031.2904%2066.2904%2031.2907C66.2464%2031.2903%2066.2092%2031.2901%2066.1787%2031.2901L63.872%2031.2231L63.7607%2030.7204L66.9909%2029.2798L67.1044%2029.7921L65.058%2030.6713C65.0329%2030.6803%2065.0018%2030.6922%2064.9645%2030.7072C64.928%2030.7255%2064.8895%2030.7424%2064.8491%2030.7582C64.8093%2030.7771%2064.7692%2030.7944%2064.7287%2030.8102C64.6915%2030.8252%2064.6587%2030.8375%2064.6305%2030.8472C64.6602%2030.844%2064.6951%2030.8413%2064.7352%2030.8392C64.776%2030.8403%2064.8184%2030.841%2064.8624%2030.8414C64.9065%2030.8418%2064.9485%2030.8409%2064.9886%2030.8388C65.0294%2030.8399%2065.0634%2030.8408%2065.0906%2030.8416L67.3517%2030.9086L67.4481%2031.3436L65.3806%2032.3796C65.3384%2032.4025%2065.2804%2032.4305%2065.2066%2032.4638C65.1328%2032.497%2065.0664%2032.5253%2065.0073%2032.5485C65.0746%2032.5471%2065.1484%2032.5443%2065.2286%2032.54C65.312%2032.5351%2065.3753%2032.5312%2065.4187%2032.5284L67.6943%2032.4553L67.8035%2032.9483L64.2671%2033.0066ZM66.6349%2041.7727C66.5302%2041.7592%2066.4362%2041.7272%2066.3528%2041.6765C66.2691%2041.6292%2066.1972%2041.5667%2066.1373%2041.4891C66.0803%2041.4153%2066.038%2041.33%2066.0105%2041.2333C65.9858%2041.1403%2065.98%2041.043%2065.993%2040.9415C66.0065%2040.8368%2066.0369%2040.7425%2066.0843%2040.6588C66.1349%2040.5754%2066.1974%2040.5036%2066.2717%2040.4433C66.3488%2040.3866%2066.4341%2040.3443%2066.5275%2040.3164C66.6205%2040.2918%2066.7194%2040.2862%2066.8242%2040.2996C66.9256%2040.3127%2067.0199%2040.3431%2067.1069%2040.3908C67.1935%2040.4419%2067.2654%2040.5044%2067.3224%2040.5782C67.3823%2040.6558%2067.4263%2040.7413%2067.4542%2040.8347C67.4821%2040.9282%2067.4894%2041.0273%2067.4759%2041.132C67.4629%2041.2335%2067.431%2041.3259%2067.3804%2041.4092C67.3293%2041.4958%2067.2652%2041.5675%2067.1881%2041.6241C67.1138%2041.6844%2067.0285%2041.7267%2066.9322%2041.751C66.8355%2041.7785%2066.7364%2041.7857%2066.6349%2041.7727Z'%20fill='white'/%3e%3crect%20x='18.6079'%20y='18.6716'%20width='39.505'%20height='39.505'%20rx='19.7525'%20stroke='white'%20stroke-opacity='0.1'%20stroke-width='0.49505'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.085%2032.379C33.0851%2031.5988%2033.9392%2031.1196%2034.6055%2031.5255L45.1846%2037.9718C45.8238%2038.3615%2045.8237%2039.29%2045.1846%2039.6798L34.6055%2046.1271C33.9392%2046.5327%2033.085%2046.0528%2033.085%2045.2726V32.379Z'%20fill='white'/%3e%3c/svg%3e", Fn = "data:image/svg+xml,%3csvg%20width='84'%20height='44'%20viewBox='0%200%2084%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20shape-rendering='geometricPrecision'%3e%3crect%20width='84'%20height='44'%20rx='22'%20fill='white'/%3e%3cg%20opacity='0.5'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.7657%2015.2278C28.0781%2015.5315%2028.0781%2016.024%2027.7657%2016.3277L21.9314%2022L27.7657%2027.6723C28.0781%2027.976%2028.0781%2028.4685%2027.7657%2028.7722C27.4533%2029.0759%2026.9467%2029.0759%2026.6343%2028.7722L20.2343%2022.55C19.9219%2022.2462%2019.9219%2021.7538%2020.2343%2021.45L26.6343%2015.2278C26.9467%2014.9241%2027.4533%2014.9241%2027.7657%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/g%3e%3cpath%20d='M42%200H62C74.1503%200%2084%209.84974%2084%2022C84%2034.1503%2074.1503%2044%2062%2044H42V0Z'%20fill='%23F5F5F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.2343%2015.2278C56.5467%2014.9241%2057.0533%2014.9241%2057.3657%2015.2278L63.7657%2021.45C64.0781%2021.7538%2064.0781%2022.2462%2063.7657%2022.55L57.3657%2028.7722C57.0533%2029.0759%2056.5467%2029.0759%2056.2343%2028.7722C55.9219%2028.4685%2055.9219%2027.976%2056.2343%2027.6723L62.0686%2022L56.2343%2016.3277C55.9219%2016.024%2055.9219%2015.5315%2056.2343%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/svg%3e", On = {
@@ -934,19 +944,19 @@ const qe = ({
934
944
  errorImage: "https://cdn.car-cutter.com/libs/web-player/v3/assets/autonation-fallback.svg"
935
945
  }, Hn = {
936
946
  autonation: On
937
- }, vt = (t) => {
947
+ }, wt = (t) => {
938
948
  if (t)
939
949
  return Hn[t];
940
950
  }, Un = () => {
941
951
  let t = "https://cdn.car-cutter.com/libs/web-player/v3/assets/car_placeholder.png";
942
- const { themeConfig: o } = je(), i = Ue(() => vt(o), [o]);
952
+ const { themeConfig: o } = je(), i = Ue(() => wt(o), [o]);
943
953
  i?.errorImage && (t = i.errorImage);
944
954
  const d = {
945
955
  className: i?.errorImage ? void 0 : "h-20 small:h-28",
946
956
  style: i?.errorImage ? { height: "12rem", width: "auto" } : void 0
947
957
  };
948
958
  return /* @__PURE__ */ a("img", { ...d, alt: "", src: t });
949
- }, Mt = ({ text: t, className: o }) => /* @__PURE__ */ me(
959
+ }, It = ({ text: t, className: o }) => /* @__PURE__ */ me(
950
960
  "div",
951
961
  {
952
962
  className: ue(
@@ -987,41 +997,41 @@ const qe = ({
987
997
  className: o,
988
998
  onLoad: i,
989
999
  imgInPlayerWidthRatio: d = 1,
990
- onlyThumbnail: l,
991
- fadeIn: c,
1000
+ onlyThumbnail: c,
1001
+ fadeIn: u,
992
1002
  ...v
993
1003
  }, e) => {
994
- const { mediaLoadStrategy: E, playerInViewportWidthRatio: k } = je(), { imageHdWidth: N, usedMediaWidths: L } = lt(), [p, n] = Ue(() => {
1004
+ const { mediaLoadStrategy: E, playerInViewportWidthRatio: k } = je(), { imageHdWidth: N, usedMediaWidths: L } = lt(), [h, n] = Ue(() => {
995
1005
  const _ = L.map((C) => `${C !== N ? fn(t, C) : t} ${C}w`);
996
1006
  let w;
997
- if (l)
1007
+ if (c)
998
1008
  w = [`${L[0]}px`];
999
1009
  else {
1000
1010
  const C = 1 / (d * k);
1001
1011
  switch (E) {
1002
1012
  case "quality": {
1003
- const x = [...L], h = x.pop();
1013
+ const x = [...L], p = x.pop();
1004
1014
  w = x.map(
1005
1015
  (y) => `(max-width: ${C * y}px) ${y}px`
1006
- ), w.push(`${h}px`);
1016
+ ), w.push(`${p}px`);
1007
1017
  break;
1008
1018
  }
1009
1019
  case "balanced": {
1010
1020
  w = [];
1011
1021
  for (let x = 0; x < L.length - 1; x++) {
1012
- const h = L[x], y = L[x + 1], T = Math.round((h + y) / 2);
1022
+ const p = L[x], y = L[x + 1], T = Math.round((p + y) / 2);
1013
1023
  w.push(
1014
- `(max-width: ${C * T}px) ${h}px`
1024
+ `(max-width: ${C * T}px) ${p}px`
1015
1025
  );
1016
1026
  }
1017
1027
  w.push(`${L[L.length - 1]}px`);
1018
1028
  break;
1019
1029
  }
1020
1030
  case "speed": {
1021
- const x = [...L], h = x.shift();
1031
+ const x = [...L], p = x.shift();
1022
1032
  w = x.reverse().map(
1023
1033
  (y) => `(min-width: ${C * y}px) ${y}px`
1024
- ), w.push(`${h}px`);
1034
+ ), w.push(`${p}px`);
1025
1035
  break;
1026
1036
  }
1027
1037
  }
@@ -1031,7 +1041,7 @@ const qe = ({
1031
1041
  N,
1032
1042
  d,
1033
1043
  E,
1034
- l,
1044
+ c,
1035
1045
  k,
1036
1046
  t,
1037
1047
  L
@@ -1048,11 +1058,11 @@ const qe = ({
1048
1058
  {
1049
1059
  ref: e,
1050
1060
  src: t,
1051
- srcSet: p,
1061
+ srcSet: h,
1052
1062
  sizes: n,
1053
1063
  className: ue(
1054
1064
  o,
1055
- c && ue(
1065
+ u && ue(
1056
1066
  b !== void 0 && "transition-opacity duration-200",
1057
1067
  b === !1 && "opacity-0",
1058
1068
  b === !0 && "opacity-100"
@@ -1241,7 +1251,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1241
1251
  fadeIn: !i
1242
1252
  }
1243
1253
  ) : /* @__PURE__ */ a("img", { className: d, src: t });
1244
- }, Ct = ({
1254
+ }, bt = ({
1245
1255
  children: t
1246
1256
  }) => {
1247
1257
  const { extendMode: o } = Ke();
@@ -1257,47 +1267,47 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1257
1267
  );
1258
1268
  }, Zn = ({ item: t }) => {
1259
1269
  const { aspectRatioStyle: o } = lt(), { type: i } = t;
1260
- let d, l;
1270
+ let d, c;
1261
1271
  switch (i) {
1262
1272
  case "360":
1263
- d = t.images[0].src, l = !0;
1273
+ d = t.images[0].src, c = !0;
1264
1274
  break;
1265
1275
  case "next360":
1266
- d = t.images[0].src, l = !0;
1276
+ d = t.images[0].src, c = !0;
1267
1277
  break;
1268
1278
  case "interior-360":
1269
- d = t.poster, l = !0;
1279
+ d = t.poster, c = !0;
1270
1280
  break;
1271
1281
  case "image":
1272
- d = t.src, l = !0;
1282
+ d = t.src, c = !0;
1273
1283
  break;
1274
1284
  case "video":
1275
- d = t.poster, l = !0;
1285
+ d = t.poster, c = !0;
1276
1286
  break;
1277
1287
  case "custom":
1278
- d = t.thumbnailSrc, l = !1;
1288
+ d = t.thumbnailSrc, c = !1;
1279
1289
  break;
1280
1290
  default:
1281
- l = !1;
1291
+ c = !1;
1282
1292
  }
1283
- const c = /* @__PURE__ */ a(Xn, { src: d, withCdn: l });
1293
+ const u = /* @__PURE__ */ a(Xn, { src: d, withCdn: c });
1284
1294
  let v;
1285
1295
  switch (i) {
1286
1296
  case "360":
1287
- v = /* @__PURE__ */ a(Ct, { children: /* @__PURE__ */ a(Ht, { className: "size-full" }) });
1297
+ v = /* @__PURE__ */ a(bt, { children: /* @__PURE__ */ a(Ht, { className: "size-full" }) });
1288
1298
  break;
1289
1299
  case "interior-360":
1290
- v = /* @__PURE__ */ a(Ct, { children: /* @__PURE__ */ a(Lr, { className: "size-full" }) });
1300
+ v = /* @__PURE__ */ a(bt, { children: /* @__PURE__ */ a(Lr, { className: "size-full" }) });
1291
1301
  break;
1292
1302
  case "video":
1293
- v = /* @__PURE__ */ a(Ct, { children: /* @__PURE__ */ a(Er, { className: "size-full p-0.5 text-background" }) });
1303
+ v = /* @__PURE__ */ a(bt, { children: /* @__PURE__ */ a(Er, { className: "size-full p-0.5 text-background" }) });
1294
1304
  break;
1295
1305
  case "custom":
1296
- v = d ? null : /* @__PURE__ */ a(Ct, { children: /* @__PURE__ */ a(br, { className: "size-full p-0.5 text-background" }) });
1306
+ v = d ? null : /* @__PURE__ */ a(bt, { children: /* @__PURE__ */ a(br, { className: "size-full p-0.5 text-background" }) });
1297
1307
  break;
1298
1308
  }
1299
1309
  return /* @__PURE__ */ me("div", { className: "relative bg-foreground/30", style: o, children: [
1300
- c,
1310
+ u,
1301
1311
  v && /* @__PURE__ */ a("div", { className: "absolute inset-0 flex items-center justify-center bg-foreground/25", children: v })
1302
1312
  ] });
1303
1313
  }, Vn = {
@@ -1318,13 +1328,13 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1318
1328
  const {
1319
1329
  hideCategoriesNav: i,
1320
1330
  infiniteCarrousel: d,
1321
- permanentGallery: l,
1322
- isFullScreen: c,
1331
+ permanentGallery: c,
1332
+ isFullScreen: u,
1323
1333
  maxItemsShown: v
1324
1334
  } = je(), { categories: e, aspectRatioStyle: E } = lt(), { emitAnalyticsEvent: k } = je(), {
1325
1335
  items: N,
1326
1336
  extendMode: L,
1327
- extendTransition: p,
1337
+ extendTransition: h,
1328
1338
  masterItemIndex: n,
1329
1339
  prevItem: b,
1330
1340
  nextItem: P,
@@ -1332,7 +1342,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1332
1342
  resetView: w,
1333
1343
  displayedCategoryId: C,
1334
1344
  displayedCategoryName: x
1335
- } = Ke(), h = Ue(
1345
+ } = Ke(), p = Ue(
1336
1346
  () => N[n].type,
1337
1347
  [N, n]
1338
1348
  ), y = Ue(() => {
@@ -1402,9 +1412,9 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1402
1412
  }, [
1403
1413
  H,
1404
1414
  // - Run the effect when those values change
1405
- c,
1415
+ u,
1406
1416
  L,
1407
- p
1417
+ h
1408
1418
  ]);
1409
1419
  const q = G(
1410
1420
  (D) => {
@@ -1413,7 +1423,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1413
1423
  current: {
1414
1424
  category_id: C,
1415
1425
  category_name: x,
1416
- item_type: h,
1426
+ item_type: p,
1417
1427
  item_position: n
1418
1428
  },
1419
1429
  action: {
@@ -1427,7 +1437,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1427
1437
  k,
1428
1438
  C,
1429
1439
  x,
1430
- h,
1440
+ p,
1431
1441
  n
1432
1442
  ]
1433
1443
  ), ce = G(
@@ -1437,7 +1447,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1437
1447
  b();
1438
1448
  else if (d && D === 0 && n === N.length - 1)
1439
1449
  P();
1440
- else if (!c && v !== 1 && D === N.length - 1) {
1450
+ else if (!u && v !== 1 && D === N.length - 1) {
1441
1451
  const J = Math.ceil(v), S = N.length + 1, B = Math.max(0, S - J);
1442
1452
  _(B);
1443
1453
  } else
@@ -1454,7 +1464,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1454
1464
  w,
1455
1465
  b,
1456
1466
  P,
1457
- c,
1467
+ u,
1458
1468
  v,
1459
1469
  _
1460
1470
  ]
@@ -1483,7 +1493,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1483
1493
  y.includes(J) && /* @__PURE__ */ a("div", { className: "my-2", children: /* @__PURE__ */ a(
1484
1494
  Mr,
1485
1495
  {
1486
- color: l && !c ? "neutral" : "background",
1496
+ color: c && !u ? "neutral" : "background",
1487
1497
  orientation: "vertical"
1488
1498
  }
1489
1499
  ) }),
@@ -1520,27 +1530,27 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1520
1530
  onlyPreload: t,
1521
1531
  ...o
1522
1532
  }) => {
1523
- const { zoom: i, isZooming: d, setZoom: l } = Ke(), c = Le(null), v = Le(null), e = G((x) => {
1533
+ const { zoom: i, isZooming: d, setZoom: c } = Ke(), u = Le(null), v = Le(null), e = G((x) => {
1524
1534
  if (!v.current)
1525
1535
  throw new Error(
1526
1536
  `[${x ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
1527
1537
  );
1528
1538
  return v.current;
1529
- }, []), E = Le(!1), k = Le(null), N = Le(/* @__PURE__ */ new Map()), L = Le({ x: 0, y: 0, scale: 1 }), p = Le(null), n = G(
1539
+ }, []), E = Le(!1), k = Le(null), N = Le(/* @__PURE__ */ new Map()), L = Le({ x: 0, y: 0, scale: 1 }), h = Le(null), n = G(
1530
1540
  (x) => {
1531
- const h = e("setTransformStyle"), {
1541
+ const p = e("setTransformStyle"), {
1532
1542
  x: y,
1533
1543
  y: T,
1534
1544
  scale: $
1535
1545
  } = {
1536
1546
  ...L.current,
1537
1547
  ...x
1538
- }, I = tt($, 1, st), X = h.clientWidth, V = h.clientHeight, z = X * I, H = V * I, R = tt(y, -(z - X), 0), q = tt(T, -(H - V), 0);
1539
- L.current = { x: R, y: q, scale: I }, h.style.transform = `translate(${R}px, ${q}px) scale(${I})`;
1548
+ }, I = tt($, 1, st), X = p.clientWidth, V = p.clientHeight, z = X * I, H = V * I, R = tt(y, -(z - X), 0), q = tt(T, -(H - V), 0);
1549
+ L.current = { x: R, y: q, scale: I }, p.style.transform = `translate(${R}px, ${q}px) scale(${I})`;
1540
1550
  },
1541
1551
  [e]
1542
1552
  ), b = G(
1543
- (x, h) => {
1553
+ (x, p) => {
1544
1554
  const {
1545
1555
  x: y,
1546
1556
  y: T,
@@ -1553,44 +1563,44 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1553
1563
  ...L.current,
1554
1564
  ...x
1555
1565
  };
1556
- p.current && (cancelAnimationFrame(p.current), p.current = null);
1566
+ h.current && (cancelAnimationFrame(h.current), h.current = null);
1557
1567
  const z = () => {
1558
- n({ x: I, y: X, scale: V }), l(V);
1568
+ n({ x: I, y: X, scale: V }), c(V);
1559
1569
  }, H = Math.abs(I - y) < 1 && Math.abs(X - T) < 1 && Math.abs(V - $) < 5e-3;
1560
- if (!h || H) {
1570
+ if (!p || H) {
1561
1571
  z();
1562
1572
  return;
1563
1573
  }
1564
1574
  const R = (/* @__PURE__ */ new Date()).getTime(), q = () => {
1565
1575
  const ce = () => {
1566
1576
  const D = (/* @__PURE__ */ new Date()).getTime() - R;
1567
- if (D >= h) {
1568
- z(), p.current = null;
1577
+ if (D >= p) {
1578
+ z(), h.current = null;
1569
1579
  return;
1570
1580
  }
1571
- const J = Math.min(D / h, 1), S = kr(J), B = bt(y, I, S), ie = bt(T, X, S), F = bt($, V, S);
1581
+ const J = Math.min(D / p, 1), S = kr(J), B = Lt(y, I, S), ie = Lt(T, X, S), F = Lt($, V, S);
1572
1582
  n({ x: B, y: ie, scale: F }), q();
1573
1583
  };
1574
- p.current = requestAnimationFrame(ce);
1584
+ h.current = requestAnimationFrame(ce);
1575
1585
  };
1576
1586
  q();
1577
1587
  },
1578
- [n, l]
1588
+ [n, c]
1579
1589
  ), P = G(
1580
- (x, h) => {
1590
+ (x, p) => {
1581
1591
  let { x: y, y: T } = L.current;
1582
1592
  x.x && (y += x.x), x.y && (T += x.y), b(
1583
1593
  {
1584
1594
  x: y,
1585
1595
  y: T
1586
1596
  },
1587
- h
1597
+ p
1588
1598
  );
1589
1599
  },
1590
1600
  [b]
1591
1601
  ), _ = G(
1592
- (x, h, y) => {
1593
- const T = L.current.scale, $ = tt(x, 1, st), I = $ / T, { x: X, y: V } = L.current, { x: z, y: H } = h, R = -X + z, q = -V + H, ce = R * I, U = q * I, D = ce - z, J = U - H, S = -D, B = -J;
1602
+ (x, p, y) => {
1603
+ const T = L.current.scale, $ = tt(x, 1, st), I = $ / T, { x: X, y: V } = L.current, { x: z, y: H } = p, R = -X + z, q = -V + H, ce = R * I, U = q * I, D = ce - z, J = U - H, S = -D, B = -J;
1594
1604
  b(
1595
1605
  {
1596
1606
  x: S,
@@ -1603,9 +1613,9 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1603
1613
  [b]
1604
1614
  ), w = G(
1605
1615
  (x) => {
1606
- const h = e(
1616
+ const p = e(
1607
1617
  "shiftZoomFromButton"
1608
- ), y = h.clientWidth, T = h.clientHeight;
1618
+ ), y = p.clientWidth, T = p.clientHeight;
1609
1619
  _(
1610
1620
  x,
1611
1621
  {
@@ -1617,11 +1627,11 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1617
1627
  },
1618
1628
  [e, _]
1619
1629
  ), C = G(
1620
- (x, h, y) => {
1630
+ (x, p, y) => {
1621
1631
  const { scale: T } = L.current;
1622
1632
  _(
1623
1633
  T + x,
1624
- h,
1634
+ p,
1625
1635
  y
1626
1636
  );
1627
1637
  },
@@ -1635,7 +1645,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1635
1645
  const x = v.current;
1636
1646
  if (!x)
1637
1647
  return;
1638
- const h = ($) => {
1648
+ const p = ($) => {
1639
1649
  $.preventDefault(), $.stopPropagation(), E.current = !0, k.current = {
1640
1650
  x: $.clientX,
1641
1651
  y: $.clientY
@@ -1657,16 +1667,16 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1657
1667
  }, T = () => {
1658
1668
  E.current = !1;
1659
1669
  };
1660
- return x.addEventListener("mousedown", h), document.addEventListener("mousemove", y), document.addEventListener("mouseleave", T), document.addEventListener("mouseup", T), document.addEventListener("contextmenu", T), () => {
1661
- x.removeEventListener("mousedown", h), document.removeEventListener("mousemove", y), document.removeEventListener("mouseleave", T), document.removeEventListener("mouseup", T), document.removeEventListener("contextmenu", T);
1670
+ return x.addEventListener("mousedown", p), document.addEventListener("mousemove", y), document.addEventListener("mouseleave", T), document.addEventListener("mouseup", T), document.addEventListener("contextmenu", T), () => {
1671
+ x.removeEventListener("mousedown", p), document.removeEventListener("mousemove", y), document.removeEventListener("mouseleave", T), document.removeEventListener("mouseup", T), document.removeEventListener("contextmenu", T);
1662
1672
  };
1663
1673
  }, [d, P, t]), ve(() => {
1664
1674
  if (t)
1665
1675
  return;
1666
- const x = c.current;
1676
+ const x = u.current;
1667
1677
  if (!x)
1668
1678
  return;
1669
- const h = (y) => {
1679
+ const p = (y) => {
1670
1680
  const { ctrlKey: T, clientX: $, clientY: I, deltaX: X, deltaY: V } = y;
1671
1681
  if (T) {
1672
1682
  if (!d && V >= 0)
@@ -1686,12 +1696,12 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1686
1696
  }
1687
1697
  y.preventDefault();
1688
1698
  };
1689
- return x.addEventListener("wheel", h), () => {
1690
- x.removeEventListener("wheel", h);
1699
+ return x.addEventListener("wheel", p), () => {
1700
+ x.removeEventListener("wheel", p);
1691
1701
  };
1692
1702
  }, [d, P, C, t]), ve(() => {
1693
- const x = c.current, h = v.current;
1694
- if (!x || !h)
1703
+ const x = u.current, p = v.current;
1704
+ if (!x || !p)
1695
1705
  return;
1696
1706
  const y = N.current, T = (X) => {
1697
1707
  for (let V = 0; V < X.changedTouches.length; V++) {
@@ -1732,13 +1742,13 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1732
1742
  }), y.set(z.identifier, z), y.set(H.identifier, H);
1733
1743
  }
1734
1744
  };
1735
- return h.addEventListener("touchstart", T), h.addEventListener("touchmove", I), h.addEventListener("touchend", $), h.addEventListener("touchcancel", $), () => {
1736
- h.removeEventListener("touchstart", T), h.removeEventListener("touchmove", I), h.removeEventListener("touchend", $), h.removeEventListener("touchcancel", $);
1745
+ return p.addEventListener("touchstart", T), p.addEventListener("touchmove", I), p.addEventListener("touchend", $), p.addEventListener("touchcancel", $), () => {
1746
+ p.removeEventListener("touchstart", T), p.removeEventListener("touchmove", I), p.removeEventListener("touchend", $), p.removeEventListener("touchcancel", $);
1737
1747
  };
1738
1748
  }, [d, P, C]), /* @__PURE__ */ a(
1739
1749
  "div",
1740
1750
  {
1741
- ref: c,
1751
+ ref: u,
1742
1752
  className: `relative size-full overflow-hidden ${d ? "z-zoomed-image cursor-move" : ""}`,
1743
1753
  children: /* @__PURE__ */ a(
1744
1754
  "div",
@@ -1788,11 +1798,11 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1788
1798
  item: o,
1789
1799
  analyticsValue: i
1790
1800
  }) => {
1791
- const { title: d, icon: l, description: c, detail: v, type: e } = t, { emitAnalyticsEvent: E } = je(), {
1801
+ const { title: d, icon: c, description: u, detail: v, type: e } = t, { emitAnalyticsEvent: E } = je(), {
1792
1802
  extendMode: k,
1793
1803
  setShownDetails: N,
1794
1804
  displayedCategoryId: L,
1795
- displayedCategoryName: p
1805
+ displayedCategoryName: h
1796
1806
  } = Ke(), n = G(
1797
1807
  (ne) => {
1798
1808
  const M = ne === "click" ? "Hotspot Clicked" : "Hotspot Hovered", le = ne === "click" ? "hotspot_clicked" : "hotspot_hovered";
@@ -1800,7 +1810,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1800
1810
  type: "interaction",
1801
1811
  current: {
1802
1812
  category_id: L,
1803
- category_name: p,
1813
+ category_name: h,
1804
1814
  item_type: o.item_type,
1805
1815
  item_position: o.item_position
1806
1816
  },
@@ -1814,7 +1824,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1814
1824
  [
1815
1825
  E,
1816
1826
  L,
1817
- p,
1827
+ h,
1818
1828
  o,
1819
1829
  i
1820
1830
  ]
@@ -1822,11 +1832,11 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1822
1832
  n("click");
1823
1833
  }, [n]), P = G(() => {
1824
1834
  n("hover");
1825
- }, [n]), { getIconConfig: _ } = gt(), w = l ? _(l) : void 0, C = !!v?.src?.trim(), x = v?.type === "image" && C, h = v?.type === "link" && C, y = v?.type === "pdf" && C, T = x || h || y, $ = !!c || T, I = !!d, X = Le(null), V = Le(null), z = Le(null), [H, R] = Ie(!1), q = T ? e === "damage" ? /* @__PURE__ */ a(jn, { className: "size-4" }) : /* @__PURE__ */ a(br, { className: "size-4" }) : /* @__PURE__ */ a("div", { className: "size-1" }), ce = () => {
1826
- $ && (b(), !(h || y) && N({
1835
+ }, [n]), { getIconConfig: _ } = vt(), w = c ? _(c) : void 0, C = !!v?.src?.trim(), x = v?.type === "image" && C, p = v?.type === "link" && C, y = v?.type === "pdf" && C, T = x || p || y, $ = !!u || T, I = !!d, X = Le(null), V = Le(null), z = Le(null), [H, R] = Ie(!1), q = T ? e === "damage" ? /* @__PURE__ */ a(jn, { className: "size-4" }) : /* @__PURE__ */ a(br, { className: "size-4" }) : /* @__PURE__ */ a("div", { className: "size-1" }), ce = () => {
1836
+ $ && (b(), !(p || y) && N({
1827
1837
  src: x ? v.src : void 0,
1828
1838
  title: d,
1829
- text: c
1839
+ text: u
1830
1840
  }));
1831
1841
  }, [U, D] = Ie(!1), J = G(() => {
1832
1842
  U || (D(!0), P());
@@ -1846,10 +1856,10 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1846
1856
  const Te = () => {
1847
1857
  j !== null && cancelAnimationFrame(j), j = requestAnimationFrame(() => {
1848
1858
  j = null;
1849
- const Ve = le.getBoundingClientRect(), we = ne.getBoundingClientRect(), u = M.getBoundingClientRect(), f = Ve.right - we.left, ee = we.right - Ve.left, oe = u.width;
1850
- let Q = !1;
1851
- f >= oe ? Q = !1 : ee >= oe ? Q = !0 : Q = ee >= f, R(
1852
- (g) => g === Q ? g : Q
1859
+ const Ve = le.getBoundingClientRect(), we = ne.getBoundingClientRect(), l = M.getBoundingClientRect(), f = Ve.right - we.left, Q = we.right - Ve.left, oe = l.width;
1860
+ let ee = !1;
1861
+ f >= oe ? ee = !1 : Q >= oe ? ee = !0 : ee = Q >= f, R(
1862
+ (g) => g === ee ? g : ee
1853
1863
  );
1854
1864
  });
1855
1865
  };
@@ -1907,7 +1917,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1907
1917
  }
1908
1918
  )
1909
1919
  ] });
1910
- return h || y ? /* @__PURE__ */ a(
1920
+ return p || y ? /* @__PURE__ */ a(
1911
1921
  "a",
1912
1922
  {
1913
1923
  className: F,
@@ -1938,18 +1948,18 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1938
1948
  }
1939
1949
  );
1940
1950
  }, _r = ({ hotspot: t, item: o }) => {
1941
- const { detail: i, title: d, description: l, position: c } = t, v = Ue(
1942
- () => d || l ? {
1951
+ const { detail: i, title: d, description: c, position: u } = t, v = Ue(
1952
+ () => d || c ? {
1943
1953
  ...d ? { title: d } : {},
1944
- ...l ? { description: l } : {}
1954
+ ...c ? { description: c } : {}
1945
1955
  } : void 0,
1946
- [d, l]
1956
+ [d, c]
1947
1957
  ), e = Ue(
1948
- () => v || c ? {
1958
+ () => v || u ? {
1949
1959
  ...v ? { text: v } : {},
1950
- ...c ? { position: c } : {}
1960
+ ...u ? { position: u } : {}
1951
1961
  } : void 0,
1952
- [v, c]
1962
+ [v, u]
1953
1963
  ), E = Ue(
1954
1964
  () => ({
1955
1965
  ...e ? { hotspot: e } : {},
@@ -1970,15 +1980,15 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1970
1980
  itemIndex: o,
1971
1981
  className: i,
1972
1982
  onLoad: d,
1973
- ...l
1983
+ ...c
1974
1984
  }) => {
1975
- const { isShowingDetails: c, currentItemHotspotsVisible: v, setItemInteraction: e } = Ke();
1985
+ const { isShowingDetails: u, currentItemHotspotsVisible: v, setItemInteraction: e } = Ke();
1976
1986
  return /* @__PURE__ */ a("div", { className: ue("relative size-full overflow-hidden", i), children: /* @__PURE__ */ me(
1977
1987
  "div",
1978
1988
  {
1979
1989
  className: ue(
1980
1990
  "size-full duration-details",
1981
- c ? "scale-105" : "scale-100"
1991
+ u ? "scale-105" : "scale-100"
1982
1992
  ),
1983
1993
  children: [
1984
1994
  /* @__PURE__ */ a(
@@ -1988,7 +1998,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1988
1998
  onLoad: (E) => {
1989
1999
  o !== void 0 && o >= 0 && e(o, "ready"), d?.(E);
1990
2000
  },
1991
- ...l
2001
+ ...c
1992
2002
  }
1993
2003
  ),
1994
2004
  v && t?.map((E, k) => /* @__PURE__ */ a(
@@ -2005,19 +2015,19 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
2005
2015
  ]
2006
2016
  }
2007
2017
  ) });
2008
- }, Kn = 100, ft = 100, mt = 50, $n = 0, Jn = 0, Qn = (t) => {
2009
- const [o, i] = Ie(0), [d, l] = Ie(!1);
2018
+ }, Kn = 100, ft = 100, gt = 50, $n = 0, Jn = 0, Qn = (t) => {
2019
+ const [o, i] = Ie(0), [d, c] = Ie(!1);
2010
2020
  return ve(() => {
2011
- const c = XMLHttpRequest.prototype.open, v = XMLHttpRequest.prototype.send;
2021
+ const u = XMLHttpRequest.prototype.open, v = XMLHttpRequest.prototype.send;
2012
2022
  let e = !1;
2013
- return XMLHttpRequest.prototype.open = function(E, k, N = !0, L, p) {
2014
- return k.toString().includes(t) && (e = !0, l(!0)), c.call(
2023
+ return XMLHttpRequest.prototype.open = function(E, k, N = !0, L, h) {
2024
+ return k.toString().includes(t) && (e = !0, c(!0)), u.call(
2015
2025
  this,
2016
2026
  E,
2017
2027
  k,
2018
2028
  N,
2019
2029
  L || null,
2020
- p || null
2030
+ h || null
2021
2031
  );
2022
2032
  }, XMLHttpRequest.prototype.send = function(E) {
2023
2033
  return e && (this.addEventListener("progress", (k) => {
@@ -2026,10 +2036,10 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
2026
2036
  i(N);
2027
2037
  }
2028
2038
  }), this.addEventListener("loadend", () => {
2029
- e = !1, i(100), l(!1);
2039
+ e = !1, i(100), c(!1);
2030
2040
  })), v.call(this, E);
2031
2041
  }, () => {
2032
- XMLHttpRequest.prototype.open = c, XMLHttpRequest.prototype.send = v;
2042
+ XMLHttpRequest.prototype.open = u, XMLHttpRequest.prototype.send = v;
2033
2043
  };
2034
2044
  }, [t]), [o, d];
2035
2045
  };
@@ -2037,42 +2047,42 @@ window.libpannellum = (function(t, o, i) {
2037
2047
  function d(N) {
2038
2048
  var L = o.createElement("canvas");
2039
2049
  L.style.width = L.style.height = "100%", N.appendChild(L);
2040
- var p, n, b, P, _, w, C, x, h, y, T, $, I, X, V, z;
2041
- this.init = function(u, f, ee, oe, Q, g, ae, re) {
2050
+ var h, n, b, P, _, w, C, x, p, y, T, $, I, X, V, z;
2051
+ this.init = function(l, f, Q, oe, ee, g, ae, re) {
2042
2052
  if (f === i && (f = "equirectangular"), f != "equirectangular" && f != "cubemap" && f != "multires")
2043
2053
  throw console.log("Error: invalid image type specified!"), { type: "config error" };
2044
- if (y = f, h = u, T = ee, z = re || {}, p) {
2045
- if (b && (n.detachShader(p, b), n.deleteShader(b)), P && (n.detachShader(p, P), n.deleteShader(P)), n.bindBuffer(n.ARRAY_BUFFER, null), n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, null), p.texture && n.deleteTexture(p.texture), p.nodeCache)
2046
- for (var xe = 0; xe < p.nodeCache.length; xe++)
2047
- n.deleteTexture(p.nodeCache[xe].texture);
2048
- n.deleteProgram(p), p = i;
2054
+ if (y = f, p = l, T = Q, z = re || {}, h) {
2055
+ if (b && (n.detachShader(h, b), n.deleteShader(b)), P && (n.detachShader(h, P), n.deleteShader(P)), n.bindBuffer(n.ARRAY_BUFFER, null), n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, null), h.texture && n.deleteTexture(h.texture), h.nodeCache)
2056
+ for (var xe = 0; xe < h.nodeCache.length; xe++)
2057
+ n.deleteTexture(h.nodeCache[xe].texture);
2058
+ n.deleteProgram(h), h = i;
2049
2059
  }
2050
2060
  x = i;
2051
- var pe, Ge = !1, He;
2061
+ var he, Ge = !1, He;
2052
2062
  if (y == "cubemap")
2053
- for (pe = 0; pe < 6; pe++)
2054
- h[pe].width > 0 ? (He === i && (He = h[pe].width), He != h[pe].width && console.log("Cube faces have inconsistent widths: " + He + " vs. " + h[pe].width)) : Ge = !0;
2063
+ for (he = 0; he < 6; he++)
2064
+ p[he].width > 0 ? (He === i && (He = p[he].width), He != p[he].width && console.log("Cube faces have inconsistent widths: " + He + " vs. " + p[he].width)) : Ge = !0;
2055
2065
  function ge(se) {
2056
2066
  if (Ge) {
2057
- var A = se * se * 4, he = new Uint8ClampedArray(A), _e = re.backgroundColor ? re.backgroundColor : [0, 0, 0];
2067
+ var A = se * se * 4, pe = new Uint8ClampedArray(A), _e = re.backgroundColor ? re.backgroundColor : [0, 0, 0];
2058
2068
  _e[0] *= 255, _e[1] *= 255, _e[2] *= 255;
2059
2069
  for (var Ee = 0; Ee < A; Ee++)
2060
- he[Ee++] = _e[0], he[Ee++] = _e[1], he[Ee++] = _e[2];
2061
- var Fe = new ImageData(he, se, se);
2062
- for (pe = 0; pe < 6; pe++)
2063
- h[pe].width == 0 && (h[pe] = Fe);
2070
+ pe[Ee++] = _e[0], pe[Ee++] = _e[1], pe[Ee++] = _e[2];
2071
+ var Fe = new ImageData(pe, se, se);
2072
+ for (he = 0; he < 6; he++)
2073
+ p[he].width == 0 && (p[he] = Fe);
2064
2074
  }
2065
2075
  }
2066
- if (y == "cubemap" && (He & He - 1) !== 0 && (navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/) || navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 9_/) || navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 10_/) || navigator.userAgent.match(/Trident.*rv[ :]*11\./)) || (n || (n = L.getContext("experimental-webgl", { alpha: !1, depth: !1 })), n && n.getError() == 1286 && we()), !n && (y == "multires" && h.hasOwnProperty("fallbackPath") || y == "cubemap") && ("WebkitAppearance" in o.documentElement.style || navigator.userAgent.match(/Trident.*rv[ :]*11\./) || navigator.appVersion.indexOf("MSIE 10") !== -1)) {
2076
+ if (y == "cubemap" && (He & He - 1) !== 0 && (navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/) || navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 9_/) || navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 10_/) || navigator.userAgent.match(/Trident.*rv[ :]*11\./)) || (n || (n = L.getContext("experimental-webgl", { alpha: !1, depth: !1 })), n && n.getError() == 1286 && we()), !n && (y == "multires" && p.hasOwnProperty("fallbackPath") || y == "cubemap") && ("WebkitAppearance" in o.documentElement.style || navigator.userAgent.match(/Trident.*rv[ :]*11\./) || navigator.appVersion.indexOf("MSIE 10") !== -1)) {
2067
2077
  w && N.removeChild(w), w = o.createElement("div"), w.className = "pnlm-world";
2068
2078
  var ye;
2069
- h.basePath ? ye = h.basePath + h.fallbackPath : ye = h.fallbackPath;
2079
+ p.basePath ? ye = p.basePath + p.fallbackPath : ye = p.fallbackPath;
2070
2080
  var Ce = ["f", "r", "b", "l", "u", "d"], Pe = 0, Ne = function() {
2071
2081
  var A = o.createElement("canvas");
2072
2082
  A.className = "pnlm-face pnlm-" + Ce[this.side] + "face", w.appendChild(A);
2073
- var he = A.getContext("2d");
2074
- A.style.width = this.width + 4 + "px", A.style.height = this.height + 4 + "px", A.width = this.width + 4, A.height = this.height + 4, he.drawImage(this, 2, 2);
2075
- var _e = he.getImageData(0, 0, A.width, A.height), Ee = _e.data, Fe, de;
2083
+ var pe = A.getContext("2d");
2084
+ A.style.width = this.width + 4 + "px", A.style.height = this.height + 4 + "px", A.width = this.width + 4, A.height = this.height + 4, pe.drawImage(this, 2, 2);
2085
+ var _e = pe.getImageData(0, 0, A.width, A.height), Ee = _e.data, Fe, de;
2076
2086
  for (Fe = 2; Fe < A.width - 2; Fe++)
2077
2087
  for (de = 0; de < 4; de++)
2078
2088
  Ee[(Fe + A.width) * 4 + de] = Ee[(Fe + A.width * 2) * 4 + de], Ee[(Fe + A.width * (A.height - 2)) * 4 + de] = Ee[(Fe + A.width * (A.height - 3)) * 4 + de];
@@ -2089,54 +2099,54 @@ window.libpannellum = (function(t, o, i) {
2089
2099
  Ee[Fe * A.width * 4 + de] = Ee[(Fe * A.width + 1) * 4 + de], Ee[((Fe + 1) * A.width - 1) * 4 + de] = Ee[((Fe + 1) * A.width - 2) * 4 + de];
2090
2100
  for (de = 0; de < 4; de++)
2091
2101
  Ee[de] = Ee[(A.width + 1) * 4 + de], Ee[(A.width - 1) * 4 + de] = Ee[(A.width * 2 - 2) * 4 + de], Ee[A.width * (A.height - 1) * 4 + de] = Ee[(A.width * (A.height - 2) + 1) * 4 + de], Ee[(A.width * A.height - 1) * 4 + de] = Ee[(A.width * (A.height - 1) - 2) * 4 + de];
2092
- he.putImageData(_e, 0, 0), Be.call(this);
2102
+ pe.putImageData(_e, 0, 0), Be.call(this);
2093
2103
  }, Be = function() {
2094
2104
  this.width > 0 ? (_ === i && (_ = this.width), _ != this.width && console.log("Fallback faces have inconsistent widths: " + _ + " vs. " + this.width)) : Ge = !0, Pe++, Pe == 6 && (_ = this.width, N.appendChild(w), ae());
2095
2105
  };
2096
- for (Ge = !1, pe = 0; pe < 6; pe++) {
2106
+ for (Ge = !1, he = 0; he < 6; he++) {
2097
2107
  var We = new Image();
2098
- We.crossOrigin = z.crossOrigin ? z.crossOrigin : "anonymous", We.side = pe, We.onload = Ne, We.onerror = Be, y == "multires" ? We.src = encodeURI(ye.replace("%s", Ce[pe]) + "." + h.extension) : We.src = encodeURI(h[pe].src);
2108
+ We.crossOrigin = z.crossOrigin ? z.crossOrigin : "anonymous", We.side = he, We.onload = Ne, We.onerror = Be, y == "multires" ? We.src = encodeURI(ye.replace("%s", Ce[he]) + "." + p.extension) : We.src = encodeURI(p[he].src);
2099
2109
  }
2100
2110
  ge(_);
2101
2111
  return;
2102
2112
  } else if (!n)
2103
2113
  throw console.log("Error: no WebGL support detected!"), { type: "no webgl" };
2104
- y == "cubemap" && ge(He), h.basePath ? h.fullpath = h.basePath + h.path : h.fullpath = h.path, h.invTileResolution = 1 / h.tileResolution;
2114
+ y == "cubemap" && ge(He), p.basePath ? p.fullpath = p.basePath + p.path : p.fullpath = p.path, p.invTileResolution = 1 / p.tileResolution;
2105
2115
  var ke = D();
2106
- for (C = [], pe = 0; pe < 6; pe++)
2107
- C[pe] = ke.slice(pe * 12, pe * 12 + 12), ke = D();
2116
+ for (C = [], he = 0; he < 6; he++)
2117
+ C[he] = ke.slice(he * 12, he * 12 + 12), ke = D();
2108
2118
  var Se = 0, Xe = 0;
2109
- if (y == "equirectangular" ? (Se = Math.max(h.width, h.height), Xe = n.getParameter(n.MAX_TEXTURE_SIZE)) : y == "cubemap" && (Se = He, Xe = n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE)), Se > Xe)
2119
+ if (y == "equirectangular" ? (Se = Math.max(p.width, p.height), Xe = n.getParameter(n.MAX_TEXTURE_SIZE)) : y == "cubemap" && (Se = He, Xe = n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE)), Se > Xe)
2110
2120
  throw console.log("Error: The image is too big; it's " + Se + "px wide, but this device's maximum supported size is " + Xe + "px."), { type: "webgl size error", width: Se, maxWidth: Xe };
2111
2121
  re !== i && (re.horizonPitch !== i || re.horizonRoll !== i) && (x = [re.horizonPitch == i ? 0 : re.horizonPitch, re.horizonRoll == i ? 0 : re.horizonRoll]);
2112
2122
  var De = n.TEXTURE_2D;
2113
2123
  n.viewport(0, 0, n.drawingBufferWidth, n.drawingBufferHeight), b = n.createShader(n.VERTEX_SHADER);
2114
- var Ze = l;
2115
- y == "multires" && (Ze = c), n.shaderSource(b, Ze), n.compileShader(b), P = n.createShader(n.FRAGMENT_SHADER);
2124
+ var Ze = c;
2125
+ y == "multires" && (Ze = u), n.shaderSource(b, Ze), n.compileShader(b), P = n.createShader(n.FRAGMENT_SHADER);
2116
2126
  var Ae = E;
2117
- y == "cubemap" ? (De = n.TEXTURE_CUBE_MAP, Ae = e) : y == "multires" && (Ae = k), n.shaderSource(P, Ae), n.compileShader(P), p = n.createProgram(), n.attachShader(p, b), n.attachShader(p, P), n.linkProgram(p), n.getShaderParameter(b, n.COMPILE_STATUS) || console.log(n.getShaderInfoLog(b)), n.getShaderParameter(P, n.COMPILE_STATUS) || console.log(n.getShaderInfoLog(P)), n.getProgramParameter(p, n.LINK_STATUS) || console.log(n.getProgramInfoLog(p)), n.useProgram(p), p.drawInProgress = !1;
2127
+ y == "cubemap" ? (De = n.TEXTURE_CUBE_MAP, Ae = e) : y == "multires" && (Ae = k), n.shaderSource(P, Ae), n.compileShader(P), h = n.createProgram(), n.attachShader(h, b), n.attachShader(h, P), n.linkProgram(h), n.getShaderParameter(b, n.COMPILE_STATUS) || console.log(n.getShaderInfoLog(b)), n.getShaderParameter(P, n.COMPILE_STATUS) || console.log(n.getShaderInfoLog(P)), n.getProgramParameter(h, n.LINK_STATUS) || console.log(n.getProgramInfoLog(h)), n.useProgram(h), h.drawInProgress = !1;
2118
2128
  var Re = re.backgroundColor ? re.backgroundColor : [0, 0, 0];
2119
- n.clearColor(Re[0], Re[1], Re[2], 1), n.clear(n.COLOR_BUFFER_BIT), p.texCoordLocation = n.getAttribLocation(p, "a_texCoord"), n.enableVertexAttribArray(p.texCoordLocation), y != "multires" ? ($ || ($ = n.createBuffer()), n.bindBuffer(n.ARRAY_BUFFER, $), n.bufferData(n.ARRAY_BUFFER, new Float32Array([-1, 1, 1, 1, 1, -1, -1, 1, 1, -1, -1, -1]), n.STATIC_DRAW), n.vertexAttribPointer(p.texCoordLocation, 2, n.FLOAT, !1, 0, 0), p.aspectRatio = n.getUniformLocation(p, "u_aspectRatio"), n.uniform1f(p.aspectRatio, n.drawingBufferWidth / n.drawingBufferHeight), p.psi = n.getUniformLocation(p, "u_psi"), p.theta = n.getUniformLocation(p, "u_theta"), p.f = n.getUniformLocation(p, "u_f"), p.h = n.getUniformLocation(p, "u_h"), p.v = n.getUniformLocation(p, "u_v"), p.vo = n.getUniformLocation(p, "u_vo"), p.rot = n.getUniformLocation(p, "u_rot"), n.uniform1f(p.h, oe / (Math.PI * 2)), n.uniform1f(p.v, Q / Math.PI), n.uniform1f(p.vo, g / Math.PI * 2), y == "equirectangular" && (p.backgroundColor = n.getUniformLocation(p, "u_backgroundColor"), n.uniform4fv(p.backgroundColor, Re.concat([1]))), p.texture = n.createTexture(), n.bindTexture(De, p.texture), y == "cubemap" ? (n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[1]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_X, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[3]), n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_Y, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[4]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[5]), n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_Z, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[0]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_Z, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[2])) : n.texImage2D(De, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h), n.texParameteri(De, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(De, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), n.texParameteri(De, n.TEXTURE_MIN_FILTER, n.LINEAR), n.texParameteri(De, n.TEXTURE_MAG_FILTER, n.LINEAR)) : (p.vertPosLocation = n.getAttribLocation(p, "a_vertCoord"), n.enableVertexAttribArray(p.vertPosLocation), I || (I = n.createBuffer()), X || (X = n.createBuffer()), V || (V = n.createBuffer()), n.bindBuffer(n.ARRAY_BUFFER, X), n.bufferData(n.ARRAY_BUFFER, new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]), n.STATIC_DRAW), n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, V), n.bufferData(n.ELEMENT_ARRAY_BUFFER, new Uint16Array([0, 1, 2, 0, 2, 3]), n.STATIC_DRAW), p.perspUniform = n.getUniformLocation(p, "u_perspMatrix"), p.cubeUniform = n.getUniformLocation(p, "u_cubeMatrix"), p.level = -1, p.currentNodes = [], p.nodeCache = [], p.nodeCacheTimestamp = 0);
2129
+ n.clearColor(Re[0], Re[1], Re[2], 1), n.clear(n.COLOR_BUFFER_BIT), h.texCoordLocation = n.getAttribLocation(h, "a_texCoord"), n.enableVertexAttribArray(h.texCoordLocation), y != "multires" ? ($ || ($ = n.createBuffer()), n.bindBuffer(n.ARRAY_BUFFER, $), n.bufferData(n.ARRAY_BUFFER, new Float32Array([-1, 1, 1, 1, 1, -1, -1, 1, 1, -1, -1, -1]), n.STATIC_DRAW), n.vertexAttribPointer(h.texCoordLocation, 2, n.FLOAT, !1, 0, 0), h.aspectRatio = n.getUniformLocation(h, "u_aspectRatio"), n.uniform1f(h.aspectRatio, n.drawingBufferWidth / n.drawingBufferHeight), h.psi = n.getUniformLocation(h, "u_psi"), h.theta = n.getUniformLocation(h, "u_theta"), h.f = n.getUniformLocation(h, "u_f"), h.h = n.getUniformLocation(h, "u_h"), h.v = n.getUniformLocation(h, "u_v"), h.vo = n.getUniformLocation(h, "u_vo"), h.rot = n.getUniformLocation(h, "u_rot"), n.uniform1f(h.h, oe / (Math.PI * 2)), n.uniform1f(h.v, ee / Math.PI), n.uniform1f(h.vo, g / Math.PI * 2), y == "equirectangular" && (h.backgroundColor = n.getUniformLocation(h, "u_backgroundColor"), n.uniform4fv(h.backgroundColor, Re.concat([1]))), h.texture = n.createTexture(), n.bindTexture(De, h.texture), y == "cubemap" ? (n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, p[1]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_X, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, p[3]), n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_Y, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, p[4]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, p[5]), n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_Z, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, p[0]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_Z, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, p[2])) : n.texImage2D(De, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, p), n.texParameteri(De, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(De, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), n.texParameteri(De, n.TEXTURE_MIN_FILTER, n.LINEAR), n.texParameteri(De, n.TEXTURE_MAG_FILTER, n.LINEAR)) : (h.vertPosLocation = n.getAttribLocation(h, "a_vertCoord"), n.enableVertexAttribArray(h.vertPosLocation), I || (I = n.createBuffer()), X || (X = n.createBuffer()), V || (V = n.createBuffer()), n.bindBuffer(n.ARRAY_BUFFER, X), n.bufferData(n.ARRAY_BUFFER, new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]), n.STATIC_DRAW), n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, V), n.bufferData(n.ELEMENT_ARRAY_BUFFER, new Uint16Array([0, 1, 2, 0, 2, 3]), n.STATIC_DRAW), h.perspUniform = n.getUniformLocation(h, "u_perspMatrix"), h.cubeUniform = n.getUniformLocation(h, "u_cubeMatrix"), h.level = -1, h.currentNodes = [], h.nodeCache = [], h.nodeCacheTimestamp = 0);
2120
2130
  var O = n.getError();
2121
2131
  if (O !== 0)
2122
2132
  throw console.log("Error: Something went wrong with WebGL!", O), { type: "webgl error" };
2123
2133
  ae();
2124
2134
  }, this.destroy = function() {
2125
2135
  if (N !== i && (L !== i && N.contains(L) && N.removeChild(L), w !== i && N.contains(w) && N.removeChild(w)), n) {
2126
- var u = n.getExtension("WEBGL_lose_context");
2127
- u && u.loseContext();
2136
+ var l = n.getExtension("WEBGL_lose_context");
2137
+ l && l.loseContext();
2128
2138
  }
2129
2139
  }, this.resize = function() {
2130
- var u = t.devicePixelRatio || 1;
2131
- L.width = L.clientWidth * u, L.height = L.clientHeight * u, n && (n.getError() == 1286 && we(), n.viewport(0, 0, n.drawingBufferWidth, n.drawingBufferHeight), y != "multires" && n.uniform1f(p.aspectRatio, L.clientWidth / L.clientHeight));
2132
- }, this.resize(), this.setPose = function(u, f) {
2133
- x = [u, f];
2134
- }, this.render = function(u, f, ee, oe) {
2135
- var Q, g, ae, re = 0;
2140
+ var l = t.devicePixelRatio || 1;
2141
+ L.width = L.clientWidth * l, L.height = L.clientHeight * l, n && (n.getError() == 1286 && we(), n.viewport(0, 0, n.drawingBufferWidth, n.drawingBufferHeight), y != "multires" && n.uniform1f(h.aspectRatio, L.clientWidth / L.clientHeight));
2142
+ }, this.resize(), this.setPose = function(l, f) {
2143
+ x = [l, f];
2144
+ }, this.render = function(l, f, Q, oe) {
2145
+ var ee, g, ae, re = 0;
2136
2146
  if (oe === i && (oe = {}), oe.roll && (re = oe.roll), x !== i) {
2137
- var xe = x[0], pe = x[1], Ge = u, He = f, ge = Math.cos(pe) * Math.sin(u) * Math.sin(xe) + Math.cos(u) * (Math.cos(xe) * Math.cos(f) + Math.sin(pe) * Math.sin(xe) * Math.sin(f)), ye = -Math.sin(u) * Math.sin(pe) + Math.cos(u) * Math.cos(pe) * Math.sin(f), Ce = Math.cos(pe) * Math.cos(xe) * Math.sin(u) + Math.cos(u) * (-Math.cos(f) * Math.sin(xe) + Math.cos(xe) * Math.sin(pe) * Math.sin(f));
2138
- u = Math.asin(Math.max(Math.min(Ce, 1), -1)), f = Math.atan2(ye, ge);
2139
- var Pe = [Math.cos(Ge) * (Math.sin(pe) * Math.sin(xe) * Math.cos(He) - Math.cos(xe) * Math.sin(He)), Math.cos(Ge) * Math.cos(pe) * Math.cos(He), Math.cos(Ge) * (Math.cos(xe) * Math.sin(pe) * Math.cos(He) + Math.sin(He) * Math.sin(xe))], Ne = [-Math.cos(u) * Math.sin(f), Math.cos(u) * Math.cos(f)], Be = Math.acos(Math.max(Math.min((Pe[0] * Ne[0] + Pe[1] * Ne[1]) / (Math.sqrt(Pe[0] * Pe[0] + Pe[1] * Pe[1] + Pe[2] * Pe[2]) * Math.sqrt(Ne[0] * Ne[0] + Ne[1] * Ne[1])), 1), -1));
2147
+ var xe = x[0], he = x[1], Ge = l, He = f, ge = Math.cos(he) * Math.sin(l) * Math.sin(xe) + Math.cos(l) * (Math.cos(xe) * Math.cos(f) + Math.sin(he) * Math.sin(xe) * Math.sin(f)), ye = -Math.sin(l) * Math.sin(he) + Math.cos(l) * Math.cos(he) * Math.sin(f), Ce = Math.cos(he) * Math.cos(xe) * Math.sin(l) + Math.cos(l) * (-Math.cos(f) * Math.sin(xe) + Math.cos(xe) * Math.sin(he) * Math.sin(f));
2148
+ l = Math.asin(Math.max(Math.min(Ce, 1), -1)), f = Math.atan2(ye, ge);
2149
+ var Pe = [Math.cos(Ge) * (Math.sin(he) * Math.sin(xe) * Math.cos(He) - Math.cos(xe) * Math.sin(He)), Math.cos(Ge) * Math.cos(he) * Math.cos(He), Math.cos(Ge) * (Math.cos(xe) * Math.sin(he) * Math.cos(He) + Math.sin(He) * Math.sin(xe))], Ne = [-Math.cos(l) * Math.sin(f), Math.cos(l) * Math.cos(f)], Be = Math.acos(Math.max(Math.min((Pe[0] * Ne[0] + Pe[1] * Ne[1]) / (Math.sqrt(Pe[0] * Pe[0] + Pe[1] * Pe[1] + Pe[2] * Pe[2]) * Math.sqrt(Ne[0] * Ne[0] + Ne[1] * Ne[1])), 1), -1));
2140
2150
  Pe[2] < 0 && (Be = 2 * Math.PI - Be), re += Be;
2141
2151
  }
2142
2152
  if (!n && (y == "multires" || y == "cubemap")) {
@@ -2149,8 +2159,8 @@ window.libpannellum = (function(t, o, i) {
2149
2159
  l: "translate3d(-" + ae + "px, -" + (ae + 2) + "px, " + (ae + 2) + "px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",
2150
2160
  r: "translate3d(" + ae + "px, -" + (ae + 2) + "px, -" + (ae + 2) + "px) rotateY(270deg)"
2151
2161
  };
2152
- Q = 1 / Math.tan(ee / 2);
2153
- var ke = Q * L.clientWidth / 2 + "px", Se = "perspective(" + ke + ") translateZ(" + ke + ") rotateX(" + u + "rad) rotateY(" + f + "rad) ", Xe = Object.keys(We);
2162
+ ee = 1 / Math.tan(Q / 2);
2163
+ var ke = ee * L.clientWidth / 2 + "px", Se = "perspective(" + ke + ") translateZ(" + ke + ") rotateX(" + l + "rad) rotateY(" + f + "rad) ", Xe = Object.keys(We);
2154
2164
  for (g = 0; g < 6; g++) {
2155
2165
  var De = w.querySelector(".pnlm-" + Xe[g] + "face");
2156
2166
  De && (De.style.webkitTransform = Se + We[Xe[g]], De.style.transform = Se + We[Xe[g]]);
@@ -2158,28 +2168,28 @@ window.libpannellum = (function(t, o, i) {
2158
2168
  return;
2159
2169
  }
2160
2170
  if (y != "multires") {
2161
- var Ze = 2 * Math.atan(Math.tan(ee * 0.5) / (n.drawingBufferWidth / n.drawingBufferHeight));
2162
- Q = 1 / Math.tan(Ze * 0.5), n.uniform1f(p.psi, f), n.uniform1f(p.theta, u), n.uniform1f(p.rot, re), n.uniform1f(p.f, Q), T === !0 && y == "equirectangular" && (n.bindTexture(n.TEXTURE_2D, p.texture), n.texImage2D(n.TEXTURE_2D, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h)), n.drawArrays(n.TRIANGLES, 0, 6);
2171
+ var Ze = 2 * Math.atan(Math.tan(Q * 0.5) / (n.drawingBufferWidth / n.drawingBufferHeight));
2172
+ ee = 1 / Math.tan(Ze * 0.5), n.uniform1f(h.psi, f), n.uniform1f(h.theta, l), n.uniform1f(h.rot, re), n.uniform1f(h.f, ee), T === !0 && y == "equirectangular" && (n.bindTexture(n.TEXTURE_2D, h.texture), n.texImage2D(n.TEXTURE_2D, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, p)), n.drawArrays(n.TRIANGLES, 0, 6);
2163
2173
  } else {
2164
- var Ae = F(ee, n.drawingBufferWidth / n.drawingBufferHeight, 0.1, 100);
2165
- le(ee);
2174
+ var Ae = F(Q, n.drawingBufferWidth / n.drawingBufferHeight, 0.1, 100);
2175
+ le(Q);
2166
2176
  var Re = J();
2167
- Re = S(Re, -re, "z"), Re = S(Re, -u, "x"), Re = S(Re, f, "y"), Re = B(Re), n.uniformMatrix4fv(p.perspUniform, !1, new Float32Array(ie(Ae))), n.uniformMatrix4fv(p.cubeUniform, !1, new Float32Array(ie(Re)));
2177
+ Re = S(Re, -re, "z"), Re = S(Re, -l, "x"), Re = S(Re, f, "y"), Re = B(Re), n.uniformMatrix4fv(h.perspUniform, !1, new Float32Array(ie(Ae))), n.uniformMatrix4fv(h.cubeUniform, !1, new Float32Array(ie(Re)));
2168
2178
  var O = j(Ae, Re);
2169
- if (p.nodeCache.sort(H), p.nodeCache.length > 200 && p.nodeCache.length > p.currentNodes.length + 50)
2170
- for (var se = p.nodeCache.splice(200, p.nodeCache.length - 200), g = 0; g < se.length; g++)
2179
+ if (h.nodeCache.sort(H), h.nodeCache.length > 200 && h.nodeCache.length > h.currentNodes.length + 50)
2180
+ for (var se = h.nodeCache.splice(200, h.nodeCache.length - 200), g = 0; g < se.length; g++)
2171
2181
  n.deleteTexture(se[g].texture);
2172
- p.currentNodes = [];
2182
+ h.currentNodes = [];
2173
2183
  var A = ["f", "b", "u", "d", "l", "r"];
2174
2184
  for (ae = 0; ae < 6; ae++) {
2175
- var he = new ce(C[ae], A[ae], 1, 0, 0, h.fullpath);
2176
- U(O, he, u, f);
2185
+ var pe = new ce(C[ae], A[ae], 1, 0, 0, p.fullpath);
2186
+ U(O, pe, l, f);
2177
2187
  }
2178
- for (p.currentNodes.sort(R), g = K.length - 1; g >= 0; g--)
2179
- p.currentNodes.indexOf(K[g].node) === -1 && (K[g].node.textureLoad = !1, K.splice(g, 1));
2188
+ for (h.currentNodes.sort(R), g = K.length - 1; g >= 0; g--)
2189
+ h.currentNodes.indexOf(K[g].node) === -1 && (K[g].node.textureLoad = !1, K.splice(g, 1));
2180
2190
  if (K.length === 0)
2181
- for (g = 0; g < p.currentNodes.length; g++) {
2182
- var _e = p.currentNodes[g];
2191
+ for (g = 0; g < h.currentNodes.length; g++) {
2192
+ var _e = h.currentNodes[g];
2183
2193
  if (!_e.texture && !_e.textureLoad) {
2184
2194
  _e.textureLoad = !0, setTimeout(M, 0, _e);
2185
2195
  break;
@@ -2191,49 +2201,49 @@ window.libpannellum = (function(t, o, i) {
2191
2201
  return L.toDataURL("image/png");
2192
2202
  }, this.isLoading = function() {
2193
2203
  if (n && y == "multires") {
2194
- for (var u = 0; u < p.currentNodes.length; u++)
2195
- if (!p.currentNodes[u].textureLoaded)
2204
+ for (var l = 0; l < h.currentNodes.length; l++)
2205
+ if (!h.currentNodes[l].textureLoaded)
2196
2206
  return !0;
2197
2207
  }
2198
2208
  return !1;
2199
2209
  }, this.getCanvas = function() {
2200
2210
  return L;
2201
2211
  };
2202
- function H(u, f) {
2203
- return u.level == 1 && f.level != 1 ? -1 : f.level == 1 && u.level != 1 ? 1 : f.timestamp - u.timestamp;
2212
+ function H(l, f) {
2213
+ return l.level == 1 && f.level != 1 ? -1 : f.level == 1 && l.level != 1 ? 1 : f.timestamp - l.timestamp;
2204
2214
  }
2205
- function R(u, f) {
2206
- return u.level != f.level ? u.level - f.level : u.diff - f.diff;
2215
+ function R(l, f) {
2216
+ return l.level != f.level ? l.level - f.level : l.diff - f.diff;
2207
2217
  }
2208
2218
  function q() {
2209
- if (!p.drawInProgress) {
2210
- p.drawInProgress = !0, n.clear(n.COLOR_BUFFER_BIT);
2211
- for (var u = 0; u < p.currentNodes.length; u++)
2212
- p.currentNodes[u].textureLoaded > 1 && (n.bindBuffer(n.ARRAY_BUFFER, I), n.bufferData(n.ARRAY_BUFFER, new Float32Array(p.currentNodes[u].vertices), n.STATIC_DRAW), n.vertexAttribPointer(p.vertPosLocation, 3, n.FLOAT, !1, 0, 0), n.bindBuffer(n.ARRAY_BUFFER, X), n.vertexAttribPointer(p.texCoordLocation, 2, n.FLOAT, !1, 0, 0), n.bindTexture(n.TEXTURE_2D, p.currentNodes[u].texture), n.drawElements(n.TRIANGLES, 6, n.UNSIGNED_SHORT, 0));
2213
- p.drawInProgress = !1;
2219
+ if (!h.drawInProgress) {
2220
+ h.drawInProgress = !0, n.clear(n.COLOR_BUFFER_BIT);
2221
+ for (var l = 0; l < h.currentNodes.length; l++)
2222
+ h.currentNodes[l].textureLoaded > 1 && (n.bindBuffer(n.ARRAY_BUFFER, I), n.bufferData(n.ARRAY_BUFFER, new Float32Array(h.currentNodes[l].vertices), n.STATIC_DRAW), n.vertexAttribPointer(h.vertPosLocation, 3, n.FLOAT, !1, 0, 0), n.bindBuffer(n.ARRAY_BUFFER, X), n.vertexAttribPointer(h.texCoordLocation, 2, n.FLOAT, !1, 0, 0), n.bindTexture(n.TEXTURE_2D, h.currentNodes[l].texture), n.drawElements(n.TRIANGLES, 6, n.UNSIGNED_SHORT, 0));
2223
+ h.drawInProgress = !1;
2214
2224
  }
2215
2225
  }
2216
- function ce(u, f, ee, oe, Q, g) {
2217
- this.vertices = u, this.side = f, this.level = ee, this.x = oe, this.y = Q, this.path = g.replace("%s", f).replace("%l", ee).replace("%x", oe).replace("%y", Q);
2226
+ function ce(l, f, Q, oe, ee, g) {
2227
+ this.vertices = l, this.side = f, this.level = Q, this.x = oe, this.y = ee, this.path = g.replace("%s", f).replace("%l", Q).replace("%x", oe).replace("%y", ee);
2218
2228
  }
2219
- function U(u, f, ee, oe, Q) {
2220
- if (Ve(u, f.vertices)) {
2221
- var g = f.vertices, ae = g[0] + g[3] + g[6] + g[9], re = g[1] + g[4] + g[7] + g[10], xe = g[2] + g[5] + g[8] + g[11], pe = Math.sqrt(ae * ae + re * re + xe * xe), Ge = Math.asin(xe / pe), He = Math.atan2(re, ae), ge = He - oe;
2222
- ge += ge > Math.PI ? -2 * Math.PI : ge < -Math.PI ? 2 * Math.PI : 0, ge = Math.abs(ge), f.diff = Math.acos(Math.sin(ee) * Math.sin(Ge) + Math.cos(ee) * Math.cos(Ge) * Math.cos(ge));
2223
- for (var ye = !1, Ce = 0; Ce < p.nodeCache.length; Ce++)
2224
- if (p.nodeCache[Ce].path == f.path) {
2225
- ye = !0, p.nodeCache[Ce].timestamp = p.nodeCacheTimestamp++, p.nodeCache[Ce].diff = f.diff, p.currentNodes.push(p.nodeCache[Ce]);
2229
+ function U(l, f, Q, oe, ee) {
2230
+ if (Ve(l, f.vertices)) {
2231
+ var g = f.vertices, ae = g[0] + g[3] + g[6] + g[9], re = g[1] + g[4] + g[7] + g[10], xe = g[2] + g[5] + g[8] + g[11], he = Math.sqrt(ae * ae + re * re + xe * xe), Ge = Math.asin(xe / he), He = Math.atan2(re, ae), ge = He - oe;
2232
+ ge += ge > Math.PI ? -2 * Math.PI : ge < -Math.PI ? 2 * Math.PI : 0, ge = Math.abs(ge), f.diff = Math.acos(Math.sin(Q) * Math.sin(Ge) + Math.cos(Q) * Math.cos(Ge) * Math.cos(ge));
2233
+ for (var ye = !1, Ce = 0; Ce < h.nodeCache.length; Ce++)
2234
+ if (h.nodeCache[Ce].path == f.path) {
2235
+ ye = !0, h.nodeCache[Ce].timestamp = h.nodeCacheTimestamp++, h.nodeCache[Ce].diff = f.diff, h.currentNodes.push(h.nodeCache[Ce]);
2226
2236
  break;
2227
2237
  }
2228
- if (ye || (f.timestamp = p.nodeCacheTimestamp++, p.currentNodes.push(f), p.nodeCache.push(f)), f.level < p.level) {
2229
- var Pe = h.cubeResolution * Math.pow(2, f.level - h.maxLevel), Ne = Math.ceil(Pe * h.invTileResolution) - 1, Be = Pe % h.tileResolution * 2, We = Pe * 2 % h.tileResolution;
2230
- We === 0 && (We = h.tileResolution), Be === 0 && (Be = h.tileResolution * 2);
2238
+ if (ye || (f.timestamp = h.nodeCacheTimestamp++, h.currentNodes.push(f), h.nodeCache.push(f)), f.level < h.level) {
2239
+ var Pe = p.cubeResolution * Math.pow(2, f.level - p.maxLevel), Ne = Math.ceil(Pe * p.invTileResolution) - 1, Be = Pe % p.tileResolution * 2, We = Pe * 2 % p.tileResolution;
2240
+ We === 0 && (We = p.tileResolution), Be === 0 && (Be = p.tileResolution * 2);
2231
2241
  var ke = 0.5;
2232
- (f.x == Ne || f.y == Ne) && (ke = 1 - h.tileResolution / (h.tileResolution + We));
2233
- var Se = 1 - ke, Xe = [], De, Ze, Ae = ke, Re = ke, O = ke, se = Se, A = Se, he = Se;
2234
- We < h.tileResolution && (f.x == Ne && f.y != Ne ? (Re = 0.5, A = 0.5, (f.side == "d" || f.side == "u") && (O = 0.5, he = 0.5)) : f.x != Ne && f.y == Ne && (Ae = 0.5, se = 0.5, (f.side == "l" || f.side == "r") && (O = 0.5, he = 0.5))), Be <= h.tileResolution && (f.x == Ne && (Ae = 0, se = 1, (f.side == "l" || f.side == "r") && (O = 0, he = 1)), f.y == Ne && (Re = 0, A = 1, (f.side == "d" || f.side == "u") && (O = 0, he = 1))), De = [g[0], g[1], g[2], g[0] * Ae + g[3] * se, g[1] * ke + g[4] * Se, g[2] * O + g[5] * he, g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * he, g[0] * ke + g[9] * Se, g[1] * Re + g[10] * A, g[2] * O + g[11] * he], Ze = new ce(De, f.side, f.level + 1, f.x * 2, f.y * 2, h.fullpath), Xe.push(Ze), f.x == Ne && Be <= h.tileResolution || (De = [g[0] * Ae + g[3] * se, g[1] * ke + g[4] * Se, g[2] * O + g[5] * he, g[3], g[4], g[5], g[3] * ke + g[6] * Se, g[4] * Re + g[7] * A, g[5] * O + g[8] * he, g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * he], Ze = new ce(De, f.side, f.level + 1, f.x * 2 + 1, f.y * 2, h.fullpath), Xe.push(Ze)), !(f.x == Ne && Be <= h.tileResolution) && !(f.y == Ne && Be <= h.tileResolution) && (De = [g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * he, g[3] * ke + g[6] * Se, g[4] * Re + g[7] * A, g[5] * O + g[8] * he, g[6], g[7], g[8], g[9] * Ae + g[6] * se, g[10] * ke + g[7] * Se, g[11] * O + g[8] * he], Ze = new ce(De, f.side, f.level + 1, f.x * 2 + 1, f.y * 2 + 1, h.fullpath), Xe.push(Ze)), f.y == Ne && Be <= h.tileResolution || (De = [g[0] * ke + g[9] * Se, g[1] * Re + g[10] * A, g[2] * O + g[11] * he, g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * he, g[9] * Ae + g[6] * se, g[10] * ke + g[7] * Se, g[11] * O + g[8] * he, g[9], g[10], g[11]], Ze = new ce(De, f.side, f.level + 1, f.x * 2, f.y * 2 + 1, h.fullpath), Xe.push(Ze));
2242
+ (f.x == Ne || f.y == Ne) && (ke = 1 - p.tileResolution / (p.tileResolution + We));
2243
+ var Se = 1 - ke, Xe = [], De, Ze, Ae = ke, Re = ke, O = ke, se = Se, A = Se, pe = Se;
2244
+ We < p.tileResolution && (f.x == Ne && f.y != Ne ? (Re = 0.5, A = 0.5, (f.side == "d" || f.side == "u") && (O = 0.5, pe = 0.5)) : f.x != Ne && f.y == Ne && (Ae = 0.5, se = 0.5, (f.side == "l" || f.side == "r") && (O = 0.5, pe = 0.5))), Be <= p.tileResolution && (f.x == Ne && (Ae = 0, se = 1, (f.side == "l" || f.side == "r") && (O = 0, pe = 1)), f.y == Ne && (Re = 0, A = 1, (f.side == "d" || f.side == "u") && (O = 0, pe = 1))), De = [g[0], g[1], g[2], g[0] * Ae + g[3] * se, g[1] * ke + g[4] * Se, g[2] * O + g[5] * pe, g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * pe, g[0] * ke + g[9] * Se, g[1] * Re + g[10] * A, g[2] * O + g[11] * pe], Ze = new ce(De, f.side, f.level + 1, f.x * 2, f.y * 2, p.fullpath), Xe.push(Ze), f.x == Ne && Be <= p.tileResolution || (De = [g[0] * Ae + g[3] * se, g[1] * ke + g[4] * Se, g[2] * O + g[5] * pe, g[3], g[4], g[5], g[3] * ke + g[6] * Se, g[4] * Re + g[7] * A, g[5] * O + g[8] * pe, g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * pe], Ze = new ce(De, f.side, f.level + 1, f.x * 2 + 1, f.y * 2, p.fullpath), Xe.push(Ze)), !(f.x == Ne && Be <= p.tileResolution) && !(f.y == Ne && Be <= p.tileResolution) && (De = [g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * pe, g[3] * ke + g[6] * Se, g[4] * Re + g[7] * A, g[5] * O + g[8] * pe, g[6], g[7], g[8], g[9] * Ae + g[6] * se, g[10] * ke + g[7] * Se, g[11] * O + g[8] * pe], Ze = new ce(De, f.side, f.level + 1, f.x * 2 + 1, f.y * 2 + 1, p.fullpath), Xe.push(Ze)), f.y == Ne && Be <= p.tileResolution || (De = [g[0] * ke + g[9] * Se, g[1] * Re + g[10] * A, g[2] * O + g[11] * pe, g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * pe, g[9] * Ae + g[6] * se, g[10] * ke + g[7] * Se, g[11] * O + g[8] * pe, g[9], g[10], g[11]], Ze = new ce(De, f.side, f.level + 1, f.x * 2, f.y * 2 + 1, p.fullpath), Xe.push(Ze));
2235
2245
  for (var _e = 0; _e < Xe.length; _e++)
2236
- U(u, Xe[_e], ee, oe);
2246
+ U(l, Xe[_e], Q, oe);
2237
2247
  }
2238
2248
  }
2239
2249
  }
@@ -2322,94 +2332,94 @@ window.libpannellum = (function(t, o, i) {
2322
2332
  function J() {
2323
2333
  return [1, 0, 0, 0, 1, 0, 0, 0, 1];
2324
2334
  }
2325
- function S(u, f, ee) {
2326
- var oe = Math.sin(f), Q = Math.cos(f);
2327
- if (ee == "x")
2328
- return [u[0], Q * u[1] + oe * u[2], Q * u[2] - oe * u[1], u[3], Q * u[4] + oe * u[5], Q * u[5] - oe * u[4], u[6], Q * u[7] + oe * u[8], Q * u[8] - oe * u[7]];
2329
- if (ee == "y")
2330
- return [Q * u[0] - oe * u[2], u[1], Q * u[2] + oe * u[0], Q * u[3] - oe * u[5], u[4], Q * u[5] + oe * u[3], Q * u[6] - oe * u[8], u[7], Q * u[8] + oe * u[6]];
2331
- if (ee == "z")
2332
- return [Q * u[0] + oe * u[1], Q * u[1] - oe * u[0], u[2], Q * u[3] + oe * u[4], Q * u[4] - oe * u[3], u[5], Q * u[6] + oe * u[7], Q * u[7] - oe * u[6], u[8]];
2335
+ function S(l, f, Q) {
2336
+ var oe = Math.sin(f), ee = Math.cos(f);
2337
+ if (Q == "x")
2338
+ return [l[0], ee * l[1] + oe * l[2], ee * l[2] - oe * l[1], l[3], ee * l[4] + oe * l[5], ee * l[5] - oe * l[4], l[6], ee * l[7] + oe * l[8], ee * l[8] - oe * l[7]];
2339
+ if (Q == "y")
2340
+ return [ee * l[0] - oe * l[2], l[1], ee * l[2] + oe * l[0], ee * l[3] - oe * l[5], l[4], ee * l[5] + oe * l[3], ee * l[6] - oe * l[8], l[7], ee * l[8] + oe * l[6]];
2341
+ if (Q == "z")
2342
+ return [ee * l[0] + oe * l[1], ee * l[1] - oe * l[0], l[2], ee * l[3] + oe * l[4], ee * l[4] - oe * l[3], l[5], ee * l[6] + oe * l[7], ee * l[7] - oe * l[6], l[8]];
2333
2343
  }
2334
- function B(u) {
2335
- return [u[0], u[1], u[2], 0, u[3], u[4], u[5], 0, u[6], u[7], u[8], 0, 0, 0, 0, 1];
2344
+ function B(l) {
2345
+ return [l[0], l[1], l[2], 0, l[3], l[4], l[5], 0, l[6], l[7], l[8], 0, 0, 0, 0, 1];
2336
2346
  }
2337
- function ie(u) {
2338
- return [u[0], u[4], u[8], u[12], u[1], u[5], u[9], u[13], u[2], u[6], u[10], u[14], u[3], u[7], u[11], u[15]];
2347
+ function ie(l) {
2348
+ return [l[0], l[4], l[8], l[12], l[1], l[5], l[9], l[13], l[2], l[6], l[10], l[14], l[3], l[7], l[11], l[15]];
2339
2349
  }
2340
- function F(u, f, ee, oe) {
2341
- var Q = 2 * Math.atan(Math.tan(u / 2) * n.drawingBufferHeight / n.drawingBufferWidth), g = 1 / Math.tan(Q / 2);
2342
- return [g / f, 0, 0, 0, 0, g, 0, 0, 0, 0, (oe + ee) / (ee - oe), 2 * oe * ee / (ee - oe), 0, 0, -1, 0];
2350
+ function F(l, f, Q, oe) {
2351
+ var ee = 2 * Math.atan(Math.tan(l / 2) * n.drawingBufferHeight / n.drawingBufferWidth), g = 1 / Math.tan(ee / 2);
2352
+ return [g / f, 0, 0, 0, 0, g, 0, 0, 0, 0, (oe + Q) / (Q - oe), 2 * oe * Q / (Q - oe), 0, 0, -1, 0];
2343
2353
  }
2344
- function te(u, f) {
2345
- n.bindTexture(n.TEXTURE_2D, f), n.texImage2D(n.TEXTURE_2D, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, u), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MAG_FILTER, n.LINEAR), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, n.LINEAR), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), n.bindTexture(n.TEXTURE_2D, null);
2354
+ function te(l, f) {
2355
+ n.bindTexture(n.TEXTURE_2D, f), n.texImage2D(n.TEXTURE_2D, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, l), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MAG_FILTER, n.LINEAR), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, n.LINEAR), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), n.bindTexture(n.TEXTURE_2D, null);
2346
2356
  }
2347
2357
  var K = [], ne = (function() {
2348
- var u = 4, f = {}, ee;
2358
+ var l = 4, f = {}, Q;
2349
2359
  function oe() {
2350
2360
  var re = this;
2351
- this.texture = this.callback = null, this.image = new Image(), this.image.crossOrigin = ee || "anonymous";
2361
+ this.texture = this.callback = null, this.image = new Image(), this.image.crossOrigin = Q || "anonymous";
2352
2362
  var xe = function() {
2353
2363
  re.image.width > 0 && re.image.height > 0 ? (te(re.image, re.texture), re.callback(re.texture, !0)) : re.callback(re.texture, !1), g(re);
2354
2364
  };
2355
2365
  this.image.addEventListener("load", xe), this.image.addEventListener("error", xe);
2356
2366
  }
2357
- oe.prototype.loadTexture = function(re, xe, pe) {
2358
- this.texture = xe, this.callback = pe, this.image.src = re;
2367
+ oe.prototype.loadTexture = function(re, xe, he) {
2368
+ this.texture = xe, this.callback = he, this.image.src = re;
2359
2369
  };
2360
- function Q(re, xe, pe, Ge) {
2361
- this.node = re, this.src = xe, this.texture = pe, this.callback = Ge;
2370
+ function ee(re, xe, he, Ge) {
2371
+ this.node = re, this.src = xe, this.texture = he, this.callback = Ge;
2362
2372
  }
2363
2373
  function g(re) {
2364
2374
  if (K.length) {
2365
2375
  var xe = K.shift();
2366
2376
  re.loadTexture(xe.src, xe.texture, xe.callback);
2367
2377
  } else
2368
- f[u++] = re;
2378
+ f[l++] = re;
2369
2379
  }
2370
- for (var ae = 0; ae < u; ae++)
2380
+ for (var ae = 0; ae < l; ae++)
2371
2381
  f[ae] = new oe();
2372
- return function(re, xe, pe, Ge) {
2373
- ee = Ge;
2382
+ return function(re, xe, he, Ge) {
2383
+ Q = Ge;
2374
2384
  var He = n.createTexture();
2375
- return u ? f[--u].loadTexture(xe, He, pe) : K.push(new Q(re, xe, He, pe)), He;
2385
+ return l ? f[--l].loadTexture(xe, He, he) : K.push(new ee(re, xe, He, he)), He;
2376
2386
  };
2377
2387
  })();
2378
- function M(u) {
2379
- ne(u, encodeURI(u.path + "." + h.extension), function(f, ee) {
2380
- u.texture = f, u.textureLoaded = ee ? 2 : 1;
2388
+ function M(l) {
2389
+ ne(l, encodeURI(l.path + "." + p.extension), function(f, Q) {
2390
+ l.texture = f, l.textureLoaded = Q ? 2 : 1;
2381
2391
  }, z.crossOrigin);
2382
2392
  }
2383
- function le(u) {
2384
- for (var f = 1; f < h.maxLevel && n.drawingBufferWidth > h.tileResolution * Math.pow(2, f - 1) * Math.tan(u / 2) * 0.707; )
2393
+ function le(l) {
2394
+ for (var f = 1; f < p.maxLevel && n.drawingBufferWidth > p.tileResolution * Math.pow(2, f - 1) * Math.tan(l / 2) * 0.707; )
2385
2395
  f++;
2386
- p.level = f;
2396
+ h.level = f;
2387
2397
  }
2388
- function j(u, f) {
2389
- return [u[0] * f[0], u[0] * f[1], u[0] * f[2], 0, u[5] * f[4], u[5] * f[5], u[5] * f[6], 0, u[10] * f[8], u[10] * f[9], u[10] * f[10], u[11], -f[8], -f[9], -f[10], 0];
2398
+ function j(l, f) {
2399
+ return [l[0] * f[0], l[0] * f[1], l[0] * f[2], 0, l[5] * f[4], l[5] * f[5], l[5] * f[6], 0, l[10] * f[8], l[10] * f[9], l[10] * f[10], l[11], -f[8], -f[9], -f[10], 0];
2390
2400
  }
2391
- function Te(u, f) {
2392
- return [u[0] * f[0] + u[1] * f[1] + u[2] * f[2], u[4] * f[0] + u[5] * f[1] + u[6] * f[2], u[11] + u[8] * f[0] + u[9] * f[1] + u[10] * f[2], 1 / (u[12] * f[0] + u[13] * f[1] + u[14] * f[2])];
2401
+ function Te(l, f) {
2402
+ return [l[0] * f[0] + l[1] * f[1] + l[2] * f[2], l[4] * f[0] + l[5] * f[1] + l[6] * f[2], l[11] + l[8] * f[0] + l[9] * f[1] + l[10] * f[2], 1 / (l[12] * f[0] + l[13] * f[1] + l[14] * f[2])];
2393
2403
  }
2394
- function Ye(u, f) {
2395
- var ee = Te(u, f), oe = ee[0] * ee[3], Q = ee[1] * ee[3], g = ee[2] * ee[3], ae = [0, 0, 0];
2396
- return oe < -1 && (ae[0] = -1), oe > 1 && (ae[0] = 1), Q < -1 && (ae[1] = -1), Q > 1 && (ae[1] = 1), (g < -1 || g > 1) && (ae[2] = 1), ae;
2404
+ function Ye(l, f) {
2405
+ var Q = Te(l, f), oe = Q[0] * Q[3], ee = Q[1] * Q[3], g = Q[2] * Q[3], ae = [0, 0, 0];
2406
+ return oe < -1 && (ae[0] = -1), oe > 1 && (ae[0] = 1), ee < -1 && (ae[1] = -1), ee > 1 && (ae[1] = 1), (g < -1 || g > 1) && (ae[2] = 1), ae;
2397
2407
  }
2398
- function Ve(u, f) {
2399
- var ee = Ye(u, f.slice(0, 3)), oe = Ye(u, f.slice(3, 6)), Q = Ye(u, f.slice(6, 9)), g = Ye(u, f.slice(9, 12)), ae = ee[0] + oe[0] + Q[0] + g[0];
2408
+ function Ve(l, f) {
2409
+ var Q = Ye(l, f.slice(0, 3)), oe = Ye(l, f.slice(3, 6)), ee = Ye(l, f.slice(6, 9)), g = Ye(l, f.slice(9, 12)), ae = Q[0] + oe[0] + ee[0] + g[0];
2400
2410
  if (ae == -4 || ae == 4)
2401
2411
  return !1;
2402
- var re = ee[1] + oe[1] + Q[1] + g[1];
2412
+ var re = Q[1] + oe[1] + ee[1] + g[1];
2403
2413
  if (re == -4 || re == 4)
2404
2414
  return !1;
2405
- var xe = ee[2] + oe[2] + Q[2] + g[2];
2415
+ var xe = Q[2] + oe[2] + ee[2] + g[2];
2406
2416
  return xe != 4;
2407
2417
  }
2408
2418
  function we() {
2409
2419
  console.log("Reducing canvas size due to error 1286!"), L.width = Math.round(L.width / 2), L.height = Math.round(L.height / 2);
2410
2420
  }
2411
2421
  }
2412
- var l = [
2422
+ var c = [
2413
2423
  "attribute vec2 a_texCoord;",
2414
2424
  "varying vec2 v_texCoord;",
2415
2425
  "void main() {",
@@ -2418,7 +2428,7 @@ window.libpannellum = (function(t, o, i) {
2418
2428
  // Pass the coordinates to the fragment shader
2419
2429
  "v_texCoord = a_texCoord;",
2420
2430
  "}"
2421
- ].join(""), c = [
2431
+ ].join(""), u = [
2422
2432
  "attribute vec3 a_vertCoord;",
2423
2433
  "attribute vec2 a_texCoord;",
2424
2434
  "uniform mat4 u_cubeMatrix;",
@@ -2493,14 +2503,14 @@ window.libpannellum = (function(t, o, i) {
2493
2503
  "}"
2494
2504
  ].join("");
2495
2505
  return {
2496
- renderer: function(L, p, n, b) {
2506
+ renderer: function(L, h, n, b) {
2497
2507
  return new d(L);
2498
2508
  }
2499
2509
  };
2500
2510
  })(window, document);
2501
2511
  window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2502
- function d(l, c) {
2503
- var v = this, e, E, k, N = !1, L = Date.now(), p = 0, n = 0, b = -1, P = 0, _ = 0, w = new Array(10), C = !1, x, h = !1, y = !1, T, $, I = { yaw: 0, pitch: 0, hfov: 0 }, X = !1, V = !1, z = 0, H, R = 0, q, ce, U = {}, D = {}, J = [], S = !1, B = !1, ie = {
2512
+ function d(c, u) {
2513
+ var v = this, e, E, k, N = !1, L = Date.now(), h = 0, n = 0, b = -1, P = 0, _ = 0, w = new Array(10), C = !1, x, p = !1, y = !1, T, $, I = { yaw: 0, pitch: 0, hfov: 0 }, X = !1, V = !1, z = 0, H, R = 0, q, ce, U = {}, D = {}, J = [], S = !1, B = !1, ie = {
2504
2514
  hfov: 100,
2505
2515
  minHfov: 50,
2506
2516
  maxHfov: 120,
@@ -2554,11 +2564,11 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2554
2564
  textureSizeError: "This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",
2555
2565
  // Two substitutions: image width, max image width
2556
2566
  unknownError: "Unknown error. Check developer console."
2557
- }, l = typeof l == "string" ? o.getElementById(l) : l, l.classList.add("pnlm-container"), l.tabIndex = 0;
2567
+ }, c = typeof c == "string" ? o.getElementById(c) : c, c.classList.add("pnlm-container"), c.tabIndex = 0;
2558
2568
  var F = o.createElement("div");
2559
- F.className = "pnlm-ui", l.appendChild(F);
2569
+ F.className = "pnlm-ui", c.appendChild(F);
2560
2570
  var te = o.createElement("div");
2561
- te.className = "pnlm-render-container", l.appendChild(te);
2571
+ te.className = "pnlm-render-container", c.appendChild(te);
2562
2572
  var K = o.createElement("div");
2563
2573
  K.className = "pnlm-dragfix", F.appendChild(K);
2564
2574
  var ne = o.createElement("span");
@@ -2567,9 +2577,9 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2567
2577
  le.className = "pnlm-sprite pnlm-hot-spot-debug-indicator", F.appendChild(le), M.container = o.createElement("div"), M.container.className = "pnlm-panorama-info", M.title = o.createElement("div"), M.title.className = "pnlm-title-box", M.container.appendChild(M.title), M.author = o.createElement("div"), M.author.className = "pnlm-author-box", M.container.appendChild(M.author), F.appendChild(M.container), M.load = {}, M.load.box = o.createElement("div"), M.load.box.className = "pnlm-load-box", M.load.boxp = o.createElement("p"), M.load.box.appendChild(M.load.boxp), M.load.lbox = o.createElement("div"), M.load.lbox.className = "pnlm-lbox", M.load.lbox.innerHTML = '<div class="pnlm-loading"></div>', M.load.box.appendChild(M.load.lbox), M.load.lbar = o.createElement("div"), M.load.lbar.className = "pnlm-lbar", M.load.lbarFill = o.createElement("div"), M.load.lbarFill.className = "pnlm-lbar-fill", M.load.lbar.appendChild(M.load.lbarFill), M.load.box.appendChild(M.load.lbar), M.load.msg = o.createElement("p"), M.load.msg.className = "pnlm-lmsg", M.load.box.appendChild(M.load.msg), F.appendChild(M.load.box), M.errorMsg = o.createElement("div"), M.errorMsg.className = "pnlm-error-msg pnlm-info-box", F.appendChild(M.errorMsg);
2568
2578
  var j = {};
2569
2579
  j.container = o.createElement("div"), j.container.className = "pnlm-controls-container", F.appendChild(j.container), j.load = o.createElement("div"), j.load.className = "pnlm-load-button", j.load.addEventListener("click", function() {
2570
- It(), Yt();
2571
- }), F.appendChild(j.load), j.zoom = o.createElement("div"), j.zoom.className = "pnlm-zoom-controls pnlm-controls", j.zoomIn = o.createElement("div"), j.zoomIn.className = "pnlm-zoom-in pnlm-sprite pnlm-control", j.zoomIn.addEventListener("click", Or), j.zoom.appendChild(j.zoomIn), j.zoomOut = o.createElement("div"), j.zoomOut.className = "pnlm-zoom-out pnlm-sprite pnlm-control", j.zoomOut.addEventListener("click", Hr), j.zoom.appendChild(j.zoomOut), j.container.appendChild(j.zoom), j.fullscreen = o.createElement("div"), j.fullscreen.addEventListener("click", kt), j.fullscreen.className = "pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control", (o.fullscreenEnabled || o.mozFullScreenEnabled || o.webkitFullscreenEnabled || o.msFullscreenEnabled) && j.container.appendChild(j.fullscreen), j.orientation = o.createElement("div"), j.orientation.addEventListener("click", function(r) {
2572
- V ? ht() : yt();
2580
+ kt(), Yt();
2581
+ }), F.appendChild(j.load), j.zoom = o.createElement("div"), j.zoom.className = "pnlm-zoom-controls pnlm-controls", j.zoomIn = o.createElement("div"), j.zoomIn.className = "pnlm-zoom-in pnlm-sprite pnlm-control", j.zoomIn.addEventListener("click", Or), j.zoom.appendChild(j.zoomIn), j.zoomOut = o.createElement("div"), j.zoomOut.className = "pnlm-zoom-out pnlm-sprite pnlm-control", j.zoomOut.addEventListener("click", Hr), j.zoom.appendChild(j.zoomOut), j.container.appendChild(j.zoom), j.fullscreen = o.createElement("div"), j.fullscreen.addEventListener("click", _t), j.fullscreen.className = "pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control", (o.fullscreenEnabled || o.mozFullScreenEnabled || o.webkitFullscreenEnabled || o.msFullscreenEnabled) && j.container.appendChild(j.fullscreen), j.orientation = o.createElement("div"), j.orientation.addEventListener("click", function(r) {
2582
+ V ? pt() : Ct();
2573
2583
  }), j.orientation.addEventListener("mousedown", function(r) {
2574
2584
  r.stopPropagation();
2575
2585
  }), j.orientation.addEventListener("touchstart", function(r) {
@@ -2579,15 +2589,15 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2579
2589
  }), j.orientation.className = "pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";
2580
2590
  var Te, Ye = !1;
2581
2591
  function Ve(r) {
2582
- t.removeEventListener("deviceorientation", Ve), r && r.alpha !== null && r.beta !== null && r.gamma !== null ? (j.container.appendChild(j.orientation), Te = !0, Ye && yt()) : Te = !1;
2592
+ t.removeEventListener("deviceorientation", Ve), r && r.alpha !== null && r.beta !== null && r.gamma !== null ? (j.container.appendChild(j.orientation), Te = !0, Ye && Ct()) : Te = !1;
2583
2593
  }
2584
2594
  t.DeviceOrientationEvent ? t.addEventListener("deviceorientation", Ve) : Te = !1;
2585
2595
  var we = o.createElement("div");
2586
- we.className = "pnlm-compass pnlm-controls pnlm-control", F.appendChild(we), c.firstScene ? wt(c.firstScene) : c.default && c.default.firstScene ? wt(c.default.firstScene) : wt(null), It(!0);
2587
- function u() {
2596
+ we.className = "pnlm-compass pnlm-controls pnlm-control", F.appendChild(we), u.firstScene ? xt(u.firstScene) : u.default && u.default.firstScene ? xt(u.default.firstScene) : xt(null), kt(!0);
2597
+ function l() {
2588
2598
  var r = o.createElement("div");
2589
2599
  if (r.innerHTML = "<!--[if lte IE 9]><i></i><![endif]-->", r.getElementsByTagName("i").length == 1) {
2590
- Q();
2600
+ ee();
2591
2601
  return;
2592
2602
  }
2593
2603
  q = e.hfov, ce = e.pitch;
@@ -2603,31 +2613,31 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2603
2613
  T = e.panorama;
2604
2614
  else {
2605
2615
  if (e.panorama === i) {
2606
- Q(e.strings.noPanoramaError);
2616
+ ee(e.strings.noPanoramaError);
2607
2617
  return;
2608
2618
  }
2609
2619
  T = new Image();
2610
2620
  }
2611
2621
  if (e.type == "cubemap") {
2612
2622
  var Y = 6, Z = function() {
2613
- Y--, Y === 0 && ee();
2623
+ Y--, Y === 0 && Q();
2614
2624
  }, be = function(Oe) {
2615
2625
  var ze = o.createElement("a");
2616
- ze.href = Oe.target.src, ze.textContent = ze.href, Q(e.strings.fileAccessError.replace("%s", ze.outerHTML));
2626
+ ze.href = Oe.target.src, ze.textContent = ze.href, ee(e.strings.fileAccessError.replace("%s", ze.outerHTML));
2617
2627
  };
2618
2628
  for (s = 0; s < T.length; s++)
2619
2629
  m = e.cubeMap[s], m == "null" ? (console.log("Will use background instead of missing cubemap face " + s), Z()) : (e.basePath && !f(m) && (m = e.basePath + m), T[s].onload = Z, T[s].onerror = be, T[s].src = ut(m));
2620
2630
  } else if (e.type == "multires")
2621
- ee();
2631
+ Q();
2622
2632
  else if (m = "", e.basePath && (m = e.basePath), e.dynamic !== !0) {
2623
2633
  m = f(e.panorama) ? e.panorama : m + e.panorama, T.onload = function() {
2624
- t.URL.revokeObjectURL(this.src), ee();
2634
+ t.URL.revokeObjectURL(this.src), Q();
2625
2635
  };
2626
2636
  var fe = new XMLHttpRequest();
2627
2637
  fe.onloadend = function() {
2628
2638
  if (fe.status != 200) {
2629
2639
  var Me = o.createElement("a");
2630
- Me.href = m, Me.textContent = Me.href, Q(e.strings.fileAccessError.replace("%s", Me.outerHTML));
2640
+ Me.href = m, Me.textContent = Me.href, ee(e.strings.fileAccessError.replace("%s", Me.outerHTML));
2631
2641
  }
2632
2642
  var Oe = this.response;
2633
2643
  oe(Oe), M.load.msg.innerHTML = "";
@@ -2643,7 +2653,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2643
2653
  try {
2644
2654
  fe.open("GET", m, !0);
2645
2655
  } catch {
2646
- Q(e.strings.malformedURLError);
2656
+ ee(e.strings.malformedURLError);
2647
2657
  }
2648
2658
  fe.responseType = "blob", fe.setRequestHeader("Accept", "image/*,*/*;q=0.9"), fe.withCredentials = e.crossOrigin === "use-credentials", fe.send();
2649
2659
  }
@@ -2652,8 +2662,8 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2652
2662
  function f(r) {
2653
2663
  return new RegExp("^(?:[a-z]+:)?//", "i").test(r) || r[0] == "/" || r.slice(0, 5) == "blob:";
2654
2664
  }
2655
- function ee() {
2656
- E || (E = new libpannellum.renderer(te)), y || (y = !0, K.addEventListener("mousedown", xe, !1), o.addEventListener("mousemove", He, !1), o.addEventListener("mouseup", ge, !1), e.mouseZoom && (F.addEventListener("mousewheel", Xe, !1), F.addEventListener("DOMMouseScroll", Xe, !1)), e.doubleClickZoom && K.addEventListener("dblclick", pe, !1), F.addEventListener("mozfullscreenchange", ot, !1), F.addEventListener("webkitfullscreenchange", ot, !1), F.addEventListener("msfullscreenchange", ot, !1), F.addEventListener("fullscreenchange", ot, !1), t.addEventListener("resize", he, !1), t.addEventListener("orientationchange", he, !1), e.disableKeyboardCtrl || (l.addEventListener("keydown", De, !1), l.addEventListener("keyup", Ae, !1), l.addEventListener("blur", Ze, !1)), o.addEventListener("mouseleave", ge, !1), o.documentElement.style.pointerAction === "" && o.documentElement.style.touchAction === "" ? (K.addEventListener("pointerdown", We, !1), K.addEventListener("pointermove", ke, !1), K.addEventListener("pointerup", Se, !1), K.addEventListener("pointerleave", Se, !1)) : (K.addEventListener("touchstart", ye, !1), K.addEventListener("touchmove", Ce, !1), K.addEventListener("touchend", Pe, !1)), t.navigator.pointerEnabled && (l.style.touchAction = "none")), zr(), et(e.hfov), setTimeout(function() {
2665
+ function Q() {
2666
+ E || (E = new libpannellum.renderer(te)), y || (y = !0, K.addEventListener("mousedown", xe, !1), o.addEventListener("mousemove", He, !1), o.addEventListener("mouseup", ge, !1), e.mouseZoom && (F.addEventListener("mousewheel", Xe, !1), F.addEventListener("DOMMouseScroll", Xe, !1)), e.doubleClickZoom && K.addEventListener("dblclick", he, !1), F.addEventListener("mozfullscreenchange", ot, !1), F.addEventListener("webkitfullscreenchange", ot, !1), F.addEventListener("msfullscreenchange", ot, !1), F.addEventListener("fullscreenchange", ot, !1), t.addEventListener("resize", pe, !1), t.addEventListener("orientationchange", pe, !1), e.disableKeyboardCtrl || (c.addEventListener("keydown", De, !1), c.addEventListener("keyup", Ae, !1), c.addEventListener("blur", Ze, !1)), o.addEventListener("mouseleave", ge, !1), o.documentElement.style.pointerAction === "" && o.documentElement.style.touchAction === "" ? (K.addEventListener("pointerdown", We, !1), K.addEventListener("pointermove", ke, !1), K.addEventListener("pointerup", Se, !1), K.addEventListener("pointerleave", Se, !1)) : (K.addEventListener("touchstart", ye, !1), K.addEventListener("touchmove", Ce, !1), K.addEventListener("touchend", Pe, !1)), t.navigator.pointerEnabled && (c.style.touchAction = "none")), zr(), et(e.hfov), setTimeout(function() {
2657
2667
  }, 500);
2658
2668
  }
2659
2669
  function oe(r) {
@@ -2662,7 +2672,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2662
2672
  var m = s.result;
2663
2673
  if (navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)) {
2664
2674
  var W = m.indexOf("ÿÂ");
2665
- (W < 0 || W > 65536) && Q(e.strings.iOS8WebGLError);
2675
+ (W < 0 || W > 65536) && ee(e.strings.iOS8WebGLError);
2666
2676
  }
2667
2677
  var Y = m.indexOf("<x:xmpmeta");
2668
2678
  if (Y > -1 && e.ignoreGPanoXMP !== !0) {
@@ -2684,11 +2694,11 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2684
2694
  T.src = t.URL.createObjectURL(r);
2685
2695
  }), s.readAsBinaryString !== i ? s.readAsBinaryString(r) : s.readAsText(r);
2686
2696
  }
2687
- function Q(r) {
2688
- r === i && (r = e.strings.genericWebGLError), M.errorMsg.innerHTML = "<p>" + r + "</p>", j.load.style.display = "none", M.load.box.style.display = "none", M.errorMsg.style.display = "table", h = !0, te.style.display = "none", at("error", r);
2697
+ function ee(r) {
2698
+ r === i && (r = e.strings.genericWebGLError), M.errorMsg.innerHTML = "<p>" + r + "</p>", j.load.style.display = "none", M.load.box.style.display = "none", M.errorMsg.style.display = "table", p = !0, te.style.display = "none", at("error", r);
2689
2699
  }
2690
2700
  function g() {
2691
- h && (M.load.box.style.display = "none", M.errorMsg.style.display = "none", h = !1, at("errorcleared"));
2701
+ p && (M.load.box.style.display = "none", M.errorMsg.style.display = "none", p = !1, at("errorcleared"));
2692
2702
  }
2693
2703
  function ae(r) {
2694
2704
  var s = re(r);
@@ -2699,20 +2709,20 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2699
2709
  }, 2500), r.preventDefault();
2700
2710
  }
2701
2711
  function re(r) {
2702
- var s = l.getBoundingClientRect(), m = {};
2712
+ var s = c.getBoundingClientRect(), m = {};
2703
2713
  return m.x = r.clientX - s.left, m.y = r.clientY - s.top, m;
2704
2714
  }
2705
2715
  function xe(r) {
2706
- if (r.preventDefault(), l.focus(), !(!x || !e.draggable)) {
2716
+ if (r.preventDefault(), c.focus(), !(!x || !e.draggable)) {
2707
2717
  var s = re(r);
2708
2718
  if (e.hotSpotDebug) {
2709
2719
  var m = Ge(r);
2710
2720
  console.log("Pitch: " + m[0] + ", Yaw: " + m[1] + ", Center Pitch: " + e.pitch + ", Center Yaw: " + e.yaw + ", HFOV: " + e.hfov);
2711
2721
  }
2712
- xt(), ht(), e.roll = 0, I.hfov = 0, N = !0, L = Date.now(), p = s.x, n = s.y, P = e.yaw, _ = e.pitch, F.classList.add("pnlm-grabbing"), F.classList.remove("pnlm-grab"), at("mousedown", r), _e();
2722
+ yt(), pt(), e.roll = 0, I.hfov = 0, N = !0, L = Date.now(), h = s.x, n = s.y, P = e.yaw, _ = e.pitch, F.classList.add("pnlm-grabbing"), F.classList.remove("pnlm-grab"), at("mousedown", r), _e();
2713
2723
  }
2714
2724
  }
2715
- function pe(r) {
2725
+ function he(r) {
2716
2726
  if (e.minHfov === e.hfov)
2717
2727
  v.setHfov(q, 1e3);
2718
2728
  else {
@@ -2727,7 +2737,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2727
2737
  function He(r) {
2728
2738
  if (N && x) {
2729
2739
  L = Date.now();
2730
- var s = E.getCanvas(), m = s.clientWidth, W = s.clientHeight, Y = re(r), Z = (Math.atan(p / m * 2 - 1) - Math.atan(Y.x / m * 2 - 1)) * 180 / Math.PI * e.hfov / 90 + P;
2740
+ var s = E.getCanvas(), m = s.clientWidth, W = s.clientHeight, Y = re(r), Z = (Math.atan(h / m * 2 - 1) - Math.atan(Y.x / m * 2 - 1)) * 180 / Math.PI * e.hfov / 90 + P;
2731
2741
  I.yaw = (Z - e.yaw) % 360 * 0.2, e.yaw = Z;
2732
2742
  var be = 2 * Math.atan(Math.tan(e.hfov / 360 * Math.PI) * W / m) * 180 / Math.PI, fe = (Math.atan(Y.y / W * 2 - 1) - Math.atan(n / W * 2 - 1)) * 180 / Math.PI * be / 90 + _;
2733
2743
  I.pitch = (fe - e.pitch) * 0.2, e.pitch = fe;
@@ -2738,11 +2748,11 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2738
2748
  }
2739
2749
  function ye(r) {
2740
2750
  if (!(!x || !e.draggable)) {
2741
- xt(), ht(), e.roll = 0, I.hfov = 0;
2751
+ yt(), pt(), e.roll = 0, I.hfov = 0;
2742
2752
  var s = re(r.targetTouches[0]);
2743
- if (p = s.x, n = s.y, r.targetTouches.length == 2) {
2753
+ if (h = s.x, n = s.y, r.targetTouches.length == 2) {
2744
2754
  var m = re(r.targetTouches[1]);
2745
- p += (m.x - s.x) * 0.5, n += (m.y - s.y) * 0.5, b = Math.sqrt((s.x - m.x) * (s.x - m.x) + (s.y - m.y) * (s.y - m.y));
2755
+ h += (m.x - s.x) * 0.5, n += (m.y - s.y) * 0.5, b = Math.sqrt((s.x - m.x) * (s.x - m.x) + (s.y - m.y) * (s.y - m.y));
2746
2756
  }
2747
2757
  N = !0, L = Date.now(), P = e.yaw, _ = e.pitch, at("touchstart", r), _e();
2748
2758
  }
@@ -2756,7 +2766,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2756
2766
  var Z = Math.sqrt((s.x - Y.x) * (s.x - Y.x) + (s.y - Y.y) * (s.y - Y.y));
2757
2767
  et(e.hfov + (b - Z) * 0.1), b = Z;
2758
2768
  }
2759
- var be = e.hfov / 360 * e.touchPanSpeedCoeffFactor, fe = (p - m) * be + P;
2769
+ var be = e.hfov / 360 * e.touchPanSpeedCoeffFactor, fe = (h - m) * be + P;
2760
2770
  I.yaw = (fe - e.yaw) % 360 * 0.2, e.yaw = fe;
2761
2771
  var Me = (W - n) * be + _;
2762
2772
  I.pitch = (Me - e.pitch) * 0.2, e.pitch = Me;
@@ -2786,12 +2796,12 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2786
2796
  }
2787
2797
  }
2788
2798
  function Xe(r) {
2789
- !x || e.mouseZoom == "fullscreenonly" && !C || (r.preventDefault(), xt(), L = Date.now(), r.wheelDeltaY ? (et(e.hfov - r.wheelDeltaY * 0.05), I.hfov = r.wheelDelta < 0 ? 1 : -1) : r.wheelDelta ? (et(e.hfov - r.wheelDelta * 0.05), I.hfov = r.wheelDelta < 0 ? 1 : -1) : r.detail && (et(e.hfov + r.detail * 1.5), I.hfov = r.detail > 0 ? 1 : -1), _e());
2799
+ !x || e.mouseZoom == "fullscreenonly" && !C || (r.preventDefault(), yt(), L = Date.now(), r.wheelDeltaY ? (et(e.hfov - r.wheelDeltaY * 0.05), I.hfov = r.wheelDelta < 0 ? 1 : -1) : r.wheelDelta ? (et(e.hfov - r.wheelDelta * 0.05), I.hfov = r.wheelDelta < 0 ? 1 : -1) : r.detail && (et(e.hfov + r.detail * 1.5), I.hfov = r.detail > 0 ? 1 : -1), _e());
2790
2800
  }
2791
2801
  function De(r) {
2792
- xt(), L = Date.now(), ht(), e.roll = 0;
2802
+ yt(), L = Date.now(), pt(), e.roll = 0;
2793
2803
  var s = r.which || r.keycode;
2794
- e.capturedKeyNumbers.indexOf(s) < 0 || (r.preventDefault(), s == 27 ? C && kt() : Re(s, !0));
2804
+ e.capturedKeyNumbers.indexOf(s) < 0 || (r.preventDefault(), s == 27 ? C && _t() : Re(s, !0));
2795
2805
  }
2796
2806
  function Ze() {
2797
2807
  for (var r = 0; r < 10; r++)
@@ -2888,7 +2898,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2888
2898
  function A(r) {
2889
2899
  return r < 0.5 ? 2 * r * r : -1 + (4 - 2 * r) * r;
2890
2900
  }
2891
- function he() {
2901
+ function pe() {
2892
2902
  ot();
2893
2903
  }
2894
2904
  function _e() {
@@ -2953,11 +2963,11 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2953
2963
  e.horizonPitch !== i && (r.horizonPitch = e.horizonPitch * Math.PI / 180), e.horizonRoll !== i && (r.horizonRoll = e.horizonRoll * Math.PI / 180), e.backgroundColor !== i && (r.backgroundColor = e.backgroundColor), E.init(T, e.type, e.dynamic, e.haov * Math.PI / 180, e.vaov * Math.PI / 180, e.vOffset * Math.PI / 180, Ar, r), e.dynamic !== !0 && (T = i);
2954
2964
  } catch (s) {
2955
2965
  if (s.type == "webgl error" || s.type == "no webgl")
2956
- Q();
2966
+ ee();
2957
2967
  else if (s.type == "webgl size error")
2958
- Q(e.strings.textureSizeError.replace("%s", s.width).replace("%s", s.maxWidth));
2968
+ ee(e.strings.textureSizeError.replace("%s", s.width).replace("%s", s.maxWidth));
2959
2969
  else
2960
- throw Q(e.strings.unknownError), s;
2970
+ throw ee(e.strings.unknownError), s;
2961
2971
  }
2962
2972
  }
2963
2973
  function Ar() {
@@ -2986,7 +2996,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2986
2996
  var be = o.createElement("img");
2987
2997
  be.src = ut(Z), be.style.width = r.width + "px", be.style.paddingTop = "5px", te.appendChild(s), W.appendChild(be), m.style.maxWidth = "initial";
2988
2998
  } else r.URL ? (W = o.createElement("a"), W.href = ut(r.URL), W.target = "_blank", te.appendChild(W), s.className += " pnlm-pointer", m.className += " pnlm-pointer", W.appendChild(s)) : (r.sceneId && (s.onclick = s.ontouchend = function() {
2989
- return s.clicked || (s.clicked = !0, _t(r.sceneId, r.targetPitch, r.targetYaw, r.targetHfov)), !1;
2999
+ return s.clicked || (s.clicked = !0, Tt(r.sceneId, r.targetPitch, r.targetYaw, r.targetHfov)), !1;
2990
3000
  }, s.className += " pnlm-pointer", m.className += " pnlm-pointer"), te.appendChild(s));
2991
3001
  r.createTooltipFunc ? r.createTooltipFunc(s, r.createTooltipArgs) : (r.text || r.video || r.image) && (s.classList.add("pnlm-tooltip"), s.appendChild(m), m.style.width = m.scrollWidth - 20 + "px", m.style.marginLeft = -(m.scrollWidth - s.offsetWidth) / 2 + "px", m.style.marginTop = -m.scrollHeight - 12 + "px"), r.clickHandlerFunc && (s.addEventListener("click", function(fe) {
2992
3002
  r.clickHandlerFunc(fe, r.clickHandlerArgs);
@@ -3015,28 +3025,28 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3015
3025
  r.div.style.visibility = "visible";
3016
3026
  var Oe = E.getCanvas(), ze = Oe.clientWidth, Je = Oe.clientHeight, $e = [-ze / Me * fe * m / be / 2, -ze / Me * (s * Y - m * Z * W) / be / 2], it = Math.sin(e.roll * Math.PI / 180), Gt = Math.cos(e.roll * Math.PI / 180);
3017
3027
  $e = [$e[0] * Gt - $e[1] * it, $e[0] * it + $e[1] * Gt], $e[0] += (ze - r.div.offsetWidth) / 2, $e[1] += (Je - r.div.offsetHeight) / 2;
3018
- var Tt = "translate(" + $e[0] + "px, " + $e[1] + "px) translateZ(9999px) rotate(" + e.roll + "deg)";
3019
- r.div.style.webkitTransform = Tt, r.div.style.MozTransform = Tt, r.div.style.transform = Tt;
3028
+ var St = "translate(" + $e[0] + "px, " + $e[1] + "px) translateZ(9999px) rotate(" + e.roll + "deg)";
3029
+ r.div.style.webkitTransform = St, r.div.style.MozTransform = St, r.div.style.transform = St;
3020
3030
  }
3021
3031
  }
3022
3032
  function Zt() {
3023
3033
  e.hotSpots.forEach(Xt);
3024
3034
  }
3025
- function wt(r) {
3035
+ function xt(r) {
3026
3036
  e = {};
3027
3037
  var s, m, W = ["haov", "vaov", "vOffset", "northOffset", "horizonPitch", "horizonRoll"];
3028
3038
  J = [];
3029
3039
  for (s in ie)
3030
3040
  ie.hasOwnProperty(s) && (e[s] = ie[s]);
3031
- for (s in c.default)
3032
- if (c.default.hasOwnProperty(s))
3041
+ for (s in u.default)
3042
+ if (u.default.hasOwnProperty(s))
3033
3043
  if (s == "strings")
3034
- for (m in c.default.strings)
3035
- c.default.strings.hasOwnProperty(m) && (e.strings[m] = ct(c.default.strings[m]));
3044
+ for (m in u.default.strings)
3045
+ u.default.strings.hasOwnProperty(m) && (e.strings[m] = ct(u.default.strings[m]));
3036
3046
  else
3037
- e[s] = c.default[s], W.indexOf(s) >= 0 && J.push(s);
3038
- if (r !== null && r !== "" && c.scenes && c.scenes[r]) {
3039
- var Y = c.scenes[r];
3047
+ e[s] = u.default[s], W.indexOf(s) >= 0 && J.push(s);
3048
+ if (r !== null && r !== "" && u.scenes && u.scenes[r]) {
3049
+ var Y = u.scenes[r];
3040
3050
  for (s in Y)
3041
3051
  if (Y.hasOwnProperty(s))
3042
3052
  if (s == "strings")
@@ -3046,15 +3056,15 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3046
3056
  e[s] = Y[s], W.indexOf(s) >= 0 && J.push(s);
3047
3057
  e.scene = r;
3048
3058
  }
3049
- for (s in c)
3050
- if (c.hasOwnProperty(s))
3059
+ for (s in u)
3060
+ if (u.hasOwnProperty(s))
3051
3061
  if (s == "strings")
3052
- for (m in c.strings)
3053
- c.strings.hasOwnProperty(m) && (e.strings[m] = ct(c.strings[m]));
3062
+ for (m in u.strings)
3063
+ u.strings.hasOwnProperty(m) && (e.strings[m] = ct(u.strings[m]));
3054
3064
  else
3055
- e[s] = c[s], W.indexOf(s) >= 0 && J.push(s);
3065
+ e[s] = u[s], W.indexOf(s) >= 0 && J.push(s);
3056
3066
  }
3057
- function It(r) {
3067
+ function kt(r) {
3058
3068
  if (r = r || !1, r && "preview" in e) {
3059
3069
  var s = e.preview;
3060
3070
  e.basePath && !f(s) && (s = e.basePath + s), k = o.createElement("div"), k.className = "pnlm-preview-img", k.style.backgroundImage = "url('" + Ur(s) + "')", te.appendChild(k);
@@ -3080,7 +3090,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3080
3090
  et(Number(e[Y]));
3081
3091
  break;
3082
3092
  case "autoLoad":
3083
- e[Y] === !0 && E === i && (M.load.box.style.display = "inline", j.load.style.display = "none", u());
3093
+ e[Y] === !0 && E === i && (M.load.box.style.display = "inline", j.load.style.display = "none", l());
3084
3094
  break;
3085
3095
  case "showZoomCtrl":
3086
3096
  e[Y] && e.showControls != !1 ? j.zoom.style.display = "block" : j.zoom.style.display = "none";
@@ -3095,18 +3105,18 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3095
3105
  e[Y] || (j.orientation.style.display = "none", j.zoom.style.display = "none", j.fullscreen.style.display = "none");
3096
3106
  break;
3097
3107
  case "orientationOnByDefault":
3098
- e[Y] && (Te === i ? Ye = !0 : Te === !0 && yt());
3108
+ e[Y] && (Te === i ? Ye = !0 : Te === !0 && Ct());
3099
3109
  break;
3100
3110
  }
3101
3111
  r && (m ? e.title = m : delete e.title, W ? e.author = W : delete e.author);
3102
3112
  }
3103
- function kt() {
3104
- if (x && !h)
3113
+ function _t() {
3114
+ if (x && !p)
3105
3115
  if (C)
3106
3116
  o.exitFullscreen ? o.exitFullscreen() : o.mozCancelFullScreen ? o.mozCancelFullScreen() : o.webkitCancelFullScreen ? o.webkitCancelFullScreen() : o.msExitFullscreen && o.msExitFullscreen();
3107
3117
  else
3108
3118
  try {
3109
- l.requestFullscreen ? l.requestFullscreen() : l.mozRequestFullScreen ? l.mozRequestFullScreen() : l.msRequestFullscreen ? l.msRequestFullscreen() : l.webkitRequestFullScreen();
3119
+ c.requestFullscreen ? c.requestFullscreen() : c.mozRequestFullScreen ? c.mozRequestFullScreen() : c.msRequestFullscreen ? c.msRequestFullscreen() : c.webkitRequestFullScreen();
3110
3120
  } catch {
3111
3121
  }
3112
3122
  }
@@ -3134,34 +3144,34 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3134
3144
  function et(r) {
3135
3145
  e.hfov = Vt(r);
3136
3146
  }
3137
- function xt() {
3147
+ function yt() {
3138
3148
  U = {}, R = e.autoRotate ? e.autoRotate : R, e.autoRotate = !1;
3139
3149
  }
3140
3150
  function Yt() {
3141
- g(), x = !1, j.load.style.display = "none", M.load.box.style.display = "inline", u();
3151
+ g(), x = !1, j.load.style.display = "none", M.load.box.style.display = "inline", l();
3142
3152
  }
3143
- function _t(r, s, m, W, Y) {
3153
+ function Tt(r, s, m, W, Y) {
3144
3154
  x = !1, U = {};
3145
3155
  var Z, be, fe, Me;
3146
3156
  if (e.sceneFadeDuration && !Y) {
3147
3157
  var Oe = E.render(e.pitch * Math.PI / 180, e.yaw * Math.PI / 180, e.hfov * Math.PI / 180, { returnImage: !0 });
3148
3158
  if (Oe !== i) {
3149
3159
  Z = new Image(), Z.className = "pnlm-fade-img", Z.style.transition = "opacity " + e.sceneFadeDuration / 1e3 + "s", Z.style.width = "100%", Z.style.height = "100%", Z.onload = function() {
3150
- _t(r, s, m, W, !0);
3160
+ Tt(r, s, m, W, !0);
3151
3161
  }, Z.src = Oe, te.appendChild(Z), E.fadeImg = Z;
3152
3162
  return;
3153
3163
  }
3154
3164
  }
3155
- s === "same" ? be = e.pitch : be = s, m === "same" ? fe = e.yaw : m === "sameAzimuth" ? fe = e.yaw + (e.northOffset || 0) - (c.scenes[r].northOffset || 0) : fe = m, W === "same" ? Me = e.hfov : Me = W, Fr(), wt(r), I.yaw = I.pitch = I.hfov = 0, It(), be !== i && (e.pitch = be), fe !== i && (e.yaw = fe), Me !== i && (e.hfov = Me), at("scenechange", r), Yt();
3165
+ s === "same" ? be = e.pitch : be = s, m === "same" ? fe = e.yaw : m === "sameAzimuth" ? fe = e.yaw + (e.northOffset || 0) - (u.scenes[r].northOffset || 0) : fe = m, W === "same" ? Me = e.hfov : Me = W, Fr(), xt(r), I.yaw = I.pitch = I.hfov = 0, kt(), be !== i && (e.pitch = be), fe !== i && (e.yaw = fe), Me !== i && (e.hfov = Me), at("scenechange", r), Yt();
3156
3166
  }
3157
- function ht() {
3167
+ function pt() {
3158
3168
  t.removeEventListener("deviceorientation", Bt), j.orientation.classList.remove("pnlm-orientation-button-active"), V = !1;
3159
3169
  }
3160
- function yt() {
3170
+ function Ct() {
3161
3171
  V = 1, t.addEventListener("deviceorientation", Bt), j.orientation.classList.add("pnlm-orientation-button-active");
3162
3172
  }
3163
3173
  function ct(r) {
3164
- return c.escapeHTML ? String(r).split(/&/g).join("&amp;").split('"').join("&quot;").split("'").join("&#39;").split("<").join("&lt;").split(">").join("&gt;").split("/").join("&#x2f;").split(`
3174
+ return u.escapeHTML ? String(r).split(/&/g).join("&amp;").split('"').join("&quot;").split("'").join("&#39;").split("<").join("&lt;").split(">").join("&gt;").split("/").join("&#x2f;").split(`
3165
3175
  `).join("<br>") : String(r).split(`
3166
3176
  `).join("<br>");
3167
3177
  }
@@ -3239,30 +3249,30 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3239
3249
  }, this.getRenderer = function() {
3240
3250
  return E;
3241
3251
  }, this.setUpdate = function(r) {
3242
- return S = r === !0, E === i ? ee() : _e(), this;
3252
+ return S = r === !0, E === i ? Q() : _e(), this;
3243
3253
  }, this.mouseEventToCoords = function(r) {
3244
3254
  return Ge(r);
3245
3255
  }, this.loadScene = function(r, s, m, W) {
3246
- return x !== !1 && _t(r, s, m, W), this;
3256
+ return x !== !1 && Tt(r, s, m, W), this;
3247
3257
  }, this.getScene = function() {
3248
3258
  return e.scene;
3249
3259
  }, this.addScene = function(r, s) {
3250
- return c.scenes[r] = s, this;
3260
+ return u.scenes[r] = s, this;
3251
3261
  }, this.removeScene = function(r) {
3252
- return e.scene === r || !c.scenes.hasOwnProperty(r) ? !1 : (delete c.scenes[r], !0);
3262
+ return e.scene === r || !u.scenes.hasOwnProperty(r) ? !1 : (delete u.scenes[r], !0);
3253
3263
  }, this.toggleFullscreen = function() {
3254
- return kt(), this;
3264
+ return _t(), this;
3255
3265
  }, this.getConfig = function() {
3256
3266
  return e;
3257
3267
  }, this.getContainer = function() {
3258
- return l;
3268
+ return c;
3259
3269
  }, this.addHotSpot = function(r, s) {
3260
3270
  if (s === i && e.scene === i)
3261
3271
  e.hotSpots.push(r);
3262
3272
  else {
3263
3273
  var m = s !== i ? s : e.scene;
3264
- if (c.scenes.hasOwnProperty(m))
3265
- c.scenes[m].hasOwnProperty("hotSpots") || (c.scenes[m].hotSpots = [], m == e.scene && (e.hotSpots = c.scenes[m].hotSpots)), c.scenes[m].hotSpots.push(r);
3274
+ if (u.scenes.hasOwnProperty(m))
3275
+ u.scenes[m].hasOwnProperty("hotSpots") || (u.scenes[m].hotSpots = [], m == e.scene && (e.hotSpots = u.scenes[m].hotSpots)), u.scenes[m].hotSpots.push(r);
3266
3276
  else
3267
3277
  throw "Invalid scene ID!";
3268
3278
  }
@@ -3277,24 +3287,24 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3277
3287
  W = W.parentNode;
3278
3288
  return te.removeChild(W), delete e.hotSpots[m].div, e.hotSpots.splice(m, 1), !0;
3279
3289
  }
3280
- } else if (c.scenes.hasOwnProperty(s)) {
3281
- if (!c.scenes[s].hasOwnProperty("hotSpots"))
3290
+ } else if (u.scenes.hasOwnProperty(s)) {
3291
+ if (!u.scenes[s].hasOwnProperty("hotSpots"))
3282
3292
  return !1;
3283
- for (var m = 0; m < c.scenes[s].hotSpots.length; m++)
3284
- if (c.scenes[s].hotSpots[m].hasOwnProperty("id") && c.scenes[s].hotSpots[m].id === r)
3285
- return c.scenes[s].hotSpots.splice(m, 1), !0;
3293
+ for (var m = 0; m < u.scenes[s].hotSpots.length; m++)
3294
+ if (u.scenes[s].hotSpots[m].hasOwnProperty("id") && u.scenes[s].hotSpots[m].id === r)
3295
+ return u.scenes[s].hotSpots.splice(m, 1), !0;
3286
3296
  } else
3287
3297
  return !1;
3288
3298
  }, this.resize = function() {
3289
- E && he();
3299
+ E && pe();
3290
3300
  }, this.isLoaded = function() {
3291
3301
  return x;
3292
3302
  }, this.isOrientationSupported = function() {
3293
3303
  return Te || !1;
3294
3304
  }, this.stopOrientation = function() {
3295
- ht();
3305
+ pt();
3296
3306
  }, this.startOrientation = function() {
3297
- Te && yt();
3307
+ Te && Ct();
3298
3308
  }, this.isOrientationActive = function() {
3299
3309
  return !!V;
3300
3310
  }, this.on = function(r, s) {
@@ -3315,12 +3325,12 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3315
3325
  D[r][D[r].length - s].apply(null, [].slice.call(arguments, 1));
3316
3326
  }
3317
3327
  this.destroy = function() {
3318
- E && E.destroy(), y && (K.removeEventListener("mousedown", xe, !1), K.removeEventListener("dblclick", pe, !1), o.removeEventListener("mousemove", He, !1), o.removeEventListener("mouseup", ge, !1), l.removeEventListener("mousewheel", Xe, !1), l.removeEventListener("DOMMouseScroll", Xe, !1), l.removeEventListener("mozfullscreenchange", ot, !1), l.removeEventListener("webkitfullscreenchange", ot, !1), l.removeEventListener("msfullscreenchange", ot, !1), l.removeEventListener("fullscreenchange", ot, !1), t.removeEventListener("resize", he, !1), t.removeEventListener("orientationchange", he, !1), l.removeEventListener("keydown", De, !1), l.removeEventListener("keyup", Ae, !1), l.removeEventListener("blur", Ze, !1), o.removeEventListener("mouseleave", ge, !1), K.removeEventListener("touchstart", ye, !1), K.removeEventListener("touchmove", Ce, !1), K.removeEventListener("touchend", Pe, !1), K.removeEventListener("pointerdown", We, !1), K.removeEventListener("pointermove", ke, !1), K.removeEventListener("pointerup", Se, !1), K.removeEventListener("pointerleave", Se, !1)), l.innerHTML = "", l.classList.remove("pnlm-container"), F.classList.remove("pnlm-grab"), F.classList.remove("pnlm-grabbing");
3328
+ E && E.destroy(), y && (K.removeEventListener("mousedown", xe, !1), K.removeEventListener("dblclick", he, !1), o.removeEventListener("mousemove", He, !1), o.removeEventListener("mouseup", ge, !1), c.removeEventListener("mousewheel", Xe, !1), c.removeEventListener("DOMMouseScroll", Xe, !1), c.removeEventListener("mozfullscreenchange", ot, !1), c.removeEventListener("webkitfullscreenchange", ot, !1), c.removeEventListener("msfullscreenchange", ot, !1), c.removeEventListener("fullscreenchange", ot, !1), t.removeEventListener("resize", pe, !1), t.removeEventListener("orientationchange", pe, !1), c.removeEventListener("keydown", De, !1), c.removeEventListener("keyup", Ae, !1), c.removeEventListener("blur", Ze, !1), o.removeEventListener("mouseleave", ge, !1), K.removeEventListener("touchstart", ye, !1), K.removeEventListener("touchmove", Ce, !1), K.removeEventListener("touchend", Pe, !1), K.removeEventListener("pointerdown", We, !1), K.removeEventListener("pointermove", ke, !1), K.removeEventListener("pointerup", Se, !1), K.removeEventListener("pointerleave", Se, !1)), c.innerHTML = "", c.classList.remove("pnlm-container"), F.classList.remove("pnlm-grab"), F.classList.remove("pnlm-grabbing");
3319
3329
  };
3320
3330
  }
3321
3331
  return {
3322
- viewer: function(c, v) {
3323
- return new d(c, v);
3332
+ viewer: function(u, v) {
3333
+ return new d(u, v);
3324
3334
  }
3325
3335
  };
3326
3336
  })(window, document);
@@ -3330,16 +3340,16 @@ window.requestAnimationFrame || (window.requestAnimationFrame = (function() {
3330
3340
  };
3331
3341
  })());
3332
3342
  function eo(t, o, i) {
3333
- const d = Le(null), l = Le(i);
3334
- return l.current = i, ve(() => {
3335
- const c = t.current;
3336
- if (!c) return;
3343
+ const d = Le(null), c = Le(i);
3344
+ return c.current = i, ve(() => {
3345
+ const u = t.current;
3346
+ if (!u) return;
3337
3347
  const v = window.pannellum;
3338
3348
  if (!v) {
3339
- console.error("[InteriorThreeSixty] pannellum global not available"), l.current.onError?.();
3349
+ console.error("[InteriorThreeSixty] pannellum global not available"), c.current.onError?.();
3340
3350
  return;
3341
3351
  }
3342
- const e = v.viewer(c, {
3352
+ const e = v.viewer(u, {
3343
3353
  type: "equirectangular",
3344
3354
  panorama: o.image,
3345
3355
  preview: o.preview,
@@ -3347,35 +3357,35 @@ function eo(t, o, i) {
3347
3357
  yaw: Jn,
3348
3358
  hfov: Kn,
3349
3359
  maxHfov: ft,
3350
- minHfov: mt,
3360
+ minHfov: gt,
3351
3361
  compass: !1,
3352
3362
  showControls: !1,
3353
3363
  keyboardZoom: !1,
3354
3364
  autoLoad: o.autoLoad
3355
3365
  });
3356
- return d.current = e, e.on("load", () => l.current.onLoad?.()), e.on("error", () => l.current.onError?.()), e.on(
3366
+ return d.current = e, e.on("load", () => c.current.onLoad?.()), e.on("error", () => c.current.onError?.()), e.on(
3357
3367
  "mousedown",
3358
- (...E) => l.current.onMousedown?.(E[0])
3368
+ (...E) => c.current.onMousedown?.(E[0])
3359
3369
  ), e.on(
3360
3370
  "mouseup",
3361
- (...E) => l.current.onMouseup?.(E[0])
3371
+ (...E) => c.current.onMouseup?.(E[0])
3362
3372
  ), e.on(
3363
3373
  "touchstart",
3364
- (...E) => l.current.onTouchstart?.(E[0])
3374
+ (...E) => c.current.onTouchstart?.(E[0])
3365
3375
  ), e.on(
3366
3376
  "touchend",
3367
- (...E) => l.current.onTouchend?.(E[0])
3377
+ (...E) => c.current.onTouchend?.(E[0])
3368
3378
  ), () => {
3369
3379
  d.current = null, e.destroy();
3370
3380
  };
3371
3381
  }, [o.image, o.preview, o.autoLoad]), d;
3372
3382
  }
3373
3383
  function to(t, o = 50, i = 200) {
3374
- let d = null, l = 0;
3375
- return (...c) => {
3384
+ let d = null, c = 0;
3385
+ return (...u) => {
3376
3386
  const v = Date.now();
3377
- d && (clearTimeout(d), d = null), v - l >= o && (t(...c), l = v), d = setTimeout(() => {
3378
- t(...c);
3387
+ d && (clearTimeout(d), d = null), v - c >= o && (t(...u), c = v), d = setTimeout(() => {
3388
+ t(...u);
3379
3389
  }, i);
3380
3390
  };
3381
3391
  }
@@ -3403,8 +3413,8 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3403
3413
  isPannellumLoaded: o,
3404
3414
  isLoading: i,
3405
3415
  progress: d,
3406
- autoloadInterior360: l,
3407
- loadScene: c
3416
+ autoloadInterior360: c,
3417
+ loadScene: u
3408
3418
  }) => {
3409
3419
  const { emitAnalyticsEvent: v } = je(), { displayedCategoryId: e, displayedCategoryName: E } = Ke(), k = G(
3410
3420
  (L) => {
@@ -3425,11 +3435,11 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3425
3435
  },
3426
3436
  [v, e, E, t]
3427
3437
  ), N = G(() => {
3428
- c(), k("click");
3429
- }, [c, k]);
3438
+ u(), k("click");
3439
+ }, [u, k]);
3430
3440
  return ve(() => {
3431
- l && (c(), k("auto"));
3432
- }, [l, c, k]), o ? null : /* @__PURE__ */ a("div", { className: "pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4", children: /* @__PURE__ */ me("div", { className: "pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
3441
+ c && (u(), k("auto"));
3442
+ }, [c, u, k]), o ? null : /* @__PURE__ */ a("div", { className: "pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4", children: /* @__PURE__ */ me("div", { className: "pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
3433
3443
  /* @__PURE__ */ a(Lr, { className: "size-20" }),
3434
3444
  /* @__PURE__ */ a(Qe, { color: "neutral", shape: "icon", onClick: N, children: /* @__PURE__ */ a(ro, { className: "size-full" }) }),
3435
3445
  /* @__PURE__ */ a(
@@ -3450,22 +3460,22 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3450
3460
  )
3451
3461
  ] }) });
3452
3462
  }, oo = (t) => {
3453
- const { itemIndex: o, src: i, poster: d, onLoaded: l, onError: c, onlyPreload: v } = t, { autoLoadInterior360: e } = je(), { isShowingDetails: E, zoom: k, setZoom: N } = Ke(), [L, p] = Qn(i), n = Le(null), [b, P] = Ie(!1), [_, w] = Ie(e);
3463
+ const { itemIndex: o, src: i, poster: d, onLoaded: c, onError: u, onlyPreload: v } = t, { autoLoadInterior360: e } = je(), { isShowingDetails: E, zoom: k, setZoom: N } = Ke(), [L, h] = Qn(i), n = Le(null), [b, P] = Ie(!1), [_, w] = Ie(e);
3454
3464
  ve(() => {
3455
3465
  e && w(!0);
3456
3466
  }, [e]);
3457
3467
  const C = G(() => {
3458
- l?.(), P(!0);
3459
- }, [l]), x = G((T) => {
3468
+ c?.(), P(!0);
3469
+ }, [c]), x = G((T) => {
3460
3470
  T instanceof MouseEvent && T.button !== 0 || (T.preventDefault(), T.stopPropagation(), T.stopImmediatePropagation());
3461
- }, []), h = G(() => {
3471
+ }, []), p = G(() => {
3462
3472
  w(!0);
3463
3473
  }, []), y = eo(
3464
3474
  n,
3465
3475
  { image: i, preview: d, autoLoad: _ },
3466
3476
  {
3467
3477
  onLoad: C,
3468
- onError: c,
3478
+ onError: u,
3469
3479
  onMousedown: x,
3470
3480
  onMouseup: x,
3471
3481
  onTouchstart: x,
@@ -3477,8 +3487,8 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3477
3487
  const T = y.current;
3478
3488
  if (!T || !b) return;
3479
3489
  const $ = 1, I = tt((k - $) / (st - $), 0, 1), X = tt(
3480
- ft - I * (ft - mt),
3481
- mt,
3490
+ ft - I * (ft - gt),
3491
+ gt,
3482
3492
  ft
3483
3493
  );
3484
3494
  T.setHfov(X);
@@ -3492,7 +3502,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3492
3502
  if (!z) return;
3493
3503
  const H = jt(
3494
3504
  z.getHfov(),
3495
- mt,
3505
+ gt,
3496
3506
  ft,
3497
3507
  st,
3498
3508
  dt
@@ -3504,7 +3514,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3504
3514
  if (!z) return;
3505
3515
  const H = jt(
3506
3516
  z.getHfov(),
3507
- mt,
3517
+ gt,
3508
3518
  ft,
3509
3519
  st,
3510
3520
  dt,
@@ -3534,10 +3544,10 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3534
3544
  no,
3535
3545
  {
3536
3546
  isPannellumLoaded: b,
3537
- isLoading: p,
3547
+ isLoading: h,
3538
3548
  progress: L,
3539
3549
  autoloadInterior360: e,
3540
- loadScene: h,
3550
+ loadScene: p,
3541
3551
  itemIndex: o
3542
3552
  }
3543
3553
  )
@@ -3547,15 +3557,15 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3547
3557
  }
3548
3558
  );
3549
3559
  }, ao = (t) => {
3550
- const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, l] = Ie(), c = G(() => {
3551
- l("spin");
3560
+ const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, c] = Ie(), u = G(() => {
3561
+ c("spin");
3552
3562
  }, []), v = G(() => {
3553
- l("error");
3563
+ c("error");
3554
3564
  }, []);
3555
3565
  return ve(() => {
3556
3566
  d === null || d === "error" || i(o, d === "spin" ? "running" : "ready");
3557
3567
  }, [o, i, d]), d === "error" ? /* @__PURE__ */ a(
3558
- Mt,
3568
+ It,
3559
3569
  {
3560
3570
  className: "text-background",
3561
3571
  text: "Interior Spin could not be loaded"
@@ -3564,7 +3574,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3564
3574
  oo,
3565
3575
  {
3566
3576
  ...t,
3567
- onLoaded: c,
3577
+ onLoaded: u,
3568
3578
  onError: v
3569
3579
  }
3570
3580
  );
@@ -3580,11 +3590,11 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3580
3590
  strokeLinejoin: "round",
3581
3591
  children: /* @__PURE__ */ a("polygon", { points: "6 3 20 12 6 21 6 3" })
3582
3592
  }
3583
- ) }), io = 750, so = 1250, lo = 360, co = 480, uo = (t, o, i) => ({ cursor: `url("${t}") ${o.x} ${o.y}, ${i}` }), po = ({ images: t, itemIndex: o, onlyPreload: i }) => {
3584
- const { demoSpin: d, reverse360: l, spinCursor: c, themeConfig: v } = je(), { currentItemHotspotsVisible: e, isShowingDetails: E, isZooming: k } = Ke(), N = Ue(() => vt(v), [v]), L = k || E, p = Le(null), n = Le(null), [b, P] = Ie(!1), [_, w] = Ie("default"), C = c === "grab" && b ? "grabbing" : c, x = N?.cursor ? (() => {
3593
+ ) }), io = 750, so = 1250, lo = 360, co = 480, uo = (t, o, i) => ({ cursor: `url("${t}") ${o.x} ${o.y}, ${i}` }), ho = ({ images: t, itemIndex: o, onlyPreload: i }) => {
3594
+ const { demoSpin: d, reverse360: c, spinCursor: u, themeConfig: v } = je(), { currentItemHotspotsVisible: e, isShowingDetails: E, isZooming: k } = Ke(), N = Ue(() => wt(v), [v]), L = k || E, h = Le(null), n = Le(null), [b, P] = Ie(!1), [_, w] = Ie("default"), C = u === "grab" && b ? "grabbing" : u, x = N?.cursor ? (() => {
3585
3595
  const te = _ === "left" ? "leftSpin" : _ === "right" ? "rightSpin" : "default", K = N.cursor[te];
3586
3596
  return uo(K.url, K.hotspot, C);
3587
- })() : C === Dt ? { cursor: `url("${Sr}") 45 28, ew-resize` } : { cursor: C }, h = Le(0), y = Le(null), [T, $] = Ie(0), I = Le(null), X = Le(null), V = Le(null), z = Le(0), H = 16, R = Le({
3597
+ })() : C === Dt ? { cursor: `url("${Sr}") 45 28, ew-resize` } : { cursor: C }, p = Le(0), y = Le(null), [T, $] = Ie(0), I = Le(null), X = Le(null), V = Le(null), z = Le(0), H = 16, R = Le({
3588
3598
  timestamps: new Float64Array(10),
3589
3599
  values: new Float64Array(10),
3590
3600
  index: 0,
@@ -3595,19 +3605,19 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3595
3605
  D.current && (cancelAnimationFrame(D.current), D.current = null);
3596
3606
  }, S = t.length, B = G(
3597
3607
  (te) => {
3598
- const K = h.current;
3608
+ const K = p.current;
3599
3609
  if (K === te) return;
3600
3610
  const ne = y.current;
3601
- ne && (ne.src = t[te].src), h.current = te;
3611
+ ne && (ne.src = t[te].src), p.current = te;
3602
3612
  const M = !!t[K]?.hotspots?.length, le = !!t[te]?.hotspots?.length;
3603
3613
  (M || le) && $(te);
3604
3614
  },
3605
3615
  [t]
3606
3616
  ), ie = G(() => {
3607
- const te = (h.current + 1) % S;
3617
+ const te = (p.current + 1) % S;
3608
3618
  B(te);
3609
3619
  }, [S, B]), F = G(() => {
3610
- const te = (h.current - 1 + S) % S;
3620
+ const te = (p.current - 1 + S) % S;
3611
3621
  B(te);
3612
3622
  }, [S, B]);
3613
3623
  return ve(() => {
@@ -3615,7 +3625,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3615
3625
  U();
3616
3626
  return;
3617
3627
  }
3618
- const te = p.current, K = n.current;
3628
+ const te = h.current, K = n.current;
3619
3629
  if (!te || !K)
3620
3630
  return;
3621
3631
  q.current && (q.current = !1, ce.current = setTimeout(() => {
@@ -3657,7 +3667,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3657
3667
  return;
3658
3668
  }
3659
3669
  const Ae = ke - Ne;
3660
- Math.abs(Ce) >= ne && Ae >= H && (Ce > 0 !== l ? ie() : F(), Ce = 0, Ne = ke), Pe = ke, Be();
3670
+ Math.abs(Ce) >= ne && Ae >= H && (Ce > 0 !== c ? ie() : F(), Ce = 0, Ne = ke), Pe = ke, Be();
3661
3671
  };
3662
3672
  D.current = requestAnimationFrame(We);
3663
3673
  };
@@ -3672,26 +3682,26 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3672
3682
  ge.preventDefault(), ge.stopPropagation(), Ve(), P(!0), w("default");
3673
3683
  const ye = ge.clientX;
3674
3684
  M = ye, j(), Te(Date.now(), ye);
3675
- }, u = (ge) => {
3685
+ }, l = (ge) => {
3676
3686
  if (M === null)
3677
3687
  return;
3678
3688
  ge.stopPropagation();
3679
3689
  const { clientX: ye } = ge;
3680
3690
  Te(Date.now(), ye);
3681
3691
  const Ce = ye - M;
3682
- Ce !== 0 && N?.cursor && w(Ce < 0 ? "left" : "right"), !(Math.abs(Ce) < ne) && (Ce > 0 !== l ? ie() : F(), M = ye);
3692
+ Ce !== 0 && N?.cursor && w(Ce < 0 ? "left" : "right"), !(Math.abs(Ce) < ne) && (Ce > 0 !== c ? ie() : F(), M = ye);
3683
3693
  }, f = () => {
3684
3694
  M !== null && (M = null, P(!1), w("default"), Ye());
3685
3695
  };
3686
- te.addEventListener("mousedown", we), document.addEventListener("mousemove", u), document.addEventListener("mouseleave", f), document.addEventListener("mouseup", f), document.addEventListener("contextmenu", f);
3687
- const ee = co / S, oe = () => K.getBoundingClientRect().width, Q = () => K.scrollWidth / 2 - oe() / 2, g = () => {
3688
- const ge = Q();
3696
+ te.addEventListener("mousedown", we), document.addEventListener("mousemove", l), document.addEventListener("mouseleave", f), document.addEventListener("mouseup", f), document.addEventListener("contextmenu", f);
3697
+ const Q = co / S, oe = () => K.getBoundingClientRect().width, ee = () => K.scrollWidth / 2 - oe() / 2, g = () => {
3698
+ const ge = ee();
3689
3699
  K.scrollLeft = ge;
3690
3700
  };
3691
3701
  g();
3692
3702
  const ae = () => {
3693
- const ge = K.scrollLeft - Q();
3694
- Math.abs(ge) < ee || (ge < 0 !== l ? ie() : F(), g());
3703
+ const ge = K.scrollLeft - ee();
3704
+ Math.abs(ge) < Q || (ge < 0 !== c ? ie() : F(), g());
3695
3705
  };
3696
3706
  K.addEventListener("scroll", ae);
3697
3707
  let re = null;
@@ -3706,8 +3716,8 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3706
3716
  const ye = X.current, Ce = V.current;
3707
3717
  if (ye === null || Ce === null) return;
3708
3718
  const Pe = ye - Ce;
3709
- Pe !== 0 && N?.cursor && w(Pe < 0 ? "left" : "right"), !(Math.abs(Pe) < ne) && (Pe > 0 !== l ? ie() : F(), V.current = ye, M = ye);
3710
- }, pe = (ge) => {
3719
+ Pe !== 0 && N?.cursor && w(Pe < 0 ? "left" : "right"), !(Math.abs(Pe) < ne) && (Pe > 0 !== c ? ie() : F(), V.current = ye, M = ye);
3720
+ }, he = (ge) => {
3711
3721
  if (re !== null || ge.changedTouches.length !== 1)
3712
3722
  return;
3713
3723
  Ve(), P(!0), w("default"), I.current !== null && (cancelAnimationFrame(I.current), I.current = null);
@@ -3740,19 +3750,19 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3740
3750
  }
3741
3751
  ye && (I.current !== null && (cancelAnimationFrame(I.current), I.current = null), re = null, M = null, V.current = null, X.current = null, P(!1), w("default"), Ye());
3742
3752
  };
3743
- return K.addEventListener("touchstart", pe, { passive: !1 }), K.addEventListener("touchmove", Ge, { passive: !1 }), K.addEventListener("touchend", He), K.addEventListener("touchcancel", He), () => {
3744
- J(), P(!1), I.current !== null && (cancelAnimationFrame(I.current), I.current = null), te.removeEventListener("mousedown", we), document.removeEventListener("mousemove", u), document.removeEventListener("mouseleave", f), document.removeEventListener("mouseup", f), document.removeEventListener("contextmenu", f), K.removeEventListener("scroll", ae), K.removeEventListener("touchstart", pe), K.removeEventListener("touchmove", Ge), K.removeEventListener("touchend", He), K.removeEventListener("touchcancel", He);
3753
+ return K.addEventListener("touchstart", he, { passive: !1 }), K.addEventListener("touchmove", Ge, { passive: !1 }), K.addEventListener("touchend", He), K.addEventListener("touchcancel", He), () => {
3754
+ J(), P(!1), I.current !== null && (cancelAnimationFrame(I.current), I.current = null), te.removeEventListener("mousedown", we), document.removeEventListener("mousemove", l), document.removeEventListener("mouseleave", f), document.removeEventListener("mouseup", f), document.removeEventListener("contextmenu", f), K.removeEventListener("scroll", ae), K.removeEventListener("touchstart", he), K.removeEventListener("touchmove", Ge), K.removeEventListener("touchend", He), K.removeEventListener("touchcancel", He);
3745
3755
  };
3746
3756
  }, [
3747
3757
  U,
3748
3758
  ie,
3749
3759
  F,
3750
3760
  L,
3751
- l,
3761
+ c,
3752
3762
  N,
3753
3763
  S,
3754
3764
  B
3755
- ]), /* @__PURE__ */ a("div", { ref: p, style: x, children: /* @__PURE__ */ me("div", { ref: n, className: " overflow-x-scroll", children: [
3765
+ ]), /* @__PURE__ */ a("div", { ref: h, style: x, children: /* @__PURE__ */ me("div", { ref: n, className: " overflow-x-scroll", children: [
3756
3766
  /* @__PURE__ */ a("div", { className: "sticky left-0 top-0", children: /* @__PURE__ */ me("div", { className: "relative", children: [
3757
3767
  /* @__PURE__ */ a(
3758
3768
  "img",
@@ -3782,9 +3792,9 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3782
3792
  images: o,
3783
3793
  onPlaceholderImageLoaded: i,
3784
3794
  onSpinImagesLoaded: d,
3785
- onError: l
3795
+ onError: c
3786
3796
  }) => {
3787
- const { autoLoad360: c, emitAnalyticsEvent: v, themeConfig: e } = je(), { displayedCategoryId: E, displayedCategoryName: k } = Ke(), N = Ue(() => vt(e), [e]), L = Ue(() => o.map(({ src: C }) => C), [o]), [p, n] = Ie(null), b = p ? [...p.values()].filter((C) => C).length / o.length * 100 : null, P = G(
3797
+ const { autoLoad360: u, emitAnalyticsEvent: v, themeConfig: e } = je(), { displayedCategoryId: E, displayedCategoryName: k } = Ke(), N = Ue(() => wt(e), [e]), L = Ue(() => o.map(({ src: C }) => C), [o]), [h, n] = Ie(null), b = h ? [...h.values()].filter((C) => C).length / o.length * 100 : null, P = G(
3788
3798
  (C) => {
3789
3799
  b === null && (n(new Map(L.map((x) => [x, !1]))), v({
3790
3800
  type: "interaction",
@@ -3813,13 +3823,13 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3813
3823
  P("click");
3814
3824
  }, [P]), w = G((C) => {
3815
3825
  n((x) => {
3816
- const h = new Map(x);
3817
- return h.set(C, !0), h;
3826
+ const p = new Map(x);
3827
+ return p.set(C, !0), p;
3818
3828
  });
3819
3829
  }, []);
3820
3830
  return ve(() => {
3821
- c && P("auto");
3822
- }, [c, P]), ve(() => {
3831
+ u && P("auto");
3832
+ }, [u, P]), ve(() => {
3823
3833
  b === 100 && d();
3824
3834
  }, [b, d]), /* @__PURE__ */ me("div", { className: "relative aspect-[4/3] w-full", children: [
3825
3835
  b !== null && b !== 100 && // Add images to DOM to preload them
@@ -3828,7 +3838,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3828
3838
  {
3829
3839
  src: C,
3830
3840
  onLoad: () => w(C),
3831
- onError: l
3841
+ onError: c
3832
3842
  },
3833
3843
  C
3834
3844
  )) }),
@@ -3872,14 +3882,14 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3872
3882
  )
3873
3883
  ] })
3874
3884
  ] });
3875
- }, ho = (t) => {
3876
- const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, l] = Ie(
3885
+ }, po = (t) => {
3886
+ const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, c] = Ie(
3877
3887
  null
3878
3888
  );
3879
3889
  return ve(() => {
3880
3890
  d === null || d === "error" || i(o, d === "spin" ? "running" : "ready");
3881
3891
  }, [o, i, d]), d === "error" ? /* @__PURE__ */ a(
3882
- Mt,
3892
+ It,
3883
3893
  {
3884
3894
  className: "text-background",
3885
3895
  text: "Spin could not be loaded"
@@ -3888,19 +3898,19 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3888
3898
  fo,
3889
3899
  {
3890
3900
  ...t,
3891
- onPlaceholderImageLoaded: () => l((c) => c === null ? "placeholder" : c),
3892
- onSpinImagesLoaded: () => l("spin"),
3893
- onError: () => l("error")
3901
+ onPlaceholderImageLoaded: () => c((u) => u === null ? "placeholder" : u),
3902
+ onSpinImagesLoaded: () => c("spin"),
3903
+ onError: () => c("error")
3894
3904
  }
3895
- ) : /* @__PURE__ */ a(po, { ...t });
3905
+ ) : /* @__PURE__ */ a(ho, { ...t });
3896
3906
  }, mo = 750, go = 1250, vo = 360, wo = 480, xo = (t, o, i) => ({ cursor: `url("${t}") ${o.x} ${o.y}, ${i}` }), yo = ({
3897
3907
  images: t,
3898
3908
  onlyPreload: o
3899
3909
  }) => {
3900
- const { demoSpin: i, reverse360: d, spinCursor: l, themeConfig: c } = je(), { isShowingDetails: v, isZooming: e } = Ke(), E = Ue(() => vt(c), [c]), k = e || v, N = Le(null), L = Le(null), [p, n] = Ie(!1), [b, P] = Ie("default"), _ = l === "grab" && p ? "grabbing" : l, w = E?.cursor ? (() => {
3910
+ const { demoSpin: i, reverse360: d, spinCursor: c, themeConfig: u } = je(), { isShowingDetails: v, isZooming: e } = Ke(), E = Ue(() => wt(u), [u]), k = e || v, N = Le(null), L = Le(null), [h, n] = Ie(!1), [b, P] = Ie("default"), _ = c === "grab" && h ? "grabbing" : c, w = E?.cursor ? (() => {
3901
3911
  const H = b === "left" ? "leftSpin" : b === "right" ? "rightSpin" : "default", R = E.cursor[H];
3902
3912
  return xo(R.url, R.hotspot, _);
3903
- })() : _ === Dt ? { cursor: `url("${Sr}") 45 28, ew-resize` } : { cursor: _ }, C = Le(i), x = Le(null), h = G(() => {
3913
+ })() : _ === Dt ? { cursor: `url("${Sr}") 45 28, ew-resize` } : { cursor: _ }, C = Le(i), x = Le(null), p = G(() => {
3904
3914
  x.current && (clearTimeout(x.current), x.current = null);
3905
3915
  }, []), y = Le(null), T = () => {
3906
3916
  y.current && (cancelAnimationFrame(y.current), y.current = null);
@@ -3911,21 +3921,21 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3911
3921
  }, [X]);
3912
3922
  return ve(() => {
3913
3923
  if (k) {
3914
- h();
3924
+ p();
3915
3925
  return;
3916
3926
  }
3917
3927
  const H = N.current, R = L.current;
3918
3928
  if (!H || !R)
3919
3929
  return;
3920
3930
  C.current && (C.current = !1, x.current = setTimeout(() => {
3921
- const we = Date.now(), u = () => {
3931
+ const we = Date.now(), l = () => {
3922
3932
  const f = () => {
3923
3933
  const oe = (Date.now() - we) / go, g = Math.round(((re) => re * (2 - re))(oe) * X), ae = tt(g % X, 0, X - 1);
3924
- I(ae), !(g >= X) && u();
3934
+ I(ae), !(g >= X) && l();
3925
3935
  };
3926
3936
  y.current = requestAnimationFrame(f);
3927
3937
  };
3928
- u();
3938
+ l();
3929
3939
  }, mo));
3930
3940
  const q = vo / X;
3931
3941
  let ce = null, U = [];
@@ -3933,45 +3943,45 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3933
3943
  U.push(we), U.length > 20 && U.shift();
3934
3944
  }, J = () => {
3935
3945
  const we = (() => {
3936
- const Q = Date.now(), g = U.filter(
3937
- (xe) => Q - xe.timestamp < 50
3946
+ const ee = Date.now(), g = U.filter(
3947
+ (xe) => ee - xe.timestamp < 50
3938
3948
  );
3939
3949
  if (g.length < 2)
3940
3950
  return 0;
3941
3951
  const ae = g[0], re = g[g.length - 1];
3942
3952
  return (re.value - ae.value) / (1e-3 * Math.max(re.timestamp - ae.timestamp, 1));
3943
- })(), u = Date.now();
3944
- let f = 0, ee = u;
3953
+ })(), l = Date.now();
3954
+ let f = 0, Q = l;
3945
3955
  const oe = () => {
3946
- const Q = () => {
3947
- const g = Date.now(), ae = (g - u) / 1e3, re = Math.pow(0.05, ae), xe = we * re, pe = (g - ee) / 1e3;
3948
- if (f += xe * pe, Math.abs(xe) < 5 * q && Math.abs(f) < q) {
3956
+ const ee = () => {
3957
+ const g = Date.now(), ae = (g - l) / 1e3, re = Math.pow(0.05, ae), xe = we * re, he = (g - Q) / 1e3;
3958
+ if (f += xe * he, Math.abs(xe) < 5 * q && Math.abs(f) < q) {
3949
3959
  y.current = null;
3950
3960
  return;
3951
3961
  }
3952
- Math.abs(f) >= q && (f > 0 !== d ? z() : V(), f = 0), ee = g, oe();
3962
+ Math.abs(f) >= q && (f > 0 !== d ? z() : V(), f = 0), Q = g, oe();
3953
3963
  };
3954
- y.current = requestAnimationFrame(Q);
3964
+ y.current = requestAnimationFrame(ee);
3955
3965
  };
3956
3966
  oe();
3957
3967
  }, S = () => {
3958
- h(), T();
3968
+ p(), T();
3959
3969
  };
3960
3970
  n(!1);
3961
3971
  const B = (we) => {
3962
3972
  if (we.button !== 0)
3963
3973
  return;
3964
3974
  we.preventDefault(), we.stopPropagation(), S(), n(!0), P("default");
3965
- const u = we.clientX;
3966
- ce = u, U = [{ timestamp: Date.now(), value: u }];
3975
+ const l = we.clientX;
3976
+ ce = l, U = [{ timestamp: Date.now(), value: l }];
3967
3977
  }, ie = (we) => {
3968
3978
  if (ce === null)
3969
3979
  return;
3970
3980
  we.stopPropagation();
3971
- const { clientX: u } = we;
3972
- D({ timestamp: Date.now(), value: u });
3973
- const f = u - ce;
3974
- f !== 0 && E?.cursor && P(f < 0 ? "left" : "right"), !(Math.abs(f) < q) && (f > 0 !== d ? z() : V(), ce = u);
3981
+ const { clientX: l } = we;
3982
+ D({ timestamp: Date.now(), value: l });
3983
+ const f = l - ce;
3984
+ f !== 0 && E?.cursor && P(f < 0 ? "left" : "right"), !(Math.abs(f) < q) && (f > 0 !== d ? z() : V(), ce = l);
3975
3985
  }, F = () => {
3976
3986
  ce !== null && (ce = null, n(!1), P("default"), J());
3977
3987
  };
@@ -3991,21 +4001,21 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3991
4001
  if (j !== null || we.changedTouches.length !== 1)
3992
4002
  return;
3993
4003
  S(), n(!0), P("default");
3994
- const { identifier: u, clientX: f } = we.changedTouches[0];
3995
- j = u, ce = f, U = [{ timestamp: Date.now(), value: f }];
4004
+ const { identifier: l, clientX: f } = we.changedTouches[0];
4005
+ j = l, ce = f, U = [{ timestamp: Date.now(), value: f }];
3996
4006
  }, Ye = (we) => {
3997
4007
  if (!ce)
3998
4008
  return;
3999
- const u = Array.from(we.changedTouches).find(
4009
+ const l = Array.from(we.changedTouches).find(
4000
4010
  ({ identifier: oe }) => oe === j
4001
4011
  );
4002
- if (!u)
4012
+ if (!l)
4003
4013
  return;
4004
4014
  we.preventDefault();
4005
- const { clientX: f } = u;
4015
+ const { clientX: f } = l;
4006
4016
  D({ timestamp: Date.now(), value: f });
4007
- const ee = f - ce;
4008
- ee !== 0 && E?.cursor && P(ee < 0 ? "left" : "right"), !(Math.abs(ee) < q) && (ee > 0 !== d ? z() : V(), ce = f);
4017
+ const Q = f - ce;
4018
+ Q !== 0 && E?.cursor && P(Q < 0 ? "left" : "right"), !(Math.abs(Q) < q) && (Q > 0 !== d ? z() : V(), ce = f);
4009
4019
  }, Ve = (we) => {
4010
4020
  !ce || !Array.from(we.changedTouches).some(
4011
4021
  ({ identifier: f }) => f === j
@@ -4015,7 +4025,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4015
4025
  n(!1), H.removeEventListener("mousedown", B), document.removeEventListener("mousemove", ie), document.removeEventListener("mouseleave", F), document.removeEventListener("mouseup", F), document.removeEventListener("contextmenu", F), R.removeEventListener("scroll", le), R.removeEventListener("touchstart", Te), R.removeEventListener("touchmove", Ye), R.removeEventListener("touchend", Ve), R.removeEventListener("touchcancel", Ve);
4016
4026
  };
4017
4027
  }, [
4018
- h,
4028
+ p,
4019
4029
  z,
4020
4030
  V,
4021
4031
  k,
@@ -4048,9 +4058,9 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4048
4058
  images: o,
4049
4059
  onPlaceholderImageLoaded: i,
4050
4060
  onSpinImagesLoaded: d,
4051
- onError: l
4061
+ onError: c
4052
4062
  }) => {
4053
- const { autoLoad360: c, emitAnalyticsEvent: v, themeConfig: e } = je(), { displayedCategoryId: E, displayedCategoryName: k } = Ke(), N = Ue(() => vt(e), [e]), L = Ue(() => o.map(({ src: C }) => C), [o]), [p, n] = Ie(null), b = p ? [...p.values()].filter((C) => C).length / o.length * 100 : null, P = G(
4063
+ const { autoLoad360: u, emitAnalyticsEvent: v, themeConfig: e } = je(), { displayedCategoryId: E, displayedCategoryName: k } = Ke(), N = Ue(() => wt(e), [e]), L = Ue(() => o.map(({ src: C }) => C), [o]), [h, n] = Ie(null), b = h ? [...h.values()].filter((C) => C).length / o.length * 100 : null, P = G(
4054
4064
  (C) => {
4055
4065
  b === null && (n(new Map(L.map((x) => [x, !1]))), v({
4056
4066
  type: "interaction",
@@ -4079,13 +4089,13 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4079
4089
  P("click");
4080
4090
  }, [P]), w = G((C) => {
4081
4091
  n((x) => {
4082
- const h = new Map(x);
4083
- return h.set(C, !0), h;
4092
+ const p = new Map(x);
4093
+ return p.set(C, !0), p;
4084
4094
  });
4085
4095
  }, []);
4086
4096
  return ve(() => {
4087
- c && P("auto");
4088
- }, [c, P]), ve(() => {
4097
+ u && P("auto");
4098
+ }, [u, P]), ve(() => {
4089
4099
  b === 100 && d();
4090
4100
  }, [b, d]), /* @__PURE__ */ me("div", { className: "relative aspect-[4/3] w-full", children: [
4091
4101
  b !== null && b !== 100 && // Add images to DOM to preload them
@@ -4094,7 +4104,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4094
4104
  {
4095
4105
  src: C,
4096
4106
  onLoad: () => w(C),
4097
- onError: l
4107
+ onError: c
4098
4108
  },
4099
4109
  C
4100
4110
  )) }),
@@ -4139,11 +4149,11 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4139
4149
  ] })
4140
4150
  ] });
4141
4151
  }, bo = (t) => {
4142
- const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, l] = Ie();
4152
+ const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, c] = Ie();
4143
4153
  return ve(() => {
4144
4154
  d === null || d === "error" || i(o, d === "spin" ? "running" : "ready");
4145
4155
  }, [o, i, d]), d === "error" ? /* @__PURE__ */ a(
4146
- Mt,
4156
+ It,
4147
4157
  {
4148
4158
  className: "text-background",
4149
4159
  text: "Spin could not be loaded"
@@ -4152,9 +4162,9 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4152
4162
  Co,
4153
4163
  {
4154
4164
  ...t,
4155
- onPlaceholderImageLoaded: () => l((c) => c === null ? "placeholder" : c),
4156
- onSpinImagesLoaded: () => l("spin"),
4157
- onError: () => l("error")
4165
+ onPlaceholderImageLoaded: () => c((u) => u === null ? "placeholder" : u),
4166
+ onSpinImagesLoaded: () => c("spin"),
4167
+ onError: () => c("error")
4158
4168
  }
4159
4169
  ) : /* @__PURE__ */ a(yo, { ...t });
4160
4170
  }, Lo = (t) => /* @__PURE__ */ a(Qe, { color: "neutral", shape: "icon", ...t, children: /* @__PURE__ */ a(Er, { className: "size-full" }) }), Eo = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ a(
@@ -4215,14 +4225,14 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4215
4225
  style: { transform: `translateX(-${100 * (1 - t)}%)` }
4216
4226
  }
4217
4227
  ) }), ko = 3e3, _o = ({ src: t, poster: o, itemIndex: i }) => {
4218
- const { carrouselItemIndex: d, setItemInteraction: l } = Ke(), c = Le(null), v = Le(null), e = G(() => {
4228
+ const { carrouselItemIndex: d, setItemInteraction: c } = Ke(), u = Le(null), v = Le(null), e = G(() => {
4219
4229
  if (!v.current)
4220
4230
  throw new Error("videoRef.current is null");
4221
4231
  return v.current;
4222
4232
  }, []);
4223
4233
  ve(() => {
4224
- l(i, "ready");
4225
- }, [i, l]);
4234
+ c(i, "ready");
4235
+ }, [i, c]);
4226
4236
  const E = G(() => {
4227
4237
  e().play();
4228
4238
  }, [e]), k = G(() => {
@@ -4231,15 +4241,15 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4231
4241
  ve(() => {
4232
4242
  d === i || k();
4233
4243
  }, [d, i, k]);
4234
- const [N, L] = Ie(!1), [p, n] = Ie(!0), b = () => {
4235
- L(!0), l(i, "running");
4244
+ const [N, L] = Ie(!1), [h, n] = Ie(!0), b = () => {
4245
+ L(!0), c(i, "running");
4236
4246
  }, P = () => {
4237
- L(!1), l(i, "ready");
4247
+ L(!1), c(i, "ready");
4238
4248
  }, _ = () => {
4239
4249
  n(!1);
4240
4250
  }, w = () => {
4241
4251
  n(!0);
4242
- }, [C, x] = Ie(null), h = (U) => {
4252
+ }, [C, x] = Ie(null), p = (U) => {
4243
4253
  const D = e(), J = U.currentTarget.getBoundingClientRect(), B = (U.clientX - J.left) / J.width, ie = Math.min(1, Math.max(0, B));
4244
4254
  D.volume = ie, D.muted = !1;
4245
4255
  }, y = (U) => {
@@ -4290,7 +4300,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4290
4300
  }, ko);
4291
4301
  }, [q]);
4292
4302
  return ve(() => {
4293
- const U = c.current, D = v.current;
4303
+ const U = u.current, D = v.current;
4294
4304
  if (!U || !D)
4295
4305
  return;
4296
4306
  const J = () => {
@@ -4311,7 +4321,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4311
4321
  return U.addEventListener("mousedown", ie), U.addEventListener("mouseup", F), U.addEventListener("mouseenter", J), U.addEventListener("mousemove", te), U.addEventListener("mouseleave", S), D.addEventListener("touchstart", K, { passive: !0 }), () => {
4312
4322
  U.removeEventListener("mousedown", ie), U.removeEventListener("mouseup", F), U.removeEventListener("mouseenter", J), U.removeEventListener("mousemove", J), U.removeEventListener("mouseleave", S), D.removeEventListener("touchstart", K);
4313
4323
  };
4314
- }, [q, k, ce]), /* @__PURE__ */ me("div", { ref: c, className: "relative aspect-[4/3] w-full", children: [
4324
+ }, [q, k, ce]), /* @__PURE__ */ me("div", { ref: u, className: "relative aspect-[4/3] w-full", children: [
4315
4325
  /* @__PURE__ */ a(
4316
4326
  "video",
4317
4327
  {
@@ -4372,7 +4382,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4372
4382
  "div",
4373
4383
  {
4374
4384
  className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${C.isMuted ? "group-hover/volume:opacity-50" : "group-hover/volume:opacity-100"}`,
4375
- onClick: h,
4385
+ onClick: p,
4376
4386
  children: /* @__PURE__ */ a(Jt, { progress: C.volume })
4377
4387
  }
4378
4388
  ),
@@ -4399,7 +4409,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4399
4409
  ]
4400
4410
  }
4401
4411
  ),
4402
- p && /* @__PURE__ */ a(
4412
+ h && /* @__PURE__ */ a(
4403
4413
  "div",
4404
4414
  {
4405
4415
  className: "pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",
@@ -4416,22 +4426,22 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4416
4426
  ] });
4417
4427
  }, To = ({ index: t, item: o, isShown: i }) => {
4418
4428
  const { type: d } = o;
4419
- let l;
4429
+ let c;
4420
4430
  switch (d) {
4421
4431
  case "image":
4422
- l = /* @__PURE__ */ a(Tr, { itemIndex: t, onlyPreload: !i, ...o });
4432
+ c = /* @__PURE__ */ a(Tr, { itemIndex: t, onlyPreload: !i, ...o });
4423
4433
  break;
4424
4434
  case "video":
4425
- l = /* @__PURE__ */ a(_o, { itemIndex: t, ...o });
4435
+ c = /* @__PURE__ */ a(_o, { itemIndex: t, ...o });
4426
4436
  break;
4427
4437
  case "360":
4428
- l = /* @__PURE__ */ a(bo, { itemIndex: t, onlyPreload: !i, ...o });
4438
+ c = /* @__PURE__ */ a(bo, { itemIndex: t, onlyPreload: !i, ...o });
4429
4439
  break;
4430
4440
  case "next360":
4431
- l = /* @__PURE__ */ a(ho, { itemIndex: t, onlyPreload: !i, ...o });
4441
+ c = /* @__PURE__ */ a(po, { itemIndex: t, onlyPreload: !i, ...o });
4432
4442
  break;
4433
4443
  case "interior-360":
4434
- l = /* @__PURE__ */ a(
4444
+ c = /* @__PURE__ */ a(
4435
4445
  ao,
4436
4446
  {
4437
4447
  itemIndex: t,
@@ -4441,9 +4451,9 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4441
4451
  );
4442
4452
  break;
4443
4453
  case "custom":
4444
- l = /* @__PURE__ */ a(Yn, { itemIndex: t, ...o });
4454
+ c = /* @__PURE__ */ a(Yn, { itemIndex: t, ...o });
4445
4455
  }
4446
- return l = /* @__PURE__ */ a("div", { className: "grid grid-cols-[repeat(var(--max-items),1fr)]", children: l }), l;
4456
+ return c = /* @__PURE__ */ a("div", { className: "grid grid-cols-[repeat(var(--max-items),1fr)]", children: c }), c;
4447
4457
  }, So = (t) => {
4448
4458
  ve(() => {
4449
4459
  const o = (i) => {
@@ -4462,15 +4472,15 @@ const No = ({
4462
4472
  children: o,
4463
4473
  isVisible: i,
4464
4474
  url: d,
4465
- title: l,
4466
- description: c,
4475
+ title: c,
4476
+ description: u,
4467
4477
  clickHandler: v,
4468
4478
  extendMode: e,
4469
4479
  variant: E,
4470
4480
  aspectRatioStyle: k,
4471
4481
  maxItemsShown: N = 1
4472
4482
  }) => {
4473
- const { isFullScreen: L, integration: p } = je(), n = () => E || (!p || L ? "centered" : "aside"), b = () => !!(l || c), P = () => !!d, _ = () => P() && !b(), w = n(), C = (x) => {
4483
+ const { isFullScreen: L, integration: h } = je(), n = () => E || (!h || L ? "centered" : "aside"), b = () => !!(c || u), P = () => !!d, _ = () => P() && !b(), w = n(), C = (x) => {
4474
4484
  if (!k) return {};
4475
4485
  switch (x) {
4476
4486
  case "centered":
@@ -4560,24 +4570,24 @@ const No = ({
4560
4570
  e && "large:p-4"
4561
4571
  ),
4562
4572
  children: [
4563
- l && /* @__PURE__ */ a(
4573
+ c && /* @__PURE__ */ a(
4564
4574
  "h3",
4565
4575
  {
4566
4576
  className: ue(
4567
4577
  "text-[clamp(0.875rem,0.6rem+1.6cqw,1.125rem)] font-semibold text-white small:font-bold",
4568
4578
  e && "large:text-lg"
4569
4579
  ),
4570
- children: l
4580
+ children: c
4571
4581
  }
4572
4582
  ),
4573
- c && /* @__PURE__ */ a(
4583
+ u && /* @__PURE__ */ a(
4574
4584
  "p",
4575
4585
  {
4576
4586
  className: ue(
4577
4587
  "text-[clamp(0.75rem,0.55rem+1.3cqw,0.875rem)] text-white",
4578
4588
  e && "large:text-sm"
4579
4589
  ),
4580
- children: c
4590
+ children: u
4581
4591
  }
4582
4592
  )
4583
4593
  ]
@@ -4606,7 +4616,7 @@ const No = ({
4606
4616
  ),
4607
4617
  style: {
4608
4618
  containerType: "inline-size",
4609
- width: p ? `${100 / (L ? 1 : N)}%` : `${100 / N}%`
4619
+ width: h ? `${100 / (L ? 1 : N)}%` : `${100 / N}%`
4610
4620
  },
4611
4621
  children: [
4612
4622
  o,
@@ -4628,24 +4638,24 @@ const No = ({
4628
4638
  P() ? "min-h-[15%] shrink-0" : "flex-1 overflow-y-auto"
4629
4639
  ),
4630
4640
  children: [
4631
- l && /* @__PURE__ */ a(
4641
+ c && /* @__PURE__ */ a(
4632
4642
  "span",
4633
4643
  {
4634
4644
  className: ue(
4635
4645
  "block text-[clamp(0.75rem,0.45rem+1.8cqw,1.125rem)] font-semibold leading-tight small:font-bold",
4636
4646
  e && "large:text-lg"
4637
4647
  ),
4638
- children: l
4648
+ children: c
4639
4649
  }
4640
4650
  ),
4641
- c && /* @__PURE__ */ a(
4651
+ u && /* @__PURE__ */ a(
4642
4652
  "p",
4643
4653
  {
4644
4654
  className: ue(
4645
4655
  "text-[clamp(0.625rem,0.4rem+1.5cqw,0.875rem)] leading-tight text-foreground/65",
4646
4656
  e && "large:text-sm"
4647
4657
  ),
4648
- children: c
4658
+ children: u
4649
4659
  }
4650
4660
  )
4651
4661
  ]
@@ -4674,7 +4684,7 @@ const No = ({
4674
4684
  ),
4675
4685
  style: {
4676
4686
  containerType: "inline-size",
4677
- width: p ? `${100 / (L ? 1 : N)}%` : `${100 / N}%`
4687
+ width: h ? `${100 / (L ? 1 : N)}%` : `${100 / N}%`
4678
4688
  },
4679
4689
  children: [
4680
4690
  o,
@@ -4689,24 +4699,24 @@ const No = ({
4689
4699
  }
4690
4700
  ),
4691
4701
  /* @__PURE__ */ me("div", { className: "h-[15%] space-y-1 overflow-y-auto px-2 py-1 small:p-3", children: [
4692
- l && /* @__PURE__ */ a(
4702
+ c && /* @__PURE__ */ a(
4693
4703
  "span",
4694
4704
  {
4695
4705
  className: ue(
4696
4706
  "text-[clamp(0.75rem,0.45rem+1.8cqw,1.125rem)] font-semibold small:font-bold",
4697
4707
  e && "large:text-lg"
4698
4708
  ),
4699
- children: l
4709
+ children: c
4700
4710
  }
4701
4711
  ),
4702
- c && /* @__PURE__ */ a(
4712
+ u && /* @__PURE__ */ a(
4703
4713
  "p",
4704
4714
  {
4705
4715
  className: ue(
4706
4716
  "text-[clamp(0.625rem,0.4rem+1.5cqw,0.875rem)] text-foreground/65",
4707
4717
  e && "large:text-sm"
4708
4718
  ),
4709
- children: c
4719
+ children: u
4710
4720
  }
4711
4721
  )
4712
4722
  ] })
@@ -4770,7 +4780,7 @@ const No = ({
4770
4780
  onToggle: o,
4771
4781
  label: i,
4772
4782
  className: d,
4773
- children: l
4783
+ children: c
4774
4784
  }) => /* @__PURE__ */ me(
4775
4785
  "label",
4776
4786
  {
@@ -4803,7 +4813,7 @@ const No = ({
4803
4813
  "flex size-4 items-center justify-center rounded-full p-0.5 transition",
4804
4814
  t ? "translate-x-1.5 bg-primary-foreground text-primary" : "-translate-x-1.5 bg-background text-foreground"
4805
4815
  ),
4806
- children: l
4816
+ children: c
4807
4817
  }
4808
4818
  )
4809
4819
  }
@@ -4828,13 +4838,13 @@ const No = ({
4828
4838
  )
4829
4839
  }
4830
4840
  ) }), Bo = ({ sharedClassName: t }) => {
4831
- const { categories: o } = lt(), { displayedCategoryId: i, changeCategory: d } = Ke(), [l, c] = Ie(!1), v = () => {
4832
- c(!l);
4841
+ const { categories: o } = lt(), { displayedCategoryId: i, changeCategory: d } = Ke(), [c, u] = Ie(!1), v = () => {
4842
+ u(!c);
4833
4843
  }, e = () => {
4834
- c(!1);
4844
+ u(!1);
4835
4845
  };
4836
4846
  return /* @__PURE__ */ me(nt, { children: [
4837
- l && /* @__PURE__ */ a(
4847
+ c && /* @__PURE__ */ a(
4838
4848
  "div",
4839
4849
  {
4840
4850
  className: ue(t, "inset-0 small:hidden"),
@@ -4846,7 +4856,7 @@ const No = ({
4846
4856
  {
4847
4857
  className: ue(
4848
4858
  t,
4849
- pt("top-left"),
4859
+ ht("top-left"),
4850
4860
  "flex gap-x-2 small:hidden"
4851
4861
  ),
4852
4862
  children: [
@@ -4854,12 +4864,12 @@ const No = ({
4854
4864
  Qe,
4855
4865
  {
4856
4866
  shape: "icon",
4857
- color: l ? "primary" : "neutral",
4867
+ color: c ? "primary" : "neutral",
4858
4868
  onClick: v,
4859
4869
  children: /* @__PURE__ */ a(Uo, {})
4860
4870
  }
4861
4871
  ),
4862
- l && /* @__PURE__ */ a("div", { className: "rounded-ui-md bg-background transition-radius", children: /* @__PURE__ */ a("ul", { className: "space-y-0.5 p-1", children: o.map(({ id: E, title: k }) => /* @__PURE__ */ a(
4872
+ c && /* @__PURE__ */ a("div", { className: "rounded-ui-md bg-background transition-radius", children: /* @__PURE__ */ a("ul", { className: "space-y-0.5 p-1", children: o.map(({ id: E, title: k }) => /* @__PURE__ */ a(
4863
4873
  "li",
4864
4874
  {
4865
4875
  className: ue(
@@ -4867,7 +4877,7 @@ const No = ({
4867
4877
  E === i && "bg-primary/50"
4868
4878
  ),
4869
4879
  onClick: () => {
4870
- d(E), c(!1);
4880
+ d(E), u(!1);
4871
4881
  },
4872
4882
  children: k
4873
4883
  },
@@ -4902,8 +4912,8 @@ const No = ({
4902
4912
  infiniteCarrousel: o,
4903
4913
  permanentGallery: i,
4904
4914
  extendBehavior: d,
4905
- maxItemsShown: l,
4906
- isFullScreen: c,
4915
+ maxItemsShown: c,
4916
+ isFullScreen: u,
4907
4917
  integration: v
4908
4918
  } = je(), {
4909
4919
  aspectRatioStyle: e,
@@ -4912,7 +4922,7 @@ const No = ({
4912
4922
  items: { length: k },
4913
4923
  slidable: N,
4914
4924
  carrouselItemIndex: L,
4915
- masterItemIndex: p,
4925
+ masterItemIndex: h,
4916
4926
  prevItem: n,
4917
4927
  nextItem: b,
4918
4928
  showGalleryControls: P,
@@ -4920,7 +4930,7 @@ const No = ({
4920
4930
  currentItemHotspotsVisible: w,
4921
4931
  toggleHotspots: C,
4922
4932
  showGallery: x,
4923
- toggleGallery: h,
4933
+ toggleGallery: p,
4924
4934
  extendMode: y,
4925
4935
  toggleExtendMode: T,
4926
4936
  shownDetails: $,
@@ -4941,13 +4951,13 @@ const No = ({
4941
4951
  );
4942
4952
  So(X);
4943
4953
  const J = "absolute z-overlay", S = () => {
4944
- if (l === 1) return L;
4945
- const F = Math.floor(l) - 1;
4954
+ if (c === 1) return L;
4955
+ const F = Math.floor(c) - 1;
4946
4956
  return L + F;
4947
4957
  }, B = () => {
4948
- if (!v) return p;
4949
- const F = Math.floor(l) - 1;
4950
- return p + F;
4958
+ if (!v) return h;
4959
+ const F = Math.floor(c) - 1;
4960
+ return h + F;
4951
4961
  };
4952
4962
  return /* @__PURE__ */ me(nt, { children: [
4953
4963
  !t && E > 1 && /* @__PURE__ */ a(
@@ -4960,10 +4970,10 @@ const No = ({
4960
4970
  )
4961
4971
  }
4962
4972
  ),
4963
- N && !z && /* @__PURE__ */ a("div", { className: ue(J, pt("top-right")), children: /* @__PURE__ */ a(
4973
+ N && !z && /* @__PURE__ */ a("div", { className: ue(J, ht("top-right")), children: /* @__PURE__ */ a(
4964
4974
  Ro,
4965
4975
  {
4966
- currentIndex: !v || c ? L : S(),
4976
+ currentIndex: !v || u ? L : S(),
4967
4977
  maxIndex: k - 1
4968
4978
  }
4969
4979
  ) }),
@@ -4975,11 +4985,11 @@ const No = ({
4975
4985
  color: "neutral",
4976
4986
  className: ue(
4977
4987
  J,
4978
- pt("middle-left"),
4988
+ ht("middle-left"),
4979
4989
  z ? "!pointer-events-none opacity-0" : "opacity-100"
4980
4990
  ),
4981
4991
  onClick: n,
4982
- disabled: !o && p <= 0,
4992
+ disabled: !o && h <= 0,
4983
4993
  children: /* @__PURE__ */ a(qe, { customizationKey: "CONTROLS_PREV", children: /* @__PURE__ */ a(zt, { className: "size-full -scale-x-100" }) })
4984
4994
  }
4985
4995
  ),
@@ -4990,7 +5000,7 @@ const No = ({
4990
5000
  color: "neutral",
4991
5001
  className: ue(
4992
5002
  J,
4993
- pt("middle-right"),
5003
+ ht("middle-right"),
4994
5004
  z ? "!pointer-events-none opacity-0" : "opacity-100"
4995
5005
  ),
4996
5006
  onClick: b,
@@ -5004,7 +5014,7 @@ const No = ({
5004
5014
  {
5005
5015
  className: ue(
5006
5016
  J,
5007
- pt("bottom-fullW"),
5017
+ ht("bottom-fullW"),
5008
5018
  "pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"
5009
5019
  ),
5010
5020
  children: [
@@ -5016,7 +5026,7 @@ const No = ({
5016
5026
  variant: "fill",
5017
5027
  color: x ? "primary" : "neutral",
5018
5028
  shape: "icon",
5019
- onClick: h,
5029
+ onClick: p,
5020
5030
  children: /* @__PURE__ */ a(Ao, { className: "size-full" })
5021
5031
  }
5022
5032
  ),
@@ -5046,7 +5056,7 @@ const No = ({
5046
5056
  children: /* @__PURE__ */ a(Do, { className: "size-full" })
5047
5057
  }
5048
5058
  ),
5049
- V && (!v || c) && /* @__PURE__ */ me("div", { className: "max-small:hidden", children: [
5059
+ V && (!v || u) && /* @__PURE__ */ me("div", { className: "max-small:hidden", children: [
5050
5060
  /* @__PURE__ */ a(
5051
5061
  Qe,
5052
5062
  {
@@ -5095,7 +5105,7 @@ const No = ({
5095
5105
  description: $?.text,
5096
5106
  clickHandler: D,
5097
5107
  extendMode: y,
5098
- maxItemsShown: l,
5108
+ maxItemsShown: c,
5099
5109
  aspectRatioStyle: e,
5100
5110
  children: /* @__PURE__ */ a(
5101
5111
  Rt,
@@ -5109,7 +5119,7 @@ const No = ({
5109
5119
  z && /* @__PURE__ */ a(
5110
5120
  Rt,
5111
5121
  {
5112
- className: ue(J, pt("top-right")),
5122
+ className: ue(J, ht("top-right")),
5113
5123
  onClick: U
5114
5124
  }
5115
5125
  )
@@ -5119,67 +5129,67 @@ const No = ({
5119
5129
  infiniteCarrousel: o,
5120
5130
  preloadRange: i,
5121
5131
  isFullScreen: d,
5122
- maxItemsShown: l,
5123
- integration: c
5132
+ maxItemsShown: c,
5133
+ integration: u
5124
5134
  } = je(), { aspectRatioStyle: v } = lt(), {
5125
5135
  items: e,
5126
5136
  slidable: E,
5127
5137
  carrouselItemIndex: k,
5128
5138
  setCarrouselItemIndex: N,
5129
5139
  itemIndexCommand: L,
5130
- setItemIndexCommand: p,
5140
+ setItemIndexCommand: h,
5131
5141
  specialCommand: n,
5132
5142
  isRunningSpecialCommand: b,
5133
5143
  finishSpecialCommand: P,
5134
5144
  extendMode: _,
5135
5145
  extendTransition: w
5136
- } = Ke(), { effectiveMaxItemsShown: C } = mr(), x = Le(null), h = G((S) => {
5146
+ } = Ke(), { effectiveMaxItemsShown: C } = mr(), x = Le(null), p = G((S) => {
5137
5147
  if (!x.current)
5138
5148
  throw new Error(`[${S ?? "sliderOrThrow"}] slider.current is null`);
5139
5149
  return x.current;
5140
5150
  }, []), y = Le(!1), T = Le(null), $ = Le(null), I = Le(null), X = G(() => {
5141
5151
  I.current && cancelAnimationFrame(I.current);
5142
5152
  }, []), V = G(() => {
5143
- const S = h("computeClosestSnapIndex"), B = Array.from(S.children), ie = S.scrollLeft;
5153
+ const S = p("computeClosestSnapIndex"), B = Array.from(S.children), ie = S.scrollLeft;
5144
5154
  let F = 0, te = 1 / 0;
5145
5155
  if (B.forEach((K, ne) => {
5146
5156
  const M = K.offsetLeft, le = Math.abs(M - ie);
5147
5157
  le < te && (te = le, F = ne);
5148
5158
  }), C > 1) {
5149
- const K = Math.ceil(C), ne = e.length + (c && !o && C % 1 !== 0 ? 1 : 0), M = Math.max(0, ne - K);
5150
- if (F = Math.min(F, M), c && !o && C % 1 !== 0) {
5159
+ const K = Math.ceil(C), ne = e.length + (u && !o && C % 1 !== 0 ? 1 : 0), M = Math.max(0, ne - K);
5160
+ if (F = Math.min(F, M), u && !o && C % 1 !== 0) {
5151
5161
  const le = e.length - 1;
5152
5162
  F = Math.min(F, le);
5153
5163
  }
5154
5164
  }
5155
5165
  return F;
5156
5166
  }, [
5157
- h,
5167
+ p,
5158
5168
  C,
5159
5169
  e.length,
5160
5170
  o,
5161
- c
5171
+ u
5162
5172
  ]), z = G(
5163
5173
  (S) => {
5164
- const B = h("setStyleCursor");
5174
+ const B = p("setStyleCursor");
5165
5175
  B.style.cursor = S;
5166
5176
  },
5167
- [h]
5177
+ [p]
5168
5178
  ), H = G(
5169
5179
  (S) => {
5170
- const B = h("setStyleSnapState");
5180
+ const B = p("setStyleSnapState");
5171
5181
  S === "mandatory" ? B.style.scrollSnapType = "x mandatory" : B.style.scrollSnapType = "none";
5172
5182
  },
5173
- [h]
5183
+ [p]
5174
5184
  ), R = G(
5175
5185
  (S, B, ie) => {
5176
5186
  X();
5177
- const F = h("scrollToIndex"), te = Array.from(F.children), K = F.scrollLeft;
5187
+ const F = p("scrollToIndex"), te = Array.from(F.children), K = F.scrollLeft;
5178
5188
  let ne = te[S].offsetLeft;
5179
5189
  const M = F.clientWidth, le = F.scrollWidth - M;
5180
5190
  if (C > 1) {
5181
- const f = Math.ceil(C), ee = e.length + (c && !o && C % 1 !== 0 ? 1 : 0);
5182
- S >= ee - f && (ne = Math.min(ne, le));
5191
+ const f = Math.ceil(C), Q = e.length + (u && !o && C % 1 !== 0 ? 1 : 0);
5192
+ S >= Q - f && (ne = Math.min(ne, le));
5183
5193
  }
5184
5194
  const j = (f) => {
5185
5195
  F.scrollTo({
@@ -5195,27 +5205,27 @@ const No = ({
5195
5205
  }
5196
5206
  const Ve = tt(Ye / 2.5, 300, 1e3), we = (/* @__PURE__ */ new Date()).getTime();
5197
5207
  H("none");
5198
- const u = () => {
5208
+ const l = () => {
5199
5209
  const f = () => {
5200
5210
  const oe = (/* @__PURE__ */ new Date()).getTime() - we;
5201
5211
  if (oe >= Ve) {
5202
5212
  Te();
5203
5213
  return;
5204
5214
  }
5205
- const Q = Math.min(oe / Ve, 1), g = kr(Q), ae = bt(K, ne, g);
5206
- j(ae), u();
5215
+ const ee = Math.min(oe / Ve, 1), g = kr(ee), ae = Lt(K, ne, g);
5216
+ j(ae), l();
5207
5217
  };
5208
5218
  I.current = requestAnimationFrame(f);
5209
5219
  };
5210
- u();
5220
+ l();
5211
5221
  },
5212
5222
  [
5213
5223
  X,
5214
- h,
5224
+ p,
5215
5225
  C,
5216
5226
  H,
5217
5227
  e.length,
5218
- c,
5228
+ u,
5219
5229
  o
5220
5230
  ]
5221
5231
  ), [q, ce] = Ie(), U = !!q;
@@ -5224,7 +5234,7 @@ const No = ({
5224
5234
  clearTimeout(q);
5225
5235
  const B = setTimeout(() => {
5226
5236
  ce(void 0);
5227
- }, hr);
5237
+ }, pr);
5228
5238
  ce(B);
5229
5239
  };
5230
5240
  return addEventListener("resize", S), document.addEventListener("fullscreenchange", S), () => {
@@ -5301,7 +5311,7 @@ const No = ({
5301
5311
  return;
5302
5312
  const B = () => {
5303
5313
  const ie = V();
5304
- Number.isNaN(ie) || (N(ie), ie === L && p(null));
5314
+ Number.isNaN(ie) || (N(ie), ie === L && h(null));
5305
5315
  };
5306
5316
  return S.addEventListener("scroll", B), () => {
5307
5317
  S.removeEventListener("scroll", B);
@@ -5311,20 +5321,20 @@ const No = ({
5311
5321
  w,
5312
5322
  U,
5313
5323
  L,
5314
- l,
5324
+ c,
5315
5325
  N,
5316
- p
5326
+ h
5317
5327
  ]), ve(() => {
5318
5328
  if (L === null)
5319
5329
  return;
5320
5330
  const S = () => {
5321
5331
  setTimeout(() => {
5322
- p(null), P();
5332
+ h(null), P();
5323
5333
  }, 75);
5324
5334
  };
5325
5335
  switch (n) {
5326
5336
  case "first_to_last": {
5327
- const B = Math.ceil(C), ie = e.length + (c && !o && C % 1 !== 0 ? 1 : 0), F = C > 1 ? Math.max(0, ie - B) : e.length - 1;
5337
+ const B = Math.ceil(C), ie = e.length + (u && !o && C % 1 !== 0 ? 1 : 0), F = C > 1 ? Math.max(0, ie - B) : e.length - 1;
5328
5338
  R(F, "instant", S);
5329
5339
  break;
5330
5340
  }
@@ -5344,12 +5354,12 @@ const No = ({
5344
5354
  L,
5345
5355
  e.length,
5346
5356
  R,
5347
- p,
5357
+ h,
5348
5358
  C,
5349
5359
  o,
5350
- c
5360
+ u
5351
5361
  ]);
5352
- const D = Ue(() => !c || d ? v : { aspectRatio: "auto" }, [c, d, v]), J = Ue(
5362
+ const D = Ue(() => !u || d ? v : { aspectRatio: "auto" }, [u, d, v]), J = Ue(
5353
5363
  () => ({
5354
5364
  ...v,
5355
5365
  minWidth: `${100 / C}%`,
@@ -5427,7 +5437,7 @@ const No = ({
5427
5437
  j
5428
5438
  );
5429
5439
  }),
5430
- c && !o && !d && l % 1 !== 0 && /* @__PURE__ */ a(
5440
+ u && !o && !d && c % 1 !== 0 && /* @__PURE__ */ a(
5431
5441
  "div",
5432
5442
  {
5433
5443
  className: "h-full",
@@ -5445,31 +5455,31 @@ const No = ({
5445
5455
  }, Zo = () => {
5446
5456
  const { permanentGallery: t, integration: o } = je(), { aspectRatioStyle: i } = lt(), {
5447
5457
  isShowingDetails: d,
5448
- resetShownDetails: l,
5449
- extendMode: c,
5458
+ resetShownDetails: c,
5459
+ extendMode: u,
5450
5460
  disableExtendMode: v,
5451
5461
  isZooming: e,
5452
5462
  resetZoom: E,
5453
5463
  fakeFullScreen: k
5454
- } = Ke(), N = Le(null), L = Le(null), p = Le(null);
5464
+ } = Ke(), N = Le(null), L = Le(null), h = Le(null);
5455
5465
  return ve(() => {
5456
- if (!c)
5466
+ if (!u)
5457
5467
  return;
5458
- const n = N.current, b = L.current, P = p.current;
5468
+ const n = N.current, b = L.current, P = h.current;
5459
5469
  if (!n || !b || !P)
5460
5470
  return;
5461
5471
  let _ = !1;
5462
- const w = (h) => [n, b, P].includes(h.target), C = (h) => {
5463
- _ = w(h);
5464
- }, x = (h) => {
5465
- _ && (w(h) && v(), _ = !1);
5472
+ const w = (p) => [n, b, P].includes(p.target), C = (p) => {
5473
+ _ = w(p);
5474
+ }, x = (p) => {
5475
+ _ && (w(p) && v(), _ = !1);
5466
5476
  };
5467
5477
  return n.addEventListener("mousedown", C), n.addEventListener("mouseup", x), () => {
5468
5478
  n.removeEventListener("mousedown", C), n.removeEventListener("mouseup", x);
5469
5479
  };
5470
- }, [v, c]), ve(() => {
5480
+ }, [v, u]), ve(() => {
5471
5481
  const n = (b) => {
5472
- b.key === "Escape" && (e ? E() : d ? l() : v());
5482
+ b.key === "Escape" && (e ? E() : d ? c() : v());
5473
5483
  };
5474
5484
  return addEventListener("keydown", n), () => {
5475
5485
  removeEventListener("keydown", n);
@@ -5478,7 +5488,7 @@ const No = ({
5478
5488
  v,
5479
5489
  d,
5480
5490
  e,
5481
- l,
5491
+ c,
5482
5492
  E
5483
5493
  ]), /* @__PURE__ */ me(
5484
5494
  "div",
@@ -5486,7 +5496,7 @@ const No = ({
5486
5496
  ref: N,
5487
5497
  className: ue(
5488
5498
  "relative",
5489
- c && "flex size-full items-center justify-center",
5499
+ u && "flex size-full items-center justify-center",
5490
5500
  k && "fixed inset-0 z-overlay bg-foreground/75"
5491
5501
  ),
5492
5502
  children: [
@@ -5494,24 +5504,24 @@ const No = ({
5494
5504
  "div",
5495
5505
  {
5496
5506
  ref: L,
5497
- className: c ? "flex size-full flex-col justify-center gap-y-2 small:gap-y-4" : "space-y-2",
5507
+ className: u ? "flex size-full flex-col justify-center gap-y-2 small:gap-y-4" : "space-y-2",
5498
5508
  children: [
5499
5509
  /* @__PURE__ */ a(
5500
5510
  "div",
5501
5511
  {
5502
- ref: p,
5512
+ ref: h,
5503
5513
  className: ue(
5504
- c && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
5514
+ u && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
5505
5515
  ),
5506
5516
  style: o ? {} : i,
5507
- children: /* @__PURE__ */ a(Xo, { className: ue(c && "h-full min-w-0") })
5517
+ children: /* @__PURE__ */ a(Xo, { className: ue(u && "h-full min-w-0") })
5508
5518
  }
5509
5519
  ),
5510
- t && /* @__PURE__ */ a(Ir, { className: ue(c && "my-2 shrink-0 small:my-4") })
5520
+ t && /* @__PURE__ */ a(Ir, { className: ue(u && "my-2 shrink-0 small:my-4") })
5511
5521
  ]
5512
5522
  }
5513
5523
  ),
5514
- c && /* @__PURE__ */ a(
5524
+ u && /* @__PURE__ */ a(
5515
5525
  Rt,
5516
5526
  {
5517
5527
  className: "absolute right-2 top-2 small:right-4 small:top-4",
@@ -5524,8 +5534,8 @@ const No = ({
5524
5534
  }, Vo = () => {
5525
5535
  const { emitEvent: t, emitAnalyticsEvent: o, compositionUrl: i } = je(), {
5526
5536
  data: d,
5527
- status: l,
5528
- isSuccess: c,
5537
+ status: c,
5538
+ isSuccess: u,
5529
5539
  error: v
5530
5540
  } = wn(i);
5531
5541
  return ve(() => {
@@ -5549,22 +5559,22 @@ const No = ({
5549
5559
  }
5550
5560
  };
5551
5561
  o(e);
5552
- } else l === "fetching" ? t(tr, i) : c && t(rr, d);
5562
+ } else c === "fetching" ? t(tr, i) : u && t(rr, d);
5553
5563
  }, [
5554
5564
  d,
5555
5565
  i,
5556
5566
  t,
5557
5567
  o,
5558
5568
  v,
5559
- c,
5560
- l
5569
+ u,
5570
+ c
5561
5571
  ]), v ? /* @__PURE__ */ a(
5562
- Mt,
5572
+ It,
5563
5573
  {
5564
5574
  className: "aspect-square text-foreground/70",
5565
5575
  text: "Player could not be loaded"
5566
5576
  }
5567
- ) : c ? /* @__PURE__ */ a(yn, { composition: d, children: /* @__PURE__ */ a(Ln, { children: /* @__PURE__ */ a(Zo, {}) }) }) : /* @__PURE__ */ me("div", { className: "flex aspect-square size-full flex-col items-center justify-center gap-y-4", children: [
5577
+ ) : u ? /* @__PURE__ */ a(yn, { composition: d, children: /* @__PURE__ */ a(Ln, { children: /* @__PURE__ */ a(Zo, {}) }) }) : /* @__PURE__ */ me("div", { className: "flex aspect-square size-full flex-col items-center justify-center gap-y-4", children: [
5568
5578
  /* @__PURE__ */ a("div", { className: "animate-pulse text-xl", children: "Loading Player" }),
5569
5579
  /* @__PURE__ */ a(Cr, { color: "foreground" })
5570
5580
  ] });
@@ -5572,7 +5582,7 @@ const No = ({
5572
5582
  hideCategoriesNav: !0,
5573
5583
  infiniteCarrousel: !1,
5574
5584
  permanentGallery: !1
5575
- }, Go = [1, 1.5, 2, 2.5], jo = () => Ue(() => hn(), []), qo = () => Ue(() => mn(), []), Ko = () => Ue(() => gn(), []), $o = "https://analytics.eu.car-cutter.com", Jo = {
5585
+ }, Go = [1, 1.5, 2, 2.5], jo = () => Ue(() => pn(), []), qo = () => Ue(() => mn(), []), Ko = () => Ue(() => gn(), []), $o = "https://analytics.eu.car-cutter.com", Jo = {
5576
5586
  load: "/webplayer/load",
5577
5587
  display: "/webplayer/display",
5578
5588
  interaction: "/webplayer/interaction",
@@ -5587,12 +5597,12 @@ const No = ({
5587
5597
  const { type: o, ...i } = t;
5588
5598
  return JSON.stringify(i);
5589
5599
  }, r2 = 1e4, n2 = async (t, o = r2) => {
5590
- const { payload: i, compositionUrl: d } = t, l = e2(d), c = t2(i), v = Qo(i.type), e = new AbortController(), E = setTimeout(() => e.abort(), o);
5600
+ const { payload: i, compositionUrl: d } = t, c = e2(d), u = t2(i), v = Qo(i.type), e = new AbortController(), E = setTimeout(() => e.abort(), o);
5591
5601
  try {
5592
5602
  const k = await fetch(v, {
5593
5603
  method: "POST",
5594
- headers: l,
5595
- body: c,
5604
+ headers: c,
5605
+ body: u,
5596
5606
  signal: e.signal
5597
5607
  });
5598
5608
  if (!k.ok)
@@ -5607,15 +5617,15 @@ const No = ({
5607
5617
  integration: o = sn,
5608
5618
  maxItemsShown: i = ur,
5609
5619
  hideCategoriesNav: d = Gr,
5610
- infiniteCarrousel: l = jr,
5611
- permanentGallery: c = qr,
5620
+ infiniteCarrousel: c = jr,
5621
+ permanentGallery: u = qr,
5612
5622
  mediaLoadStrategy: v = Kr,
5613
5623
  minMediaWidth: e = $r,
5614
5624
  maxMediaWidth: E = Jr,
5615
5625
  preloadRange: k = Qr,
5616
5626
  autoLoad360: N = en,
5617
5627
  autoLoadInterior360: L = tn,
5618
- categoriesFilter: p = rn,
5628
+ categoriesFilter: h = rn,
5619
5629
  extendBehavior: n = nn,
5620
5630
  eventPrefix: b = cr,
5621
5631
  demoSpin: P = on,
@@ -5623,9 +5633,9 @@ const No = ({
5623
5633
  analyticsEventPrefix: w = dr,
5624
5634
  analyticsUrl: C = ln,
5625
5635
  analyticsBearer: x = cn,
5626
- analyticsSimpleRequestsOnly: h = un,
5636
+ analyticsSimpleRequestsOnly: p = un,
5627
5637
  analyticsDryRun: y = dn,
5628
- analyticsDebug: T = pn,
5638
+ analyticsDebug: T = hn,
5629
5639
  spinCursor: $ = Dt,
5630
5640
  monitoring: I,
5631
5641
  themeConfig: X,
@@ -5665,9 +5675,18 @@ const No = ({
5665
5675
  });
5666
5676
  if (document.dispatchEvent(Te), C || z) {
5667
5677
  const Ye = "POST", Ve = new Headers();
5668
- h || (Ve.append("Content-Type", "application/json"), Ve.append("Cache-Control", "no-cache"), x && Ve.append("Authorization", `Bearer ${x}`));
5669
- const we = JSON.stringify(le);
5670
- C && await fetch(C, { method: Ye, headers: Ve, body: we }), z && await n2({ payload: le, compositionUrl: t });
5678
+ p || (Ve.append("Content-Type", "application/json"), Ve.append("Cache-Control", "no-cache"), x && Ve.append("Authorization", `Bearer ${x}`));
5679
+ const we = JSON.stringify(le), l = [];
5680
+ C && l.push(fetch(C, { method: Ye, headers: Ve, body: we })), z && l.push(
5681
+ n2({ payload: le, compositionUrl: t })
5682
+ );
5683
+ const f = await Promise.allSettled(l);
5684
+ if (T)
5685
+ for (const Q of f)
5686
+ Q.status === "rejected" && console.error(
5687
+ "Analytics request failed:",
5688
+ Q.reason
5689
+ );
5671
5690
  }
5672
5691
  } catch (M) {
5673
5692
  if (!T) return;
@@ -5678,7 +5697,7 @@ const No = ({
5678
5697
  w,
5679
5698
  C,
5680
5699
  x,
5681
- h,
5700
+ p,
5682
5701
  y,
5683
5702
  T,
5684
5703
  B,
@@ -5694,14 +5713,14 @@ const No = ({
5694
5713
  integration: o,
5695
5714
  max_items_shown: i,
5696
5715
  hide_categories_nav: d,
5697
- infinite_carrousel: l,
5698
- permanent_gallery: c,
5716
+ infinite_carrousel: c,
5717
+ permanent_gallery: u,
5699
5718
  media_load_strategy: v,
5700
5719
  min_media_width: e,
5701
5720
  preload_range: k,
5702
5721
  auto_load_360: N,
5703
5722
  auto_load_interior_360: L,
5704
- categories_filter: p,
5723
+ categories_filter: h,
5705
5724
  extend_behavior: n,
5706
5725
  event_prefix: b,
5707
5726
  demo_spin: P,
@@ -5764,14 +5783,14 @@ const No = ({
5764
5783
  compositionUrl: t,
5765
5784
  integration: o,
5766
5785
  hideCategoriesNav: d,
5767
- infiniteCarrousel: l,
5768
- permanentGallery: c,
5786
+ infiniteCarrousel: c,
5787
+ permanentGallery: u,
5769
5788
  maxItemsShown: i,
5770
5789
  mediaLoadStrategy: v,
5771
5790
  minMediaWidth: e,
5772
5791
  maxMediaWidth: E,
5773
5792
  preloadRange: k,
5774
- categoriesFilter: p,
5793
+ categoriesFilter: h,
5775
5794
  autoLoad360: N,
5776
5795
  autoLoadInterior360: L,
5777
5796
  extendBehavior: n,
@@ -5816,21 +5835,21 @@ const No = ({
5816
5835
  }
5817
5836
  );
5818
5837
  }, a2 = ({ children: t, index: o, thumbnailSrc: i }) => {
5819
- const { registerCustomMedia: d, unregisterCustomMedia: l } = gt();
5838
+ const { registerCustomMedia: d, unregisterCustomMedia: c } = vt();
5820
5839
  return ve(() => {
5821
5840
  if (!t)
5822
5841
  return;
5823
- const c = d({
5842
+ const u = d({
5824
5843
  Media: t,
5825
5844
  index: o,
5826
5845
  thumbnailSrc: i
5827
5846
  });
5828
5847
  return () => {
5829
- l(c);
5848
+ c(u);
5830
5849
  };
5831
- }, [t, l, o, d, i]), null;
5850
+ }, [t, c, o, d, i]), null;
5832
5851
  }, g2 = (t) => Ot() ? /* @__PURE__ */ a(a2, { ...t }) : /* @__PURE__ */ a("slot", {}), i2 = ({ name: t, children: o }) => {
5833
- const { registerIconConfig: i, unregisterIconConfig: d } = gt();
5852
+ const { registerIconConfig: i, unregisterIconConfig: d } = vt();
5834
5853
  return ve(() => {
5835
5854
  if (o)
5836
5855
  return i(t, {
@@ -5849,8 +5868,8 @@ function l2(t) {
5849
5868
  function Ut(t) {
5850
5869
  return Object.entries(t).reduce((o, [i, d]) => {
5851
5870
  if (d !== void 0) {
5852
- const l = l2(i);
5853
- o[l] = d.toString();
5871
+ const c = l2(i);
5872
+ o[c] = d.toString();
5854
5873
  }
5855
5874
  return o;
5856
5875
  }, {});
@@ -5863,15 +5882,15 @@ const w2 = (t) => /* @__PURE__ */ me(nt, { children: [
5863
5882
  onCompositionLoaded: o,
5864
5883
  onCompositionLoadError: i,
5865
5884
  onItemChange: d,
5866
- onExtendModeOn: l,
5867
- onExtendModeOff: c,
5885
+ onExtendModeOn: c,
5886
+ onExtendModeOff: u,
5868
5887
  onHotspotsOn: v,
5869
5888
  onHotspotsOff: e,
5870
5889
  onGalleryOpen: E,
5871
5890
  onGalleryClose: k,
5872
5891
  onAnalyticsLoad: N,
5873
5892
  onAnalyticsDisplay: L,
5874
- onAnalyticsInteraction: p,
5893
+ onAnalyticsInteraction: h,
5875
5894
  onAnalyticsError: n,
5876
5895
  className: b,
5877
5896
  style: P = {},
@@ -5883,13 +5902,13 @@ const w2 = (t) => /* @__PURE__ */ me(nt, { children: [
5883
5902
  return b && Object.assign(x, { class: b }), x;
5884
5903
  }, [b, w]);
5885
5904
  return ve(() => {
5886
- const x = w.eventPrefix ?? cr, h = w.analyticsEventPrefix ?? dr, y = (z) => `${x}${z}`, T = (z) => `${h}${z}`, $ = {
5905
+ const x = w.eventPrefix ?? cr, p = w.analyticsEventPrefix ?? dr, y = (z) => `${x}${z}`, T = (z) => `${p}${z}`, $ = {
5887
5906
  [tr]: t,
5888
5907
  [rr]: o,
5889
5908
  [nr]: i,
5890
5909
  [or]: d,
5891
- [ar]: l,
5892
- [ir]: c,
5910
+ [ar]: c,
5911
+ [ir]: u,
5893
5912
  [Pt]: v,
5894
5913
  [Nt]: e,
5895
5914
  [sr]: E,
@@ -5897,7 +5916,7 @@ const w2 = (t) => /* @__PURE__ */ me(nt, { children: [
5897
5916
  }, I = {
5898
5917
  [Xr]: N,
5899
5918
  [Zr]: L,
5900
- [Vr]: p,
5919
+ [Vr]: h,
5901
5920
  [Yr]: n
5902
5921
  }, X = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map();
5903
5922
  return Object.entries($).forEach(([z, H]) => {
@@ -5923,8 +5942,8 @@ const w2 = (t) => /* @__PURE__ */ me(nt, { children: [
5923
5942
  o,
5924
5943
  i,
5925
5944
  d,
5926
- l,
5927
5945
  c,
5946
+ u,
5928
5947
  v,
5929
5948
  e,
5930
5949
  E,
@@ -5932,7 +5951,7 @@ const w2 = (t) => /* @__PURE__ */ me(nt, { children: [
5932
5951
  w.analyticsEventPrefix,
5933
5952
  N,
5934
5953
  L,
5935
- p,
5954
+ h,
5936
5955
  n
5937
5956
  ]), /* @__PURE__ */ a("cc-webplayer", { style: { display: "block", ...P }, ...C, children: _ });
5938
5957
  }, y2 = ({ children: t, ...o }) => {
@@ -5971,5 +5990,5 @@ export {
5971
5990
  x2 as s,
5972
5991
  y2 as t,
5973
5992
  C2 as u,
5974
- h2 as v
5993
+ p2 as v
5975
5994
  };