UNPKG

react-layout-print

Version:

A React component to print, preview, and export complex web page layouts to PDF, JPEG, and SVG. Ideal for HTML to PDF conversions.

1,371 lines (1,369 loc) 424 kB
import ir, { useState as Ea, cloneElement as $s } from "react"; import Ns from "jspdf"; import { toJpeg as is, toSvg as Vs } from "html-to-image"; import ps from "react-modal"; import { ScaleLoader as gs } from "react-spinners"; import Ys from "react-iframe"; function Gs(O) { return O && O.__esModule && Object.prototype.hasOwnProperty.call(O, "default") ? O.default : O; } var al = { exports: {} }, mi = {}; /** * @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 ms; function Xs() { if (ms) return mi; ms = 1; var O = ir, C = Symbol.for("react.element"), W = Symbol.for("react.fragment"), N = Object.prototype.hasOwnProperty, h = O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, $ = { key: !0, ref: !0, __self: !0, __source: !0 }; function ve(G, b, k) { var re, P = {}, K = null, Oe = null; k !== void 0 && (K = "" + k), b.key !== void 0 && (K = "" + b.key), b.ref !== void 0 && (Oe = b.ref); for (re in b) N.call(b, re) && !$.hasOwnProperty(re) && (P[re] = b[re]); if (G && G.defaultProps) for (re in b = G.defaultProps, b) P[re] === void 0 && (P[re] = b[re]); return { $$typeof: C, type: G, key: K, ref: Oe, props: P, _owner: h.current }; } return mi.Fragment = W, mi.jsx = ve, mi.jsxs = ve, mi; } var yi = {}; /** * @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 ys; function Js() { return ys || (ys = 1, process.env.NODE_ENV !== "production" && (function() { var O = ir, C = Symbol.for("react.element"), W = Symbol.for("react.portal"), N = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), ve = Symbol.for("react.provider"), G = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), re = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), K = Symbol.for("react.lazy"), Oe = Symbol.for("react.offscreen"), Se = Symbol.iterator, ke = "@@iterator"; function z(y) { if (y === null || typeof y != "object") return null; var D = Se && y[Se] || y[ke]; return typeof D == "function" ? D : null; } var I = O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function ce(y) { { for (var D = arguments.length, V = new Array(D > 1 ? D - 1 : 0), ee = 1; ee < D; ee++) V[ee - 1] = arguments[ee]; Ae("error", y, V); } } function Ae(y, D, V) { { var ee = I.ReactDebugCurrentFrame, he = ee.getStackAddendum(); he !== "" && (D += "%s", V = V.concat([he])); var we = V.map(function(me) { return String(me); }); we.unshift("Warning: " + D), Function.prototype.apply.call(console[y], console, we); } } var be = !1, L = !1, Ee = !1, ge = !1, it = !1, Ce; Ce = Symbol.for("react.module.reference"); function lt(y) { return !!(typeof y == "string" || typeof y == "function" || y === N || y === $ || it || y === h || y === k || y === re || ge || y === Oe || be || L || Ee || typeof y == "object" && y !== null && (y.$$typeof === K || y.$$typeof === P || y.$$typeof === ve || y.$$typeof === G || y.$$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. y.$$typeof === Ce || y.getModuleId !== void 0)); } function rt(y, D, V) { var ee = y.displayName; if (ee) return ee; var he = D.displayName || D.name || ""; return he !== "" ? V + "(" + he + ")" : V; } function Be(y) { return y.displayName || "Context"; } function Je(y) { if (y == null) return null; if (typeof y.tag == "number" && ce("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof y == "function") return y.displayName || y.name || null; if (typeof y == "string") return y; switch (y) { case N: return "Fragment"; case W: return "Portal"; case $: return "Profiler"; case h: return "StrictMode"; case k: return "Suspense"; case re: return "SuspenseList"; } if (typeof y == "object") switch (y.$$typeof) { case G: var D = y; return Be(D) + ".Consumer"; case ve: var V = y; return Be(V._context) + ".Provider"; case b: return rt(y, y.render, "ForwardRef"); case P: var ee = y.displayName || null; return ee !== null ? ee : Je(y.type) || "Memo"; case K: { var he = y, we = he._payload, me = he._init; try { return Je(me(we)); } catch { return null; } } } return null; } var Le = Object.assign, ut = 0, et, at, nt, fe, A, j, J; function ae() { } ae.__reactDisabledLog = !0; function Q() { { if (ut === 0) { et = console.log, at = console.info, nt = console.warn, fe = console.error, A = console.group, j = console.groupCollapsed, J = console.groupEnd; var y = { configurable: !0, enumerable: !0, value: ae, writable: !0 }; Object.defineProperties(console, { info: y, log: y, warn: y, error: y, group: y, groupCollapsed: y, groupEnd: y }); } ut++; } } function Z() { { if (ut--, ut === 0) { var y = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: Le({}, y, { value: et }), info: Le({}, y, { value: at }), warn: Le({}, y, { value: nt }), error: Le({}, y, { value: fe }), group: Le({}, y, { value: A }), groupCollapsed: Le({}, y, { value: j }), groupEnd: Le({}, y, { value: J }) }); } ut < 0 && ce("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var X = I.ReactCurrentDispatcher, ne; function oe(y, D, V) { { if (ne === void 0) try { throw Error(); } catch (he) { var ee = he.stack.trim().match(/\n( *(at )?)/); ne = ee && ee[1] || ""; } return ` ` + ne + y; } } var ie = !1, le; { var Te = typeof WeakMap == "function" ? WeakMap : Map; le = new Te(); } function H(y, D) { if (!y || ie) return ""; { var V = le.get(y); if (V !== void 0) return V; } var ee; ie = !0; var he = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var we; we = X.current, X.current = null, Q(); try { if (D) { var me = function() { throw Error(); }; if (Object.defineProperty(me.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(me, []); } catch (Ye) { ee = Ye; } Reflect.construct(y, [], me); } else { try { me.call(); } catch (Ye) { ee = Ye; } y.call(me.prototype); } } else { try { throw Error(); } catch (Ye) { ee = Ye; } y(); } } catch (Ye) { if (Ye && ee && typeof Ye.stack == "string") { for (var pe = Ye.stack.split(` `), Ve = ee.stack.split(` `), Ie = pe.length - 1, je = Ve.length - 1; Ie >= 1 && je >= 0 && pe[Ie] !== Ve[je]; ) je--; for (; Ie >= 1 && je >= 0; Ie--, je--) if (pe[Ie] !== Ve[je]) { if (Ie !== 1 || je !== 1) do if (Ie--, je--, je < 0 || pe[Ie] !== Ve[je]) { var Ue = ` ` + pe[Ie].replace(" at new ", " at "); return y.displayName && Ue.includes("<anonymous>") && (Ue = Ue.replace("<anonymous>", y.displayName)), typeof y == "function" && le.set(y, Ue), Ue; } while (Ie >= 1 && je >= 0); break; } } } finally { ie = !1, X.current = we, Z(), Error.prepareStackTrace = he; } var Bt = y ? y.displayName || y.name : "", Ot = Bt ? oe(Bt) : ""; return typeof y == "function" && le.set(y, Ot), Ot; } function Re(y, D, V) { return H(y, !1); } function Ne(y) { var D = y.prototype; return !!(D && D.isReactComponent); } function ct(y, D, V) { if (y == null) return ""; if (typeof y == "function") return H(y, Ne(y)); if (typeof y == "string") return oe(y); switch (y) { case k: return oe("Suspense"); case re: return oe("SuspenseList"); } if (typeof y == "object") switch (y.$$typeof) { case b: return Re(y.render); case P: return ct(y.type, D, V); case K: { var ee = y, he = ee._payload, we = ee._init; try { return ct(we(he), D, V); } catch { } } } return ""; } var wt = Object.prototype.hasOwnProperty, kr = {}, gt = I.ReactDebugCurrentFrame; function Pt(y) { if (y) { var D = y._owner, V = ct(y.type, y._source, D ? D.type : null); gt.setExtraStackFrame(V); } else gt.setExtraStackFrame(null); } function er(y, D, V, ee, he) { { var we = Function.call.bind(wt); for (var me in y) if (we(y, me)) { var pe = void 0; try { if (typeof y[me] != "function") { var Ve = Error((ee || "React class") + ": " + V + " type `" + me + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof y[me] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw Ve.name = "Invariant Violation", Ve; } pe = y[me](D, me, ee, V, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (Ie) { pe = Ie; } pe && !(pe instanceof Error) && (Pt(he), ce("%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).", ee || "React class", V, me, typeof pe), Pt(null)), pe instanceof Error && !(pe.message in kr) && (kr[pe.message] = !0, Pt(he), ce("Failed %s type: %s", V, pe.message), Pt(null)); } } } var Hr = Array.isArray; function ht(y) { return Hr(y); } function st(y) { { var D = typeof Symbol == "function" && Symbol.toStringTag, V = D && y[Symbol.toStringTag] || y.constructor.name || "Object"; return V; } } function tt(y) { try { return lr(y), !1; } catch { return !0; } } function lr(y) { return "" + y; } function sr(y) { if (tt(y)) return ce("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", st(y)), lr(y); } var ur = I.ReactCurrentOwner, Qe = { key: !0, ref: !0, __self: !0, __source: !0 }, cr, Tr; function zr(y) { if (wt.call(y, "ref")) { var D = Object.getOwnPropertyDescriptor(y, "ref").get; if (D && D.isReactWarning) return !1; } return y.ref !== void 0; } function Er(y) { if (wt.call(y, "key")) { var D = Object.getOwnPropertyDescriptor(y, "key").get; if (D && D.isReactWarning) return !1; } return y.key !== void 0; } function fr(y, D) { typeof y.ref == "string" && ur.current; } function en(y, D) { { var V = function() { cr || (cr = !0, ce("%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)", D)); }; V.isReactWarning = !0, Object.defineProperty(y, "key", { get: V, configurable: !0 }); } } function Cr(y, D) { { var V = function() { Tr || (Tr = !0, ce("%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)", D)); }; V.isReactWarning = !0, Object.defineProperty(y, "ref", { get: V, configurable: !0 }); } } var Xt = function(y, D, V, ee, he, we, me) { var pe = { // This tag allows us to uniquely identify this as a React Element $$typeof: C, // Built-in properties that belong on the element type: y, key: D, ref: V, props: me, // Record the component responsible for creating this element. _owner: we }; return pe._store = {}, Object.defineProperty(pe._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(pe, "_self", { configurable: !1, enumerable: !1, writable: !1, value: ee }), Object.defineProperty(pe, "_source", { configurable: !1, enumerable: !1, writable: !1, value: he }), Object.freeze && (Object.freeze(pe.props), Object.freeze(pe)), pe; }; function Rr(y, D, V, ee, he) { { var we, me = {}, pe = null, Ve = null; V !== void 0 && (sr(V), pe = "" + V), Er(D) && (sr(D.key), pe = "" + D.key), zr(D) && (Ve = D.ref, fr(D, he)); for (we in D) wt.call(D, we) && !Qe.hasOwnProperty(we) && (me[we] = D[we]); if (y && y.defaultProps) { var Ie = y.defaultProps; for (we in Ie) me[we] === void 0 && (me[we] = Ie[we]); } if (pe || Ve) { var je = typeof y == "function" ? y.displayName || y.name || "Unknown" : y; pe && en(me, je), Ve && Cr(me, je); } return Xt(y, pe, Ve, he, ee, ur.current, me); } } var dr = I.ReactCurrentOwner, ft = I.ReactDebugCurrentFrame; function dt(y) { if (y) { var D = y._owner, V = ct(y.type, y._source, D ? D.type : null); ft.setExtraStackFrame(V); } else ft.setExtraStackFrame(null); } var It; It = !1; function Pe(y) { return typeof y == "object" && y !== null && y.$$typeof === C; } function Lt() { { if (dr.current) { var y = Je(dr.current.type); if (y) return ` Check the render method of \`` + y + "`."; } return ""; } } function pr(y) { return ""; } var Jt = {}; function _t(y) { { var D = Lt(); if (!D) { var V = typeof y == "string" ? y : y.displayName || y.name; V && (D = ` Check the top-level render call using <` + V + ">."); } return D; } } function tr(y, D) { { if (!y._store || y._store.validated || y.key != null) return; y._store.validated = !0; var V = _t(D); if (Jt[V]) return; Jt[V] = !0; var ee = ""; y && y._owner && y._owner !== dr.current && (ee = " It was passed a child from " + Je(y._owner.type) + "."), dt(y), ce('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, ee), dt(null); } } function Ft(y, D) { { if (typeof y != "object") return; if (ht(y)) for (var V = 0; V < y.length; V++) { var ee = y[V]; Pe(ee) && tr(ee, D); } else if (Pe(y)) y._store && (y._store.validated = !0); else if (y) { var he = z(y); if (typeof he == "function" && he !== y.entries) for (var we = he.call(y), me; !(me = we.next()).done; ) Pe(me.value) && tr(me.value, D); } } } function ot(y) { { var D = y.type; if (D == null || typeof D == "string") return; var V; if (typeof D == "function") V = D.propTypes; else if (typeof D == "object" && (D.$$typeof === b || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. D.$$typeof === P)) V = D.propTypes; else return; if (V) { var ee = Je(D); er(V, y.props, "prop", ee, y); } else if (D.PropTypes !== void 0 && !It) { It = !0; var he = Je(D); ce("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", he || "Unknown"); } typeof D.getDefaultProps == "function" && !D.getDefaultProps.isReactClassApproved && ce("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function Pr(y) { { for (var D = Object.keys(y.props), V = 0; V < D.length; V++) { var ee = D[V]; if (ee !== "children" && ee !== "key") { dt(y), ce("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ee), dt(null); break; } } y.ref !== null && (dt(y), ce("Invalid attribute `ref` supplied to `React.Fragment`."), dt(null)); } } var hr = {}; function Ir(y, D, V, ee, he, we) { { var me = lt(y); if (!me) { var pe = ""; (y === void 0 || typeof y == "object" && y !== null && Object.keys(y).length === 0) && (pe += " 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 Ve = pr(); Ve ? pe += Ve : pe += Lt(); var Ie; y === null ? Ie = "null" : ht(y) ? Ie = "array" : y !== void 0 && y.$$typeof === C ? (Ie = "<" + (Je(y.type) || "Unknown") + " />", pe = " Did you accidentally export a JSX literal instead of a component?") : Ie = typeof y, ce("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ie, pe); } var je = Rr(y, D, V, he, we); if (je == null) return je; if (me) { var Ue = D.children; if (Ue !== void 0) if (ee) if (ht(Ue)) { for (var Bt = 0; Bt < Ue.length; Bt++) Ft(Ue[Bt], y); Object.freeze && Object.freeze(Ue); } else ce("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 Ft(Ue, y); } if (wt.call(D, "key")) { var Ot = Je(y), Ye = Object.keys(D).filter(function(Dt) { return Dt !== "key"; }), Ge = Ye.length > 0 ? "{key: someKey, " + Ye.join(": ..., ") + ": ...}" : "{key: someKey}"; if (!hr[Ot + Ge]) { var At = Ye.length > 0 ? "{" + Ye.join(": ..., ") + ": ...}" : "{}"; ce(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, Ge, Ot, At, Ot), hr[Ot + Ge] = !0; } } return y === N ? Pr(je) : ot(je), je; } } function Ke(y, D, V) { return Ir(y, D, V, !0); } function _r(y, D, V) { return Ir(y, D, V, !1); } var tn = _r, rn = Ke; yi.Fragment = N, yi.jsx = tn, yi.jsxs = rn; })()), yi; } var bs; function Zs() { return bs || (bs = 1, process.env.NODE_ENV === "production" ? al.exports = Xs() : al.exports = Js()), al.exports; } var Me = Zs(), il = { exports: {} }, ll = { exports: {} }, He = {}; /** @license React v16.13.1 * react-is.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 Ss; function Qs() { if (Ss) return He; Ss = 1; var O = typeof Symbol == "function" && Symbol.for, C = O ? Symbol.for("react.element") : 60103, W = O ? Symbol.for("react.portal") : 60106, N = O ? Symbol.for("react.fragment") : 60107, h = O ? Symbol.for("react.strict_mode") : 60108, $ = O ? Symbol.for("react.profiler") : 60114, ve = O ? Symbol.for("react.provider") : 60109, G = O ? Symbol.for("react.context") : 60110, b = O ? Symbol.for("react.async_mode") : 60111, k = O ? Symbol.for("react.concurrent_mode") : 60111, re = O ? Symbol.for("react.forward_ref") : 60112, P = O ? Symbol.for("react.suspense") : 60113, K = O ? Symbol.for("react.suspense_list") : 60120, Oe = O ? Symbol.for("react.memo") : 60115, Se = O ? Symbol.for("react.lazy") : 60116, ke = O ? Symbol.for("react.block") : 60121, z = O ? Symbol.for("react.fundamental") : 60117, I = O ? Symbol.for("react.responder") : 60118, ce = O ? Symbol.for("react.scope") : 60119; function Ae(L) { if (typeof L == "object" && L !== null) { var Ee = L.$$typeof; switch (Ee) { case C: switch (L = L.type, L) { case b: case k: case N: case $: case h: case P: return L; default: switch (L = L && L.$$typeof, L) { case G: case re: case Se: case Oe: case ve: return L; default: return Ee; } } case W: return Ee; } } } function be(L) { return Ae(L) === k; } return He.AsyncMode = b, He.ConcurrentMode = k, He.ContextConsumer = G, He.ContextProvider = ve, He.Element = C, He.ForwardRef = re, He.Fragment = N, He.Lazy = Se, He.Memo = Oe, He.Portal = W, He.Profiler = $, He.StrictMode = h, He.Suspense = P, He.isAsyncMode = function(L) { return be(L) || Ae(L) === b; }, He.isConcurrentMode = be, He.isContextConsumer = function(L) { return Ae(L) === G; }, He.isContextProvider = function(L) { return Ae(L) === ve; }, He.isElement = function(L) { return typeof L == "object" && L !== null && L.$$typeof === C; }, He.isForwardRef = function(L) { return Ae(L) === re; }, He.isFragment = function(L) { return Ae(L) === N; }, He.isLazy = function(L) { return Ae(L) === Se; }, He.isMemo = function(L) { return Ae(L) === Oe; }, He.isPortal = function(L) { return Ae(L) === W; }, He.isProfiler = function(L) { return Ae(L) === $; }, He.isStrictMode = function(L) { return Ae(L) === h; }, He.isSuspense = function(L) { return Ae(L) === P; }, He.isValidElementType = function(L) { return typeof L == "string" || typeof L == "function" || L === N || L === k || L === $ || L === h || L === P || L === K || typeof L == "object" && L !== null && (L.$$typeof === Se || L.$$typeof === Oe || L.$$typeof === ve || L.$$typeof === G || L.$$typeof === re || L.$$typeof === z || L.$$typeof === I || L.$$typeof === ce || L.$$typeof === ke); }, He.typeOf = Ae, He; } var ze = {}; /** @license React v16.13.1 * react-is.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 xs; function Ks() { return xs || (xs = 1, process.env.NODE_ENV !== "production" && (function() { var O = typeof Symbol == "function" && Symbol.for, C = O ? Symbol.for("react.element") : 60103, W = O ? Symbol.for("react.portal") : 60106, N = O ? Symbol.for("react.fragment") : 60107, h = O ? Symbol.for("react.strict_mode") : 60108, $ = O ? Symbol.for("react.profiler") : 60114, ve = O ? Symbol.for("react.provider") : 60109, G = O ? Symbol.for("react.context") : 60110, b = O ? Symbol.for("react.async_mode") : 60111, k = O ? Symbol.for("react.concurrent_mode") : 60111, re = O ? Symbol.for("react.forward_ref") : 60112, P = O ? Symbol.for("react.suspense") : 60113, K = O ? Symbol.for("react.suspense_list") : 60120, Oe = O ? Symbol.for("react.memo") : 60115, Se = O ? Symbol.for("react.lazy") : 60116, ke = O ? Symbol.for("react.block") : 60121, z = O ? Symbol.for("react.fundamental") : 60117, I = O ? Symbol.for("react.responder") : 60118, ce = O ? Symbol.for("react.scope") : 60119; function Ae(H) { return typeof H == "string" || typeof H == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. H === N || H === k || H === $ || H === h || H === P || H === K || typeof H == "object" && H !== null && (H.$$typeof === Se || H.$$typeof === Oe || H.$$typeof === ve || H.$$typeof === G || H.$$typeof === re || H.$$typeof === z || H.$$typeof === I || H.$$typeof === ce || H.$$typeof === ke); } function be(H) { if (typeof H == "object" && H !== null) { var Re = H.$$typeof; switch (Re) { case C: var Ne = H.type; switch (Ne) { case b: case k: case N: case $: case h: case P: return Ne; default: var ct = Ne && Ne.$$typeof; switch (ct) { case G: case re: case Se: case Oe: case ve: return ct; default: return Re; } } case W: return Re; } } } var L = b, Ee = k, ge = G, it = ve, Ce = C, lt = re, rt = N, Be = Se, Je = Oe, Le = W, ut = $, et = h, at = P, nt = !1; function fe(H) { return nt || (nt = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), A(H) || be(H) === b; } function A(H) { return be(H) === k; } function j(H) { return be(H) === G; } function J(H) { return be(H) === ve; } function ae(H) { return typeof H == "object" && H !== null && H.$$typeof === C; } function Q(H) { return be(H) === re; } function Z(H) { return be(H) === N; } function X(H) { return be(H) === Se; } function ne(H) { return be(H) === Oe; } function oe(H) { return be(H) === W; } function ie(H) { return be(H) === $; } function le(H) { return be(H) === h; } function Te(H) { return be(H) === P; } ze.AsyncMode = L, ze.ConcurrentMode = Ee, ze.ContextConsumer = ge, ze.ContextProvider = it, ze.Element = Ce, ze.ForwardRef = lt, ze.Fragment = rt, ze.Lazy = Be, ze.Memo = Je, ze.Portal = Le, ze.Profiler = ut, ze.StrictMode = et, ze.Suspense = at, ze.isAsyncMode = fe, ze.isConcurrentMode = A, ze.isContextConsumer = j, ze.isContextProvider = J, ze.isElement = ae, ze.isForwardRef = Q, ze.isFragment = Z, ze.isLazy = X, ze.isMemo = ne, ze.isPortal = oe, ze.isProfiler = ie, ze.isStrictMode = le, ze.isSuspense = Te, ze.isValidElementType = Ae, ze.typeOf = be; })()), ze; } var ws; function Bs() { return ws || (ws = 1, process.env.NODE_ENV === "production" ? ll.exports = Qs() : ll.exports = Ks()), ll.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ var ls, ks; function qs() { if (ks) return ls; ks = 1; var O = Object.getOwnPropertySymbols, C = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable; function N($) { if ($ == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object($); } function h() { try { if (!Object.assign) return !1; var $ = new String("abc"); if ($[5] = "de", Object.getOwnPropertyNames($)[0] === "5") return !1; for (var ve = {}, G = 0; G < 10; G++) ve["_" + String.fromCharCode(G)] = G; var b = Object.getOwnPropertyNames(ve).map(function(re) { return ve[re]; }); if (b.join("") !== "0123456789") return !1; var k = {}; return "abcdefghijklmnopqrst".split("").forEach(function(re) { k[re] = re; }), Object.keys(Object.assign({}, k)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } } return ls = h() ? Object.assign : function($, ve) { for (var G, b = N($), k, re = 1; re < arguments.length; re++) { G = Object(arguments[re]); for (var P in G) C.call(G, P) && (b[P] = G[P]); if (O) { k = O(G); for (var K = 0; K < k.length; K++) W.call(G, k[K]) && (b[k[K]] = G[k[K]]); } } return b; }, ls; } var ss, Ts; function hs() { if (Ts) return ss; Ts = 1; var O = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; return ss = O, ss; } var us, Es; function Us() { return Es || (Es = 1, us = Function.call.bind(Object.prototype.hasOwnProperty)), us; } var cs, Cs; function eu() { if (Cs) return cs; Cs = 1; var O = function() { }; if (process.env.NODE_ENV !== "production") { var C = /* @__PURE__ */ hs(), W = {}, N = /* @__PURE__ */ Us(); O = function($) { var ve = "Warning: " + $; typeof console < "u" && console.error(ve); try { throw new Error(ve); } catch { } }; } function h($, ve, G, b, k) { if (process.env.NODE_ENV !== "production") { for (var re in $) if (N($, re)) { var P; try { if (typeof $[re] != "function") { var K = Error( (b || "React class") + ": " + G + " type `" + re + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof $[re] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." ); throw K.name = "Invariant Violation", K; } P = $[re](ve, re, b, G, null, C); } catch (Se) { P = Se; } if (P && !(P instanceof Error) && O( (b || "React class") + ": type specification of " + G + " `" + re + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof P + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." ), P instanceof Error && !(P.message in W)) { W[P.message] = !0; var Oe = k ? k() : ""; O( "Failed " + G + " type: " + P.message + (Oe ?? "") ); } } } } return h.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (W = {}); }, cs = h, cs; } var fs, Rs; function tu() { if (Rs) return fs; Rs = 1; var O = Bs(), C = qs(), W = /* @__PURE__ */ hs(), N = /* @__PURE__ */ Us(), h = /* @__PURE__ */ eu(), $ = function() { }; process.env.NODE_ENV !== "production" && ($ = function(G) { var b = "Warning: " + G; typeof console < "u" && console.error(b); try { throw new Error(b); } catch { } }); function ve() { return null; } return fs = function(G, b) { var k = typeof Symbol == "function" && Symbol.iterator, re = "@@iterator"; function P(A) { var j = A && (k && A[k] || A[re]); if (typeof j == "function") return j; } var K = "<<anonymous>>", Oe = { array: I("array"), bigint: I("bigint"), bool: I("boolean"), func: I("function"), number: I("number"), object: I("object"), string: I("string"), symbol: I("symbol"), any: ce(), arrayOf: Ae, element: be(), elementType: L(), instanceOf: Ee, node: lt(), objectOf: it, oneOf: ge, oneOfType: Ce, shape: Be, exact: Je }; function Se(A, j) { return A === j ? A !== 0 || 1 / A === 1 / j : A !== A && j !== j; } function ke(A, j) { this.message = A, this.data = j && typeof j == "object" ? j : {}, this.stack = ""; } ke.prototype = Error.prototype; function z(A) { if (process.env.NODE_ENV !== "production") var j = {}, J = 0; function ae(Z, X, ne, oe, ie, le, Te) { if (oe = oe || K, le = le || ne, Te !== W) { if (b) { var H = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" ); throw H.name = "Invariant Violation", H; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { var Re = oe + ":" + ne; !j[Re] && // Avoid spamming the console because they are often not actionable except for lib authors J < 3 && ($( "You are manually calling a React.PropTypes validation function for the `" + le + "` prop on `" + oe + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." ), j[Re] = !0, J++); } } return X[ne] == null ? Z ? X[ne] === null ? new ke("The " + ie + " `" + le + "` is marked as required " + ("in `" + oe + "`, but its value is `null`.")) : new ke("The " + ie + " `" + le + "` is marked as required in " + ("`" + oe + "`, but its value is `undefined`.")) : null : A(X, ne, oe, ie, le); } var Q = ae.bind(null, !1); return Q.isRequired = ae.bind(null, !0), Q; } function I(A) { function j(J, ae, Q, Z, X, ne) { var oe = J[ae], ie = et(oe); if (ie !== A) { var le = at(oe); return new ke( "Invalid " + Z + " `" + X + "` of type " + ("`" + le + "` supplied to `" + Q + "`, expected ") + ("`" + A + "`."), { expectedType: A } ); } return null; } return z(j); } function ce() { return z(ve); } function Ae(A) { function j(J, ae, Q, Z, X) { if (typeof A != "function") return new ke("Property `" + X + "` of component `" + Q + "` has invalid PropType notation inside arrayOf."); var ne = J[ae]; if (!Array.isArray(ne)) { var oe = et(ne); return new ke("Invalid " + Z + " `" + X + "` of type " + ("`" + oe + "` supplied to `" + Q + "`, expected an array.")); } for (var ie = 0; ie < ne.length; ie++) { var le = A(ne, ie, Q, Z, X + "[" + ie + "]", W); if (le instanceof Error) return le; } return null; } return z(j); } function be() { function A(j, J, ae, Q, Z) { var X = j[J]; if (!G(X)) { var ne = et(X); return new ke("Invalid " + Q + " `" + Z + "` of type " + ("`" + ne + "` supplied to `" + ae + "`, expected a single ReactElement.")); } return null; } return z(A); } function L() { function A(j, J, ae, Q, Z) { var X = j[J]; if (!O.isValidElementType(X)) { var ne = et(X); return new ke("Invalid " + Q + " `" + Z + "` of type " + ("`" + ne + "` supplied to `" + ae + "`, expected a single ReactElement type.")); } return null; } return z(A); } function Ee(A) { function j(J, ae, Q, Z, X) { if (!(J[ae] instanceof A)) { var ne = A.name || K, oe = fe(J[ae]); return new ke("Invalid " + Z + " `" + X + "` of type " + ("`" + oe + "` supplied to `" + Q + "`, expected ") + ("instance of `" + ne + "`.")); } return null; } return z(j); } function ge(A) { if (!Array.isArray(A)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? $( "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." ) : $("Invalid argument supplied to oneOf, expected an array.")), ve; function j(J, ae, Q, Z, X) { for (var ne = J[ae], oe = 0; oe < A.length; oe++) if (Se(ne, A[oe])) return null; var ie = JSON.stringify(A, function(Te, H) { var Re = at(H); return Re === "symbol" ? String(H) : H; }); return new ke("Invalid " + Z + " `" + X + "` of value `" + String(ne) + "` " + ("supplied to `" + Q + "`, expected one of " + ie + ".")); } return z(j); } function it(A) { function j(J, ae, Q, Z, X) { if (typeof A != "function") return new ke("Property `" + X + "` of component `" + Q + "` has invalid PropType notation inside objectOf."); var ne = J[ae], oe = et(ne); if (oe !== "object") return new ke("Invalid " + Z + " `" + X + "` of type " + ("`" + oe + "` supplied to `" + Q + "`, expected an object.")); for (var ie in ne) if (N(ne, ie)) { var le = A(ne, ie, Q, Z, X + "." + ie, W); if (le instanceof Error) return le; } return null; } return z(j); } function Ce(A) { if (!Array.isArray(A)) return process.env.NODE_ENV !== "production" && $("Invalid argument supplied to oneOfType, expected an instance of array."), ve; for (var j = 0; j < A.length; j++) { var J = A[j]; if (typeof J != "function") return $( "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + nt(J) + " at index " + j + "." ), ve; } function ae(Q, Z, X, ne, oe) { for (var ie = [], le = 0; le < A.length; le++) { var Te = A[le], H = Te(Q, Z, X, ne, oe, W); if (H == null) return null; H.data && N(H.data, "expectedType") && ie.push(H.data.expectedType); } var Re = ie.length > 0 ? ", expected one of type [" + ie.join(", ") + "]" : ""; return new ke("Invalid " + ne + " `" + oe + "` supplied to " + ("`" + X + "`" + Re + ".")); } return z(ae); } function lt() { function A(j, J, ae, Q, Z) { return Le(j[J]) ? null : new ke("Invalid " + Q + " `" + Z + "` supplied to " + ("`" + ae + "`, expected a ReactNode.")); } return z(A); } function rt(A, j, J, ae, Q) { return new ke( (A || "React class") + ": " + j + " type `" + J + "." + ae + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Q + "`." ); } function Be(A) { function j(J, ae, Q, Z, X) { var ne = J[ae], oe = et(ne); if (oe !== "object") return new ke("Invalid " + Z + " `" + X + "` of type `" + oe + "` " + ("supplied to `" + Q + "`, expected `object`.")); for (var ie in A) { var le = A[ie]; if (typeof le != "function") return rt(Q, Z, X, ie, at(le)); var Te = le(ne, ie, Q, Z, X + "." + ie, W); if (Te) return Te; } return null; } return z(j); } function Je(A) { function j(J, ae, Q, Z, X) { var ne = J[ae], oe = et(ne); if (oe !== "object") return new ke("Invalid " + Z + " `" + X + "` of type `" + oe + "` " + ("supplied to `" + Q + "`, expected `object`.")); var ie = C({}, J[ae], A); for (var le in ie) { var Te = A[le]; if (N(A, le) && typeof Te != "function") return rt(Q, Z, X, le, at(Te)); if (!Te) return new ke( "Invalid " + Z + " `" + X + "` key `" + le + "` supplied to `" + Q + "`.\nBad object: " + JSON.stringify(J[ae], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(A), null, " ") ); var H = Te(ne, le, Q, Z, X + "." + le, W); if (H) return H; } return null; } return z(j); } function Le(A) { switch (typeof A) { case "number": case "string": case "undefined": return !0; case "boolean": return !A; case "object": if (Array.isArray(A)) return A.every(Le); if (A === null || G(A)) return !0; var j = P(A); if (j) { var J = j.call(A), ae; if (j !== A.entries) { for (; !(ae = J.next()).done; ) if (!Le(ae.value)) return !1; } else for (; !(ae = J.next()).done; ) { var Q = ae.value; if (Q && !Le(Q[1])) return !1; } } else return !1; return !0; default: return !1; } } function ut(A, j) { return A === "symbol" ? !0 : j ? j["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && j instanceof Symbol : !1; } function et(A) { var j = typeof A; return Array.isArray(A) ? "array" : A instanceof RegExp ? "object" : ut(j, A) ? "symbol" : j; } function at(A) { if (typeof A > "u" || A === null) return "" + A; var j = et(A); if (j === "object") { if (A instanceof Date) return "date"; if (A instanceof RegExp) return "regexp"; } return j; } function nt(A) { var j = at(A); switch (j) { case "array": case "object": return "an " + j; case "boolean": case "date": case "regexp": return "a " + j; default: return j; } } function fe(A) { return !A.constructor || !A.constructor.name ? K : A.constructor.name; } return Oe.checkPropTypes = h, Oe.resetWarningCache = h.resetWarningCache, Oe.PropTypes = Oe, Oe; }, fs; } var ds, Ps; function ru() { if (Ps) return ds; Ps = 1; var O = /* @__PURE__ */ hs(); function C() { } function W() { } return W.resetWarningCache = C, ds = function() { function N(ve, G, b, k, re, P) { if (P !== O) { var K = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" ); throw K.name = "Invariant Violation", K; } } N.isRequired = N; function h() { return N; } var $ = { array: N, bigint: N, bool: N, func: N, number: N, object: N, string: N, symbol: N, any: N, arrayOf: h, element: N, elementType: N, instanceOf: h, node: N, objectOf: h, oneOf: h, oneOfType: h, shape: h, exact: h, checkPropTypes: W, resetWarningCache: C }; return $.PropTypes = $, $; }, ds; } var Is; function nu() { if (Is) return il.exports; if (Is = 1, process.env.NODE_ENV !== "production") { var O = Bs(), C = !0; il.exports = /* @__PURE__ */ tu()(O.isElement, C); } else il.exports = /* @__PURE__ */ ru()(); return il.exports; } var ou = /* @__PURE__ */ nu(); const Rt = /* @__PURE__ */ Gs(ou); var Ws = { color: void 0, size: void 0, className: void 0, style: void 0, attr: void 0 }, _s = ir.createContext && ir.createContext(Ws), Vn = function() { return Vn = Object.assign || function(O) { for (var C, W = 1, N = arguments.length; W < N; W++) { C = arguments[W]; for (var h in C) Object.prototype.hasOwnProperty.call(C, h) && (O[h] = C[h]); } return O; }, Vn.apply(this, arguments); }, au = function(O, C) { var W = {}; for (var N in O) Object.prototype.hasOwnProperty.call(O, N) && C.indexOf(N) < 0 && (W[N] = O[N]); if (O != null && typeof Object.getOwnPropertySymbols == "function") for (var h = 0, N = Object.getOwnPropertySymbols(O); h < N.length; h++) C.indexOf(N[h]) < 0 && Object.prototype.propertyIsEnumerable.call(O, N[h]) && (W[N[h]] = O[N[h]]); return W; }; function Hs(O) { return O && O.map(function(C, W) { return ir.createElement(C.tag, Vn({ key: W }, C.attr), Hs(C.child)); }); } function vs(O) { return function(C) { return ir.createElement(iu, Vn({ attr: Vn({}, O.attr) }, C), Hs(O.child)); }; } function iu(O) { var C = function(W) { var N = O.attr, h = O.size, $ = O.title, ve = au(O, ["attr", "size", "title"]), G = h || W.size || "1em", b; return W.className && (b = W.className), O.className && (b = (b ? b + " " : "") + O.className), ir.createElement("svg", Vn({ stroke: "currentColor", fill: "currentColor", strokeWidth: "0" }, W.attr, N, ve, { className: b, style: Vn(Vn({ color: O.color || W.color }, W.style), O.style), height: G, width: G, xmlns: "http://www.w3.org/2000/svg" }), $ && ir.createElement("title", null, $), O.children); }; return _s !== void 0 ? ir.createElement(_s.Consumer, null, function(W) { return C(W); }) : C(Ws); } function lu(O) { return vs({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z" } }] })(O); } function Fs(O) { return vs({ attr: { viewBox: "0 0 1024 1024", fill: "currentColor", fillRule: "evenodd" }, child: [{ tag: "path", attr: { d: "M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z" } }] })(O); } function su(O) { return vs({ attr: { viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { d: "M11.625 16.5a1.875 1.875 0 100-3.75 1.875 1.875 0 000 3.75z" } }, { tag: "path", attr: { fillRule: "evenodd", d: "M5.625 1.5H9a3.75 3.75 0 013.75 3.75v1.875c0 1.036.84 1.875 1.875 1.875H16.5a3.75 3.75 0 013.75 3.75v7.875c0 1.035-.84 1.875-1.875 1.875H5.625a1.875 1.875 0 01-1.875-1.875V3.375c0-1.036.84-1.875 1.875-1.875zm6 16.5c.66 0 1.277-.19 1.797-.518l1.048 1.048a.75.75 0 001.06-1.06l-1.047-1.048A3.375 3.375 0 1011.625 18z", clipRule: "evenodd" } }, { tag: "path", attr: { d: "M14.25 5.25a5.23 5.23 0 00-1.279-3.434 9.768 9.768 0 016.963 6.963A5.23 5.23 0 0016.5 7.5h-1.875a.375.375 0 01-.375-.375V5.25z" } }] })(O); } var Nn = {}, Eo = {}; /** * @license React * react-dom-server-legacy.browser.production.min.js * * Copyright (c) Facebook, Inc. and i