@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.19 → 1.0.31-beta.20

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
- import * as fe from "react";
2
- import $r, { forwardRef as br, useContext as jr, useState as Ne, useEffect as Ee, useRef as ne, useId as Ir, useMemo as We, useImperativeHandle as Mr } from "react";
3
- var Oe = { exports: {} }, ke = {};
1
+ import * as ue from "react";
2
+ import jr, { forwardRef as xr, useContext as Ir, useState as Ve, useEffect as Se, useRef as de, useId as Mr, useMemo as De, useImperativeHandle as Fr } from "react";
3
+ var Ce = { exports: {} }, we = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.js
@@ -10,17 +10,17 @@ var Oe = { exports: {} }, ke = {};
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- var ir;
14
- function Fr() {
15
- if (ir) return ke;
16
- ir = 1;
13
+ var or;
14
+ function Vr() {
15
+ if (or) return we;
16
+ or = 1;
17
17
  var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
18
18
  function t(n, a, s) {
19
19
  var u = null;
20
20
  if (s !== void 0 && (u = "" + s), a.key !== void 0 && (u = "" + a.key), "key" in a) {
21
21
  s = {};
22
- for (var d in a)
23
- d !== "key" && (s[d] = a[d]);
22
+ for (var p in a)
23
+ p !== "key" && (s[p] = a[p]);
24
24
  } else s = a;
25
25
  return a = s.ref, {
26
26
  $$typeof: e,
@@ -30,9 +30,9 @@ function Fr() {
30
30
  props: s
31
31
  };
32
32
  }
33
- return ke.Fragment = r, ke.jsx = t, ke.jsxs = t, ke;
33
+ return we.Fragment = r, we.jsx = t, we.jsxs = t, we;
34
34
  }
35
- var Pe = {};
35
+ var ke = {};
36
36
  /**
37
37
  * @license React
38
38
  * react-jsx-runtime.development.js
@@ -42,263 +42,263 @@ var Pe = {};
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
- var or;
46
- function Vr() {
47
- return or || (or = 1, process.env.NODE_ENV !== "production" && (function() {
48
- function e(i) {
49
- if (i == null) return null;
50
- if (typeof i == "function")
51
- return i.$$typeof === Y ? null : i.displayName || i.name || null;
52
- if (typeof i == "string") return i;
53
- switch (i) {
45
+ var sr;
46
+ function Nr() {
47
+ return sr || (sr = 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 === ee ? null : o.displayName || o.name || null;
52
+ if (typeof o == "string") return o;
53
+ switch (o) {
54
54
  case k:
55
55
  return "Fragment";
56
- case A:
56
+ case C:
57
57
  return "Profiler";
58
58
  case P:
59
59
  return "StrictMode";
60
- case M:
60
+ case F:
61
61
  return "Suspense";
62
62
  case S:
63
63
  return "SuspenseList";
64
- case ee:
64
+ case q:
65
65
  return "Activity";
66
66
  }
67
- if (typeof i == "object")
68
- switch (typeof i.tag == "number" && console.error(
67
+ if (typeof o == "object")
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
- ), i.$$typeof) {
71
- case b:
70
+ ), o.$$typeof) {
71
+ case x:
72
72
  return "Portal";
73
73
  case L:
74
- return i.displayName || "Context";
75
- case F:
76
- return (i._context.displayName || "Context") + ".Consumer";
74
+ return o.displayName || "Context";
75
+ case V:
76
+ return (o._context.displayName || "Context") + ".Consumer";
77
77
  case z:
78
- var m = i.render;
79
- return i = i.displayName, i || (i = m.displayName || m.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
80
- case de:
81
- return m = i.displayName || null, m !== null ? m : e(i.type) || "Memo";
82
- case G:
83
- m = i._payload, i = i._init;
78
+ var h = o.render;
79
+ return o = o.displayName, o || (o = h.displayName || h.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
80
+ case te:
81
+ return h = o.displayName || null, h !== null ? h : e(o.type) || "Memo";
82
+ case ce:
83
+ h = o._payload, o = o._init;
84
84
  try {
85
- return e(i(m));
85
+ return e(o(h));
86
86
  } catch {
87
87
  }
88
88
  }
89
89
  return null;
90
90
  }
91
- function r(i) {
92
- return "" + i;
91
+ function r(o) {
92
+ return "" + o;
93
93
  }
94
- function t(i) {
94
+ function t(o) {
95
95
  try {
96
- r(i);
97
- var m = !1;
96
+ r(o);
97
+ var h = !1;
98
98
  } catch {
99
- m = !0;
99
+ h = !0;
100
100
  }
101
- if (m) {
102
- m = console;
103
- var E = m.error, j = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
104
- return E.call(
105
- m,
101
+ if (h) {
102
+ h = console;
103
+ var O = h.error, I = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
104
+ return O.call(
105
+ h,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
- j
108
- ), r(i);
107
+ I
108
+ ), r(o);
109
109
  }
110
110
  }
111
- function n(i) {
112
- if (i === k) return "<>";
113
- if (typeof i == "object" && i !== null && i.$$typeof === G)
111
+ function n(o) {
112
+ if (o === k) return "<>";
113
+ if (typeof o == "object" && o !== null && o.$$typeof === ce)
114
114
  return "<...>";
115
115
  try {
116
- var m = e(i);
117
- return m ? "<" + m + ">" : "<...>";
116
+ var h = e(o);
117
+ return h ? "<" + h + ">" : "<...>";
118
118
  } catch {
119
119
  return "<...>";
120
120
  }
121
121
  }
122
122
  function a() {
123
- var i = pe.A;
124
- return i === null ? null : i.getOwner();
123
+ var o = X.A;
124
+ return o === null ? null : o.getOwner();
125
125
  }
126
126
  function s() {
127
127
  return Error("react-stack-top-frame");
128
128
  }
129
- function u(i) {
130
- if (H.call(i, "key")) {
131
- var m = Object.getOwnPropertyDescriptor(i, "key").get;
132
- if (m && m.isReactWarning) return !1;
129
+ function u(o) {
130
+ if (pe.call(o, "key")) {
131
+ var h = Object.getOwnPropertyDescriptor(o, "key").get;
132
+ if (h && h.isReactWarning) return !1;
133
133
  }
134
- return i.key !== void 0;
134
+ return o.key !== void 0;
135
135
  }
136
- function d(i, m) {
137
- function E() {
138
- Z || (Z = !0, console.error(
136
+ function p(o, h) {
137
+ function O() {
138
+ ne || (ne = !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
- m
140
+ h
141
141
  ));
142
142
  }
143
- E.isReactWarning = !0, Object.defineProperty(i, "key", {
144
- get: E,
143
+ O.isReactWarning = !0, Object.defineProperty(o, "key", {
144
+ get: O,
145
145
  configurable: !0
146
146
  });
147
147
  }
148
- function x() {
149
- var i = e(this.type);
150
- return he[i] || (he[i] = !0, console.error(
148
+ function w() {
149
+ var o = e(this.type);
150
+ return J[o] || (J[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
- )), i = this.props.ref, i !== void 0 ? i : null;
152
+ )), o = this.props.ref, o !== void 0 ? o : null;
153
153
  }
154
- function y(i, m, E, j, Q, o) {
155
- var c = E.ref;
156
- return i = {
157
- $$typeof: $,
158
- type: i,
159
- key: m,
160
- props: E,
161
- _owner: j
162
- }, (c !== void 0 ? c : null) !== null ? Object.defineProperty(i, "ref", {
154
+ function v(o, h, O, I, i, l) {
155
+ var E = O.ref;
156
+ return o = {
157
+ $$typeof: j,
158
+ type: o,
159
+ key: h,
160
+ props: O,
161
+ _owner: I
162
+ }, (E !== void 0 ? E : null) !== null ? Object.defineProperty(o, "ref", {
163
163
  enumerable: !1,
164
- get: x
165
- }) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
164
+ get: w
165
+ }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
166
166
  configurable: !1,
167
167
  enumerable: !1,
168
168
  writable: !0,
169
169
  value: 0
170
- }), Object.defineProperty(i, "_debugInfo", {
170
+ }), Object.defineProperty(o, "_debugInfo", {
171
171
  configurable: !1,
172
172
  enumerable: !1,
173
173
  writable: !0,
174
174
  value: null
175
- }), Object.defineProperty(i, "_debugStack", {
175
+ }), Object.defineProperty(o, "_debugStack", {
176
176
  configurable: !1,
177
177
  enumerable: !1,
178
178
  writable: !0,
179
- value: Q
180
- }), Object.defineProperty(i, "_debugTask", {
179
+ value: i
180
+ }), Object.defineProperty(o, "_debugTask", {
181
181
  configurable: !1,
182
182
  enumerable: !1,
183
183
  writable: !0,
184
- value: o
185
- }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
184
+ value: l
185
+ }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
186
186
  }
187
- function h(i, m, E, j, Q, o) {
188
- var c = m.children;
189
- if (c !== void 0)
190
- if (j)
191
- if (p(c)) {
192
- for (j = 0; j < c.length; j++)
193
- v(c[j]);
194
- Object.freeze && Object.freeze(c);
187
+ function m(o, h, O, I, i, l) {
188
+ var E = h.children;
189
+ if (E !== void 0)
190
+ if (I)
191
+ if (H(E)) {
192
+ for (I = 0; I < E.length; I++)
193
+ b(E[I]);
194
+ Object.freeze && Object.freeze(E);
195
195
  } else
196
196
  console.error(
197
197
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
198
198
  );
199
- else v(c);
200
- if (H.call(m, "key")) {
201
- c = e(i);
202
- var V = Object.keys(m).filter(function(te) {
203
- return te !== "key";
199
+ else b(E);
200
+ if (pe.call(h, "key")) {
201
+ E = e(o);
202
+ var K = Object.keys(h).filter(function(Ae) {
203
+ return Ae !== "key";
204
204
  });
205
- j = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}", le[c + j] || (V = 0 < V.length ? "{" + V.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ I = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", le[E + I] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
206
206
  `A props object containing a "key" prop is being spread into JSX:
207
207
  let props = %s;
208
208
  <%s {...props} />
209
209
  React keys must be passed directly to JSX without using spread:
210
210
  let props = %s;
211
211
  <%s key={someKey} {...props} />`,
212
- j,
213
- c,
214
- V,
215
- c
216
- ), le[c + j] = !0);
212
+ I,
213
+ E,
214
+ K,
215
+ E
216
+ ), le[E + I] = !0);
217
217
  }
218
- if (c = null, E !== void 0 && (t(E), c = "" + E), u(m) && (t(m.key), c = "" + m.key), "key" in m) {
219
- E = {};
220
- for (var ue in m)
221
- ue !== "key" && (E[ue] = m[ue]);
222
- } else E = m;
223
- return c && d(
224
- E,
225
- typeof i == "function" ? i.displayName || i.name || "Unknown" : i
226
- ), y(
227
- i,
228
- c,
218
+ if (E = null, O !== void 0 && (t(O), E = "" + O), u(h) && (t(h.key), E = "" + h.key), "key" in h) {
219
+ O = {};
220
+ for (var Q in h)
221
+ Q !== "key" && (O[Q] = h[Q]);
222
+ } else O = h;
223
+ return E && p(
224
+ O,
225
+ typeof o == "function" ? o.displayName || o.name || "Unknown" : o
226
+ ), v(
227
+ o,
229
228
  E,
229
+ O,
230
230
  a(),
231
- Q,
232
- o
231
+ i,
232
+ l
233
233
  );
234
234
  }
235
- function v(i) {
236
- I(i) ? i._store && (i._store.validated = 1) : typeof i == "object" && i !== null && i.$$typeof === G && (i._payload.status === "fulfilled" ? I(i._payload.value) && i._payload.value._store && (i._payload.value._store.validated = 1) : i._store && (i._store.validated = 1));
235
+ function b(o) {
236
+ M(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === ce && (o._payload.status === "fulfilled" ? M(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
237
237
  }
238
- function I(i) {
239
- return typeof i == "object" && i !== null && i.$$typeof === $;
238
+ function M(o) {
239
+ return typeof o == "object" && o !== null && o.$$typeof === j;
240
240
  }
241
- var O = $r, $ = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), F = Symbol.for("react.consumer"), L = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), de = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), pe = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, p = Array.isArray, re = console.createTask ? console.createTask : function() {
241
+ var $ = jr, j = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), L = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), ce = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), ee = Symbol.for("react.client.reference"), X = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, pe = Object.prototype.hasOwnProperty, H = Array.isArray, d = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
- O = {
245
- react_stack_bottom_frame: function(i) {
246
- return i();
244
+ $ = {
245
+ react_stack_bottom_frame: function(o) {
246
+ return o();
247
247
  }
248
248
  };
249
- var Z, he = {}, se = O.react_stack_bottom_frame.bind(
250
- O,
249
+ var ne, J = {}, fe = $.react_stack_bottom_frame.bind(
250
+ $,
251
251
  s
252
- )(), ce = re(n(s)), le = {};
253
- Pe.Fragment = k, Pe.jsx = function(i, m, E) {
254
- var j = 1e4 > pe.recentlyCreatedOwnerStacks++;
255
- return h(
256
- i,
257
- m,
258
- E,
252
+ )(), ae = d(n(s)), le = {};
253
+ ke.Fragment = k, ke.jsx = function(o, h, O) {
254
+ var I = 1e4 > X.recentlyCreatedOwnerStacks++;
255
+ return m(
256
+ o,
257
+ h,
258
+ O,
259
259
  !1,
260
- j ? Error("react-stack-top-frame") : se,
261
- j ? re(n(i)) : ce
260
+ I ? Error("react-stack-top-frame") : fe,
261
+ I ? d(n(o)) : ae
262
262
  );
263
- }, Pe.jsxs = function(i, m, E) {
264
- var j = 1e4 > pe.recentlyCreatedOwnerStacks++;
265
- return h(
266
- i,
267
- m,
268
- E,
263
+ }, ke.jsxs = function(o, h, O) {
264
+ var I = 1e4 > X.recentlyCreatedOwnerStacks++;
265
+ return m(
266
+ o,
267
+ h,
268
+ O,
269
269
  !0,
270
- j ? Error("react-stack-top-frame") : se,
271
- j ? re(n(i)) : ce
270
+ I ? Error("react-stack-top-frame") : fe,
271
+ I ? d(n(o)) : ae
272
272
  );
273
273
  };
274
- })()), Pe;
274
+ })()), ke;
275
275
  }
276
- var sr;
277
- function Nr() {
278
- return sr || (sr = 1, process.env.NODE_ENV === "production" ? Oe.exports = Fr() : Oe.exports = Vr()), Oe.exports;
276
+ var cr;
277
+ function Lr() {
278
+ return cr || (cr = 1, process.env.NODE_ENV === "production" ? Ce.exports = Vr() : Ce.exports = Nr()), Ce.exports;
279
279
  }
280
- var D = Nr();
281
- function qe() {
282
- return qe = Object.assign ? Object.assign.bind() : function(e) {
280
+ var D = Lr();
281
+ function Ye() {
282
+ return Ye = Object.assign ? Object.assign.bind() : function(e) {
283
283
  for (var r = 1; r < arguments.length; r++) {
284
284
  var t = arguments[r];
285
285
  for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
286
286
  }
287
287
  return e;
288
- }, qe.apply(null, arguments);
288
+ }, Ye.apply(null, arguments);
289
289
  }
290
- function Lr(e) {
290
+ function zr(e) {
291
291
  if (e.sheet)
292
292
  return e.sheet;
293
293
  for (var r = 0; r < document.styleSheets.length; r++)
294
294
  if (document.styleSheets[r].ownerNode === e)
295
295
  return document.styleSheets[r];
296
296
  }
297
- function zr(e) {
297
+ function Ur(e) {
298
298
  var r = document.createElement("style");
299
299
  return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
300
300
  }
301
- var Ur = /* @__PURE__ */ (function() {
301
+ var Dr = /* @__PURE__ */ (function() {
302
302
  function e(t) {
303
303
  var n = this;
304
304
  this._insertTag = function(a) {
@@ -310,10 +310,10 @@ var Ur = /* @__PURE__ */ (function() {
310
310
  return r.hydrate = function(n) {
311
311
  n.forEach(this._insertTag);
312
312
  }, r.insert = function(n) {
313
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(zr(this));
313
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ur(this));
314
314
  var a = this.tags[this.tags.length - 1];
315
315
  if (this.isSpeedy) {
316
- var s = Lr(a);
316
+ var s = zr(a);
317
317
  try {
318
318
  s.insertRule(n, s.cssRules.length);
319
319
  } catch {
@@ -327,66 +327,66 @@ var Ur = /* @__PURE__ */ (function() {
327
327
  return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
328
328
  }), this.tags = [], this.ctr = 0;
329
329
  }, e;
330
- })(), q = "-ms-", Le = "-moz-", _ = "-webkit-", xr = "comm", Be = "rule", Xe = "decl", Dr = "@import", wr = "@keyframes", Wr = "@layer", Yr = Math.abs, ze = String.fromCharCode, qr = Object.assign;
331
- function Hr(e, r) {
330
+ })(), Y = "-ms-", Ne = "-moz-", _ = "-webkit-", wr = "comm", Ge = "rule", Be = "decl", Wr = "@import", kr = "@keyframes", Yr = "@layer", qr = Math.abs, Le = String.fromCharCode, Hr = Object.assign;
331
+ function Gr(e, r) {
332
332
  return W(e, 0) ^ 45 ? (((r << 2 ^ W(e, 0)) << 2 ^ W(e, 1)) << 2 ^ W(e, 2)) << 2 ^ W(e, 3) : 0;
333
333
  }
334
- function kr(e) {
334
+ function Pr(e) {
335
335
  return e.trim();
336
336
  }
337
- function Gr(e, r) {
337
+ function Br(e, r) {
338
338
  return (e = r.exec(e)) ? e[0] : e;
339
339
  }
340
340
  function T(e, r, t) {
341
341
  return e.replace(r, t);
342
342
  }
343
- function He(e, r) {
343
+ function qe(e, r) {
344
344
  return e.indexOf(r);
345
345
  }
346
346
  function W(e, r) {
347
347
  return e.charCodeAt(r) | 0;
348
348
  }
349
- function Re(e, r, t) {
349
+ function Ee(e, r, t) {
350
350
  return e.slice(r, t);
351
351
  }
352
- function ae(e) {
352
+ function ie(e) {
353
353
  return e.length;
354
354
  }
355
- function Je(e) {
355
+ function Xe(e) {
356
356
  return e.length;
357
357
  }
358
- function $e(e, r) {
358
+ function Oe(e, r) {
359
359
  return r.push(e), e;
360
360
  }
361
- function Br(e, r) {
361
+ function Xr(e, r) {
362
362
  return e.map(r).join("");
363
363
  }
364
- var Ue = 1, be = 1, Pr = 0, J = 0, N = 0, we = "";
365
- function De(e, r, t, n, a, s, u) {
366
- return { value: e, root: r, parent: t, type: n, props: a, children: s, line: Ue, column: be, length: u, return: "" };
364
+ var ze = 1, ve = 1, Sr = 0, B = 0, N = 0, xe = "";
365
+ function Ue(e, r, t, n, a, s, u) {
366
+ return { value: e, root: r, parent: t, type: n, props: a, children: s, line: ze, column: ve, length: u, return: "" };
367
367
  }
368
- function Se(e, r) {
369
- return qr(De("", null, null, "", null, null, 0), e, { length: -e.length }, r);
368
+ function Pe(e, r) {
369
+ return Hr(Ue("", null, null, "", null, null, 0), e, { length: -e.length }, r);
370
370
  }
371
- function Xr() {
371
+ function Jr() {
372
372
  return N;
373
373
  }
374
- function Jr() {
375
- return N = J > 0 ? W(we, --J) : 0, be--, N === 10 && (be = 1, Ue--), N;
374
+ function Zr() {
375
+ return N = B > 0 ? W(xe, --B) : 0, ve--, N === 10 && (ve = 1, ze--), N;
376
376
  }
377
- function K() {
378
- return N = J < Pr ? W(we, J++) : 0, be++, N === 10 && (be = 1, Ue++), N;
377
+ function Z() {
378
+ return N = B < Sr ? W(xe, B++) : 0, ve++, N === 10 && (ve = 1, ze++), N;
379
379
  }
380
- function oe() {
381
- return W(we, J);
380
+ function se() {
381
+ return W(xe, B);
382
382
  }
383
- function Me() {
384
- return J;
383
+ function Ie() {
384
+ return B;
385
385
  }
386
- function Ae(e, r) {
387
- return Re(we, e, r);
386
+ function Te(e, r) {
387
+ return Ee(xe, e, r);
388
388
  }
389
- function _e(e) {
389
+ function Re(e) {
390
390
  switch (e) {
391
391
  // \0 \t \n \r \s whitespace token
392
392
  case 0:
@@ -424,260 +424,260 @@ function _e(e) {
424
424
  }
425
425
  return 0;
426
426
  }
427
- function Sr(e) {
428
- return Ue = be = 1, Pr = ae(we = e), J = 0, [];
429
- }
430
427
  function Er(e) {
431
- return we = "", e;
428
+ return ze = ve = 1, Sr = ie(xe = e), B = 0, [];
429
+ }
430
+ function Rr(e) {
431
+ return xe = "", e;
432
432
  }
433
- function Fe(e) {
434
- return kr(Ae(J - 1, Ge(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
433
+ function Me(e) {
434
+ return Pr(Te(B - 1, He(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
435
435
  }
436
- function Zr(e) {
437
- for (; (N = oe()) && N < 33; )
438
- K();
439
- return _e(e) > 2 || _e(N) > 3 ? "" : " ";
436
+ function Kr(e) {
437
+ for (; (N = se()) && N < 33; )
438
+ Z();
439
+ return Re(e) > 2 || Re(N) > 3 ? "" : " ";
440
440
  }
441
- function Kr(e, r) {
442
- for (; --r && K() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
441
+ function Qr(e, r) {
442
+ for (; --r && Z() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
443
443
  ;
444
- return Ae(e, Me() + (r < 6 && oe() == 32 && K() == 32));
444
+ return Te(e, Ie() + (r < 6 && se() == 32 && Z() == 32));
445
445
  }
446
- function Ge(e) {
447
- for (; K(); )
446
+ function He(e) {
447
+ for (; Z(); )
448
448
  switch (N) {
449
449
  // ] ) " '
450
450
  case e:
451
- return J;
451
+ return B;
452
452
  // " '
453
453
  case 34:
454
454
  case 39:
455
- e !== 34 && e !== 39 && Ge(N);
455
+ e !== 34 && e !== 39 && He(N);
456
456
  break;
457
457
  // (
458
458
  case 40:
459
- e === 41 && Ge(e);
459
+ e === 41 && He(e);
460
460
  break;
461
461
  // \
462
462
  case 92:
463
- K();
463
+ Z();
464
464
  break;
465
465
  }
466
- return J;
466
+ return B;
467
467
  }
468
- function Qr(e, r) {
469
- for (; K() && e + N !== 57; )
470
- if (e + N === 84 && oe() === 47)
468
+ function et(e, r) {
469
+ for (; Z() && e + N !== 57; )
470
+ if (e + N === 84 && se() === 47)
471
471
  break;
472
- return "/*" + Ae(r, J - 1) + "*" + ze(e === 47 ? e : K());
473
- }
474
- function et(e) {
475
- for (; !_e(oe()); )
476
- K();
477
- return Ae(e, J);
472
+ return "/*" + Te(r, B - 1) + "*" + Le(e === 47 ? e : Z());
478
473
  }
479
474
  function rt(e) {
480
- return Er(Ve("", null, null, null, [""], e = Sr(e), 0, [0], e));
475
+ for (; !Re(se()); )
476
+ Z();
477
+ return Te(e, B);
478
+ }
479
+ function tt(e) {
480
+ return Rr(Fe("", null, null, null, [""], e = Er(e), 0, [0], e));
481
481
  }
482
- function Ve(e, r, t, n, a, s, u, d, x) {
483
- for (var y = 0, h = 0, v = u, I = 0, O = 0, $ = 0, b = 1, k = 1, P = 1, A = 0, F = "", L = a, z = s, M = n, S = F; k; )
484
- switch ($ = A, A = K()) {
482
+ function Fe(e, r, t, n, a, s, u, p, w) {
483
+ for (var v = 0, m = 0, b = u, M = 0, $ = 0, j = 0, x = 1, k = 1, P = 1, C = 0, V = "", L = a, z = s, F = n, S = V; k; )
484
+ switch (j = C, C = Z()) {
485
485
  // (
486
486
  case 40:
487
- if ($ != 108 && W(S, v - 1) == 58) {
488
- He(S += T(Fe(A), "&", "&\f"), "&\f") != -1 && (P = -1);
487
+ if (j != 108 && W(S, b - 1) == 58) {
488
+ qe(S += T(Me(C), "&", "&\f"), "&\f") != -1 && (P = -1);
489
489
  break;
490
490
  }
491
491
  // " ' [
492
492
  case 34:
493
493
  case 39:
494
494
  case 91:
495
- S += Fe(A);
495
+ S += Me(C);
496
496
  break;
497
497
  // \t \n \r \s
498
498
  case 9:
499
499
  case 10:
500
500
  case 13:
501
501
  case 32:
502
- S += Zr($);
502
+ S += Kr(j);
503
503
  break;
504
504
  // \
505
505
  case 92:
506
- S += Kr(Me() - 1, 7);
506
+ S += Qr(Ie() - 1, 7);
507
507
  continue;
508
508
  // /
509
509
  case 47:
510
- switch (oe()) {
510
+ switch (se()) {
511
511
  case 42:
512
512
  case 47:
513
- $e(tt(Qr(K(), Me()), r, t), x);
513
+ Oe(nt(et(Z(), Ie()), r, t), w);
514
514
  break;
515
515
  default:
516
516
  S += "/";
517
517
  }
518
518
  break;
519
519
  // {
520
- case 123 * b:
521
- d[y++] = ae(S) * P;
520
+ case 123 * x:
521
+ p[v++] = ie(S) * P;
522
522
  // } ; \0
523
- case 125 * b:
523
+ case 125 * x:
524
524
  case 59:
525
525
  case 0:
526
- switch (A) {
526
+ switch (C) {
527
527
  // \0 }
528
528
  case 0:
529
529
  case 125:
530
530
  k = 0;
531
531
  // ;
532
- case 59 + h:
533
- P == -1 && (S = T(S, /\f/g, "")), O > 0 && ae(S) - v && $e(O > 32 ? lr(S + ";", n, t, v - 1) : lr(T(S, " ", "") + ";", n, t, v - 2), x);
532
+ case 59 + m:
533
+ P == -1 && (S = T(S, /\f/g, "")), $ > 0 && ie(S) - b && Oe($ > 32 ? ur(S + ";", n, t, b - 1) : ur(T(S, " ", "") + ";", n, t, b - 2), w);
534
534
  break;
535
535
  // @ ;
536
536
  case 59:
537
537
  S += ";";
538
538
  // { rule/at-rule
539
539
  default:
540
- if ($e(M = cr(S, r, t, y, h, a, d, F, L = [], z = [], v), s), A === 123)
541
- if (h === 0)
542
- Ve(S, r, M, M, L, s, v, d, z);
540
+ if (Oe(F = lr(S, r, t, v, m, a, p, V, L = [], z = [], b), s), C === 123)
541
+ if (m === 0)
542
+ Fe(S, r, F, F, L, s, b, p, z);
543
543
  else
544
- switch (I === 99 && W(S, 3) === 110 ? 100 : I) {
544
+ switch (M === 99 && W(S, 3) === 110 ? 100 : M) {
545
545
  // d l m s
546
546
  case 100:
547
547
  case 108:
548
548
  case 109:
549
549
  case 115:
550
- Ve(e, M, M, n && $e(cr(e, M, M, 0, 0, a, d, F, a, L = [], v), z), a, z, v, d, n ? L : z);
550
+ Fe(e, F, F, n && Oe(lr(e, F, F, 0, 0, a, p, V, a, L = [], b), z), a, z, b, p, n ? L : z);
551
551
  break;
552
552
  default:
553
- Ve(S, M, M, M, [""], z, 0, d, z);
553
+ Fe(S, F, F, F, [""], z, 0, p, z);
554
554
  }
555
555
  }
556
- y = h = O = 0, b = P = 1, F = S = "", v = u;
556
+ v = m = $ = 0, x = P = 1, V = S = "", b = u;
557
557
  break;
558
558
  // :
559
559
  case 58:
560
- v = 1 + ae(S), O = $;
560
+ b = 1 + ie(S), $ = j;
561
561
  default:
562
- if (b < 1) {
563
- if (A == 123)
564
- --b;
565
- else if (A == 125 && b++ == 0 && Jr() == 125)
562
+ if (x < 1) {
563
+ if (C == 123)
564
+ --x;
565
+ else if (C == 125 && x++ == 0 && Zr() == 125)
566
566
  continue;
567
567
  }
568
- switch (S += ze(A), A * b) {
568
+ switch (S += Le(C), C * x) {
569
569
  // &
570
570
  case 38:
571
- P = h > 0 ? 1 : (S += "\f", -1);
571
+ P = m > 0 ? 1 : (S += "\f", -1);
572
572
  break;
573
573
  // ,
574
574
  case 44:
575
- d[y++] = (ae(S) - 1) * P, P = 1;
575
+ p[v++] = (ie(S) - 1) * P, P = 1;
576
576
  break;
577
577
  // @
578
578
  case 64:
579
- oe() === 45 && (S += Fe(K())), I = oe(), h = v = ae(F = S += et(Me())), A++;
579
+ se() === 45 && (S += Me(Z())), M = se(), m = b = ie(V = S += rt(Ie())), C++;
580
580
  break;
581
581
  // -
582
582
  case 45:
583
- $ === 45 && ae(S) == 2 && (b = 0);
583
+ j === 45 && ie(S) == 2 && (x = 0);
584
584
  }
585
585
  }
586
586
  return s;
587
587
  }
588
- function cr(e, r, t, n, a, s, u, d, x, y, h) {
589
- for (var v = a - 1, I = a === 0 ? s : [""], O = Je(I), $ = 0, b = 0, k = 0; $ < n; ++$)
590
- for (var P = 0, A = Re(e, v + 1, v = Yr(b = u[$])), F = e; P < O; ++P)
591
- (F = kr(b > 0 ? I[P] + " " + A : T(A, /&\f/g, I[P]))) && (x[k++] = F);
592
- return De(e, r, t, a === 0 ? Be : d, x, y, h);
588
+ function lr(e, r, t, n, a, s, u, p, w, v, m) {
589
+ for (var b = a - 1, M = a === 0 ? s : [""], $ = Xe(M), j = 0, x = 0, k = 0; j < n; ++j)
590
+ for (var P = 0, C = Ee(e, b + 1, b = qr(x = u[j])), V = e; P < $; ++P)
591
+ (V = Pr(x > 0 ? M[P] + " " + C : T(C, /&\f/g, M[P]))) && (w[k++] = V);
592
+ return Ue(e, r, t, a === 0 ? Ge : p, w, v, m);
593
593
  }
594
- function tt(e, r, t) {
595
- return De(e, r, t, xr, ze(Xr()), Re(e, 2, -2), 0);
594
+ function nt(e, r, t) {
595
+ return Ue(e, r, t, wr, Le(Jr()), Ee(e, 2, -2), 0);
596
596
  }
597
- function lr(e, r, t, n) {
598
- return De(e, r, t, Xe, Re(e, 0, n), Re(e, n + 1, -1), n);
597
+ function ur(e, r, t, n) {
598
+ return Ue(e, r, t, Be, Ee(e, 0, n), Ee(e, n + 1, -1), n);
599
599
  }
600
- function ve(e, r) {
601
- for (var t = "", n = Je(e), a = 0; a < n; a++)
600
+ function ye(e, r) {
601
+ for (var t = "", n = Xe(e), a = 0; a < n; a++)
602
602
  t += r(e[a], a, e, r) || "";
603
603
  return t;
604
604
  }
605
- function nt(e, r, t, n) {
605
+ function at(e, r, t, n) {
606
606
  switch (e.type) {
607
- case Wr:
607
+ case Yr:
608
608
  if (e.children.length) break;
609
- case Dr:
610
- case Xe:
609
+ case Wr:
610
+ case Be:
611
611
  return e.return = e.return || e.value;
612
- case xr:
613
- return "";
614
612
  case wr:
615
- return e.return = e.value + "{" + ve(e.children, n) + "}";
616
- case Be:
613
+ return "";
614
+ case kr:
615
+ return e.return = e.value + "{" + ye(e.children, n) + "}";
616
+ case Ge:
617
617
  e.value = e.props.join(",");
618
618
  }
619
- return ae(t = ve(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
619
+ return ie(t = ye(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
620
620
  }
621
- function at(e) {
622
- var r = Je(e);
621
+ function it(e) {
622
+ var r = Xe(e);
623
623
  return function(t, n, a, s) {
624
- for (var u = "", d = 0; d < r; d++)
625
- u += e[d](t, n, a, s) || "";
624
+ for (var u = "", p = 0; p < r; p++)
625
+ u += e[p](t, n, a, s) || "";
626
626
  return u;
627
627
  };
628
628
  }
629
- function it(e) {
629
+ function ot(e) {
630
630
  return function(r) {
631
631
  r.root || (r = r.return) && e(r);
632
632
  };
633
633
  }
634
- function Rr(e) {
634
+ function _r(e) {
635
635
  var r = /* @__PURE__ */ Object.create(null);
636
636
  return function(t) {
637
637
  return r[t] === void 0 && (r[t] = e(t)), r[t];
638
638
  };
639
639
  }
640
- var ot = function(r, t, n) {
641
- for (var a = 0, s = 0; a = s, s = oe(), a === 38 && s === 12 && (t[n] = 1), !_e(s); )
642
- K();
643
- return Ae(r, J);
644
- }, st = function(r, t) {
640
+ var st = function(r, t, n) {
641
+ for (var a = 0, s = 0; a = s, s = se(), a === 38 && s === 12 && (t[n] = 1), !Re(s); )
642
+ Z();
643
+ return Te(r, B);
644
+ }, ct = function(r, t) {
645
645
  var n = -1, a = 44;
646
646
  do
647
- switch (_e(a)) {
647
+ switch (Re(a)) {
648
648
  case 0:
649
- a === 38 && oe() === 12 && (t[n] = 1), r[n] += ot(J - 1, t, n);
649
+ a === 38 && se() === 12 && (t[n] = 1), r[n] += st(B - 1, t, n);
650
650
  break;
651
651
  case 2:
652
- r[n] += Fe(a);
652
+ r[n] += Me(a);
653
653
  break;
654
654
  case 4:
655
655
  if (a === 44) {
656
- r[++n] = oe() === 58 ? "&\f" : "", t[n] = r[n].length;
656
+ r[++n] = se() === 58 ? "&\f" : "", t[n] = r[n].length;
657
657
  break;
658
658
  }
659
659
  // fallthrough
660
660
  default:
661
- r[n] += ze(a);
661
+ r[n] += Le(a);
662
662
  }
663
- while (a = K());
663
+ while (a = Z());
664
664
  return r;
665
- }, ct = function(r, t) {
666
- return Er(st(Sr(r), t));
667
- }, ur = /* @__PURE__ */ new WeakMap(), lt = function(r) {
665
+ }, lt = function(r, t) {
666
+ return Rr(ct(Er(r), t));
667
+ }, fr = /* @__PURE__ */ new WeakMap(), ut = function(r) {
668
668
  if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
669
669
  // negative .length indicates that this rule has been already prefixed
670
670
  r.length < 1)) {
671
671
  for (var t = r.value, n = r.parent, a = r.column === n.column && r.line === n.line; n.type !== "rule"; )
672
672
  if (n = n.parent, !n) return;
673
- if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !ur.get(n)) && !a) {
674
- ur.set(r, !0);
675
- for (var s = [], u = ct(t, s), d = n.props, x = 0, y = 0; x < u.length; x++)
676
- for (var h = 0; h < d.length; h++, y++)
677
- r.props[y] = s[x] ? u[x].replace(/&\f/g, d[h]) : d[h] + " " + u[x];
673
+ if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !fr.get(n)) && !a) {
674
+ fr.set(r, !0);
675
+ for (var s = [], u = lt(t, s), p = n.props, w = 0, v = 0; w < u.length; w++)
676
+ for (var m = 0; m < p.length; m++, v++)
677
+ r.props[v] = s[w] ? u[w].replace(/&\f/g, p[m]) : p[m] + " " + u[w];
678
678
  }
679
679
  }
680
- }, ut = function(r) {
680
+ }, ft = function(r) {
681
681
  if (r.type === "decl") {
682
682
  var t = r.value;
683
683
  // charcode for l
@@ -685,8 +685,8 @@ var ot = function(r, t, n) {
685
685
  t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
686
686
  }
687
687
  };
688
- function _r(e, r) {
689
- switch (Hr(e, r)) {
688
+ function Tr(e, r) {
689
+ switch (Gr(e, r)) {
690
690
  // color-adjust
691
691
  case 5103:
692
692
  return _ + "print-" + e + e;
@@ -726,32 +726,32 @@ function _r(e, r) {
726
726
  case 4810:
727
727
  case 6968:
728
728
  case 2756:
729
- return _ + e + Le + e + q + e + e;
729
+ return _ + e + Ne + e + Y + e + e;
730
730
  // flex, flex-direction
731
731
  case 6828:
732
732
  case 4268:
733
- return _ + e + q + e + e;
733
+ return _ + e + Y + e + e;
734
734
  // order
735
735
  case 6165:
736
- return _ + e + q + "flex-" + e + e;
736
+ return _ + e + Y + "flex-" + e + e;
737
737
  // align-items
738
738
  case 5187:
739
- return _ + e + T(e, /(\w+).+(:[^]+)/, _ + "box-$1$2" + q + "flex-$1$2") + e;
739
+ return _ + e + T(e, /(\w+).+(:[^]+)/, _ + "box-$1$2" + Y + "flex-$1$2") + e;
740
740
  // align-self
741
741
  case 5443:
742
- return _ + e + q + "flex-item-" + T(e, /flex-|-self/, "") + e;
742
+ return _ + e + Y + "flex-item-" + T(e, /flex-|-self/, "") + e;
743
743
  // align-content
744
744
  case 4675:
745
- return _ + e + q + "flex-line-pack" + T(e, /align-content|flex-|-self/, "") + e;
745
+ return _ + e + Y + "flex-line-pack" + T(e, /align-content|flex-|-self/, "") + e;
746
746
  // flex-shrink
747
747
  case 5548:
748
- return _ + e + q + T(e, "shrink", "negative") + e;
748
+ return _ + e + Y + T(e, "shrink", "negative") + e;
749
749
  // flex-basis
750
750
  case 5292:
751
- return _ + e + q + T(e, "basis", "preferred-size") + e;
751
+ return _ + e + Y + T(e, "basis", "preferred-size") + e;
752
752
  // flex-grow
753
753
  case 6060:
754
- return _ + "box-" + T(e, "-grow", "") + _ + e + q + T(e, "grow", "positive") + e;
754
+ return _ + "box-" + T(e, "-grow", "") + _ + e + Y + T(e, "grow", "positive") + e;
755
755
  // transition
756
756
  case 4554:
757
757
  return _ + T(e, /([^-])(transform)/g, "$1" + _ + "$2") + e;
@@ -764,7 +764,7 @@ function _r(e, r) {
764
764
  return T(e, /(image-set\([^]*)/, _ + "$1$`$1");
765
765
  // justify-content
766
766
  case 4968:
767
- return T(T(e, /(.+:)(flex-)?(.*)/, _ + "box-pack:$3" + q + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + _ + e + e;
767
+ return T(T(e, /(.+:)(flex-)?(.*)/, _ + "box-pack:$3" + Y + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + _ + e + e;
768
768
  // (margin|padding)-inline-(start|end)
769
769
  case 4095:
770
770
  case 3583:
@@ -784,16 +784,16 @@ function _r(e, r) {
784
784
  case 5789:
785
785
  case 5021:
786
786
  case 4765:
787
- if (ae(e) - 1 - r > 6) switch (W(e, r + 1)) {
787
+ if (ie(e) - 1 - r > 6) switch (W(e, r + 1)) {
788
788
  // (m)ax-content, (m)in-content
789
789
  case 109:
790
790
  if (W(e, r + 4) !== 45) break;
791
791
  // (f)ill-available, (f)it-content
792
792
  case 102:
793
- return T(e, /(.+:)(.+)-([^]+)/, "$1" + _ + "$2-$3$1" + Le + (W(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
793
+ return T(e, /(.+:)(.+)-([^]+)/, "$1" + _ + "$2-$3$1" + Ne + (W(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
794
794
  // (s)tretch
795
795
  case 115:
796
- return ~He(e, "stretch") ? _r(T(e, "stretch", "fill-available"), r) + e : e;
796
+ return ~qe(e, "stretch") ? Tr(T(e, "stretch", "fill-available"), r) + e : e;
797
797
  }
798
798
  break;
799
799
  // position: sticky
@@ -801,13 +801,13 @@ function _r(e, r) {
801
801
  if (W(e, r + 1) !== 115) break;
802
802
  // display: (flex|inline-flex)
803
803
  case 6444:
804
- switch (W(e, ae(e) - 3 - (~He(e, "!important") && 10))) {
804
+ switch (W(e, ie(e) - 3 - (~qe(e, "!important") && 10))) {
805
805
  // stic(k)y
806
806
  case 107:
807
807
  return T(e, ":", ":" + _) + e;
808
808
  // (inline-)?fl(e)x
809
809
  case 101:
810
- return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + _ + (W(e, 14) === 45 ? "inline-" : "") + "box$3$1" + _ + "$2$3$1" + q + "$2box$3") + e;
810
+ return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + _ + (W(e, 14) === 45 ? "inline-" : "") + "box$3$1" + _ + "$2$3$1" + Y + "$2box$3") + e;
811
811
  }
812
812
  break;
813
813
  // writing-mode
@@ -815,83 +815,83 @@ function _r(e, r) {
815
815
  switch (W(e, r + 11)) {
816
816
  // vertical-l(r)
817
817
  case 114:
818
- return _ + e + q + T(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
818
+ return _ + e + Y + T(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
819
819
  // vertical-r(l)
820
820
  case 108:
821
- return _ + e + q + T(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
821
+ return _ + e + Y + T(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
822
822
  // horizontal(-)tb
823
823
  case 45:
824
- return _ + e + q + T(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
824
+ return _ + e + Y + T(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
825
825
  }
826
- return _ + e + q + e + e;
826
+ return _ + e + Y + e + e;
827
827
  }
828
828
  return e;
829
829
  }
830
- var ft = function(r, t, n, a) {
830
+ var dt = function(r, t, n, a) {
831
831
  if (r.length > -1 && !r.return) switch (r.type) {
832
- case Xe:
833
- r.return = _r(r.value, r.length);
832
+ case Be:
833
+ r.return = Tr(r.value, r.length);
834
834
  break;
835
- case wr:
836
- return ve([Se(r, {
835
+ case kr:
836
+ return ye([Pe(r, {
837
837
  value: T(r.value, "@", "@" + _)
838
838
  })], a);
839
- case Be:
840
- if (r.length) return Br(r.props, function(s) {
841
- switch (Gr(s, /(::plac\w+|:read-\w+)/)) {
839
+ case Ge:
840
+ if (r.length) return Xr(r.props, function(s) {
841
+ switch (Br(s, /(::plac\w+|:read-\w+)/)) {
842
842
  // :read-(only|write)
843
843
  case ":read-only":
844
844
  case ":read-write":
845
- return ve([Se(r, {
846
- props: [T(s, /:(read-\w+)/, ":" + Le + "$1")]
845
+ return ye([Pe(r, {
846
+ props: [T(s, /:(read-\w+)/, ":" + Ne + "$1")]
847
847
  })], a);
848
848
  // :placeholder
849
849
  case "::placeholder":
850
- return ve([Se(r, {
850
+ return ye([Pe(r, {
851
851
  props: [T(s, /:(plac\w+)/, ":" + _ + "input-$1")]
852
- }), Se(r, {
853
- props: [T(s, /:(plac\w+)/, ":" + Le + "$1")]
854
- }), Se(r, {
855
- props: [T(s, /:(plac\w+)/, q + "input-$1")]
852
+ }), Pe(r, {
853
+ props: [T(s, /:(plac\w+)/, ":" + Ne + "$1")]
854
+ }), Pe(r, {
855
+ props: [T(s, /:(plac\w+)/, Y + "input-$1")]
856
856
  })], a);
857
857
  }
858
858
  return "";
859
859
  });
860
860
  }
861
- }, dt = [ft], pt = function(r) {
861
+ }, pt = [dt], ht = function(r) {
862
862
  var t = r.key;
863
863
  if (t === "css") {
864
864
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
865
- Array.prototype.forEach.call(n, function(b) {
866
- var k = b.getAttribute("data-emotion");
867
- k.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
865
+ Array.prototype.forEach.call(n, function(x) {
866
+ var k = x.getAttribute("data-emotion");
867
+ k.indexOf(" ") !== -1 && (document.head.appendChild(x), x.setAttribute("data-s", ""));
868
868
  });
869
869
  }
870
- var a = r.stylisPlugins || dt, s = {}, u, d = [];
870
+ var a = r.stylisPlugins || pt, s = {}, u, p = [];
871
871
  u = r.container || document.head, Array.prototype.forEach.call(
872
872
  // this means we will ignore elements which don't have a space in them which
873
873
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
874
874
  document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
875
- function(b) {
876
- for (var k = b.getAttribute("data-emotion").split(" "), P = 1; P < k.length; P++)
875
+ function(x) {
876
+ for (var k = x.getAttribute("data-emotion").split(" "), P = 1; P < k.length; P++)
877
877
  s[k[P]] = !0;
878
- d.push(b);
878
+ p.push(x);
879
879
  }
880
880
  );
881
- var x, y = [lt, ut];
881
+ var w, v = [ut, ft];
882
882
  {
883
- var h, v = [nt, it(function(b) {
884
- h.insert(b);
885
- })], I = at(y.concat(a, v)), O = function(k) {
886
- return ve(rt(k), I);
883
+ var m, b = [at, ot(function(x) {
884
+ m.insert(x);
885
+ })], M = it(v.concat(a, b)), $ = function(k) {
886
+ return ye(tt(k), M);
887
887
  };
888
- x = function(k, P, A, F) {
889
- h = A, O(k ? k + "{" + P.styles + "}" : P.styles), F && ($.inserted[P.name] = !0);
888
+ w = function(k, P, C, V) {
889
+ m = C, $(k ? k + "{" + P.styles + "}" : P.styles), V && (j.inserted[P.name] = !0);
890
890
  };
891
891
  }
892
- var $ = {
892
+ var j = {
893
893
  key: t,
894
- sheet: new Ur({
894
+ sheet: new Dr({
895
895
  key: t,
896
896
  container: u,
897
897
  nonce: r.nonce,
@@ -902,17 +902,17 @@ var ft = function(r, t, n, a) {
902
902
  nonce: r.nonce,
903
903
  inserted: s,
904
904
  registered: {},
905
- insert: x
905
+ insert: w
906
906
  };
907
- return $.sheet.hydrate(d), $;
908
- }, ht = !0;
909
- function mt(e, r, t) {
907
+ return j.sheet.hydrate(p), j;
908
+ }, mt = !0;
909
+ function gt(e, r, t) {
910
910
  var n = "";
911
911
  return t.split(" ").forEach(function(a) {
912
912
  e[a] !== void 0 ? r.push(e[a] + ";") : a && (n += a + " ");
913
913
  }), n;
914
914
  }
915
- var Tr = function(r, t, n) {
915
+ var Ar = function(r, t, n) {
916
916
  var a = r.key + "-" + t.name;
917
917
  // we only need to add the styles to the registered cache if the
918
918
  // class name could be used further down
@@ -923,9 +923,9 @@ var Tr = function(r, t, n) {
923
923
  // in node since emotion-server relies on whether a style is in
924
924
  // the registered cache to know whether a style is global or not
925
925
  // also, note that this check will be dead code eliminated in the browser
926
- ht === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
927
- }, gt = function(r, t, n) {
928
- Tr(r, t, n);
926
+ mt === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
927
+ }, yt = function(r, t, n) {
928
+ Ar(r, t, n);
929
929
  var a = r.key + "-" + t.name;
930
930
  if (r.inserted[t.name] === void 0) {
931
931
  var s = t;
@@ -934,7 +934,7 @@ var Tr = function(r, t, n) {
934
934
  while (s !== void 0);
935
935
  }
936
936
  };
937
- function yt(e) {
937
+ function vt(e) {
938
938
  for (var r = 0, t, n = 0, a = e.length; a >= 4; ++n, a -= 4)
939
939
  t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
940
940
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
@@ -953,7 +953,7 @@ function yt(e) {
953
953
  return r ^= r >>> 13, r = /* Math.imul(h, m): */
954
954
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
955
955
  }
956
- var vt = {
956
+ var bt = {
957
957
  animationIterationCount: 1,
958
958
  aspectRatio: 1,
959
959
  borderImageOutset: 1,
@@ -1002,28 +1002,28 @@ var vt = {
1002
1002
  strokeMiterlimit: 1,
1003
1003
  strokeOpacity: 1,
1004
1004
  strokeWidth: 1
1005
- }, bt = /[A-Z]|^ms/g, xt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Ar = function(r) {
1005
+ }, xt = /[A-Z]|^ms/g, wt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Cr = function(r) {
1006
1006
  return r.charCodeAt(1) === 45;
1007
- }, fr = function(r) {
1007
+ }, dr = function(r) {
1008
1008
  return r != null && typeof r != "boolean";
1009
- }, Ye = /* @__PURE__ */ Rr(function(e) {
1010
- return Ar(e) ? e : e.replace(bt, "-$&").toLowerCase();
1011
- }), dr = function(r, t) {
1009
+ }, We = /* @__PURE__ */ _r(function(e) {
1010
+ return Cr(e) ? e : e.replace(xt, "-$&").toLowerCase();
1011
+ }), pr = function(r, t) {
1012
1012
  switch (r) {
1013
1013
  case "animation":
1014
1014
  case "animationName":
1015
1015
  if (typeof t == "string")
1016
- return t.replace(xt, function(n, a, s) {
1017
- return ie = {
1016
+ return t.replace(wt, function(n, a, s) {
1017
+ return oe = {
1018
1018
  name: a,
1019
1019
  styles: s,
1020
- next: ie
1020
+ next: oe
1021
1021
  }, a;
1022
1022
  });
1023
1023
  }
1024
- return vt[r] !== 1 && !Ar(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
1024
+ return bt[r] !== 1 && !Cr(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
1025
1025
  };
1026
- function Te(e, r, t) {
1026
+ function _e(e, r, t) {
1027
1027
  if (t == null)
1028
1028
  return "";
1029
1029
  var n = t;
@@ -1035,129 +1035,129 @@ function Te(e, r, t) {
1035
1035
  case "object": {
1036
1036
  var a = t;
1037
1037
  if (a.anim === 1)
1038
- return ie = {
1038
+ return oe = {
1039
1039
  name: a.name,
1040
1040
  styles: a.styles,
1041
- next: ie
1041
+ next: oe
1042
1042
  }, a.name;
1043
1043
  var s = t;
1044
1044
  if (s.styles !== void 0) {
1045
1045
  var u = s.next;
1046
1046
  if (u !== void 0)
1047
1047
  for (; u !== void 0; )
1048
- ie = {
1048
+ oe = {
1049
1049
  name: u.name,
1050
1050
  styles: u.styles,
1051
- next: ie
1051
+ next: oe
1052
1052
  }, u = u.next;
1053
- var d = s.styles + ";";
1054
- return d;
1053
+ var p = s.styles + ";";
1054
+ return p;
1055
1055
  }
1056
- return wt(e, r, t);
1056
+ return kt(e, r, t);
1057
1057
  }
1058
1058
  case "function": {
1059
1059
  if (e !== void 0) {
1060
- var x = ie, y = t(e);
1061
- return ie = x, Te(e, r, y);
1060
+ var w = oe, v = t(e);
1061
+ return oe = w, _e(e, r, v);
1062
1062
  }
1063
1063
  break;
1064
1064
  }
1065
1065
  }
1066
- var h = t;
1066
+ var m = t;
1067
1067
  if (r == null)
1068
- return h;
1069
- var v = r[h];
1070
- return v !== void 0 ? v : h;
1068
+ return m;
1069
+ var b = r[m];
1070
+ return b !== void 0 ? b : m;
1071
1071
  }
1072
- function wt(e, r, t) {
1072
+ function kt(e, r, t) {
1073
1073
  var n = "";
1074
1074
  if (Array.isArray(t))
1075
1075
  for (var a = 0; a < t.length; a++)
1076
- n += Te(e, r, t[a]) + ";";
1076
+ n += _e(e, r, t[a]) + ";";
1077
1077
  else
1078
1078
  for (var s in t) {
1079
1079
  var u = t[s];
1080
1080
  if (typeof u != "object") {
1081
- var d = u;
1082
- r != null && r[d] !== void 0 ? n += s + "{" + r[d] + "}" : fr(d) && (n += Ye(s) + ":" + dr(s, d) + ";");
1081
+ var p = u;
1082
+ r != null && r[p] !== void 0 ? n += s + "{" + r[p] + "}" : dr(p) && (n += We(s) + ":" + pr(s, p) + ";");
1083
1083
  } else if (Array.isArray(u) && typeof u[0] == "string" && (r == null || r[u[0]] === void 0))
1084
- for (var x = 0; x < u.length; x++)
1085
- fr(u[x]) && (n += Ye(s) + ":" + dr(s, u[x]) + ";");
1084
+ for (var w = 0; w < u.length; w++)
1085
+ dr(u[w]) && (n += We(s) + ":" + pr(s, u[w]) + ";");
1086
1086
  else {
1087
- var y = Te(e, r, u);
1087
+ var v = _e(e, r, u);
1088
1088
  switch (s) {
1089
1089
  case "animation":
1090
1090
  case "animationName": {
1091
- n += Ye(s) + ":" + y + ";";
1091
+ n += We(s) + ":" + v + ";";
1092
1092
  break;
1093
1093
  }
1094
1094
  default:
1095
- n += s + "{" + y + "}";
1095
+ n += s + "{" + v + "}";
1096
1096
  }
1097
1097
  }
1098
1098
  }
1099
1099
  return n;
1100
1100
  }
1101
- var pr = /label:\s*([^\s;{]+)\s*(;|$)/g, ie;
1102
- function kt(e, r, t) {
1101
+ var hr = /label:\s*([^\s;{]+)\s*(;|$)/g, oe;
1102
+ function Pt(e, r, t) {
1103
1103
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1104
1104
  return e[0];
1105
1105
  var n = !0, a = "";
1106
- ie = void 0;
1106
+ oe = void 0;
1107
1107
  var s = e[0];
1108
1108
  if (s == null || s.raw === void 0)
1109
- n = !1, a += Te(t, r, s);
1109
+ n = !1, a += _e(t, r, s);
1110
1110
  else {
1111
1111
  var u = s;
1112
1112
  a += u[0];
1113
1113
  }
1114
- for (var d = 1; d < e.length; d++)
1115
- if (a += Te(t, r, e[d]), n) {
1116
- var x = s;
1117
- a += x[d];
1114
+ for (var p = 1; p < e.length; p++)
1115
+ if (a += _e(t, r, e[p]), n) {
1116
+ var w = s;
1117
+ a += w[p];
1118
1118
  }
1119
- pr.lastIndex = 0;
1120
- for (var y = "", h; (h = pr.exec(a)) !== null; )
1121
- y += "-" + h[1];
1122
- var v = yt(a) + y;
1119
+ hr.lastIndex = 0;
1120
+ for (var v = "", m; (m = hr.exec(a)) !== null; )
1121
+ v += "-" + m[1];
1122
+ var b = vt(a) + v;
1123
1123
  return {
1124
- name: v,
1124
+ name: b,
1125
1125
  styles: a,
1126
- next: ie
1126
+ next: oe
1127
1127
  };
1128
1128
  }
1129
- var Pt = function(r) {
1129
+ var St = function(r) {
1130
1130
  return r();
1131
- }, St = fe.useInsertionEffect ? fe.useInsertionEffect : !1, Et = St || Pt, Cr = /* @__PURE__ */ fe.createContext(
1131
+ }, Et = ue.useInsertionEffect ? ue.useInsertionEffect : !1, Rt = Et || St, Or = /* @__PURE__ */ ue.createContext(
1132
1132
  // we're doing this to avoid preconstruct's dead code elimination in this one case
1133
1133
  // because this module is primarily intended for the browser and node
1134
1134
  // but it's also required in react native and similar environments sometimes
1135
1135
  // and we could have a special build just for that
1136
1136
  // but this is much easier and the native packages
1137
1137
  // might use a different theme context in the future anyway
1138
- typeof HTMLElement < "u" ? /* @__PURE__ */ pt({
1138
+ typeof HTMLElement < "u" ? /* @__PURE__ */ ht({
1139
1139
  key: "css"
1140
1140
  }) : null
1141
1141
  );
1142
- Cr.Provider;
1143
- var Rt = function(r) {
1144
- return /* @__PURE__ */ br(function(t, n) {
1145
- var a = jr(Cr);
1142
+ Or.Provider;
1143
+ var _t = function(r) {
1144
+ return /* @__PURE__ */ xr(function(t, n) {
1145
+ var a = Ir(Or);
1146
1146
  return r(t, a, n);
1147
1147
  });
1148
- }, _t = /* @__PURE__ */ fe.createContext({}), Tt = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, At = /* @__PURE__ */ Rr(
1148
+ }, Tt = /* @__PURE__ */ ue.createContext({}), At = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Ct = /* @__PURE__ */ _r(
1149
1149
  function(e) {
1150
- return Tt.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
1150
+ return At.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
1151
1151
  }
1152
1152
  /* Z+1 */
1153
- ), Ct = At, Ot = function(r) {
1153
+ ), Ot = Ct, $t = function(r) {
1154
1154
  return r !== "theme";
1155
- }, hr = function(r) {
1155
+ }, mr = function(r) {
1156
1156
  return typeof r == "string" && // 96 is one less than the char code
1157
1157
  // for "a" so this is checking that
1158
1158
  // it's a lowercase character
1159
- r.charCodeAt(0) > 96 ? Ct : Ot;
1160
- }, mr = function(r, t, n) {
1159
+ r.charCodeAt(0) > 96 ? Ot : $t;
1160
+ }, gr = function(r, t, n) {
1161
1161
  var a;
1162
1162
  if (t) {
1163
1163
  var s = t.shouldForwardProp;
@@ -1166,57 +1166,57 @@ var Rt = function(r) {
1166
1166
  } : s;
1167
1167
  }
1168
1168
  return typeof a != "function" && n && (a = r.__emotion_forwardProp), a;
1169
- }, $t = function(r) {
1169
+ }, jt = function(r) {
1170
1170
  var t = r.cache, n = r.serialized, a = r.isStringTag;
1171
- return Tr(t, n, a), Et(function() {
1172
- return gt(t, n, a);
1171
+ return Ar(t, n, a), Rt(function() {
1172
+ return yt(t, n, a);
1173
1173
  }), null;
1174
- }, jt = function e(r, t) {
1174
+ }, It = function e(r, t) {
1175
1175
  var n = r.__emotion_real === r, a = n && r.__emotion_base || r, s, u;
1176
1176
  t !== void 0 && (s = t.label, u = t.target);
1177
- var d = mr(r, t, n), x = d || hr(a), y = !x("as");
1177
+ var p = gr(r, t, n), w = p || mr(a), v = !w("as");
1178
1178
  return function() {
1179
- var h = arguments, v = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
1180
- if (s !== void 0 && v.push("label:" + s + ";"), h[0] == null || h[0].raw === void 0)
1181
- v.push.apply(v, h);
1179
+ var m = arguments, b = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
1180
+ if (s !== void 0 && b.push("label:" + s + ";"), m[0] == null || m[0].raw === void 0)
1181
+ b.push.apply(b, m);
1182
1182
  else {
1183
- var I = h[0];
1184
- v.push(I[0]);
1185
- for (var O = h.length, $ = 1; $ < O; $++)
1186
- v.push(h[$], I[$]);
1183
+ var M = m[0];
1184
+ b.push(M[0]);
1185
+ for (var $ = m.length, j = 1; j < $; j++)
1186
+ b.push(m[j], M[j]);
1187
1187
  }
1188
- var b = Rt(function(k, P, A) {
1189
- var F = y && k.as || a, L = "", z = [], M = k;
1188
+ var x = _t(function(k, P, C) {
1189
+ var V = v && k.as || a, L = "", z = [], F = k;
1190
1190
  if (k.theme == null) {
1191
- M = {};
1191
+ F = {};
1192
1192
  for (var S in k)
1193
- M[S] = k[S];
1194
- M.theme = fe.useContext(_t);
1193
+ F[S] = k[S];
1194
+ F.theme = ue.useContext(Tt);
1195
1195
  }
1196
- typeof k.className == "string" ? L = mt(P.registered, z, k.className) : k.className != null && (L = k.className + " ");
1197
- var de = kt(v.concat(z), P.registered, M);
1198
- L += P.key + "-" + de.name, u !== void 0 && (L += " " + u);
1199
- var G = y && d === void 0 ? hr(F) : x, ee = {};
1200
- for (var Y in k)
1201
- y && Y === "as" || G(Y) && (ee[Y] = k[Y]);
1202
- return ee.className = L, A && (ee.ref = A), /* @__PURE__ */ fe.createElement(fe.Fragment, null, /* @__PURE__ */ fe.createElement($t, {
1196
+ typeof k.className == "string" ? L = gt(P.registered, z, k.className) : k.className != null && (L = k.className + " ");
1197
+ var te = Pt(b.concat(z), P.registered, F);
1198
+ L += P.key + "-" + te.name, u !== void 0 && (L += " " + u);
1199
+ var ce = v && p === void 0 ? mr(V) : w, q = {};
1200
+ for (var ee in k)
1201
+ v && ee === "as" || ce(ee) && (q[ee] = k[ee]);
1202
+ return q.className = L, C && (q.ref = C), /* @__PURE__ */ ue.createElement(ue.Fragment, null, /* @__PURE__ */ ue.createElement(jt, {
1203
1203
  cache: P,
1204
- serialized: de,
1205
- isStringTag: typeof F == "string"
1206
- }), /* @__PURE__ */ fe.createElement(F, ee));
1204
+ serialized: te,
1205
+ isStringTag: typeof V == "string"
1206
+ }), /* @__PURE__ */ ue.createElement(V, q));
1207
1207
  });
1208
- return b.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", b.defaultProps = r.defaultProps, b.__emotion_real = b, b.__emotion_base = a, b.__emotion_styles = v, b.__emotion_forwardProp = d, Object.defineProperty(b, "toString", {
1208
+ return x.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", x.defaultProps = r.defaultProps, x.__emotion_real = x, x.__emotion_base = a, x.__emotion_styles = b, x.__emotion_forwardProp = p, Object.defineProperty(x, "toString", {
1209
1209
  value: function() {
1210
1210
  return "." + u;
1211
1211
  }
1212
- }), b.withComponent = function(k, P) {
1213
- var A = e(k, qe({}, t, P, {
1214
- shouldForwardProp: mr(b, P, !0)
1212
+ }), x.withComponent = function(k, P) {
1213
+ var C = e(k, Ye({}, t, P, {
1214
+ shouldForwardProp: gr(x, P, !0)
1215
1215
  }));
1216
- return A.apply(void 0, v);
1217
- }, b;
1216
+ return C.apply(void 0, b);
1217
+ }, x;
1218
1218
  };
1219
- }, It = [
1219
+ }, Mt = [
1220
1220
  "a",
1221
1221
  "abbr",
1222
1222
  "address",
@@ -1352,11 +1352,11 @@ var Rt = function(r) {
1352
1352
  "svg",
1353
1353
  "text",
1354
1354
  "tspan"
1355
- ], xe = jt.bind(null);
1356
- It.forEach(function(e) {
1357
- xe[e] = xe(e);
1355
+ ], be = It.bind(null);
1356
+ Mt.forEach(function(e) {
1357
+ be[e] = be(e);
1358
1358
  });
1359
- const Mt = xe.div`
1359
+ const Ft = be.div`
1360
1360
  display: flex;
1361
1361
  align-items: center;
1362
1362
  justify-content: center;
@@ -1397,11 +1397,11 @@ const Mt = xe.div`
1397
1397
  return "";
1398
1398
  }
1399
1399
  }}
1400
- `, gr = ({ type: e, children: r, className: t, icon: n, action: a }) => /* @__PURE__ */ D.jsxs(Mt, { type: e, className: t, children: [
1400
+ `, yr = ({ type: e, children: r, className: t, icon: n, action: a }) => /* @__PURE__ */ D.jsxs(Ft, { type: e, className: t, children: [
1401
1401
  n && /* @__PURE__ */ D.jsx("span", { children: n }),
1402
1402
  /* @__PURE__ */ D.jsx("span", { children: r }),
1403
1403
  a && /* @__PURE__ */ D.jsx("span", { children: a })
1404
- ] }), yr = xe.div`
1404
+ ] }), vr = be.div`
1405
1405
  width: ${({ width: e }) => e || "100%"};
1406
1406
  height: ${({ height: e }) => e || "100%"};
1407
1407
  border-radius: 0px !important;
@@ -1417,7 +1417,7 @@ const Mt = xe.div`
1417
1417
  }
1418
1418
 
1419
1419
  ${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((r) => `.${r} { display: none !important; }`).join("")}
1420
- `, Ft = xe.div`
1420
+ `, Vt = be.div`
1421
1421
  position: fixed;
1422
1422
  top: 0;
1423
1423
  left: 0;
@@ -1429,7 +1429,7 @@ const Mt = xe.div`
1429
1429
  align-items: center;
1430
1430
  z-index: 1000;
1431
1431
  pointer-events: auto;
1432
- `, Vt = xe.div`
1432
+ `, Nt = be.div`
1433
1433
  position: relative;
1434
1434
  height: 80vh;
1435
1435
  width: auto;
@@ -1437,54 +1437,54 @@ const Mt = xe.div`
1437
1437
  max-width: 90vw;
1438
1438
  max-height: 90vh;
1439
1439
  z-index: 1001;
1440
- `, me = "https://host.vpplayer.tech", Nt = (e) => `${me}/player/${e}/vpplayer.js`, Zt = (e) => `${me}/player/${e}.js`, Lt = (e, r) => `${me}/player/${e}/${r}.js`, zt = (e) => `${me}/vertical-player/${e}.js`, Ut = (e, r) => `${me}/vertical-player/${e}/${r}.js`, Dt = (e, r) => `${me}/player/${e}/${r}.json`, Wt = (e, r) => `${me}/vertical-player/${e}/${r}.json`, Yt = (e, r) => e ? `vp-player-${e}` : r ? `vp-player-default-${r}` : "vp-player-default", qt = (e, r) => {
1440
+ `, me = "https://host.vpplayer.tech", Lt = (e) => `${me}/player/${e}/vpplayer.js`, Kt = (e) => `${me}/player/${e}.js`, zt = (e, r) => `${me}/player/${e}/${r}.js`, Ut = (e) => `${me}/vertical-player/${e}.js`, Dt = (e, r) => `${me}/vertical-player/${e}/${r}.js`, Wt = (e, r) => `${me}/player/${e}/${r}.json`, Yt = (e, r) => `${me}/vertical-player/${e}/${r}.json`, qt = (e, r) => e ? `vp-player-${e}` : r ? `vp-player-default-${r}` : "vp-player-default", Ht = (e, r) => {
1441
1441
  const t = new URL(e);
1442
1442
  return t.searchParams.set("divId", r), t.toString();
1443
- }, je = /* @__PURE__ */ new Map(), Ht = (e, r) => {
1444
- const [t, n] = Ne(!1), [a, s] = Ne(null);
1445
- return Ee(() => {
1443
+ }, $e = /* @__PURE__ */ new Map(), Gt = (e, r) => {
1444
+ const [t, n] = Ve(!1), [a, s] = Ve(null);
1445
+ return Se(() => {
1446
1446
  let u;
1447
1447
  try {
1448
- u = r || Nt(e || "latest");
1449
- } catch (y) {
1450
- const h = y instanceof Error ? y.message : String(y);
1451
- s(`Failed to resolve script URL: ${h}`);
1448
+ u = r || Lt(e || "latest");
1449
+ } catch (v) {
1450
+ const m = v instanceof Error ? v.message : String(v);
1451
+ s(`Failed to resolve script URL: ${m}`);
1452
1452
  return;
1453
1453
  }
1454
- if (!je.has(u))
1454
+ if (!$e.has(u))
1455
1455
  if (document.querySelector(
1456
1456
  `script[src="${u}"]`
1457
1457
  ))
1458
- je.set(u, Promise.resolve());
1458
+ $e.set(u, Promise.resolve());
1459
1459
  else {
1460
- const h = new Promise((v, I) => {
1461
- const O = document.createElement("script");
1462
- O.src = u, O.async = !0, O.onload = () => v(), O.onerror = () => I(new Error(`Failed to load script: ${u}`)), document.body.appendChild(O);
1460
+ const m = new Promise((b, M) => {
1461
+ const $ = document.createElement("script");
1462
+ $.src = u, $.async = !0, $.onload = () => b(), $.onerror = () => M(new Error(`Failed to load script: ${u}`)), document.body.appendChild($);
1463
1463
  });
1464
- je.set(u, h);
1464
+ $e.set(u, m);
1465
1465
  }
1466
- let d = !0;
1467
- const x = je.get(u);
1468
- return x && x.then(() => {
1469
- d && (n(!0), s(null));
1470
- }).catch((y) => {
1471
- d && (n(!1), s(y instanceof Error ? y.message : String(y)));
1466
+ let p = !0;
1467
+ const w = $e.get(u);
1468
+ return w && w.then(() => {
1469
+ p && (n(!0), s(null));
1470
+ }).catch((v) => {
1471
+ p && (n(!1), s(v instanceof Error ? v.message : String(v)));
1472
1472
  }), () => {
1473
- d = !1;
1473
+ p = !1;
1474
1474
  };
1475
1475
  }, [e, r]), { isLoaded: t, error: a };
1476
1476
  };
1477
- function Ie(e) {
1477
+ function je(e) {
1478
1478
  return typeof e == "object" && e !== null && !Array.isArray(e);
1479
1479
  }
1480
- function vr(e, r) {
1480
+ function br(e, r) {
1481
1481
  const t = r.playlist;
1482
1482
  if (!(t != null && t.videos) || !Array.isArray(t.videos))
1483
1483
  return;
1484
- const n = t.videos, a = n.findIndex((d) => {
1485
- if (!d || typeof d != "object") return !1;
1486
- const x = d;
1487
- return x.videoId === e || x.mediaId === e;
1484
+ const n = t.videos, a = n.findIndex((p) => {
1485
+ if (!p || typeof p != "object") return !1;
1486
+ const w = p;
1487
+ return w.videoId === e || w.mediaId === e;
1488
1488
  });
1489
1489
  if (a < 0 || a >= n.length - 1)
1490
1490
  return;
@@ -1493,17 +1493,17 @@ function vr(e, r) {
1493
1493
  const u = s;
1494
1494
  return u.videoId ?? u.mediaId;
1495
1495
  }
1496
- function Or(e, r) {
1497
- if (!Ie(e) || !Ie(r))
1496
+ function $r(e, r) {
1497
+ if (!je(e) || !je(r))
1498
1498
  return r;
1499
1499
  const t = { ...e };
1500
1500
  for (const n of Object.keys(r)) {
1501
1501
  const a = r[n], s = t[n];
1502
- Ie(a) && Ie(s) ? t[n] = Or(s, a) : a !== void 0 && (t[n] = a);
1502
+ je(a) && je(s) ? t[n] = $r(s, a) : a !== void 0 && (t[n] = a);
1503
1503
  }
1504
1504
  return t;
1505
1505
  }
1506
- async function Gt(e, r, t) {
1506
+ async function Bt(e, r, t) {
1507
1507
  if (!e)
1508
1508
  return console.warn(
1509
1509
  "VP Player: No scriptId provided, cannot fetch config. Using user config directly."
@@ -1511,7 +1511,7 @@ async function Gt(e, r, t) {
1511
1511
  r || console.warn(
1512
1512
  "VP Player: No videoId provided, attempting to fetch config with scriptId only..."
1513
1513
  );
1514
- const n = t ? Wt(e, r || "") : Dt(e, r || "");
1514
+ const n = t ? Yt(e, r || "") : Wt(e, r || "");
1515
1515
  try {
1516
1516
  const a = await fetch(n);
1517
1517
  return a.ok ? await a.json() : null;
@@ -1519,7 +1519,7 @@ async function Gt(e, r, t) {
1519
1519
  return null;
1520
1520
  }
1521
1521
  }
1522
- const Bt = ({
1522
+ const Xt = ({
1523
1523
  scriptId: e,
1524
1524
  videoId: r,
1525
1525
  scriptUrl: t,
@@ -1527,327 +1527,332 @@ const Bt = ({
1527
1527
  config: a,
1528
1528
  playerId: s,
1529
1529
  isVertical: u = !1,
1530
- isReels: d = !1,
1531
- onReady: x,
1532
- onPlay: y,
1533
- onPause: h,
1534
- onResume: v,
1535
- onComplete: I,
1536
- onError: O,
1537
- onVideoStarted: $,
1538
- onTimeUpdate: b,
1530
+ isReels: p = !1,
1531
+ onReady: w,
1532
+ onPlay: v,
1533
+ onPause: m,
1534
+ onResume: b,
1535
+ onComplete: M,
1536
+ onError: $,
1537
+ onVideoStarted: j,
1538
+ onTimeUpdate: x,
1539
1539
  onQuartile25: k,
1540
1540
  onQuartile50: P,
1541
- onQuartile75: A,
1542
- onNext: F,
1541
+ onQuartile75: C,
1542
+ onNext: V,
1543
1543
  onPrevious: L,
1544
1544
  onProgress10s: z,
1545
- onProgress20s: M,
1546
- onPlaylistItem: S
1545
+ onProgress20s: F,
1546
+ onPlaylistItem: S,
1547
+ onVideoSwitch: te
1547
1548
  }) => {
1548
- const de = ne(null), G = ne(null), [ee, Y] = Ne(null), pe = Ir().replace(/:/g, ""), H = We(
1549
- () => Yt(s || `auto-${pe}`, r),
1549
+ const ce = de(null), q = de(null), [ee, X] = Ve(null), pe = Mr().replace(/:/g, ""), H = De(
1550
+ () => qt(s || `auto-${pe}`, r),
1550
1551
  [s, pe, r]
1551
- ), p = ne({
1552
- onReady: x,
1553
- onPlay: y,
1554
- onPause: h,
1555
- onResume: v,
1556
- onComplete: I,
1557
- onError: O,
1558
- onVideoStarted: $,
1559
- onTimeUpdate: b,
1552
+ ), d = de({
1553
+ onReady: w,
1554
+ onPlay: v,
1555
+ onPause: m,
1556
+ onResume: b,
1557
+ onComplete: M,
1558
+ onError: $,
1559
+ onVideoStarted: j,
1560
+ onTimeUpdate: x,
1560
1561
  onQuartile25: k,
1561
1562
  onQuartile50: P,
1562
- onQuartile75: A,
1563
- onNext: F,
1563
+ onQuartile75: C,
1564
+ onNext: V,
1564
1565
  onPrevious: L,
1565
1566
  onProgress10s: z,
1566
- onProgress20s: M,
1567
- onPlaylistItem: S
1567
+ onProgress20s: F,
1568
+ onPlaylistItem: S,
1569
+ onVideoSwitch: te
1568
1570
  });
1569
- Ee(() => {
1570
- p.current = {
1571
- onReady: x,
1572
- onPlay: y,
1573
- onPause: h,
1574
- onResume: v,
1575
- onComplete: I,
1576
- onError: O,
1577
- onVideoStarted: $,
1578
- onTimeUpdate: b,
1571
+ Se(() => {
1572
+ d.current = {
1573
+ onReady: w,
1574
+ onPlay: v,
1575
+ onPause: m,
1576
+ onResume: b,
1577
+ onComplete: M,
1578
+ onError: $,
1579
+ onVideoStarted: j,
1580
+ onTimeUpdate: x,
1579
1581
  onQuartile25: k,
1580
1582
  onQuartile50: P,
1581
- onQuartile75: A,
1582
- onNext: F,
1583
+ onQuartile75: C,
1584
+ onNext: V,
1583
1585
  onPrevious: L,
1584
1586
  onProgress10s: z,
1585
- onProgress20s: M,
1586
- onPlaylistItem: S
1587
+ onProgress20s: F,
1588
+ onPlaylistItem: S,
1589
+ onVideoSwitch: te
1587
1590
  };
1588
1591
  }, [
1589
- x,
1590
- y,
1591
- h,
1592
+ w,
1592
1593
  v,
1593
- I,
1594
- O,
1595
- $,
1594
+ m,
1596
1595
  b,
1596
+ M,
1597
+ $,
1598
+ j,
1599
+ x,
1597
1600
  k,
1598
1601
  P,
1599
- A,
1600
- F,
1602
+ C,
1603
+ V,
1601
1604
  L,
1602
1605
  z,
1603
- M,
1604
- S
1606
+ F,
1607
+ S,
1608
+ te
1605
1609
  ]);
1606
- const re = ne(!1), Z = ne(!1), he = ne(void 0), se = ne(!1), ce = ne(null), le = ne(a);
1607
- Ee(() => {
1608
- le.current = a;
1610
+ const ne = de(!1), J = de(!1), fe = de(void 0), ae = de(a);
1611
+ Se(() => {
1612
+ ae.current = a;
1609
1613
  });
1610
- const i = ne(r);
1611
- Ee(() => {
1612
- i.current = r;
1614
+ const le = de(r);
1615
+ Se(() => {
1616
+ le.current = r;
1613
1617
  });
1614
- const m = !!a, E = We(() => u || d ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [u, d, t]), j = We(() => {
1615
- let c;
1618
+ const o = !!a, h = De(() => u || p ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [u, p, t]), O = De(() => {
1619
+ let l;
1616
1620
  if (t)
1617
- c = t;
1618
- else if (e && r && !m)
1619
- c = E ? Ut(e, r) : Lt(e, r);
1621
+ l = t;
1622
+ else if (e && r && !o)
1623
+ l = h ? Dt(e, r) : zt(e, r);
1620
1624
  else if (e)
1621
- c = E ? zt(e) : `https://host.vpplayer.tech/player/${e}.js`;
1625
+ l = h ? Ut(e) : `https://host.vpplayer.tech/player/${e}.js`;
1622
1626
  else
1623
1627
  return null;
1624
- return qt(c, H);
1625
- }, [t, e, r, E, H, m]), { isLoaded: Q, error: o } = Ht(
1628
+ return Ht(l, H);
1629
+ }, [
1630
+ t,
1631
+ e,
1632
+ r,
1633
+ h,
1634
+ H,
1635
+ o
1636
+ ]), { isLoaded: I, error: i } = Gt(
1626
1637
  null,
1627
- j || void 0
1638
+ O || void 0
1628
1639
  );
1629
- return Ee(() => {
1630
- if (!j) {
1631
- Y(
1640
+ return Se(() => {
1641
+ if (!O) {
1642
+ X(
1632
1643
  "VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player."
1633
1644
  );
1634
1645
  return;
1635
1646
  }
1636
- if (o) {
1637
- Y(o);
1647
+ if (i) {
1648
+ X(i);
1638
1649
  return;
1639
1650
  }
1640
- if (!Q) return;
1641
- let c = !0;
1651
+ if (!I) return;
1652
+ let l = !0;
1642
1653
  return (async () => {
1643
- var ue;
1654
+ var K;
1644
1655
  try {
1645
- const te = E ? window.vpVerticalPlayer : window.vpPlayer;
1646
- if (!te) {
1647
- Y(
1648
- `VP Player: Script loaded but global function not found. Expected ${E ? "vpVerticalPlayer" : "vpPlayer"}.`
1656
+ const Q = h ? window.vpVerticalPlayer : window.vpPlayer;
1657
+ if (!Q) {
1658
+ X(
1659
+ `VP Player: Script loaded but global function not found. Expected ${h ? "vpVerticalPlayer" : "vpPlayer"}.`
1649
1660
  );
1650
1661
  return;
1651
1662
  }
1652
- if (await new Promise((C) => setTimeout(C, 0)), !document.getElementById(H)) {
1663
+ if (await new Promise((A) => setTimeout(A, 0)), !document.getElementById(H)) {
1653
1664
  console.error(
1654
1665
  `VP Player: Container element with ID '${H}' not found in DOM.`
1655
1666
  );
1656
1667
  return;
1657
1668
  }
1658
- const R = te(H);
1669
+ const R = Q(H);
1659
1670
  if (!R) {
1660
- Y("VP Player: Failed to get player instance.");
1671
+ X("VP Player: Failed to get player instance.");
1661
1672
  return;
1662
1673
  }
1663
- if (c) {
1664
- if (G.current = R, Y(null), m && le.current) {
1665
- let C;
1666
- const f = await Gt(
1674
+ if (l) {
1675
+ if (q.current = R, X(null), o && ae.current) {
1676
+ let A;
1677
+ const f = await Bt(
1667
1678
  e,
1668
- i.current,
1669
- E
1679
+ le.current,
1680
+ h
1670
1681
  );
1671
- f ? C = Or(f, le.current) : C = le.current, n && !C.projectId && (C.projectId = n);
1682
+ f ? A = $r(f, ae.current) : A = ae.current, n && !A.projectId && (A.projectId = n);
1672
1683
  try {
1673
- await R.setup(C);
1674
- } catch (l) {
1675
- const g = l instanceof Error ? l.message : String(l);
1684
+ await R.setup(A);
1685
+ } catch (c) {
1686
+ const g = c instanceof Error ? c.message : String(c);
1676
1687
  if (g.includes("already initialized")) {
1677
1688
  console.warn(
1678
1689
  "VP Player: Player already initialized, attempting to destroy and retry."
1679
1690
  );
1680
1691
  try {
1681
- if ((ue = R.destroy) == null || ue.call(R), await new Promise((w) => setTimeout(w, 50)), c && document.getElementById(H)) {
1682
- const w = te(H);
1683
- w && (await w.setup(C), G.current = w);
1692
+ if ((K = R.destroy) == null || K.call(R), await new Promise((y) => setTimeout(y, 50)), l && document.getElementById(H)) {
1693
+ const y = Q(H);
1694
+ y && (await y.setup(A), q.current = y);
1684
1695
  }
1685
- } catch (w) {
1696
+ } catch (y) {
1686
1697
  console.error(
1687
1698
  "VP Player: Failed to recover from initialization error",
1688
- w
1699
+ y
1689
1700
  );
1690
1701
  }
1691
1702
  } else {
1692
- console.error("VP Player: Setup error", l), Y(`Player setup failed: ${g}`);
1703
+ console.error("VP Player: Setup error", c), X(`Player setup failed: ${g}`);
1693
1704
  return;
1694
1705
  }
1695
1706
  }
1696
1707
  }
1697
1708
  if (R.on) {
1698
- const C = R.on.bind(R);
1699
- C("vp-event", (f) => {
1700
- var w, U, B, X, Ce, Ke, Qe, er, rr, tr, nr;
1701
- const l = f, g = l == null ? void 0 : l.eventName;
1702
- if (E) {
1703
- if (g === "play" && !Z.current) {
1704
- const ye = R.videoObject;
1705
- (U = (w = p.current).onPlay) == null || U.call(w, ye);
1709
+ const A = R.on.bind(R);
1710
+ A("vp-event", (f) => {
1711
+ var y, U, G, re, Je, Ze, Ke, Qe, er, rr, tr, nr, ar;
1712
+ const c = f, g = c == null ? void 0 : c.eventName;
1713
+ if (h) {
1714
+ if (g === "play" && !J.current) {
1715
+ const ge = R.videoObject;
1716
+ (U = (y = d.current).onPlay) == null || U.call(y, ge);
1706
1717
  }
1707
1718
  if (g === "vp-state-paused") {
1708
- const ge = ((B = R.isEnded) == null ? void 0 : B.call(R)) ?? !1, ye = (l == null ? void 0 : l.interaction) ?? !0;
1709
- !ge && ye && (Z.current = !0, (Ce = (X = p.current).onPause) == null || Ce.call(X));
1719
+ const he = ((G = R.isEnded) == null ? void 0 : G.call(R)) ?? !1, ge = (c == null ? void 0 : c.interaction) ?? !0;
1720
+ !he && ge && (J.current = !0, (Je = (re = d.current).onPause) == null || Je.call(re));
1710
1721
  }
1711
- if (g === "vp-state-playing" && (((l == null ? void 0 : l.interaction) ?? Z.current) && Z.current && ((Qe = (Ke = p.current).onResume) == null || Qe.call(Ke)), Z.current = !1), g === "vp-video-switch") {
1712
- Z.current = !1;
1713
- const ge = l, ye = ge.direction, ar = ge.currentTime ?? 0;
1714
- ye === "next" ? (rr = (er = p.current).onNext) == null || rr.call(er, ar) : ye === "prev" && ((nr = (tr = p.current).onPrevious) == null || nr.call(tr, ar));
1722
+ if (g === "vp-state-playing" && (((c == null ? void 0 : c.interaction) ?? J.current) && J.current && ((Ke = (Ze = d.current).onResume) == null || Ke.call(Ze)), J.current = !1), g === "vp-video-switch") {
1723
+ J.current = !1;
1724
+ const he = c;
1725
+ (er = (Qe = d.current).onVideoSwitch) == null || er.call(Qe, he);
1726
+ const ge = he.direction, ir = he.currentTime ?? 0;
1727
+ ge === "next" ? (tr = (rr = d.current).onNext) == null || tr.call(rr, ir) : ge === "prev" && ((ar = (nr = d.current).onPrevious) == null || ar.call(nr, ir));
1715
1728
  }
1716
- g === "vp-video-completed" && (Z.current = !1);
1729
+ g === "vp-video-completed" && (J.current = !1);
1717
1730
  }
1718
- }), C("analytics-25%-completed", () => {
1719
- var f, l;
1720
- (l = (f = p.current).onQuartile25) == null || l.call(f);
1721
- }), C("analytics-50%-completed", () => {
1722
- var f, l;
1723
- (l = (f = p.current).onQuartile50) == null || l.call(f);
1724
- }), C("analytics-75%-completed", () => {
1725
- var f, l;
1726
- (l = (f = p.current).onQuartile75) == null || l.call(f);
1727
- }), E || C("pause", () => {
1728
- var f, l;
1729
- (l = (f = p.current).onPause) == null || l.call(f);
1730
- }), C("error", (f) => {
1731
- var g, w;
1732
- const l = typeof f == "string" ? f : (f == null ? void 0 : f.message) || "Unknown error";
1733
- (w = (g = p.current).onError) == null || w.call(g, l);
1734
- }), E ? (C("vp-first-frame", () => {
1735
- var g, w;
1736
- const l = R.videoObject;
1737
- (w = (g = p.current).onReady) == null || w.call(g, l);
1738
- }), C("vp-video-started", (f) => {
1739
- var l, g;
1740
- (g = (l = p.current).onVideoStarted) == null || g.call(l, f);
1741
- }), C("vp-twenty-view", () => {
1742
- var l, g, w;
1743
- const f = ((l = R.getPosition) == null ? void 0 : l.call(R)) ?? 20;
1744
- (w = (g = p.current).onProgress20s) == null || w.call(g, Math.floor(f));
1745
- }), C("vp-video-state", () => {
1746
- var l, g, w;
1747
- const f = ((l = R.getPosition) == null ? void 0 : l.call(R)) ?? 0;
1748
- (w = (g = p.current).onProgress10s) == null || w.call(
1731
+ }), A("analytics-25%-completed", () => {
1732
+ var f, c;
1733
+ (c = (f = d.current).onQuartile25) == null || c.call(f);
1734
+ }), A("analytics-50%-completed", () => {
1735
+ var f, c;
1736
+ (c = (f = d.current).onQuartile50) == null || c.call(f);
1737
+ }), A("analytics-75%-completed", () => {
1738
+ var f, c;
1739
+ (c = (f = d.current).onQuartile75) == null || c.call(f);
1740
+ }), h || A("pause", () => {
1741
+ var f, c;
1742
+ (c = (f = d.current).onPause) == null || c.call(f);
1743
+ }), A("error", (f) => {
1744
+ var g, y;
1745
+ const c = typeof f == "string" ? f : (f == null ? void 0 : f.message) || "Unknown error";
1746
+ (y = (g = d.current).onError) == null || y.call(g, c);
1747
+ }), h ? (A("vp-first-frame", () => {
1748
+ var g, y;
1749
+ const c = R.videoObject;
1750
+ (y = (g = d.current).onReady) == null || y.call(g, c);
1751
+ }), A("vp-video-started", (f) => {
1752
+ var c, g;
1753
+ (g = (c = d.current).onVideoStarted) == null || g.call(c, f);
1754
+ }), A("vp-twenty-view", () => {
1755
+ var c, g, y;
1756
+ const f = ((c = R.getPosition) == null ? void 0 : c.call(R)) ?? 20;
1757
+ (y = (g = d.current).onProgress20s) == null || y.call(g, Math.floor(f));
1758
+ }), A("vp-video-state", () => {
1759
+ var c, g, y;
1760
+ const f = ((c = R.getPosition) == null ? void 0 : c.call(R)) ?? 0;
1761
+ (y = (g = d.current).onProgress10s) == null || y.call(
1749
1762
  g,
1750
1763
  Math.floor(f)
1751
1764
  );
1752
- }), C("vp-time", (f) => {
1753
- var g, w, U;
1754
- let l = 0;
1755
- typeof f == "number" ? l = f : f && typeof f == "object" && "position" in f ? l = f.position : l = ((g = R.getPosition) == null ? void 0 : g.call(R)) ?? 0, (U = (w = p.current).onTimeUpdate) == null || U.call(w, l);
1756
- }), C("vp-video-completed", () => {
1757
- var f, l;
1758
- (l = (f = p.current).onComplete) == null || l.call(f);
1759
- })) : (C("ready", () => {
1760
- var f, l;
1761
- (l = (f = p.current).onReady) == null || l.call(f);
1762
- }), C("play", (f) => {
1763
- var g, w, U, B, X;
1764
- if (ce.current) {
1765
- try {
1766
- (g = R.setVideoLocking) == null || g.call(R, ce.current);
1767
- } catch (Ce) {
1768
- console.warn("[VPPlayer] Failed to apply pending video locking:", Ce);
1769
- }
1770
- ce.current = null;
1771
- }
1772
- se.current = !1;
1773
- const l = f;
1774
- l != null && l.resume || l != null && l.afterPause ? (U = (w = p.current).onResume) == null || U.call(w) : (X = (B = p.current).onPlay) == null || X.call(B);
1775
- }), C("complete", () => {
1776
- var f, l;
1777
- (l = (f = p.current).onComplete) == null || l.call(f), re.current = !1;
1778
- }), C("video-started", (f) => {
1779
- var B, X;
1780
- const l = f ?? {}, g = l.videoId || he.current, w = vr(g, R), U = {
1781
- ...l,
1765
+ }), A("vp-time", (f) => {
1766
+ var g, y, U;
1767
+ let c = 0;
1768
+ typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((g = R.getPosition) == null ? void 0 : g.call(R)) ?? 0, (U = (y = d.current).onTimeUpdate) == null || U.call(y, c);
1769
+ }), A("vp-video-completed", () => {
1770
+ var f, c;
1771
+ (c = (f = d.current).onComplete) == null || c.call(f);
1772
+ })) : (A("ready", () => {
1773
+ var f, c;
1774
+ (c = (f = d.current).onReady) == null || c.call(f);
1775
+ }), A("play", (f) => {
1776
+ var g, y, U, G;
1777
+ const c = f;
1778
+ c != null && c.resume || c != null && c.afterPause ? (y = (g = d.current).onResume) == null || y.call(g) : (G = (U = d.current).onPlay) == null || G.call(U);
1779
+ }), A("complete", () => {
1780
+ var f, c;
1781
+ (c = (f = d.current).onComplete) == null || c.call(f), ne.current = !1;
1782
+ }), A("video-started", (f) => {
1783
+ var G, re;
1784
+ const c = f ?? {}, g = c.videoId || fe.current, y = br(g, R), U = {
1785
+ ...c,
1782
1786
  videoId: g,
1783
- nextVideoId: w
1787
+ nextVideoId: y
1784
1788
  };
1785
- (X = (B = p.current).onVideoStarted) == null || X.call(B, U);
1786
- }), C("video-state", () => {
1787
- var l, g, w;
1788
- const f = ((l = R.getPosition) == null ? void 0 : l.call(R)) ?? 0;
1789
- (w = (g = p.current).onProgress10s) == null || w.call(
1789
+ (re = (G = d.current).onVideoStarted) == null || re.call(G, U);
1790
+ }), A("video-state", () => {
1791
+ var c, g, y;
1792
+ const f = ((c = R.getPosition) == null ? void 0 : c.call(R)) ?? 0;
1793
+ (y = (g = d.current).onProgress10s) == null || y.call(
1790
1794
  g,
1791
1795
  Math.floor(f)
1792
1796
  );
1793
- }), C("time", (f) => {
1794
- var g, w, U, B, X;
1795
- let l = 0;
1796
- typeof f == "number" ? l = f : f && typeof f == "object" && "position" in f ? l = f.position : l = ((g = R.getPosition) == null ? void 0 : g.call(R)) ?? 0, (U = (w = p.current).onTimeUpdate) == null || U.call(w, l), !re.current && l >= 20 && (re.current = !0, (X = (B = p.current).onProgress20s) == null || X.call(B, Math.floor(l)));
1797
- }), C("playlistItem", (f) => {
1798
- var B, X;
1799
- se.current = !0, re.current = !1;
1800
- const l = f;
1801
- he.current = l == null ? void 0 : l.id;
1802
- const g = l == null ? void 0 : l.id, w = vr(g, R), U = {
1797
+ }), A("time", (f) => {
1798
+ var g, y, U, G, re;
1799
+ let c = 0;
1800
+ typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((g = R.getPosition) == null ? void 0 : g.call(R)) ?? 0, (U = (y = d.current).onTimeUpdate) == null || U.call(y, c), !ne.current && c >= 20 && (ne.current = !0, (re = (G = d.current).onProgress20s) == null || re.call(G, Math.floor(c)));
1801
+ }), A("playlistItem", (f) => {
1802
+ var G, re;
1803
+ ne.current = !1;
1804
+ const c = f;
1805
+ fe.current = c == null ? void 0 : c.id;
1806
+ const g = c == null ? void 0 : c.id, y = br(g, R), U = {
1803
1807
  videoId: g,
1804
- nextVideoId: w
1808
+ nextVideoId: y
1805
1809
  };
1806
- (X = (B = p.current).onPlaylistItem) == null || X.call(B, U);
1807
- }), C("nextClick", (f) => {
1808
- var w, U;
1809
- const l = f, g = (l == null ? void 0 : l.currentTime) ?? 0;
1810
- (U = (w = p.current).onNext) == null || U.call(w, g);
1810
+ (re = (G = d.current).onPlaylistItem) == null || re.call(G, U);
1811
+ }), A("nextClick", (f) => {
1812
+ var y, U;
1813
+ const c = f, g = (c == null ? void 0 : c.currentTime) ?? 0;
1814
+ (U = (y = d.current).onNext) == null || U.call(y, g);
1815
+ }), A("vp-video-switch", (f) => {
1816
+ var g, y;
1817
+ const c = f ?? {};
1818
+ (y = (g = d.current).onVideoSwitch) == null || y.call(g, c);
1811
1819
  }));
1812
1820
  }
1813
1821
  }
1814
- } catch (te) {
1815
- if (c) {
1816
- const Ze = te instanceof Error ? te.message : String(te);
1817
- Y(Ze), console.error("VP Player initialization error:", te);
1822
+ } catch (Q) {
1823
+ if (l) {
1824
+ const Ae = Q instanceof Error ? Q.message : String(Q);
1825
+ X(Ae), console.error("VP Player initialization error:", Q);
1818
1826
  }
1819
1827
  }
1820
1828
  })(), () => {
1821
- var ue;
1822
- if (c = !1, (ue = G.current) != null && ue.destroy) {
1829
+ var K;
1830
+ if (l = !1, (K = q.current) != null && K.destroy) {
1823
1831
  try {
1824
- G.current.destroy();
1832
+ q.current.destroy();
1825
1833
  } catch {
1826
1834
  }
1827
- G.current = null;
1835
+ q.current = null;
1828
1836
  }
1829
1837
  };
1830
1838
  }, [
1831
- Q,
1839
+ I,
1832
1840
  H,
1841
+ i,
1842
+ O,
1843
+ h,
1833
1844
  o,
1834
- j,
1835
- E,
1836
- m,
1837
1845
  e,
1838
1846
  n
1839
1847
  ]), {
1840
- playerRef: de,
1841
- playerInstanceRef: G,
1842
- isScriptLoaded: Q,
1843
- isLoading: !Q && !ee,
1848
+ playerRef: ce,
1849
+ playerInstanceRef: q,
1850
+ isScriptLoaded: I,
1851
+ isLoading: !I && !ee,
1844
1852
  error: ee,
1845
- generatedPlayerId: H,
1846
- // Expose transition state for safe config updates
1847
- isInPlaylistTransitionRef: se,
1848
- pendingVideoLockingRef: ce
1853
+ generatedPlayerId: H
1849
1854
  };
1850
- }, Xt = br(
1855
+ }, Jt = xr(
1851
1856
  ({
1852
1857
  scriptId: e,
1853
1858
  videoId: r,
@@ -1856,38 +1861,37 @@ const Bt = ({
1856
1861
  config: a,
1857
1862
  playerId: s,
1858
1863
  isVertical: u = !1,
1859
- isReels: d = !1,
1860
- thumbnailUrl: x,
1861
- onClose: y,
1862
- className: h,
1863
- hiddenClasses: v = [],
1864
- onReady: I,
1865
- onPlay: O,
1866
- onPause: $,
1867
- onResume: b,
1864
+ isReels: p = !1,
1865
+ thumbnailUrl: w,
1866
+ onClose: v,
1867
+ className: m,
1868
+ hiddenClasses: b = [],
1869
+ onReady: M,
1870
+ onPlay: $,
1871
+ onPause: j,
1872
+ onResume: x,
1868
1873
  onComplete: k,
1869
1874
  onError: P,
1870
- onVideoStarted: A,
1871
- onTimeUpdate: F,
1875
+ onVideoStarted: C,
1876
+ onTimeUpdate: V,
1872
1877
  onQuartile25: L,
1873
1878
  onQuartile50: z,
1874
- onQuartile75: M,
1879
+ onQuartile75: F,
1875
1880
  onNext: S,
1876
- onPrevious: de,
1877
- onProgress10s: G,
1878
- onProgress20s: ee,
1879
- onPlaylistItem: Y
1881
+ onPrevious: te,
1882
+ onProgress10s: ce,
1883
+ onProgress20s: q,
1884
+ onPlaylistItem: ee,
1885
+ onVideoSwitch: X
1880
1886
  }, pe) => {
1881
1887
  const {
1882
1888
  playerRef: H,
1883
- playerInstanceRef: p,
1884
- isScriptLoaded: re,
1885
- isLoading: Z,
1886
- error: he,
1887
- generatedPlayerId: se,
1888
- isInPlaylistTransitionRef: ce,
1889
- pendingVideoLockingRef: le
1890
- } = Bt({
1889
+ playerInstanceRef: d,
1890
+ isScriptLoaded: ne,
1891
+ isLoading: J,
1892
+ error: fe,
1893
+ generatedPlayerId: ae
1894
+ } = Xt({
1891
1895
  scriptId: e,
1892
1896
  videoId: r,
1893
1897
  scriptUrl: t,
@@ -1895,133 +1899,129 @@ const Bt = ({
1895
1899
  config: a,
1896
1900
  playerId: s,
1897
1901
  isVertical: u,
1898
- isReels: d,
1899
- onReady: I,
1900
- onPlay: O,
1901
- onPause: $,
1902
- onResume: b,
1902
+ isReels: p,
1903
+ onReady: M,
1904
+ onPlay: $,
1905
+ onPause: j,
1906
+ onResume: x,
1903
1907
  onComplete: k,
1904
1908
  onError: P,
1905
- onVideoStarted: A,
1906
- onTimeUpdate: F,
1909
+ onVideoStarted: C,
1910
+ onTimeUpdate: V,
1907
1911
  onQuartile25: L,
1908
1912
  onQuartile50: z,
1909
- onQuartile75: M,
1913
+ onQuartile75: F,
1910
1914
  onNext: S,
1911
- onPrevious: de,
1912
- onProgress10s: G,
1913
- onProgress20s: ee,
1914
- onPlaylistItem: Y
1915
+ onPrevious: te,
1916
+ onProgress10s: ce,
1917
+ onProgress20s: q,
1918
+ onPlaylistItem: ee,
1919
+ onVideoSwitch: X
1915
1920
  });
1916
- Mr(
1921
+ Fr(
1917
1922
  pe,
1918
1923
  () => ({
1919
1924
  play: () => {
1920
- var o, c;
1921
- return (c = (o = p.current) == null ? void 0 : o.play) == null ? void 0 : c.call(o);
1925
+ var i, l;
1926
+ return (l = (i = d.current) == null ? void 0 : i.play) == null ? void 0 : l.call(i);
1922
1927
  },
1923
1928
  pause: () => {
1924
- var o, c;
1925
- return (c = (o = p.current) == null ? void 0 : o.pause) == null ? void 0 : c.call(o);
1929
+ var i, l;
1930
+ return (l = (i = d.current) == null ? void 0 : i.pause) == null ? void 0 : l.call(i);
1926
1931
  },
1927
- seek: (o) => {
1928
- var c, V;
1929
- return (V = (c = p.current) == null ? void 0 : c.seek) == null ? void 0 : V.call(c, o);
1932
+ seek: (i) => {
1933
+ var l, E;
1934
+ return (E = (l = d.current) == null ? void 0 : l.seek) == null ? void 0 : E.call(l, i);
1930
1935
  },
1931
1936
  forward: () => {
1932
- var o, c;
1933
- return (c = (o = p.current) == null ? void 0 : o.forward) == null ? void 0 : c.call(o);
1937
+ var i, l;
1938
+ return (l = (i = d.current) == null ? void 0 : i.forward) == null ? void 0 : l.call(i);
1934
1939
  },
1935
1940
  rewind: () => {
1936
- var o, c;
1937
- return (c = (o = p.current) == null ? void 0 : o.rewind) == null ? void 0 : c.call(o);
1941
+ var i, l;
1942
+ return (l = (i = d.current) == null ? void 0 : i.rewind) == null ? void 0 : l.call(i);
1938
1943
  },
1939
1944
  replay: () => {
1940
- var o, c;
1941
- return (c = (o = p.current) == null ? void 0 : o.replay) == null ? void 0 : c.call(o);
1945
+ var i, l;
1946
+ return (l = (i = d.current) == null ? void 0 : i.replay) == null ? void 0 : l.call(i);
1942
1947
  },
1943
1948
  mute: () => {
1944
- var o, c;
1945
- return (c = (o = p.current) == null ? void 0 : o.mute) == null ? void 0 : c.call(o);
1949
+ var i, l;
1950
+ return (l = (i = d.current) == null ? void 0 : i.mute) == null ? void 0 : l.call(i);
1946
1951
  },
1947
1952
  unmute: () => {
1948
- var o, c;
1949
- return (c = (o = p.current) == null ? void 0 : o.unmute) == null ? void 0 : c.call(o);
1953
+ var i, l;
1954
+ return (l = (i = d.current) == null ? void 0 : i.unmute) == null ? void 0 : l.call(i);
1950
1955
  },
1951
1956
  togglePlay: () => {
1952
- var o, c;
1953
- return (c = (o = p.current) == null ? void 0 : o.togglePlay) == null ? void 0 : c.call(o);
1957
+ var i, l;
1958
+ return (l = (i = d.current) == null ? void 0 : i.togglePlay) == null ? void 0 : l.call(i);
1954
1959
  },
1955
1960
  toggleMute: () => {
1956
- var o, c;
1957
- return (c = (o = p.current) == null ? void 0 : o.toggleMute) == null ? void 0 : c.call(o);
1961
+ var i, l;
1962
+ return (l = (i = d.current) == null ? void 0 : i.toggleMute) == null ? void 0 : l.call(i);
1958
1963
  },
1959
1964
  enterFullScreen: () => {
1960
- var o, c, V;
1961
- return (V = ((o = p.current) == null ? void 0 : o.enterFullScreen) ?? ((c = p.current) == null ? void 0 : c.enterFullscreen)) == null ? void 0 : V();
1965
+ var i, l, E;
1966
+ return (E = ((i = d.current) == null ? void 0 : i.enterFullScreen) ?? ((l = d.current) == null ? void 0 : l.enterFullscreen)) == null ? void 0 : E();
1962
1967
  },
1963
1968
  exitFullScreen: () => {
1964
- var o, c, V;
1965
- return (V = ((o = p.current) == null ? void 0 : o.exitFullScreen) ?? ((c = p.current) == null ? void 0 : c.exitFullscreen)) == null ? void 0 : V();
1969
+ var i, l, E;
1970
+ return (E = ((i = d.current) == null ? void 0 : i.exitFullScreen) ?? ((l = d.current) == null ? void 0 : l.exitFullscreen)) == null ? void 0 : E();
1966
1971
  },
1967
1972
  getPosition: () => {
1968
- var o, c;
1969
- return ((c = (o = p.current) == null ? void 0 : o.getPosition) == null ? void 0 : c.call(o)) ?? null;
1973
+ var i, l;
1974
+ return ((l = (i = d.current) == null ? void 0 : i.getPosition) == null ? void 0 : l.call(i)) ?? null;
1970
1975
  },
1971
1976
  getDuration: () => {
1972
- var o, c;
1973
- return ((c = (o = p.current) == null ? void 0 : o.getDuration) == null ? void 0 : c.call(o)) ?? null;
1977
+ var i, l;
1978
+ return ((l = (i = d.current) == null ? void 0 : i.getDuration) == null ? void 0 : l.call(i)) ?? null;
1974
1979
  },
1975
1980
  getVolume: () => {
1976
- var o, c;
1977
- return ((c = (o = p.current) == null ? void 0 : o.getVolume) == null ? void 0 : c.call(o)) ?? null;
1981
+ var i, l;
1982
+ return ((l = (i = d.current) == null ? void 0 : i.getVolume) == null ? void 0 : l.call(i)) ?? null;
1978
1983
  },
1979
- setVolume: (o) => {
1980
- var c, V;
1981
- return (V = (c = p.current) == null ? void 0 : c.setVolume) == null ? void 0 : V.call(c, o);
1984
+ setVolume: (i) => {
1985
+ var l, E;
1986
+ return (E = (l = d.current) == null ? void 0 : l.setVolume) == null ? void 0 : E.call(l, i);
1982
1987
  },
1983
1988
  isMuted: () => {
1984
- var o, c;
1985
- return ((c = (o = p.current) == null ? void 0 : o.isMuted) == null ? void 0 : c.call(o)) ?? !1;
1989
+ var i, l;
1990
+ return ((l = (i = d.current) == null ? void 0 : i.isMuted) == null ? void 0 : l.call(i)) ?? !1;
1986
1991
  },
1987
1992
  isPlaying: () => {
1988
- var o, c;
1989
- return ((c = (o = p.current) == null ? void 0 : o.isPlaying) == null ? void 0 : c.call(o)) ?? !1;
1993
+ var i, l;
1994
+ return ((l = (i = d.current) == null ? void 0 : i.isPlaying) == null ? void 0 : l.call(i)) ?? !1;
1990
1995
  },
1991
1996
  isPaused: () => {
1992
- var o, c;
1993
- return ((c = (o = p.current) == null ? void 0 : o.isPaused) == null ? void 0 : c.call(o)) ?? !1;
1997
+ var i, l;
1998
+ return ((l = (i = d.current) == null ? void 0 : i.isPaused) == null ? void 0 : l.call(i)) ?? !1;
1994
1999
  },
1995
2000
  isFullscreen: () => {
1996
- var o, c;
1997
- return ((c = (o = p.current) == null ? void 0 : o.isFullscreen) == null ? void 0 : c.call(o)) ?? !1;
2001
+ var i, l;
2002
+ return ((l = (i = d.current) == null ? void 0 : i.isFullscreen) == null ? void 0 : l.call(i)) ?? !1;
1998
2003
  },
1999
- setVideoLocking: (o) => {
2000
- var c, V;
2001
- if (!p.current) {
2002
- console.error("[VPPlayer] No player instance");
2003
- return;
2004
- }
2005
- if (ce.current) {
2006
- le.current = o;
2007
- return;
2008
- }
2009
- (V = (c = p.current).setVideoLocking) == null || V.call(c, o);
2004
+ shouldLockVideo: (i) => {
2005
+ d.current && (d.current.shouldLockVideo = i ?? void 0);
2006
+ },
2007
+ removeVideoLock: () => {
2008
+ var i, l;
2009
+ return (l = (i = d.current) == null ? void 0 : i.removeVideoLock) == null ? void 0 : l.call(i);
2010
2010
  }
2011
2011
  }),
2012
2012
  // eslint-disable-next-line react-hooks/exhaustive-deps
2013
2013
  []
2014
2014
  );
2015
- const [i, m] = Ne(!0), E = () => d && m(!0), j = () => {
2016
- var o, c;
2017
- !d || !i || (m(!1), (c = (o = p.current) == null ? void 0 : o.pause) == null || c.call(o), y == null || y());
2015
+ const [le, o] = Ve(!0), h = () => p && o(!0), O = () => {
2016
+ var i, l;
2017
+ !p || !le || (o(!1), (l = (i = d.current) == null ? void 0 : i.pause) == null || l.call(i), v == null || v());
2018
2018
  };
2019
- if (he)
2020
- return /* @__PURE__ */ D.jsxs(gr, { type: "error", children: [
2019
+ if (fe)
2020
+ return /* @__PURE__ */ D.jsxs(yr, { type: "error", children: [
2021
2021
  "An error occurred: ",
2022
- he
2022
+ fe
2023
2023
  ] });
2024
- const Q = () => /* @__PURE__ */ D.jsx(
2024
+ const I = () => /* @__PURE__ */ D.jsx(
2025
2025
  "div",
2026
2026
  {
2027
2027
  style: {
@@ -2036,29 +2036,29 @@ const Bt = ({
2036
2036
  background: "rgba(0,0,0,0.8)",
2037
2037
  zIndex: 10
2038
2038
  },
2039
- children: /* @__PURE__ */ D.jsx(gr, { type: "loading", children: "Loading..." })
2039
+ children: /* @__PURE__ */ D.jsx(yr, { type: "loading", children: "Loading..." })
2040
2040
  }
2041
2041
  );
2042
- return d ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
2043
- !i && /* @__PURE__ */ D.jsx(
2042
+ return p ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
2043
+ !le && /* @__PURE__ */ D.jsx(
2044
2044
  "div",
2045
2045
  {
2046
- onClick: E,
2046
+ onClick: h,
2047
2047
  style: {
2048
2048
  cursor: "pointer",
2049
2049
  width: "100%",
2050
2050
  height: "100%",
2051
- backgroundImage: x ? `url(${x})` : void 0,
2051
+ backgroundImage: w ? `url(${w})` : void 0,
2052
2052
  backgroundSize: "cover",
2053
2053
  backgroundPosition: "center"
2054
2054
  }
2055
2055
  }
2056
2056
  ),
2057
- i && /* @__PURE__ */ D.jsx(Ft, { onClick: j, className: h, children: /* @__PURE__ */ D.jsx(
2058
- Vt,
2057
+ le && /* @__PURE__ */ D.jsx(Vt, { onClick: O, className: m, children: /* @__PURE__ */ D.jsx(
2058
+ Nt,
2059
2059
  {
2060
- className: h,
2061
- onClick: (o) => o.stopPropagation(),
2060
+ className: m,
2061
+ onClick: (i) => i.stopPropagation(),
2062
2062
  children: /* @__PURE__ */ D.jsxs(
2063
2063
  "div",
2064
2064
  {
@@ -2069,17 +2069,17 @@ const Bt = ({
2069
2069
  },
2070
2070
  children: [
2071
2071
  /* @__PURE__ */ D.jsx(
2072
- yr,
2072
+ vr,
2073
2073
  {
2074
- id: se,
2074
+ id: ae,
2075
2075
  ref: H,
2076
2076
  width: "100%",
2077
2077
  height: "100%",
2078
- $hiddenClasses: v,
2079
- className: h
2078
+ $hiddenClasses: b,
2079
+ className: m
2080
2080
  }
2081
2081
  ),
2082
- (Z || !re) && /* @__PURE__ */ D.jsx(Q, {})
2082
+ (J || !ne) && /* @__PURE__ */ D.jsx(I, {})
2083
2083
  ]
2084
2084
  }
2085
2085
  )
@@ -2087,33 +2087,33 @@ const Bt = ({
2087
2087
  ) })
2088
2088
  ] }) : /* @__PURE__ */ D.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
2089
2089
  /* @__PURE__ */ D.jsx(
2090
- yr,
2090
+ vr,
2091
2091
  {
2092
- id: se,
2092
+ id: ae,
2093
2093
  ref: H,
2094
2094
  width: "100%",
2095
2095
  height: "100%",
2096
- $hiddenClasses: v,
2097
- className: h
2096
+ $hiddenClasses: b,
2097
+ className: m
2098
2098
  }
2099
2099
  ),
2100
- (Z || !re) && /* @__PURE__ */ D.jsx(Q, {})
2100
+ (J || !ne) && /* @__PURE__ */ D.jsx(I, {})
2101
2101
  ] });
2102
2102
  }
2103
2103
  );
2104
- Xt.displayName = "VPPlayer";
2104
+ Jt.displayName = "VPPlayer";
2105
2105
  export {
2106
- Ft as Overlay,
2107
- yr as PlayerContainer,
2108
- Vt as PlayerWrapper,
2109
- Xt as VPPlayer,
2106
+ Vt as Overlay,
2107
+ vr as PlayerContainer,
2108
+ Nt as PlayerWrapper,
2109
+ Jt as VPPlayer,
2110
2110
  me as VP_PLAYER_BASE_URL,
2111
- qt as appendDivIdToUrl,
2112
- Yt as generatePlayerId,
2113
- Lt as getFullyManagedPlayerScriptUrl,
2114
- Zt as getManagedPlayerScriptUrl,
2115
- Nt as getPlayerScriptUrl,
2116
- zt as getVerticalPlayerScriptUrl,
2117
- Bt as useVPPlayerLogic,
2118
- Ht as useVPPlayerScript
2111
+ Ht as appendDivIdToUrl,
2112
+ qt as generatePlayerId,
2113
+ zt as getFullyManagedPlayerScriptUrl,
2114
+ Kt as getManagedPlayerScriptUrl,
2115
+ Lt as getPlayerScriptUrl,
2116
+ Ut as getVerticalPlayerScriptUrl,
2117
+ Xt as useVPPlayerLogic,
2118
+ Gt as useVPPlayerScript
2119
2119
  };