react-audio-player-steroids
Version:
A mobile-friendly audio player for React with a modern look and convenient usage. But, with steroids.
1,446 lines (1,440 loc) • 71.7 kB
JavaScript
import qe, { forwardRef as vr, useRef as pr, useState as G, useImperativeHandle as Ir, useEffect as Ke } from "react";
var lr = { exports: {} }, He = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var fr;
function zr() {
if (fr)
return He;
fr = 1;
var v = qe, j = Symbol.for("react.element"), z = Symbol.for("react.fragment"), I = Object.prototype.hasOwnProperty, m = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
function T(D, M, g) {
var s, f = {}, L = null, E = null;
g !== void 0 && (L = "" + g), M.key !== void 0 && (L = "" + M.key), M.ref !== void 0 && (E = M.ref);
for (s in M)
I.call(M, s) && !A.hasOwnProperty(s) && (f[s] = M[s]);
if (D && D.defaultProps)
for (s in M = D.defaultProps, M)
f[s] === void 0 && (f[s] = M[s]);
return { $$typeof: j, type: D, key: L, ref: E, props: f, _owner: m.current };
}
return He.Fragment = z, He.jsx = T, He.jsxs = T, He;
}
var Je = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Nr;
function mr() {
return Nr || (Nr = 1, process.env.NODE_ENV !== "production" && function() {
var v = qe, j = Symbol.for("react.element"), z = Symbol.for("react.portal"), I = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), D = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), U = Symbol.iterator, Y = "@@iterator";
function R(e) {
if (e === null || typeof e != "object")
return null;
var r = U && e[U] || e[Y];
return typeof r == "function" ? r : null;
}
var d = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function c(e) {
{
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
t[n - 1] = arguments[n];
p("error", e, t);
}
}
function p(e, r, t) {
{
var n = d.ReactDebugCurrentFrame, o = n.getStackAddendum();
o !== "" && (r += "%s", t = t.concat([o]));
var u = t.map(function(i) {
return String(i);
});
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
}
}
var oe = !1, ue = !1, X = !1, Oe = !1, be = !1, je;
je = Symbol.for("react.module.reference");
function Ae(e) {
return !!(typeof e == "string" || typeof e == "function" || e === I || e === A || be || e === m || e === g || e === s || Oe || e === E || oe || ue || X || typeof e == "object" && e !== null && (e.$$typeof === L || e.$$typeof === f || e.$$typeof === T || e.$$typeof === D || e.$$typeof === M || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
e.$$typeof === je || e.getModuleId !== void 0));
}
function Ee(e, r, t) {
var n = e.displayName;
if (n)
return n;
var o = r.displayName || r.name || "";
return o !== "" ? t + "(" + o + ")" : t;
}
function ge(e) {
return e.displayName || "Context";
}
function C(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
return e.displayName || e.name || null;
if (typeof e == "string")
return e;
switch (e) {
case I:
return "Fragment";
case z:
return "Portal";
case A:
return "Profiler";
case m:
return "StrictMode";
case g:
return "Suspense";
case s:
return "SuspenseList";
}
if (typeof e == "object")
switch (e.$$typeof) {
case D:
var r = e;
return ge(r) + ".Consumer";
case T:
var t = e;
return ge(t._context) + ".Provider";
case M:
return Ee(e, e.render, "ForwardRef");
case f:
var n = e.displayName || null;
return n !== null ? n : C(e.type) || "Memo";
case L: {
var o = e, u = o._payload, i = o._init;
try {
return C(i(u));
} catch {
return null;
}
}
}
return null;
}
var h = Object.assign, P = 0, se, de, De, Le, ce, pe, we;
function ve() {
}
ve.__reactDisabledLog = !0;
function me() {
{
if (P === 0) {
se = console.log, de = console.info, De = console.warn, Le = console.error, ce = console.group, pe = console.groupCollapsed, we = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: ve,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
P++;
}
}
function Ce() {
{
if (P--, P === 0) {
var e = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: h({}, e, {
value: se
}),
info: h({}, e, {
value: de
}),
warn: h({}, e, {
value: De
}),
error: h({}, e, {
value: Le
}),
group: h({}, e, {
value: ce
}),
groupCollapsed: h({}, e, {
value: pe
}),
groupEnd: h({}, e, {
value: we
})
});
}
P < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var $ = d.ReactCurrentDispatcher, K;
function B(e, r, t) {
{
if (K === void 0)
try {
throw Error();
} catch (o) {
var n = o.stack.trim().match(/\n( *(at )?)/);
K = n && n[1] || "";
}
return `
` + K + e;
}
}
var q = !1, F;
{
var he = typeof WeakMap == "function" ? WeakMap : Map;
F = new he();
}
function le(e, r) {
if (!e || q)
return "";
{
var t = F.get(e);
if (t !== void 0)
return t;
}
var n;
q = !0;
var o = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var u;
u = $.current, $.current = null, me();
try {
if (r) {
var i = function() {
throw Error();
};
if (Object.defineProperty(i.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(i, []);
} catch (x) {
n = x;
}
Reflect.construct(e, [], i);
} else {
try {
i.call();
} catch (x) {
n = x;
}
e.call(i.prototype);
}
} else {
try {
throw Error();
} catch (x) {
n = x;
}
e();
}
} catch (x) {
if (x && n && typeof x.stack == "string") {
for (var a = x.stack.split(`
`), w = n.stack.split(`
`), N = a.length - 1, y = w.length - 1; N >= 1 && y >= 0 && a[N] !== w[y]; )
y--;
for (; N >= 1 && y >= 0; N--, y--)
if (a[N] !== w[y]) {
if (N !== 1 || y !== 1)
do
if (N--, y--, y < 0 || a[N] !== w[y]) {
var S = `
` + a[N].replace(" at new ", " at ");
return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && F.set(e, S), S;
}
while (N >= 1 && y >= 0);
break;
}
}
} finally {
q = !1, $.current = u, Ce(), Error.prepareStackTrace = o;
}
var V = e ? e.displayName || e.name : "", Fe = V ? B(V) : "";
return typeof e == "function" && F.set(e, Fe), Fe;
}
function ke(e, r, t) {
return le(e, !1);
}
function l(e) {
var r = e.prototype;
return !!(r && r.isReactComponent);
}
function Q(e, r, t) {
if (e == null)
return "";
if (typeof e == "function")
return le(e, l(e));
if (typeof e == "string")
return B(e);
switch (e) {
case g:
return B("Suspense");
case s:
return B("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case M:
return ke(e.render);
case f:
return Q(e.type, r, t);
case L: {
var n = e, o = n._payload, u = n._init;
try {
return Q(u(o), r, t);
} catch {
}
}
}
return "";
}
var _ = Object.prototype.hasOwnProperty, J = {}, Me = d.ReactDebugCurrentFrame;
function W(e) {
if (e) {
var r = e._owner, t = Q(e.type, e._source, r ? r.type : null);
Me.setExtraStackFrame(t);
} else
Me.setExtraStackFrame(null);
}
function Ie(e, r, t, n, o) {
{
var u = Function.call.bind(_);
for (var i in e)
if (u(e, i)) {
var a = void 0;
try {
if (typeof e[i] != "function") {
var w = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw w.name = "Invariant Violation", w;
}
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (N) {
a = N;
}
a && !(a instanceof Error) && (W(o), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), W(null)), a instanceof Error && !(a.message in J) && (J[a.message] = !0, W(o), c("Failed %s type: %s", t, a.message), W(null));
}
}
}
var xe = Array.isArray;
function ee(e) {
return xe(e);
}
function ze(e) {
{
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
return t;
}
}
function Ue(e) {
try {
return re(e), !1;
} catch {
return !0;
}
}
function re(e) {
return "" + e;
}
function te(e) {
if (Ue(e))
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), re(e);
}
var Z = d.ReactCurrentOwner, Ye = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, fe, Ne, H;
H = {};
function Re(e) {
if (_.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
if (r && r.isReactWarning)
return !1;
}
return e.ref !== void 0;
}
function Pe(e) {
if (_.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;
if (r && r.isReactWarning)
return !1;
}
return e.key !== void 0;
}
function Qe(e, r) {
if (typeof e.ref == "string" && Z.current && r && Z.current.stateNode !== r) {
var t = C(Z.current.type);
H[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(Z.current.type), e.ref), H[t] = !0);
}
}
function ne(e, r) {
{
var t = function() {
fe || (fe = !0, c("%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://reactjs.org/link/special-props)", r));
};
t.isReactWarning = !0, Object.defineProperty(e, "key", {
get: t,
configurable: !0
});
}
}
function We(e, r) {
{
var t = function() {
Ne || (Ne = !0, c("%s: `ref` 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://reactjs.org/link/special-props)", r));
};
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
get: t,
configurable: !0
});
}
}
var Se = function(e, r, t, n, o, u, i) {
var a = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: j,
// Built-in properties that belong on the element
type: e,
key: r,
ref: t,
props: i,
// Record the component responsible for creating this element.
_owner: u
};
return a._store = {}, Object.defineProperty(a._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(a, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: n
}), Object.defineProperty(a, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: o
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
};
function Te(e, r, t, n, o) {
{
var u, i = {}, a = null, w = null;
t !== void 0 && (te(t), a = "" + t), Pe(r) && (te(r.key), a = "" + r.key), Re(r) && (w = r.ref, Qe(r, o));
for (u in r)
_.call(r, u) && !Ye.hasOwnProperty(u) && (i[u] = r[u]);
if (e && e.defaultProps) {
var N = e.defaultProps;
for (u in N)
i[u] === void 0 && (i[u] = N[u]);
}
if (a || w) {
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && ne(i, y), w && We(i, y);
}
return Se(e, a, w, o, n, Z.current, i);
}
}
var ae = d.ReactCurrentOwner, O = d.ReactDebugCurrentFrame;
function k(e) {
if (e) {
var r = e._owner, t = Q(e.type, e._source, r ? r.type : null);
O.setExtraStackFrame(t);
} else
O.setExtraStackFrame(null);
}
var ye;
ye = !1;
function ie(e) {
return typeof e == "object" && e !== null && e.$$typeof === j;
}
function Ze() {
{
if (ae.current) {
var e = C(ae.current.type);
if (e)
return `
Check the render method of \`` + e + "`.";
}
return "";
}
}
function er(e) {
{
if (e !== void 0) {
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
return `
Check your code at ` + r + ":" + t + ".";
}
return "";
}
}
var Ve = {};
function rr(e) {
{
var r = Ze();
if (!r) {
var t = typeof e == "string" ? e : e.displayName || e.name;
t && (r = `
Check the top-level render call using <` + t + ">.");
}
return r;
}
}
function _e(e, r) {
{
if (!e._store || e._store.validated || e.key != null)
return;
e._store.validated = !0;
var t = rr(r);
if (Ve[t])
return;
Ve[t] = !0;
var n = "";
e && e._owner && e._owner !== ae.current && (n = " It was passed a child from " + C(e._owner.type) + "."), k(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
}
}
function Ge(e, r) {
{
if (typeof e != "object")
return;
if (ee(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
ie(n) && _e(n, r);
}
else if (ie(e))
e._store && (e._store.validated = !0);
else if (e) {
var o = R(e);
if (typeof o == "function" && o !== e.entries)
for (var u = o.call(e), i; !(i = u.next()).done; )
ie(i.value) && _e(i.value, r);
}
}
}
function tr(e) {
{
var r = e.type;
if (r == null || typeof r == "string")
return;
var t;
if (typeof r == "function")
t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === M || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
r.$$typeof === f))
t = r.propTypes;
else
return;
if (t) {
var n = C(r);
Ie(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !ye) {
ye = !0;
var o = C(r);
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function nr(e) {
{
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
var n = r[t];
if (n !== "children" && n !== "key") {
k(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
break;
}
}
e.ref !== null && (k(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
}
}
function Be(e, r, t, n, o, u) {
{
var i = Ae(e);
if (!i) {
var a = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var w = er(o);
w ? a += w : a += Ze();
var N;
e === null ? N = "null" : ee(e) ? N = "array" : e !== void 0 && e.$$typeof === j ? (N = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : N = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, a);
}
var y = Te(e, r, t, o, u);
if (y == null)
return y;
if (i) {
var S = r.children;
if (S !== void 0)
if (n)
if (ee(S)) {
for (var V = 0; V < S.length; V++)
Ge(S[V], e);
Object.freeze && Object.freeze(S);
} else
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
Ge(S, e);
}
return e === I ? nr(y) : tr(y), y;
}
}
function ar(e, r, t) {
return Be(e, r, t, !0);
}
function ir(e, r, t) {
return Be(e, r, t, !1);
}
var or = ir, ur = ar;
Je.Fragment = I, Je.jsx = or, Je.jsxs = ur;
}()), Je;
}
process.env.NODE_ENV === "production" ? lr.exports = zr() : lr.exports = mr();
var b = lr.exports, Mr = { exports: {} }, Xe = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var yr;
function Sr() {
if (yr)
return Xe;
yr = 1;
var v = qe, j = Symbol.for("react.element"), z = Symbol.for("react.fragment"), I = Object.prototype.hasOwnProperty, m = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
function T(D, M, g) {
var s, f = {}, L = null, E = null;
g !== void 0 && (L = "" + g), M.key !== void 0 && (L = "" + M.key), M.ref !== void 0 && (E = M.ref);
for (s in M)
I.call(M, s) && !A.hasOwnProperty(s) && (f[s] = M[s]);
if (D && D.defaultProps)
for (s in M = D.defaultProps, M)
f[s] === void 0 && (f[s] = M[s]);
return { $$typeof: j, type: D, key: L, ref: E, props: f, _owner: m.current };
}
return Xe.Fragment = z, Xe.jsx = T, Xe.jsxs = T, Xe;
}
var $e = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var jr;
function Tr() {
return jr || (jr = 1, process.env.NODE_ENV !== "production" && function() {
var v = qe, j = Symbol.for("react.element"), z = Symbol.for("react.portal"), I = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), D = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), U = Symbol.iterator, Y = "@@iterator";
function R(e) {
if (e === null || typeof e != "object")
return null;
var r = U && e[U] || e[Y];
return typeof r == "function" ? r : null;
}
var d = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function c(e) {
{
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
t[n - 1] = arguments[n];
p("error", e, t);
}
}
function p(e, r, t) {
{
var n = d.ReactDebugCurrentFrame, o = n.getStackAddendum();
o !== "" && (r += "%s", t = t.concat([o]));
var u = t.map(function(i) {
return String(i);
});
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
}
}
var oe = !1, ue = !1, X = !1, Oe = !1, be = !1, je;
je = Symbol.for("react.module.reference");
function Ae(e) {
return !!(typeof e == "string" || typeof e == "function" || e === I || e === A || be || e === m || e === g || e === s || Oe || e === E || oe || ue || X || typeof e == "object" && e !== null && (e.$$typeof === L || e.$$typeof === f || e.$$typeof === T || e.$$typeof === D || e.$$typeof === M || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
e.$$typeof === je || e.getModuleId !== void 0));
}
function Ee(e, r, t) {
var n = e.displayName;
if (n)
return n;
var o = r.displayName || r.name || "";
return o !== "" ? t + "(" + o + ")" : t;
}
function ge(e) {
return e.displayName || "Context";
}
function C(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
return e.displayName || e.name || null;
if (typeof e == "string")
return e;
switch (e) {
case I:
return "Fragment";
case z:
return "Portal";
case A:
return "Profiler";
case m:
return "StrictMode";
case g:
return "Suspense";
case s:
return "SuspenseList";
}
if (typeof e == "object")
switch (e.$$typeof) {
case D:
var r = e;
return ge(r) + ".Consumer";
case T:
var t = e;
return ge(t._context) + ".Provider";
case M:
return Ee(e, e.render, "ForwardRef");
case f:
var n = e.displayName || null;
return n !== null ? n : C(e.type) || "Memo";
case L: {
var o = e, u = o._payload, i = o._init;
try {
return C(i(u));
} catch {
return null;
}
}
}
return null;
}
var h = Object.assign, P = 0, se, de, De, Le, ce, pe, we;
function ve() {
}
ve.__reactDisabledLog = !0;
function me() {
{
if (P === 0) {
se = console.log, de = console.info, De = console.warn, Le = console.error, ce = console.group, pe = console.groupCollapsed, we = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: ve,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
P++;
}
}
function Ce() {
{
if (P--, P === 0) {
var e = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: h({}, e, {
value: se
}),
info: h({}, e, {
value: de
}),
warn: h({}, e, {
value: De
}),
error: h({}, e, {
value: Le
}),
group: h({}, e, {
value: ce
}),
groupCollapsed: h({}, e, {
value: pe
}),
groupEnd: h({}, e, {
value: we
})
});
}
P < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var $ = d.ReactCurrentDispatcher, K;
function B(e, r, t) {
{
if (K === void 0)
try {
throw Error();
} catch (o) {
var n = o.stack.trim().match(/\n( *(at )?)/);
K = n && n[1] || "";
}
return `
` + K + e;
}
}
var q = !1, F;
{
var he = typeof WeakMap == "function" ? WeakMap : Map;
F = new he();
}
function le(e, r) {
if (!e || q)
return "";
{
var t = F.get(e);
if (t !== void 0)
return t;
}
var n;
q = !0;
var o = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var u;
u = $.current, $.current = null, me();
try {
if (r) {
var i = function() {
throw Error();
};
if (Object.defineProperty(i.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(i, []);
} catch (x) {
n = x;
}
Reflect.construct(e, [], i);
} else {
try {
i.call();
} catch (x) {
n = x;
}
e.call(i.prototype);
}
} else {
try {
throw Error();
} catch (x) {
n = x;
}
e();
}
} catch (x) {
if (x && n && typeof x.stack == "string") {
for (var a = x.stack.split(`
`), w = n.stack.split(`
`), N = a.length - 1, y = w.length - 1; N >= 1 && y >= 0 && a[N] !== w[y]; )
y--;
for (; N >= 1 && y >= 0; N--, y--)
if (a[N] !== w[y]) {
if (N !== 1 || y !== 1)
do
if (N--, y--, y < 0 || a[N] !== w[y]) {
var S = `
` + a[N].replace(" at new ", " at ");
return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && F.set(e, S), S;
}
while (N >= 1 && y >= 0);
break;
}
}
} finally {
q = !1, $.current = u, Ce(), Error.prepareStackTrace = o;
}
var V = e ? e.displayName || e.name : "", Fe = V ? B(V) : "";
return typeof e == "function" && F.set(e, Fe), Fe;
}
function ke(e, r, t) {
return le(e, !1);
}
function l(e) {
var r = e.prototype;
return !!(r && r.isReactComponent);
}
function Q(e, r, t) {
if (e == null)
return "";
if (typeof e == "function")
return le(e, l(e));
if (typeof e == "string")
return B(e);
switch (e) {
case g:
return B("Suspense");
case s:
return B("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case M:
return ke(e.render);
case f:
return Q(e.type, r, t);
case L: {
var n = e, o = n._payload, u = n._init;
try {
return Q(u(o), r, t);
} catch {
}
}
}
return "";
}
var _ = Object.prototype.hasOwnProperty, J = {}, Me = d.ReactDebugCurrentFrame;
function W(e) {
if (e) {
var r = e._owner, t = Q(e.type, e._source, r ? r.type : null);
Me.setExtraStackFrame(t);
} else
Me.setExtraStackFrame(null);
}
function Ie(e, r, t, n, o) {
{
var u = Function.call.bind(_);
for (var i in e)
if (u(e, i)) {
var a = void 0;
try {
if (typeof e[i] != "function") {
var w = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw w.name = "Invariant Violation", w;
}
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (N) {
a = N;
}
a && !(a instanceof Error) && (W(o), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), W(null)), a instanceof Error && !(a.message in J) && (J[a.message] = !0, W(o), c("Failed %s type: %s", t, a.message), W(null));
}
}
}
var xe = Array.isArray;
function ee(e) {
return xe(e);
}
function ze(e) {
{
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
return t;
}
}
function Ue(e) {
try {
return re(e), !1;
} catch {
return !0;
}
}
function re(e) {
return "" + e;
}
function te(e) {
if (Ue(e))
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), re(e);
}
var Z = d.ReactCurrentOwner, Ye = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, fe, Ne, H;
H = {};
function Re(e) {
if (_.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
if (r && r.isReactWarning)
return !1;
}
return e.ref !== void 0;
}
function Pe(e) {
if (_.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;
if (r && r.isReactWarning)
return !1;
}
return e.key !== void 0;
}
function Qe(e, r) {
if (typeof e.ref == "string" && Z.current && r && Z.current.stateNode !== r) {
var t = C(Z.current.type);
H[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(Z.current.type), e.ref), H[t] = !0);
}
}
function ne(e, r) {
{
var t = function() {
fe || (fe = !0, c("%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://reactjs.org/link/special-props)", r));
};
t.isReactWarning = !0, Object.defineProperty(e, "key", {
get: t,
configurable: !0
});
}
}
function We(e, r) {
{
var t = function() {
Ne || (Ne = !0, c("%s: `ref` 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://reactjs.org/link/special-props)", r));
};
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
get: t,
configurable: !0
});
}
}
var Se = function(e, r, t, n, o, u, i) {
var a = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: j,
// Built-in properties that belong on the element
type: e,
key: r,
ref: t,
props: i,
// Record the component responsible for creating this element.
_owner: u
};
return a._store = {}, Object.defineProperty(a._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(a, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: n
}), Object.defineProperty(a, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: o
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
};
function Te(e, r, t, n, o) {
{
var u, i = {}, a = null, w = null;
t !== void 0 && (te(t), a = "" + t), Pe(r) && (te(r.key), a = "" + r.key), Re(r) && (w = r.ref, Qe(r, o));
for (u in r)
_.call(r, u) && !Ye.hasOwnProperty(u) && (i[u] = r[u]);
if (e && e.defaultProps) {
var N = e.defaultProps;
for (u in N)
i[u] === void 0 && (i[u] = N[u]);
}
if (a || w) {
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && ne(i, y), w && We(i, y);
}
return Se(e, a, w, o, n, Z.current, i);
}
}
var ae = d.ReactCurrentOwner, O = d.ReactDebugCurrentFrame;
function k(e) {
if (e) {
var r = e._owner, t = Q(e.type, e._source, r ? r.type : null);
O.setExtraStackFrame(t);
} else
O.setExtraStackFrame(null);
}
var ye;
ye = !1;
function ie(e) {
return typeof e == "object" && e !== null && e.$$typeof === j;
}
function Ze() {
{
if (ae.current) {
var e = C(ae.current.type);
if (e)
return `
Check the render method of \`` + e + "`.";
}
return "";
}
}
function er(e) {
{
if (e !== void 0) {
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
return `
Check your code at ` + r + ":" + t + ".";
}
return "";
}
}
var Ve = {};
function rr(e) {
{
var r = Ze();
if (!r) {
var t = typeof e == "string" ? e : e.displayName || e.name;
t && (r = `
Check the top-level render call using <` + t + ">.");
}
return r;
}
}
function _e(e, r) {
{
if (!e._store || e._store.validated || e.key != null)
return;
e._store.validated = !0;
var t = rr(r);
if (Ve[t])
return;
Ve[t] = !0;
var n = "";
e && e._owner && e._owner !== ae.current && (n = " It was passed a child from " + C(e._owner.type) + "."), k(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
}
}
function Ge(e, r) {
{
if (typeof e != "object")
return;
if (ee(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
ie(n) && _e(n, r);
}
else if (ie(e))
e._store && (e._store.validated = !0);
else if (e) {
var o = R(e);
if (typeof o == "function" && o !== e.entries)
for (var u = o.call(e), i; !(i = u.next()).done; )
ie(i.value) && _e(i.value, r);
}
}
}
function tr(e) {
{
var r = e.type;
if (r == null || typeof r == "string")
return;
var t;
if (typeof r == "function")
t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === M || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
r.$$typeof === f))
t = r.propTypes;
else
return;
if (t) {
var n = C(r);
Ie(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !ye) {
ye = !0;
var o = C(r);
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function nr(e) {
{
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
var n = r[t];
if (n !== "children" && n !== "key") {
k(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
break;
}
}
e.ref !== null && (k(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
}
}
function Be(e, r, t, n, o, u) {
{
var i = Ae(e);
if (!i) {
var a = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var w = er(o);
w ? a += w : a += Ze();
var N;
e === null ? N = "null" : ee(e) ? N = "array" : e !== void 0 && e.$$typeof === j ? (N = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : N = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, a);
}
var y = Te(e, r, t, o, u);
if (y == null)
return y;
if (i) {
var S = r.children;
if (S !== void 0)
if (n)
if (ee(S)) {
for (var V = 0; V < S.length; V++)
Ge(S[V], e);
Object.freeze && Object.freeze(S);
} else
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
Ge(S, e);
}
return e === I ? nr(y) : tr(y), y;
}
}
function ar(e, r, t) {
return Be(e, r, t, !0);
}
function ir(e, r, t) {
return Be(e, r, t, !1);
}
var or = ir, ur = ar;
$e.Fragment = I, $e.jsx = or, $e.jsxs = ur;
}()), $e;
}
process.env.NODE_ENV === "production" ? Mr.exports = Sr() : Mr.exports = Tr();
var Or = Mr.exports;
const br = (v, j, z, I, m) => {
const A = v.getChannelData(0), T = z / (I + m), D = Math.floor(A.length / T), M = j / 2;
let g = [], s = 0;
for (let f = 0; f < T; f++) {
const L = [];
let E = 0;
const U = [];
let Y = 0;
for (let c = 0; c < D && f * D + c < v.length; c++) {
const p = A[f * D + c];
p <= 0 && (L.push(p), E++), p > 0 && (U.push(p), Y++);
}
const R = L.reduce((c, p) => c + p, 0) / E, d = { max: U.reduce((c, p) => c + p, 0) / Y, min: R };
d.max > s && (s = d.max), Math.abs(d.min) > s && (s = Math.abs(d.min)), g.push(d);
}
if (M * 0.8 > s * M) {
const f = M * 0.8 / s;
g = g.map((L) => ({
max: L.max * f,
min: L.min * f
}));
}
return g;
}, sr = (v, j, z, I, m, A, T, D = 0, M = 1) => {
const g = j.height / 2, s = j.getContext("2d");
if (!s)
return;
s.clearRect(0, 0, j.width, j.height), m !== "transparent" && (s.fillStyle = m, s.fillRect(0, 0, j.width, j.height));
const f = (D || 0) / M;
v.forEach((L, E) => {
const U = E / v.length, Y = f > U;
s.fillStyle = Y && T ? T : A;
const R = E * (z + I), d = g + L.min, c = z, p = g + L.max - d;
s.beginPath(), s.roundRect ? (s.roundRect(R, d, c, p, 50), s.fill()) : s.fillRect(R, d, c, p);
});
}, wr = vr(
({
blob: v,
width: j,
height: z,
barWidth: I = 2,
gap: m = 1,
currentTime: A,
style: T,
backgroundColor: D = "transparent",
barColor: M = "rgb(184, 184, 184)",
barPlayedColor: g = "rgb(160, 198, 255)"
}, s) => {
const f = pr(null), [L, E] = G([]), [U, Y] = G(0);
return Ir(
s,
() => f.current,
[]
), Ke(() => {
(async () => {
if (!f.current)
return;
if (!v) {
const d = Array.from({ length: 100 }, () => ({
max: 0,
min: 0
}));
sr(
d,
f.current,
I,
m,
D,
M,
g
);
return;
}
const R = await v.arrayBuffer();
await new AudioContext().decodeAudioData(R, (d) => {
if (!f.current)
return;
Y(d.duration);
const c = br(
d,
z,
j,
I,
m
);
E(c), sr(
c,
f.current,
I,
m,
D,
M,
g
);
});
})();
}, [v, f.current]), Ke(() => {
f.current && sr(
L,
f.current,
I,
m,
D,
M,
g,
A,
U
);
}, [A, U]), /* @__PURE__ */ Or.jsx(
"canvas",
{
ref: f,
width: j,
height: z,
style: {
...T
}
}
);
}
);
wr.displayName = "AudioVisualizer";
const Ar = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDQ5NC4xNDggNDk0LjE0OCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDk0LjE0OCA0OTQuMTQ4OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+Cgk8Zz4KCQk8Zz4KCQkJPHBhdGggZD0iTTQwNS4yODQsMjAxLjE4OEwxMzAuODA0LDEzLjI4QzExOC4xMjgsNC41OTYsMTA1LjM1NiwwLDk0Ljc0LDBDNzQuMjE2LDAsNjEuNTIsMTYuNDcyLDYxLjUyLDQ0LjA0NHY0MDYuMTI0CgkJCQljMCwyNy41NCwxMi42OCw0My45OCwzMy4xNTYsNDMuOThjMTAuNjMyLDAsMjMuMi00LjYsMzUuOTA0LTEzLjMwOGwyNzQuNjA4LTE4Ny45MDRjMTcuNjYtMTIuMTA0LDI3LjQ0LTI4LjM5MiwyNy40NC00NS44ODQKCQkJCUM0MzIuNjMyLDIyOS41NzIsNDIyLjk2NCwyMTMuMjg4LDQwNS4yODQsMjAxLjE4OHoiLz4KCQk8L2c+Cgk8L2c+Cjwvc3ZnPgo=", Er = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgNDcuNjA3IDQ3LjYwNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDcuNjA3IDQ3LjYwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgoJPGc+CgkJPHBhdGggZD0iTTE3Ljk5MSw0MC45NzZjMCwzLjY2Mi0yLjk2OSw2LjYzMS02LjYzMSw2LjYzMWwwLDBjLTMuNjYyLDAtNi42MzEtMi45NjktNi42MzEtNi42MzFWNi42MzFDNC43MjksMi45NjksNy42OTgsMCwxMS4zNiwwCgkJCWwwLDBjMy42NjIsMCw2LjYzMSwyLjk2OSw2LjYzMSw2LjYzMVY0MC45NzZ6Ii8+CgkJPHBhdGggZD0iTTQyLjg3Nyw0MC45NzZjMCwzLjY2Mi0yLjk2OSw2LjYzMS02LjYzMSw2LjYzMWwwLDBjLTMuNjYyLDAtNi42MzEtMi45NjktNi42MzEtNi42MzFWNi42MzEKCQkJQzI5LjYxNiwyLjk2OSwzMi41ODUsMCwzNi4yNDYsMGwwLDBjMy42NjIsMCw2LjYzMSwyLjk2OSw2LjYzMSw2LjYzMVY0MC45NzZ6Ii8+Cgk8L2c+Cjwvc3ZnPgo=", gr = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjkwcHgiIGhlaWdodD0iOTBweCIgc3R5bGU9InNoYXBlLXJlbmRlcmluZzpnZW9tZXRyaWNQcmVjaXNpb247IHRleHQtcmVuZGVyaW5nOmdlb21ldHJpY1ByZWNpc2lvbjsgaW1hZ2UtcmVuZGVyaW5nOm9wdGltaXplUXVhbGl0eTsgZmlsbC1ydWxlOmV2ZW5vZGQ7IGNsaXAtcnVsZTpldmVub2RkIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CjxnPjxwYXRoIHN0eWxlPSJvcGFjaXR5OjAuOTcyIiBmaWxsPSIjMDAwMDAwIiBkPSJNIDEuNSwtMC41IEMgMy41LC0wLjUgNS41LC0wLjUgNy41LC0wLjVDIDI2LjQzMjIsMTMuMjUxNCA0NS4yNjU2LDI3LjI1MTQgNjQsNDEuNUMgNjUuMjkzMSw0NS41ODIxIDY0LjEyNjUsNDguNzQ4NyA2MC41LDUxQyA0Mi43NjYsNjMuODU0NyAyNS4wOTk0LDc2LjY4OCA3LjUsODkuNUMgNS41LDg5LjUgMy41LDg5LjUgMS41LDg5LjVDIDEuMTY2NjcsODguNSAwLjUsODcuODMzMyAtMC41LDg3LjVDIC0wLjUsNTguODMzMyAtMC41LDMwLjE2NjcgLTAuNSwxLjVDIDAuNSwxLjE2NjY3IDEuMTY2NjcsMC41IDEuNSwtMC41IFoiLz48L2c+CjxnPjxwYXRoIHN0eWxlPSJvcGFjaXR5OjAuOTgxIiBmaWxsPSIjMDAwMDAwIiBkPSJNIDc3LjUsLTAuNSBDIDgwLjUsLTAuNSA4My41LC0wLjUgODYuNSwtMC41QyA4Ny4xNjY3LDAuODMzMzMzIDg4LjE2NjcsMS44MzMzMyA4OS41LDIuNUMgODkuNSwzMC41IDg5LjUsNTguNSA4OS41LDg2LjVDIDg4LjE2NjcsODcuMTY2NyA4Ny4xNjY3LDg4LjE2NjcgODYuNSw4OS41QyA4My41LDg5LjUgODAuNSw4OS41IDc3LjUsODkuNUMgNzYuODc4Myw4OC4zNzM0IDc2LjA0NSw4Ny4zNzM0IDc1LDg2LjVDIDc0LjMzMzMsNTguNSA3NC4zMzMzLDMwLjUgNzUsMi41QyA3Ni4wNDUsMS42MjY1NiA3Ni44NzgzLDAuNjI2NTYxIDc3LjUsLTAuNSBaIi8+PC9nPgo8L3N2Zz4K", dr = ({
isPlaying: v,
allowSkip: j,
onPlayClick: z,
onPauseClick: I,
onSkipForwardClick: m,
onSkipBackwardClick: A
}) => /* @__PURE__ */ b.jsxs(
"div",
{
style: {
display: "flex",
alignItems: "center",
gridColumn: "2 / 2",
gap: 15
},
children: [
j && /* @__PURE__ */ b.jsx(
"img",
{
src: gr,
onClick: A,
title: "Skip backwards",
style: {
cursor: "pointer",
height: 16,
width: 16,
transform: "rotate(180deg)"
},
"data-testid": "skip-back"
}
),
/* @__PURE__ */ b.jsx(
"img",
{
src: v ? Er : Ar,
onClick: v ? I : z,
title: v ? "Pause" : "Play",
style: {
cursor: "pointer",
height: "20px",
width: "20px"
},
"data-testid": "play-pause"
}
),
j && /* @__PURE__ */ b.jsx(
"img",
{
src: gr,
onClick: m,
title: "Skip forwards",
style: {
cursor: "pointer",
height: 16,
width: 16
},
"data-testid": "skip-forward"
}
)
]
}
), Dr = ({
current: v,
setCurrent: j,
total: z,
showTrack: I = !0,
showKnob: m = !0,
trackHeight: A = 1,
c