quix-ui 1.2.4 → 1.2.5

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