UNPKG

react-nepali-datetime-picker

Version:

A simple and reusable Nepali calendar, date and time picker components for React.

1,754 lines (1,750 loc) 196 kB
var fn = Object.defineProperty; var hn = (t, e, n) => e in t ? fn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n; var Kt = (t, e, n) => (hn(t, typeof e != "symbol" ? e + "" : e, n), n); import * as ue from "react"; import b0, { forwardRef as Ht, useState as F, useEffect as ae, useMemo as _e, useCallback as vn, useRef as we } from "react"; function pn(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } var kt = { exports: {} }, Ze = {}; /** * @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 Qt; function mn() { if (Qt) return Ze; Qt = 1; var t = b0, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 }; function l(i, u, h) { var d, c = {}, p = null, y = null; h !== void 0 && (p = "" + h), u.key !== void 0 && (p = "" + u.key), u.ref !== void 0 && (y = u.ref); for (d in u) r.call(u, d) && !a.hasOwnProperty(d) && (c[d] = u[d]); if (i && i.defaultProps) for (d in u = i.defaultProps, u) c[d] === void 0 && (c[d] = u[d]); return { $$typeof: e, type: i, key: p, ref: y, props: c, _owner: s.current }; } return Ze.Fragment = n, Ze.jsx = l, Ze.jsxs = l, Ze; } var qe = {}; /** * @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 e0; function gn() { return e0 || (e0 = 1, process.env.NODE_ENV !== "production" && function() { var t = b0, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), i = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), m = Symbol.iterator, g = "@@iterator"; function E(o) { if (o === null || typeof o != "object") return null; var v = m && o[m] || o[g]; return typeof v == "function" ? v : null; } var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function I(o) { { for (var v = arguments.length, b = new Array(v > 1 ? v - 1 : 0), j = 1; j < v; j++) b[j - 1] = arguments[j]; z("error", o, b); } } function z(o, v, b) { { var j = C.ReactDebugCurrentFrame, S = j.getStackAddendum(); S !== "" && (v += "%s", b = b.concat([S])); var H = b.map(function($) { return String($); }); H.unshift("Warning: " + v), Function.prototype.apply.call(console[o], console, H); } } var B = !1, k = !1, V = !1, M = !1, D = !1, R; R = Symbol.for("react.module.reference"); function O(o) { return !!(typeof o == "string" || typeof o == "function" || o === r || o === a || D || o === s || o === h || o === d || M || o === y || B || k || V || typeof o == "object" && o !== null && (o.$$typeof === p || o.$$typeof === c || o.$$typeof === l || o.$$typeof === i || o.$$typeof === u || // 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 === R || o.getModuleId !== void 0)); } function x(o, v, b) { var j = o.displayName; if (j) return j; var S = v.displayName || v.name || ""; return S !== "" ? b + "(" + S + ")" : b; } function w(o) { return o.displayName || "Context"; } function _(o) { if (o == null) return null; if (typeof o.tag == "number" && I("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 r: return "Fragment"; case n: return "Portal"; case a: return "Profiler"; case s: return "StrictMode"; case h: return "Suspense"; case d: return "SuspenseList"; } if (typeof o == "object") switch (o.$$typeof) { case i: var v = o; return w(v) + ".Consumer"; case l: var b = o; return w(b._context) + ".Provider"; case u: return x(o, o.render, "ForwardRef"); case c: var j = o.displayName || null; return j !== null ? j : _(o.type) || "Memo"; case p: { var S = o, H = S._payload, $ = S._init; try { return _($(H)); } catch { return null; } } } return null; } var A = Object.assign, q = 0, K, Ce, pe, oe, ce, te, me; function X() { } X.__reactDisabledLog = !0; function rt() { { if (q === 0) { K = console.log, Ce = console.info, pe = console.warn, oe = console.error, ce = console.group, te = console.groupCollapsed, me = console.groupEnd; var o = { configurable: !0, enumerable: !0, value: X, writable: !0 }; Object.defineProperties(console, { info: o, log: o, warn: o, error: o, group: o, groupCollapsed: o, groupEnd: o }); } q++; } } function Ae() { { if (q--, q === 0) { var o = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: A({}, o, { value: K }), info: A({}, o, { value: Ce }), warn: A({}, o, { value: pe }), error: A({}, o, { value: oe }), group: A({}, o, { value: ce }), groupCollapsed: A({}, o, { value: te }), groupEnd: A({}, o, { value: me }) }); } q < 0 && I("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var Be = C.ReactCurrentDispatcher, We; function Re(o, v, b) { { if (We === void 0) try { throw Error(); } catch (S) { var j = S.stack.trim().match(/\n( *(at )?)/); We = j && j[1] || ""; } return ` ` + We + o; } } var Oe = !1, Te; { var bt = typeof WeakMap == "function" ? WeakMap : Map; Te = new bt(); } function Pe(o, v) { if (!o || Oe) return ""; { var b = Te.get(o); if (b !== void 0) return b; } var j; Oe = !0; var S = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var H; H = Be.current, Be.current = null, rt(); try { if (v) { var $ = function() { throw Error(); }; if (Object.defineProperty($.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct($, []); } catch (ge) { j = ge; } Reflect.construct(o, [], $); } else { try { $.call(); } catch (ge) { j = ge; } o.call($.prototype); } } else { try { throw Error(); } catch (ge) { j = ge; } o(); } } catch (ge) { if (ge && j && typeof ge.stack == "string") { for (var T = ge.stack.split(` `), re = j.stack.split(` `), W = T.length - 1, U = re.length - 1; W >= 1 && U >= 0 && T[W] !== re[U]; ) U--; for (; W >= 1 && U >= 0; W--, U--) if (T[W] !== re[U]) { if (W !== 1 || U !== 1) do if (W--, U--, U < 0 || T[W] !== re[U]) { var se = ` ` + T[W].replace(" at new ", " at "); return o.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", o.displayName)), typeof o == "function" && Te.set(o, se), se; } while (W >= 1 && U >= 0); break; } } } finally { Oe = !1, Be.current = H, Ae(), Error.prepareStackTrace = S; } var Ye = o ? o.displayName || o.name : "", qt = Ye ? Re(Ye) : ""; return typeof o == "function" && Te.set(o, qt), qt; } function xt(o, v, b) { return Pe(o, !1); } function yt(o) { var v = o.prototype; return !!(v && v.isReactComponent); } function De(o, v, b) { if (o == null) return ""; if (typeof o == "function") return Pe(o, yt(o)); if (typeof o == "string") return Re(o); switch (o) { case h: return Re("Suspense"); case d: return Re("SuspenseList"); } if (typeof o == "object") switch (o.$$typeof) { case u: return xt(o.render); case c: return De(o.type, v, b); case p: { var j = o, S = j._payload, H = j._init; try { return De(H(S), v, b); } catch { } } } return ""; } var $e = Object.prototype.hasOwnProperty, at = {}, Ue = C.ReactDebugCurrentFrame; function Ne(o) { if (o) { var v = o._owner, b = De(o.type, o._source, v ? v.type : null); Ue.setExtraStackFrame(b); } else Ue.setExtraStackFrame(null); } function ot(o, v, b, j, S) { { var H = Function.call.bind($e); for (var $ in o) if (H(o, $)) { var T = void 0; try { if (typeof o[$] != "function") { var re = Error((j || "React class") + ": " + b + " type `" + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[$] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw re.name = "Invariant Violation", re; } T = o[$](v, $, j, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (W) { T = W; } T && !(T instanceof Error) && (Ne(S), I("%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).", j || "React class", b, $, typeof T), Ne(null)), T instanceof Error && !(T.message in at) && (at[T.message] = !0, Ne(S), I("Failed %s type: %s", b, T.message), Ne(null)); } } } var st = Array.isArray; function Se(o) { return st(o); } function lt(o) { { var v = typeof Symbol == "function" && Symbol.toStringTag, b = v && o[Symbol.toStringTag] || o.constructor.name || "Object"; return b; } } function it(o) { try { return Je(o), !1; } catch { return !0; } } function Je(o) { return "" + o; } function Xe(o) { if (it(o)) return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lt(o)), Je(o); } var xe = C.ReactCurrentOwner, Y = { key: !0, ref: !0, __self: !0, __source: !0 }, Q, Z, ne; ne = {}; function he(o) { if ($e.call(o, "ref")) { var v = Object.getOwnPropertyDescriptor(o, "ref").get; if (v && v.isReactWarning) return !1; } return o.ref !== void 0; } function ut(o) { if ($e.call(o, "key")) { var v = Object.getOwnPropertyDescriptor(o, "key").get; if (v && v.isReactWarning) return !1; } return o.key !== void 0; } function dt(o, v) { if (typeof o.ref == "string" && xe.current && v && xe.current.stateNode !== v) { var b = _(xe.current.type); ne[b] || (I('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', _(xe.current.type), o.ref), ne[b] = !0); } } function Q0(o, v) { { var b = function() { Q || (Q = !0, I("%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)", v)); }; b.isReactWarning = !0, Object.defineProperty(o, "key", { get: b, configurable: !0 }); } } function en(o, v) { { var b = function() { Z || (Z = !0, I("%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)", v)); }; b.isReactWarning = !0, Object.defineProperty(o, "ref", { get: b, configurable: !0 }); } } var tn = function(o, v, b, j, S, H, $) { var T = { // This tag allows us to uniquely identify this as a React Element $$typeof: e, // Built-in properties that belong on the element type: o, key: v, ref: b, props: $, // Record the component responsible for creating this element. _owner: H }; return T._store = {}, Object.defineProperty(T._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(T, "_self", { configurable: !1, enumerable: !1, writable: !1, value: j }), Object.defineProperty(T, "_source", { configurable: !1, enumerable: !1, writable: !1, value: S }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T; }; function nn(o, v, b, j, S) { { var H, $ = {}, T = null, re = null; b !== void 0 && (Xe(b), T = "" + b), ut(v) && (Xe(v.key), T = "" + v.key), he(v) && (re = v.ref, dt(v, S)); for (H in v) $e.call(v, H) && !Y.hasOwnProperty(H) && ($[H] = v[H]); if (o && o.defaultProps) { var W = o.defaultProps; for (H in W) $[H] === void 0 && ($[H] = W[H]); } if (T || re) { var U = typeof o == "function" ? o.displayName || o.name || "Unknown" : o; T && Q0($, U), re && en($, U); } return tn(o, T, re, S, j, xe.current, $); } } var wt = C.ReactCurrentOwner, Bt = C.ReactDebugCurrentFrame; function He(o) { if (o) { var v = o._owner, b = De(o.type, o._source, v ? v.type : null); Bt.setExtraStackFrame(b); } else Bt.setExtraStackFrame(null); } var Mt; Mt = !1; function Et(o) { return typeof o == "object" && o !== null && o.$$typeof === e; } function Wt() { { if (wt.current) { var o = _(wt.current.type); if (o) return ` Check the render method of \`` + o + "`."; } return ""; } } function rn(o) { { if (o !== void 0) { var v = o.fileName.replace(/^.*[\\\/]/, ""), b = o.lineNumber; return ` Check your code at ` + v + ":" + b + "."; } return ""; } } var Ut = {}; function an(o) { { var v = Wt(); if (!v) { var b = typeof o == "string" ? o : o.displayName || o.name; b && (v = ` Check the top-level render call using <` + b + ">."); } return v; } } function Jt(o, v) { { if (!o._store || o._store.validated || o.key != null) return; o._store.validated = !0; var b = an(v); if (Ut[b]) return; Ut[b] = !0; var j = ""; o && o._owner && o._owner !== wt.current && (j = " It was passed a child from " + _(o._owner.type) + "."), He(o), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, j), He(null); } } function Xt(o, v) { { if (typeof o != "object") return; if (Se(o)) for (var b = 0; b < o.length; b++) { var j = o[b]; Et(j) && Jt(j, v); } else if (Et(o)) o._store && (o._store.validated = !0); else if (o) { var S = E(o); if (typeof S == "function" && S !== o.entries) for (var H = S.call(o), $; !($ = H.next()).done; ) Et($.value) && Jt($.value, v); } } } function on(o) { { var v = o.type; if (v == null || typeof v == "string") return; var b; if (typeof v == "function") b = v.propTypes; else if (typeof v == "object" && (v.$$typeof === u || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. v.$$typeof === c)) b = v.propTypes; else return; if (b) { var j = _(v); ot(b, o.props, "prop", j, o); } else if (v.PropTypes !== void 0 && !Mt) { Mt = !0; var S = _(v); I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown"); } typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function sn(o) { { for (var v = Object.keys(o.props), b = 0; b < v.length; b++) { var j = v[b]; if (j !== "children" && j !== "key") { He(o), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), He(null); break; } } o.ref !== null && (He(o), I("Invalid attribute `ref` supplied to `React.Fragment`."), He(null)); } } function Zt(o, v, b, j, S, H) { { var $ = O(o); if (!$) { var T = ""; (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (T += " 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 re = rn(S); re ? T += re : T += Wt(); var W; o === null ? W = "null" : Se(o) ? W = "array" : o !== void 0 && o.$$typeof === e ? (W = "<" + (_(o.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : W = typeof o, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, T); } var U = nn(o, v, b, S, H); if (U == null) return U; if ($) { var se = v.children; if (se !== void 0) if (j) if (Se(se)) { for (var Ye = 0; Ye < se.length; Ye++) Xt(se[Ye], o); Object.freeze && Object.freeze(se); } else I("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 Xt(se, o); } return o === r ? sn(U) : on(U), U; } } function ln(o, v, b) { return Zt(o, v, b, !0); } function un(o, v, b) { return Zt(o, v, b, !1); } var dn = un, cn = ln; qe.Fragment = r, qe.jsx = dn, qe.jsxs = cn; }()), qe; } process.env.NODE_ENV === "production" ? kt.exports = mn() : kt.exports = gn(); var f = kt.exports; const x0 = (t) => /* @__PURE__ */ ue.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ ue.createElement("path", { d: "M9,10V12H7V10H9M13,10V12H11V10H13M17,10V12H15V10H17M19,3A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5A2,2 0 0,1 5,3H6V1H8V3H16V1H18V3H19M19,19V8H5V19H19M9,14V16H7V14H9M13,14V16H11V14H13M17,14V16H15V14H17Z" })); function y0(t) { var e, n, r = ""; if (typeof t == "string" || typeof t == "number") r += t; else if (typeof t == "object") if (Array.isArray(t)) for (e = 0; e < t.length; e++) t[e] && (n = y0(t[e])) && (r && (r += " "), r += n); else for (e in t) t[e] && (r && (r += " "), r += e); return r; } function bn() { for (var t, e, n = 0, r = ""; n < arguments.length; ) (t = arguments[n++]) && (e = y0(t)) && (r && (r += " "), r += e); return r; } function xn() { for (var t = 0, e, n, r = ""; t < arguments.length; ) (e = arguments[t++]) && (n = w0(e)) && (r && (r += " "), r += n); return r; } function w0(t) { if (typeof t == "string") return t; for (var e, n = "", r = 0; r < t.length; r++) t[r] && (e = w0(t[r])) && (n && (n += " "), n += e); return n; } var Yt = "-"; function yn(t) { var e = Mn(t), n = t.conflictingClassGroups, r = t.conflictingClassGroupModifiers, s = r === void 0 ? {} : r; function a(i) { var u = i.split(Yt); return u[0] === "" && u.length !== 1 && u.shift(), M0(u, e) || wn(i); } function l(i, u) { var h = n[i] || []; return u && s[i] ? [].concat(h, s[i]) : h; } return { getClassGroupId: a, getConflictingClassGroupIds: l }; } function M0(t, e) { var l; if (t.length === 0) return e.classGroupId; var n = t[0], r = e.nextPart.get(n), s = r ? M0(t.slice(1), r) : void 0; if (s) return s; if (e.validators.length !== 0) { var a = t.join(Yt); return (l = e.validators.find(function(i) { var u = i.validator; return u(a); })) == null ? void 0 : l.classGroupId; } } var t0 = /^\[(.+)\]$/; function wn(t) { if (t0.test(t)) { var e = t0.exec(t)[1], n = e == null ? void 0 : e.substring(0, e.indexOf(":")); if (n) return "arbitrary.." + n; } } function Mn(t) { var e = t.theme, n = t.prefix, r = { nextPart: /* @__PURE__ */ new Map(), validators: [] }, s = Cn(Object.entries(t.classGroups), n); return s.forEach(function(a) { var l = a[0], i = a[1]; At(i, r, l, e); }), r; } function At(t, e, n, r) { t.forEach(function(s) { if (typeof s == "string") { var a = s === "" ? e : n0(e, s); a.classGroupId = n; return; } if (typeof s == "function") { if (En(s)) { At(s(r), e, n, r); return; } e.validators.push({ validator: s, classGroupId: n }); return; } Object.entries(s).forEach(function(l) { var i = l[0], u = l[1]; At(u, n0(e, i), n, r); }); }); } function n0(t, e) { var n = t; return e.split(Yt).forEach(function(r) { n.nextPart.has(r) || n.nextPart.set(r, { nextPart: /* @__PURE__ */ new Map(), validators: [] }), n = n.nextPart.get(r); }), n; } function En(t) { return t.isThemeGetter; } function Cn(t, e) { return e ? t.map(function(n) { var r = n[0], s = n[1], a = s.map(function(l) { return typeof l == "string" ? e + l : typeof l == "object" ? Object.fromEntries(Object.entries(l).map(function(i) { var u = i[0], h = i[1]; return [e + u, h]; })) : l; }); return [r, a]; }) : t; } function Nn(t) { if (t < 1) return { get: function() { }, set: function() { } }; var e = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(); function s(a, l) { n.set(a, l), e++, e > t && (e = 0, r = n, n = /* @__PURE__ */ new Map()); } return { get: function(l) { var i = n.get(l); if (i !== void 0) return i; if ((i = r.get(l)) !== void 0) return s(l, i), i; }, set: function(l, i) { n.has(l) ? n.set(l, i) : s(l, i); } }; } var E0 = "!"; function _n(t) { var e = t.separator || ":", n = e.length === 1, r = e[0], s = e.length; return function(l) { for (var i = [], u = 0, h = 0, d, c = 0; c < l.length; c++) { var p = l[c]; if (u === 0) { if (p === r && (n || l.slice(c, c + s) === e)) { i.push(l.slice(h, c)), h = c + s; continue; } if (p === "/") { d = c; continue; } } p === "[" ? u++ : p === "]" && u--; } var y = i.length === 0 ? l : l.substring(h), m = y.startsWith(E0), g = m ? y.substring(1) : y, E = d && d > h ? d - h : void 0; return { modifiers: i, hasImportantModifier: m, baseClassName: g, maybePostfixModifierPosition: E }; }; } function jn(t) { if (t.length <= 1) return t; var e = [], n = []; return t.forEach(function(r) { var s = r[0] === "["; s ? (e.push.apply(e, n.sort().concat([r])), n = []) : n.push(r); }), e.push.apply(e, n.sort()), e; } function In(t) { return { cache: Nn(t.cacheSize), splitModifiers: _n(t), ...yn(t) }; } var kn = /\s+/; function An(t, e) { var n = e.splitModifiers, r = e.getClassGroupId, s = e.getConflictingClassGroupIds, a = /* @__PURE__ */ new Set(); return t.trim().split(kn).map(function(l) { var i = n(l), u = i.modifiers, h = i.hasImportantModifier, d = i.baseClassName, c = i.maybePostfixModifierPosition, p = r(c ? d.substring(0, c) : d), y = !!c; if (!p) { if (!c) return { isTailwindClass: !1, originalClassName: l }; if (p = r(d), !p) return { isTailwindClass: !1, originalClassName: l }; y = !1; } var m = jn(u).join(":"), g = h ? m + E0 : m; return { isTailwindClass: !0, modifierId: g, classGroupId: p, originalClassName: l, hasPostfixModifier: y }; }).reverse().filter(function(l) { if (!l.isTailwindClass) return !0; var i = l.modifierId, u = l.classGroupId, h = l.hasPostfixModifier, d = i + u; return a.has(d) ? !1 : (a.add(d), s(u, h).forEach(function(c) { return a.add(i + c); }), !0); }).reverse().map(function(l) { return l.originalClassName; }).join(" "); } function r0() { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; var r, s, a, l = i; function i(h) { var d = e[0], c = e.slice(1), p = c.reduce(function(y, m) { return m(y); }, d()); return r = In(p), s = r.cache.get, a = r.cache.set, l = u, u(h); } function u(h) { var d = s(h); if (d) return d; var c = An(h, r); return a(h, c), c; } return function() { return l(xn.apply(null, arguments)); }; } function L(t) { var e = function(r) { return r[t] || []; }; return e.isThemeGetter = !0, e; } var C0 = /^\[(?:([a-z-]+):)?(.+)\]$/i, Rn = /^\d+\/\d+$/, On = /* @__PURE__ */ new Set(["px", "full", "screen"]), Tn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Pn = /\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$/, Dn = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/; function fe(t) { return je(t) || On.has(t) || Rn.test(t) || Rt(t); } function Rt(t) { return ke(t, "length", Ln); } function $n(t) { return ke(t, "size", N0); } function Sn(t) { return ke(t, "position", N0); } function Hn(t) { return ke(t, "url", Vn); } function ct(t) { return ke(t, "number", je); } function je(t) { return !Number.isNaN(Number(t)); } function Yn(t) { return t.endsWith("%") && je(t.slice(0, -1)); } function Ke(t) { return a0(t) || ke(t, "number", a0); } function P(t) { return C0.test(t); } function Qe() { return !0; } function ye(t) { return Tn.test(t); } function Fn(t) { return ke(t, "", Gn); } function ke(t, e, n) { var r = C0.exec(t); return r ? r[1] ? r[1] === e : n(r[2]) : !1; } function Ln(t) { return Pn.test(t); } function N0() { return !1; } function Vn(t) { return t.startsWith("url("); } function a0(t) { return Number.isInteger(Number(t)); } function Gn(t) { return Dn.test(t); } function o0() { var t = L("colors"), e = L("spacing"), n = L("blur"), r = L("brightness"), s = L("borderColor"), a = L("borderRadius"), l = L("borderSpacing"), i = L("borderWidth"), u = L("contrast"), h = L("grayscale"), d = L("hueRotate"), c = L("invert"), p = L("gap"), y = L("gradientColorStops"), m = L("gradientColorStopPositions"), g = L("inset"), E = L("margin"), C = L("opacity"), I = L("padding"), z = L("saturate"), B = L("scale"), k = L("sepia"), V = L("skew"), M = L("space"), D = L("translate"), R = function() { return ["auto", "contain", "none"]; }, O = function() { return ["auto", "hidden", "clip", "visible", "scroll"]; }, x = function() { return ["auto", P, e]; }, w = function() { return [P, e]; }, _ = function() { return ["", fe]; }, A = function() { return ["auto", je, P]; }, q = function() { return ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"]; }, K = function() { return ["solid", "dashed", "dotted", "double", "none"]; }, Ce = function() { return ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"]; }, pe = function() { return ["start", "end", "center", "between", "around", "evenly", "stretch"]; }, oe = function() { return ["", "0", P]; }, ce = function() { return ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"]; }, te = function() { return [je, ct]; }, me = function() { return [je, P]; }; return { cacheSize: 500, theme: { colors: [Qe], spacing: [fe], blur: ["none", "", ye, P], brightness: te(), borderColor: [t], borderRadius: ["none", "", "full", ye, P], borderSpacing: w(), borderWidth: _(), contrast: te(), grayscale: oe(), hueRotate: me(), invert: oe(), gap: w(), gradientColorStops: [t], gradientColorStopPositions: [Yn, Rt], inset: x(), margin: x(), opacity: te(), padding: w(), saturate: te(), scale: te(), sepia: oe(), skew: me(), space: w(), translate: w() }, classGroups: { // Layout /** * Aspect Ratio * @see https://tailwindcss.com/docs/aspect-ratio */ aspect: [{ aspect: ["auto", "square", "video", P] }], /** * Container * @see https://tailwindcss.com/docs/container */ container: ["container"], /** * Columns * @see https://tailwindcss.com/docs/columns */ columns: [{ columns: [ye] }], /** * 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(q(), [P]) }], /** * Overflow * @see https://tailwindcss.com/docs/overflow */ overflow: [{ overflow: O() }], /** * Overflow X * @see https://tailwindcss.com/docs/overflow */ "overflow-x": [{ "overflow-x": O() }], /** * Overflow Y * @see https://tailwindcss.com/docs/overflow */ "overflow-y": [{ "overflow-y": O() }], /** * Overscroll Behavior * @see https://tailwindcss.com/docs/overscroll-behavior */ overscroll: [{ overscroll: R() }], /** * Overscroll Behavior X * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-x": [{ "overscroll-x": R() }], /** * Overscroll Behavior Y * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-y": [{ "overscroll-y": R() }], /** * 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: [g] }], /** * Right / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-x": [{ "inset-x": [g] }], /** * Top / Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-y": [{ "inset-y": [g] }], /** * Start * @see https://tailwindcss.com/docs/top-right-bottom-left */ start: [{ start: [g] }], /** * End * @see https://tailwindcss.com/docs/top-right-bottom-left */ end: [{ end: [g] }], /** * Top * @see https://tailwindcss.com/docs/top-right-bottom-left */ top: [{ top: [g] }], /** * Right * @see https://tailwindcss.com/docs/top-right-bottom-left */ right: [{ right: [g] }], /** * Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ bottom: [{ bottom: [g] }], /** * Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ left: [{ left: [g] }], /** * Visibility * @see https://tailwindcss.com/docs/visibility */ visibility: ["visible", "invisible", "collapse"], /** * Z-Index * @see https://tailwindcss.com/docs/z-index */ z: [{ z: ["auto", Ke] }], // Flexbox and Grid /** * Flex Basis * @see https://tailwindcss.com/docs/flex-basis */ basis: [{ basis: x() }], /** * 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", P] }], /** * Flex Grow * @see https://tailwindcss.com/docs/flex-grow */ grow: [{ grow: oe() }], /** * Flex Shrink * @see https://tailwindcss.com/docs/flex-shrink */ shrink: [{ shrink: oe() }], /** * Order * @see https://tailwindcss.com/docs/order */ order: [{ order: ["first", "last", "none", Ke] }], /** * Grid Template Columns * @see https://tailwindcss.com/docs/grid-template-columns */ "grid-cols": [{ "grid-cols": [Qe] }], /** * Grid Column Start / End * @see https://tailwindcss.com/docs/grid-column */ "col-start-end": [{ col: ["auto", { span: ["full", Ke] }, P] }], /** * Grid Column Start * @see https://tailwindcss.com/docs/grid-column */ "col-start": [{ "col-start": A() }], /** * Grid Column End * @see https://tailwindcss.com/docs/grid-column */ "col-end": [{ "col-end": A() }], /** * Grid Template Rows * @see https://tailwindcss.com/docs/grid-template-rows */ "grid-rows": [{ "grid-rows": [Qe] }], /** * Grid Row Start / End * @see https://tailwindcss.com/docs/grid-row */ "row-start-end": [{ row: ["auto", { span: [Ke] }, P] }], /** * Grid Row Start * @see https://tailwindcss.com/docs/grid-row */ "row-start": [{ "row-start": A() }], /** * Grid Row End * @see https://tailwindcss.com/docs/grid-row */ "row-end": [{ "row-end": A() }], /** * 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", P] }], /** * Grid Auto Rows * @see https://tailwindcss.com/docs/grid-auto-rows */ "auto-rows": [{ "auto-rows": ["auto", "min", "max", "fr", P] }], /** * Gap * @see https://tailwindcss.com/docs/gap */ gap: [{ gap: [p] }], /** * Gap X * @see https://tailwindcss.com/docs/gap */ "gap-x": [{ "gap-x": [p] }], /** * Gap Y * @see https://tailwindcss.com/docs/gap */ "gap-y": [{ "gap-y": [p] }], /** * Justify Content * @see https://tailwindcss.com/docs/justify-content */ "justify-content": [{ justify: ["normal"].concat(pe()) }], /** * 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(pe(), ["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(pe(), ["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: [I] }], /** * Padding X * @see https://tailwindcss.com/docs/padding */ px: [{ px: [I] }], /** * Padding Y * @see https://tailwindcss.com/docs/padding */ py: [{ py: [I] }], /** * Padding Start * @see https://tailwindcss.com/docs/padding */ ps: [{ ps: [I] }], /** * Padding End * @see https://tailwindcss.com/docs/padding */ pe: [{ pe: [I] }], /** * Padding Top * @see https://tailwindcss.com/docs/padding */ pt: [{ pt: [I] }], /** * Padding Right * @see https://tailwindcss.com/docs/padding */ pr: [{ pr: [I] }], /** * Padding Bottom * @see https://tailwindcss.com/docs/padding */ pb: [{ pb: [I] }], /** * Padding Left * @see https://tailwindcss.com/docs/padding */ pl: [{ pl: [I] }], /** * Margin * @see https://tailwindcss.com/docs/margin */ m: [{ m: [E] }], /** * Margin X * @see https://tailwindcss.com/docs/margin */ mx: [{ mx: [E] }], /** * Margin Y * @see https://tailwindcss.com/docs/margin */ my: [{ my: [E] }], /** * Margin Start * @see https://tailwindcss.com/docs/margin */ ms: [{ ms: [E] }], /** * Margin End * @see https://tailwindcss.com/docs/margin */ me: [{ me: [E] }], /** * Margin Top * @see https://tailwindcss.com/docs/margin */ mt: [{ mt: [E] }], /** * Margin Right * @see https://tailwindcss.com/docs/margin */ mr: [{ mr: [E] }], /** * Margin Bottom * @see https://tailwindcss.com/docs/margin */ mb: [{ mb: [E] }], /** * Margin Left * @see https://tailwindcss.com/docs/margin */ ml: [{ ml: [E] }], /** * Space Between X * @see https://tailwindcss.com/docs/space */ "space-x": [{ "space-x": [M] }], /** * 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": [M] }], /** * 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", P, e] }], /** * Min-Width * @see https://tailwindcss.com/docs/min-width */ "min-w": [{ "min-w": ["min", "max", "fit", P, fe] }], /** * Max-Width * @see https://tailwindcss.com/docs/max-width */ "max-w": [{ "max-w": ["0", "none", "full", "min", "max", "fit", "prose", { screen: [ye] }, ye, P] }], /** * Height * @see https://tailwindcss.com/docs/height */ h: [{ h: [P, e, "auto", "min", "max", "fit"] }], /** * Min-Height * @see https://tailwindcss.com/docs/min-height */ "min-h": [{ "min-h": ["min", "max", "fit", P, fe] }], /** * Max-Height * @see https://tailwindcss.com/docs/max-height */ "max-h": [{ "max-h": [P, e, "min", "max", "fit"] }], // Typography /** * Font Size * @see https://tailwindcss.com/docs/font-size */ "font-size": [{ text: ["base", ye, Rt] }], /** * 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", ct] }], /** * Font Family * @see https://tailwindcss.com/docs/font-family */ "font-family": [{ font: [Qe] }], /** * 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", P] }], /** * Line Clamp * @see https://tailwindcss.com/docs/line-clamp */ "line-clamp": [{ "line-clamp": ["none", je, ct] }], /** * Line Height * @see https://tailwindcss.com/docs/line-height */ leading: [{ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", P, fe] }], /** * List Style Image * @see https://tailwindcss.com/docs/list-style-image */ "list-image": [{ "list-image": ["none", P] }], /** * List Style Type * @see https://tailwindcss.com/docs/list-style-type */ "list-style-type": [{ list: ["none", "disc", "decimal", P] }], /** * 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: [t] }], /** * Placeholder Opacity