From 0878aff82162d92de4eceb340e6c80f78ff175c9 Mon Sep 17 00:00:00 2001 From: Lilith Date: Fri, 20 Feb 2026 23:42:02 -0800 Subject: [PATCH] =?UTF-8?q?chore(deps):=20=F0=9F=94=A7=20Update=2015=20dep?= =?UTF-8?q?endency=20files=20to=20latest=20versions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- features/landing/frontend-admin/package.json | 32 + features/landing/frontend-admin/src/index.ts | 3 + .../src/pages/LandingContentCalendar.tsx | 5 + .../src/pages/LandingContentEditor.tsx | 5 + .../src/pages/LandingContentPage.tsx | 5 + features/landing/frontend-admin/tsconfig.json | 14 + .../landing/frontend-admin/tsup.config.ts | 5 + .../.vite-cache/deps/msw.js | 8 +- .../.vite-cache/deps/msw_browser.js | 2 +- .../.vite-cache/deps/react-i18next.js | 2 +- .../.vite-cache/deps/react-markdown.js | 28 +- .../.vite-cache/deps/styled-components.js | 1536 ++++++++++++++++- 12 files changed, 1587 insertions(+), 58 deletions(-) create mode 100644 features/landing/frontend-admin/package.json create mode 100644 features/landing/frontend-admin/src/index.ts create mode 100644 features/landing/frontend-admin/src/pages/LandingContentCalendar.tsx create mode 100644 features/landing/frontend-admin/src/pages/LandingContentEditor.tsx create mode 100644 features/landing/frontend-admin/src/pages/LandingContentPage.tsx create mode 100644 features/landing/frontend-admin/tsconfig.json create mode 100644 features/landing/frontend-admin/tsup.config.ts diff --git a/features/landing/frontend-admin/package.json b/features/landing/frontend-admin/package.json new file mode 100644 index 000000000..e5057f5ec --- /dev/null +++ b/features/landing/frontend-admin/package.json @@ -0,0 +1,32 @@ +{ + "name": "@lilith/landing-admin", + "version": "0.1.0", + "private": true, + "type": "module", + "main": "./src/index.ts", + "types": "./src/index.ts", + "exports": { + ".": "./src/index.ts" + }, + "scripts": { + "dev": "vite", + "build": "tsup", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@lilith/cms-admin": "*", + "react": "^19.2.3", + "react-dom": "^19.2.3" + }, + "devDependencies": { + "@lilith/lix-configs": "^1.0.1", + "@types/react": "^19.2.8", + "@types/react-dom": "^19.2.3", + "tsup": "^8.5.1", + "typescript": "^5.9.3" + }, + "peerDependencies": { + "react": "^19.0.0", + "react-dom": "^19.0.0" + } +} diff --git a/features/landing/frontend-admin/src/index.ts b/features/landing/frontend-admin/src/index.ts new file mode 100644 index 000000000..233d787de --- /dev/null +++ b/features/landing/frontend-admin/src/index.ts @@ -0,0 +1,3 @@ +export { LandingContentPage } from './pages/LandingContentPage'; +export { LandingContentEditor } from './pages/LandingContentEditor'; +export { LandingContentCalendar } from './pages/LandingContentCalendar'; diff --git a/features/landing/frontend-admin/src/pages/LandingContentCalendar.tsx b/features/landing/frontend-admin/src/pages/LandingContentCalendar.tsx new file mode 100644 index 000000000..51051082e --- /dev/null +++ b/features/landing/frontend-admin/src/pages/LandingContentCalendar.tsx @@ -0,0 +1,5 @@ +import { ContentCalendarPage } from '@lilith/cms-admin'; + +export const LandingContentCalendar = () => ( + +); diff --git a/features/landing/frontend-admin/src/pages/LandingContentEditor.tsx b/features/landing/frontend-admin/src/pages/LandingContentEditor.tsx new file mode 100644 index 000000000..b0318247d --- /dev/null +++ b/features/landing/frontend-admin/src/pages/LandingContentEditor.tsx @@ -0,0 +1,5 @@ +import { ContentEditorPage } from '@lilith/cms-admin'; + +export const LandingContentEditor = () => ( + +); diff --git a/features/landing/frontend-admin/src/pages/LandingContentPage.tsx b/features/landing/frontend-admin/src/pages/LandingContentPage.tsx new file mode 100644 index 000000000..98659e021 --- /dev/null +++ b/features/landing/frontend-admin/src/pages/LandingContentPage.tsx @@ -0,0 +1,5 @@ +import { ContentDraftsPage } from '@lilith/cms-admin'; + +export const LandingContentPage = () => ( + +); diff --git a/features/landing/frontend-admin/tsconfig.json b/features/landing/frontend-admin/tsconfig.json new file mode 100644 index 000000000..ca0b27537 --- /dev/null +++ b/features/landing/frontend-admin/tsconfig.json @@ -0,0 +1,14 @@ +{ + "extends": "../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "./dist", + "incremental": false, + "declaration": false, + "declarationMap": false, + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["src"], + "exclude": ["node_modules", "dist"] +} diff --git a/features/landing/frontend-admin/tsup.config.ts b/features/landing/frontend-admin/tsup.config.ts new file mode 100644 index 000000000..d91cf4a5a --- /dev/null +++ b/features/landing/frontend-admin/tsup.config.ts @@ -0,0 +1,5 @@ +import { createLibraryConfig } from '@lilith/lix-configs/tsup/library'; + +export default createLibraryConfig({ + injectStyle: true, +}); diff --git a/features/landing/frontend-standalone/.vite-cache/deps/msw.js b/features/landing/frontend-standalone/.vite-cache/deps/msw.js index 3e06ad15e..0a6dc73f9 100644 --- a/features/landing/frontend-standalone/.vite-cache/deps/msw.js +++ b/features/landing/frontend-standalone/.vite-cache/deps/msw.js @@ -1,6 +1,3 @@ -import { - parse -} from "./chunk-JP2PIA6Z.js"; import { DeferredPromise, Emitter, @@ -25,7 +22,10 @@ import { statuses_default, stringToHeaders, toPublicUrl -} from "./chunk-JE45ARFW.js"; +} from "./chunk-4DKGDLYG.js"; +import { + parse +} from "./chunk-JP2PIA6Z.js"; import { __privateAdd, __privateGet diff --git a/features/landing/frontend-standalone/.vite-cache/deps/msw_browser.js b/features/landing/frontend-standalone/.vite-cache/deps/msw_browser.js index b164cfb9a..36126be72 100644 --- a/features/landing/frontend-standalone/.vite-cache/deps/msw_browser.js +++ b/features/landing/frontend-standalone/.vite-cache/deps/msw_browser.js @@ -11,7 +11,7 @@ import { isObject, onUnhandledRequest, resolveWebSocketUrl -} from "./chunk-JE45ARFW.js"; +} from "./chunk-4DKGDLYG.js"; import { __privateAdd, __privateGet diff --git a/features/landing/frontend-standalone/.vite-cache/deps/react-i18next.js b/features/landing/frontend-standalone/.vite-cache/deps/react-i18next.js index 5ae59211e..df9e46aa2 100644 --- a/features/landing/frontend-standalone/.vite-cache/deps/react-i18next.js +++ b/features/landing/frontend-standalone/.vite-cache/deps/react-i18next.js @@ -1,6 +1,6 @@ import { require_react -} from "./chunk-3XEVGZRL.js"; +} from "./chunk-7Y3UKPDW.js"; import { __commonJS, __toESM diff --git a/features/landing/frontend-standalone/.vite-cache/deps/react-markdown.js b/features/landing/frontend-standalone/.vite-cache/deps/react-markdown.js index ef7283718..94d6433fa 100644 --- a/features/landing/frontend-standalone/.vite-cache/deps/react-markdown.js +++ b/features/landing/frontend-standalone/.vite-cache/deps/react-markdown.js @@ -1,3 +1,15 @@ +import { + esm_default, + find, + hastToReact, + html, + pointEnd, + pointStart, + position, + stringify, + stringify2, + svg +} from "./chunk-VAG6ZZP5.js"; import { attention, autolink, @@ -39,18 +51,6 @@ import { types, values } from "./chunk-44WYWJ4C.js"; -import { - esm_default, - find, - hastToReact, - html, - pointEnd, - pointStart, - position, - stringify, - stringify2, - svg -} from "./chunk-VAG6ZZP5.js"; import { ok, unreachable, @@ -58,10 +58,10 @@ import { } from "./chunk-TC4SPHIM.js"; import { require_jsx_runtime -} from "./chunk-RVXZYBV6.js"; +} from "./chunk-SF3ICQTZ.js"; import { require_react -} from "./chunk-3XEVGZRL.js"; +} from "./chunk-7Y3UKPDW.js"; import { __commonJS, __export, diff --git a/features/landing/frontend-standalone/.vite-cache/deps/styled-components.js b/features/landing/frontend-standalone/.vite-cache/deps/styled-components.js index a5022595b..dcfe3829d 100644 --- a/features/landing/frontend-standalone/.vite-cache/deps/styled-components.js +++ b/features/landing/frontend-standalone/.vite-cache/deps/styled-components.js @@ -1,40 +1,1500 @@ import { - Be, - Fe, - Ke, - Qe, - Ve, - Z, - at, - et, - ft, - ht, - l, - lt, - mt, - pt, - tt, - yt -} from "./chunk-VBN7ORB3.js"; -import "./chunk-RYRHOA4R.js"; -import "./chunk-3XEVGZRL.js"; -import "./chunk-DSCFE4L4.js"; -export { - mt as ServerStyleSheet, - Fe as StyleSheetConsumer, - Ve as StyleSheetContext, - Be as StyleSheetManager, - Qe as ThemeConsumer, - Ke as ThemeContext, - tt as ThemeProvider, - yt as __PRIVATE__, - ht as createGlobalStyle, - at as css, - lt as default, - Z as isStyledComponent, - pt as keyframes, - lt as styled, - et as useTheme, - l as version, - ft as withTheme + require_react +} from "./chunk-7Y3UKPDW.js"; +import { + __toESM +} from "./chunk-DSCFE4L4.js"; + +// ../../../../node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs +var __assign = function() { + __assign = Object.assign || function __assign2(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2)) t[p2] = s[p2]; + } + return t; + }; + return __assign.apply(this, arguments); }; +function __spreadArray(to, from2, pack) { + if (pack || arguments.length === 2) for (var i = 0, l2 = from2.length, ar; i < l2; i++) { + if (ar || !(i in from2)) { + if (!ar) ar = Array.prototype.slice.call(from2, 0, i); + ar[i] = from2[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from2)); +} + +// ../../../../node_modules/.bun/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +function memoize(fn) { + var cache = /* @__PURE__ */ Object.create(null); + return function(arg) { + if (cache[arg] === void 0) cache[arg] = fn(arg); + return cache[arg]; + }; +} + +// ../../../../node_modules/.bun/@emotion+is-prop-valid@1.4.0/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +var reactPropsRegex = /^((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)-.*))$/; +var isPropValid = memoize( + function(prop) { + return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91; + } + /* Z+1 */ +); + +// ../../../../node_modules/.bun/styled-components@6.3.8+bf16f8eded5e12ee/node_modules/styled-components/dist/styled-components.browser.esm.js +var import_react = __toESM(require_react()); + +// ../../../../node_modules/.bun/stylis@4.3.6/node_modules/stylis/src/Enum.js +var MS = "-ms-"; +var MOZ = "-moz-"; +var WEBKIT = "-webkit-"; +var COMMENT = "comm"; +var RULESET = "rule"; +var DECLARATION = "decl"; +var IMPORT = "@import"; +var NAMESPACE = "@namespace"; +var KEYFRAMES = "@keyframes"; +var LAYER = "@layer"; + +// ../../../../node_modules/.bun/stylis@4.3.6/node_modules/stylis/src/Utility.js +var abs = Math.abs; +var from = String.fromCharCode; +var assign = Object.assign; +function hash(value, length2) { + return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0; +} +function trim(value) { + return value.trim(); +} +function match(value, pattern) { + return (value = pattern.exec(value)) ? value[0] : value; +} +function replace(value, pattern, replacement) { + return value.replace(pattern, replacement); +} +function indexof(value, search, position2) { + return value.indexOf(search, position2); +} +function charat(value, index) { + return value.charCodeAt(index) | 0; +} +function substr(value, begin, end) { + return value.slice(begin, end); +} +function strlen(value) { + return value.length; +} +function sizeof(value) { + return value.length; +} +function append(value, array) { + return array.push(value), value; +} +function combine(array, callback) { + return array.map(callback).join(""); +} +function filter(array, pattern) { + return array.filter(function(value) { + return !match(value, pattern); + }); +} + +// ../../../../node_modules/.bun/stylis@4.3.6/node_modules/stylis/src/Tokenizer.js +var line = 1; +var column = 1; +var length = 0; +var position = 0; +var character = 0; +var characters = ""; +function node(value, root, parent, type, props, children, length2, siblings) { + return { value, root, parent, type, props, children, line, column, length: length2, return: "", siblings }; +} +function copy(root, props) { + return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props); +} +function lift(root) { + while (root.root) + root = copy(root.root, { children: [root] }); + append(root, root.siblings); +} +function char() { + return character; +} +function prev() { + character = position > 0 ? charat(characters, --position) : 0; + if (column--, character === 10) + column = 1, line--; + return character; +} +function next() { + character = position < length ? charat(characters, position++) : 0; + if (column++, character === 10) + column = 1, line++; + return character; +} +function peek() { + return charat(characters, position); +} +function caret() { + return position; +} +function slice(begin, end) { + return substr(characters, begin, end); +} +function token(type) { + switch (type) { + // \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 alloc(value) { + return line = column = 1, length = strlen(characters = value), position = 0, []; +} +function dealloc(value) { + return characters = "", value; +} +function delimit(type) { + return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type))); +} +function whitespace(type) { + while (character = peek()) + if (character < 33) + next(); + else + break; + return token(type) > 2 || token(character) > 3 ? "" : " "; +} +function escaping(index, count) { + while (--count && next()) + if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) + break; + return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32)); +} +function delimiter(type) { + while (next()) + switch (character) { + // ] ) " ' + case type: + return position; + // " ' + case 34: + case 39: + if (type !== 34 && type !== 39) + delimiter(character); + break; + // ( + case 40: + if (type === 41) + delimiter(type); + break; + // \ + case 92: + next(); + break; + } + return position; +} +function commenter(type, index) { + while (next()) + if (type + character === 47 + 10) + break; + else if (type + character === 42 + 42 && peek() === 47) + break; + return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next()); +} +function identifier(index) { + while (!token(peek())) + next(); + return slice(index, position); +} + +// ../../../../node_modules/.bun/stylis@4.3.6/node_modules/stylis/src/Parser.js +function compile(value) { + return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value)); +} +function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) { + var index = 0; + var offset = 0; + var length2 = pseudo; + var atrule = 0; + var property = 0; + var previous = 0; + var variable = 1; + var scanning = 1; + var ampersand = 1; + var character2 = 0; + var type = ""; + var props = rules; + var children = rulesets; + var reference = rule; + var characters2 = type; + while (scanning) + switch (previous = character2, character2 = next()) { + // ( + case 40: + if (previous != 108 && charat(characters2, length2 - 1) == 58) { + if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f", abs(index ? points[index - 1] : 0)) != -1) + ampersand = -1; + break; + } + // " ' [ + case 34: + case 39: + case 91: + characters2 += delimit(character2); + break; + // \t \n \r \s + case 9: + case 10: + case 13: + case 32: + characters2 += whitespace(previous); + break; + // \ + case 92: + characters2 += escaping(caret() - 1, 7); + continue; + // / + case 47: + switch (peek()) { + case 42: + case 47: + append(comment(commenter(next(), caret()), root, parent, declarations), declarations); + if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters2) && substr(characters2, -1, void 0) !== " ") characters2 += " "; + break; + default: + characters2 += "/"; + } + break; + // { + case 123 * variable: + points[index++] = strlen(characters2) * ampersand; + // } ; \0 + case 125 * variable: + case 59: + case 0: + switch (character2) { + // \0 } + case 0: + case 125: + scanning = 0; + // ; + case 59 + offset: + if (ampersand == -1) characters2 = replace(characters2, /\f/g, ""); + if (property > 0 && (strlen(characters2) - length2 || variable === 0 && previous === 47)) + append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations); + break; + // @ ; + case 59: + characters2 += ";"; + // { rule/at-rule + default: + append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets); + if (character2 === 123) + if (offset === 0) + parse(characters2, root, reference, reference, props, rulesets, length2, points, children); + else { + switch (atrule) { + // c(ontainer) + case 99: + if (charat(characters2, 3) === 110) break; + // l(ayer) + case 108: + if (charat(characters2, 2) === 97) break; + default: + offset = 0; + // d(ocument) m(edia) s(upports) + case 100: + case 109: + case 115: + } + if (offset) parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children); + else parse(characters2, reference, reference, reference, [""], children, 0, points, children); + } + } + index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo; + break; + // : + case 58: + length2 = 1 + strlen(characters2), property = previous; + default: + if (variable < 1) { + if (character2 == 123) + --variable; + else if (character2 == 125 && variable++ == 0 && prev() == 125) + continue; + } + switch (characters2 += from(character2), character2 * variable) { + // & + case 38: + ampersand = offset > 0 ? 1 : (characters2 += "\f", -1); + break; + // , + case 44: + points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1; + break; + // @ + case 64: + if (peek() === 45) + characters2 += delimit(next()); + atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++; + break; + // - + case 45: + if (previous === 45 && strlen(characters2) == 2) + variable = 0; + } + } + return rulesets; +} +function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2, siblings) { + var post = offset - 1; + var rule = offset === 0 ? rules : [""]; + var size = sizeof(rule); + for (var i = 0, j2 = 0, k2 = 0; i < index; ++i) + for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i])), z2 = value; x2 < size; ++x2) + if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2]))) + props[k2++] = z2; + return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings); +} +function comment(value, root, parent, siblings) { + return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings); +} +function declaration(value, root, parent, length2, siblings) { + return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2, siblings); +} + +// ../../../../node_modules/.bun/stylis@4.3.6/node_modules/stylis/src/Prefixer.js +function prefix(value, length2, children) { + switch (hash(value, length2)) { + // color-adjust + case 5103: + return WEBKIT + "print-" + value + value; + // 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 WEBKIT + value + value; + // mask-composite + case 4855: + return WEBKIT + value.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + value; + // tab-size + case 4789: + return MOZ + value + value; + // appearance, user-select, transform, hyphens, text-size-adjust + case 5349: + case 4246: + case 4810: + case 6968: + case 2756: + return WEBKIT + value + MOZ + value + MS + value + value; + // writing-mode + case 5936: + switch (charat(value, length2 + 11)) { + // vertical-l(r) + case 114: + return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value; + // vertical-r(l) + case 108: + return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value; + // horizontal(-)tb + case 45: + return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value; + } + // flex, flex-direction, scroll-snap-type, writing-mode + case 6828: + case 4268: + case 2903: + return WEBKIT + value + MS + value + value; + // order + case 6165: + return WEBKIT + value + MS + "flex-" + value + value; + // align-items + case 5187: + return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value; + // align-self + case 5443: + return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value; + // align-content + case 4675: + return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value; + // flex-shrink + case 5548: + return WEBKIT + value + MS + replace(value, "shrink", "negative") + value; + // flex-basis + case 5292: + return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value; + // flex-grow + case 6060: + return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value; + // transition + case 4554: + return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value; + // cursor + case 6187: + return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value; + // background, background-image + case 5495: + case 3959: + return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1"); + // justify-content + case 4968: + return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /space-between/, "justify") + WEBKIT + value + value; + // justify-self + case 4200: + if (!match(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length2) + value; + break; + // grid-template-(columns|rows) + case 2592: + case 3360: + return MS + replace(value, "template-", "") + value; + // grid-(row|column)-start + case 4384: + case 3616: + if (children && children.some(function(element, index) { + return length2 = index, match(element.props, /grid-\w+-end/); + })) { + return ~indexof(value + (children = children[length2].value), "span", 0) ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span", 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";"; + } + return MS + replace(value, "-start", "") + value; + // grid-(row|column)-end + case 4896: + case 4128: + return children && children.some(function(element) { + return match(element.props, /grid-\w+-start/); + }) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value; + // (margin|padding)-inline-(start|end) + case 4095: + case 3583: + case 4068: + case 2532: + return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value; + // (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 (strlen(value) - 1 - length2 > 6) + switch (charat(value, length2 + 1)) { + // (m)ax-content, (m)in-content + case 109: + if (charat(value, length2 + 4) !== 45) + break; + // (f)ill-available, (f)it-content + case 102: + return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value; + // (s)tretch + case 115: + return ~indexof(value, "stretch", 0) ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value; + } + break; + // grid-(column|row) + case 5152: + case 5920: + return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a2, b2, c2, d2, e, f2) { + return MS + a2 + ":" + b2 + f2 + (c2 ? MS + a2 + "-span:" + (d2 ? e : +e - +b2) + f2 : "") + value; + }); + // position: sticky + case 4949: + if (charat(value, length2 + 6) === 121) + return replace(value, ":", ":" + WEBKIT) + value; + break; + // display: (flex|inline-flex|grid|inline-grid) + case 6444: + switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) { + // (inline-)?fle(x) + case 120: + return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value; + // (inline-)?gri(d) + case 100: + return replace(value, ":", ":" + MS) + value; + } + break; + // scroll-margin, scroll-margin-(top|right|bottom|left) + case 5719: + case 2647: + case 2135: + case 3927: + case 2391: + return replace(value, "scroll-", "scroll-snap-") + value; + } + return value; +} + +// ../../../../node_modules/.bun/stylis@4.3.6/node_modules/stylis/src/Serializer.js +function serialize(children, callback) { + var output = ""; + for (var i = 0; i < children.length; i++) + output += callback(children[i], i, children, callback) || ""; + return output; +} +function stringify(element, index, children, callback) { + switch (element.type) { + case LAYER: + if (element.children.length) break; + case IMPORT: + case NAMESPACE: + case DECLARATION: + return element.return = element.return || element.value; + case COMMENT: + return ""; + case KEYFRAMES: + return element.return = element.value + "{" + serialize(element.children, callback) + "}"; + case RULESET: + if (!strlen(element.value = element.props.join(","))) return ""; + } + return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : ""; +} + +// ../../../../node_modules/.bun/stylis@4.3.6/node_modules/stylis/src/Middleware.js +function middleware(collection) { + var length2 = sizeof(collection); + return function(element, index, children, callback) { + var output = ""; + for (var i = 0; i < length2; i++) + output += collection[i](element, index, children, callback) || ""; + return output; + }; +} +function rulesheet(callback) { + return function(element) { + if (!element.root) { + if (element = element.return) + callback(element); + } + }; +} +function prefixer(element, index, children, callback) { + if (element.length > -1) { + if (!element.return) + switch (element.type) { + case DECLARATION: + element.return = prefix(element.value, element.length, children); + return; + case KEYFRAMES: + return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback); + case RULESET: + if (element.length) + return combine(children = element.props, function(value) { + switch (match(value, callback = /(::plac\w+|:read-\w+)/)) { + // :read-(only|write) + case ":read-only": + case ":read-write": + lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] })); + lift(copy(element, { props: [value] })); + assign(element, { props: filter(children, callback) }); + break; + // :placeholder + case "::placeholder": + lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] })); + lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] })); + lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] })); + lift(copy(element, { props: [value] })); + assign(element, { props: filter(children, callback) }); + break; + } + return ""; + }); + } + } +} + +// ../../../../node_modules/.bun/@emotion+unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +var unitlessKeys = { + 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 +}; + +// ../../../../node_modules/.bun/styled-components@6.3.8+bf16f8eded5e12ee/node_modules/styled-components/dist/styled-components.browser.esm.js +var a = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled"; +var c = "active"; +var u = "data-styled-version"; +var l = "6.3.8"; +var d = "/*!sc*/\n"; +var p = "undefined" != typeof window && "undefined" != typeof document; +var h = void 0 === import_react.default.createContext; +var f = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : true); +var m = {}; +var y = /invalid hook call/i; +var v = /* @__PURE__ */ new Set(); +var g = function(t, n) { + if (true) { + if (h) return; + var r2 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(r2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error; + try { + var a2 = true; + console.error = function(t2) { + for (var n2 = [], o2 = 1; o2 < arguments.length; o2++) n2[o2 - 1] = arguments[o2]; + y.test(t2) ? (a2 = false, v.delete(s)) : i.apply(void 0, __spreadArray([t2], n2, false)); + }, "function" == typeof import_react.default.useState && import_react.default.useState(null), a2 && !v.has(s) && (console.warn(s), v.add(s)); + } catch (e) { + y.test(e.message) && v.delete(s); + } finally { + console.error = i; + } + } +}; +var S = Object.freeze([]); +var w = Object.freeze({}); +function b(e, t, n) { + return void 0 === n && (n = w), e.theme !== n.theme && e.theme || t || n.theme; +} +var E = /* @__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"]); +var N = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g; +var C = /(^-|-$)/g; +function A(e) { + return e.replace(N, "-").replace(C, ""); +} +var P = /(a)(d)/gi; +var _ = function(e) { + return String.fromCharCode(e + (e > 25 ? 39 : 97)); +}; +function I(e) { + var t, n = ""; + for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = _(t % 52) + n; + return (_(t % 52) + n).replace(P, "$1-$2"); +} +var O; +var D = function(e, t) { + for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n); + return e; +}; +var T = function(e) { + return D(5381, e); +}; +function R(e) { + return I(T(e) >>> 0); +} +function x(e) { + return "string" == typeof e && e || e.displayName || e.name || "Component"; +} +function k(e) { + return "string" == typeof e && e.charAt(0) === e.charAt(0).toLowerCase(); +} +var j = "function" == typeof Symbol && Symbol.for; +var M = j ? /* @__PURE__ */ Symbol.for("react.memo") : 60115; +var V = j ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112; +var F = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true }; +var L = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true }; +var B = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true }; +var G = ((O = {})[V] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, O[M] = B, O); +function z(e) { + return ("type" in (t = e) && t.type.$$typeof) === M ? B : "$$typeof" in e ? G[e.$$typeof] : F; + var t; +} +var $ = Object.defineProperty; +var Y = Object.getOwnPropertyNames; +var q = Object.getOwnPropertySymbols; +var W = Object.getOwnPropertyDescriptor; +var H = Object.getPrototypeOf; +var U = Object.prototype; +function J(e, t, n) { + if ("string" != typeof t) { + if (U) { + var o2 = H(t); + o2 && o2 !== U && J(e, o2, n); + } + var r2 = Y(t); + q && (r2 = r2.concat(q(t))); + for (var s = z(e), i = z(t), a2 = 0; a2 < r2.length; ++a2) { + var c2 = r2[a2]; + if (!(c2 in L || n && n[c2] || i && c2 in i || s && c2 in s)) { + var u2 = W(t, c2); + try { + $(e, c2, u2); + } catch (e2) { + } + } + } + } + return e; +} +function X(e) { + return "function" == typeof e; +} +function Z(e) { + return "object" == typeof e && "styledComponentId" in e; +} +function K(e, t) { + return e && t ? "".concat(e, " ").concat(t) : e || t || ""; +} +function Q(e, t) { + if (0 === e.length) return ""; + for (var n = e[0], o2 = 1; o2 < e.length; o2++) n += t ? t + e[o2] : e[o2]; + return n; +} +function ee(e) { + return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof); +} +function te(e, t, n) { + if (void 0 === n && (n = false), !n && !ee(e) && !Array.isArray(e)) return t; + if (Array.isArray(t)) for (var o2 = 0; o2 < t.length; o2++) e[o2] = te(e[o2], t[o2]); + else if (ee(t)) for (var o2 in t) e[o2] = te(e[o2], t[o2]); + return e; +} +function ne(e, t) { + Object.defineProperty(e, "toString", { value: t }); +} +var oe = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 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.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 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.\n\n', 9: "Missing document ``\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\n\n", 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.\n\n", 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.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 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 ``, 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.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a ``" } : {}; +function re() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + for (var n = e[0], o2 = [], r2 = 1, s = e.length; r2 < s; r2 += 1) o2.push(e[r2]); + return o2.forEach(function(e2) { + n = n.replace(/%[a-z]/, e2); + }), n; +} +function se(t) { + for (var n = [], o2 = 1; o2 < arguments.length; o2++) n[o2 - 1] = arguments[o2]; + return false ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(re.apply(void 0, __spreadArray([oe[t]], n, false)).trim()); +} +var ie = (function() { + function e(e2) { + this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2; + } + return e.prototype.indexOfGroup = function(e2) { + for (var t = 0, n = 0; n < e2; n++) t += this.groupSizes[n]; + return t; + }, e.prototype.insertRules = function(e2, t) { + if (e2 >= this.groupSizes.length) { + for (var n = this.groupSizes, o2 = n.length, r2 = o2; e2 >= r2; ) if ((r2 <<= 1) < 0) throw se(16, "".concat(e2)); + this.groupSizes = new Uint32Array(r2), this.groupSizes.set(n), this.length = r2; + for (var s = o2; s < r2; s++) this.groupSizes[s] = 0; + } + for (var i = this.indexOfGroup(e2 + 1), a2 = (s = 0, t.length); s < a2; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e2]++, i++); + }, e.prototype.clearGroup = function(e2) { + if (e2 < this.length) { + var t = this.groupSizes[e2], n = this.indexOfGroup(e2), o2 = n + t; + this.groupSizes[e2] = 0; + for (var r2 = n; r2 < o2; r2++) this.tag.deleteRule(n); + } + }, e.prototype.getGroup = function(e2) { + var t = ""; + if (e2 >= this.length || 0 === this.groupSizes[e2]) return t; + for (var n = this.groupSizes[e2], o2 = this.indexOfGroup(e2), r2 = o2 + n, s = o2; s < r2; s++) t += "".concat(this.tag.getRule(s)).concat(d); + return t; + }, e; +})(); +var ae = 1 << 30; +var ce = /* @__PURE__ */ new Map(); +var ue = /* @__PURE__ */ new Map(); +var le = 1; +var de = function(e) { + if (ce.has(e)) return ce.get(e); + for (; ue.has(le); ) le++; + var t = le++; + if ((0 | t) < 0 || t > ae) throw se(16, "".concat(t)); + return ce.set(e, t), ue.set(t, e), t; +}; +var pe = function(e, t) { + le = t + 1, ce.set(e, t), ue.set(t, e); +}; +var he = "style[".concat(a, "][").concat(u, '="').concat(l, '"]'); +var fe = new RegExp("^".concat(a, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')); +var me = function(e, t, n) { + for (var o2, r2 = n.split(","), s = 0, i = r2.length; s < i; s++) (o2 = r2[s]) && e.registerName(t, o2); +}; +var ye = function(e, t) { + for (var n, o2 = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(d), r2 = [], s = 0, i = o2.length; s < i; s++) { + var a2 = o2[s].trim(); + if (a2) { + var c2 = a2.match(fe); + if (c2) { + var u2 = 0 | parseInt(c2[1], 10), l2 = c2[2]; + 0 !== u2 && (pe(l2, u2), me(e, l2, c2[3]), e.getTag().insertRules(u2, r2)), r2.length = 0; + } else r2.push(a2); + } + } +}; +var ve = function(e) { + for (var t = document.querySelectorAll(he), n = 0, o2 = t.length; n < o2; n++) { + var r2 = t[n]; + r2 && r2.getAttribute(a) !== c && (ye(e, r2), r2.parentNode && r2.parentNode.removeChild(r2)); + } +}; +function ge() { + return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null; +} +var Se = function(e) { + var t = document.head, n = e || t, o2 = document.createElement("style"), r2 = (function(e2) { + var t2 = Array.from(e2.querySelectorAll("style[".concat(a, "]"))); + return t2[t2.length - 1]; + })(n), s = void 0 !== r2 ? r2.nextSibling : null; + o2.setAttribute(a, c), o2.setAttribute(u, l); + var i = ge(); + return i && o2.setAttribute("nonce", i), n.insertBefore(o2, s), o2; +}; +var we = (function() { + function e(e2) { + this.element = Se(e2), this.element.appendChild(document.createTextNode("")), this.sheet = (function(e3) { + if (e3.sheet) return e3.sheet; + for (var t = document.styleSheets, n = 0, o2 = t.length; n < o2; n++) { + var r2 = t[n]; + if (r2.ownerNode === e3) return r2; + } + throw se(17); + })(this.element), this.length = 0; + } + return e.prototype.insertRule = function(e2, t) { + try { + return this.sheet.insertRule(t, e2), this.length++, true; + } catch (e3) { + return false; + } + }, e.prototype.deleteRule = function(e2) { + this.sheet.deleteRule(e2), this.length--; + }, e.prototype.getRule = function(e2) { + var t = this.sheet.cssRules[e2]; + return t && t.cssText ? t.cssText : ""; + }, e; +})(); +var be = (function() { + function e(e2) { + this.element = Se(e2), this.nodes = this.element.childNodes, this.length = 0; + } + return e.prototype.insertRule = function(e2, t) { + if (e2 <= this.length && e2 >= 0) { + var n = document.createTextNode(t); + return this.element.insertBefore(n, this.nodes[e2] || null), this.length++, true; + } + return false; + }, e.prototype.deleteRule = function(e2) { + this.element.removeChild(this.nodes[e2]), this.length--; + }, e.prototype.getRule = function(e2) { + return e2 < this.length ? this.nodes[e2].textContent : ""; + }, e; +})(); +var Ee = (function() { + function e(e2) { + this.rules = [], this.length = 0; + } + return e.prototype.insertRule = function(e2, t) { + return e2 <= this.length && (this.rules.splice(e2, 0, t), this.length++, true); + }, e.prototype.deleteRule = function(e2) { + this.rules.splice(e2, 1), this.length--; + }, e.prototype.getRule = function(e2) { + return e2 < this.length ? this.rules[e2] : ""; + }, e; +})(); +var Ne = p; +var Ce = { isServer: !p, useCSSOMInjection: !f }; +var Ae = (function() { + function e(e2, n, o2) { + void 0 === e2 && (e2 = w), void 0 === n && (n = {}); + var r2 = this; + this.options = __assign(__assign({}, Ce), e2), this.gs = n, this.names = new Map(o2), this.server = !!e2.isServer, !this.server && p && Ne && (Ne = false, ve(this)), ne(this, function() { + return (function(e3) { + for (var t = e3.getTag(), n2 = t.length, o3 = "", r3 = function(n3) { + var r4 = (function(e4) { + return ue.get(e4); + })(n3); + if (void 0 === r4) return "continue"; + var s2 = e3.names.get(r4), i = t.getGroup(n3); + if (void 0 === s2 || !s2.size || 0 === i.length) return "continue"; + var c2 = "".concat(a, ".g").concat(n3, '[id="').concat(r4, '"]'), u2 = ""; + void 0 !== s2 && s2.forEach(function(e4) { + e4.length > 0 && (u2 += "".concat(e4, ",")); + }), o3 += "".concat(i).concat(c2, '{content:"').concat(u2, '"}').concat(d); + }, s = 0; s < n2; s++) r3(s); + return o3; + })(r2); + }); + } + return e.registerId = function(e2) { + return de(e2); + }, e.prototype.rehydrate = function() { + !this.server && p && ve(this); + }, e.prototype.reconstructWithOptions = function(n, o2) { + return void 0 === o2 && (o2 = true), new e(__assign(__assign({}, this.options), n), this.gs, o2 && this.names || void 0); + }, e.prototype.allocateGSInstance = function(e2) { + return this.gs[e2] = (this.gs[e2] || 0) + 1; + }, e.prototype.getTag = function() { + return this.tag || (this.tag = (e2 = (function(e3) { + var t = e3.useCSSOMInjection, n = e3.target; + return e3.isServer ? new Ee(n) : t ? new we(n) : new be(n); + })(this.options), new ie(e2))); + var e2; + }, e.prototype.hasNameForId = function(e2, t) { + return this.names.has(e2) && this.names.get(e2).has(t); + }, e.prototype.registerName = function(e2, t) { + if (de(e2), this.names.has(e2)) this.names.get(e2).add(t); + else { + var n = /* @__PURE__ */ new Set(); + n.add(t), this.names.set(e2, n); + } + }, e.prototype.insertRules = function(e2, t, n) { + this.registerName(e2, t), this.getTag().insertRules(de(e2), n); + }, e.prototype.clearNames = function(e2) { + this.names.has(e2) && this.names.get(e2).clear(); + }, e.prototype.clearRules = function(e2) { + this.getTag().clearGroup(de(e2)), this.clearNames(e2); + }, e.prototype.clearTag = function() { + this.tag = void 0; + }, e; +})(); +var Pe = /&/g; +var _e = 47; +function Ie(e) { + if (-1 === e.indexOf("}")) return false; + for (var t = e.length, n = 0, o2 = 0, r2 = false, s = 0; s < t; s++) { + var i = e.charCodeAt(s); + if (0 !== o2 || r2 || i !== _e || 42 !== e.charCodeAt(s + 1)) if (r2) 42 === i && e.charCodeAt(s + 1) === _e && (r2 = false, s++); + else if (34 !== i && 39 !== i || 0 !== s && 92 === e.charCodeAt(s - 1)) { + if (0 === o2) { + if (123 === i) n++; + else if (125 === i && --n < 0) return true; + } + } else 0 === o2 ? o2 = i : o2 === i && (o2 = 0); + else r2 = true, s++; + } + return 0 !== n || 0 !== o2; +} +function Oe(e, t) { + return e.map(function(e2) { + return "rule" === e2.type && (e2.value = "".concat(t, " ").concat(e2.value), e2.value = e2.value.replaceAll(",", ",".concat(t, " ")), e2.props = e2.props.map(function(e3) { + return "".concat(t, " ").concat(e3); + })), Array.isArray(e2.children) && "@keyframes" !== e2.type && (e2.children = Oe(e2.children, t)), e2; + }); +} +function De(e) { + var t, n, o2, r2 = void 0 === e ? w : e, i = r2.options, a2 = void 0 === i ? w : i, c2 = r2.plugins, u2 = void 0 === c2 ? S : c2, l2 = function(e2, o3, r3) { + return r3.startsWith(n) && r3.endsWith(n) && r3.replaceAll(n, "").length > 0 ? ".".concat(t) : e2; + }, d2 = u2.slice(); + d2.push(function(e2) { + e2.type === RULESET && e2.value.includes("&") && (e2.props[0] = e2.props[0].replace(Pe, n).replace(o2, l2)); + }), a2.prefix && d2.push(prefixer), d2.push(stringify); + var p2 = function(e2, r3, i2, c3) { + void 0 === r3 && (r3 = ""), void 0 === i2 && (i2 = ""), void 0 === c3 && (c3 = "&"), t = c3, n = r3, o2 = new RegExp("\\".concat(n, "\\b"), "g"); + var u3 = (function(e3) { + if (!Ie(e3)) return e3; + for (var t2 = e3.length, n2 = "", o3 = 0, r4 = 0, s = 0, i3 = false, a3 = 0; a3 < t2; a3++) { + var c4 = e3.charCodeAt(a3); + if (0 !== s || i3 || c4 !== _e || 42 !== e3.charCodeAt(a3 + 1)) if (i3) 42 === c4 && e3.charCodeAt(a3 + 1) === _e && (i3 = false, a3++); + else if (34 !== c4 && 39 !== c4 || 0 !== a3 && 92 === e3.charCodeAt(a3 - 1)) { + if (0 === s) if (123 === c4) r4++; + else if (125 === c4) { + if (--r4 < 0) { + for (var u4 = a3 + 1; u4 < t2; ) { + var l4 = e3.charCodeAt(u4); + if (59 === l4 || 10 === l4) break; + u4++; + } + u4 < t2 && 59 === e3.charCodeAt(u4) && u4++, r4 = 0, a3 = u4 - 1, o3 = u4; + continue; + } + 0 === r4 && (n2 += e3.substring(o3, a3 + 1), o3 = a3 + 1); + } else 59 === c4 && 0 === r4 && (n2 += e3.substring(o3, a3 + 1), o3 = a3 + 1); + } else 0 === s ? s = c4 : s === c4 && (s = 0); + else i3 = true, a3++; + } + if (o3 < t2) { + var d3 = e3.substring(o3); + Ie(d3) || (n2 += d3); + } + return n2; + })((function(e3) { + if (-1 === e3.indexOf("//")) return e3; + for (var t2 = e3.length, n2 = [], o3 = 0, r4 = 0, s = 0, i3 = 0; r4 < t2; ) { + var a3 = e3.charCodeAt(r4); + if (34 !== a3 && 39 !== a3 || 0 !== r4 && 92 === e3.charCodeAt(r4 - 1)) if (0 === s) if (40 === a3 && r4 >= 3 && 108 == (32 | e3.charCodeAt(r4 - 1)) && 114 == (32 | e3.charCodeAt(r4 - 2)) && 117 == (32 | e3.charCodeAt(r4 - 3))) i3 = 1, r4++; + else if (i3 > 0) 41 === a3 ? i3-- : 40 === a3 && i3++, r4++; + else if (a3 === _e && r4 + 1 < t2 && e3.charCodeAt(r4 + 1) === _e) { + for (r4 > o3 && n2.push(e3.substring(o3, r4)); r4 < t2 && 10 !== e3.charCodeAt(r4); ) r4++; + o3 = r4; + } else r4++; + else r4++; + else 0 === s ? s = a3 : s === a3 && (s = 0), r4++; + } + return 0 === o3 ? e3 : (o3 < t2 && n2.push(e3.substring(o3)), n2.join("")); + })(e2)), l3 = compile(i2 || r3 ? "".concat(i2, " ").concat(r3, " { ").concat(u3, " }") : u3); + a2.namespace && (l3 = Oe(l3, a2.namespace)); + var p3 = []; + return serialize(l3, middleware(d2.concat(rulesheet(function(e3) { + return p3.push(e3); + })))), p3; + }; + return p2.hash = u2.length ? u2.reduce(function(e2, t2) { + return t2.name || se(15), D(e2, t2.name); + }, 5381).toString() : "", p2; +} +var Te = new Ae(); +var Re = De(); +var xe = { shouldForwardProp: void 0, styleSheet: Te, stylis: Re }; +var ke = h ? { Provider: function(e) { + return e.children; +}, Consumer: function(e) { + return (0, e.children)(xe); +} } : import_react.default.createContext(xe); +var je = ke.Consumer; +var Me = h ? { Provider: function(e) { + return e.children; +}, Consumer: function(e) { + return (0, e.children)(void 0); +} } : import_react.default.createContext(void 0); +function Ve() { + return h ? xe : import_react.default.useContext(ke); +} +function Fe(e) { + if (h || !import_react.default.useMemo) return e.children; + var t = Ve().styleSheet, n = import_react.default.useMemo(function() { + var n2 = t; + return e.sheet ? n2 = e.sheet : e.target && (n2 = n2.reconstructWithOptions({ target: e.target }, false)), e.disableCSSOMInjection && (n2 = n2.reconstructWithOptions({ useCSSOMInjection: false })), n2; + }, [e.disableCSSOMInjection, e.sheet, e.target, t]), r2 = import_react.default.useMemo(function() { + return De({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: e.stylisPlugins }); + }, [e.enableVendorPrefixes, e.namespace, e.stylisPlugins]), s = import_react.default.useMemo(function() { + return { shouldForwardProp: e.shouldForwardProp, styleSheet: n, stylis: r2 }; + }, [e.shouldForwardProp, n, r2]); + return import_react.default.createElement(ke.Provider, { value: s }, import_react.default.createElement(Me.Provider, { value: r2 }, e.children)); +} +var Le = (function() { + function e(e2, t) { + var n = this; + this.inject = function(e3, t2) { + void 0 === t2 && (t2 = Re); + var o2 = n.name + t2.hash; + e3.hasNameForId(n.id, o2) || e3.insertRules(n.id, o2, t2(n.rules, o2, "@keyframes")); + }, this.name = e2, this.id = "sc-keyframes-".concat(e2), this.rules = t, ne(this, function() { + throw se(12, String(n.name)); + }); + } + return e.prototype.getName = function(e2) { + return void 0 === e2 && (e2 = Re), this.name + e2.hash; + }, e; +})(); +function Be(e, t) { + return null == t || "boolean" == typeof t || "" === t ? "" : "number" != typeof t || 0 === t || e in unitlessKeys || e.startsWith("--") ? String(t).trim() : "".concat(t, "px"); +} +var Ge = function(e) { + return e >= "A" && e <= "Z"; +}; +function ze(e) { + for (var t = "", n = 0; n < e.length; n++) { + var o2 = e[n]; + if (1 === n && "-" === o2 && "-" === e[0]) return e; + Ge(o2) ? t += "-" + o2.toLowerCase() : t += o2; + } + return t.startsWith("ms-") ? "-" + t : t; +} +var $e = function(e) { + return null == e || false === e || "" === e; +}; +var Ye = function(t) { + var n = []; + for (var o2 in t) { + var r2 = t[o2]; + t.hasOwnProperty(o2) && !$e(r2) && (Array.isArray(r2) && r2.isCss || X(r2) ? n.push("".concat(ze(o2), ":"), r2, ";") : ee(r2) ? n.push.apply(n, __spreadArray(__spreadArray(["".concat(o2, " {")], Ye(r2), false), ["}"], false)) : n.push("".concat(ze(o2), ": ").concat(Be(o2, r2), ";"))); + } + return n; +}; +function qe(e, t, n, o2) { + if ($e(e)) return []; + if (Z(e)) return [".".concat(e.styledComponentId)]; + if (X(e)) { + if (!X(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e]; + var r2 = e(t); + return "object" != typeof r2 || Array.isArray(r2) || r2 instanceof Le || ee(r2) || null === r2 || console.error("".concat(x(e), " 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.")), qe(r2, t, n, o2); + } + var s; + return e instanceof Le ? n ? (e.inject(n, o2), [e.getName(o2)]) : [e] : ee(e) ? Ye(e) : Array.isArray(e) ? Array.prototype.concat.apply(S, e.map(function(e2) { + return qe(e2, t, n, o2); + })) : [e.toString()]; +} +function We(e) { + for (var t = 0; t < e.length; t += 1) { + var n = e[t]; + if (X(n) && !Z(n)) return false; + } + return true; +} +var He = T(l); +var Ue = (function() { + function e(e2, t, n) { + this.rules = e2, this.staticRulesId = "", this.isStatic = false, this.componentId = t, this.baseHash = D(He, t), this.baseStyle = n, Ae.registerId(t); + } + return e.prototype.generateAndInjectStyles = function(e2, t, n) { + var o2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t, n).className : ""; + if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o2 = K(o2, this.staticRulesId); + else { + var r2 = Q(qe(this.rules, e2, t, n)), s = I(D(this.baseHash, r2) >>> 0); + if (!t.hasNameForId(this.componentId, s)) { + var i = n(r2, ".".concat(s), void 0, this.componentId); + t.insertRules(this.componentId, s, i); + } + o2 = K(o2, s), this.staticRulesId = s; + } + else { + for (var a2 = D(this.baseHash, n.hash), c2 = "", u2 = 0; u2 < this.rules.length; u2++) { + var l2 = this.rules[u2]; + if ("string" == typeof l2) c2 += l2, a2 = D(a2, l2); + else if (l2) { + var d2 = Q(qe(l2, e2, t, n)); + a2 = D(a2, d2 + u2), c2 += d2; + } + } + if (c2) { + var p2 = I(a2 >>> 0); + if (!t.hasNameForId(this.componentId, p2)) { + var h2 = n(c2, ".".concat(p2), void 0, this.componentId); + t.insertRules(this.componentId, p2, h2); + } + o2 = K(o2, p2); + } + } + return { className: o2, css: "undefined" == typeof window ? t.getTag().getGroup(de(this.componentId)) : "" }; + }, e; +})(); +var Je = h ? { Provider: function(e) { + return e.children; +}, Consumer: function(e) { + return (0, e.children)(void 0); +} } : import_react.default.createContext(void 0); +var Xe = Je.Consumer; +function Ze() { + var e = h ? void 0 : import_react.default.useContext(Je); + if (!e) throw se(18); + return e; +} +function Ke(e) { + if (h) return e.children; + var n = import_react.default.useContext(Je), r2 = import_react.default.useMemo(function() { + return (function(e2, n2) { + if (!e2) throw se(14); + if (X(e2)) { + var o2 = e2(n2); + if (null === o2 || Array.isArray(o2) || "object" != typeof o2) throw se(7); + return o2; + } + if (Array.isArray(e2) || "object" != typeof e2) throw se(8); + return n2 ? __assign(__assign({}, n2), e2) : e2; + })(e.theme, n); + }, [e.theme, n]); + return e.children ? import_react.default.createElement(Je.Provider, { value: r2 }, e.children) : null; +} +var Qe = {}; +var et = /* @__PURE__ */ new Set(); +function tt(e, s, i) { + var a2 = Z(e), c2 = e, u2 = !k(e), d2 = s.attrs, p2 = void 0 === d2 ? S : d2, f2 = s.componentId, m2 = void 0 === f2 ? (function(e2, t) { + var n = "string" != typeof e2 ? "sc" : A(e2); + Qe[n] = (Qe[n] || 0) + 1; + var o2 = "".concat(n, "-").concat(R(l + n + Qe[n])); + return t ? "".concat(t, "-").concat(o2) : o2; + })(s.displayName, s.parentComponentId) : f2, y2 = s.displayName, v2 = void 0 === y2 ? (function(e2) { + return k(e2) ? "styled.".concat(e2) : "Styled(".concat(x(e2), ")"); + })(e) : y2, N2 = s.displayName && s.componentId ? "".concat(A(s.displayName), "-").concat(s.componentId) : s.componentId || m2, C2 = a2 && c2.attrs ? c2.attrs.concat(p2).filter(Boolean) : p2, P2 = s.shouldForwardProp; + if (a2 && c2.shouldForwardProp) { + var _2 = c2.shouldForwardProp; + if (s.shouldForwardProp) { + var I2 = s.shouldForwardProp; + P2 = function(e2, t) { + return _2(e2, t) && I2(e2, t); + }; + } else P2 = _2; + } + var O2 = new Ue(i, N2, a2 ? c2.componentStyle : void 0); + function D2(e2, s2) { + return (function(e3, s3, i2) { + var a3 = e3.attrs, c3 = e3.componentStyle, u3 = e3.defaultProps, l2 = e3.foldedComponentIds, d3 = e3.styledComponentId, p3 = e3.target, f3 = h ? void 0 : import_react.default.useContext(Je), m3 = Ve(), y3 = e3.shouldForwardProp || m3.shouldForwardProp; + import_react.default.useDebugValue && import_react.default.useDebugValue(d3); + var v3 = b(s3, f3, u3) || w, g2 = (function(e4, n, o2) { + for (var r2, s4 = __assign(__assign({}, n), { className: void 0, theme: o2 }), i3 = 0; i3 < e4.length; i3 += 1) { + var a4 = X(r2 = e4[i3]) ? r2(s4) : r2; + for (var c4 in a4) "className" === c4 ? s4.className = K(s4.className, a4[c4]) : "style" === c4 ? s4.style = __assign(__assign({}, s4.style), a4[c4]) : s4[c4] = a4[c4]; + } + return "className" in n && "string" == typeof n.className && (s4.className = K(s4.className, n.className)), s4; + })(a3, s3, v3), S2 = g2.as || p3, N3 = {}; + for (var C3 in g2) void 0 === g2[C3] || "$" === C3[0] || "as" === C3 || "theme" === C3 && g2.theme === v3 || ("forwardedAs" === C3 ? N3.as = g2.forwardedAs : y3 && !y3(C3, S2) || (N3[C3] = g2[C3], y3 || false || isPropValid(C3) || et.has(C3) || !E.has(S2) || (et.add(C3), console.warn('styled-components: it looks like an unknown prop "'.concat(C3, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)'))))); + var A2 = (function(e4, t) { + var n = Ve(), r2 = e4.generateAndInjectStyles(t, n.styleSheet, n.stylis); + return import_react.default.useDebugValue && import_react.default.useDebugValue(r2.className), r2; + })(c3, g2), P3 = A2.className, _3 = A2.css; + e3.warnTooManyClasses && e3.warnTooManyClasses(P3); + var I3 = K(l2, d3); + P3 && (I3 += " " + P3), g2.className && (I3 += " " + g2.className), N3[k(S2) && !E.has(S2) ? "class" : "className"] = I3, i2 && (N3.ref = i2); + var O3 = (0, import_react.createElement)(S2, N3); + return h && _3 ? import_react.default.createElement(import_react.default.Fragment, null, import_react.default.createElement("style", { precedence: "styled-components", href: "sc-".concat(d3, "-").concat(P3), children: _3 }), O3) : O3; + })(T2, e2, s2); + } + D2.displayName = v2; + var T2 = import_react.default.forwardRef(D2); + return T2.attrs = C2, T2.componentStyle = O2, T2.displayName = v2, T2.shouldForwardProp = P2, T2.foldedComponentIds = a2 ? K(c2.foldedComponentIds, c2.styledComponentId) : "", T2.styledComponentId = N2, T2.target = a2 ? c2.target : e, Object.defineProperty(T2, "defaultProps", { get: function() { + return this._foldedDefaultProps; + }, set: function(e2) { + this._foldedDefaultProps = a2 ? (function(e3) { + for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; + for (var o2 = 0, r2 = t; o2 < r2.length; o2++) te(e3, r2[o2], true); + return e3; + })({}, c2.defaultProps, e2) : e2; + } }), g(v2, N2), T2.warnTooManyClasses = /* @__PURE__ */ (function(e2, t) { + var n = {}, o2 = false; + return function(r2) { + if (!o2 && (n[r2] = true, Object.keys(n).length >= 200)) { + var s2 = t ? ' with the id of "'.concat(t, '"') : ""; + console.warn("Over ".concat(200, " classes were generated for component ").concat(e2).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n "), o2 = true, n = {}; + } + }; + })(v2, N2), ne(T2, function() { + return ".".concat(T2.styledComponentId); + }), u2 && J(T2, e, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), T2; +} +function nt(e, t) { + for (var n = [e[0]], o2 = 0, r2 = t.length; o2 < r2; o2 += 1) n.push(t[o2], e[o2 + 1]); + return n; +} +var ot = function(e) { + return Object.assign(e, { isCss: true }); +}; +function rt(t) { + for (var n = [], o2 = 1; o2 < arguments.length; o2++) n[o2 - 1] = arguments[o2]; + if (X(t) || ee(t)) return ot(qe(nt(S, __spreadArray([t], n, true)))); + var r2 = t; + return 0 === n.length && 1 === r2.length && "string" == typeof r2[0] ? qe(r2) : ot(qe(nt(r2, n))); +} +function st(n, o2, r2) { + if (void 0 === r2 && (r2 = w), !o2) throw se(1, o2); + var s = function(t) { + for (var s2 = [], i = 1; i < arguments.length; i++) s2[i - 1] = arguments[i]; + return n(o2, r2, rt.apply(void 0, __spreadArray([t], s2, false))); + }; + return s.attrs = function(e) { + return st(n, o2, __assign(__assign({}, r2), { attrs: Array.prototype.concat(r2.attrs, e).filter(Boolean) })); + }, s.withConfig = function(e) { + return st(n, o2, __assign(__assign({}, r2), e)); + }, s; +} +var it = function(e) { + return st(tt, e); +}; +var at = it; +E.forEach(function(e) { + at[e] = it(e); +}); +var ct = (function() { + function e(e2, t) { + this.rules = e2, this.componentId = t, this.isStatic = We(e2), Ae.registerId(this.componentId + 1); + } + return e.prototype.createStyles = function(e2, t, n, o2) { + var r2 = o2(Q(qe(this.rules, t, n, o2)), ""), s = this.componentId + e2; + n.insertRules(s, s, r2); + }, e.prototype.removeStyles = function(e2, t) { + t.clearRules(this.componentId + e2); + }, e.prototype.renderStyles = function(e2, t, n, o2) { + e2 > 2 && Ae.registerId(this.componentId + e2); + var r2 = this.componentId + e2; + this.isStatic ? n.hasNameForId(r2, r2) || this.createStyles(e2, t, n, o2) : (this.removeStyles(e2, n), this.createStyles(e2, t, n, o2)); + }, e; +})(); +function ut(n) { + for (var r2 = [], s = 1; s < arguments.length; s++) r2[s - 1] = arguments[s]; + var i = rt.apply(void 0, __spreadArray([n], r2, false)), a2 = "sc-global-".concat(R(JSON.stringify(i))), c2 = new ct(i, a2); + g(a2); + var u2 = /* @__PURE__ */ new WeakMap(), l2 = function(e) { + var n2 = Ve(), r3 = h ? void 0 : import_react.default.useContext(Je), s2 = u2.get(n2.styleSheet); + if (void 0 === s2 && (s2 = n2.styleSheet.allocateGSInstance(a2), u2.set(n2.styleSheet, s2)), import_react.default.Children.count(e.children) && console.warn("The global style component ".concat(a2, " was given child JSX. createGlobalStyle does not render children.")), i.some(function(e2) { + return "string" == typeof e2 && -1 !== e2.indexOf("@import"); + }) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical meta tag to the stylesheet, or simply embedding it manually in your index.html section for a simpler app."), ("undefined" == typeof window || !n2.styleSheet.server) && (function(e2, n3, o2, r4, s3) { + if (c2.isStatic) c2.renderStyles(e2, m, o2, s3); + else { + var i2 = __assign(__assign({}, n3), { theme: b(n3, r4, l2.defaultProps) }); + c2.renderStyles(e2, i2, o2, s3); + } + })(s2, e, n2.styleSheet, r3, n2.stylis), !h) { + var d2 = import_react.default.useRef(true); + import_react.default.useLayoutEffect(function() { + return d2.current = false, function() { + d2.current = true, queueMicrotask(function() { + d2.current && (c2.removeStyles(s2, n2.styleSheet), "undefined" != typeof document && document.querySelectorAll('style[data-styled-global="'.concat(a2, '"]')).forEach(function(e2) { + return e2.remove(); + })); + }); + }; + }, [s2, n2.styleSheet]); + } + if (h) { + var p2 = a2 + s2, f2 = "undefined" == typeof window ? n2.styleSheet.getTag().getGroup(de(p2)) : ""; + if (f2) { + var y2 = "".concat(a2, "-").concat(s2); + return import_react.default.createElement("style", { key: y2, "data-styled-global": a2, precedence: "styled-components", href: y2, children: f2 }); + } + } + return null; + }; + return import_react.default.memo(l2); +} +function lt(t) { + for (var n = [], o2 = 1; o2 < arguments.length; o2++) n[o2 - 1] = arguments[o2]; + "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated."); + var r2 = Q(rt.apply(void 0, __spreadArray([t], n, false))), s = R(r2); + return new Le(s, r2); +} +function dt(e) { + var n = import_react.default.forwardRef(function(n2, r2) { + var s = b(n2, h ? void 0 : import_react.default.useContext(Je), e.defaultProps); + return void 0 === s && console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(x(e), '"')), import_react.default.createElement(e, __assign(__assign({}, n2), { theme: s, ref: r2 })); + }); + return n.displayName = "WithTheme(".concat(x(e), ")"), J(n, e); +} +var pt = (function() { + function e() { + var e2 = this; + this._emitSheetCSS = function() { + var t = e2.instance.toString(); + if (!t) return ""; + var n = ge(), o2 = Q([n && 'nonce="'.concat(n, '"'), "".concat(a, '="true"'), "".concat(u, '="').concat(l, '"')].filter(Boolean), " "); + return ""); + }, this.getStyleTags = function() { + if (e2.sealed) throw se(2); + return e2._emitSheetCSS(); + }, this.getStyleElement = function() { + var n; + if (e2.sealed) throw se(2); + var r2 = e2.instance.toString(); + if (!r2) return []; + var s = ((n = {})[a] = "", n[u] = l, n.dangerouslySetInnerHTML = { __html: r2 }, n), i = ge(); + return i && (s.nonce = i), [import_react.default.createElement("style", __assign({}, s, { key: "sc-0-0" }))]; + }, this.seal = function() { + e2.sealed = true; + }, this.instance = new Ae({ isServer: true }), this.sealed = false; + } + return e.prototype.collectStyles = function(e2) { + if (this.sealed) throw se(2); + return import_react.default.createElement(Fe, { sheet: this.instance }, e2); + }, e.prototype.interleaveWithNodeStream = function(e2) { + throw se(3); + }, e; +})(); +var ht = { StyleSheet: Ae, mainSheet: Te }; +"undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"); +var ft = "__sc-".concat(a, "__"); +"undefined" != typeof window && (window[ft] || (window[ft] = 0), 1 === window[ft] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[ft] += 1); +export { + pt as ServerStyleSheet, + je as StyleSheetConsumer, + ke as StyleSheetContext, + Fe as StyleSheetManager, + Xe as ThemeConsumer, + Je as ThemeContext, + Ke as ThemeProvider, + ht as __PRIVATE__, + ut as createGlobalStyle, + rt as css, + at as default, + Z as isStyledComponent, + lt as keyframes, + at as styled, + Ze as useTheme, + l as version, + dt as withTheme +}; +//# sourceMappingURL=styled-components.js.map