UNPKG

kylin-ui-component

Version:

A React UI library for some developers to develop quickly

1,357 lines (1,338 loc) 85.9 kB
import * as er from "react"; import B, { useRef as yn, useDebugValue as tr, createElement as vn, useContext as bn, useState as Sn } from "react"; function wn(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var Rt = { exports: {} }, He = {}; /** * @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 rr; function En() { if (rr) return He; rr = 1; var e = B, 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 s(f, u, p) { var m, h = {}, y = null, w = null; p !== void 0 && (y = "" + p), u.key !== void 0 && (y = "" + u.key), u.ref !== void 0 && (w = u.ref); for (m in u) o.call(u, m) && !i.hasOwnProperty(m) && (h[m] = u[m]); if (f && f.defaultProps) for (m in u = f.defaultProps, u) h[m] === void 0 && (h[m] = u[m]); return { $$typeof: t, type: f, key: y, ref: w, props: h, _owner: a.current }; } return He.Fragment = r, He.jsx = s, He.jsxs = s, He; } var Xe = {}; /** * @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 nr; function _n() { return nr || (nr = 1, process.env.NODE_ENV !== "production" && function() { var e = B, 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"), s = Symbol.for("react.provider"), f = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), P = Symbol.iterator, _ = "@@iterator"; function l(n) { if (n === null || typeof n != "object") return null; var c = P && n[P] || n[_]; return typeof c == "function" ? c : null; } var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function E(n) { { for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), S = 1; S < c; S++) d[S - 1] = arguments[S]; F("error", n, d); } } function F(n, c, d) { { var S = C.ReactDebugCurrentFrame, A = S.getStackAddendum(); A !== "" && (c += "%s", d = d.concat([A])); var D = d.map(function(T) { return String(T); }); D.unshift("Warning: " + c), Function.prototype.apply.call(console[n], console, D); } } var k = !1, b = !1, O = !1, g = !1, V = !1, K; K = Symbol.for("react.module.reference"); function ae(n) { return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || V || n === a || n === p || n === m || g || n === w || k || b || O || typeof n == "object" && n !== null && (n.$$typeof === y || n.$$typeof === h || n.$$typeof === s || n.$$typeof === f || 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 Ge(n, c, d) { var S = n.displayName; if (S) return S; var A = c.displayName || c.name || ""; return A !== "" ? d + "(" + A + ")" : d; } function ke(n) { return n.displayName || "Context"; } function H(n) { if (n == null) return null; if (typeof n.tag == "number" && E("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 p: return "Suspense"; case m: return "SuspenseList"; } if (typeof n == "object") switch (n.$$typeof) { case f: var c = n; return ke(c) + ".Consumer"; case s: var d = n; return ke(d._context) + ".Provider"; case u: return Ge(n, n.render, "ForwardRef"); case h: var S = n.displayName || null; return S !== null ? S : H(n.type) || "Memo"; case y: { var A = n, D = A._payload, T = A._init; try { return H(T(D)); } catch { return null; } } } return null; } var te = Object.assign, ie = 0, Oe, Ae, Se, fe, X, de, se; function W() { } W.__reactDisabledLog = !0; function we() { { if (ie === 0) { Oe = console.log, Ae = console.info, Se = 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 Ee() { { if (ie--, ie === 0) { var n = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: te({}, n, { value: Oe }), info: te({}, n, { value: Ae }), warn: te({}, n, { value: Se }), error: te({}, n, { value: fe }), group: te({}, n, { value: X }), groupCollapsed: te({}, n, { value: de }), groupEnd: te({}, n, { value: se }) }); } ie < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var ce = C.ReactCurrentDispatcher, re; function ne(n, c, d) { { if (re === void 0) try { throw Error(); } catch (A) { var S = A.stack.trim().match(/\n( *(at )?)/); re = S && S[1] || ""; } return ` ` + re + n; } } var J = !1, U; { var _e = typeof WeakMap == "function" ? WeakMap : Map; U = new _e(); } function pe(n, c) { if (!n || J) return ""; { var d = U.get(n); if (d !== void 0) return d; } var S; J = !0; var A = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var D; D = ce.current, ce.current = null, we(); try { if (c) { var T = function() { throw Error(); }; if (Object.defineProperty(T.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(T, []); } catch (me) { S = me; } Reflect.construct(n, [], T); } else { try { T.call(); } catch (me) { S = me; } n.call(T.prototype); } } else { try { throw Error(); } catch (me) { S = me; } n(); } } catch (me) { if (me && S && typeof me.stack == "string") { for (var x = me.stack.split(` `), G = S.stack.split(` `), M = x.length - 1, L = G.length - 1; M >= 1 && L >= 0 && x[M] !== G[L]; ) L--; for (; M >= 1 && L >= 0; M--, L--) if (x[M] !== G[L]) { if (M !== 1 || L !== 1) do if (M--, L--, L < 0 || x[M] !== G[L]) { var Q = ` ` + x[M].replace(" at new ", " at "); return n.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", n.displayName)), typeof n == "function" && U.set(n, Q), Q; } while (M >= 1 && L >= 0); break; } } } finally { J = !1, ce.current = D, Ee(), Error.prepareStackTrace = A; } var Ne = n ? n.displayName || n.name : "", Qt = Ne ? ne(Ne) : ""; return typeof n == "function" && U.set(n, Qt), Qt; } function Z(n, c, d) { return pe(n, !1); } function v(n) { var c = n.prototype; return !!(c && c.isReactComponent); } function ve(n, c, d) { if (n == null) return ""; if (typeof n == "function") return pe(n, v(n)); if (typeof n == "string") return ne(n); switch (n) { case p: return ne("Suspense"); case m: return ne("SuspenseList"); } if (typeof n == "object") switch (n.$$typeof) { case u: return Z(n.render); case h: return ve(n.type, c, d); case y: { var S = n, A = S._payload, D = S._init; try { return ve(D(A), c, d); } catch { } } } return ""; } var he = Object.prototype.hasOwnProperty, Ue = {}, Vt = C.ReactDebugCurrentFrame; function Ze(n) { if (n) { var c = n._owner, d = ve(n.type, n._source, c ? c.type : null); Vt.setExtraStackFrame(d); } else Vt.setExtraStackFrame(null); } function Kr(n, c, d, S, A) { { var D = Function.call.bind(he); for (var T in n) if (D(n, T)) { var x = void 0; try { if (typeof n[T] != "function") { var G = Error((S || "React class") + ": " + d + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw G.name = "Invariant Violation", G; } x = n[T](c, T, S, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (M) { x = M; } x && !(x instanceof Error) && (Ze(A), E("%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", d, T, typeof x), Ze(null)), x instanceof Error && !(x.message in Ue) && (Ue[x.message] = !0, Ze(A), E("Failed %s type: %s", d, x.message), Ze(null)); } } } var Jr = Array.isArray; function pt(n) { return Jr(n); } function Zr(n) { { var c = typeof Symbol == "function" && Symbol.toStringTag, d = c && n[Symbol.toStringTag] || n.constructor.name || "Object"; return d; } } function Qr(n) { try { return Wt(n), !1; } catch { return !0; } } function Wt(n) { return "" + n; } function Bt(n) { if (Qr(n)) return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Zr(n)), Wt(n); } var qe = C.ReactCurrentOwner, en = { key: !0, ref: !0, __self: !0, __source: !0 }, Gt, Ut, ht; ht = {}; function tn(n) { if (he.call(n, "ref")) { var c = Object.getOwnPropertyDescriptor(n, "ref").get; if (c && c.isReactWarning) return !1; } return n.ref !== void 0; } function rn(n) { if (he.call(n, "key")) { var c = Object.getOwnPropertyDescriptor(n, "key").get; if (c && c.isReactWarning) return !1; } return n.key !== void 0; } function nn(n, c) { if (typeof n.ref == "string" && qe.current && c && qe.current.stateNode !== c) { var d = H(qe.current.type); ht[d] || (E('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(qe.current.type), n.ref), ht[d] = !0); } } function on(n, c) { { var d = function() { Gt || (Gt = !0, E("%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)", c)); }; d.isReactWarning = !0, Object.defineProperty(n, "key", { get: d, configurable: !0 }); } } function an(n, c) { { var d = function() { Ut || (Ut = !0, E("%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)", c)); }; d.isReactWarning = !0, Object.defineProperty(n, "ref", { get: d, configurable: !0 }); } } var sn = function(n, c, d, S, A, D, T) { 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: n, key: c, ref: d, props: T, // Record the component responsible for creating this element. _owner: D }; 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: S }), Object.defineProperty(x, "_source", { configurable: !1, enumerable: !1, writable: !1, value: A }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x; }; function cn(n, c, d, S, A) { { var D, T = {}, x = null, G = null; d !== void 0 && (Bt(d), x = "" + d), rn(c) && (Bt(c.key), x = "" + c.key), tn(c) && (G = c.ref, nn(c, A)); for (D in c) he.call(c, D) && !en.hasOwnProperty(D) && (T[D] = c[D]); if (n && n.defaultProps) { var M = n.defaultProps; for (D in M) T[D] === void 0 && (T[D] = M[D]); } if (x || G) { var L = typeof n == "function" ? n.displayName || n.name || "Unknown" : n; x && on(T, L), G && an(T, L); } return sn(n, x, G, A, S, qe.current, T); } } var mt = C.ReactCurrentOwner, qt = C.ReactDebugCurrentFrame; function Ie(n) { if (n) { var c = n._owner, d = ve(n.type, n._source, c ? c.type : null); qt.setExtraStackFrame(d); } else qt.setExtraStackFrame(null); } var gt; gt = !1; function yt(n) { return typeof n == "object" && n !== null && n.$$typeof === t; } function Ht() { { if (mt.current) { var n = H(mt.current.type); if (n) return ` Check the render method of \`` + n + "`."; } return ""; } } function un(n) { { if (n !== void 0) { var c = n.fileName.replace(/^.*[\\\/]/, ""), d = n.lineNumber; return ` Check your code at ` + c + ":" + d + "."; } return ""; } } var Xt = {}; function ln(n) { { var c = Ht(); if (!c) { var d = typeof n == "string" ? n : n.displayName || n.name; d && (c = ` Check the top-level render call using <` + d + ">."); } return c; } } function Kt(n, c) { { if (!n._store || n._store.validated || n.key != null) return; n._store.validated = !0; var d = ln(c); if (Xt[d]) return; Xt[d] = !0; var S = ""; n && n._owner && n._owner !== mt.current && (S = " It was passed a child from " + H(n._owner.type) + "."), Ie(n), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, S), Ie(null); } } function Jt(n, c) { { if (typeof n != "object") return; if (pt(n)) for (var d = 0; d < n.length; d++) { var S = n[d]; yt(S) && Kt(S, c); } else if (yt(n)) n._store && (n._store.validated = !0); else if (n) { var A = l(n); if (typeof A == "function" && A !== n.entries) for (var D = A.call(n), T; !(T = D.next()).done; ) yt(T.value) && Kt(T.value, c); } } } function fn(n) { { var c = n.type; if (c == null || typeof c == "string") return; var d; if (typeof c == "function") d = c.propTypes; else if (typeof c == "object" && (c.$$typeof === u || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. c.$$typeof === h)) d = c.propTypes; else return; if (d) { var S = H(c); Kr(d, n.props, "prop", S, n); } else if (c.PropTypes !== void 0 && !gt) { gt = !0; var A = H(c); E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown"); } typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function dn(n) { { for (var c = Object.keys(n.props), d = 0; d < c.length; d++) { var S = c[d]; if (S !== "children" && S !== "key") { Ie(n), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Ie(null); break; } } n.ref !== null && (Ie(n), E("Invalid attribute `ref` supplied to `React.Fragment`."), Ie(null)); } } function Zt(n, c, d, S, A, D) { { var T = ae(n); if (!T) { var x = ""; (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).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 G = un(A); G ? x += G : x += Ht(); var M; n === null ? M = "null" : pt(n) ? M = "array" : n !== void 0 && n.$$typeof === t ? (M = "<" + (H(n.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : M = typeof n, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, x); } var L = cn(n, c, d, A, D); if (L == null) return L; if (T) { var Q = c.children; if (Q !== void 0) if (S) if (pt(Q)) { for (var Ne = 0; Ne < Q.length; Ne++) Jt(Q[Ne], n); Object.freeze && Object.freeze(Q); } else E("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 Jt(Q, n); } return n === o ? dn(L) : fn(L), L; } } function pn(n, c, d) { return Zt(n, c, d, !0); } function hn(n, c, d) { return Zt(n, c, d, !1); } var mn = hn, gn = pn; Xe.Fragment = o, Xe.jsx = mn, Xe.jsxs = gn; }()), Xe; } process.env.NODE_ENV === "production" ? Rt.exports = En() : Rt.exports = _n(); var $t = Rt.exports; const Rn = $t.Fragment, ye = $t.jsx, Cr = $t.jsxs; var xr = { exports: {} }; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ (function(e) { (function() { var t = {}.hasOwnProperty; function r() { for (var o = [], a = 0; a < arguments.length; a++) { var i = arguments[a]; if (i) { var s = typeof i; if (s === "string" || s === "number") o.push(i); else if (Array.isArray(i)) { if (i.length) { var f = r.apply(null, i); f && o.push(f); } } else if (s === "object") { if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) { o.push(i.toString()); continue; } for (var u in i) t.call(i, u) && i[u] && o.push(u); } } } return o.join(" "); } e.exports ? (r.default = r, e.exports = r) : window.classNames = r; })(); })(xr); var Cn = xr.exports; const xn = /* @__PURE__ */ wn(Cn); 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 je(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 Pn(e) { var t = /* @__PURE__ */ Object.create(null); return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } var Tn = /^((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)-.*))$/, kn = /* @__PURE__ */ Pn( function(e) { return Tn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ), j = "-ms-", Je = "-moz-", $ = "-webkit-", Pr = "comm", ut = "rule", Dt = "decl", On = "@import", Tr = "@keyframes", An = "@layer", In = Math.abs, jt = String.fromCharCode, Ct = Object.assign; function Nn(e, t) { return Y(e, 0) ^ 45 ? (((t << 2 ^ Y(e, 0)) << 2 ^ Y(e, 1)) << 2 ^ Y(e, 2)) << 2 ^ Y(e, 3) : 0; } function kr(e) { return e.trim(); } function ge(e, t) { return (e = t.exec(e)) ? e[0] : e; } function R(e, t, r) { return e.replace(t, r); } function nt(e, t) { return e.indexOf(t); } function Y(e, t) { return e.charCodeAt(t) | 0; } function Me(e, t, r) { return e.slice(t, r); } function le(e) { return e.length; } function Or(e) { return e.length; } function Ke(e, t) { return t.push(e), e; } function $n(e, t) { return e.map(t).join(""); } function or(e, t) { return e.filter(function(r) { return !ge(r, t); }); } var lt = 1, Fe = 1, Ar = 0, ee = 0, z = 0, Ve = ""; function ft(e, t, r, o, a, i, s, f) { return { value: e, root: t, parent: r, type: o, props: a, children: i, line: lt, column: Fe, length: s, return: "", siblings: f }; } function be(e, t) { return Ct(ft("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t); } function $e(e) { for (; e.root; ) e = be(e.root, { children: [e] }); Ke(e, e.siblings); } function Dn() { return z; } function jn() { return z = ee > 0 ? Y(Ve, --ee) : 0, Fe--, z === 10 && (Fe = 1, lt--), z; } function oe() { return z = ee < Ar ? Y(Ve, ee++) : 0, Fe++, z === 10 && (Fe = 1, lt++), z; } function xe() { return Y(Ve, ee); } function ot() { return ee; } function dt(e, t) { return Me(Ve, e, t); } function xt(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 Mn(e) { return lt = Fe = 1, Ar = le(Ve = e), ee = 0, []; } function Fn(e) { return Ve = "", e; } function vt(e) { return kr(dt(ee - 1, Pt(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function Ln(e) { for (; (z = xe()) && z < 33; ) oe(); return xt(e) > 2 || xt(z) > 3 ? "" : " "; } function zn(e, t) { for (; --t && oe() && !(z < 48 || z > 102 || z > 57 && z < 65 || z > 70 && z < 97); ) ; return dt(e, ot() + (t < 6 && xe() == 32 && oe() == 32)); } function Pt(e) { for (; oe(); ) switch (z) { case e: return ee; case 34: case 39: e !== 34 && e !== 39 && Pt(z); break; case 40: e === 41 && Pt(e); break; case 92: oe(); break; } return ee; } function Yn(e, t) { for (; oe() && e + z !== 47 + 10; ) if (e + z === 42 + 42 && xe() === 47) break; return "/*" + dt(t, ee - 1) + "*" + jt(e === 47 ? e : oe()); } function Vn(e) { for (; !xt(xe()); ) oe(); return dt(e, ee); } function Wn(e) { return Fn(at("", null, null, null, [""], e = Mn(e), 0, [0], e)); } function at(e, t, r, o, a, i, s, f, u) { for (var p = 0, m = 0, h = s, y = 0, w = 0, P = 0, _ = 1, l = 1, C = 1, E = 0, F = "", k = a, b = i, O = o, g = F; l; ) switch (P = E, E = oe()) { case 40: if (P != 108 && Y(g, h - 1) == 58) { nt(g += R(vt(E), "&", "&\f"), "&\f") != -1 && (C = -1); break; } case 34: case 39: case 91: g += vt(E); break; case 9: case 10: case 13: case 32: g += Ln(P); break; case 92: g += zn(ot() - 1, 7); continue; case 47: switch (xe()) { case 42: case 47: Ke(Bn(Yn(oe(), ot()), t, r, u), u); break; default: g += "/"; } break; case 123 * _: f[p++] = le(g) * C; case 125 * _: case 59: case 0: switch (E) { case 0: case 125: l = 0; case 59 + m: C == -1 && (g = R(g, /\f/g, "")), w > 0 && le(g) - h && Ke(w > 32 ? ir(g + ";", o, r, h - 1, u) : ir(R(g, " ", "") + ";", o, r, h - 2, u), u); break; case 59: g += ";"; default: if (Ke(O = ar(g, t, r, p, m, a, f, F, k = [], b = [], h, i), i), E === 123) if (m === 0) at(g, t, O, O, k, i, h, f, b); else switch (y === 99 && Y(g, 3) === 110 ? 100 : y) { case 100: case 108: case 109: case 115: at(e, O, O, o && Ke(ar(e, O, O, 0, 0, a, f, F, a, k = [], h, b), b), a, b, h, f, o ? k : b); break; default: at(g, O, O, O, [""], b, 0, f, b); } } p = m = w = 0, _ = C = 1, F = g = "", h = s; break; case 58: h = 1 + le(g), w = P; default: if (_ < 1) { if (E == 123) --_; else if (E == 125 && _++ == 0 && jn() == 125) continue; } switch (g += jt(E), E * _) { case 38: C = m > 0 ? 1 : (g += "\f", -1); break; case 44: f[p++] = (le(g) - 1) * C, C = 1; break; case 64: xe() === 45 && (g += vt(oe())), y = xe(), m = h = le(F = g += Vn(ot())), E++; break; case 45: P === 45 && le(g) == 2 && (_ = 0); } } return i; } function ar(e, t, r, o, a, i, s, f, u, p, m, h) { for (var y = a - 1, w = a === 0 ? i : [""], P = Or(w), _ = 0, l = 0, C = 0; _ < o; ++_) for (var E = 0, F = Me(e, y + 1, y = In(l = s[_])), k = e; E < P; ++E) (k = kr(l > 0 ? w[E] + " " + F : R(F, /&\f/g, w[E]))) && (u[C++] = k); return ft(e, t, r, a === 0 ? ut : f, u, p, m, h); } function Bn(e, t, r, o) { return ft(e, t, r, Pr, jt(Dn()), Me(e, 2, -2), 0, o); } function ir(e, t, r, o, a) { return ft(e, t, r, Dt, Me(e, 0, o), Me(e, o + 1, -1), o, a); } function Ir(e, t, r) { switch (Nn(e, t)) { case 5103: return $ + "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 $ + e + e; case 4789: return Je + e + e; case 5349: case 4246: case 4810: case 6968: case 2756: return $ + e + Je + e + j + e + e; case 5936: switch (Y(e, t + 11)) { case 114: return $ + e + j + R(e, /[svh]\w+-[tblr]{2}/, "tb") + e; case 108: return $ + e + j + R(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; case 45: return $ + e + j + R(e, /[svh]\w+-[tblr]{2}/, "lr") + e; } case 6828: case 4268: case 2903: return $ + e + j + e + e; case 6165: return $ + e + j + "flex-" + e + e; case 5187: return $ + e + R(e, /(\w+).+(:[^]+)/, $ + "box-$1$2" + j + "flex-$1$2") + e; case 5443: return $ + e + j + "flex-item-" + R(e, /flex-|-self/g, "") + (ge(e, /flex-|baseline/) ? "" : j + "grid-row-" + R(e, /flex-|-self/g, "")) + e; case 4675: return $ + e + j + "flex-line-pack" + R(e, /align-content|flex-|-self/g, "") + e; case 5548: return $ + e + j + R(e, "shrink", "negative") + e; case 5292: return $ + e + j + R(e, "basis", "preferred-size") + e; case 6060: return $ + "box-" + R(e, "-grow", "") + $ + e + j + R(e, "grow", "positive") + e; case 4554: return $ + R(e, /([^-])(transform)/g, "$1" + $ + "$2") + e; case 6187: return R(R(R(e, /(zoom-|grab)/, $ + "$1"), /(image-set)/, $ + "$1"), e, "") + e; case 5495: case 3959: return R(e, /(image-set\([^]*)/, $ + "$1$`$1"); case 4968: return R(R(e, /(.+:)(flex-)?(.*)/, $ + "box-pack:$3" + j + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + $ + e + e; case 4200: if (!ge(e, /flex-|baseline/)) return j + "grid-column-align" + Me(e, t) + e; break; case 2592: case 3360: return j + R(e, "template-", "") + e; case 4384: case 3616: return r && r.some(function(o, a) { return t = a, ge(o.props, /grid-\w+-end/); }) ? ~nt(e + (r = r[t].value), "span") ? e : j + R(e, "-start", "") + e + j + "grid-row-span:" + (~nt(r, "span") ? ge(r, /\d+/) : +ge(r, /\d+/) - +ge(e, /\d+/)) + ";" : j + R(e, "-start", "") + e; case 4896: case 4128: return r && r.some(function(o) { return ge(o.props, /grid-\w+-start/); }) ? e : j + R(R(e, "-end", "-span"), "span ", "") + e; case 4095: case 3583: case 4068: case 2532: return R(e, /(.+)-inline(.+)/, $ + "$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 (Y(e, t + 1)) { case 109: if (Y(e, t + 4) !== 45) break; case 102: return R(e, /(.+:)(.+)-([^]+)/, "$1" + $ + "$2-$3$1" + Je + (Y(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; case 115: return ~nt(e, "stretch") ? Ir(R(e, "stretch", "fill-available"), t, r) + e : e; } break; case 5152: case 5920: return R(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(o, a, i, s, f, u, p) { return j + a + ":" + i + p + (s ? j + a + "-span:" + (f ? u : +u - +i) + p : "") + e; }); case 4949: if (Y(e, t + 6) === 121) return R(e, ":", ":" + $) + e; break; case 6444: switch (Y(e, Y(e, 14) === 45 ? 18 : 11)) { case 120: return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + $ + (Y(e, 14) === 45 ? "inline-" : "") + "box$3$1" + $ + "$2$3$1" + j + "$2box$3") + e; case 100: return R(e, ":", ":" + j) + e; } break; case 5719: case 2647: case 2135: case 3927: case 2391: return R(e, "scroll-", "scroll-snap-") + e; } return e; } function st(e, t) { for (var r = "", o = 0; o < e.length; o++) r += t(e[o], o, e, t) || ""; return r; } function Gn(e, t, r, o) { switch (e.type) { case An: if (e.children.length) break; case On: case Dt: return e.return = e.return || e.value; case Pr: return ""; case Tr: return e.return = e.value + "{" + st(e.children, o) + "}"; case ut: if (!le(e.value = e.props.join(","))) return ""; } return le(r = st(e.children, o)) ? e.return = e.value + "{" + r + "}" : ""; } function Un(e) { var t = Or(e); return function(r, o, a, i) { for (var s = "", f = 0; f < t; f++) s += e[f](r, o, a, i) || ""; return s; }; } function qn(e) { return function(t) { t.root || (t = t.return) && e(t); }; } function Hn(e, t, r, o) { if (e.length > -1 && !e.return) switch (e.type) { case Dt: e.return = Ir(e.value, e.length, r); return; case Tr: return st([be(e, { value: R(e.value, "@", "@" + $) })], o); case ut: if (e.length) return $n(r = e.props, function(a) { switch (ge(a, o = /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": $e(be(e, { props: [R(a, /:(read-\w+)/, ":" + Je + "$1")] })), $e(be(e, { props: [a] })), Ct(e, { props: or(r, o) }); break; case "::placeholder": $e(be(e, { props: [R(a, /:(plac\w+)/, ":" + $ + "input-$1")] })), $e(be(e, { props: [R(a, /:(plac\w+)/, ":" + Je + "$1")] })), $e(be(e, { props: [R(a, /:(plac\w+)/, j + "input-$1")] })), $e(be(e, { props: [a] })), Ct(e, { props: or(r, o) }); break; } return ""; }); } } var Xn = { 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", Mt = typeof window < "u" && "HTMLElement" in window, Kn = !!(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"), sr = /invalid hook call/i, Qe = /* @__PURE__ */ new Set(), Jn = 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(s) { for (var f = [], u = 1; u < arguments.length; u++) f[u - 1] = arguments[u]; sr.test(s) ? (i = !1, Qe.delete(o)) : a.apply(void 0, je([s], f, !1)); }, yn(), i && !Qe.has(o) && (console.warn(o), Qe.add(o)); } catch (s) { sr.test(s.message) && Qe.delete(o); } finally { console.error = a; } } }, Ft = Object.freeze([]), Le = Object.freeze({}); function Zn(e, t, r) { return r === void 0 && (r = Le), e.theme !== r.theme && e.theme || t || r.theme; } var Nr = /* @__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"]), Qn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, eo = /(^-|-$)/g; function cr(e) { return e.replace(Qn, "-").replace(eo, ""); } var to = /(a)(d)/gi, ur = function(e) { return String.fromCharCode(e + (e > 25 ? 39 : 97)); }; function Tt(e) { var t, r = ""; for (t = Math.abs(e); t > 52; t = t / 52 | 0) r = ur(t % 52) + r; return (ur(t % 52) + r).replace(to, "$1-$2"); } var bt, Re = function(e, t) { for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r); return e; }, $r = function(e) { return Re(5381, e); }; function ro(e) { return Tt($r(e) >>> 0); } function Dr(e) { return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component"; } function St(e) { return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase()); } var jr = typeof Symbol == "function" && Symbol.for, Mr = jr ? Symbol.for("react.memo") : 60115, no = jr ? Symbol.for("react.forward_ref") : 60112, oo = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, ao = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Fr = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, io = ((bt = {})[no] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, bt[Mr] = Fr, bt); function lr(e) { return ("type" in (t = e) && t.type.$$typeof) === Mr ? Fr : "$$typeof" in e ? io[e.$$typeof] : oo; var t; } var so = Object.defineProperty, co = Object.getOwnPropertyNames, fr = Object.getOwnPropertySymbols, uo = Object.getOwnPropertyDescriptor, lo = Object.getPrototypeOf, dr = Object.prototype; function Lr(e, t, r) { if (typeof t != "string") { if (dr) { var o = lo(t); o && o !== dr && Lr(e, o, r); } var a = co(t); fr && (a = a.concat(fr(t))); for (var i = lr(e), s = lr(t), f = 0; f < a.length; ++f) { var u = a[f]; if (!(u in ao || r && r[u] || s && u in s || i && u in i)) { var p = uo(t, u); try { so(e, u, p); } catch { } } } } return e; } function ze(e) { return typeof e == "function"; } function Lt(e) { return typeof e == "object" && "styledComponentId" in e; } function Ce(e, t) { return e && t ? "".concat(e, " ").concat(t) : e || t || ""; } function pr(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 Ye(e) { return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof); } function kt(e, t, r) { if (r === void 0 && (r = !1), !r && !Ye(e) && !Array.isArray(e)) return t; if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = kt(e[o], t[o]); else if (Ye(t)) for (var o in t) e[o] = kt(e[o], t[o]); return e; } function zt(e, t) { Object.defineProperty(e, "toString", { value: t }); } var fo = 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: "ThemePr