UNPKG

@a.annzzz/directdeposit-widget

Version:

A plug-and-play React component for connecting a Web3 wallet and displaying deposit schedule information.

794 lines 826 kB
var Rh = Object.defineProperty; var Pl = (e) => { throw TypeError(e); }; var Nh = (e, n, t) => n in e ? Rh(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t; var Y = (e, n, t) => Nh(e, typeof n != "symbol" ? n + "" : n, t), Ni = (e, n, t) => n.has(e) || Pl("Cannot " + t); var B = (e, n, t) => (Ni(e, n, "read from private field"), t ? t.call(e) : n.get(e)), ie = (e, n, t) => n.has(e) ? Pl("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(e) : n.set(e, t), Z = (e, n, t, r) => (Ni(e, n, "write to private field"), r ? r.call(e, t) : n.set(e, t), t), Me = (e, n, t) => (Ni(e, n, "access private method"), t); var Ya = (e, n, t, r) => ({ set _(a) { Z(e, n, a, t); }, get _() { return B(e, n, r); } }); import * as X from "react"; import N, { useState as _e, useRef as tn, useLayoutEffect as Zs, useEffect as ht, useSyncExternalStore as Lh, isValidElement as Js, cloneElement as Aa, createRef as Sn, Component as Ie, useCallback as Fh, createElement as $h, useMemo as wp } from "react"; import { WagmiProvider as Bh, useWalletClient as Uh, usePublicClient as Gh, useSwitchChain as Hh, useAccount as jh, useDisconnect as Vh } from "wagmi"; import { getDefaultConfig as Yh, RainbowKitProvider as zh, lightTheme as qh, ConnectButton as Wh } from "@rainbow-me/rainbowkit"; import { concat as Ve, ContractFunctionRevertedError as _l, RpcRequestError as Cl, InvalidInputRpcError as Sl, UnknownRpcError as Il, decodeErrorResult as Li, RawContractError as Kh, BaseError as bu, zeroAddress as Oe, isHex as la, hexToSignature as Qh, signatureToHex as Xh, concatHex as ot, pad as Ce, createWalletClient as xp, custom as Zh, encodeFunctionData as $e, decodeFunctionResult as Jh, publicActions as e0, toFunctionSelector as bs, getAbiItem as vs, toHex as Se, hexToBigInt as yr, encodeAbiParameters as Mt, parseAbiParameters as oc, maxUint192 as t0, maxUint16 as n0, parseAbi as gn, encodeDeployData as Ep, keccak256 as ws, stringToHex as r0, domainSeparator as a0, isAddressEqual as kl, http as da, createNonceManager as s0, getTypesForEIP712Domain as Tp, validateTypedData as Dp, hashTypedData as i0, hashMessage as o0, createClient as Pp, ChainNotFoundError as _p, numberToHex as c0, getAddress as ne, createPublicClient as u0, maxUint256 as l0, slice as d0, parseUnits as f0 } from "viem"; import * as p0 from "react-dom"; import y0 from "react-dom"; var za = { exports: {} }, Xr = {}; /** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Al; function m0() { if (Al) return Xr; Al = 1; var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment"); function t(r, a, s) { var i = null; if (s !== void 0 && (i = "" + s), a.key !== void 0 && (i = "" + a.key), "key" in a) { s = {}; for (var o in a) o !== "key" && (s[o] = a[o]); } else s = a; return a = s.ref, { $$typeof: e, type: r, key: i, ref: a !== void 0 ? a : null, props: s }; } return Xr.Fragment = n, Xr.jsx = t, Xr.jsxs = t, Xr; } var Zr = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Ol; function h0() { return Ol || (Ol = 1, process.env.NODE_ENV !== "production" && function() { function e(P) { if (P == null) return null; if (typeof P == "function") return P.$$typeof === A ? null : P.displayName || P.name || null; if (typeof P == "string") return P; switch (P) { case y: return "Fragment"; case b: return "Profiler"; case h: return "StrictMode"; case _: return "Suspense"; case O: return "SuspenseList"; case E: return "Activity"; } if (typeof P == "object") switch (typeof P.tag == "number" && console.error( "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." ), P.$$typeof) { case m: return "Portal"; case g: return (P.displayName || "Context") + ".Provider"; case v: return (P._context.displayName || "Context") + ".Consumer"; case T: var L = P.render; return P = P.displayName, P || (P = L.displayName || L.name || "", P = P !== "" ? "ForwardRef(" + P + ")" : "ForwardRef"), P; case C: return L = P.displayName || null, L !== null ? L : e(P.type) || "Memo"; case x: L = P._payload, P = P._init; try { return e(P(L)); } catch { } } return null; } function n(P) { return "" + P; } function t(P) { try { n(P); var L = !1; } catch { L = !0; } if (L) { L = console; var G = L.error, V = typeof Symbol == "function" && Symbol.toStringTag && P[Symbol.toStringTag] || P.constructor.name || "Object"; return G.call( L, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", V ), n(P); } } function r(P) { if (P === y) return "<>"; if (typeof P == "object" && P !== null && P.$$typeof === x) return "<...>"; try { var L = e(P); return L ? "<" + L + ">" : "<...>"; } catch { return "<...>"; } } function a() { var P = R.A; return P === null ? null : P.getOwner(); } function s() { return Error("react-stack-top-frame"); } function i(P) { if (M.call(P, "key")) { var L = Object.getOwnPropertyDescriptor(P, "key").get; if (L && L.isReactWarning) return !1; } return P.key !== void 0; } function o(P, L) { function G() { w || (w = !0, console.error( "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", L )); } G.isReactWarning = !0, Object.defineProperty(P, "key", { get: G, configurable: !0 }); } function c() { var P = e(this.type); return D[P] || (D[P] = !0, console.error( "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." )), P = this.props.ref, P !== void 0 ? P : null; } function l(P, L, G, V, Q, q, J, dt) { return G = q.ref, P = { $$typeof: p, type: P, key: L, props: q, _owner: Q }, (G !== void 0 ? G : null) !== null ? Object.defineProperty(P, "ref", { enumerable: !1, get: c }) : Object.defineProperty(P, "ref", { enumerable: !1, value: null }), P._store = {}, Object.defineProperty(P._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty(P, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.defineProperty(P, "_debugStack", { configurable: !1, enumerable: !1, writable: !0, value: J }), Object.defineProperty(P, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, value: dt }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P; } function u(P, L, G, V, Q, q, J, dt) { var pe = L.children; if (pe !== void 0) if (V) if (U(pe)) { for (V = 0; V < pe.length; V++) d(pe[V]); Object.freeze && Object.freeze(pe); } else console.error( "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 d(pe); if (M.call(L, "key")) { pe = e(P); var Ae = Object.keys(L).filter(function(K) { return K !== "key"; }); V = 0 < Ae.length ? "{key: someKey, " + Ae.join(": ..., ") + ": ...}" : "{key: someKey}", $[pe + V] || (Ae = 0 < Ae.length ? "{" + Ae.join(": ..., ") + ": ...}" : "{}", console.error( `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} />`, V, pe, Ae, pe ), $[pe + V] = !0); } if (pe = null, G !== void 0 && (t(G), pe = "" + G), i(L) && (t(L.key), pe = "" + L.key), "key" in L) { G = {}; for (var Gt in L) Gt !== "key" && (G[Gt] = L[Gt]); } else G = L; return pe && o( G, typeof P == "function" ? P.displayName || P.name || "Unknown" : P ), l( P, pe, q, Q, a(), G, J, dt ); } function d(P) { typeof P == "object" && P !== null && P.$$typeof === p && P._store && (P._store.validated = 1); } var f = N, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), g = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), E = Symbol.for("react.activity"), A = Symbol.for("react.client.reference"), R = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, U = Array.isArray, S = console.createTask ? console.createTask : function() { return null; }; f = { "react-stack-bottom-frame": function(P) { return P(); } }; var w, D = {}, I = f["react-stack-bottom-frame"].bind( f, s )(), k = S(r(s)), $ = {}; Zr.Fragment = y, Zr.jsx = function(P, L, G, V, Q) { var q = 1e4 > R.recentlyCreatedOwnerStacks++; return u( P, L, G, !1, V, Q, q ? Error("react-stack-top-frame") : I, q ? S(r(P)) : k ); }, Zr.jsxs = function(P, L, G, V, Q) { var q = 1e4 > R.recentlyCreatedOwnerStacks++; return u( P, L, G, !0, V, Q, q ? Error("react-stack-top-frame") : I, q ? S(r(P)) : k ); }; }()), Zr; } var Ml; function g0() { return Ml || (Ml = 1, process.env.NODE_ENV === "production" ? za.exports = m0() : za.exports = h0()), za.exports; } var z = g0(); function Cp(e) { var n, t, r = ""; if (typeof e == "string" || typeof e == "number") r += e; else if (typeof e == "object") if (Array.isArray(e)) { var a = e.length; for (n = 0; n < a; n++) e[n] && (t = Cp(e[n])) && (r && (r += " "), r += t); } else for (t in e) e[t] && (r && (r += " "), r += t); return r; } function me() { for (var e, n, t = 0, r = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (n = Cp(e)) && (r && (r += " "), r += n); return r; } function b0(e) { if (typeof document > "u") return; let n = document.head || document.getElementsByTagName("head")[0], t = document.createElement("style"); t.type = "text/css", n.firstChild ? n.insertBefore(t, n.firstChild) : n.appendChild(t), t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e)); } b0(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}} `); var Oa = (e) => typeof e == "number" && !isNaN(e), tr = (e) => typeof e == "string", nn = (e) => typeof e == "function", v0 = (e) => tr(e) || Oa(e), cc = (e) => tr(e) || nn(e) ? e : null, w0 = (e, n) => e === !1 || Oa(e) && e > 0 ? e : n, uc = (e) => Js(e) || tr(e) || nn(e) || Oa(e); function x0(e, n, t = 300) { let { scrollHeight: r, style: a } = e; requestAnimationFrame(() => { a.minHeight = "initial", a.height = r + "px", a.transition = `all ${t}ms`, requestAnimationFrame(() => { a.height = "0", a.padding = "0", a.margin = "0", setTimeout(n, t); }); }); } function E0({ enter: e, exit: n, appendPosition: t = !1, collapse: r = !0, collapseDuration: a = 300 }) { return function({ children: s, position: i, preventExitTransition: o, done: c, nodeRef: l, isIn: u, playToast: d }) { let f = t ? `${e}--${i}` : e, p = t ? `${n}--${i}` : n, m = tn(0); return Zs(() => { let y = l.current, h = f.split(" "), b = (v) => { v.target === l.current && (d(), y.removeEventListener("animationend", b), y.removeEventListener("animationcancel", b), m.current === 0 && v.type !== "animationcancel" && y.classList.remove(...h)); }; y.classList.add(...h), y.addEventListener("animationend", b), y.addEventListener("animationcancel", b); }, []), ht(() => { let y = l.current, h = () => { y.removeEventListener("animationend", h), r ? x0(y, c, a) : c(); }; u || (o ? h() : (m.current = 1, y.className += ` ${p}`, y.addEventListener("animationend", h))); }, [u]), N.createElement(N.Fragment, null, s); }; } function Rl(e, n) { return { content: Sp(e.content, e.props), containerId: e.props.containerId, id: e.props.toastId, theme: e.props.theme, type: e.props.type, data: e.props.data || {}, isLoading: e.props.isLoading, icon: e.props.icon, reason: e.removalReason, status: n }; } function Sp(e, n, t = !1) { return Js(e) && !tr(e.type) ? Aa(e, { closeToast: n.closeToast, toastProps: n, data: n.data, isPaused: t }) : nn(e) ? e({ closeToast: n.closeToast, toastProps: n, data: n.data, isPaused: t }) : e; } function T0({ closeToast: e, theme: n, ariaLabel: t = "close" }) { return N.createElement("button", { className: `Toastify__close-button Toastify__close-button--${n}`, type: "button", onClick: (r) => { r.stopPropagation(), e(!0); }, "aria-label": t }, N.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, N.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" }))); } function D0({ delay: e, isRunning: n, closeToast: t, type: r = "default", hide: a, className: s, controlledProgress: i, progress: o, rtl: c, isIn: l, theme: u }) { let d = a || i && o === 0, f = { animationDuration: `${e}ms`, animationPlayState: n ? "running" : "paused" }; i && (f.transform = `scaleX(${o})`); let p = me("Toastify__progress-bar", i ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${u}`, `Toastify__progress-bar--${r}`, { "Toastify__progress-bar--rtl": c }), m = nn(s) ? s({ rtl: c, type: r, defaultClassName: p }) : me(p, s), y = { [i && o >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: i && o < 1 ? null : () => { l && t(); } }; return N.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": d }, N.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${u} Toastify__progress-bar--${r}` }), N.createElement("div", { role: "progressbar", "aria-hidden": d ? "true" : "false", "aria-label": "notification timer", className: m, style: f, ...y })); } var P0 = 1, Ip = () => `${P0++}`; function _0(e, n, t) { let r = 1, a = 0, s = [], i = [], o = n, c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), u = (v) => (l.add(v), () => l.delete(v)), d = () => { i = Array.from(c.values()), l.forEach((v) => v()); }, f = ({ containerId: v, toastId: g, updateId: T }) => { let _ = v ? v !== e : e !== 1, O = c.has(g) && T == null; return _ || O; }, p = (v, g) => { c.forEach((T) => { var _; (g == null || g === T.props.toastId) && ((_ = T.toggle) == null || _.call(T, v)); }); }, m = (v) => { var g, T; (T = (g = v.props) == null ? void 0 : g.onClose) == null || T.call(g, v.removalReason), v.isActive = !1; }, y = (v) => { if (v == null) c.forEach(m); else { let g = c.get(v); g && m(g); } d(); }, h = () => { a -= s.length, s = []; }, b = (v) => { var g, T; let { toastId: _, updateId: O } = v.props, C = O == null; v.staleId && c.delete(v.staleId), v.isActive = !0, c.set(_, v), d(), t(Rl(v, C ? "added" : "updated")), C && ((T = (g = v.props).onOpen) == null || T.call(g)); }; return { id: e, props: o, observe: u, toggle: p, removeToast: y, toasts: c, clearQueue: h, buildToast: (v, g) => { if (f(g)) return; let { toastId: T, updateId: _, data: O, staleId: C, delay: x } = g, E = _ == null; E && a++; let A = { ...o, style: o.toastStyle, key: r++, ...Object.fromEntries(Object.entries(g).filter(([M, U]) => U != null)), toastId: T, updateId: _, data: O, isIn: !1, className: cc(g.className || o.toastClassName), progressClassName: cc(g.progressClassName || o.progressClassName), autoClose: g.isLoading ? !1 : w0(g.autoClose, o.autoClose), closeToast(M) { c.get(T).removalReason = M, y(T); }, deleteToast() { let M = c.get(T); if (M != null) { if (t(Rl(M, "removed")), c.delete(T), a--, a < 0 && (a = 0), s.length > 0) { b(s.shift()); return; } d(); } } }; A.closeButton = o.closeButton, g.closeButton === !1 || uc(g.closeButton) ? A.closeButton = g.closeButton : g.closeButton === !0 && (A.closeButton = uc(o.closeButton) ? o.closeButton : !0); let R = { content: v, props: A, staleId: C }; o.limit && o.limit > 0 && a > o.limit && E ? s.push(R) : Oa(x) ? setTimeout(() => { b(R); }, x) : b(R); }, setProps(v) { o = v; }, setToggle: (v, g) => { let T = c.get(v); T && (T.toggle = g); }, isToastActive: (v) => { var g; return (g = c.get(v)) == null ? void 0 : g.isActive; }, getSnapshot: () => i }; } var qe = /* @__PURE__ */ new Map(), ma = [], lc = /* @__PURE__ */ new Set(), C0 = (e) => lc.forEach((n) => n(e)), kp = () => qe.size > 0; function S0() { ma.forEach((e) => Op(e.content, e.options)), ma = []; } var I0 = (e, { containerId: n }) => { var t; return (t = qe.get(n || 1)) == null ? void 0 : t.toasts.get(e); }; function Ap(e, n) { var t; if (n) return !!((t = qe.get(n)) != null && t.isToastActive(e)); let r = !1; return qe.forEach((a) => { a.isToastActive(e) && (r = !0); }), r; } function k0(e) { if (!kp()) { ma = ma.filter((n) => e != null && n.options.toastId !== e); return; } if (e == null || v0(e)) qe.forEach((n) => { n.removeToast(e); }); else if (e && ("containerId" in e || "id" in e)) { let n = qe.get(e.containerId); n ? n.removeToast(e.id) : qe.forEach((t) => { t.removeToast(e.id); }); } } var A0 = (e = {}) => { qe.forEach((n) => { n.props.limit && (!e.containerId || n.id === e.containerId) && n.clearQueue(); }); }; function Op(e, n) { uc(e) && (kp() || ma.push({ content: e, options: n }), qe.forEach((t) => { t.buildToast(e, n); })); } function O0(e) { var n; (n = qe.get(e.containerId || 1)) == null || n.setToggle(e.id, e.fn); } function Mp(e, n) { qe.forEach((t) => { (n == null || !(n != null && n.containerId) || (n == null ? void 0 : n.containerId) === t.id) && t.toggle(e, n == null ? void 0 : n.id); }); } function M0(e) { let n = e.containerId || 1; return { subscribe(t) { let r = _0(n, e, C0); qe.set(n, r); let a = r.observe(t); return S0(), () => { a(), qe.delete(n); }; }, setProps(t) { var r; (r = qe.get(n)) == null || r.setProps(t); }, getSnapshot() { var t; return (t = qe.get(n)) == null ? void 0 : t.getSnapshot(); } }; } function R0(e) { return lc.add(e), () => { lc.delete(e); }; } function N0(e) { return e && (tr(e.toastId) || Oa(e.toastId)) ? e.toastId : Ip(); } function Ma(e, n) { return Op(e, n), n.toastId; } function ei(e, n) { return { ...n, type: n && n.type || e, toastId: N0(n) }; } function ti(e) { return (n, t) => Ma(n, ei(e, t)); } function de(e, n) { return Ma(e, ei("default", n)); } de.loading = (e, n) => Ma(e, ei("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...n })); function L0(e, { pending: n, error: t, success: r }, a) { let s; n && (s = tr(n) ? de.loading(n, a) : de.loading(n.render, { ...a, ...n })); let i = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, o = (l, u, d) => { if (u == null) { de.dismiss(s); return; } let f = { type: l, ...i, ...a, data: d }, p = tr(u) ? { render: u } : u; return s ? de.update(s, { ...f, ...p }) : de(p.render, { ...f, ...p }), d; }, c = nn(e) ? e() : e; return c.then((l) => o("success", r, l)).catch((l) => o("error", t, l)), c; } de.promise = L0; de.success = ti("success"); de.info = ti("info"); de.error = ti("error"); de.warning = ti("warning"); de.warn = de.warning; de.dark = (e, n) => Ma(e, ei("default", { theme: "dark", ...n })); function F0(e) { k0(e); } de.dismiss = F0; de.clearWaitingQueue = A0; de.isActive = Ap; de.update = (e, n = {}) => { let t = I0(e, n); if (t) { let { props: r, content: a } = t, s = { delay: 100, ...r, ...n, toastId: n.toastId || e, updateId: Ip() }; s.toastId !== e && (s.staleId = e); let i = s.render || a; delete s.render, Ma(i, s); } }; de.done = (e) => { de.update(e, { progress: 1 }); }; de.onChange = R0; de.play = (e) => Mp(!0, e); de.pause = (e) => Mp(!1, e); function $0(e) { var n; let { subscribe: t, getSnapshot: r, setProps: a } = tn(M0(e)).current; a(e); let s = (n = Lh(t, r, r)) == null ? void 0 : n.slice(); function i(o) { if (!s) return []; let c = /* @__PURE__ */ new Map(); return e.newestOnTop && s.reverse(), s.forEach((l) => { let { position: u } = l.props; c.has(u) || c.set(u, []), c.get(u).push(l); }), Array.from(c, (l) => o(l[0], l[1])); } return { getToastToRender: i, isToastActive: Ap, count: s == null ? void 0 : s.length }; } function B0(e) { let [n, t] = _e(!1), [r, a] = _e(!1), s = tn(null), i = tn({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: o, pauseOnHover: c, closeToast: l, onClick: u, closeOnClick: d } = e; O0({ id: e.toastId, containerId: e.containerId, fn: t }), ht(() => { if (e.pauseOnFocusLoss) return f(), () => { p(); }; }, [e.pauseOnFocusLoss]); function f() { document.hasFocus() || b(), window.addEventListener("focus", h), window.addEventListener("blur", b); } function p() { window.removeEventListener("focus", h), window.removeEventListener("blur", b); } function m(C) { if (e.draggable === !0 || e.draggable === C.pointerType) { v(); let x = s.current; i.canCloseOnClick = !0, i.canDrag = !0, x.style.transition = "none", e.draggableDirection === "x" ? (i.start = C.clientX, i.removalDistance = x.offsetWidth * (e.draggablePercent / 100)) : (i.start = C.clientY, i.removalDistance = x.offsetHeight * (e.draggablePercent === 80 ? e.draggablePercent * 1.5 : e.draggablePercent) / 100); } } function y(C) { let { top: x, bottom: E, left: A, right: R } = s.current.getBoundingClientRect(); C.nativeEvent.type !== "touchend" && e.pauseOnHover && C.clientX >= A && C.clientX <= R && C.clientY >= x && C.clientY <= E ? b() : h(); } function h() { t(!0); } function b() { t(!1); } function v() { i.didMove = !1, document.addEventListener("pointermove", T), document.addEventListener("pointerup", _); } function g() { document.removeEventListener("pointermove", T), document.removeEventListener("pointerup", _); } function T(C) { let x = s.current; if (i.canDrag && x) { i.didMove = !0, n && b(), e.draggableDirection === "x" ? i.delta = C.clientX - i.start : i.delta = C.clientY - i.start, i.start !== C.clientX && (i.canCloseOnClick = !1); let E = e.draggableDirection === "x" ? `${i.delta}px, var(--y)` : `0, calc(${i.delta}px + var(--y))`; x.style.transform = `translate3d(${E},0)`, x.style.opacity = `${1 - Math.abs(i.delta / i.removalDistance)}`; } } function _() { g(); let C = s.current; if (i.canDrag && i.didMove && C) { if (i.canDrag = !1, Math.abs(i.delta) > i.removalDistance) { a(!0), e.closeToast(!0), e.collapseAll(); return; } C.style.transition = "transform 0.2s, opacity 0.2s", C.style.removeProperty("transform"), C.style.removeProperty("opacity"); } } let O = { onPointerDown: m, onPointerUp: y }; return o && c && (O.onMouseEnter = b, e.stacked || (O.onMouseLeave = h)), d && (O.onClick = (C) => { u && u(C), i.canCloseOnClick && l(!0); }), { playToast: h, pauseToast: b, isRunning: n, preventExitTransition: r, toastRef: s, eventHandlers: O }; } var U0 = typeof window < "u" ? Zs : ht, ni = ({ theme: e, type: n, isLoading: t, ...r }) => N.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${n})`, ...r }); function G0(e) { return N.createElement(ni, { ...e }, N.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" })); } function H0(e) { return N.createElement(ni, { ...e }, N.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" })); } function j0(e) { return N.createElement(ni, { ...e }, N.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" })); } function V0(e) { return N.createElement(ni, { ...e }, N.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" })); } function Y0() { return N.createElement("div", { className: "Toastify__spinner" }); } var dc = { info: H0, warning: G0, success: j0, error: V0, spinner: Y0 }, z0 = (e) => e in dc; function q0({ theme: e, type: n, isLoading: t, icon: r }) { let a = null, s = { theme: e, type: n }; return r === !1 || (nn(r) ? a = r({ ...s, isLoading: t }) : Js(r) ? a = Aa(r, s) : t ? a = dc.spinner() : z0(n) && (a = dc[n](s))), a; } var W0 = (e) => { let { isRunning: n, preventExitTransition: t, toastRef: r, eventHandlers: a, playToast: s } = B0(e), { closeButton: i, children: o, autoClose: c, onClick: l, type: u, hideProgressBar: d, closeToast: f, transition: p, position: m, className: y, style: h, progressClassName: b, updateId: v, role: g, progress: T, rtl: _, toastId: O, deleteToast: C, isIn: x, isLoading: E, closeOnClick: A, theme: R, ariaLabel: M } = e, U = me("Toastify__toast", `Toastify__toast-theme--${R}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": _ }, { "Toastify__toast--close-on-click": A }), S = nn(y) ? y({ rtl: _, position: m, type: u, defaultClassName: U }) : me(U, y), w = q0(e), D = !!T || !c, I = { closeToast: f, type: u, theme: R }, k = null; return i === !1 || (nn(i) ? k = i(I) : Js(i) ? k = Aa(i, I) : k = T0(I)), N.createElement(p, { isIn: x, done: C, position: m, preventExitTransition: t, nodeRef: r, playToast: s }, N.createElement("div", { id: O, tabIndex: 0, onClick: l, "data-in": x, className: S, ...a, style: h, ref: r, ...x && { role: g, "aria-label": M } }, w != null && N.createElement("div", { className: me("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !E }) }, w), Sp(o, e, !n), k, !e.customProgressBar && N.createElement(D0, { ...v && !D ? { key: `p-${v}` } : {}, rtl: _, theme: R, delay: c, isRunning: n, isIn: x, closeToast: f, hide: d, type: u, className: b, controlledProgress: D, progress: T || 0 }))); }, K0 = (e, n = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: n }), Q0 = E0(K0("bounce", !0)), X0 = { position: "top-right", transition: Q0, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light", "aria-label": "Notifications Alt+T", hotKeys: (e) => e.altKey && e.code === "KeyT" }; function Z0(e) { let n = { ...X0, ...e }, t = e.stacked, [r, a] = _e(!0), s = tn(null), { getToastToRender: i, isToastActive: o, count: c } = $0(n), { className: l, style: u, rtl: d, containerId: f, hotKeys: p } = n; function m(h) { let b = me("Toastify__toast-container", `Toastify__toast-container--${h}`, { "Toastify__toast-container--rtl": d }); return nn(l) ? l({ position: h, rtl: d, defaultClassName: b }) : me(b, cc(l)); } function y() { t && (a(!0), de.play()); } return U0(() => { var h; if (t) { let b = s.current.querySelectorAll('[data-in="true"]'), v = 12, g = (h = n.position) == null ? void 0 : h.includes("top"), T = 0, _ = 0; Array.from(b).reverse().forEach((O, C) => { let x = O; x.classList.add("Toastify__toast--stacked"), C > 0 && (x.dataset.collapsed = `${r}`), x.dataset.pos || (x.dataset.pos = g ? "top" : "bot"); let E = T * (r ? 0.2 : 1) + (r ? 0 : v * C); x.style.setProperty("--y", `${g ? E : E * -1}px`), x.style.setProperty("--g", `${v}`), x.style.setProperty("--s", `${1 - (r ? _ : 0)}`), T += x.offsetHeight, _ += 0.025; }); } }, [r, c, t]), ht(() => { function h(b) { var v; let g = s.current; p(b) && ((v = g.querySelector('[tabIndex="0"]')) == null || v.focus(), a(!1), de.pause()), b.key === "Escape" && (document.activeElement === g || g != null && g.contains(document.activeElement)) && (a(!0), de.play()); } return document.addEventListener("keydown", h), () => { document.removeEventListener("keydown", h); }; }, [p]), N.createElement("section", { ref: s, className: "Toastify", id: f, onMouseEnter: () => { t && (a(!1), de.pause()); }, onMouseLeave: y, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": n["aria-label"] }, i((h, b) => { let v = b.length ? { ...u } : { ...u, pointerEvents: "none" }; return N.createElement("div", { tabIndex: -1, className: m(h), "data-stacked": t, style: v, key: `c-${h}` }, b.map(({ content: g, props: T }) => N.createElement(W0, { ...T, stacked: t, collapseAll: y, isIn: o(T.toastId, T.containerId), key: `t-${T.key}` }, g))); })); } function cr(e) { return { formatters: void 0, fees: void 0, serializers: void 0, ...e }; } const Rp = "2.32.0"; let Jr = { getDocsUrl: ({ docsBaseUrl: e, docsPath: n = "", docsSlug: t }) => n ? `${e ?? "https://viem.sh"}${n}${t ? `#${t}` : ""}` : void 0, version: `viem@${Rp}` }, F = class fc extends Error { constructor(n, t = {}) { var o; const r = (() => { var c; return t.cause instanceof fc ? t.cause.details : (c = t.cause) != null && c.message ? t.cause.message : t.details; })(), a = t.cause instanceof fc && t.cause.docsPath || t.docsPath, s = (o = Jr.getDocsUrl) == null ? void 0 : o.call(Jr, { ...t, docsPath: a }), i = [ n || "An error occurred.", "", ...t.metaMessages ? [...t.metaMessages, ""] : [], ...s ? [`Docs: ${s}`] : [], ...r ? [`Details: ${r}`] : [], ...Jr.version ? [`Version: ${Jr.version}`] : [] ].join(` `); super(i, t.cause ? { cause: t.cause } : void 0), Object.defineProperty(this, "details", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "docsPath", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "metaMessages", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shortMessage", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "version", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "name", { enumerable: !0, configurable: !0, writable: !0, value: "BaseError" }), this.details = r, this.docsPath = a, this.metaMessages = t.metaMessages, this.name = t.name ?? this.name, this.shortMessage = n, this.version = Rp; } walk(n) { return Np(this, n); } }; function Np(e, n) { return n != null && n(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? Np(e.cause, n) : n ? null : e; } let Lp = class extends F { constructor({ max: n, min: t, signed: r, size: a, value: s }) { super(`Number "${s}" is not in safe ${a ? `${a * 8}-bit ${r ? "signed" : "unsigned"} ` : ""}integer range ${n ? `(${t} to ${n})` : `(above ${t})`}`, { name: "IntegerOutOfRangeError" }); } }; class J0 extends F { constructor(n) { super(`Bytes value "${n}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, { name: "InvalidBytesBooleanError" }); } } class eg extends F { constructor({ givenSize: n, maxSize: t }) { super(`Size cannot exceed ${t} bytes. Given size: ${n} bytes.`, { name: "SizeOverflowError" }); } } function In(e, { strict: n = !0 } = {}) { return !e || typeof e != "string" ? !1 : n ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x"); } function ve(e) { return In(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length; } function nr(e, { dir: n = "left" } = {}) { let t = typeof e == "string" ? e.replace("0x", "") : e, r = 0; for (let a = 0; a < t.length - 1 && t[n === "left" ? a : t.length - a - 1].toString() === "0"; a++) r++; return t = n === "left" ? t.slice(r) : t.slice(0, t.length - r), typeof e == "string" ? (t.length === 1 && n === "right" && (t = `${t}0`), `0x${t.length % 2 === 1 ? `0${t}` : t}`) : t; } class Fp extends F { constructor({ offset: n, position: t, size: r }) { super(`Slice ${t === "start" ? "starting" : "ending"} at offset "${n}" is out-of-bounds (size: ${r}).`, { name: "SliceOffsetOutOfBoundsError" }); } } let $p = class extends F { constructor({ size: n, targetSize: t, type: r }) { super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${n}) exceeds padding size (${t}).`, { name: "Siz