UNPKG

dgz-ui

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript

1,269 lines (1,252 loc) 634 kB
var Dp = Object.defineProperty; var Vp = (n, e, t) => e in n ? Dp(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t; var Q = (n, e, t) => Vp(n, typeof e != "symbol" ? e + "" : e, t); import { jsx as te, jsxs as qs, Fragment as Gp } from "react/jsx-runtime"; import * as q from "react"; import ke, { createElement as Hp, createRef as yu, useState as It, useEffect as mi, forwardRef as Zs, useCallback as Xe, useContext as Rh, useLayoutEffect as Xp, useRef as Qt, useMemo as Lt, createContext as jp, Component as Wp, Fragment as jo } from "react"; import { u as Wn } from "./index-DLcqcWxM.es.js"; import { a as Oh, P as sn, c as Ir, b as zs } from "./index-BVqmUhu5.es.js"; import { u as kl } from "./index-BdfbDt7y.es.js"; import { u as Rl, _ as qp, j as Zp, k as de } from "./select-BTgKkicD.es.js"; import { u as Ol, b as zp } from "./index-Bli6ZByj.es.js"; import { R as $p, s as Yp, X as Up, q as Jp } from "./index-Br4MVOGV.es.js"; import { c as We, t as cn } from "./utils-CnvKSirc.es.js"; import { _ as ht, a as Ar } from "./index-BKZjW6I1.es.js"; import { c as Qp, S as Kp } from "./index-DvGm4EwH.es.js"; import { FormProvider as eg, Controller as tg, useFormContext as ng } from "react-hook-form"; import { createPortal as rg } from "react-dom"; import { c as _l } from "./index-xA4mlFw5.es.js"; import { c as mn, g as Bl } from "./_commonjsHelpers-DaMA6jEr.es.js"; import { R as ig, I as sg, c as _h } from "./index-DNQZbZsM.es.js"; import { u as ag } from "./index-DBXFJW5M.es.js"; import { C as og } from "./circle--GxygOe5.es.js"; import { B as lg } from "./button-DTRIYqDb.es.js"; var $s = "Checkbox", [ug] = zs($s), [cg, Fl] = ug($s); function hg(n) { const { __scopeCheckbox: e, checked: t, children: r, defaultChecked: i, disabled: s, form: a, name: o, onCheckedChange: l, required: u, value: h = "on", // @ts-expect-error internal_do_not_use_render: d } = n, [f, p] = kl({ prop: t, defaultProp: i ?? !1, onChange: l, caller: $s }), [m, b] = q.useState(null), [y, v] = q.useState(null), S = q.useRef(!1), E = m ? !!a || !!m.closest("form") : ( // We set this to true by default so that events bubble to forms without JS (SSR) !0 ), x = { checked: f, disabled: s, setChecked: p, control: m, setControl: b, name: o, form: a, value: h, hasConsumerStoppedPropagationRef: S, required: u, defaultChecked: Cn(i) ? !1 : i, isFormControl: E, bubbleInput: y, setBubbleInput: v }; return /* @__PURE__ */ te( cg, { scope: e, ...x, children: dg(d) ? d(x) : r } ); } var Bh = "CheckboxTrigger", Fh = q.forwardRef( ({ __scopeCheckbox: n, onKeyDown: e, onClick: t, ...r }, i) => { const { control: s, value: a, disabled: o, checked: l, required: u, setControl: h, setChecked: d, hasConsumerStoppedPropagationRef: f, isFormControl: p, bubbleInput: m } = Fl(Bh, n), b = Wn(i, h), y = q.useRef(l); return q.useEffect(() => { const v = s == null ? void 0 : s.form; if (v) { const S = () => d(y.current); return v.addEventListener("reset", S), () => v.removeEventListener("reset", S); } }, [s, d]), /* @__PURE__ */ te( sn.button, { type: "button", role: "checkbox", "aria-checked": Cn(l) ? "mixed" : l, "aria-required": u, "data-state": Vh(l), "data-disabled": o ? "" : void 0, disabled: o, value: a, ...r, ref: b, onKeyDown: Ir(e, (v) => { v.key === "Enter" && v.preventDefault(); }), onClick: Ir(t, (v) => { d((S) => Cn(S) ? !0 : !S), m && p && (f.current = v.isPropagationStopped(), f.current || v.stopPropagation()); }) } ); } ); Fh.displayName = Bh; var Ll = q.forwardRef( (n, e) => { const { __scopeCheckbox: t, name: r, checked: i, defaultChecked: s, required: a, disabled: o, value: l, onCheckedChange: u, form: h, ...d } = n; return /* @__PURE__ */ te( hg, { __scopeCheckbox: t, checked: i, defaultChecked: s, disabled: o, required: a, onCheckedChange: u, name: r, form: h, value: l, internal_do_not_use_render: ({ isFormControl: f }) => /* @__PURE__ */ qs(Gp, { children: [ /* @__PURE__ */ te( Fh, { ...d, ref: e, __scopeCheckbox: t } ), f && /* @__PURE__ */ te( Dh, { __scopeCheckbox: t } ) ] }) } ); } ); Ll.displayName = $s; var Lh = "CheckboxIndicator", Mh = q.forwardRef( (n, e) => { const { __scopeCheckbox: t, forceMount: r, ...i } = n, s = Fl(Lh, t); return /* @__PURE__ */ te( Oh, { present: r || Cn(s.checked) || s.checked === !0, children: /* @__PURE__ */ te( sn.span, { "data-state": Vh(s.checked), "data-disabled": s.disabled ? "" : void 0, ...i, ref: e, style: { pointerEvents: "none", ...n.style } } ) } ); } ); Mh.displayName = Lh; var Ph = "CheckboxBubbleInput", Dh = q.forwardRef( ({ __scopeCheckbox: n, ...e }, t) => { const { control: r, hasConsumerStoppedPropagationRef: i, checked: s, defaultChecked: a, required: o, disabled: l, name: u, value: h, form: d, bubbleInput: f, setBubbleInput: p } = Fl(Ph, n), m = Wn(t, p), b = Rl(s), y = Ol(r); q.useEffect(() => { const S = f; if (!S) return; const E = window.HTMLInputElement.prototype, C = Object.getOwnPropertyDescriptor( E, "checked" ).set, R = !i.current; if (b !== s && C) { const k = new Event("click", { bubbles: R }); S.indeterminate = Cn(s), C.call(S, Cn(s) ? !1 : s), S.dispatchEvent(k); } }, [f, b, s, i]); const v = q.useRef(Cn(s) ? !1 : s); return /* @__PURE__ */ te( sn.input, { type: "checkbox", "aria-hidden": !0, defaultChecked: a ?? v.current, required: o, disabled: l, name: u, value: h, form: d, ...e, tabIndex: -1, ref: m, style: { ...e.style, ...y, position: "absolute", pointerEvents: "none", opacity: 0, margin: 0, // We transform because the input is absolutely positioned but we have // rendered it **after** the button. This pulls it back to sit on top // of the button. transform: "translateX(-100%)" } } ); } ); Dh.displayName = Ph; function dg(n) { return typeof n == "function"; } function Cn(n) { return n === "indeterminate"; } function Vh(n) { return Cn(n) ? "indeterminate" : n ? "checked" : "unchecked"; } const fg = q.forwardRef(({ className: n, ...e }, t) => /* @__PURE__ */ te( Ll, { ref: t, className: We( "peer border-border-alpha-strong ring-offset-background size-4 shrink-0 cursor-pointer rounded-sm border disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:text-primary data-[state=checked]:bg-item-primary", n ), ...e, children: /* @__PURE__ */ te( Mh, { className: We("flex size-4 items-center justify-center text-current"), children: e.checked === "indeterminate" ? /* @__PURE__ */ te($p, { className: "mr-0.5 mb-0.5 size-3.5 text-white" }) : /* @__PURE__ */ te(Yp, { className: "mr-0.5 mb-0.5 size-3.5 text-white" }) } ) } )); fg.displayName = Ll.displayName; function Gh(n) { var e = /* @__PURE__ */ Object.create(null); return function(t) { return e[t] === void 0 && (e[t] = n(t)), e[t]; }; } var pg = /^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/, gg = /* @__PURE__ */ Gh( function(n) { return pg.test(n) || n.charCodeAt(0) === 111 && n.charCodeAt(1) === 110 && n.charCodeAt(2) < 91; } /* Z+1 */ ), Oe = "-ms-", ci = "-moz-", Ie = "-webkit-", Hh = "comm", Ys = "rule", Ml = "decl", mg = "@import", bg = "@namespace", Xh = "@keyframes", vg = "@layer", jh = Math.abs, Pl = String.fromCharCode, Wo = Object.assign; function yg(n, e) { return De(n, 0) ^ 45 ? (((e << 2 ^ De(n, 0)) << 2 ^ De(n, 1)) << 2 ^ De(n, 2)) << 2 ^ De(n, 3) : 0; } function Wh(n) { return n.trim(); } function Yt(n, e) { return (n = e.exec(n)) ? n[0] : n; } function ge(n, e, t) { return n.replace(e, t); } function vs(n, e, t) { return n.indexOf(e, t); } function De(n, e) { return n.charCodeAt(e) | 0; } function Dn(n, e, t) { return n.slice(e, t); } function vt(n) { return n.length; } function qh(n) { return n.length; } function ri(n, e) { return e.push(n), n; } function Cg(n, e) { return n.map(e).join(""); } function Cu(n, e) { return n.filter(function(t) { return !Yt(t, e); }); } var Us = 1, Er = 1, Zh = 0, ft = 0, Le = 0, Br = ""; function Js(n, e, t, r, i, s, a, o) { return { value: n, root: e, parent: t, type: r, props: i, children: s, line: Us, column: Er, length: a, return: "", siblings: o }; } function hn(n, e) { return Wo(Js("", null, null, "", null, null, 0, n.siblings), n, { length: -n.length }, e); } function lr(n) { for (; n.root; ) n = hn(n.root, { children: [n] }); ri(n, n.siblings); } function Ig() { return Le; } function Ag() { return Le = ft > 0 ? De(Br, --ft) : 0, Er--, Le === 10 && (Er = 1, Us--), Le; } function At() { return Le = ft < Zh ? De(Br, ft++) : 0, Er++, Le === 10 && (Er = 1, Us++), Le; } function bn() { return De(Br, ft); } function ys() { return ft; } function Qs(n, e) { return Dn(Br, n, e); } function bi(n) { switch (n) { // \0 \t \n \r \s whitespace token case 0: case 9: case 10: case 13: case 32: return 5; // ! + , / > @ ~ isolate token case 33: case 43: case 44: case 47: case 62: case 64: case 126: // ; { } breakpoint token case 59: case 123: case 125: return 4; // : accompanied token case 58: return 3; // " ' ( [ opening delimit token case 34: case 39: case 40: case 91: return 2; // ) ] closing delimit token case 41: case 93: return 1; } return 0; } function Eg(n) { return Us = Er = 1, Zh = vt(Br = n), ft = 0, []; } function xg(n) { return Br = "", n; } function oo(n) { return Wh(Qs(ft - 1, qo(n === 91 ? n + 2 : n === 40 ? n + 1 : n))); } function Sg(n) { for (; (Le = bn()) && Le < 33; ) At(); return bi(n) > 2 || bi(Le) > 3 ? "" : " "; } function wg(n, e) { for (; --e && At() && !(Le < 48 || Le > 102 || Le > 57 && Le < 65 || Le > 70 && Le < 97); ) ; return Qs(n, ys() + (e < 6 && bn() == 32 && At() == 32)); } function qo(n) { for (; At(); ) switch (Le) { // ] ) " ' case n: return ft; // " ' case 34: case 39: n !== 34 && n !== 39 && qo(Le); break; // ( case 40: n === 41 && qo(n); break; // \ case 92: At(); break; } return ft; } function Tg(n, e) { for (; At() && n + Le !== 57; ) if (n + Le === 84 && bn() === 47) break; return "/*" + Qs(e, ft - 1) + "*" + Pl(n === 47 ? n : At()); } function Ng(n) { for (; !bi(bn()); ) At(); return Qs(n, ft); } function kg(n) { return xg(Cs("", null, null, null, [""], n = Eg(n), 0, [0], n)); } function Cs(n, e, t, r, i, s, a, o, l) { for (var u = 0, h = 0, d = a, f = 0, p = 0, m = 0, b = 1, y = 1, v = 1, S = 0, E = "", x = i, C = s, R = r, k = E; y; ) switch (m = S, S = At()) { // ( case 40: if (m != 108 && De(k, d - 1) == 58) { vs(k += ge(oo(S), "&", "&\f"), "&\f", jh(u ? o[u - 1] : 0)) != -1 && (v = -1); break; } // " ' [ case 34: case 39: case 91: k += oo(S); break; // \t \n \r \s case 9: case 10: case 13: case 32: k += Sg(m); break; // \ case 92: k += wg(ys() - 1, 7); continue; // / case 47: switch (bn()) { case 42: case 47: ri(Rg(Tg(At(), ys()), e, t, l), l), (bi(m || 1) == 5 || bi(bn() || 1) == 5) && vt(k) && Dn(k, -1, void 0) !== " " && (k += " "); break; default: k += "/"; } break; // { case 123 * b: o[u++] = vt(k) * v; // } ; \0 case 125 * b: case 59: case 0: switch (S) { // \0 } case 0: case 125: y = 0; // ; case 59 + h: v == -1 && (k = ge(k, /\f/g, "")), p > 0 && (vt(k) - d || b === 0 && m === 47) && ri(p > 32 ? Au(k + ";", r, t, d - 1, l) : Au(ge(k, " ", "") + ";", r, t, d - 2, l), l); break; // @ ; case 59: k += ";"; // { rule/at-rule default: if (ri(R = Iu(k, e, t, u, h, i, o, E, x = [], C = [], d, s), s), S === 123) if (h === 0) Cs(k, e, R, R, x, s, d, o, C); else { switch (f) { // c(ontainer) case 99: if (De(k, 3) === 110) break; // l(ayer) case 108: if (De(k, 2) === 97) break; default: h = 0; // d(ocument) m(edia) s(upports) case 100: case 109: case 115: } h ? Cs(n, R, R, r && ri(Iu(n, R, R, 0, 0, i, o, E, i, x = [], d, C), C), i, C, d, o, r ? x : C) : Cs(k, R, R, R, [""], C, 0, o, C); } } u = h = p = 0, b = v = 1, E = k = "", d = a; break; // : case 58: d = 1 + vt(k), p = m; default: if (b < 1) { if (S == 123) --b; else if (S == 125 && b++ == 0 && Ag() == 125) continue; } switch (k += Pl(S), S * b) { // & case 38: v = h > 0 ? 1 : (k += "\f", -1); break; // , case 44: o[u++] = (vt(k) - 1) * v, v = 1; break; // @ case 64: bn() === 45 && (k += oo(At())), f = bn(), h = d = vt(E = k += Ng(ys())), S++; break; // - case 45: m === 45 && vt(k) == 2 && (b = 0); } } return s; } function Iu(n, e, t, r, i, s, a, o, l, u, h, d) { for (var f = i - 1, p = i === 0 ? s : [""], m = qh(p), b = 0, y = 0, v = 0; b < r; ++b) for (var S = 0, E = Dn(n, f + 1, f = jh(y = a[b])), x = n; S < m; ++S) (x = Wh(y > 0 ? p[S] + " " + E : ge(E, /&\f/g, p[S]))) && (l[v++] = x); return Js(n, e, t, i === 0 ? Ys : o, l, u, h, d); } function Rg(n, e, t, r) { return Js(n, e, t, Hh, Pl(Ig()), Dn(n, 2, -2), 0, r); } function Au(n, e, t, r, i) { return Js(n, e, t, Ml, Dn(n, 0, r), Dn(n, r + 1, -1), r, i); } function zh(n, e, t) { switch (yg(n, e)) { // color-adjust case 5103: return Ie + "print-" + n + n; // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position case 6391: case 5879: case 5623: case 6135: case 4599: return Ie + n + n; // mask-composite case 4855: return Ie + n.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + n; // tab-size case 4789: return ci + n + n; // appearance, user-select, transform, hyphens, text-size-adjust case 5349: case 4246: case 4810: case 6968: case 2756: return Ie + n + ci + n + Oe + n + n; // writing-mode case 5936: switch (De(n, e + 11)) { // vertical-l(r) case 114: return Ie + n + Oe + ge(n, /[svh]\w+-[tblr]{2}/, "tb") + n; // vertical-r(l) case 108: return Ie + n + Oe + ge(n, /[svh]\w+-[tblr]{2}/, "tb-rl") + n; // horizontal(-)tb case 45: return Ie + n + Oe + ge(n, /[svh]\w+-[tblr]{2}/, "lr") + n; } // flex, flex-direction, scroll-snap-type, writing-mode case 6828: case 4268: case 2903: return Ie + n + Oe + n + n; // order case 6165: return Ie + n + Oe + "flex-" + n + n; // align-items case 5187: return Ie + n + ge(n, /(\w+).+(:[^]+)/, Ie + "box-$1$2" + Oe + "flex-$1$2") + n; // align-self case 5443: return Ie + n + Oe + "flex-item-" + ge(n, /flex-|-self/g, "") + (Yt(n, /flex-|baseline/) ? "" : Oe + "grid-row-" + ge(n, /flex-|-self/g, "")) + n; // align-content case 4675: return Ie + n + Oe + "flex-line-pack" + ge(n, /align-content|flex-|-self/g, "") + n; // flex-shrink case 5548: return Ie + n + Oe + ge(n, "shrink", "negative") + n; // flex-basis case 5292: return Ie + n + Oe + ge(n, "basis", "preferred-size") + n; // flex-grow case 6060: return Ie + "box-" + ge(n, "-grow", "") + Ie + n + Oe + ge(n, "grow", "positive") + n; // transition case 4554: return Ie + ge(n, /([^-])(transform)/g, "$1" + Ie + "$2") + n; // cursor case 6187: return ge(ge(ge(n, /(zoom-|grab)/, Ie + "$1"), /(image-set)/, Ie + "$1"), n, "") + n; // background, background-image case 5495: case 3959: return ge(n, /(image-set\([^]*)/, Ie + "$1$`$1"); // justify-content case 4968: return ge(ge(n, /(.+:)(flex-)?(.*)/, Ie + "box-pack:$3" + Oe + "flex-pack:$3"), /space-between/, "justify") + Ie + n + n; // justify-self case 4200: if (!Yt(n, /flex-|baseline/)) return Oe + "grid-column-align" + Dn(n, e) + n; break; // grid-template-(columns|rows) case 2592: case 3360: return Oe + ge(n, "template-", "") + n; // grid-(row|column)-start case 4384: case 3616: return t && t.some(function(r, i) { return e = i, Yt(r.props, /grid-\w+-end/); }) ? ~vs(n + (t = t[e].value), "span", 0) ? n : Oe + ge(n, "-start", "") + n + Oe + "grid-row-span:" + (~vs(t, "span", 0) ? Yt(t, /\d+/) : +Yt(t, /\d+/) - +Yt(n, /\d+/)) + ";" : Oe + ge(n, "-start", "") + n; // grid-(row|column)-end case 4896: case 4128: return t && t.some(function(r) { return Yt(r.props, /grid-\w+-start/); }) ? n : Oe + ge(ge(n, "-end", "-span"), "span ", "") + n; // (margin|padding)-inline-(start|end) case 4095: case 3583: case 4068: case 2532: return ge(n, /(.+)-inline(.+)/, Ie + "$1$2") + n; // (min|max)?(width|height|inline-size|block-size) 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 (vt(n) - 1 - e > 6) switch (De(n, e + 1)) { // (m)ax-content, (m)in-content case 109: if (De(n, e + 4) !== 45) break; // (f)ill-available, (f)it-content case 102: return ge(n, /(.+:)(.+)-([^]+)/, "$1" + Ie + "$2-$3$1" + ci + (De(n, e + 3) == 108 ? "$3" : "$2-$3")) + n; // (s)tretch case 115: return ~vs(n, "stretch", 0) ? zh(ge(n, "stretch", "fill-available"), e, t) + n : n; } break; // grid-(column|row) case 5152: case 5920: return ge(n, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, i, s, a, o, l, u) { return Oe + i + ":" + s + u + (a ? Oe + i + "-span:" + (o ? l : +l - +s) + u : "") + n; }); // position: sticky case 4949: if (De(n, e + 6) === 121) return ge(n, ":", ":" + Ie) + n; break; // display: (flex|inline-flex|grid|inline-grid) case 6444: switch (De(n, De(n, 14) === 45 ? 18 : 11)) { // (inline-)?fle(x) case 120: return ge(n, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + Ie + (De(n, 14) === 45 ? "inline-" : "") + "box$3$1" + Ie + "$2$3$1" + Oe + "$2box$3") + n; // (inline-)?gri(d) case 100: return ge(n, ":", ":" + Oe) + n; } break; // scroll-margin, scroll-margin-(top|right|bottom|left) case 5719: case 2647: case 2135: case 3927: case 2391: return ge(n, "scroll-", "scroll-snap-") + n; } return n; } function Os(n, e) { for (var t = "", r = 0; r < n.length; r++) t += e(n[r], r, n, e) || ""; return t; } function Og(n, e, t, r) { switch (n.type) { case vg: if (n.children.length) break; case mg: case bg: case Ml: return n.return = n.return || n.value; case Hh: return ""; case Xh: return n.return = n.value + "{" + Os(n.children, r) + "}"; case Ys: if (!vt(n.value = n.props.join(","))) return ""; } return vt(t = Os(n.children, r)) ? n.return = n.value + "{" + t + "}" : ""; } function _g(n) { var e = qh(n); return function(t, r, i, s) { for (var a = "", o = 0; o < e; o++) a += n[o](t, r, i, s) || ""; return a; }; } function Bg(n) { return function(e) { e.root || (e = e.return) && n(e); }; } function Fg(n, e, t, r) { if (n.length > -1 && !n.return) switch (n.type) { case Ml: n.return = zh(n.value, n.length, t); return; case Xh: return Os([hn(n, { value: ge(n.value, "@", "@" + Ie) })], r); case Ys: if (n.length) return Cg(t = n.props, function(i) { switch (Yt(i, r = /(::plac\w+|:read-\w+)/)) { // :read-(only|write) case ":read-only": case ":read-write": lr(hn(n, { props: [ge(i, /:(read-\w+)/, ":" + ci + "$1")] })), lr(hn(n, { props: [i] })), Wo(n, { props: Cu(t, r) }); break; // :placeholder case "::placeholder": lr(hn(n, { props: [ge(i, /:(plac\w+)/, ":" + Ie + "input-$1")] })), lr(hn(n, { props: [ge(i, /:(plac\w+)/, ":" + ci + "$1")] })), lr(hn(n, { props: [ge(i, /:(plac\w+)/, Oe + "input-$1")] })), lr(hn(n, { props: [i] })), Wo(n, { props: Cu(t, r) }); break; } return ""; }); } } var $h = { 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, scale: 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 }, Vn = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Yh = "active", Uh = "data-styled-version", Ks = "6.3.9", Dl = `/*!sc*/ `, hi = typeof window < "u" && typeof document < "u", In = ke.createContext === void 0, Lg = !!(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"), Eu = /invalid hook call/i, es = /* @__PURE__ */ new Set(), Mg = function(n, e) { if (process.env.NODE_ENV !== "production") { if (In) return; var t = e ? ' with the id of "'.concat(e, '"') : "", r = "The component ".concat(n).concat(t, ` 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. See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info. `, i = console.error; try { var s = !0; console.error = function(a) { for (var o = [], l = 1; l < arguments.length; l++) o[l - 1] = arguments[l]; Eu.test(a) ? (s = !1, es.delete(r)) : i.apply(void 0, Ar([a], o, !1)); }, typeof ke.useState == "function" && ke.useState(null), s && !es.has(r) && (console.warn(r), es.add(r)); } catch (a) { Eu.test(a.message) && es.delete(r); } finally { console.error = i; } } }, Vl = Object.freeze([]), xr = Object.freeze({}); function Pg(n, e, t) { return t === void 0 && (t = xr), n.theme !== t.theme && n.theme || e || t.theme; } var Zo = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "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", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]), Dg = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Vg = /(^-|-$)/g; function xu(n) { return n.replace(Dg, "-").replace(Vg, ""); } var Gg = /(a)(d)/gi, Su = function(n) { return String.fromCharCode(n + (n > 25 ? 39 : 97)); }; function zo(n) { var e, t = ""; for (e = Math.abs(n); e > 52; e = e / 52 | 0) t = Su(e % 52) + t; return (Su(e % 52) + t).replace(Gg, "$1-$2"); } var lo, pn = function(n, e) { for (var t = e.length; t; ) n = 33 * n ^ e.charCodeAt(--t); return n; }, Jh = function(n) { return pn(5381, n); }; function Hg(n) { return zo(Jh(n) >>> 0); } function Qh(n) { return process.env.NODE_ENV !== "production" && typeof n == "string" && n || n.displayName || n.name || "Component"; } function uo(n) { return typeof n == "string" && (process.env.NODE_ENV === "production" || n.charAt(0) === n.charAt(0).toLowerCase()); } var Kh = typeof Symbol == "function" && Symbol.for, ed = Kh ? Symbol.for("react.memo") : 60115, Xg = Kh ? Symbol.for("react.forward_ref") : 60112, jg = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Wg = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, td = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, qg = ((lo = {})[Xg] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, lo[ed] = td, lo); function wu(n) { return ("type" in (e = n) && e.type.$$typeof) === ed ? td : "$$typeof" in n ? qg[n.$$typeof] : jg; var e; } var Zg = Object.defineProperty, zg = Object.getOwnPropertyNames, Tu = Object.getOwnPropertySymbols, $g = Object.getOwnPropertyDescriptor, Yg = Object.getPrototypeOf, Nu = Object.prototype; function nd(n, e, t) { if (typeof e != "string") { if (Nu) { var r = Yg(e); r && r !== Nu && nd(n, r, t); } var i = zg(e); Tu && (i = i.concat(Tu(e))); for (var s = wu(n), a = wu(e), o = 0; o < i.length; ++o) { var l = i[o]; if (!(l in Wg || t && t[l] || a && l in a || s && l in s)) { var u = $g(e, l); try { Zg(n, l, u); } catch { } } } } return n; } function Sr(n) { return typeof n == "function"; } function Gl(n) { return typeof n == "object" && "styledComponentId" in n; } function Ln(n, e) { return n && e ? "".concat(n, " ").concat(e) : n || e || ""; } function ku(n, e) { return n.join(""); } function wr(n) { return n !== null && typeof n == "object" && n.constructor.name === Object.name && !("props" in n && n.$$typeof); } function $o(n, e, t) { if (t === void 0 && (t = !1), !t && !wr(n) && !Array.isArray(n)) return e; if (Array.isArray(e)) for (var r = 0; r < e.length; r++) n[r] = $o(n[r], e[r]); else if (wr(e)) for (var r in e) n[r] = $o(n[r], e[r]); return n; } function Hl(n, e) { Object.defineProperty(n, "toString", { value: e }); } var Ug = 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 Jg() { for (var n = [], e = 0; e < arguments.length; e++) n[e] = arguments[e]; for (var t = n[0], r = [], i = 1, s = n.length; i < s; i += 1) r.push(n[i]); return r.forEach(function(a) { t = t.replace(/%[a-z]/, a); }), t; } function Fr(n) { for (var e = [], t = 1; t < arguments.length; t++) e[t - 1] = arguments[t]; 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(n, " for more information.").concat(e.length > 0 ? " Args: ".concat(e.join(", ")) : "")) : new Error(Jg.apply(void 0, Ar([Ug[n]], e, !1)).trim()); } var Qg = (function() { function n(e) { this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e, this._cGroup = 0, this._cIndex = 0; } return n.prototype.indexOfGroup = function(e) { if (e === this._cGroup) return this._cIndex; var t = this._cIndex; if (e > this._cGroup) for (var r = this._cGroup; r < e; r++) t += this.groupSizes[r]; else for (r = this._cGroup - 1; r >= e; r--) t -= this.groupSizes[r]; return this._cGroup = e, this._cIndex = t, t; }, n.prototype.insertRules = function(e, t) { if (e >= this.groupSizes.length) { for (var r = this.groupSizes, i = r.length, s = i; e >= s; ) if ((s <<= 1) < 0) throw Fr(16, "".concat(e)); this.groupSizes = new Uint32Array(s), this.groupSizes.set(r), this.length = s; for (var a = i; a < s; a++) this.groupSizes[a] = 0; } for (var o = this.indexOfGroup(e + 1), l = 0, u = (a = 0, t.length); a < u; a++) this.tag.insertRule(o, t[a]) && (this.groupSizes[e]++, o++, l++); l > 0 && this._cGroup > e && (this._cIndex += l); }, n.prototype.clearGroup = function(e) { if (e < this.length) { var t = this.groupSizes[e], r = this.indexOfGroup(e), i = r + t; this.groupSizes[e] = 0; for (var s = r; s < i; s++) this.tag.deleteRule(r); t > 0 && this._cGroup > e && (this._cIndex -= t); } }, n.prototype.getGroup = function(e) { var t = ""; if (e >= this.length || this.groupSizes[e] === 0) return t; for (var r = this.groupSizes[e], i = this.indexOfGroup(e), s = i + r, a = i; a < s; a++) t += this.tag.getRule(a) + Dl; return t; }, n; })(), Kg = 1 << 30, Is = /* @__PURE__ */ new Map(), _s = /* @__PURE__ */ new Map(), As = 1, ii = function(n) { if (Is.has(n)) return Is.get(n); for (; _s.has(As); ) As++; var e = As++; if (process.env.NODE_ENV !== "production" && ((0 | e) < 0 || e > Kg)) throw Fr(16, "".concat(e)); return Is.set(n, e), _s.set(e, n), e; }, em = function(n, e) { As = e + 1, Is.set(n, e), _s.set(e, n); }, tm = "style[".concat(Vn, "][").concat(Uh, '="').concat(Ks, '"]'), nm = new RegExp("^".concat(Vn, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Ru = function(n) { return typeof ShadowRoot < "u" && n instanceof ShadowRoot || "host" in n && n.nodeType === 11; }, Yo = function(n) { if (!n) return document; if (Ru(n)) return n; if ("getRootNode" in n) { var e = n.getRootNode(); if (Ru(e)) return e; } return document; }, rm = function(n, e, t) { for (var r, i = t.split(","), s = 0, a = i.length; s < a; s++) (r = i[s]) && n.registerName(e, r); }, im = function(n, e) { for (var t, r = ((t = e.textContent) !== null && t !== void 0 ? t : "").split(Dl), i = [], s = 0, a = r.length; s < a; s++) { var o = r[s].trim(); if (o) { var l = o.match(nm); if (l) { var u = 0 | parseInt(l[1], 10), h = l[2]; u !== 0 && (em(h, u), rm(n, h, l[3]), n.getTag().insertRules(u, i)), i.length = 0; } else i.push(o); } } }, co = function(n) { for (var e = Yo(n.options.target).querySelectorAll(tm), t = 0, r = e.length; t < r; t++) { var i = e[t]; i && i.getAttribute(Vn) !== Yh && (im(n, i), i.parentNode && i.parentNode.removeChild(i)); } }; function sm() { return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null; } var rd = function(n) { var e = document.head, t = n || e, r = document.createElement("style"), i = (function(o) { var l = Array.from(o.querySelectorAll("style[".concat(Vn, "]"))); return l[l.length - 1]; })(t), s = i !== void 0 ? i.nextSibling : null; r.setAttribute(Vn, Yh), r.setAttribute(Uh, Ks); var a = sm(); return a && r.setAttribute("nonce", a), t.insertBefore(r, s), r; }, am = (function() { function n(e) { this.element = rd(e), this.element.appendChild(document.createTextNode("")), this.sheet = (function(t) { var r; if (t.sheet) return t.sheet; for (var i = (r = t.getRootNode().styleSheets) !== null && r !== void 0 ? r : document.styleSheets, s = 0, a = i.length; s < a; s++) { var o = i[s]; if (o.ownerNode === t) return o; } throw Fr(17); })(this.element), this.length = 0; } return n.prototype.insertRule = function(e, t) { try { return this.sheet.insertRule(t, e), this.length++, !0; } catch { return !1; } }, n.prototype.deleteRule = function(e) { this.sheet.deleteRule(e), this.length--; }, n.prototype.getRule = function(e) { var t = this.sheet.cssRules[e]; return t && t.cssText ? t.cssText : ""; }, n; })(), om = (function() { function n(e) { this.element = rd(e), this.nodes = this.element.childNodes, this.length = 0; } return n.prototype.insertRule = function(e, t) { if (e <= this.length && e >= 0) { var r = document.createTextNode(t); return this.element.insertBefore(r, this.nodes[e] || null), this.length++, !0; } return !1; }, n.prototype.deleteRule = function(e) { this.element.removeChild(this.nodes[e]), this.length--; }, n.prototype.getRule = function(e) { return e < this.length ? this.nodes[e].textContent : ""; }, n; })(), lm = (function() { function n(e) { this.rules = [], this.length = 0; } return n.prototype.insertRule = function(e, t) { return e <= this.length && (e === this.length ? this.rules.push(t) : this.rules.splice(e, 0, t), this.length++, !0); }, n.prototype.deleteRule = function(e) { this.rules.splice(e, 1), this.length--; }, n.prototype.getRule = function(e) { return e < this.length ? this.rules[e] : ""; }, n; })(), Ou = hi, um = { isServer: !hi, useCSSOMInjection: !Lg }, id = (function() { function n(e, t, r) { e === void 0 && (e = xr), t === void 0 && (t = {}); var i = this; this.options = ht(ht({}, um), e), this.gs = t, this.names = new Map(r), this.server = !!e.isServer, !this.server && hi && Ou && (Ou = !1, co(this)), Hl(this, function() { return (function(s) { for (var a = s.getTag(), o = a.length, l = "", u = function(d) { var f = (function(v) { return _s.get(v); })(d); if (f === void 0) return "continue"; var p = s.names.get(f); if (p === void 0 || !p.size) return "continue"; var m = a.getGroup(d); if (m.length === 0) return "continue"; var b = Vn + ".g" + d + '[id="' + f + '"]', y = ""; p.forEach(function(v) { v.length > 0 && (y += v + ","); }), l += m + b + '{content:"' + y + '"}' + Dl; }, h = 0; h < o; h++) u(h); return l; })(i); }); } return n.registerId = function(e) { return ii(e); }, n.prototype.rehydrate = function() { !this.server && hi && co(this); }, n.prototype.reconstructWithOptions = function(e, t) { t === void 0 && (t = !0); var r = new n(ht(ht({}, this.options), e), this.gs, t && this.names || void 0); return !this.server && hi && e.target !== this.options.target && Yo(this.options.target) !== Yo(e.target) && co(r), r; }, n.prototype.allocateGSInstance = function(e) { return this.gs[e] = (this.gs[e] || 0) + 1; }, n.prototype.getTag = function() { return this.tag || (this.tag = (e = (function(t) { var r = t.useCSSOMInjection, i = t.target; return t.isServer ? new lm(i) : r ? new am(i) : new om(i); })(this.options), new Qg(e))); var e; }, n.prototype.hasNameForId = function(e, t) { var r, i; return (i = (r = this.names.get(e)) === null || r === void 0 ? void 0 : r.has(t)) !== null && i !== void 0 && i; }, n.prototype.registerName = function(e, t) { ii(e); var r = this.names.get(e); r ? r.add(t) : this.names.set(e, /* @__PURE__ */ new Set([t])); }, n.prototype.insertRules = function(e, t, r) { this.registerName(e, t), this.getTag().insertRules(ii(e), r); }, n.prototype.clearNames = function(e) { this.names.has(e) && this.names.get(e).clear(); }, n.prototype.clearRules = function(e) { this.getTag().clearGroup(ii(e)), this.clearNames(e); }, n.prototype.clearTag = function() { this.tag = void 0; }, n; })(), cm = /&/g, Ut = 47, Fn = 42; function _u(n) { if (n.indexOf("}") === -1) return !1; for (var e = n.length, t = 0, r = 0, i = !1, s = 0; s < e; s++) { var a = n.charCodeAt(s); if (r !== 0 || i || a !== Ut || n.charCodeAt(s + 1) !== Fn) if (i) a === Fn && n.charCodeAt(s + 1) === Ut && (i = !1, s++); else if (a !== 34 && a !== 39 || s !== 0 && n.charCodeAt(s - 1) === 92) { if (r === 0) { if (a === 123) t++; else if (a === 125 && --t < 0) return !0; } } else r === 0 ? r = a : r === a && (r = 0); else i = !0, s++; } return t !== 0 || r !== 0; } function sd(n, e) { return n.map(function(t) { return t.type === "rule" && (t.value = "".concat(e, " ").concat(t.value), t.value = t.value.replaceAll(",", ",".concat(e, " ")), t.props = t.props.map(function(r) { return "".concat(e, " ").concat(r); })), Array.isArray(t.children) && t.type !== "@keyframes" && (t.children = sd(t.children, e)), t; }); } function hm(n) { var e, t, r, i = xr, s = i.options, a = s === void 0 ? xr : s, o = i.plugins, l = o === void 0 ? Vl : o, u = function(m, b, y) { return y.startsWith(t) && y.endsWith(t) && y.replaceAll(t, "").length > 0 ? ".".concat(e) : m; }, h = l.slice(); h.push(function(m) { m.type === Ys && m.value.includes("&") && (r || (r = new RegExp("\\".concat(t, "\\b"), "g")), m.props[0] = m.props[0].replace(cm, t).replace(r, u)); }), a.prefix && h.push(Fg), h.push(Og); var d = [], f = _g(h.concat(Bg(function(m) { return d.push(m); }))), p = function(m, b, y, v) { b === void 0 && (b = ""), y === void 0 && (y = ""), v === void 0 && (v = "&"), e = v, t = b, r = void 0; var S = (function(x) { if (!_u(x)) return x; for (var C = x.length, R = "", k = 0, F = 0, K = 0, ce = !1, I = 0; I < C; I++) { var _ = x.charCodeAt(I); if (K !== 0 || ce || _ !== Ut || x.charCodeAt(I + 1) !== Fn) if (ce) _ === Fn && x.charCodeAt(I + 1) === Ut && (ce = !1, I++); else if (_ !== 34 && _ !== 39 || I !== 0 && x.charCodeAt(I - 1) === 92) { if (K === 0) if (_ === 123) F++; else if (_ === 125) { if (--F < 0) { for (var w = I + 1; w < C; ) { var G = x.charCodeAt(w); if (G === 59 || G === 10) break; w++; } w < C && x.charCodeAt(w) === 59 && w++, F = 0, I = w - 1, k = w; continue; } F === 0 && (R += x.substring(k, I + 1), k = I + 1); } else _ === 59 && F === 0 && (R += x.substring(k, I + 1), k = I + 1); } else K === 0 ? K = _ : K === _ && (K = 0); else ce = !0, I++; } if (k < C) { var M = x.substring(k); _u(M) || (R += M); } return R; })((function(x) { if (x.indexOf("//") === -1) return x; for (var C = x.length, R = [], k = 0, F = 0, K = 0, ce = 0; F < C; ) { var I = x.charCodeAt(F);