From ef63ea067e1d9fcc703e8eb16d877da14a9a7d3b Mon Sep 17 00:00:00 2001 From: Juan Di Toro Date: Sun, 8 Oct 2023 17:07:19 +0200 Subject: [PATCH] chore: add dist/ so it can be imported with git --- .gitignore | 2 +- dist/lib.es.js | 4166 +++++++++++++++++ dist/lib.es.js.map | 1 + dist/lib.umd.js | 36 + dist/lib.umd.js.map | 1 + dist/manifest.json | 11 + dist/package.json | 1 + dist/src/components/SwitchableComponent.d.ts | 19 + .../lume/LumeDashboard/LumeDashboard.d.ts | 2 + .../lume/LumeIdentity/LumeIdentity.d.ts | 1 + .../LumeIdentity/LumeIdentityContext.d.ts | 11 + .../lume/LumeIdentity/components.d.ts | 18 + dist/src/components/lume/LumeProvider.d.ts | 21 + dist/src/components/ui/button.d.ts | 11 + dist/src/components/ui/input.d.ts | 5 + dist/src/components/utils.d.ts | 2 + dist/src/main.d.ts | 3 + dist/style.css | 1 + 18 files changed, 4311 insertions(+), 1 deletion(-) create mode 100644 dist/lib.es.js create mode 100644 dist/lib.es.js.map create mode 100644 dist/lib.umd.js create mode 100644 dist/lib.umd.js.map create mode 100644 dist/manifest.json create mode 100644 dist/package.json create mode 100644 dist/src/components/SwitchableComponent.d.ts create mode 100644 dist/src/components/lume/LumeDashboard/LumeDashboard.d.ts create mode 100644 dist/src/components/lume/LumeIdentity/LumeIdentity.d.ts create mode 100644 dist/src/components/lume/LumeIdentity/LumeIdentityContext.d.ts create mode 100644 dist/src/components/lume/LumeIdentity/components.d.ts create mode 100644 dist/src/components/lume/LumeProvider.d.ts create mode 100644 dist/src/components/ui/button.d.ts create mode 100644 dist/src/components/ui/input.d.ts create mode 100644 dist/src/components/utils.d.ts create mode 100644 dist/src/main.d.ts create mode 100644 dist/style.css diff --git a/.gitignore b/.gitignore index a547bf3..cf7ff2f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist +# dist dist-ssr *.local diff --git a/dist/lib.es.js b/dist/lib.es.js new file mode 100644 index 0000000..9b9aeb4 --- /dev/null +++ b/dist/lib.es.js @@ -0,0 +1,4166 @@ +import * as V from "react"; +import N, { useContext as F, forwardRef as ve, Children as me, isValidElement as Te, createElement as Y, cloneElement as lt, Fragment as Zr, createContext as be, useLayoutEffect as Kr, useEffect as ct, useRef as H, useInsertionEffect as Ht, useCallback as et, useMemo as he, useState as Xr, useId as Yt } from "react"; +var tt = { exports: {} }, Ee = {}; +/** + * @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 _t; +function qr() { + if (_t) + return Ee; + _t = 1; + var e = N, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 }; + function s(l, p, f) { + var d, c = {}, g = null, b = null; + f !== void 0 && (g = "" + f), p.key !== void 0 && (g = "" + p.key), p.ref !== void 0 && (b = p.ref); + for (d in p) + n.call(p, d) && !a.hasOwnProperty(d) && (c[d] = p[d]); + if (l && l.defaultProps) + for (d in p = l.defaultProps, p) + c[d] === void 0 && (c[d] = p[d]); + return { $$typeof: t, type: l, key: g, ref: b, props: c, _owner: i.current }; + } + return Ee.Fragment = r, Ee.jsx = s, Ee.jsxs = s, Ee; +} +var Re = {}; +/** + * @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 Ot; +function Jr() { + return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && function() { + var e = N, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), C = Symbol.iterator, E = "@@iterator"; + function A(o) { + if (o === null || typeof o != "object") + return null; + var u = C && o[C] || o[E]; + return typeof u == "function" ? u : null; + } + var O = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + function h(o) { + { + for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), v = 1; v < u; v++) + m[v - 1] = arguments[v]; + M("error", o, m); + } + } + function M(o, u, m) { + { + var v = O.ReactDebugCurrentFrame, R = v.getStackAddendum(); + R !== "" && (u += "%s", m = m.concat([R])); + var T = m.map(function(S) { + return String(S); + }); + T.unshift("Warning: " + u), Function.prototype.apply.call(console[o], console, T); + } + } + var D = !1, se = !1, U = !1, le = !1, ce = !1, K; + K = Symbol.for("react.module.reference"); + function ye(o) { + return !!(typeof o == "string" || typeof o == "function" || o === n || o === a || ce || o === i || o === f || o === d || le || o === b || D || se || U || typeof o == "object" && o !== null && (o.$$typeof === g || o.$$typeof === c || o.$$typeof === s || o.$$typeof === l || o.$$typeof === p || // 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. + o.$$typeof === K || o.getModuleId !== void 0)); + } + function xe(o, u, m) { + var v = o.displayName; + if (v) + return v; + var R = u.displayName || u.name || ""; + return R !== "" ? m + "(" + R + ")" : m; + } + function k(o) { + return o.displayName || "Context"; + } + function z(o) { + if (o == null) + return null; + if (typeof o.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function") + return o.displayName || o.name || null; + if (typeof o == "string") + return o; + switch (o) { + case n: + return "Fragment"; + case r: + return "Portal"; + case a: + return "Profiler"; + case i: + return "StrictMode"; + case f: + return "Suspense"; + case d: + return "SuspenseList"; + } + if (typeof o == "object") + switch (o.$$typeof) { + case l: + var u = o; + return k(u) + ".Consumer"; + case s: + var m = o; + return k(m._context) + ".Provider"; + case p: + return xe(o, o.render, "ForwardRef"); + case c: + var v = o.displayName || null; + return v !== null ? v : z(o.type) || "Memo"; + case g: { + var R = o, T = R._payload, S = R._init; + try { + return z(S(T)); + } catch { + return null; + } + } + } + return null; + } + var W = Object.assign, X = 0, ee, we, ue, q, Ce, J, te; + function L() { + } + L.__reactDisabledLog = !0; + function Sr() { + { + if (X === 0) { + ee = console.log, we = console.info, ue = console.warn, q = console.error, Ce = console.group, J = console.groupCollapsed, te = console.groupEnd; + var o = { + configurable: !0, + enumerable: !0, + value: L, + writable: !0 + }; + Object.defineProperties(console, { + info: o, + log: o, + warn: o, + error: o, + group: o, + groupCollapsed: o, + groupEnd: o + }); + } + X++; + } + } + function Er() { + { + if (X--, X === 0) { + var o = { + configurable: !0, + enumerable: !0, + writable: !0 + }; + Object.defineProperties(console, { + log: W({}, o, { + value: ee + }), + info: W({}, o, { + value: we + }), + warn: W({}, o, { + value: ue + }), + error: W({}, o, { + value: q + }), + group: W({}, o, { + value: Ce + }), + groupCollapsed: W({}, o, { + value: J + }), + groupEnd: W({}, o, { + value: te + }) + }); + } + X < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + var Ge = O.ReactCurrentDispatcher, De; + function Me(o, u, m) { + { + if (De === void 0) + try { + throw Error(); + } catch (R) { + var v = R.stack.trim().match(/\n( *(at )?)/); + De = v && v[1] || ""; + } + return ` +` + De + o; + } + } + var Be = !1, je; + { + var Rr = typeof WeakMap == "function" ? WeakMap : Map; + je = new Rr(); + } + function bt(o, u) { + if (!o || Be) + return ""; + { + var m = je.get(o); + if (m !== void 0) + return m; + } + var v; + Be = !0; + var R = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var T; + T = Ge.current, Ge.current = null, Sr(); + try { + if (u) { + var S = function() { + throw Error(); + }; + if (Object.defineProperty(S.prototype, "props", { + set: function() { + throw Error(); + } + }), typeof Reflect == "object" && Reflect.construct) { + try { + Reflect.construct(S, []); + } catch (Z) { + v = Z; + } + Reflect.construct(o, [], S); + } else { + try { + S.call(); + } catch (Z) { + v = Z; + } + o.call(S.prototype); + } + } else { + try { + throw Error(); + } catch (Z) { + v = Z; + } + o(); + } + } catch (Z) { + if (Z && v && typeof Z.stack == "string") { + for (var x = Z.stack.split(` +`), $ = v.stack.split(` +`), _ = x.length - 1, I = $.length - 1; _ >= 1 && I >= 0 && x[_] !== $[I]; ) + I--; + for (; _ >= 1 && I >= 0; _--, I--) + if (x[_] !== $[I]) { + if (_ !== 1 || I !== 1) + do + if (_--, I--, I < 0 || x[_] !== $[I]) { + var G = ` +` + x[_].replace(" at new ", " at "); + return o.displayName && G.includes("") && (G = G.replace("", o.displayName)), typeof o == "function" && je.set(o, G), G; + } + while (_ >= 1 && I >= 0); + break; + } + } + } finally { + Be = !1, Ge.current = T, Er(), Error.prepareStackTrace = R; + } + var fe = o ? o.displayName || o.name : "", At = fe ? Me(fe) : ""; + return typeof o == "function" && je.set(o, At), At; + } + function Pr(o, u, m) { + return bt(o, !1); + } + function kr(o) { + var u = o.prototype; + return !!(u && u.isReactComponent); + } + function Ae(o, u, m) { + if (o == null) + return ""; + if (typeof o == "function") + return bt(o, kr(o)); + if (typeof o == "string") + return Me(o); + switch (o) { + case f: + return Me("Suspense"); + case d: + return Me("SuspenseList"); + } + if (typeof o == "object") + switch (o.$$typeof) { + case p: + return Pr(o.render); + case c: + return Ae(o.type, u, m); + case g: { + var v = o, R = v._payload, T = v._init; + try { + return Ae(T(R), u, m); + } catch { + } + } + } + return ""; + } + var _e = Object.prototype.hasOwnProperty, yt = {}, xt = O.ReactDebugCurrentFrame; + function Oe(o) { + if (o) { + var u = o._owner, m = Ae(o.type, o._source, u ? u.type : null); + xt.setExtraStackFrame(m); + } else + xt.setExtraStackFrame(null); + } + function Tr(o, u, m, v, R) { + { + var T = Function.call.bind(_e); + for (var S in o) + if (T(o, S)) { + var x = void 0; + try { + if (typeof o[S] != "function") { + var $ = Error((v || "React class") + ": " + m + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + throw $.name = "Invariant Violation", $; + } + x = o[S](u, S, v, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (_) { + x = _; + } + x && !(x instanceof Error) && (Oe(R), h("%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).", v || "React class", m, S, typeof x), Oe(null)), x instanceof Error && !(x.message in yt) && (yt[x.message] = !0, Oe(R), h("Failed %s type: %s", m, x.message), Oe(null)); + } + } + } + var Mr = Array.isArray; + function He(o) { + return Mr(o); + } + function jr(o) { + { + var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && o[Symbol.toStringTag] || o.constructor.name || "Object"; + return m; + } + } + function Ar(o) { + try { + return wt(o), !1; + } catch { + return !0; + } + } + function wt(o) { + return "" + o; + } + function Ct(o) { + if (Ar(o)) + return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jr(o)), wt(o); + } + var Se = O.ReactCurrentOwner, _r = { + key: !0, + ref: !0, + __self: !0, + __source: !0 + }, St, Et, Ye; + Ye = {}; + function Or(o) { + if (_e.call(o, "ref")) { + var u = Object.getOwnPropertyDescriptor(o, "ref").get; + if (u && u.isReactWarning) + return !1; + } + return o.ref !== void 0; + } + function Ir(o) { + if (_e.call(o, "key")) { + var u = Object.getOwnPropertyDescriptor(o, "key").get; + if (u && u.isReactWarning) + return !1; + } + return o.key !== void 0; + } + function Vr(o, u) { + if (typeof o.ref == "string" && Se.current && u && Se.current.stateNode !== u) { + var m = z(Se.current.type); + Ye[m] || (h('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', z(Se.current.type), o.ref), Ye[m] = !0); + } + } + function Lr(o, u) { + { + var m = function() { + St || (St = !0, h("%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)", u)); + }; + m.isReactWarning = !0, Object.defineProperty(o, "key", { + get: m, + configurable: !0 + }); + } + } + function $r(o, u) { + { + var m = function() { + Et || (Et = !0, h("%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)", u)); + }; + m.isReactWarning = !0, Object.defineProperty(o, "ref", { + get: m, + configurable: !0 + }); + } + } + var Nr = function(o, u, m, v, R, T, S) { + var x = { + // This tag allows us to uniquely identify this as a React Element + $$typeof: t, + // Built-in properties that belong on the element + type: o, + key: u, + ref: m, + props: S, + // Record the component responsible for creating this element. + _owner: T + }; + return x._store = {}, Object.defineProperty(x._store, "validated", { + configurable: !1, + enumerable: !1, + writable: !0, + value: !1 + }), Object.defineProperty(x, "_self", { + configurable: !1, + enumerable: !1, + writable: !1, + value: v + }), Object.defineProperty(x, "_source", { + configurable: !1, + enumerable: !1, + writable: !1, + value: R + }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x; + }; + function Fr(o, u, m, v, R) { + { + var T, S = {}, x = null, $ = null; + m !== void 0 && (Ct(m), x = "" + m), Ir(u) && (Ct(u.key), x = "" + u.key), Or(u) && ($ = u.ref, Vr(u, R)); + for (T in u) + _e.call(u, T) && !_r.hasOwnProperty(T) && (S[T] = u[T]); + if (o && o.defaultProps) { + var _ = o.defaultProps; + for (T in _) + S[T] === void 0 && (S[T] = _[T]); + } + if (x || $) { + var I = typeof o == "function" ? o.displayName || o.name || "Unknown" : o; + x && Lr(S, I), $ && $r(S, I); + } + return Nr(o, x, $, R, v, Se.current, S); + } + } + var Ue = O.ReactCurrentOwner, Rt = O.ReactDebugCurrentFrame; + function de(o) { + if (o) { + var u = o._owner, m = Ae(o.type, o._source, u ? u.type : null); + Rt.setExtraStackFrame(m); + } else + Rt.setExtraStackFrame(null); + } + var Ze; + Ze = !1; + function Ke(o) { + return typeof o == "object" && o !== null && o.$$typeof === t; + } + function Pt() { + { + if (Ue.current) { + var o = z(Ue.current.type); + if (o) + return ` + +Check the render method of \`` + o + "`."; + } + return ""; + } + } + function zr(o) { + { + if (o !== void 0) { + var u = o.fileName.replace(/^.*[\\\/]/, ""), m = o.lineNumber; + return ` + +Check your code at ` + u + ":" + m + "."; + } + return ""; + } + } + var kt = {}; + function Wr(o) { + { + var u = Pt(); + if (!u) { + var m = typeof o == "string" ? o : o.displayName || o.name; + m && (u = ` + +Check the top-level render call using <` + m + ">."); + } + return u; + } + } + function Tt(o, u) { + { + if (!o._store || o._store.validated || o.key != null) + return; + o._store.validated = !0; + var m = Wr(u); + if (kt[m]) + return; + kt[m] = !0; + var v = ""; + o && o._owner && o._owner !== Ue.current && (v = " It was passed a child from " + z(o._owner.type) + "."), de(o), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, v), de(null); + } + } + function Mt(o, u) { + { + if (typeof o != "object") + return; + if (He(o)) + for (var m = 0; m < o.length; m++) { + var v = o[m]; + Ke(v) && Tt(v, u); + } + else if (Ke(o)) + o._store && (o._store.validated = !0); + else if (o) { + var R = A(o); + if (typeof R == "function" && R !== o.entries) + for (var T = R.call(o), S; !(S = T.next()).done; ) + Ke(S.value) && Tt(S.value, u); + } + } + } + function Gr(o) { + { + var u = o.type; + if (u == null || typeof u == "string") + return; + var m; + if (typeof u == "function") + m = u.propTypes; + else if (typeof u == "object" && (u.$$typeof === p || // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. + u.$$typeof === c)) + m = u.propTypes; + else + return; + if (m) { + var v = z(u); + Tr(m, o.props, "prop", v, o); + } else if (u.PropTypes !== void 0 && !Ze) { + Ze = !0; + var R = z(u); + h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown"); + } + typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); + } + } + function Dr(o) { + { + for (var u = Object.keys(o.props), m = 0; m < u.length; m++) { + var v = u[m]; + if (v !== "children" && v !== "key") { + de(o), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), de(null); + break; + } + } + o.ref !== null && (de(o), h("Invalid attribute `ref` supplied to `React.Fragment`."), de(null)); + } + } + function jt(o, u, m, v, R, T) { + { + var S = ye(o); + if (!S) { + var x = ""; + (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (x += " 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 $ = zr(R); + $ ? x += $ : x += Pt(); + var _; + o === null ? _ = "null" : He(o) ? _ = "array" : o !== void 0 && o.$$typeof === t ? (_ = "<" + (z(o.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof o, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, x); + } + var I = Fr(o, u, m, R, T); + if (I == null) + return I; + if (S) { + var G = u.children; + if (G !== void 0) + if (v) + if (He(G)) { + for (var fe = 0; fe < G.length; fe++) + Mt(G[fe], o); + Object.freeze && Object.freeze(G); + } else + h("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 + Mt(G, o); + } + return o === n ? Dr(I) : Gr(I), I; + } + } + function Br(o, u, m) { + return jt(o, u, m, !0); + } + function Hr(o, u, m) { + return jt(o, u, m, !1); + } + var Yr = Hr, Ur = Br; + Re.Fragment = n, Re.jsx = Yr, Re.jsxs = Ur; + }()), Re; +} +process.env.NODE_ENV === "production" ? tt.exports = qr() : tt.exports = Jr(); +var P = tt.exports; +const Qr = N.createContext(void 0); +function ii() { + const e = F(Qr); + if (!e) + throw new Error("useLume must be used within a LumeProvider"); + const { lume: t } = e; + return t; +} +function $e() { + return $e = Object.assign ? Object.assign.bind() : function(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t]; + for (var n in r) + Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); + } + return e; + }, $e.apply(this, arguments); +} +function en(e, t) { + typeof e == "function" ? e(t) : e != null && (e.current = t); +} +function tn(...e) { + return (t) => e.forEach( + (r) => en(r, t) + ); +} +const Ut = /* @__PURE__ */ ve((e, t) => { + const { children: r, ...n } = e, i = me.toArray(r), a = i.find(nn); + if (a) { + const s = a.props.children, l = i.map((p) => p === a ? me.count(s) > 1 ? me.only(null) : /* @__PURE__ */ Te(s) ? s.props.children : null : p); + return /* @__PURE__ */ Y(rt, $e({}, n, { + ref: t + }), /* @__PURE__ */ Te(s) ? /* @__PURE__ */ lt(s, void 0, l) : null); + } + return /* @__PURE__ */ Y(rt, $e({}, n, { + ref: t + }), r); +}); +Ut.displayName = "Slot"; +const rt = /* @__PURE__ */ ve((e, t) => { + const { children: r, ...n } = e; + return /* @__PURE__ */ Te(r) ? /* @__PURE__ */ lt(r, { + ...on(n, r.props), + ref: t ? tn(t, r.ref) : r.ref + }) : me.count(r) > 1 ? me.only(null) : null; +}); +rt.displayName = "SlotClone"; +const rn = ({ children: e }) => /* @__PURE__ */ Y(Zr, null, e); +function nn(e) { + return /* @__PURE__ */ Te(e) && e.type === rn; +} +function on(e, t) { + const r = { + ...t + }; + for (const n in t) { + const i = e[n], a = t[n]; + /^on[A-Z]/.test(n) ? i && a ? r[n] = (...l) => { + a(...l), i(...l); + } : i && (r[n] = i) : n === "style" ? r[n] = { + ...i, + ...a + } : n === "className" && (r[n] = [ + i, + a + ].filter(Boolean).join(" ")); + } + return { + ...e, + ...r + }; +} +function Zt(e) { + var t, r, n = ""; + if (typeof e == "string" || typeof e == "number") + n += e; + else if (typeof e == "object") + if (Array.isArray(e)) + for (t = 0; t < e.length; t++) + e[t] && (r = Zt(e[t])) && (n && (n += " "), n += r); + else + for (t in e) + e[t] && (n && (n += " "), n += t); + return n; +} +function Kt() { + for (var e, t, r = 0, n = ""; r < arguments.length; ) + (e = arguments[r++]) && (t = Zt(e)) && (n && (n += " "), n += t); + return n; +} +const It = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Vt = Kt, an = (e, t) => (r) => { + var n; + if ((t == null ? void 0 : t.variants) == null) + return Vt(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className); + const { variants: i, defaultVariants: a } = t, s = Object.keys(i).map((f) => { + const d = r == null ? void 0 : r[f], c = a == null ? void 0 : a[f]; + if (d === null) + return null; + const g = It(d) || It(c); + return i[f][g]; + }), l = r && Object.entries(r).reduce((f, d) => { + let [c, g] = d; + return g === void 0 || (f[c] = g), f; + }, {}), p = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((f, d) => { + let { class: c, className: g, ...b } = d; + return Object.entries(b).every((C) => { + let [E, A] = C; + return Array.isArray(A) ? A.includes({ + ...a, + ...l + }[E]) : { + ...a, + ...l + }[E] === A; + }) ? [ + ...f, + c, + g + ] : f; + }, []); + return Vt(e, s, p, r == null ? void 0 : r.class, r == null ? void 0 : r.className); +}; +function sn() { + for (var e = 0, t, r, n = ""; e < arguments.length; ) + (t = arguments[e++]) && (r = Xt(t)) && (n && (n += " "), n += r); + return n; +} +function Xt(e) { + if (typeof e == "string") + return e; + for (var t, r = "", n = 0; n < e.length; n++) + e[n] && (t = Xt(e[n])) && (r && (r += " "), r += t); + return r; +} +var ut = "-"; +function ln(e) { + var t = un(e), r = e.conflictingClassGroups, n = e.conflictingClassGroupModifiers, i = n === void 0 ? {} : n; + function a(l) { + var p = l.split(ut); + return p[0] === "" && p.length !== 1 && p.shift(), qt(p, t) || cn(l); + } + function s(l, p) { + var f = r[l] || []; + return p && i[l] ? [].concat(f, i[l]) : f; + } + return { + getClassGroupId: a, + getConflictingClassGroupIds: s + }; +} +function qt(e, t) { + var s; + if (e.length === 0) + return t.classGroupId; + var r = e[0], n = t.nextPart.get(r), i = n ? qt(e.slice(1), n) : void 0; + if (i) + return i; + if (t.validators.length !== 0) { + var a = e.join(ut); + return (s = t.validators.find(function(l) { + var p = l.validator; + return p(a); + })) == null ? void 0 : s.classGroupId; + } +} +var Lt = /^\[(.+)\]$/; +function cn(e) { + if (Lt.test(e)) { + var t = Lt.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":")); + if (r) + return "arbitrary.." + r; + } +} +function un(e) { + var t = e.theme, r = e.prefix, n = { + nextPart: /* @__PURE__ */ new Map(), + validators: [] + }, i = fn(Object.entries(e.classGroups), r); + return i.forEach(function(a) { + var s = a[0], l = a[1]; + nt(l, n, s, t); + }), n; +} +function nt(e, t, r, n) { + e.forEach(function(i) { + if (typeof i == "string") { + var a = i === "" ? t : $t(t, i); + a.classGroupId = r; + return; + } + if (typeof i == "function") { + if (dn(i)) { + nt(i(n), t, r, n); + return; + } + t.validators.push({ + validator: i, + classGroupId: r + }); + return; + } + Object.entries(i).forEach(function(s) { + var l = s[0], p = s[1]; + nt(p, $t(t, l), r, n); + }); + }); +} +function $t(e, t) { + var r = e; + return t.split(ut).forEach(function(n) { + r.nextPart.has(n) || r.nextPart.set(n, { + nextPart: /* @__PURE__ */ new Map(), + validators: [] + }), r = r.nextPart.get(n); + }), r; +} +function dn(e) { + return e.isThemeGetter; +} +function fn(e, t) { + return t ? e.map(function(r) { + var n = r[0], i = r[1], a = i.map(function(s) { + return typeof s == "string" ? t + s : typeof s == "object" ? Object.fromEntries(Object.entries(s).map(function(l) { + var p = l[0], f = l[1]; + return [t + p, f]; + })) : s; + }); + return [n, a]; + }) : e; +} +function pn(e) { + if (e < 1) + return { + get: function() { + }, + set: function() { + } + }; + var t = 0, r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(); + function i(a, s) { + r.set(a, s), t++, t > e && (t = 0, n = r, r = /* @__PURE__ */ new Map()); + } + return { + get: function(s) { + var l = r.get(s); + if (l !== void 0) + return l; + if ((l = n.get(s)) !== void 0) + return i(s, l), l; + }, + set: function(s, l) { + r.has(s) ? r.set(s, l) : i(s, l); + } + }; +} +var Jt = "!"; +function mn(e) { + var t = e.separator || ":", r = t.length === 1, n = t[0], i = t.length; + return function(s) { + for (var l = [], p = 0, f = 0, d, c = 0; c < s.length; c++) { + var g = s[c]; + if (p === 0) { + if (g === n && (r || s.slice(c, c + i) === t)) { + l.push(s.slice(f, c)), f = c + i; + continue; + } + if (g === "/") { + d = c; + continue; + } + } + g === "[" ? p++ : g === "]" && p--; + } + var b = l.length === 0 ? s : s.substring(f), C = b.startsWith(Jt), E = C ? b.substring(1) : b, A = d && d > f ? d - f : void 0; + return { + modifiers: l, + hasImportantModifier: C, + baseClassName: E, + maybePostfixModifierPosition: A + }; + }; +} +function gn(e) { + if (e.length <= 1) + return e; + var t = [], r = []; + return e.forEach(function(n) { + var i = n[0] === "["; + i ? (t.push.apply(t, r.sort().concat([n])), r = []) : r.push(n); + }), t.push.apply(t, r.sort()), t; +} +function hn(e) { + return { + cache: pn(e.cacheSize), + splitModifiers: mn(e), + ...ln(e) + }; +} +var vn = /\s+/; +function bn(e, t) { + var r = t.splitModifiers, n = t.getClassGroupId, i = t.getConflictingClassGroupIds, a = /* @__PURE__ */ new Set(); + return e.trim().split(vn).map(function(s) { + var l = r(s), p = l.modifiers, f = l.hasImportantModifier, d = l.baseClassName, c = l.maybePostfixModifierPosition, g = n(c ? d.substring(0, c) : d), b = !!c; + if (!g) { + if (!c) + return { + isTailwindClass: !1, + originalClassName: s + }; + if (g = n(d), !g) + return { + isTailwindClass: !1, + originalClassName: s + }; + b = !1; + } + var C = gn(p).join(":"), E = f ? C + Jt : C; + return { + isTailwindClass: !0, + modifierId: E, + classGroupId: g, + originalClassName: s, + hasPostfixModifier: b + }; + }).reverse().filter(function(s) { + if (!s.isTailwindClass) + return !0; + var l = s.modifierId, p = s.classGroupId, f = s.hasPostfixModifier, d = l + p; + return a.has(d) ? !1 : (a.add(d), i(p, f).forEach(function(c) { + return a.add(l + c); + }), !0); + }).reverse().map(function(s) { + return s.originalClassName; + }).join(" "); +} +function yn() { + for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) + t[r] = arguments[r]; + var n, i, a, s = l; + function l(f) { + var d = t[0], c = t.slice(1), g = c.reduce(function(b, C) { + return C(b); + }, d()); + return n = hn(g), i = n.cache.get, a = n.cache.set, s = p, p(f); + } + function p(f) { + var d = i(f); + if (d) + return d; + var c = bn(f, n); + return a(f, c), c; + } + return function() { + return s(sn.apply(null, arguments)); + }; +} +function j(e) { + var t = function(n) { + return n[e] || []; + }; + return t.isThemeGetter = !0, t; +} +var Qt = /^\[(?:([a-z-]+):)?(.+)\]$/i, xn = /^\d+\/\d+$/, wn = /* @__PURE__ */ new Set(["px", "full", "screen"]), Cn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Sn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, En = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/; +function B(e) { + return ne(e) || wn.has(e) || xn.test(e) || ot(e); +} +function ot(e) { + return ae(e, "length", jn); +} +function Rn(e) { + return ae(e, "size", er); +} +function Pn(e) { + return ae(e, "position", er); +} +function kn(e) { + return ae(e, "url", An); +} +function Ie(e) { + return ae(e, "number", ne); +} +function ne(e) { + return !Number.isNaN(Number(e)); +} +function Tn(e) { + return e.endsWith("%") && ne(e.slice(0, -1)); +} +function Pe(e) { + return Nt(e) || ae(e, "number", Nt); +} +function w(e) { + return Qt.test(e); +} +function ke() { + return !0; +} +function Q(e) { + return Cn.test(e); +} +function Mn(e) { + return ae(e, "", _n); +} +function ae(e, t, r) { + var n = Qt.exec(e); + return n ? n[1] ? n[1] === t : r(n[2]) : !1; +} +function jn(e) { + return Sn.test(e); +} +function er() { + return !1; +} +function An(e) { + return e.startsWith("url("); +} +function Nt(e) { + return Number.isInteger(Number(e)); +} +function _n(e) { + return En.test(e); +} +function On() { + var e = j("colors"), t = j("spacing"), r = j("blur"), n = j("brightness"), i = j("borderColor"), a = j("borderRadius"), s = j("borderSpacing"), l = j("borderWidth"), p = j("contrast"), f = j("grayscale"), d = j("hueRotate"), c = j("invert"), g = j("gap"), b = j("gradientColorStops"), C = j("gradientColorStopPositions"), E = j("inset"), A = j("margin"), O = j("opacity"), h = j("padding"), M = j("saturate"), D = j("scale"), se = j("sepia"), U = j("skew"), le = j("space"), ce = j("translate"), K = function() { + return ["auto", "contain", "none"]; + }, ye = function() { + return ["auto", "hidden", "clip", "visible", "scroll"]; + }, xe = function() { + return ["auto", w, t]; + }, k = function() { + return [w, t]; + }, z = function() { + return ["", B]; + }, W = function() { + return ["auto", ne, w]; + }, X = function() { + return ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"]; + }, ee = function() { + return ["solid", "dashed", "dotted", "double", "none"]; + }, we = function() { + return ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"]; + }, ue = function() { + return ["start", "end", "center", "between", "around", "evenly", "stretch"]; + }, q = function() { + return ["", "0", w]; + }, Ce = function() { + return ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"]; + }, J = function() { + return [ne, Ie]; + }, te = function() { + return [ne, w]; + }; + return { + cacheSize: 500, + theme: { + colors: [ke], + spacing: [B], + blur: ["none", "", Q, w], + brightness: J(), + borderColor: [e], + borderRadius: ["none", "", "full", Q, w], + borderSpacing: k(), + borderWidth: z(), + contrast: J(), + grayscale: q(), + hueRotate: te(), + invert: q(), + gap: k(), + gradientColorStops: [e], + gradientColorStopPositions: [Tn, ot], + inset: xe(), + margin: xe(), + opacity: J(), + padding: k(), + saturate: J(), + scale: J(), + sepia: q(), + skew: te(), + space: k(), + translate: k() + }, + classGroups: { + // Layout + /** + * Aspect Ratio + * @see https://tailwindcss.com/docs/aspect-ratio + */ + aspect: [{ + aspect: ["auto", "square", "video", w] + }], + /** + * Container + * @see https://tailwindcss.com/docs/container + */ + container: ["container"], + /** + * Columns + * @see https://tailwindcss.com/docs/columns + */ + columns: [{ + columns: [Q] + }], + /** + * Break After + * @see https://tailwindcss.com/docs/break-after + */ + "break-after": [{ + "break-after": Ce() + }], + /** + * Break Before + * @see https://tailwindcss.com/docs/break-before + */ + "break-before": [{ + "break-before": Ce() + }], + /** + * Break Inside + * @see https://tailwindcss.com/docs/break-inside + */ + "break-inside": [{ + "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] + }], + /** + * Box Decoration Break + * @see https://tailwindcss.com/docs/box-decoration-break + */ + "box-decoration": [{ + "box-decoration": ["slice", "clone"] + }], + /** + * Box Sizing + * @see https://tailwindcss.com/docs/box-sizing + */ + box: [{ + box: ["border", "content"] + }], + /** + * Display + * @see https://tailwindcss.com/docs/display + */ + display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"], + /** + * Floats + * @see https://tailwindcss.com/docs/float + */ + float: [{ + float: ["right", "left", "none"] + }], + /** + * Clear + * @see https://tailwindcss.com/docs/clear + */ + clear: [{ + clear: ["left", "right", "both", "none"] + }], + /** + * Isolation + * @see https://tailwindcss.com/docs/isolation + */ + isolation: ["isolate", "isolation-auto"], + /** + * Object Fit + * @see https://tailwindcss.com/docs/object-fit + */ + "object-fit": [{ + object: ["contain", "cover", "fill", "none", "scale-down"] + }], + /** + * Object Position + * @see https://tailwindcss.com/docs/object-position + */ + "object-position": [{ + object: [].concat(X(), [w]) + }], + /** + * Overflow + * @see https://tailwindcss.com/docs/overflow + */ + overflow: [{ + overflow: ye() + }], + /** + * Overflow X + * @see https://tailwindcss.com/docs/overflow + */ + "overflow-x": [{ + "overflow-x": ye() + }], + /** + * Overflow Y + * @see https://tailwindcss.com/docs/overflow + */ + "overflow-y": [{ + "overflow-y": ye() + }], + /** + * Overscroll Behavior + * @see https://tailwindcss.com/docs/overscroll-behavior + */ + overscroll: [{ + overscroll: K() + }], + /** + * Overscroll Behavior X + * @see https://tailwindcss.com/docs/overscroll-behavior + */ + "overscroll-x": [{ + "overscroll-x": K() + }], + /** + * Overscroll Behavior Y + * @see https://tailwindcss.com/docs/overscroll-behavior + */ + "overscroll-y": [{ + "overscroll-y": K() + }], + /** + * Position + * @see https://tailwindcss.com/docs/position + */ + position: ["static", "fixed", "absolute", "relative", "sticky"], + /** + * Top / Right / Bottom / Left + * @see https://tailwindcss.com/docs/top-right-bottom-left + */ + inset: [{ + inset: [E] + }], + /** + * Right / Left + * @see https://tailwindcss.com/docs/top-right-bottom-left + */ + "inset-x": [{ + "inset-x": [E] + }], + /** + * Top / Bottom + * @see https://tailwindcss.com/docs/top-right-bottom-left + */ + "inset-y": [{ + "inset-y": [E] + }], + /** + * Start + * @see https://tailwindcss.com/docs/top-right-bottom-left + */ + start: [{ + start: [E] + }], + /** + * End + * @see https://tailwindcss.com/docs/top-right-bottom-left + */ + end: [{ + end: [E] + }], + /** + * Top + * @see https://tailwindcss.com/docs/top-right-bottom-left + */ + top: [{ + top: [E] + }], + /** + * Right + * @see https://tailwindcss.com/docs/top-right-bottom-left + */ + right: [{ + right: [E] + }], + /** + * Bottom + * @see https://tailwindcss.com/docs/top-right-bottom-left + */ + bottom: [{ + bottom: [E] + }], + /** + * Left + * @see https://tailwindcss.com/docs/top-right-bottom-left + */ + left: [{ + left: [E] + }], + /** + * Visibility + * @see https://tailwindcss.com/docs/visibility + */ + visibility: ["visible", "invisible", "collapse"], + /** + * Z-Index + * @see https://tailwindcss.com/docs/z-index + */ + z: [{ + z: ["auto", Pe] + }], + // Flexbox and Grid + /** + * Flex Basis + * @see https://tailwindcss.com/docs/flex-basis + */ + basis: [{ + basis: xe() + }], + /** + * Flex Direction + * @see https://tailwindcss.com/docs/flex-direction + */ + "flex-direction": [{ + flex: ["row", "row-reverse", "col", "col-reverse"] + }], + /** + * Flex Wrap + * @see https://tailwindcss.com/docs/flex-wrap + */ + "flex-wrap": [{ + flex: ["wrap", "wrap-reverse", "nowrap"] + }], + /** + * Flex + * @see https://tailwindcss.com/docs/flex + */ + flex: [{ + flex: ["1", "auto", "initial", "none", w] + }], + /** + * Flex Grow + * @see https://tailwindcss.com/docs/flex-grow + */ + grow: [{ + grow: q() + }], + /** + * Flex Shrink + * @see https://tailwindcss.com/docs/flex-shrink + */ + shrink: [{ + shrink: q() + }], + /** + * Order + * @see https://tailwindcss.com/docs/order + */ + order: [{ + order: ["first", "last", "none", Pe] + }], + /** + * Grid Template Columns + * @see https://tailwindcss.com/docs/grid-template-columns + */ + "grid-cols": [{ + "grid-cols": [ke] + }], + /** + * Grid Column Start / End + * @see https://tailwindcss.com/docs/grid-column + */ + "col-start-end": [{ + col: ["auto", { + span: ["full", Pe] + }, w] + }], + /** + * Grid Column Start + * @see https://tailwindcss.com/docs/grid-column + */ + "col-start": [{ + "col-start": W() + }], + /** + * Grid Column End + * @see https://tailwindcss.com/docs/grid-column + */ + "col-end": [{ + "col-end": W() + }], + /** + * Grid Template Rows + * @see https://tailwindcss.com/docs/grid-template-rows + */ + "grid-rows": [{ + "grid-rows": [ke] + }], + /** + * Grid Row Start / End + * @see https://tailwindcss.com/docs/grid-row + */ + "row-start-end": [{ + row: ["auto", { + span: [Pe] + }, w] + }], + /** + * Grid Row Start + * @see https://tailwindcss.com/docs/grid-row + */ + "row-start": [{ + "row-start": W() + }], + /** + * Grid Row End + * @see https://tailwindcss.com/docs/grid-row + */ + "row-end": [{ + "row-end": W() + }], + /** + * Grid Auto Flow + * @see https://tailwindcss.com/docs/grid-auto-flow + */ + "grid-flow": [{ + "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] + }], + /** + * Grid Auto Columns + * @see https://tailwindcss.com/docs/grid-auto-columns + */ + "auto-cols": [{ + "auto-cols": ["auto", "min", "max", "fr", w] + }], + /** + * Grid Auto Rows + * @see https://tailwindcss.com/docs/grid-auto-rows + */ + "auto-rows": [{ + "auto-rows": ["auto", "min", "max", "fr", w] + }], + /** + * Gap + * @see https://tailwindcss.com/docs/gap + */ + gap: [{ + gap: [g] + }], + /** + * Gap X + * @see https://tailwindcss.com/docs/gap + */ + "gap-x": [{ + "gap-x": [g] + }], + /** + * Gap Y + * @see https://tailwindcss.com/docs/gap + */ + "gap-y": [{ + "gap-y": [g] + }], + /** + * Justify Content + * @see https://tailwindcss.com/docs/justify-content + */ + "justify-content": [{ + justify: ["normal"].concat(ue()) + }], + /** + * Justify Items + * @see https://tailwindcss.com/docs/justify-items + */ + "justify-items": [{ + "justify-items": ["start", "end", "center", "stretch"] + }], + /** + * Justify Self + * @see https://tailwindcss.com/docs/justify-self + */ + "justify-self": [{ + "justify-self": ["auto", "start", "end", "center", "stretch"] + }], + /** + * Align Content + * @see https://tailwindcss.com/docs/align-content + */ + "align-content": [{ + content: ["normal"].concat(ue(), ["baseline"]) + }], + /** + * Align Items + * @see https://tailwindcss.com/docs/align-items + */ + "align-items": [{ + items: ["start", "end", "center", "baseline", "stretch"] + }], + /** + * Align Self + * @see https://tailwindcss.com/docs/align-self + */ + "align-self": [{ + self: ["auto", "start", "end", "center", "stretch", "baseline"] + }], + /** + * Place Content + * @see https://tailwindcss.com/docs/place-content + */ + "place-content": [{ + "place-content": [].concat(ue(), ["baseline"]) + }], + /** + * Place Items + * @see https://tailwindcss.com/docs/place-items + */ + "place-items": [{ + "place-items": ["start", "end", "center", "baseline", "stretch"] + }], + /** + * Place Self + * @see https://tailwindcss.com/docs/place-self + */ + "place-self": [{ + "place-self": ["auto", "start", "end", "center", "stretch"] + }], + // Spacing + /** + * Padding + * @see https://tailwindcss.com/docs/padding + */ + p: [{ + p: [h] + }], + /** + * Padding X + * @see https://tailwindcss.com/docs/padding + */ + px: [{ + px: [h] + }], + /** + * Padding Y + * @see https://tailwindcss.com/docs/padding + */ + py: [{ + py: [h] + }], + /** + * Padding Start + * @see https://tailwindcss.com/docs/padding + */ + ps: [{ + ps: [h] + }], + /** + * Padding End + * @see https://tailwindcss.com/docs/padding + */ + pe: [{ + pe: [h] + }], + /** + * Padding Top + * @see https://tailwindcss.com/docs/padding + */ + pt: [{ + pt: [h] + }], + /** + * Padding Right + * @see https://tailwindcss.com/docs/padding + */ + pr: [{ + pr: [h] + }], + /** + * Padding Bottom + * @see https://tailwindcss.com/docs/padding + */ + pb: [{ + pb: [h] + }], + /** + * Padding Left + * @see https://tailwindcss.com/docs/padding + */ + pl: [{ + pl: [h] + }], + /** + * Margin + * @see https://tailwindcss.com/docs/margin + */ + m: [{ + m: [A] + }], + /** + * Margin X + * @see https://tailwindcss.com/docs/margin + */ + mx: [{ + mx: [A] + }], + /** + * Margin Y + * @see https://tailwindcss.com/docs/margin + */ + my: [{ + my: [A] + }], + /** + * Margin Start + * @see https://tailwindcss.com/docs/margin + */ + ms: [{ + ms: [A] + }], + /** + * Margin End + * @see https://tailwindcss.com/docs/margin + */ + me: [{ + me: [A] + }], + /** + * Margin Top + * @see https://tailwindcss.com/docs/margin + */ + mt: [{ + mt: [A] + }], + /** + * Margin Right + * @see https://tailwindcss.com/docs/margin + */ + mr: [{ + mr: [A] + }], + /** + * Margin Bottom + * @see https://tailwindcss.com/docs/margin + */ + mb: [{ + mb: [A] + }], + /** + * Margin Left + * @see https://tailwindcss.com/docs/margin + */ + ml: [{ + ml: [A] + }], + /** + * Space Between X + * @see https://tailwindcss.com/docs/space + */ + "space-x": [{ + "space-x": [le] + }], + /** + * Space Between X Reverse + * @see https://tailwindcss.com/docs/space + */ + "space-x-reverse": ["space-x-reverse"], + /** + * Space Between Y + * @see https://tailwindcss.com/docs/space + */ + "space-y": [{ + "space-y": [le] + }], + /** + * Space Between Y Reverse + * @see https://tailwindcss.com/docs/space + */ + "space-y-reverse": ["space-y-reverse"], + // Sizing + /** + * Width + * @see https://tailwindcss.com/docs/width + */ + w: [{ + w: ["auto", "min", "max", "fit", w, t] + }], + /** + * Min-Width + * @see https://tailwindcss.com/docs/min-width + */ + "min-w": [{ + "min-w": ["min", "max", "fit", w, B] + }], + /** + * Max-Width + * @see https://tailwindcss.com/docs/max-width + */ + "max-w": [{ + "max-w": ["0", "none", "full", "min", "max", "fit", "prose", { + screen: [Q] + }, Q, w] + }], + /** + * Height + * @see https://tailwindcss.com/docs/height + */ + h: [{ + h: [w, t, "auto", "min", "max", "fit"] + }], + /** + * Min-Height + * @see https://tailwindcss.com/docs/min-height + */ + "min-h": [{ + "min-h": ["min", "max", "fit", w, B] + }], + /** + * Max-Height + * @see https://tailwindcss.com/docs/max-height + */ + "max-h": [{ + "max-h": [w, t, "min", "max", "fit"] + }], + // Typography + /** + * Font Size + * @see https://tailwindcss.com/docs/font-size + */ + "font-size": [{ + text: ["base", Q, ot] + }], + /** + * Font Smoothing + * @see https://tailwindcss.com/docs/font-smoothing + */ + "font-smoothing": ["antialiased", "subpixel-antialiased"], + /** + * Font Style + * @see https://tailwindcss.com/docs/font-style + */ + "font-style": ["italic", "not-italic"], + /** + * Font Weight + * @see https://tailwindcss.com/docs/font-weight + */ + "font-weight": [{ + font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Ie] + }], + /** + * Font Family + * @see https://tailwindcss.com/docs/font-family + */ + "font-family": [{ + font: [ke] + }], + /** + * Font Variant Numeric + * @see https://tailwindcss.com/docs/font-variant-numeric + */ + "fvn-normal": ["normal-nums"], + /** + * Font Variant Numeric + * @see https://tailwindcss.com/docs/font-variant-numeric + */ + "fvn-ordinal": ["ordinal"], + /** + * Font Variant Numeric + * @see https://tailwindcss.com/docs/font-variant-numeric + */ + "fvn-slashed-zero": ["slashed-zero"], + /** + * Font Variant Numeric + * @see https://tailwindcss.com/docs/font-variant-numeric + */ + "fvn-figure": ["lining-nums", "oldstyle-nums"], + /** + * Font Variant Numeric + * @see https://tailwindcss.com/docs/font-variant-numeric + */ + "fvn-spacing": ["proportional-nums", "tabular-nums"], + /** + * Font Variant Numeric + * @see https://tailwindcss.com/docs/font-variant-numeric + */ + "fvn-fraction": ["diagonal-fractions", "stacked-fractons"], + /** + * Letter Spacing + * @see https://tailwindcss.com/docs/letter-spacing + */ + tracking: [{ + tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", w] + }], + /** + * Line Clamp + * @see https://tailwindcss.com/docs/line-clamp + */ + "line-clamp": [{ + "line-clamp": ["none", ne, Ie] + }], + /** + * Line Height + * @see https://tailwindcss.com/docs/line-height + */ + leading: [{ + leading: ["none", "tight", "snug", "normal", "relaxed", "loose", w, B] + }], + /** + * List Style Image + * @see https://tailwindcss.com/docs/list-style-image + */ + "list-image": [{ + "list-image": ["none", w] + }], + /** + * List Style Type + * @see https://tailwindcss.com/docs/list-style-type + */ + "list-style-type": [{ + list: ["none", "disc", "decimal", w] + }], + /** + * List Style Position + * @see https://tailwindcss.com/docs/list-style-position + */ + "list-style-position": [{ + list: ["inside", "outside"] + }], + /** + * Placeholder Color + * @deprecated since Tailwind CSS v3.0.0 + * @see https://tailwindcss.com/docs/placeholder-color + */ + "placeholder-color": [{ + placeholder: [e] + }], + /** + * Placeholder Opacity + * @see https://tailwindcss.com/docs/placeholder-opacity + */ + "placeholder-opacity": [{ + "placeholder-opacity": [O] + }], + /** + * Text Alignment + * @see https://tailwindcss.com/docs/text-align + */ + "text-alignment": [{ + text: ["left", "center", "right", "justify", "start", "end"] + }], + /** + * Text Color + * @see https://tailwindcss.com/docs/text-color + */ + "text-color": [{ + text: [e] + }], + /** + * Text Opacity + * @see https://tailwindcss.com/docs/text-opacity + */ + "text-opacity": [{ + "text-opacity": [O] + }], + /** + * Text Decoration + * @see https://tailwindcss.com/docs/text-decoration + */ + "text-decoration": ["underline", "overline", "line-through", "no-underline"], + /** + * Text Decoration Style + * @see https://tailwindcss.com/docs/text-decoration-style + */ + "text-decoration-style": [{ + decoration: [].concat(ee(), ["wavy"]) + }], + /** + * Text Decoration Thickness + * @see https://tailwindcss.com/docs/text-decoration-thickness + */ + "text-decoration-thickness": [{ + decoration: ["auto", "from-font", B] + }], + /** + * Text Underline Offset + * @see https://tailwindcss.com/docs/text-underline-offset + */ + "underline-offset": [{ + "underline-offset": ["auto", w, B] + }], + /** + * Text Decoration Color + * @see https://tailwindcss.com/docs/text-decoration-color + */ + "text-decoration-color": [{ + decoration: [e] + }], + /** + * Text Transform + * @see https://tailwindcss.com/docs/text-transform + */ + "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], + /** + * Text Overflow + * @see https://tailwindcss.com/docs/text-overflow + */ + "text-overflow": ["truncate", "text-ellipsis", "text-clip"], + /** + * Text Indent + * @see https://tailwindcss.com/docs/text-indent + */ + indent: [{ + indent: k() + }], + /** + * Vertical Alignment + * @see https://tailwindcss.com/docs/vertical-align + */ + "vertical-align": [{ + align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", w] + }], + /** + * Whitespace + * @see https://tailwindcss.com/docs/whitespace + */ + whitespace: [{ + whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] + }], + /** + * Word Break + * @see https://tailwindcss.com/docs/word-break + */ + break: [{ + break: ["normal", "words", "all", "keep"] + }], + /** + * Hyphens + * @see https://tailwindcss.com/docs/hyphens + */ + hyphens: [{ + hyphens: ["none", "manual", "auto"] + }], + /** + * Content + * @see https://tailwindcss.com/docs/content + */ + content: [{ + content: ["none", w] + }], + // Backgrounds + /** + * Background Attachment + * @see https://tailwindcss.com/docs/background-attachment + */ + "bg-attachment": [{ + bg: ["fixed", "local", "scroll"] + }], + /** + * Background Clip + * @see https://tailwindcss.com/docs/background-clip + */ + "bg-clip": [{ + "bg-clip": ["border", "padding", "content", "text"] + }], + /** + * Background Opacity + * @deprecated since Tailwind CSS v3.0.0 + * @see https://tailwindcss.com/docs/background-opacity + */ + "bg-opacity": [{ + "bg-opacity": [O] + }], + /** + * Background Origin + * @see https://tailwindcss.com/docs/background-origin + */ + "bg-origin": [{ + "bg-origin": ["border", "padding", "content"] + }], + /** + * Background Position + * @see https://tailwindcss.com/docs/background-position + */ + "bg-position": [{ + bg: [].concat(X(), [Pn]) + }], + /** + * Background Repeat + * @see https://tailwindcss.com/docs/background-repeat + */ + "bg-repeat": [{ + bg: ["no-repeat", { + repeat: ["", "x", "y", "round", "space"] + }] + }], + /** + * Background Size + * @see https://tailwindcss.com/docs/background-size + */ + "bg-size": [{ + bg: ["auto", "cover", "contain", Rn] + }], + /** + * Background Image + * @see https://tailwindcss.com/docs/background-image + */ + "bg-image": [{ + bg: ["none", { + "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] + }, kn] + }], + /** + * Background Color + * @see https://tailwindcss.com/docs/background-color + */ + "bg-color": [{ + bg: [e] + }], + /** + * Gradient Color Stops From Position + * @see https://tailwindcss.com/docs/gradient-color-stops + */ + "gradient-from-pos": [{ + from: [C] + }], + /** + * Gradient Color Stops Via Position + * @see https://tailwindcss.com/docs/gradient-color-stops + */ + "gradient-via-pos": [{ + via: [C] + }], + /** + * Gradient Color Stops To Position + * @see https://tailwindcss.com/docs/gradient-color-stops + */ + "gradient-to-pos": [{ + to: [C] + }], + /** + * Gradient Color Stops From + * @see https://tailwindcss.com/docs/gradient-color-stops + */ + "gradient-from": [{ + from: [b] + }], + /** + * Gradient Color Stops Via + * @see https://tailwindcss.com/docs/gradient-color-stops + */ + "gradient-via": [{ + via: [b] + }], + /** + * Gradient Color Stops To + * @see https://tailwindcss.com/docs/gradient-color-stops + */ + "gradient-to": [{ + to: [b] + }], + // Borders + /** + * Border Radius + * @see https://tailwindcss.com/docs/border-radius + */ + rounded: [{ + rounded: [a] + }], + /** + * Border Radius Start + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-s": [{ + "rounded-s": [a] + }], + /** + * Border Radius End + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-e": [{ + "rounded-e": [a] + }], + /** + * Border Radius Top + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-t": [{ + "rounded-t": [a] + }], + /** + * Border Radius Right + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-r": [{ + "rounded-r": [a] + }], + /** + * Border Radius Bottom + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-b": [{ + "rounded-b": [a] + }], + /** + * Border Radius Left + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-l": [{ + "rounded-l": [a] + }], + /** + * Border Radius Start Start + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-ss": [{ + "rounded-ss": [a] + }], + /** + * Border Radius Start End + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-se": [{ + "rounded-se": [a] + }], + /** + * Border Radius End End + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-ee": [{ + "rounded-ee": [a] + }], + /** + * Border Radius End Start + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-es": [{ + "rounded-es": [a] + }], + /** + * Border Radius Top Left + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-tl": [{ + "rounded-tl": [a] + }], + /** + * Border Radius Top Right + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-tr": [{ + "rounded-tr": [a] + }], + /** + * Border Radius Bottom Right + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-br": [{ + "rounded-br": [a] + }], + /** + * Border Radius Bottom Left + * @see https://tailwindcss.com/docs/border-radius + */ + "rounded-bl": [{ + "rounded-bl": [a] + }], + /** + * Border Width + * @see https://tailwindcss.com/docs/border-width + */ + "border-w": [{ + border: [l] + }], + /** + * Border Width X + * @see https://tailwindcss.com/docs/border-width + */ + "border-w-x": [{ + "border-x": [l] + }], + /** + * Border Width Y + * @see https://tailwindcss.com/docs/border-width + */ + "border-w-y": [{ + "border-y": [l] + }], + /** + * Border Width Start + * @see https://tailwindcss.com/docs/border-width + */ + "border-w-s": [{ + "border-s": [l] + }], + /** + * Border Width End + * @see https://tailwindcss.com/docs/border-width + */ + "border-w-e": [{ + "border-e": [l] + }], + /** + * Border Width Top + * @see https://tailwindcss.com/docs/border-width + */ + "border-w-t": [{ + "border-t": [l] + }], + /** + * Border Width Right + * @see https://tailwindcss.com/docs/border-width + */ + "border-w-r": [{ + "border-r": [l] + }], + /** + * Border Width Bottom + * @see https://tailwindcss.com/docs/border-width + */ + "border-w-b": [{ + "border-b": [l] + }], + /** + * Border Width Left + * @see https://tailwindcss.com/docs/border-width + */ + "border-w-l": [{ + "border-l": [l] + }], + /** + * Border Opacity + * @see https://tailwindcss.com/docs/border-opacity + */ + "border-opacity": [{ + "border-opacity": [O] + }], + /** + * Border Style + * @see https://tailwindcss.com/docs/border-style + */ + "border-style": [{ + border: [].concat(ee(), ["hidden"]) + }], + /** + * Divide Width X + * @see https://tailwindcss.com/docs/divide-width + */ + "divide-x": [{ + "divide-x": [l] + }], + /** + * Divide Width X Reverse + * @see https://tailwindcss.com/docs/divide-width + */ + "divide-x-reverse": ["divide-x-reverse"], + /** + * Divide Width Y + * @see https://tailwindcss.com/docs/divide-width + */ + "divide-y": [{ + "divide-y": [l] + }], + /** + * Divide Width Y Reverse + * @see https://tailwindcss.com/docs/divide-width + */ + "divide-y-reverse": ["divide-y-reverse"], + /** + * Divide Opacity + * @see https://tailwindcss.com/docs/divide-opacity + */ + "divide-opacity": [{ + "divide-opacity": [O] + }], + /** + * Divide Style + * @see https://tailwindcss.com/docs/divide-style + */ + "divide-style": [{ + divide: ee() + }], + /** + * Border Color + * @see https://tailwindcss.com/docs/border-color + */ + "border-color": [{ + border: [i] + }], + /** + * Border Color X + * @see https://tailwindcss.com/docs/border-color + */ + "border-color-x": [{ + "border-x": [i] + }], + /** + * Border Color Y + * @see https://tailwindcss.com/docs/border-color + */ + "border-color-y": [{ + "border-y": [i] + }], + /** + * Border Color Top + * @see https://tailwindcss.com/docs/border-color + */ + "border-color-t": [{ + "border-t": [i] + }], + /** + * Border Color Right + * @see https://tailwindcss.com/docs/border-color + */ + "border-color-r": [{ + "border-r": [i] + }], + /** + * Border Color Bottom + * @see https://tailwindcss.com/docs/border-color + */ + "border-color-b": [{ + "border-b": [i] + }], + /** + * Border Color Left + * @see https://tailwindcss.com/docs/border-color + */ + "border-color-l": [{ + "border-l": [i] + }], + /** + * Divide Color + * @see https://tailwindcss.com/docs/divide-color + */ + "divide-color": [{ + divide: [i] + }], + /** + * Outline Style + * @see https://tailwindcss.com/docs/outline-style + */ + "outline-style": [{ + outline: [""].concat(ee()) + }], + /** + * Outline Offset + * @see https://tailwindcss.com/docs/outline-offset + */ + "outline-offset": [{ + "outline-offset": [w, B] + }], + /** + * Outline Width + * @see https://tailwindcss.com/docs/outline-width + */ + "outline-w": [{ + outline: [B] + }], + /** + * Outline Color + * @see https://tailwindcss.com/docs/outline-color + */ + "outline-color": [{ + outline: [e] + }], + /** + * Ring Width + * @see https://tailwindcss.com/docs/ring-width + */ + "ring-w": [{ + ring: z() + }], + /** + * Ring Width Inset + * @see https://tailwindcss.com/docs/ring-width + */ + "ring-w-inset": ["ring-inset"], + /** + * Ring Color + * @see https://tailwindcss.com/docs/ring-color + */ + "ring-color": [{ + ring: [e] + }], + /** + * Ring Opacity + * @see https://tailwindcss.com/docs/ring-opacity + */ + "ring-opacity": [{ + "ring-opacity": [O] + }], + /** + * Ring Offset Width + * @see https://tailwindcss.com/docs/ring-offset-width + */ + "ring-offset-w": [{ + "ring-offset": [B] + }], + /** + * Ring Offset Color + * @see https://tailwindcss.com/docs/ring-offset-color + */ + "ring-offset-color": [{ + "ring-offset": [e] + }], + // Effects + /** + * Box Shadow + * @see https://tailwindcss.com/docs/box-shadow + */ + shadow: [{ + shadow: ["", "inner", "none", Q, Mn] + }], + /** + * Box Shadow Color + * @see https://tailwindcss.com/docs/box-shadow-color + */ + "shadow-color": [{ + shadow: [ke] + }], + /** + * Opacity + * @see https://tailwindcss.com/docs/opacity + */ + opacity: [{ + opacity: [O] + }], + /** + * Mix Blend Mode + * @see https://tailwindcss.com/docs/mix-blend-mode + */ + "mix-blend": [{ + "mix-blend": we() + }], + /** + * Background Blend Mode + * @see https://tailwindcss.com/docs/background-blend-mode + */ + "bg-blend": [{ + "bg-blend": we() + }], + // Filters + /** + * Filter + * @deprecated since Tailwind CSS v3.0.0 + * @see https://tailwindcss.com/docs/filter + */ + filter: [{ + filter: ["", "none"] + }], + /** + * Blur + * @see https://tailwindcss.com/docs/blur + */ + blur: [{ + blur: [r] + }], + /** + * Brightness + * @see https://tailwindcss.com/docs/brightness + */ + brightness: [{ + brightness: [n] + }], + /** + * Contrast + * @see https://tailwindcss.com/docs/contrast + */ + contrast: [{ + contrast: [p] + }], + /** + * Drop Shadow + * @see https://tailwindcss.com/docs/drop-shadow + */ + "drop-shadow": [{ + "drop-shadow": ["", "none", Q, w] + }], + /** + * Grayscale + * @see https://tailwindcss.com/docs/grayscale + */ + grayscale: [{ + grayscale: [f] + }], + /** + * Hue Rotate + * @see https://tailwindcss.com/docs/hue-rotate + */ + "hue-rotate": [{ + "hue-rotate": [d] + }], + /** + * Invert + * @see https://tailwindcss.com/docs/invert + */ + invert: [{ + invert: [c] + }], + /** + * Saturate + * @see https://tailwindcss.com/docs/saturate + */ + saturate: [{ + saturate: [M] + }], + /** + * Sepia + * @see https://tailwindcss.com/docs/sepia + */ + sepia: [{ + sepia: [se] + }], + /** + * Backdrop Filter + * @deprecated since Tailwind CSS v3.0.0 + * @see https://tailwindcss.com/docs/backdrop-filter + */ + "backdrop-filter": [{ + "backdrop-filter": ["", "none"] + }], + /** + * Backdrop Blur + * @see https://tailwindcss.com/docs/backdrop-blur + */ + "backdrop-blur": [{ + "backdrop-blur": [r] + }], + /** + * Backdrop Brightness + * @see https://tailwindcss.com/docs/backdrop-brightness + */ + "backdrop-brightness": [{ + "backdrop-brightness": [n] + }], + /** + * Backdrop Contrast + * @see https://tailwindcss.com/docs/backdrop-contrast + */ + "backdrop-contrast": [{ + "backdrop-contrast": [p] + }], + /** + * Backdrop Grayscale + * @see https://tailwindcss.com/docs/backdrop-grayscale + */ + "backdrop-grayscale": [{ + "backdrop-grayscale": [f] + }], + /** + * Backdrop Hue Rotate + * @see https://tailwindcss.com/docs/backdrop-hue-rotate + */ + "backdrop-hue-rotate": [{ + "backdrop-hue-rotate": [d] + }], + /** + * Backdrop Invert + * @see https://tailwindcss.com/docs/backdrop-invert + */ + "backdrop-invert": [{ + "backdrop-invert": [c] + }], + /** + * Backdrop Opacity + * @see https://tailwindcss.com/docs/backdrop-opacity + */ + "backdrop-opacity": [{ + "backdrop-opacity": [O] + }], + /** + * Backdrop Saturate + * @see https://tailwindcss.com/docs/backdrop-saturate + */ + "backdrop-saturate": [{ + "backdrop-saturate": [M] + }], + /** + * Backdrop Sepia + * @see https://tailwindcss.com/docs/backdrop-sepia + */ + "backdrop-sepia": [{ + "backdrop-sepia": [se] + }], + // Tables + /** + * Border Collapse + * @see https://tailwindcss.com/docs/border-collapse + */ + "border-collapse": [{ + border: ["collapse", "separate"] + }], + /** + * Border Spacing + * @see https://tailwindcss.com/docs/border-spacing + */ + "border-spacing": [{ + "border-spacing": [s] + }], + /** + * Border Spacing X + * @see https://tailwindcss.com/docs/border-spacing + */ + "border-spacing-x": [{ + "border-spacing-x": [s] + }], + /** + * Border Spacing Y + * @see https://tailwindcss.com/docs/border-spacing + */ + "border-spacing-y": [{ + "border-spacing-y": [s] + }], + /** + * Table Layout + * @see https://tailwindcss.com/docs/table-layout + */ + "table-layout": [{ + table: ["auto", "fixed"] + }], + /** + * Caption Side + * @see https://tailwindcss.com/docs/caption-side + */ + caption: [{ + caption: ["top", "bottom"] + }], + // Transitions and Animation + /** + * Tranisition Property + * @see https://tailwindcss.com/docs/transition-property + */ + transition: [{ + transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", w] + }], + /** + * Transition Duration + * @see https://tailwindcss.com/docs/transition-duration + */ + duration: [{ + duration: te() + }], + /** + * Transition Timing Function + * @see https://tailwindcss.com/docs/transition-timing-function + */ + ease: [{ + ease: ["linear", "in", "out", "in-out", w] + }], + /** + * Transition Delay + * @see https://tailwindcss.com/docs/transition-delay + */ + delay: [{ + delay: te() + }], + /** + * Animation + * @see https://tailwindcss.com/docs/animation + */ + animate: [{ + animate: ["none", "spin", "ping", "pulse", "bounce", w] + }], + // Transforms + /** + * Transform + * @see https://tailwindcss.com/docs/transform + */ + transform: [{ + transform: ["", "gpu", "none"] + }], + /** + * Scale + * @see https://tailwindcss.com/docs/scale + */ + scale: [{ + scale: [D] + }], + /** + * Scale X + * @see https://tailwindcss.com/docs/scale + */ + "scale-x": [{ + "scale-x": [D] + }], + /** + * Scale Y + * @see https://tailwindcss.com/docs/scale + */ + "scale-y": [{ + "scale-y": [D] + }], + /** + * Rotate + * @see https://tailwindcss.com/docs/rotate + */ + rotate: [{ + rotate: [Pe, w] + }], + /** + * Translate X + * @see https://tailwindcss.com/docs/translate + */ + "translate-x": [{ + "translate-x": [ce] + }], + /** + * Translate Y + * @see https://tailwindcss.com/docs/translate + */ + "translate-y": [{ + "translate-y": [ce] + }], + /** + * Skew X + * @see https://tailwindcss.com/docs/skew + */ + "skew-x": [{ + "skew-x": [U] + }], + /** + * Skew Y + * @see https://tailwindcss.com/docs/skew + */ + "skew-y": [{ + "skew-y": [U] + }], + /** + * Transform Origin + * @see https://tailwindcss.com/docs/transform-origin + */ + "transform-origin": [{ + origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", w] + }], + // Interactivity + /** + * Accent Color + * @see https://tailwindcss.com/docs/accent-color + */ + accent: [{ + accent: ["auto", e] + }], + /** + * Appearance + * @see https://tailwindcss.com/docs/appearance + */ + appearance: ["appearance-none"], + /** + * Cursor + * @see https://tailwindcss.com/docs/cursor + */ + cursor: [{ + cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", w] + }], + /** + * Caret Color + * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities + */ + "caret-color": [{ + caret: [e] + }], + /** + * Pointer Events + * @see https://tailwindcss.com/docs/pointer-events + */ + "pointer-events": [{ + "pointer-events": ["none", "auto"] + }], + /** + * Resize + * @see https://tailwindcss.com/docs/resize + */ + resize: [{ + resize: ["none", "y", "x", ""] + }], + /** + * Scroll Behavior + * @see https://tailwindcss.com/docs/scroll-behavior + */ + "scroll-behavior": [{ + scroll: ["auto", "smooth"] + }], + /** + * Scroll Margin + * @see https://tailwindcss.com/docs/scroll-margin + */ + "scroll-m": [{ + "scroll-m": k() + }], + /** + * Scroll Margin X + * @see https://tailwindcss.com/docs/scroll-margin + */ + "scroll-mx": [{ + "scroll-mx": k() + }], + /** + * Scroll Margin Y + * @see https://tailwindcss.com/docs/scroll-margin + */ + "scroll-my": [{ + "scroll-my": k() + }], + /** + * Scroll Margin Start + * @see https://tailwindcss.com/docs/scroll-margin + */ + "scroll-ms": [{ + "scroll-ms": k() + }], + /** + * Scroll Margin End + * @see https://tailwindcss.com/docs/scroll-margin + */ + "scroll-me": [{ + "scroll-me": k() + }], + /** + * Scroll Margin Top + * @see https://tailwindcss.com/docs/scroll-margin + */ + "scroll-mt": [{ + "scroll-mt": k() + }], + /** + * Scroll Margin Right + * @see https://tailwindcss.com/docs/scroll-margin + */ + "scroll-mr": [{ + "scroll-mr": k() + }], + /** + * Scroll Margin Bottom + * @see https://tailwindcss.com/docs/scroll-margin + */ + "scroll-mb": [{ + "scroll-mb": k() + }], + /** + * Scroll Margin Left + * @see https://tailwindcss.com/docs/scroll-margin + */ + "scroll-ml": [{ + "scroll-ml": k() + }], + /** + * Scroll Padding + * @see https://tailwindcss.com/docs/scroll-padding + */ + "scroll-p": [{ + "scroll-p": k() + }], + /** + * Scroll Padding X + * @see https://tailwindcss.com/docs/scroll-padding + */ + "scroll-px": [{ + "scroll-px": k() + }], + /** + * Scroll Padding Y + * @see https://tailwindcss.com/docs/scroll-padding + */ + "scroll-py": [{ + "scroll-py": k() + }], + /** + * Scroll Padding Start + * @see https://tailwindcss.com/docs/scroll-padding + */ + "scroll-ps": [{ + "scroll-ps": k() + }], + /** + * Scroll Padding End + * @see https://tailwindcss.com/docs/scroll-padding + */ + "scroll-pe": [{ + "scroll-pe": k() + }], + /** + * Scroll Padding Top + * @see https://tailwindcss.com/docs/scroll-padding + */ + "scroll-pt": [{ + "scroll-pt": k() + }], + /** + * Scroll Padding Right + * @see https://tailwindcss.com/docs/scroll-padding + */ + "scroll-pr": [{ + "scroll-pr": k() + }], + /** + * Scroll Padding Bottom + * @see https://tailwindcss.com/docs/scroll-padding + */ + "scroll-pb": [{ + "scroll-pb": k() + }], + /** + * Scroll Padding Left + * @see https://tailwindcss.com/docs/scroll-padding + */ + "scroll-pl": [{ + "scroll-pl": k() + }], + /** + * Scroll Snap Align + * @see https://tailwindcss.com/docs/scroll-snap-align + */ + "snap-align": [{ + snap: ["start", "end", "center", "align-none"] + }], + /** + * Scroll Snap Stop + * @see https://tailwindcss.com/docs/scroll-snap-stop + */ + "snap-stop": [{ + snap: ["normal", "always"] + }], + /** + * Scroll Snap Type + * @see https://tailwindcss.com/docs/scroll-snap-type + */ + "snap-type": [{ + snap: ["none", "x", "y", "both"] + }], + /** + * Scroll Snap Type Strictness + * @see https://tailwindcss.com/docs/scroll-snap-type + */ + "snap-strictness": [{ + snap: ["mandatory", "proximity"] + }], + /** + * Touch Action + * @see https://tailwindcss.com/docs/touch-action + */ + touch: [{ + touch: ["auto", "none", "pinch-zoom", "manipulation", { + pan: ["x", "left", "right", "y", "up", "down"] + }] + }], + /** + * User Select + * @see https://tailwindcss.com/docs/user-select + */ + select: [{ + select: ["none", "text", "all", "auto"] + }], + /** + * Will Change + * @see https://tailwindcss.com/docs/will-change + */ + "will-change": [{ + "will-change": ["auto", "scroll", "contents", "transform", w] + }], + // SVG + /** + * Fill + * @see https://tailwindcss.com/docs/fill + */ + fill: [{ + fill: [e, "none"] + }], + /** + * Stroke Width + * @see https://tailwindcss.com/docs/stroke-width + */ + "stroke-w": [{ + stroke: [B, Ie] + }], + /** + * Stroke + * @see https://tailwindcss.com/docs/stroke + */ + stroke: [{ + stroke: [e, "none"] + }], + // Accessibility + /** + * Screen Readers + * @see https://tailwindcss.com/docs/screen-readers + */ + sr: ["sr-only", "not-sr-only"] + }, + conflictingClassGroups: { + overflow: ["overflow-x", "overflow-y"], + overscroll: ["overscroll-x", "overscroll-y"], + inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"], + "inset-x": ["right", "left"], + "inset-y": ["top", "bottom"], + flex: ["basis", "grow", "shrink"], + gap: ["gap-x", "gap-y"], + p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"], + px: ["pr", "pl"], + py: ["pt", "pb"], + m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"], + mx: ["mr", "ml"], + my: ["mt", "mb"], + "font-size": ["leading"], + "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"], + "fvn-ordinal": ["fvn-normal"], + "fvn-slashed-zero": ["fvn-normal"], + "fvn-figure": ["fvn-normal"], + "fvn-spacing": ["fvn-normal"], + "fvn-fraction": ["fvn-normal"], + rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"], + "rounded-s": ["rounded-ss", "rounded-es"], + "rounded-e": ["rounded-se", "rounded-ee"], + "rounded-t": ["rounded-tl", "rounded-tr"], + "rounded-r": ["rounded-tr", "rounded-br"], + "rounded-b": ["rounded-br", "rounded-bl"], + "rounded-l": ["rounded-tl", "rounded-bl"], + "border-spacing": ["border-spacing-x", "border-spacing-y"], + "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"], + "border-w-x": ["border-w-r", "border-w-l"], + "border-w-y": ["border-w-t", "border-w-b"], + "border-color": ["border-color-t", "border-color-r", "border-color-b", "border-color-l"], + "border-color-x": ["border-color-r", "border-color-l"], + "border-color-y": ["border-color-t", "border-color-b"], + "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"], + "scroll-mx": ["scroll-mr", "scroll-ml"], + "scroll-my": ["scroll-mt", "scroll-mb"], + "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"], + "scroll-px": ["scroll-pr", "scroll-pl"], + "scroll-py": ["scroll-pt", "scroll-pb"] + }, + conflictingClassGroupModifiers: { + "font-size": ["leading"] + } + }; +} +var In = /* @__PURE__ */ yn(On); +function tr(...e) { + return In(Kt(e)); +} +const Vn = an( + "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", + { + variants: { + variant: { + default: "bg-primary text-primary-foreground shadow hover:bg-primary/90", + destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90", + outline: "text-neutral-600 border border-current bg-transparent shadow-sm hover:border-white hover:text-white", + secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80", + ghost: "hover:bg-accent hover:text-accent-foreground", + link: "text-primary underline-offset-4 hover:underline" + }, + size: { + default: "h-9 px-4 py-2", + sm: "h-8 rounded-md px-3 text-xs", + lg: "h-10 rounded-md px-8", + icon: "h-9 w-9" + } + }, + defaultVariants: { + variant: "default", + size: "default" + } + } +), oe = V.forwardRef( + ({ className: e, variant: t, size: r, asChild: n = !1, ...i }, a) => { + const s = n ? Ut : "button"; + return /* @__PURE__ */ P.jsx( + s, + { + className: "d411x418fllnhlf1di " + tr(Vn({ variant: t, size: r, className: e })), + ref: a, + ...i + } + ); + } +); +oe.displayName = "Button"; +const rr = be({ + transformPagePoint: (e) => e, + isStatic: !1, + reducedMotion: "never" +}), Fe = be({}), dt = be(null), nr = typeof document < "u", ft = nr ? Kr : ct, or = be({ strict: !1 }); +function Ln(e, t, r, n) { + const { visualElement: i } = F(Fe), a = F(or), s = F(dt), l = F(rr).reducedMotion, p = H(); + n = n || a.renderer, !p.current && n && (p.current = n(e, { + visualState: t, + parent: i, + props: r, + presenceContext: s, + blockInitialAnimation: s ? s.initial === !1 : !1, + reducedMotionConfig: l + })); + const f = p.current; + Ht(() => { + f && f.update(r, s); + }); + const d = H(!!window.HandoffAppearAnimations); + return ft(() => { + f && (f.render(), d.current && f.animationState && f.animationState.animateChanges()); + }), ct(() => { + f && (f.updateFeatures(), !d.current && f.animationState && f.animationState.animateChanges(), window.HandoffAppearAnimations = void 0, d.current = !1); + }), f; +} +function $n(e) { + return typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current"); +} +function Nn(e, t, r) { + return et( + (n) => { + n && e.mount && e.mount(n), t && (n ? t.mount(n) : t.unmount()), r && (typeof r == "function" ? r(n) : $n(r) && (r.current = n)); + }, + /** + * Only pass a new ref callback to React if we've received a visual element + * factory. Otherwise we'll be mounting/remounting every time externalRef + * or other dependencies change. + */ + [t] + ); +} +function it(e) { + return typeof e == "string" || Array.isArray(e); +} +function ir(e) { + return typeof e == "object" && typeof e.start == "function"; +} +const Fn = [ + "animate", + "whileInView", + "whileFocus", + "whileHover", + "whileTap", + "whileDrag", + "exit" +], zn = ["initial", ...Fn]; +function pt(e) { + return ir(e.animate) || zn.some((t) => it(e[t])); +} +function Wn(e) { + return !!(pt(e) || e.variants); +} +function Gn(e, t) { + if (pt(e)) { + const { initial: r, animate: n } = e; + return { + initial: r === !1 || it(r) ? r : void 0, + animate: it(n) ? n : void 0 + }; + } + return e.inherit !== !1 ? t : {}; +} +function Dn(e) { + const { initial: t, animate: r } = Gn(e, F(Fe)); + return he(() => ({ initial: t, animate: r }), [Ft(t), Ft(r)]); +} +function Ft(e) { + return Array.isArray(e) ? e.join(" ") : e; +} +const zt = { + animation: [ + "animate", + "variants", + "whileHover", + "whileTap", + "exit", + "whileInView", + "whileFocus", + "whileDrag" + ], + exit: ["exit"], + drag: ["drag", "dragControls"], + focus: ["whileFocus"], + hover: ["whileHover", "onHoverStart", "onHoverEnd"], + tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"], + pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"], + inView: ["whileInView", "onViewportEnter", "onViewportLeave"], + layout: ["layout", "layoutId"] +}, at = {}; +for (const e in zt) + at[e] = { + isEnabled: (t) => zt[e].some((r) => !!t[r]) + }; +function Bn(e) { + for (const t in e) + at[t] = { + ...at[t], + ...e[t] + }; +} +const ar = be({}), Hn = be({}), Yn = Symbol.for("motionComponentSymbol"); +function Un({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVisualState: n, Component: i }) { + e && Bn(e); + function a(l, p) { + let f; + const d = { + ...F(rr), + ...l, + layoutId: Zn(l) + }, { isStatic: c } = d, g = Dn(l), b = n(l, c); + if (!c && nr) { + g.visualElement = Ln(i, b, d, t); + const C = F(Hn), E = F(or).strict; + g.visualElement && (f = g.visualElement.loadFeatures( + // Note: Pass the full new combined props to correctly re-render dynamic feature components. + d, + E, + e, + C + )); + } + return V.createElement( + Fe.Provider, + { value: g }, + f && g.visualElement ? V.createElement(f, { visualElement: g.visualElement, ...d }) : null, + r(i, l, Nn(b, g.visualElement, p), b, c, g.visualElement) + ); + } + const s = ve(a); + return s[Yn] = i, s; +} +function Zn({ layoutId: e }) { + const t = F(ar).id; + return t && e !== void 0 ? t + "-" + e : e; +} +function Kn(e) { + function t(n, i = {}) { + return Un(e(n, i)); + } + if (typeof Proxy > "u") + return t; + const r = /* @__PURE__ */ new Map(); + return new Proxy(t, { + /** + * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc. + * The prop name is passed through as `key` and we can use that to generate a `motion` + * DOM component with that name. + */ + get: (n, i) => (r.has(i) || r.set(i, t(i)), r.get(i)) + }); +} +const Xn = [ + "animate", + "circle", + "defs", + "desc", + "ellipse", + "g", + "image", + "line", + "filter", + "marker", + "mask", + "metadata", + "path", + "pattern", + "polygon", + "polyline", + "rect", + "stop", + "switch", + "symbol", + "svg", + "text", + "tspan", + "use", + "view" +]; +function sr(e) { + return ( + /** + * If it's not a string, it's a custom React component. Currently we only support + * HTML custom React components. + */ + typeof e != "string" || /** + * If it contains a dash, the element is a custom HTML webcomponent. + */ + e.includes("-") ? !1 : ( + /** + * If it's in our list of lowercase SVG tags, it's an SVG component + */ + !!(Xn.indexOf(e) > -1 || /** + * If it contains a capital letter, it's an SVG component + */ + /[A-Z]/.test(e)) + ) + ); +} +const qn = {}, ze = [ + "transformPerspective", + "x", + "y", + "z", + "translateX", + "translateY", + "translateZ", + "scale", + "scaleX", + "scaleY", + "rotate", + "rotateX", + "rotateY", + "rotateZ", + "skew", + "skewX", + "skewY" +], lr = new Set(ze); +function cr(e, { layout: t, layoutId: r }) { + return lr.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!qn[e] || e === "opacity"); +} +const ie = (e) => !!(e && e.getVelocity), Jn = { + x: "translateX", + y: "translateY", + z: "translateZ", + transformPerspective: "perspective" +}, Qn = ze.length; +function eo(e, { enableHardwareAcceleration: t = !0, allowTransformNone: r = !0 }, n, i) { + let a = ""; + for (let s = 0; s < Qn; s++) { + const l = ze[s]; + if (e[l] !== void 0) { + const p = Jn[l] || l; + a += `${p}(${e[l]}) `; + } + } + return t && !e.z && (a += "translateZ(0)"), a = a.trim(), i ? a = i(e, n ? "" : a) : r && n && (a = "none"), a; +} +const to = (e) => (t) => typeof t == "string" && t.startsWith(e), ro = to("--"), no = (e, t) => t && typeof e == "number" ? t.transform(e) : e, oo = (e, t, r) => Math.min(Math.max(r, e), t), mt = { + test: (e) => typeof e == "number", + parse: parseFloat, + transform: (e) => e +}, Xe = { + ...mt, + transform: (e) => oo(0, 1, e) +}, Ve = { + ...mt, + default: 1 +}; +function io(e) { + return typeof e == "string"; +} +const gt = (e) => ({ + test: (t) => io(t) && t.endsWith(e) && t.split(" ").length === 1, + parse: parseFloat, + transform: (t) => `${t}${e}` +}), re = gt("deg"), qe = gt("%"), y = gt("px"), Wt = { + ...qe, + parse: (e) => qe.parse(e) / 100, + transform: (e) => qe.transform(e * 100) +}, Gt = { + ...mt, + transform: Math.round +}, ao = { + // Border props + borderWidth: y, + borderTopWidth: y, + borderRightWidth: y, + borderBottomWidth: y, + borderLeftWidth: y, + borderRadius: y, + radius: y, + borderTopLeftRadius: y, + borderTopRightRadius: y, + borderBottomRightRadius: y, + borderBottomLeftRadius: y, + // Positioning props + width: y, + maxWidth: y, + height: y, + maxHeight: y, + size: y, + top: y, + right: y, + bottom: y, + left: y, + // Spacing props + padding: y, + paddingTop: y, + paddingRight: y, + paddingBottom: y, + paddingLeft: y, + margin: y, + marginTop: y, + marginRight: y, + marginBottom: y, + marginLeft: y, + // Transform props + rotate: re, + rotateX: re, + rotateY: re, + rotateZ: re, + scale: Ve, + scaleX: Ve, + scaleY: Ve, + scaleZ: Ve, + skew: re, + skewX: re, + skewY: re, + distance: y, + translateX: y, + translateY: y, + translateZ: y, + x: y, + y, + z: y, + perspective: y, + transformPerspective: y, + opacity: Xe, + originX: Wt, + originY: Wt, + originZ: y, + // Misc + zIndex: Gt, + // SVG + fillOpacity: Xe, + strokeOpacity: Xe, + numOctaves: Gt +}; +function ur(e, t, r, n) { + const { style: i, vars: a, transform: s, transformOrigin: l } = e; + let p = !1, f = !1, d = !0; + for (const c in t) { + const g = t[c]; + if (ro(c)) { + a[c] = g; + continue; + } + const b = ao[c], C = no(g, b); + if (lr.has(c)) { + if (p = !0, s[c] = C, !d) + continue; + g !== (b.default || 0) && (d = !1); + } else + c.startsWith("origin") ? (f = !0, l[c] = C) : i[c] = C; + } + if (t.transform || (p || n ? i.transform = eo(e.transform, r, d, n) : i.transform && (i.transform = "none")), f) { + const { originX: c = "50%", originY: g = "50%", originZ: b = 0 } = l; + i.transformOrigin = `${c} ${g} ${b}`; + } +} +const ht = () => ({ + style: {}, + transform: {}, + transformOrigin: {}, + vars: {} +}); +function dr(e, t, r) { + for (const n in t) + !ie(t[n]) && !cr(n, r) && (e[n] = t[n]); +} +function so({ transformTemplate: e }, t, r) { + return he(() => { + const n = ht(); + return ur(n, t, { enableHardwareAcceleration: !r }, e), Object.assign({}, n.vars, n.style); + }, [t]); +} +function lo(e, t, r) { + const n = e.style || {}, i = {}; + return dr(i, n, e), Object.assign(i, so(e, t, r)), e.transformValues ? e.transformValues(i) : i; +} +function co(e, t, r) { + const n = {}, i = lo(e, t, r); + return e.drag && e.dragListener !== !1 && (n.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = i, n; +} +const uo = /* @__PURE__ */ new Set([ + "animate", + "exit", + "variants", + "initial", + "style", + "values", + "variants", + "transition", + "transformTemplate", + "transformValues", + "custom", + "inherit", + "onLayoutAnimationStart", + "onLayoutAnimationComplete", + "onLayoutMeasure", + "onBeforeLayoutMeasure", + "onAnimationStart", + "onAnimationComplete", + "onUpdate", + "onDragStart", + "onDrag", + "onDragEnd", + "onMeasureDragConstraints", + "onDirectionLock", + "onDragTransitionEnd", + "_dragX", + "_dragY", + "onHoverStart", + "onHoverEnd", + "onViewportEnter", + "onViewportLeave", + "ignoreStrict", + "viewport" +]); +function Ne(e) { + return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || uo.has(e); +} +let fr = (e) => !Ne(e); +function fo(e) { + e && (fr = (t) => t.startsWith("on") ? !Ne(t) : e(t)); +} +try { + fo(require("@emotion/is-prop-valid").default); +} catch { +} +function po(e, t, r) { + const n = {}; + for (const i in e) + i === "values" && typeof e.values == "object" || (fr(i) || r === !0 && Ne(i) || !t && !Ne(i) || // If trying to use native HTML drag events, forward drag listeners + e.draggable && i.startsWith("onDrag")) && (n[i] = e[i]); + return n; +} +function Dt(e, t, r) { + return typeof e == "string" ? e : y.transform(t + r * e); +} +function mo(e, t, r) { + const n = Dt(t, e.x, e.width), i = Dt(r, e.y, e.height); + return `${n} ${i}`; +} +const go = { + offset: "stroke-dashoffset", + array: "stroke-dasharray" +}, ho = { + offset: "strokeDashoffset", + array: "strokeDasharray" +}; +function vo(e, t, r = 1, n = 0, i = !0) { + e.pathLength = 1; + const a = i ? go : ho; + e[a.offset] = y.transform(-n); + const s = y.transform(t), l = y.transform(r); + e[a.array] = `${s} ${l}`; +} +function pr(e, { + attrX: t, + attrY: r, + attrScale: n, + originX: i, + originY: a, + pathLength: s, + pathSpacing: l = 1, + pathOffset: p = 0, + // This is object creation, which we try to avoid per-frame. + ...f +}, d, c, g) { + if (ur(e, f, d, g), c) { + e.style.viewBox && (e.attrs.viewBox = e.style.viewBox); + return; + } + e.attrs = e.style, e.style = {}; + const { attrs: b, style: C, dimensions: E } = e; + b.transform && (E && (C.transform = b.transform), delete b.transform), E && (i !== void 0 || a !== void 0 || C.transform) && (C.transformOrigin = mo(E, i !== void 0 ? i : 0.5, a !== void 0 ? a : 0.5)), t !== void 0 && (b.x = t), r !== void 0 && (b.y = r), n !== void 0 && (b.scale = n), s !== void 0 && vo(b, s, l, p, !1); +} +const mr = () => ({ + ...ht(), + attrs: {} +}), gr = (e) => typeof e == "string" && e.toLowerCase() === "svg"; +function bo(e, t, r, n) { + const i = he(() => { + const a = mr(); + return pr(a, t, { enableHardwareAcceleration: !1 }, gr(n), e.transformTemplate), { + ...a.attrs, + style: { ...a.style } + }; + }, [t]); + if (e.style) { + const a = {}; + dr(a, e.style, e), i.style = { ...a, ...i.style }; + } + return i; +} +function yo(e = !1) { + return (r, n, i, { latestValues: a }, s) => { + const p = (sr(r) ? bo : co)(n, a, s, r), d = { + ...po(n, typeof r == "string", e), + ...p, + ref: i + }, { children: c } = n, g = he(() => ie(c) ? c.get() : c, [c]); + return Y(r, { + ...d, + children: g + }); + }; +} +const xo = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(); +function wo(e, { style: t, vars: r }, n, i) { + Object.assign(e.style, t, i && i.getProjectionStyles(n)); + for (const a in r) + e.style.setProperty(a, r[a]); +} +const Co = /* @__PURE__ */ new Set([ + "baseFrequency", + "diffuseConstant", + "kernelMatrix", + "kernelUnitLength", + "keySplines", + "keyTimes", + "limitingConeAngle", + "markerHeight", + "markerWidth", + "numOctaves", + "targetX", + "targetY", + "surfaceScale", + "specularConstant", + "specularExponent", + "stdDeviation", + "tableValues", + "viewBox", + "gradientTransform", + "pathLength", + "startOffset", + "textLength", + "lengthAdjust" +]); +function So(e, t, r, n) { + wo(e, t, void 0, n); + for (const i in t.attrs) + e.setAttribute(Co.has(i) ? i : xo(i), t.attrs[i]); +} +function hr(e, t) { + const { style: r } = e, n = {}; + for (const i in r) + (ie(r[i]) || t.style && ie(t.style[i]) || cr(i, e)) && (n[i] = r[i]); + return n; +} +function Eo(e, t) { + const r = hr(e, t); + for (const n in e) + if (ie(e[n]) || ie(t[n])) { + const i = ze.indexOf(n) !== -1 ? "attr" + n.charAt(0).toUpperCase() + n.substring(1) : n; + r[i] = e[n]; + } + return r; +} +function Ro(e, t, r, n = {}, i = {}) { + return typeof t == "function" && (t = t(r !== void 0 ? r : e.custom, n, i)), typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function" && (t = t(r !== void 0 ? r : e.custom, n, i)), t; +} +function vr(e) { + const t = H(null); + return t.current === null && (t.current = e()), t.current; +} +const Po = (e) => !!(e && typeof e == "object" && e.mix && e.toValue); +function ko(e) { + const t = ie(e) ? e.get() : e; + return Po(t) ? t.toValue() : t; +} +function To({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: r }, n, i, a) { + const s = { + latestValues: Mo(n, i, a, e), + renderState: t() + }; + return r && (s.mount = (l) => r(n, l, s)), s; +} +const br = (e) => (t, r) => { + const n = F(Fe), i = F(dt), a = () => To(e, t, n, i); + return r ? a() : vr(a); +}; +function Mo(e, t, r, n) { + const i = {}, a = n(e, {}); + for (const g in a) + i[g] = ko(a[g]); + let { initial: s, animate: l } = e; + const p = pt(e), f = Wn(e); + t && f && !p && e.inherit !== !1 && (s === void 0 && (s = t.initial), l === void 0 && (l = t.animate)); + let d = r ? r.initial === !1 : !1; + d = d || s === !1; + const c = d ? l : s; + return c && typeof c != "boolean" && !ir(c) && (Array.isArray(c) ? c : [c]).forEach((b) => { + const C = Ro(e, b); + if (!C) + return; + const { transitionEnd: E, transition: A, ...O } = C; + for (const h in O) { + let M = O[h]; + if (Array.isArray(M)) { + const D = d ? M.length - 1 : 0; + M = M[D]; + } + M !== null && (i[h] = M); + } + for (const h in E) + i[h] = E[h]; + }), i; +} +const jo = (e) => e; +class Bt { + constructor() { + this.order = [], this.scheduled = /* @__PURE__ */ new Set(); + } + add(t) { + if (!this.scheduled.has(t)) + return this.scheduled.add(t), this.order.push(t), !0; + } + remove(t) { + const r = this.order.indexOf(t); + r !== -1 && (this.order.splice(r, 1), this.scheduled.delete(t)); + } + clear() { + this.order.length = 0, this.scheduled.clear(); + } +} +function Ao(e) { + let t = new Bt(), r = new Bt(), n = 0, i = !1, a = !1; + const s = /* @__PURE__ */ new WeakSet(), l = { + /** + * Schedule a process to run on the next frame. + */ + schedule: (p, f = !1, d = !1) => { + const c = d && i, g = c ? t : r; + return f && s.add(p), g.add(p) && c && i && (n = t.order.length), p; + }, + /** + * Cancel the provided callback from running on the next frame. + */ + cancel: (p) => { + r.remove(p), s.delete(p); + }, + /** + * Execute all schedule callbacks. + */ + process: (p) => { + if (i) { + a = !0; + return; + } + if (i = !0, [t, r] = [r, t], r.clear(), n = t.order.length, n) + for (let f = 0; f < n; f++) { + const d = t.order[f]; + d(p), s.has(d) && (l.schedule(d), e()); + } + i = !1, a && (a = !1, l.process(p)); + } + }; + return l; +} +const Le = [ + "prepare", + "read", + "update", + "preRender", + "render", + "postRender" +], _o = 40; +function Oo(e, t) { + let r = !1, n = !0; + const i = { + delta: 0, + timestamp: 0, + isProcessing: !1 + }, a = Le.reduce((c, g) => (c[g] = Ao(() => r = !0), c), {}), s = (c) => a[c].process(i), l = () => { + const c = performance.now(); + r = !1, i.delta = n ? 1e3 / 60 : Math.max(Math.min(c - i.timestamp, _o), 1), i.timestamp = c, i.isProcessing = !0, Le.forEach(s), i.isProcessing = !1, r && t && (n = !1, e(l)); + }, p = () => { + r = !0, n = !0, i.isProcessing || e(l); + }; + return { schedule: Le.reduce((c, g) => { + const b = a[g]; + return c[g] = (C, E = !1, A = !1) => (r || p(), b.schedule(C, E, A)), c; + }, {}), cancel: (c) => Le.forEach((g) => a[g].cancel(c)), state: i, steps: a }; +} +const { schedule: st, cancel: ai, state: si, steps: li } = Oo(typeof requestAnimationFrame < "u" ? requestAnimationFrame : jo, !0), Io = { + useVisualState: br({ + scrapeMotionValuesFromProps: Eo, + createRenderState: mr, + onMount: (e, t, { renderState: r, latestValues: n }) => { + st.read(() => { + try { + r.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect(); + } catch { + r.dimensions = { + x: 0, + y: 0, + width: 0, + height: 0 + }; + } + }), st.render(() => { + pr(r, n, { enableHardwareAcceleration: !1 }, gr(t.tagName), e.transformTemplate), So(t, r); + }); + } + }) +}, Vo = { + useVisualState: br({ + scrapeMotionValuesFromProps: hr, + createRenderState: ht + }) +}; +function Lo(e, { forwardMotionProps: t = !1 }, r, n) { + return { + ...sr(e) ? Io : Vo, + preloadedFeatures: r, + useRender: yo(t), + createVisualElement: n, + Component: e + }; +} +const ge = Kn(Lo); +function yr() { + const e = H(!1); + return ft(() => (e.current = !0, () => { + e.current = !1; + }), []), e; +} +function $o() { + const e = yr(), [t, r] = Xr(0), n = et(() => { + e.current && r(t + 1); + }, [t]); + return [et(() => st.postRender(n), [n]), t]; +} +class No extends V.Component { + getSnapshotBeforeUpdate(t) { + const r = this.props.childRef.current; + if (r && t.isPresent && !this.props.isPresent) { + const n = this.props.sizeRef.current; + n.height = r.offsetHeight || 0, n.width = r.offsetWidth || 0, n.top = r.offsetTop, n.left = r.offsetLeft; + } + return null; + } + /** + * Required with getSnapshotBeforeUpdate to stop React complaining. + */ + componentDidUpdate() { + } + render() { + return this.props.children; + } +} +function Fo({ children: e, isPresent: t }) { + const r = Yt(), n = H(null), i = H({ + width: 0, + height: 0, + top: 0, + left: 0 + }); + return Ht(() => { + const { width: a, height: s, top: l, left: p } = i.current; + if (t || !n.current || !a || !s) + return; + n.current.dataset.motionPopId = r; + const f = document.createElement("style"); + return document.head.appendChild(f), f.sheet && f.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${a}px !important; + height: ${s}px !important; + top: ${l}px !important; + left: ${p}px !important; + } + `), () => { + document.head.removeChild(f); + }; + }, [t]), V.createElement(No, { isPresent: t, childRef: n, sizeRef: i }, V.cloneElement(e, { ref: n })); +} +const Je = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom: i, presenceAffectsLayout: a, mode: s }) => { + const l = vr(zo), p = Yt(), f = he( + () => ({ + id: p, + initial: t, + isPresent: r, + custom: i, + onExitComplete: (d) => { + l.set(d, !0); + for (const c of l.values()) + if (!c) + return; + n && n(); + }, + register: (d) => (l.set(d, !1), () => l.delete(d)) + }), + /** + * If the presence of a child affects the layout of the components around it, + * we want to make a new context value to ensure they get re-rendered + * so they can detect that layout change. + */ + a ? void 0 : [r] + ); + return he(() => { + l.forEach((d, c) => l.set(c, !1)); + }, [r]), V.useEffect(() => { + !r && !l.size && n && n(); + }, [r]), s === "popLayout" && (e = V.createElement(Fo, { isPresent: r }, e)), V.createElement(dt.Provider, { value: f }, e); +}; +function zo() { + return /* @__PURE__ */ new Map(); +} +function Wo(e) { + return ct(() => () => e(), []); +} +const pe = (e) => e.key || ""; +function Go(e, t) { + e.forEach((r) => { + const n = pe(r); + t.set(n, r); + }); +} +function Do(e) { + const t = []; + return me.forEach(e, (r) => { + Te(r) && t.push(r); + }), t; +} +const Qe = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBeforeEnter: i, presenceAffectsLayout: a = !0, mode: s = "sync" }) => { + const l = F(ar).forceRender || $o()[0], p = yr(), f = Do(e); + let d = f; + const c = H(/* @__PURE__ */ new Map()).current, g = H(d), b = H(/* @__PURE__ */ new Map()).current, C = H(!0); + if (ft(() => { + C.current = !1, Go(f, b), g.current = d; + }), Wo(() => { + C.current = !0, b.clear(), c.clear(); + }), C.current) + return V.createElement(V.Fragment, null, d.map((h) => V.createElement(Je, { key: pe(h), isPresent: !0, initial: r ? void 0 : !1, presenceAffectsLayout: a, mode: s }, h))); + d = [...d]; + const E = g.current.map(pe), A = f.map(pe), O = E.length; + for (let h = 0; h < O; h++) { + const M = E[h]; + A.indexOf(M) === -1 && !c.has(M) && c.set(M, void 0); + } + return s === "wait" && c.size && (d = []), c.forEach((h, M) => { + if (A.indexOf(M) !== -1) + return; + const D = b.get(M); + if (!D) + return; + const se = E.indexOf(M); + let U = h; + if (!U) { + const le = () => { + b.delete(M), c.delete(M); + const ce = g.current.findIndex((K) => K.key === M); + if (g.current.splice(ce, 1), !c.size) { + if (g.current = f, p.current === !1) + return; + l(), n && n(); + } + }; + U = V.createElement(Je, { key: pe(D), isPresent: !1, onExitComplete: le, custom: t, presenceAffectsLayout: a, mode: s }, D), c.set(M, U); + } + d.splice(se, 0, U); + }), d = d.map((h) => { + const M = h.key; + return c.has(M) ? h : V.createElement(Je, { key: pe(h), isPresent: !0, presenceAffectsLayout: a, mode: s }, h); + }), process.env.NODE_ENV !== "production" && s === "wait" && d.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`), V.createElement(V.Fragment, null, c.size ? d : d.map((h) => lt(h))); +}, Bo = N.createContext(void 0); +function xr(e) { + const t = N.useContext(Bo); + if (t === void 0) + throw new Error("useSwitchableComponent hook is being used outside of its context. Please ensure that it is wrapped within a ."); + return N.useEffect(() => { + e && t.visibleComponent && t.setVisibleComponent(e); + }, [e]), t; +} +Symbol("DEFAULT_COMPONENT").toString(); +function We(e, t) { + return { + render(r) { + return /* @__PURE__ */ P.jsx(e, { ...r }); + }, + index: t || Symbol(e.name).toString() + }; +} +const wr = V.forwardRef( + ({ className: e, type: t, ...r }, n) => /* @__PURE__ */ P.jsx( + "input", + { + type: t, + className: "d411x418fllnhlf1di " + tr( + "flex h-9 w-full text-white rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 focus:border-white", + e + ), + ref: n, + ...r + } + ) +); +wr.displayName = "Input"; +function vt(e, t) { + if (e == null) + return {}; + var r = {}, n = Object.keys(e), i, a; + for (a = 0; a < n.length; a++) + i = n[a], !(t.indexOf(i) >= 0) && (r[i] = e[i]); + return r; +} +var Ho = ["color"], Yo = /* @__PURE__ */ ve(function(e, t) { + var r = e.color, n = r === void 0 ? "currentColor" : r, i = vt(e, Ho); + return Y("svg", Object.assign({ + width: "15", + height: "15", + viewBox: "0 0 15 15", + fill: "none", + xmlns: "http://www.w3.org/2000/svg" + }, i, { + ref: t + }), Y("path", { + d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z", + fill: n, + fillRule: "evenodd", + clipRule: "evenodd" + })); +}), Uo = ["color"], Zo = /* @__PURE__ */ ve(function(e, t) { + var r = e.color, n = r === void 0 ? "currentColor" : r, i = vt(e, Uo); + return Y("svg", Object.assign({ + width: "15", + height: "15", + viewBox: "0 0 15 15", + fill: "none", + xmlns: "http://www.w3.org/2000/svg" + }, i, { + ref: t + }), Y("path", { + d: "M5 2V1H10V2H5ZM4.75 0C4.33579 0 4 0.335786 4 0.75V1H3.5C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H7V13H3.5C3.22386 13 3 12.7761 3 12.5V2.5C3 2.22386 3.22386 2 3.5 2H4V2.25C4 2.66421 4.33579 3 4.75 3H10.25C10.6642 3 11 2.66421 11 2.25V2H11.5C11.7761 2 12 2.22386 12 2.5V7H13V2.5C13 1.67157 12.3284 1 11.5 1H11V0.75C11 0.335786 10.6642 0 10.25 0H4.75ZM9 8.5C9 8.77614 8.77614 9 8.5 9C8.22386 9 8 8.77614 8 8.5C8 8.22386 8.22386 8 8.5 8C8.77614 8 9 8.22386 9 8.5ZM10.5 9C10.7761 9 11 8.77614 11 8.5C11 8.22386 10.7761 8 10.5 8C10.2239 8 10 8.22386 10 8.5C10 8.77614 10.2239 9 10.5 9ZM13 8.5C13 8.77614 12.7761 9 12.5 9C12.2239 9 12 8.77614 12 8.5C12 8.22386 12.2239 8 12.5 8C12.7761 8 13 8.22386 13 8.5ZM14.5 9C14.7761 9 15 8.77614 15 8.5C15 8.22386 14.7761 8 14.5 8C14.2239 8 14 8.22386 14 8.5C14 8.77614 14.2239 9 14.5 9ZM15 10.5C15 10.7761 14.7761 11 14.5 11C14.2239 11 14 10.7761 14 10.5C14 10.2239 14.2239 10 14.5 10C14.7761 10 15 10.2239 15 10.5ZM14.5 13C14.7761 13 15 12.7761 15 12.5C15 12.2239 14.7761 12 14.5 12C14.2239 12 14 12.2239 14 12.5C14 12.7761 14.2239 13 14.5 13ZM14.5 15C14.7761 15 15 14.7761 15 14.5C15 14.2239 14.7761 14 14.5 14C14.2239 14 14 14.2239 14 14.5C14 14.7761 14.2239 15 14.5 15ZM8.5 11C8.77614 11 9 10.7761 9 10.5C9 10.2239 8.77614 10 8.5 10C8.22386 10 8 10.2239 8 10.5C8 10.7761 8.22386 11 8.5 11ZM9 12.5C9 12.7761 8.77614 13 8.5 13C8.22386 13 8 12.7761 8 12.5C8 12.2239 8.22386 12 8.5 12C8.77614 12 9 12.2239 9 12.5ZM8.5 15C8.77614 15 9 14.7761 9 14.5C9 14.2239 8.77614 14 8.5 14C8.22386 14 8 14.2239 8 14.5C8 14.7761 8.22386 15 8.5 15ZM11 14.5C11 14.7761 10.7761 15 10.5 15C10.2239 15 10 14.7761 10 14.5C10 14.2239 10.2239 14 10.5 14C10.7761 14 11 14.2239 11 14.5ZM12.5 15C12.7761 15 13 14.7761 13 14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5C12 14.7761 12.2239 15 12.5 15Z", + fill: n, + fillRule: "evenodd", + clipRule: "evenodd" + })); +}), Ko = ["color"], Xo = /* @__PURE__ */ ve(function(e, t) { + var r = e.color, n = r === void 0 ? "currentColor" : r, i = vt(e, Ko); + return Y("svg", Object.assign({ + width: "15", + height: "15", + viewBox: "0 0 15 15", + fill: "none", + xmlns: "http://www.w3.org/2000/svg" + }, i, { + ref: t + }), Y("path", { + d: "M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z", + fill: n, + fillRule: "evenodd", + clipRule: "evenodd" + })); +}); +const qo = N.createContext(void 0); +function Cr() { + const e = N.useContext(qo); + if (N.useEffect(() => { + e != null && e.session ? localStorage.setItem("lume-session", e.session) : localStorage.removeItem("lume-session"); + }, [e == null ? void 0 : e.session]), N.useEffect(() => { + const t = localStorage.getItem("lume-session"); + t && (e == null || e.setSession(t)); + }, []), e === void 0) + throw new Error("useLumeIndentity hook is being used outside of its context. Please ensure that it is wrapped within a ."); + return { + isSignedIn: !!e.session, + signIn: (t) => { + console.log("signing in with key", t), e.setSession("session"); + }, + signOut: () => { + e.setSession(void 0); + } + }; +} +const Jo = () => { + const { setVisibleComponent: e } = xr(); + return /* @__PURE__ */ P.jsx(oe, { className: "d411x418fllnhlf1di w-full h-12", variant: "outline", onClick: () => e(ri), children: /* @__PURE__ */ P.jsx("span", { className: "d411x418fllnhlf1di text-center text-lg font-normal leading-normal", children: "Sign in with Account Key" }) }); +}, Qo = () => { + const { signIn: e } = Cr(); + return /* @__PURE__ */ P.jsxs(ge.form, { className: "d411x418fllnhlf1di flex-col flex gap-y-4", onSubmit: (t) => { + t.preventDefault(); + const n = t.target.elements.seedPhrase.value; + e(n); + }, children: [ + /* @__PURE__ */ P.jsx(wr, { className: "d411x418fllnhlf1di h-12 w-full text-lg", name: "seedPhrase" }), + /* @__PURE__ */ P.jsx( + ge.div, + { + initial: { y: 50 }, + animate: { y: 0 }, + exit: { y: -50 }, + transition: { type: "just", delay: 0.1 }, + className: "d411x418fllnhlf1di h-12", + children: /* @__PURE__ */ P.jsx(oe, { className: "d411x418fllnhlf1di w-full h-full", role: "submit", children: /* @__PURE__ */ P.jsx("span", { className: "d411x418fllnhlf1di text-center text-lg font-normal leading-normal", children: "Sign in" }) }) + } + ) + ] }); +}, ei = () => { + const { setVisibleComponent: e } = xr(), [t, r] = N.useState(); + return /* @__PURE__ */ P.jsx( + ge.div, + { + initial: { y: 50 }, + animate: { y: 0 }, + exit: { y: -50, height: "auto" }, + transition: { type: "just", delay: 0.1 }, + className: "d411x418fllnhlf1di min-h-12 h-full max-w-full", + style: { maxWidth: t ?? "auto" }, + ref: (n) => setTimeout(() => r(n.getBoundingClientRect().width), 0), + children: /* @__PURE__ */ P.jsx(oe, { className: "d411x418fllnhlf1di w-full h-full", onClick: () => e(ni), children: /* @__PURE__ */ P.jsx("span", { className: "d411x418fllnhlf1di text-center text-lg font-normal leading-normal", children: "I get it, I'll keep it safe. Let's see the key." }) }) + } + ); +}, ti = ({ phraseLength: e = 12 }) => { + const [t, r] = N.useState("idle"), [n, i] = N.useState(0), { signIn: a } = Cr(), s = N.useMemo(() => Array(e).fill("a phrase"), [e]), l = N.useMemo(() => s.join(" "), [s]), p = () => { + navigator.clipboard.writeText(s.join(" ")), r("clicked"), setTimeout(() => r("idle"), 1e3); + }; + return /* @__PURE__ */ P.jsxs("div", { className: "d411x418fllnhlf1di relative", children: [ + /* @__PURE__ */ P.jsx(Qe, { children: n === 1 ? /* @__PURE__ */ P.jsx( + ge.div, + { + className: "z-10 absolute top-0 bottom-0 left-0 right-0 bg-black pointer-events-none", + initial: { opacity: 0 }, + animate: { opacity: 0.75, top: -200, left: -20, right: -20, bottom: 120 }, + transition: { type: "tween", duration: 0.1 } + } + ) : null }), + /* @__PURE__ */ P.jsxs("div", { className: "d411x418fllnhlf1di z-20 relative mb-2.5 w-full h-full flex-wrap justify-center items-center gap-2.5 inline-flex", children: [ + s.map((f, d) => /* @__PURE__ */ P.jsxs("div", { className: "justify-center items-center gap-2.5 flex w-[calc(33%-10px)] h-10 rounded border border-current relative ring-current text-neutral-700", children: [ + /* @__PURE__ */ P.jsx("span", { className: "d411x418fllnhlf1di text-white text-md font-normal leading-normal w-full h-fit px-2.5 bg-transparent text-center", children: f }), + /* @__PURE__ */ P.jsx("span", { className: "d411x418fllnhlf1di left-[6px] top-0 absolute text-current text-xs font-normal leading-normal", children: d + 1 }) + ] }, `SeedPhrase_${d}`)), + /* @__PURE__ */ P.jsx(Qe, { children: n === 1 ? /* @__PURE__ */ P.jsxs( + ge.div, + { + className: "d411x418fllnhlf1di text-red-400 flex flex-row gap-5 py-8", + initial: { opacity: 0, y: 50 }, + animate: { opacity: 1, y: 0 }, + exit: { opacity: 0, y: 50 }, + transition: { type: "linear", delay: 0.2, duration: 0.5 }, + children: [ + /* @__PURE__ */ P.jsx(Xo, { className: "d411x418fllnhlf1di w-14 h-14" }), + /* @__PURE__ */ P.jsx("span", { children: "Make sure to write this down for safe keeping." }) + ] + } + ) : null }), + /* @__PURE__ */ P.jsxs(oe, { className: `w-full h-12 ${t === "clicked" ? "!text-primary !border-primary" : ""}`, variant: "outline", onClick: p, children: [ + t === "clicked" ? /* @__PURE__ */ P.jsx(Yo, { className: "d411x418fllnhlf1di w-5 h-5 mr-2.5" }) : /* @__PURE__ */ P.jsx(Zo, { className: "d411x418fllnhlf1di w-5 h-5 mr-2.5" }), + t === "clicked" ? "Copied!" : "Copy Account Key" + ] }) + ] }), + n === 0 ? /* @__PURE__ */ P.jsx(oe, { className: "d411x418fllnhlf1di z-20 w-full h-12 text-white bg-neutral-700 hover:bg-neutral-800", variant: "secondary", onClick: () => i(1), children: "Continue" }) : null, + /* @__PURE__ */ P.jsx(Qe, { children: n === 1 ? /* @__PURE__ */ P.jsx( + ge.div, + { + className: "d411x418fllnhlf1di z-20 w-full h-12", + initial: { opacity: 0, y: -50 }, + animate: { opacity: 1, y: 0 }, + exit: { opacity: 0, y: 50 }, + transition: { type: "linear", delay: 2, duration: 0.5 }, + children: /* @__PURE__ */ P.jsx(oe, { className: "d411x418fllnhlf1di w-full h-full", onClick: () => a(l), children: "Sign In" }) + } + ) : null }) + ] }); +}; +We(Jo, "submit-button"); +const ri = We(Qo, "seed-phrase-input"); +We(ei, "setup-account-key"); +const ni = We(ti, "seed-phrase-form"); +export { + ii as useLume +}; +//# sourceMappingURL=lib.es.js.map diff --git a/dist/lib.es.js.map b/dist/lib.es.js.map new file mode 100644 index 0000000..1c2e544 --- /dev/null +++ b/dist/lib.es.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/dist/lib.umd.js b/dist/lib.umd.js new file mode 100644 index 0000000..1fa62a6 --- /dev/null +++ b/dist/lib.umd.js @@ -0,0 +1,36 @@ +(function(X,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],c):(X=typeof globalThis<"u"?globalThis:X||self,c(X["lume-sdk"]={},X.React))})(this,function(X,c){"use strict";function dr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const L=dr(c);var Ve={exports:{}},pe={};/** + * @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 lt;function fr(){if(lt)return pe;lt=1;var e=c,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(l,m,p){var f,u={},h=null,y=null;p!==void 0&&(h=""+p),m.key!==void 0&&(h=""+m.key),m.ref!==void 0&&(y=m.ref);for(f in m)n.call(m,f)&&!a.hasOwnProperty(f)&&(u[f]=m[f]);if(l&&l.defaultProps)for(f in m=l.defaultProps,m)u[f]===void 0&&(u[f]=m[f]);return{$$typeof:t,type:l,key:h,ref:y,props:u,_owner:i.current}}return pe.Fragment=r,pe.jsx=s,pe.jsxs=s,pe}var me={};/** + * @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 ut;function pr(){return ut||(ut=1,process.env.NODE_ENV!=="production"&&function(){var e=c,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),E=Symbol.iterator,P="@@iterator";function _(o){if(o===null||typeof o!="object")return null;var d=E&&o[E]||o[P];return typeof d=="function"?d:null}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(o){{for(var d=arguments.length,g=new Array(d>1?d-1:0),b=1;b=1&&V>=0&&C[I]!==N[V];)V--;for(;I>=1&&V>=0;I--,V--)if(C[I]!==N[V]){if(I!==1||V!==1)do if(I--,V--,V<0||C[I]!==N[V]){var W=` +`+C[I].replace(" at new "," at ");return o.displayName&&W.includes("")&&(W=W.replace("",o.displayName)),typeof o=="function"&&Ae.set(o,W),W}while(I>=1&&V>=0);break}}}finally{rt=!1,et.current=j,yo(),Error.prepareStackTrace=T}var fe=o?o.displayName||o.name:"",cr=fe?Oe(fe):"";return typeof o=="function"&&Ae.set(o,cr),cr}function wo(o,d,g){return Xt(o,!1)}function Co(o){var d=o.prototype;return!!(d&&d.isReactComponent)}function _e(o,d,g){if(o==null)return"";if(typeof o=="function")return Xt(o,Co(o));if(typeof o=="string")return Oe(o);switch(o){case p:return Oe("Suspense");case f:return Oe("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case m:return wo(o.render);case u:return _e(o.type,d,g);case h:{var b=o,T=b._payload,j=b._init;try{return _e(j(T),d,g)}catch{}}}return""}var Ie=Object.prototype.hasOwnProperty,Jt={},Qt=R.ReactDebugCurrentFrame;function Re(o){if(o){var d=o._owner,g=_e(o.type,o._source,d?d.type:null);Qt.setExtraStackFrame(g)}else Qt.setExtraStackFrame(null)}function Eo(o,d,g,b,T){{var j=Function.call.bind(Ie);for(var S in o)if(j(o,S)){var C=void 0;try{if(typeof o[S]!="function"){var N=Error((b||"React class")+": "+g+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw N.name="Invariant Violation",N}C=o[S](d,S,b,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(I){C=I}C&&!(C instanceof Error)&&(Re(T),v("%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).",b||"React class",g,S,typeof C),Re(null)),C instanceof Error&&!(C.message in Jt)&&(Jt[C.message]=!0,Re(T),v("Failed %s type: %s",g,C.message),Re(null))}}}var So=Array.isArray;function nt(o){return So(o)}function Po(o){{var d=typeof Symbol=="function"&&Symbol.toStringTag,g=d&&o[Symbol.toStringTag]||o.constructor.name||"Object";return g}}function ko(o){try{return er(o),!1}catch{return!0}}function er(o){return""+o}function tr(o){if(ko(o))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Po(o)),er(o)}var we=R.ReactCurrentOwner,To={key:!0,ref:!0,__self:!0,__source:!0},rr,nr,ot;ot={};function Mo(o){if(Ie.call(o,"ref")){var d=Object.getOwnPropertyDescriptor(o,"ref").get;if(d&&d.isReactWarning)return!1}return o.ref!==void 0}function jo(o){if(Ie.call(o,"key")){var d=Object.getOwnPropertyDescriptor(o,"key").get;if(d&&d.isReactWarning)return!1}return o.key!==void 0}function Oo(o,d){if(typeof o.ref=="string"&&we.current&&d&&we.current.stateNode!==d){var g=F(we.current.type);ot[g]||(v('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',F(we.current.type),o.ref),ot[g]=!0)}}function Ao(o,d){{var g=function(){rr||(rr=!0,v("%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))};g.isReactWarning=!0,Object.defineProperty(o,"key",{get:g,configurable:!0})}}function _o(o,d){{var g=function(){nr||(nr=!0,v("%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))};g.isReactWarning=!0,Object.defineProperty(o,"ref",{get:g,configurable:!0})}}var Io=function(o,d,g,b,T,j,S){var C={$$typeof:t,type:o,key:d,ref:g,props:S,_owner:j};return C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(C,"_self",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.defineProperty(C,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C};function Ro(o,d,g,b,T){{var j,S={},C=null,N=null;g!==void 0&&(tr(g),C=""+g),jo(d)&&(tr(d.key),C=""+d.key),Mo(d)&&(N=d.ref,Oo(d,T));for(j in d)Ie.call(d,j)&&!To.hasOwnProperty(j)&&(S[j]=d[j]);if(o&&o.defaultProps){var I=o.defaultProps;for(j in I)S[j]===void 0&&(S[j]=I[j])}if(C||N){var V=typeof o=="function"?o.displayName||o.name||"Unknown":o;C&&Ao(S,V),N&&_o(S,V)}return Io(o,C,N,T,b,we.current,S)}}var it=R.ReactCurrentOwner,or=R.ReactDebugCurrentFrame;function de(o){if(o){var d=o._owner,g=_e(o.type,o._source,d?d.type:null);or.setExtraStackFrame(g)}else or.setExtraStackFrame(null)}var at;at=!1;function st(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function ir(){{if(it.current){var o=F(it.current.type);if(o)return` + +Check the render method of \``+o+"`."}return""}}function Vo(o){{if(o!==void 0){var d=o.fileName.replace(/^.*[\\\/]/,""),g=o.lineNumber;return` + +Check your code at `+d+":"+g+"."}return""}}var ar={};function Lo(o){{var d=ir();if(!d){var g=typeof o=="string"?o:o.displayName||o.name;g&&(d=` + +Check the top-level render call using <`+g+">.")}return d}}function sr(o,d){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var g=Lo(d);if(ar[g])return;ar[g]=!0;var b="";o&&o._owner&&o._owner!==it.current&&(b=" It was passed a child from "+F(o._owner.type)+"."),de(o),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,b),de(null)}}function lr(o,d){{if(typeof o!="object")return;if(nt(o))for(var g=0;g",C=" Did you accidentally export a JSX literal instead of a component?"):I=typeof o,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,C)}var V=Ro(o,d,g,T,j);if(V==null)return V;if(S){var W=d.children;if(W!==void 0)if(b)if(nt(W)){for(var fe=0;fee.forEach(r=>hr(r,t))}const ct=c.forwardRef((e,t)=>{const{children:r,...n}=e,i=c.Children.toArray(r),a=i.find(yr);if(a){const s=a.props.children,l=i.map(m=>m===a?c.Children.count(s)>1?c.Children.only(null):c.isValidElement(s)?s.props.children:null:m);return c.createElement(Le,Ce({},n,{ref:t}),c.isValidElement(s)?c.cloneElement(s,void 0,l):null)}return c.createElement(Le,Ce({},n,{ref:t}),r)});ct.displayName="Slot";const Le=c.forwardRef((e,t)=>{const{children:r,...n}=e;return c.isValidElement(r)?c.cloneElement(r,{...xr(n,r.props),ref:t?vr(t,r.ref):r.ref}):c.Children.count(r)>1?c.Children.only(null):null});Le.displayName="SlotClone";const br=({children:e})=>c.createElement(c.Fragment,null,e);function yr(e){return c.isValidElement(e)&&e.type===br}function xr(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...l)=>{a(...l),i(...l)}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function dt(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,mt=ft,wr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return mt(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(p=>{const f=r==null?void 0:r[p],u=a==null?void 0:a[p];if(f===null)return null;const h=pt(f)||pt(u);return i[p][h]}),l=r&&Object.entries(r).reduce((p,f)=>{let[u,h]=f;return h===void 0||(p[u]=h),p},{}),m=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((p,f)=>{let{class:u,className:h,...y}=f;return Object.entries(y).every(E=>{let[P,_]=E;return Array.isArray(_)?_.includes({...a,...l}[P]):{...a,...l}[P]===_})?[...p,u,h]:p},[]);return mt(e,s,m,r==null?void 0:r.class,r==null?void 0:r.className)};function Cr(){for(var e=0,t,r,n="";ee&&(t=0,n=r,r=new Map)}return{get:function(s){var l=r.get(s);if(l!==void 0)return l;if((l=n.get(s))!==void 0)return i(s,l),l},set:function(s,l){r.has(s)?r.set(s,l):i(s,l)}}}var yt="!";function jr(e){var t=e.separator||":",r=t.length===1,n=t[0],i=t.length;return function(s){for(var l=[],m=0,p=0,f,u=0;up?f-p:void 0;return{modifiers:l,hasImportantModifier:E,baseClassName:P,maybePostfixModifierPosition:_}}}function Or(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var i=n[0]==="[";i?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function Ar(e){return{cache:Mr(e.cacheSize),splitModifiers:jr(e),...Er(e)}}var _r=/\s+/;function Ir(e,t){var r=t.splitModifiers,n=t.getClassGroupId,i=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(_r).map(function(s){var l=r(s),m=l.modifiers,p=l.hasImportantModifier,f=l.baseClassName,u=l.maybePostfixModifierPosition,h=n(u?f.substring(0,u):f),y=!!u;if(!h){if(!u)return{isTailwindClass:!1,originalClassName:s};if(h=n(f),!h)return{isTailwindClass:!1,originalClassName:s};y=!1}var E=Or(m).join(":"),P=p?E+yt:E;return{isTailwindClass:!0,modifierId:P,classGroupId:h,originalClassName:s,hasPostfixModifier:y}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var l=s.modifierId,m=s.classGroupId,p=s.hasPostfixModifier,f=l+m;return a.has(f)?!1:(a.add(f),i(m,p).forEach(function(u){return a.add(l+u)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Rr(){for(var e=arguments.length,t=new Array(e),r=0;r{const s=n?ct:"button";return k.jsx(s,{className:"d411x418fllnhlf1di "+Et(qr({variant:t,size:r,className:e})),ref:a,...i})});ee.displayName="Button";const St=c.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Se=c.createContext({}),ze=c.createContext(null),Pt=typeof document<"u",We=Pt?c.useLayoutEffect:c.useEffect,kt=c.createContext({strict:!1});function Xr(e,t,r,n){const{visualElement:i}=c.useContext(Se),a=c.useContext(kt),s=c.useContext(ze),l=c.useContext(St).reducedMotion,m=c.useRef();n=n||a.renderer,!m.current&&n&&(m.current=n(e,{visualState:t,parent:i,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const p=m.current;c.useInsertionEffect(()=>{p&&p.update(r,s)});const f=c.useRef(!!window.HandoffAppearAnimations);return We(()=>{p&&(p.render(),f.current&&p.animationState&&p.animationState.animateChanges())}),c.useEffect(()=>{p&&(p.updateFeatures(),!f.current&&p.animationState&&p.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,f.current=!1)}),p}function Jr(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Qr(e,t,r){return c.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Jr(r)&&(r.current=n))},[t])}function Ge(e){return typeof e=="string"||Array.isArray(e)}function Tt(e){return typeof e=="object"&&typeof e.start=="function"}const en=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function De(e){return Tt(e.animate)||en.some(t=>Ge(e[t]))}function tn(e){return!!(De(e)||e.variants)}function rn(e,t){if(De(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Ge(r)?r:void 0,animate:Ge(n)?n:void 0}}return e.inherit!==!1?t:{}}function nn(e){const{initial:t,animate:r}=rn(e,c.useContext(Se));return c.useMemo(()=>({initial:t,animate:r}),[Mt(t),Mt(r)])}function Mt(e){return Array.isArray(e)?e.join(" "):e}const jt={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Be={};for(const e in jt)Be[e]={isEnabled:t=>jt[e].some(r=>!!t[r])};function on(e){for(const t in e)Be[t]={...Be[t],...e[t]}}const Ot=c.createContext({}),an=c.createContext({}),sn=Symbol.for("motionComponentSymbol");function ln({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&on(e);function a(l,m){let p;const f={...c.useContext(St),...l,layoutId:un(l)},{isStatic:u}=f,h=nn(l),y=n(l,u);if(!u&&Pt){h.visualElement=Xr(i,y,f,t);const E=c.useContext(an),P=c.useContext(kt).strict;h.visualElement&&(p=h.visualElement.loadFeatures(f,P,e,E))}return L.createElement(Se.Provider,{value:h},p&&h.visualElement?L.createElement(p,{visualElement:h.visualElement,...f}):null,r(i,l,Qr(y,h.visualElement,m),y,u,h.visualElement))}const s=c.forwardRef(a);return s[sn]=i,s}function un({layoutId:e}){const t=c.useContext(Ot).id;return t&&e!==void 0?t+"-"+e:e}function cn(e){function t(n,i={}){return ln(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const dn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function At(e){return typeof e!="string"||e.includes("-")?!1:!!(dn.indexOf(e)>-1||/[A-Z]/.test(e))}const fn={},Pe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_t=new Set(Pe);function It(e,{layout:t,layoutId:r}){return _t.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!fn[e]||e==="opacity")}const te=e=>!!(e&&e.getVelocity),pn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mn=Pe.length;function gn(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let a="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e))("--"),vn=(e,t)=>t&&typeof e=="number"?t.transform(e):e,bn=(e,t,r)=>Math.min(Math.max(r,e),t),He={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ye={...He,transform:e=>bn(0,1,e)},ke={...He,default:1};function yn(e){return typeof e=="string"}const Ue=e=>({test:t=>yn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),re=Ue("deg"),Ze=Ue("%"),x=Ue("px"),Rt={...Ze,parse:e=>Ze.parse(e)/100,transform:e=>Ze.transform(e*100)},Vt={...He,transform:Math.round},xn={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,size:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,rotate:re,rotateX:re,rotateY:re,rotateZ:re,scale:ke,scaleX:ke,scaleY:ke,scaleZ:ke,skew:re,skewX:re,skewY:re,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:Ye,originX:Rt,originY:Rt,originZ:x,zIndex:Vt,fillOpacity:Ye,strokeOpacity:Ye,numOctaves:Vt};function Lt(e,t,r,n){const{style:i,vars:a,transform:s,transformOrigin:l}=e;let m=!1,p=!1,f=!0;for(const u in t){const h=t[u];if(hn(u)){a[u]=h;continue}const y=xn[u],E=vn(h,y);if(_t.has(u)){if(m=!0,s[u]=E,!f)continue;h!==(y.default||0)&&(f=!1)}else u.startsWith("origin")?(p=!0,l[u]=E):i[u]=E}if(t.transform||(m||n?i.transform=gn(e.transform,r,f,n):i.transform&&(i.transform="none")),p){const{originX:u="50%",originY:h="50%",originZ:y=0}=l;i.transformOrigin=`${u} ${h} ${y}`}}const Ke=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $t(e,t,r){for(const n in t)!te(t[n])&&!It(n,r)&&(e[n]=t[n])}function wn({transformTemplate:e},t,r){return c.useMemo(()=>{const n=Ke();return Lt(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Cn(e,t,r){const n=e.style||{},i={};return $t(i,n,e),Object.assign(i,wn(e,t,r)),e.transformValues?e.transformValues(i):i}function En(e,t,r){const n={},i=Cn(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const Sn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Te(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Sn.has(e)}let Nt=e=>!Te(e);function Pn(e){e&&(Nt=t=>t.startsWith("on")?!Te(t):e(t))}try{Pn(require("@emotion/is-prop-valid").default)}catch{}function kn(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(Nt(i)||r===!0&&Te(i)||!t&&!Te(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function Ft(e,t,r){return typeof e=="string"?e:x.transform(t+r*e)}function Tn(e,t,r){const n=Ft(t,e.x,e.width),i=Ft(r,e.y,e.height);return`${n} ${i}`}const Mn={offset:"stroke-dashoffset",array:"stroke-dasharray"},jn={offset:"strokeDashoffset",array:"strokeDasharray"};function On(e,t,r=1,n=0,i=!0){e.pathLength=1;const a=i?Mn:jn;e[a.offset]=x.transform(-n);const s=x.transform(t),l=x.transform(r);e[a.array]=`${s} ${l}`}function zt(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:a,pathLength:s,pathSpacing:l=1,pathOffset:m=0,...p},f,u,h){if(Lt(e,p,f,h),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:E,dimensions:P}=e;y.transform&&(P&&(E.transform=y.transform),delete y.transform),P&&(i!==void 0||a!==void 0||E.transform)&&(E.transformOrigin=Tn(P,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(y.x=t),r!==void 0&&(y.y=r),n!==void 0&&(y.scale=n),s!==void 0&&On(y,s,l,m,!1)}const Wt=()=>({...Ke(),attrs:{}}),Gt=e=>typeof e=="string"&&e.toLowerCase()==="svg";function An(e,t,r,n){const i=c.useMemo(()=>{const a=Wt();return zt(a,t,{enableHardwareAcceleration:!1},Gt(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};$t(a,e.style,e),i.style={...a,...i.style}}return i}function _n(e=!1){return(r,n,i,{latestValues:a},s)=>{const m=(At(r)?An:En)(n,a,s,r),f={...kn(n,typeof r=="string",e),...m,ref:i},{children:u}=n,h=c.useMemo(()=>te(u)?u.get():u,[u]);return c.createElement(r,{...f,children:h})}}const In=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Rn(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const Vn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ln(e,t,r,n){Rn(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(Vn.has(i)?i:In(i),t.attrs[i])}function Dt(e,t){const{style:r}=e,n={};for(const i in r)(te(r[i])||t.style&&te(t.style[i])||It(i,e))&&(n[i]=r[i]);return n}function $n(e,t){const r=Dt(e,t);for(const n in e)if(te(e[n])||te(t[n])){const i=Pe.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function Nn(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function Bt(e){const t=c.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fn=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue);function zn(e){const t=te(e)?e.get():e;return Fn(t)?t.toValue():t}function Wn({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,a){const s={latestValues:Gn(n,i,a,e),renderState:t()};return r&&(s.mount=l=>r(n,l,s)),s}const Ht=e=>(t,r)=>{const n=c.useContext(Se),i=c.useContext(ze),a=()=>Wn(e,t,n,i);return r?a():Bt(a)};function Gn(e,t,r,n){const i={},a=n(e,{});for(const h in a)i[h]=zn(a[h]);let{initial:s,animate:l}=e;const m=De(e),p=tn(e);t&&p&&!m&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let f=r?r.initial===!1:!1;f=f||s===!1;const u=f?l:s;return u&&typeof u!="boolean"&&!Tt(u)&&(Array.isArray(u)?u:[u]).forEach(y=>{const E=Nn(e,y);if(!E)return;const{transitionEnd:P,transition:_,...R}=E;for(const v in R){let A=R[v];if(Array.isArray(A)){const D=f?A.length-1:0;A=A[D]}A!==null&&(i[v]=A)}for(const v in P)i[v]=P[v]}),i}const Dn=e=>e;class Yt{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Bn(e){let t=new Yt,r=new Yt,n=0,i=!1,a=!1;const s=new WeakSet,l={schedule:(m,p=!1,f=!1)=>{const u=f&&i,h=u?t:r;return p&&s.add(m),h.add(m)&&u&&i&&(n=t.order.length),m},cancel:m=>{r.remove(m),s.delete(m)},process:m=>{if(i){a=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let p=0;p(u[h]=Bn(()=>r=!0),u),{}),s=u=>a[u].process(i),l=()=>{const u=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(u-i.timestamp,Hn),1),i.timestamp=u,i.isProcessing=!0,Me.forEach(s),i.isProcessing=!1,r&&t&&(n=!1,e(l))},m=()=>{r=!0,n=!0,i.isProcessing||e(l)};return{schedule:Me.reduce((u,h)=>{const y=a[h];return u[h]=(E,P=!1,_=!1)=>(r||m(),y.schedule(E,P,_)),u},{}),cancel:u=>Me.forEach(h=>a[h].cancel(u)),state:i,steps:a}}const{schedule:qe,cancel:Ho,state:Yo,steps:Uo}=Yn(typeof requestAnimationFrame<"u"?requestAnimationFrame:Dn,!0),Un={useVisualState:Ht({scrapeMotionValuesFromProps:$n,createRenderState:Wt,onMount:(e,t,{renderState:r,latestValues:n})=>{qe.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),qe.render(()=>{zt(r,n,{enableHardwareAcceleration:!1},Gt(t.tagName),e.transformTemplate),Ln(t,r)})}})},Zn={useVisualState:Ht({scrapeMotionValuesFromProps:Dt,createRenderState:Ke})};function Kn(e,{forwardMotionProps:t=!1},r,n){return{...At(e)?Un:Zn,preloadedFeatures:r,useRender:_n(t),createVisualElement:n,Component:e}}const ie=cn(Kn);function Ut(){const e=c.useRef(!1);return We(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function qn(){const e=Ut(),[t,r]=c.useState(0),n=c.useCallback(()=>{e.current&&r(t+1)},[t]);return[c.useCallback(()=>qe.postRender(n),[n]),t]}class Xn extends L.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Jn({children:e,isPresent:t}){const r=c.useId(),n=c.useRef(null),i=c.useRef({width:0,height:0,top:0,left:0});return c.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:m}=i.current;if(t||!n.current||!a||!s)return;n.current.dataset.motionPopId=r;const p=document.createElement("style");return document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${a}px !important; + height: ${s}px !important; + top: ${l}px !important; + left: ${m}px !important; + } + `),()=>{document.head.removeChild(p)}},[t]),L.createElement(Xn,{isPresent:t,childRef:n,sizeRef:i},L.cloneElement(e,{ref:n}))}const Xe=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:s})=>{const l=Bt(Qn),m=c.useId(),p=c.useMemo(()=>({id:m,initial:t,isPresent:r,custom:i,onExitComplete:f=>{l.set(f,!0);for(const u of l.values())if(!u)return;n&&n()},register:f=>(l.set(f,!1),()=>l.delete(f))}),a?void 0:[r]);return c.useMemo(()=>{l.forEach((f,u)=>l.set(u,!1))},[r]),L.useEffect(()=>{!r&&!l.size&&n&&n()},[r]),s==="popLayout"&&(e=L.createElement(Jn,{isPresent:r},e)),L.createElement(ze.Provider,{value:p},e)};function Qn(){return new Map}function eo(e){return c.useEffect(()=>()=>e(),[])}const ae=e=>e.key||"";function to(e,t){e.forEach(r=>{const n=ae(r);t.set(n,r)})}function ro(e){const t=[];return c.Children.forEach(e,r=>{c.isValidElement(r)&&t.push(r)}),t}const Je=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{const l=c.useContext(Ot).forceRender||qn()[0],m=Ut(),p=ro(e);let f=p;const u=c.useRef(new Map).current,h=c.useRef(f),y=c.useRef(new Map).current,E=c.useRef(!0);if(We(()=>{E.current=!1,to(p,y),h.current=f}),eo(()=>{E.current=!0,y.clear(),u.clear()}),E.current)return L.createElement(L.Fragment,null,f.map(v=>L.createElement(Xe,{key:ae(v),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:s},v)));f=[...f];const P=h.current.map(ae),_=p.map(ae),R=P.length;for(let v=0;v{if(_.indexOf(A)!==-1)return;const D=y.get(A);if(!D)return;const se=P.indexOf(A);let B=v;if(!B){const le=()=>{y.delete(A),u.delete(A);const ue=h.current.findIndex(U=>U.key===A);if(h.current.splice(ue,1),!u.size){if(h.current=p,m.current===!1)return;l(),n&&n()}};B=L.createElement(Xe,{key:ae(D),isPresent:!1,onExitComplete:le,custom:t,presenceAffectsLayout:a,mode:s},D),u.set(A,B)}f.splice(se,0,B)}),f=f.map(v=>{const A=v.key;return u.has(A)?v:L.createElement(Xe,{key:ae(v),isPresent:!0,presenceAffectsLayout:a,mode:s},v)}),process.env.NODE_ENV!=="production"&&s==="wait"&&f.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),L.createElement(L.Fragment,null,u.size?f:f.map(v=>c.cloneElement(v)))},no=c.createContext(void 0);function Zt(e){const t=c.useContext(no);if(t===void 0)throw new Error("useSwitchableComponent hook is being used outside of its context. Please ensure that it is wrapped within a .");return c.useEffect(()=>{e&&t.visibleComponent&&t.setVisibleComponent(e)},[e]),t}Symbol("DEFAULT_COMPONENT").toString();function je(e,t){return{render(r){return k.jsx(e,{...r})},index:t||Symbol(e.name).toString()}}const Kt=L.forwardRef(({className:e,type:t,...r},n)=>k.jsx("input",{type:t,className:"d411x418fllnhlf1di "+Et("flex h-9 w-full text-white rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 focus:border-white",e),ref:n,...r}));Kt.displayName="Input";function Qe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var oo=["color"],io=c.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Qe(e,oo);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),c.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),ao=["color"],so=c.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Qe(e,ao);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),c.createElement("path",{d:"M5 2V1H10V2H5ZM4.75 0C4.33579 0 4 0.335786 4 0.75V1H3.5C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H7V13H3.5C3.22386 13 3 12.7761 3 12.5V2.5C3 2.22386 3.22386 2 3.5 2H4V2.25C4 2.66421 4.33579 3 4.75 3H10.25C10.6642 3 11 2.66421 11 2.25V2H11.5C11.7761 2 12 2.22386 12 2.5V7H13V2.5C13 1.67157 12.3284 1 11.5 1H11V0.75C11 0.335786 10.6642 0 10.25 0H4.75ZM9 8.5C9 8.77614 8.77614 9 8.5 9C8.22386 9 8 8.77614 8 8.5C8 8.22386 8.22386 8 8.5 8C8.77614 8 9 8.22386 9 8.5ZM10.5 9C10.7761 9 11 8.77614 11 8.5C11 8.22386 10.7761 8 10.5 8C10.2239 8 10 8.22386 10 8.5C10 8.77614 10.2239 9 10.5 9ZM13 8.5C13 8.77614 12.7761 9 12.5 9C12.2239 9 12 8.77614 12 8.5C12 8.22386 12.2239 8 12.5 8C12.7761 8 13 8.22386 13 8.5ZM14.5 9C14.7761 9 15 8.77614 15 8.5C15 8.22386 14.7761 8 14.5 8C14.2239 8 14 8.22386 14 8.5C14 8.77614 14.2239 9 14.5 9ZM15 10.5C15 10.7761 14.7761 11 14.5 11C14.2239 11 14 10.7761 14 10.5C14 10.2239 14.2239 10 14.5 10C14.7761 10 15 10.2239 15 10.5ZM14.5 13C14.7761 13 15 12.7761 15 12.5C15 12.2239 14.7761 12 14.5 12C14.2239 12 14 12.2239 14 12.5C14 12.7761 14.2239 13 14.5 13ZM14.5 15C14.7761 15 15 14.7761 15 14.5C15 14.2239 14.7761 14 14.5 14C14.2239 14 14 14.2239 14 14.5C14 14.7761 14.2239 15 14.5 15ZM8.5 11C8.77614 11 9 10.7761 9 10.5C9 10.2239 8.77614 10 8.5 10C8.22386 10 8 10.2239 8 10.5C8 10.7761 8.22386 11 8.5 11ZM9 12.5C9 12.7761 8.77614 13 8.5 13C8.22386 13 8 12.7761 8 12.5C8 12.2239 8.22386 12 8.5 12C8.77614 12 9 12.2239 9 12.5ZM8.5 15C8.77614 15 9 14.7761 9 14.5C9 14.2239 8.77614 14 8.5 14C8.22386 14 8 14.2239 8 14.5C8 14.7761 8.22386 15 8.5 15ZM11 14.5C11 14.7761 10.7761 15 10.5 15C10.2239 15 10 14.7761 10 14.5C10 14.2239 10.2239 14 10.5 14C10.7761 14 11 14.2239 11 14.5ZM12.5 15C12.7761 15 13 14.7761 13 14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5C12 14.7761 12.2239 15 12.5 15Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),lo=["color"],uo=c.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Qe(e,lo);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),c.createElement("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});const co=c.createContext(void 0);function qt(){const e=c.useContext(co);if(c.useEffect(()=>{e!=null&&e.session?localStorage.setItem("lume-session",e.session):localStorage.removeItem("lume-session")},[e==null?void 0:e.session]),c.useEffect(()=>{const t=localStorage.getItem("lume-session");t&&(e==null||e.setSession(t))},[]),e===void 0)throw new Error("useLumeIndentity hook is being used outside of its context. Please ensure that it is wrapped within a .");return{isSignedIn:!!e.session,signIn:t=>{console.log("signing in with key",t),e.setSession("session")},signOut:()=>{e.setSession(void 0)}}}const fo=()=>{const{setVisibleComponent:e}=Zt();return k.jsx(ee,{className:"d411x418fllnhlf1di w-full h-12",variant:"outline",onClick:()=>e(ho),children:k.jsx("span",{className:"d411x418fllnhlf1di text-center text-lg font-normal leading-normal",children:"Sign in with Account Key"})})},po=()=>{const{signIn:e}=qt();return k.jsxs(ie.form,{className:"d411x418fllnhlf1di flex-col flex gap-y-4",onSubmit:t=>{t.preventDefault();const n=t.target.elements.seedPhrase.value;e(n)},children:[k.jsx(Kt,{className:"d411x418fllnhlf1di h-12 w-full text-lg",name:"seedPhrase"}),k.jsx(ie.div,{initial:{y:50},animate:{y:0},exit:{y:-50},transition:{type:"just",delay:.1},className:"d411x418fllnhlf1di h-12",children:k.jsx(ee,{className:"d411x418fllnhlf1di w-full h-full",role:"submit",children:k.jsx("span",{className:"d411x418fllnhlf1di text-center text-lg font-normal leading-normal",children:"Sign in"})})})]})},mo=()=>{const{setVisibleComponent:e}=Zt(),[t,r]=c.useState();return k.jsx(ie.div,{initial:{y:50},animate:{y:0},exit:{y:-50,height:"auto"},transition:{type:"just",delay:.1},className:"d411x418fllnhlf1di min-h-12 h-full max-w-full",style:{maxWidth:t??"auto"},ref:n=>setTimeout(()=>r(n.getBoundingClientRect().width),0),children:k.jsx(ee,{className:"d411x418fllnhlf1di w-full h-full",onClick:()=>e(vo),children:k.jsx("span",{className:"d411x418fllnhlf1di text-center text-lg font-normal leading-normal",children:"I get it, I'll keep it safe. Let's see the key."})})})},go=({phraseLength:e=12})=>{const[t,r]=c.useState("idle"),[n,i]=c.useState(0),{signIn:a}=qt(),s=c.useMemo(()=>Array(e).fill("a phrase"),[e]),l=c.useMemo(()=>s.join(" "),[s]),m=()=>{navigator.clipboard.writeText(s.join(" ")),r("clicked"),setTimeout(()=>r("idle"),1e3)};return k.jsxs("div",{className:"d411x418fllnhlf1di relative",children:[k.jsx(Je,{children:n===1?k.jsx(ie.div,{className:"z-10 absolute top-0 bottom-0 left-0 right-0 bg-black pointer-events-none",initial:{opacity:0},animate:{opacity:.75,top:-200,left:-20,right:-20,bottom:120},transition:{type:"tween",duration:.1}}):null}),k.jsxs("div",{className:"d411x418fllnhlf1di z-20 relative mb-2.5 w-full h-full flex-wrap justify-center items-center gap-2.5 inline-flex",children:[s.map((p,f)=>k.jsxs("div",{className:"justify-center items-center gap-2.5 flex w-[calc(33%-10px)] h-10 rounded border border-current relative ring-current text-neutral-700",children:[k.jsx("span",{className:"d411x418fllnhlf1di text-white text-md font-normal leading-normal w-full h-fit px-2.5 bg-transparent text-center",children:p}),k.jsx("span",{className:"d411x418fllnhlf1di left-[6px] top-0 absolute text-current text-xs font-normal leading-normal",children:f+1})]},`SeedPhrase_${f}`)),k.jsx(Je,{children:n===1?k.jsxs(ie.div,{className:"d411x418fllnhlf1di text-red-400 flex flex-row gap-5 py-8",initial:{opacity:0,y:50},animate:{opacity:1,y:0},exit:{opacity:0,y:50},transition:{type:"linear",delay:.2,duration:.5},children:[k.jsx(uo,{className:"d411x418fllnhlf1di w-14 h-14"}),k.jsx("span",{children:"Make sure to write this down for safe keeping."})]}):null}),k.jsxs(ee,{className:`w-full h-12 ${t==="clicked"?"!text-primary !border-primary":""}`,variant:"outline",onClick:m,children:[t==="clicked"?k.jsx(io,{className:"d411x418fllnhlf1di w-5 h-5 mr-2.5"}):k.jsx(so,{className:"d411x418fllnhlf1di w-5 h-5 mr-2.5"}),t==="clicked"?"Copied!":"Copy Account Key"]})]}),n===0?k.jsx(ee,{className:"d411x418fllnhlf1di z-20 w-full h-12 text-white bg-neutral-700 hover:bg-neutral-800",variant:"secondary",onClick:()=>i(1),children:"Continue"}):null,k.jsx(Je,{children:n===1?k.jsx(ie.div,{className:"d411x418fllnhlf1di z-20 w-full h-12",initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:50},transition:{type:"linear",delay:2,duration:.5},children:k.jsx(ee,{className:"d411x418fllnhlf1di w-full h-full",onClick:()=>a(l),children:"Sign In"})}):null})]})};je(fo,"submit-button");const ho=je(po,"seed-phrase-input");je(mo,"setup-account-key");const vo=je(go,"seed-phrase-form"),Zo="";X.useLume=gr,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})}); +//# sourceMappingURL=lib.umd.js.map diff --git a/dist/lib.umd.js.map b/dist/lib.umd.js.map new file mode 100644 index 0000000..a507561 --- /dev/null +++ b/dist/lib.umd.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/dist/manifest.json b/dist/manifest.json new file mode 100644 index 0000000..b1b23b8 --- /dev/null +++ b/dist/manifest.json @@ -0,0 +1,11 @@ +{ + "src/main.ts": { + "file": "lib.umd.js", + "isEntry": true, + "src": "src/main.ts" + }, + "style.css": { + "file": "style.css", + "src": "style.css" + } +} \ No newline at end of file diff --git a/dist/package.json b/dist/package.json new file mode 100644 index 0000000..27a845a --- /dev/null +++ b/dist/package.json @@ -0,0 +1 @@ +{"name":"@lume-sdk/components","version":"0.0.0","main":"./lib.umd.js","module":"./lib.es.js","types":"./src/main.d.ts","files":["./src","./style.css"],"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"}} diff --git a/dist/src/components/SwitchableComponent.d.ts b/dist/src/components/SwitchableComponent.d.ts new file mode 100644 index 0000000..74f6424 --- /dev/null +++ b/dist/src/components/SwitchableComponent.d.ts @@ -0,0 +1,19 @@ +import React from "react"; +export declare const SwitchableComponentProvider: ({ children }: React.PropsWithChildren) => import("react/jsx-runtime").JSX.Element; +export declare function useSwitchableComponent(initialValue?: SwitchableComponentType): SwitchableComponentContextType; +export declare const SwitchableComponent: ({ children, index }: React.PropsWithChildren<{ + index: string; +}>) => import("react/jsx-runtime").JSX.Element; +type SwitchableComponentType = { + index: string; + render: (props: T | any) => ReturnType; +}; +type SwitchableComponentContextType = { + visibleComponent: SwitchableComponentType; + setVisibleComponent: React.Dispatch | undefined>>; +}; +export declare function makeSwitchable(Component: React.FC, index: string): { + render(props: T): import("react/jsx-runtime").JSX.Element; + index: string; +}; +export {}; diff --git a/dist/src/components/lume/LumeDashboard/LumeDashboard.d.ts b/dist/src/components/lume/LumeDashboard/LumeDashboard.d.ts new file mode 100644 index 0000000..44320ad --- /dev/null +++ b/dist/src/components/lume/LumeDashboard/LumeDashboard.d.ts @@ -0,0 +1,2 @@ +declare const LumeDashboard: () => import("react/jsx-runtime").JSX.Element; +export default LumeDashboard; diff --git a/dist/src/components/lume/LumeIdentity/LumeIdentity.d.ts b/dist/src/components/lume/LumeIdentity/LumeIdentity.d.ts new file mode 100644 index 0000000..40767a0 --- /dev/null +++ b/dist/src/components/lume/LumeIdentity/LumeIdentity.d.ts @@ -0,0 +1 @@ +export default function Wrapped(): import("react/jsx-runtime").JSX.Element; diff --git a/dist/src/components/lume/LumeIdentity/LumeIdentityContext.d.ts b/dist/src/components/lume/LumeIdentity/LumeIdentityContext.d.ts new file mode 100644 index 0000000..6db48aa --- /dev/null +++ b/dist/src/components/lume/LumeIdentity/LumeIdentityContext.d.ts @@ -0,0 +1,11 @@ +import React from "react"; +export type Session = string; +export declare const LumeIdentityContext: React.Context<{ + session: Session | undefined; + setSession: React.Dispatch>; +} | undefined>; +export declare function useLumeIndentity(): { + isSignedIn: boolean; + signIn: (key: string) => void; + signOut: () => void; +}; diff --git a/dist/src/components/lume/LumeIdentity/components.d.ts b/dist/src/components/lume/LumeIdentity/components.d.ts new file mode 100644 index 0000000..f9aa0fe --- /dev/null +++ b/dist/src/components/lume/LumeIdentity/components.d.ts @@ -0,0 +1,18 @@ +export declare const SubmitButton: { + render(props: {}): import("react/jsx-runtime").JSX.Element; + index: string; +}; +export declare const SeedPhraseInput: { + render(props: {}): import("react/jsx-runtime").JSX.Element; + index: string; +}; +export declare const SetupAccountKey: { + render(props: {}): import("react/jsx-runtime").JSX.Element; + index: string; +}; +export declare const SeedPhraseGeneration: { + render(props: { + phraseLength?: number | undefined; + }): import("react/jsx-runtime").JSX.Element; + index: string; +}; diff --git a/dist/src/components/lume/LumeProvider.d.ts b/dist/src/components/lume/LumeProvider.d.ts new file mode 100644 index 0000000..7637e38 --- /dev/null +++ b/dist/src/components/lume/LumeProvider.d.ts @@ -0,0 +1,21 @@ +import React from 'react'; +type LumeSyncState = 'syncing' | 'done' | 'error'; +export type Chain = { + syncState: LumeSyncState; + name: string; + chainId: string; + active: boolean; + progress: number; + logs: string[]; + type: 'blockchain' | 'content'; + peerCount?: number; +}; +type LumeObject = { + chains: Chain[]; + activeResolver: 'local' | 'rpc'; +}; +declare const LumeProvider: ({ children }: { + children: React.ReactNode; +}) => import("react/jsx-runtime").JSX.Element; +export default LumeProvider; +export declare function useLume(): LumeObject; diff --git a/dist/src/components/ui/button.d.ts b/dist/src/components/ui/button.d.ts new file mode 100644 index 0000000..80a891c --- /dev/null +++ b/dist/src/components/ui/button.d.ts @@ -0,0 +1,11 @@ +import * as React from "react"; +import { type VariantProps } from "class-variance-authority"; +declare const buttonVariants: (props?: ({ + variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined; + size?: "default" | "sm" | "lg" | "icon" | null | undefined; +} & import("class-variance-authority/types").ClassProp) | undefined) => string; +export interface ButtonProps extends React.ButtonHTMLAttributes, VariantProps { + asChild?: boolean; +} +declare const Button: React.ForwardRefExoticComponent>; +export { Button, buttonVariants }; diff --git a/dist/src/components/ui/input.d.ts b/dist/src/components/ui/input.d.ts new file mode 100644 index 0000000..b239b63 --- /dev/null +++ b/dist/src/components/ui/input.d.ts @@ -0,0 +1,5 @@ +import * as React from "react"; +export interface InputProps extends React.InputHTMLAttributes { +} +declare const Input: React.ForwardRefExoticComponent>; +export { Input }; diff --git a/dist/src/components/utils.d.ts b/dist/src/components/utils.d.ts new file mode 100644 index 0000000..d219a42 --- /dev/null +++ b/dist/src/components/utils.d.ts @@ -0,0 +1,2 @@ +import { type ClassValue } from "clsx"; +export declare function cn(...inputs: ClassValue[]): string; diff --git a/dist/src/main.d.ts b/dist/src/main.d.ts new file mode 100644 index 0000000..83aefa5 --- /dev/null +++ b/dist/src/main.d.ts @@ -0,0 +1,3 @@ +export * from './components/lume/LumeProvider'; +export * from './components/lume/LumeDashboard/LumeDashboard'; +export * from './components/lume/LumeIdentity/LumeIdentity'; diff --git a/dist/style.css b/dist/style.css new file mode 100644 index 0000000..8d99a0e --- /dev/null +++ b/dist/style.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 113 49% 55%;--primary-foreground: black;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 0 0% 32%;--muted-foreground: 0 0% 32%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 0 0% 32%;--input: 0 0% 32%;--ring: 222.2 84% 4.9%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.d411x418fllnhlf1di.pointer-events-none{pointer-events:none}.d411x418fllnhlf1di.fixed{position:fixed}.d411x418fllnhlf1di.absolute{position:absolute}.d411x418fllnhlf1di.relative{position:relative}.d411x418fllnhlf1di.inset-0{top:0;right:0;bottom:0;left:0}.d411x418fllnhlf1di.-left-1\/2{left:-50%}.d411x418fllnhlf1di.bottom-0{bottom:0}.d411x418fllnhlf1di.left-0{left:0}.d411x418fllnhlf1di.left-\[168px\]{left:168px}.d411x418fllnhlf1di.left-\[6px\]{left:6px}.d411x418fllnhlf1di.right-0{right:0}.d411x418fllnhlf1di.top-0{top:0}.d411x418fllnhlf1di.top-\[-8px\]{top:-8px}.d411x418fllnhlf1di.z-10{z-index:10}.d411x418fllnhlf1di.z-20{z-index:20}.d411x418fllnhlf1di.z-40{z-index:40}.d411x418fllnhlf1di.z-50{z-index:50}.d411x418fllnhlf1di.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.d411x418fllnhlf1di.-mt-1{margin-top:-.25rem}.d411x418fllnhlf1di.mb-2{margin-bottom:.5rem}.d411x418fllnhlf1di.mb-2\.d411x418fllnhlf1di.5{margin-bottom:.625rem}.d411x418fllnhlf1di.mb-4{margin-bottom:1rem}.d411x418fllnhlf1di.mb-8{margin-bottom:2rem}.d411x418fllnhlf1di.mr-2{margin-right:.5rem}.d411x418fllnhlf1di.mr-2\.d411x418fllnhlf1di.5{margin-right:.625rem}.d411x418fllnhlf1di.mt-4{margin-top:1rem}.d411x418fllnhlf1di.flex{display:flex}.d411x418fllnhlf1di.inline-flex{display:inline-flex}.d411x418fllnhlf1di.grid{display:grid}.d411x418fllnhlf1di.hidden{display:none}.d411x418fllnhlf1di.h-10{height:2.5rem}.d411x418fllnhlf1di.h-12{height:3rem}.d411x418fllnhlf1di.h-14{height:3.5rem}.d411x418fllnhlf1di.h-5{height:1.25rem}.d411x418fllnhlf1di.h-64{height:16rem}.d411x418fllnhlf1di.h-7{height:1.75rem}.d411x418fllnhlf1di.h-8{height:2rem}.d411x418fllnhlf1di.h-9{height:2.25rem}.d411x418fllnhlf1di.h-fit{height:-moz-fit-content;height:fit-content}.d411x418fllnhlf1di.h-full{height:100%}.d411x418fllnhlf1di.w-14{width:3.5rem}.d411x418fllnhlf1di.w-24{width:6rem}.d411x418fllnhlf1di.w-5{width:1.25rem}.d411x418fllnhlf1di.w-9{width:2.25rem}.d411x418fllnhlf1di.w-96{width:24rem}.d411x418fllnhlf1di.w-\[280px\]{width:280px}.d411x418fllnhlf1di.w-\[300px\]{width:300px}.d411x418fllnhlf1di.w-\[calc\(100\%\+38px\)\]{width:calc(100% + 38px)}.d411x418fllnhlf1di.w-\[calc\(33\%-10px\)\]{width:calc(33% - 10px)}.d411x418fllnhlf1di.w-full{width:100%}.d411x418fllnhlf1di.max-w-full{max-width:100%}.d411x418fllnhlf1di.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.d411x418fllnhlf1di.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.d411x418fllnhlf1di.flex-row{flex-direction:row}.d411x418fllnhlf1di.flex-col{flex-direction:column}.d411x418fllnhlf1di.flex-wrap{flex-wrap:wrap}.d411x418fllnhlf1di.items-start{align-items:flex-start}.d411x418fllnhlf1di.items-center{align-items:center}.d411x418fllnhlf1di.justify-start{justify-content:flex-start}.d411x418fllnhlf1di.justify-center{justify-content:center}.d411x418fllnhlf1di.gap-10{gap:2.5rem}.d411x418fllnhlf1di.gap-2{gap:.5rem}.d411x418fllnhlf1di.gap-2\.d411x418fllnhlf1di.5{gap:.625rem}.d411x418fllnhlf1di.gap-5{gap:1.25rem}.d411x418fllnhlf1di.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.d411x418fllnhlf1di.gap-y-4{row-gap:1rem}.d411x418fllnhlf1di.overflow-hidden{overflow:hidden}.d411x418fllnhlf1di.rounded{border-radius:.25rem}.d411x418fllnhlf1di.rounded-md{border-radius:calc(var(--radius) - 2px)}.d411x418fllnhlf1di.border{border-width:1px}.d411x418fllnhlf1di.border-b{border-bottom-width:1px}.d411x418fllnhlf1di.border-l{border-left-width:1px}.d411x418fllnhlf1di.\!border-primary{border-color:hsl(var(--primary))!important}.d411x418fllnhlf1di.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.d411x418fllnhlf1di.border-current{border-color:currentColor}.d411x418fllnhlf1di.border-input{border-color:hsl(var(--input))}.d411x418fllnhlf1di.border-neutral-900{--tw-border-opacity: 1;border-color:rgb(23 23 23 / var(--tw-border-opacity))}.d411x418fllnhlf1di.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.d411x418fllnhlf1di.bg-black\/90{background-color:#000000e6}.d411x418fllnhlf1di.bg-destructive{background-color:hsl(var(--destructive))}.d411x418fllnhlf1di.bg-neutral-700{--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity))}.d411x418fllnhlf1di.bg-neutral-950{--tw-bg-opacity: 1;background-color:rgb(10 10 10 / var(--tw-bg-opacity))}.d411x418fllnhlf1di.bg-primary{background-color:hsl(var(--primary))}.d411x418fllnhlf1di.bg-secondary{background-color:hsl(var(--secondary))}.d411x418fllnhlf1di.bg-transparent{background-color:transparent}.d411x418fllnhlf1di.bg-zinc-950{--tw-bg-opacity: 1;background-color:rgb(9 9 11 / var(--tw-bg-opacity))}.d411x418fllnhlf1di.bg-opacity-50{--tw-bg-opacity: .5}.d411x418fllnhlf1di.p-2{padding:.5rem}.d411x418fllnhlf1di.p-5{padding:1.25rem}.d411x418fllnhlf1di.px-2{padding-left:.5rem;padding-right:.5rem}.d411x418fllnhlf1di.px-2\.d411x418fllnhlf1di.5{padding-left:.625rem;padding-right:.625rem}.d411x418fllnhlf1di.px-3{padding-left:.75rem;padding-right:.75rem}.d411x418fllnhlf1di.px-4{padding-left:1rem;padding-right:1rem}.d411x418fllnhlf1di.px-5{padding-left:1.25rem;padding-right:1.25rem}.d411x418fllnhlf1di.px-8{padding-left:2rem;padding-right:2rem}.d411x418fllnhlf1di.py-1{padding-top:.25rem;padding-bottom:.25rem}.d411x418fllnhlf1di.py-11{padding-top:2.75rem;padding-bottom:2.75rem}.d411x418fllnhlf1di.py-2{padding-top:.5rem;padding-bottom:.5rem}.d411x418fllnhlf1di.py-8{padding-top:2rem;padding-bottom:2rem}.d411x418fllnhlf1di.pb-3{padding-bottom:.75rem}.d411x418fllnhlf1di.text-center{text-align:center}.d411x418fllnhlf1di.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.d411x418fllnhlf1di.text-5xl{font-size:3rem;line-height:1}.d411x418fllnhlf1di.text-\[12px\]{font-size:12px}.d411x418fllnhlf1di.text-lg{font-size:1.125rem;line-height:1.75rem}.d411x418fllnhlf1di.text-sm{font-size:.875rem;line-height:1.25rem}.d411x418fllnhlf1di.text-xl{font-size:1.25rem;line-height:1.75rem}.d411x418fllnhlf1di.text-xs{font-size:.75rem;line-height:1rem}.d411x418fllnhlf1di.font-medium{font-weight:500}.d411x418fllnhlf1di.font-normal{font-weight:400}.d411x418fllnhlf1di.font-semibold{font-weight:600}.d411x418fllnhlf1di.leading-normal{line-height:1.5}.d411x418fllnhlf1di.\!text-primary{color:hsl(var(--primary))!important}.d411x418fllnhlf1di.text-border{color:hsl(var(--border))}.d411x418fllnhlf1di.text-current{color:currentColor}.d411x418fllnhlf1di.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.d411x418fllnhlf1di.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity))}.d411x418fllnhlf1di.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.d411x418fllnhlf1di.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity))}.d411x418fllnhlf1di.text-primary{color:hsl(var(--primary))}.d411x418fllnhlf1di.text-primary-foreground{color:hsl(var(--primary-foreground))}.d411x418fllnhlf1di.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.d411x418fllnhlf1di.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.d411x418fllnhlf1di.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.d411x418fllnhlf1di.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.d411x418fllnhlf1di.underline-offset-4{text-underline-offset:4px}.d411x418fllnhlf1di.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.d411x418fllnhlf1di.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.d411x418fllnhlf1di.outline{outline-style:solid}.d411x418fllnhlf1di.ring-current{--tw-ring-color: currentColor}.d411x418fllnhlf1di.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.d411x418fllnhlf1di.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.d411x418fllnhlf1di.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.d411x418fllnhlf1di.transition-\[height\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.d411x418fllnhlf1di.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.d411x418fllnhlf1di.duration-100{transition-duration:.1s}.d411x418fllnhlf1di.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.d411x418fllnhlf1di.duration-100{animation-duration:.1s}.d411x418fllnhlf1di.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.d411x418fllnhlf1di.file\:border-0::file-selector-button{border-width:0px}.d411x418fllnhlf1di.file\:bg-transparent::file-selector-button{background-color:transparent}.d411x418fllnhlf1di.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.d411x418fllnhlf1di.file\:font-medium::file-selector-button{font-weight:500}.d411x418fllnhlf1di.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.d411x418fllnhlf1di.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.d411x418fllnhlf1di.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.d411x418fllnhlf1di.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.d411x418fllnhlf1di.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.d411x418fllnhlf1di.hover\:bg-neutral-800:hover{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}.d411x418fllnhlf1di.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.d411x418fllnhlf1di.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.d411x418fllnhlf1di.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.d411x418fllnhlf1di.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.d411x418fllnhlf1di.hover\:underline:hover{text-decoration-line:underline}.d411x418fllnhlf1di.focus\:border-white:focus{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.d411x418fllnhlf1di.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.d411x418fllnhlf1di.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.d411x418fllnhlf1di.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.d411x418fllnhlf1di.disabled\:pointer-events-none:disabled{pointer-events:none}.d411x418fllnhlf1di.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.d411x418fllnhlf1di.disabled\:opacity-50:disabled{opacity:.5}.d411x418fllnhlf1di.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.d411x418fllnhlf1di.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.d411x418fllnhlf1di.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.d411x418fllnhlf1di.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.d411x418fllnhlf1di.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.d411x418fllnhlf1di.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.d411x418fllnhlf1di.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.d411x418fllnhlf1di.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.d411x418fllnhlf1di.\[\&\>\*\]\:transition-all>*{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.d411x418fllnhlf1di.\[\&\>\*\]\:duration-100>*{transition-duration:.1s;animation-duration:.1s}