@devix-technologies/react-gjirafa-vp-player 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as H from "react";
2
- import mt, { forwardRef as yt, useContext as et, useState as D, useEffect as xe, useRef as Me, useMemo as tt, createContext as gt, useCallback as ze } from "react";
2
+ import mt, { forwardRef as yt, useContext as et, useState as D, useEffect as xe, useRef as Be, useMemo as tt, createContext as gt, useCallback as ze } from "react";
3
3
  var he = { exports: {} }, se = {};
4
4
  /**
5
5
  * @license React
@@ -48,41 +48,41 @@ function bt() {
48
48
  function e(o) {
49
49
  if (o == null) return null;
50
50
  if (typeof o == "function")
51
- return o.$$typeof === A ? null : o.displayName || o.name || null;
51
+ return o.$$typeof === T ? null : o.displayName || o.name || null;
52
52
  if (typeof o == "string") return o;
53
53
  switch (o) {
54
- case p:
54
+ case d:
55
55
  return "Fragment";
56
- case v:
57
- return "Profiler";
58
56
  case y:
57
+ return "Profiler";
58
+ case h:
59
59
  return "StrictMode";
60
- case E:
60
+ case R:
61
61
  return "Suspense";
62
- case S:
62
+ case _:
63
63
  return "SuspenseList";
64
- case F:
64
+ case B:
65
65
  return "Activity";
66
66
  }
67
67
  if (typeof o == "object")
68
68
  switch (typeof o.tag == "number" && console.error(
69
69
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
70
70
  ), o.$$typeof) {
71
- case x:
71
+ case b:
72
72
  return "Portal";
73
- case _:
73
+ case S:
74
74
  return (o.displayName || "Context") + ".Provider";
75
- case b:
75
+ case v:
76
76
  return (o._context.displayName || "Context") + ".Consumer";
77
- case O:
78
- var g = o.render;
79
- return o = o.displayName, o || (o = g.displayName || g.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
80
- case f:
81
- return g = o.displayName || null, g !== null ? g : e(o.type) || "Memo";
82
- case T:
83
- g = o._payload, o = o._init;
77
+ case E:
78
+ var x = o.render;
79
+ return o = o.displayName, o || (o = x.displayName || x.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
80
+ case p:
81
+ return x = o.displayName || null, x !== null ? x : e(o.type) || "Memo";
82
+ case C:
83
+ x = o._payload, o = o._init;
84
84
  try {
85
- return e(o(g));
85
+ return e(o(x));
86
86
  } catch {
87
87
  }
88
88
  }
@@ -94,73 +94,73 @@ function bt() {
94
94
  function r(o) {
95
95
  try {
96
96
  t(o);
97
- var g = !1;
97
+ var x = !1;
98
98
  } catch {
99
- g = !0;
99
+ x = !0;
100
100
  }
101
- if (g) {
102
- g = console;
103
- var R = g.error, j = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
104
- return R.call(
105
- g,
101
+ if (x) {
102
+ x = console;
103
+ var A = x.error, N = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
104
+ return A.call(
105
+ x,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
- j
107
+ N
108
108
  ), t(o);
109
109
  }
110
110
  }
111
111
  function n(o) {
112
- if (o === p) return "<>";
113
- if (typeof o == "object" && o !== null && o.$$typeof === T)
112
+ if (o === d) return "<>";
113
+ if (typeof o == "object" && o !== null && o.$$typeof === C)
114
114
  return "<...>";
115
115
  try {
116
- var g = e(o);
117
- return g ? "<" + g + ">" : "<...>";
116
+ var x = e(o);
117
+ return x ? "<" + x + ">" : "<...>";
118
118
  } catch {
119
119
  return "<...>";
120
120
  }
121
121
  }
122
122
  function a() {
123
- var o = V.A;
123
+ var o = I.A;
124
124
  return o === null ? null : o.getOwner();
125
125
  }
126
126
  function i() {
127
127
  return Error("react-stack-top-frame");
128
128
  }
129
129
  function s(o) {
130
- if (J.call(o, "key")) {
131
- var g = Object.getOwnPropertyDescriptor(o, "key").get;
132
- if (g && g.isReactWarning) return !1;
130
+ if (G.call(o, "key")) {
131
+ var x = Object.getOwnPropertyDescriptor(o, "key").get;
132
+ if (x && x.isReactWarning) return !1;
133
133
  }
134
134
  return o.key !== void 0;
135
135
  }
136
- function c(o, g) {
137
- function R() {
136
+ function c(o, x) {
137
+ function A() {
138
138
  Z || (Z = !0, console.error(
139
139
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
140
- g
140
+ x
141
141
  ));
142
142
  }
143
- R.isReactWarning = !0, Object.defineProperty(o, "key", {
144
- get: R,
143
+ A.isReactWarning = !0, Object.defineProperty(o, "key", {
144
+ get: A,
145
145
  configurable: !0
146
146
  });
147
147
  }
148
- function d() {
148
+ function u() {
149
149
  var o = e(this.type);
150
150
  return Q[o] || (Q[o] = !0, console.error(
151
151
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
152
152
  )), o = this.props.ref, o !== void 0 ? o : null;
153
153
  }
154
- function m(o, g, R, j, X, U, _e, Se) {
155
- return R = U.ref, o = {
154
+ function m(o, x, A, N, K, U, _e, Se) {
155
+ return A = U.ref, o = {
156
156
  $$typeof: w,
157
157
  type: o,
158
- key: g,
158
+ key: x,
159
159
  props: U,
160
- _owner: X
161
- }, (R !== void 0 ? R : null) !== null ? Object.defineProperty(o, "ref", {
160
+ _owner: K
161
+ }, (A !== void 0 ? A : null) !== null ? Object.defineProperty(o, "ref", {
162
162
  enumerable: !1,
163
- get: d
163
+ get: u
164
164
  }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
165
165
  configurable: !1,
166
166
  enumerable: !1,
@@ -183,94 +183,94 @@ function bt() {
183
183
  value: Se
184
184
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
185
185
  }
186
- function l(o, g, R, j, X, U, _e, Se) {
187
- var L = g.children;
186
+ function l(o, x, A, N, K, U, _e, Se) {
187
+ var L = x.children;
188
188
  if (L !== void 0)
189
- if (j)
189
+ if (N)
190
190
  if (z(L)) {
191
- for (j = 0; j < L.length; j++)
192
- u(L[j]);
191
+ for (N = 0; N < L.length; N++)
192
+ f(L[N]);
193
193
  Object.freeze && Object.freeze(L);
194
194
  } else
195
195
  console.error(
196
196
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
197
197
  );
198
- else u(L);
199
- if (J.call(g, "key")) {
198
+ else f(L);
199
+ if (G.call(x, "key")) {
200
200
  L = e(o);
201
- var ee = Object.keys(g).filter(function(ht) {
201
+ var ee = Object.keys(x).filter(function(ht) {
202
202
  return ht !== "key";
203
203
  });
204
- j = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", oe[L + j] || (ee = 0 < ee.length ? "{" + ee.join(": ..., ") + ": ...}" : "{}", console.error(
204
+ N = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", oe[L + N] || (ee = 0 < ee.length ? "{" + ee.join(": ..., ") + ": ...}" : "{}", console.error(
205
205
  `A props object containing a "key" prop is being spread into JSX:
206
206
  let props = %s;
207
207
  <%s {...props} />
208
208
  React keys must be passed directly to JSX without using spread:
209
209
  let props = %s;
210
210
  <%s key={someKey} {...props} />`,
211
- j,
211
+ N,
212
212
  L,
213
213
  ee,
214
214
  L
215
- ), oe[L + j] = !0);
215
+ ), oe[L + N] = !0);
216
216
  }
217
- if (L = null, R !== void 0 && (r(R), L = "" + R), s(g) && (r(g.key), L = "" + g.key), "key" in g) {
218
- R = {};
219
- for (var Re in g)
220
- Re !== "key" && (R[Re] = g[Re]);
221
- } else R = g;
217
+ if (L = null, A !== void 0 && (r(A), L = "" + A), s(x) && (r(x.key), L = "" + x.key), "key" in x) {
218
+ A = {};
219
+ for (var Re in x)
220
+ Re !== "key" && (A[Re] = x[Re]);
221
+ } else A = x;
222
222
  return L && c(
223
- R,
223
+ A,
224
224
  typeof o == "function" ? o.displayName || o.name || "Unknown" : o
225
225
  ), m(
226
226
  o,
227
227
  L,
228
228
  U,
229
- X,
229
+ K,
230
230
  a(),
231
- R,
231
+ A,
232
232
  _e,
233
233
  Se
234
234
  );
235
235
  }
236
- function u(o) {
236
+ function f(o) {
237
237
  typeof o == "object" && o !== null && o.$$typeof === w && o._store && (o._store.validated = 1);
238
238
  }
239
- var h = mt, w = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), A = Symbol.for("react.client.reference"), V = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, z = Array.isArray, G = console.createTask ? console.createTask : function() {
239
+ var g = mt, w = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), S = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), I = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, z = Array.isArray, X = console.createTask ? console.createTask : function() {
240
240
  return null;
241
241
  };
242
- h = {
242
+ g = {
243
243
  "react-stack-bottom-frame": function(o) {
244
244
  return o();
245
245
  }
246
246
  };
247
- var Z, Q = {}, K = h["react-stack-bottom-frame"].bind(
248
- h,
247
+ var Z, Q = {}, J = g["react-stack-bottom-frame"].bind(
248
+ g,
249
249
  i
250
- )(), ie = G(n(i)), oe = {};
251
- ce.Fragment = p, ce.jsx = function(o, g, R, j, X) {
252
- var U = 1e4 > V.recentlyCreatedOwnerStacks++;
250
+ )(), ie = X(n(i)), oe = {};
251
+ ce.Fragment = d, ce.jsx = function(o, x, A, N, K) {
252
+ var U = 1e4 > I.recentlyCreatedOwnerStacks++;
253
253
  return l(
254
254
  o,
255
- g,
256
- R,
255
+ x,
256
+ A,
257
257
  !1,
258
- j,
259
- X,
260
- U ? Error("react-stack-top-frame") : K,
261
- U ? G(n(o)) : ie
258
+ N,
259
+ K,
260
+ U ? Error("react-stack-top-frame") : J,
261
+ U ? X(n(o)) : ie
262
262
  );
263
- }, ce.jsxs = function(o, g, R, j, X) {
264
- var U = 1e4 > V.recentlyCreatedOwnerStacks++;
263
+ }, ce.jsxs = function(o, x, A, N, K) {
264
+ var U = 1e4 > I.recentlyCreatedOwnerStacks++;
265
265
  return l(
266
266
  o,
267
- g,
268
- R,
267
+ x,
268
+ A,
269
269
  !0,
270
- j,
271
- X,
272
- U ? Error("react-stack-top-frame") : K,
273
- U ? G(n(o)) : ie
270
+ N,
271
+ K,
272
+ U ? Error("react-stack-top-frame") : J,
273
+ U ? X(n(o)) : ie
274
274
  );
275
275
  };
276
276
  }()), ce;
@@ -279,15 +279,15 @@ var We;
279
279
  function xt() {
280
280
  return We || (We = 1, process.env.NODE_ENV === "production" ? he.exports = vt() : he.exports = bt()), he.exports;
281
281
  }
282
- var I = xt();
283
- function Ie() {
284
- return Ie = Object.assign ? Object.assign.bind() : function(e) {
282
+ var j = xt();
283
+ function Oe() {
284
+ return Oe = Object.assign ? Object.assign.bind() : function(e) {
285
285
  for (var t = 1; t < arguments.length; t++) {
286
286
  var r = arguments[t];
287
287
  for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
288
288
  }
289
289
  return e;
290
- }, Ie.apply(null, arguments);
290
+ }, Oe.apply(null, arguments);
291
291
  }
292
292
  function wt(e) {
293
293
  if (e.sheet)
@@ -329,20 +329,20 @@ var Pt = /* @__PURE__ */ function() {
329
329
  return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
330
330
  }), this.tags = [], this.ctr = 0;
331
331
  }, e;
332
- }(), N = "-ms-", we = "-moz-", k = "-webkit-", rt = "comm", Ne = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
333
- function At(e, t) {
332
+ }(), F = "-ms-", we = "-moz-", k = "-webkit-", rt = "comm", Le = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
333
+ function Tt(e, t) {
334
334
  return $(e, 0) ^ 45 ? (((t << 2 ^ $(e, 0)) << 2 ^ $(e, 1)) << 2 ^ $(e, 2)) << 2 ^ $(e, 3) : 0;
335
335
  }
336
336
  function at(e) {
337
337
  return e.trim();
338
338
  }
339
- function Tt(e, t) {
339
+ function At(e, t) {
340
340
  return (e = t.exec(e)) ? e[0] : e;
341
341
  }
342
342
  function P(e, t, r) {
343
343
  return e.replace(t, r);
344
344
  }
345
- function $e(e, t) {
345
+ function je(e, t) {
346
346
  return e.indexOf(t);
347
347
  }
348
348
  function $(e, t) {
@@ -363,27 +363,27 @@ function me(e, t) {
363
363
  function Ct(e, t) {
364
364
  return e.map(t).join("");
365
365
  }
366
- var Pe = 1, re = 1, it = 0, B = 0, C = 0, ae = "";
366
+ var Pe = 1, re = 1, it = 0, V = 0, O = 0, ae = "";
367
367
  function Ee(e, t, r, n, a, i, s) {
368
368
  return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: re, length: s, return: "" };
369
369
  }
370
370
  function le(e, t) {
371
371
  return Rt(Ee("", null, null, "", null, null, 0), e, { length: -e.length }, t);
372
372
  }
373
- function Ot() {
374
- return C;
375
- }
376
373
  function It() {
377
- return C = B > 0 ? $(ae, --B) : 0, re--, C === 10 && (re = 1, Pe--), C;
374
+ return O;
375
+ }
376
+ function Ot() {
377
+ return O = V > 0 ? $(ae, --V) : 0, re--, O === 10 && (re = 1, Pe--), O;
378
378
  }
379
379
  function M() {
380
- return C = B < it ? $(ae, B++) : 0, re++, C === 10 && (re = 1, Pe++), C;
380
+ return O = V < it ? $(ae, V++) : 0, re++, O === 10 && (re = 1, Pe++), O;
381
381
  }
382
382
  function q() {
383
- return $(ae, B);
383
+ return $(ae, V);
384
384
  }
385
385
  function ge() {
386
- return B;
386
+ return V;
387
387
  }
388
388
  function pe(e, t) {
389
389
  return ue(ae, e, t);
@@ -427,174 +427,174 @@ function de(e) {
427
427
  return 0;
428
428
  }
429
429
  function ot(e) {
430
- return Pe = re = 1, it = W(ae = e), B = 0, [];
430
+ return Pe = re = 1, it = W(ae = e), V = 0, [];
431
431
  }
432
432
  function st(e) {
433
433
  return ae = "", e;
434
434
  }
435
435
  function ve(e) {
436
- return at(pe(B - 1, je(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
436
+ return at(pe(V - 1, $e(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
437
437
  }
438
- function $t(e) {
439
- for (; (C = q()) && C < 33; )
438
+ function jt(e) {
439
+ for (; (O = q()) && O < 33; )
440
440
  M();
441
- return de(e) > 2 || de(C) > 3 ? "" : " ";
441
+ return de(e) > 2 || de(O) > 3 ? "" : " ";
442
442
  }
443
- function jt(e, t) {
444
- for (; --t && M() && !(C < 48 || C > 102 || C > 57 && C < 65 || C > 70 && C < 97); )
443
+ function $t(e, t) {
444
+ for (; --t && M() && !(O < 48 || O > 102 || O > 57 && O < 65 || O > 70 && O < 97); )
445
445
  ;
446
446
  return pe(e, ge() + (t < 6 && q() == 32 && M() == 32));
447
447
  }
448
- function je(e) {
448
+ function $e(e) {
449
449
  for (; M(); )
450
- switch (C) {
450
+ switch (O) {
451
451
  // ] ) " '
452
452
  case e:
453
- return B;
453
+ return V;
454
454
  // " '
455
455
  case 34:
456
456
  case 39:
457
- e !== 34 && e !== 39 && je(C);
457
+ e !== 34 && e !== 39 && $e(O);
458
458
  break;
459
459
  // (
460
460
  case 40:
461
- e === 41 && je(e);
461
+ e === 41 && $e(e);
462
462
  break;
463
463
  // \
464
464
  case 92:
465
465
  M();
466
466
  break;
467
467
  }
468
- return B;
468
+ return V;
469
469
  }
470
- function Lt(e, t) {
471
- for (; M() && e + C !== 57; )
472
- if (e + C === 84 && q() === 47)
470
+ function Nt(e, t) {
471
+ for (; M() && e + O !== 57; )
472
+ if (e + O === 84 && q() === 47)
473
473
  break;
474
- return "/*" + pe(t, B - 1) + "*" + ke(e === 47 ? e : M());
474
+ return "/*" + pe(t, V - 1) + "*" + ke(e === 47 ? e : M());
475
475
  }
476
- function Nt(e) {
476
+ function Lt(e) {
477
477
  for (; !de(q()); )
478
478
  M();
479
- return pe(e, B);
479
+ return pe(e, V);
480
480
  }
481
481
  function Ft(e) {
482
482
  return st(be("", null, null, null, [""], e = ot(e), 0, [0], e));
483
483
  }
484
- function be(e, t, r, n, a, i, s, c, d) {
485
- for (var m = 0, l = 0, u = s, h = 0, w = 0, x = 0, p = 1, y = 1, v = 1, b = 0, _ = "", O = a, E = i, S = n, f = _; y; )
486
- switch (x = b, b = M()) {
484
+ function be(e, t, r, n, a, i, s, c, u) {
485
+ for (var m = 0, l = 0, f = s, g = 0, w = 0, b = 0, d = 1, h = 1, y = 1, v = 0, S = "", E = a, R = i, _ = n, p = S; h; )
486
+ switch (b = v, v = M()) {
487
487
  // (
488
488
  case 40:
489
- if (x != 108 && $(f, u - 1) == 58) {
490
- $e(f += P(ve(b), "&", "&\f"), "&\f") != -1 && (v = -1);
489
+ if (b != 108 && $(p, f - 1) == 58) {
490
+ je(p += P(ve(v), "&", "&\f"), "&\f") != -1 && (y = -1);
491
491
  break;
492
492
  }
493
493
  // " ' [
494
494
  case 34:
495
495
  case 39:
496
496
  case 91:
497
- f += ve(b);
497
+ p += ve(v);
498
498
  break;
499
499
  // \t \n \r \s
500
500
  case 9:
501
501
  case 10:
502
502
  case 13:
503
503
  case 32:
504
- f += $t(x);
504
+ p += jt(b);
505
505
  break;
506
506
  // \
507
507
  case 92:
508
- f += jt(ge() - 1, 7);
508
+ p += $t(ge() - 1, 7);
509
509
  continue;
510
510
  // /
511
511
  case 47:
512
512
  switch (q()) {
513
513
  case 42:
514
514
  case 47:
515
- me(Vt(Lt(M(), ge()), t, r), d);
515
+ me(Vt(Nt(M(), ge()), t, r), u);
516
516
  break;
517
517
  default:
518
- f += "/";
518
+ p += "/";
519
519
  }
520
520
  break;
521
521
  // {
522
- case 123 * p:
523
- c[m++] = W(f) * v;
522
+ case 123 * d:
523
+ c[m++] = W(p) * y;
524
524
  // } ; \0
525
- case 125 * p:
525
+ case 125 * d:
526
526
  case 59:
527
527
  case 0:
528
- switch (b) {
528
+ switch (v) {
529
529
  // \0 }
530
530
  case 0:
531
531
  case 125:
532
- y = 0;
532
+ h = 0;
533
533
  // ;
534
534
  case 59 + l:
535
- v == -1 && (f = P(f, /\f/g, "")), w > 0 && W(f) - u && me(w > 32 ? qe(f + ";", n, r, u - 1) : qe(P(f, " ", "") + ";", n, r, u - 2), d);
535
+ y == -1 && (p = P(p, /\f/g, "")), w > 0 && W(p) - f && me(w > 32 ? qe(p + ";", n, r, f - 1) : qe(P(p, " ", "") + ";", n, r, f - 2), u);
536
536
  break;
537
537
  // @ ;
538
538
  case 59:
539
- f += ";";
539
+ p += ";";
540
540
  // { rule/at-rule
541
541
  default:
542
- if (me(S = Ye(f, t, r, m, l, a, c, _, O = [], E = [], u), i), b === 123)
542
+ if (me(_ = Ye(p, t, r, m, l, a, c, S, E = [], R = [], f), i), v === 123)
543
543
  if (l === 0)
544
- be(f, t, S, S, O, i, u, c, E);
544
+ be(p, t, _, _, E, i, f, c, R);
545
545
  else
546
- switch (h === 99 && $(f, 3) === 110 ? 100 : h) {
546
+ switch (g === 99 && $(p, 3) === 110 ? 100 : g) {
547
547
  // d l m s
548
548
  case 100:
549
549
  case 108:
550
550
  case 109:
551
551
  case 115:
552
- be(e, S, S, n && me(Ye(e, S, S, 0, 0, a, c, _, a, O = [], u), E), a, E, u, c, n ? O : E);
552
+ be(e, _, _, n && me(Ye(e, _, _, 0, 0, a, c, S, a, E = [], f), R), a, R, f, c, n ? E : R);
553
553
  break;
554
554
  default:
555
- be(f, S, S, S, [""], E, 0, c, E);
555
+ be(p, _, _, _, [""], R, 0, c, R);
556
556
  }
557
557
  }
558
- m = l = w = 0, p = v = 1, _ = f = "", u = s;
558
+ m = l = w = 0, d = y = 1, S = p = "", f = s;
559
559
  break;
560
560
  // :
561
561
  case 58:
562
- u = 1 + W(f), w = x;
562
+ f = 1 + W(p), w = b;
563
563
  default:
564
- if (p < 1) {
565
- if (b == 123)
566
- --p;
567
- else if (b == 125 && p++ == 0 && It() == 125)
564
+ if (d < 1) {
565
+ if (v == 123)
566
+ --d;
567
+ else if (v == 125 && d++ == 0 && Ot() == 125)
568
568
  continue;
569
569
  }
570
- switch (f += ke(b), b * p) {
570
+ switch (p += ke(v), v * d) {
571
571
  // &
572
572
  case 38:
573
- v = l > 0 ? 1 : (f += "\f", -1);
573
+ y = l > 0 ? 1 : (p += "\f", -1);
574
574
  break;
575
575
  // ,
576
576
  case 44:
577
- c[m++] = (W(f) - 1) * v, v = 1;
577
+ c[m++] = (W(p) - 1) * y, y = 1;
578
578
  break;
579
579
  // @
580
580
  case 64:
581
- q() === 45 && (f += ve(M())), h = q(), l = u = W(_ = f += Nt(ge())), b++;
581
+ q() === 45 && (p += ve(M())), g = q(), l = f = W(S = p += Lt(ge())), v++;
582
582
  break;
583
583
  // -
584
584
  case 45:
585
- x === 45 && W(f) == 2 && (p = 0);
585
+ b === 45 && W(p) == 2 && (d = 0);
586
586
  }
587
587
  }
588
588
  return i;
589
589
  }
590
- function Ye(e, t, r, n, a, i, s, c, d, m, l) {
591
- for (var u = a - 1, h = a === 0 ? i : [""], w = Ve(h), x = 0, p = 0, y = 0; x < n; ++x)
592
- for (var v = 0, b = ue(e, u + 1, u = St(p = s[x])), _ = e; v < w; ++v)
593
- (_ = at(p > 0 ? h[v] + " " + b : P(b, /&\f/g, h[v]))) && (d[y++] = _);
594
- return Ee(e, t, r, a === 0 ? Ne : c, d, m, l);
590
+ function Ye(e, t, r, n, a, i, s, c, u, m, l) {
591
+ for (var f = a - 1, g = a === 0 ? i : [""], w = Ve(g), b = 0, d = 0, h = 0; b < n; ++b)
592
+ for (var y = 0, v = ue(e, f + 1, f = St(d = s[b])), S = e; y < w; ++y)
593
+ (S = at(d > 0 ? g[y] + " " + v : P(v, /&\f/g, g[y]))) && (u[h++] = S);
594
+ return Ee(e, t, r, a === 0 ? Le : c, u, m, l);
595
595
  }
596
596
  function Vt(e, t, r) {
597
- return Ee(e, t, r, rt, ke(Ot()), ue(e, 2, -2), 0);
597
+ return Ee(e, t, r, rt, ke(It()), ue(e, 2, -2), 0);
598
598
  }
599
599
  function qe(e, t, r, n) {
600
600
  return Ee(e, t, r, Fe, ue(e, 0, n), ue(e, n + 1, -1), n);
@@ -604,7 +604,7 @@ function te(e, t) {
604
604
  r += t(e[a], a, e, t) || "";
605
605
  return r;
606
606
  }
607
- function Bt(e, t, r, n) {
607
+ function Mt(e, t, r, n) {
608
608
  switch (e.type) {
609
609
  case _t:
610
610
  if (e.children.length) break;
@@ -615,12 +615,12 @@ function Bt(e, t, r, n) {
615
615
  return "";
616
616
  case nt:
617
617
  return e.return = e.value + "{" + te(e.children, n) + "}";
618
- case Ne:
618
+ case Le:
619
619
  e.value = e.props.join(",");
620
620
  }
621
621
  return W(r = te(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
622
622
  }
623
- function Mt(e) {
623
+ function Bt(e) {
624
624
  var t = Ve(e);
625
625
  return function(r, n, a, i) {
626
626
  for (var s = "", c = 0; c < t; c++)
@@ -642,13 +642,13 @@ function ct(e) {
642
642
  var Dt = function(t, r, n) {
643
643
  for (var a = 0, i = 0; a = i, i = q(), a === 38 && i === 12 && (r[n] = 1), !de(i); )
644
644
  M();
645
- return pe(t, B);
645
+ return pe(t, V);
646
646
  }, Ut = function(t, r) {
647
647
  var n = -1, a = 44;
648
648
  do
649
649
  switch (de(a)) {
650
650
  case 0:
651
- a === 38 && q() === 12 && (r[n] = 1), t[n] += Dt(B - 1, r, n);
651
+ a === 38 && q() === 12 && (r[n] = 1), t[n] += Dt(V - 1, r, n);
652
652
  break;
653
653
  case 2:
654
654
  t[n] += ve(a);
@@ -674,9 +674,9 @@ var Dt = function(t, r, n) {
674
674
  if (n = n.parent, !n) return;
675
675
  if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !He.get(n)) && !a) {
676
676
  He.set(t, !0);
677
- for (var i = [], s = Wt(r, i), c = n.props, d = 0, m = 0; d < s.length; d++)
677
+ for (var i = [], s = Wt(r, i), c = n.props, u = 0, m = 0; u < s.length; u++)
678
678
  for (var l = 0; l < c.length; l++, m++)
679
- t.props[m] = i[d] ? s[d].replace(/&\f/g, c[l]) : c[l] + " " + s[d];
679
+ t.props[m] = i[u] ? s[u].replace(/&\f/g, c[l]) : c[l] + " " + s[u];
680
680
  }
681
681
  }
682
682
  }, qt = function(t) {
@@ -688,7 +688,7 @@ var Dt = function(t, r, n) {
688
688
  }
689
689
  };
690
690
  function lt(e, t) {
691
- switch (At(e, t)) {
691
+ switch (Tt(e, t)) {
692
692
  // color-adjust
693
693
  case 5103:
694
694
  return k + "print-" + e + e;
@@ -728,32 +728,32 @@ function lt(e, t) {
728
728
  case 4810:
729
729
  case 6968:
730
730
  case 2756:
731
- return k + e + we + e + N + e + e;
731
+ return k + e + we + e + F + e + e;
732
732
  // flex, flex-direction
733
733
  case 6828:
734
734
  case 4268:
735
- return k + e + N + e + e;
735
+ return k + e + F + e + e;
736
736
  // order
737
737
  case 6165:
738
- return k + e + N + "flex-" + e + e;
738
+ return k + e + F + "flex-" + e + e;
739
739
  // align-items
740
740
  case 5187:
741
- return k + e + P(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + N + "flex-$1$2") + e;
741
+ return k + e + P(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + F + "flex-$1$2") + e;
742
742
  // align-self
743
743
  case 5443:
744
- return k + e + N + "flex-item-" + P(e, /flex-|-self/, "") + e;
744
+ return k + e + F + "flex-item-" + P(e, /flex-|-self/, "") + e;
745
745
  // align-content
746
746
  case 4675:
747
- return k + e + N + "flex-line-pack" + P(e, /align-content|flex-|-self/, "") + e;
747
+ return k + e + F + "flex-line-pack" + P(e, /align-content|flex-|-self/, "") + e;
748
748
  // flex-shrink
749
749
  case 5548:
750
- return k + e + N + P(e, "shrink", "negative") + e;
750
+ return k + e + F + P(e, "shrink", "negative") + e;
751
751
  // flex-basis
752
752
  case 5292:
753
- return k + e + N + P(e, "basis", "preferred-size") + e;
753
+ return k + e + F + P(e, "basis", "preferred-size") + e;
754
754
  // flex-grow
755
755
  case 6060:
756
- return k + "box-" + P(e, "-grow", "") + k + e + N + P(e, "grow", "positive") + e;
756
+ return k + "box-" + P(e, "-grow", "") + k + e + F + P(e, "grow", "positive") + e;
757
757
  // transition
758
758
  case 4554:
759
759
  return k + P(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
@@ -766,7 +766,7 @@ function lt(e, t) {
766
766
  return P(e, /(image-set\([^]*)/, k + "$1$`$1");
767
767
  // justify-content
768
768
  case 4968:
769
- return P(P(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + N + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
769
+ return P(P(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + F + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
770
770
  // (margin|padding)-inline-(start|end)
771
771
  case 4095:
772
772
  case 3583:
@@ -795,7 +795,7 @@ function lt(e, t) {
795
795
  return P(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + we + ($(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
796
796
  // (s)tretch
797
797
  case 115:
798
- return ~$e(e, "stretch") ? lt(P(e, "stretch", "fill-available"), t) + e : e;
798
+ return ~je(e, "stretch") ? lt(P(e, "stretch", "fill-available"), t) + e : e;
799
799
  }
800
800
  break;
801
801
  // position: sticky
@@ -803,13 +803,13 @@ function lt(e, t) {
803
803
  if ($(e, t + 1) !== 115) break;
804
804
  // display: (flex|inline-flex)
805
805
  case 6444:
806
- switch ($(e, W(e) - 3 - (~$e(e, "!important") && 10))) {
806
+ switch ($(e, W(e) - 3 - (~je(e, "!important") && 10))) {
807
807
  // stic(k)y
808
808
  case 107:
809
809
  return P(e, ":", ":" + k) + e;
810
810
  // (inline-)?fl(e)x
811
811
  case 101:
812
- return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + ($(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + N + "$2box$3") + e;
812
+ return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + ($(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + F + "$2box$3") + e;
813
813
  }
814
814
  break;
815
815
  // writing-mode
@@ -817,15 +817,15 @@ function lt(e, t) {
817
817
  switch ($(e, t + 11)) {
818
818
  // vertical-l(r)
819
819
  case 114:
820
- return k + e + N + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
820
+ return k + e + F + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
821
821
  // vertical-r(l)
822
822
  case 108:
823
- return k + e + N + P(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
823
+ return k + e + F + P(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
824
824
  // horizontal(-)tb
825
825
  case 45:
826
- return k + e + N + P(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
826
+ return k + e + F + P(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
827
827
  }
828
- return k + e + N + e + e;
828
+ return k + e + F + e + e;
829
829
  }
830
830
  return e;
831
831
  }
@@ -838,9 +838,9 @@ var Ht = function(t, r, n, a) {
838
838
  return te([le(t, {
839
839
  value: P(t.value, "@", "@" + k)
840
840
  })], a);
841
- case Ne:
841
+ case Le:
842
842
  if (t.length) return Ct(t.props, function(i) {
843
- switch (Tt(i, /(::plac\w+|:read-\w+)/)) {
843
+ switch (At(i, /(::plac\w+|:read-\w+)/)) {
844
844
  // :read-(only|write)
845
845
  case ":read-only":
846
846
  case ":read-write":
@@ -854,7 +854,7 @@ var Ht = function(t, r, n, a) {
854
854
  }), le(t, {
855
855
  props: [P(i, /:(plac\w+)/, ":" + we + "$1")]
856
856
  }), le(t, {
857
- props: [P(i, /:(plac\w+)/, N + "input-$1")]
857
+ props: [P(i, /:(plac\w+)/, F + "input-$1")]
858
858
  })], a);
859
859
  }
860
860
  return "";
@@ -864,9 +864,9 @@ var Ht = function(t, r, n, a) {
864
864
  var r = t.key;
865
865
  if (r === "css") {
866
866
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
867
- Array.prototype.forEach.call(n, function(p) {
868
- var y = p.getAttribute("data-emotion");
869
- y.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
867
+ Array.prototype.forEach.call(n, function(d) {
868
+ var h = d.getAttribute("data-emotion");
869
+ h.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
870
870
  });
871
871
  }
872
872
  var a = t.stylisPlugins || Gt, i = {}, s, c = [];
@@ -874,24 +874,24 @@ var Ht = function(t, r, n, a) {
874
874
  // this means we will ignore elements which don't have a space in them which
875
875
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
876
876
  document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
877
- function(p) {
878
- for (var y = p.getAttribute("data-emotion").split(" "), v = 1; v < y.length; v++)
879
- i[y[v]] = !0;
880
- c.push(p);
877
+ function(d) {
878
+ for (var h = d.getAttribute("data-emotion").split(" "), y = 1; y < h.length; y++)
879
+ i[h[y]] = !0;
880
+ c.push(d);
881
881
  }
882
882
  );
883
- var d, m = [Yt, qt];
883
+ var u, m = [Yt, qt];
884
884
  {
885
- var l, u = [Bt, zt(function(p) {
886
- l.insert(p);
887
- })], h = Mt(m.concat(a, u)), w = function(y) {
888
- return te(Ft(y), h);
885
+ var l, f = [Mt, zt(function(d) {
886
+ l.insert(d);
887
+ })], g = Bt(m.concat(a, f)), w = function(h) {
888
+ return te(Ft(h), g);
889
889
  };
890
- d = function(y, v, b, _) {
891
- l = b, w(y ? y + "{" + v.styles + "}" : v.styles), _ && (x.inserted[v.name] = !0);
890
+ u = function(h, y, v, S) {
891
+ l = v, w(h ? h + "{" + y.styles + "}" : y.styles), S && (b.inserted[y.name] = !0);
892
892
  };
893
893
  }
894
- var x = {
894
+ var b = {
895
895
  key: r,
896
896
  sheet: new Pt({
897
897
  key: r,
@@ -904,9 +904,9 @@ var Ht = function(t, r, n, a) {
904
904
  nonce: t.nonce,
905
905
  inserted: i,
906
906
  registered: {},
907
- insert: d
907
+ insert: u
908
908
  };
909
- return x.sheet.hydrate(c), x;
909
+ return b.sheet.hydrate(c), b;
910
910
  }, Kt = !0;
911
911
  function Jt(e, t, r) {
912
912
  var n = "";
@@ -1008,7 +1008,7 @@ var er = {
1008
1008
  return t.charCodeAt(1) === 45;
1009
1009
  }, Ge = function(t) {
1010
1010
  return t != null && typeof t != "boolean";
1011
- }, Ae = /* @__PURE__ */ ct(function(e) {
1011
+ }, Te = /* @__PURE__ */ ct(function(e) {
1012
1012
  return dt(e) ? e : e.replace(tr, "-$&").toLowerCase();
1013
1013
  }), Xe = function(t, r) {
1014
1014
  switch (t) {
@@ -1059,8 +1059,8 @@ function fe(e, t, r) {
1059
1059
  }
1060
1060
  case "function": {
1061
1061
  if (e !== void 0) {
1062
- var d = Y, m = r(e);
1063
- return Y = d, fe(e, t, m);
1062
+ var u = Y, m = r(e);
1063
+ return Y = u, fe(e, t, m);
1064
1064
  }
1065
1065
  break;
1066
1066
  }
@@ -1068,8 +1068,8 @@ function fe(e, t, r) {
1068
1068
  var l = r;
1069
1069
  if (t == null)
1070
1070
  return l;
1071
- var u = t[l];
1072
- return u !== void 0 ? u : l;
1071
+ var f = t[l];
1072
+ return f !== void 0 ? f : l;
1073
1073
  }
1074
1074
  function nr(e, t, r) {
1075
1075
  var n = "";
@@ -1081,16 +1081,16 @@ function nr(e, t, r) {
1081
1081
  var s = r[i];
1082
1082
  if (typeof s != "object") {
1083
1083
  var c = s;
1084
- t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : Ge(c) && (n += Ae(i) + ":" + Xe(i, c) + ";");
1084
+ t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : Ge(c) && (n += Te(i) + ":" + Xe(i, c) + ";");
1085
1085
  } else if (Array.isArray(s) && typeof s[0] == "string" && (t == null || t[s[0]] === void 0))
1086
- for (var d = 0; d < s.length; d++)
1087
- Ge(s[d]) && (n += Ae(i) + ":" + Xe(i, s[d]) + ";");
1086
+ for (var u = 0; u < s.length; u++)
1087
+ Ge(s[u]) && (n += Te(i) + ":" + Xe(i, s[u]) + ";");
1088
1088
  else {
1089
1089
  var m = fe(e, t, s);
1090
1090
  switch (i) {
1091
1091
  case "animation":
1092
1092
  case "animationName": {
1093
- n += Ae(i) + ":" + m + ";";
1093
+ n += Te(i) + ":" + m + ";";
1094
1094
  break;
1095
1095
  }
1096
1096
  default:
@@ -1115,15 +1115,15 @@ function ar(e, t, r) {
1115
1115
  }
1116
1116
  for (var c = 1; c < e.length; c++)
1117
1117
  if (a += fe(r, t, e[c]), n) {
1118
- var d = i;
1119
- a += d[c];
1118
+ var u = i;
1119
+ a += u[c];
1120
1120
  }
1121
1121
  Ke.lastIndex = 0;
1122
1122
  for (var m = "", l; (l = Ke.exec(a)) !== null; )
1123
1123
  m += "-" + l[1];
1124
- var u = Qt(a) + m;
1124
+ var f = Qt(a) + m;
1125
1125
  return {
1126
- name: u,
1126
+ name: f,
1127
1127
  styles: a,
1128
1128
  next: Y
1129
1129
  };
@@ -1176,47 +1176,47 @@ var cr = function(t) {
1176
1176
  }, mr = function e(t, r) {
1177
1177
  var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i, s;
1178
1178
  r !== void 0 && (i = r.label, s = r.target);
1179
- var c = Ze(t, r, n), d = c || Je(a), m = !d("as");
1179
+ var c = Ze(t, r, n), u = c || Je(a), m = !u("as");
1180
1180
  return function() {
1181
- var l = arguments, u = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
1182
- if (i !== void 0 && u.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
1183
- u.push.apply(u, l);
1181
+ var l = arguments, f = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
1182
+ if (i !== void 0 && f.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
1183
+ f.push.apply(f, l);
1184
1184
  else {
1185
- var h = l[0];
1186
- u.push(h[0]);
1187
- for (var w = l.length, x = 1; x < w; x++)
1188
- u.push(l[x], h[x]);
1185
+ var g = l[0];
1186
+ f.push(g[0]);
1187
+ for (var w = l.length, b = 1; b < w; b++)
1188
+ f.push(l[b], g[b]);
1189
1189
  }
1190
- var p = cr(function(y, v, b) {
1191
- var _ = m && y.as || a, O = "", E = [], S = y;
1192
- if (y.theme == null) {
1193
- S = {};
1194
- for (var f in y)
1195
- S[f] = y[f];
1196
- S.theme = H.useContext(lr);
1190
+ var d = cr(function(h, y, v) {
1191
+ var S = m && h.as || a, E = "", R = [], _ = h;
1192
+ if (h.theme == null) {
1193
+ _ = {};
1194
+ for (var p in h)
1195
+ _[p] = h[p];
1196
+ _.theme = H.useContext(lr);
1197
1197
  }
1198
- typeof y.className == "string" ? O = Jt(v.registered, E, y.className) : y.className != null && (O = y.className + " ");
1199
- var T = ar(u.concat(E), v.registered, S);
1200
- O += v.key + "-" + T.name, s !== void 0 && (O += " " + s);
1201
- var F = m && c === void 0 ? Je(_) : d, A = {};
1202
- for (var V in y)
1203
- m && V === "as" || F(V) && (A[V] = y[V]);
1204
- return A.className = O, b && (A.ref = b), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement(hr, {
1205
- cache: v,
1206
- serialized: T,
1207
- isStringTag: typeof _ == "string"
1208
- }), /* @__PURE__ */ H.createElement(_, A));
1198
+ typeof h.className == "string" ? E = Jt(y.registered, R, h.className) : h.className != null && (E = h.className + " ");
1199
+ var C = ar(f.concat(R), y.registered, _);
1200
+ E += y.key + "-" + C.name, s !== void 0 && (E += " " + s);
1201
+ var B = m && c === void 0 ? Je(S) : u, T = {};
1202
+ for (var I in h)
1203
+ m && I === "as" || B(I) && (T[I] = h[I]);
1204
+ return T.className = E, v && (T.ref = v), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement(hr, {
1205
+ cache: y,
1206
+ serialized: C,
1207
+ isStringTag: typeof S == "string"
1208
+ }), /* @__PURE__ */ H.createElement(S, T));
1209
1209
  });
1210
- return p.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = u, p.__emotion_forwardProp = c, Object.defineProperty(p, "toString", {
1210
+ return d.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", d.defaultProps = t.defaultProps, d.__emotion_real = d, d.__emotion_base = a, d.__emotion_styles = f, d.__emotion_forwardProp = c, Object.defineProperty(d, "toString", {
1211
1211
  value: function() {
1212
1212
  return "." + s;
1213
1213
  }
1214
- }), p.withComponent = function(y, v) {
1215
- var b = e(y, Ie({}, r, v, {
1216
- shouldForwardProp: Ze(p, v, !0)
1214
+ }), d.withComponent = function(h, y) {
1215
+ var v = e(h, Oe({}, r, y, {
1216
+ shouldForwardProp: Ze(d, y, !0)
1217
1217
  }));
1218
- return b.apply(void 0, u);
1219
- }, p;
1218
+ return v.apply(void 0, f);
1219
+ }, d;
1220
1220
  };
1221
1221
  }, yr = [
1222
1222
  "a",
@@ -1399,7 +1399,7 @@ const gr = ne.div`
1399
1399
  return "";
1400
1400
  }
1401
1401
  }}
1402
- `, Le = ({ type: e, children: t, className: r, icon: n, action: a }) => I.jsxs(gr, { type: e, className: r, children: [n && I.jsx("span", { children: n }), I.jsx("span", { children: t }), a && I.jsx("span", { children: a })] }), Qe = ne.div`
1402
+ `, Ne = ({ type: e, children: t, className: r, icon: n, action: a }) => j.jsxs(gr, { type: e, className: r, children: [n && j.jsx("span", { children: n }), j.jsx("span", { children: t }), a && j.jsx("span", { children: a })] }), Qe = ne.div`
1403
1403
  width: ${({ width: e }) => e || "100%"};
1404
1404
  height: ${({ height: e }) => e || "100%"};
1405
1405
  border-radius: 8px;
@@ -1433,98 +1433,109 @@ const gr = ne.div`
1433
1433
  @media (min-width: 768px) {
1434
1434
  width: min(70vw, 960px); /* Responsive width for desktop, capped at 960px */
1435
1435
  }
1436
- `, xr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, wr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, kr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Be = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Te = /* @__PURE__ */ new Map(), Pr = (e, t) => {
1436
+ `, xr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, wr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, kr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Me = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Ae = /* @__PURE__ */ new Map(), Pr = (e, t) => {
1437
1437
  const [r, n] = D(!1), [a, i] = D(null);
1438
1438
  return xe(() => {
1439
- let s = null, c, d = 0;
1439
+ let s = null, c, u = 0;
1440
1440
  const m = 3;
1441
1441
  let l;
1442
1442
  try {
1443
1443
  l = t || kr(e || "latest");
1444
1444
  } catch (w) {
1445
- const x = w instanceof Error ? w.message : String(w);
1446
- i(`Failed to resolve script URL: ${x}`), n(!1);
1445
+ const b = w instanceof Error ? w.message : String(w);
1446
+ i(`Failed to resolve script URL: ${b}`), n(!1);
1447
1447
  return;
1448
1448
  }
1449
- if (Te.get(l)) {
1449
+ if (Ae.get(l)) {
1450
1450
  n(!0), i(null);
1451
1451
  return;
1452
1452
  }
1453
1453
  if (document.querySelector(`script[src="${l}"]`)) {
1454
- Te.set(l, !0), n(!0), i(null);
1454
+ Ae.set(l, !0), n(!0), i(null);
1455
1455
  return;
1456
1456
  }
1457
- const h = () => {
1457
+ const g = () => {
1458
1458
  s = document.createElement("script"), s.src = l, s.async = !0, c = window.setTimeout(() => {
1459
1459
  n(!1), i(`Loading script timed out: ${l}`);
1460
1460
  }, 1e4), s.onload = () => {
1461
- clearTimeout(c), Te.set(l, !0), n(!0), i(null);
1461
+ clearTimeout(c), Ae.set(l, !0), n(!0), i(null);
1462
1462
  }, s.onerror = () => {
1463
- clearTimeout(c), d++, d < m ? setTimeout(h, 1e3 * d) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
1463
+ clearTimeout(c), u++, u < m ? setTimeout(g, 1e3 * u) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
1464
1464
  }, document.body.appendChild(s);
1465
1465
  };
1466
- return h(), () => {
1466
+ return g(), () => {
1467
1467
  clearTimeout(c), s && document.body.contains(s) && document.body.removeChild(s);
1468
1468
  };
1469
1469
  }, [e, t]), { isLoaded: r, error: a };
1470
- }, Er = {}, ye = /* @__PURE__ */ new Map(), _r = 15e3, Ce = 5, Sr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
1471
- const [i, s] = D(null), [c, d] = D(null), [m, l] = D(!1), [u, h] = D(null), w = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1470
+ }, Er = {}, ye = /* @__PURE__ */ new Map(), _r = 3e4, Ce = 5, Sr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
1471
+ const [i, s] = D(null), [c, u] = D(null), [m, l] = D(!1), [f, g] = D(null), w = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1472
1472
  return xe(() => {
1473
- const x = t ? `video:${t}` : r ? `playlist:${r}` : null;
1473
+ const b = t ? `video:${t}` : r ? `playlist:${r}` : null;
1474
1474
  if (!e || n || !t && !r) {
1475
- s(n || null), d(null), l(!1), h(null);
1475
+ s(n || null), u(null), l(!1), g(null);
1476
1476
  return;
1477
1477
  }
1478
1478
  if (!w) {
1479
- l(!1), h("No API key provided");
1479
+ l(!1), g("No API key provided");
1480
1480
  return;
1481
1481
  }
1482
- if (x && ye.has(x)) {
1483
- const b = ye.get(x);
1484
- s(b.url), d(b.playlist), l(!1), h(null);
1482
+ if (b && ye.has(b)) {
1483
+ const E = ye.get(b);
1484
+ s(E.url), u(E.playlist), l(!1), g(null);
1485
1485
  return;
1486
1486
  }
1487
- const p = new AbortController(), y = p.signal;
1488
- return (async () => {
1489
- var _, O;
1490
- l(!0), h(null);
1491
- let b = 0;
1492
- for (; b < Ce; )
1487
+ let d = !0;
1488
+ const h = new AbortController(), y = h.signal, S = setTimeout(async () => {
1489
+ var R, _;
1490
+ if (!d)
1491
+ return;
1492
+ l(!0), g(null);
1493
+ let E = 0;
1494
+ for (; E < Ce && d; )
1493
1495
  try {
1494
- const E = t && !r ? xr(e, t) : wr(e, r), S = setTimeout(() => p.abort(), _r), f = await fetch(E, {
1496
+ const p = t && !r ? xr(e, t) : wr(e, r), C = setTimeout(() => h.abort(), _r), B = await fetch(p, {
1495
1497
  method: "GET",
1496
- headers: { "api-key": w, Accept: "application/json" },
1498
+ headers: {
1499
+ "api-key": w,
1500
+ Accept: "application/json",
1501
+ "Cache-Control": "no-cache"
1502
+ // Prevent caching issues
1503
+ },
1497
1504
  signal: y
1498
1505
  });
1499
- if (clearTimeout(S), !f.ok)
1500
- throw new Error(`Fetch failed with status ${f.status}`);
1501
- const T = await f.json();
1506
+ if (clearTimeout(C), !B.ok)
1507
+ throw new Error(`Fetch failed with status ${B.status}`);
1508
+ const T = await B.json();
1509
+ if (!d)
1510
+ return;
1502
1511
  if (t && !r) {
1503
- const F = (O = (_ = T.result) == null ? void 0 : _.items) == null ? void 0 : O.find((A) => A.mediaId === t);
1504
- if (!(F != null && F.playbackUrl))
1512
+ const I = (_ = (R = T.result) == null ? void 0 : R.items) == null ? void 0 : _.find((G) => G.mediaId === t);
1513
+ if (!(I != null && I.playbackUrl))
1505
1514
  throw new Error("Invalid video data");
1506
- s(F.playbackUrl), d(null), x && ye.set(x, { url: F.playbackUrl, playlist: null });
1515
+ s(I.playbackUrl), u(null), b && ye.set(b, { url: I.playbackUrl, playlist: null });
1507
1516
  } else {
1508
1517
  if (!Array.isArray(T.result))
1509
1518
  throw new Error("Invalid playlist format");
1510
- d(T.result), s(null), x && ye.set(x, { url: null, playlist: T.result });
1519
+ u(T.result), s(null), b && ye.set(b, { url: null, playlist: T.result });
1511
1520
  }
1512
1521
  break;
1513
- } catch (E) {
1522
+ } catch (p) {
1514
1523
  if (y.aborted) {
1515
- h("Request timed out");
1524
+ d && g("Request timed out");
1516
1525
  break;
1517
1526
  }
1518
- if (b++, b >= Ce) {
1519
- const S = E instanceof Error ? E.message : String(E);
1520
- h(`Failed after ${Ce} attempts: ${S}`);
1521
- }
1527
+ if (E++, E >= Ce) {
1528
+ const C = p instanceof Error ? p.message : String(p);
1529
+ d && g(`Failed after ${Ce} attempts: ${C}`);
1530
+ } else
1531
+ await new Promise((C) => setTimeout(C, 2e3));
1522
1532
  }
1523
- l(!1);
1524
- })(), () => {
1525
- p.abort();
1533
+ d && l(!1);
1534
+ }, 100);
1535
+ return () => {
1536
+ d = !1, clearTimeout(S), h.abort();
1526
1537
  };
1527
- }, [w, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: u };
1538
+ }, [w, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: f };
1528
1539
  }, Rr = {
1529
1540
  projectId: "vp-player-projectId",
1530
1541
  video: {
@@ -1533,6 +1544,7 @@ const gr = ne.div`
1533
1544
  playlist: {
1534
1545
  state: !0,
1535
1546
  // Enable playlist by default
1547
+ // If we have a playlist, we start with the first video, if any issue check value, should
1536
1548
  playlistVideoIndex: 0,
1537
1549
  // Start with the first video
1538
1550
  videos: []
@@ -1577,195 +1589,236 @@ const gr = ne.div`
1577
1589
  // Enabled by default
1578
1590
  }
1579
1591
  }
1580
- }, Ar = ({ videoUrl: e, fetchedPlaybackUrl: t, fetchedPlaylist: r, projectId: n, config: a = {} }) => {
1581
- var m, l, u;
1582
- const i = { ...Rr, ...a }, s = { ...i.config, ...a.config };
1592
+ }, Tr = ({
1593
+ videoUrl: e,
1594
+ fetchedPlaybackUrl: t,
1595
+ // fetchedPlaylist,
1596
+ fetchedPlaylist: r,
1597
+ projectId: n,
1598
+ config: a = {},
1599
+ isVerticalPlayer: i
1600
+ // Distinguish between VP Player types
1601
+ }) => {
1602
+ var l, f, g, w, b, d, h, y;
1603
+ const s = { ...Rr, ...a }, c = { ...s.config, ...a.config };
1583
1604
  if (e)
1584
1605
  return {
1585
- ...i,
1606
+ ...s,
1586
1607
  video: {
1587
- ...i.video,
1608
+ ...s.video,
1588
1609
  file: e,
1589
1610
  playlist: void 0
1590
1611
  },
1591
- config: s
1612
+ config: c
1592
1613
  };
1593
1614
  if (t)
1594
1615
  return {
1595
- ...i,
1616
+ ...s,
1596
1617
  video: {
1597
- ...i.video,
1618
+ ...s.video,
1598
1619
  file: t,
1599
1620
  playlist: void 0
1600
1621
  },
1601
- config: s
1622
+ config: c
1602
1623
  };
1603
- if (r && r.length > 0)
1604
- return {
1605
- ...i,
1606
- projectId: n || "vp-player-projectId",
1607
- video: {
1608
- ...i.video,
1609
- file: ((m = r[0]) == null ? void 0 : m.hlsUrl) || "",
1610
- playlist: {
1611
- state: !0,
1612
- playlistVideoIndex: 0,
1613
- videos: r.map((h, w) => ({
1614
- videoId: String(w),
1615
- title: h.title,
1616
- file: h.hlsUrl,
1617
- thumbnailUrl: h.thumbnailUrl,
1618
- duration: h.duration
1619
- }))
1620
- }
1621
- },
1622
- config: s
1623
- };
1624
- const c = ((l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) || i.video.playlist, d = (u = a == null ? void 0 : a.video) == null ? void 0 : u.file;
1625
- if (d)
1624
+ if (r && r.length > 0) {
1625
+ const v = ((f = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : f.playlistVideoIndex) ?? ((g = a == null ? void 0 : a.config) == null ? void 0 : g.playlistVideoIndex) ?? 0;
1626
+ if (i) {
1627
+ const S = Math.min(Number(v), r.length - 1), E = ((w = r[S]) == null ? void 0 : w.hlsUrl) ?? void 0;
1628
+ return {
1629
+ ...s,
1630
+ projectId: n || "vp-player-projectId",
1631
+ video: {
1632
+ ...s.video,
1633
+ // Set the correct video file for the desired index
1634
+ file: E,
1635
+ playlist: {
1636
+ state: !0,
1637
+ playlistId: "",
1638
+ // Will be set by API
1639
+ // IMPORTANT: Based on docs, here should be an int, but we use string, cause it works
1640
+ // TODO: this should require some added work in the future
1641
+ playlistVideoIndex: String(v),
1642
+ videos: r.map((_, p) => ({
1643
+ videoId: String(p),
1644
+ title: _.title,
1645
+ file: _.hlsUrl,
1646
+ thumbnailUrl: _.thumbnailUrl,
1647
+ duration: _.duration
1648
+ }))
1649
+ }
1650
+ },
1651
+ config: c
1652
+ };
1653
+ } else
1654
+ return {
1655
+ ...s,
1656
+ projectId: n || "vp-player-projectId",
1657
+ video: {
1658
+ ...s.video,
1659
+ file: ((b = r[Number(v)]) == null ? void 0 : b.hlsUrl) || ((d = r[0]) == null ? void 0 : d.hlsUrl) || "",
1660
+ playlist: {
1661
+ state: !0,
1662
+ playlistVideoIndex: String(v),
1663
+ videos: r.map((E, R) => ({
1664
+ videoId: String(R),
1665
+ title: E.title,
1666
+ file: E.hlsUrl,
1667
+ thumbnailUrl: E.thumbnailUrl,
1668
+ duration: E.duration
1669
+ }))
1670
+ }
1671
+ },
1672
+ config: c
1673
+ };
1674
+ }
1675
+ const u = ((h = a == null ? void 0 : a.video) == null ? void 0 : h.playlist) || s.video.playlist, m = (y = a == null ? void 0 : a.video) == null ? void 0 : y.file;
1676
+ if (m)
1626
1677
  return {
1627
- ...i,
1678
+ ...s,
1628
1679
  video: {
1629
- ...i.video,
1630
- file: d,
1680
+ ...s.video,
1681
+ file: m,
1631
1682
  playlist: void 0
1632
1683
  // No playlist, just one video
1633
1684
  },
1634
- config: s
1685
+ config: c
1635
1686
  };
1636
- if (c != null && c.videos && c.videos.length > 0) {
1637
- const h = c.videos[c.playlistVideoIndex || 0];
1687
+ if (u != null && u.videos && u.videos.length > 0) {
1688
+ const v = u.videos[Number(u.playlistVideoIndex) || 0];
1638
1689
  return {
1639
- ...i,
1690
+ ...s,
1640
1691
  video: {
1641
- ...i.video,
1642
- file: (h == null ? void 0 : h.file) || "",
1692
+ ...s.video,
1693
+ file: (v == null ? void 0 : v.file) || "",
1643
1694
  playlist: {
1644
- ...c,
1645
- state: c.state ?? !0,
1646
- playlistVideoIndex: c.playlistVideoIndex ?? 0,
1647
- videos: c.videos
1695
+ ...u,
1696
+ state: u.state ?? !0,
1697
+ playlistVideoIndex: u.playlistVideoIndex ?? 0,
1698
+ videos: u.videos
1648
1699
  }
1649
1700
  },
1650
1701
  config: {
1651
- ...i.config,
1702
+ ...s.config,
1652
1703
  ...a == null ? void 0 : a.config
1653
1704
  }
1654
1705
  };
1655
1706
  }
1656
1707
  throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.");
1657
- }, Tr = (e) => {
1708
+ }, Ar = (e) => {
1658
1709
  if (!e)
1659
1710
  return;
1660
1711
  const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
1661
1712
  return r ? r[2] : void 0;
1662
- }, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1 }) => {
1663
- const l = Me(null), u = Me(null), { isLoaded: h, error: w } = Pr(r, s), x = t || Tr(s), [p, y] = D(null), { fetchedPlaybackUrl: v, fetchedPlaylist: b, isLoading: _, error: O } = Sr({
1713
+ }, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: m = !1 }) => {
1714
+ const l = Be(null), f = Be(null), { isLoaded: g, error: w } = Pr(r, s), b = t || Ar(s), [d, h] = D(null), { fetchedPlaybackUrl: y, fetchedPlaylist: v, isLoading: S, error: E } = Sr({
1664
1715
  projectId: a,
1665
- videoId: x,
1716
+ videoId: b,
1666
1717
  playlistId: i,
1667
1718
  videoUrl: n,
1668
- apiKey: d
1669
- }), E = Be(e, x), S = tt(() => {
1670
- const f = c.config || {}, T = m && !f.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : f.size || { sizeType: "FIXED", width: "100%" };
1719
+ apiKey: u
1720
+ }), R = Me(e, b), _ = tt(() => {
1721
+ const p = c.config || {}, C = m && !p.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : p.size || { sizeType: "FIXED", width: "100%" };
1671
1722
  return {
1672
1723
  ...c,
1673
1724
  config: {
1674
- ...f,
1675
- size: T
1725
+ ...p,
1726
+ size: C
1676
1727
  }
1677
1728
  };
1678
1729
  }, [c, m]);
1679
1730
  return xe(() => {
1680
1731
  if (w) {
1681
- y(w);
1732
+ h(w);
1682
1733
  return;
1683
1734
  }
1684
- if (!h || _ && !n)
1735
+ if (!g || S && !n)
1685
1736
  return;
1686
- let f = !0;
1687
- const F = setTimeout(async () => {
1737
+ let p = !0;
1738
+ const B = setTimeout(async () => {
1688
1739
  try {
1689
- const A = s == null ? void 0 : s.includes("vertical-player");
1740
+ const T = s == null ? void 0 : s.includes("vertical-player");
1690
1741
  if (document.querySelectorAll('[id*="player"]').forEach((Q) => {
1691
1742
  var ie, oe;
1692
- const K = Q.id;
1693
- if (K !== E)
1743
+ const J = Q.id;
1744
+ if (J !== R)
1694
1745
  try {
1695
- const o = A ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window, K) : (oe = window.vpPlayer) == null ? void 0 : oe.call(window, K);
1746
+ const o = T ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window, J) : (oe = window.vpPlayer) == null ? void 0 : oe.call(window, J);
1696
1747
  o != null && o.destroy && o.destroy();
1697
1748
  } catch (o) {
1698
- console.warn(`Failed to destroy existing player ${K}:`, o);
1749
+ console.warn(`Failed to destroy existing player ${J}:`, o);
1699
1750
  }
1700
- }), await new Promise((Q) => setTimeout(Q, 100)), !f || !l.current)
1751
+ }), await new Promise((Q) => setTimeout(Q, 100)), !p || !l.current)
1701
1752
  return;
1702
- if (!document.getElementById(E)) {
1703
- y("DOM element not found after cleanup.");
1753
+ if (!document.getElementById(R)) {
1754
+ h("DOM element not found after cleanup.");
1704
1755
  return;
1705
1756
  }
1706
1757
  if (!window.vpPlayer && !window.vpVerticalPlayer) {
1707
- y("VP Player script not loaded.");
1758
+ h("VP Player script not loaded.");
1708
1759
  return;
1709
1760
  }
1710
- const z = A ? window.vpVerticalPlayer : window.vpPlayer;
1761
+ const z = T ? window.vpVerticalPlayer : window.vpPlayer;
1711
1762
  if (!z) {
1712
- y(`VP ${A ? "Vertical " : ""}Player script not loaded.`);
1763
+ h(`VP ${T ? "Vertical " : ""}Player script not loaded.`);
1713
1764
  return;
1714
1765
  }
1715
- const G = Ar({
1766
+ const X = Tr({
1716
1767
  videoUrl: n,
1717
- fetchedPlaybackUrl: v,
1718
- fetchedPlaylist: b,
1768
+ fetchedPlaybackUrl: y ?? void 0,
1769
+ fetchedPlaylist: v ?? void 0,
1719
1770
  projectId: a,
1720
- config: S
1721
- }), Z = z(E);
1771
+ config: _,
1772
+ isVerticalPlayer: T
1773
+ // Pass player type to config builder
1774
+ }), Z = z(R);
1722
1775
  if (!Z) {
1723
- y(`Failed to create VP ${A ? "Vertical " : ""}Player instance.`);
1776
+ h(`Failed to create VP ${T ? "Vertical " : ""}Player instance.`);
1724
1777
  return;
1725
1778
  }
1726
- f && l.current && (Z.setup(G), u.current = Z, y(null));
1727
- } catch (A) {
1728
- if (f) {
1729
- const V = A instanceof Error ? A.message : String(A);
1730
- y(V), console.error("VP Player initialization error:", A);
1779
+ p && l.current && (Z.setup(X), f.current = Z, h(null));
1780
+ } catch (T) {
1781
+ if (p) {
1782
+ const I = T instanceof Error ? T.message : String(T);
1783
+ h(I), console.error("VP Player initialization error:", T);
1731
1784
  }
1732
1785
  }
1733
1786
  }, 150);
1734
1787
  return () => {
1735
- f = !1, clearTimeout(F);
1788
+ p = !1, clearTimeout(B);
1736
1789
  };
1737
1790
  }, [
1738
- h,
1739
- _,
1791
+ g,
1792
+ S,
1740
1793
  n,
1794
+ y,
1741
1795
  v,
1742
- b,
1743
1796
  a,
1744
- S,
1745
- E,
1797
+ _,
1798
+ R,
1746
1799
  w,
1747
1800
  s
1748
1801
  ]), xe(() => () => {
1749
- if (u.current) {
1802
+ if (f.current) {
1750
1803
  try {
1751
- u.current.destroy && u.current.destroy();
1752
- } catch (T) {
1753
- console.warn(`Failed to destroy player ${E}:`, T);
1804
+ f.current.destroy && f.current.destroy();
1805
+ } catch (C) {
1806
+ console.warn(`Failed to destroy player ${R}:`, C);
1754
1807
  }
1755
- u.current = null;
1808
+ f.current = null;
1756
1809
  }
1757
- const f = document.getElementById(E);
1758
- f && (f.innerHTML = "");
1759
- }, [E]), {
1810
+ const p = document.getElementById(R);
1811
+ p && (p.innerHTML = "");
1812
+ }, [R]), {
1760
1813
  playerRef: l,
1761
- playerInstanceRef: u,
1762
- isScriptLoaded: h,
1763
- isLoading: _,
1764
- error: O || p || w
1814
+ playerInstanceRef: f,
1815
+ isScriptLoaded: g,
1816
+ isLoading: S,
1817
+ error: E || d || w
1765
1818
  };
1766
- }, Or = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1, hiddenClasses: l = [], onClose: u, className: h }) => {
1767
- var F, A, V, J;
1768
- const { playerRef: w, playerInstanceRef: x, isScriptLoaded: p, isLoading: y, error: v } = Cr({
1819
+ }, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: m = !1, hiddenClasses: l = [], onClose: f, className: g }) => {
1820
+ var B, T, I, G;
1821
+ const { playerRef: w, playerInstanceRef: b, isScriptLoaded: d, isLoading: h, error: y } = Cr({
1769
1822
  playerId: e,
1770
1823
  videoId: t,
1771
1824
  version: r,
@@ -1774,36 +1827,36 @@ const gr = ne.div`
1774
1827
  playlistId: i,
1775
1828
  scriptUrl: s,
1776
1829
  config: c,
1777
- apiKey: d,
1830
+ apiKey: u,
1778
1831
  isReels: m
1779
- }), [b, _] = D(!0), O = () => m && _(!0), E = () => {
1780
- var z, G;
1781
- _(!1), (G = (z = x.current) == null ? void 0 : z.play) == null || G.call(z), u == null || u();
1782
- }, S = (A = (F = c == null ? void 0 : c.config) == null ? void 0 : F.size) != null && A.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, f = (J = (V = c == null ? void 0 : c.config) == null ? void 0 : V.size) != null && J.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, T = Be(e, t);
1783
- return v ? I.jsxs(Le, { type: "error", children: ["An error occurred: ", v] }) : y || !p ? I.jsx(Le, { type: "loading", children: "Loading..." }) : I.jsxs(I.Fragment, { children: [m && !b ? I.jsx("div", { onClick: O }) : null, !m && I.jsx("div", { children: I.jsx(Qe, { id: T, ref: w, width: S || "100%", height: f || "auto", $hiddenClasses: l, className: h }) }, T), m && b && I.jsx(vr, { onClick: E, className: h, children: I.jsx(br, { className: h, onClick: (z) => z.stopPropagation(), children: I.jsx("div", { children: I.jsx(Qe, { id: T, ref: w, width: "100%", height: "auto", $hiddenClasses: l, className: h }) }, T) }) })] });
1784
- }, pt = gt(void 0), $r = ({ children: e }) => {
1832
+ }), [v, S] = D(!0), E = () => m && S(!0), R = () => {
1833
+ var z, X;
1834
+ S(!1), (X = (z = b.current) == null ? void 0 : z.play) == null || X.call(z), f == null || f();
1835
+ }, _ = (T = (B = c == null ? void 0 : c.config) == null ? void 0 : B.size) != null && T.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, p = (G = (I = c == null ? void 0 : c.config) == null ? void 0 : I.size) != null && G.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, C = Me(e, t);
1836
+ return y ? j.jsxs(Ne, { type: "error", children: ["An error occurred: ", y] }) : h || !d ? j.jsx(Ne, { type: "loading", children: "Loading..." }) : j.jsxs(j.Fragment, { children: [m && !v ? j.jsx("div", { onClick: E }) : null, !m && j.jsx("div", { children: j.jsx(Qe, { id: C, ref: w, width: _ || "100%", height: p || "auto", $hiddenClasses: l, className: g }) }, C), m && v && j.jsx(vr, { onClick: R, className: g, children: j.jsx(br, { className: g, onClick: (z) => z.stopPropagation(), children: j.jsx("div", { children: j.jsx(Qe, { id: C, ref: w, width: "100%", height: "auto", $hiddenClasses: l, className: g }) }, C) }) })] });
1837
+ }, pt = gt(void 0), jr = ({ children: e }) => {
1785
1838
  const [t, r] = D(!1), [n, a] = D(null), [i, s] = D(null), c = ze((l) => {
1786
1839
  try {
1787
- const u = Be(l.playerId, l.videoId);
1788
- a({ ...l, playerId: u }), r(!0), s(null);
1840
+ const f = Me(l.playerId, l.videoId);
1841
+ a({ ...l, playerId: f }), r(!0), s(null);
1789
1842
  } catch {
1790
1843
  s("Failed to show player.");
1791
1844
  }
1792
- }, []), d = ze(() => {
1845
+ }, []), u = ze(() => {
1793
1846
  r(!1), a(null), s(null);
1794
1847
  }, []), m = tt(() => ({
1795
1848
  showPlayer: c,
1796
- hidePlayer: d,
1849
+ hidePlayer: u,
1797
1850
  isPlayerVisible: t,
1798
1851
  playerParams: n
1799
- }), [c, d, t, n]);
1800
- return I.jsxs(pt.Provider, { value: m, children: [e, i && I.jsx(Le, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && I.jsx(Or, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: d, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
1801
- }, jr = () => {
1852
+ }), [c, u, t, n]);
1853
+ return j.jsxs(pt.Provider, { value: m, children: [e, i && j.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && j.jsx(Ir, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: u, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
1854
+ }, $r = () => {
1802
1855
  const e = et(pt);
1803
1856
  if (!e)
1804
1857
  throw new Error("useVPPlayer must be used within a VPPlayerProvider");
1805
1858
  return e;
1806
- }, Lr = {
1859
+ }, Nr = {
1807
1860
  projectId: "vp-player-projectId",
1808
1861
  video: {
1809
1862
  file: "",
@@ -1836,7 +1889,7 @@ const gr = ne.div`
1836
1889
  shareButton: !0
1837
1890
  }
1838
1891
  }
1839
- }, Nr = {
1892
+ }, Lr = {
1840
1893
  config: {
1841
1894
  autostartOnLoad: { state: !0, onMobile: !0, onData: !0 },
1842
1895
  muted: !0
@@ -1846,7 +1899,7 @@ const gr = ne.div`
1846
1899
  autoplay: !0,
1847
1900
  muted: !0
1848
1901
  }
1849
- }, Oe = {
1902
+ }, Ie = {
1850
1903
  video: {
1851
1904
  advertising: !0,
1852
1905
  ads: {
@@ -1860,11 +1913,11 @@ const gr = ne.div`
1860
1913
  }, Vr = (e, t, r = "time", n = 0) => {
1861
1914
  var a;
1862
1915
  return {
1863
- ...Oe,
1916
+ ...Ie,
1864
1917
  video: {
1865
- ...Oe.video,
1918
+ ...Ie.video,
1866
1919
  ads: {
1867
- ...(a = Oe.video) == null ? void 0 : a.ads,
1920
+ ...(a = Ie.video) == null ? void 0 : a.ads,
1868
1921
  adBreaks: [
1869
1922
  {
1870
1923
  adTagUrl: t,
@@ -1876,27 +1929,27 @@ const gr = ne.div`
1876
1929
  }
1877
1930
  }
1878
1931
  };
1879
- }, Br = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", Mr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", zr = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", Dr = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Ur = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=", Wr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";
1932
+ }, Mr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", Br = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", zr = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", Dr = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Ur = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=", Wr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";
1880
1933
  export {
1881
1934
  Ur as AD_TAG_LINEAR_URL,
1882
1935
  Wr as AD_TAG_SKIPPABLE_LINEAR_URL,
1883
- Br as BIG_BUCK_BUNNY_URL,
1884
- Mr as ELEPHANTS_DREAM_URL,
1936
+ Mr as BIG_BUCK_BUNNY_URL,
1937
+ Br as ELEPHANTS_DREAM_URL,
1885
1938
  vr as Overlay,
1886
1939
  Dr as PEXELS_THUMBNAIL_URL,
1887
1940
  zr as PEXELS_VERTICAL_VIDEO_URL,
1888
1941
  Qe as PlayerContainer,
1889
1942
  br as PlayerWrapper,
1890
- Or as VPPlayer,
1891
- $r as VPPlayerProvider,
1892
- Nr as baseConfig,
1893
- Oe as baseConfigWithAds,
1943
+ Ir as VPPlayer,
1944
+ jr as VPPlayerProvider,
1945
+ Lr as baseConfig,
1946
+ Ie as baseConfigWithAds,
1894
1947
  Fr as baseConfigWithAutoplay,
1895
- Ar as buildVPPlayerConfig,
1896
- Lr as defaultVPPlayerConfig,
1897
- Tr as extractVideoId,
1948
+ Tr as buildVPPlayerConfig,
1949
+ Nr as defaultVPPlayerConfig,
1950
+ Ar as extractVideoId,
1898
1951
  Vr as getAdConfig,
1899
- jr as useVPPlayer,
1952
+ $r as useVPPlayer,
1900
1953
  Cr as useVPPlayerLogic,
1901
1954
  Pr as useVPPlayerScript,
1902
1955
  Sr as useVideoData