@devix-technologies/react-gjirafa-vp-player 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import * as Z from "react";
2
- import yt, { forwardRef as gt, useContext as tt, useState as Y, useEffect as xe, useRef as Me, useMemo as rt, createContext as vt, useCallback as Ue } from "react";
3
- var me = { exports: {} }, se = {};
2
+ import yt, { forwardRef as gt, useContext as tt, useState as q, useEffect as de, useRef as Me, useMemo as rt, createContext as vt, useCallback as Ue } from "react";
3
+ var ye = { exports: {} }, se = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.js
@@ -16,8 +16,8 @@ function bt() {
16
16
  ze = 1;
17
17
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
18
18
  function r(n, a, i) {
19
- var s = null;
20
- if (i !== void 0 && (s = "" + i), a.key !== void 0 && (s = "" + a.key), "key" in a) {
19
+ var o = null;
20
+ if (i !== void 0 && (o = "" + i), a.key !== void 0 && (o = "" + a.key), "key" in a) {
21
21
  i = {};
22
22
  for (var c in a)
23
23
  c !== "key" && (i[c] = a[c]);
@@ -25,7 +25,7 @@ function bt() {
25
25
  return a = i.ref, {
26
26
  $$typeof: e,
27
27
  type: n,
28
- key: s,
28
+ key: o,
29
29
  ref: a !== void 0 ? a : null,
30
30
  props: i
31
31
  };
@@ -45,187 +45,187 @@ var ce = {};
45
45
  var De;
46
46
  function xt() {
47
47
  return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
48
- function e(o) {
49
- if (o == null) return null;
50
- if (typeof o == "function")
51
- return o.$$typeof === E ? null : o.displayName || o.name || null;
52
- if (typeof o == "string") return o;
53
- switch (o) {
54
- case f:
48
+ function e(s) {
49
+ if (s == null) return null;
50
+ if (typeof s == "function")
51
+ return s.$$typeof === O ? null : s.displayName || s.name || null;
52
+ if (typeof s == "string") return s;
53
+ switch (s) {
54
+ case d:
55
55
  return "Fragment";
56
- case y:
56
+ case p:
57
57
  return "Profiler";
58
- case h:
58
+ case b:
59
59
  return "StrictMode";
60
- case S:
60
+ case I:
61
61
  return "Suspense";
62
- case R:
62
+ case w:
63
63
  return "SuspenseList";
64
- case C:
64
+ case R:
65
65
  return "Activity";
66
66
  }
67
- if (typeof o == "object")
68
- switch (typeof o.tag == "number" && console.error(
67
+ if (typeof s == "object")
68
+ switch (typeof s.tag == "number" && console.error(
69
69
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
70
- ), o.$$typeof) {
70
+ ), s.$$typeof) {
71
71
  case g:
72
72
  return "Portal";
73
73
  case _:
74
- return (o.displayName || "Context") + ".Provider";
75
- case w:
76
- return (o._context.displayName || "Context") + ".Consumer";
77
- case A:
78
- var v = o.render;
79
- return o = o.displayName, o || (o = v.displayName || v.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
80
- case d:
81
- return v = o.displayName || null, v !== null ? v : e(o.type) || "Memo";
82
- case I:
83
- v = o._payload, o = o._init;
74
+ return (s.displayName || "Context") + ".Provider";
75
+ case x:
76
+ return (s._context.displayName || "Context") + ".Consumer";
77
+ case S:
78
+ var m = s.render;
79
+ return s = s.displayName, s || (s = m.displayName || m.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
80
+ case h:
81
+ return m = s.displayName || null, m !== null ? m : e(s.type) || "Memo";
82
+ case C:
83
+ m = s._payload, s = s._init;
84
84
  try {
85
- return e(o(v));
85
+ return e(s(m));
86
86
  } catch {
87
87
  }
88
88
  }
89
89
  return null;
90
90
  }
91
- function t(o) {
92
- return "" + o;
91
+ function t(s) {
92
+ return "" + s;
93
93
  }
94
- function r(o) {
94
+ function r(s) {
95
95
  try {
96
- t(o);
97
- var v = !1;
96
+ t(s);
97
+ var m = !1;
98
98
  } catch {
99
- v = !0;
99
+ m = !0;
100
100
  }
101
- if (v) {
102
- v = console;
103
- var T = v.error, L = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
101
+ if (m) {
102
+ m = console;
103
+ var T = m.error, F = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
104
104
  return T.call(
105
- v,
105
+ m,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
- L
108
- ), t(o);
107
+ F
108
+ ), t(s);
109
109
  }
110
110
  }
111
- function n(o) {
112
- if (o === f) return "<>";
113
- if (typeof o == "object" && o !== null && o.$$typeof === I)
111
+ function n(s) {
112
+ if (s === d) return "<>";
113
+ if (typeof s == "object" && s !== null && s.$$typeof === C)
114
114
  return "<...>";
115
115
  try {
116
- var v = e(o);
117
- return v ? "<" + v + ">" : "<...>";
116
+ var m = e(s);
117
+ return m ? "<" + m + ">" : "<...>";
118
118
  } catch {
119
119
  return "<...>";
120
120
  }
121
121
  }
122
122
  function a() {
123
- var o = $.A;
124
- return o === null ? null : o.getOwner();
123
+ var s = A.A;
124
+ return s === null ? null : s.getOwner();
125
125
  }
126
126
  function i() {
127
127
  return Error("react-stack-top-frame");
128
128
  }
129
- function s(o) {
130
- if (D.call(o, "key")) {
131
- var v = Object.getOwnPropertyDescriptor(o, "key").get;
132
- if (v && v.isReactWarning) return !1;
129
+ function o(s) {
130
+ if (M.call(s, "key")) {
131
+ var m = Object.getOwnPropertyDescriptor(s, "key").get;
132
+ if (m && m.isReactWarning) return !1;
133
133
  }
134
- return o.key !== void 0;
134
+ return s.key !== void 0;
135
135
  }
136
- function c(o, v) {
136
+ function c(s, m) {
137
137
  function T() {
138
- q || (q = !0, console.error(
138
+ W || (W = !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
- v
140
+ m
141
141
  ));
142
142
  }
143
- T.isReactWarning = !0, Object.defineProperty(o, "key", {
143
+ T.isReactWarning = !0, Object.defineProperty(s, "key", {
144
144
  get: T,
145
145
  configurable: !0
146
146
  });
147
147
  }
148
148
  function u() {
149
- var o = e(this.type);
150
- return W[o] || (W[o] = !0, console.error(
149
+ var s = e(this.type);
150
+ return Y[s] || (Y[s] = !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
- )), o = this.props.ref, o !== void 0 ? o : null;
152
+ )), s = this.props.ref, s !== void 0 ? s : null;
153
153
  }
154
- function m(o, v, T, L, te, G, _e, Se) {
155
- return T = G.ref, o = {
156
- $$typeof: x,
157
- type: o,
158
- key: v,
159
- props: G,
154
+ function y(s, m, T, F, te, H, _e, Se) {
155
+ return T = H.ref, s = {
156
+ $$typeof: k,
157
+ type: s,
158
+ key: m,
159
+ props: H,
160
160
  _owner: te
161
- }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(o, "ref", {
161
+ }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(s, "ref", {
162
162
  enumerable: !1,
163
163
  get: u
164
- }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
164
+ }) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
165
165
  configurable: !1,
166
166
  enumerable: !1,
167
167
  writable: !0,
168
168
  value: 0
169
- }), Object.defineProperty(o, "_debugInfo", {
169
+ }), Object.defineProperty(s, "_debugInfo", {
170
170
  configurable: !1,
171
171
  enumerable: !1,
172
172
  writable: !0,
173
173
  value: null
174
- }), Object.defineProperty(o, "_debugStack", {
174
+ }), Object.defineProperty(s, "_debugStack", {
175
175
  configurable: !1,
176
176
  enumerable: !1,
177
177
  writable: !0,
178
178
  value: _e
179
- }), Object.defineProperty(o, "_debugTask", {
179
+ }), Object.defineProperty(s, "_debugTask", {
180
180
  configurable: !1,
181
181
  enumerable: !1,
182
182
  writable: !0,
183
183
  value: Se
184
- }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
184
+ }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
185
185
  }
186
- function l(o, v, T, L, te, G, _e, Se) {
187
- var V = v.children;
186
+ function l(s, m, T, F, te, H, _e, Se) {
187
+ var V = m.children;
188
188
  if (V !== void 0)
189
- if (L)
190
- if (j(V)) {
191
- for (L = 0; L < V.length; L++)
192
- p(V[L]);
189
+ if (F)
190
+ if (z(V)) {
191
+ for (F = 0; F < V.length; F++)
192
+ f(V[F]);
193
193
  Object.freeze && Object.freeze(V);
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 p(V);
199
- if (D.call(v, "key")) {
200
- V = e(o);
201
- var re = Object.keys(v).filter(function(mt) {
198
+ else f(V);
199
+ if (M.call(m, "key")) {
200
+ V = e(s);
201
+ var re = Object.keys(m).filter(function(mt) {
202
202
  return mt !== "key";
203
203
  });
204
- L = 0 < re.length ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}", ee[V + L] || (re = 0 < re.length ? "{" + re.join(": ..., ") + ": ...}" : "{}", console.error(
204
+ F = 0 < re.length ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}", ee[V + F] || (re = 0 < re.length ? "{" + re.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
- L,
211
+ F,
212
212
  V,
213
213
  re,
214
214
  V
215
- ), ee[V + L] = !0);
215
+ ), ee[V + F] = !0);
216
216
  }
217
- if (V = null, T !== void 0 && (r(T), V = "" + T), s(v) && (r(v.key), V = "" + v.key), "key" in v) {
217
+ if (V = null, T !== void 0 && (r(T), V = "" + T), o(m) && (r(m.key), V = "" + m.key), "key" in m) {
218
218
  T = {};
219
- for (var Re in v)
220
- Re !== "key" && (T[Re] = v[Re]);
221
- } else T = v;
219
+ for (var Re in m)
220
+ Re !== "key" && (T[Re] = m[Re]);
221
+ } else T = m;
222
222
  return V && c(
223
223
  T,
224
- typeof o == "function" ? o.displayName || o.name || "Unknown" : o
225
- ), m(
226
- o,
224
+ typeof s == "function" ? s.displayName || s.name || "Unknown" : s
225
+ ), y(
226
+ s,
227
227
  V,
228
- G,
228
+ H,
229
229
  te,
230
230
  a(),
231
231
  T,
@@ -233,51 +233,51 @@ React keys must be passed directly to JSX without using spread:
233
233
  Se
234
234
  );
235
235
  }
236
- function p(o) {
237
- typeof o == "object" && o !== null && o.$$typeof === x && o._store && (o._store.validated = 1);
236
+ function f(s) {
237
+ typeof s == "object" && s !== null && s.$$typeof === k && s._store && (s._store.validated = 1);
238
238
  }
239
- var b = yt, x = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), C = Symbol.for("react.activity"), E = Symbol.for("react.client.reference"), $ = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, j = Array.isArray, U = console.createTask ? console.createTask : function() {
239
+ var v = yt, k = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), R = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), A = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, z = Array.isArray, $ = console.createTask ? console.createTask : function() {
240
240
  return null;
241
241
  };
242
- b = {
243
- "react-stack-bottom-frame": function(o) {
244
- return o();
242
+ v = {
243
+ "react-stack-bottom-frame": function(s) {
244
+ return s();
245
245
  }
246
246
  };
247
- var q, W = {}, J = b["react-stack-bottom-frame"].bind(
248
- b,
247
+ var W, Y = {}, Q = v["react-stack-bottom-frame"].bind(
248
+ v,
249
249
  i
250
- )(), Q = U(n(i)), ee = {};
251
- ce.Fragment = f, ce.jsx = function(o, v, T, L, te) {
252
- var G = 1e4 > $.recentlyCreatedOwnerStacks++;
250
+ )(), G = $(n(i)), ee = {};
251
+ ce.Fragment = d, ce.jsx = function(s, m, T, F, te) {
252
+ var H = 1e4 > A.recentlyCreatedOwnerStacks++;
253
253
  return l(
254
- o,
255
- v,
254
+ s,
255
+ m,
256
256
  T,
257
257
  !1,
258
- L,
258
+ F,
259
259
  te,
260
- G ? Error("react-stack-top-frame") : J,
261
- G ? U(n(o)) : Q
260
+ H ? Error("react-stack-top-frame") : Q,
261
+ H ? $(n(s)) : G
262
262
  );
263
- }, ce.jsxs = function(o, v, T, L, te) {
264
- var G = 1e4 > $.recentlyCreatedOwnerStacks++;
263
+ }, ce.jsxs = function(s, m, T, F, te) {
264
+ var H = 1e4 > A.recentlyCreatedOwnerStacks++;
265
265
  return l(
266
- o,
267
- v,
266
+ s,
267
+ m,
268
268
  T,
269
269
  !0,
270
- L,
270
+ F,
271
271
  te,
272
- G ? Error("react-stack-top-frame") : J,
273
- G ? U(n(o)) : Q
272
+ H ? Error("react-stack-top-frame") : Q,
273
+ H ? $(n(s)) : G
274
274
  );
275
275
  };
276
276
  }()), ce;
277
277
  }
278
278
  var We;
279
279
  function wt() {
280
- return We || (We = 1, process.env.NODE_ENV === "production" ? me.exports = bt() : me.exports = xt()), me.exports;
280
+ return We || (We = 1, process.env.NODE_ENV === "production" ? ye.exports = bt() : ye.exports = xt()), ye.exports;
281
281
  }
282
282
  var N = wt();
283
283
  function Oe() {
@@ -329,9 +329,9 @@ var Et = /* @__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
- }(), B = "-ms-", we = "-moz-", k = "-webkit-", nt = "comm", Fe = "rule", Le = "decl", _t = "@import", at = "@keyframes", St = "@layer", Rt = Math.abs, ke = String.fromCharCode, At = Object.assign;
332
+ }(), B = "-ms-", we = "-moz-", P = "-webkit-", nt = "comm", Le = "rule", Fe = "decl", _t = "@import", at = "@keyframes", St = "@layer", Rt = Math.abs, ke = String.fromCharCode, At = Object.assign;
333
333
  function Ct(e, t) {
334
- return F(e, 0) ^ 45 ? (((t << 2 ^ F(e, 0)) << 2 ^ F(e, 1)) << 2 ^ F(e, 2)) << 2 ^ F(e, 3) : 0;
334
+ return L(e, 0) ^ 45 ? (((t << 2 ^ L(e, 0)) << 2 ^ L(e, 1)) << 2 ^ L(e, 2)) << 2 ^ L(e, 3) : 0;
335
335
  }
336
336
  function it(e) {
337
337
  return e.trim();
@@ -339,56 +339,56 @@ function it(e) {
339
339
  function Tt(e, t) {
340
340
  return (e = t.exec(e)) ? e[0] : e;
341
341
  }
342
- function P(e, t, r) {
342
+ function E(e, t, r) {
343
343
  return e.replace(t, r);
344
344
  }
345
345
  function je(e, t) {
346
346
  return e.indexOf(t);
347
347
  }
348
- function F(e, t) {
348
+ function L(e, t) {
349
349
  return e.charCodeAt(t) | 0;
350
350
  }
351
- function de(e, t, r) {
351
+ function fe(e, t, r) {
352
352
  return e.slice(t, r);
353
353
  }
354
- function H(e) {
354
+ function X(e) {
355
355
  return e.length;
356
356
  }
357
357
  function Ve(e) {
358
358
  return e.length;
359
359
  }
360
- function ye(e, t) {
360
+ function ge(e, t) {
361
361
  return t.push(e), e;
362
362
  }
363
363
  function It(e, t) {
364
364
  return e.map(t).join("");
365
365
  }
366
- var Pe = 1, ae = 1, ot = 0, M = 0, O = 0, oe = "";
367
- function Ee(e, t, r, n, a, i, s) {
368
- return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: ae, length: s, return: "" };
366
+ var Pe = 1, ae = 1, ot = 0, U = 0, j = 0, oe = "";
367
+ function Ee(e, t, r, n, a, i, o) {
368
+ return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: ae, length: o, return: "" };
369
369
  }
370
370
  function le(e, t) {
371
371
  return At(Ee("", null, null, "", null, null, 0), e, { length: -e.length }, t);
372
372
  }
373
373
  function Ot() {
374
- return O;
374
+ return j;
375
375
  }
376
376
  function jt() {
377
- return O = M > 0 ? F(oe, --M) : 0, ae--, O === 10 && (ae = 1, Pe--), O;
377
+ return j = U > 0 ? L(oe, --U) : 0, ae--, j === 10 && (ae = 1, Pe--), j;
378
378
  }
379
- function z() {
380
- return O = M < ot ? F(oe, M++) : 0, ae++, O === 10 && (ae = 1, Pe++), O;
379
+ function D() {
380
+ return j = U < ot ? L(oe, U++) : 0, ae++, j === 10 && (ae = 1, Pe++), j;
381
381
  }
382
- function K() {
383
- return F(oe, M);
382
+ function J() {
383
+ return L(oe, U);
384
384
  }
385
- function ge() {
386
- return M;
385
+ function ve() {
386
+ return U;
387
387
  }
388
- function he(e, t) {
389
- return de(oe, e, t);
388
+ function me(e, t) {
389
+ return fe(oe, e, t);
390
390
  }
391
- function fe(e) {
391
+ function pe(e) {
392
392
  switch (e) {
393
393
  // \0 \t \n \r \s whitespace token
394
394
  case 0:
@@ -427,34 +427,34 @@ function fe(e) {
427
427
  return 0;
428
428
  }
429
429
  function st(e) {
430
- return Pe = ae = 1, ot = H(oe = e), M = 0, [];
430
+ return Pe = ae = 1, ot = X(oe = e), U = 0, [];
431
431
  }
432
432
  function ct(e) {
433
433
  return oe = "", e;
434
434
  }
435
- function ve(e) {
436
- return it(he(M - 1, $e(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
435
+ function be(e) {
436
+ return it(me(U - 1, $e(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
437
437
  }
438
438
  function $t(e) {
439
- for (; (O = K()) && O < 33; )
440
- z();
441
- return fe(e) > 2 || fe(O) > 3 ? "" : " ";
439
+ for (; (j = J()) && j < 33; )
440
+ D();
441
+ return pe(e) > 2 || pe(j) > 3 ? "" : " ";
442
442
  }
443
443
  function Nt(e, t) {
444
- for (; --t && z() && !(O < 48 || O > 102 || O > 57 && O < 65 || O > 70 && O < 97); )
444
+ for (; --t && D() && !(j < 48 || j > 102 || j > 57 && j < 65 || j > 70 && j < 97); )
445
445
  ;
446
- return he(e, ge() + (t < 6 && K() == 32 && z() == 32));
446
+ return me(e, ve() + (t < 6 && J() == 32 && D() == 32));
447
447
  }
448
448
  function $e(e) {
449
- for (; z(); )
450
- switch (O) {
449
+ for (; D(); )
450
+ switch (j) {
451
451
  // ] ) " '
452
452
  case e:
453
- return M;
453
+ return U;
454
454
  // " '
455
455
  case 34:
456
456
  case 39:
457
- e !== 34 && e !== 39 && $e(O);
457
+ e !== 34 && e !== 39 && $e(j);
458
458
  break;
459
459
  // (
460
460
  case 40:
@@ -462,142 +462,142 @@ function $e(e) {
462
462
  break;
463
463
  // \
464
464
  case 92:
465
- z();
465
+ D();
466
466
  break;
467
467
  }
468
- return M;
468
+ return U;
469
469
  }
470
- function Ft(e, t) {
471
- for (; z() && e + O !== 57; )
472
- if (e + O === 84 && K() === 47)
470
+ function Lt(e, t) {
471
+ for (; D() && e + j !== 57; )
472
+ if (e + j === 84 && J() === 47)
473
473
  break;
474
- return "/*" + he(t, M - 1) + "*" + ke(e === 47 ? e : z());
474
+ return "/*" + me(t, U - 1) + "*" + ke(e === 47 ? e : D());
475
475
  }
476
- function Lt(e) {
477
- for (; !fe(K()); )
478
- z();
479
- return he(e, M);
476
+ function Ft(e) {
477
+ for (; !pe(J()); )
478
+ D();
479
+ return me(e, U);
480
480
  }
481
481
  function Vt(e) {
482
- return ct(be("", null, null, null, [""], e = st(e), 0, [0], e));
482
+ return ct(xe("", null, null, null, [""], e = st(e), 0, [0], e));
483
483
  }
484
- function be(e, t, r, n, a, i, s, c, u) {
485
- for (var m = 0, l = 0, p = s, b = 0, x = 0, g = 0, f = 1, h = 1, y = 1, w = 0, _ = "", A = a, S = i, R = n, d = _; h; )
486
- switch (g = w, w = z()) {
484
+ function xe(e, t, r, n, a, i, o, c, u) {
485
+ for (var y = 0, l = 0, f = o, v = 0, k = 0, g = 0, d = 1, b = 1, p = 1, x = 0, _ = "", S = a, I = i, w = n, h = _; b; )
486
+ switch (g = x, x = D()) {
487
487
  // (
488
488
  case 40:
489
- if (g != 108 && F(d, p - 1) == 58) {
490
- je(d += P(ve(w), "&", "&\f"), "&\f") != -1 && (y = -1);
489
+ if (g != 108 && L(h, f - 1) == 58) {
490
+ je(h += E(be(x), "&", "&\f"), "&\f") != -1 && (p = -1);
491
491
  break;
492
492
  }
493
493
  // " ' [
494
494
  case 34:
495
495
  case 39:
496
496
  case 91:
497
- d += ve(w);
497
+ h += be(x);
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
- d += $t(g);
504
+ h += $t(g);
505
505
  break;
506
506
  // \
507
507
  case 92:
508
- d += Nt(ge() - 1, 7);
508
+ h += Nt(ve() - 1, 7);
509
509
  continue;
510
510
  // /
511
511
  case 47:
512
- switch (K()) {
512
+ switch (J()) {
513
513
  case 42:
514
514
  case 47:
515
- ye(Bt(Ft(z(), ge()), t, r), u);
515
+ ge(Bt(Lt(D(), ve()), t, r), u);
516
516
  break;
517
517
  default:
518
- d += "/";
518
+ h += "/";
519
519
  }
520
520
  break;
521
521
  // {
522
- case 123 * f:
523
- c[m++] = H(d) * y;
522
+ case 123 * d:
523
+ c[y++] = X(h) * p;
524
524
  // } ; \0
525
- case 125 * f:
525
+ case 125 * d:
526
526
  case 59:
527
527
  case 0:
528
- switch (w) {
528
+ switch (x) {
529
529
  // \0 }
530
530
  case 0:
531
531
  case 125:
532
- h = 0;
532
+ b = 0;
533
533
  // ;
534
534
  case 59 + l:
535
- y == -1 && (d = P(d, /\f/g, "")), x > 0 && H(d) - p && ye(x > 32 ? qe(d + ";", n, r, p - 1) : qe(P(d, " ", "") + ";", n, r, p - 2), u);
535
+ p == -1 && (h = E(h, /\f/g, "")), k > 0 && X(h) - f && ge(k > 32 ? qe(h + ";", n, r, f - 1) : qe(E(h, " ", "") + ";", n, r, f - 2), u);
536
536
  break;
537
537
  // @ ;
538
538
  case 59:
539
- d += ";";
539
+ h += ";";
540
540
  // { rule/at-rule
541
541
  default:
542
- if (ye(R = Ye(d, t, r, m, l, a, c, _, A = [], S = [], p), i), w === 123)
542
+ if (ge(w = Ye(h, t, r, y, l, a, c, _, S = [], I = [], f), i), x === 123)
543
543
  if (l === 0)
544
- be(d, t, R, R, A, i, p, c, S);
544
+ xe(h, t, w, w, S, i, f, c, I);
545
545
  else
546
- switch (b === 99 && F(d, 3) === 110 ? 100 : b) {
546
+ switch (v === 99 && L(h, 3) === 110 ? 100 : v) {
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, R, R, n && ye(Ye(e, R, R, 0, 0, a, c, _, a, A = [], p), S), a, S, p, c, n ? A : S);
552
+ xe(e, w, w, n && ge(Ye(e, w, w, 0, 0, a, c, _, a, S = [], f), I), a, I, f, c, n ? S : I);
553
553
  break;
554
554
  default:
555
- be(d, R, R, R, [""], S, 0, c, S);
555
+ xe(h, w, w, w, [""], I, 0, c, I);
556
556
  }
557
557
  }
558
- m = l = x = 0, f = y = 1, _ = d = "", p = s;
558
+ y = l = k = 0, d = p = 1, _ = h = "", f = o;
559
559
  break;
560
560
  // :
561
561
  case 58:
562
- p = 1 + H(d), x = g;
562
+ f = 1 + X(h), k = g;
563
563
  default:
564
- if (f < 1) {
565
- if (w == 123)
566
- --f;
567
- else if (w == 125 && f++ == 0 && jt() == 125)
564
+ if (d < 1) {
565
+ if (x == 123)
566
+ --d;
567
+ else if (x == 125 && d++ == 0 && jt() == 125)
568
568
  continue;
569
569
  }
570
- switch (d += ke(w), w * f) {
570
+ switch (h += ke(x), x * d) {
571
571
  // &
572
572
  case 38:
573
- y = l > 0 ? 1 : (d += "\f", -1);
573
+ p = l > 0 ? 1 : (h += "\f", -1);
574
574
  break;
575
575
  // ,
576
576
  case 44:
577
- c[m++] = (H(d) - 1) * y, y = 1;
577
+ c[y++] = (X(h) - 1) * p, p = 1;
578
578
  break;
579
579
  // @
580
580
  case 64:
581
- K() === 45 && (d += ve(z())), b = K(), l = p = H(_ = d += Lt(ge())), w++;
581
+ J() === 45 && (h += be(D())), v = J(), l = f = X(_ = h += Ft(ve())), x++;
582
582
  break;
583
583
  // -
584
584
  case 45:
585
- g === 45 && H(d) == 2 && (f = 0);
585
+ g === 45 && X(h) == 2 && (d = 0);
586
586
  }
587
587
  }
588
588
  return i;
589
589
  }
590
- function Ye(e, t, r, n, a, i, s, c, u, m, l) {
591
- for (var p = a - 1, b = a === 0 ? i : [""], x = Ve(b), g = 0, f = 0, h = 0; g < n; ++g)
592
- for (var y = 0, w = de(e, p + 1, p = Rt(f = s[g])), _ = e; y < x; ++y)
593
- (_ = it(f > 0 ? b[y] + " " + w : P(w, /&\f/g, b[y]))) && (u[h++] = _);
594
- return Ee(e, t, r, a === 0 ? Fe : c, u, m, l);
590
+ function Ye(e, t, r, n, a, i, o, c, u, y, l) {
591
+ for (var f = a - 1, v = a === 0 ? i : [""], k = Ve(v), g = 0, d = 0, b = 0; g < n; ++g)
592
+ for (var p = 0, x = fe(e, f + 1, f = Rt(d = o[g])), _ = e; p < k; ++p)
593
+ (_ = it(d > 0 ? v[p] + " " + x : E(x, /&\f/g, v[p]))) && (u[b++] = _);
594
+ return Ee(e, t, r, a === 0 ? Le : c, u, y, l);
595
595
  }
596
596
  function Bt(e, t, r) {
597
- return Ee(e, t, r, nt, ke(Ot()), de(e, 2, -2), 0);
597
+ return Ee(e, t, r, nt, ke(Ot()), fe(e, 2, -2), 0);
598
598
  }
599
599
  function qe(e, t, r, n) {
600
- return Ee(e, t, r, Le, de(e, 0, n), de(e, n + 1, -1), n);
600
+ return Ee(e, t, r, Fe, fe(e, 0, n), fe(e, n + 1, -1), n);
601
601
  }
602
602
  function ne(e, t) {
603
603
  for (var r = "", n = Ve(e), a = 0; a < n; a++)
@@ -609,23 +609,23 @@ function Mt(e, t, r, n) {
609
609
  case St:
610
610
  if (e.children.length) break;
611
611
  case _t:
612
- case Le:
612
+ case Fe:
613
613
  return e.return = e.return || e.value;
614
614
  case nt:
615
615
  return "";
616
616
  case at:
617
617
  return e.return = e.value + "{" + ne(e.children, n) + "}";
618
- case Fe:
618
+ case Le:
619
619
  e.value = e.props.join(",");
620
620
  }
621
- return H(r = ne(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
621
+ return X(r = ne(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
622
622
  }
623
623
  function Ut(e) {
624
624
  var t = Ve(e);
625
625
  return function(r, n, a, i) {
626
- for (var s = "", c = 0; c < t; c++)
627
- s += e[c](r, n, a, i) || "";
628
- return s;
626
+ for (var o = "", c = 0; c < t; c++)
627
+ o += e[c](r, n, a, i) || "";
628
+ return o;
629
629
  };
630
630
  }
631
631
  function zt(e) {
@@ -640,29 +640,29 @@ function lt(e) {
640
640
  };
641
641
  }
642
642
  var Dt = function(t, r, n) {
643
- for (var a = 0, i = 0; a = i, i = K(), a === 38 && i === 12 && (r[n] = 1), !fe(i); )
644
- z();
645
- return he(t, M);
643
+ for (var a = 0, i = 0; a = i, i = J(), a === 38 && i === 12 && (r[n] = 1), !pe(i); )
644
+ D();
645
+ return me(t, U);
646
646
  }, Wt = function(t, r) {
647
647
  var n = -1, a = 44;
648
648
  do
649
- switch (fe(a)) {
649
+ switch (pe(a)) {
650
650
  case 0:
651
- a === 38 && K() === 12 && (r[n] = 1), t[n] += Dt(M - 1, r, n);
651
+ a === 38 && J() === 12 && (r[n] = 1), t[n] += Dt(U - 1, r, n);
652
652
  break;
653
653
  case 2:
654
- t[n] += ve(a);
654
+ t[n] += be(a);
655
655
  break;
656
656
  case 4:
657
657
  if (a === 44) {
658
- t[++n] = K() === 58 ? "&\f" : "", r[n] = t[n].length;
658
+ t[++n] = J() === 58 ? "&\f" : "", r[n] = t[n].length;
659
659
  break;
660
660
  }
661
661
  // fallthrough
662
662
  default:
663
663
  t[n] += ke(a);
664
664
  }
665
- while (a = z());
665
+ while (a = D());
666
666
  return t;
667
667
  }, Yt = function(t, r) {
668
668
  return ct(Wt(st(t), r));
@@ -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 && !Ge.get(n)) && !a) {
676
676
  Ge.set(t, !0);
677
- for (var i = [], s = Yt(r, i), c = n.props, u = 0, m = 0; u < s.length; u++)
678
- for (var l = 0; l < c.length; l++, m++)
679
- t.props[m] = i[u] ? s[u].replace(/&\f/g, c[l]) : c[l] + " " + s[u];
677
+ for (var i = [], o = Yt(r, i), c = n.props, u = 0, y = 0; u < o.length; u++)
678
+ for (var l = 0; l < c.length; l++, y++)
679
+ t.props[y] = i[u] ? o[u].replace(/&\f/g, c[l]) : c[l] + " " + o[u];
680
680
  }
681
681
  }
682
682
  }, Gt = function(t) {
@@ -691,7 +691,7 @@ function ut(e, t) {
691
691
  switch (Ct(e, t)) {
692
692
  // color-adjust
693
693
  case 5103:
694
- return k + "print-" + e + e;
694
+ return P + "print-" + e + e;
695
695
  // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
696
696
  case 5737:
697
697
  case 4201:
@@ -721,58 +721,58 @@ function ut(e, t) {
721
721
  case 5365:
722
722
  case 5621:
723
723
  case 3829:
724
- return k + e + e;
724
+ return P + e + e;
725
725
  // appearance, user-select, transform, hyphens, text-size-adjust
726
726
  case 5349:
727
727
  case 4246:
728
728
  case 4810:
729
729
  case 6968:
730
730
  case 2756:
731
- return k + e + we + e + B + e + e;
731
+ return P + e + we + e + B + e + e;
732
732
  // flex, flex-direction
733
733
  case 6828:
734
734
  case 4268:
735
- return k + e + B + e + e;
735
+ return P + e + B + e + e;
736
736
  // order
737
737
  case 6165:
738
- return k + e + B + "flex-" + e + e;
738
+ return P + e + B + "flex-" + e + e;
739
739
  // align-items
740
740
  case 5187:
741
- return k + e + P(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + B + "flex-$1$2") + e;
741
+ return P + e + E(e, /(\w+).+(:[^]+)/, P + "box-$1$2" + B + "flex-$1$2") + e;
742
742
  // align-self
743
743
  case 5443:
744
- return k + e + B + "flex-item-" + P(e, /flex-|-self/, "") + e;
744
+ return P + e + B + "flex-item-" + E(e, /flex-|-self/, "") + e;
745
745
  // align-content
746
746
  case 4675:
747
- return k + e + B + "flex-line-pack" + P(e, /align-content|flex-|-self/, "") + e;
747
+ return P + e + B + "flex-line-pack" + E(e, /align-content|flex-|-self/, "") + e;
748
748
  // flex-shrink
749
749
  case 5548:
750
- return k + e + B + P(e, "shrink", "negative") + e;
750
+ return P + e + B + E(e, "shrink", "negative") + e;
751
751
  // flex-basis
752
752
  case 5292:
753
- return k + e + B + P(e, "basis", "preferred-size") + e;
753
+ return P + e + B + E(e, "basis", "preferred-size") + e;
754
754
  // flex-grow
755
755
  case 6060:
756
- return k + "box-" + P(e, "-grow", "") + k + e + B + P(e, "grow", "positive") + e;
756
+ return P + "box-" + E(e, "-grow", "") + P + e + B + E(e, "grow", "positive") + e;
757
757
  // transition
758
758
  case 4554:
759
- return k + P(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
759
+ return P + E(e, /([^-])(transform)/g, "$1" + P + "$2") + e;
760
760
  // cursor
761
761
  case 6187:
762
- return P(P(P(e, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), e, "") + e;
762
+ return E(E(E(e, /(zoom-|grab)/, P + "$1"), /(image-set)/, P + "$1"), e, "") + e;
763
763
  // background, background-image
764
764
  case 5495:
765
765
  case 3959:
766
- return P(e, /(image-set\([^]*)/, k + "$1$`$1");
766
+ return E(e, /(image-set\([^]*)/, P + "$1$`$1");
767
767
  // justify-content
768
768
  case 4968:
769
- return P(P(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + B + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
769
+ return E(E(e, /(.+:)(flex-)?(.*)/, P + "box-pack:$3" + B + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + P + e + e;
770
770
  // (margin|padding)-inline-(start|end)
771
771
  case 4095:
772
772
  case 3583:
773
773
  case 4068:
774
774
  case 2532:
775
- return P(e, /(.+)-inline(.+)/, k + "$1$2") + e;
775
+ return E(e, /(.+)-inline(.+)/, P + "$1$2") + e;
776
776
  // (min|max)?(width|height|inline-size|block-size)
777
777
  case 8116:
778
778
  case 7059:
@@ -786,75 +786,75 @@ function ut(e, t) {
786
786
  case 5789:
787
787
  case 5021:
788
788
  case 4765:
789
- if (H(e) - 1 - t > 6) switch (F(e, t + 1)) {
789
+ if (X(e) - 1 - t > 6) switch (L(e, t + 1)) {
790
790
  // (m)ax-content, (m)in-content
791
791
  case 109:
792
- if (F(e, t + 4) !== 45) break;
792
+ if (L(e, t + 4) !== 45) break;
793
793
  // (f)ill-available, (f)it-content
794
794
  case 102:
795
- return P(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + we + (F(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
795
+ return E(e, /(.+:)(.+)-([^]+)/, "$1" + P + "$2-$3$1" + we + (L(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
796
796
  // (s)tretch
797
797
  case 115:
798
- return ~je(e, "stretch") ? ut(P(e, "stretch", "fill-available"), t) + e : e;
798
+ return ~je(e, "stretch") ? ut(E(e, "stretch", "fill-available"), t) + e : e;
799
799
  }
800
800
  break;
801
801
  // position: sticky
802
802
  case 4949:
803
- if (F(e, t + 1) !== 115) break;
803
+ if (L(e, t + 1) !== 115) break;
804
804
  // display: (flex|inline-flex)
805
805
  case 6444:
806
- switch (F(e, H(e) - 3 - (~je(e, "!important") && 10))) {
806
+ switch (L(e, X(e) - 3 - (~je(e, "!important") && 10))) {
807
807
  // stic(k)y
808
808
  case 107:
809
- return P(e, ":", ":" + k) + e;
809
+ return E(e, ":", ":" + P) + e;
810
810
  // (inline-)?fl(e)x
811
811
  case 101:
812
- return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + (F(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + B + "$2box$3") + e;
812
+ return E(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + P + (L(e, 14) === 45 ? "inline-" : "") + "box$3$1" + P + "$2$3$1" + B + "$2box$3") + e;
813
813
  }
814
814
  break;
815
815
  // writing-mode
816
816
  case 5936:
817
- switch (F(e, t + 11)) {
817
+ switch (L(e, t + 11)) {
818
818
  // vertical-l(r)
819
819
  case 114:
820
- return k + e + B + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
820
+ return P + e + B + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
821
821
  // vertical-r(l)
822
822
  case 108:
823
- return k + e + B + P(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
823
+ return P + e + B + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
824
824
  // horizontal(-)tb
825
825
  case 45:
826
- return k + e + B + P(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
826
+ return P + e + B + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
827
827
  }
828
- return k + e + B + e + e;
828
+ return P + e + B + e + e;
829
829
  }
830
830
  return e;
831
831
  }
832
832
  var Ht = function(t, r, n, a) {
833
833
  if (t.length > -1 && !t.return) switch (t.type) {
834
- case Le:
834
+ case Fe:
835
835
  t.return = ut(t.value, t.length);
836
836
  break;
837
837
  case at:
838
838
  return ne([le(t, {
839
- value: P(t.value, "@", "@" + k)
839
+ value: E(t.value, "@", "@" + P)
840
840
  })], a);
841
- case Fe:
841
+ case Le:
842
842
  if (t.length) return It(t.props, function(i) {
843
843
  switch (Tt(i, /(::plac\w+|:read-\w+)/)) {
844
844
  // :read-(only|write)
845
845
  case ":read-only":
846
846
  case ":read-write":
847
847
  return ne([le(t, {
848
- props: [P(i, /:(read-\w+)/, ":" + we + "$1")]
848
+ props: [E(i, /:(read-\w+)/, ":" + we + "$1")]
849
849
  })], a);
850
850
  // :placeholder
851
851
  case "::placeholder":
852
852
  return ne([le(t, {
853
- props: [P(i, /:(plac\w+)/, ":" + k + "input-$1")]
853
+ props: [E(i, /:(plac\w+)/, ":" + P + "input-$1")]
854
854
  }), le(t, {
855
- props: [P(i, /:(plac\w+)/, ":" + we + "$1")]
855
+ props: [E(i, /:(plac\w+)/, ":" + we + "$1")]
856
856
  }), le(t, {
857
- props: [P(i, /:(plac\w+)/, B + "input-$1")]
857
+ props: [E(i, /:(plac\w+)/, B + "input-$1")]
858
858
  })], a);
859
859
  }
860
860
  return "";
@@ -864,38 +864,38 @@ 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(f) {
868
- var h = f.getAttribute("data-emotion");
869
- h.indexOf(" ") !== -1 && (document.head.appendChild(f), f.setAttribute("data-s", ""));
867
+ Array.prototype.forEach.call(n, function(d) {
868
+ var b = d.getAttribute("data-emotion");
869
+ b.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
870
870
  });
871
871
  }
872
- var a = t.stylisPlugins || Xt, i = {}, s, c = [];
873
- s = t.container || document.head, Array.prototype.forEach.call(
872
+ var a = t.stylisPlugins || Xt, i = {}, o, c = [];
873
+ o = t.container || document.head, Array.prototype.forEach.call(
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(f) {
878
- for (var h = f.getAttribute("data-emotion").split(" "), y = 1; y < h.length; y++)
879
- i[h[y]] = !0;
880
- c.push(f);
877
+ function(d) {
878
+ for (var b = d.getAttribute("data-emotion").split(" "), p = 1; p < b.length; p++)
879
+ i[b[p]] = !0;
880
+ c.push(d);
881
881
  }
882
882
  );
883
- var u, m = [qt, Gt];
883
+ var u, y = [qt, Gt];
884
884
  {
885
- var l, p = [Mt, zt(function(f) {
886
- l.insert(f);
887
- })], b = Ut(m.concat(a, p)), x = function(h) {
888
- return ne(Vt(h), b);
885
+ var l, f = [Mt, zt(function(d) {
886
+ l.insert(d);
887
+ })], v = Ut(y.concat(a, f)), k = function(b) {
888
+ return ne(Vt(b), v);
889
889
  };
890
- u = function(h, y, w, _) {
891
- l = w, x(h ? h + "{" + y.styles + "}" : y.styles), _ && (g.inserted[y.name] = !0);
890
+ u = function(b, p, x, _) {
891
+ l = x, k(b ? b + "{" + p.styles + "}" : p.styles), _ && (g.inserted[p.name] = !0);
892
892
  };
893
893
  }
894
894
  var g = {
895
895
  key: r,
896
896
  sheet: new Et({
897
897
  key: r,
898
- container: s,
898
+ container: o,
899
899
  nonce: t.nonce,
900
900
  speedy: t.speedy,
901
901
  prepend: t.prepend,
@@ -1016,16 +1016,16 @@ var tr = {
1016
1016
  case "animationName":
1017
1017
  if (typeof r == "string")
1018
1018
  return r.replace(nr, function(n, a, i) {
1019
- return X = {
1019
+ return K = {
1020
1020
  name: a,
1021
1021
  styles: i,
1022
- next: X
1022
+ next: K
1023
1023
  }, a;
1024
1024
  });
1025
1025
  }
1026
1026
  return tr[t] !== 1 && !ft(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
1027
1027
  };
1028
- function pe(e, t, r) {
1028
+ function he(e, t, r) {
1029
1029
  if (r == null)
1030
1030
  return "";
1031
1031
  var n = r;
@@ -1037,21 +1037,21 @@ function pe(e, t, r) {
1037
1037
  case "object": {
1038
1038
  var a = r;
1039
1039
  if (a.anim === 1)
1040
- return X = {
1040
+ return K = {
1041
1041
  name: a.name,
1042
1042
  styles: a.styles,
1043
- next: X
1043
+ next: K
1044
1044
  }, a.name;
1045
1045
  var i = r;
1046
1046
  if (i.styles !== void 0) {
1047
- var s = i.next;
1048
- if (s !== void 0)
1049
- for (; s !== void 0; )
1050
- X = {
1051
- name: s.name,
1052
- styles: s.styles,
1053
- next: X
1054
- }, s = s.next;
1047
+ var o = i.next;
1048
+ if (o !== void 0)
1049
+ for (; o !== void 0; )
1050
+ K = {
1051
+ name: o.name,
1052
+ styles: o.styles,
1053
+ next: K
1054
+ }, o = o.next;
1055
1055
  var c = i.styles + ";";
1056
1056
  return c;
1057
1057
  }
@@ -1059,8 +1059,8 @@ function pe(e, t, r) {
1059
1059
  }
1060
1060
  case "function": {
1061
1061
  if (e !== void 0) {
1062
- var u = X, m = r(e);
1063
- return X = u, pe(e, t, m);
1062
+ var u = K, y = r(e);
1063
+ return K = u, he(e, t, y);
1064
1064
  }
1065
1065
  break;
1066
1066
  }
@@ -1068,64 +1068,64 @@ function pe(e, t, r) {
1068
1068
  var l = r;
1069
1069
  if (t == null)
1070
1070
  return l;
1071
- var p = t[l];
1072
- return p !== void 0 ? p : l;
1071
+ var f = t[l];
1072
+ return f !== void 0 ? f : l;
1073
1073
  }
1074
1074
  function ar(e, t, r) {
1075
1075
  var n = "";
1076
1076
  if (Array.isArray(r))
1077
1077
  for (var a = 0; a < r.length; a++)
1078
- n += pe(e, t, r[a]) + ";";
1078
+ n += he(e, t, r[a]) + ";";
1079
1079
  else
1080
1080
  for (var i in r) {
1081
- var s = r[i];
1082
- if (typeof s != "object") {
1083
- var c = s;
1081
+ var o = r[i];
1082
+ if (typeof o != "object") {
1083
+ var c = o;
1084
1084
  t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : He(c) && (n += Ae(i) + ":" + Xe(i, c) + ";");
1085
- } else if (Array.isArray(s) && typeof s[0] == "string" && (t == null || t[s[0]] === void 0))
1086
- for (var u = 0; u < s.length; u++)
1087
- He(s[u]) && (n += Ae(i) + ":" + Xe(i, s[u]) + ";");
1085
+ } else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0))
1086
+ for (var u = 0; u < o.length; u++)
1087
+ He(o[u]) && (n += Ae(i) + ":" + Xe(i, o[u]) + ";");
1088
1088
  else {
1089
- var m = pe(e, t, s);
1089
+ var y = he(e, t, o);
1090
1090
  switch (i) {
1091
1091
  case "animation":
1092
1092
  case "animationName": {
1093
- n += Ae(i) + ":" + m + ";";
1093
+ n += Ae(i) + ":" + y + ";";
1094
1094
  break;
1095
1095
  }
1096
1096
  default:
1097
- n += i + "{" + m + "}";
1097
+ n += i + "{" + y + "}";
1098
1098
  }
1099
1099
  }
1100
1100
  }
1101
1101
  return n;
1102
1102
  }
1103
- var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
1103
+ var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g, K;
1104
1104
  function ir(e, t, r) {
1105
1105
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1106
1106
  return e[0];
1107
1107
  var n = !0, a = "";
1108
- X = void 0;
1108
+ K = void 0;
1109
1109
  var i = e[0];
1110
1110
  if (i == null || i.raw === void 0)
1111
- n = !1, a += pe(r, t, i);
1111
+ n = !1, a += he(r, t, i);
1112
1112
  else {
1113
- var s = i;
1114
- a += s[0];
1113
+ var o = i;
1114
+ a += o[0];
1115
1115
  }
1116
1116
  for (var c = 1; c < e.length; c++)
1117
- if (a += pe(r, t, e[c]), n) {
1117
+ if (a += he(r, t, e[c]), n) {
1118
1118
  var u = i;
1119
1119
  a += u[c];
1120
1120
  }
1121
1121
  Ke.lastIndex = 0;
1122
- for (var m = "", l; (l = Ke.exec(a)) !== null; )
1123
- m += "-" + l[1];
1124
- var p = er(a) + m;
1122
+ for (var y = "", l; (l = Ke.exec(a)) !== null; )
1123
+ y += "-" + l[1];
1124
+ var f = er(a) + y;
1125
1125
  return {
1126
- name: p,
1126
+ name: f,
1127
1127
  styles: a,
1128
- next: X
1128
+ next: K
1129
1129
  };
1130
1130
  }
1131
1131
  var or = function(t) {
@@ -1163,8 +1163,8 @@ var lr = function(t) {
1163
1163
  var a;
1164
1164
  if (r) {
1165
1165
  var i = r.shouldForwardProp;
1166
- a = t.__emotion_forwardProp && i ? function(s) {
1167
- return t.__emotion_forwardProp(s) && i(s);
1166
+ a = t.__emotion_forwardProp && i ? function(o) {
1167
+ return t.__emotion_forwardProp(o) && i(o);
1168
1168
  } : i;
1169
1169
  }
1170
1170
  return typeof a != "function" && n && (a = t.__emotion_forwardProp), a;
@@ -1174,49 +1174,49 @@ var lr = function(t) {
1174
1174
  return Qt(r, n, a);
1175
1175
  }), null;
1176
1176
  }, yr = function e(t, r) {
1177
- var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i, s;
1178
- r !== void 0 && (i = r.label, s = r.target);
1179
- var c = Ze(t, r, n), u = c || Je(a), m = !u("as");
1177
+ var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i, o;
1178
+ r !== void 0 && (i = r.label, o = r.target);
1179
+ var c = Ze(t, r, n), u = c || Je(a), y = !u("as");
1180
1180
  return function() {
1181
- var l = arguments, p = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
1182
- if (i !== void 0 && p.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
1183
- p.push.apply(p, 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 b = l[0];
1186
- p.push(b[0]);
1187
- for (var x = l.length, g = 1; g < x; g++)
1188
- p.push(l[g], b[g]);
1185
+ var v = l[0];
1186
+ f.push(v[0]);
1187
+ for (var k = l.length, g = 1; g < k; g++)
1188
+ f.push(l[g], v[g]);
1189
1189
  }
1190
- var f = lr(function(h, y, w) {
1191
- var _ = m && h.as || a, A = "", S = [], R = h;
1192
- if (h.theme == null) {
1193
- R = {};
1194
- for (var d in h)
1195
- R[d] = h[d];
1196
- R.theme = Z.useContext(ur);
1190
+ var d = lr(function(b, p, x) {
1191
+ var _ = y && b.as || a, S = "", I = [], w = b;
1192
+ if (b.theme == null) {
1193
+ w = {};
1194
+ for (var h in b)
1195
+ w[h] = b[h];
1196
+ w.theme = Z.useContext(ur);
1197
1197
  }
1198
- typeof h.className == "string" ? A = Zt(y.registered, S, h.className) : h.className != null && (A = h.className + " ");
1199
- var I = ir(p.concat(S), y.registered, R);
1200
- A += y.key + "-" + I.name, s !== void 0 && (A += " " + s);
1201
- var C = m && c === void 0 ? Je(_) : u, E = {};
1202
- for (var $ in h)
1203
- m && $ === "as" || C($) && (E[$] = h[$]);
1204
- return E.className = A, w && (E.ref = w), /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement(mr, {
1205
- cache: y,
1206
- serialized: I,
1198
+ typeof b.className == "string" ? S = Zt(p.registered, I, b.className) : b.className != null && (S = b.className + " ");
1199
+ var C = ir(f.concat(I), p.registered, w);
1200
+ S += p.key + "-" + C.name, o !== void 0 && (S += " " + o);
1201
+ var R = y && c === void 0 ? Je(_) : u, O = {};
1202
+ for (var A in b)
1203
+ y && A === "as" || R(A) && (O[A] = b[A]);
1204
+ return O.className = S, x && (O.ref = x), /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement(mr, {
1205
+ cache: p,
1206
+ serialized: C,
1207
1207
  isStringTag: typeof _ == "string"
1208
- }), /* @__PURE__ */ Z.createElement(_, E));
1208
+ }), /* @__PURE__ */ Z.createElement(_, O));
1209
1209
  });
1210
- return f.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", f.defaultProps = t.defaultProps, f.__emotion_real = f, f.__emotion_base = a, f.__emotion_styles = p, f.__emotion_forwardProp = c, Object.defineProperty(f, "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
- return "." + s;
1212
+ return "." + o;
1213
1213
  }
1214
- }), f.withComponent = function(h, y) {
1215
- var w = e(h, Oe({}, r, y, {
1216
- shouldForwardProp: Ze(f, y, !0)
1214
+ }), d.withComponent = function(b, p) {
1215
+ var x = e(b, Oe({}, r, p, {
1216
+ shouldForwardProp: Ze(d, p, !0)
1217
1217
  }));
1218
- return w.apply(void 0, p);
1219
- }, f;
1218
+ return x.apply(void 0, f);
1219
+ }, d;
1220
1220
  };
1221
1221
  }, gr = [
1222
1222
  "a",
@@ -1402,23 +1402,15 @@ const vr = ie.div`
1402
1402
  `, Ne = ({ type: e, children: t, className: r, icon: n, action: a }) => N.jsxs(vr, { type: e, className: r, children: [n && N.jsx("span", { children: n }), N.jsx("span", { children: t }), a && N.jsx("span", { children: a })] }), Qe = ie.div`
1403
1403
  width: ${({ width: e }) => e || "100%"};
1404
1404
  height: ${({ height: e }) => e || "100%"};
1405
- border-radius: 0px !important; /* Force remove rounded corners */
1406
- box-shadow: none !important; /* Force remove shadow */
1405
+ border-radius: 0px !important; /* Force remove rounded corners on container */
1406
+ box-shadow: none !important; /* Remove default border/halo */
1407
+ border: none !important;
1408
+ background: transparent !important;
1407
1409
  position: relative;
1408
1410
  z-index: 1002;
1409
1411
 
1410
1412
  /* Hide specific elements inside the player */
1411
1413
  ${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((t) => `.${t} { display: none !important; }`).join("")}
1412
-
1413
- /* Remove rounded corners from all child elements */
1414
- * {
1415
- border-radius: 0px !important;
1416
- }
1417
-
1418
- /* Remove rounded corners from video element */
1419
- video {
1420
- border-radius: 0px !important;
1421
- }
1422
1414
  `, br = ie.div`
1423
1415
  position: fixed;
1424
1416
  top: 0;
@@ -1432,27 +1424,27 @@ const vr = ie.div`
1432
1424
  z-index: 1000;
1433
1425
  pointer-events: auto;
1434
1426
  `, xr = ie.div`
1435
- position: relative;
1436
- width: 100%; /* Default for mobile */
1437
- max-width: 100%;
1438
- aspect-ratio: 9/16;
1439
- height: auto;
1440
- z-index: 1001;
1427
+ position: relative;
1428
+ width: min(360px, 100%);
1429
+ max-width: 360px;
1430
+ aspect-ratio: 9 / 16;
1431
+ height: auto;
1432
+ z-index: 1001;
1441
1433
 
1442
- /* Desktop styles (min-width: 768px) */
1443
- @media (min-width: 768px) {
1444
- width: min(70vw, 960px); /* Responsive width for desktop, capped at 960px */
1445
- }
1434
+ @media (max-width: 420px) {
1435
+ width: 100%;
1436
+ max-width: 100%;
1437
+ }
1446
1438
  `, wr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, et = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, kr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}`, Pr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Be = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Ce = /* @__PURE__ */ new Map(), Er = (e, t) => {
1447
- const [r, n] = Y(!1), [a, i] = Y(null);
1448
- return xe(() => {
1449
- let s = null, c, u = 0;
1450
- const m = 3;
1439
+ const [r, n] = q(!1), [a, i] = q(null);
1440
+ return de(() => {
1441
+ let o = null, c, u = 0;
1442
+ const y = 3;
1451
1443
  let l;
1452
1444
  try {
1453
1445
  l = t || Pr(e || "latest");
1454
- } catch (x) {
1455
- const g = x instanceof Error ? x.message : String(x);
1446
+ } catch (k) {
1447
+ const g = k instanceof Error ? k.message : String(k);
1456
1448
  i(`Failed to resolve script URL: ${g}`), n(!1);
1457
1449
  return;
1458
1450
  }
@@ -1464,123 +1456,123 @@ const vr = ie.div`
1464
1456
  Ce.set(l, !0), n(!0), i(null);
1465
1457
  return;
1466
1458
  }
1467
- const b = () => {
1468
- s = document.createElement("script"), s.src = l, s.async = !0, c = window.setTimeout(() => {
1459
+ const v = () => {
1460
+ o = document.createElement("script"), o.src = l, o.async = !0, c = window.setTimeout(() => {
1469
1461
  n(!1), i(`Loading script timed out: ${l}`);
1470
- }, 1e4), s.onload = () => {
1462
+ }, 1e4), o.onload = () => {
1471
1463
  clearTimeout(c), Ce.set(l, !0), n(!0), i(null);
1472
- }, s.onerror = () => {
1473
- clearTimeout(c), u++, u < m ? setTimeout(b, 1e3 * u) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
1474
- }, document.body.appendChild(s);
1464
+ }, o.onerror = () => {
1465
+ clearTimeout(c), u++, u < y ? setTimeout(v, 1e3 * u) : (n(!1), i(`Failed to load VP Player script after ${y} attempts: ${l}`));
1466
+ }, document.body.appendChild(o);
1475
1467
  };
1476
- return b(), () => {
1477
- clearTimeout(c), s && document.body.contains(s) && document.body.removeChild(s);
1468
+ return v(), () => {
1469
+ clearTimeout(c), o && document.body.contains(o) && document.body.removeChild(o);
1478
1470
  };
1479
1471
  }, [e, t]), { isLoaded: r, error: a };
1480
1472
  }, _r = {}, ue = /* @__PURE__ */ new Map(), Sr = 3e4, Te = 5, Rr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
1481
- const [i, s] = Y(null), [c, u] = Y(null), [m, l] = Y(!1), [p, b] = Y(null), x = a || (typeof _r < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1482
- return xe(() => {
1473
+ const [i, o] = q(null), [c, u] = q(null), [y, l] = q(!1), [f, v] = q(null), k = a || (typeof _r < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1474
+ return de(() => {
1483
1475
  const g = t ? `video:${t}` : r ? `playlist:${r}` : null;
1484
1476
  if (!e || n || !t && !r) {
1485
- s(n || null), u(null), l(!1), b(null);
1477
+ o(n || null), u(null), l(!1), v(null);
1486
1478
  return;
1487
1479
  }
1488
- if (!x) {
1489
- l(!1), b("No API key provided");
1480
+ if (!k) {
1481
+ l(!1), v("No API key provided");
1490
1482
  return;
1491
1483
  }
1492
1484
  if (g && ue.has(g)) {
1493
- const A = ue.get(g);
1494
- s(A.url), u(A.playlist), l(!1), b(null);
1485
+ const S = ue.get(g);
1486
+ o(S.url), u(S.playlist), l(!1), v(null);
1495
1487
  return;
1496
1488
  }
1497
- let f = !0;
1498
- const h = new AbortController(), y = h.signal, _ = setTimeout(async () => {
1499
- var S, R, d, I;
1500
- if (!f)
1489
+ let d = !0;
1490
+ const b = new AbortController(), p = b.signal, _ = setTimeout(async () => {
1491
+ var I, w, h, C;
1492
+ if (!d)
1501
1493
  return;
1502
- l(!0), b(null);
1503
- let A = 0;
1504
- for (; A < Te && f; )
1494
+ l(!0), v(null);
1495
+ let S = 0;
1496
+ for (; S < Te && d; )
1505
1497
  try {
1506
- const C = t && !r ? wr(e, t) : et(e, r), E = setTimeout(() => h.abort(), Sr), $ = await fetch(C, {
1498
+ const R = t && !r ? wr(e, t) : et(e, r), O = setTimeout(() => b.abort(), Sr), A = await fetch(R, {
1507
1499
  method: "GET",
1508
1500
  headers: {
1509
- "api-key": x,
1501
+ "api-key": k,
1510
1502
  Accept: "application/json",
1511
1503
  "Cache-Control": "no-cache"
1512
1504
  // Prevent caching issues
1513
1505
  },
1514
- signal: y
1506
+ signal: p
1515
1507
  });
1516
- if (clearTimeout(E), !$.ok)
1517
- throw new Error(`Fetch failed with status ${$.status}`);
1518
- const D = await $.json();
1519
- if (!f)
1508
+ if (clearTimeout(O), !A.ok)
1509
+ throw new Error(`Fetch failed with status ${A.status}`);
1510
+ const M = await A.json();
1511
+ if (!d)
1520
1512
  return;
1521
1513
  if (t && !r) {
1522
- const j = (R = (S = D.result) == null ? void 0 : S.items) == null ? void 0 : R.find((U) => U.mediaId === t);
1523
- if (!(j != null && j.playbackUrl))
1514
+ const z = (w = (I = M.result) == null ? void 0 : I.items) == null ? void 0 : w.find(($) => $.mediaId === t);
1515
+ if (!(z != null && z.playbackUrl))
1524
1516
  throw new Error("Invalid video data");
1525
- s(j.playbackUrl), u(null), g && ue.set(g, { url: j.playbackUrl, playlist: null });
1517
+ o(z.playbackUrl), u(null), g && ue.set(g, { url: z.playbackUrl, playlist: null });
1526
1518
  } else {
1527
- if (!Array.isArray(D.result))
1519
+ if (!Array.isArray(M.result))
1528
1520
  throw new Error("Invalid playlist format");
1529
- const j = kr(e, r), U = await fetch(j, {
1521
+ const z = kr(e, r), $ = await fetch(z, {
1530
1522
  method: "GET",
1531
1523
  headers: {
1532
- "api-key": x,
1524
+ "api-key": k,
1533
1525
  Accept: "application/json",
1534
1526
  "Cache-Control": "no-cache"
1535
1527
  },
1536
- signal: y
1528
+ signal: p
1537
1529
  });
1538
- if (U.ok) {
1539
- const q = await U.json();
1540
- let W = [...D.result];
1541
- if ((d = q.result) != null && d.playlistBackupState && ((I = q.result) != null && I.playlistBackupId)) {
1542
- const J = et(e, q.result.playlistBackupId), Q = await fetch(J, {
1530
+ if ($.ok) {
1531
+ const W = await $.json();
1532
+ let Y = [...M.result];
1533
+ if ((h = W.result) != null && h.playlistBackupState && ((C = W.result) != null && C.playlistBackupId)) {
1534
+ const Q = et(e, W.result.playlistBackupId), G = await fetch(Q, {
1543
1535
  method: "GET",
1544
1536
  headers: {
1545
- "api-key": x,
1537
+ "api-key": k,
1546
1538
  Accept: "application/json",
1547
1539
  "Cache-Control": "no-cache"
1548
1540
  },
1549
- signal: y
1541
+ signal: p
1550
1542
  });
1551
- if (Q.ok) {
1552
- const ee = await Q.json();
1543
+ if (G.ok) {
1544
+ const ee = await G.json();
1553
1545
  if (Array.isArray(ee.result)) {
1554
- const o = ee.result.map((v) => ({
1555
- ...v,
1546
+ const s = ee.result.map((m) => ({
1547
+ ...m,
1556
1548
  isBackupPlaylist: !0
1557
1549
  }));
1558
- W = [...W, ...o];
1550
+ Y = [...Y, ...s];
1559
1551
  }
1560
1552
  }
1561
1553
  }
1562
- u(W), s(null), g && ue.set(g, { url: null, playlist: W });
1554
+ u(Y), o(null), g && ue.set(g, { url: null, playlist: Y });
1563
1555
  } else
1564
- u(D.result), s(null), g && ue.set(g, { url: null, playlist: D.result });
1556
+ u(M.result), o(null), g && ue.set(g, { url: null, playlist: M.result });
1565
1557
  }
1566
1558
  break;
1567
- } catch (C) {
1568
- if (y.aborted) {
1569
- f && b("Request timed out");
1559
+ } catch (R) {
1560
+ if (p.aborted) {
1561
+ d && v("Request timed out");
1570
1562
  break;
1571
1563
  }
1572
- if (A++, A >= Te) {
1573
- const E = C instanceof Error ? C.message : String(C);
1574
- f && b(`Failed after ${Te} attempts: ${E}`);
1564
+ if (S++, S >= Te) {
1565
+ const O = R instanceof Error ? R.message : String(R);
1566
+ d && v(`Failed after ${Te} attempts: ${O}`);
1575
1567
  } else
1576
- await new Promise((E) => setTimeout(E, 2e3));
1568
+ await new Promise((O) => setTimeout(O, 2e3));
1577
1569
  }
1578
- f && l(!1);
1570
+ d && l(!1);
1579
1571
  }, 100);
1580
1572
  return () => {
1581
- f = !1, clearTimeout(_), h.abort();
1573
+ d = !1, clearTimeout(_), b.abort();
1582
1574
  };
1583
- }, [x, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: p };
1575
+ }, [k, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: y, error: f };
1584
1576
  }, Ar = {
1585
1577
  projectId: "vp-player-projectId",
1586
1578
  video: {
@@ -1644,13 +1636,13 @@ const vr = ie.div`
1644
1636
  isVerticalPlayer: i
1645
1637
  // Distinguish between VP Player types
1646
1638
  }) => {
1647
- var l, p, b, x, g, f, h, y, w, _, A, S, R;
1648
- const s = { ...Ar, ...a }, c = { ...s.config, ...a.config };
1639
+ var l, f, v, k, g, d, b, p, x, _, S, I, w;
1640
+ const o = { ...Ar, ...a }, c = { ...o.config, ...a.config };
1649
1641
  if (e)
1650
1642
  return {
1651
- ...s,
1643
+ ...o,
1652
1644
  video: {
1653
- ...s.video,
1645
+ ...o.video,
1654
1646
  file: e,
1655
1647
  playlist: void 0
1656
1648
  },
@@ -1658,23 +1650,23 @@ const vr = ie.div`
1658
1650
  };
1659
1651
  if (t)
1660
1652
  return {
1661
- ...s,
1653
+ ...o,
1662
1654
  video: {
1663
- ...s.video,
1655
+ ...o.video,
1664
1656
  file: t,
1665
1657
  playlist: void 0
1666
1658
  },
1667
1659
  config: c
1668
1660
  };
1669
1661
  if (r && r.length > 0) {
1670
- const d = ((p = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : p.playlistVideoIndex) ?? ((b = a == null ? void 0 : a.config) == null ? void 0 : b.playlistVideoIndex) ?? 0;
1662
+ const h = ((f = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : f.playlistVideoIndex) ?? ((v = a == null ? void 0 : a.config) == null ? void 0 : v.playlistVideoIndex) ?? 0;
1671
1663
  return i ? {
1672
- ...s,
1664
+ ...o,
1673
1665
  projectId: n || "vp-player-projectId",
1674
1666
  video: {
1675
- ...s.video,
1667
+ ...o.video,
1676
1668
  // Set first video file (index 0) to avoid VP Player duplication
1677
- file: (x = r[0]) == null ? void 0 : x.hlsUrl,
1669
+ file: (k = r[0]) == null ? void 0 : k.hlsUrl,
1678
1670
  title: (g = r[0]) == null ? void 0 : g.title,
1679
1671
  // thumbnail: fetchedPlaylist[0]?.thumbnailUrl,
1680
1672
  playlist: {
@@ -1682,62 +1674,62 @@ const vr = ie.div`
1682
1674
  playlistId: "",
1683
1675
  // Will be set by API
1684
1676
  // Use original playlistVideoIndex - VP Player will navigate to it
1685
- playlistVideoIndex: Number(d),
1677
+ playlistVideoIndex: Number(h),
1686
1678
  // Remove first video from playlist to avoid duplication (already in file)
1687
- videos: r.slice(1).map((C, E) => ({
1688
- videoId: String(E + 1),
1679
+ videos: r.slice(1).map((R, O) => ({
1680
+ videoId: String(O + 1),
1689
1681
  // Keep original IDs
1690
- title: C.title,
1691
- file: C.hlsUrl,
1692
- thumbnailUrl: C.thumbnailUrl,
1693
- duration: C.duration
1682
+ title: R.title,
1683
+ file: R.hlsUrl,
1684
+ thumbnailUrl: R.thumbnailUrl,
1685
+ duration: R.duration
1694
1686
  }))
1695
1687
  }
1696
1688
  },
1697
1689
  config: c
1698
1690
  } : {
1699
- ...s,
1691
+ ...o,
1700
1692
  projectId: n || "vp-player-projectId",
1701
1693
  video: {
1702
- ...s.video,
1703
- file: ((f = r[Number(d)]) == null ? void 0 : f.hlsUrl) || ((h = r[0]) == null ? void 0 : h.hlsUrl) || "",
1704
- title: ((y = r[Number(d)]) == null ? void 0 : y.title) || ((w = r[0]) == null ? void 0 : w.title),
1705
- thumbnail: ((_ = r[Number(d)]) == null ? void 0 : _.thumbnailUrl) || ((A = r[0]) == null ? void 0 : A.thumbnailUrl),
1694
+ ...o.video,
1695
+ file: ((d = r[Number(h)]) == null ? void 0 : d.hlsUrl) || ((b = r[0]) == null ? void 0 : b.hlsUrl) || "",
1696
+ title: ((p = r[Number(h)]) == null ? void 0 : p.title) || ((x = r[0]) == null ? void 0 : x.title),
1697
+ thumbnail: ((_ = r[Number(h)]) == null ? void 0 : _.thumbnailUrl) || ((S = r[0]) == null ? void 0 : S.thumbnailUrl),
1706
1698
  playlist: {
1707
1699
  state: !0,
1708
1700
  // playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
1709
- playlistVideoIndex: Number(d),
1710
- videos: r.map((C, E) => ({
1711
- videoId: String(E),
1712
- title: C.title,
1713
- file: C.hlsUrl,
1714
- thumbnailUrl: C.thumbnailUrl,
1715
- duration: C.duration
1701
+ playlistVideoIndex: Number(h),
1702
+ videos: r.map((R, O) => ({
1703
+ videoId: String(O),
1704
+ title: R.title,
1705
+ file: R.hlsUrl,
1706
+ thumbnailUrl: R.thumbnailUrl,
1707
+ duration: R.duration
1716
1708
  }))
1717
1709
  }
1718
1710
  },
1719
1711
  config: c
1720
1712
  };
1721
1713
  }
1722
- const u = ((S = a == null ? void 0 : a.video) == null ? void 0 : S.playlist) || s.video.playlist, m = (R = a == null ? void 0 : a.video) == null ? void 0 : R.file;
1723
- if (m)
1714
+ const u = ((I = a == null ? void 0 : a.video) == null ? void 0 : I.playlist) || o.video.playlist, y = (w = a == null ? void 0 : a.video) == null ? void 0 : w.file;
1715
+ if (y)
1724
1716
  return {
1725
- ...s,
1717
+ ...o,
1726
1718
  video: {
1727
- ...s.video,
1728
- file: m,
1719
+ ...o.video,
1720
+ file: y,
1729
1721
  playlist: void 0
1730
1722
  // No playlist, just one video
1731
1723
  },
1732
1724
  config: c
1733
1725
  };
1734
1726
  if (u != null && u.videos && u.videos.length > 0) {
1735
- const d = u.videos[Number(u.playlistVideoIndex) || 0];
1727
+ const h = u.videos[Number(u.playlistVideoIndex) || 0];
1736
1728
  return {
1737
- ...s,
1729
+ ...o,
1738
1730
  video: {
1739
- ...s.video,
1740
- file: (d == null ? void 0 : d.file) || "",
1731
+ ...o.video,
1732
+ file: (h == null ? void 0 : h.file) || "",
1741
1733
  playlist: {
1742
1734
  ...u,
1743
1735
  state: u.state ?? !0,
@@ -1747,7 +1739,7 @@ const vr = ie.div`
1747
1739
  }
1748
1740
  },
1749
1741
  config: {
1750
- ...s.config,
1742
+ ...o.config,
1751
1743
  ...a == null ? void 0 : a.config
1752
1744
  }
1753
1745
  };
@@ -1758,153 +1750,158 @@ const vr = ie.div`
1758
1750
  return;
1759
1751
  const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
1760
1752
  return r ? r[2] : void 0;
1761
- }, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: m = !1 }) => {
1762
- const l = Me(null), p = Me(null), { isLoaded: b, error: x } = Er(r, s), g = t || Tr(s), [f, h] = Y(null), { fetchedPlaybackUrl: y, fetchedPlaylist: w, isLoading: _, error: A } = Rr({
1753
+ }, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: o, config: c = {}, apiKey: u, isReels: y = !1, onPlaylistData: l }) => {
1754
+ const f = Me(null), v = Me(null), { isLoaded: k, error: g } = Er(r, o), d = t || Tr(o), [b, p] = q(null), { fetchedPlaybackUrl: x, fetchedPlaylist: _, isLoading: S, error: I } = Rr({
1763
1755
  projectId: a,
1764
- videoId: g,
1756
+ videoId: d,
1765
1757
  playlistId: i,
1766
1758
  videoUrl: n,
1767
1759
  apiKey: u
1768
- }), S = Be(e, g), R = rt(() => {
1769
- const d = c.config || {}, I = m && !d.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : d.size || { sizeType: "FIXED", width: "100%" };
1760
+ }), w = Be(e, d);
1761
+ de(() => {
1762
+ _ && l && l(_);
1763
+ }, [_, l]);
1764
+ const h = rt(() => {
1765
+ const C = c.config || {}, R = y && !C.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : C.size || { sizeType: "FIXED", width: "100%" };
1770
1766
  return {
1771
1767
  ...c,
1772
1768
  config: {
1773
- ...d,
1774
- size: I
1769
+ ...C,
1770
+ size: R
1775
1771
  }
1776
1772
  };
1777
- }, [c, m]);
1778
- return xe(() => {
1779
- if (x) {
1780
- h(x);
1773
+ }, [c, y]);
1774
+ return de(() => {
1775
+ if (g) {
1776
+ p(g);
1781
1777
  return;
1782
1778
  }
1783
- if (!b || _ && !n)
1779
+ if (!k || S && !n)
1784
1780
  return;
1785
- let d = !0;
1786
- const C = setTimeout(async () => {
1781
+ let C = !0;
1782
+ const O = setTimeout(async () => {
1787
1783
  try {
1788
- const E = s == null ? void 0 : s.includes("vertical-player");
1789
- if (document.querySelectorAll('[id*="player"]').forEach((W) => {
1790
- var Q, ee;
1791
- const J = W.id;
1792
- if (J !== S)
1784
+ const A = o == null ? void 0 : o.includes("vertical-player");
1785
+ if (document.querySelectorAll('[id*="player"]').forEach((Q) => {
1786
+ var ee, s;
1787
+ const G = Q.id;
1788
+ if (G !== w)
1793
1789
  try {
1794
- const o = E ? (Q = window.vpVerticalPlayer) == null ? void 0 : Q.call(window, J) : (ee = window.vpPlayer) == null ? void 0 : ee.call(window, J);
1795
- o != null && o.destroy && o.destroy();
1796
- } catch (o) {
1797
- console.warn(`Failed to destroy existing player ${J}:`, o);
1790
+ const m = A ? (ee = window.vpVerticalPlayer) == null ? void 0 : ee.call(window, G) : (s = window.vpPlayer) == null ? void 0 : s.call(window, G);
1791
+ m != null && m.destroy && m.destroy();
1792
+ } catch (m) {
1793
+ console.warn(`Failed to destroy existing player ${G}:`, m);
1798
1794
  }
1799
- }), await new Promise((W) => setTimeout(W, 100)), !d || !l.current)
1795
+ }), await new Promise((Q) => setTimeout(Q, 100)), !C || !f.current)
1800
1796
  return;
1801
- if (!document.getElementById(S)) {
1802
- h("DOM element not found after cleanup.");
1797
+ if (!document.getElementById(w)) {
1798
+ p("DOM element not found after cleanup.");
1803
1799
  return;
1804
1800
  }
1805
1801
  if (!window.vpPlayer && !window.vpVerticalPlayer) {
1806
- h("VP Player script not loaded.");
1802
+ p("VP Player script not loaded.");
1807
1803
  return;
1808
1804
  }
1809
- const j = E ? window.vpVerticalPlayer : window.vpPlayer;
1810
- if (!j) {
1811
- h(`VP ${E ? "Vertical " : ""}Player script not loaded.`);
1805
+ const $ = A ? window.vpVerticalPlayer : window.vpPlayer;
1806
+ if (!$) {
1807
+ p(`VP ${A ? "Vertical " : ""}Player script not loaded.`);
1812
1808
  return;
1813
1809
  }
1814
- const U = Cr({
1810
+ const W = Cr({
1815
1811
  videoUrl: n,
1816
- fetchedPlaybackUrl: y ?? void 0,
1817
- fetchedPlaylist: w ?? void 0,
1812
+ fetchedPlaybackUrl: x ?? void 0,
1813
+ fetchedPlaylist: _ ?? void 0,
1818
1814
  projectId: a,
1819
- config: R,
1820
- isVerticalPlayer: E
1815
+ config: h,
1816
+ isVerticalPlayer: A
1821
1817
  // Pass player type to config builder
1822
- }), q = j(S);
1823
- if (!q) {
1824
- h(`Failed to create VP ${E ? "Vertical " : ""}Player instance.`);
1818
+ }), Y = $(w);
1819
+ if (!Y) {
1820
+ p(`Failed to create VP ${A ? "Vertical " : ""}Player instance.`);
1825
1821
  return;
1826
1822
  }
1827
- d && l.current && (q.setup(U), p.current = q, h(null));
1828
- } catch (E) {
1829
- if (d) {
1830
- const $ = E instanceof Error ? E.message : String(E);
1831
- h($), console.error("VP Player initialization error:", E);
1823
+ C && f.current && (Y.setup(W), v.current = Y, p(null));
1824
+ } catch (A) {
1825
+ if (C) {
1826
+ const M = A instanceof Error ? A.message : String(A);
1827
+ p(M), console.error("VP Player initialization error:", A);
1832
1828
  }
1833
1829
  }
1834
1830
  }, 150);
1835
1831
  return () => {
1836
- d = !1, clearTimeout(C);
1832
+ C = !1, clearTimeout(O);
1837
1833
  };
1838
1834
  }, [
1839
- b,
1840
- _,
1841
- n,
1842
- y,
1843
- w,
1844
- a,
1845
- R,
1835
+ k,
1846
1836
  S,
1837
+ n,
1847
1838
  x,
1848
- s
1849
- ]), xe(() => () => {
1850
- if (p.current) {
1839
+ _,
1840
+ a,
1841
+ h,
1842
+ w,
1843
+ g,
1844
+ o
1845
+ ]), de(() => () => {
1846
+ if (v.current) {
1851
1847
  try {
1852
- p.current.destroy && p.current.destroy();
1853
- } catch (I) {
1854
- console.warn(`Failed to destroy player ${S}:`, I);
1848
+ v.current.destroy && v.current.destroy();
1849
+ } catch (R) {
1850
+ console.warn(`Failed to destroy player ${w}:`, R);
1855
1851
  }
1856
- p.current = null;
1852
+ v.current = null;
1857
1853
  }
1858
- const d = document.getElementById(S);
1859
- d && (d.innerHTML = "");
1860
- }, [S]), {
1861
- playerRef: l,
1862
- playerInstanceRef: p,
1863
- isScriptLoaded: b,
1864
- isLoading: _,
1865
- error: A || f || x
1854
+ const C = document.getElementById(w);
1855
+ C && (C.innerHTML = "");
1856
+ }, [w]), {
1857
+ playerRef: f,
1858
+ playerInstanceRef: v,
1859
+ isScriptLoaded: k,
1860
+ isLoading: S,
1861
+ error: I || b || g
1866
1862
  };
1867
- }, Or = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: m = !1, hiddenClasses: l = [], onClose: p, className: b }) => {
1868
- var C, E, $, D;
1869
- const { playerRef: x, playerInstanceRef: g, isScriptLoaded: f, isLoading: h, error: y } = Ir({
1863
+ }, Or = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: o, config: c = {}, apiKey: u, isReels: y = !1, hiddenClasses: l = [], onClose: f, className: v, onPlaylistData: k }) => {
1864
+ var O, A, M, z;
1865
+ const { playerRef: g, playerInstanceRef: d, isScriptLoaded: b, isLoading: p, error: x } = Ir({
1870
1866
  playerId: e,
1871
1867
  videoId: t,
1872
1868
  version: r,
1873
1869
  videoUrl: n,
1874
1870
  projectId: a,
1875
1871
  playlistId: i,
1876
- scriptUrl: s,
1872
+ scriptUrl: o,
1877
1873
  config: c,
1878
1874
  apiKey: u,
1879
- isReels: m
1880
- }), [w, _] = Y(!0), A = () => m && _(!0), S = () => {
1881
- var j, U;
1882
- _(!1), (U = (j = g.current) == null ? void 0 : j.play) == null || U.call(j), p == null || p();
1883
- }, R = (E = (C = c == null ? void 0 : c.config) == null ? void 0 : C.size) != null && E.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, d = (D = ($ = c == null ? void 0 : c.config) == null ? void 0 : $.size) != null && D.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, I = Be(e, t);
1884
- return y ? N.jsxs(Ne, { type: "error", children: ["An error occurred: ", y] }) : h || !f ? N.jsx(Ne, { type: "loading", children: "Loading..." }) : N.jsxs(N.Fragment, { children: [m && !w ? N.jsx("div", { onClick: A }) : null, !m && N.jsx("div", { children: N.jsx(Qe, { id: I, ref: x, width: R || "100%", height: d || "auto", $hiddenClasses: l, className: b }) }, I), m && w && N.jsx(br, { onClick: S, className: b, children: N.jsx(xr, { className: b, onClick: (j) => j.stopPropagation(), children: N.jsx("div", { children: N.jsx(Qe, { id: I, ref: x, width: "100%", height: "auto", $hiddenClasses: l, className: b }) }, I) }) })] });
1875
+ isReels: y,
1876
+ onPlaylistData: k
1877
+ }), [_, S] = q(!0), I = () => y && S(!0), w = () => {
1878
+ var $, W;
1879
+ S(!1), (W = ($ = d.current) == null ? void 0 : $.play) == null || W.call($), f == null || f();
1880
+ }, h = (A = (O = c == null ? void 0 : c.config) == null ? void 0 : O.size) != null && A.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, C = (z = (M = c == null ? void 0 : c.config) == null ? void 0 : M.size) != null && z.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, R = Be(e, t);
1881
+ return x ? N.jsxs(Ne, { type: "error", children: ["An error occurred: ", x] }) : p || !b ? N.jsx(Ne, { type: "loading", children: "Loading..." }) : N.jsxs(N.Fragment, { children: [y && !_ ? N.jsx("div", { onClick: I }) : null, !y && N.jsx("div", { children: N.jsx(Qe, { id: R, ref: g, width: h || "100%", height: C || "auto", $hiddenClasses: l, className: v }) }, R), y && _ && N.jsx(br, { onClick: w, className: v, children: N.jsx(xr, { className: v, onClick: ($) => $.stopPropagation(), children: N.jsx("div", { children: N.jsx(Qe, { id: R, ref: g, width: "100%", height: "auto", $hiddenClasses: l, className: v }) }, R) }) })] });
1885
1882
  }, ht = vt(void 0), $r = ({ children: e }) => {
1886
- const [t, r] = Y(!1), [n, a] = Y(null), [i, s] = Y(null), c = Ue((l) => {
1883
+ const [t, r] = q(!1), [n, a] = q(null), [i, o] = q(null), c = Ue((l) => {
1887
1884
  try {
1888
- const p = Be(l.playerId, l.videoId);
1889
- a({ ...l, playerId: p }), r(!0), s(null);
1885
+ const f = Be(l.playerId, l.videoId);
1886
+ a({ ...l, playerId: f }), r(!0), o(null);
1890
1887
  } catch {
1891
- s("Failed to show player.");
1888
+ o("Failed to show player.");
1892
1889
  }
1893
1890
  }, []), u = Ue(() => {
1894
- r(!1), a(null), s(null);
1895
- }, []), m = rt(() => ({
1891
+ r(!1), a(null), o(null);
1892
+ }, []), y = rt(() => ({
1896
1893
  showPlayer: c,
1897
1894
  hidePlayer: u,
1898
1895
  isPlayerVisible: t,
1899
1896
  playerParams: n
1900
1897
  }), [c, u, t, n]);
1901
- return N.jsxs(ht.Provider, { value: m, children: [e, i && N.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && N.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: u, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
1898
+ return N.jsxs(ht.Provider, { value: y, children: [e, i && N.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && N.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: u, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
1902
1899
  }, Nr = () => {
1903
1900
  const e = tt(ht);
1904
1901
  if (!e)
1905
1902
  throw new Error("useVPPlayer must be used within a VPPlayerProvider");
1906
1903
  return e;
1907
- }, Fr = {
1904
+ }, Lr = {
1908
1905
  projectId: "vp-player-projectId",
1909
1906
  video: {
1910
1907
  file: "",
@@ -1937,7 +1934,7 @@ const vr = ie.div`
1937
1934
  shareButton: !0
1938
1935
  }
1939
1936
  }
1940
- }, Lr = {
1937
+ }, Fr = {
1941
1938
  config: {
1942
1939
  autostartOnLoad: { state: !0, onMobile: !0, onData: !0 },
1943
1940
  muted: !0
@@ -1990,11 +1987,11 @@ export {
1990
1987
  xr as PlayerWrapper,
1991
1988
  Or as VPPlayer,
1992
1989
  $r as VPPlayerProvider,
1993
- Lr as baseConfig,
1990
+ Fr as baseConfig,
1994
1991
  Ie as baseConfigWithAds,
1995
1992
  Vr as baseConfigWithAutoplay,
1996
1993
  Cr as buildVPPlayerConfig,
1997
- Fr as defaultVPPlayerConfig,
1994
+ Lr as defaultVPPlayerConfig,
1998
1995
  Tr as extractVideoId,
1999
1996
  Br as getAdConfig,
2000
1997
  Nr as useVPPlayer,