@eightshift/ui-components 0.0.1

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.
Files changed (112) hide show
  1. package/README.md +27 -0
  2. package/dist/Checkbox-BLcVbhiO.js +178 -0
  3. package/dist/ColorSwatch-Cmlex_kT.js +66 -0
  4. package/dist/FieldError-wtMA4667.js +42 -0
  5. package/dist/FocusScope-1u9yyfIN.js +725 -0
  6. package/dist/Form-Cq3fu75_.js +5 -0
  7. package/dist/GridList-BZPXp3_O.js +1256 -0
  8. package/dist/Group-DyqpTRPe.js +49 -0
  9. package/dist/Input-jsbb4ugq.js +130 -0
  10. package/dist/Label-BPzS-sR7.js +17 -0
  11. package/dist/ListBox-w9gDaJkV.js +4423 -0
  12. package/dist/LiveAnnouncer-IsokfWQ5.js +73 -0
  13. package/dist/NumberFormatter-LzoKy975.js +160 -0
  14. package/dist/RSPContexts-CrNYmadY.js +14 -0
  15. package/dist/Select-49a62830.esm-C-RFtLiD.js +2541 -0
  16. package/dist/SelectionManager-mefd0ThJ.js +2155 -0
  17. package/dist/Separator-DHn0CwdK.js +325 -0
  18. package/dist/Slider-Pyh2V4bY.js +885 -0
  19. package/dist/Text-BM136LvS.js +17 -0
  20. package/dist/VisuallyHidden-BYRI1Lfo.js +51 -0
  21. package/dist/_commonjsHelpers-CUmg6egw.js +6 -0
  22. package/dist/ariaHideOutside-ByKBPHmX.js +113 -0
  23. package/dist/assets/style.css +1 -0
  24. package/dist/button-BkkdyHfJ.js +307 -0
  25. package/dist/components/animated-visibility/animated-visibility.js +7165 -0
  26. package/dist/components/base-control/base-control.js +97 -0
  27. package/dist/components/breakpoint-preview/breakpoint-preview.js +218 -0
  28. package/dist/components/button/button.js +10 -0
  29. package/dist/components/checkbox/checkbox.js +119 -0
  30. package/dist/components/color-pickers/color-picker.js +242 -0
  31. package/dist/components/color-pickers/color-swatch.js +62 -0
  32. package/dist/components/color-pickers/gradient-editor.js +516 -0
  33. package/dist/components/color-pickers/solid-color-picker.js +1633 -0
  34. package/dist/components/component-toggle/component-toggle.js +71 -0
  35. package/dist/components/container-panel/container-panel.js +39 -0
  36. package/dist/components/expandable/expandable.js +144 -0
  37. package/dist/components/input-field/input-field.js +224 -0
  38. package/dist/components/link-input/link-input.js +937 -0
  39. package/dist/components/list-box/list-box.js +152 -0
  40. package/dist/components/matrix-align/matrix-align.js +185 -0
  41. package/dist/components/menu/menu.js +1608 -0
  42. package/dist/components/notice/notice.js +119 -0
  43. package/dist/components/number-picker/number-picker.js +277 -0
  44. package/dist/components/popover/popover.js +9 -0
  45. package/dist/components/radio/radio.js +552 -0
  46. package/dist/components/repeater/repeater-item.js +127 -0
  47. package/dist/components/repeater/repeater.js +248 -0
  48. package/dist/components/responsive/responsive-legacy.js +326 -0
  49. package/dist/components/responsive/responsive.js +499 -0
  50. package/dist/components/responsive-preview/responsive-preview.js +119 -0
  51. package/dist/components/rich-label/rich-label.js +56 -0
  52. package/dist/components/select/async-multi-select.js +144 -0
  53. package/dist/components/select/async-single-select.js +126 -0
  54. package/dist/components/select/custom-select-default-components.js +38 -0
  55. package/dist/components/select/multi-select-components.js +8 -0
  56. package/dist/components/select/multi-select.js +134 -0
  57. package/dist/components/select/react-select-component-wrappers.js +90 -0
  58. package/dist/components/select/shared.js +45 -0
  59. package/dist/components/select/single-select.js +116 -0
  60. package/dist/components/select/styles.js +55 -0
  61. package/dist/components/slider/column-config-slider.js +225 -0
  62. package/dist/components/slider/slider.js +362 -0
  63. package/dist/components/slider/utils.js +45 -0
  64. package/dist/components/spacer/spacer.js +93 -0
  65. package/dist/components/tabs/tabs.js +626 -0
  66. package/dist/components/toggle/switch.js +140 -0
  67. package/dist/components/toggle/toggle.js +58 -0
  68. package/dist/components/toggle-button/toggle-button.js +206 -0
  69. package/dist/components/tooltip/tooltip.js +10 -0
  70. package/dist/context-jMy6xdVq.js +98 -0
  71. package/dist/default-i18n-BhE-OUmt.js +873 -0
  72. package/dist/filterDOMProps-DG2RfOUr.js +30 -0
  73. package/dist/focusSafely-C3K8zAKj.js +743 -0
  74. package/dist/hooks/use-cell-edit-mode.js +35 -0
  75. package/dist/icons/block-icon.js +42 -0
  76. package/dist/icons/generic-color-swatch.js +21 -0
  77. package/dist/icons/icons.js +3636 -0
  78. package/dist/index-Bfb9bWcb.js +28844 -0
  79. package/dist/index-a301f526.esm-Bioi4cGX.js +3576 -0
  80. package/dist/index.js +109 -0
  81. package/dist/intlStrings-CUhoK9EN.js +2484 -0
  82. package/dist/isScrollable-PcyglExV.js +10 -0
  83. package/dist/modifiers.esm-BuJQPI1X.js +31 -0
  84. package/dist/multi-select-components-CjVpCNko.js +3677 -0
  85. package/dist/number-rWqELA8W.js +39 -0
  86. package/dist/popover-Dx3vKXUX.js +1061 -0
  87. package/dist/react-select-async.esm-TFb_ZX6C.js +111 -0
  88. package/dist/react-select.esm-BjRWqf0E.js +15 -0
  89. package/dist/style.js +1 -0
  90. package/dist/textSelection-BosCCRVE.js +89 -0
  91. package/dist/tooltip-CkCndvTI.js +1094 -0
  92. package/dist/useButton-CuG5UzUw.js +74 -0
  93. package/dist/useEvent-DHv-yhOH.js +24 -0
  94. package/dist/useFocusRing-Cc-4eouh.js +41 -0
  95. package/dist/useFocusable-5q1Gek1J.js +81 -0
  96. package/dist/useFormReset-Buc9YJcv.js +23 -0
  97. package/dist/useFormValidationState-BAPPNXic.js +238 -0
  98. package/dist/useHasTabbableChild-D3uUNhJ0.js +37 -0
  99. package/dist/useLabel-CGlkoFG0.js +28 -0
  100. package/dist/useLabels-Dg62M_3P.js +25 -0
  101. package/dist/useListData-BelKu4kx.js +211 -0
  102. package/dist/useListState-Domq0blV.js +137 -0
  103. package/dist/useLocalizedStringFormatter-Prmz0h0A.js +130 -0
  104. package/dist/useNumberFieldState-BLU3uhSR.js +1253 -0
  105. package/dist/useNumberFormatter-BLc2xjZn.js +13 -0
  106. package/dist/usePress-BQgVor4T.js +698 -0
  107. package/dist/useToggle-C9ETOBaZ.js +58 -0
  108. package/dist/useToggleState-DJ_z5E2S.js +21 -0
  109. package/dist/utilities/classnames.js +16 -0
  110. package/dist/utilities/text-helpers.js +79 -0
  111. package/dist/utils-BsiH7-5Y.js +488 -0
  112. package/package.json +71 -0
@@ -0,0 +1,3576 @@
1
+ import * as React from "react";
2
+ import { forwardRef, useContext, useLayoutEffect, useRef, useState, useMemo, useCallback, createContext } from "react";
3
+ import { r as reactDomExports } from "./index-Bfb9bWcb.js";
4
+ function _typeof(o) {
5
+ "@babel/helpers - typeof";
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
7
+ return typeof o2;
8
+ } : function(o2) {
9
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
10
+ }, _typeof(o);
11
+ }
12
+ function toPrimitive(t, r) {
13
+ if ("object" != _typeof(t) || !t)
14
+ return t;
15
+ var e = t[Symbol.toPrimitive];
16
+ if (void 0 !== e) {
17
+ var i = e.call(t, r || "default");
18
+ if ("object" != _typeof(i))
19
+ return i;
20
+ throw new TypeError("@@toPrimitive must return a primitive value.");
21
+ }
22
+ return ("string" === r ? String : Number)(t);
23
+ }
24
+ function toPropertyKey(t) {
25
+ var i = toPrimitive(t, "string");
26
+ return "symbol" == _typeof(i) ? i : i + "";
27
+ }
28
+ function _defineProperty(obj, key, value) {
29
+ key = toPropertyKey(key);
30
+ if (key in obj) {
31
+ Object.defineProperty(obj, key, {
32
+ value,
33
+ enumerable: true,
34
+ configurable: true,
35
+ writable: true
36
+ });
37
+ } else {
38
+ obj[key] = value;
39
+ }
40
+ return obj;
41
+ }
42
+ function ownKeys(e, r) {
43
+ var t = Object.keys(e);
44
+ if (Object.getOwnPropertySymbols) {
45
+ var o = Object.getOwnPropertySymbols(e);
46
+ r && (o = o.filter(function(r2) {
47
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
48
+ })), t.push.apply(t, o);
49
+ }
50
+ return t;
51
+ }
52
+ function _objectSpread2(e) {
53
+ for (var r = 1; r < arguments.length; r++) {
54
+ var t = null != arguments[r] ? arguments[r] : {};
55
+ r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
56
+ _defineProperty(e, r2, t[r2]);
57
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
58
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
59
+ });
60
+ }
61
+ return e;
62
+ }
63
+ function _arrayWithHoles(arr) {
64
+ if (Array.isArray(arr))
65
+ return arr;
66
+ }
67
+ function _iterableToArrayLimit(r, l) {
68
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
69
+ if (null != t) {
70
+ var e, n, i, u, a = [], f = true, o = false;
71
+ try {
72
+ if (i = (t = t.call(r)).next, 0 === l) {
73
+ if (Object(t) !== t)
74
+ return;
75
+ f = false;
76
+ } else
77
+ for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true)
78
+ ;
79
+ } catch (r2) {
80
+ o = true, n = r2;
81
+ } finally {
82
+ try {
83
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u))
84
+ return;
85
+ } finally {
86
+ if (o)
87
+ throw n;
88
+ }
89
+ }
90
+ return a;
91
+ }
92
+ }
93
+ function _arrayLikeToArray(arr, len) {
94
+ if (len == null || len > arr.length)
95
+ len = arr.length;
96
+ for (var i = 0, arr2 = new Array(len); i < len; i++)
97
+ arr2[i] = arr[i];
98
+ return arr2;
99
+ }
100
+ function _unsupportedIterableToArray(o, minLen) {
101
+ if (!o)
102
+ return;
103
+ if (typeof o === "string")
104
+ return _arrayLikeToArray(o, minLen);
105
+ var n = Object.prototype.toString.call(o).slice(8, -1);
106
+ if (n === "Object" && o.constructor)
107
+ n = o.constructor.name;
108
+ if (n === "Map" || n === "Set")
109
+ return Array.from(o);
110
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
111
+ return _arrayLikeToArray(o, minLen);
112
+ }
113
+ function _nonIterableRest() {
114
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
115
+ }
116
+ function _slicedToArray(arr, i) {
117
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
118
+ }
119
+ function _objectWithoutPropertiesLoose(source, excluded) {
120
+ if (source == null)
121
+ return {};
122
+ var target = {};
123
+ for (var key in source) {
124
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
125
+ if (excluded.indexOf(key) >= 0)
126
+ continue;
127
+ target[key] = source[key];
128
+ }
129
+ }
130
+ return target;
131
+ }
132
+ function _objectWithoutProperties(source, excluded) {
133
+ if (source == null)
134
+ return {};
135
+ var target = _objectWithoutPropertiesLoose(source, excluded);
136
+ var key, i;
137
+ if (Object.getOwnPropertySymbols) {
138
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
139
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
140
+ key = sourceSymbolKeys[i];
141
+ if (excluded.indexOf(key) >= 0)
142
+ continue;
143
+ if (!Object.prototype.propertyIsEnumerable.call(source, key))
144
+ continue;
145
+ target[key] = source[key];
146
+ }
147
+ }
148
+ return target;
149
+ }
150
+ function _extends() {
151
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
152
+ for (var i = 1; i < arguments.length; i++) {
153
+ var source = arguments[i];
154
+ for (var key in source) {
155
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
156
+ target[key] = source[key];
157
+ }
158
+ }
159
+ }
160
+ return target;
161
+ };
162
+ return _extends.apply(this, arguments);
163
+ }
164
+ function sheetForTag(tag) {
165
+ if (tag.sheet) {
166
+ return tag.sheet;
167
+ }
168
+ for (var i = 0; i < document.styleSheets.length; i++) {
169
+ if (document.styleSheets[i].ownerNode === tag) {
170
+ return document.styleSheets[i];
171
+ }
172
+ }
173
+ }
174
+ function createStyleElement(options2) {
175
+ var tag = document.createElement("style");
176
+ tag.setAttribute("data-emotion", options2.key);
177
+ if (options2.nonce !== void 0) {
178
+ tag.setAttribute("nonce", options2.nonce);
179
+ }
180
+ tag.appendChild(document.createTextNode(""));
181
+ tag.setAttribute("data-s", "");
182
+ return tag;
183
+ }
184
+ var StyleSheet = /* @__PURE__ */ function() {
185
+ function StyleSheet2(options2) {
186
+ var _this = this;
187
+ this._insertTag = function(tag) {
188
+ var before;
189
+ if (_this.tags.length === 0) {
190
+ if (_this.insertionPoint) {
191
+ before = _this.insertionPoint.nextSibling;
192
+ } else if (_this.prepend) {
193
+ before = _this.container.firstChild;
194
+ } else {
195
+ before = _this.before;
196
+ }
197
+ } else {
198
+ before = _this.tags[_this.tags.length - 1].nextSibling;
199
+ }
200
+ _this.container.insertBefore(tag, before);
201
+ _this.tags.push(tag);
202
+ };
203
+ this.isSpeedy = options2.speedy === void 0 ? process.env.NODE_ENV === "production" : options2.speedy;
204
+ this.tags = [];
205
+ this.ctr = 0;
206
+ this.nonce = options2.nonce;
207
+ this.key = options2.key;
208
+ this.container = options2.container;
209
+ this.prepend = options2.prepend;
210
+ this.insertionPoint = options2.insertionPoint;
211
+ this.before = null;
212
+ }
213
+ var _proto = StyleSheet2.prototype;
214
+ _proto.hydrate = function hydrate(nodes) {
215
+ nodes.forEach(this._insertTag);
216
+ };
217
+ _proto.insert = function insert(rule) {
218
+ if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
219
+ this._insertTag(createStyleElement(this));
220
+ }
221
+ var tag = this.tags[this.tags.length - 1];
222
+ if (process.env.NODE_ENV !== "production") {
223
+ var isImportRule3 = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
224
+ if (isImportRule3 && this._alreadyInsertedOrderInsensitiveRule) {
225
+ console.error("You're attempting to insert the following rule:\n" + rule + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.");
226
+ }
227
+ this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule3;
228
+ }
229
+ if (this.isSpeedy) {
230
+ var sheet = sheetForTag(tag);
231
+ try {
232
+ sheet.insertRule(rule, sheet.cssRules.length);
233
+ } catch (e) {
234
+ if (process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
235
+ console.error('There was a problem inserting the following rule: "' + rule + '"', e);
236
+ }
237
+ }
238
+ } else {
239
+ tag.appendChild(document.createTextNode(rule));
240
+ }
241
+ this.ctr++;
242
+ };
243
+ _proto.flush = function flush() {
244
+ this.tags.forEach(function(tag) {
245
+ return tag.parentNode && tag.parentNode.removeChild(tag);
246
+ });
247
+ this.tags = [];
248
+ this.ctr = 0;
249
+ if (process.env.NODE_ENV !== "production") {
250
+ this._alreadyInsertedOrderInsensitiveRule = false;
251
+ }
252
+ };
253
+ return StyleSheet2;
254
+ }();
255
+ var MS = "-ms-";
256
+ var MOZ = "-moz-";
257
+ var WEBKIT = "-webkit-";
258
+ var COMMENT = "comm";
259
+ var RULESET = "rule";
260
+ var DECLARATION = "decl";
261
+ var IMPORT = "@import";
262
+ var KEYFRAMES = "@keyframes";
263
+ var LAYER = "@layer";
264
+ var abs = Math.abs;
265
+ var from = String.fromCharCode;
266
+ var assign = Object.assign;
267
+ function hash(value, length2) {
268
+ return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
269
+ }
270
+ function trim(value) {
271
+ return value.trim();
272
+ }
273
+ function match(value, pattern) {
274
+ return (value = pattern.exec(value)) ? value[0] : value;
275
+ }
276
+ function replace(value, pattern, replacement) {
277
+ return value.replace(pattern, replacement);
278
+ }
279
+ function indexof(value, search) {
280
+ return value.indexOf(search);
281
+ }
282
+ function charat(value, index2) {
283
+ return value.charCodeAt(index2) | 0;
284
+ }
285
+ function substr(value, begin, end) {
286
+ return value.slice(begin, end);
287
+ }
288
+ function strlen(value) {
289
+ return value.length;
290
+ }
291
+ function sizeof(value) {
292
+ return value.length;
293
+ }
294
+ function append(value, array) {
295
+ return array.push(value), value;
296
+ }
297
+ function combine(array, callback) {
298
+ return array.map(callback).join("");
299
+ }
300
+ var line = 1;
301
+ var column = 1;
302
+ var length = 0;
303
+ var position = 0;
304
+ var character = 0;
305
+ var characters = "";
306
+ function node(value, root, parent, type, props, children, length2) {
307
+ return { value, root, parent, type, props, children, line, column, length: length2, return: "" };
308
+ }
309
+ function copy(root, props) {
310
+ return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
311
+ }
312
+ function char() {
313
+ return character;
314
+ }
315
+ function prev() {
316
+ character = position > 0 ? charat(characters, --position) : 0;
317
+ if (column--, character === 10)
318
+ column = 1, line--;
319
+ return character;
320
+ }
321
+ function next() {
322
+ character = position < length ? charat(characters, position++) : 0;
323
+ if (column++, character === 10)
324
+ column = 1, line++;
325
+ return character;
326
+ }
327
+ function peek() {
328
+ return charat(characters, position);
329
+ }
330
+ function caret() {
331
+ return position;
332
+ }
333
+ function slice(begin, end) {
334
+ return substr(characters, begin, end);
335
+ }
336
+ function token(type) {
337
+ switch (type) {
338
+ case 0:
339
+ case 9:
340
+ case 10:
341
+ case 13:
342
+ case 32:
343
+ return 5;
344
+ case 33:
345
+ case 43:
346
+ case 44:
347
+ case 47:
348
+ case 62:
349
+ case 64:
350
+ case 126:
351
+ case 59:
352
+ case 123:
353
+ case 125:
354
+ return 4;
355
+ case 58:
356
+ return 3;
357
+ case 34:
358
+ case 39:
359
+ case 40:
360
+ case 91:
361
+ return 2;
362
+ case 41:
363
+ case 93:
364
+ return 1;
365
+ }
366
+ return 0;
367
+ }
368
+ function alloc(value) {
369
+ return line = column = 1, length = strlen(characters = value), position = 0, [];
370
+ }
371
+ function dealloc(value) {
372
+ return characters = "", value;
373
+ }
374
+ function delimit(type) {
375
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
376
+ }
377
+ function whitespace(type) {
378
+ while (character = peek())
379
+ if (character < 33)
380
+ next();
381
+ else
382
+ break;
383
+ return token(type) > 2 || token(character) > 3 ? "" : " ";
384
+ }
385
+ function escaping(index2, count) {
386
+ while (--count && next())
387
+ if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
388
+ break;
389
+ return slice(index2, caret() + (count < 6 && peek() == 32 && next() == 32));
390
+ }
391
+ function delimiter(type) {
392
+ while (next())
393
+ switch (character) {
394
+ case type:
395
+ return position;
396
+ case 34:
397
+ case 39:
398
+ if (type !== 34 && type !== 39)
399
+ delimiter(character);
400
+ break;
401
+ case 40:
402
+ if (type === 41)
403
+ delimiter(type);
404
+ break;
405
+ case 92:
406
+ next();
407
+ break;
408
+ }
409
+ return position;
410
+ }
411
+ function commenter(type, index2) {
412
+ while (next())
413
+ if (type + character === 47 + 10)
414
+ break;
415
+ else if (type + character === 42 + 42 && peek() === 47)
416
+ break;
417
+ return "/*" + slice(index2, position - 1) + "*" + from(type === 47 ? type : next());
418
+ }
419
+ function identifier(index2) {
420
+ while (!token(peek()))
421
+ next();
422
+ return slice(index2, position);
423
+ }
424
+ function compile(value) {
425
+ return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
426
+ }
427
+ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
428
+ var index2 = 0;
429
+ var offset = 0;
430
+ var length2 = pseudo;
431
+ var atrule = 0;
432
+ var property = 0;
433
+ var previous = 0;
434
+ var variable = 1;
435
+ var scanning = 1;
436
+ var ampersand = 1;
437
+ var character2 = 0;
438
+ var type = "";
439
+ var props = rules;
440
+ var children = rulesets;
441
+ var reference = rule;
442
+ var characters2 = type;
443
+ while (scanning)
444
+ switch (previous = character2, character2 = next()) {
445
+ case 40:
446
+ if (previous != 108 && charat(characters2, length2 - 1) == 58) {
447
+ if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
448
+ ampersand = -1;
449
+ break;
450
+ }
451
+ case 34:
452
+ case 39:
453
+ case 91:
454
+ characters2 += delimit(character2);
455
+ break;
456
+ case 9:
457
+ case 10:
458
+ case 13:
459
+ case 32:
460
+ characters2 += whitespace(previous);
461
+ break;
462
+ case 92:
463
+ characters2 += escaping(caret() - 1, 7);
464
+ continue;
465
+ case 47:
466
+ switch (peek()) {
467
+ case 42:
468
+ case 47:
469
+ append(comment(commenter(next(), caret()), root, parent), declarations);
470
+ break;
471
+ default:
472
+ characters2 += "/";
473
+ }
474
+ break;
475
+ case 123 * variable:
476
+ points[index2++] = strlen(characters2) * ampersand;
477
+ case 125 * variable:
478
+ case 59:
479
+ case 0:
480
+ switch (character2) {
481
+ case 0:
482
+ case 125:
483
+ scanning = 0;
484
+ case 59 + offset:
485
+ if (ampersand == -1)
486
+ characters2 = replace(characters2, /\f/g, "");
487
+ if (property > 0 && strlen(characters2) - length2)
488
+ append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
489
+ break;
490
+ case 59:
491
+ characters2 += ";";
492
+ default:
493
+ append(reference = ruleset(characters2, root, parent, index2, offset, rules, points, type, props = [], children = [], length2), rulesets);
494
+ if (character2 === 123)
495
+ if (offset === 0)
496
+ parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
497
+ else
498
+ switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
499
+ case 100:
500
+ case 108:
501
+ case 109:
502
+ case 115:
503
+ 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);
504
+ break;
505
+ default:
506
+ parse(characters2, reference, reference, reference, [""], children, 0, points, children);
507
+ }
508
+ }
509
+ index2 = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
510
+ break;
511
+ case 58:
512
+ length2 = 1 + strlen(characters2), property = previous;
513
+ default:
514
+ if (variable < 1) {
515
+ if (character2 == 123)
516
+ --variable;
517
+ else if (character2 == 125 && variable++ == 0 && prev() == 125)
518
+ continue;
519
+ }
520
+ switch (characters2 += from(character2), character2 * variable) {
521
+ case 38:
522
+ ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
523
+ break;
524
+ case 44:
525
+ points[index2++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
526
+ break;
527
+ case 64:
528
+ if (peek() === 45)
529
+ characters2 += delimit(next());
530
+ atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
531
+ break;
532
+ case 45:
533
+ if (previous === 45 && strlen(characters2) == 2)
534
+ variable = 0;
535
+ }
536
+ }
537
+ return rulesets;
538
+ }
539
+ function ruleset(value, root, parent, index2, offset, rules, points, type, props, children, length2) {
540
+ var post = offset - 1;
541
+ var rule = offset === 0 ? rules : [""];
542
+ var size = sizeof(rule);
543
+ for (var i = 0, j = 0, k = 0; i < index2; ++i)
544
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
545
+ if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
546
+ props[k++] = z;
547
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
548
+ }
549
+ function comment(value, root, parent) {
550
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
551
+ }
552
+ function declaration(value, root, parent, length2) {
553
+ return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
554
+ }
555
+ function serialize(children, callback) {
556
+ var output = "";
557
+ var length2 = sizeof(children);
558
+ for (var i = 0; i < length2; i++)
559
+ output += callback(children[i], i, children, callback) || "";
560
+ return output;
561
+ }
562
+ function stringify(element, index2, children, callback) {
563
+ switch (element.type) {
564
+ case LAYER:
565
+ if (element.children.length)
566
+ break;
567
+ case IMPORT:
568
+ case DECLARATION:
569
+ return element.return = element.return || element.value;
570
+ case COMMENT:
571
+ return "";
572
+ case KEYFRAMES:
573
+ return element.return = element.value + "{" + serialize(element.children, callback) + "}";
574
+ case RULESET:
575
+ element.value = element.props.join(",");
576
+ }
577
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
578
+ }
579
+ function middleware(collection) {
580
+ var length2 = sizeof(collection);
581
+ return function(element, index2, children, callback) {
582
+ var output = "";
583
+ for (var i = 0; i < length2; i++)
584
+ output += collection[i](element, index2, children, callback) || "";
585
+ return output;
586
+ };
587
+ }
588
+ function rulesheet(callback) {
589
+ return function(element) {
590
+ if (!element.root) {
591
+ if (element = element.return)
592
+ callback(element);
593
+ }
594
+ };
595
+ }
596
+ function memoize(fn) {
597
+ var cache = /* @__PURE__ */ Object.create(null);
598
+ return function(arg) {
599
+ if (cache[arg] === void 0)
600
+ cache[arg] = fn(arg);
601
+ return cache[arg];
602
+ };
603
+ }
604
+ var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index2) {
605
+ var previous = 0;
606
+ var character2 = 0;
607
+ while (true) {
608
+ previous = character2;
609
+ character2 = peek();
610
+ if (previous === 38 && character2 === 12) {
611
+ points[index2] = 1;
612
+ }
613
+ if (token(character2)) {
614
+ break;
615
+ }
616
+ next();
617
+ }
618
+ return slice(begin, position);
619
+ };
620
+ var toRules = function toRules2(parsed, points) {
621
+ var index2 = -1;
622
+ var character2 = 44;
623
+ do {
624
+ switch (token(character2)) {
625
+ case 0:
626
+ if (character2 === 38 && peek() === 12) {
627
+ points[index2] = 1;
628
+ }
629
+ parsed[index2] += identifierWithPointTracking(position - 1, points, index2);
630
+ break;
631
+ case 2:
632
+ parsed[index2] += delimit(character2);
633
+ break;
634
+ case 4:
635
+ if (character2 === 44) {
636
+ parsed[++index2] = peek() === 58 ? "&\f" : "";
637
+ points[index2] = parsed[index2].length;
638
+ break;
639
+ }
640
+ default:
641
+ parsed[index2] += from(character2);
642
+ }
643
+ } while (character2 = next());
644
+ return parsed;
645
+ };
646
+ var getRules = function getRules2(value, points) {
647
+ return dealloc(toRules(alloc(value), points));
648
+ };
649
+ var fixedElements = /* @__PURE__ */ new WeakMap();
650
+ var compat = function compat2(element) {
651
+ if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
652
+ // negative .length indicates that this rule has been already prefixed
653
+ element.length < 1) {
654
+ return;
655
+ }
656
+ var value = element.value, parent = element.parent;
657
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
658
+ while (parent.type !== "rule") {
659
+ parent = parent.parent;
660
+ if (!parent)
661
+ return;
662
+ }
663
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
664
+ return;
665
+ }
666
+ if (isImplicitRule) {
667
+ return;
668
+ }
669
+ fixedElements.set(element, true);
670
+ var points = [];
671
+ var rules = getRules(value, points);
672
+ var parentRules = parent.props;
673
+ for (var i = 0, k = 0; i < rules.length; i++) {
674
+ for (var j = 0; j < parentRules.length; j++, k++) {
675
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
676
+ }
677
+ }
678
+ };
679
+ var removeLabel = function removeLabel2(element) {
680
+ if (element.type === "decl") {
681
+ var value = element.value;
682
+ if (
683
+ // charcode for l
684
+ value.charCodeAt(0) === 108 && // charcode for b
685
+ value.charCodeAt(2) === 98
686
+ ) {
687
+ element["return"] = "";
688
+ element.value = "";
689
+ }
690
+ }
691
+ };
692
+ var ignoreFlag = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason";
693
+ var isIgnoringComment = function isIgnoringComment2(element) {
694
+ return element.type === "comm" && element.children.indexOf(ignoreFlag) > -1;
695
+ };
696
+ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm2(cache) {
697
+ return function(element, index2, children) {
698
+ if (element.type !== "rule" || cache.compat)
699
+ return;
700
+ var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
701
+ if (unsafePseudoClasses) {
702
+ var isNested = !!element.parent;
703
+ var commentContainer = isNested ? element.parent.children : (
704
+ // global rule at the root level
705
+ children
706
+ );
707
+ for (var i = commentContainer.length - 1; i >= 0; i--) {
708
+ var node2 = commentContainer[i];
709
+ if (node2.line < element.line) {
710
+ break;
711
+ }
712
+ if (node2.column < element.column) {
713
+ if (isIgnoringComment(node2)) {
714
+ return;
715
+ }
716
+ break;
717
+ }
718
+ }
719
+ unsafePseudoClasses.forEach(function(unsafePseudoClass) {
720
+ console.error('The pseudo class "' + unsafePseudoClass + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + unsafePseudoClass.split("-child")[0] + '-of-type".');
721
+ });
722
+ }
723
+ };
724
+ };
725
+ var isImportRule = function isImportRule2(element) {
726
+ return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
727
+ };
728
+ var isPrependedWithRegularRules = function isPrependedWithRegularRules2(index2, children) {
729
+ for (var i = index2 - 1; i >= 0; i--) {
730
+ if (!isImportRule(children[i])) {
731
+ return true;
732
+ }
733
+ }
734
+ return false;
735
+ };
736
+ var nullifyElement = function nullifyElement2(element) {
737
+ element.type = "";
738
+ element.value = "";
739
+ element["return"] = "";
740
+ element.children = "";
741
+ element.props = "";
742
+ };
743
+ var incorrectImportAlarm = function incorrectImportAlarm2(element, index2, children) {
744
+ if (!isImportRule(element)) {
745
+ return;
746
+ }
747
+ if (element.parent) {
748
+ console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
749
+ nullifyElement(element);
750
+ } else if (isPrependedWithRegularRules(index2, children)) {
751
+ console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
752
+ nullifyElement(element);
753
+ }
754
+ };
755
+ function prefix(value, length2) {
756
+ switch (hash(value, length2)) {
757
+ case 5103:
758
+ return WEBKIT + "print-" + value + value;
759
+ case 5737:
760
+ case 4201:
761
+ case 3177:
762
+ case 3433:
763
+ case 1641:
764
+ case 4457:
765
+ case 2921:
766
+ case 5572:
767
+ case 6356:
768
+ case 5844:
769
+ case 3191:
770
+ case 6645:
771
+ case 3005:
772
+ case 6391:
773
+ case 5879:
774
+ case 5623:
775
+ case 6135:
776
+ case 4599:
777
+ case 4855:
778
+ case 4215:
779
+ case 6389:
780
+ case 5109:
781
+ case 5365:
782
+ case 5621:
783
+ case 3829:
784
+ return WEBKIT + value + value;
785
+ case 5349:
786
+ case 4246:
787
+ case 4810:
788
+ case 6968:
789
+ case 2756:
790
+ return WEBKIT + value + MOZ + value + MS + value + value;
791
+ case 6828:
792
+ case 4268:
793
+ return WEBKIT + value + MS + value + value;
794
+ case 6165:
795
+ return WEBKIT + value + MS + "flex-" + value + value;
796
+ case 5187:
797
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
798
+ case 5443:
799
+ return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
800
+ case 4675:
801
+ return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
802
+ case 5548:
803
+ return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
804
+ case 5292:
805
+ return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
806
+ case 6060:
807
+ return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
808
+ case 4554:
809
+ return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
810
+ case 6187:
811
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
812
+ case 5495:
813
+ case 3959:
814
+ return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
815
+ case 4968:
816
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
817
+ case 4095:
818
+ case 3583:
819
+ case 4068:
820
+ case 2532:
821
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
822
+ case 8116:
823
+ case 7059:
824
+ case 5753:
825
+ case 5535:
826
+ case 5445:
827
+ case 5701:
828
+ case 4933:
829
+ case 4677:
830
+ case 5533:
831
+ case 5789:
832
+ case 5021:
833
+ case 4765:
834
+ if (strlen(value) - 1 - length2 > 6)
835
+ switch (charat(value, length2 + 1)) {
836
+ case 109:
837
+ if (charat(value, length2 + 4) !== 45)
838
+ break;
839
+ case 102:
840
+ return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
841
+ case 115:
842
+ return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
843
+ }
844
+ break;
845
+ case 4949:
846
+ if (charat(value, length2 + 1) !== 115)
847
+ break;
848
+ case 6444:
849
+ switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
850
+ case 107:
851
+ return replace(value, ":", ":" + WEBKIT) + value;
852
+ case 101:
853
+ return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
854
+ }
855
+ break;
856
+ case 5936:
857
+ switch (charat(value, length2 + 11)) {
858
+ case 114:
859
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
860
+ case 108:
861
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
862
+ case 45:
863
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
864
+ }
865
+ return WEBKIT + value + MS + value + value;
866
+ }
867
+ return value;
868
+ }
869
+ var prefixer = function prefixer2(element, index2, children, callback) {
870
+ if (element.length > -1) {
871
+ if (!element["return"])
872
+ switch (element.type) {
873
+ case DECLARATION:
874
+ element["return"] = prefix(element.value, element.length);
875
+ break;
876
+ case KEYFRAMES:
877
+ return serialize([copy(element, {
878
+ value: replace(element.value, "@", "@" + WEBKIT)
879
+ })], callback);
880
+ case RULESET:
881
+ if (element.length)
882
+ return combine(element.props, function(value) {
883
+ switch (match(value, /(::plac\w+|:read-\w+)/)) {
884
+ case ":read-only":
885
+ case ":read-write":
886
+ return serialize([copy(element, {
887
+ props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
888
+ })], callback);
889
+ case "::placeholder":
890
+ return serialize([copy(element, {
891
+ props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
892
+ }), copy(element, {
893
+ props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
894
+ }), copy(element, {
895
+ props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
896
+ })], callback);
897
+ }
898
+ return "";
899
+ });
900
+ }
901
+ }
902
+ };
903
+ var defaultStylisPlugins = [prefixer];
904
+ var createCache = function createCache2(options2) {
905
+ var key = options2.key;
906
+ if (process.env.NODE_ENV !== "production" && !key) {
907
+ throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");
908
+ }
909
+ if (key === "css") {
910
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
911
+ Array.prototype.forEach.call(ssrStyles, function(node2) {
912
+ var dataEmotionAttribute = node2.getAttribute("data-emotion");
913
+ if (dataEmotionAttribute.indexOf(" ") === -1) {
914
+ return;
915
+ }
916
+ document.head.appendChild(node2);
917
+ node2.setAttribute("data-s", "");
918
+ });
919
+ }
920
+ var stylisPlugins = options2.stylisPlugins || defaultStylisPlugins;
921
+ if (process.env.NODE_ENV !== "production") {
922
+ if (/[^a-z-]/.test(key)) {
923
+ throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed');
924
+ }
925
+ }
926
+ var inserted = {};
927
+ var container;
928
+ var nodesToHydrate = [];
929
+ {
930
+ container = options2.container || document.head;
931
+ Array.prototype.forEach.call(
932
+ // this means we will ignore elements which don't have a space in them which
933
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
934
+ document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
935
+ function(node2) {
936
+ var attrib = node2.getAttribute("data-emotion").split(" ");
937
+ for (var i = 1; i < attrib.length; i++) {
938
+ inserted[attrib[i]] = true;
939
+ }
940
+ nodesToHydrate.push(node2);
941
+ }
942
+ );
943
+ }
944
+ var _insert;
945
+ var omnipresentPlugins = [compat, removeLabel];
946
+ if (process.env.NODE_ENV !== "production") {
947
+ omnipresentPlugins.push(createUnsafeSelectorsAlarm({
948
+ get compat() {
949
+ return cache.compat;
950
+ }
951
+ }), incorrectImportAlarm);
952
+ }
953
+ {
954
+ var currentSheet;
955
+ var finalizingPlugins = [stringify, process.env.NODE_ENV !== "production" ? function(element) {
956
+ if (!element.root) {
957
+ if (element["return"]) {
958
+ currentSheet.insert(element["return"]);
959
+ } else if (element.value && element.type !== COMMENT) {
960
+ currentSheet.insert(element.value + "{}");
961
+ }
962
+ }
963
+ } : rulesheet(function(rule) {
964
+ currentSheet.insert(rule);
965
+ })];
966
+ var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
967
+ var stylis = function stylis2(styles) {
968
+ return serialize(compile(styles), serializer);
969
+ };
970
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
971
+ currentSheet = sheet;
972
+ if (process.env.NODE_ENV !== "production" && serialized.map !== void 0) {
973
+ currentSheet = {
974
+ insert: function insert2(rule) {
975
+ sheet.insert(rule + serialized.map);
976
+ }
977
+ };
978
+ }
979
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
980
+ if (shouldCache) {
981
+ cache.inserted[serialized.name] = true;
982
+ }
983
+ };
984
+ }
985
+ var cache = {
986
+ key,
987
+ sheet: new StyleSheet({
988
+ key,
989
+ container,
990
+ nonce: options2.nonce,
991
+ speedy: options2.speedy,
992
+ prepend: options2.prepend,
993
+ insertionPoint: options2.insertionPoint
994
+ }),
995
+ nonce: options2.nonce,
996
+ inserted,
997
+ registered: {},
998
+ insert: _insert
999
+ };
1000
+ cache.sheet.hydrate(nodesToHydrate);
1001
+ return cache;
1002
+ };
1003
+ var reactIs$1 = { exports: {} };
1004
+ var reactIs_production_min = {};
1005
+ /** @license React v16.13.1
1006
+ * react-is.production.min.js
1007
+ *
1008
+ * Copyright (c) Facebook, Inc. and its affiliates.
1009
+ *
1010
+ * This source code is licensed under the MIT license found in the
1011
+ * LICENSE file in the root directory of this source tree.
1012
+ */
1013
+ var hasRequiredReactIs_production_min;
1014
+ function requireReactIs_production_min() {
1015
+ if (hasRequiredReactIs_production_min)
1016
+ return reactIs_production_min;
1017
+ hasRequiredReactIs_production_min = 1;
1018
+ var b = "function" === typeof Symbol && 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, w2 = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
1019
+ function z(a) {
1020
+ if ("object" === typeof a && null !== a) {
1021
+ var u = a.$$typeof;
1022
+ switch (u) {
1023
+ case c:
1024
+ switch (a = a.type, a) {
1025
+ case l:
1026
+ case m:
1027
+ case e:
1028
+ case g:
1029
+ case f:
1030
+ case p:
1031
+ return a;
1032
+ default:
1033
+ switch (a = a && a.$$typeof, a) {
1034
+ case k:
1035
+ case n:
1036
+ case t:
1037
+ case r:
1038
+ case h:
1039
+ return a;
1040
+ default:
1041
+ return u;
1042
+ }
1043
+ }
1044
+ case d:
1045
+ return u;
1046
+ }
1047
+ }
1048
+ }
1049
+ function A(a) {
1050
+ return z(a) === m;
1051
+ }
1052
+ reactIs_production_min.AsyncMode = l;
1053
+ reactIs_production_min.ConcurrentMode = m;
1054
+ reactIs_production_min.ContextConsumer = k;
1055
+ reactIs_production_min.ContextProvider = h;
1056
+ reactIs_production_min.Element = c;
1057
+ reactIs_production_min.ForwardRef = n;
1058
+ reactIs_production_min.Fragment = e;
1059
+ reactIs_production_min.Lazy = t;
1060
+ reactIs_production_min.Memo = r;
1061
+ reactIs_production_min.Portal = d;
1062
+ reactIs_production_min.Profiler = g;
1063
+ reactIs_production_min.StrictMode = f;
1064
+ reactIs_production_min.Suspense = p;
1065
+ reactIs_production_min.isAsyncMode = function(a) {
1066
+ return A(a) || z(a) === l;
1067
+ };
1068
+ reactIs_production_min.isConcurrentMode = A;
1069
+ reactIs_production_min.isContextConsumer = function(a) {
1070
+ return z(a) === k;
1071
+ };
1072
+ reactIs_production_min.isContextProvider = function(a) {
1073
+ return z(a) === h;
1074
+ };
1075
+ reactIs_production_min.isElement = function(a) {
1076
+ return "object" === typeof a && null !== a && a.$$typeof === c;
1077
+ };
1078
+ reactIs_production_min.isForwardRef = function(a) {
1079
+ return z(a) === n;
1080
+ };
1081
+ reactIs_production_min.isFragment = function(a) {
1082
+ return z(a) === e;
1083
+ };
1084
+ reactIs_production_min.isLazy = function(a) {
1085
+ return z(a) === t;
1086
+ };
1087
+ reactIs_production_min.isMemo = function(a) {
1088
+ return z(a) === r;
1089
+ };
1090
+ reactIs_production_min.isPortal = function(a) {
1091
+ return z(a) === d;
1092
+ };
1093
+ reactIs_production_min.isProfiler = function(a) {
1094
+ return z(a) === g;
1095
+ };
1096
+ reactIs_production_min.isStrictMode = function(a) {
1097
+ return z(a) === f;
1098
+ };
1099
+ reactIs_production_min.isSuspense = function(a) {
1100
+ return z(a) === p;
1101
+ };
1102
+ reactIs_production_min.isValidElementType = function(a) {
1103
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w2 || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
1104
+ };
1105
+ reactIs_production_min.typeOf = z;
1106
+ return reactIs_production_min;
1107
+ }
1108
+ var reactIs_development = {};
1109
+ /** @license React v16.13.1
1110
+ * react-is.development.js
1111
+ *
1112
+ * Copyright (c) Facebook, Inc. and its affiliates.
1113
+ *
1114
+ * This source code is licensed under the MIT license found in the
1115
+ * LICENSE file in the root directory of this source tree.
1116
+ */
1117
+ var hasRequiredReactIs_development;
1118
+ function requireReactIs_development() {
1119
+ if (hasRequiredReactIs_development)
1120
+ return reactIs_development;
1121
+ hasRequiredReactIs_development = 1;
1122
+ if (process.env.NODE_ENV !== "production") {
1123
+ (function() {
1124
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
1125
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
1126
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
1127
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
1128
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
1129
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
1130
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
1131
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
1132
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
1133
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
1134
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
1135
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
1136
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
1137
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
1138
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
1139
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
1140
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
1141
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
1142
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
1143
+ function isValidElementType(type) {
1144
+ return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1145
+ 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);
1146
+ }
1147
+ function typeOf(object) {
1148
+ if (typeof object === "object" && object !== null) {
1149
+ var $$typeof = object.$$typeof;
1150
+ switch ($$typeof) {
1151
+ case REACT_ELEMENT_TYPE:
1152
+ var type = object.type;
1153
+ switch (type) {
1154
+ case REACT_ASYNC_MODE_TYPE:
1155
+ case REACT_CONCURRENT_MODE_TYPE:
1156
+ case REACT_FRAGMENT_TYPE:
1157
+ case REACT_PROFILER_TYPE:
1158
+ case REACT_STRICT_MODE_TYPE:
1159
+ case REACT_SUSPENSE_TYPE:
1160
+ return type;
1161
+ default:
1162
+ var $$typeofType = type && type.$$typeof;
1163
+ switch ($$typeofType) {
1164
+ case REACT_CONTEXT_TYPE:
1165
+ case REACT_FORWARD_REF_TYPE:
1166
+ case REACT_LAZY_TYPE:
1167
+ case REACT_MEMO_TYPE:
1168
+ case REACT_PROVIDER_TYPE:
1169
+ return $$typeofType;
1170
+ default:
1171
+ return $$typeof;
1172
+ }
1173
+ }
1174
+ case REACT_PORTAL_TYPE:
1175
+ return $$typeof;
1176
+ }
1177
+ }
1178
+ return void 0;
1179
+ }
1180
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
1181
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1182
+ var ContextConsumer = REACT_CONTEXT_TYPE;
1183
+ var ContextProvider = REACT_PROVIDER_TYPE;
1184
+ var Element2 = REACT_ELEMENT_TYPE;
1185
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
1186
+ var Fragment = REACT_FRAGMENT_TYPE;
1187
+ var Lazy = REACT_LAZY_TYPE;
1188
+ var Memo = REACT_MEMO_TYPE;
1189
+ var Portal = REACT_PORTAL_TYPE;
1190
+ var Profiler = REACT_PROFILER_TYPE;
1191
+ var StrictMode = REACT_STRICT_MODE_TYPE;
1192
+ var Suspense = REACT_SUSPENSE_TYPE;
1193
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
1194
+ function isAsyncMode(object) {
1195
+ {
1196
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1197
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
1198
+ 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.");
1199
+ }
1200
+ }
1201
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1202
+ }
1203
+ function isConcurrentMode(object) {
1204
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1205
+ }
1206
+ function isContextConsumer(object) {
1207
+ return typeOf(object) === REACT_CONTEXT_TYPE;
1208
+ }
1209
+ function isContextProvider(object) {
1210
+ return typeOf(object) === REACT_PROVIDER_TYPE;
1211
+ }
1212
+ function isElement2(object) {
1213
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1214
+ }
1215
+ function isForwardRef(object) {
1216
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
1217
+ }
1218
+ function isFragment(object) {
1219
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
1220
+ }
1221
+ function isLazy(object) {
1222
+ return typeOf(object) === REACT_LAZY_TYPE;
1223
+ }
1224
+ function isMemo(object) {
1225
+ return typeOf(object) === REACT_MEMO_TYPE;
1226
+ }
1227
+ function isPortal(object) {
1228
+ return typeOf(object) === REACT_PORTAL_TYPE;
1229
+ }
1230
+ function isProfiler(object) {
1231
+ return typeOf(object) === REACT_PROFILER_TYPE;
1232
+ }
1233
+ function isStrictMode(object) {
1234
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
1235
+ }
1236
+ function isSuspense(object) {
1237
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
1238
+ }
1239
+ reactIs_development.AsyncMode = AsyncMode;
1240
+ reactIs_development.ConcurrentMode = ConcurrentMode;
1241
+ reactIs_development.ContextConsumer = ContextConsumer;
1242
+ reactIs_development.ContextProvider = ContextProvider;
1243
+ reactIs_development.Element = Element2;
1244
+ reactIs_development.ForwardRef = ForwardRef;
1245
+ reactIs_development.Fragment = Fragment;
1246
+ reactIs_development.Lazy = Lazy;
1247
+ reactIs_development.Memo = Memo;
1248
+ reactIs_development.Portal = Portal;
1249
+ reactIs_development.Profiler = Profiler;
1250
+ reactIs_development.StrictMode = StrictMode;
1251
+ reactIs_development.Suspense = Suspense;
1252
+ reactIs_development.isAsyncMode = isAsyncMode;
1253
+ reactIs_development.isConcurrentMode = isConcurrentMode;
1254
+ reactIs_development.isContextConsumer = isContextConsumer;
1255
+ reactIs_development.isContextProvider = isContextProvider;
1256
+ reactIs_development.isElement = isElement2;
1257
+ reactIs_development.isForwardRef = isForwardRef;
1258
+ reactIs_development.isFragment = isFragment;
1259
+ reactIs_development.isLazy = isLazy;
1260
+ reactIs_development.isMemo = isMemo;
1261
+ reactIs_development.isPortal = isPortal;
1262
+ reactIs_development.isProfiler = isProfiler;
1263
+ reactIs_development.isStrictMode = isStrictMode;
1264
+ reactIs_development.isSuspense = isSuspense;
1265
+ reactIs_development.isValidElementType = isValidElementType;
1266
+ reactIs_development.typeOf = typeOf;
1267
+ })();
1268
+ }
1269
+ return reactIs_development;
1270
+ }
1271
+ if (process.env.NODE_ENV === "production") {
1272
+ reactIs$1.exports = requireReactIs_production_min();
1273
+ } else {
1274
+ reactIs$1.exports = requireReactIs_development();
1275
+ }
1276
+ var reactIsExports = reactIs$1.exports;
1277
+ var reactIs = reactIsExports;
1278
+ var FORWARD_REF_STATICS = {
1279
+ "$$typeof": true,
1280
+ render: true,
1281
+ defaultProps: true,
1282
+ displayName: true,
1283
+ propTypes: true
1284
+ };
1285
+ var MEMO_STATICS = {
1286
+ "$$typeof": true,
1287
+ compare: true,
1288
+ defaultProps: true,
1289
+ displayName: true,
1290
+ propTypes: true,
1291
+ type: true
1292
+ };
1293
+ var TYPE_STATICS = {};
1294
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1295
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1296
+ var isBrowser$1 = true;
1297
+ function getRegisteredStyles(registered, registeredStyles, classNames2) {
1298
+ var rawClassName = "";
1299
+ classNames2.split(" ").forEach(function(className) {
1300
+ if (registered[className] !== void 0) {
1301
+ registeredStyles.push(registered[className] + ";");
1302
+ } else {
1303
+ rawClassName += className + " ";
1304
+ }
1305
+ });
1306
+ return rawClassName;
1307
+ }
1308
+ var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
1309
+ var className = cache.key + "-" + serialized.name;
1310
+ if (
1311
+ // we only need to add the styles to the registered cache if the
1312
+ // class name could be used further down
1313
+ // the tree but if it's a string tag, we know it won't
1314
+ // so we don't have to add it to registered cache.
1315
+ // this improves memory usage since we can avoid storing the whole style string
1316
+ (isStringTag === false || // we need to always store it if we're in compat mode and
1317
+ // in node since emotion-server relies on whether a style is in
1318
+ // the registered cache to know whether a style is global or not
1319
+ // also, note that this check will be dead code eliminated in the browser
1320
+ isBrowser$1 === false) && cache.registered[className] === void 0
1321
+ ) {
1322
+ cache.registered[className] = serialized.styles;
1323
+ }
1324
+ };
1325
+ var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
1326
+ registerStyles(cache, serialized, isStringTag);
1327
+ var className = cache.key + "-" + serialized.name;
1328
+ if (cache.inserted[serialized.name] === void 0) {
1329
+ var current = serialized;
1330
+ do {
1331
+ cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
1332
+ current = current.next;
1333
+ } while (current !== void 0);
1334
+ }
1335
+ };
1336
+ function murmur2(str) {
1337
+ var h = 0;
1338
+ var k, i = 0, len = str.length;
1339
+ for (; len >= 4; ++i, len -= 4) {
1340
+ k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
1341
+ k = /* Math.imul(k, m): */
1342
+ (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
1343
+ k ^= /* k >>> r: */
1344
+ k >>> 24;
1345
+ h = /* Math.imul(k, m): */
1346
+ (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1347
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1348
+ }
1349
+ switch (len) {
1350
+ case 3:
1351
+ h ^= (str.charCodeAt(i + 2) & 255) << 16;
1352
+ case 2:
1353
+ h ^= (str.charCodeAt(i + 1) & 255) << 8;
1354
+ case 1:
1355
+ h ^= str.charCodeAt(i) & 255;
1356
+ h = /* Math.imul(h, m): */
1357
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1358
+ }
1359
+ h ^= h >>> 13;
1360
+ h = /* Math.imul(h, m): */
1361
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1362
+ return ((h ^ h >>> 15) >>> 0).toString(36);
1363
+ }
1364
+ var unitlessKeys = {
1365
+ animationIterationCount: 1,
1366
+ aspectRatio: 1,
1367
+ borderImageOutset: 1,
1368
+ borderImageSlice: 1,
1369
+ borderImageWidth: 1,
1370
+ boxFlex: 1,
1371
+ boxFlexGroup: 1,
1372
+ boxOrdinalGroup: 1,
1373
+ columnCount: 1,
1374
+ columns: 1,
1375
+ flex: 1,
1376
+ flexGrow: 1,
1377
+ flexPositive: 1,
1378
+ flexShrink: 1,
1379
+ flexNegative: 1,
1380
+ flexOrder: 1,
1381
+ gridRow: 1,
1382
+ gridRowEnd: 1,
1383
+ gridRowSpan: 1,
1384
+ gridRowStart: 1,
1385
+ gridColumn: 1,
1386
+ gridColumnEnd: 1,
1387
+ gridColumnSpan: 1,
1388
+ gridColumnStart: 1,
1389
+ msGridRow: 1,
1390
+ msGridRowSpan: 1,
1391
+ msGridColumn: 1,
1392
+ msGridColumnSpan: 1,
1393
+ fontWeight: 1,
1394
+ lineHeight: 1,
1395
+ opacity: 1,
1396
+ order: 1,
1397
+ orphans: 1,
1398
+ tabSize: 1,
1399
+ widows: 1,
1400
+ zIndex: 1,
1401
+ zoom: 1,
1402
+ WebkitLineClamp: 1,
1403
+ // SVG-related properties
1404
+ fillOpacity: 1,
1405
+ floodOpacity: 1,
1406
+ stopOpacity: 1,
1407
+ strokeDasharray: 1,
1408
+ strokeDashoffset: 1,
1409
+ strokeMiterlimit: 1,
1410
+ strokeOpacity: 1,
1411
+ strokeWidth: 1
1412
+ };
1413
+ var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value.
1414
+ Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
1415
+ You can read more about this here:
1416
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
1417
+ var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
1418
+ var hyphenateRegex = /[A-Z]|^ms/g;
1419
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1420
+ var isCustomProperty = function isCustomProperty2(property) {
1421
+ return property.charCodeAt(1) === 45;
1422
+ };
1423
+ var isProcessableValue = function isProcessableValue2(value) {
1424
+ return value != null && typeof value !== "boolean";
1425
+ };
1426
+ var processStyleName = /* @__PURE__ */ memoize(function(styleName) {
1427
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
1428
+ });
1429
+ var processStyleValue = function processStyleValue2(key, value) {
1430
+ switch (key) {
1431
+ case "animation":
1432
+ case "animationName": {
1433
+ if (typeof value === "string") {
1434
+ return value.replace(animationRegex, function(match2, p1, p2) {
1435
+ cursor = {
1436
+ name: p1,
1437
+ styles: p2,
1438
+ next: cursor
1439
+ };
1440
+ return p1;
1441
+ });
1442
+ }
1443
+ }
1444
+ }
1445
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
1446
+ return value + "px";
1447
+ }
1448
+ return value;
1449
+ };
1450
+ if (process.env.NODE_ENV !== "production") {
1451
+ var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
1452
+ var contentValues = ["normal", "none", "initial", "inherit", "unset"];
1453
+ var oldProcessStyleValue = processStyleValue;
1454
+ var msPattern = /^-ms-/;
1455
+ var hyphenPattern = /-(.)/g;
1456
+ var hyphenatedCache = {};
1457
+ processStyleValue = function processStyleValue3(key, value) {
1458
+ if (key === "content") {
1459
+ if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
1460
+ throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
1461
+ }
1462
+ }
1463
+ var processed = oldProcessStyleValue(key, value);
1464
+ if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
1465
+ hyphenatedCache[key] = true;
1466
+ console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, "ms-").replace(hyphenPattern, function(str, _char) {
1467
+ return _char.toUpperCase();
1468
+ }) + "?");
1469
+ }
1470
+ return processed;
1471
+ };
1472
+ }
1473
+ var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
1474
+ function handleInterpolation(mergedProps, registered, interpolation) {
1475
+ if (interpolation == null) {
1476
+ return "";
1477
+ }
1478
+ if (interpolation.__emotion_styles !== void 0) {
1479
+ if (process.env.NODE_ENV !== "production" && interpolation.toString() === "NO_COMPONENT_SELECTOR") {
1480
+ throw new Error(noComponentSelectorMessage);
1481
+ }
1482
+ return interpolation;
1483
+ }
1484
+ switch (typeof interpolation) {
1485
+ case "boolean": {
1486
+ return "";
1487
+ }
1488
+ case "object": {
1489
+ if (interpolation.anim === 1) {
1490
+ cursor = {
1491
+ name: interpolation.name,
1492
+ styles: interpolation.styles,
1493
+ next: cursor
1494
+ };
1495
+ return interpolation.name;
1496
+ }
1497
+ if (interpolation.styles !== void 0) {
1498
+ var next2 = interpolation.next;
1499
+ if (next2 !== void 0) {
1500
+ while (next2 !== void 0) {
1501
+ cursor = {
1502
+ name: next2.name,
1503
+ styles: next2.styles,
1504
+ next: cursor
1505
+ };
1506
+ next2 = next2.next;
1507
+ }
1508
+ }
1509
+ var styles = interpolation.styles + ";";
1510
+ if (process.env.NODE_ENV !== "production" && interpolation.map !== void 0) {
1511
+ styles += interpolation.map;
1512
+ }
1513
+ return styles;
1514
+ }
1515
+ return createStringFromObject(mergedProps, registered, interpolation);
1516
+ }
1517
+ case "function": {
1518
+ if (mergedProps !== void 0) {
1519
+ var previousCursor = cursor;
1520
+ var result = interpolation(mergedProps);
1521
+ cursor = previousCursor;
1522
+ return handleInterpolation(mergedProps, registered, result);
1523
+ } else if (process.env.NODE_ENV !== "production") {
1524
+ console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
1525
+ }
1526
+ break;
1527
+ }
1528
+ case "string":
1529
+ if (process.env.NODE_ENV !== "production") {
1530
+ var matched = [];
1531
+ var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) {
1532
+ var fakeVarName = "animation" + matched.length;
1533
+ matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
1534
+ return "${" + fakeVarName + "}";
1535
+ });
1536
+ if (matched.length) {
1537
+ console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(matched, ["`" + replaced + "`"]).join("\n") + "\n\nYou should wrap it with `css` like this:\n\n" + ("css`" + replaced + "`"));
1538
+ }
1539
+ }
1540
+ break;
1541
+ }
1542
+ if (registered == null) {
1543
+ return interpolation;
1544
+ }
1545
+ var cached = registered[interpolation];
1546
+ return cached !== void 0 ? cached : interpolation;
1547
+ }
1548
+ function createStringFromObject(mergedProps, registered, obj) {
1549
+ var string = "";
1550
+ if (Array.isArray(obj)) {
1551
+ for (var i = 0; i < obj.length; i++) {
1552
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1553
+ }
1554
+ } else {
1555
+ for (var _key in obj) {
1556
+ var value = obj[_key];
1557
+ if (typeof value !== "object") {
1558
+ if (registered != null && registered[value] !== void 0) {
1559
+ string += _key + "{" + registered[value] + "}";
1560
+ } else if (isProcessableValue(value)) {
1561
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
1562
+ }
1563
+ } else {
1564
+ if (_key === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production") {
1565
+ throw new Error(noComponentSelectorMessage);
1566
+ }
1567
+ if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
1568
+ for (var _i = 0; _i < value.length; _i++) {
1569
+ if (isProcessableValue(value[_i])) {
1570
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
1571
+ }
1572
+ }
1573
+ } else {
1574
+ var interpolated = handleInterpolation(mergedProps, registered, value);
1575
+ switch (_key) {
1576
+ case "animation":
1577
+ case "animationName": {
1578
+ string += processStyleName(_key) + ":" + interpolated + ";";
1579
+ break;
1580
+ }
1581
+ default: {
1582
+ if (process.env.NODE_ENV !== "production" && _key === "undefined") {
1583
+ console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
1584
+ }
1585
+ string += _key + "{" + interpolated + "}";
1586
+ }
1587
+ }
1588
+ }
1589
+ }
1590
+ }
1591
+ }
1592
+ return string;
1593
+ }
1594
+ var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
1595
+ var sourceMapPattern;
1596
+ if (process.env.NODE_ENV !== "production") {
1597
+ sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
1598
+ }
1599
+ var cursor;
1600
+ var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
1601
+ if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
1602
+ return args[0];
1603
+ }
1604
+ var stringMode = true;
1605
+ var styles = "";
1606
+ cursor = void 0;
1607
+ var strings = args[0];
1608
+ if (strings == null || strings.raw === void 0) {
1609
+ stringMode = false;
1610
+ styles += handleInterpolation(mergedProps, registered, strings);
1611
+ } else {
1612
+ if (process.env.NODE_ENV !== "production" && strings[0] === void 0) {
1613
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
1614
+ }
1615
+ styles += strings[0];
1616
+ }
1617
+ for (var i = 1; i < args.length; i++) {
1618
+ styles += handleInterpolation(mergedProps, registered, args[i]);
1619
+ if (stringMode) {
1620
+ if (process.env.NODE_ENV !== "production" && strings[i] === void 0) {
1621
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
1622
+ }
1623
+ styles += strings[i];
1624
+ }
1625
+ }
1626
+ var sourceMap;
1627
+ if (process.env.NODE_ENV !== "production") {
1628
+ styles = styles.replace(sourceMapPattern, function(match3) {
1629
+ sourceMap = match3;
1630
+ return "";
1631
+ });
1632
+ }
1633
+ labelPattern.lastIndex = 0;
1634
+ var identifierName = "";
1635
+ var match2;
1636
+ while ((match2 = labelPattern.exec(styles)) !== null) {
1637
+ identifierName += "-" + // $FlowFixMe we know it's not null
1638
+ match2[1];
1639
+ }
1640
+ var name = murmur2(styles) + identifierName;
1641
+ if (process.env.NODE_ENV !== "production") {
1642
+ return {
1643
+ name,
1644
+ styles,
1645
+ map: sourceMap,
1646
+ next: cursor,
1647
+ toString: function toString() {
1648
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
1649
+ }
1650
+ };
1651
+ }
1652
+ return {
1653
+ name,
1654
+ styles,
1655
+ next: cursor
1656
+ };
1657
+ };
1658
+ var syncFallback = function syncFallback2(create) {
1659
+ return create();
1660
+ };
1661
+ var useInsertionEffect = React["useInsertionEffect"] ? React["useInsertionEffect"] : false;
1662
+ var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
1663
+ var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;
1664
+ var hasOwn = {}.hasOwnProperty;
1665
+ var EmotionCacheContext = /* @__PURE__ */ React.createContext(
1666
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
1667
+ // because this module is primarily intended for the browser and node
1668
+ // but it's also required in react native and similar environments sometimes
1669
+ // and we could have a special build just for that
1670
+ // but this is much easier and the native packages
1671
+ // might use a different theme context in the future anyway
1672
+ typeof HTMLElement !== "undefined" ? /* @__PURE__ */ createCache({
1673
+ key: "css"
1674
+ }) : null
1675
+ );
1676
+ if (process.env.NODE_ENV !== "production") {
1677
+ EmotionCacheContext.displayName = "EmotionCacheContext";
1678
+ }
1679
+ EmotionCacheContext.Provider;
1680
+ var withEmotionCache = function withEmotionCache2(func) {
1681
+ return /* @__PURE__ */ forwardRef(function(props, ref) {
1682
+ var cache = useContext(EmotionCacheContext);
1683
+ return func(props, cache, ref);
1684
+ });
1685
+ };
1686
+ var ThemeContext = /* @__PURE__ */ React.createContext({});
1687
+ if (process.env.NODE_ENV !== "production") {
1688
+ ThemeContext.displayName = "EmotionThemeContext";
1689
+ }
1690
+ var getLastPart = function getLastPart2(functionName) {
1691
+ var parts = functionName.split(".");
1692
+ return parts[parts.length - 1];
1693
+ };
1694
+ var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine2(line2) {
1695
+ var match2 = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line2);
1696
+ if (match2)
1697
+ return getLastPart(match2[1]);
1698
+ match2 = /^([A-Za-z0-9$.]+)@/.exec(line2);
1699
+ if (match2)
1700
+ return getLastPart(match2[1]);
1701
+ return void 0;
1702
+ };
1703
+ var internalReactFunctionNames = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]);
1704
+ var sanitizeIdentifier = function sanitizeIdentifier2(identifier2) {
1705
+ return identifier2.replace(/\$/g, "-");
1706
+ };
1707
+ var getLabelFromStackTrace = function getLabelFromStackTrace2(stackTrace) {
1708
+ if (!stackTrace)
1709
+ return void 0;
1710
+ var lines = stackTrace.split("\n");
1711
+ for (var i = 0; i < lines.length; i++) {
1712
+ var functionName = getFunctionNameFromStackTraceLine(lines[i]);
1713
+ if (!functionName)
1714
+ continue;
1715
+ if (internalReactFunctionNames.has(functionName))
1716
+ break;
1717
+ if (/^[A-Z]/.test(functionName))
1718
+ return sanitizeIdentifier(functionName);
1719
+ }
1720
+ return void 0;
1721
+ };
1722
+ var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
1723
+ var labelPropName = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__";
1724
+ var createEmotionProps = function createEmotionProps2(type, props) {
1725
+ if (process.env.NODE_ENV !== "production" && typeof props.css === "string" && // check if there is a css declaration
1726
+ props.css.indexOf(":") !== -1) {
1727
+ throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + props.css + "`");
1728
+ }
1729
+ var newProps = {};
1730
+ for (var key in props) {
1731
+ if (hasOwn.call(props, key)) {
1732
+ newProps[key] = props[key];
1733
+ }
1734
+ }
1735
+ newProps[typePropName] = type;
1736
+ if (process.env.NODE_ENV !== "production" && !!props.css && (typeof props.css !== "object" || typeof props.css.name !== "string" || props.css.name.indexOf("-") === -1)) {
1737
+ var label = getLabelFromStackTrace(new Error().stack);
1738
+ if (label)
1739
+ newProps[labelPropName] = label;
1740
+ }
1741
+ return newProps;
1742
+ };
1743
+ var Insertion$1 = function Insertion(_ref) {
1744
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
1745
+ registerStyles(cache, serialized, isStringTag);
1746
+ useInsertionEffectAlwaysWithSyncFallback(function() {
1747
+ return insertStyles(cache, serialized, isStringTag);
1748
+ });
1749
+ return null;
1750
+ };
1751
+ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
1752
+ var cssProp = props.css;
1753
+ if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
1754
+ cssProp = cache.registered[cssProp];
1755
+ }
1756
+ var WrappedComponent = props[typePropName];
1757
+ var registeredStyles = [cssProp];
1758
+ var className = "";
1759
+ if (typeof props.className === "string") {
1760
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
1761
+ } else if (props.className != null) {
1762
+ className = props.className + " ";
1763
+ }
1764
+ var serialized = serializeStyles(registeredStyles, void 0, React.useContext(ThemeContext));
1765
+ if (process.env.NODE_ENV !== "production" && serialized.name.indexOf("-") === -1) {
1766
+ var labelFromStack = props[labelPropName];
1767
+ if (labelFromStack) {
1768
+ serialized = serializeStyles([serialized, "label:" + labelFromStack + ";"]);
1769
+ }
1770
+ }
1771
+ className += cache.key + "-" + serialized.name;
1772
+ var newProps = {};
1773
+ for (var key in props) {
1774
+ if (hasOwn.call(props, key) && key !== "css" && key !== typePropName && (process.env.NODE_ENV === "production" || key !== labelPropName)) {
1775
+ newProps[key] = props[key];
1776
+ }
1777
+ }
1778
+ newProps.ref = ref;
1779
+ newProps.className = className;
1780
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Insertion$1, {
1781
+ cache,
1782
+ serialized,
1783
+ isStringTag: typeof WrappedComponent === "string"
1784
+ }), /* @__PURE__ */ React.createElement(WrappedComponent, newProps));
1785
+ });
1786
+ if (process.env.NODE_ENV !== "production") {
1787
+ Emotion.displayName = "EmotionCssPropInternal";
1788
+ }
1789
+ var Emotion$1 = Emotion;
1790
+ var pkg = {
1791
+ name: "@emotion/react",
1792
+ version: "11.11.4",
1793
+ main: "dist/emotion-react.cjs.js",
1794
+ module: "dist/emotion-react.esm.js",
1795
+ browser: {
1796
+ "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
1797
+ },
1798
+ exports: {
1799
+ ".": {
1800
+ module: {
1801
+ worker: "./dist/emotion-react.worker.esm.js",
1802
+ browser: "./dist/emotion-react.browser.esm.js",
1803
+ "default": "./dist/emotion-react.esm.js"
1804
+ },
1805
+ "import": "./dist/emotion-react.cjs.mjs",
1806
+ "default": "./dist/emotion-react.cjs.js"
1807
+ },
1808
+ "./jsx-runtime": {
1809
+ module: {
1810
+ worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
1811
+ browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
1812
+ "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
1813
+ },
1814
+ "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
1815
+ "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
1816
+ },
1817
+ "./_isolated-hnrs": {
1818
+ module: {
1819
+ worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
1820
+ browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
1821
+ "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
1822
+ },
1823
+ "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
1824
+ "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
1825
+ },
1826
+ "./jsx-dev-runtime": {
1827
+ module: {
1828
+ worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
1829
+ browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
1830
+ "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
1831
+ },
1832
+ "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
1833
+ "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
1834
+ },
1835
+ "./package.json": "./package.json",
1836
+ "./types/css-prop": "./types/css-prop.d.ts",
1837
+ "./macro": {
1838
+ types: {
1839
+ "import": "./macro.d.mts",
1840
+ "default": "./macro.d.ts"
1841
+ },
1842
+ "default": "./macro.js"
1843
+ }
1844
+ },
1845
+ types: "types/index.d.ts",
1846
+ files: [
1847
+ "src",
1848
+ "dist",
1849
+ "jsx-runtime",
1850
+ "jsx-dev-runtime",
1851
+ "_isolated-hnrs",
1852
+ "types/*.d.ts",
1853
+ "macro.*"
1854
+ ],
1855
+ sideEffects: false,
1856
+ author: "Emotion Contributors",
1857
+ license: "MIT",
1858
+ scripts: {
1859
+ "test:typescript": "dtslint types"
1860
+ },
1861
+ dependencies: {
1862
+ "@babel/runtime": "^7.18.3",
1863
+ "@emotion/babel-plugin": "^11.11.0",
1864
+ "@emotion/cache": "^11.11.0",
1865
+ "@emotion/serialize": "^1.1.3",
1866
+ "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
1867
+ "@emotion/utils": "^1.2.1",
1868
+ "@emotion/weak-memoize": "^0.3.1",
1869
+ "hoist-non-react-statics": "^3.3.1"
1870
+ },
1871
+ peerDependencies: {
1872
+ react: ">=16.8.0"
1873
+ },
1874
+ peerDependenciesMeta: {
1875
+ "@types/react": {
1876
+ optional: true
1877
+ }
1878
+ },
1879
+ devDependencies: {
1880
+ "@definitelytyped/dtslint": "0.0.112",
1881
+ "@emotion/css": "11.11.2",
1882
+ "@emotion/css-prettifier": "1.1.3",
1883
+ "@emotion/server": "11.11.0",
1884
+ "@emotion/styled": "11.11.0",
1885
+ "html-tag-names": "^1.1.2",
1886
+ react: "16.14.0",
1887
+ "svg-tag-names": "^1.1.1",
1888
+ typescript: "^4.5.5"
1889
+ },
1890
+ repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
1891
+ publishConfig: {
1892
+ access: "public"
1893
+ },
1894
+ "umd:main": "dist/emotion-react.umd.min.js",
1895
+ preconstruct: {
1896
+ entrypoints: [
1897
+ "./index.js",
1898
+ "./jsx-runtime.js",
1899
+ "./jsx-dev-runtime.js",
1900
+ "./_isolated-hnrs.js"
1901
+ ],
1902
+ umdName: "emotionReact",
1903
+ exports: {
1904
+ envConditions: [
1905
+ "browser",
1906
+ "worker"
1907
+ ],
1908
+ extra: {
1909
+ "./types/css-prop": "./types/css-prop.d.ts",
1910
+ "./macro": {
1911
+ types: {
1912
+ "import": "./macro.d.mts",
1913
+ "default": "./macro.d.ts"
1914
+ },
1915
+ "default": "./macro.js"
1916
+ }
1917
+ }
1918
+ }
1919
+ }
1920
+ };
1921
+ var jsx = function jsx2(type, props) {
1922
+ var args = arguments;
1923
+ if (props == null || !hasOwn.call(props, "css")) {
1924
+ return React.createElement.apply(void 0, args);
1925
+ }
1926
+ var argsLength = args.length;
1927
+ var createElementArgArray = new Array(argsLength);
1928
+ createElementArgArray[0] = Emotion$1;
1929
+ createElementArgArray[1] = createEmotionProps(type, props);
1930
+ for (var i = 2; i < argsLength; i++) {
1931
+ createElementArgArray[i] = args[i];
1932
+ }
1933
+ return React.createElement.apply(null, createElementArgArray);
1934
+ };
1935
+ var warnedAboutCssPropForGlobal = false;
1936
+ var Global = /* @__PURE__ */ withEmotionCache(function(props, cache) {
1937
+ if (process.env.NODE_ENV !== "production" && !warnedAboutCssPropForGlobal && // check for className as well since the user is
1938
+ // probably using the custom createElement which
1939
+ // means it will be turned into a className prop
1940
+ // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
1941
+ (props.className || props.css)) {
1942
+ console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
1943
+ warnedAboutCssPropForGlobal = true;
1944
+ }
1945
+ var styles = props.styles;
1946
+ var serialized = serializeStyles([styles], void 0, React.useContext(ThemeContext));
1947
+ var sheetRef = React.useRef();
1948
+ useInsertionEffectWithLayoutFallback(function() {
1949
+ var key = cache.key + "-global";
1950
+ var sheet = new cache.sheet.constructor({
1951
+ key,
1952
+ nonce: cache.sheet.nonce,
1953
+ container: cache.sheet.container,
1954
+ speedy: cache.sheet.isSpeedy
1955
+ });
1956
+ var rehydrating = false;
1957
+ var node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
1958
+ if (cache.sheet.tags.length) {
1959
+ sheet.before = cache.sheet.tags[0];
1960
+ }
1961
+ if (node2 !== null) {
1962
+ rehydrating = true;
1963
+ node2.setAttribute("data-emotion", key);
1964
+ sheet.hydrate([node2]);
1965
+ }
1966
+ sheetRef.current = [sheet, rehydrating];
1967
+ return function() {
1968
+ sheet.flush();
1969
+ };
1970
+ }, [cache]);
1971
+ useInsertionEffectWithLayoutFallback(function() {
1972
+ var sheetRefCurrent = sheetRef.current;
1973
+ var sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
1974
+ if (rehydrating) {
1975
+ sheetRefCurrent[1] = false;
1976
+ return;
1977
+ }
1978
+ if (serialized.next !== void 0) {
1979
+ insertStyles(cache, serialized.next, true);
1980
+ }
1981
+ if (sheet.tags.length) {
1982
+ var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
1983
+ sheet.before = element;
1984
+ sheet.flush();
1985
+ }
1986
+ cache.insert("", serialized, sheet, false);
1987
+ }, [cache, serialized.name]);
1988
+ return null;
1989
+ });
1990
+ if (process.env.NODE_ENV !== "production") {
1991
+ Global.displayName = "EmotionGlobal";
1992
+ }
1993
+ function css$2() {
1994
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1995
+ args[_key] = arguments[_key];
1996
+ }
1997
+ return serializeStyles(args);
1998
+ }
1999
+ var keyframes = function keyframes2() {
2000
+ var insertable = css$2.apply(void 0, arguments);
2001
+ var name = "animation-" + insertable.name;
2002
+ return {
2003
+ name,
2004
+ styles: "@keyframes " + name + "{" + insertable.styles + "}",
2005
+ anim: 1,
2006
+ toString: function toString() {
2007
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
2008
+ }
2009
+ };
2010
+ };
2011
+ var classnames = function classnames2(args) {
2012
+ var len = args.length;
2013
+ var i = 0;
2014
+ var cls = "";
2015
+ for (; i < len; i++) {
2016
+ var arg = args[i];
2017
+ if (arg == null)
2018
+ continue;
2019
+ var toAdd = void 0;
2020
+ switch (typeof arg) {
2021
+ case "boolean":
2022
+ break;
2023
+ case "object": {
2024
+ if (Array.isArray(arg)) {
2025
+ toAdd = classnames2(arg);
2026
+ } else {
2027
+ if (process.env.NODE_ENV !== "production" && arg.styles !== void 0 && arg.name !== void 0) {
2028
+ console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.");
2029
+ }
2030
+ toAdd = "";
2031
+ for (var k in arg) {
2032
+ if (arg[k] && k) {
2033
+ toAdd && (toAdd += " ");
2034
+ toAdd += k;
2035
+ }
2036
+ }
2037
+ }
2038
+ break;
2039
+ }
2040
+ default: {
2041
+ toAdd = arg;
2042
+ }
2043
+ }
2044
+ if (toAdd) {
2045
+ cls && (cls += " ");
2046
+ cls += toAdd;
2047
+ }
2048
+ }
2049
+ return cls;
2050
+ };
2051
+ function merge(registered, css4, className) {
2052
+ var registeredStyles = [];
2053
+ var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
2054
+ if (registeredStyles.length < 2) {
2055
+ return className;
2056
+ }
2057
+ return rawClassName + css4(registeredStyles);
2058
+ }
2059
+ var Insertion2 = function Insertion3(_ref) {
2060
+ var cache = _ref.cache, serializedArr = _ref.serializedArr;
2061
+ useInsertionEffectAlwaysWithSyncFallback(function() {
2062
+ for (var i = 0; i < serializedArr.length; i++) {
2063
+ insertStyles(cache, serializedArr[i], false);
2064
+ }
2065
+ });
2066
+ return null;
2067
+ };
2068
+ var ClassNames = /* @__PURE__ */ withEmotionCache(function(props, cache) {
2069
+ var hasRendered = false;
2070
+ var serializedArr = [];
2071
+ var css4 = function css5() {
2072
+ if (hasRendered && process.env.NODE_ENV !== "production") {
2073
+ throw new Error("css can only be used during render");
2074
+ }
2075
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2076
+ args[_key] = arguments[_key];
2077
+ }
2078
+ var serialized = serializeStyles(args, cache.registered);
2079
+ serializedArr.push(serialized);
2080
+ registerStyles(cache, serialized, false);
2081
+ return cache.key + "-" + serialized.name;
2082
+ };
2083
+ var cx = function cx2() {
2084
+ if (hasRendered && process.env.NODE_ENV !== "production") {
2085
+ throw new Error("cx can only be used during render");
2086
+ }
2087
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2088
+ args[_key2] = arguments[_key2];
2089
+ }
2090
+ return merge(cache.registered, css4, classnames(args));
2091
+ };
2092
+ var content = {
2093
+ css: css4,
2094
+ cx,
2095
+ theme: React.useContext(ThemeContext)
2096
+ };
2097
+ var ele = props.children(content);
2098
+ hasRendered = true;
2099
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Insertion2, {
2100
+ cache,
2101
+ serializedArr
2102
+ }), ele);
2103
+ });
2104
+ if (process.env.NODE_ENV !== "production") {
2105
+ ClassNames.displayName = "EmotionClassNames";
2106
+ }
2107
+ if (process.env.NODE_ENV !== "production") {
2108
+ var isBrowser = true;
2109
+ var isTestEnv = typeof jest !== "undefined" || typeof vi !== "undefined";
2110
+ if (isBrowser && !isTestEnv) {
2111
+ var globalContext = (
2112
+ // $FlowIgnore
2113
+ typeof globalThis !== "undefined" ? globalThis : isBrowser ? window : global
2114
+ );
2115
+ var globalKey = "__EMOTION_REACT_" + pkg.version.split(".")[0] + "__";
2116
+ if (globalContext[globalKey]) {
2117
+ console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used.");
2118
+ }
2119
+ globalContext[globalKey] = true;
2120
+ }
2121
+ }
2122
+ function _taggedTemplateLiteral(strings, raw) {
2123
+ if (!raw) {
2124
+ raw = strings.slice(0);
2125
+ }
2126
+ return Object.freeze(Object.defineProperties(strings, {
2127
+ raw: {
2128
+ value: Object.freeze(raw)
2129
+ }
2130
+ }));
2131
+ }
2132
+ const min = Math.min;
2133
+ const max = Math.max;
2134
+ const round = Math.round;
2135
+ const floor = Math.floor;
2136
+ const createCoords = (v) => ({
2137
+ x: v,
2138
+ y: v
2139
+ });
2140
+ function rectToClientRect(rect) {
2141
+ const {
2142
+ x,
2143
+ y,
2144
+ width,
2145
+ height
2146
+ } = rect;
2147
+ return {
2148
+ width,
2149
+ height,
2150
+ top: y,
2151
+ left: x,
2152
+ right: x + width,
2153
+ bottom: y + height,
2154
+ x,
2155
+ y
2156
+ };
2157
+ }
2158
+ function getNodeName(node2) {
2159
+ if (isNode(node2)) {
2160
+ return (node2.nodeName || "").toLowerCase();
2161
+ }
2162
+ return "#document";
2163
+ }
2164
+ function getWindow(node2) {
2165
+ var _node$ownerDocument;
2166
+ return (node2 == null || (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
2167
+ }
2168
+ function getDocumentElement(node2) {
2169
+ var _ref;
2170
+ return (_ref = (isNode(node2) ? node2.ownerDocument : node2.document) || window.document) == null ? void 0 : _ref.documentElement;
2171
+ }
2172
+ function isNode(value) {
2173
+ return value instanceof Node || value instanceof getWindow(value).Node;
2174
+ }
2175
+ function isElement(value) {
2176
+ return value instanceof Element || value instanceof getWindow(value).Element;
2177
+ }
2178
+ function isHTMLElement(value) {
2179
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
2180
+ }
2181
+ function isShadowRoot(value) {
2182
+ if (typeof ShadowRoot === "undefined") {
2183
+ return false;
2184
+ }
2185
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
2186
+ }
2187
+ function isOverflowElement(element) {
2188
+ const {
2189
+ overflow,
2190
+ overflowX,
2191
+ overflowY,
2192
+ display
2193
+ } = getComputedStyle$1(element);
2194
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
2195
+ }
2196
+ function isWebKit() {
2197
+ if (typeof CSS === "undefined" || !CSS.supports)
2198
+ return false;
2199
+ return CSS.supports("-webkit-backdrop-filter", "none");
2200
+ }
2201
+ function isLastTraversableNode(node2) {
2202
+ return ["html", "body", "#document"].includes(getNodeName(node2));
2203
+ }
2204
+ function getComputedStyle$1(element) {
2205
+ return getWindow(element).getComputedStyle(element);
2206
+ }
2207
+ function getParentNode(node2) {
2208
+ if (getNodeName(node2) === "html") {
2209
+ return node2;
2210
+ }
2211
+ const result = (
2212
+ // Step into the shadow DOM of the parent of a slotted node.
2213
+ node2.assignedSlot || // DOM Element detected.
2214
+ node2.parentNode || // ShadowRoot detected.
2215
+ isShadowRoot(node2) && node2.host || // Fallback.
2216
+ getDocumentElement(node2)
2217
+ );
2218
+ return isShadowRoot(result) ? result.host : result;
2219
+ }
2220
+ function getNearestOverflowAncestor(node2) {
2221
+ const parentNode = getParentNode(node2);
2222
+ if (isLastTraversableNode(parentNode)) {
2223
+ return node2.ownerDocument ? node2.ownerDocument.body : node2.body;
2224
+ }
2225
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
2226
+ return parentNode;
2227
+ }
2228
+ return getNearestOverflowAncestor(parentNode);
2229
+ }
2230
+ function getOverflowAncestors(node2, list, traverseIframes) {
2231
+ var _node$ownerDocument2;
2232
+ if (list === void 0) {
2233
+ list = [];
2234
+ }
2235
+ if (traverseIframes === void 0) {
2236
+ traverseIframes = true;
2237
+ }
2238
+ const scrollableAncestor = getNearestOverflowAncestor(node2);
2239
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node2.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
2240
+ const win = getWindow(scrollableAncestor);
2241
+ if (isBody) {
2242
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
2243
+ }
2244
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
2245
+ }
2246
+ function getCssDimensions(element) {
2247
+ const css4 = getComputedStyle$1(element);
2248
+ let width = parseFloat(css4.width) || 0;
2249
+ let height = parseFloat(css4.height) || 0;
2250
+ const hasOffset = isHTMLElement(element);
2251
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
2252
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
2253
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
2254
+ if (shouldFallback) {
2255
+ width = offsetWidth;
2256
+ height = offsetHeight;
2257
+ }
2258
+ return {
2259
+ width,
2260
+ height,
2261
+ $: shouldFallback
2262
+ };
2263
+ }
2264
+ function unwrapElement(element) {
2265
+ return !isElement(element) ? element.contextElement : element;
2266
+ }
2267
+ function getScale(element) {
2268
+ const domElement = unwrapElement(element);
2269
+ if (!isHTMLElement(domElement)) {
2270
+ return createCoords(1);
2271
+ }
2272
+ const rect = domElement.getBoundingClientRect();
2273
+ const {
2274
+ width,
2275
+ height,
2276
+ $
2277
+ } = getCssDimensions(domElement);
2278
+ let x = ($ ? round(rect.width) : rect.width) / width;
2279
+ let y = ($ ? round(rect.height) : rect.height) / height;
2280
+ if (!x || !Number.isFinite(x)) {
2281
+ x = 1;
2282
+ }
2283
+ if (!y || !Number.isFinite(y)) {
2284
+ y = 1;
2285
+ }
2286
+ return {
2287
+ x,
2288
+ y
2289
+ };
2290
+ }
2291
+ const noOffsets = /* @__PURE__ */ createCoords(0);
2292
+ function getVisualOffsets(element) {
2293
+ const win = getWindow(element);
2294
+ if (!isWebKit() || !win.visualViewport) {
2295
+ return noOffsets;
2296
+ }
2297
+ return {
2298
+ x: win.visualViewport.offsetLeft,
2299
+ y: win.visualViewport.offsetTop
2300
+ };
2301
+ }
2302
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
2303
+ {
2304
+ return false;
2305
+ }
2306
+ }
2307
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
2308
+ if (includeScale === void 0) {
2309
+ includeScale = false;
2310
+ }
2311
+ const clientRect = element.getBoundingClientRect();
2312
+ const domElement = unwrapElement(element);
2313
+ let scale = createCoords(1);
2314
+ if (includeScale) {
2315
+ {
2316
+ scale = getScale(element);
2317
+ }
2318
+ }
2319
+ const visualOffsets = shouldAddVisualOffsets() ? getVisualOffsets(domElement) : createCoords(0);
2320
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
2321
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
2322
+ let width = clientRect.width / scale.x;
2323
+ let height = clientRect.height / scale.y;
2324
+ if (domElement) {
2325
+ const win = getWindow(domElement);
2326
+ const offsetWin = offsetParent;
2327
+ let currentWin = win;
2328
+ let currentIFrame = currentWin.frameElement;
2329
+ while (currentIFrame && offsetParent && offsetWin !== currentWin) {
2330
+ const iframeScale = getScale(currentIFrame);
2331
+ const iframeRect = currentIFrame.getBoundingClientRect();
2332
+ const css4 = getComputedStyle$1(currentIFrame);
2333
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css4.paddingLeft)) * iframeScale.x;
2334
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css4.paddingTop)) * iframeScale.y;
2335
+ x *= iframeScale.x;
2336
+ y *= iframeScale.y;
2337
+ width *= iframeScale.x;
2338
+ height *= iframeScale.y;
2339
+ x += left;
2340
+ y += top;
2341
+ currentWin = getWindow(currentIFrame);
2342
+ currentIFrame = currentWin.frameElement;
2343
+ }
2344
+ }
2345
+ return rectToClientRect({
2346
+ width,
2347
+ height,
2348
+ x,
2349
+ y
2350
+ });
2351
+ }
2352
+ function observeMove(element, onMove) {
2353
+ let io = null;
2354
+ let timeoutId;
2355
+ const root = getDocumentElement(element);
2356
+ function cleanup() {
2357
+ var _io;
2358
+ clearTimeout(timeoutId);
2359
+ (_io = io) == null || _io.disconnect();
2360
+ io = null;
2361
+ }
2362
+ function refresh(skip, threshold) {
2363
+ if (skip === void 0) {
2364
+ skip = false;
2365
+ }
2366
+ if (threshold === void 0) {
2367
+ threshold = 1;
2368
+ }
2369
+ cleanup();
2370
+ const {
2371
+ left,
2372
+ top,
2373
+ width,
2374
+ height
2375
+ } = element.getBoundingClientRect();
2376
+ if (!skip) {
2377
+ onMove();
2378
+ }
2379
+ if (!width || !height) {
2380
+ return;
2381
+ }
2382
+ const insetTop = floor(top);
2383
+ const insetRight = floor(root.clientWidth - (left + width));
2384
+ const insetBottom = floor(root.clientHeight - (top + height));
2385
+ const insetLeft = floor(left);
2386
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
2387
+ const options2 = {
2388
+ rootMargin,
2389
+ threshold: max(0, min(1, threshold)) || 1
2390
+ };
2391
+ let isFirstUpdate = true;
2392
+ function handleObserve(entries) {
2393
+ const ratio = entries[0].intersectionRatio;
2394
+ if (ratio !== threshold) {
2395
+ if (!isFirstUpdate) {
2396
+ return refresh();
2397
+ }
2398
+ if (!ratio) {
2399
+ timeoutId = setTimeout(() => {
2400
+ refresh(false, 1e-7);
2401
+ }, 1e3);
2402
+ } else {
2403
+ refresh(false, ratio);
2404
+ }
2405
+ }
2406
+ isFirstUpdate = false;
2407
+ }
2408
+ try {
2409
+ io = new IntersectionObserver(handleObserve, {
2410
+ ...options2,
2411
+ // Handle <iframe>s
2412
+ root: root.ownerDocument
2413
+ });
2414
+ } catch (e) {
2415
+ io = new IntersectionObserver(handleObserve, options2);
2416
+ }
2417
+ io.observe(element);
2418
+ }
2419
+ refresh(true);
2420
+ return cleanup;
2421
+ }
2422
+ function autoUpdate(reference, floating, update, options2) {
2423
+ if (options2 === void 0) {
2424
+ options2 = {};
2425
+ }
2426
+ const {
2427
+ ancestorScroll = true,
2428
+ ancestorResize = true,
2429
+ elementResize = typeof ResizeObserver === "function",
2430
+ layoutShift = typeof IntersectionObserver === "function",
2431
+ animationFrame = false
2432
+ } = options2;
2433
+ const referenceEl = unwrapElement(reference);
2434
+ const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
2435
+ ancestors.forEach((ancestor) => {
2436
+ ancestorScroll && ancestor.addEventListener("scroll", update, {
2437
+ passive: true
2438
+ });
2439
+ ancestorResize && ancestor.addEventListener("resize", update);
2440
+ });
2441
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
2442
+ let reobserveFrame = -1;
2443
+ let resizeObserver = null;
2444
+ if (elementResize) {
2445
+ resizeObserver = new ResizeObserver((_ref) => {
2446
+ let [firstEntry] = _ref;
2447
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
2448
+ resizeObserver.unobserve(floating);
2449
+ cancelAnimationFrame(reobserveFrame);
2450
+ reobserveFrame = requestAnimationFrame(() => {
2451
+ var _resizeObserver;
2452
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
2453
+ });
2454
+ }
2455
+ update();
2456
+ });
2457
+ if (referenceEl && !animationFrame) {
2458
+ resizeObserver.observe(referenceEl);
2459
+ }
2460
+ resizeObserver.observe(floating);
2461
+ }
2462
+ let frameId;
2463
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
2464
+ if (animationFrame) {
2465
+ frameLoop();
2466
+ }
2467
+ function frameLoop() {
2468
+ const nextRefRect = getBoundingClientRect(reference);
2469
+ if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
2470
+ update();
2471
+ }
2472
+ prevRefRect = nextRefRect;
2473
+ frameId = requestAnimationFrame(frameLoop);
2474
+ }
2475
+ update();
2476
+ return () => {
2477
+ var _resizeObserver2;
2478
+ ancestors.forEach((ancestor) => {
2479
+ ancestorScroll && ancestor.removeEventListener("scroll", update);
2480
+ ancestorResize && ancestor.removeEventListener("resize", update);
2481
+ });
2482
+ cleanupIo == null || cleanupIo();
2483
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
2484
+ resizeObserver = null;
2485
+ if (animationFrame) {
2486
+ cancelAnimationFrame(frameId);
2487
+ }
2488
+ };
2489
+ }
2490
+ var index = useLayoutEffect;
2491
+ var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
2492
+ var noop = function noop2() {
2493
+ };
2494
+ function applyPrefixToName(prefix2, name) {
2495
+ if (!name) {
2496
+ return prefix2;
2497
+ } else if (name[0] === "-") {
2498
+ return prefix2 + name;
2499
+ } else {
2500
+ return prefix2 + "__" + name;
2501
+ }
2502
+ }
2503
+ function classNames(prefix2, state) {
2504
+ for (var _len = arguments.length, classNameList = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
2505
+ classNameList[_key - 2] = arguments[_key];
2506
+ }
2507
+ var arr = [].concat(classNameList);
2508
+ if (state && prefix2) {
2509
+ for (var key in state) {
2510
+ if (state.hasOwnProperty(key) && state[key]) {
2511
+ arr.push("".concat(applyPrefixToName(prefix2, key)));
2512
+ }
2513
+ }
2514
+ }
2515
+ return arr.filter(function(i) {
2516
+ return i;
2517
+ }).map(function(i) {
2518
+ return String(i).trim();
2519
+ }).join(" ");
2520
+ }
2521
+ var cleanValue = function cleanValue2(value) {
2522
+ if (isArray(value))
2523
+ return value.filter(Boolean);
2524
+ if (_typeof(value) === "object" && value !== null)
2525
+ return [value];
2526
+ return [];
2527
+ };
2528
+ var cleanCommonProps = function cleanCommonProps2(props) {
2529
+ props.className;
2530
+ props.clearValue;
2531
+ props.cx;
2532
+ props.getStyles;
2533
+ props.getClassNames;
2534
+ props.getValue;
2535
+ props.hasValue;
2536
+ props.isMulti;
2537
+ props.isRtl;
2538
+ props.options;
2539
+ props.selectOption;
2540
+ props.selectProps;
2541
+ props.setValue;
2542
+ props.theme;
2543
+ var innerProps = _objectWithoutProperties(props, _excluded$4);
2544
+ return _objectSpread2({}, innerProps);
2545
+ };
2546
+ var getStyleProps = function getStyleProps2(props, name, classNamesState) {
2547
+ var cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, className = props.className;
2548
+ return {
2549
+ css: getStyles(name, props),
2550
+ className: cx(classNamesState !== null && classNamesState !== void 0 ? classNamesState : {}, getClassNames(name, props), className)
2551
+ };
2552
+ };
2553
+ function handleInputChange(inputValue, actionMeta, onInputChange) {
2554
+ if (onInputChange) {
2555
+ var _newValue = onInputChange(inputValue, actionMeta);
2556
+ if (typeof _newValue === "string")
2557
+ return _newValue;
2558
+ }
2559
+ return inputValue;
2560
+ }
2561
+ function isDocumentElement(el) {
2562
+ return [document.documentElement, document.body, window].indexOf(el) > -1;
2563
+ }
2564
+ function normalizedHeight(el) {
2565
+ if (isDocumentElement(el)) {
2566
+ return window.innerHeight;
2567
+ }
2568
+ return el.clientHeight;
2569
+ }
2570
+ function getScrollTop(el) {
2571
+ if (isDocumentElement(el)) {
2572
+ return window.pageYOffset;
2573
+ }
2574
+ return el.scrollTop;
2575
+ }
2576
+ function scrollTo(el, top) {
2577
+ if (isDocumentElement(el)) {
2578
+ window.scrollTo(0, top);
2579
+ return;
2580
+ }
2581
+ el.scrollTop = top;
2582
+ }
2583
+ function getScrollParent(element) {
2584
+ var style = getComputedStyle(element);
2585
+ var excludeStaticParent = style.position === "absolute";
2586
+ var overflowRx = /(auto|scroll)/;
2587
+ if (style.position === "fixed")
2588
+ return document.documentElement;
2589
+ for (var parent = element; parent = parent.parentElement; ) {
2590
+ style = getComputedStyle(parent);
2591
+ if (excludeStaticParent && style.position === "static") {
2592
+ continue;
2593
+ }
2594
+ if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {
2595
+ return parent;
2596
+ }
2597
+ }
2598
+ return document.documentElement;
2599
+ }
2600
+ function easeOutCubic(t, b, c, d) {
2601
+ return c * ((t = t / d - 1) * t * t + 1) + b;
2602
+ }
2603
+ function animatedScrollTo(element, to) {
2604
+ var duration = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200;
2605
+ var callback = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : noop;
2606
+ var start = getScrollTop(element);
2607
+ var change = to - start;
2608
+ var increment = 10;
2609
+ var currentTime = 0;
2610
+ function animateScroll() {
2611
+ currentTime += increment;
2612
+ var val = easeOutCubic(currentTime, start, change, duration);
2613
+ scrollTo(element, val);
2614
+ if (currentTime < duration) {
2615
+ window.requestAnimationFrame(animateScroll);
2616
+ } else {
2617
+ callback(element);
2618
+ }
2619
+ }
2620
+ animateScroll();
2621
+ }
2622
+ function scrollIntoView(menuEl, focusedEl) {
2623
+ var menuRect = menuEl.getBoundingClientRect();
2624
+ var focusedRect = focusedEl.getBoundingClientRect();
2625
+ var overScroll = focusedEl.offsetHeight / 3;
2626
+ if (focusedRect.bottom + overScroll > menuRect.bottom) {
2627
+ scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
2628
+ } else if (focusedRect.top - overScroll < menuRect.top) {
2629
+ scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
2630
+ }
2631
+ }
2632
+ function getBoundingClientObj(element) {
2633
+ var rect = element.getBoundingClientRect();
2634
+ return {
2635
+ bottom: rect.bottom,
2636
+ height: rect.height,
2637
+ left: rect.left,
2638
+ right: rect.right,
2639
+ top: rect.top,
2640
+ width: rect.width
2641
+ };
2642
+ }
2643
+ function isTouchCapable() {
2644
+ try {
2645
+ document.createEvent("TouchEvent");
2646
+ return true;
2647
+ } catch (e) {
2648
+ return false;
2649
+ }
2650
+ }
2651
+ function isMobileDevice() {
2652
+ try {
2653
+ return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
2654
+ } catch (e) {
2655
+ return false;
2656
+ }
2657
+ }
2658
+ var passiveOptionAccessed = false;
2659
+ var options = {
2660
+ get passive() {
2661
+ return passiveOptionAccessed = true;
2662
+ }
2663
+ };
2664
+ var w = typeof window !== "undefined" ? window : {};
2665
+ if (w.addEventListener && w.removeEventListener) {
2666
+ w.addEventListener("p", noop, options);
2667
+ w.removeEventListener("p", noop, false);
2668
+ }
2669
+ var supportsPassiveEvents = passiveOptionAccessed;
2670
+ function notNullish(item) {
2671
+ return item != null;
2672
+ }
2673
+ function isArray(arg) {
2674
+ return Array.isArray(arg);
2675
+ }
2676
+ function valueTernary(isMulti, multiValue, singleValue) {
2677
+ return isMulti ? multiValue : singleValue;
2678
+ }
2679
+ function singleValueAsValue(singleValue) {
2680
+ return singleValue;
2681
+ }
2682
+ function multiValueAsValue(multiValue) {
2683
+ return multiValue;
2684
+ }
2685
+ var removeProps = function removeProps2(propsObj) {
2686
+ for (var _len2 = arguments.length, properties = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2687
+ properties[_key2 - 1] = arguments[_key2];
2688
+ }
2689
+ var propsMap = Object.entries(propsObj).filter(function(_ref) {
2690
+ var _ref22 = _slicedToArray(_ref, 1), key = _ref22[0];
2691
+ return !properties.includes(key);
2692
+ });
2693
+ return propsMap.reduce(function(newProps, _ref3) {
2694
+ var _ref4 = _slicedToArray(_ref3, 2), key = _ref4[0], val = _ref4[1];
2695
+ newProps[key] = val;
2696
+ return newProps;
2697
+ }, {});
2698
+ };
2699
+ var _excluded$3 = ["children", "innerProps"], _excluded2$1 = ["children", "innerProps"];
2700
+ function getMenuPlacement(_ref) {
2701
+ var preferredMaxHeight = _ref.maxHeight, menuEl = _ref.menuEl, minHeight = _ref.minHeight, preferredPlacement = _ref.placement, shouldScroll = _ref.shouldScroll, isFixedPosition = _ref.isFixedPosition, controlHeight = _ref.controlHeight;
2702
+ var scrollParent = getScrollParent(menuEl);
2703
+ var defaultState = {
2704
+ placement: "bottom",
2705
+ maxHeight: preferredMaxHeight
2706
+ };
2707
+ if (!menuEl || !menuEl.offsetParent)
2708
+ return defaultState;
2709
+ var _scrollParent$getBoun = scrollParent.getBoundingClientRect(), scrollHeight = _scrollParent$getBoun.height;
2710
+ var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(), menuBottom = _menuEl$getBoundingCl.bottom, menuHeight = _menuEl$getBoundingCl.height, menuTop = _menuEl$getBoundingCl.top;
2711
+ var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(), containerTop = _menuEl$offsetParent$.top;
2712
+ var viewHeight = isFixedPosition ? window.innerHeight : normalizedHeight(scrollParent);
2713
+ var scrollTop = getScrollTop(scrollParent);
2714
+ var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
2715
+ var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
2716
+ var viewSpaceAbove = containerTop - marginTop;
2717
+ var viewSpaceBelow = viewHeight - menuTop;
2718
+ var scrollSpaceAbove = viewSpaceAbove + scrollTop;
2719
+ var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
2720
+ var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
2721
+ var scrollUp = scrollTop + menuTop - marginTop;
2722
+ var scrollDuration = 160;
2723
+ switch (preferredPlacement) {
2724
+ case "auto":
2725
+ case "bottom":
2726
+ if (viewSpaceBelow >= menuHeight) {
2727
+ return {
2728
+ placement: "bottom",
2729
+ maxHeight: preferredMaxHeight
2730
+ };
2731
+ }
2732
+ if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
2733
+ if (shouldScroll) {
2734
+ animatedScrollTo(scrollParent, scrollDown, scrollDuration);
2735
+ }
2736
+ return {
2737
+ placement: "bottom",
2738
+ maxHeight: preferredMaxHeight
2739
+ };
2740
+ }
2741
+ if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
2742
+ if (shouldScroll) {
2743
+ animatedScrollTo(scrollParent, scrollDown, scrollDuration);
2744
+ }
2745
+ var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;
2746
+ return {
2747
+ placement: "bottom",
2748
+ maxHeight: constrainedHeight
2749
+ };
2750
+ }
2751
+ if (preferredPlacement === "auto" || isFixedPosition) {
2752
+ var _constrainedHeight = preferredMaxHeight;
2753
+ var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;
2754
+ if (spaceAbove >= minHeight) {
2755
+ _constrainedHeight = Math.min(spaceAbove - marginBottom - controlHeight, preferredMaxHeight);
2756
+ }
2757
+ return {
2758
+ placement: "top",
2759
+ maxHeight: _constrainedHeight
2760
+ };
2761
+ }
2762
+ if (preferredPlacement === "bottom") {
2763
+ if (shouldScroll) {
2764
+ scrollTo(scrollParent, scrollDown);
2765
+ }
2766
+ return {
2767
+ placement: "bottom",
2768
+ maxHeight: preferredMaxHeight
2769
+ };
2770
+ }
2771
+ break;
2772
+ case "top":
2773
+ if (viewSpaceAbove >= menuHeight) {
2774
+ return {
2775
+ placement: "top",
2776
+ maxHeight: preferredMaxHeight
2777
+ };
2778
+ }
2779
+ if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {
2780
+ if (shouldScroll) {
2781
+ animatedScrollTo(scrollParent, scrollUp, scrollDuration);
2782
+ }
2783
+ return {
2784
+ placement: "top",
2785
+ maxHeight: preferredMaxHeight
2786
+ };
2787
+ }
2788
+ if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
2789
+ var _constrainedHeight2 = preferredMaxHeight;
2790
+ if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
2791
+ _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;
2792
+ }
2793
+ if (shouldScroll) {
2794
+ animatedScrollTo(scrollParent, scrollUp, scrollDuration);
2795
+ }
2796
+ return {
2797
+ placement: "top",
2798
+ maxHeight: _constrainedHeight2
2799
+ };
2800
+ }
2801
+ return {
2802
+ placement: "bottom",
2803
+ maxHeight: preferredMaxHeight
2804
+ };
2805
+ default:
2806
+ throw new Error('Invalid placement provided "'.concat(preferredPlacement, '".'));
2807
+ }
2808
+ return defaultState;
2809
+ }
2810
+ function alignToControl(placement) {
2811
+ var placementToCSSProp = {
2812
+ bottom: "top",
2813
+ top: "bottom"
2814
+ };
2815
+ return placement ? placementToCSSProp[placement] : "bottom";
2816
+ }
2817
+ var coercePlacement = function coercePlacement2(p) {
2818
+ return p === "auto" ? "bottom" : p;
2819
+ };
2820
+ var menuCSS = function menuCSS2(_ref22, unstyled) {
2821
+ var _objectSpread2$1;
2822
+ var placement = _ref22.placement, _ref2$theme = _ref22.theme, borderRadius = _ref2$theme.borderRadius, spacing = _ref2$theme.spacing, colors = _ref2$theme.colors;
2823
+ return _objectSpread2((_objectSpread2$1 = {
2824
+ label: "menu"
2825
+ }, _defineProperty(_objectSpread2$1, alignToControl(placement), "100%"), _defineProperty(_objectSpread2$1, "position", "absolute"), _defineProperty(_objectSpread2$1, "width", "100%"), _defineProperty(_objectSpread2$1, "zIndex", 1), _objectSpread2$1), unstyled ? {} : {
2826
+ backgroundColor: colors.neutral0,
2827
+ borderRadius,
2828
+ boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
2829
+ marginBottom: spacing.menuGutter,
2830
+ marginTop: spacing.menuGutter
2831
+ });
2832
+ };
2833
+ var PortalPlacementContext = /* @__PURE__ */ createContext(null);
2834
+ var MenuPlacer = function MenuPlacer2(props) {
2835
+ var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
2836
+ var _ref3 = useContext(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
2837
+ var ref = useRef(null);
2838
+ var _useState = useState(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
2839
+ var _useState3 = useState(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
2840
+ var controlHeight = theme.spacing.controlHeight;
2841
+ index(function() {
2842
+ var menuEl = ref.current;
2843
+ if (!menuEl)
2844
+ return;
2845
+ var isFixedPosition = menuPosition === "fixed";
2846
+ var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;
2847
+ var state = getMenuPlacement({
2848
+ maxHeight: maxMenuHeight,
2849
+ menuEl,
2850
+ minHeight: minMenuHeight,
2851
+ placement: menuPlacement,
2852
+ shouldScroll,
2853
+ isFixedPosition,
2854
+ controlHeight
2855
+ });
2856
+ setMaxHeight(state.maxHeight);
2857
+ setPlacement(state.placement);
2858
+ setPortalPlacement === null || setPortalPlacement === void 0 ? void 0 : setPortalPlacement(state.placement);
2859
+ }, [maxMenuHeight, menuPlacement, menuPosition, menuShouldScrollIntoView, minMenuHeight, setPortalPlacement, controlHeight]);
2860
+ return children({
2861
+ ref,
2862
+ placerProps: _objectSpread2(_objectSpread2({}, props), {}, {
2863
+ placement: placement || coercePlacement(menuPlacement),
2864
+ maxHeight
2865
+ })
2866
+ });
2867
+ };
2868
+ var Menu = function Menu2(props) {
2869
+ var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
2870
+ return jsx("div", _extends({}, getStyleProps(props, "menu", {
2871
+ menu: true
2872
+ }), {
2873
+ ref: innerRef
2874
+ }, innerProps), children);
2875
+ };
2876
+ var Menu$1 = Menu;
2877
+ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
2878
+ var maxHeight = _ref4.maxHeight, baseUnit = _ref4.theme.spacing.baseUnit;
2879
+ return _objectSpread2({
2880
+ maxHeight,
2881
+ overflowY: "auto",
2882
+ position: "relative",
2883
+ // required for offset[Height, Top] > keyboard scroll
2884
+ WebkitOverflowScrolling: "touch"
2885
+ }, unstyled ? {} : {
2886
+ paddingBottom: baseUnit,
2887
+ paddingTop: baseUnit
2888
+ });
2889
+ };
2890
+ var MenuList = function MenuList2(props) {
2891
+ var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
2892
+ return jsx("div", _extends({}, getStyleProps(props, "menuList", {
2893
+ "menu-list": true,
2894
+ "menu-list--is-multi": isMulti
2895
+ }), {
2896
+ ref: innerRef
2897
+ }, innerProps), children);
2898
+ };
2899
+ var noticeCSS = function noticeCSS2(_ref5, unstyled) {
2900
+ var _ref5$theme = _ref5.theme, baseUnit = _ref5$theme.spacing.baseUnit, colors = _ref5$theme.colors;
2901
+ return _objectSpread2({
2902
+ textAlign: "center"
2903
+ }, unstyled ? {} : {
2904
+ color: colors.neutral40,
2905
+ padding: "".concat(baseUnit * 2, "px ").concat(baseUnit * 3, "px")
2906
+ });
2907
+ };
2908
+ var noOptionsMessageCSS = noticeCSS;
2909
+ var loadingMessageCSS = noticeCSS;
2910
+ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
2911
+ var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
2912
+ return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
2913
+ children,
2914
+ innerProps
2915
+ }), "noOptionsMessage", {
2916
+ "menu-notice": true,
2917
+ "menu-notice--no-options": true
2918
+ }), innerProps), children);
2919
+ };
2920
+ var LoadingMessage = function LoadingMessage2(_ref7) {
2921
+ var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
2922
+ return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
2923
+ children,
2924
+ innerProps
2925
+ }), "loadingMessage", {
2926
+ "menu-notice": true,
2927
+ "menu-notice--loading": true
2928
+ }), innerProps), children);
2929
+ };
2930
+ var menuPortalCSS = function menuPortalCSS2(_ref8) {
2931
+ var rect = _ref8.rect, offset = _ref8.offset, position2 = _ref8.position;
2932
+ return {
2933
+ left: rect.left,
2934
+ position: position2,
2935
+ top: offset,
2936
+ width: rect.width,
2937
+ zIndex: 1
2938
+ };
2939
+ };
2940
+ var MenuPortal = function MenuPortal2(props) {
2941
+ var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
2942
+ var menuPortalRef = useRef(null);
2943
+ var cleanupRef = useRef(null);
2944
+ var _useState5 = useState(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
2945
+ var portalPlacementContext = useMemo(function() {
2946
+ return {
2947
+ setPortalPlacement
2948
+ };
2949
+ }, []);
2950
+ var _useState7 = useState(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
2951
+ var updateComputedPosition = useCallback(function() {
2952
+ if (!controlElement)
2953
+ return;
2954
+ var rect = getBoundingClientObj(controlElement);
2955
+ var scrollDistance = menuPosition === "fixed" ? 0 : window.pageYOffset;
2956
+ var offset = rect[placement] + scrollDistance;
2957
+ if (offset !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset) || rect.left !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left) || rect.width !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width)) {
2958
+ setComputedPosition({
2959
+ offset,
2960
+ rect
2961
+ });
2962
+ }
2963
+ }, [controlElement, menuPosition, placement, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width]);
2964
+ index(function() {
2965
+ updateComputedPosition();
2966
+ }, [updateComputedPosition]);
2967
+ var runAutoUpdate = useCallback(function() {
2968
+ if (typeof cleanupRef.current === "function") {
2969
+ cleanupRef.current();
2970
+ cleanupRef.current = null;
2971
+ }
2972
+ if (controlElement && menuPortalRef.current) {
2973
+ cleanupRef.current = autoUpdate(controlElement, menuPortalRef.current, updateComputedPosition, {
2974
+ elementResize: "ResizeObserver" in window
2975
+ });
2976
+ }
2977
+ }, [controlElement, updateComputedPosition]);
2978
+ index(function() {
2979
+ runAutoUpdate();
2980
+ }, [runAutoUpdate]);
2981
+ var setMenuPortalElement = useCallback(function(menuPortalElement) {
2982
+ menuPortalRef.current = menuPortalElement;
2983
+ runAutoUpdate();
2984
+ }, [runAutoUpdate]);
2985
+ if (!appendTo && menuPosition !== "fixed" || !computedPosition)
2986
+ return null;
2987
+ var menuWrapper = jsx("div", _extends({
2988
+ ref: setMenuPortalElement
2989
+ }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
2990
+ offset: computedPosition.offset,
2991
+ position: menuPosition,
2992
+ rect: computedPosition.rect
2993
+ }), "menuPortal", {
2994
+ "menu-portal": true
2995
+ }), innerProps), children);
2996
+ return jsx(PortalPlacementContext.Provider, {
2997
+ value: portalPlacementContext
2998
+ }, appendTo ? /* @__PURE__ */ reactDomExports.createPortal(menuWrapper, appendTo) : menuWrapper);
2999
+ };
3000
+ var containerCSS = function containerCSS2(_ref) {
3001
+ var isDisabled = _ref.isDisabled, isRtl = _ref.isRtl;
3002
+ return {
3003
+ label: "container",
3004
+ direction: isRtl ? "rtl" : void 0,
3005
+ pointerEvents: isDisabled ? "none" : void 0,
3006
+ // cancel mouse events when disabled
3007
+ position: "relative"
3008
+ };
3009
+ };
3010
+ var SelectContainer = function SelectContainer2(props) {
3011
+ var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
3012
+ return jsx("div", _extends({}, getStyleProps(props, "container", {
3013
+ "--is-disabled": isDisabled,
3014
+ "--is-rtl": isRtl
3015
+ }), innerProps), children);
3016
+ };
3017
+ var valueContainerCSS = function valueContainerCSS2(_ref22, unstyled) {
3018
+ var spacing = _ref22.theme.spacing, isMulti = _ref22.isMulti, hasValue = _ref22.hasValue, controlShouldRenderValue = _ref22.selectProps.controlShouldRenderValue;
3019
+ return _objectSpread2({
3020
+ alignItems: "center",
3021
+ display: isMulti && hasValue && controlShouldRenderValue ? "flex" : "grid",
3022
+ flex: 1,
3023
+ flexWrap: "wrap",
3024
+ WebkitOverflowScrolling: "touch",
3025
+ position: "relative",
3026
+ overflow: "hidden"
3027
+ }, unstyled ? {} : {
3028
+ padding: "".concat(spacing.baseUnit / 2, "px ").concat(spacing.baseUnit * 2, "px")
3029
+ });
3030
+ };
3031
+ var ValueContainer = function ValueContainer2(props) {
3032
+ var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
3033
+ return jsx("div", _extends({}, getStyleProps(props, "valueContainer", {
3034
+ "value-container": true,
3035
+ "value-container--is-multi": isMulti,
3036
+ "value-container--has-value": hasValue
3037
+ }), innerProps), children);
3038
+ };
3039
+ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
3040
+ return {
3041
+ alignItems: "center",
3042
+ alignSelf: "stretch",
3043
+ display: "flex",
3044
+ flexShrink: 0
3045
+ };
3046
+ };
3047
+ var IndicatorsContainer = function IndicatorsContainer2(props) {
3048
+ var children = props.children, innerProps = props.innerProps;
3049
+ return jsx("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
3050
+ indicators: true
3051
+ }), innerProps), children);
3052
+ };
3053
+ var _templateObject;
3054
+ var _excluded$2 = ["size"], _excluded2 = ["innerProps", "isRtl", "size"];
3055
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() {
3056
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
3057
+ }
3058
+ var _ref2 = process.env.NODE_ENV === "production" ? {
3059
+ name: "8mmkcg",
3060
+ styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
3061
+ } : {
3062
+ name: "tj5bde-Svg",
3063
+ styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
3064
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljY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cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",
3065
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
3066
+ };
3067
+ var Svg = function Svg2(_ref) {
3068
+ var size = _ref.size, props = _objectWithoutProperties(_ref, _excluded$2);
3069
+ return jsx("svg", _extends({
3070
+ height: size,
3071
+ width: size,
3072
+ viewBox: "0 0 20 20",
3073
+ "aria-hidden": "true",
3074
+ focusable: "false",
3075
+ css: _ref2
3076
+ }, props));
3077
+ };
3078
+ var CrossIcon = function CrossIcon2(props) {
3079
+ return jsx(Svg, _extends({
3080
+ size: 20
3081
+ }, props), jsx("path", {
3082
+ d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
3083
+ }));
3084
+ };
3085
+ var DownChevron = function DownChevron2(props) {
3086
+ return jsx(Svg, _extends({
3087
+ size: 20
3088
+ }, props), jsx("path", {
3089
+ d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
3090
+ }));
3091
+ };
3092
+ var baseCSS = function baseCSS2(_ref3, unstyled) {
3093
+ var isFocused = _ref3.isFocused, _ref3$theme = _ref3.theme, baseUnit = _ref3$theme.spacing.baseUnit, colors = _ref3$theme.colors;
3094
+ return _objectSpread2({
3095
+ label: "indicatorContainer",
3096
+ display: "flex",
3097
+ transition: "color 150ms"
3098
+ }, unstyled ? {} : {
3099
+ color: isFocused ? colors.neutral60 : colors.neutral20,
3100
+ padding: baseUnit * 2,
3101
+ ":hover": {
3102
+ color: isFocused ? colors.neutral80 : colors.neutral40
3103
+ }
3104
+ });
3105
+ };
3106
+ var dropdownIndicatorCSS = baseCSS;
3107
+ var DropdownIndicator = function DropdownIndicator2(props) {
3108
+ var children = props.children, innerProps = props.innerProps;
3109
+ return jsx("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
3110
+ indicator: true,
3111
+ "dropdown-indicator": true
3112
+ }), innerProps), children || jsx(DownChevron, null));
3113
+ };
3114
+ var clearIndicatorCSS = baseCSS;
3115
+ var ClearIndicator = function ClearIndicator2(props) {
3116
+ var children = props.children, innerProps = props.innerProps;
3117
+ return jsx("div", _extends({}, getStyleProps(props, "clearIndicator", {
3118
+ indicator: true,
3119
+ "clear-indicator": true
3120
+ }), innerProps), children || jsx(CrossIcon, null));
3121
+ };
3122
+ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
3123
+ var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit = _ref4$theme.spacing.baseUnit, colors = _ref4$theme.colors;
3124
+ return _objectSpread2({
3125
+ label: "indicatorSeparator",
3126
+ alignSelf: "stretch",
3127
+ width: 1
3128
+ }, unstyled ? {} : {
3129
+ backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,
3130
+ marginBottom: baseUnit * 2,
3131
+ marginTop: baseUnit * 2
3132
+ });
3133
+ };
3134
+ var IndicatorSeparator = function IndicatorSeparator2(props) {
3135
+ var innerProps = props.innerProps;
3136
+ return jsx("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
3137
+ "indicator-separator": true
3138
+ })));
3139
+ };
3140
+ var loadingDotAnimations = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"])));
3141
+ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
3142
+ var isFocused = _ref5.isFocused, size = _ref5.size, _ref5$theme = _ref5.theme, colors = _ref5$theme.colors, baseUnit = _ref5$theme.spacing.baseUnit;
3143
+ return _objectSpread2({
3144
+ label: "loadingIndicator",
3145
+ display: "flex",
3146
+ transition: "color 150ms",
3147
+ alignSelf: "center",
3148
+ fontSize: size,
3149
+ lineHeight: 1,
3150
+ marginRight: size,
3151
+ textAlign: "center",
3152
+ verticalAlign: "middle"
3153
+ }, unstyled ? {} : {
3154
+ color: isFocused ? colors.neutral60 : colors.neutral20,
3155
+ padding: baseUnit * 2
3156
+ });
3157
+ };
3158
+ var LoadingDot = function LoadingDot2(_ref6) {
3159
+ var delay = _ref6.delay, offset = _ref6.offset;
3160
+ return jsx("span", {
3161
+ css: /* @__PURE__ */ css$2({
3162
+ animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
3163
+ backgroundColor: "currentColor",
3164
+ borderRadius: "1em",
3165
+ display: "inline-block",
3166
+ marginLeft: offset ? "1em" : void 0,
3167
+ height: "1em",
3168
+ verticalAlign: "top",
3169
+ width: "1em"
3170
+ }, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpb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0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")
3171
+ });
3172
+ };
3173
+ var LoadingIndicator = function LoadingIndicator2(_ref7) {
3174
+ var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
3175
+ return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
3176
+ innerProps,
3177
+ isRtl,
3178
+ size
3179
+ }), "loadingIndicator", {
3180
+ indicator: true,
3181
+ "loading-indicator": true
3182
+ }), innerProps), jsx(LoadingDot, {
3183
+ delay: 0,
3184
+ offset: isRtl
3185
+ }), jsx(LoadingDot, {
3186
+ delay: 160,
3187
+ offset: true
3188
+ }), jsx(LoadingDot, {
3189
+ delay: 320,
3190
+ offset: !isRtl
3191
+ }));
3192
+ };
3193
+ var css$1 = function css(_ref, unstyled) {
3194
+ var isDisabled = _ref.isDisabled, isFocused = _ref.isFocused, _ref$theme = _ref.theme, colors = _ref$theme.colors, borderRadius = _ref$theme.borderRadius, spacing = _ref$theme.spacing;
3195
+ return _objectSpread2({
3196
+ label: "control",
3197
+ alignItems: "center",
3198
+ cursor: "default",
3199
+ display: "flex",
3200
+ flexWrap: "wrap",
3201
+ justifyContent: "space-between",
3202
+ minHeight: spacing.controlHeight,
3203
+ outline: "0 !important",
3204
+ position: "relative",
3205
+ transition: "all 100ms"
3206
+ }, unstyled ? {} : {
3207
+ backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,
3208
+ borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,
3209
+ borderRadius,
3210
+ borderStyle: "solid",
3211
+ borderWidth: 1,
3212
+ boxShadow: isFocused ? "0 0 0 1px ".concat(colors.primary) : void 0,
3213
+ "&:hover": {
3214
+ borderColor: isFocused ? colors.primary : colors.neutral30
3215
+ }
3216
+ });
3217
+ };
3218
+ var Control = function Control2(props) {
3219
+ var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
3220
+ return jsx("div", _extends({
3221
+ ref: innerRef
3222
+ }, getStyleProps(props, "control", {
3223
+ control: true,
3224
+ "control--is-disabled": isDisabled,
3225
+ "control--is-focused": isFocused,
3226
+ "control--menu-is-open": menuIsOpen
3227
+ }), innerProps, {
3228
+ "aria-disabled": isDisabled || void 0
3229
+ }), children);
3230
+ };
3231
+ var Control$1 = Control;
3232
+ var _excluded$1 = ["data"];
3233
+ var groupCSS = function groupCSS2(_ref, unstyled) {
3234
+ var spacing = _ref.theme.spacing;
3235
+ return unstyled ? {} : {
3236
+ paddingBottom: spacing.baseUnit * 2,
3237
+ paddingTop: spacing.baseUnit * 2
3238
+ };
3239
+ };
3240
+ var Group = function Group2(props) {
3241
+ var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, Heading = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
3242
+ return jsx("div", _extends({}, getStyleProps(props, "group", {
3243
+ group: true
3244
+ }), innerProps), jsx(Heading, _extends({}, headingProps, {
3245
+ selectProps,
3246
+ theme,
3247
+ getStyles,
3248
+ getClassNames,
3249
+ cx
3250
+ }), label), jsx("div", null, children));
3251
+ };
3252
+ var groupHeadingCSS = function groupHeadingCSS2(_ref22, unstyled) {
3253
+ var _ref2$theme = _ref22.theme, colors = _ref2$theme.colors, spacing = _ref2$theme.spacing;
3254
+ return _objectSpread2({
3255
+ label: "group",
3256
+ cursor: "default",
3257
+ display: "block"
3258
+ }, unstyled ? {} : {
3259
+ color: colors.neutral40,
3260
+ fontSize: "75%",
3261
+ fontWeight: 500,
3262
+ marginBottom: "0.25em",
3263
+ paddingLeft: spacing.baseUnit * 3,
3264
+ paddingRight: spacing.baseUnit * 3,
3265
+ textTransform: "uppercase"
3266
+ });
3267
+ };
3268
+ var GroupHeading = function GroupHeading2(props) {
3269
+ var _cleanCommonProps = cleanCommonProps(props);
3270
+ _cleanCommonProps.data;
3271
+ var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
3272
+ return jsx("div", _extends({}, getStyleProps(props, "groupHeading", {
3273
+ "group-heading": true
3274
+ }), innerProps));
3275
+ };
3276
+ var Group$1 = Group;
3277
+ var _excluded = ["innerRef", "isDisabled", "isHidden", "inputClassName"];
3278
+ var inputCSS = function inputCSS2(_ref, unstyled) {
3279
+ var isDisabled = _ref.isDisabled, value = _ref.value, _ref$theme = _ref.theme, spacing = _ref$theme.spacing, colors = _ref$theme.colors;
3280
+ return _objectSpread2(_objectSpread2({
3281
+ visibility: isDisabled ? "hidden" : "visible",
3282
+ // force css to recompute when value change due to @emotion bug.
3283
+ // We can remove it whenever the bug is fixed.
3284
+ transform: value ? "translateZ(0)" : ""
3285
+ }, containerStyle), unstyled ? {} : {
3286
+ margin: spacing.baseUnit / 2,
3287
+ paddingBottom: spacing.baseUnit / 2,
3288
+ paddingTop: spacing.baseUnit / 2,
3289
+ color: colors.neutral80
3290
+ });
3291
+ };
3292
+ var spacingStyle = {
3293
+ gridArea: "1 / 2",
3294
+ font: "inherit",
3295
+ minWidth: "2px",
3296
+ border: 0,
3297
+ margin: 0,
3298
+ outline: 0,
3299
+ padding: 0
3300
+ };
3301
+ var containerStyle = {
3302
+ flex: "1 1 auto",
3303
+ display: "inline-grid",
3304
+ gridArea: "1 / 1 / 2 / 3",
3305
+ gridTemplateColumns: "0 min-content",
3306
+ "&:after": _objectSpread2({
3307
+ content: 'attr(data-value) " "',
3308
+ visibility: "hidden",
3309
+ whiteSpace: "pre"
3310
+ }, spacingStyle)
3311
+ };
3312
+ var inputStyle = function inputStyle2(isHidden) {
3313
+ return _objectSpread2({
3314
+ label: "input",
3315
+ color: "inherit",
3316
+ background: 0,
3317
+ opacity: isHidden ? 0 : 1,
3318
+ width: "100%"
3319
+ }, spacingStyle);
3320
+ };
3321
+ var Input = function Input2(props) {
3322
+ var cx = props.cx, value = props.value;
3323
+ var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded);
3324
+ return jsx("div", _extends({}, getStyleProps(props, "input", {
3325
+ "input-container": true
3326
+ }), {
3327
+ "data-value": value || ""
3328
+ }), jsx("input", _extends({
3329
+ className: cx({
3330
+ input: true
3331
+ }, inputClassName),
3332
+ ref: innerRef,
3333
+ style: inputStyle(isHidden),
3334
+ disabled: isDisabled
3335
+ }, innerProps)));
3336
+ };
3337
+ var Input$1 = Input;
3338
+ var multiValueCSS = function multiValueCSS2(_ref, unstyled) {
3339
+ var _ref$theme = _ref.theme, spacing = _ref$theme.spacing, borderRadius = _ref$theme.borderRadius, colors = _ref$theme.colors;
3340
+ return _objectSpread2({
3341
+ label: "multiValue",
3342
+ display: "flex",
3343
+ minWidth: 0
3344
+ }, unstyled ? {} : {
3345
+ backgroundColor: colors.neutral10,
3346
+ borderRadius: borderRadius / 2,
3347
+ margin: spacing.baseUnit / 2
3348
+ });
3349
+ };
3350
+ var multiValueLabelCSS = function multiValueLabelCSS2(_ref22, unstyled) {
3351
+ var _ref2$theme = _ref22.theme, borderRadius = _ref2$theme.borderRadius, colors = _ref2$theme.colors, cropWithEllipsis = _ref22.cropWithEllipsis;
3352
+ return _objectSpread2({
3353
+ overflow: "hidden",
3354
+ textOverflow: cropWithEllipsis || cropWithEllipsis === void 0 ? "ellipsis" : void 0,
3355
+ whiteSpace: "nowrap"
3356
+ }, unstyled ? {} : {
3357
+ borderRadius: borderRadius / 2,
3358
+ color: colors.neutral80,
3359
+ fontSize: "85%",
3360
+ padding: 3,
3361
+ paddingLeft: 6
3362
+ });
3363
+ };
3364
+ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
3365
+ var _ref3$theme = _ref3.theme, spacing = _ref3$theme.spacing, borderRadius = _ref3$theme.borderRadius, colors = _ref3$theme.colors, isFocused = _ref3.isFocused;
3366
+ return _objectSpread2({
3367
+ alignItems: "center",
3368
+ display: "flex"
3369
+ }, unstyled ? {} : {
3370
+ borderRadius: borderRadius / 2,
3371
+ backgroundColor: isFocused ? colors.dangerLight : void 0,
3372
+ paddingLeft: spacing.baseUnit,
3373
+ paddingRight: spacing.baseUnit,
3374
+ ":hover": {
3375
+ backgroundColor: colors.dangerLight,
3376
+ color: colors.danger
3377
+ }
3378
+ });
3379
+ };
3380
+ var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
3381
+ var children = _ref4.children, innerProps = _ref4.innerProps;
3382
+ return jsx("div", innerProps, children);
3383
+ };
3384
+ var MultiValueContainer = MultiValueGeneric;
3385
+ var MultiValueLabel = MultiValueGeneric;
3386
+ function MultiValueRemove(_ref5) {
3387
+ var children = _ref5.children, innerProps = _ref5.innerProps;
3388
+ return jsx("div", _extends({
3389
+ role: "button"
3390
+ }, innerProps), children || jsx(CrossIcon, {
3391
+ size: 14
3392
+ }));
3393
+ }
3394
+ var MultiValue = function MultiValue2(props) {
3395
+ var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
3396
+ var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
3397
+ return jsx(Container, {
3398
+ data,
3399
+ innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
3400
+ "multi-value": true,
3401
+ "multi-value--is-disabled": isDisabled
3402
+ })), innerProps),
3403
+ selectProps
3404
+ }, jsx(Label, {
3405
+ data,
3406
+ innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
3407
+ "multi-value__label": true
3408
+ })),
3409
+ selectProps
3410
+ }, children), jsx(Remove, {
3411
+ data,
3412
+ innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
3413
+ "multi-value__remove": true
3414
+ })), {}, {
3415
+ "aria-label": "Remove ".concat(children || "option")
3416
+ }, removeProps3),
3417
+ selectProps
3418
+ }));
3419
+ };
3420
+ var MultiValue$1 = MultiValue;
3421
+ var optionCSS = function optionCSS2(_ref, unstyled) {
3422
+ var isDisabled = _ref.isDisabled, isFocused = _ref.isFocused, isSelected = _ref.isSelected, _ref$theme = _ref.theme, spacing = _ref$theme.spacing, colors = _ref$theme.colors;
3423
+ return _objectSpread2({
3424
+ label: "option",
3425
+ cursor: "default",
3426
+ display: "block",
3427
+ fontSize: "inherit",
3428
+ width: "100%",
3429
+ userSelect: "none",
3430
+ WebkitTapHighlightColor: "rgba(0, 0, 0, 0)"
3431
+ }, unstyled ? {} : {
3432
+ backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : "transparent",
3433
+ color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : "inherit",
3434
+ padding: "".concat(spacing.baseUnit * 2, "px ").concat(spacing.baseUnit * 3, "px"),
3435
+ // provide some affordance on touch devices
3436
+ ":active": {
3437
+ backgroundColor: !isDisabled ? isSelected ? colors.primary : colors.primary50 : void 0
3438
+ }
3439
+ });
3440
+ };
3441
+ var Option = function Option2(props) {
3442
+ var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
3443
+ return jsx("div", _extends({}, getStyleProps(props, "option", {
3444
+ option: true,
3445
+ "option--is-disabled": isDisabled,
3446
+ "option--is-focused": isFocused,
3447
+ "option--is-selected": isSelected
3448
+ }), {
3449
+ ref: innerRef,
3450
+ "aria-disabled": isDisabled
3451
+ }, innerProps), children);
3452
+ };
3453
+ var Option$1 = Option;
3454
+ var placeholderCSS = function placeholderCSS2(_ref, unstyled) {
3455
+ var _ref$theme = _ref.theme, spacing = _ref$theme.spacing, colors = _ref$theme.colors;
3456
+ return _objectSpread2({
3457
+ label: "placeholder",
3458
+ gridArea: "1 / 1 / 2 / 3"
3459
+ }, unstyled ? {} : {
3460
+ color: colors.neutral50,
3461
+ marginLeft: spacing.baseUnit / 2,
3462
+ marginRight: spacing.baseUnit / 2
3463
+ });
3464
+ };
3465
+ var Placeholder = function Placeholder2(props) {
3466
+ var children = props.children, innerProps = props.innerProps;
3467
+ return jsx("div", _extends({}, getStyleProps(props, "placeholder", {
3468
+ placeholder: true
3469
+ }), innerProps), children);
3470
+ };
3471
+ var Placeholder$1 = Placeholder;
3472
+ var css2 = function css3(_ref, unstyled) {
3473
+ var isDisabled = _ref.isDisabled, _ref$theme = _ref.theme, spacing = _ref$theme.spacing, colors = _ref$theme.colors;
3474
+ return _objectSpread2({
3475
+ label: "singleValue",
3476
+ gridArea: "1 / 1 / 2 / 3",
3477
+ maxWidth: "100%",
3478
+ overflow: "hidden",
3479
+ textOverflow: "ellipsis",
3480
+ whiteSpace: "nowrap"
3481
+ }, unstyled ? {} : {
3482
+ color: isDisabled ? colors.neutral40 : colors.neutral80,
3483
+ marginLeft: spacing.baseUnit / 2,
3484
+ marginRight: spacing.baseUnit / 2
3485
+ });
3486
+ };
3487
+ var SingleValue = function SingleValue2(props) {
3488
+ var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
3489
+ return jsx("div", _extends({}, getStyleProps(props, "singleValue", {
3490
+ "single-value": true,
3491
+ "single-value--is-disabled": isDisabled
3492
+ }), innerProps), children);
3493
+ };
3494
+ var SingleValue$1 = SingleValue;
3495
+ var components = {
3496
+ ClearIndicator,
3497
+ Control: Control$1,
3498
+ DropdownIndicator,
3499
+ DownChevron,
3500
+ CrossIcon,
3501
+ Group: Group$1,
3502
+ GroupHeading,
3503
+ IndicatorsContainer,
3504
+ IndicatorSeparator,
3505
+ Input: Input$1,
3506
+ LoadingIndicator,
3507
+ Menu: Menu$1,
3508
+ MenuList,
3509
+ MenuPortal,
3510
+ LoadingMessage,
3511
+ NoOptionsMessage,
3512
+ MultiValue: MultiValue$1,
3513
+ MultiValueContainer,
3514
+ MultiValueLabel,
3515
+ MultiValueRemove,
3516
+ Option: Option$1,
3517
+ Placeholder: Placeholder$1,
3518
+ SelectContainer,
3519
+ SingleValue: SingleValue$1,
3520
+ ValueContainer
3521
+ };
3522
+ var defaultComponents = function defaultComponents2(props) {
3523
+ return _objectSpread2(_objectSpread2({}, components), props.components);
3524
+ };
3525
+ export {
3526
+ css$1 as A,
3527
+ dropdownIndicatorCSS as B,
3528
+ groupCSS as C,
3529
+ groupHeadingCSS as D,
3530
+ indicatorsContainerCSS as E,
3531
+ indicatorSeparatorCSS as F,
3532
+ inputCSS as G,
3533
+ loadingIndicatorCSS as H,
3534
+ loadingMessageCSS as I,
3535
+ menuCSS as J,
3536
+ menuListCSS as K,
3537
+ menuPortalCSS as L,
3538
+ MenuPlacer as M,
3539
+ multiValueCSS as N,
3540
+ multiValueLabelCSS as O,
3541
+ multiValueRemoveCSS as P,
3542
+ noOptionsMessageCSS as Q,
3543
+ optionCSS as R,
3544
+ placeholderCSS as S,
3545
+ css2 as T,
3546
+ valueContainerCSS as U,
3547
+ notNullish as V,
3548
+ supportsPassiveEvents as W,
3549
+ _extends as _,
3550
+ _objectWithoutProperties as a,
3551
+ _slicedToArray as b,
3552
+ components as c,
3553
+ _objectSpread2 as d,
3554
+ _defineProperty as e,
3555
+ _typeof as f,
3556
+ _arrayLikeToArray as g,
3557
+ handleInputChange as h,
3558
+ _unsupportedIterableToArray as i,
3559
+ isTouchCapable as j,
3560
+ isMobileDevice as k,
3561
+ classNames as l,
3562
+ multiValueAsValue as m,
3563
+ defaultComponents as n,
3564
+ isDocumentElement as o,
3565
+ cleanValue as p,
3566
+ scrollIntoView as q,
3567
+ noop as r,
3568
+ singleValueAsValue as s,
3569
+ toPropertyKey as t,
3570
+ removeProps as u,
3571
+ valueTernary as v,
3572
+ jsx as w,
3573
+ css$2 as x,
3574
+ clearIndicatorCSS as y,
3575
+ containerCSS as z
3576
+ };