quix-ui 1.2.4 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,15 +1,7 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
1
+ import { jsx as jsx$1, jsxs } from 'react/jsx-runtime';
2
2
  import * as React3 from 'react';
3
- import { useRef, useState } from 'react';
3
+ import { forwardRef, useContext, useEffect, useState, useCallback } from 'react';
4
4
 
5
- function _arrayLikeToArray(r, a) {
6
- (null == a || a > r.length) && (a = r.length);
7
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
8
- return n;
9
- }
10
- function _arrayWithHoles(r) {
11
- if (Array.isArray(r)) return r;
12
- }
13
5
  function _defineProperty(e, r, t) {
14
6
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
15
7
  value: t,
@@ -18,33 +10,6 @@ function _defineProperty(e, r, t) {
18
10
  writable: true
19
11
  }) : e[r] = t, e;
20
12
  }
21
- function _iterableToArrayLimit(r, l) {
22
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
23
- if (null != t) {
24
- var e,
25
- n,
26
- i,
27
- u,
28
- a = [],
29
- f = true,
30
- o = false;
31
- try {
32
- if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
33
- } catch (r) {
34
- o = true, n = r;
35
- } finally {
36
- try {
37
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
38
- } finally {
39
- if (o) throw n;
40
- }
41
- }
42
- return a;
43
- }
44
- }
45
- function _nonIterableRest() {
46
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47
- }
48
13
  function ownKeys(e, r) {
49
14
  var t = Object.keys(e);
50
15
  if (Object.getOwnPropertySymbols) {
@@ -66,8 +31,12 @@ function _objectSpread2(e) {
66
31
  }
67
32
  return e;
68
33
  }
69
- function _slicedToArray(r, e) {
70
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
34
+ function _taggedTemplateLiteral(e, t) {
35
+ return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
36
+ raw: {
37
+ value: Object.freeze(t)
38
+ }
39
+ }));
71
40
  }
72
41
  function _toPrimitive(t, r) {
73
42
  if ("object" != typeof t || !t) return t;
@@ -83,13 +52,6 @@ function _toPropertyKey(t) {
83
52
  var i = _toPrimitive(t, "string");
84
53
  return "symbol" == typeof i ? i : i + "";
85
54
  }
86
- function _unsupportedIterableToArray(r, a) {
87
- if (r) {
88
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
89
- var t = {}.toString.call(r).slice(8, -1);
90
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
91
- }
92
- }
93
55
 
94
56
  function styleInject(css, ref) {
95
57
  if ( ref === void 0 ) ref = {};
@@ -121,6 +83,97 @@ function styleInject(css, ref) {
121
83
  var css_248z$1 = ":root{border-style:solid}.flex-center{align-items:center;display:flex;justify-content:center}.flex-start{align-items:start;display:flex;justify-content:start}.flex-end{align-items:end;display:flex;justify-content:end}.flex-between{align-items:center;display:flex;justify-content:space-between}";
122
84
  styleInject(css_248z$1);
123
85
 
86
+ function FlexView(props) {
87
+ var _rounded$topLeft, _rounded$topRight, _rounded$bottomLeft, _rounded$bottomRight;
88
+ var isScrollable = props.isScrollable,
89
+ direction = props.direction,
90
+ width = props.width,
91
+ height = props.height,
92
+ backgroundColor = props.backgroundColor,
93
+ paddingX = props.paddingX,
94
+ paddingY = props.paddingY,
95
+ textColor = props.textColor,
96
+ className = props.className,
97
+ rounded = props.rounded,
98
+ gap = props.gap,
99
+ style = props.style,
100
+ layout = props.layout,
101
+ onClick = props.onClick,
102
+ onRightClick = props.onRightClick,
103
+ tooltip = props.tooltip;
104
+ return jsx$1("div", {
105
+ onContextMenu: onRightClick,
106
+ onClick: onClick,
107
+ className: "".concat(className, " ").concat(layout, " quix_view "),
108
+ style: _objectSpread2({
109
+ overflowY: isScrollable ? 'scroll' : 'hidden',
110
+ flexDirection: direction || 'row',
111
+ width: width ? width : 'auto',
112
+ height: height ? height : 'auto',
113
+ backgroundColor: backgroundColor || 'transparent',
114
+ paddingInline: paddingX ? "".concat(paddingX, "px") : undefined,
115
+ paddingBlock: paddingY ? "".concat(paddingY, "px") : undefined,
116
+ color: textColor || 'inherit',
117
+ borderTopLeftRadius: typeof rounded === 'number' ? rounded : (_rounded$topLeft = rounded === null || rounded === void 0 ? void 0 : rounded.topLeft) !== null && _rounded$topLeft !== void 0 ? _rounded$topLeft : 4,
118
+ borderTopRightRadius: typeof rounded === 'number' ? rounded : (_rounded$topRight = rounded === null || rounded === void 0 ? void 0 : rounded.topRight) !== null && _rounded$topRight !== void 0 ? _rounded$topRight : 4,
119
+ borderBottomLeftRadius: typeof rounded === 'number' ? rounded : (_rounded$bottomLeft = rounded === null || rounded === void 0 ? void 0 : rounded.bottomLeft) !== null && _rounded$bottomLeft !== void 0 ? _rounded$bottomLeft : 4,
120
+ borderBottomRightRadius: typeof rounded === 'number' ? rounded : (_rounded$bottomRight = rounded === null || rounded === void 0 ? void 0 : rounded.bottomRight) !== null && _rounded$bottomRight !== void 0 ? _rounded$bottomRight : 4,
121
+ gap: gap,
122
+ transition: '0.3s all',
123
+ position: tooltip ? 'relative' : 'unset'
124
+ }, style),
125
+ children: tooltip && jsx$1("div", {
126
+ style: {
127
+ position: 'absolute',
128
+ width: '100px',
129
+ height: '200px',
130
+ padding: 2,
131
+ top: tooltip.position === 'top' ? -(height !== null && height !== void 0 ? height : 100) + 10 : 0,
132
+ bottom: tooltip.position === 'bottom' ? -(height !== null && height !== void 0 ? height : 100) + 10 : 0,
133
+ left: tooltip.position === 'left' ? -(width !== null && width !== void 0 ? width : 100) - 10 : 0,
134
+ right: tooltip.position === 'right' ? -(width !== null && width !== void 0 ? width : 100) + 10 : 0,
135
+ backgroundColor: '#d4d4',
136
+ zIndex: 10
137
+ },
138
+ className: "quix_tooltip",
139
+ children: tooltip.component
140
+ })
141
+ });
142
+ }
143
+
144
+ function Buttons(props) {
145
+ var _rounded$topLeft, _rounded$topRight, _rounded$bottomLeft, _rounded$bottomRight;
146
+ var onClick = props.onClick,
147
+ width = props.width,
148
+ height = props.height,
149
+ label = props.label,
150
+ paddingX = props.paddingX,
151
+ paddingY = props.paddingY,
152
+ backgroundColor = props.backgroundColor,
153
+ textColor = props.textColor,
154
+ rounded = props.rounded,
155
+ className = props.className,
156
+ style = props.style;
157
+ return jsx$1("button", {
158
+ className: className,
159
+ style: _objectSpread2({
160
+ width: width ? "".concat(width, "px") : 'auto',
161
+ height: height ? "".concat(height, "px") : 'auto',
162
+ paddingInline: paddingX !== null && paddingX !== void 0 ? paddingX : 4,
163
+ paddingBlock: paddingY !== null && paddingY !== void 0 ? paddingY : 4,
164
+ backgroundColor: backgroundColor || 'transparent',
165
+ color: textColor || 'inherit',
166
+ borderTopLeftRadius: typeof rounded === 'number' ? rounded : (_rounded$topLeft = rounded === null || rounded === void 0 ? void 0 : rounded.topLeft) !== null && _rounded$topLeft !== void 0 ? _rounded$topLeft : 4,
167
+ borderTopRightRadius: typeof rounded === 'number' ? rounded : (_rounded$topRight = rounded === null || rounded === void 0 ? void 0 : rounded.topRight) !== null && _rounded$topRight !== void 0 ? _rounded$topRight : 4,
168
+ borderBottomLeftRadius: typeof rounded === 'number' ? rounded : (_rounded$bottomLeft = rounded === null || rounded === void 0 ? void 0 : rounded.bottomLeft) !== null && _rounded$bottomLeft !== void 0 ? _rounded$bottomLeft : 4,
169
+ borderBottomRightRadius: typeof rounded === 'number' ? rounded : (_rounded$bottomRight = rounded === null || rounded === void 0 ? void 0 : rounded.bottomRight) !== null && _rounded$bottomRight !== void 0 ? _rounded$bottomRight : 4,
170
+ cursor: 'pointer'
171
+ }, style),
172
+ onClick: onClick,
173
+ children: label
174
+ });
175
+ }
176
+
124
177
  /**
125
178
  * react-router v7.12.0
126
179
  *
@@ -576,7 +629,7 @@ function isRouteErrorResponse(error) {
576
629
  function getRoutePattern(matches) {
577
630
  return matches.map((m) => m.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
578
631
  }
579
- var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
632
+ var isBrowser$1 = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
580
633
  function parseToInfo(_to, basename) {
581
634
  let to = _to;
582
635
  if (typeof to !== "string" || !ABSOLUTE_URL_REGEX.test(to)) {
@@ -588,7 +641,7 @@ function parseToInfo(_to, basename) {
588
641
  }
589
642
  let absoluteURL = to;
590
643
  let isExternal = false;
591
- if (isBrowser) {
644
+ if (isBrowser$1) {
592
645
  try {
593
646
  let currentUrl = new URL(window.location.href);
594
647
  let targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to);
@@ -962,7 +1015,7 @@ function RSCErrorHandler({
962
1015
  let existingRedirect = errorRedirectHandledMap.get(error);
963
1016
  if (existingRedirect) throw existingRedirect;
964
1017
  let parsed = parseToInfo(redirect2.location, basename);
965
- if (isBrowser && !errorRedirectHandledMap.get(error)) {
1018
+ if (isBrowser$1 && !errorRedirectHandledMap.get(error)) {
966
1019
  if (parsed.isExternal || redirect2.reloadDocument) {
967
1020
  window.location.href = parsed.absoluteURL || parsed.to;
968
1021
  } else {
@@ -2043,359 +2096,2025 @@ function useViewTransitionState(to, { relative } = {}) {
2043
2096
  return matchPath(path.pathname, nextPath) != null || matchPath(path.pathname, currentPath) != null;
2044
2097
  }
2045
2098
 
2046
- var css_248z = ".quix_side_menu{border-right:1px solid #333;height:88%;.sidemenu_bottom_section{align-items:center;display:flex;height:80%;justify-content:center;position:relative;width:100%;.items{bottom:20px;cursor:pointer;height:auto;position:absolute;width:100%}}}.quix_menu_item{align-items:center;border-radius:4px;display:flex;height:48px;justify-content:space-between;opacity:100%;width:90%}";
2099
+ var css_248z = ".quix_side_menu{border-right:1px solid #333;.sidemenu_bottom_section{align-items:center;display:flex;flex-direction:column;height:80%;justify-content:center;position:relative;width:100%;.items{bottom:20px;cursor:pointer;height:auto;position:absolute;width:100%}}}.quix_menu_item{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:48px;justify-content:space-between;opacity:100%;width:90%}";
2047
2100
  styleInject(css_248z);
2048
2101
 
2049
- function Layout(props) {
2050
- var _header$height, _parentEl$current, _parentEl$current2, _parentEl$current$cli, _parentEl$current3, _sideMenu$width;
2051
- var backgroundColor = props.backgroundColor,
2052
- layoutStyle = props.layoutStyle,
2053
- className = props.className,
2054
- sideMenu = props.sideMenu,
2055
- children = props.children,
2056
- header = props.header;
2057
- var parentEl = useRef(null);
2058
- return jsxs("section", {
2059
- ref: parentEl,
2060
- className: "".concat(className),
2061
- style: _objectSpread2({
2062
- backgroundColor: backgroundColor
2063
- }, layoutStyle),
2064
- children: [header && jsx("section", {
2065
- style: _objectSpread2({
2066
- height: header.height
2067
- }, header.style)
2068
- }), sideMenu && SideMenu({
2069
- sideMenu: sideMenu,
2070
- top: (_header$height = header === null || header === void 0 ? void 0 : header.height) !== null && _header$height !== void 0 ? _header$height : 80
2071
- }), jsx("section", {
2072
- style: {
2073
- position: 'absolute',
2074
- left: sideMenu === null || sideMenu === void 0 ? void 0 : sideMenu.width,
2075
- top: header === null || header === void 0 ? void 0 : header.height,
2076
- padding: 10,
2077
- maxHeight: Number(parentEl === null || parentEl === void 0 || (_parentEl$current = parentEl.current) === null || _parentEl$current === void 0 ? void 0 : _parentEl$current.clientHeight) - (Number(header === null || header === void 0 ? void 0 : header.height) + 20),
2078
- height: Number(parentEl === null || parentEl === void 0 || (_parentEl$current2 = parentEl.current) === null || _parentEl$current2 === void 0 ? void 0 : _parentEl$current2.clientHeight) - (Number(header === null || header === void 0 ? void 0 : header.height) + 20),
2079
- overflow: 'scroll',
2080
- width: ((_parentEl$current$cli = parentEl === null || parentEl === void 0 || (_parentEl$current3 = parentEl.current) === null || _parentEl$current3 === void 0 ? void 0 : _parentEl$current3.clientWidth) !== null && _parentEl$current$cli !== void 0 ? _parentEl$current$cli : 1280) - (Number((_sideMenu$width = sideMenu === null || sideMenu === void 0 ? void 0 : sideMenu.width) !== null && _sideMenu$width !== void 0 ? _sideMenu$width : 270) + 20)
2081
- },
2082
- children: children
2083
- })]
2084
- });
2085
- }
2086
- function SideMenu(props) {
2087
- var _sideMenuStyle$left, _sideMenuStyle$bottom, _props$top;
2088
- var _props$sideMenu = props.sideMenu,
2089
- width = _props$sideMenu.width,
2090
- sideMenuStyle = _props$sideMenu.sideMenuStyle,
2091
- menuItems = _props$sideMenu.menuItems,
2092
- ElementType = _props$sideMenu.ElementType,
2093
- bottomSection = _props$sideMenu.bottomSection;
2094
- var bottomNode = function bottomNode() {
2095
- if (bottomSection) {
2096
- return bottomSection.map(function (item) {
2097
- return MenuItem(item);
2098
- });
2102
+ // ../node_modules/@babel/runtime/helpers/esm/extends.js
2103
+ function _extends() {
2104
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
2105
+ for (var e = 1; e < arguments.length; e++) {
2106
+ var t = arguments[e];
2107
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2099
2108
  }
2100
- };
2101
- return jsxs("aside", {
2102
- className: " quix_side_menu ",
2103
- style: _objectSpread2({
2104
- position: 'absolute',
2105
- left: (_sideMenuStyle$left = sideMenuStyle === null || sideMenuStyle === void 0 ? void 0 : sideMenuStyle.left) !== null && _sideMenuStyle$left !== void 0 ? _sideMenuStyle$left : 0,
2106
- bottom: (_sideMenuStyle$bottom = sideMenuStyle === null || sideMenuStyle === void 0 ? void 0 : sideMenuStyle.bottom) !== null && _sideMenuStyle$bottom !== void 0 ? _sideMenuStyle$bottom : 0,
2107
- width: width,
2108
- // height,
2109
- top: (_props$top = props === null || props === void 0 ? void 0 : props.top) !== null && _props$top !== void 0 ? _props$top : 80
2110
- }, sideMenuStyle),
2111
- children: [menuItems && menuItems.map(function (item) {
2112
- return MenuItem(item, ElementType, item);
2113
- }), jsx("div", {
2114
- className: " sidemenu_bottom_section ",
2115
- children: jsx("div", {
2116
- className: " items ",
2117
- children: bottomNode()
2118
- })
2119
- })]
2120
- });
2109
+ return n;
2110
+ }, _extends.apply(null, arguments);
2121
2111
  }
2122
- function MenuItem(item, ElementType, menuItemsDynamicStyle) {
2123
- var _menuItemsDynamicStyl, _menuItemsDynamicStyl2, _menuItemsDynamicStyl3, _menuItemsDynamicStyl4, _menuItemsDynamicStyl5, _menuItemsDynamicStyl6;
2124
- var _useState = useState(false),
2125
- _useState2 = _slicedToArray(_useState, 2),
2126
- isHover = _useState2[0],
2127
- setIsHover = _useState2[1];
2128
- var color = {
2129
- bg: isHover ? (_menuItemsDynamicStyl = menuItemsDynamicStyle === null || menuItemsDynamicStyle === void 0 || (_menuItemsDynamicStyl2 = menuItemsDynamicStyle.activeColor) === null || _menuItemsDynamicStyl2 === void 0 ? void 0 : _menuItemsDynamicStyl2.background) !== null && _menuItemsDynamicStyl !== void 0 ? _menuItemsDynamicStyl : '#d4d4d4' : (_menuItemsDynamicStyl3 = menuItemsDynamicStyle === null || menuItemsDynamicStyle === void 0 ? void 0 : menuItemsDynamicStyle.backgroundColor) !== null && _menuItemsDynamicStyl3 !== void 0 ? _menuItemsDynamicStyl3 : '#d4d4d480',
2130
- text: isHover ? (_menuItemsDynamicStyl4 = menuItemsDynamicStyle === null || menuItemsDynamicStyle === void 0 || (_menuItemsDynamicStyl5 = menuItemsDynamicStyle.activeColor) === null || _menuItemsDynamicStyl5 === void 0 ? void 0 : _menuItemsDynamicStyl5.text) !== null && _menuItemsDynamicStyl4 !== void 0 ? _menuItemsDynamicStyl4 : "#121212" : (_menuItemsDynamicStyl6 = menuItemsDynamicStyle === null || menuItemsDynamicStyle === void 0 ? void 0 : menuItemsDynamicStyle.textColor) !== null && _menuItemsDynamicStyl6 !== void 0 ? _menuItemsDynamicStyl6 : '#121314 '
2131
- };
2132
- function onHover() {
2133
- if (!isHover) setIsHover(function (prev) {
2134
- return !prev;
2135
- });
2136
- }
2137
- function onLeave() {
2138
- if (isHover) setIsHover(function (prev) {
2139
- return !prev;
2140
- });
2112
+
2113
+ var __create = Object.create;
2114
+ var __defProp = Object.defineProperty;
2115
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2116
+ var __getOwnPropNames = Object.getOwnPropertyNames;
2117
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
2118
+ var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
2119
+ get: (a, b) => (typeof require < "u" ? require : a)[b]
2120
+ }) : x)(function(x) {
2121
+ if (typeof require < "u") return require.apply(this, arguments);
2122
+ throw Error('Dynamic require of "' + x + '" is not supported');
2123
+ });
2124
+ var __commonJS = (cb, mod) => function() {
2125
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
2126
+ };
2127
+ var __copyProps = (to, from, except, desc) => {
2128
+ if (from && typeof from == "object" || typeof from == "function")
2129
+ for (let key of __getOwnPropNames(from))
2130
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2131
+ return to;
2132
+ };
2133
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
2134
+ // If the importer is in node compatibility mode or this is not an ESM
2135
+ // file that has been converted to a CommonJS file using a Babel-
2136
+ // compatible transform (i.e. "__esModule" has not been set), then set
2137
+ // "default" to the CommonJS "module.exports" for node compatibility.
2138
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
2139
+ mod
2140
+ ));
2141
+
2142
+ // src/index.ts
2143
+ var scope = (() => {
2144
+ let win;
2145
+ if (typeof window !== "undefined") {
2146
+ win = window;
2147
+ } else if (typeof globalThis !== "undefined") {
2148
+ win = globalThis;
2149
+ } else if (typeof global !== "undefined") {
2150
+ win = global;
2151
+ } else if (typeof self !== "undefined") {
2152
+ win = self;
2153
+ } else {
2154
+ win = {};
2141
2155
  }
2142
- var navigate = function navigate(route) {
2143
- window.location.replace(route);
2144
- };
2145
- var Element = function Element(_ref) {
2146
- var children = _ref.children;
2147
- return ElementType === 'NavLink' ? jsx(NavLink, {
2148
- style: {
2149
- width: "100%"
2150
- },
2151
- to: item.route,
2152
- children: children
2153
- }, item.label) : ElementType === 'Link' ? jsx(Link, {
2154
- style: {
2155
- width: "100%"
2156
- },
2157
- to: item.route,
2158
- children: children
2159
- }, item.label) : ElementType === 'a' ? jsx("a", {
2160
- style: {
2161
- width: "100%",
2162
- textDecoration: 'none'
2163
- },
2164
- href: item.route,
2165
- children: children
2166
- }, item.label) : jsx("div", {
2167
- style: {
2168
- width: "100%"
2169
- },
2170
- onClick: function onClick() {
2171
- navigate(item.route);
2172
- },
2173
- children: children
2174
- }, item.label);
2175
- };
2176
- return jsx(Element, {
2177
- children: jsx("div", {
2178
- style: {
2179
- padding: 10,
2180
- width: '100%'
2181
- },
2182
- children: jsxs("div", {
2183
- onMouseEnter: onHover,
2184
- onMouseLeave: onLeave,
2185
- className: 'quix_menu_item ',
2186
- style: {
2187
- transition: '0.2s all',
2188
- backgroundColor: color.bg,
2189
- color: color.text
2190
- // border: isHover ? '' : '1px solid #121212 '
2191
- },
2192
- children: [item.icon && item.icon.position === 'left' && item.icon.component, jsx("p", {
2193
- className: " quix_menuItem_label ",
2194
- style: {
2195
- paddingInline: 10,
2196
- paddingBlock: 8,
2197
- color: color.text
2198
- },
2199
- children: item === null || item === void 0 ? void 0 : item.label
2200
- }), item.icon && item.icon.position === 'right' && item.icon.component]
2201
- })
2202
- }, item.label)
2203
- });
2204
- }
2156
+ return win;
2157
+ })();
2205
2158
 
2206
- function FlexView(props) {
2207
- var _rounded$topLeft, _rounded$topRight, _rounded$bottomLeft, _rounded$bottomRight;
2208
- var isScrollable = props.isScrollable,
2209
- direction = props.direction,
2210
- width = props.width,
2211
- height = props.height,
2212
- backgroundColor = props.backgroundColor,
2213
- paddingX = props.paddingX,
2214
- paddingY = props.paddingY,
2215
- textColor = props.textColor,
2216
- className = props.className,
2217
- rounded = props.rounded,
2218
- gap = props.gap,
2219
- style = props.style,
2220
- layout = props.layout,
2221
- onClick = props.onClick,
2222
- onRightClick = props.onRightClick,
2223
- tooltip = props.tooltip;
2224
- return jsxs("div", {
2225
- onContextMenu: onRightClick,
2226
- onClick: onClick,
2227
- className: "".concat(className, " ").concat(layout, " quix_view "),
2228
- style: _objectSpread2({
2229
- overflowY: isScrollable ? 'scroll' : 'hidden',
2230
- flexDirection: direction || 'row',
2231
- width: width ? width : 'auto',
2232
- height: height ? height : 'auto',
2233
- backgroundColor: backgroundColor || 'transparent',
2234
- paddingInline: paddingX ? "".concat(paddingX, "px") : undefined,
2235
- paddingBlock: paddingY ? "".concat(paddingY, "px") : undefined,
2236
- color: textColor || 'inherit',
2237
- borderTopLeftRadius: typeof rounded === 'number' ? rounded : (_rounded$topLeft = rounded === null || rounded === void 0 ? void 0 : rounded.topLeft) !== null && _rounded$topLeft !== void 0 ? _rounded$topLeft : 4,
2238
- borderTopRightRadius: typeof rounded === 'number' ? rounded : (_rounded$topRight = rounded === null || rounded === void 0 ? void 0 : rounded.topRight) !== null && _rounded$topRight !== void 0 ? _rounded$topRight : 4,
2239
- borderBottomLeftRadius: typeof rounded === 'number' ? rounded : (_rounded$bottomLeft = rounded === null || rounded === void 0 ? void 0 : rounded.bottomLeft) !== null && _rounded$bottomLeft !== void 0 ? _rounded$bottomLeft : 4,
2240
- borderBottomRightRadius: typeof rounded === 'number' ? rounded : (_rounded$bottomRight = rounded === null || rounded === void 0 ? void 0 : rounded.bottomRight) !== null && _rounded$bottomRight !== void 0 ? _rounded$bottomRight : 4,
2241
- gap: gap,
2242
- transition: '0.3s all',
2243
- position: tooltip ? 'relative' : 'unset'
2244
- }, style),
2245
- children: [tooltip && jsx("div", {
2246
- style: {
2247
- position: 'absolute',
2248
- width: '100px',
2249
- height: '200px',
2250
- padding: 2,
2251
- top: tooltip.position === 'top' ? -(height !== null && height !== void 0 ? height : 100) + 10 : 0,
2252
- bottom: tooltip.position === 'bottom' ? -(height !== null && height !== void 0 ? height : 100) + 10 : 0,
2253
- left: tooltip.position === 'left' ? -(width !== null && width !== void 0 ? width : 100) - 10 : 0,
2254
- right: tooltip.position === 'right' ? -(width !== null && width !== void 0 ? width : 100) + 10 : 0,
2255
- backgroundColor: '#d4d4',
2256
- zIndex: 10
2257
- },
2258
- className: "quix_tooltip",
2259
- children: tooltip.component
2260
- }), jsx(Layout, {
2261
- layoutStyle: {
2262
- width: '100%',
2263
- height: '100%',
2264
- position: 'relative',
2265
- display: 'flex',
2266
- justifyContent: 'flex-start',
2267
- alignItems: 'flex-start',
2268
- flexDirection: 'column',
2269
- borderRadius: 10
2270
- },
2271
- backgroundColor: "#748873",
2272
- header: {
2273
- height: 80,
2274
- style: {
2275
- width: '100%'
2159
+ var { LOGLEVEL } = scope;
2160
+
2161
+ // ../node_modules/memoizerific/memoizerific.js
2162
+ var require_memoizerific = __commonJS({
2163
+ "../node_modules/memoizerific/memoizerific.js"(exports$1, module) {
2164
+ (function(f) {
2165
+ if (typeof exports$1 == "object" && typeof module < "u")
2166
+ module.exports = f();
2167
+ else if (typeof define == "function" && define.amd)
2168
+ define([], f);
2169
+ else {
2170
+ var g;
2171
+ typeof window < "u" ? g = window : typeof global < "u" ? g = global : typeof self < "u" ? g = self : g = this, g.memoizerific = f();
2172
+ }
2173
+ })(function() {
2174
+ return (function e(t, n, r) {
2175
+ function s(o2, u) {
2176
+ if (!n[o2]) {
2177
+ if (!t[o2]) {
2178
+ var a = typeof __require == "function" && __require;
2179
+ if (!u && a) return a(o2, true);
2180
+ if (i) return i(o2, true);
2181
+ var f = new Error("Cannot find module '" + o2 + "'");
2182
+ throw f.code = "MODULE_NOT_FOUND", f;
2183
+ }
2184
+ var l = n[o2] = { exports: {} };
2185
+ t[o2][0].call(l.exports, function(e2) {
2186
+ var n2 = t[o2][1][e2];
2187
+ return s(n2 || e2);
2188
+ }, l, l.exports, e, t, n, r);
2189
+ }
2190
+ return n[o2].exports;
2276
2191
  }
2277
- },
2278
- sideMenu: {
2279
- menuItems: [{
2280
- label: 'Home',
2281
- route: '/',
2282
- icon: {
2283
- position: 'right',
2284
- component: jsx("div", {
2285
- style: {
2286
- width: 24,
2287
- height: 24,
2288
- border: '1px solid #333333',
2289
- marginInline: 10,
2290
- borderRadius: 4
2192
+ for (var i = typeof __require == "function" && __require, o = 0; o < r.length; o++) s(r[o]);
2193
+ return s;
2194
+ })({ 1: [function(_dereq_, module3, exports3) {
2195
+ module3.exports = function(forceSimilar) {
2196
+ if (typeof Map != "function" || forceSimilar) {
2197
+ var Similar = _dereq_("./similar");
2198
+ return new Similar();
2199
+ } else
2200
+ return /* @__PURE__ */ new Map();
2201
+ };
2202
+ }, { "./similar": 2 }], 2: [function(_dereq_, module3, exports3) {
2203
+ function Similar() {
2204
+ return this.list = [], this.lastItem = void 0, this.size = 0, this;
2205
+ }
2206
+ Similar.prototype.get = function(key) {
2207
+ var index;
2208
+ if (this.lastItem && this.isEqual(this.lastItem.key, key))
2209
+ return this.lastItem.val;
2210
+ if (index = this.indexOf(key), index >= 0)
2211
+ return this.lastItem = this.list[index], this.list[index].val;
2212
+ }, Similar.prototype.set = function(key, val) {
2213
+ var index;
2214
+ return this.lastItem && this.isEqual(this.lastItem.key, key) ? (this.lastItem.val = val, this) : (index = this.indexOf(key), index >= 0 ? (this.lastItem = this.list[index], this.list[index].val = val, this) : (this.lastItem = { key, val }, this.list.push(this.lastItem), this.size++, this));
2215
+ }, Similar.prototype.delete = function(key) {
2216
+ var index;
2217
+ if (this.lastItem && this.isEqual(this.lastItem.key, key) && (this.lastItem = void 0), index = this.indexOf(key), index >= 0)
2218
+ return this.size--, this.list.splice(index, 1)[0];
2219
+ }, Similar.prototype.has = function(key) {
2220
+ var index;
2221
+ return this.lastItem && this.isEqual(this.lastItem.key, key) ? true : (index = this.indexOf(key), index >= 0 ? (this.lastItem = this.list[index], true) : false);
2222
+ }, Similar.prototype.forEach = function(callback, thisArg) {
2223
+ var i;
2224
+ for (i = 0; i < this.size; i++)
2225
+ callback.call(thisArg || this, this.list[i].val, this.list[i].key, this);
2226
+ }, Similar.prototype.indexOf = function(key) {
2227
+ var i;
2228
+ for (i = 0; i < this.size; i++)
2229
+ if (this.isEqual(this.list[i].key, key))
2230
+ return i;
2231
+ return -1;
2232
+ }, Similar.prototype.isEqual = function(val1, val2) {
2233
+ return val1 === val2 || val1 !== val1 && val2 !== val2;
2234
+ }, module3.exports = Similar;
2235
+ }, {}], 3: [function(_dereq_, module3, exports3) {
2236
+ var MapOrSimilar = _dereq_("map-or-similar");
2237
+ module3.exports = function(limit) {
2238
+ var cache = new MapOrSimilar(false), lru = [];
2239
+ return function(fn) {
2240
+ var memoizerific = function() {
2241
+ var currentCache = cache, newMap, fnResult, argsLengthMinusOne = arguments.length - 1, lruPath = Array(argsLengthMinusOne + 1), isMemoized = true, i;
2242
+ if ((memoizerific.numArgs || memoizerific.numArgs === 0) && memoizerific.numArgs !== argsLengthMinusOne + 1)
2243
+ throw new Error("Memoizerific functions should always be called with the same number of arguments");
2244
+ for (i = 0; i < argsLengthMinusOne; i++) {
2245
+ if (lruPath[i] = {
2246
+ cacheItem: currentCache,
2247
+ arg: arguments[i]
2248
+ }, currentCache.has(arguments[i])) {
2249
+ currentCache = currentCache.get(arguments[i]);
2250
+ continue;
2251
+ }
2252
+ isMemoized = false, newMap = new MapOrSimilar(false), currentCache.set(arguments[i], newMap), currentCache = newMap;
2291
2253
  }
2292
- })
2293
- }
2294
- }, {
2295
- label: 'Setting',
2296
- route: '/setting',
2297
- icon: {
2298
- position: 'right',
2299
- component: jsx("div", {
2300
- style: {
2301
- width: 24,
2302
- height: 24,
2303
- border: '1px solid #333333',
2304
- marginInline: 10,
2305
- borderRadius: 4
2254
+ return isMemoized && (currentCache.has(arguments[argsLengthMinusOne]) ? fnResult = currentCache.get(arguments[argsLengthMinusOne]) : isMemoized = false), isMemoized || (fnResult = fn.apply(null, arguments), currentCache.set(arguments[argsLengthMinusOne], fnResult)), limit > 0 && (lruPath[argsLengthMinusOne] = {
2255
+ cacheItem: currentCache,
2256
+ arg: arguments[argsLengthMinusOne]
2257
+ }, isMemoized ? moveToMostRecentLru(lru, lruPath) : lru.push(lruPath), lru.length > limit && removeCachedResult(lru.shift())), memoizerific.wasMemoized = isMemoized, memoizerific.numArgs = argsLengthMinusOne + 1, fnResult;
2258
+ };
2259
+ return memoizerific.limit = limit, memoizerific.wasMemoized = false, memoizerific.cache = cache, memoizerific.lru = lru, memoizerific;
2260
+ };
2261
+ };
2262
+ function moveToMostRecentLru(lru, lruPath) {
2263
+ var lruLen = lru.length, lruPathLen = lruPath.length, isMatch, i, ii;
2264
+ for (i = 0; i < lruLen; i++) {
2265
+ for (isMatch = true, ii = 0; ii < lruPathLen; ii++)
2266
+ if (!isEqual(lru[i][ii].arg, lruPath[ii].arg)) {
2267
+ isMatch = false;
2268
+ break;
2306
2269
  }
2307
- })
2270
+ if (isMatch)
2271
+ break;
2308
2272
  }
2309
- }],
2310
- bottomSection: [{
2311
- label: 'Logout',
2312
- route: '#logout',
2313
- backgroundColor: '#E5E0D880',
2314
- textColor: '#121212',
2315
- activeColor: {
2316
- background: '#E5E0D8',
2317
- text: '#121212'
2318
- },
2319
- icon: {
2320
- position: 'right',
2321
- component: jsx("div", {
2322
- style: {
2323
- width: 24,
2324
- height: 24,
2325
- border: '1px solid #333333',
2326
- marginInline: 10,
2327
- borderRadius: 4
2273
+ lru.push(lru.splice(i, 1)[0]);
2274
+ }
2275
+ function removeCachedResult(removedLru) {
2276
+ var removedLruLen = removedLru.length, currentLru = removedLru[removedLruLen - 1], tmp, i;
2277
+ for (currentLru.cacheItem.delete(currentLru.arg), i = removedLruLen - 2; i >= 0 && (currentLru = removedLru[i], tmp = currentLru.cacheItem.get(currentLru.arg), !tmp || !tmp.size); i--)
2278
+ currentLru.cacheItem.delete(currentLru.arg);
2279
+ }
2280
+ function isEqual(val1, val2) {
2281
+ return val1 === val2 || val1 !== val1 && val2 !== val2;
2282
+ }
2283
+ }, { "map-or-similar": 1 }] }, {}, [3])(3);
2284
+ });
2285
+ }
2286
+ });
2287
+
2288
+ // ../node_modules/react-is/cjs/react-is.production.min.js
2289
+ var require_react_is_production_min = __commonJS({
2290
+ "../node_modules/react-is/cjs/react-is.production.min.js"(exports$1) {
2291
+ var b = typeof Symbol == "function" && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
2292
+ function z(a) {
2293
+ if (typeof a == "object" && a !== null) {
2294
+ var u = a.$$typeof;
2295
+ switch (u) {
2296
+ case c:
2297
+ switch (a = a.type, a) {
2298
+ case l:
2299
+ case m:
2300
+ case e:
2301
+ case g:
2302
+ case f:
2303
+ case p:
2304
+ return a;
2305
+ default:
2306
+ switch (a = a && a.$$typeof, a) {
2307
+ case k:
2308
+ case n:
2309
+ case t:
2310
+ case r:
2311
+ case h:
2312
+ return a;
2313
+ default:
2314
+ return u;
2315
+ }
2316
+ }
2317
+ case d:
2318
+ return u;
2319
+ }
2320
+ }
2321
+ }
2322
+ function A(a) {
2323
+ return z(a) === m;
2324
+ }
2325
+ exports$1.AsyncMode = l;
2326
+ exports$1.ConcurrentMode = m;
2327
+ exports$1.ContextConsumer = k;
2328
+ exports$1.ContextProvider = h;
2329
+ exports$1.Element = c;
2330
+ exports$1.ForwardRef = n;
2331
+ exports$1.Fragment = e;
2332
+ exports$1.Lazy = t;
2333
+ exports$1.Memo = r;
2334
+ exports$1.Portal = d;
2335
+ exports$1.Profiler = g;
2336
+ exports$1.StrictMode = f;
2337
+ exports$1.Suspense = p;
2338
+ exports$1.isAsyncMode = function(a) {
2339
+ return A(a) || z(a) === l;
2340
+ };
2341
+ exports$1.isConcurrentMode = A;
2342
+ exports$1.isContextConsumer = function(a) {
2343
+ return z(a) === k;
2344
+ };
2345
+ exports$1.isContextProvider = function(a) {
2346
+ return z(a) === h;
2347
+ };
2348
+ exports$1.isElement = function(a) {
2349
+ return typeof a == "object" && a !== null && a.$$typeof === c;
2350
+ };
2351
+ exports$1.isForwardRef = function(a) {
2352
+ return z(a) === n;
2353
+ };
2354
+ exports$1.isFragment = function(a) {
2355
+ return z(a) === e;
2356
+ };
2357
+ exports$1.isLazy = function(a) {
2358
+ return z(a) === t;
2359
+ };
2360
+ exports$1.isMemo = function(a) {
2361
+ return z(a) === r;
2362
+ };
2363
+ exports$1.isPortal = function(a) {
2364
+ return z(a) === d;
2365
+ };
2366
+ exports$1.isProfiler = function(a) {
2367
+ return z(a) === g;
2368
+ };
2369
+ exports$1.isStrictMode = function(a) {
2370
+ return z(a) === f;
2371
+ };
2372
+ exports$1.isSuspense = function(a) {
2373
+ return z(a) === p;
2374
+ };
2375
+ exports$1.isValidElementType = function(a) {
2376
+ return typeof a == "string" || typeof a == "function" || a === e || a === m || a === g || a === f || a === p || a === q || typeof a == "object" && a !== null && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
2377
+ };
2378
+ exports$1.typeOf = z;
2379
+ }
2380
+ });
2381
+
2382
+ // ../node_modules/react-is/cjs/react-is.development.js
2383
+ var require_react_is_development = __commonJS({
2384
+ "../node_modules/react-is/cjs/react-is.development.js"(exports$1) {
2385
+ process.env.NODE_ENV !== "production" && (function() {
2386
+ var hasSymbol = typeof Symbol == "function" && Symbol.for, REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103, REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106, REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107, REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108, REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114, REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109, REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110, REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111, REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111, REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112, REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113, REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120, REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115, REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116, REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121, REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117, REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118, REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
2387
+ function isValidElementType(type) {
2388
+ return typeof type == "string" || typeof type == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2389
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
2390
+ }
2391
+ function typeOf(object) {
2392
+ if (typeof object == "object" && object !== null) {
2393
+ var $$typeof = object.$$typeof;
2394
+ switch ($$typeof) {
2395
+ case REACT_ELEMENT_TYPE:
2396
+ var type = object.type;
2397
+ switch (type) {
2398
+ case REACT_ASYNC_MODE_TYPE:
2399
+ case REACT_CONCURRENT_MODE_TYPE:
2400
+ case REACT_FRAGMENT_TYPE:
2401
+ case REACT_PROFILER_TYPE:
2402
+ case REACT_STRICT_MODE_TYPE:
2403
+ case REACT_SUSPENSE_TYPE:
2404
+ return type;
2405
+ default:
2406
+ var $$typeofType = type && type.$$typeof;
2407
+ switch ($$typeofType) {
2408
+ case REACT_CONTEXT_TYPE:
2409
+ case REACT_FORWARD_REF_TYPE:
2410
+ case REACT_LAZY_TYPE:
2411
+ case REACT_MEMO_TYPE:
2412
+ case REACT_PROVIDER_TYPE:
2413
+ return $$typeofType;
2414
+ default:
2415
+ return $$typeof;
2416
+ }
2328
2417
  }
2329
- })
2330
- }
2331
- }],
2332
- width: 270,
2333
- height: '90%',
2334
- sideMenuStyle: {
2335
- display: 'flex',
2336
- justifyContent: 'flex-start',
2337
- alignItems: 'flex-start',
2338
- borderRight: '1px solid #121212',
2339
- flexDirection: 'column'
2340
- },
2341
- ElementStyle: {
2342
- height: 48,
2343
- width: '100%',
2344
- borderRadius: 8,
2345
- display: 'flex',
2346
- justifyContent: 'start',
2347
- alignItems: 'center',
2348
- gap: 8,
2349
- cursor: 'pointer'
2350
- },
2351
- ElementType: 'div',
2352
- menuItemsDynamicStyle: {
2353
- backgroundColor: '#d4d4d480',
2354
- textColor: '#121212',
2355
- activeColor: {
2356
- background: '#d4d4d4',
2357
- text: '#121212'
2418
+ case REACT_PORTAL_TYPE:
2419
+ return $$typeof;
2358
2420
  }
2359
2421
  }
2360
- },
2361
- children: jsx("div", {
2362
- children: "Content"
2363
- })
2364
- })]
2365
- });
2366
- }
2422
+ }
2423
+ var AsyncMode = REACT_ASYNC_MODE_TYPE, ConcurrentMode = REACT_CONCURRENT_MODE_TYPE, ContextConsumer = REACT_CONTEXT_TYPE, ContextProvider = REACT_PROVIDER_TYPE, Element = REACT_ELEMENT_TYPE, ForwardRef = REACT_FORWARD_REF_TYPE, Fragment4 = REACT_FRAGMENT_TYPE, Lazy = REACT_LAZY_TYPE, Memo = REACT_MEMO_TYPE, Portal = REACT_PORTAL_TYPE, Profiler = REACT_PROFILER_TYPE, StrictMode = REACT_STRICT_MODE_TYPE, Suspense = REACT_SUSPENSE_TYPE, hasWarnedAboutDeprecatedIsAsyncMode = false;
2424
+ function isAsyncMode(object) {
2425
+ return hasWarnedAboutDeprecatedIsAsyncMode || (hasWarnedAboutDeprecatedIsAsyncMode = true, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
2426
+ }
2427
+ function isConcurrentMode(object) {
2428
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
2429
+ }
2430
+ function isContextConsumer(object) {
2431
+ return typeOf(object) === REACT_CONTEXT_TYPE;
2432
+ }
2433
+ function isContextProvider(object) {
2434
+ return typeOf(object) === REACT_PROVIDER_TYPE;
2435
+ }
2436
+ function isElement(object) {
2437
+ return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2438
+ }
2439
+ function isForwardRef(object) {
2440
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
2441
+ }
2442
+ function isFragment(object) {
2443
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
2444
+ }
2445
+ function isLazy(object) {
2446
+ return typeOf(object) === REACT_LAZY_TYPE;
2447
+ }
2448
+ function isMemo(object) {
2449
+ return typeOf(object) === REACT_MEMO_TYPE;
2450
+ }
2451
+ function isPortal(object) {
2452
+ return typeOf(object) === REACT_PORTAL_TYPE;
2453
+ }
2454
+ function isProfiler(object) {
2455
+ return typeOf(object) === REACT_PROFILER_TYPE;
2456
+ }
2457
+ function isStrictMode(object) {
2458
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
2459
+ }
2460
+ function isSuspense(object) {
2461
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
2462
+ }
2463
+ exports$1.AsyncMode = AsyncMode, exports$1.ConcurrentMode = ConcurrentMode, exports$1.ContextConsumer = ContextConsumer, exports$1.ContextProvider = ContextProvider, exports$1.Element = Element, exports$1.ForwardRef = ForwardRef, exports$1.Fragment = Fragment4, exports$1.Lazy = Lazy, exports$1.Memo = Memo, exports$1.Portal = Portal, exports$1.Profiler = Profiler, exports$1.StrictMode = StrictMode, exports$1.Suspense = Suspense, exports$1.isAsyncMode = isAsyncMode, exports$1.isConcurrentMode = isConcurrentMode, exports$1.isContextConsumer = isContextConsumer, exports$1.isContextProvider = isContextProvider, exports$1.isElement = isElement, exports$1.isForwardRef = isForwardRef, exports$1.isFragment = isFragment, exports$1.isLazy = isLazy, exports$1.isMemo = isMemo, exports$1.isPortal = isPortal, exports$1.isProfiler = isProfiler, exports$1.isStrictMode = isStrictMode, exports$1.isSuspense = isSuspense, exports$1.isValidElementType = isValidElementType, exports$1.typeOf = typeOf;
2464
+ })();
2465
+ }
2466
+ });
2367
2467
 
2368
- function Buttons(props) {
2369
- var _rounded$topLeft, _rounded$topRight, _rounded$bottomLeft, _rounded$bottomRight;
2370
- var onClick = props.onClick,
2371
- width = props.width,
2372
- height = props.height,
2373
- label = props.label,
2374
- paddingX = props.paddingX,
2375
- paddingY = props.paddingY,
2376
- backgroundColor = props.backgroundColor,
2377
- textColor = props.textColor,
2378
- rounded = props.rounded,
2468
+ // ../node_modules/react-is/index.js
2469
+ var require_react_is = __commonJS({
2470
+ "../node_modules/react-is/index.js"(exports$1, module) {
2471
+ process.env.NODE_ENV === "production" ? module.exports = require_react_is_production_min() : module.exports = require_react_is_development();
2472
+ }
2473
+ });
2474
+
2475
+ // ../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
2476
+ var require_hoist_non_react_statics_cjs = __commonJS({
2477
+ "../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports$1, module) {
2478
+ var reactIs = require_react_is(), REACT_STATICS = {
2479
+ childContextTypes: true,
2480
+ contextType: true,
2481
+ contextTypes: true,
2482
+ defaultProps: true,
2483
+ displayName: true,
2484
+ getDefaultProps: true,
2485
+ getDerivedStateFromError: true,
2486
+ getDerivedStateFromProps: true,
2487
+ mixins: true,
2488
+ propTypes: true,
2489
+ type: true
2490
+ }, KNOWN_STATICS = {
2491
+ name: true,
2492
+ length: true,
2493
+ prototype: true,
2494
+ caller: true,
2495
+ callee: true,
2496
+ arguments: true,
2497
+ arity: true
2498
+ }, FORWARD_REF_STATICS = {
2499
+ $$typeof: true,
2500
+ render: true,
2501
+ defaultProps: true,
2502
+ displayName: true,
2503
+ propTypes: true
2504
+ }, MEMO_STATICS = {
2505
+ $$typeof: true,
2506
+ compare: true,
2507
+ defaultProps: true,
2508
+ displayName: true,
2509
+ propTypes: true,
2510
+ type: true
2511
+ }, TYPE_STATICS = {};
2512
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
2513
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
2514
+ function getStatics(component) {
2515
+ return reactIs.isMemo(component) ? MEMO_STATICS : TYPE_STATICS[component.$$typeof] || REACT_STATICS;
2516
+ }
2517
+ var defineProperty = Object.defineProperty, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getPrototypeOf = Object.getPrototypeOf, objectPrototype = Object.prototype;
2518
+ function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) {
2519
+ if (typeof sourceComponent != "string") {
2520
+ if (objectPrototype) {
2521
+ var inheritedComponent = getPrototypeOf(sourceComponent);
2522
+ inheritedComponent && inheritedComponent !== objectPrototype && hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
2523
+ }
2524
+ var keys = getOwnPropertyNames(sourceComponent);
2525
+ getOwnPropertySymbols && (keys = keys.concat(getOwnPropertySymbols(sourceComponent)));
2526
+ for (var targetStatics = getStatics(targetComponent), sourceStatics = getStatics(sourceComponent), i = 0; i < keys.length; ++i) {
2527
+ var key = keys[i];
2528
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
2529
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
2530
+ try {
2531
+ defineProperty(targetComponent, key, descriptor);
2532
+ } catch {
2533
+ }
2534
+ }
2535
+ }
2536
+ }
2537
+ return targetComponent;
2538
+ }
2539
+ module.exports = hoistNonReactStatics2;
2540
+ }
2541
+ });
2542
+ function sheetForTag(tag) {
2543
+ if (tag.sheet)
2544
+ return tag.sheet;
2545
+ for (var i = 0; i < document.styleSheets.length; i++)
2546
+ if (document.styleSheets[i].ownerNode === tag)
2547
+ return document.styleSheets[i];
2548
+ }
2549
+ function createStyleElement(options) {
2550
+ var tag = document.createElement("style");
2551
+ return tag.setAttribute("data-emotion", options.key), options.nonce !== void 0 && tag.setAttribute("nonce", options.nonce), tag.appendChild(document.createTextNode("")), tag.setAttribute("data-s", ""), tag;
2552
+ }
2553
+ var StyleSheet = (function() {
2554
+ function StyleSheet2(options) {
2555
+ var _this = this;
2556
+ this._insertTag = function(tag) {
2557
+ var before;
2558
+ _this.tags.length === 0 ? _this.insertionPoint ? before = _this.insertionPoint.nextSibling : _this.prepend ? before = _this.container.firstChild : before = _this.before : before = _this.tags[_this.tags.length - 1].nextSibling, _this.container.insertBefore(tag, before), _this.tags.push(tag);
2559
+ }, this.isSpeedy = options.speedy === void 0 ? true : options.speedy, this.tags = [], this.ctr = 0, this.nonce = options.nonce, this.key = options.key, this.container = options.container, this.prepend = options.prepend, this.insertionPoint = options.insertionPoint, this.before = null;
2560
+ }
2561
+ var _proto = StyleSheet2.prototype;
2562
+ return _proto.hydrate = function(nodes) {
2563
+ nodes.forEach(this._insertTag);
2564
+ }, _proto.insert = function(rule) {
2565
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(createStyleElement(this));
2566
+ var tag = this.tags[this.tags.length - 1];
2567
+ if (this.isSpeedy) {
2568
+ var sheet = sheetForTag(tag);
2569
+ try {
2570
+ sheet.insertRule(rule, sheet.cssRules.length);
2571
+ } catch {
2572
+ }
2573
+ } else
2574
+ tag.appendChild(document.createTextNode(rule));
2575
+ this.ctr++;
2576
+ }, _proto.flush = function() {
2577
+ this.tags.forEach(function(tag) {
2578
+ var _tag$parentNode;
2579
+ return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
2580
+ }), this.tags = [], this.ctr = 0;
2581
+ }, StyleSheet2;
2582
+ })();
2583
+
2584
+ // ../node_modules/stylis/src/Enum.js
2585
+ var MS = "-ms-", MOZ = "-moz-", WEBKIT = "-webkit-", COMMENT = "comm", RULESET = "rule", DECLARATION = "decl";
2586
+ var IMPORT = "@import";
2587
+ var KEYFRAMES = "@keyframes";
2588
+ var LAYER = "@layer";
2589
+
2590
+ // ../node_modules/stylis/src/Utility.js
2591
+ var abs = Math.abs, from = String.fromCharCode, assign = Object.assign;
2592
+ function hash(value, length2) {
2593
+ return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
2594
+ }
2595
+ function trim(value) {
2596
+ return value.trim();
2597
+ }
2598
+ function match(value, pattern) {
2599
+ return (value = pattern.exec(value)) ? value[0] : value;
2600
+ }
2601
+ function replace(value, pattern, replacement) {
2602
+ return value.replace(pattern, replacement);
2603
+ }
2604
+ function indexof(value, search) {
2605
+ return value.indexOf(search);
2606
+ }
2607
+ function charat(value, index) {
2608
+ return value.charCodeAt(index) | 0;
2609
+ }
2610
+ function substr(value, begin, end) {
2611
+ return value.slice(begin, end);
2612
+ }
2613
+ function strlen(value) {
2614
+ return value.length;
2615
+ }
2616
+ function sizeof(value) {
2617
+ return value.length;
2618
+ }
2619
+ function append(value, array) {
2620
+ return array.push(value), value;
2621
+ }
2622
+ function combine(array, callback) {
2623
+ return array.map(callback).join("");
2624
+ }
2625
+
2626
+ // ../node_modules/stylis/src/Tokenizer.js
2627
+ var line = 1, column = 1, length = 0, position = 0, character = 0, characters = "";
2628
+ function node(value, root, parent, type, props, children, length2) {
2629
+ return { value, root, parent, type, props, children, line, column, length: length2, return: "" };
2630
+ }
2631
+ function copy(root, props) {
2632
+ return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
2633
+ }
2634
+ function char() {
2635
+ return character;
2636
+ }
2637
+ function prev() {
2638
+ return character = position > 0 ? charat(characters, --position) : 0, column--, character === 10 && (column = 1, line--), character;
2639
+ }
2640
+ function next() {
2641
+ return character = position < length ? charat(characters, position++) : 0, column++, character === 10 && (column = 1, line++), character;
2642
+ }
2643
+ function peek() {
2644
+ return charat(characters, position);
2645
+ }
2646
+ function caret() {
2647
+ return position;
2648
+ }
2649
+ function slice(begin, end) {
2650
+ return substr(characters, begin, end);
2651
+ }
2652
+ function token(type) {
2653
+ switch (type) {
2654
+ // \0 \t \n \r \s whitespace token
2655
+ case 0:
2656
+ case 9:
2657
+ case 10:
2658
+ case 13:
2659
+ case 32:
2660
+ return 5;
2661
+ // ! + , / > @ ~ isolate token
2662
+ case 33:
2663
+ case 43:
2664
+ case 44:
2665
+ case 47:
2666
+ case 62:
2667
+ case 64:
2668
+ case 126:
2669
+ // ; { } breakpoint token
2670
+ case 59:
2671
+ case 123:
2672
+ case 125:
2673
+ return 4;
2674
+ // : accompanied token
2675
+ case 58:
2676
+ return 3;
2677
+ // " ' ( [ opening delimit token
2678
+ case 34:
2679
+ case 39:
2680
+ case 40:
2681
+ case 91:
2682
+ return 2;
2683
+ // ) ] closing delimit token
2684
+ case 41:
2685
+ case 93:
2686
+ return 1;
2687
+ }
2688
+ return 0;
2689
+ }
2690
+ function alloc(value) {
2691
+ return line = column = 1, length = strlen(characters = value), position = 0, [];
2692
+ }
2693
+ function dealloc(value) {
2694
+ return characters = "", value;
2695
+ }
2696
+ function delimit(type) {
2697
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
2698
+ }
2699
+ function whitespace(type) {
2700
+ for (; (character = peek()) && character < 33; )
2701
+ next();
2702
+ return token(type) > 2 || token(character) > 3 ? "" : " ";
2703
+ }
2704
+ function escaping(index, count) {
2705
+ for (; --count && next() && !(character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97); )
2706
+ ;
2707
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
2708
+ }
2709
+ function delimiter(type) {
2710
+ for (; next(); )
2711
+ switch (character) {
2712
+ // ] ) " '
2713
+ case type:
2714
+ return position;
2715
+ // " '
2716
+ case 34:
2717
+ case 39:
2718
+ type !== 34 && type !== 39 && delimiter(character);
2719
+ break;
2720
+ // (
2721
+ case 40:
2722
+ type === 41 && delimiter(type);
2723
+ break;
2724
+ // \
2725
+ case 92:
2726
+ next();
2727
+ break;
2728
+ }
2729
+ return position;
2730
+ }
2731
+ function commenter(type, index) {
2732
+ for (; next() && type + character !== 57; )
2733
+ if (type + character === 84 && peek() === 47)
2734
+ break;
2735
+ return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
2736
+ }
2737
+ function identifier(index) {
2738
+ for (; !token(peek()); )
2739
+ next();
2740
+ return slice(index, position);
2741
+ }
2742
+
2743
+ // ../node_modules/stylis/src/Parser.js
2744
+ function compile(value) {
2745
+ return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
2746
+ }
2747
+ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
2748
+ for (var index = 0, offset = 0, length2 = pseudo, atrule = 0, property = 0, previous = 0, variable = 1, scanning = 1, ampersand = 1, character2 = 0, type = "", props = rules, children = rulesets, reference = rule, characters2 = type; scanning; )
2749
+ switch (previous = character2, character2 = next()) {
2750
+ // (
2751
+ case 40:
2752
+ if (previous != 108 && charat(characters2, length2 - 1) == 58) {
2753
+ indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1 && (ampersand = -1);
2754
+ break;
2755
+ }
2756
+ // " ' [
2757
+ case 34:
2758
+ case 39:
2759
+ case 91:
2760
+ characters2 += delimit(character2);
2761
+ break;
2762
+ // \t \n \r \s
2763
+ case 9:
2764
+ case 10:
2765
+ case 13:
2766
+ case 32:
2767
+ characters2 += whitespace(previous);
2768
+ break;
2769
+ // \
2770
+ case 92:
2771
+ characters2 += escaping(caret() - 1, 7);
2772
+ continue;
2773
+ // /
2774
+ case 47:
2775
+ switch (peek()) {
2776
+ case 42:
2777
+ case 47:
2778
+ append(comment(commenter(next(), caret()), root, parent), declarations);
2779
+ break;
2780
+ default:
2781
+ characters2 += "/";
2782
+ }
2783
+ break;
2784
+ // {
2785
+ case 123 * variable:
2786
+ points[index++] = strlen(characters2) * ampersand;
2787
+ // } ; \0
2788
+ case 125 * variable:
2789
+ case 59:
2790
+ case 0:
2791
+ switch (character2) {
2792
+ // \0 }
2793
+ case 0:
2794
+ case 125:
2795
+ scanning = 0;
2796
+ // ;
2797
+ case 59 + offset:
2798
+ ampersand == -1 && (characters2 = replace(characters2, /\f/g, "")), property > 0 && strlen(characters2) - length2 && append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
2799
+ break;
2800
+ // @ ;
2801
+ case 59:
2802
+ characters2 += ";";
2803
+ // { rule/at-rule
2804
+ default:
2805
+ if (append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets), character2 === 123)
2806
+ if (offset === 0)
2807
+ parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
2808
+ else
2809
+ switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
2810
+ // d l m s
2811
+ case 100:
2812
+ case 108:
2813
+ case 109:
2814
+ case 115:
2815
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
2816
+ break;
2817
+ default:
2818
+ parse(characters2, reference, reference, reference, [""], children, 0, points, children);
2819
+ }
2820
+ }
2821
+ index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
2822
+ break;
2823
+ // :
2824
+ case 58:
2825
+ length2 = 1 + strlen(characters2), property = previous;
2826
+ default:
2827
+ if (variable < 1) {
2828
+ if (character2 == 123)
2829
+ --variable;
2830
+ else if (character2 == 125 && variable++ == 0 && prev() == 125)
2831
+ continue;
2832
+ }
2833
+ switch (characters2 += from(character2), character2 * variable) {
2834
+ // &
2835
+ case 38:
2836
+ ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
2837
+ break;
2838
+ // ,
2839
+ case 44:
2840
+ points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
2841
+ break;
2842
+ // @
2843
+ case 64:
2844
+ peek() === 45 && (characters2 += delimit(next())), atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
2845
+ break;
2846
+ // -
2847
+ case 45:
2848
+ previous === 45 && strlen(characters2) == 2 && (variable = 0);
2849
+ }
2850
+ }
2851
+ return rulesets;
2852
+ }
2853
+ function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2) {
2854
+ for (var post = offset - 1, rule = offset === 0 ? rules : [""], size = sizeof(rule), i = 0, j = 0, k = 0; i < index; ++i)
2855
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
2856
+ (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) && (props[k++] = z);
2857
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
2858
+ }
2859
+ function comment(value, root, parent) {
2860
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
2861
+ }
2862
+ function declaration(value, root, parent, length2) {
2863
+ return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
2864
+ }
2865
+
2866
+ // ../node_modules/stylis/src/Serializer.js
2867
+ function serialize(children, callback) {
2868
+ for (var output = "", length2 = sizeof(children), i = 0; i < length2; i++)
2869
+ output += callback(children[i], i, children, callback) || "";
2870
+ return output;
2871
+ }
2872
+ function stringify(element, index, children, callback) {
2873
+ switch (element.type) {
2874
+ case LAYER:
2875
+ if (element.children.length) break;
2876
+ case IMPORT:
2877
+ case DECLARATION:
2878
+ return element.return = element.return || element.value;
2879
+ case COMMENT:
2880
+ return "";
2881
+ case KEYFRAMES:
2882
+ return element.return = element.value + "{" + serialize(element.children, callback) + "}";
2883
+ case RULESET:
2884
+ element.value = element.props.join(",");
2885
+ }
2886
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
2887
+ }
2888
+
2889
+ // ../node_modules/stylis/src/Middleware.js
2890
+ function middleware(collection) {
2891
+ var length2 = sizeof(collection);
2892
+ return function(element, index, children, callback) {
2893
+ for (var output = "", i = 0; i < length2; i++)
2894
+ output += collection[i](element, index, children, callback) || "";
2895
+ return output;
2896
+ };
2897
+ }
2898
+ function rulesheet(callback) {
2899
+ return function(element) {
2900
+ element.root || (element = element.return) && callback(element);
2901
+ };
2902
+ }
2903
+
2904
+ // ../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
2905
+ function memoize(fn) {
2906
+ var cache = /* @__PURE__ */ Object.create(null);
2907
+ return function(arg) {
2908
+ return cache[arg] === void 0 && (cache[arg] = fn(arg)), cache[arg];
2909
+ };
2910
+ }
2911
+
2912
+ // ../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
2913
+ var identifierWithPointTracking = function(begin, points, index) {
2914
+ for (var previous = 0, character2 = 0; previous = character2, character2 = peek(), previous === 38 && character2 === 12 && (points[index] = 1), !token(character2); )
2915
+ next();
2916
+ return slice(begin, position);
2917
+ }, toRules = function(parsed, points) {
2918
+ var index = -1, character2 = 44;
2919
+ do
2920
+ switch (token(character2)) {
2921
+ case 0:
2922
+ character2 === 38 && peek() === 12 && (points[index] = 1), parsed[index] += identifierWithPointTracking(position - 1, points, index);
2923
+ break;
2924
+ case 2:
2925
+ parsed[index] += delimit(character2);
2926
+ break;
2927
+ case 4:
2928
+ if (character2 === 44) {
2929
+ parsed[++index] = peek() === 58 ? "&\f" : "", points[index] = parsed[index].length;
2930
+ break;
2931
+ }
2932
+ // fallthrough
2933
+ default:
2934
+ parsed[index] += from(character2);
2935
+ }
2936
+ while (character2 = next());
2937
+ return parsed;
2938
+ }, getRules = function(value, points) {
2939
+ return dealloc(toRules(alloc(value), points));
2940
+ }, fixedElements = /* @__PURE__ */ new WeakMap(), compat = function(element) {
2941
+ if (!(element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
2942
+ // negative .length indicates that this rule has been already prefixed
2943
+ element.length < 1)) {
2944
+ for (var value = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; parent.type !== "rule"; )
2945
+ if (parent = parent.parent, !parent) return;
2946
+ if (!(element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) && !isImplicitRule) {
2947
+ fixedElements.set(element, true);
2948
+ for (var points = [], rules = getRules(value, points), parentRules = parent.props, i = 0, k = 0; i < rules.length; i++)
2949
+ for (var j = 0; j < parentRules.length; j++, k++)
2950
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
2951
+ }
2952
+ }
2953
+ }, removeLabel = function(element) {
2954
+ if (element.type === "decl") {
2955
+ var value = element.value;
2956
+ // charcode for l
2957
+ value.charCodeAt(0) === 108 && // charcode for b
2958
+ value.charCodeAt(2) === 98 && (element.return = "", element.value = "");
2959
+ }
2960
+ };
2961
+ function prefix2(value, length2) {
2962
+ switch (hash(value, length2)) {
2963
+ // color-adjust
2964
+ case 5103:
2965
+ return WEBKIT + "print-" + value + value;
2966
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
2967
+ case 5737:
2968
+ case 4201:
2969
+ case 3177:
2970
+ case 3433:
2971
+ case 1641:
2972
+ case 4457:
2973
+ case 2921:
2974
+ // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
2975
+ case 5572:
2976
+ case 6356:
2977
+ case 5844:
2978
+ case 3191:
2979
+ case 6645:
2980
+ case 3005:
2981
+ // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
2982
+ case 6391:
2983
+ case 5879:
2984
+ case 5623:
2985
+ case 6135:
2986
+ case 4599:
2987
+ case 4855:
2988
+ // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
2989
+ case 4215:
2990
+ case 6389:
2991
+ case 5109:
2992
+ case 5365:
2993
+ case 5621:
2994
+ case 3829:
2995
+ return WEBKIT + value + value;
2996
+ // appearance, user-select, transform, hyphens, text-size-adjust
2997
+ case 5349:
2998
+ case 4246:
2999
+ case 4810:
3000
+ case 6968:
3001
+ case 2756:
3002
+ return WEBKIT + value + MOZ + value + MS + value + value;
3003
+ // flex, flex-direction
3004
+ case 6828:
3005
+ case 4268:
3006
+ return WEBKIT + value + MS + value + value;
3007
+ // order
3008
+ case 6165:
3009
+ return WEBKIT + value + MS + "flex-" + value + value;
3010
+ // align-items
3011
+ case 5187:
3012
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
3013
+ // align-self
3014
+ case 5443:
3015
+ return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
3016
+ // align-content
3017
+ case 4675:
3018
+ return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
3019
+ // flex-shrink
3020
+ case 5548:
3021
+ return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
3022
+ // flex-basis
3023
+ case 5292:
3024
+ return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
3025
+ // flex-grow
3026
+ case 6060:
3027
+ return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
3028
+ // transition
3029
+ case 4554:
3030
+ return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
3031
+ // cursor
3032
+ case 6187:
3033
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
3034
+ // background, background-image
3035
+ case 5495:
3036
+ case 3959:
3037
+ return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
3038
+ // justify-content
3039
+ case 4968:
3040
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
3041
+ // (margin|padding)-inline-(start|end)
3042
+ case 4095:
3043
+ case 3583:
3044
+ case 4068:
3045
+ case 2532:
3046
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
3047
+ // (min|max)?(width|height|inline-size|block-size)
3048
+ case 8116:
3049
+ case 7059:
3050
+ case 5753:
3051
+ case 5535:
3052
+ case 5445:
3053
+ case 5701:
3054
+ case 4933:
3055
+ case 4677:
3056
+ case 5533:
3057
+ case 5789:
3058
+ case 5021:
3059
+ case 4765:
3060
+ if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) {
3061
+ // (m)ax-content, (m)in-content
3062
+ case 109:
3063
+ if (charat(value, length2 + 4) !== 45) break;
3064
+ // (f)ill-available, (f)it-content
3065
+ case 102:
3066
+ return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
3067
+ // (s)tretch
3068
+ case 115:
3069
+ return ~indexof(value, "stretch") ? prefix2(replace(value, "stretch", "fill-available"), length2) + value : value;
3070
+ }
3071
+ break;
3072
+ // position: sticky
3073
+ case 4949:
3074
+ if (charat(value, length2 + 1) !== 115) break;
3075
+ // display: (flex|inline-flex)
3076
+ case 6444:
3077
+ switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
3078
+ // stic(k)y
3079
+ case 107:
3080
+ return replace(value, ":", ":" + WEBKIT) + value;
3081
+ // (inline-)?fl(e)x
3082
+ case 101:
3083
+ return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
3084
+ }
3085
+ break;
3086
+ // writing-mode
3087
+ case 5936:
3088
+ switch (charat(value, length2 + 11)) {
3089
+ // vertical-l(r)
3090
+ case 114:
3091
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
3092
+ // vertical-r(l)
3093
+ case 108:
3094
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
3095
+ // horizontal(-)tb
3096
+ case 45:
3097
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
3098
+ }
3099
+ return WEBKIT + value + MS + value + value;
3100
+ }
3101
+ return value;
3102
+ }
3103
+ var prefixer = function(element, index, children, callback) {
3104
+ if (element.length > -1 && !element.return) switch (element.type) {
3105
+ case DECLARATION:
3106
+ element.return = prefix2(element.value, element.length);
3107
+ break;
3108
+ case KEYFRAMES:
3109
+ return serialize([copy(element, {
3110
+ value: replace(element.value, "@", "@" + WEBKIT)
3111
+ })], callback);
3112
+ case RULESET:
3113
+ if (element.length) return combine(element.props, function(value) {
3114
+ switch (match(value, /(::plac\w+|:read-\w+)/)) {
3115
+ // :read-(only|write)
3116
+ case ":read-only":
3117
+ case ":read-write":
3118
+ return serialize([copy(element, {
3119
+ props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
3120
+ })], callback);
3121
+ // :placeholder
3122
+ case "::placeholder":
3123
+ return serialize([copy(element, {
3124
+ props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
3125
+ }), copy(element, {
3126
+ props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
3127
+ }), copy(element, {
3128
+ props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
3129
+ })], callback);
3130
+ }
3131
+ return "";
3132
+ });
3133
+ }
3134
+ }, defaultStylisPlugins = [prefixer], createCache = function(options) {
3135
+ var key = options.key;
3136
+ if (key === "css") {
3137
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
3138
+ Array.prototype.forEach.call(ssrStyles, function(node2) {
3139
+ var dataEmotionAttribute = node2.getAttribute("data-emotion");
3140
+ dataEmotionAttribute.indexOf(" ") !== -1 && (document.head.appendChild(node2), node2.setAttribute("data-s", ""));
3141
+ });
3142
+ }
3143
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins, inserted = {}, container, nodesToHydrate = [];
3144
+ container = options.container || document.head, Array.prototype.forEach.call(
3145
+ // this means we will ignore elements which don't have a space in them which
3146
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
3147
+ document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
3148
+ function(node2) {
3149
+ for (var attrib = node2.getAttribute("data-emotion").split(" "), i = 1; i < attrib.length; i++)
3150
+ inserted[attrib[i]] = true;
3151
+ nodesToHydrate.push(node2);
3152
+ }
3153
+ );
3154
+ var _insert, omnipresentPlugins = [compat, removeLabel];
3155
+ {
3156
+ var currentSheet, finalizingPlugins = [stringify, rulesheet(function(rule) {
3157
+ currentSheet.insert(rule);
3158
+ })], serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)), stylis = function(styles) {
3159
+ return serialize(compile(styles), serializer);
3160
+ };
3161
+ _insert = function(selector, serialized, sheet, shouldCache) {
3162
+ currentSheet = sheet, stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles), shouldCache && (cache.inserted[serialized.name] = true);
3163
+ };
3164
+ }
3165
+ var cache = {
3166
+ key,
3167
+ sheet: new StyleSheet({
3168
+ key,
3169
+ container,
3170
+ nonce: options.nonce,
3171
+ speedy: options.speedy,
3172
+ prepend: options.prepend,
3173
+ insertionPoint: options.insertionPoint
3174
+ }),
3175
+ nonce: options.nonce,
3176
+ inserted,
3177
+ registered: {},
3178
+ insert: _insert
3179
+ };
3180
+ return cache.sheet.hydrate(nodesToHydrate), cache;
3181
+ };
3182
+
3183
+ // ../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js
3184
+ __toESM(require_hoist_non_react_statics_cjs());
3185
+
3186
+ // ../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
3187
+ var isBrowser = true;
3188
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
3189
+ var rawClassName = "";
3190
+ return classNames.split(" ").forEach(function(className) {
3191
+ registered[className] !== void 0 ? registeredStyles.push(registered[className] + ";") : className && (rawClassName += className + " ");
3192
+ }), rawClassName;
3193
+ }
3194
+ var registerStyles = function(cache, serialized, isStringTag) {
3195
+ var className = cache.key + "-" + serialized.name;
3196
+ // we only need to add the styles to the registered cache if the
3197
+ // class name could be used further down
3198
+ // the tree but if it's a string tag, we know it won't
3199
+ // so we don't have to add it to registered cache.
3200
+ // this improves memory usage since we can avoid storing the whole style string
3201
+ (isStringTag === false || // we need to always store it if we're in compat mode and
3202
+ // in node since emotion-server relies on whether a style is in
3203
+ // the registered cache to know whether a style is global or not
3204
+ // also, note that this check will be dead code eliminated in the browser
3205
+ isBrowser === false) && cache.registered[className] === void 0 && (cache.registered[className] = serialized.styles);
3206
+ }, insertStyles = function(cache, serialized, isStringTag) {
3207
+ registerStyles(cache, serialized, isStringTag);
3208
+ var className = cache.key + "-" + serialized.name;
3209
+ if (cache.inserted[serialized.name] === void 0) {
3210
+ var current = serialized;
3211
+ do
3212
+ cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true), current = current.next;
3213
+ while (current !== void 0);
3214
+ }
3215
+ };
3216
+
3217
+ // ../node_modules/@emotion/hash/dist/emotion-hash.esm.js
3218
+ function murmur2(str) {
3219
+ for (var h = 0, k, i = 0, len = str.length; len >= 4; ++i, len -= 4)
3220
+ k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24, k = /* Math.imul(k, m): */
3221
+ (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16), k ^= /* k >>> r: */
3222
+ k >>> 24, h = /* Math.imul(k, m): */
3223
+ (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
3224
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
3225
+ switch (len) {
3226
+ case 3:
3227
+ h ^= (str.charCodeAt(i + 2) & 255) << 16;
3228
+ case 2:
3229
+ h ^= (str.charCodeAt(i + 1) & 255) << 8;
3230
+ case 1:
3231
+ h ^= str.charCodeAt(i) & 255, h = /* Math.imul(h, m): */
3232
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
3233
+ }
3234
+ return h ^= h >>> 13, h = /* Math.imul(h, m): */
3235
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16), ((h ^ h >>> 15) >>> 0).toString(36);
3236
+ }
3237
+
3238
+ // ../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
3239
+ var unitlessKeys = {
3240
+ animationIterationCount: 1,
3241
+ aspectRatio: 1,
3242
+ borderImageOutset: 1,
3243
+ borderImageSlice: 1,
3244
+ borderImageWidth: 1,
3245
+ boxFlex: 1,
3246
+ boxFlexGroup: 1,
3247
+ boxOrdinalGroup: 1,
3248
+ columnCount: 1,
3249
+ columns: 1,
3250
+ flex: 1,
3251
+ flexGrow: 1,
3252
+ flexPositive: 1,
3253
+ flexShrink: 1,
3254
+ flexNegative: 1,
3255
+ flexOrder: 1,
3256
+ gridRow: 1,
3257
+ gridRowEnd: 1,
3258
+ gridRowSpan: 1,
3259
+ gridRowStart: 1,
3260
+ gridColumn: 1,
3261
+ gridColumnEnd: 1,
3262
+ gridColumnSpan: 1,
3263
+ gridColumnStart: 1,
3264
+ msGridRow: 1,
3265
+ msGridRowSpan: 1,
3266
+ msGridColumn: 1,
3267
+ msGridColumnSpan: 1,
3268
+ fontWeight: 1,
3269
+ lineHeight: 1,
3270
+ opacity: 1,
3271
+ order: 1,
3272
+ orphans: 1,
3273
+ scale: 1,
3274
+ tabSize: 1,
3275
+ widows: 1,
3276
+ zIndex: 1,
3277
+ zoom: 1,
3278
+ WebkitLineClamp: 1,
3279
+ // SVG-related properties
3280
+ fillOpacity: 1,
3281
+ floodOpacity: 1,
3282
+ stopOpacity: 1,
3283
+ strokeDasharray: 1,
3284
+ strokeDashoffset: 1,
3285
+ strokeMiterlimit: 1,
3286
+ strokeOpacity: 1,
3287
+ strokeWidth: 1
3288
+ };
3289
+
3290
+ // ../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
3291
+ var hyphenateRegex = /[A-Z]|^ms/g, animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g, isCustomProperty = function(property) {
3292
+ return property.charCodeAt(1) === 45;
3293
+ }, isProcessableValue = function(value) {
3294
+ return value != null && typeof value != "boolean";
3295
+ }, processStyleName = memoize(function(styleName) {
3296
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
3297
+ }), processStyleValue = function(key, value) {
3298
+ switch (key) {
3299
+ case "animation":
3300
+ case "animationName":
3301
+ if (typeof value == "string")
3302
+ return value.replace(animationRegex, function(match2, p1, p2) {
3303
+ return cursor = {
3304
+ name: p1,
3305
+ styles: p2,
3306
+ next: cursor
3307
+ }, p1;
3308
+ });
3309
+ }
3310
+ return unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value == "number" && value !== 0 ? value + "px" : value;
3311
+ };
3312
+ function handleInterpolation(mergedProps, registered, interpolation) {
3313
+ if (interpolation == null)
3314
+ return "";
3315
+ var componentSelector = interpolation;
3316
+ if (componentSelector.__emotion_styles !== void 0)
3317
+ return componentSelector;
3318
+ switch (typeof interpolation) {
3319
+ case "boolean":
3320
+ return "";
3321
+ case "object": {
3322
+ var keyframes2 = interpolation;
3323
+ if (keyframes2.anim === 1)
3324
+ return cursor = {
3325
+ name: keyframes2.name,
3326
+ styles: keyframes2.styles,
3327
+ next: cursor
3328
+ }, keyframes2.name;
3329
+ var serializedStyles = interpolation;
3330
+ if (serializedStyles.styles !== void 0) {
3331
+ var next2 = serializedStyles.next;
3332
+ if (next2 !== void 0)
3333
+ for (; next2 !== void 0; )
3334
+ cursor = {
3335
+ name: next2.name,
3336
+ styles: next2.styles,
3337
+ next: cursor
3338
+ }, next2 = next2.next;
3339
+ var styles = serializedStyles.styles + ";";
3340
+ return styles;
3341
+ }
3342
+ return createStringFromObject(mergedProps, registered, interpolation);
3343
+ }
3344
+ case "function": {
3345
+ if (mergedProps !== void 0) {
3346
+ var previousCursor = cursor, result = interpolation(mergedProps);
3347
+ return cursor = previousCursor, handleInterpolation(mergedProps, registered, result);
3348
+ }
3349
+ break;
3350
+ }
3351
+ }
3352
+ var asString = interpolation;
3353
+ if (registered == null)
3354
+ return asString;
3355
+ var cached = registered[asString];
3356
+ return cached !== void 0 ? cached : asString;
3357
+ }
3358
+ function createStringFromObject(mergedProps, registered, obj) {
3359
+ var string = "";
3360
+ if (Array.isArray(obj))
3361
+ for (var i = 0; i < obj.length; i++)
3362
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
3363
+ else
3364
+ for (var key in obj) {
3365
+ var value = obj[key];
3366
+ if (typeof value != "object") {
3367
+ var asString = value;
3368
+ registered != null && registered[asString] !== void 0 ? string += key + "{" + registered[asString] + "}" : isProcessableValue(asString) && (string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";");
3369
+ } else {
3370
+ if (Array.isArray(value) && typeof value[0] == "string" && (registered == null || registered[value[0]] === void 0))
3371
+ for (var _i = 0; _i < value.length; _i++)
3372
+ isProcessableValue(value[_i]) && (string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";");
3373
+ else {
3374
+ var interpolated = handleInterpolation(mergedProps, registered, value);
3375
+ switch (key) {
3376
+ case "animation":
3377
+ case "animationName": {
3378
+ string += processStyleName(key) + ":" + interpolated + ";";
3379
+ break;
3380
+ }
3381
+ default:
3382
+ string += key + "{" + interpolated + "}";
3383
+ }
3384
+ }
3385
+ }
3386
+ }
3387
+ return string;
3388
+ }
3389
+ var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g, cursor;
3390
+ function serializeStyles(args, registered, mergedProps) {
3391
+ if (args.length === 1 && typeof args[0] == "object" && args[0] !== null && args[0].styles !== void 0)
3392
+ return args[0];
3393
+ var stringMode = true, styles = "";
3394
+ cursor = void 0;
3395
+ var strings = args[0];
3396
+ if (strings == null || strings.raw === void 0)
3397
+ stringMode = false, styles += handleInterpolation(mergedProps, registered, strings);
3398
+ else {
3399
+ var asTemplateStringsArr = strings;
3400
+ styles += asTemplateStringsArr[0];
3401
+ }
3402
+ for (var i = 1; i < args.length; i++)
3403
+ if (styles += handleInterpolation(mergedProps, registered, args[i]), stringMode) {
3404
+ var templateStringsArr = strings;
3405
+ styles += templateStringsArr[i];
3406
+ }
3407
+ labelPattern.lastIndex = 0;
3408
+ for (var identifierName = "", match2; (match2 = labelPattern.exec(styles)) !== null; )
3409
+ identifierName += "-" + match2[1];
3410
+ var name = murmur2(styles) + identifierName;
3411
+ return {
3412
+ name,
3413
+ styles,
3414
+ next: cursor
3415
+ };
3416
+ }
3417
+ var syncFallback = function(create3) {
3418
+ return create3();
3419
+ }, useInsertionEffect2 = React3.useInsertionEffect ? React3.useInsertionEffect : false, useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback, useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React3.useLayoutEffect;
3420
+
3421
+ // ../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js
3422
+ var EmotionCacheContext = React3.createContext(
3423
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
3424
+ // because this module is primarily intended for the browser and node
3425
+ // but it's also required in react native and similar environments sometimes
3426
+ // and we could have a special build just for that
3427
+ // but this is much easier and the native packages
3428
+ // might use a different theme context in the future anyway
3429
+ typeof HTMLElement < "u" ? createCache({
3430
+ key: "css"
3431
+ }) : null
3432
+ ); EmotionCacheContext.Provider;
3433
+ var withEmotionCache = function(func) {
3434
+ return forwardRef(function(props, ref) {
3435
+ var cache = useContext(EmotionCacheContext);
3436
+ return func(props, cache, ref);
3437
+ });
3438
+ }, ThemeContext = React3.createContext({});
3439
+ var hasOwn = {}.hasOwnProperty, typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", createEmotionProps = function(type, props) {
3440
+ var newProps = {};
3441
+ for (var _key in props)
3442
+ hasOwn.call(props, _key) && (newProps[_key] = props[_key]);
3443
+ return newProps[typePropName] = type, newProps;
3444
+ }, Insertion = function(_ref) {
3445
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
3446
+ return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() {
3447
+ return insertStyles(cache, serialized, isStringTag);
3448
+ }), null;
3449
+ }, Emotion = withEmotionCache(function(props, cache, ref) {
3450
+ var cssProp = props.css;
3451
+ typeof cssProp == "string" && cache.registered[cssProp] !== void 0 && (cssProp = cache.registered[cssProp]);
3452
+ var WrappedComponent = props[typePropName], registeredStyles = [cssProp], className = "";
3453
+ typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, registeredStyles, props.className) : props.className != null && (className = props.className + " ");
3454
+ var serialized = serializeStyles(registeredStyles, void 0, React3.useContext(ThemeContext));
3455
+ className += cache.key + "-" + serialized.name;
3456
+ var newProps = {};
3457
+ for (var _key2 in props)
3458
+ hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && true && (newProps[_key2] = props[_key2]);
3459
+ return newProps.className = className, ref && (newProps.ref = ref), React3.createElement(React3.Fragment, null, React3.createElement(Insertion, {
3460
+ cache,
3461
+ serialized,
3462
+ isStringTag: typeof WrappedComponent == "string"
3463
+ }), React3.createElement(WrappedComponent, newProps));
3464
+ }), Emotion$1 = Emotion;
3465
+ __toESM(require_hoist_non_react_statics_cjs()); var jsx = function(type, props) {
3466
+ var args = arguments;
3467
+ if (props == null || !hasOwn.call(props, "css"))
3468
+ return React3.createElement.apply(void 0, args);
3469
+ var argsLength = args.length, createElementArgArray = new Array(argsLength);
3470
+ createElementArgArray[0] = Emotion$1, createElementArgArray[1] = createEmotionProps(type, props);
3471
+ for (var i = 2; i < argsLength; i++)
3472
+ createElementArgArray[i] = args[i];
3473
+ return React3.createElement.apply(null, createElementArgArray);
3474
+ };
3475
+ (function(_jsx) {
3476
+ var JSX;
3477
+ JSX || (JSX = _jsx.JSX || (_jsx.JSX = {}));
3478
+ })(jsx || (jsx = {}));
3479
+ withEmotionCache(function(props, cache) {
3480
+ var styles = props.styles, serialized = serializeStyles([styles], void 0, React3.useContext(ThemeContext)), sheetRef = React3.useRef();
3481
+ return useInsertionEffectWithLayoutFallback(function() {
3482
+ var key = cache.key + "-global", sheet = new cache.sheet.constructor({
3483
+ key,
3484
+ nonce: cache.sheet.nonce,
3485
+ container: cache.sheet.container,
3486
+ speedy: cache.sheet.isSpeedy
3487
+ }), rehydrating = false, node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
3488
+ return cache.sheet.tags.length && (sheet.before = cache.sheet.tags[0]), node2 !== null && (rehydrating = true, node2.setAttribute("data-emotion", key), sheet.hydrate([node2])), sheetRef.current = [sheet, rehydrating], function() {
3489
+ sheet.flush();
3490
+ };
3491
+ }, [cache]), useInsertionEffectWithLayoutFallback(function() {
3492
+ var sheetRefCurrent = sheetRef.current, sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
3493
+ if (rehydrating) {
3494
+ sheetRefCurrent[1] = false;
3495
+ return;
3496
+ }
3497
+ if (serialized.next !== void 0 && insertStyles(cache, serialized.next, true), sheet.tags.length) {
3498
+ var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
3499
+ sheet.before = element, sheet.flush();
3500
+ }
3501
+ cache.insert("", serialized, sheet, false);
3502
+ }, [cache, serialized.name]), null;
3503
+ });
3504
+ function css() {
3505
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
3506
+ args[_key] = arguments[_key];
3507
+ return serializeStyles(args);
3508
+ }
3509
+ function keyframes() {
3510
+ var insertable = css.apply(void 0, arguments), name = "animation-" + insertable.name;
3511
+ return {
3512
+ name,
3513
+ styles: "@keyframes " + name + "{" + insertable.styles + "}",
3514
+ anim: 1,
3515
+ toString: function() {
3516
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
3517
+ }
3518
+ };
3519
+ }
3520
+ var classnames = function classnames2(args) {
3521
+ for (var len = args.length, i = 0, cls = ""; i < len; i++) {
3522
+ var arg = args[i];
3523
+ if (arg != null) {
3524
+ var toAdd = void 0;
3525
+ switch (typeof arg) {
3526
+ case "boolean":
3527
+ break;
3528
+ case "object": {
3529
+ if (Array.isArray(arg))
3530
+ toAdd = classnames2(arg);
3531
+ else {
3532
+ toAdd = "";
3533
+ for (var k in arg)
3534
+ arg[k] && k && (toAdd && (toAdd += " "), toAdd += k);
3535
+ }
3536
+ break;
3537
+ }
3538
+ default:
3539
+ toAdd = arg;
3540
+ }
3541
+ toAdd && (cls && (cls += " "), cls += toAdd);
3542
+ }
3543
+ }
3544
+ return cls;
3545
+ };
3546
+ function merge(registered, css2, className) {
3547
+ var registeredStyles = [], rawClassName = getRegisteredStyles(registered, registeredStyles, className);
3548
+ return registeredStyles.length < 2 ? className : rawClassName + css2(registeredStyles);
3549
+ }
3550
+ var Insertion3 = function(_ref) {
3551
+ var cache = _ref.cache, serializedArr = _ref.serializedArr;
3552
+ return useInsertionEffectAlwaysWithSyncFallback(function() {
3553
+ for (var i = 0; i < serializedArr.length; i++)
3554
+ insertStyles(cache, serializedArr[i], false);
3555
+ }), null;
3556
+ }; withEmotionCache(function(props, cache) {
3557
+ var serializedArr = [], css2 = function() {
3558
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
3559
+ args[_key] = arguments[_key];
3560
+ var serialized = serializeStyles(args, cache.registered);
3561
+ return serializedArr.push(serialized), registerStyles(cache, serialized, false), cache.key + "-" + serialized.name;
3562
+ }, cx = function() {
3563
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)
3564
+ args[_key2] = arguments[_key2];
3565
+ return merge(cache.registered, css2, classnames(args));
3566
+ }, content = {
3567
+ css: css2,
3568
+ cx,
3569
+ theme: React3.useContext(ThemeContext)
3570
+ }, ele = props.children(content);
3571
+ return React3.createElement(React3.Fragment, null, React3.createElement(Insertion3, {
3572
+ cache,
3573
+ serializedArr
3574
+ }), ele);
3575
+ });
3576
+
3577
+ // ../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
3578
+ 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)-.*))$/, isPropValid = memoize(
3579
+ function(prop) {
3580
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
3581
+ }
3582
+ /* Z+1 */
3583
+ );
3584
+
3585
+ // ../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
3586
+ var testOmitPropsOnStringTag = isPropValid, testOmitPropsOnComponent = function(key) {
3587
+ return key !== "theme";
3588
+ }, getDefaultShouldForwardProp = function(tag) {
3589
+ return typeof tag == "string" && // 96 is one less than the char code
3590
+ // for "a" so this is checking that
3591
+ // it's a lowercase character
3592
+ tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
3593
+ }, composeShouldForwardProps = function(tag, options, isReal) {
3594
+ var shouldForwardProp;
3595
+ if (options) {
3596
+ var optionsShouldForwardProp = options.shouldForwardProp;
3597
+ shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
3598
+ return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
3599
+ } : optionsShouldForwardProp;
3600
+ }
3601
+ return typeof shouldForwardProp != "function" && isReal && (shouldForwardProp = tag.__emotion_forwardProp), shouldForwardProp;
3602
+ }, Insertion5 = function(_ref) {
3603
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
3604
+ return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() {
3605
+ return insertStyles(cache, serialized, isStringTag);
3606
+ }), null;
3607
+ }, createStyled = function createStyled2(tag, options) {
3608
+ var isReal = tag.__emotion_real === tag, baseTag = isReal && tag.__emotion_base || tag, identifierName, targetClassName;
3609
+ options !== void 0 && (identifierName = options.label, targetClassName = options.target);
3610
+ var shouldForwardProp = composeShouldForwardProps(tag, options, isReal), defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag), shouldUseAs = !defaultShouldForwardProp("as");
3611
+ return function() {
3612
+ var args = arguments, styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
3613
+ if (identifierName !== void 0 && styles.push("label:" + identifierName + ";"), args[0] == null || args[0].raw === void 0)
3614
+ styles.push.apply(styles, args);
3615
+ else {
3616
+ var templateStringsArr = args[0];
3617
+ styles.push(templateStringsArr[0]);
3618
+ for (var len = args.length, i = 1; i < len; i++)
3619
+ styles.push(args[i], templateStringsArr[i]);
3620
+ }
3621
+ var Styled = withEmotionCache(function(props, cache, ref) {
3622
+ var FinalTag = shouldUseAs && props.as || baseTag, className = "", classInterpolations = [], mergedProps = props;
3623
+ if (props.theme == null) {
3624
+ mergedProps = {};
3625
+ for (var key in props)
3626
+ mergedProps[key] = props[key];
3627
+ mergedProps.theme = React3.useContext(ThemeContext);
3628
+ }
3629
+ typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, classInterpolations, props.className) : props.className != null && (className = props.className + " ");
3630
+ var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
3631
+ className += cache.key + "-" + serialized.name, targetClassName !== void 0 && (className += " " + targetClassName);
3632
+ var finalShouldForwardProp = shouldUseAs && shouldForwardProp === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp, newProps = {};
3633
+ for (var _key in props)
3634
+ shouldUseAs && _key === "as" || finalShouldForwardProp(_key) && (newProps[_key] = props[_key]);
3635
+ return newProps.className = className, ref && (newProps.ref = ref), React3.createElement(React3.Fragment, null, React3.createElement(Insertion5, {
3636
+ cache,
3637
+ serialized,
3638
+ isStringTag: typeof FinalTag == "string"
3639
+ }), React3.createElement(FinalTag, newProps));
3640
+ });
3641
+ return Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag == "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")", Styled.defaultProps = tag.defaultProps, Styled.__emotion_real = Styled, Styled.__emotion_base = baseTag, Styled.__emotion_styles = styles, Styled.__emotion_forwardProp = shouldForwardProp, Object.defineProperty(Styled, "toString", {
3642
+ value: function() {
3643
+ return "." + targetClassName;
3644
+ }
3645
+ }), Styled.withComponent = function(nextTag, nextOptions) {
3646
+ var newStyled = createStyled2(nextTag, _extends({}, options, nextOptions, {
3647
+ shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
3648
+ }));
3649
+ return newStyled.apply(void 0, styles);
3650
+ }, Styled;
3651
+ };
3652
+ };
3653
+ var tags = [
3654
+ "a",
3655
+ "abbr",
3656
+ "address",
3657
+ "area",
3658
+ "article",
3659
+ "aside",
3660
+ "audio",
3661
+ "b",
3662
+ "base",
3663
+ "bdi",
3664
+ "bdo",
3665
+ "big",
3666
+ "blockquote",
3667
+ "body",
3668
+ "br",
3669
+ "button",
3670
+ "canvas",
3671
+ "caption",
3672
+ "cite",
3673
+ "code",
3674
+ "col",
3675
+ "colgroup",
3676
+ "data",
3677
+ "datalist",
3678
+ "dd",
3679
+ "del",
3680
+ "details",
3681
+ "dfn",
3682
+ "dialog",
3683
+ "div",
3684
+ "dl",
3685
+ "dt",
3686
+ "em",
3687
+ "embed",
3688
+ "fieldset",
3689
+ "figcaption",
3690
+ "figure",
3691
+ "footer",
3692
+ "form",
3693
+ "h1",
3694
+ "h2",
3695
+ "h3",
3696
+ "h4",
3697
+ "h5",
3698
+ "h6",
3699
+ "head",
3700
+ "header",
3701
+ "hgroup",
3702
+ "hr",
3703
+ "html",
3704
+ "i",
3705
+ "iframe",
3706
+ "img",
3707
+ "input",
3708
+ "ins",
3709
+ "kbd",
3710
+ "keygen",
3711
+ "label",
3712
+ "legend",
3713
+ "li",
3714
+ "link",
3715
+ "main",
3716
+ "map",
3717
+ "mark",
3718
+ "marquee",
3719
+ "menu",
3720
+ "menuitem",
3721
+ "meta",
3722
+ "meter",
3723
+ "nav",
3724
+ "noscript",
3725
+ "object",
3726
+ "ol",
3727
+ "optgroup",
3728
+ "option",
3729
+ "output",
3730
+ "p",
3731
+ "param",
3732
+ "picture",
3733
+ "pre",
3734
+ "progress",
3735
+ "q",
3736
+ "rp",
3737
+ "rt",
3738
+ "ruby",
3739
+ "s",
3740
+ "samp",
3741
+ "script",
3742
+ "section",
3743
+ "select",
3744
+ "small",
3745
+ "source",
3746
+ "span",
3747
+ "strong",
3748
+ "style",
3749
+ "sub",
3750
+ "summary",
3751
+ "sup",
3752
+ "table",
3753
+ "tbody",
3754
+ "td",
3755
+ "textarea",
3756
+ "tfoot",
3757
+ "th",
3758
+ "thead",
3759
+ "time",
3760
+ "title",
3761
+ "tr",
3762
+ "track",
3763
+ "u",
3764
+ "ul",
3765
+ "var",
3766
+ "video",
3767
+ "wbr",
3768
+ // SVG
3769
+ "circle",
3770
+ "clipPath",
3771
+ "defs",
3772
+ "ellipse",
3773
+ "foreignObject",
3774
+ "g",
3775
+ "image",
3776
+ "line",
3777
+ "linearGradient",
3778
+ "mask",
3779
+ "path",
3780
+ "pattern",
3781
+ "polygon",
3782
+ "polyline",
3783
+ "radialGradient",
3784
+ "rect",
3785
+ "stop",
3786
+ "svg",
3787
+ "text",
3788
+ "tspan"
3789
+ ], styled = createStyled.bind(null);
3790
+ tags.forEach(function(tagName) {
3791
+ styled[tagName] = styled(tagName);
3792
+ });
3793
+
3794
+ // src/theming/global.ts
3795
+ var import_memoizerific = __toESM(require_memoizerific(), 1), createReset = (0, import_memoizerific.default)(1)(
3796
+ ({ typography: typography2 }) => ({
3797
+ body: {
3798
+ fontFamily: typography2.fonts.base,
3799
+ fontSize: typography2.size.s3,
3800
+ margin: 0,
3801
+ WebkitFontSmoothing: "antialiased",
3802
+ MozOsxFontSmoothing: "grayscale",
3803
+ WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
3804
+ WebkitOverflowScrolling: "touch"
3805
+ },
3806
+ "*": {
3807
+ boxSizing: "border-box"
3808
+ },
3809
+ "h1, h2, h3, h4, h5, h6": {
3810
+ fontWeight: typography2.weight.regular,
3811
+ margin: 0,
3812
+ padding: 0
3813
+ },
3814
+ "button, input, textarea, select": {
3815
+ fontFamily: "inherit",
3816
+ fontSize: "inherit",
3817
+ boxSizing: "border-box"
3818
+ },
3819
+ sub: {
3820
+ fontSize: "0.8em",
3821
+ bottom: "-0.2em"
3822
+ },
3823
+ sup: {
3824
+ fontSize: "0.8em",
3825
+ top: "-0.2em"
3826
+ },
3827
+ "b, strong": {
3828
+ fontWeight: typography2.weight.bold
3829
+ },
3830
+ hr: {
3831
+ border: "none",
3832
+ borderTop: "1px solid silver",
3833
+ clear: "both",
3834
+ marginBottom: "1.25rem"
3835
+ },
3836
+ code: {
3837
+ fontFamily: typography2.fonts.mono,
3838
+ WebkitFontSmoothing: "antialiased",
3839
+ MozOsxFontSmoothing: "grayscale",
3840
+ display: "inline-block",
3841
+ paddingLeft: 2,
3842
+ paddingRight: 2,
3843
+ verticalAlign: "baseline",
3844
+ color: "inherit"
3845
+ },
3846
+ pre: {
3847
+ fontFamily: typography2.fonts.mono,
3848
+ WebkitFontSmoothing: "antialiased",
3849
+ MozOsxFontSmoothing: "grayscale",
3850
+ lineHeight: "18px",
3851
+ padding: "11px 1rem",
3852
+ whiteSpace: "pre-wrap",
3853
+ color: "inherit",
3854
+ borderRadius: 3,
3855
+ margin: "1rem 0"
3856
+ }
3857
+ })
3858
+ ); (0, import_memoizerific.default)(1)(({
3859
+ color: color2,
3860
+ background: background2,
3861
+ typography: typography2
3862
+ }) => {
3863
+ let resetStyles = createReset({ typography: typography2 });
3864
+ return {
3865
+ ...resetStyles,
3866
+ body: {
3867
+ ...resetStyles.body,
3868
+ color: color2.defaultText,
3869
+ background: background2.app,
3870
+ overflow: "hidden"
3871
+ },
3872
+ hr: {
3873
+ ...resetStyles.hr,
3874
+ borderTop: `1px solid ${color2.border}`
3875
+ },
3876
+ ".sb-sr-only, .sb-hidden-until-focus:not(:focus)": {
3877
+ position: "absolute",
3878
+ width: 1,
3879
+ height: 1,
3880
+ padding: 0,
3881
+ margin: -1,
3882
+ overflow: "hidden",
3883
+ whiteSpace: "nowrap",
3884
+ clip: "rect(0, 0, 0, 0)",
3885
+ clipPath: "inset(50%)",
3886
+ border: 0
3887
+ },
3888
+ ".sb-hidden-until-focus": {
3889
+ opacity: 0,
3890
+ transition: "opacity 150ms ease-out"
3891
+ },
3892
+ ".sb-hidden-until-focus:focus": {
3893
+ opacity: 1
3894
+ },
3895
+ ".react-aria-Popover:focus-visible": {
3896
+ outline: "none"
3897
+ }
3898
+ };
3899
+ });
3900
+
3901
+ // src/theming/animation.ts
3902
+ keyframes`
3903
+ from {
3904
+ transform: rotate(0deg);
3905
+ }
3906
+ to {
3907
+ transform: rotate(360deg);
3908
+ }
3909
+ `; var glow = keyframes`
3910
+ 0%, 100% { opacity: 1; }
3911
+ 50% { opacity: .4; }
3912
+ `; keyframes`
3913
+ 0% { transform: translateY(1px); }
3914
+ 25% { transform: translateY(0px); }
3915
+ 50% { transform: translateY(-3px); }
3916
+ 100% { transform: translateY(1px); }
3917
+ `; keyframes`
3918
+ 0%, 100% { transform:translate3d(0,0,0); }
3919
+ 12.5%, 62.5% { transform:translate3d(-4px,0,0); }
3920
+ 37.5%, 87.5% { transform: translate3d(4px,0,0); }
3921
+ `; css`
3922
+ animation: ${glow} 1.5s ease-in-out infinite;
3923
+ color: transparent;
3924
+ cursor: progress;
3925
+ `; css`
3926
+ transition: all 150ms ease-out;
3927
+ transform: translate3d(0, 0, 0);
3928
+
3929
+ &:hover {
3930
+ transform: translate3d(0, -2px, 0);
3931
+ }
3932
+
3933
+ &:active {
3934
+ transform: translate3d(0, 0, 0);
3935
+ }
3936
+ `;
3937
+
3938
+ function useWindowEvent(type, listener, options) {
3939
+ useEffect(() => {
3940
+ window.addEventListener(type, listener, options);
3941
+ return () => window.removeEventListener(type, listener, options);
3942
+ }, [type, listener]);
3943
+ }
3944
+
3945
+ const eventListerOptions = {
3946
+ passive: true
3947
+ };
3948
+ function useViewportSize() {
3949
+ const [windowSize, setWindowSize] = useState({
3950
+ width: 0,
3951
+ height: 0
3952
+ });
3953
+ const setSize = useCallback(() => {
3954
+ setWindowSize({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
3955
+ }, []);
3956
+ useWindowEvent("resize", setSize, eventListerOptions);
3957
+ useWindowEvent("orientationchange", setSize, eventListerOptions);
3958
+ useEffect(setSize, []);
3959
+ return windowSize;
3960
+ }
3961
+
3962
+ var _templateObject, _templateObject2, _templateObject3;
3963
+ function Layout(props) {
3964
+ var _header$height, _header$height2, _sideMenu$width$table, _sideMenu$width, _sideMenu$width$deskt, _sideMenu$width2, _sideMenu$width$deskt2, _sideMenu$width3;
3965
+ var backgroundColor = props.backgroundColor,
3966
+ layoutStyle = props.layoutStyle,
2379
3967
  className = props.className,
2380
- style = props.style;
2381
- return jsx("button", {
2382
- className: className,
3968
+ sideMenu = props.sideMenu,
3969
+ content = props.content,
3970
+ header = props.header;
3971
+ var size = useViewportSize();
3972
+ var LayoutSection = styled.section(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width:", "\n "])), layoutStyle === null || layoutStyle === void 0 ? void 0 : layoutStyle.width);
3973
+ var Content = styled.section(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\n "])));
3974
+ function SideMenu(props) {
3975
+ var _sideMenuStyle$left, _menuItemStyle$width$, _menuItemStyle$width, _sideMenuStyle$bottom, _props$top, _menuItemStyle$width2;
3976
+ var _props$sideMenu = props.sideMenu,
3977
+ width = _props$sideMenu.width,
3978
+ sideMenuStyle = _props$sideMenu.sideMenuStyle,
3979
+ menuItems = _props$sideMenu.menuItems,
3980
+ ElementType = _props$sideMenu.ElementType,
3981
+ bottomSection = _props$sideMenu.bottomSection,
3982
+ menuItemStyle = _props$sideMenu.menuItemStyle,
3983
+ menuItemsDynamicStyle = _props$sideMenu.menuItemsDynamicStyle;
3984
+ var bottomNode = function bottomNode(menuItemStyle) {
3985
+ if (bottomSection) {
3986
+ return bottomSection.map(function (item) {
3987
+ return MenuItem({
3988
+ item: item,
3989
+ menuItemStyle: menuItemStyle
3990
+ });
3991
+ });
3992
+ }
3993
+ };
3994
+ return jsxs("aside", {
3995
+ className: " quix_side_menu ",
3996
+ style: _objectSpread2({
3997
+ position: 'absolute',
3998
+ left: size.width < 450 ? 8 : (_sideMenuStyle$left = sideMenuStyle === null || sideMenuStyle === void 0 ? void 0 : sideMenuStyle.left) !== null && _sideMenuStyle$left !== void 0 ? _sideMenuStyle$left : 0,
3999
+ bottom: size.width < 450 ? Number((_menuItemStyle$width$ = menuItemStyle === null || menuItemStyle === void 0 || (_menuItemStyle$width = menuItemStyle.width) === null || _menuItemStyle$width === void 0 ? void 0 : _menuItemStyle$width.mobile) !== null && _menuItemStyle$width$ !== void 0 ? _menuItemStyle$width$ : 48) / 2 : (_sideMenuStyle$bottom = sideMenuStyle === null || sideMenuStyle === void 0 ? void 0 : sideMenuStyle.bottom) !== null && _sideMenuStyle$bottom !== void 0 ? _sideMenuStyle$bottom : 0,
4000
+ width: size.width < 450 ? '100%' : size.width > 450 && size.width < 850 ? width.tablet : size.width >= 850 ? width.desktop : 300,
4001
+ top: size.width < 450 ? 'none' : (_props$top = props === null || props === void 0 ? void 0 : props.top) !== null && _props$top !== void 0 ? _props$top : 80,
4002
+ height: size.width < 450 ? menuItemStyle === null || menuItemStyle === void 0 || (_menuItemStyle$width2 = menuItemStyle.width) === null || _menuItemStyle$width2 === void 0 ? void 0 : _menuItemStyle$width2.mobile : '90%',
4003
+ // height: 48,
4004
+ zIndex: 99
4005
+ }, sideMenuStyle),
4006
+ children: [menuItems && menuItems.map(function (item) {
4007
+ return MenuItem({
4008
+ item: item,
4009
+ ElementType: ElementType,
4010
+ menuItemsDynamicStyle: menuItemsDynamicStyle,
4011
+ menuItemStyle: menuItemStyle
4012
+ });
4013
+ }), size.width > 450 && jsx$1("div", {
4014
+ className: " sidemenu_bottom_section ",
4015
+ children: jsx$1("div", {
4016
+ className: " items ",
4017
+ children: bottomNode(menuItemStyle)
4018
+ })
4019
+ })]
4020
+ });
4021
+ }
4022
+ function MenuItem(_ref) {
4023
+ var _menuItemsDynamicStyl, _menuItemsDynamicStyl2, _menuItemsDynamicStyl3, _menuItemsDynamicStyl4, _menuItemsDynamicStyl5, _menuItemsDynamicStyl6, _menuItemStyle$style, _menuItemStyle$style2, _menuItemStyle$width3, _menuItemStyle$width4, _menuItemStyle$width5;
4024
+ var item = _ref.item,
4025
+ ElementType = _ref.ElementType,
4026
+ menuItemsDynamicStyle = _ref.menuItemsDynamicStyle,
4027
+ menuItemStyle = _ref.menuItemStyle;
4028
+ var windowWidth = size.width;
4029
+ var MenuItemElement = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color:", ";\n color:", ";\n\n &:hover{\n background-color:", ";\n color:", "\n }\n "])), (_menuItemsDynamicStyl = menuItemsDynamicStyle === null || menuItemsDynamicStyle === void 0 ? void 0 : menuItemsDynamicStyle.backgroundColor) !== null && _menuItemsDynamicStyl !== void 0 ? _menuItemsDynamicStyl : '#d4d4d480', (_menuItemsDynamicStyl2 = menuItemsDynamicStyle === null || menuItemsDynamicStyle === void 0 ? void 0 : menuItemsDynamicStyle.textColor) !== null && _menuItemsDynamicStyl2 !== void 0 ? _menuItemsDynamicStyl2 : "#121212", (_menuItemsDynamicStyl3 = menuItemsDynamicStyle === null || menuItemsDynamicStyle === void 0 || (_menuItemsDynamicStyl4 = menuItemsDynamicStyle.activeColor) === null || _menuItemsDynamicStyl4 === void 0 ? void 0 : _menuItemsDynamicStyl4.background) !== null && _menuItemsDynamicStyl3 !== void 0 ? _menuItemsDynamicStyl3 : '#d4d4d4', (_menuItemsDynamicStyl5 = menuItemsDynamicStyle === null || menuItemsDynamicStyle === void 0 || (_menuItemsDynamicStyl6 = menuItemsDynamicStyle.activeColor) === null || _menuItemsDynamicStyl6 === void 0 ? void 0 : _menuItemsDynamicStyl6.text) !== null && _menuItemsDynamicStyl5 !== void 0 ? _menuItemsDynamicStyl5 : "#121212");
4030
+ var navigate = function navigate(route) {
4031
+ window.location.replace(route);
4032
+ };
4033
+ var Element = function Element(_ref2) {
4034
+ var children = _ref2.children;
4035
+ return ElementType === 'NavLink' ? jsx$1(NavLink, {
4036
+ style: {
4037
+ width: "100%"
4038
+ },
4039
+ to: item.route,
4040
+ children: children
4041
+ }, item.label) : ElementType === 'Link' ? jsx$1(Link, {
4042
+ style: {
4043
+ width: "100%"
4044
+ },
4045
+ to: item.route,
4046
+ children: children
4047
+ }, item.label) : ElementType === 'a' ? jsx$1("a", {
4048
+ style: {
4049
+ width: "100%",
4050
+ textDecoration: 'none'
4051
+ },
4052
+ href: item.route,
4053
+ children: children
4054
+ }, item.label) : jsx$1("div", {
4055
+ style: {
4056
+ width: "100%"
4057
+ },
4058
+ onClick: function onClick() {
4059
+ navigate(item.route);
4060
+ },
4061
+ children: children
4062
+ }, item.label);
4063
+ };
4064
+ return jsx$1(Element, {
4065
+ children: jsx$1("div", {
4066
+ style: {
4067
+ padding: windowWidth > 850 ? 10 : 6,
4068
+ width: '100%'
4069
+ },
4070
+ children: jsxs(MenuItemElement, {
4071
+ className: ' ',
4072
+ style: _objectSpread2({
4073
+ transition: '0.2s all',
4074
+ justifyContent: windowWidth > 850 ? menuItemStyle === null || menuItemStyle === void 0 || (_menuItemStyle$style = menuItemStyle.style) === null || _menuItemStyle$style === void 0 ? void 0 : _menuItemStyle$style.justifyContent : 'center',
4075
+ borderRadius: windowWidth > 850 ? menuItemStyle === null || menuItemStyle === void 0 || (_menuItemStyle$style2 = menuItemStyle.style) === null || _menuItemStyle$style2 === void 0 ? void 0 : _menuItemStyle$style2.borderRadius : 2,
4076
+ width: windowWidth <= 450 ? menuItemStyle === null || menuItemStyle === void 0 || (_menuItemStyle$width3 = menuItemStyle.width) === null || _menuItemStyle$width3 === void 0 ? void 0 : _menuItemStyle$width3.mobile : windowWidth > 450 && windowWidth < 850 ? menuItemStyle === null || menuItemStyle === void 0 || (_menuItemStyle$width4 = menuItemStyle.width) === null || _menuItemStyle$width4 === void 0 ? void 0 : _menuItemStyle$width4.tablet : windowWidth >= 850 ? menuItemStyle === null || menuItemStyle === void 0 || (_menuItemStyle$width5 = menuItemStyle.width) === null || _menuItemStyle$width5 === void 0 ? void 0 : _menuItemStyle$width5.desktop : 300
4077
+ }, menuItemStyle === null || menuItemStyle === void 0 ? void 0 : menuItemStyle.style),
4078
+ children: [item.icon && item.icon.position === 'left' && item.icon.component, windowWidth > 850 && jsx$1("p", {
4079
+ className: " quix_menuItem_label ",
4080
+ style: {
4081
+ paddingInline: 10,
4082
+ paddingBlock: 8
4083
+ },
4084
+ children: item === null || item === void 0 ? void 0 : item.label
4085
+ }), item.icon && item.icon.position === 'right' && item.icon.component]
4086
+ })
4087
+ }, item.label)
4088
+ });
4089
+ }
4090
+ // console.log( (size.width) - ((size.width < 450 ? Number(sideMenu?.width.mobile) : size.width < 850 ? Number(sideMenu?.width.tablet) : size.width > 850 ? Number(sideMenu?.width.desktop) : Number(sideMenu?.width.desktop)) + 30))
4091
+ return jsxs(LayoutSection, {
4092
+ className: "".concat(className),
2383
4093
  style: _objectSpread2({
2384
- width: width ? "".concat(width, "px") : 'auto',
2385
- height: height ? "".concat(height, "px") : 'auto',
2386
- paddingInline: paddingX !== null && paddingX !== void 0 ? paddingX : 4,
2387
- paddingBlock: paddingY !== null && paddingY !== void 0 ? paddingY : 4,
2388
- backgroundColor: backgroundColor || 'transparent',
2389
- color: textColor || 'inherit',
2390
- borderTopLeftRadius: typeof rounded === 'number' ? rounded : (_rounded$topLeft = rounded === null || rounded === void 0 ? void 0 : rounded.topLeft) !== null && _rounded$topLeft !== void 0 ? _rounded$topLeft : 4,
2391
- borderTopRightRadius: typeof rounded === 'number' ? rounded : (_rounded$topRight = rounded === null || rounded === void 0 ? void 0 : rounded.topRight) !== null && _rounded$topRight !== void 0 ? _rounded$topRight : 4,
2392
- borderBottomLeftRadius: typeof rounded === 'number' ? rounded : (_rounded$bottomLeft = rounded === null || rounded === void 0 ? void 0 : rounded.bottomLeft) !== null && _rounded$bottomLeft !== void 0 ? _rounded$bottomLeft : 4,
2393
- borderBottomRightRadius: typeof rounded === 'number' ? rounded : (_rounded$bottomRight = rounded === null || rounded === void 0 ? void 0 : rounded.bottomRight) !== null && _rounded$bottomRight !== void 0 ? _rounded$bottomRight : 4,
2394
- cursor: 'pointer'
2395
- }, style),
2396
- onClick: onClick,
2397
- children: label
4094
+ backgroundColor: backgroundColor
4095
+ }, layoutStyle),
4096
+ children: [header && jsx$1("section", {
4097
+ style: _objectSpread2({
4098
+ height: header.height
4099
+ }, header.style),
4100
+ children: header.children && (header === null || header === void 0 ? void 0 : header.children())
4101
+ }), sideMenu && SideMenu({
4102
+ sideMenu: sideMenu,
4103
+ top: ((_header$height = header === null || header === void 0 ? void 0 : header.height) !== null && _header$height !== void 0 ? _header$height : 80) + 20
4104
+ }), jsx$1(Content, {
4105
+ style: {
4106
+ position: 'absolute',
4107
+ left: size.width < 450 ? 0 : size.width < 850 ? sideMenu === null || sideMenu === void 0 ? void 0 : sideMenu.width.tablet : size.width > 850 ? sideMenu === null || sideMenu === void 0 ? void 0 : sideMenu.width.desktop : 300,
4108
+ top: ((_header$height2 = header === null || header === void 0 ? void 0 : header.height) !== null && _header$height2 !== void 0 ? _header$height2 : 80) + 20,
4109
+ padding: 10,
4110
+ height: Number(size.height) - (Number(header === null || header === void 0 ? void 0 : header.height) + 70),
4111
+ margin: 5,
4112
+ zIndex: 10,
4113
+ width: size.width - ((size.width < 450 ? Number(0) : size.width < 850 ? Number((_sideMenu$width$table = sideMenu === null || sideMenu === void 0 || (_sideMenu$width = sideMenu.width) === null || _sideMenu$width === void 0 ? void 0 : _sideMenu$width.tablet) !== null && _sideMenu$width$table !== void 0 ? _sideMenu$width$table : 60) : size.width > 850 ? Number((_sideMenu$width$deskt = sideMenu === null || sideMenu === void 0 || (_sideMenu$width2 = sideMenu.width) === null || _sideMenu$width2 === void 0 ? void 0 : _sideMenu$width2.desktop) !== null && _sideMenu$width$deskt !== void 0 ? _sideMenu$width$deskt : 300) : Number((_sideMenu$width$deskt2 = sideMenu === null || sideMenu === void 0 || (_sideMenu$width3 = sideMenu.width) === null || _sideMenu$width3 === void 0 ? void 0 : _sideMenu$width3.desktop) !== null && _sideMenu$width$deskt2 !== void 0 ? _sideMenu$width$deskt2 : 300)) + 30)
4114
+ },
4115
+ children: content && content()
4116
+ })]
2398
4117
  });
2399
4118
  }
2400
4119
 
2401
- export { Buttons, FlexView };
4120
+ export { Buttons, FlexView, Layout };