@car-cutter/wc-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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const Jt = "cc-webplayer", wn = "cc-webplayer-custom-media", yn = "cc-webplayer-icon", bo = "composition-loading", Co = "composition-loaded", Eo = "composition-load-error", Lo = "item-change", Mo = "extend-mode-on", ko = "extend-mode-off", Wn = "hotspots-on", Bn = "hotspots-off", Io = "gallery-open", To = "gallery-close";
1
+ const Qt = "cc-webplayer", wn = "cc-webplayer-custom-media", yn = "cc-webplayer-icon", bo = "composition-loading", Co = "composition-loaded", Eo = "composition-load-error", Lo = "item-change", Mo = "extend-mode-on", ko = "extend-mode-off", Wn = "hotspots-on", Bn = "hotspots-off", Io = "gallery-open", To = "gallery-close";
2
2
  const So = "quality";
3
3
  const Po = "full_screen", No = "cc-webplayer:";
4
4
  const xn = "ew-resize";
@@ -42,9 +42,9 @@ function Oo() {
42
42
  return bn();
43
43
  }
44
44
  function Fo() {
45
- return !!customElements.get(Jt) && !!customElements.get(wn) && !!customElements.get(yn);
45
+ return !!customElements.get(Qt) && !!customElements.get(wn) && !!customElements.get(yn);
46
46
  }
47
- var Dt, Ie, pr, yt, Vn, hr, mr, gr, Cn, un, dn, vr, Rt = {}, _r = [], Ho = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, zt = Array.isArray;
47
+ var zt, Ie, pr, yt, Vn, hr, mr, gr, Cn, un, dn, vr, At = {}, _r = [], Ho = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ot = Array.isArray;
48
48
  function st(e, t) {
49
49
  for (var n in t) e[n] = t[n];
50
50
  return e;
@@ -55,10 +55,10 @@ function En(e) {
55
55
  function ft(e, t, n) {
56
56
  var o, i, s, u = {};
57
57
  for (s in t) s == "key" ? o = t[s] : s == "ref" ? i = t[s] : u[s] = t[s];
58
- if (arguments.length > 2 && (u.children = arguments.length > 3 ? Dt.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (s in e.defaultProps) u[s] === void 0 && (u[s] = e.defaultProps[s]);
59
- return Nt(e, u, o, i, null);
58
+ if (arguments.length > 2 && (u.children = arguments.length > 3 ? zt.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (s in e.defaultProps) u[s] === void 0 && (u[s] = e.defaultProps[s]);
59
+ return Rt(e, u, o, i, null);
60
60
  }
61
- function Nt(e, t, n, o, i) {
61
+ function Rt(e, t, n, o, i) {
62
62
  var s = { type: e, props: t, key: n, ref: o, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: i ?? ++pr, __i: -1, __u: 0 };
63
63
  return i == null && Ie.vnode != null && Ie.vnode(s), s;
64
64
  }
@@ -87,20 +87,20 @@ function wr(e) {
87
87
  }
88
88
  }
89
89
  function fn(e) {
90
- (!e.__d && (e.__d = !0) && yt.push(e) && !Kt.__r++ || Vn != Ie.debounceRendering) && ((Vn = Ie.debounceRendering) || hr)(Kt);
90
+ (!e.__d && (e.__d = !0) && yt.push(e) && !Jt.__r++ || Vn != Ie.debounceRendering) && ((Vn = Ie.debounceRendering) || hr)(Jt);
91
91
  }
92
- function Kt() {
92
+ function Jt() {
93
93
  for (var e, t, n, o, i, s, u, r = 1; yt.length; ) yt.length > r && yt.sort(mr), e = yt.shift(), r = yt.length, e.__d && (n = void 0, o = void 0, i = (o = (t = e).__v).__e, s = [], u = [], t.__P && ((n = st({}, o)).__v = o.__v + 1, Ie.vnode && Ie.vnode(n), Ln(t.__P, n, o, t.__n, t.__P.namespaceURI, 32 & o.__u ? [i] : null, s, i ?? Et(o), !!(32 & o.__u), u), n.__v = o.__v, n.__.__k[n.__i] = n, br(s, n, u), o.__e = o.__ = null, n.__e != i && wr(n)));
94
- Kt.__r = 0;
94
+ Jt.__r = 0;
95
95
  }
96
96
  function yr(e, t, n, o, i, s, u, r, v, m, L) {
97
97
  var f, p, a, b, I, k, g, y = o && o.__k || _r, E = t.length;
98
- for (v = Wo(n, t, y, v, E), f = 0; f < E; f++) (a = n.__k[f]) != null && (p = a.__i == -1 ? Rt : y[a.__i] || Rt, a.__i = f, k = Ln(e, a, p, i, s, u, r, v, m, L), b = a.__e, a.ref && p.ref != a.ref && (p.ref && Mn(p.ref, null, a), L.push(a.ref, a.__c || b, a)), I == null && b != null && (I = b), (g = !!(4 & a.__u)) || p.__k === a.__k ? v = xr(a, v, e, g) : typeof a.type == "function" && k !== void 0 ? v = k : b && (v = b.nextSibling), a.__u &= -7);
98
+ for (v = Wo(n, t, y, v, E), f = 0; f < E; f++) (a = n.__k[f]) != null && (p = a.__i == -1 ? At : y[a.__i] || At, a.__i = f, k = Ln(e, a, p, i, s, u, r, v, m, L), b = a.__e, a.ref && p.ref != a.ref && (p.ref && Mn(p.ref, null, a), L.push(a.ref, a.__c || b, a)), I == null && b != null && (I = b), (g = !!(4 & a.__u)) || p.__k === a.__k ? v = xr(a, v, e, g) : typeof a.type == "function" && k !== void 0 ? v = k : b && (v = b.nextSibling), a.__u &= -7);
99
99
  return n.__e = I, v;
100
100
  }
101
101
  function Wo(e, t, n, o, i) {
102
102
  var s, u, r, v, m, L = n.length, f = L, p = 0;
103
- for (e.__k = new Array(i), s = 0; s < i; s++) (u = t[s]) != null && typeof u != "boolean" && typeof u != "function" ? (typeof u == "string" || typeof u == "number" || typeof u == "bigint" || u.constructor == String ? u = e.__k[s] = Nt(null, u, null, null, null) : zt(u) ? u = e.__k[s] = Nt(Ke, { children: u }, null, null, null) : u.constructor === void 0 && u.__b > 0 ? u = e.__k[s] = Nt(u.type, u.props, u.key, u.ref ? u.ref : null, u.__v) : e.__k[s] = u, v = s + p, u.__ = e, u.__b = e.__b + 1, r = null, (m = u.__i = Bo(u, n, v, f)) != -1 && (f--, (r = n[m]) && (r.__u |= 2)), r == null || r.__v == null ? (m == -1 && (i > L ? p-- : i < L && p++), typeof u.type != "function" && (u.__u |= 4)) : m != v && (m == v - 1 ? p-- : m == v + 1 ? p++ : (m > v ? p-- : p++, u.__u |= 4))) : e.__k[s] = null;
103
+ for (e.__k = new Array(i), s = 0; s < i; s++) (u = t[s]) != null && typeof u != "boolean" && typeof u != "function" ? (typeof u == "string" || typeof u == "number" || typeof u == "bigint" || u.constructor == String ? u = e.__k[s] = Rt(null, u, null, null, null) : Ot(u) ? u = e.__k[s] = Rt(Ke, { children: u }, null, null, null) : u.constructor === void 0 && u.__b > 0 ? u = e.__k[s] = Rt(u.type, u.props, u.key, u.ref ? u.ref : null, u.__v) : e.__k[s] = u, v = s + p, u.__ = e, u.__b = e.__b + 1, r = null, (m = u.__i = Bo(u, n, v, f)) != -1 && (f--, (r = n[m]) && (r.__u |= 2)), r == null || r.__v == null ? (m == -1 && (i > L ? p-- : i < L && p++), typeof u.type != "function" && (u.__u |= 4)) : m != v && (m == v - 1 ? p-- : m == v + 1 ? p++ : (m > v ? p-- : p++, u.__u |= 4))) : e.__k[s] = null;
104
104
  if (f) for (s = 0; s < L; s++) (r = n[s]) != null && (2 & r.__u) == 0 && (r.__e == o && (o = Et(r)), Er(r, r));
105
105
  return o;
106
106
  }
@@ -117,7 +117,7 @@ function xr(e, t, n, o) {
117
117
  return t;
118
118
  }
119
119
  function dt(e, t) {
120
- return t = t || [], e == null || typeof e == "boolean" || (zt(e) ? e.some(function(n) {
120
+ return t = t || [], e == null || typeof e == "boolean" || (Ot(e) ? e.some(function(n) {
121
121
  dt(n, t);
122
122
  }) : t.push(e)), t;
123
123
  }
@@ -132,7 +132,7 @@ function Bo(e, t, n, o) {
132
132
  function Xn(e, t, n) {
133
133
  t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || Ho.test(t) ? n : n + "px";
134
134
  }
135
- function Xt(e, t, n, o, i) {
135
+ function Zt(e, t, n, o, i) {
136
136
  var s, u;
137
137
  e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
138
138
  else {
@@ -184,7 +184,7 @@ function Ln(e, t, n, o, i, s, u, r, v, m) {
184
184
  } else do
185
185
  f.__d = !1, P && P(t), L = f.render(f.props, f.state, f.context), f.state = f.__s;
186
186
  while (f.__d && ++j < 25);
187
- f.state = f.__s, f.getChildContext != null && (o = st(st({}, o), f.getChildContext())), y && !p && f.getSnapshotBeforeUpdate != null && (I = f.getSnapshotBeforeUpdate(a, b)), H = L, L != null && L.type === Ke && L.key == null && (H = Cr(L.props.children)), r = yr(e, zt(H) ? H : [H], t, n, o, i, s, u, r, v, m), f.base = t.__e, t.__u &= -161, f.__h.length && u.push(f), k && (f.__E = f.__ = null);
187
+ f.state = f.__s, f.getChildContext != null && (o = st(st({}, o), f.getChildContext())), y && !p && f.getSnapshotBeforeUpdate != null && (I = f.getSnapshotBeforeUpdate(a, b)), H = L, L != null && L.type === Ke && L.key == null && (H = Cr(L.props.children)), r = yr(e, Ot(H) ? H : [H], t, n, o, i, s, u, r, v, m), f.base = t.__e, t.__u &= -161, f.__h.length && u.push(f), k && (f.__E = f.__ = null);
188
188
  } catch (V) {
189
189
  if (t.__v = null, v || s != null) if (V.then) {
190
190
  for (t.__u |= v ? 160 : 128; r && r.nodeType == 8 && r.nextSibling; ) r = r.nextSibling;
@@ -215,10 +215,10 @@ function br(e, t, n) {
215
215
  });
216
216
  }
217
217
  function Cr(e) {
218
- return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : zt(e) ? e.map(Cr) : st({}, e);
218
+ return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ot(e) ? e.map(Cr) : st({}, e);
219
219
  }
220
220
  function Vo(e, t, n, o, i, s, u, r, v) {
221
- var m, L, f, p, a, b, I, k = n.props || Rt, g = t.props, y = t.type;
221
+ var m, L, f, p, a, b, I, k = n.props || At, g = t.props, y = t.type;
222
222
  if (y == "svg" ? i = "http://www.w3.org/2000/svg" : y == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i || (i = "http://www.w3.org/1999/xhtml"), s != null) {
223
223
  for (m = 0; m < s.length; m++) if ((a = s[m]) && "setAttribute" in a == !!y && (y ? a.localName == y : a.nodeType == 3)) {
224
224
  e = a, s[m] = null;
@@ -231,18 +231,18 @@ function Vo(e, t, n, o, i, s, u, r, v) {
231
231
  }
232
232
  if (y == null) k === g || r && e.data == g || (e.data = g);
233
233
  else {
234
- if (s = s && Dt.call(e.childNodes), !r && s != null) for (k = {}, m = 0; m < e.attributes.length; m++) k[(a = e.attributes[m]).name] = a.value;
234
+ if (s = s && zt.call(e.childNodes), !r && s != null) for (k = {}, m = 0; m < e.attributes.length; m++) k[(a = e.attributes[m]).name] = a.value;
235
235
  for (m in k) if (a = k[m], m != "children") {
236
236
  if (m == "dangerouslySetInnerHTML") f = a;
237
237
  else if (!(m in g)) {
238
238
  if (m == "value" && "defaultValue" in g || m == "checked" && "defaultChecked" in g) continue;
239
- Xt(e, m, null, a, i);
239
+ Zt(e, m, null, a, i);
240
240
  }
241
241
  }
242
- for (m in g) a = g[m], m == "children" ? p = a : m == "dangerouslySetInnerHTML" ? L = a : m == "value" ? b = a : m == "checked" ? I = a : r && typeof a != "function" || k[m] === a || Xt(e, m, a, k[m], i);
242
+ for (m in g) a = g[m], m == "children" ? p = a : m == "dangerouslySetInnerHTML" ? L = a : m == "value" ? b = a : m == "checked" ? I = a : r && typeof a != "function" || k[m] === a || Zt(e, m, a, k[m], i);
243
243
  if (L) r || f && (L.__html == f.__html || L.__html == e.innerHTML) || (e.innerHTML = L.__html), t.__k = [];
244
- else if (f && (e.innerHTML = ""), yr(t.type == "template" ? e.content : e, zt(p) ? p : [p], t, n, o, y == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, s, u, s ? s[0] : n.__k && Et(n, 0), r, v), s != null) for (m = s.length; m--; ) En(s[m]);
245
- r || (m = "value", y == "progress" && b == null ? e.removeAttribute("value") : b != null && (b !== e[m] || y == "progress" && !b || y == "option" && b != k[m]) && Xt(e, m, b, k[m], i), m = "checked", I != null && I != e[m] && Xt(e, m, I, k[m], i));
244
+ else if (f && (e.innerHTML = ""), yr(t.type == "template" ? e.content : e, Ot(p) ? p : [p], t, n, o, y == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, s, u, s ? s[0] : n.__k && Et(n, 0), r, v), s != null) for (m = s.length; m--; ) En(s[m]);
245
+ r || (m = "value", y == "progress" && b == null ? e.removeAttribute("value") : b != null && (b !== e[m] || y == "progress" && !b || y == "option" && b != k[m]) && Zt(e, m, b, k[m], i), m = "checked", I != null && I != e[m] && Zt(e, m, I, k[m], i));
246
246
  }
247
247
  return e;
248
248
  }
@@ -272,19 +272,19 @@ function Er(e, t, n) {
272
272
  function Xo(e, t, n) {
273
273
  return this.constructor(e, n);
274
274
  }
275
- function At(e, t, n) {
275
+ function Dt(e, t, n) {
276
276
  var o, i, s, u;
277
- t == document && (t = document.documentElement), Ie.__ && Ie.__(e, t), i = (o = typeof n == "function") ? null : n && n.__k || t.__k, s = [], u = [], Ln(t, e = (!o && n || t).__k = ft(Ke, null, [e]), i || Rt, Rt, t.namespaceURI, !o && n ? [n] : i ? null : t.firstChild ? Dt.call(t.childNodes) : null, s, !o && n ? n : i ? i.__e : t.firstChild, o, u), br(s, e, u);
277
+ t == document && (t = document.documentElement), Ie.__ && Ie.__(e, t), i = (o = typeof n == "function") ? null : n && n.__k || t.__k, s = [], u = [], Ln(t, e = (!o && n || t).__k = ft(Ke, null, [e]), i || At, At, t.namespaceURI, !o && n ? [n] : i ? null : t.firstChild ? zt.call(t.childNodes) : null, s, !o && n ? n : i ? i.__e : t.firstChild, o, u), br(s, e, u);
278
278
  }
279
279
  function Lr(e, t) {
280
- At(e, t, Lr);
280
+ Dt(e, t, Lr);
281
281
  }
282
282
  function Zo(e, t, n) {
283
283
  var o, i, s, u, r = st({}, e.props);
284
284
  for (s in e.type && e.type.defaultProps && (u = e.type.defaultProps), t) s == "key" ? o = t[s] : s == "ref" ? i = t[s] : r[s] = t[s] === void 0 && u != null ? u[s] : t[s];
285
- return arguments.length > 2 && (r.children = arguments.length > 3 ? Dt.call(arguments, 2) : n), Nt(e.type, r, o || e.key, i || e.ref, null);
285
+ return arguments.length > 2 && (r.children = arguments.length > 3 ? zt.call(arguments, 2) : n), Rt(e.type, r, o || e.key, i || e.ref, null);
286
286
  }
287
- function Ot(e) {
287
+ function Ft(e) {
288
288
  function t(n) {
289
289
  var o, i;
290
290
  return this.getChildContext || (o = /* @__PURE__ */ new Set(), (i = {})[t.__c] = this, this.getChildContext = function() {
@@ -307,7 +307,7 @@ function Ot(e) {
307
307
  return n.children(o);
308
308
  }).contextType = t, t;
309
309
  }
310
- Dt = _r.slice, Ie = { __e: function(e, t, n, o) {
310
+ zt = _r.slice, Ie = { __e: function(e, t, n, o) {
311
311
  for (var i, s, u; t = t.__; ) if ((i = t.__c) && !i.__) try {
312
312
  if ((s = i.constructor) && s.getDerivedStateFromError != null && (i.setState(s.getDerivedStateFromError(e)), u = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, o || {}), u = i.__d), u) return i.__E = i;
313
313
  } catch (r) {
@@ -321,7 +321,7 @@ Dt = _r.slice, Ie = { __e: function(e, t, n, o) {
321
321
  this.__v && (this.__e = !0, e && this.__h.push(e), fn(this));
322
322
  }, lt.prototype.render = Ke, yt = [], hr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, mr = function(e, t) {
323
323
  return e.__v.__b - t.__v.__b;
324
- }, Kt.__r = 0, gr = /(PointerCapture)$|Capture$/i, Cn = 0, un = Zn(!1), dn = Zn(!0), vr = 0;
324
+ }, Jt.__r = 0, gr = /(PointerCapture)$|Capture$/i, Cn = 0, un = Zn(!1), dn = Zn(!0), vr = 0;
325
325
  var Yo = 0;
326
326
  function c(e, t, n, o, i, s) {
327
327
  t || (t = {});
@@ -331,7 +331,7 @@ function c(e, t, n, o, i, s) {
331
331
  if (typeof e == "function" && (u = e.defaultProps)) for (r in u) v[r] === void 0 && (v[r] = u[r]);
332
332
  return Ie.vnode && Ie.vnode(m), m;
333
333
  }
334
- var mt, Ye, an, Yn, Lt = 0, Mr = [], je = Ie, Gn = je.__b, $n = je.__r, jn = je.diffed, qn = je.__c, Kn = je.unmount, Jn = je.__;
334
+ var mt, Ye, sn, Yn, Lt = 0, Mr = [], je = Ie, Gn = je.__b, $n = je.__r, jn = je.diffed, qn = je.__c, Kn = je.unmount, Jn = je.__;
335
335
  function Mt(e, t) {
336
336
  je.__h && je.__h(Ye, e, Lt || t), Lt = 0;
337
337
  var n = Ye.__H || (Ye.__H = { __: [], __h: [] });
@@ -378,7 +378,7 @@ function me(e, t) {
378
378
  var n = Mt(mt++, 3);
379
379
  !je.__s && In(n.__H, t) && (n.__ = e, n.u = t, Ye.__H.__h.push(n));
380
380
  }
381
- function Ft(e, t) {
381
+ function Ht(e, t) {
382
382
  var n = Mt(mt++, 4);
383
383
  !je.__s && In(n.__H, t) && (n.__ = e, n.u = t, Ye.__h.push(n));
384
384
  }
@@ -388,7 +388,7 @@ function xe(e) {
388
388
  }, []);
389
389
  }
390
390
  function kr(e, t, n) {
391
- Lt = 6, Ft(function() {
391
+ Lt = 6, Ht(function() {
392
392
  if (typeof e == "function") {
393
393
  var o = e(t());
394
394
  return function() {
@@ -427,7 +427,7 @@ function Tr() {
427
427
  }
428
428
  function Go() {
429
429
  for (var e; e = Mr.shift(); ) if (e.__P && e.__H) try {
430
- e.__H.__h.forEach($t), e.__H.__h.forEach(hn), e.__H.__h = [];
430
+ e.__H.__h.forEach(jt), e.__H.__h.forEach(hn), e.__H.__h = [];
431
431
  } catch (t) {
432
432
  e.__H.__h = [], je.__e(t, e.__v);
433
433
  }
@@ -439,19 +439,19 @@ je.__b = function(e) {
439
439
  }, je.__r = function(e) {
440
440
  $n && $n(e), mt = 0;
441
441
  var t = (Ye = e.__c).__H;
442
- t && (an === Ye ? (t.__h = [], Ye.__h = [], t.__.forEach(function(n) {
442
+ t && (sn === Ye ? (t.__h = [], Ye.__h = [], t.__.forEach(function(n) {
443
443
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
444
- })) : (t.__h.forEach($t), t.__h.forEach(hn), t.__h = [], mt = 0)), an = Ye;
444
+ })) : (t.__h.forEach(jt), t.__h.forEach(hn), t.__h = [], mt = 0)), sn = Ye;
445
445
  }, je.diffed = function(e) {
446
446
  jn && jn(e);
447
447
  var t = e.__c;
448
448
  t && t.__H && (t.__H.__h.length && (Mr.push(t) !== 1 && Yn === je.requestAnimationFrame || ((Yn = je.requestAnimationFrame) || $o)(Go)), t.__H.__.forEach(function(n) {
449
449
  n.u && (n.__H = n.u), n.u = void 0;
450
- })), an = Ye = null;
450
+ })), sn = Ye = null;
451
451
  }, je.__c = function(e, t) {
452
452
  t.some(function(n) {
453
453
  try {
454
- n.__h.forEach($t), n.__h = n.__h.filter(function(o) {
454
+ n.__h.forEach(jt), n.__h = n.__h.filter(function(o) {
455
455
  return !o.__ || hn(o);
456
456
  });
457
457
  } catch (o) {
@@ -465,7 +465,7 @@ je.__b = function(e) {
465
465
  var t, n = e.__c;
466
466
  n && n.__H && (n.__H.__.forEach(function(o) {
467
467
  try {
468
- $t(o);
468
+ jt(o);
469
469
  } catch (i) {
470
470
  t = i;
471
471
  }
@@ -478,7 +478,7 @@ function $o(e) {
478
478
  }, o = setTimeout(n, 35);
479
479
  Qn && (t = requestAnimationFrame(n));
480
480
  }
481
- function $t(e) {
481
+ function jt(e) {
482
482
  var t = Ye, n = e.__c;
483
483
  typeof n == "function" && (e.__c = void 0, n()), Ye = t;
484
484
  }
@@ -505,15 +505,15 @@ function mn(e, t) {
505
505
  }
506
506
  function Nr(e, t) {
507
507
  var n = t(), o = Ce({ t: { __: n, u: t } }), i = o[0].t, s = o[1];
508
- return Ft(function() {
509
- i.__ = n, i.u = t, sn(i) && s({ t: i });
508
+ return Ht(function() {
509
+ i.__ = n, i.u = t, ln(i) && s({ t: i });
510
510
  }, [e, n, t]), me(function() {
511
- return sn(i) && s({ t: i }), e(function() {
512
- sn(i) && s({ t: i });
511
+ return ln(i) && s({ t: i }), e(function() {
512
+ ln(i) && s({ t: i });
513
513
  });
514
514
  }, [e]), n;
515
515
  }
516
- function sn(e) {
516
+ function ln(e) {
517
517
  var t, n, o = e.u, i = e.__;
518
518
  try {
519
519
  var s = o();
@@ -531,7 +531,7 @@ function Ar(e) {
531
531
  function Dr() {
532
532
  return [!1, Rr];
533
533
  }
534
- var zr = Ft;
534
+ var zr = Ht;
535
535
  function gn(e, t) {
536
536
  this.props = e, this.context = t;
537
537
  }
@@ -588,7 +588,7 @@ function Hr(e, t, n) {
588
588
  return Hr(o, t, n);
589
589
  }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
590
590
  }
591
- function jt() {
591
+ function qt() {
592
592
  this.__u = 0, this.o = null, this.__b = null;
593
593
  }
594
594
  function Ur(e) {
@@ -609,13 +609,13 @@ function Qo(e) {
609
609
  }
610
610
  return s.displayName = "Lazy", s.__f = !0, s;
611
611
  }
612
- function St() {
612
+ function Pt() {
613
613
  this.i = null, this.l = null;
614
614
  }
615
615
  Ie.unmount = function(e) {
616
616
  var t = e.__c;
617
617
  t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), nr && nr(e);
618
- }, (jt.prototype = new lt()).__c = function(e, t) {
618
+ }, (qt.prototype = new lt()).__c = function(e, t) {
619
619
  var n = t.__c, o = this;
620
620
  o.o == null && (o.o = []), o.o.push(n);
621
621
  var i = Ur(o.__v), s = !1, u = function() {
@@ -635,9 +635,9 @@ Ie.unmount = function(e) {
635
635
  }
636
636
  };
637
637
  o.__u++ || 32 & t.__u || o.setState({ __a: o.__b = o.__v.__k[0] }), e.then(u, u);
638
- }, jt.prototype.componentWillUnmount = function() {
638
+ }, qt.prototype.componentWillUnmount = function() {
639
639
  this.o = [];
640
- }, jt.prototype.render = function(e, t) {
640
+ }, qt.prototype.render = function(e, t) {
641
641
  if (this.__b) {
642
642
  if (this.__v.__k) {
643
643
  var n = document.createElement("div"), o = this.__v.__k[0].__c;
@@ -663,7 +663,7 @@ function ea(e) {
663
663
  function ta(e) {
664
664
  var t = this, n = e.h;
665
665
  if (t.componentWillUnmount = function() {
666
- At(null, t.v), t.v = null, t.h = null;
666
+ Dt(null, t.v), t.v = null, t.h = null;
667
667
  }, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
668
668
  for (var o = t.__v; o !== null && !o.__m && o.__ !== null; ) o = o.__;
669
669
  t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: o.__m }, contains: function() {
@@ -674,13 +674,13 @@ function ta(e) {
674
674
  this.childNodes.splice(this.childNodes.indexOf(i) >>> 1, 1), t.h.removeChild(i);
675
675
  } };
676
676
  }
677
- At(ft(ea, { context: t.context }, e.__v), t.v);
677
+ Dt(ft(ea, { context: t.context }, e.__v), t.v);
678
678
  }
679
679
  function na(e, t) {
680
680
  var n = ft(ta, { __v: e, h: t });
681
681
  return n.containerInfo = t, n;
682
682
  }
683
- (St.prototype = new lt()).__a = function(e) {
683
+ (Pt.prototype = new lt()).__a = function(e) {
684
684
  var t = this, n = Ur(t.__v), o = t.l.get(e);
685
685
  return o[0]++, function(i) {
686
686
  var s = function() {
@@ -688,13 +688,13 @@ function na(e, t) {
688
688
  };
689
689
  n ? n(s) : s();
690
690
  };
691
- }, St.prototype.render = function(e) {
691
+ }, Pt.prototype.render = function(e) {
692
692
  this.i = null, this.l = /* @__PURE__ */ new Map();
693
693
  var t = dt(e.children);
694
694
  e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
695
695
  for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
696
696
  return e.children;
697
- }, St.prototype.componentDidUpdate = St.prototype.componentDidMount = function() {
697
+ }, Pt.prototype.componentDidUpdate = Pt.prototype.componentDidMount = function() {
698
698
  var e = this;
699
699
  this.l.forEach(function(t, n) {
700
700
  rr(e, n, t);
@@ -704,7 +704,7 @@ var Wr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 601
704
704
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
705
705
  };
706
706
  function Br(e, t, n) {
707
- return t.__k == null && (t.textContent = ""), At(e, t), typeof n == "function" && n(), e ? e.__c : null;
707
+ return t.__k == null && (t.textContent = ""), Dt(e, t), typeof n == "function" && n(), e ? e.__c : null;
708
708
  }
709
709
  function la(e, t, n) {
710
710
  return Lr(e, t), typeof n == "function" && n(), e ? e.__c : null;
@@ -760,24 +760,24 @@ Ie.diffed = function(e) {
760
760
  };
761
761
  var pa = { ReactCurrentDispatcher: { current: { readContext: function(e) {
762
762
  return Tn.__n[e.__c].props.value;
763
- }, useCallback: Z, useContext: kt, useDebugValue: Ir, useDeferredValue: Ar, useEffect: me, useId: Tr, useImperativeHandle: kr, useInsertionEffect: zr, useLayoutEffect: Ft, useMemo: ze, useReducer: kn, useRef: xe, useState: Ce, useSyncExternalStore: Nr, useTransition: Dr } } };
763
+ }, useCallback: Z, useContext: kt, useDebugValue: Ir, useDeferredValue: Ar, useEffect: me, useId: Tr, useImperativeHandle: kr, useInsertionEffect: zr, useLayoutEffect: Ht, useMemo: ze, useReducer: kn, useRef: xe, useState: Ce, useSyncExternalStore: Nr, useTransition: Dr } } };
764
764
  function ha(e) {
765
765
  return ft.bind(null, e);
766
766
  }
767
- function Qt(e) {
767
+ function en(e) {
768
768
  return !!e && e.$$typeof === Wr;
769
769
  }
770
770
  function ma(e) {
771
- return Qt(e) && e.type === Ke;
771
+ return en(e) && e.type === Ke;
772
772
  }
773
773
  function ga(e) {
774
774
  return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
775
775
  }
776
776
  function va(e) {
777
- return Qt(e) ? Zo.apply(null, arguments) : e;
777
+ return en(e) ? Zo.apply(null, arguments) : e;
778
778
  }
779
779
  function Vr(e) {
780
- return !!e.__k && (At(null, e), !0);
780
+ return !!e.__k && (Dt(null, e), !0);
781
781
  }
782
782
  function _a(e) {
783
783
  return e && (e.base || e.nodeType === 1 && e) || null;
@@ -786,20 +786,20 @@ var wa = function(e, t) {
786
786
  return e(t);
787
787
  }, ya = function(e, t) {
788
788
  return e(t);
789
- }, xa = Ke, ba = Qt, Xr = { useState: Ce, useId: Tr, useReducer: kn, useEffect: me, useLayoutEffect: Ft, useInsertionEffect: zr, useTransition: Dr, useDeferredValue: Ar, useSyncExternalStore: Nr, startTransition: Rr, useRef: xe, useImperativeHandle: kr, useMemo: ze, useCallback: Z, useContext: kt, useDebugValue: Ir, version: "18.3.1", Children: Ko, render: Br, hydrate: la, unmountComponentAtNode: Vr, createPortal: na, createElement: ft, createContext: Ot, createFactory: ha, cloneElement: va, createRef: Uo, Fragment: Ke, isValidElement: Qt, isElement: ba, isFragment: ma, isMemo: ga, findDOMNode: _a, Component: lt, PureComponent: gn, memo: jo, forwardRef: Or, flushSync: ya, unstable_batchedUpdates: wa, StrictMode: xa, Suspense: jt, SuspenseList: St, lazy: Qo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: pa };
789
+ }, xa = Ke, ba = en, Xr = { useState: Ce, useId: Tr, useReducer: kn, useEffect: me, useLayoutEffect: Ht, useInsertionEffect: zr, useTransition: Dr, useDeferredValue: Ar, useSyncExternalStore: Nr, startTransition: Rr, useRef: xe, useImperativeHandle: kr, useMemo: ze, useCallback: Z, useContext: kt, useDebugValue: Ir, version: "18.3.1", Children: Ko, render: Br, hydrate: la, unmountComponentAtNode: Vr, createPortal: na, createElement: ft, createContext: Ft, createFactory: ha, cloneElement: va, createRef: Uo, Fragment: Ke, isValidElement: en, isElement: ba, isFragment: ma, isMemo: ga, findDOMNode: _a, Component: lt, PureComponent: gn, memo: jo, forwardRef: Or, flushSync: ya, unstable_batchedUpdates: wa, StrictMode: xa, Suspense: qt, SuspenseList: Pt, lazy: Qo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: pa };
790
790
  async function Ca(e) {
791
791
  const t = await fetch(e);
792
792
  if (!t.ok)
793
793
  throw new Error(`Failed to fetch composition: ${t.statusText}`);
794
794
  return await t.json();
795
795
  }
796
- const ln = /* @__PURE__ */ new Map(), Ea = (e) => {
796
+ const Tt = /* @__PURE__ */ new Map(), Ea = (e) => {
797
797
  const [t, n] = Ce({
798
798
  status: "pending",
799
799
  isSuccess: !1
800
800
  });
801
801
  return me(() => {
802
- const o = (s) => n({ status: "success", data: s, isSuccess: !0 }), i = ln.get(e);
802
+ const o = (s) => n({ status: "success", data: s, isSuccess: !0 }), i = Tt.get(e);
803
803
  if (i && !(i instanceof Promise)) {
804
804
  o(i);
805
805
  return;
@@ -811,10 +811,20 @@ const ln = /* @__PURE__ */ new Map(), Ea = (e) => {
811
811
  try {
812
812
  let s;
813
813
  if (i)
814
- s = await i;
814
+ try {
815
+ s = await i;
816
+ } catch (u) {
817
+ throw Tt.delete(e), u;
818
+ }
815
819
  else {
816
820
  const u = Ca(e);
817
- ln.set(e, u), s = await u, ln.set(e, s);
821
+ Tt.set(e, u);
822
+ try {
823
+ s = await u;
824
+ } catch (r) {
825
+ throw Tt.delete(e), r;
826
+ }
827
+ Tt.set(e, s);
818
828
  }
819
829
  o(s);
820
830
  } catch (s) {
@@ -826,14 +836,14 @@ const ln = /* @__PURE__ */ new Map(), Ea = (e) => {
826
836
  }
827
837
  })();
828
838
  }, [e]), t;
829
- }, Zr = Ot(null), qe = () => {
839
+ }, Zr = Ft(null), qe = () => {
830
840
  const e = kt(Zr);
831
841
  if (!e)
832
842
  throw new Error(
833
843
  "useGlobalContext must be used within a GlobalContextProvider"
834
844
  );
835
845
  return e;
836
- }, La = ({ children: e, ...t }) => /* @__PURE__ */ c(Zr.Provider, { value: t, children: e }), Yr = Ot(null), gt = () => {
846
+ }, La = ({ children: e, ...t }) => /* @__PURE__ */ c(Zr.Provider, { value: t, children: e }), Yr = Ft(null), gt = () => {
837
847
  const e = kt(Yr);
838
848
  if (!e)
839
849
  throw new Error(
@@ -894,7 +904,7 @@ const ln = /* @__PURE__ */ new Map(), Ea = (e) => {
894
904
  function at(e, t, n) {
895
905
  return Math.min(Math.max(e, t), n);
896
906
  }
897
- const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
907
+ const Kt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
898
908
  const u = at(e, t, n);
899
909
  if (u === (s ? n : t)) return o;
900
910
  if (u === (s ? t : n)) return 1;
@@ -909,7 +919,7 @@ const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
909
919
  s < o && (o = s, n = t[i]);
910
920
  }
911
921
  return n;
912
- }, jr = Ot(null), Sn = () => kt(jr), Ht = () => {
922
+ }, jr = Ft(null), Sn = () => kt(jr), Ut = () => {
913
923
  const e = Sn();
914
924
  if (!e)
915
925
  throw new Error(
@@ -919,7 +929,7 @@ const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
919
929
  }, cr = "*:size-full", ur = "*:object-cover *:size-full", Ia = ({ children: e }) => {
920
930
  const { compositionUrl: t } = qe(), n = Z(
921
931
  () => document.querySelector(
922
- `${Jt}[composition-url="${t}"]`
932
+ `${Qt}[composition-url="${t}"]`
923
933
  ),
924
934
  [t]
925
935
  ), o = Z((b) => {
@@ -1055,7 +1065,7 @@ const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
1055
1065
  children: e
1056
1066
  }
1057
1067
  );
1058
- }, qr = Ot(null), Qe = () => {
1068
+ }, qr = Ft(null), Qe = () => {
1059
1069
  const e = kt(qr);
1060
1070
  if (!e)
1061
1071
  throw new Error(
@@ -1074,7 +1084,7 @@ const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
1074
1084
  isFullScreen: u,
1075
1085
  requestFullscreen: r,
1076
1086
  exitFullscreen: v
1077
- } = qe(), { customMediaList: m } = Ht(), { categories: L, items: f } = gt(), p = ze(() => {
1087
+ } = qe(), { customMediaList: m } = Ut(), { categories: L, items: f } = gt(), p = ze(() => {
1078
1088
  const F = new Array(
1079
1089
  ...f
1080
1090
  ), se = m.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);
@@ -1349,10 +1359,10 @@ const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
1349
1359
  default:
1350
1360
  return !1;
1351
1361
  }
1352
- }, [M.type, P]), [ee, oe] = Ce(1), Q = Z(
1362
+ }, [M.type, P]), [Q, oe] = Ce(1), ee = Z(
1353
1363
  (F) => {
1354
- const se = typeof F == "function" ? F(ee) : F;
1355
- ee !== se && (oe(se), s({
1364
+ const se = typeof F == "function" ? F(Q) : F;
1365
+ Q !== se && (oe(se), s({
1356
1366
  type: "interaction",
1357
1367
  current: {
1358
1368
  category_id: z,
@@ -1368,19 +1378,19 @@ const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
1368
1378
  }));
1369
1379
  },
1370
1380
  [
1371
- ee,
1381
+ Q,
1372
1382
  s,
1373
1383
  z,
1374
1384
  J,
1375
1385
  M.type,
1376
1386
  k
1377
1387
  ]
1378
- ), C = ee !== 1, ae = ee < ht, ne = ee > 1, _e = Z(
1388
+ ), C = Q !== 1, ae = Q < ht, ne = Q > 1, _e = Z(
1379
1389
  (F) => {
1380
- Q((se) => at(se + F, 1, ht));
1390
+ ee((se) => at(se + F, 1, ht));
1381
1391
  },
1382
- [Q]
1383
- ), fe = Z(() => Q(1), [Q]), $e = Z(() => _e(xt), [_e]), Ue = Z(() => _e(-xt), [_e]), ge = Z(() => {
1392
+ [ee]
1393
+ ), fe = Z(() => ee(1), [ee]), $e = Z(() => _e(xt), [_e]), Ue = Z(() => _e(-xt), [_e]), ge = Z(() => {
1384
1394
  fe(), ve();
1385
1395
  }, [fe, ve]), [we, ye] = Ce(!1), [Pe, Ne] = Ce(), [We, Be] = Ce(!1), Me = Z(
1386
1396
  async (F) => {
@@ -1524,9 +1534,9 @@ const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
1524
1534
  setShownDetails: Ze,
1525
1535
  resetShownDetails: ve,
1526
1536
  showZoomControls: _,
1527
- zoom: ee,
1537
+ zoom: Q,
1528
1538
  isZooming: C,
1529
- setZoom: Q,
1539
+ setZoom: ee,
1530
1540
  resetZoom: fe,
1531
1541
  canZoomIn: ae,
1532
1542
  zoomIn: $e,
@@ -1620,7 +1630,7 @@ const Je = ({
1620
1630
  className: t,
1621
1631
  children: n
1622
1632
  }) => {
1623
- const { getIconConfig: o } = Ht(), s = o(e)?.Icon;
1633
+ const { getIconConfig: o } = Ut(), s = o(e)?.Icon;
1624
1634
  return s ? t ? /* @__PURE__ */ c("div", { className: t, children: s }) : s : n;
1625
1635
  }, Oa = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customizationKey: "UI_CLOSE", children: /* @__PURE__ */ c("svg", { className: e, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ c(
1626
1636
  "path",
@@ -1679,19 +1689,19 @@ const Je = ({
1679
1689
  errorImage: "https://cdn.car-cutter.com/libs/web-player/v3/assets/autonation-fallback.svg"
1680
1690
  }, Za = {
1681
1691
  autonation: Xa
1682
- }, Ut = (e) => {
1692
+ }, Wt = (e) => {
1683
1693
  if (e)
1684
1694
  return Za[e];
1685
1695
  }, Ya = () => {
1686
1696
  let e = "https://cdn.car-cutter.com/libs/web-player/v3/assets/car_placeholder.png";
1687
- const { themeConfig: t } = qe(), n = ze(() => Ut(t), [t]);
1697
+ const { themeConfig: t } = qe(), n = ze(() => Wt(t), [t]);
1688
1698
  n?.errorImage && (e = n.errorImage);
1689
1699
  const o = {
1690
1700
  className: n?.errorImage ? void 0 : "h-20 small:h-28",
1691
1701
  style: n?.errorImage ? { height: "12rem", width: "auto" } : void 0
1692
1702
  };
1693
1703
  return /* @__PURE__ */ c("img", { ...o, alt: "", src: e });
1694
- }, en = ({ text: e, className: t }) => /* @__PURE__ */ c(
1704
+ }, tn = ({ text: e, className: t }) => /* @__PURE__ */ c(
1695
1705
  "div",
1696
1706
  {
1697
1707
  className: ce(
@@ -1986,7 +1996,7 @@ const to = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customiza
1986
1996
  fadeIn: !n
1987
1997
  }
1988
1998
  ) : /* @__PURE__ */ c("img", { className: o, src: e });
1989
- }, Zt = ({
1999
+ }, Yt = ({
1990
2000
  children: e
1991
2001
  }) => {
1992
2002
  const { extendMode: t } = Qe();
@@ -2029,16 +2039,16 @@ const to = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customiza
2029
2039
  let u;
2030
2040
  switch (n) {
2031
2041
  case "360":
2032
- u = /* @__PURE__ */ c(Zt, { children: /* @__PURE__ */ c(Pn, { className: "size-full" }) });
2042
+ u = /* @__PURE__ */ c(Yt, { children: /* @__PURE__ */ c(Pn, { className: "size-full" }) });
2033
2043
  break;
2034
2044
  case "interior-360":
2035
- u = /* @__PURE__ */ c(Zt, { children: /* @__PURE__ */ c(no, { className: "size-full" }) });
2045
+ u = /* @__PURE__ */ c(Yt, { children: /* @__PURE__ */ c(no, { className: "size-full" }) });
2036
2046
  break;
2037
2047
  case "video":
2038
- u = /* @__PURE__ */ c(Zt, { children: /* @__PURE__ */ c(ro, { className: "size-full p-0.5 text-background" }) });
2048
+ u = /* @__PURE__ */ c(Yt, { children: /* @__PURE__ */ c(ro, { className: "size-full p-0.5 text-background" }) });
2039
2049
  break;
2040
2050
  case "custom":
2041
- u = o ? null : /* @__PURE__ */ c(Zt, { children: /* @__PURE__ */ c(to, { className: "size-full p-0.5 text-background" }) });
2051
+ u = o ? null : /* @__PURE__ */ c(Yt, { children: /* @__PURE__ */ c(to, { className: "size-full p-0.5 text-background" }) });
2042
2052
  break;
2043
2053
  }
2044
2054
  return /* @__PURE__ */ c("div", { className: "relative bg-foreground/30", style: t, children: [
@@ -2313,7 +2323,7 @@ const to = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customiza
2313
2323
  R(), p.current = null;
2314
2324
  return;
2315
2325
  }
2316
- const K = Math.min(D / w, 1), N = io(K), W = qt(M, T, N), ie = qt(P, H, N), O = qt(j, Y, N);
2326
+ const K = Math.min(D / w, 1), N = io(K), W = Kt(M, T, N), ie = Kt(P, H, N), O = Kt(j, Y, N);
2317
2327
  a({ x: W, y: ie, scale: O }), J();
2318
2328
  };
2319
2329
  p.current = requestAnimationFrame(de);
@@ -2567,7 +2577,7 @@ const to = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customiza
2567
2577
  a("click");
2568
2578
  }, [a]), I = Z(() => {
2569
2579
  a("hover");
2570
- }, [a]), { getIconConfig: k } = Ht(), g = i ? k(i) : void 0, y = !!u?.src?.trim(), E = u?.type === "image" && y, w = u?.type === "link" && y, M = u?.type === "pdf" && y, P = E || w || M, j = !!s || P, T = !!o, H = xe(null), Y = xe(null), R = xe(null), [V, z] = Ce(!1), J = P ? r === "damage" ? /* @__PURE__ */ c(ei, { className: "size-4" }) : /* @__PURE__ */ c(to, { className: "size-4" }) : /* @__PURE__ */ c("div", { className: "size-1" }), de = () => {
2580
+ }, [a]), { getIconConfig: k } = Ut(), g = i ? k(i) : void 0, y = !!u?.src?.trim(), E = u?.type === "image" && y, w = u?.type === "link" && y, M = u?.type === "pdf" && y, P = E || w || M, j = !!s || P, T = !!o, H = xe(null), Y = xe(null), R = xe(null), [V, z] = Ce(!1), J = P ? r === "damage" ? /* @__PURE__ */ c(ei, { className: "size-4" }) : /* @__PURE__ */ c(to, { className: "size-4" }) : /* @__PURE__ */ c("div", { className: "size-1" }), de = () => {
2571
2581
  j && (b(), !(w || M) && L({
2572
2582
  src: E ? u.src : void 0,
2573
2583
  title: o,
@@ -2591,10 +2601,10 @@ const to = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customiza
2591
2601
  const Te = () => {
2592
2602
  $ !== null && cancelAnimationFrame($), $ = requestAnimationFrame(() => {
2593
2603
  $ = null;
2594
- const Ze = le.getBoundingClientRect(), ve = re.getBoundingClientRect(), h = S.getBoundingClientRect(), _ = Ze.right - ve.left, ee = ve.right - Ze.left, oe = h.width;
2595
- let Q = !1;
2596
- _ >= oe ? Q = !1 : ee >= oe ? Q = !0 : Q = ee >= _, z(
2597
- (C) => C === Q ? C : Q
2604
+ const Ze = le.getBoundingClientRect(), ve = re.getBoundingClientRect(), h = S.getBoundingClientRect(), _ = Ze.right - ve.left, Q = ve.right - Ze.left, oe = h.width;
2605
+ let ee = !1;
2606
+ _ >= oe ? ee = !1 : Q >= oe ? ee = !0 : ee = Q >= _, z(
2607
+ (C) => C === ee ? C : ee
2598
2608
  );
2599
2609
  });
2600
2610
  };
@@ -2750,7 +2760,7 @@ const to = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customiza
2750
2760
  ]
2751
2761
  }
2752
2762
  ) });
2753
- }, ni = 100, Ct = 100, Pt = 50, ri = 0, oi = 0, ai = (e) => {
2763
+ }, ni = 100, Ct = 100, Nt = 50, ri = 0, oi = 0, ai = (e) => {
2754
2764
  const [t, n] = Ce(0), [o, i] = Ce(!1);
2755
2765
  return me(() => {
2756
2766
  const s = XMLHttpRequest.prototype.open, u = XMLHttpRequest.prototype.send;
@@ -2783,10 +2793,10 @@ window.libpannellum = (function(e, t, n) {
2783
2793
  var f = t.createElement("canvas");
2784
2794
  f.style.width = f.style.height = "100%", L.appendChild(f);
2785
2795
  var p, a, b, I, k, g, y, E, w, M, P, j, T, H, Y, R;
2786
- this.init = function(h, _, ee, oe, Q, C, ae, ne) {
2796
+ this.init = function(h, _, Q, oe, ee, C, ae, ne) {
2787
2797
  if (_ === n && (_ = "equirectangular"), _ != "equirectangular" && _ != "cubemap" && _ != "multires")
2788
2798
  throw console.log("Error: invalid image type specified!"), { type: "config error" };
2789
- if (M = _, w = h, P = ee, R = ne || {}, p) {
2799
+ if (M = _, w = h, P = Q, R = ne || {}, p) {
2790
2800
  if (b && (a.detachShader(p, b), a.deleteShader(b)), I && (a.detachShader(p, I), a.deleteShader(I)), a.bindBuffer(a.ARRAY_BUFFER, null), a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, null), p.texture && a.deleteTexture(p.texture), p.nodeCache)
2791
2801
  for (var _e = 0; _e < p.nodeCache.length; _e++)
2792
2802
  a.deleteTexture(p.nodeCache[_e].texture);
@@ -2861,7 +2871,7 @@ window.libpannellum = (function(e, t, n) {
2861
2871
  var De = v;
2862
2872
  M == "cubemap" ? (Oe = a.TEXTURE_CUBE_MAP, De = r) : M == "multires" && (De = m), a.shaderSource(I, De), a.compileShader(I), p = a.createProgram(), a.attachShader(p, b), a.attachShader(p, I), a.linkProgram(p), a.getShaderParameter(b, a.COMPILE_STATUS) || console.log(a.getShaderInfoLog(b)), a.getShaderParameter(I, a.COMPILE_STATUS) || console.log(a.getShaderInfoLog(I)), a.getProgramParameter(p, a.LINK_STATUS) || console.log(a.getProgramInfoLog(p)), a.useProgram(p), p.drawInProgress = !1;
2863
2873
  var Re = ne.backgroundColor ? ne.backgroundColor : [0, 0, 0];
2864
- a.clearColor(Re[0], Re[1], Re[2], 1), a.clear(a.COLOR_BUFFER_BIT), p.texCoordLocation = a.getAttribLocation(p, "a_texCoord"), a.enableVertexAttribArray(p.texCoordLocation), M != "multires" ? (j || (j = a.createBuffer()), a.bindBuffer(a.ARRAY_BUFFER, j), a.bufferData(a.ARRAY_BUFFER, new Float32Array([-1, 1, 1, 1, 1, -1, -1, 1, 1, -1, -1, -1]), a.STATIC_DRAW), a.vertexAttribPointer(p.texCoordLocation, 2, a.FLOAT, !1, 0, 0), p.aspectRatio = a.getUniformLocation(p, "u_aspectRatio"), a.uniform1f(p.aspectRatio, a.drawingBufferWidth / a.drawingBufferHeight), p.psi = a.getUniformLocation(p, "u_psi"), p.theta = a.getUniformLocation(p, "u_theta"), p.f = a.getUniformLocation(p, "u_f"), p.h = a.getUniformLocation(p, "u_h"), p.v = a.getUniformLocation(p, "u_v"), p.vo = a.getUniformLocation(p, "u_vo"), p.rot = a.getUniformLocation(p, "u_rot"), a.uniform1f(p.h, oe / (Math.PI * 2)), a.uniform1f(p.v, Q / Math.PI), a.uniform1f(p.vo, C / Math.PI * 2), M == "equirectangular" && (p.backgroundColor = a.getUniformLocation(p, "u_backgroundColor"), a.uniform4fv(p.backgroundColor, Re.concat([1]))), p.texture = a.createTexture(), a.bindTexture(Oe, p.texture), M == "cubemap" ? (a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[1]), a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[3]), a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[4]), a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[5]), a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[0]), a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[2])) : a.texImage2D(Oe, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w), a.texParameteri(Oe, a.TEXTURE_WRAP_S, a.CLAMP_TO_EDGE), a.texParameteri(Oe, a.TEXTURE_WRAP_T, a.CLAMP_TO_EDGE), a.texParameteri(Oe, a.TEXTURE_MIN_FILTER, a.LINEAR), a.texParameteri(Oe, a.TEXTURE_MAG_FILTER, a.LINEAR)) : (p.vertPosLocation = a.getAttribLocation(p, "a_vertCoord"), a.enableVertexAttribArray(p.vertPosLocation), T || (T = a.createBuffer()), H || (H = a.createBuffer()), Y || (Y = a.createBuffer()), a.bindBuffer(a.ARRAY_BUFFER, H), a.bufferData(a.ARRAY_BUFFER, new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]), a.STATIC_DRAW), a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, Y), a.bufferData(a.ELEMENT_ARRAY_BUFFER, new Uint16Array([0, 1, 2, 0, 2, 3]), a.STATIC_DRAW), p.perspUniform = a.getUniformLocation(p, "u_perspMatrix"), p.cubeUniform = a.getUniformLocation(p, "u_cubeMatrix"), p.level = -1, p.currentNodes = [], p.nodeCache = [], p.nodeCacheTimestamp = 0);
2874
+ a.clearColor(Re[0], Re[1], Re[2], 1), a.clear(a.COLOR_BUFFER_BIT), p.texCoordLocation = a.getAttribLocation(p, "a_texCoord"), a.enableVertexAttribArray(p.texCoordLocation), M != "multires" ? (j || (j = a.createBuffer()), a.bindBuffer(a.ARRAY_BUFFER, j), a.bufferData(a.ARRAY_BUFFER, new Float32Array([-1, 1, 1, 1, 1, -1, -1, 1, 1, -1, -1, -1]), a.STATIC_DRAW), a.vertexAttribPointer(p.texCoordLocation, 2, a.FLOAT, !1, 0, 0), p.aspectRatio = a.getUniformLocation(p, "u_aspectRatio"), a.uniform1f(p.aspectRatio, a.drawingBufferWidth / a.drawingBufferHeight), p.psi = a.getUniformLocation(p, "u_psi"), p.theta = a.getUniformLocation(p, "u_theta"), p.f = a.getUniformLocation(p, "u_f"), p.h = a.getUniformLocation(p, "u_h"), p.v = a.getUniformLocation(p, "u_v"), p.vo = a.getUniformLocation(p, "u_vo"), p.rot = a.getUniformLocation(p, "u_rot"), a.uniform1f(p.h, oe / (Math.PI * 2)), a.uniform1f(p.v, ee / Math.PI), a.uniform1f(p.vo, C / Math.PI * 2), M == "equirectangular" && (p.backgroundColor = a.getUniformLocation(p, "u_backgroundColor"), a.uniform4fv(p.backgroundColor, Re.concat([1]))), p.texture = a.createTexture(), a.bindTexture(Oe, p.texture), M == "cubemap" ? (a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[1]), a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[3]), a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[4]), a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[5]), a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[0]), a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w[2])) : a.texImage2D(Oe, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w), a.texParameteri(Oe, a.TEXTURE_WRAP_S, a.CLAMP_TO_EDGE), a.texParameteri(Oe, a.TEXTURE_WRAP_T, a.CLAMP_TO_EDGE), a.texParameteri(Oe, a.TEXTURE_MIN_FILTER, a.LINEAR), a.texParameteri(Oe, a.TEXTURE_MAG_FILTER, a.LINEAR)) : (p.vertPosLocation = a.getAttribLocation(p, "a_vertCoord"), a.enableVertexAttribArray(p.vertPosLocation), T || (T = a.createBuffer()), H || (H = a.createBuffer()), Y || (Y = a.createBuffer()), a.bindBuffer(a.ARRAY_BUFFER, H), a.bufferData(a.ARRAY_BUFFER, new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]), a.STATIC_DRAW), a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, Y), a.bufferData(a.ELEMENT_ARRAY_BUFFER, new Uint16Array([0, 1, 2, 0, 2, 3]), a.STATIC_DRAW), p.perspUniform = a.getUniformLocation(p, "u_perspMatrix"), p.cubeUniform = a.getUniformLocation(p, "u_cubeMatrix"), p.level = -1, p.currentNodes = [], p.nodeCache = [], p.nodeCacheTimestamp = 0);
2865
2875
  var F = a.getError();
2866
2876
  if (F !== 0)
2867
2877
  throw console.log("Error: Something went wrong with WebGL!", F), { type: "webgl error" };
@@ -2876,8 +2886,8 @@ window.libpannellum = (function(e, t, n) {
2876
2886
  f.width = f.clientWidth * h, f.height = f.clientHeight * h, a && (a.getError() == 1286 && ve(), a.viewport(0, 0, a.drawingBufferWidth, a.drawingBufferHeight), M != "multires" && a.uniform1f(p.aspectRatio, f.clientWidth / f.clientHeight));
2877
2887
  }, this.resize(), this.setPose = function(h, _) {
2878
2888
  E = [h, _];
2879
- }, this.render = function(h, _, ee, oe) {
2880
- var Q, C, ae, ne = 0;
2889
+ }, this.render = function(h, _, Q, oe) {
2890
+ var ee, C, ae, ne = 0;
2881
2891
  if (oe === n && (oe = {}), oe.roll && (ne = oe.roll), E !== n) {
2882
2892
  var _e = E[0], fe = E[1], $e = h, Ue = _, ge = Math.cos(fe) * Math.sin(h) * Math.sin(_e) + Math.cos(h) * (Math.cos(_e) * Math.cos(_) + Math.sin(fe) * Math.sin(_e) * Math.sin(_)), we = -Math.sin(h) * Math.sin(fe) + Math.cos(h) * Math.cos(fe) * Math.sin(_), ye = Math.cos(fe) * Math.cos(_e) * Math.sin(h) + Math.cos(h) * (-Math.cos(_) * Math.sin(_e) + Math.cos(_e) * Math.sin(fe) * Math.sin(_));
2883
2893
  h = Math.asin(Math.max(Math.min(ye, 1), -1)), _ = Math.atan2(we, ge);
@@ -2894,8 +2904,8 @@ window.libpannellum = (function(e, t, n) {
2894
2904
  l: "translate3d(-" + ae + "px, -" + (ae + 2) + "px, " + (ae + 2) + "px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",
2895
2905
  r: "translate3d(" + ae + "px, -" + (ae + 2) + "px, -" + (ae + 2) + "px) rotateY(270deg)"
2896
2906
  };
2897
- Q = 1 / Math.tan(ee / 2);
2898
- var Me = Q * f.clientWidth / 2 + "px", Se = "perspective(" + Me + ") translateZ(" + Me + ") rotateX(" + h + "rad) rotateY(" + _ + "rad) ", Ve = Object.keys(Be);
2907
+ ee = 1 / Math.tan(Q / 2);
2908
+ var Me = ee * f.clientWidth / 2 + "px", Se = "perspective(" + Me + ") translateZ(" + Me + ") rotateX(" + h + "rad) rotateY(" + _ + "rad) ", Ve = Object.keys(Be);
2899
2909
  for (C = 0; C < 6; C++) {
2900
2910
  var Oe = g.querySelector(".pnlm-" + Ve[C] + "face");
2901
2911
  Oe && (Oe.style.webkitTransform = Se + Be[Ve[C]], Oe.style.transform = Se + Be[Ve[C]]);
@@ -2903,11 +2913,11 @@ window.libpannellum = (function(e, t, n) {
2903
2913
  return;
2904
2914
  }
2905
2915
  if (M != "multires") {
2906
- var Xe = 2 * Math.atan(Math.tan(ee * 0.5) / (a.drawingBufferWidth / a.drawingBufferHeight));
2907
- Q = 1 / Math.tan(Xe * 0.5), a.uniform1f(p.psi, _), a.uniform1f(p.theta, h), a.uniform1f(p.rot, ne), a.uniform1f(p.f, Q), P === !0 && M == "equirectangular" && (a.bindTexture(a.TEXTURE_2D, p.texture), a.texImage2D(a.TEXTURE_2D, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w)), a.drawArrays(a.TRIANGLES, 0, 6);
2916
+ var Xe = 2 * Math.atan(Math.tan(Q * 0.5) / (a.drawingBufferWidth / a.drawingBufferHeight));
2917
+ ee = 1 / Math.tan(Xe * 0.5), a.uniform1f(p.psi, _), a.uniform1f(p.theta, h), a.uniform1f(p.rot, ne), a.uniform1f(p.f, ee), P === !0 && M == "equirectangular" && (a.bindTexture(a.TEXTURE_2D, p.texture), a.texImage2D(a.TEXTURE_2D, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, w)), a.drawArrays(a.TRIANGLES, 0, 6);
2908
2918
  } else {
2909
- var De = O(ee, a.drawingBufferWidth / a.drawingBufferHeight, 0.1, 100);
2910
- le(ee);
2919
+ var De = O(Q, a.drawingBufferWidth / a.drawingBufferHeight, 0.1, 100);
2920
+ le(Q);
2911
2921
  var Re = K();
2912
2922
  Re = N(Re, -ne, "z"), Re = N(Re, -h, "x"), Re = N(Re, _, "y"), Re = W(Re), a.uniformMatrix4fv(p.perspUniform, !1, new Float32Array(ie(De))), a.uniformMatrix4fv(p.cubeUniform, !1, new Float32Array(ie(Re)));
2913
2923
  var F = $(De, Re);
@@ -2958,13 +2968,13 @@ window.libpannellum = (function(e, t, n) {
2958
2968
  p.drawInProgress = !1;
2959
2969
  }
2960
2970
  }
2961
- function de(h, _, ee, oe, Q, C) {
2962
- this.vertices = h, this.side = _, this.level = ee, this.x = oe, this.y = Q, this.path = C.replace("%s", _).replace("%l", ee).replace("%x", oe).replace("%y", Q);
2971
+ function de(h, _, Q, oe, ee, C) {
2972
+ this.vertices = h, this.side = _, this.level = Q, this.x = oe, this.y = ee, this.path = C.replace("%s", _).replace("%l", Q).replace("%x", oe).replace("%y", ee);
2963
2973
  }
2964
- function U(h, _, ee, oe, Q) {
2974
+ function U(h, _, Q, oe, ee) {
2965
2975
  if (Ze(h, _.vertices)) {
2966
2976
  var C = _.vertices, ae = C[0] + C[3] + C[6] + C[9], ne = C[1] + C[4] + C[7] + C[10], _e = C[2] + C[5] + C[8] + C[11], fe = Math.sqrt(ae * ae + ne * ne + _e * _e), $e = Math.asin(_e / fe), Ue = Math.atan2(ne, ae), ge = Ue - oe;
2967
- ge += ge > Math.PI ? -2 * Math.PI : ge < -Math.PI ? 2 * Math.PI : 0, ge = Math.abs(ge), _.diff = Math.acos(Math.sin(ee) * Math.sin($e) + Math.cos(ee) * Math.cos($e) * Math.cos(ge));
2977
+ ge += ge > Math.PI ? -2 * Math.PI : ge < -Math.PI ? 2 * Math.PI : 0, ge = Math.abs(ge), _.diff = Math.acos(Math.sin(Q) * Math.sin($e) + Math.cos(Q) * Math.cos($e) * Math.cos(ge));
2968
2978
  for (var we = !1, ye = 0; ye < p.nodeCache.length; ye++)
2969
2979
  if (p.nodeCache[ye].path == _.path) {
2970
2980
  we = !0, p.nodeCache[ye].timestamp = p.nodeCacheTimestamp++, p.nodeCache[ye].diff = _.diff, p.currentNodes.push(p.nodeCache[ye]);
@@ -2978,7 +2988,7 @@ window.libpannellum = (function(e, t, n) {
2978
2988
  var Se = 1 - Me, Ve = [], Oe, Xe, De = Me, Re = Me, F = Me, se = Se, A = Se, he = Se;
2979
2989
  Be < w.tileResolution && (_.x == Ne && _.y != Ne ? (Re = 0.5, A = 0.5, (_.side == "d" || _.side == "u") && (F = 0.5, he = 0.5)) : _.x != Ne && _.y == Ne && (De = 0.5, se = 0.5, (_.side == "l" || _.side == "r") && (F = 0.5, he = 0.5))), We <= w.tileResolution && (_.x == Ne && (De = 0, se = 1, (_.side == "l" || _.side == "r") && (F = 0, he = 1)), _.y == Ne && (Re = 0, A = 1, (_.side == "d" || _.side == "u") && (F = 0, he = 1))), Oe = [C[0], C[1], C[2], C[0] * De + C[3] * se, C[1] * Me + C[4] * Se, C[2] * F + C[5] * he, C[0] * De + C[6] * se, C[1] * Re + C[7] * A, C[2] * F + C[8] * he, C[0] * Me + C[9] * Se, C[1] * Re + C[10] * A, C[2] * F + C[11] * he], Xe = new de(Oe, _.side, _.level + 1, _.x * 2, _.y * 2, w.fullpath), Ve.push(Xe), _.x == Ne && We <= w.tileResolution || (Oe = [C[0] * De + C[3] * se, C[1] * Me + C[4] * Se, C[2] * F + C[5] * he, C[3], C[4], C[5], C[3] * Me + C[6] * Se, C[4] * Re + C[7] * A, C[5] * F + C[8] * he, C[0] * De + C[6] * se, C[1] * Re + C[7] * A, C[2] * F + C[8] * he], Xe = new de(Oe, _.side, _.level + 1, _.x * 2 + 1, _.y * 2, w.fullpath), Ve.push(Xe)), !(_.x == Ne && We <= w.tileResolution) && !(_.y == Ne && We <= w.tileResolution) && (Oe = [C[0] * De + C[6] * se, C[1] * Re + C[7] * A, C[2] * F + C[8] * he, C[3] * Me + C[6] * Se, C[4] * Re + C[7] * A, C[5] * F + C[8] * he, C[6], C[7], C[8], C[9] * De + C[6] * se, C[10] * Me + C[7] * Se, C[11] * F + C[8] * he], Xe = new de(Oe, _.side, _.level + 1, _.x * 2 + 1, _.y * 2 + 1, w.fullpath), Ve.push(Xe)), _.y == Ne && We <= w.tileResolution || (Oe = [C[0] * Me + C[9] * Se, C[1] * Re + C[10] * A, C[2] * F + C[11] * he, C[0] * De + C[6] * se, C[1] * Re + C[7] * A, C[2] * F + C[8] * he, C[9] * De + C[6] * se, C[10] * Me + C[7] * Se, C[11] * F + C[8] * he, C[9], C[10], C[11]], Xe = new de(Oe, _.side, _.level + 1, _.x * 2, _.y * 2 + 1, w.fullpath), Ve.push(Xe));
2980
2990
  for (var ke = 0; ke < Ve.length; ke++)
2981
- U(h, Ve[ke], ee, oe);
2991
+ U(h, Ve[ke], Q, oe);
2982
2992
  }
2983
2993
  }
2984
2994
  }
@@ -3067,14 +3077,14 @@ window.libpannellum = (function(e, t, n) {
3067
3077
  function K() {
3068
3078
  return [1, 0, 0, 0, 1, 0, 0, 0, 1];
3069
3079
  }
3070
- function N(h, _, ee) {
3071
- var oe = Math.sin(_), Q = Math.cos(_);
3072
- if (ee == "x")
3073
- return [h[0], Q * h[1] + oe * h[2], Q * h[2] - oe * h[1], h[3], Q * h[4] + oe * h[5], Q * h[5] - oe * h[4], h[6], Q * h[7] + oe * h[8], Q * h[8] - oe * h[7]];
3074
- if (ee == "y")
3075
- return [Q * h[0] - oe * h[2], h[1], Q * h[2] + oe * h[0], Q * h[3] - oe * h[5], h[4], Q * h[5] + oe * h[3], Q * h[6] - oe * h[8], h[7], Q * h[8] + oe * h[6]];
3076
- if (ee == "z")
3077
- return [Q * h[0] + oe * h[1], Q * h[1] - oe * h[0], h[2], Q * h[3] + oe * h[4], Q * h[4] - oe * h[3], h[5], Q * h[6] + oe * h[7], Q * h[7] - oe * h[6], h[8]];
3080
+ function N(h, _, Q) {
3081
+ var oe = Math.sin(_), ee = Math.cos(_);
3082
+ if (Q == "x")
3083
+ return [h[0], ee * h[1] + oe * h[2], ee * h[2] - oe * h[1], h[3], ee * h[4] + oe * h[5], ee * h[5] - oe * h[4], h[6], ee * h[7] + oe * h[8], ee * h[8] - oe * h[7]];
3084
+ if (Q == "y")
3085
+ return [ee * h[0] - oe * h[2], h[1], ee * h[2] + oe * h[0], ee * h[3] - oe * h[5], h[4], ee * h[5] + oe * h[3], ee * h[6] - oe * h[8], h[7], ee * h[8] + oe * h[6]];
3086
+ if (Q == "z")
3087
+ return [ee * h[0] + oe * h[1], ee * h[1] - oe * h[0], h[2], ee * h[3] + oe * h[4], ee * h[4] - oe * h[3], h[5], ee * h[6] + oe * h[7], ee * h[7] - oe * h[6], h[8]];
3078
3088
  }
3079
3089
  function W(h) {
3080
3090
  return [h[0], h[1], h[2], 0, h[3], h[4], h[5], 0, h[6], h[7], h[8], 0, 0, 0, 0, 1];
@@ -3082,18 +3092,18 @@ window.libpannellum = (function(e, t, n) {
3082
3092
  function ie(h) {
3083
3093
  return [h[0], h[4], h[8], h[12], h[1], h[5], h[9], h[13], h[2], h[6], h[10], h[14], h[3], h[7], h[11], h[15]];
3084
3094
  }
3085
- function O(h, _, ee, oe) {
3086
- var Q = 2 * Math.atan(Math.tan(h / 2) * a.drawingBufferHeight / a.drawingBufferWidth), C = 1 / Math.tan(Q / 2);
3087
- return [C / _, 0, 0, 0, 0, C, 0, 0, 0, 0, (oe + ee) / (ee - oe), 2 * oe * ee / (ee - oe), 0, 0, -1, 0];
3095
+ function O(h, _, Q, oe) {
3096
+ var ee = 2 * Math.atan(Math.tan(h / 2) * a.drawingBufferHeight / a.drawingBufferWidth), C = 1 / Math.tan(ee / 2);
3097
+ return [C / _, 0, 0, 0, 0, C, 0, 0, 0, 0, (oe + Q) / (Q - oe), 2 * oe * Q / (Q - oe), 0, 0, -1, 0];
3088
3098
  }
3089
3099
  function te(h, _) {
3090
3100
  a.bindTexture(a.TEXTURE_2D, _), a.texImage2D(a.TEXTURE_2D, 0, a.RGB, a.RGB, a.UNSIGNED_BYTE, h), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.LINEAR), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_S, a.CLAMP_TO_EDGE), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_T, a.CLAMP_TO_EDGE), a.bindTexture(a.TEXTURE_2D, null);
3091
3101
  }
3092
3102
  var q = [], re = (function() {
3093
- var h = 4, _ = {}, ee;
3103
+ var h = 4, _ = {}, Q;
3094
3104
  function oe() {
3095
3105
  var ne = this;
3096
- this.texture = this.callback = null, this.image = new Image(), this.image.crossOrigin = ee || "anonymous";
3106
+ this.texture = this.callback = null, this.image = new Image(), this.image.crossOrigin = Q || "anonymous";
3097
3107
  var _e = function() {
3098
3108
  ne.image.width > 0 && ne.image.height > 0 ? (te(ne.image, ne.texture), ne.callback(ne.texture, !0)) : ne.callback(ne.texture, !1), C(ne);
3099
3109
  };
@@ -3102,7 +3112,7 @@ window.libpannellum = (function(e, t, n) {
3102
3112
  oe.prototype.loadTexture = function(ne, _e, fe) {
3103
3113
  this.texture = _e, this.callback = fe, this.image.src = ne;
3104
3114
  };
3105
- function Q(ne, _e, fe, $e) {
3115
+ function ee(ne, _e, fe, $e) {
3106
3116
  this.node = ne, this.src = _e, this.texture = fe, this.callback = $e;
3107
3117
  }
3108
3118
  function C(ne) {
@@ -3115,14 +3125,14 @@ window.libpannellum = (function(e, t, n) {
3115
3125
  for (var ae = 0; ae < h; ae++)
3116
3126
  _[ae] = new oe();
3117
3127
  return function(ne, _e, fe, $e) {
3118
- ee = $e;
3128
+ Q = $e;
3119
3129
  var Ue = a.createTexture();
3120
- return h ? _[--h].loadTexture(_e, Ue, fe) : q.push(new Q(ne, _e, Ue, fe)), Ue;
3130
+ return h ? _[--h].loadTexture(_e, Ue, fe) : q.push(new ee(ne, _e, Ue, fe)), Ue;
3121
3131
  };
3122
3132
  })();
3123
3133
  function S(h) {
3124
- re(h, encodeURI(h.path + "." + w.extension), function(_, ee) {
3125
- h.texture = _, h.textureLoaded = ee ? 2 : 1;
3134
+ re(h, encodeURI(h.path + "." + w.extension), function(_, Q) {
3135
+ h.texture = _, h.textureLoaded = Q ? 2 : 1;
3126
3136
  }, R.crossOrigin);
3127
3137
  }
3128
3138
  function le(h) {
@@ -3137,17 +3147,17 @@ window.libpannellum = (function(e, t, n) {
3137
3147
  return [h[0] * _[0] + h[1] * _[1] + h[2] * _[2], h[4] * _[0] + h[5] * _[1] + h[6] * _[2], h[11] + h[8] * _[0] + h[9] * _[1] + h[10] * _[2], 1 / (h[12] * _[0] + h[13] * _[1] + h[14] * _[2])];
3138
3148
  }
3139
3149
  function Ge(h, _) {
3140
- var ee = Te(h, _), oe = ee[0] * ee[3], Q = ee[1] * ee[3], C = ee[2] * ee[3], ae = [0, 0, 0];
3141
- return oe < -1 && (ae[0] = -1), oe > 1 && (ae[0] = 1), Q < -1 && (ae[1] = -1), Q > 1 && (ae[1] = 1), (C < -1 || C > 1) && (ae[2] = 1), ae;
3150
+ var Q = Te(h, _), oe = Q[0] * Q[3], ee = Q[1] * Q[3], C = Q[2] * Q[3], ae = [0, 0, 0];
3151
+ return oe < -1 && (ae[0] = -1), oe > 1 && (ae[0] = 1), ee < -1 && (ae[1] = -1), ee > 1 && (ae[1] = 1), (C < -1 || C > 1) && (ae[2] = 1), ae;
3142
3152
  }
3143
3153
  function Ze(h, _) {
3144
- var ee = Ge(h, _.slice(0, 3)), oe = Ge(h, _.slice(3, 6)), Q = Ge(h, _.slice(6, 9)), C = Ge(h, _.slice(9, 12)), ae = ee[0] + oe[0] + Q[0] + C[0];
3154
+ var Q = Ge(h, _.slice(0, 3)), oe = Ge(h, _.slice(3, 6)), ee = Ge(h, _.slice(6, 9)), C = Ge(h, _.slice(9, 12)), ae = Q[0] + oe[0] + ee[0] + C[0];
3145
3155
  if (ae == -4 || ae == 4)
3146
3156
  return !1;
3147
- var ne = ee[1] + oe[1] + Q[1] + C[1];
3157
+ var ne = Q[1] + oe[1] + ee[1] + C[1];
3148
3158
  if (ne == -4 || ne == 4)
3149
3159
  return !1;
3150
- var _e = ee[2] + oe[2] + Q[2] + C[2];
3160
+ var _e = Q[2] + oe[2] + ee[2] + C[2];
3151
3161
  return _e != 4;
3152
3162
  }
3153
3163
  function ve() {
@@ -3312,9 +3322,9 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3312
3322
  le.className = "pnlm-sprite pnlm-hot-spot-debug-indicator", O.appendChild(le), S.container = t.createElement("div"), S.container.className = "pnlm-panorama-info", S.title = t.createElement("div"), S.title.className = "pnlm-title-box", S.container.appendChild(S.title), S.author = t.createElement("div"), S.author.className = "pnlm-author-box", S.container.appendChild(S.author), O.appendChild(S.container), S.load = {}, S.load.box = t.createElement("div"), S.load.box.className = "pnlm-load-box", S.load.boxp = t.createElement("p"), S.load.box.appendChild(S.load.boxp), S.load.lbox = t.createElement("div"), S.load.lbox.className = "pnlm-lbox", S.load.lbox.innerHTML = '<div class="pnlm-loading"></div>', S.load.box.appendChild(S.load.lbox), S.load.lbar = t.createElement("div"), S.load.lbar.className = "pnlm-lbar", S.load.lbarFill = t.createElement("div"), S.load.lbarFill.className = "pnlm-lbar-fill", S.load.lbar.appendChild(S.load.lbarFill), S.load.box.appendChild(S.load.lbar), S.load.msg = t.createElement("p"), S.load.msg.className = "pnlm-lmsg", S.load.box.appendChild(S.load.msg), O.appendChild(S.load.box), S.errorMsg = t.createElement("div"), S.errorMsg.className = "pnlm-error-msg pnlm-info-box", O.appendChild(S.errorMsg);
3313
3323
  var $ = {};
3314
3324
  $.container = t.createElement("div"), $.container.className = "pnlm-controls-container", O.appendChild($.container), $.load = t.createElement("div"), $.load.className = "pnlm-load-button", $.load.addEventListener("click", function() {
3315
- tn(), Hn();
3316
- }), O.appendChild($.load), $.zoom = t.createElement("div"), $.zoom.className = "pnlm-zoom-controls pnlm-controls", $.zoomIn = t.createElement("div"), $.zoomIn.className = "pnlm-zoom-in pnlm-sprite pnlm-control", $.zoomIn.addEventListener("click", wo), $.zoom.appendChild($.zoomIn), $.zoomOut = t.createElement("div"), $.zoomOut.className = "pnlm-zoom-out pnlm-sprite pnlm-control", $.zoomOut.addEventListener("click", yo), $.zoom.appendChild($.zoomOut), $.container.appendChild($.zoom), $.fullscreen = t.createElement("div"), $.fullscreen.addEventListener("click", nn), $.fullscreen.className = "pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control", (t.fullscreenEnabled || t.mozFullScreenEnabled || t.webkitFullscreenEnabled || t.msFullscreenEnabled) && $.container.appendChild($.fullscreen), $.orientation = t.createElement("div"), $.orientation.addEventListener("click", function(l) {
3317
- Y ? It() : Vt();
3325
+ nn(), Hn();
3326
+ }), O.appendChild($.load), $.zoom = t.createElement("div"), $.zoom.className = "pnlm-zoom-controls pnlm-controls", $.zoomIn = t.createElement("div"), $.zoomIn.className = "pnlm-zoom-in pnlm-sprite pnlm-control", $.zoomIn.addEventListener("click", wo), $.zoom.appendChild($.zoomIn), $.zoomOut = t.createElement("div"), $.zoomOut.className = "pnlm-zoom-out pnlm-sprite pnlm-control", $.zoomOut.addEventListener("click", yo), $.zoom.appendChild($.zoomOut), $.container.appendChild($.zoom), $.fullscreen = t.createElement("div"), $.fullscreen.addEventListener("click", rn), $.fullscreen.className = "pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control", (t.fullscreenEnabled || t.mozFullScreenEnabled || t.webkitFullscreenEnabled || t.msFullscreenEnabled) && $.container.appendChild($.fullscreen), $.orientation = t.createElement("div"), $.orientation.addEventListener("click", function(l) {
3327
+ Y ? It() : Xt();
3318
3328
  }), $.orientation.addEventListener("mousedown", function(l) {
3319
3329
  l.stopPropagation();
3320
3330
  }), $.orientation.addEventListener("touchstart", function(l) {
@@ -3324,15 +3334,15 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3324
3334
  }), $.orientation.className = "pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";
3325
3335
  var Te, Ge = !1;
3326
3336
  function Ze(l) {
3327
- e.removeEventListener("deviceorientation", Ze), l && l.alpha !== null && l.beta !== null && l.gamma !== null ? ($.container.appendChild($.orientation), Te = !0, Ge && Vt()) : Te = !1;
3337
+ e.removeEventListener("deviceorientation", Ze), l && l.alpha !== null && l.beta !== null && l.gamma !== null ? ($.container.appendChild($.orientation), Te = !0, Ge && Xt()) : Te = !1;
3328
3338
  }
3329
3339
  e.DeviceOrientationEvent ? e.addEventListener("deviceorientation", Ze) : Te = !1;
3330
3340
  var ve = t.createElement("div");
3331
- ve.className = "pnlm-compass pnlm-controls pnlm-control", O.appendChild(ve), s.firstScene ? Wt(s.firstScene) : s.default && s.default.firstScene ? Wt(s.default.firstScene) : Wt(null), tn(!0);
3341
+ ve.className = "pnlm-compass pnlm-controls pnlm-control", O.appendChild(ve), s.firstScene ? Bt(s.firstScene) : s.default && s.default.firstScene ? Bt(s.default.firstScene) : Bt(null), nn(!0);
3332
3342
  function h() {
3333
3343
  var l = t.createElement("div");
3334
3344
  if (l.innerHTML = "<!--[if lte IE 9]><i></i><![endif]-->", l.getElementsByTagName("i").length == 1) {
3335
- Q();
3345
+ ee();
3336
3346
  return;
3337
3347
  }
3338
3348
  J = r.hfov, de = r.pitch;
@@ -3348,31 +3358,31 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3348
3358
  P = r.panorama;
3349
3359
  else {
3350
3360
  if (r.panorama === n) {
3351
- Q(r.strings.noPanoramaError);
3361
+ ee(r.strings.noPanoramaError);
3352
3362
  return;
3353
3363
  }
3354
3364
  P = new Image();
3355
3365
  }
3356
3366
  if (r.type == "cubemap") {
3357
3367
  var G = 6, X = function() {
3358
- G--, G === 0 && ee();
3368
+ G--, G === 0 && Q();
3359
3369
  }, be = function(He) {
3360
3370
  var Ae = t.createElement("a");
3361
- Ae.href = He.target.src, Ae.textContent = Ae.href, Q(r.strings.fileAccessError.replace("%s", Ae.outerHTML));
3371
+ Ae.href = He.target.src, Ae.textContent = Ae.href, ee(r.strings.fileAccessError.replace("%s", Ae.outerHTML));
3362
3372
  };
3363
3373
  for (d = 0; d < P.length; d++)
3364
3374
  x = r.cubeMap[d], x == "null" ? (console.log("Will use background instead of missing cubemap face " + d), X()) : (r.basePath && !_(x) && (x = r.basePath + x), P[d].onload = X, P[d].onerror = be, P[d].src = _t(x));
3365
3375
  } else if (r.type == "multires")
3366
- ee();
3376
+ Q();
3367
3377
  else if (x = "", r.basePath && (x = r.basePath), r.dynamic !== !0) {
3368
3378
  x = _(r.panorama) ? r.panorama : x + r.panorama, P.onload = function() {
3369
- e.URL.revokeObjectURL(this.src), ee();
3379
+ e.URL.revokeObjectURL(this.src), Q();
3370
3380
  };
3371
3381
  var pe = new XMLHttpRequest();
3372
3382
  pe.onloadend = function() {
3373
3383
  if (pe.status != 200) {
3374
3384
  var Le = t.createElement("a");
3375
- Le.href = x, Le.textContent = Le.href, Q(r.strings.fileAccessError.replace("%s", Le.outerHTML));
3385
+ Le.href = x, Le.textContent = Le.href, ee(r.strings.fileAccessError.replace("%s", Le.outerHTML));
3376
3386
  }
3377
3387
  var He = this.response;
3378
3388
  oe(He), S.load.msg.innerHTML = "";
@@ -3388,7 +3398,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3388
3398
  try {
3389
3399
  pe.open("GET", x, !0);
3390
3400
  } catch {
3391
- Q(r.strings.malformedURLError);
3401
+ ee(r.strings.malformedURLError);
3392
3402
  }
3393
3403
  pe.responseType = "blob", pe.setRequestHeader("Accept", "image/*,*/*;q=0.9"), pe.withCredentials = r.crossOrigin === "use-credentials", pe.send();
3394
3404
  }
@@ -3397,7 +3407,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3397
3407
  function _(l) {
3398
3408
  return new RegExp("^(?:[a-z]+:)?//", "i").test(l) || l[0] == "/" || l.slice(0, 5) == "blob:";
3399
3409
  }
3400
- function ee() {
3410
+ function Q() {
3401
3411
  v || (v = new libpannellum.renderer(te)), M || (M = !0, q.addEventListener("mousedown", _e, !1), t.addEventListener("mousemove", Ue, !1), t.addEventListener("mouseup", ge, !1), r.mouseZoom && (O.addEventListener("mousewheel", Ve, !1), O.addEventListener("DOMMouseScroll", Ve, !1)), r.doubleClickZoom && q.addEventListener("dblclick", fe, !1), O.addEventListener("mozfullscreenchange", ct, !1), O.addEventListener("webkitfullscreenchange", ct, !1), O.addEventListener("msfullscreenchange", ct, !1), O.addEventListener("fullscreenchange", ct, !1), e.addEventListener("resize", he, !1), e.addEventListener("orientationchange", he, !1), r.disableKeyboardCtrl || (i.addEventListener("keydown", Oe, !1), i.addEventListener("keyup", De, !1), i.addEventListener("blur", Xe, !1)), t.addEventListener("mouseleave", ge, !1), t.documentElement.style.pointerAction === "" && t.documentElement.style.touchAction === "" ? (q.addEventListener("pointerdown", Be, !1), q.addEventListener("pointermove", Me, !1), q.addEventListener("pointerup", Se, !1), q.addEventListener("pointerleave", Se, !1)) : (q.addEventListener("touchstart", we, !1), q.addEventListener("touchmove", ye, !1), q.addEventListener("touchend", Pe, !1)), e.navigator.pointerEnabled && (i.style.touchAction = "none")), mo(), rt(r.hfov), setTimeout(function() {
3402
3412
  }, 500);
3403
3413
  }
@@ -3407,7 +3417,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3407
3417
  var x = d.result;
3408
3418
  if (navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)) {
3409
3419
  var B = x.indexOf("ÿÂ");
3410
- (B < 0 || B > 65536) && Q(r.strings.iOS8WebGLError);
3420
+ (B < 0 || B > 65536) && ee(r.strings.iOS8WebGLError);
3411
3421
  }
3412
3422
  var G = x.indexOf("<x:xmpmeta");
3413
3423
  if (G > -1 && r.ignoreGPanoXMP !== !0) {
@@ -3429,7 +3439,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3429
3439
  P.src = e.URL.createObjectURL(l);
3430
3440
  }), d.readAsBinaryString !== n ? d.readAsBinaryString(l) : d.readAsText(l);
3431
3441
  }
3432
- function Q(l) {
3442
+ function ee(l) {
3433
3443
  l === n && (l = r.strings.genericWebGLError), S.errorMsg.innerHTML = "<p>" + l + "</p>", $.load.style.display = "none", S.load.box.style.display = "none", S.errorMsg.style.display = "table", w = !0, te.style.display = "none", ut("error", l);
3434
3444
  }
3435
3445
  function C() {
@@ -3454,7 +3464,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3454
3464
  var x = $e(l);
3455
3465
  console.log("Pitch: " + x[0] + ", Yaw: " + x[1] + ", Center Pitch: " + r.pitch + ", Center Yaw: " + r.yaw + ", HFOV: " + r.hfov);
3456
3466
  }
3457
- Bt(), It(), r.roll = 0, T.hfov = 0, L = !0, f = Date.now(), p = d.x, a = d.y, I = r.yaw, k = r.pitch, O.classList.add("pnlm-grabbing"), O.classList.remove("pnlm-grab"), ut("mousedown", l), ke();
3467
+ Vt(), It(), r.roll = 0, T.hfov = 0, L = !0, f = Date.now(), p = d.x, a = d.y, I = r.yaw, k = r.pitch, O.classList.add("pnlm-grabbing"), O.classList.remove("pnlm-grab"), ut("mousedown", l), ke();
3458
3468
  }
3459
3469
  }
3460
3470
  function fe(l) {
@@ -3483,7 +3493,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3483
3493
  }
3484
3494
  function we(l) {
3485
3495
  if (!(!E || !r.draggable)) {
3486
- Bt(), It(), r.roll = 0, T.hfov = 0;
3496
+ Vt(), It(), r.roll = 0, T.hfov = 0;
3487
3497
  var d = ne(l.targetTouches[0]);
3488
3498
  if (p = d.x, a = d.y, l.targetTouches.length == 2) {
3489
3499
  var x = ne(l.targetTouches[1]);
@@ -3531,12 +3541,12 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3531
3541
  }
3532
3542
  }
3533
3543
  function Ve(l) {
3534
- !E || r.mouseZoom == "fullscreenonly" && !y || (l.preventDefault(), Bt(), f = Date.now(), l.wheelDeltaY ? (rt(r.hfov - l.wheelDeltaY * 0.05), T.hfov = l.wheelDelta < 0 ? 1 : -1) : l.wheelDelta ? (rt(r.hfov - l.wheelDelta * 0.05), T.hfov = l.wheelDelta < 0 ? 1 : -1) : l.detail && (rt(r.hfov + l.detail * 1.5), T.hfov = l.detail > 0 ? 1 : -1), ke());
3544
+ !E || r.mouseZoom == "fullscreenonly" && !y || (l.preventDefault(), Vt(), f = Date.now(), l.wheelDeltaY ? (rt(r.hfov - l.wheelDeltaY * 0.05), T.hfov = l.wheelDelta < 0 ? 1 : -1) : l.wheelDelta ? (rt(r.hfov - l.wheelDelta * 0.05), T.hfov = l.wheelDelta < 0 ? 1 : -1) : l.detail && (rt(r.hfov + l.detail * 1.5), T.hfov = l.detail > 0 ? 1 : -1), ke());
3535
3545
  }
3536
3546
  function Oe(l) {
3537
- Bt(), f = Date.now(), It(), r.roll = 0;
3547
+ Vt(), f = Date.now(), It(), r.roll = 0;
3538
3548
  var d = l.which || l.keycode;
3539
- r.capturedKeyNumbers.indexOf(d) < 0 || (l.preventDefault(), d == 27 ? y && nn() : Re(d, !0));
3549
+ r.capturedKeyNumbers.indexOf(d) < 0 || (l.preventDefault(), d == 27 ? y && rn() : Re(d, !0));
3540
3550
  }
3541
3551
  function Xe() {
3542
3552
  for (var l = 0; l < 10; l++)
@@ -3698,11 +3708,11 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3698
3708
  r.horizonPitch !== n && (l.horizonPitch = r.horizonPitch * Math.PI / 180), r.horizonRoll !== n && (l.horizonRoll = r.horizonRoll * Math.PI / 180), r.backgroundColor !== n && (l.backgroundColor = r.backgroundColor), v.init(P, r.type, r.dynamic, r.haov * Math.PI / 180, r.vaov * Math.PI / 180, r.vOffset * Math.PI / 180, go, l), r.dynamic !== !0 && (P = n);
3699
3709
  } catch (d) {
3700
3710
  if (d.type == "webgl error" || d.type == "no webgl")
3701
- Q();
3711
+ ee();
3702
3712
  else if (d.type == "webgl size error")
3703
- Q(r.strings.textureSizeError.replace("%s", d.width).replace("%s", d.maxWidth));
3713
+ ee(r.strings.textureSizeError.replace("%s", d.width).replace("%s", d.maxWidth));
3704
3714
  else
3705
- throw Q(r.strings.unknownError), d;
3715
+ throw ee(r.strings.unknownError), d;
3706
3716
  }
3707
3717
  }
3708
3718
  function go() {
@@ -3731,7 +3741,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3731
3741
  var be = t.createElement("img");
3732
3742
  be.src = _t(X), be.style.width = l.width + "px", be.style.paddingTop = "5px", te.appendChild(d), B.appendChild(be), x.style.maxWidth = "initial";
3733
3743
  } else l.URL ? (B = t.createElement("a"), B.href = _t(l.URL), B.target = "_blank", te.appendChild(B), d.className += " pnlm-pointer", x.className += " pnlm-pointer", B.appendChild(d)) : (l.sceneId && (d.onclick = d.ontouchend = function() {
3734
- return d.clicked || (d.clicked = !0, rn(l.sceneId, l.targetPitch, l.targetYaw, l.targetHfov)), !1;
3744
+ return d.clicked || (d.clicked = !0, on(l.sceneId, l.targetPitch, l.targetYaw, l.targetHfov)), !1;
3735
3745
  }, d.className += " pnlm-pointer", x.className += " pnlm-pointer"), te.appendChild(d));
3736
3746
  l.createTooltipFunc ? l.createTooltipFunc(d, l.createTooltipArgs) : (l.text || l.video || l.image) && (d.classList.add("pnlm-tooltip"), d.appendChild(x), x.style.width = x.scrollWidth - 20 + "px", x.style.marginLeft = -(x.scrollWidth - d.offsetWidth) / 2 + "px", x.style.marginTop = -x.scrollHeight - 12 + "px"), l.clickHandlerFunc && (d.addEventListener("click", function(pe) {
3737
3747
  l.clickHandlerFunc(pe, l.clickHandlerArgs);
@@ -3760,14 +3770,14 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3760
3770
  l.div.style.visibility = "visible";
3761
3771
  var He = v.getCanvas(), Ae = He.clientWidth, tt = He.clientHeight, et = [-Ae / Le * pe * x / be / 2, -Ae / Le * (d * G - x * X * B) / be / 2], pt = Math.sin(r.roll * Math.PI / 180), Un = Math.cos(r.roll * Math.PI / 180);
3762
3772
  et = [et[0] * Un - et[1] * pt, et[0] * pt + et[1] * Un], et[0] += (Ae - l.div.offsetWidth) / 2, et[1] += (tt - l.div.offsetHeight) / 2;
3763
- var on = "translate(" + et[0] + "px, " + et[1] + "px) translateZ(9999px) rotate(" + r.roll + "deg)";
3764
- l.div.style.webkitTransform = on, l.div.style.MozTransform = on, l.div.style.transform = on;
3773
+ var an = "translate(" + et[0] + "px, " + et[1] + "px) translateZ(9999px) rotate(" + r.roll + "deg)";
3774
+ l.div.style.webkitTransform = an, l.div.style.MozTransform = an, l.div.style.transform = an;
3765
3775
  }
3766
3776
  }
3767
3777
  function On() {
3768
3778
  r.hotSpots.forEach(zn);
3769
3779
  }
3770
- function Wt(l) {
3780
+ function Bt(l) {
3771
3781
  r = {};
3772
3782
  var d, x, B = ["haov", "vaov", "vOffset", "northOffset", "horizonPitch", "horizonRoll"];
3773
3783
  K = [];
@@ -3799,7 +3809,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3799
3809
  else
3800
3810
  r[d] = s[d], B.indexOf(d) >= 0 && K.push(d);
3801
3811
  }
3802
- function tn(l) {
3812
+ function nn(l) {
3803
3813
  if (l = l || !1, l && "preview" in r) {
3804
3814
  var d = r.preview;
3805
3815
  r.basePath && !_(d) && (d = r.basePath + d), m = t.createElement("div"), m.className = "pnlm-preview-img", m.style.backgroundImage = "url('" + xo(d) + "')", te.appendChild(m);
@@ -3840,12 +3850,12 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3840
3850
  r[G] || ($.orientation.style.display = "none", $.zoom.style.display = "none", $.fullscreen.style.display = "none");
3841
3851
  break;
3842
3852
  case "orientationOnByDefault":
3843
- r[G] && (Te === n ? Ge = !0 : Te === !0 && Vt());
3853
+ r[G] && (Te === n ? Ge = !0 : Te === !0 && Xt());
3844
3854
  break;
3845
3855
  }
3846
3856
  l && (x ? r.title = x : delete r.title, B ? r.author = B : delete r.author);
3847
3857
  }
3848
- function nn() {
3858
+ function rn() {
3849
3859
  if (E && !w)
3850
3860
  if (y)
3851
3861
  t.exitFullscreen ? t.exitFullscreen() : t.mozCancelFullScreen ? t.mozCancelFullScreen() : t.webkitCancelFullScreen ? t.webkitCancelFullScreen() : t.msExitFullscreen && t.msExitFullscreen();
@@ -3879,30 +3889,30 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3879
3889
  function rt(l) {
3880
3890
  r.hfov = Fn(l);
3881
3891
  }
3882
- function Bt() {
3892
+ function Vt() {
3883
3893
  U = {}, z = r.autoRotate ? r.autoRotate : z, r.autoRotate = !1;
3884
3894
  }
3885
3895
  function Hn() {
3886
3896
  C(), E = !1, $.load.style.display = "none", S.load.box.style.display = "inline", h();
3887
3897
  }
3888
- function rn(l, d, x, B, G) {
3898
+ function on(l, d, x, B, G) {
3889
3899
  E = !1, U = {};
3890
3900
  var X, be, pe, Le;
3891
3901
  if (r.sceneFadeDuration && !G) {
3892
3902
  var He = v.render(r.pitch * Math.PI / 180, r.yaw * Math.PI / 180, r.hfov * Math.PI / 180, { returnImage: !0 });
3893
3903
  if (He !== n) {
3894
3904
  X = new Image(), X.className = "pnlm-fade-img", X.style.transition = "opacity " + r.sceneFadeDuration / 1e3 + "s", X.style.width = "100%", X.style.height = "100%", X.onload = function() {
3895
- rn(l, d, x, B, !0);
3905
+ on(l, d, x, B, !0);
3896
3906
  }, X.src = He, te.appendChild(X), v.fadeImg = X;
3897
3907
  return;
3898
3908
  }
3899
3909
  }
3900
- d === "same" ? be = r.pitch : be = d, x === "same" ? pe = r.yaw : x === "sameAzimuth" ? pe = r.yaw + (r.northOffset || 0) - (s.scenes[l].northOffset || 0) : pe = x, B === "same" ? Le = r.hfov : Le = B, _o(), Wt(l), T.yaw = T.pitch = T.hfov = 0, tn(), be !== n && (r.pitch = be), pe !== n && (r.yaw = pe), Le !== n && (r.hfov = Le), ut("scenechange", l), Hn();
3910
+ d === "same" ? be = r.pitch : be = d, x === "same" ? pe = r.yaw : x === "sameAzimuth" ? pe = r.yaw + (r.northOffset || 0) - (s.scenes[l].northOffset || 0) : pe = x, B === "same" ? Le = r.hfov : Le = B, _o(), Bt(l), T.yaw = T.pitch = T.hfov = 0, nn(), be !== n && (r.pitch = be), pe !== n && (r.yaw = pe), Le !== n && (r.hfov = Le), ut("scenechange", l), Hn();
3901
3911
  }
3902
3912
  function It() {
3903
3913
  e.removeEventListener("deviceorientation", An), $.orientation.classList.remove("pnlm-orientation-button-active"), Y = !1;
3904
3914
  }
3905
- function Vt() {
3915
+ function Xt() {
3906
3916
  Y = 1, e.addEventListener("deviceorientation", An), $.orientation.classList.add("pnlm-orientation-button-active");
3907
3917
  }
3908
3918
  function vt(l) {
@@ -3984,11 +3994,11 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3984
3994
  }, this.getRenderer = function() {
3985
3995
  return v;
3986
3996
  }, this.setUpdate = function(l) {
3987
- return N = l === !0, v === n ? ee() : ke(), this;
3997
+ return N = l === !0, v === n ? Q() : ke(), this;
3988
3998
  }, this.mouseEventToCoords = function(l) {
3989
3999
  return $e(l);
3990
4000
  }, this.loadScene = function(l, d, x, B) {
3991
- return E !== !1 && rn(l, d, x, B), this;
4001
+ return E !== !1 && on(l, d, x, B), this;
3992
4002
  }, this.getScene = function() {
3993
4003
  return r.scene;
3994
4004
  }, this.addScene = function(l, d) {
@@ -3996,7 +4006,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
3996
4006
  }, this.removeScene = function(l) {
3997
4007
  return r.scene === l || !s.scenes.hasOwnProperty(l) ? !1 : (delete s.scenes[l], !0);
3998
4008
  }, this.toggleFullscreen = function() {
3999
- return nn(), this;
4009
+ return rn(), this;
4000
4010
  }, this.getConfig = function() {
4001
4011
  return r;
4002
4012
  }, this.getContainer = function() {
@@ -4039,7 +4049,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
4039
4049
  }, this.stopOrientation = function() {
4040
4050
  It();
4041
4051
  }, this.startOrientation = function() {
4042
- Te && Vt();
4052
+ Te && Xt();
4043
4053
  }, this.isOrientationActive = function() {
4044
4054
  return !!Y;
4045
4055
  }, this.on = function(l, d) {
@@ -4092,7 +4102,7 @@ function ii(e, t, n) {
4092
4102
  yaw: oi,
4093
4103
  hfov: ni,
4094
4104
  maxHfov: Ct,
4095
- minHfov: Pt,
4105
+ minHfov: Nt,
4096
4106
  compass: !1,
4097
4107
  showControls: !1,
4098
4108
  keyboardZoom: !1,
@@ -4222,8 +4232,8 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4222
4232
  const P = M.current;
4223
4233
  if (!P || !b) return;
4224
4234
  const j = 1, T = at((m - j) / (ht - j), 0, 1), H = at(
4225
- Ct - T * (Ct - Pt),
4226
- Pt,
4235
+ Ct - T * (Ct - Nt),
4236
+ Nt,
4227
4237
  Ct
4228
4238
  );
4229
4239
  P.setHfov(H);
@@ -4237,7 +4247,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4237
4247
  if (!R) return;
4238
4248
  const V = lr(
4239
4249
  R.getHfov(),
4240
- Pt,
4250
+ Nt,
4241
4251
  Ct,
4242
4252
  ht,
4243
4253
  xt
@@ -4249,7 +4259,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4249
4259
  if (!R) return;
4250
4260
  const V = lr(
4251
4261
  R.getHfov(),
4252
- Pt,
4262
+ Nt,
4253
4263
  Ct,
4254
4264
  ht,
4255
4265
  xt,
@@ -4300,7 +4310,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4300
4310
  return me(() => {
4301
4311
  o === null || o === "error" || n(t, o === "spin" ? "running" : "ready");
4302
4312
  }, [t, n, o]), o === "error" ? /* @__PURE__ */ c(
4303
- en,
4313
+ tn,
4304
4314
  {
4305
4315
  className: "text-background",
4306
4316
  text: "Interior Spin could not be loaded"
@@ -4326,7 +4336,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4326
4336
  children: /* @__PURE__ */ c("polygon", { points: "6 3 20 12 6 21 6 3" })
4327
4337
  }
4328
4338
  ) }), fi = 750, pi = 1250, hi = 360, mi = 480, gi = (e, t, n) => ({ cursor: `url("${e}") ${t.x} ${t.y}, ${n}` }), vi = ({ images: e, itemIndex: t, onlyPreload: n }) => {
4329
- const { demoSpin: o, reverse360: i, spinCursor: s, themeConfig: u } = qe(), { currentItemHotspotsVisible: r, isShowingDetails: v, isZooming: m } = Qe(), L = ze(() => Ut(u), [u]), f = m || v, p = xe(null), a = xe(null), [b, I] = Ce(!1), [k, g] = Ce("default"), y = s === "grab" && b ? "grabbing" : s, E = L?.cursor ? (() => {
4339
+ const { demoSpin: o, reverse360: i, spinCursor: s, themeConfig: u } = qe(), { currentItemHotspotsVisible: r, isShowingDetails: v, isZooming: m } = Qe(), L = ze(() => Wt(u), [u]), f = m || v, p = xe(null), a = xe(null), [b, I] = Ce(!1), [k, g] = Ce("default"), y = s === "grab" && b ? "grabbing" : s, E = L?.cursor ? (() => {
4330
4340
  const te = k === "left" ? "leftSpin" : k === "right" ? "rightSpin" : "default", q = L.cursor[te];
4331
4341
  return gi(q.url, q.hotspot, y);
4332
4342
  })() : y === xn ? { cursor: `url("${co}") 45 28, ew-resize` } : { cursor: y }, w = xe(0), M = xe(null), [P, j] = Ce(0), T = xe(null), H = xe(null), Y = xe(null), R = xe(0), V = 16, z = xe({
@@ -4429,14 +4439,14 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4429
4439
  S !== null && (S = null, I(!1), g("default"), Ge());
4430
4440
  };
4431
4441
  te.addEventListener("mousedown", ve), document.addEventListener("mousemove", h), document.addEventListener("mouseleave", _), document.addEventListener("mouseup", _), document.addEventListener("contextmenu", _);
4432
- const ee = mi / N, oe = () => q.getBoundingClientRect().width, Q = () => q.scrollWidth / 2 - oe() / 2, C = () => {
4433
- const ge = Q();
4442
+ const Q = mi / N, oe = () => q.getBoundingClientRect().width, ee = () => q.scrollWidth / 2 - oe() / 2, C = () => {
4443
+ const ge = ee();
4434
4444
  q.scrollLeft = ge;
4435
4445
  };
4436
4446
  C();
4437
4447
  const ae = () => {
4438
- const ge = q.scrollLeft - Q();
4439
- Math.abs(ge) < ee || (ge < 0 !== i ? ie() : O(), C());
4448
+ const ge = q.scrollLeft - ee();
4449
+ Math.abs(ge) < Q || (ge < 0 !== i ? ie() : O(), C());
4440
4450
  };
4441
4451
  q.addEventListener("scroll", ae);
4442
4452
  let ne = null;
@@ -4529,7 +4539,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4529
4539
  onSpinImagesLoaded: o,
4530
4540
  onError: i
4531
4541
  }) => {
4532
- const { autoLoad360: s, emitAnalyticsEvent: u, themeConfig: r } = qe(), { displayedCategoryId: v, displayedCategoryName: m } = Qe(), L = ze(() => Ut(r), [r]), f = ze(() => t.map(({ src: y }) => y), [t]), [p, a] = Ce(null), b = p ? [...p.values()].filter((y) => y).length / t.length * 100 : null, I = Z(
4542
+ const { autoLoad360: s, emitAnalyticsEvent: u, themeConfig: r } = qe(), { displayedCategoryId: v, displayedCategoryName: m } = Qe(), L = ze(() => Wt(r), [r]), f = ze(() => t.map(({ src: y }) => y), [t]), [p, a] = Ce(null), b = p ? [...p.values()].filter((y) => y).length / t.length * 100 : null, I = Z(
4533
4543
  (y) => {
4534
4544
  b === null && (a(new Map(f.map((E) => [E, !1]))), u({
4535
4545
  type: "interaction",
@@ -4624,7 +4634,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4624
4634
  return me(() => {
4625
4635
  o === null || o === "error" || n(t, o === "spin" ? "running" : "ready");
4626
4636
  }, [t, n, o]), o === "error" ? /* @__PURE__ */ c(
4627
- en,
4637
+ tn,
4628
4638
  {
4629
4639
  className: "text-background",
4630
4640
  text: "Spin could not be loaded"
@@ -4642,7 +4652,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4642
4652
  images: e,
4643
4653
  onlyPreload: t
4644
4654
  }) => {
4645
- const { demoSpin: n, reverse360: o, spinCursor: i, themeConfig: s } = qe(), { isShowingDetails: u, isZooming: r } = Qe(), v = ze(() => Ut(s), [s]), m = r || u, L = xe(null), f = xe(null), [p, a] = Ce(!1), [b, I] = Ce("default"), k = i === "grab" && p ? "grabbing" : i, g = v?.cursor ? (() => {
4655
+ const { demoSpin: n, reverse360: o, spinCursor: i, themeConfig: s } = qe(), { isShowingDetails: u, isZooming: r } = Qe(), v = ze(() => Wt(s), [s]), m = r || u, L = xe(null), f = xe(null), [p, a] = Ce(!1), [b, I] = Ce("default"), k = i === "grab" && p ? "grabbing" : i, g = v?.cursor ? (() => {
4646
4656
  const V = b === "left" ? "leftSpin" : b === "right" ? "rightSpin" : "default", z = v.cursor[V];
4647
4657
  return Ei(z.url, z.hotspot, k);
4648
4658
  })() : k === xn ? { cursor: `url("${co}") 45 28, ew-resize` } : { cursor: k }, y = xe(n), E = xe(null), w = Z(() => {
@@ -4678,25 +4688,25 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4678
4688
  U.push(ve), U.length > 20 && U.shift();
4679
4689
  }, K = () => {
4680
4690
  const ve = (() => {
4681
- const Q = Date.now(), C = U.filter(
4682
- (_e) => Q - _e.timestamp < 50
4691
+ const ee = Date.now(), C = U.filter(
4692
+ (_e) => ee - _e.timestamp < 50
4683
4693
  );
4684
4694
  if (C.length < 2)
4685
4695
  return 0;
4686
4696
  const ae = C[0], ne = C[C.length - 1];
4687
4697
  return (ne.value - ae.value) / (1e-3 * Math.max(ne.timestamp - ae.timestamp, 1));
4688
4698
  })(), h = Date.now();
4689
- let _ = 0, ee = h;
4699
+ let _ = 0, Q = h;
4690
4700
  const oe = () => {
4691
- const Q = () => {
4692
- const C = Date.now(), ae = (C - h) / 1e3, ne = Math.pow(0.05, ae), _e = ve * ne, fe = (C - ee) / 1e3;
4701
+ const ee = () => {
4702
+ const C = Date.now(), ae = (C - h) / 1e3, ne = Math.pow(0.05, ae), _e = ve * ne, fe = (C - Q) / 1e3;
4693
4703
  if (_ += _e * fe, Math.abs(_e) < 5 * J && Math.abs(_) < J) {
4694
4704
  M.current = null;
4695
4705
  return;
4696
4706
  }
4697
- Math.abs(_) >= J && (_ > 0 !== o ? R() : Y(), _ = 0), ee = C, oe();
4707
+ Math.abs(_) >= J && (_ > 0 !== o ? R() : Y(), _ = 0), Q = C, oe();
4698
4708
  };
4699
- M.current = requestAnimationFrame(Q);
4709
+ M.current = requestAnimationFrame(ee);
4700
4710
  };
4701
4711
  oe();
4702
4712
  }, N = () => {
@@ -4749,8 +4759,8 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4749
4759
  ve.preventDefault();
4750
4760
  const { clientX: _ } = h;
4751
4761
  D({ timestamp: Date.now(), value: _ });
4752
- const ee = _ - de;
4753
- ee !== 0 && v?.cursor && I(ee < 0 ? "left" : "right"), !(Math.abs(ee) < J) && (ee > 0 !== o ? R() : Y(), de = _);
4762
+ const Q = _ - de;
4763
+ Q !== 0 && v?.cursor && I(Q < 0 ? "left" : "right"), !(Math.abs(Q) < J) && (Q > 0 !== o ? R() : Y(), de = _);
4754
4764
  }, Ze = (ve) => {
4755
4765
  !de || !Array.from(ve.changedTouches).some(
4756
4766
  ({ identifier: _ }) => _ === $
@@ -4795,7 +4805,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4795
4805
  onSpinImagesLoaded: o,
4796
4806
  onError: i
4797
4807
  }) => {
4798
- const { autoLoad360: s, emitAnalyticsEvent: u, themeConfig: r } = qe(), { displayedCategoryId: v, displayedCategoryName: m } = Qe(), L = ze(() => Ut(r), [r]), f = ze(() => t.map(({ src: y }) => y), [t]), [p, a] = Ce(null), b = p ? [...p.values()].filter((y) => y).length / t.length * 100 : null, I = Z(
4808
+ const { autoLoad360: s, emitAnalyticsEvent: u, themeConfig: r } = qe(), { displayedCategoryId: v, displayedCategoryName: m } = Qe(), L = ze(() => Wt(r), [r]), f = ze(() => t.map(({ src: y }) => y), [t]), [p, a] = Ce(null), b = p ? [...p.values()].filter((y) => y).length / t.length * 100 : null, I = Z(
4799
4809
  (y) => {
4800
4810
  b === null && (a(new Map(f.map((E) => [E, !1]))), u({
4801
4811
  type: "interaction",
@@ -4888,7 +4898,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
4888
4898
  return me(() => {
4889
4899
  o === null || o === "error" || n(t, o === "spin" ? "running" : "ready");
4890
4900
  }, [t, n, o]), o === "error" ? /* @__PURE__ */ c(
4891
- en,
4901
+ tn,
4892
4902
  {
4893
4903
  className: "text-background",
4894
4904
  text: "Spin could not be loaded"
@@ -5923,8 +5933,8 @@ const Oi = ({
5923
5933
  let re = te[N].offsetLeft;
5924
5934
  const S = O.clientWidth, le = O.scrollWidth - S;
5925
5935
  if (y > 1) {
5926
- const _ = Math.ceil(y), ee = r.length + (s && !t && y % 1 !== 0 ? 1 : 0);
5927
- N >= ee - _ && (re = Math.min(re, le));
5936
+ const _ = Math.ceil(y), Q = r.length + (s && !t && y % 1 !== 0 ? 1 : 0);
5937
+ N >= Q - _ && (re = Math.min(re, le));
5928
5938
  }
5929
5939
  const $ = (_) => {
5930
5940
  O.scrollTo({
@@ -5947,7 +5957,7 @@ const Oi = ({
5947
5957
  Te();
5948
5958
  return;
5949
5959
  }
5950
- const Q = Math.min(oe / Ze, 1), C = io(Q), ae = qt(q, re, C);
5960
+ const ee = Math.min(oe / Ze, 1), C = io(ee), ae = Kt(q, re, C);
5951
5961
  $(ae), h();
5952
5962
  };
5953
5963
  T.current = requestAnimationFrame(_);
@@ -6304,7 +6314,7 @@ const Oi = ({
6304
6314
  s,
6305
6315
  i
6306
6316
  ]), u ? /* @__PURE__ */ c(
6307
- en,
6317
+ tn,
6308
6318
  {
6309
6319
  className: "aspect-square text-foreground/70",
6310
6320
  text: "Player could not be loaded"
@@ -6411,8 +6421,17 @@ const Oi = ({
6411
6421
  if (document.dispatchEvent(Te), y || R) {
6412
6422
  const Ge = "POST", Ze = new Headers();
6413
6423
  w || (Ze.append("Content-Type", "application/json"), Ze.append("Cache-Control", "no-cache"), E && Ze.append("Authorization", `Bearer ${E}`));
6414
- const ve = JSON.stringify(le);
6415
- y && await fetch(y, { method: Ge, headers: Ze, body: ve }), R && await l2({ payload: le, compositionUrl: e });
6424
+ const ve = JSON.stringify(le), h = [];
6425
+ y && h.push(fetch(y, { method: Ge, headers: Ze, body: ve })), R && h.push(
6426
+ l2({ payload: le, compositionUrl: e })
6427
+ );
6428
+ const _ = await Promise.allSettled(h);
6429
+ if (P)
6430
+ for (const Q of _)
6431
+ Q.status === "rejected" && console.error(
6432
+ "Analytics request failed:",
6433
+ Q.reason
6434
+ );
6416
6435
  }
6417
6436
  } catch (S) {
6418
6437
  if (!P) return;
@@ -6480,7 +6499,7 @@ const Oi = ({
6480
6499
  const { fullscreenElement: le } = document;
6481
6500
  U(
6482
6501
  le === re || // NOTE: For custom element, the web browser is making the whole custom element full-screen and not only the wrapper
6483
- le?.localName === Jt
6502
+ le?.localName === Qt
6484
6503
  );
6485
6504
  };
6486
6505
  return document.addEventListener("fullscreenchange", S), () => {
@@ -6561,7 +6580,7 @@ const Oi = ({
6561
6580
  }
6562
6581
  );
6563
6582
  }, u2 = ({ children: e, index: t, thumbnailSrc: n }) => {
6564
- const { registerCustomMedia: o, unregisterCustomMedia: i } = Ht();
6583
+ const { registerCustomMedia: o, unregisterCustomMedia: i } = Ut();
6565
6584
  return me(() => {
6566
6585
  if (!e)
6567
6586
  return;
@@ -6575,7 +6594,7 @@ const Oi = ({
6575
6594
  };
6576
6595
  }, [e, i, t, o, n]), null;
6577
6596
  }, d2 = (e) => Sn() ? /* @__PURE__ */ c(u2, { ...e }) : /* @__PURE__ */ c("slot", {}), f2 = ({ name: e, children: t }) => {
6578
- const { registerIconConfig: n, unregisterIconConfig: o } = Ht();
6597
+ const { registerIconConfig: n, unregisterIconConfig: o } = Ut();
6579
6598
  return me(() => {
6580
6599
  if (t)
6581
6600
  return n(e, {
@@ -6616,7 +6635,7 @@ function v2(e) {
6616
6635
  }
6617
6636
  };
6618
6637
  }
6619
- var _2 = Object.defineProperty, w2 = (e, t, n) => t in e ? _2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t, n) => w2(e, typeof t != "symbol" ? t + "" : t, n);
6638
+ var _2 = Object.defineProperty, w2 = (e, t, n) => t in e ? _2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gt = (e, t, n) => w2(e, typeof t != "symbol" ? t + "" : t, n);
6620
6639
  const y2 = {
6621
6640
  stringify: (e) => e ? "true" : "false",
6622
6641
  parse: (e) => /^[ty1-9]/i.test(e)
@@ -6667,7 +6686,7 @@ const E2 = {
6667
6686
  function: x2,
6668
6687
  method: E2,
6669
6688
  json: b2
6670
- }, Tt = Symbol.for("r2wc.render"), Gt = Symbol.for("r2wc.connected"), wt = Symbol.for("r2wc.context"), ot = Symbol.for("r2wc.props");
6689
+ }, St = Symbol.for("r2wc.render"), $t = Symbol.for("r2wc.connected"), wt = Symbol.for("r2wc.context"), ot = Symbol.for("r2wc.props");
6671
6690
  function k2(e, t, n) {
6672
6691
  var o, i, s;
6673
6692
  t.props || (t.props = e.propTypes ? Object.keys(e.propTypes) : []), t.events || (t.events = []);
@@ -6681,7 +6700,7 @@ function k2(e, t, n) {
6681
6700
  m[a] = Array.isArray(t.events) ? {} : t.events[a];
6682
6701
  class p extends HTMLElement {
6683
6702
  constructor() {
6684
- super(), Yt(this, s, !0), Yt(this, i), Yt(this, o, {}), Yt(this, "container"), t.shadow ? this.container = this.attachShadow({
6703
+ super(), Gt(this, s, !0), Gt(this, i), Gt(this, o, {}), Gt(this, "container"), t.shadow ? this.container = this.attachShadow({
6685
6704
  mode: t.shadow
6686
6705
  }) : this.container = this, this[ot].container = this.container;
6687
6706
  for (const b of u) {
@@ -6695,7 +6714,7 @@ function k2(e, t, n) {
6695
6714
  return this[ot][E];
6696
6715
  },
6697
6716
  set(w) {
6698
- this[ot][E] = w, this[Tt]();
6717
+ this[ot][E] = w, this[St]();
6699
6718
  }
6700
6719
  }), this[ot][b] = y.parse(k, I, this);
6701
6720
  }
@@ -6713,17 +6732,17 @@ function k2(e, t, n) {
6713
6732
  return Object.keys(f);
6714
6733
  }
6715
6734
  connectedCallback() {
6716
- this[Gt] = !0, this[Tt]();
6735
+ this[$t] = !0, this[St]();
6717
6736
  }
6718
6737
  disconnectedCallback() {
6719
- this[Gt] = !1, this[wt] && n.unmount(this[wt]), delete this[wt];
6738
+ this[$t] = !1, this[wt] && n.unmount(this[wt]), delete this[wt];
6720
6739
  }
6721
6740
  attributeChangedCallback(b, I, k) {
6722
6741
  const g = f[b], y = v[g], E = y ? cn[y] : null;
6723
- g in v && E != null && E.parse && k && (this[ot][g] = E.parse(k, b, this), this[Tt]());
6742
+ g in v && E != null && E.parse && k && (this[ot][g] = E.parse(k, b, this), this[St]());
6724
6743
  }
6725
- [(s = Gt, i = wt, o = ot, Tt)]() {
6726
- this[Gt] && (this[wt] ? n.update(this[wt], this[ot]) : this[wt] = n.mount(
6744
+ [(s = $t, i = wt, o = ot, St)]() {
6745
+ this[$t] && (this[wt] ? n.update(this[wt], this[ot]) : this[wt] = n.mount(
6727
6746
  this.container,
6728
6747
  e,
6729
6748
  this[ot]
@@ -6745,7 +6764,7 @@ function k2(e, t, n) {
6745
6764
  const y = g.stringify(k, b, this);
6746
6765
  this.getAttribute(b) !== y && this.setAttribute(b, y);
6747
6766
  } else
6748
- this[Tt]();
6767
+ this[St]();
6749
6768
  }
6750
6769
  });
6751
6770
  }
@@ -6818,7 +6837,7 @@ const P2 = Rn(g2, {
6818
6837
  }
6819
6838
  });
6820
6839
  function A2() {
6821
- customElements.define(Jt, P2), customElements.define(
6840
+ customElements.define(Qt, P2), customElements.define(
6822
6841
  wn,
6823
6842
  N2
6824
6843
  ), customElements.define(yn, R2);
@@ -6840,7 +6859,7 @@ export {
6840
6859
  Lo as EVENT_ITEM_CHANGE,
6841
6860
  wn as WEB_PLAYER_CUSTOM_MEDIA_WC_TAG,
6842
6861
  yn as WEB_PLAYER_ICON_WC_TAG,
6843
- Jt as WEB_PLAYER_WC_TAG,
6862
+ Qt as WEB_PLAYER_WC_TAG,
6844
6863
  Fo as checkCustomElementsDefinition,
6845
6864
  H2 as ensureCustomElementsDefinition,
6846
6865
  D2 as generateCompositionUrl,