UNPKG

kylin-ui-component

Version:

A React UI library for some developers to develop quickly

1,343 lines (1,324 loc) 80.2 kB
import * as Xt from "react"; import U, { useRef as cn, useDebugValue as Kt, createElement as un, useContext as ln, createContext as fn } from "react"; var wt = { exports: {} }, Be = {}; /** * @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 Jt; function dn() { if (Jt) return Be; Jt = 1; var e = U, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 }; function c(d, u, g) { var m, h = {}, p = null, E = null; g !== void 0 && (p = "" + g), u.key !== void 0 && (p = "" + u.key), u.ref !== void 0 && (E = u.ref); for (m in u) o.call(u, m) && !i.hasOwnProperty(m) && (h[m] = u[m]); if (d && d.defaultProps) for (m in u = d.defaultProps, u) h[m] === void 0 && (h[m] = u[m]); return { $$typeof: t, type: d, key: p, ref: E, props: h, _owner: a.current }; } return Be.Fragment = r, Be.jsx = c, Be.jsxs = c, Be; } var Ue = {}; /** * @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 Zt; function pn() { return Zt || (Zt = 1, process.env.NODE_ENV !== "production" && function() { var e = U, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), x = Symbol.iterator, v = "@@iterator"; function l(n) { if (n === null || typeof n != "object") return null; var s = x && n[x] || n[v]; return typeof s == "function" ? s : null; } var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function R(n) { { for (var s = arguments.length, f = new Array(s > 1 ? s - 1 : 0), S = 1; S < s; S++) f[S - 1] = arguments[S]; F("error", n, f); } } function F(n, s, f) { { var S = C.ReactDebugCurrentFrame, k = S.getStackAddendum(); k !== "" && (s += "%s", f = f.concat([k])); var D = f.map(function(P) { return String(P); }); D.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, D); } } var N = !1, w = !1, $ = !1, y = !1, Y = !1, K; K = Symbol.for("react.module.reference"); function ae(n) { return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || Y || n === a || n === g || n === m || y || n === E || N || w || $ || typeof n == "object" && n !== null && (n.$$typeof === p || n.$$typeof === h || n.$$typeof === c || n.$$typeof === d || n.$$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. n.$$typeof === K || n.getModuleId !== void 0)); } function Ve(n, s, f) { var S = n.displayName; if (S) return S; var k = s.displayName || s.name || ""; return k !== "" ? f + "(" + k + ")" : f; } function Pe(n) { return n.displayName || "Context"; } function H(n) { if (n == null) return null; if (typeof n.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function") return n.displayName || n.name || null; if (typeof n == "string") return n; switch (n) { case o: return "Fragment"; case r: return "Portal"; case i: return "Profiler"; case a: return "StrictMode"; case g: return "Suspense"; case m: return "SuspenseList"; } if (typeof n == "object") switch (n.$$typeof) { case d: var s = n; return Pe(s) + ".Consumer"; case c: var f = n; return Pe(f._context) + ".Provider"; case u: return Ve(n, n.render, "ForwardRef"); case h: var S = n.displayName || null; return S !== null ? S : H(n.type) || "Memo"; case p: { var k = n, D = k._payload, P = k._init; try { return H(P(D)); } catch { return null; } } } return null; } var te = Object.assign, ie = 0, ke, Oe, be, fe, X, de, se; function W() { } W.__reactDisabledLog = !0; function Ee() { { if (ie === 0) { ke = console.log, Oe = console.info, be = console.warn, fe = console.error, X = console.group, de = console.groupCollapsed, se = console.groupEnd; var n = { configurable: !0, enumerable: !0, value: W, writable: !0 }; Object.defineProperties(console, { info: n, log: n, warn: n, error: n, group: n, groupCollapsed: n, groupEnd: n }); } ie++; } } function we() { { if (ie--, ie === 0) { var n = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: te({}, n, { value: ke }), info: te({}, n, { value: Oe }), warn: te({}, n, { value: be }), error: te({}, n, { value: fe }), group: te({}, n, { value: X }), groupCollapsed: te({}, n, { value: de }), groupEnd: te({}, n, { value: se }) }); } ie < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var ce = C.ReactCurrentDispatcher, re; function ne(n, s, f) { { if (re === void 0) try { throw Error(); } catch (k) { var S = k.stack.trim().match(/\n( *(at )?)/); re = S && S[1] || ""; } return ` ` + re + n; } } var J = !1, B; { var Se = typeof WeakMap == "function" ? WeakMap : Map; B = new Se(); } function pe(n, s) { if (!n || J) return ""; { var f = B.get(n); if (f !== void 0) return f; } var S; J = !0; var k = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var D; D = ce.current, ce.current = null, Ee(); try { if (s) { var P = function() { throw Error(); }; if (Object.defineProperty(P.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(P, []); } catch (me) { S = me; } Reflect.construct(n, [], P); } else { try { P.call(); } catch (me) { S = me; } n.call(P.prototype); } } else { try { throw Error(); } catch (me) { S = me; } n(); } } catch (me) { if (me && S && typeof me.stack == "string") { for (var T = me.stack.split(` `), G = S.stack.split(` `), M = T.length - 1, L = G.length - 1; M >= 1 && L >= 0 && T[M] !== G[L]; ) L--; for (; M >= 1 && L >= 0; M--, L--) if (T[M] !== G[L]) { if (M !== 1 || L !== 1) do if (M--, L--, L < 0 || T[M] !== G[L]) { var Q = ` ` + T[M].replace(" at new ", " at "); return n.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", n.displayName)), typeof n == "function" && B.set(n, Q), Q; } while (M >= 1 && L >= 0); break; } } } finally { J = !1, ce.current = D, we(), Error.prepareStackTrace = k; } var Ie = n ? n.displayName || n.name : "", Ht = Ie ? ne(Ie) : ""; return typeof n == "function" && B.set(n, Ht), Ht; } function Z(n, s, f) { return pe(n, !1); } function b(n) { var s = n.prototype; return !!(s && s.isReactComponent); } function ye(n, s, f) { if (n == null) return ""; if (typeof n == "function") return pe(n, b(n)); if (typeof n == "string") return ne(n); switch (n) { case g: return ne("Suspense"); case m: return ne("SuspenseList"); } if (typeof n == "object") switch (n.$$typeof) { case u: return Z(n.render); case h: return ye(n.type, s, f); case p: { var S = n, k = S._payload, D = S._init; try { return ye(D(k), s, f); } catch { } } } return ""; } var he = Object.prototype.hasOwnProperty, We = {}, Ft = C.ReactDebugCurrentFrame; function Xe(n) { if (n) { var s = n._owner, f = ye(n.type, n._source, s ? s.type : null); Ft.setExtraStackFrame(f); } else Ft.setExtraStackFrame(null); } function Yr(n, s, f, S, k) { { var D = Function.call.bind(he); for (var P in n) if (D(n, P)) { var T = void 0; try { if (typeof n[P] != "function") { var G = Error((S || "React class") + ": " + f + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw G.name = "Invariant Violation", G; } T = n[P](s, P, S, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (M) { T = M; } T && !(T instanceof Error) && (Xe(k), R("%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).", S || "React class", f, P, typeof T), Xe(null)), T instanceof Error && !(T.message in We) && (We[T.message] = !0, Xe(k), R("Failed %s type: %s", f, T.message), Xe(null)); } } } var Vr = Array.isArray; function lt(n) { return Vr(n); } function Wr(n) { { var s = typeof Symbol == "function" && Symbol.toStringTag, f = s && n[Symbol.toStringTag] || n.constructor.name || "Object"; return f; } } function Gr(n) { try { return Mt(n), !1; } catch { return !0; } } function Mt(n) { return "" + n; } function Lt(n) { if (Gr(n)) return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Wr(n)), Mt(n); } var Ge = C.ReactCurrentOwner, Br = { key: !0, ref: !0, __self: !0, __source: !0 }, zt, Yt, ft; ft = {}; function Ur(n) { if (he.call(n, "ref")) { var s = Object.getOwnPropertyDescriptor(n, "ref").get; if (s && s.isReactWarning) return !1; } return n.ref !== void 0; } function qr(n) { if (he.call(n, "key")) { var s = Object.getOwnPropertyDescriptor(n, "key").get; if (s && s.isReactWarning) return !1; } return n.key !== void 0; } function Hr(n, s) { if (typeof n.ref == "string" && Ge.current && s && Ge.current.stateNode !== s) { var f = H(Ge.current.type); ft[f] || (R('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', H(Ge.current.type), n.ref), ft[f] = !0); } } function Xr(n, s) { { var f = function() { zt || (zt = !0, R("%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)", s)); }; f.isReactWarning = !0, Object.defineProperty(n, "key", { get: f, configurable: !0 }); } } function Kr(n, s) { { var f = function() { Yt || (Yt = !0, R("%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)", s)); }; f.isReactWarning = !0, Object.defineProperty(n, "ref", { get: f, configurable: !0 }); } } var Jr = function(n, s, f, S, k, D, P) { var T = { // This tag allows us to uniquely identify this as a React Element $$typeof: t, // Built-in properties that belong on the element type: n, key: s, ref: f, props: P, // Record the component responsible for creating this element. _owner: D }; 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: S }), Object.defineProperty(T, "_source", { configurable: !1, enumerable: !1, writable: !1, value: k }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T; }; function Zr(n, s, f, S, k) { { var D, P = {}, T = null, G = null; f !== void 0 && (Lt(f), T = "" + f), qr(s) && (Lt(s.key), T = "" + s.key), Ur(s) && (G = s.ref, Hr(s, k)); for (D in s) he.call(s, D) && !Br.hasOwnProperty(D) && (P[D] = s[D]); if (n && n.defaultProps) { var M = n.defaultProps; for (D in M) P[D] === void 0 && (P[D] = M[D]); } if (T || G) { var L = typeof n == "function" ? n.displayName || n.name || "Unknown" : n; T && Xr(P, L), G && Kr(P, L); } return Jr(n, T, G, k, S, Ge.current, P); } } var dt = C.ReactCurrentOwner, Vt = C.ReactDebugCurrentFrame; function Ae(n) { if (n) { var s = n._owner, f = ye(n.type, n._source, s ? s.type : null); Vt.setExtraStackFrame(f); } else Vt.setExtraStackFrame(null); } var pt; pt = !1; function ht(n) { return typeof n == "object" && n !== null && n.$$typeof === t; } function Wt() { { if (dt.current) { var n = H(dt.current.type); if (n) return ` Check the render method of \`` + n + "`."; } return ""; } } function Qr(n) { { if (n !== void 0) { var s = n.fileName.replace(/^.*[\\\/]/, ""), f = n.lineNumber; return ` Check your code at ` + s + ":" + f + "."; } return ""; } } var Gt = {}; function en(n) { { var s = Wt(); if (!s) { var f = typeof n == "string" ? n : n.displayName || n.name; f && (s = ` Check the top-level render call using <` + f + ">."); } return s; } } function Bt(n, s) { { if (!n._store || n._store.validated || n.key != null) return; n._store.validated = !0; var f = en(s); if (Gt[f]) return; Gt[f] = !0; var S = ""; n && n._owner && n._owner !== dt.current && (S = " It was passed a child from " + H(n._owner.type) + "."), Ae(n), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, S), Ae(null); } } function Ut(n, s) { { if (typeof n != "object") return; if (lt(n)) for (var f = 0; f < n.length; f++) { var S = n[f]; ht(S) && Bt(S, s); } else if (ht(n)) n._store && (n._store.validated = !0); else if (n) { var k = l(n); if (typeof k == "function" && k !== n.entries) for (var D = k.call(n), P; !(P = D.next()).done; ) ht(P.value) && Bt(P.value, s); } } } function tn(n) { { var s = n.type; if (s == null || typeof s == "string") return; var f; if (typeof s == "function") f = s.propTypes; else if (typeof s == "object" && (s.$$typeof === u || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. s.$$typeof === h)) f = s.propTypes; else return; if (f) { var S = H(s); Yr(f, n.props, "prop", S, n); } else if (s.PropTypes !== void 0 && !pt) { pt = !0; var k = H(s); R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown"); } typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function rn(n) { { for (var s = Object.keys(n.props), f = 0; f < s.length; f++) { var S = s[f]; if (S !== "children" && S !== "key") { Ae(n), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Ae(null); break; } } n.ref !== null && (Ae(n), R("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null)); } } function qt(n, s, f, S, k, D) { { var P = ae(n); if (!P) { var T = ""; (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).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 G = Qr(k); G ? T += G : T += Wt(); var M; n === null ? M = "null" : lt(n) ? M = "array" : n !== void 0 && n.$$typeof === t ? (M = "<" + (H(n.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : M = typeof n, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, T); } var L = Zr(n, s, f, k, D); if (L == null) return L; if (P) { var Q = s.children; if (Q !== void 0) if (S) if (lt(Q)) { for (var Ie = 0; Ie < Q.length; Ie++) Ut(Q[Ie], n); Object.freeze && Object.freeze(Q); } else R("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 Ut(Q, n); } return n === o ? rn(L) : tn(L), L; } } function nn(n, s, f) { return qt(n, s, f, !0); } function on(n, s, f) { return qt(n, s, f, !1); } var an = on, sn = nn; Ue.Fragment = o, Ue.jsx = an, Ue.jsxs = sn; }()), Ue; } process.env.NODE_ENV === "production" ? wt.exports = dn() : wt.exports = pn(); var hn = wt.exports; const St = hn.jsx; var q = function() { return q = Object.assign || function(t) { for (var r, o = 1, a = arguments.length; o < a; o++) { r = arguments[o]; for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]); } return t; }, q.apply(this, arguments); }; function Ne(e, t, r) { if (r || arguments.length === 2) for (var o = 0, a = t.length, i; o < a; o++) (i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]); return e.concat(i || Array.prototype.slice.call(t)); } function mn(e) { var t = /* @__PURE__ */ Object.create(null); return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } var gn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, yn = /* @__PURE__ */ mn( function(e) { return gn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ), j = "-ms-", He = "-moz-", I = "-webkit-", br = "comm", it = "rule", Ot = "decl", vn = "@import", Er = "@keyframes", bn = "@layer", En = Math.abs, At = String.fromCharCode, Rt = Object.assign; function wn(e, t) { return V(e, 0) ^ 45 ? (((t << 2 ^ V(e, 0)) << 2 ^ V(e, 1)) << 2 ^ V(e, 2)) << 2 ^ V(e, 3) : 0; } function wr(e) { return e.trim(); } function ge(e, t) { return (e = t.exec(e)) ? e[0] : e; } function _(e, t, r) { return e.replace(t, r); } function et(e, t) { return e.indexOf(t); } function V(e, t) { return e.charCodeAt(t) | 0; } function De(e, t, r) { return e.slice(t, r); } function le(e) { return e.length; } function Sr(e) { return e.length; } function qe(e, t) { return t.push(e), e; } function Sn(e, t) { return e.map(t).join(""); } function Qt(e, t) { return e.filter(function(r) { return !ge(r, t); }); } var st = 1, je = 1, Rr = 0, ee = 0, z = 0, ze = ""; function ct(e, t, r, o, a, i, c, d) { return { value: e, root: t, parent: r, type: o, props: a, children: i, line: st, column: je, length: c, return: "", siblings: d }; } function ve(e, t) { return Rt(ct("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t); } function $e(e) { for (; e.root; ) e = ve(e.root, { children: [e] }); qe(e, e.siblings); } function Rn() { return z; } function _n() { return z = ee > 0 ? V(ze, --ee) : 0, je--, z === 10 && (je = 1, st--), z; } function oe() { return z = ee < Rr ? V(ze, ee++) : 0, je++, z === 10 && (je = 1, st++), z; } function Ce() { return V(ze, ee); } function tt() { return ee; } function ut(e, t) { return De(ze, e, t); } function _t(e) { switch (e) { case 0: case 9: case 10: case 13: case 32: return 5; case 33: case 43: case 44: case 47: case 62: case 64: case 126: case 59: case 123: case 125: return 4; case 58: return 3; case 34: case 39: case 40: case 91: return 2; case 41: case 93: return 1; } return 0; } function Cn(e) { return st = je = 1, Rr = le(ze = e), ee = 0, []; } function xn(e) { return ze = "", e; } function mt(e) { return wr(ut(ee - 1, Ct(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function Tn(e) { for (; (z = Ce()) && z < 33; ) oe(); return _t(e) > 2 || _t(z) > 3 ? "" : " "; } function Pn(e, t) { for (; --t && oe() && !(z < 48 || z > 102 || z > 57 && z < 65 || z > 70 && z < 97); ) ; return ut(e, tt() + (t < 6 && Ce() == 32 && oe() == 32)); } function Ct(e) { for (; oe(); ) switch (z) { case e: return ee; case 34: case 39: e !== 34 && e !== 39 && Ct(z); break; case 40: e === 41 && Ct(e); break; case 92: oe(); break; } return ee; } function kn(e, t) { for (; oe() && e + z !== 47 + 10; ) if (e + z === 42 + 42 && Ce() === 47) break; return "/*" + ut(t, ee - 1) + "*" + At(e === 47 ? e : oe()); } function On(e) { for (; !_t(Ce()); ) oe(); return ut(e, ee); } function An(e) { return xn(rt("", null, null, null, [""], e = Cn(e), 0, [0], e)); } function rt(e, t, r, o, a, i, c, d, u) { for (var g = 0, m = 0, h = c, p = 0, E = 0, x = 0, v = 1, l = 1, C = 1, R = 0, F = "", N = a, w = i, $ = o, y = F; l; ) switch (x = R, R = oe()) { case 40: if (x != 108 && V(y, h - 1) == 58) { et(y += _(mt(R), "&", "&\f"), "&\f") != -1 && (C = -1); break; } case 34: case 39: case 91: y += mt(R); break; case 9: case 10: case 13: case 32: y += Tn(x); break; case 92: y += Pn(tt() - 1, 7); continue; case 47: switch (Ce()) { case 42: case 47: qe(In(kn(oe(), tt()), t, r, u), u); break; default: y += "/"; } break; case 123 * v: d[g++] = le(y) * C; case 125 * v: case 59: case 0: switch (R) { case 0: case 125: l = 0; case 59 + m: C == -1 && (y = _(y, /\f/g, "")), E > 0 && le(y) - h && qe(E > 32 ? tr(y + ";", o, r, h - 1, u) : tr(_(y, " ", "") + ";", o, r, h - 2, u), u); break; case 59: y += ";"; default: if (qe($ = er(y, t, r, g, m, a, d, F, N = [], w = [], h, i), i), R === 123) if (m === 0) rt(y, t, $, $, N, i, h, d, w); else switch (p === 99 && V(y, 3) === 110 ? 100 : p) { case 100: case 108: case 109: case 115: rt(e, $, $, o && qe(er(e, $, $, 0, 0, a, d, F, a, N = [], h, w), w), a, w, h, d, o ? N : w); break; default: rt(y, $, $, $, [""], w, 0, d, w); } } g = m = E = 0, v = C = 1, F = y = "", h = c; break; case 58: h = 1 + le(y), E = x; default: if (v < 1) { if (R == 123) --v; else if (R == 125 && v++ == 0 && _n() == 125) continue; } switch (y += At(R), R * v) { case 38: C = m > 0 ? 1 : (y += "\f", -1); break; case 44: d[g++] = (le(y) - 1) * C, C = 1; break; case 64: Ce() === 45 && (y += mt(oe())), p = Ce(), m = h = le(F = y += On(tt())), R++; break; case 45: x === 45 && le(y) == 2 && (v = 0); } } return i; } function er(e, t, r, o, a, i, c, d, u, g, m, h) { for (var p = a - 1, E = a === 0 ? i : [""], x = Sr(E), v = 0, l = 0, C = 0; v < o; ++v) for (var R = 0, F = De(e, p + 1, p = En(l = c[v])), N = e; R < x; ++R) (N = wr(l > 0 ? E[R] + " " + F : _(F, /&\f/g, E[R]))) && (u[C++] = N); return ct(e, t, r, a === 0 ? it : d, u, g, m, h); } function In(e, t, r, o) { return ct(e, t, r, br, At(Rn()), De(e, 2, -2), 0, o); } function tr(e, t, r, o, a) { return ct(e, t, r, Ot, De(e, 0, o), De(e, o + 1, -1), o, a); } function _r(e, t, r) { switch (wn(e, t)) { case 5103: return I + "print-" + e + e; case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: case 6391: case 5879: case 5623: case 6135: case 4599: case 4855: case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: return I + e + e; case 4789: return He + e + e; case 5349: case 4246: case 4810: case 6968: case 2756: return I + e + He + e + j + e + e; case 5936: switch (V(e, t + 11)) { case 114: return I + e + j + _(e, /[svh]\w+-[tblr]{2}/, "tb") + e; case 108: return I + e + j + _(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; case 45: return I + e + j + _(e, /[svh]\w+-[tblr]{2}/, "lr") + e; } case 6828: case 4268: case 2903: return I + e + j + e + e; case 6165: return I + e + j + "flex-" + e + e; case 5187: return I + e + _(e, /(\w+).+(:[^]+)/, I + "box-$1$2" + j + "flex-$1$2") + e; case 5443: return I + e + j + "flex-item-" + _(e, /flex-|-self/g, "") + (ge(e, /flex-|baseline/) ? "" : j + "grid-row-" + _(e, /flex-|-self/g, "")) + e; case 4675: return I + e + j + "flex-line-pack" + _(e, /align-content|flex-|-self/g, "") + e; case 5548: return I + e + j + _(e, "shrink", "negative") + e; case 5292: return I + e + j + _(e, "basis", "preferred-size") + e; case 6060: return I + "box-" + _(e, "-grow", "") + I + e + j + _(e, "grow", "positive") + e; case 4554: return I + _(e, /([^-])(transform)/g, "$1" + I + "$2") + e; case 6187: return _(_(_(e, /(zoom-|grab)/, I + "$1"), /(image-set)/, I + "$1"), e, "") + e; case 5495: case 3959: return _(e, /(image-set\([^]*)/, I + "$1$`$1"); case 4968: return _(_(e, /(.+:)(flex-)?(.*)/, I + "box-pack:$3" + j + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + I + e + e; case 4200: if (!ge(e, /flex-|baseline/)) return j + "grid-column-align" + De(e, t) + e; break; case 2592: case 3360: return j + _(e, "template-", "") + e; case 4384: case 3616: return r && r.some(function(o, a) { return t = a, ge(o.props, /grid-\w+-end/); }) ? ~et(e + (r = r[t].value), "span") ? e : j + _(e, "-start", "") + e + j + "grid-row-span:" + (~et(r, "span") ? ge(r, /\d+/) : +ge(r, /\d+/) - +ge(e, /\d+/)) + ";" : j + _(e, "-start", "") + e; case 4896: case 4128: return r && r.some(function(o) { return ge(o.props, /grid-\w+-start/); }) ? e : j + _(_(e, "-end", "-span"), "span ", "") + e; case 4095: case 3583: case 4068: case 2532: return _(e, /(.+)-inline(.+)/, I + "$1$2") + e; case 8116: case 7059: case 5753: case 5535: case 5445: case 5701: case 4933: case 4677: case 5533: case 5789: case 5021: case 4765: if (le(e) - 1 - t > 6) switch (V(e, t + 1)) { case 109: if (V(e, t + 4) !== 45) break; case 102: return _(e, /(.+:)(.+)-([^]+)/, "$1" + I + "$2-$3$1" + He + (V(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; case 115: return ~et(e, "stretch") ? _r(_(e, "stretch", "fill-available"), t, r) + e : e; } break; case 5152: case 5920: return _(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(o, a, i, c, d, u, g) { return j + a + ":" + i + g + (c ? j + a + "-span:" + (d ? u : +u - +i) + g : "") + e; }); case 4949: if (V(e, t + 6) === 121) return _(e, ":", ":" + I) + e; break; case 6444: switch (V(e, V(e, 14) === 45 ? 18 : 11)) { case 120: return _(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + I + (V(e, 14) === 45 ? "inline-" : "") + "box$3$1" + I + "$2$3$1" + j + "$2box$3") + e; case 100: return _(e, ":", ":" + j) + e; } break; case 5719: case 2647: case 2135: case 3927: case 2391: return _(e, "scroll-", "scroll-snap-") + e; } return e; } function ot(e, t) { for (var r = "", o = 0; o < e.length; o++) r += t(e[o], o, e, t) || ""; return r; } function $n(e, t, r, o) { switch (e.type) { case bn: if (e.children.length) break; case vn: case Ot: return e.return = e.return || e.value; case br: return ""; case Er: return e.return = e.value + "{" + ot(e.children, o) + "}"; case it: if (!le(e.value = e.props.join(","))) return ""; } return le(r = ot(e.children, o)) ? e.return = e.value + "{" + r + "}" : ""; } function Nn(e) { var t = Sr(e); return function(r, o, a, i) { for (var c = "", d = 0; d < t; d++) c += e[d](r, o, a, i) || ""; return c; }; } function Dn(e) { return function(t) { t.root || (t = t.return) && e(t); }; } function jn(e, t, r, o) { if (e.length > -1 && !e.return) switch (e.type) { case Ot: e.return = _r(e.value, e.length, r); return; case Er: return ot([ve(e, { value: _(e.value, "@", "@" + I) })], o); case it: if (e.length) return Sn(r = e.props, function(a) { switch (ge(a, o = /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": $e(ve(e, { props: [_(a, /:(read-\w+)/, ":" + He + "$1")] })), $e(ve(e, { props: [a] })), Rt(e, { props: Qt(r, o) }); break; case "::placeholder": $e(ve(e, { props: [_(a, /:(plac\w+)/, ":" + I + "input-$1")] })), $e(ve(e, { props: [_(a, /:(plac\w+)/, ":" + He + "$1")] })), $e(ve(e, { props: [_(a, /:(plac\w+)/, j + "input-$1")] })), $e(ve(e, { props: [a] })), Rt(e, { props: Qt(r, o) }); break; } return ""; }); } } var Fn = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, // SVG-related properties fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 }, Te = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", It = typeof window < "u" && "HTMLElement" in window, Mn = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), rr = /invalid hook call/i, Ke = /* @__PURE__ */ new Set(), Ln = function(e, t) { if (process.env.NODE_ENV !== "production") { var r = t ? ' with the id of "'.concat(t, '"') : "", o = "The component ".concat(e).concat(r, ` has been created dynamically. `) + `You may see this warning because you've called styled inside another component. To resolve this only create new StyledComponents outside of any render method and function component.`, a = console.error; try { var i = !0; console.error = function(c) { for (var d = [], u = 1; u < arguments.length; u++) d[u - 1] = arguments[u]; rr.test(c) ? (i = !1, Ke.delete(o)) : a.apply(void 0, Ne([c], d, !1)); }, cn(), i && !Ke.has(o) && (console.warn(o), Ke.add(o)); } catch (c) { rr.test(c.message) && Ke.delete(o); } finally { console.error = a; } } }, $t = Object.freeze([]), Fe = Object.freeze({}); function zn(e, t, r) { return r === void 0 && (r = Fe), e.theme !== r.theme && e.theme || t || r.theme; } var Cr = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Yn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Vn = /(^-|-$)/g; function nr(e) { return e.replace(Yn, "-").replace(Vn, ""); } var Wn = /(a)(d)/gi, or = function(e) { return String.fromCharCode(e + (e > 25 ? 39 : 97)); }; function xt(e) { var t, r = ""; for (t = Math.abs(e); t > 52; t = t / 52 | 0) r = or(t % 52) + r; return (or(t % 52) + r).replace(Wn, "$1-$2"); } var gt, Re = function(e, t) { for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r); return e; }, xr = function(e) { return Re(5381, e); }; function Gn(e) { return xt(xr(e) >>> 0); } function Tr(e) { return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component"; } function yt(e) { return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase()); } var Pr = typeof Symbol == "function" && Symbol.for, kr = Pr ? Symbol.for("react.memo") : 60115, Bn = Pr ? Symbol.for("react.forward_ref") : 60112, Un = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, qn = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Or = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Hn = ((gt = {})[Bn] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, gt[kr] = Or, gt); function ar(e) { return ("type" in (t = e) && t.type.$$typeof) === kr ? Or : "$$typeof" in e ? Hn[e.$$typeof] : Un; var t; } var Xn = Object.defineProperty, Kn = Object.getOwnPropertyNames, ir = Object.getOwnPropertySymbols, Jn = Object.getOwnPropertyDescriptor, Zn = Object.getPrototypeOf, sr = Object.prototype; function Ar(e, t, r) { if (typeof t != "string") { if (sr) { var o = Zn(t); o && o !== sr && Ar(e, o, r); } var a = Kn(t); ir && (a = a.concat(ir(t))); for (var i = ar(e), c = ar(t), d = 0; d < a.length; ++d) { var u = a[d]; if (!(u in qn || r && r[u] || c && u in c || i && u in i)) { var g = Jn(t, u); try { Xn(e, u, g); } catch { } } } } return e; } function Me(e) { return typeof e == "function"; } function Nt(e) { return typeof e == "object" && "styledComponentId" in e; } function _e(e, t) { return e && t ? "".concat(e, " ").concat(t) : e || t || ""; } function cr(e, t) { if (e.length === 0) return ""; for (var r = e[0], o = 1; o < e.length; o++) r += t ? t + e[o] : e[o]; return r; } function Le(e) { return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof); } function Tt(e, t, r) { if (r === void 0 && (r = !1), !r && !Le(e) && !Array.isArray(e)) return t; if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = Tt(e[o], t[o]); else if (Le(t)) for (var o in t) e[o] = Tt(e[o], t[o]); return e; } function Dt(e, t) { Object.defineProperty(e, "toString", { value: t }); } var Qn = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle. - Are you trying to reuse it across renders? - Are you accidentally calling collectStyles twice? `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser. `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop! - Does this error occur on the client and is your target falsy? - Does this error occur on the server and is the sheet falsy? `, 5: `The clone method cannot be used on the client! - Are you running in a client-like environment on the server? - Are you trying to run SSR on the client? `, 6: `Trying to insert a new style tag, but the given Node is unmounted! - Are you using a custom target that isn't mounted? - Does your document not have a valid head element? - Have you accidentally removed a style tag manually? `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object. `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021 `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements. `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details. `, 14: `ThemeProvider: "theme" prop is required. `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s. You may only create up to 1,073,741,824 components. If you're creating components dynamically, as for instance in your render method then you may be running into this limitation. `, 17: `CSSStyleSheet could not be found on HTMLStyleElement. Has styled-components' style tag been unmounted or altered by another script? `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {}; function eo() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; for (var r = e[0], o = [], a = 1, i = e.length; a < i; a += 1) o.push(e[a]); return o.forEach(function(c) { r = r.replace(/%[a-z]/, c); }), r; } function Ye(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(eo.apply(void 0, Ne([Qn[e]], t, !1)).trim()); } var to = function() { function e(t) { this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t; } return e.prototype.indexOfGroup = function(t) { for (var r = 0, o = 0; o < t; o++) r += this.groupSizes[o]; return r; }, e.prototype.insertRules = function(t, r) { if (t >= this.groupSizes.length) { for (var o = this.groupSizes, a = o.length, i = a; t >= i; ) if ((i <<= 1) < 0) thr