@p5-wrapper/next
Version:
A NextJS specific library for the @P5-Wrapper/react project.
892 lines (888 loc) • 29 kB
JavaScript
import X from "react";
function dr(p) {
return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
}
var le = { exports: {} }, B = {};
B._ = B._interop_require_default = pr;
function pr(p) {
return p && p.__esModule ? p : { default: p };
}
var se = { exports: {} }, V = {};
/**
* @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 Fe;
function vr() {
if (Fe)
return V;
Fe = 1;
var p = X, E = Symbol.for("react.element"), T = Symbol.for("react.fragment"), C = Object.prototype.hasOwnProperty, j = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, D = { key: !0, ref: !0, __self: !0, __source: !0 };
function x(P, b, k) {
var l, v = {}, g = null, d = null;
k !== void 0 && (g = "" + k), b.key !== void 0 && (g = "" + b.key), b.ref !== void 0 && (d = b.ref);
for (l in b)
C.call(b, l) && !D.hasOwnProperty(l) && (v[l] = b[l]);
if (P && P.defaultProps)
for (l in b = P.defaultProps, b)
v[l] === void 0 && (v[l] = b[l]);
return { $$typeof: E, type: P, key: g, ref: d, props: v, _owner: j.current };
}
return V.Fragment = T, V.jsx = x, V.jsxs = x, V;
}
var U = {};
/**
* @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 Le;
function _r() {
return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
var p = X, E = Symbol.for("react.element"), T = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), P = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), s = Symbol.iterator, _ = "@@iterator";
function o(e) {
if (e === null || typeof e != "object")
return null;
var r = s && e[s] || e[_];
return typeof r == "function" ? r : null;
}
var f = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function m(e) {
{
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
t[n - 1] = arguments[n];
W("error", e, t);
}
}
function W(e, r, t) {
{
var n = f.ReactDebugCurrentFrame, u = n.getStackAddendum();
u !== "" && (r += "%s", t = t.concat([u]));
var c = t.map(function(i) {
return String(i);
});
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
}
}
var M = !1, R = !1, L = !1, O = !1, $e = !1, fe;
fe = Symbol.for("react.module.reference");
function We(e) {
return !!(typeof e == "string" || typeof e == "function" || e === C || e === D || $e || e === j || e === k || e === l || O || e === d || M || R || L || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === v || e.$$typeof === x || e.$$typeof === P || e.$$typeof === b || // 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 === fe || e.getModuleId !== void 0));
}
function Me(e, r, t) {
var n = e.displayName;
if (n)
return n;
var u = r.displayName || r.name || "";
return u !== "" ? t + "(" + u + ")" : t;
}
function ce(e) {
return e.displayName || "Context";
}
function A(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && m("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 C:
return "Fragment";
case T:
return "Portal";
case D:
return "Profiler";
case j:
return "StrictMode";
case k:
return "Suspense";
case l:
return "SuspenseList";
}
if (typeof e == "object")
switch (e.$$typeof) {
case P:
var r = e;
return ce(r) + ".Consumer";
case x:
var t = e;
return ce(t._context) + ".Provider";
case b:
return Me(e, e.render, "ForwardRef");
case v:
var n = e.displayName || null;
return n !== null ? n : A(e.type) || "Memo";
case g: {
var u = e, c = u._payload, i = u._init;
try {
return A(i(c));
} catch {
return null;
}
}
}
return null;
}
var I = Object.assign, q = 0, de, pe, ve, _e, me, he, be;
function ye() {
}
ye.__reactDisabledLog = !0;
function qe() {
{
if (q === 0) {
de = console.log, pe = console.info, ve = console.warn, _e = console.error, me = console.group, he = console.groupCollapsed, be = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: ye,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
q++;
}
}
function Ye() {
{
if (q--, q === 0) {
var e = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: I({}, e, {
value: de
}),
info: I({}, e, {
value: pe
}),
warn: I({}, e, {
value: ve
}),
error: I({}, e, {
value: _e
}),
group: I({}, e, {
value: me
}),
groupCollapsed: I({}, e, {
value: he
}),
groupEnd: I({}, e, {
value: be
})
});
}
q < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var Z = f.ReactCurrentDispatcher, Q;
function G(e, r, t) {
{
if (Q === void 0)
try {
throw Error();
} catch (u) {
var n = u.stack.trim().match(/\n( *(at )?)/);
Q = n && n[1] || "";
}
return `
` + Q + e;
}
}
var ee = !1, J;
{
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
J = new Ve();
}
function ge(e, r) {
if (!e || ee)
return "";
{
var t = J.get(e);
if (t !== void 0)
return t;
}
var n;
ee = !0;
var u = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var c;
c = Z.current, Z.current = null, qe();
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 (F) {
n = F;
}
Reflect.construct(e, [], i);
} else {
try {
i.call();
} catch (F) {
n = F;
}
e.call(i.prototype);
}
} else {
try {
throw Error();
} catch (F) {
n = F;
}
e();
}
} catch (F) {
if (F && n && typeof F.stack == "string") {
for (var a = F.stack.split(`
`), w = n.stack.split(`
`), h = a.length - 1, y = w.length - 1; h >= 1 && y >= 0 && a[h] !== w[y]; )
y--;
for (; h >= 1 && y >= 0; h--, y--)
if (a[h] !== w[y]) {
if (h !== 1 || y !== 1)
do
if (h--, y--, y < 0 || a[h] !== w[y]) {
var S = `
` + a[h].replace(" at new ", " at ");
return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && J.set(e, S), S;
}
while (h >= 1 && y >= 0);
break;
}
}
} finally {
ee = !1, Z.current = c, Ye(), Error.prepareStackTrace = u;
}
var $ = e ? e.displayName || e.name : "", Ae = $ ? G($) : "";
return typeof e == "function" && J.set(e, Ae), Ae;
}
function Ue(e, r, t) {
return ge(e, !1);
}
function Be(e) {
var r = e.prototype;
return !!(r && r.isReactComponent);
}
function z(e, r, t) {
if (e == null)
return "";
if (typeof e == "function")
return ge(e, Be(e));
if (typeof e == "string")
return G(e);
switch (e) {
case k:
return G("Suspense");
case l:
return G("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case b:
return Ue(e.render);
case v:
return z(e.type, r, t);
case g: {
var n = e, u = n._payload, c = n._init;
try {
return z(c(u), r, t);
} catch {
}
}
}
return "";
}
var H = Object.prototype.hasOwnProperty, Re = {}, Ee = f.ReactDebugCurrentFrame;
function K(e) {
if (e) {
var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
Ee.setExtraStackFrame(t);
} else
Ee.setExtraStackFrame(null);
}
function Ge(e, r, t, n, u) {
{
var c = Function.call.bind(H);
for (var i in e)
if (c(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 (h) {
a = h;
}
a && !(a instanceof Error) && (K(u), m("%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), K(null)), a instanceof Error && !(a.message in Re) && (Re[a.message] = !0, K(u), m("Failed %s type: %s", t, a.message), K(null));
}
}
}
var Je = Array.isArray;
function re(e) {
return Je(e);
}
function ze(e) {
{
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
return t;
}
}
function He(e) {
try {
return we(e), !1;
} catch {
return !0;
}
}
function we(e) {
return "" + e;
}
function Te(e) {
if (He(e))
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), we(e);
}
var Y = f.ReactCurrentOwner, Ke = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, Ce, Pe, te;
te = {};
function Xe(e) {
if (H.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
if (r && r.isReactWarning)
return !1;
}
return e.ref !== void 0;
}
function Ze(e) {
if (H.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" && Y.current && r && Y.current.stateNode !== r) {
var t = A(Y.current.type);
te[t] || (m('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', A(Y.current.type), e.ref), te[t] = !0);
}
}
function er(e, r) {
{
var t = function() {
Ce || (Ce = !0, m("%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 rr(e, r) {
{
var t = function() {
Pe || (Pe = !0, m("%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 tr = function(e, r, t, n, u, c, i) {
var a = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: E,
// 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: c
};
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: u
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
};
function nr(e, r, t, n, u) {
{
var c, i = {}, a = null, w = null;
t !== void 0 && (Te(t), a = "" + t), Ze(r) && (Te(r.key), a = "" + r.key), Xe(r) && (w = r.ref, Qe(r, u));
for (c in r)
H.call(r, c) && !Ke.hasOwnProperty(c) && (i[c] = r[c]);
if (e && e.defaultProps) {
var h = e.defaultProps;
for (c in h)
i[c] === void 0 && (i[c] = h[c]);
}
if (a || w) {
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && er(i, y), w && rr(i, y);
}
return tr(e, a, w, u, n, Y.current, i);
}
}
var ne = f.ReactCurrentOwner, Oe = f.ReactDebugCurrentFrame;
function N(e) {
if (e) {
var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
Oe.setExtraStackFrame(t);
} else
Oe.setExtraStackFrame(null);
}
var ae;
ae = !1;
function oe(e) {
return typeof e == "object" && e !== null && e.$$typeof === E;
}
function Se() {
{
if (ne.current) {
var e = A(ne.current.type);
if (e)
return `
Check the render method of \`` + e + "`.";
}
return "";
}
}
function ar(e) {
{
if (e !== void 0) {
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
return `
Check your code at ` + r + ":" + t + ".";
}
return "";
}
}
var je = {};
function or(e) {
{
var r = Se();
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 xe(e, r) {
{
if (!e._store || e._store.validated || e.key != null)
return;
e._store.validated = !0;
var t = or(r);
if (je[t])
return;
je[t] = !0;
var n = "";
e && e._owner && e._owner !== ne.current && (n = " It was passed a child from " + A(e._owner.type) + "."), N(e), m('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), N(null);
}
}
function ke(e, r) {
{
if (typeof e != "object")
return;
if (re(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
oe(n) && xe(n, r);
}
else if (oe(e))
e._store && (e._store.validated = !0);
else if (e) {
var u = o(e);
if (typeof u == "function" && u !== e.entries)
for (var c = u.call(e), i; !(i = c.next()).done; )
oe(i.value) && xe(i.value, r);
}
}
}
function ir(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 === b || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
r.$$typeof === v))
t = r.propTypes;
else
return;
if (t) {
var n = A(r);
Ge(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !ae) {
ae = !0;
var u = A(r);
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function ur(e) {
{
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
var n = r[t];
if (n !== "children" && n !== "key") {
N(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), N(null);
break;
}
}
e.ref !== null && (N(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), N(null));
}
}
function De(e, r, t, n, u, c) {
{
var i = We(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 = ar(u);
w ? a += w : a += Se();
var h;
e === null ? h = "null" : re(e) ? h = "array" : e !== void 0 && e.$$typeof === E ? (h = "<" + (A(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, a);
}
var y = nr(e, r, t, u, c);
if (y == null)
return y;
if (i) {
var S = r.children;
if (S !== void 0)
if (n)
if (re(S)) {
for (var $ = 0; $ < S.length; $++)
ke(S[$], e);
Object.freeze && Object.freeze(S);
} else
m("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
ke(S, e);
}
return e === C ? ur(y) : ir(y), y;
}
}
function lr(e, r, t) {
return De(e, r, t, !0);
}
function sr(e, r, t) {
return De(e, r, t, !1);
}
var fr = sr, cr = lr;
U.Fragment = C, U.jsx = fr, U.jsxs = cr;
}()), U;
}
process.env.NODE_ENV === "production" ? se.exports = vr() : se.exports = _r();
var mr = se.exports;
function hr(p) {
throw new Error('Could not dynamically require "' + p + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
}
var ie = {}, ue = {}, Ie;
function br() {
return Ie || (Ie = 1, function(p) {
"use client";
Object.defineProperty(p, "__esModule", {
value: !0
}), Object.defineProperty(p, "LoadableContext", {
enumerable: !0,
get: function() {
return C;
}
});
const C = (/* @__PURE__ */ B._(X)).default.createContext(null);
process.env.NODE_ENV !== "production" && (C.displayName = "LoadableContext");
}(ue)), ue;
}
var Ne;
function yr() {
return Ne || (Ne = 1, function(p) {
Object.defineProperty(p, "__esModule", {
value: !0
}), Object.defineProperty(p, "default", {
enumerable: !0,
get: function() {
return d;
}
});
const T = /* @__PURE__ */ B._(X), C = br();
function j(s) {
return s && s.default ? s.default : s;
}
const D = [], x = [];
let P = !1;
function b(s) {
let _ = s(), o = {
loading: !0,
loaded: null,
error: null
};
return o.promise = _.then((f) => (o.loading = !1, o.loaded = f, f)).catch((f) => {
throw o.loading = !1, o.error = f, f;
}), o;
}
function k(s, _) {
let o = Object.assign({
loader: null,
loading: null,
delay: 200,
timeout: null,
webpack: null,
modules: null
}, _), f = null;
function m() {
if (!f) {
const R = new l(s, o);
f = {
getCurrentValue: R.getCurrentValue.bind(R),
subscribe: R.subscribe.bind(R),
retry: R.retry.bind(R),
promise: R.promise.bind(R)
};
}
return f.promise();
}
if (typeof window > "u" && D.push(m), !P && typeof window < "u") {
const R = o.webpack && typeof hr.resolveWeak == "function" ? o.webpack() : o.modules;
R && x.push((L) => {
for (const O of R)
if (L.includes(O))
return m();
});
}
function W() {
m();
const R = T.default.useContext(C.LoadableContext);
R && Array.isArray(o.modules) && o.modules.forEach((L) => {
R(L);
});
}
function M(R, L) {
W();
const O = T.default.useSyncExternalStore(f.subscribe, f.getCurrentValue, f.getCurrentValue);
return T.default.useImperativeHandle(L, () => ({
retry: f.retry
}), []), T.default.useMemo(() => O.loading || O.error ? /* @__PURE__ */ T.default.createElement(o.loading, {
isLoading: O.loading,
pastDelay: O.pastDelay,
timedOut: O.timedOut,
error: O.error,
retry: f.retry
}) : O.loaded ? /* @__PURE__ */ T.default.createElement(j(O.loaded), R) : null, [
R,
O
]);
}
return M.preload = () => m(), M.displayName = "LoadableComponent", /* @__PURE__ */ T.default.forwardRef(M);
}
class l {
promise() {
return this._res.promise;
}
retry() {
this._clearTimeouts(), this._res = this._loadFn(this._opts.loader), this._state = {
pastDelay: !1,
timedOut: !1
};
const { _res: _, _opts: o } = this;
_.loading && (typeof o.delay == "number" && (o.delay === 0 ? this._state.pastDelay = !0 : this._delay = setTimeout(() => {
this._update({
pastDelay: !0
});
}, o.delay)), typeof o.timeout == "number" && (this._timeout = setTimeout(() => {
this._update({
timedOut: !0
});
}, o.timeout))), this._res.promise.then(() => {
this._update({}), this._clearTimeouts();
}).catch((f) => {
this._update({}), this._clearTimeouts();
}), this._update({});
}
_update(_) {
this._state = {
...this._state,
error: this._res.error,
loaded: this._res.loaded,
loading: this._res.loading,
..._
}, this._callbacks.forEach((o) => o());
}
_clearTimeouts() {
clearTimeout(this._delay), clearTimeout(this._timeout);
}
getCurrentValue() {
return this._state;
}
subscribe(_) {
return this._callbacks.add(_), () => {
this._callbacks.delete(_);
};
}
constructor(_, o) {
this._loadFn = _, this._opts = o, this._callbacks = /* @__PURE__ */ new Set(), this._delay = null, this._timeout = null, this.retry();
}
}
function v(s) {
return k(b, s);
}
function g(s, _) {
let o = [];
for (; s.length; ) {
let f = s.pop();
o.push(f(_));
}
return Promise.all(o).then(() => {
if (s.length)
return g(s, _);
});
}
v.preloadAll = () => new Promise((s, _) => {
g(D).then(s, _);
}), v.preloadReady = (s) => (s === void 0 && (s = []), new Promise((_) => {
const o = () => (P = !0, _());
g(x, s).then(o, o);
})), typeof window < "u" && (window.__NEXT_PRELOADREADY = v.preloadReady);
const d = v;
}(ie)), ie;
}
(function(p, E) {
Object.defineProperty(E, "__esModule", {
value: !0
});
function T(l, v) {
for (var g in v)
Object.defineProperty(l, g, {
enumerable: !0,
get: v[g]
});
}
T(E, {
noSSR: function() {
return b;
},
default: function() {
return k;
}
});
const C = B, j = mr, D = /* @__PURE__ */ C._(yr()), x = typeof window > "u";
function P(l) {
return {
default: (l == null ? void 0 : l.default) || l
};
}
function b(l, v) {
if (delete v.webpack, delete v.modules, !x)
return l(v);
const g = v.loading;
return () => /* @__PURE__ */ (0, j.jsx)(g, {
error: null,
isLoading: !0,
pastDelay: !1,
timedOut: !1
});
}
function k(l, v) {
let g = D.default, d = {
// A loading component is not required, so we default it
loading: (o) => {
let { error: f, isLoading: m, pastDelay: W } = o;
if (!W)
return null;
if (process.env.NODE_ENV !== "production") {
if (m)
return null;
if (f)
return /* @__PURE__ */ (0, j.jsxs)("p", {
children: [
f.message,
/* @__PURE__ */ (0, j.jsx)("br", {}),
f.stack
]
});
}
return null;
}
};
l instanceof Promise ? d.loader = () => l : typeof l == "function" ? d.loader = l : typeof l == "object" && (d = {
...d,
...l
}), d = {
...d,
...v
};
const s = d.loader, _ = () => s != null ? s().then(P) : Promise.resolve(P(() => null));
return d.loadableGenerated && (d = {
...d,
...d.loadableGenerated
}, delete d.loadableGenerated), typeof d.ssr == "boolean" && !d.ssr ? (delete d.webpack, delete d.modules, b(g, d)) : g({
...d,
loader: _
});
}
(typeof E.default == "function" || typeof E.default == "object" && E.default !== null) && typeof E.default.__esModule > "u" && (Object.defineProperty(E.default, "__esModule", { value: !0 }), Object.assign(E.default, E), p.exports = E.default);
})(le, le.exports);
var gr = le.exports, Rr = gr;
const Er = /* @__PURE__ */ dr(Rr), Tr = Er(
async () => (await import("@p5-wrapper/react")).ReactP5Wrapper,
{ ssr: !1 }
);
export {
Tr as NextReactP5Wrapper
};