AdSense Plugin WP QUADS - Version 2.0.20

Version Description

Download this release

Release Info

Developer wpquads
Plugin Icon 128x128 AdSense Plugin WP QUADS
Version 2.0.20
Comparing to
See all releases

Code changes from version 2.0.19 to 2.0.20

Files changed (1) hide show
  1. admin/assets/js/dist/adminscript.js +10962 -17932
admin/assets/js/dist/adminscript.js CHANGED
@@ -1,131356 +1,144383 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // The module cache
3
- /******/ var installedModules = {};
4
- /******/
5
- /******/ // The require function
6
- /******/ function __webpack_require__(moduleId) {
7
- /******/
8
- /******/ // Check if module is in cache
9
- /******/ if(installedModules[moduleId]) {
10
- /******/ return installedModules[moduleId].exports;
11
- /******/ }
12
- /******/ // Create a new module (and put it into the cache)
13
- /******/ var module = installedModules[moduleId] = {
14
- /******/ i: moduleId,
15
- /******/ l: false,
16
- /******/ exports: {}
17
- /******/ };
18
- /******/
19
- /******/ // Execute the module function
20
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
- /******/
22
- /******/ // Flag the module as loaded
23
- /******/ module.l = true;
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/
30
- /******/ // expose the modules object (__webpack_modules__)
31
- /******/ __webpack_require__.m = modules;
32
- /******/
33
- /******/ // expose the module cache
34
- /******/ __webpack_require__.c = installedModules;
35
- /******/
36
- /******/ // define getter function for harmony exports
37
- /******/ __webpack_require__.d = function(exports, name, getter) {
38
- /******/ if(!__webpack_require__.o(exports, name)) {
39
- /******/ Object.defineProperty(exports, name, {
40
- /******/ configurable: false,
41
- /******/ enumerable: true,
42
- /******/ get: getter
43
- /******/ });
44
- /******/ }
45
- /******/ };
46
- /******/
47
- /******/ // getDefaultExport function for compatibility with non-harmony modules
48
- /******/ __webpack_require__.n = function(module) {
49
- /******/ var getter = module && module.__esModule ?
50
- /******/ function getDefault() { return module['default']; } :
51
- /******/ function getModuleExports() { return module; };
52
- /******/ __webpack_require__.d(getter, 'a', getter);
53
- /******/ return getter;
54
- /******/ };
55
- /******/
56
- /******/ // Object.prototype.hasOwnProperty.call
57
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
58
- /******/
59
- /******/ // __webpack_public_path__
60
- /******/ __webpack_require__.p = "";
61
- /******/
62
- /******/ // Load entry module and return exports
63
- /******/ return __webpack_require__(__webpack_require__.s = 425);
64
- /******/ })
65
- /************************************************************************/
66
- /******/ ([
67
- /* 0 */
68
- /***/ (function(module, exports, __webpack_require__) {
69
-
70
- "use strict";
71
- /* WEBPACK VAR INJECTION */(function(process) {
72
-
73
- if (process.env.NODE_ENV === 'production') {
74
- module.exports = __webpack_require__(426);
75
- } else {
76
- module.exports = __webpack_require__(427);
77
- }
78
-
79
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
80
-
81
- /***/ }),
82
- /* 1 */
83
- /***/ (function(module, exports) {
84
-
85
- // shim for using process in browser
86
- var process = module.exports = {};
87
-
88
- // cached from whatever global is present so that test runners that stub it
89
- // don't break things. But we need to wrap it in a try catch in case it is
90
- // wrapped in strict mode code which doesn't define any globals. It's inside a
91
- // function because try/catches deoptimize in certain engines.
92
-
93
- var cachedSetTimeout;
94
- var cachedClearTimeout;
95
-
96
- function defaultSetTimout() {
97
- throw new Error('setTimeout has not been defined');
98
- }
99
- function defaultClearTimeout () {
100
- throw new Error('clearTimeout has not been defined');
101
- }
102
- (function () {
103
- try {
104
- if (typeof setTimeout === 'function') {
105
- cachedSetTimeout = setTimeout;
106
- } else {
107
- cachedSetTimeout = defaultSetTimout;
108
- }
109
- } catch (e) {
110
- cachedSetTimeout = defaultSetTimout;
111
- }
112
- try {
113
- if (typeof clearTimeout === 'function') {
114
- cachedClearTimeout = clearTimeout;
115
- } else {
116
- cachedClearTimeout = defaultClearTimeout;
117
- }
118
- } catch (e) {
119
- cachedClearTimeout = defaultClearTimeout;
120
- }
121
- } ())
122
- function runTimeout(fun) {
123
- if (cachedSetTimeout === setTimeout) {
124
- //normal enviroments in sane situations
125
- return setTimeout(fun, 0);
126
- }
127
- // if setTimeout wasn't available but was latter defined
128
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
129
- cachedSetTimeout = setTimeout;
130
- return setTimeout(fun, 0);
131
- }
132
- try {
133
- // when when somebody has screwed with setTimeout but no I.E. maddness
134
- return cachedSetTimeout(fun, 0);
135
- } catch(e){
136
- try {
137
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
138
- return cachedSetTimeout.call(null, fun, 0);
139
- } catch(e){
140
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
141
- return cachedSetTimeout.call(this, fun, 0);
142
- }
143
- }
144
-
145
-
146
- }
147
- function runClearTimeout(marker) {
148
- if (cachedClearTimeout === clearTimeout) {
149
- //normal enviroments in sane situations
150
- return clearTimeout(marker);
151
- }
152
- // if clearTimeout wasn't available but was latter defined
153
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
154
- cachedClearTimeout = clearTimeout;
155
- return clearTimeout(marker);
156
- }
157
- try {
158
- // when when somebody has screwed with setTimeout but no I.E. maddness
159
- return cachedClearTimeout(marker);
160
- } catch (e){
161
- try {
162
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
163
- return cachedClearTimeout.call(null, marker);
164
- } catch (e){
165
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
166
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
167
- return cachedClearTimeout.call(this, marker);
168
- }
169
- }
170
-
171
-
172
-
173
- }
174
- var queue = [];
175
- var draining = false;
176
- var currentQueue;
177
- var queueIndex = -1;
178
-
179
- function cleanUpNextTick() {
180
- if (!draining || !currentQueue) {
181
- return;
182
- }
183
- draining = false;
184
- if (currentQueue.length) {
185
- queue = currentQueue.concat(queue);
186
- } else {
187
- queueIndex = -1;
188
- }
189
- if (queue.length) {
190
- drainQueue();
191
- }
192
- }
193
-
194
- function drainQueue() {
195
- if (draining) {
196
- return;
197
- }
198
- var timeout = runTimeout(cleanUpNextTick);
199
- draining = true;
200
-
201
- var len = queue.length;
202
- while(len) {
203
- currentQueue = queue;
204
- queue = [];
205
- while (++queueIndex < len) {
206
- if (currentQueue) {
207
- currentQueue[queueIndex].run();
208
- }
209
- }
210
- queueIndex = -1;
211
- len = queue.length;
212
- }
213
- currentQueue = null;
214
- draining = false;
215
- runClearTimeout(timeout);
216
- }
217
-
218
- process.nextTick = function (fun) {
219
- var args = new Array(arguments.length - 1);
220
- if (arguments.length > 1) {
221
- for (var i = 1; i < arguments.length; i++) {
222
- args[i - 1] = arguments[i];
223
- }
224
- }
225
- queue.push(new Item(fun, args));
226
- if (queue.length === 1 && !draining) {
227
- runTimeout(drainQueue);
228
- }
229
- };
230
-
231
- // v8 likes predictible objects
232
- function Item(fun, array) {
233
- this.fun = fun;
234
- this.array = array;
235
- }
236
- Item.prototype.run = function () {
237
- this.fun.apply(null, this.array);
238
- };
239
- process.title = 'browser';
240
- process.browser = true;
241
- process.env = {};
242
- process.argv = [];
243
- process.version = ''; // empty string to avoid regexp issues
244
- process.versions = {};
245
-
246
- function noop() {}
247
-
248
- process.on = noop;
249
- process.addListener = noop;
250
- process.once = noop;
251
- process.off = noop;
252
- process.removeListener = noop;
253
- process.removeAllListeners = noop;
254
- process.emit = noop;
255
- process.prependListener = noop;
256
- process.prependOnceListener = noop;
257
-
258
- process.listeners = function (name) { return [] }
259
-
260
- process.binding = function (name) {
261
- throw new Error('process.binding is not supported');
262
- };
263
-
264
- process.cwd = function () { return '/' };
265
- process.chdir = function (dir) {
266
- throw new Error('process.chdir is not supported');
267
- };
268
- process.umask = function() { return 0; };
269
-
270
-
271
- /***/ }),
272
- /* 2 */
273
- /***/ (function(module, exports, __webpack_require__) {
274
-
275
- /* WEBPACK VAR INJECTION */(function(process) {/**
276
- * Copyright (c) 2013-present, Facebook, Inc.
277
- *
278
- * This source code is licensed under the MIT license found in the
279
- * LICENSE file in the root directory of this source tree.
280
- */
281
-
282
- if (process.env.NODE_ENV !== 'production') {
283
- var ReactIs = __webpack_require__(16);
284
-
285
- // By explicitly using `prop-types` you are opting into new development behavior.
286
- // http://fb.me/prop-types-in-prod
287
- var throwOnDirectAccess = true;
288
- module.exports = __webpack_require__(437)(ReactIs.isElement, throwOnDirectAccess);
289
- } else {
290
- // By explicitly using `prop-types` you are opting into new production behavior.
291
- // http://fb.me/prop-types-in-prod
292
- module.exports = __webpack_require__(438)();
293
- }
294
-
295
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
296
-
297
- /***/ }),
298
- /* 3 */
299
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
300
-
301
- "use strict";
302
- /* harmony export (immutable) */ __webpack_exports__["a"] = _extends;
303
- function _extends() {
304
- _extends = Object.assign || function (target) {
305
- for (var i = 1; i < arguments.length; i++) {
306
- var source = arguments[i];
307
-
308
- for (var key in source) {
309
- if (Object.prototype.hasOwnProperty.call(source, key)) {
310
- target[key] = source[key];
311
- }
312
- }
313
- }
314
-
315
- return target;
316
- };
317
-
318
- return _extends.apply(this, arguments);
319
- }
320
-
321
- /***/ }),
322
- /* 4 */
323
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
324
-
325
- "use strict";
326
- /* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutProperties;
327
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose__ = __webpack_require__(43);
328
-
329
- function _objectWithoutProperties(source, excluded) {
330
- if (source == null) return {};
331
- var target = Object(__WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose__["a" /* default */])(source, excluded);
332
- var key, i;
333
-
334
- if (Object.getOwnPropertySymbols) {
335
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
336
 
337
- for (i = 0; i < sourceSymbolKeys.length; i++) {
338
- key = sourceSymbolKeys[i];
339
- if (excluded.indexOf(key) >= 0) continue;
340
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
341
- target[key] = source[key];
342
- }
343
- }
344
 
345
- return target;
 
 
 
 
 
 
346
  }
347
 
348
- /***/ }),
349
- /* 5 */
350
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
351
-
352
- "use strict";
353
- function toVal(mix) {
354
- var k, y, str='';
355
 
356
- if (typeof mix === 'string' || typeof mix === 'number') {
357
- str += mix;
358
- } else if (typeof mix === 'object') {
359
- if (Array.isArray(mix)) {
360
- for (k=0; k < mix.length; k++) {
361
- if (mix[k]) {
362
- if (y = toVal(mix[k])) {
363
- str && (str += ' ');
364
- str += y;
365
- }
366
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
367
  }
368
- } else {
369
- for (k in mix) {
370
- if (mix[k]) {
371
- str && (str += ' ');
372
- str += k;
373
- }
374
  }
375
- }
 
376
  }
377
-
378
- return str;
379
- }
380
-
381
- /* harmony default export */ __webpack_exports__["a"] = (function () {
382
- var i=0, tmp, x, str='';
383
- while (i < arguments.length) {
384
- if (tmp = arguments[i++]) {
385
- if (x = toVal(tmp)) {
386
- str && (str += ' ');
387
- str += x
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
388
  }
389
- }
 
 
 
 
390
  }
391
- return str;
392
- });
393
-
394
-
395
- /***/ }),
396
- /* 6 */
397
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
398
-
399
- "use strict";
400
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
401
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_styles__ = __webpack_require__(24);
402
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(72);
403
-
404
-
405
-
406
-
407
- function withStyles(stylesOrCreator, options) {
408
- return Object(__WEBPACK_IMPORTED_MODULE_1__material_ui_styles__["g" /* withStyles */])(stylesOrCreator, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
409
- defaultTheme: __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */]
410
- }, options));
411
- }
412
-
413
- /* harmony default export */ __webpack_exports__["a"] = (withStyles);
414
-
415
- /***/ }),
416
- /* 7 */
417
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
418
-
419
- "use strict";
420
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__ = __webpack_require__(130);
421
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__["a"]; });
422
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__deepmerge__ = __webpack_require__(456);
423
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_1__deepmerge__["a"]; });
424
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__ = __webpack_require__(457);
425
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__["a"]; });
426
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__ = __webpack_require__(458);
427
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__["a"]; });
428
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__exactProp__ = __webpack_require__(459);
429
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_4__exactProp__["a"]; });
430
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__ = __webpack_require__(460);
431
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__["a"]; });
432
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__getDisplayName__ = __webpack_require__(461);
433
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_6__getDisplayName__["a"]; });
434
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__ = __webpack_require__(462);
435
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__["a"]; });
436
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__ = __webpack_require__(463);
437
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__["a"]; });
438
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__refType__ = __webpack_require__(464);
439
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_9__refType__["a"]; });
440
- /** @license Material-UI v4.11.2
441
- *
442
- * This source code is licensed under the MIT license found in the
443
- * LICENSE file in the root directory of this source tree.
444
- */
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
- /***/ }),
457
- /* 8 */
458
- /***/ (function(module, exports, __webpack_require__) {
459
-
460
- "use strict";
461
-
462
-
463
- Object.defineProperty(exports, "__esModule", {
464
- value: true
465
- });
466
- exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;
467
-
468
- var _flattenNames = __webpack_require__(760);
469
-
470
- var _flattenNames2 = _interopRequireDefault(_flattenNames);
471
-
472
- var _mergeClasses = __webpack_require__(836);
473
-
474
- var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
475
-
476
- var _autoprefix = __webpack_require__(862);
477
-
478
- var _autoprefix2 = _interopRequireDefault(_autoprefix);
479
-
480
- var _hover2 = __webpack_require__(863);
481
-
482
- var _hover3 = _interopRequireDefault(_hover2);
483
-
484
- var _active = __webpack_require__(864);
485
-
486
- var _active2 = _interopRequireDefault(_active);
487
-
488
- var _loop2 = __webpack_require__(865);
489
-
490
- var _loop3 = _interopRequireDefault(_loop2);
491
-
492
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
493
-
494
- exports.hover = _hover3.default;
495
- exports.handleHover = _hover3.default;
496
- exports.handleActive = _active2.default;
497
- exports.loop = _loop3.default;
498
- var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
499
- for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
500
- activations[_key - 1] = arguments[_key];
501
- }
502
-
503
- var activeNames = (0, _flattenNames2.default)(activations);
504
- var merged = (0, _mergeClasses2.default)(classes, activeNames);
505
- return (0, _autoprefix2.default)(merged);
506
  };
507
-
508
- exports.default = ReactCSS;
509
-
510
- /***/ }),
511
- /* 9 */
512
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
513
-
514
- "use strict";
515
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = capitalize;
516
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
517
-
518
- // It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
519
- //
520
- // A strict capitalization should uppercase the first letter of each word a the sentence.
521
- // We only handle the first word.
522
- function capitalize(string) {
523
- if (typeof string !== 'string') {
524
- throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: capitalize(string) expects a string argument." : Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* formatMuiErrorMessage */])(7));
525
- }
526
-
527
- return string.charAt(0).toUpperCase() + string.slice(1);
528
- }
529
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
530
-
531
- /***/ }),
532
- /* 10 */
533
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
534
-
535
- "use strict";
536
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__capitalize__ = __webpack_require__(9);
537
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__capitalize__["a"]; });
538
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createChainedFunction__ = __webpack_require__(62);
539
- /* unused harmony reexport createChainedFunction */
540
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__ = __webpack_require__(21);
541
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__["a"]; });
542
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__debounce__ = __webpack_require__(51);
543
- /* unused harmony reexport debounce */
544
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__deprecatedPropType__ = __webpack_require__(555);
545
- /* unused harmony reexport deprecatedPropType */
546
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isMuiElement__ = __webpack_require__(77);
547
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__isMuiElement__["a"]; });
548
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ownerDocument__ = __webpack_require__(28);
549
- /* unused harmony reexport ownerDocument */
550
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ownerWindow__ = __webpack_require__(94);
551
- /* unused harmony reexport ownerWindow */
552
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__requirePropFactory__ = __webpack_require__(260);
553
- /* unused harmony reexport requirePropFactory */
554
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__setRef__ = __webpack_require__(52);
555
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_9__setRef__["a"]; });
556
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__unsupportedProp__ = __webpack_require__(95);
557
- /* unused harmony reexport unsupportedProp */
558
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useControlled__ = __webpack_require__(46);
559
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useControlled__["a"]; });
560
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__useEventCallback__ = __webpack_require__(40);
561
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__useEventCallback__["a"]; });
562
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__useForkRef__ = __webpack_require__(14);
563
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__useForkRef__["a"]; });
564
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__unstable_useId__ = __webpack_require__(96);
565
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_14__unstable_useId__["a"]; });
566
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__useIsFocusVisible__ = __webpack_require__(78);
567
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_15__useIsFocusVisible__["a"]; });
568
-
569
-
570
-
571
-
572
-
573
-
574
-
575
-
576
-
577
-
578
-
579
-
580
-
581
- // eslint-disable-next-line camelcase
582
-
583
-
584
-
585
-
586
- /***/ }),
587
- /* 11 */
588
- /***/ (function(module, exports, __webpack_require__) {
589
-
590
- "use strict";
591
- /* WEBPACK VAR INJECTION */(function(process) {
592
-
593
- function checkDCE() {
594
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
595
- if (
596
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
597
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
598
- ) {
599
- return;
600
- }
601
- if (process.env.NODE_ENV !== 'production') {
602
- // This branch is unreachable because this function is only called
603
- // in production, but the condition is true only in development.
604
- // Therefore if the branch is still here, dead code elimination wasn't
605
- // properly applied.
606
- // Don't change the message. React DevTools relies on it. Also make sure
607
- // this message doesn't occur elsewhere in this function, or it will cause
608
- // a false positive.
609
- throw new Error('^_^');
610
- }
611
- try {
612
- // Verify that the code above has been dead code eliminated (DCE'd).
613
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
614
- } catch (err) {
615
- // DevTools shouldn't crash React, no matter what.
616
- // We should still report in case we break this code.
617
- console.error(err);
618
- }
619
- }
620
-
621
- if (process.env.NODE_ENV === 'production') {
622
- // DCE check should happen before ReactDOM bundle executes so that
623
- // DevTools can report bad minification during injection.
624
- checkDCE();
625
- module.exports = __webpack_require__(428);
626
- } else {
627
- module.exports = __webpack_require__(431);
628
- }
629
-
630
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
631
-
632
- /***/ }),
633
- /* 12 */
634
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
635
-
636
- "use strict";
637
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Alpha__ = __webpack_require__(866);
638
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Alpha__["a"]; });
639
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Checkboard__ = __webpack_require__(193);
640
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__Checkboard__["a"]; });
641
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__EditableInput__ = __webpack_require__(869);
642
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_2__EditableInput__["a"]; });
643
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Hue__ = __webpack_require__(870);
644
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_3__Hue__["a"]; });
645
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Raised__ = __webpack_require__(872);
646
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_4__Raised__["a"]; });
647
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Saturation__ = __webpack_require__(932);
648
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_5__Saturation__["a"]; });
649
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ColorWrap__ = __webpack_require__(413);
650
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_6__ColorWrap__["a"]; });
651
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Swatch__ = __webpack_require__(946);
652
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__Swatch__["a"]; });
653
-
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
-
662
- /***/ }),
663
- /* 13 */
664
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
665
-
666
- "use strict";
667
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__colorManipulator__ = __webpack_require__(19);
668
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["a"]; });
669
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["b"]; });
670
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["c"]; });
671
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["e"]; });
672
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createMuiTheme__ = __webpack_require__(135);
673
- /* unused harmony reexport createMuiTheme */
674
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createMuiStrictModeTheme__ = __webpack_require__(546);
675
- /* unused harmony reexport unstable_createMuiStrictModeTheme */
676
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createStyles__ = __webpack_require__(547);
677
- /* unused harmony reexport createStyles */
678
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__makeStyles__ = __webpack_require__(548);
679
- /* unused harmony reexport makeStyles */
680
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__responsiveFontSizes__ = __webpack_require__(549);
681
- /* unused harmony reexport responsiveFontSizes */
682
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__styled__ = __webpack_require__(259);
683
- /* unused harmony reexport styled */
684
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__transitions__ = __webpack_require__(37);
685
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_7__transitions__["b"]; });
686
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__useTheme__ = __webpack_require__(17);
687
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_8__useTheme__["a"]; });
688
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__withStyles__ = __webpack_require__(6);
689
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_9__withStyles__["a"]; });
690
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__withTheme__ = __webpack_require__(551);
691
- /* unused harmony reexport withTheme */
692
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__material_ui_styles__ = __webpack_require__(24);
693
- /* unused harmony reexport createGenerateClassName */
694
- /* unused harmony reexport jssPreset */
695
- /* unused harmony reexport ServerStyleSheets */
696
- /* unused harmony reexport StylesProvider */
697
- /* unused harmony reexport MuiThemeProvider */
698
- /* unused harmony reexport ThemeProvider */
699
-
700
- // eslint-disable-next-line camelcase
701
-
702
-
703
-
704
-
705
-
706
-
707
-
708
-
709
-
710
-
711
-
712
-
713
- /***/ }),
714
- /* 14 */
715
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
716
-
717
- "use strict";
718
- /* harmony export (immutable) */ __webpack_exports__["a"] = useForkRef;
719
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
720
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
721
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__setRef__ = __webpack_require__(52);
722
-
723
-
724
- function useForkRef(refA, refB) {
725
- /**
726
- * This will create a new function if the ref props change and are defined.
727
- * This means react will call the old forkRef with `null` and the new forkRef
728
- * with the ref. Cleanup naturally emerges from this behavior
729
- */
730
- return __WEBPACK_IMPORTED_MODULE_0_react__["useMemo"](function () {
731
- if (refA == null && refB == null) {
732
- return null;
733
- }
734
-
735
- return function (refValue) {
736
- Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refA, refValue);
737
- Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refB, refValue);
738
- };
739
- }, [refA, refB]);
740
- }
741
-
742
- /***/ }),
743
- /* 15 */
744
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
745
-
746
- "use strict";
747
- /* harmony export (immutable) */ __webpack_exports__["a"] = _defineProperty;
748
- function _defineProperty(obj, key, value) {
749
- if (key in obj) {
750
- Object.defineProperty(obj, key, {
751
- value: value,
752
- enumerable: true,
753
- configurable: true,
754
- writable: true
755
- });
756
- } else {
757
- obj[key] = value;
758
- }
759
-
760
- return obj;
761
- }
762
-
763
- /***/ }),
764
- /* 16 */
765
- /***/ (function(module, exports, __webpack_require__) {
766
-
767
- "use strict";
768
- /* WEBPACK VAR INJECTION */(function(process) {
769
-
770
- if (process.env.NODE_ENV === 'production') {
771
- module.exports = __webpack_require__(435);
772
- } else {
773
- module.exports = __webpack_require__(436);
774
- }
775
-
776
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
777
-
778
- /***/ }),
779
- /* 17 */
780
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
781
-
782
- "use strict";
783
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useTheme;
784
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_styles__ = __webpack_require__(24);
785
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
786
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
787
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(72);
788
-
789
-
790
-
791
- function useTheme() {
792
- var theme = Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_styles__["f" /* useTheme */])() || __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */];
793
-
794
- if (process.env.NODE_ENV !== 'production') {
795
- // eslint-disable-next-line react-hooks/rules-of-hooks
796
- __WEBPACK_IMPORTED_MODULE_1_react___default.a.useDebugValue(theme);
797
- }
798
-
799
- return theme;
800
- }
801
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
802
-
803
- /***/ }),
804
- /* 18 */
805
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
806
-
807
- "use strict";
808
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ButtonBase__ = __webpack_require__(560);
809
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ButtonBase__["a"]; });
810
-
811
-
812
- /***/ }),
813
- /* 19 */
814
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
815
-
816
- "use strict";
817
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export hexToRgb */
818
- /* unused harmony export rgbToHex */
819
- /* unused harmony export hslToRgb */
820
- /* unused harmony export decomposeColor */
821
- /* unused harmony export recomposeColor */
822
- /* harmony export (immutable) */ __webpack_exports__["d"] = getContrastRatio;
823
- /* unused harmony export getLuminance */
824
- /* harmony export (immutable) */ __webpack_exports__["b"] = emphasize;
825
- /* harmony export (immutable) */ __webpack_exports__["c"] = fade;
826
- /* harmony export (immutable) */ __webpack_exports__["a"] = darken;
827
- /* harmony export (immutable) */ __webpack_exports__["e"] = lighten;
828
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
829
-
830
-
831
- /* eslint-disable no-use-before-define */
832
-
833
- /**
834
- * Returns a number whose value is limited to the given range.
835
- *
836
- * @param {number} value The value to be clamped
837
- * @param {number} min The lower boundary of the output range
838
- * @param {number} max The upper boundary of the output range
839
- * @returns {number} A number in the range [min, max]
840
- */
841
- function clamp(value) {
842
- var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
843
- var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
844
-
845
- if (process.env.NODE_ENV !== 'production') {
846
- if (value < min || value > max) {
847
- console.error("Material-UI: The value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "]."));
848
- }
849
- }
850
-
851
- return Math.min(Math.max(min, value), max);
852
- }
853
- /**
854
- * Converts a color from CSS hex format to CSS rgb format.
855
- *
856
- * @param {string} color - Hex color, i.e. #nnn or #nnnnnn
857
- * @returns {string} A CSS rgb color string
858
- */
859
-
860
-
861
- function hexToRgb(color) {
862
- color = color.substr(1);
863
- var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g');
864
- var colors = color.match(re);
865
-
866
- if (colors && colors[0].length === 1) {
867
- colors = colors.map(function (n) {
868
- return n + n;
869
- });
870
- }
871
-
872
- return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) {
873
- return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
874
- }).join(', '), ")") : '';
875
- }
876
-
877
- function intToHex(int) {
878
- var hex = int.toString(16);
879
- return hex.length === 1 ? "0".concat(hex) : hex;
880
- }
881
- /**
882
- * Converts a color from CSS rgb format to CSS hex format.
883
- *
884
- * @param {string} color - RGB color, i.e. rgb(n, n, n)
885
- * @returns {string} A CSS rgb color string, i.e. #nnnnnn
886
- */
887
-
888
-
889
- function rgbToHex(color) {
890
- // Idempotent
891
- if (color.indexOf('#') === 0) {
892
- return color;
893
- }
894
-
895
- var _decomposeColor = decomposeColor(color),
896
- values = _decomposeColor.values;
897
-
898
- return "#".concat(values.map(function (n) {
899
- return intToHex(n);
900
- }).join(''));
901
- }
902
- /**
903
- * Converts a color from hsl format to rgb format.
904
- *
905
- * @param {string} color - HSL color values
906
- * @returns {string} rgb color values
907
- */
908
-
909
- function hslToRgb(color) {
910
- color = decomposeColor(color);
911
- var _color = color,
912
- values = _color.values;
913
- var h = values[0];
914
- var s = values[1] / 100;
915
- var l = values[2] / 100;
916
- var a = s * Math.min(l, 1 - l);
917
-
918
- var f = function f(n) {
919
- var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12;
920
- return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
921
- };
922
-
923
- var type = 'rgb';
924
- var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
925
-
926
- if (color.type === 'hsla') {
927
- type += 'a';
928
- rgb.push(values[3]);
929
- }
930
-
931
- return recomposeColor({
932
- type: type,
933
- values: rgb
934
- });
935
- }
936
- /**
937
- * Returns an object with the type and values of a color.
938
- *
939
- * Note: Does not support rgb % values.
940
- *
941
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
942
- * @returns {object} - A MUI color object: {type: string, values: number[]}
943
- */
944
-
945
- function decomposeColor(color) {
946
- // Idempotent
947
- if (color.type) {
948
- return color;
949
- }
950
-
951
- if (color.charAt(0) === '#') {
952
- return decomposeColor(hexToRgb(color));
953
- }
954
-
955
- var marker = color.indexOf('(');
956
- var type = color.substring(0, marker);
957
-
958
- if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {
959
- throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: Unsupported `".concat(color, "` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().") : Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* formatMuiErrorMessage */])(3, color));
960
- }
961
-
962
- var values = color.substring(marker + 1, color.length - 1).split(',');
963
- values = values.map(function (value) {
964
- return parseFloat(value);
965
- });
966
- return {
967
- type: type,
968
- values: values
969
- };
970
- }
971
- /**
972
- * Converts a color object with type and values to a string.
973
- *
974
- * @param {object} color - Decomposed color
975
- * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
976
- * @param {array} color.values - [n,n,n] or [n,n,n,n]
977
- * @returns {string} A CSS color string
978
- */
979
-
980
- function recomposeColor(color) {
981
- var type = color.type;
982
- var values = color.values;
983
-
984
- if (type.indexOf('rgb') !== -1) {
985
- // Only convert the first 3 values to int (i.e. not alpha)
986
- values = values.map(function (n, i) {
987
- return i < 3 ? parseInt(n, 10) : n;
988
- });
989
- } else if (type.indexOf('hsl') !== -1) {
990
- values[1] = "".concat(values[1], "%");
991
- values[2] = "".concat(values[2], "%");
992
- }
993
-
994
- return "".concat(type, "(").concat(values.join(', '), ")");
995
- }
996
- /**
997
- * Calculates the contrast ratio between two colors.
998
- *
999
- * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1000
- *
1001
- * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1002
- * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1003
- * @returns {number} A contrast ratio value in the range 0 - 21.
1004
- */
1005
-
1006
- function getContrastRatio(foreground, background) {
1007
- var lumA = getLuminance(foreground);
1008
- var lumB = getLuminance(background);
1009
- return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
1010
- }
1011
- /**
1012
- * The relative brightness of any point in a color space,
1013
- * normalized to 0 for darkest black and 1 for lightest white.
1014
- *
1015
- * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1016
- *
1017
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1018
- * @returns {number} The relative brightness of the color in the range 0 - 1
1019
- */
1020
-
1021
- function getLuminance(color) {
1022
- color = decomposeColor(color);
1023
- var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values;
1024
- rgb = rgb.map(function (val) {
1025
- val /= 255; // normalized
1026
-
1027
- return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
1028
- }); // Truncate at 3 digits
1029
-
1030
- return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
1031
- }
1032
- /**
1033
- * Darken or lighten a color, depending on its luminance.
1034
- * Light colors are darkened, dark colors are lightened.
1035
- *
1036
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1037
- * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
1038
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1039
- */
1040
-
1041
- function emphasize(color) {
1042
- var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
1043
- return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
1044
- }
1045
- /**
1046
- * Set the absolute transparency of a color.
1047
- * Any existing alpha values are overwritten.
1048
- *
1049
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1050
- * @param {number} value - value to set the alpha channel to in the range 0 -1
1051
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1052
- */
1053
-
1054
- function fade(color, value) {
1055
- color = decomposeColor(color);
1056
- value = clamp(value);
1057
-
1058
- if (color.type === 'rgb' || color.type === 'hsl') {
1059
- color.type += 'a';
1060
- }
1061
-
1062
- color.values[3] = value;
1063
- return recomposeColor(color);
1064
- }
1065
- /**
1066
- * Darkens a color.
1067
- *
1068
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1069
- * @param {number} coefficient - multiplier in the range 0 - 1
1070
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1071
- */
1072
-
1073
- function darken(color, coefficient) {
1074
- color = decomposeColor(color);
1075
- coefficient = clamp(coefficient);
1076
-
1077
- if (color.type.indexOf('hsl') !== -1) {
1078
- color.values[2] *= 1 - coefficient;
1079
- } else if (color.type.indexOf('rgb') !== -1) {
1080
- for (var i = 0; i < 3; i += 1) {
1081
- color.values[i] *= 1 - coefficient;
1082
- }
1083
- }
1084
-
1085
- return recomposeColor(color);
1086
- }
1087
- /**
1088
- * Lightens a color.
1089
- *
1090
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1091
- * @param {number} coefficient - multiplier in the range 0 - 1
1092
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1093
- */
1094
-
1095
- function lighten(color, coefficient) {
1096
- color = decomposeColor(color);
1097
- coefficient = clamp(coefficient);
1098
-
1099
- if (color.type.indexOf('hsl') !== -1) {
1100
- color.values[2] += (100 - color.values[2]) * coefficient;
1101
- } else if (color.type.indexOf('rgb') !== -1) {
1102
- for (var i = 0; i < 3; i += 1) {
1103
- color.values[i] += (255 - color.values[i]) * coefficient;
1104
- }
1105
- }
1106
-
1107
- return recomposeColor(color);
1108
- }
1109
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1110
-
1111
- /***/ }),
1112
- /* 20 */
1113
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1114
-
1115
- "use strict";
1116
- /* harmony export (immutable) */ __webpack_exports__["a"] = _slicedToArray;
1117
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__ = __webpack_require__(244);
1118
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit__ = __webpack_require__(500);
1119
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(133);
1120
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableRest__ = __webpack_require__(245);
1121
-
1122
-
1123
-
1124
-
1125
- function _slicedToArray(arr, i) {
1126
- return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableRest__["a" /* default */])();
1127
- }
1128
-
1129
- /***/ }),
1130
- /* 21 */
1131
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1132
-
1133
- "use strict";
1134
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createSvgIcon;
1135
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
1136
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
1137
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
1138
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SvgIcon__ = __webpack_require__(93);
1139
-
1140
-
1141
-
1142
- /**
1143
- * Private module reserved for @material-ui/x packages.
1144
- */
1145
-
1146
- function createSvgIcon(path, displayName) {
1147
- var Component = function Component(props, ref) {
1148
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__SvgIcon__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
1149
- ref: ref
1150
- }, props), path);
1151
- };
1152
-
1153
- if (process.env.NODE_ENV !== 'production') {
1154
- // Need to set `displayName` on the inner component for React.memo.
1155
- // React prior to 16.14 ignores `displayName` on the wrapper.
1156
- Component.displayName = "".concat(displayName, "Icon");
1157
- }
1158
-
1159
- Component.muiName = __WEBPACK_IMPORTED_MODULE_2__SvgIcon__["a" /* default */].muiName;
1160
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.memo( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.forwardRef(Component));
1161
- }
1162
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1163
-
1164
- /***/ }),
1165
- /* 22 */
1166
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1167
-
1168
- "use strict";
1169
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Paper__ = __webpack_require__(552);
1170
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Paper__["a"]; });
1171
-
1172
-
1173
- /***/ }),
1174
- /* 23 */
1175
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1176
-
1177
- "use strict";
1178
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseMerge_js__ = __webpack_require__(873);
1179
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createAssigner_js__ = __webpack_require__(923);
1180
-
1181
-
1182
-
1183
- /**
1184
- * This method is like `_.assign` except that it recursively merges own and
1185
- * inherited enumerable string keyed properties of source objects into the
1186
- * destination object. Source properties that resolve to `undefined` are
1187
- * skipped if a destination value exists. Array and plain object properties
1188
- * are merged recursively. Other objects and value types are overridden by
1189
- * assignment. Source objects are applied from left to right. Subsequent
1190
- * sources overwrite property assignments of previous sources.
1191
- *
1192
- * **Note:** This method mutates `object`.
1193
- *
1194
- * @static
1195
- * @memberOf _
1196
- * @since 0.5.0
1197
- * @category Object
1198
- * @param {Object} object The destination object.
1199
- * @param {...Object} [sources] The source objects.
1200
- * @returns {Object} Returns `object`.
1201
- * @example
1202
- *
1203
- * var object = {
1204
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
1205
- * };
1206
- *
1207
- * var other = {
1208
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
1209
- * };
1210
- *
1211
- * _.merge(object, other);
1212
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
1213
- */
1214
- var merge = Object(__WEBPACK_IMPORTED_MODULE_1__createAssigner_js__["a" /* default */])(function(object, source, srcIndex) {
1215
- Object(__WEBPACK_IMPORTED_MODULE_0__baseMerge_js__["a" /* default */])(object, source, srcIndex);
1216
- });
1217
-
1218
- /* harmony default export */ __webpack_exports__["a"] = (merge);
1219
-
1220
-
1221
- /***/ }),
1222
- /* 24 */
1223
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1224
-
1225
- "use strict";
1226
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
1227
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createGenerateClassName__ = __webpack_require__(87);
1228
- /* unused harmony reexport createGenerateClassName */
1229
- /* unused harmony namespace reexport */
1230
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createStyles__ = __webpack_require__(213);
1231
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_2__createStyles__["a"]; });
1232
- /* unused harmony namespace reexport */
1233
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__getThemeProps__ = __webpack_require__(131);
1234
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__getThemeProps__["a"]; });
1235
- /* unused harmony namespace reexport */
1236
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__jssPreset__ = __webpack_require__(132);
1237
- /* unused harmony reexport jssPreset */
1238
- /* unused harmony namespace reexport */
1239
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__makeStyles__ = __webpack_require__(89);
1240
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__makeStyles__["a"]; });
1241
- /* unused harmony namespace reexport */
1242
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mergeClasses__ = __webpack_require__(134);
1243
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_6__mergeClasses__["a"]; });
1244
- /* unused harmony namespace reexport */
1245
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ServerStyleSheets__ = __webpack_require__(220);
1246
- /* unused harmony reexport ServerStyleSheets */
1247
- /* unused harmony namespace reexport */
1248
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__styled__ = __webpack_require__(221);
1249
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_8__styled__["a"]; });
1250
- /* unused harmony namespace reexport */
1251
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StylesProvider__ = __webpack_require__(90);
1252
- /* unused harmony reexport StylesProvider */
1253
- /* unused harmony namespace reexport */
1254
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ThemeProvider__ = __webpack_require__(222);
1255
- /* unused harmony reexport ThemeProvider */
1256
- /* unused harmony namespace reexport */
1257
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useTheme__ = __webpack_require__(61);
1258
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useTheme__["a"]; });
1259
- /* unused harmony namespace reexport */
1260
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__withStyles__ = __webpack_require__(223);
1261
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__withStyles__["a"]; });
1262
- /* unused harmony namespace reexport */
1263
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__withTheme__ = __webpack_require__(224);
1264
- /* unused harmony reexport withTheme */
1265
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__withTheme__["a"]; });
1266
- /** @license Material-UI v4.11.2
1267
- *
1268
- * This source code is licensed under the MIT license found in the
1269
- * LICENSE file in the root directory of this source tree.
1270
- */
1271
- /* eslint-disable import/export */
1272
-
1273
- /* Warning if there are several instances of @material-ui/styles */
1274
-
1275
- if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {
1276
- __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] = __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] || 0;
1277
-
1278
- if (__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] === 1) {
1279
- console.warn(['It looks like there are several instances of `@material-ui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://material-ui.com/r/styles-instance-warning for more info.'].join('\n'));
1280
- }
1281
-
1282
- __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] += 1;
1283
- }
1284
-
1285
-
1286
-
1287
-
1288
-
1289
-
1290
-
1291
-
1292
-
1293
-
1294
-
1295
-
1296
-
1297
-
1298
-
1299
-
1300
-
1301
-
1302
-
1303
-
1304
-
1305
-
1306
-
1307
-
1308
-
1309
-
1310
-
1311
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1312
-
1313
- /***/ }),
1314
- /* 25 */
1315
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1316
-
1317
- "use strict";
1318
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Typography__ = __webpack_require__(600);
1319
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Typography__["a"]; });
1320
-
1321
-
1322
- /***/ }),
1323
- /* 26 */
1324
- /***/ (function(module, exports, __webpack_require__) {
1325
-
1326
- "use strict";
1327
-
1328
- var strictUriEncode = __webpack_require__(444);
1329
- var objectAssign = __webpack_require__(59);
1330
- var decodeComponent = __webpack_require__(445);
1331
-
1332
- function encoderForArrayFormat(opts) {
1333
- switch (opts.arrayFormat) {
1334
- case 'index':
1335
- return function (key, value, index) {
1336
- return value === null ? [
1337
- encode(key, opts),
1338
- '[',
1339
- index,
1340
- ']'
1341
- ].join('') : [
1342
- encode(key, opts),
1343
- '[',
1344
- encode(index, opts),
1345
- ']=',
1346
- encode(value, opts)
1347
- ].join('');
1348
- };
1349
-
1350
- case 'bracket':
1351
- return function (key, value) {
1352
- return value === null ? encode(key, opts) : [
1353
- encode(key, opts),
1354
- '[]=',
1355
- encode(value, opts)
1356
- ].join('');
1357
- };
1358
-
1359
- default:
1360
- return function (key, value) {
1361
- return value === null ? encode(key, opts) : [
1362
- encode(key, opts),
1363
- '=',
1364
- encode(value, opts)
1365
- ].join('');
1366
- };
1367
- }
1368
- }
1369
-
1370
- function parserForArrayFormat(opts) {
1371
- var result;
1372
-
1373
- switch (opts.arrayFormat) {
1374
- case 'index':
1375
- return function (key, value, accumulator) {
1376
- result = /\[(\d*)\]$/.exec(key);
1377
-
1378
- key = key.replace(/\[\d*\]$/, '');
1379
-
1380
- if (!result) {
1381
- accumulator[key] = value;
1382
- return;
1383
- }
1384
-
1385
- if (accumulator[key] === undefined) {
1386
- accumulator[key] = {};
1387
- }
1388
-
1389
- accumulator[key][result[1]] = value;
1390
- };
1391
-
1392
- case 'bracket':
1393
- return function (key, value, accumulator) {
1394
- result = /(\[\])$/.exec(key);
1395
- key = key.replace(/\[\]$/, '');
1396
-
1397
- if (!result) {
1398
- accumulator[key] = value;
1399
- return;
1400
- } else if (accumulator[key] === undefined) {
1401
- accumulator[key] = [value];
1402
- return;
1403
- }
1404
-
1405
- accumulator[key] = [].concat(accumulator[key], value);
1406
- };
1407
-
1408
- default:
1409
- return function (key, value, accumulator) {
1410
- if (accumulator[key] === undefined) {
1411
- accumulator[key] = value;
1412
- return;
1413
- }
1414
-
1415
- accumulator[key] = [].concat(accumulator[key], value);
1416
- };
1417
- }
1418
- }
1419
-
1420
- function encode(value, opts) {
1421
- if (opts.encode) {
1422
- return opts.strict ? strictUriEncode(value) : encodeURIComponent(value);
1423
- }
1424
-
1425
- return value;
1426
- }
1427
-
1428
- function keysSorter(input) {
1429
- if (Array.isArray(input)) {
1430
- return input.sort();
1431
- } else if (typeof input === 'object') {
1432
- return keysSorter(Object.keys(input)).sort(function (a, b) {
1433
- return Number(a) - Number(b);
1434
- }).map(function (key) {
1435
- return input[key];
1436
- });
1437
- }
1438
-
1439
- return input;
1440
- }
1441
-
1442
- function extract(str) {
1443
- var queryStart = str.indexOf('?');
1444
- if (queryStart === -1) {
1445
- return '';
1446
- }
1447
- return str.slice(queryStart + 1);
1448
- }
1449
-
1450
- function parse(str, opts) {
1451
- opts = objectAssign({arrayFormat: 'none'}, opts);
1452
-
1453
- var formatter = parserForArrayFormat(opts);
1454
-
1455
- // Create an object with no prototype
1456
- // https://github.com/sindresorhus/query-string/issues/47
1457
- var ret = Object.create(null);
1458
-
1459
- if (typeof str !== 'string') {
1460
- return ret;
1461
- }
1462
-
1463
- str = str.trim().replace(/^[?#&]/, '');
1464
-
1465
- if (!str) {
1466
- return ret;
1467
- }
1468
-
1469
- str.split('&').forEach(function (param) {
1470
- var parts = param.replace(/\+/g, ' ').split('=');
1471
- // Firefox (pre 40) decodes `%3D` to `=`
1472
- // https://github.com/sindresorhus/query-string/pull/37
1473
- var key = parts.shift();
1474
- var val = parts.length > 0 ? parts.join('=') : undefined;
1475
-
1476
- // missing `=` should be `null`:
1477
- // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters
1478
- val = val === undefined ? null : decodeComponent(val);
1479
-
1480
- formatter(decodeComponent(key), val, ret);
1481
- });
1482
-
1483
- return Object.keys(ret).sort().reduce(function (result, key) {
1484
- var val = ret[key];
1485
- if (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {
1486
- // Sort object keys, not values
1487
- result[key] = keysSorter(val);
1488
- } else {
1489
- result[key] = val;
1490
- }
1491
-
1492
- return result;
1493
- }, Object.create(null));
1494
- }
1495
-
1496
- exports.extract = extract;
1497
- exports.parse = parse;
1498
-
1499
- exports.stringify = function (obj, opts) {
1500
- var defaults = {
1501
- encode: true,
1502
- strict: true,
1503
- arrayFormat: 'none'
1504
- };
1505
-
1506
- opts = objectAssign(defaults, opts);
1507
-
1508
- if (opts.sort === false) {
1509
- opts.sort = function () {};
1510
- }
1511
-
1512
- var formatter = encoderForArrayFormat(opts);
1513
-
1514
- return obj ? Object.keys(obj).sort(opts.sort).map(function (key) {
1515
- var val = obj[key];
1516
-
1517
- if (val === undefined) {
1518
- return '';
1519
- }
1520
-
1521
- if (val === null) {
1522
- return encode(key, opts);
1523
- }
1524
-
1525
- if (Array.isArray(val)) {
1526
- var result = [];
1527
-
1528
- val.slice().forEach(function (val2) {
1529
- if (val2 === undefined) {
1530
- return;
1531
- }
1532
-
1533
- result.push(formatter(key, val2, result.length));
1534
- });
1535
-
1536
- return result.join('&');
1537
- }
1538
-
1539
- return encode(key, opts) + '=' + encode(val, opts);
1540
- }).filter(function (x) {
1541
- return x.length > 0;
1542
- }).join('&') : '';
1543
- };
1544
-
1545
- exports.parseUrl = function (str, opts) {
1546
- return {
1547
- url: str.split('?')[0] || '',
1548
- query: parse(extract(str), opts)
1549
- };
1550
- };
1551
-
1552
-
1553
- /***/ }),
1554
- /* 27 */
1555
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1556
-
1557
- "use strict";
1558
- /* harmony export (immutable) */ __webpack_exports__["a"] = _toConsumableArray;
1559
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__ = __webpack_require__(477);
1560
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArray__ = __webpack_require__(216);
1561
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(133);
1562
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableSpread__ = __webpack_require__(478);
1563
-
1564
-
1565
-
1566
-
1567
- function _toConsumableArray(arr) {
1568
- return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableSpread__["a" /* default */])();
1569
- }
1570
-
1571
- /***/ }),
1572
- /* 28 */
1573
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1574
-
1575
- "use strict";
1576
- /* harmony export (immutable) */ __webpack_exports__["a"] = ownerDocument;
1577
- function ownerDocument(node) {
1578
- return node && node.ownerDocument || document;
1579
- }
1580
-
1581
- /***/ }),
1582
- /* 29 */
1583
- /***/ (function(module, exports) {
1584
-
1585
- /**
1586
- * Checks if `value` is classified as an `Array` object.
1587
- *
1588
- * @static
1589
- * @memberOf _
1590
- * @since 0.1.0
1591
- * @category Lang
1592
- * @param {*} value The value to check.
1593
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1594
- * @example
1595
- *
1596
- * _.isArray([1, 2, 3]);
1597
- * // => true
1598
- *
1599
- * _.isArray(document.body.children);
1600
- * // => false
1601
- *
1602
- * _.isArray('abc');
1603
- * // => false
1604
- *
1605
- * _.isArray(_.noop);
1606
- * // => false
1607
- */
1608
- var isArray = Array.isArray;
1609
-
1610
- module.exports = isArray;
1611
-
1612
-
1613
- /***/ }),
1614
- /* 30 */
1615
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1616
-
1617
- "use strict";
1618
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__ = __webpack_require__(401);
1619
-
1620
-
1621
- /** Detect free variable `self`. */
1622
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1623
-
1624
- /** Used as a reference to the global object. */
1625
- var root = __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__["a" /* default */] || freeSelf || Function('return this')();
1626
-
1627
- /* harmony default export */ __webpack_exports__["a"] = (root);
1628
-
1629
-
1630
- /***/ }),
1631
- /* 31 */
1632
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1633
-
1634
- "use strict";
1635
- /**
1636
- * Checks if `value` is the
1637
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1638
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1639
- *
1640
- * @static
1641
- * @memberOf _
1642
- * @since 0.1.0
1643
- * @category Lang
1644
- * @param {*} value The value to check.
1645
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1646
- * @example
1647
- *
1648
- * _.isObject({});
1649
- * // => true
1650
- *
1651
- * _.isObject([1, 2, 3]);
1652
- * // => true
1653
- *
1654
- * _.isObject(_.noop);
1655
- * // => true
1656
- *
1657
- * _.isObject(null);
1658
- * // => false
1659
- */
1660
- function isObject(value) {
1661
- var type = typeof value;
1662
- return value != null && (type == 'object' || type == 'function');
1663
- }
1664
-
1665
- /* harmony default export */ __webpack_exports__["a"] = (isObject);
1666
-
1667
-
1668
- /***/ }),
1669
- /* 32 */
1670
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1671
-
1672
- "use strict";
1673
- /**
1674
- * Checks if `value` is classified as an `Array` object.
1675
- *
1676
- * @static
1677
- * @memberOf _
1678
- * @since 0.1.0
1679
- * @category Lang
1680
- * @param {*} value The value to check.
1681
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1682
- * @example
1683
- *
1684
- * _.isArray([1, 2, 3]);
1685
- * // => true
1686
- *
1687
- * _.isArray(document.body.children);
1688
- * // => false
1689
- *
1690
- * _.isArray('abc');
1691
- * // => false
1692
- *
1693
- * _.isArray(_.noop);
1694
- * // => false
1695
- */
1696
- var isArray = Array.isArray;
1697
-
1698
- /* harmony default export */ __webpack_exports__["a"] = (isArray);
1699
-
1700
-
1701
- /***/ }),
1702
- /* 33 */
1703
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1704
-
1705
- "use strict";
1706
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return simpleCheckForValidColor; });
1707
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return toState; });
1708
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isValidHex; });
1709
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getContrastingColor; });
1710
- /* unused harmony export red */
1711
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isvalidColorString; });
1712
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_es_each__ = __webpack_require__(937);
1713
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2__ = __webpack_require__(945);
1714
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_tinycolor2__);
1715
-
1716
-
1717
-
1718
- var simpleCheckForValidColor = function simpleCheckForValidColor(data) {
1719
- var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];
1720
- var checked = 0;
1721
- var passed = 0;
1722
- Object(__WEBPACK_IMPORTED_MODULE_0_lodash_es_each__["a" /* default */])(keysToCheck, function (letter) {
1723
- if (data[letter]) {
1724
- checked += 1;
1725
- if (!isNaN(data[letter])) {
1726
- passed += 1;
1727
- }
1728
- if (letter === 's' || letter === 'l') {
1729
- var percentPatt = /^\d+%$/;
1730
- if (percentPatt.test(data[letter])) {
1731
- passed += 1;
1732
- }
1733
- }
1734
- }
1735
- });
1736
- return checked === passed ? data : false;
1737
- };
1738
-
1739
- var toState = function toState(data, oldHue) {
1740
- var color = data.hex ? __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data.hex) : __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data);
1741
- var hsl = color.toHsl();
1742
- var hsv = color.toHsv();
1743
- var rgb = color.toRgb();
1744
- var hex = color.toHex();
1745
- if (hsl.s === 0) {
1746
- hsl.h = oldHue || 0;
1747
- hsv.h = oldHue || 0;
1748
- }
1749
- var transparent = hex === '000000' && rgb.a === 0;
1750
-
1751
- return {
1752
- hsl: hsl,
1753
- hex: transparent ? 'transparent' : '#' + hex,
1754
- rgb: rgb,
1755
- hsv: hsv,
1756
- oldHue: data.h || oldHue || hsl.h,
1757
- source: data.source
1758
- };
1759
- };
1760
-
1761
- var isValidHex = function isValidHex(hex) {
1762
- if (hex === 'transparent') {
1763
- return true;
1764
- }
1765
- // disable hex4 and hex8
1766
- var lh = String(hex).charAt(0) === '#' ? 1 : 0;
1767
- return hex.length !== 4 + lh && hex.length < 7 + lh && __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(hex).isValid();
1768
- };
1769
-
1770
- var getContrastingColor = function getContrastingColor(data) {
1771
- if (!data) {
1772
- return '#fff';
1773
- }
1774
- var col = toState(data);
1775
- if (col.hex === 'transparent') {
1776
- return 'rgba(0,0,0,0.4)';
1777
- }
1778
- var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000;
1779
- return yiq >= 128 ? '#000' : '#fff';
1780
- };
1781
-
1782
- var red = {
1783
- hsl: { a: 1, h: 0, l: 0.5, s: 1 },
1784
- hex: '#ff0000',
1785
- rgb: { r: 255, g: 0, b: 0, a: 1 },
1786
- hsv: { h: 0, s: 1, v: 1, a: 1 }
1787
- };
1788
-
1789
- var isvalidColorString = function isvalidColorString(string, type) {
1790
- var stringWithoutDegree = string.replace('°', '');
1791
- return __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(type + ' (' + stringWithoutDegree + ')')._ok;
1792
- };
1793
-
1794
- /***/ }),
1795
- /* 34 */
1796
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1797
-
1798
- "use strict";
1799
- /* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose;
1800
- function _inheritsLoose(subClass, superClass) {
1801
- subClass.prototype = Object.create(superClass.prototype);
1802
- subClass.prototype.constructor = subClass;
1803
- subClass.__proto__ = superClass;
1804
- }
1805
-
1806
- /***/ }),
1807
- /* 35 */
1808
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1809
-
1810
- "use strict";
1811
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
1812
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Icon__ = __webpack_require__(455);
1813
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Icon__["a"]; });
1814
-
1815
-
1816
- /***/ }),
1817
- /* 36 */
1818
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1819
-
1820
- "use strict";
1821
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(15);
1822
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(237);
1823
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(136);
1824
-
1825
-
1826
-
1827
-
1828
- function getPath(obj, path) {
1829
- if (!path || typeof path !== 'string') {
1830
- return null;
1831
- }
1832
-
1833
- return path.split('.').reduce(function (acc, item) {
1834
- return acc && acc[item] ? acc[item] : null;
1835
- }, obj);
1836
- }
1837
-
1838
- function style(options) {
1839
- var prop = options.prop,
1840
- _options$cssProperty = options.cssProperty,
1841
- cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty,
1842
- themeKey = options.themeKey,
1843
- transform = options.transform;
1844
-
1845
- var fn = function fn(props) {
1846
- if (props[prop] == null) {
1847
- return null;
1848
- }
1849
-
1850
- var propValue = props[prop];
1851
- var theme = props.theme;
1852
- var themeMapping = getPath(theme, themeKey) || {};
1853
-
1854
- var styleFromPropValue = function styleFromPropValue(propValueFinal) {
1855
- var value;
1856
-
1857
- if (typeof themeMapping === 'function') {
1858
- value = themeMapping(propValueFinal);
1859
- } else if (Array.isArray(themeMapping)) {
1860
- value = themeMapping[propValueFinal] || propValueFinal;
1861
- } else {
1862
- value = getPath(themeMapping, propValueFinal) || propValueFinal;
1863
-
1864
- if (transform) {
1865
- value = transform(value);
1866
- }
1867
- }
1868
-
1869
- if (cssProperty === false) {
1870
- return value;
1871
- }
1872
-
1873
- return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, cssProperty, value);
1874
- };
1875
-
1876
- return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
1877
- };
1878
-
1879
- fn.propTypes = process.env.NODE_ENV !== 'production' ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, prop, __WEBPACK_IMPORTED_MODULE_1__responsivePropType__["a" /* default */]) : {};
1880
- fn.filterProps = [prop];
1881
- return fn;
1882
- }
1883
-
1884
- /* harmony default export */ __webpack_exports__["a"] = (style);
1885
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1886
-
1887
- /***/ }),
1888
- /* 37 */
1889
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1890
-
1891
- "use strict";
1892
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export easing */
1893
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return duration; });
1894
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
1895
-
1896
- // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
1897
- // to learn the context in which each easing should be used.
1898
- var easing = {
1899
- // This is the most common easing curve.
1900
- easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
1901
- // Objects enter the screen at full velocity from off-screen and
1902
- // slowly decelerate to a resting point.
1903
- easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
1904
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
1905
- easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
1906
- // The sharp curve is used by objects that may return to the screen at any time.
1907
- sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
1908
- }; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
1909
- // to learn when use what timing
1910
-
1911
- var duration = {
1912
- shortest: 150,
1913
- shorter: 200,
1914
- short: 250,
1915
- // most basic recommended timing
1916
- standard: 300,
1917
- // this is to be used in complex animations
1918
- complex: 375,
1919
- // recommended when something is entering screen
1920
- enteringScreen: 225,
1921
- // recommended when something is leaving screen
1922
- leavingScreen: 195
1923
- };
1924
-
1925
- function formatMs(milliseconds) {
1926
- return "".concat(Math.round(milliseconds), "ms");
1927
- }
1928
- /**
1929
- * @param {string|Array} props
1930
- * @param {object} param
1931
- * @param {string} param.prop
1932
- * @param {number} param.duration
1933
- * @param {string} param.easing
1934
- * @param {number} param.delay
1935
- */
1936
-
1937
-
1938
- /* harmony default export */ __webpack_exports__["a"] = ({
1939
- easing: easing,
1940
- duration: duration,
1941
- create: function create() {
1942
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];
1943
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1944
-
1945
- var _options$duration = options.duration,
1946
- durationOption = _options$duration === void 0 ? duration.standard : _options$duration,
1947
- _options$easing = options.easing,
1948
- easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,
1949
- _options$delay = options.delay,
1950
- delay = _options$delay === void 0 ? 0 : _options$delay,
1951
- other = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["duration", "easing", "delay"]);
1952
-
1953
- if (process.env.NODE_ENV !== 'production') {
1954
- var isString = function isString(value) {
1955
- return typeof value === 'string';
1956
- };
1957
-
1958
- var isNumber = function isNumber(value) {
1959
- return !isNaN(parseFloat(value));
1960
- };
1961
-
1962
- if (!isString(props) && !Array.isArray(props)) {
1963
- console.error('Material-UI: Argument "props" must be a string or Array.');
1964
- }
1965
-
1966
- if (!isNumber(durationOption) && !isString(durationOption)) {
1967
- console.error("Material-UI: Argument \"duration\" must be a number or a string but found ".concat(durationOption, "."));
1968
- }
1969
-
1970
- if (!isString(easingOption)) {
1971
- console.error('Material-UI: Argument "easing" must be a string.');
1972
- }
1973
-
1974
- if (!isNumber(delay) && !isString(delay)) {
1975
- console.error('Material-UI: Argument "delay" must be a number or a string.');
1976
- }
1977
-
1978
- if (Object.keys(other).length !== 0) {
1979
- console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(other).join(','), "]."));
1980
- }
1981
- }
1982
-
1983
- return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {
1984
- return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay));
1985
- }).join(',');
1986
- },
1987
- getAutoHeightDuration: function getAutoHeightDuration(height) {
1988
- if (!height) {
1989
- return 0;
1990
- }
1991
-
1992
- var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10
1993
-
1994
- return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
1995
- }
1996
- });
1997
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1998
-
1999
- /***/ }),
2000
- /* 38 */
2001
- /***/ (function(module, exports, __webpack_require__) {
2002
-
2003
- var freeGlobal = __webpack_require__(376);
2004
-
2005
- /** Detect free variable `self`. */
2006
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
2007
-
2008
- /** Used as a reference to the global object. */
2009
- var root = freeGlobal || freeSelf || Function('return this')();
2010
-
2011
- module.exports = root;
2012
-
2013
-
2014
- /***/ }),
2015
- /* 39 */
2016
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2017
-
2018
- "use strict";
2019
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2020
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__merge__ = __webpack_require__(91);
2021
-
2022
-
2023
-
2024
- function compose() {
2025
- for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {
2026
- styles[_key] = arguments[_key];
2027
- }
2028
-
2029
- var fn = function fn(props) {
2030
- return styles.reduce(function (acc, style) {
2031
- var output = style(props);
2032
-
2033
- if (output) {
2034
- return Object(__WEBPACK_IMPORTED_MODULE_1__merge__["a" /* default */])(acc, output);
2035
- }
2036
-
2037
- return acc;
2038
- }, {});
2039
- }; // Alternative approach that doesn't yield any performance gain.
2040
- // const handlers = styles.reduce((acc, style) => {
2041
- // style.filterProps.forEach(prop => {
2042
- // acc[prop] = style;
2043
- // });
2044
- // return acc;
2045
- // }, {});
2046
- // const fn = props => {
2047
- // return Object.keys(props).reduce((acc, prop) => {
2048
- // if (handlers[prop]) {
2049
- // return merge(acc, handlers[prop](props));
2050
- // }
2051
- // return acc;
2052
- // }, {});
2053
- // };
2054
-
2055
-
2056
- fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce(function (acc, style) {
2057
- return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(acc, style.propTypes);
2058
- }, {}) : {};
2059
- fn.filterProps = styles.reduce(function (acc, style) {
2060
- return acc.concat(style.filterProps);
2061
- }, []);
2062
- return fn;
2063
- }
2064
-
2065
- /* harmony default export */ __webpack_exports__["a"] = (compose);
2066
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2067
-
2068
- /***/ }),
2069
- /* 40 */
2070
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2071
-
2072
- "use strict";
2073
- /* harmony export (immutable) */ __webpack_exports__["a"] = useEventCallback;
2074
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
2075
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
2076
-
2077
- var useEnhancedEffect = typeof window !== 'undefined' ? __WEBPACK_IMPORTED_MODULE_0_react__["useLayoutEffect"] : __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"];
2078
- /**
2079
- * https://github.com/facebook/react/issues/14099#issuecomment-440013892
2080
- *
2081
- * @param {function} fn
2082
- */
2083
-
2084
- function useEventCallback(fn) {
2085
- var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](fn);
2086
- useEnhancedEffect(function () {
2087
- ref.current = fn;
2088
- });
2089
- return __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function () {
2090
- return (0, ref.current).apply(void 0, arguments);
2091
- }, []);
2092
- }
2093
-
2094
- /***/ }),
2095
- /* 41 */
2096
- /***/ (function(module, exports) {
2097
-
2098
- /**
2099
- * Checks if `value` is object-like. A value is object-like if it's not `null`
2100
- * and has a `typeof` result of "object".
2101
- *
2102
- * @static
2103
- * @memberOf _
2104
- * @since 4.0.0
2105
- * @category Lang
2106
- * @param {*} value The value to check.
2107
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2108
- * @example
2109
- *
2110
- * _.isObjectLike({});
2111
- * // => true
2112
- *
2113
- * _.isObjectLike([1, 2, 3]);
2114
- * // => true
2115
- *
2116
- * _.isObjectLike(_.noop);
2117
- * // => false
2118
- *
2119
- * _.isObjectLike(null);
2120
- * // => false
2121
- */
2122
- function isObjectLike(value) {
2123
- return value != null && typeof value == 'object';
2124
- }
2125
-
2126
- module.exports = isObjectLike;
2127
-
2128
-
2129
- /***/ }),
2130
- /* 42 */
2131
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2132
-
2133
- "use strict";
2134
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
2135
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserRouter", function() { return BrowserRouter; });
2136
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashRouter", function() { return HashRouter; });
2137
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return Link; });
2138
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavLink", function() { return NavLink; });
2139
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router__ = __webpack_require__(209);
2140
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["a"]; });
2141
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Prompt", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["b"]; });
2142
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["c"]; });
2143
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["d"]; });
2144
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["e"]; });
2145
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["f"]; });
2146
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["g"]; });
2147
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "generatePath", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["i"]; });
2148
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matchPath", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["j"]; });
2149
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useHistory", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["k"]; });
2150
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useLocation", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["l"]; });
2151
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useParams", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["m"]; });
2152
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useRouteMatch", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["n"]; });
2153
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["o"]; });
2154
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(34);
2155
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
2156
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
2157
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history__ = __webpack_require__(210);
2158
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
2159
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
2160
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_tiny_warning__ = __webpack_require__(48);
2161
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2162
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(43);
2163
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_tiny_invariant__ = __webpack_require__(129);
2164
-
2165
-
2166
-
2167
-
2168
-
2169
-
2170
-
2171
-
2172
-
2173
-
2174
-
2175
- /**
2176
- * The public API for a <Router> that uses HTML5 history.
2177
- */
2178
-
2179
- var BrowserRouter =
2180
- /*#__PURE__*/
2181
- function (_React$Component) {
2182
- Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(BrowserRouter, _React$Component);
2183
-
2184
- function BrowserRouter() {
2185
- var _this;
2186
-
2187
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2188
- args[_key] = arguments[_key];
2189
- }
2190
-
2191
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
2192
- _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["a" /* createBrowserHistory */])(_this.props);
2193
- return _this;
2194
- }
2195
-
2196
- var _proto = BrowserRouter.prototype;
2197
-
2198
- _proto.render = function render() {
2199
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["e" /* Router */], {
2200
- history: this.history,
2201
- children: this.props.children
2202
- });
2203
- };
2204
-
2205
- return BrowserRouter;
2206
- }(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
2207
-
2208
- if (process.env.NODE_ENV !== "production") {
2209
- BrowserRouter.propTypes = {
2210
- basename: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2211
- children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
2212
- forceRefresh: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2213
- getUserConfirmation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2214
- keyLength: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number
2215
- };
2216
-
2217
- BrowserRouter.prototype.componentDidMount = function () {
2218
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_5_tiny_warning__["a" /* default */])(!this.props.history, "<BrowserRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { BrowserRouter as Router }`.") : void 0;
2219
- };
2220
- }
2221
-
2222
- /**
2223
- * The public API for a <Router> that uses window.location.hash.
2224
- */
2225
-
2226
- var HashRouter =
2227
- /*#__PURE__*/
2228
- function (_React$Component) {
2229
- Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(HashRouter, _React$Component);
2230
-
2231
- function HashRouter() {
2232
- var _this;
2233
-
2234
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2235
- args[_key] = arguments[_key];
2236
- }
2237
-
2238
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
2239
- _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["b" /* createHashHistory */])(_this.props);
2240
- return _this;
2241
- }
2242
-
2243
- var _proto = HashRouter.prototype;
2244
-
2245
- _proto.render = function render() {
2246
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["e" /* Router */], {
2247
- history: this.history,
2248
- children: this.props.children
2249
- });
2250
- };
2251
-
2252
- return HashRouter;
2253
- }(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
2254
-
2255
- if (process.env.NODE_ENV !== "production") {
2256
- HashRouter.propTypes = {
2257
- basename: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2258
- children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
2259
- getUserConfirmation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2260
- hashType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(["hashbang", "noslash", "slash"])
2261
- };
2262
-
2263
- HashRouter.prototype.componentDidMount = function () {
2264
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_5_tiny_warning__["a" /* default */])(!this.props.history, "<HashRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`.") : void 0;
2265
- };
2266
- }
2267
-
2268
- var resolveToLocation = function resolveToLocation(to, currentLocation) {
2269
- return typeof to === "function" ? to(currentLocation) : to;
2270
- };
2271
- var normalizeToLocation = function normalizeToLocation(to, currentLocation) {
2272
- return typeof to === "string" ? Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(to, null, null, currentLocation) : to;
2273
- };
2274
-
2275
- var forwardRefShim = function forwardRefShim(C) {
2276
- return C;
2277
- };
2278
-
2279
- var forwardRef = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef;
2280
-
2281
- if (typeof forwardRef === "undefined") {
2282
- forwardRef = forwardRefShim;
2283
- }
2284
-
2285
- function isModifiedEvent(event) {
2286
- return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
2287
- }
2288
-
2289
- var LinkAnchor = forwardRef(function (_ref, forwardedRef) {
2290
- var innerRef = _ref.innerRef,
2291
- navigate = _ref.navigate,
2292
- _onClick = _ref.onClick,
2293
- rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["innerRef", "navigate", "onClick"]);
2294
-
2295
- var target = rest.target;
2296
-
2297
- var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
2298
- onClick: function onClick(event) {
2299
- try {
2300
- if (_onClick) _onClick(event);
2301
- } catch (ex) {
2302
- event.preventDefault();
2303
- throw ex;
2304
- }
2305
-
2306
- if (!event.defaultPrevented && // onClick prevented default
2307
- event.button === 0 && ( // ignore everything but left clicks
2308
- !target || target === "_self") && // let browser handle "target=_blank" etc.
2309
- !isModifiedEvent(event) // ignore clicks with modifier keys
2310
- ) {
2311
- event.preventDefault();
2312
- navigate();
2313
- }
2314
- }
2315
- }); // React 15 compat
2316
-
2317
-
2318
- if (forwardRefShim !== forwardRef) {
2319
- props.ref = forwardedRef || innerRef;
2320
- } else {
2321
- props.ref = innerRef;
2322
- }
2323
- /* eslint-disable-next-line jsx-a11y/anchor-has-content */
2324
-
2325
-
2326
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("a", props);
2327
- });
2328
-
2329
- if (process.env.NODE_ENV !== "production") {
2330
- LinkAnchor.displayName = "LinkAnchor";
2331
- }
2332
- /**
2333
- * The public API for rendering a history-aware <a>.
2334
- */
2335
-
2336
-
2337
- var Link = forwardRef(function (_ref2, forwardedRef) {
2338
- var _ref2$component = _ref2.component,
2339
- component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,
2340
- replace = _ref2.replace,
2341
- to = _ref2.to,
2342
- innerRef = _ref2.innerRef,
2343
- rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref2, ["component", "replace", "to", "innerRef"]);
2344
-
2345
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["h" /* __RouterContext */].Consumer, null, function (context) {
2346
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false, "You should not use <Link> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false) : void 0;
2347
- var history = context.history;
2348
- var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);
2349
- var href = location ? history.createHref(location) : "";
2350
-
2351
- var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
2352
- href: href,
2353
- navigate: function navigate() {
2354
- var location = resolveToLocation(to, context.location);
2355
- var method = replace ? history.replace : history.push;
2356
- method(location);
2357
- }
2358
- }); // React 15 compat
2359
-
2360
-
2361
- if (forwardRefShim !== forwardRef) {
2362
- props.ref = forwardedRef || innerRef;
2363
- } else {
2364
- props.innerRef = innerRef;
2365
- }
2366
-
2367
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(component, props);
2368
- });
2369
- });
2370
-
2371
- if (process.env.NODE_ENV !== "production") {
2372
- var toType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func]);
2373
- var refType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({
2374
- current: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any
2375
- })]);
2376
- Link.displayName = "Link";
2377
- Link.propTypes = {
2378
- innerRef: refType,
2379
- onClick: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2380
- replace: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2381
- target: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2382
- to: toType.isRequired
2383
- };
2384
- }
2385
-
2386
- var forwardRefShim$1 = function forwardRefShim(C) {
2387
- return C;
2388
- };
2389
-
2390
- var forwardRef$1 = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef;
2391
-
2392
- if (typeof forwardRef$1 === "undefined") {
2393
- forwardRef$1 = forwardRefShim$1;
2394
- }
2395
-
2396
- function joinClassnames() {
2397
- for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {
2398
- classnames[_key] = arguments[_key];
2399
- }
2400
-
2401
- return classnames.filter(function (i) {
2402
- return i;
2403
- }).join(" ");
2404
- }
2405
- /**
2406
- * A <Link> wrapper that knows if it's "active" or not.
2407
- */
2408
-
2409
-
2410
- var NavLink = forwardRef$1(function (_ref, forwardedRef) {
2411
- var _ref$ariaCurrent = _ref["aria-current"],
2412
- ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,
2413
- _ref$activeClassName = _ref.activeClassName,
2414
- activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName,
2415
- activeStyle = _ref.activeStyle,
2416
- classNameProp = _ref.className,
2417
- exact = _ref.exact,
2418
- isActiveProp = _ref.isActive,
2419
- locationProp = _ref.location,
2420
- sensitive = _ref.sensitive,
2421
- strict = _ref.strict,
2422
- styleProp = _ref.style,
2423
- to = _ref.to,
2424
- innerRef = _ref.innerRef,
2425
- rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]);
2426
-
2427
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["h" /* __RouterContext */].Consumer, null, function (context) {
2428
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false, "You should not use <NavLink> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false) : void 0;
2429
- var currentLocation = locationProp || context.location;
2430
- var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);
2431
- var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
2432
-
2433
- var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
2434
- var match = escapedPath ? Object(__WEBPACK_IMPORTED_MODULE_0_react_router__["j" /* matchPath */])(currentLocation.pathname, {
2435
- path: escapedPath,
2436
- exact: exact,
2437
- sensitive: sensitive,
2438
- strict: strict
2439
- }) : null;
2440
- var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);
2441
- var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
2442
- var style = isActive ? Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, styleProp, {}, activeStyle) : styleProp;
2443
-
2444
- var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({
2445
- "aria-current": isActive && ariaCurrent || null,
2446
- className: className,
2447
- style: style,
2448
- to: toLocation
2449
- }, rest); // React 15 compat
2450
-
2451
-
2452
- if (forwardRefShim$1 !== forwardRef$1) {
2453
- props.ref = forwardedRef || innerRef;
2454
- } else {
2455
- props.innerRef = innerRef;
2456
- }
2457
-
2458
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(Link, props);
2459
- });
2460
- });
2461
-
2462
- if (process.env.NODE_ENV !== "production") {
2463
- NavLink.displayName = "NavLink";
2464
- var ariaCurrentType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(["page", "step", "location", "date", "time", "true"]);
2465
- NavLink.propTypes = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, Link.propTypes, {
2466
- "aria-current": ariaCurrentType,
2467
- activeClassName: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2468
- activeStyle: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
2469
- className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2470
- exact: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2471
- isActive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2472
- location: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
2473
- sensitive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2474
- strict: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2475
- style: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object
2476
- });
2477
- }
2478
-
2479
-
2480
- //# sourceMappingURL=react-router-dom.js.map
2481
-
2482
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2483
-
2484
- /***/ }),
2485
- /* 43 */
2486
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2487
-
2488
- "use strict";
2489
- /* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutPropertiesLoose;
2490
- function _objectWithoutPropertiesLoose(source, excluded) {
2491
- if (source == null) return {};
2492
- var target = {};
2493
- var sourceKeys = Object.keys(source);
2494
- var key, i;
2495
-
2496
- for (i = 0; i < sourceKeys.length; i++) {
2497
- key = sourceKeys[i];
2498
- if (excluded.indexOf(key) >= 0) continue;
2499
- target[key] = source[key];
2500
- }
2501
-
2502
- return target;
2503
- }
2504
-
2505
- /***/ }),
2506
- /* 44 */
2507
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2508
-
2509
- "use strict";
2510
- /* harmony export (immutable) */ __webpack_exports__["a"] = _typeof;
2511
- function _typeof(obj) {
2512
- "@babel/helpers - typeof";
2513
-
2514
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2515
- _typeof = function _typeof(obj) {
2516
- return typeof obj;
2517
- };
2518
- } else {
2519
- _typeof = function _typeof(obj) {
2520
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2521
- };
2522
- }
2523
-
2524
- return _typeof(obj);
2525
- }
2526
-
2527
- /***/ }),
2528
- /* 45 */
2529
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2530
-
2531
- "use strict";
2532
- /* harmony export (immutable) */ __webpack_exports__["a"] = _createClass;
2533
- function _defineProperties(target, props) {
2534
- for (var i = 0; i < props.length; i++) {
2535
- var descriptor = props[i];
2536
- descriptor.enumerable = descriptor.enumerable || false;
2537
- descriptor.configurable = true;
2538
- if ("value" in descriptor) descriptor.writable = true;
2539
- Object.defineProperty(target, descriptor.key, descriptor);
2540
- }
2541
- }
2542
-
2543
- function _createClass(Constructor, protoProps, staticProps) {
2544
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2545
- if (staticProps) _defineProperties(Constructor, staticProps);
2546
- return Constructor;
2547
- }
2548
-
2549
- /***/ }),
2550
- /* 46 */
2551
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2552
-
2553
- "use strict";
2554
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useControlled;
2555
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
2556
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
2557
- /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
2558
-
2559
- function useControlled(_ref) {
2560
- var controlled = _ref.controlled,
2561
- defaultProp = _ref.default,
2562
- name = _ref.name,
2563
- _ref$state = _ref.state,
2564
- state = _ref$state === void 0 ? 'value' : _ref$state;
2565
-
2566
- var _React$useRef = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](controlled !== undefined),
2567
- isControlled = _React$useRef.current;
2568
-
2569
- var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](defaultProp),
2570
- valueState = _React$useState[0],
2571
- setValue = _React$useState[1];
2572
-
2573
- var value = isControlled ? controlled : valueState;
2574
-
2575
- if (process.env.NODE_ENV !== 'production') {
2576
- __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
2577
- if (isControlled !== (controlled !== undefined)) {
2578
- console.error(["Material-UI: A component is changing the ".concat(isControlled ? '' : 'un', "controlled ").concat(state, " state of ").concat(name, " to be ").concat(isControlled ? 'un' : '', "controlled."), 'Elements should not switch from uncontrolled to controlled (or vice versa).', "Decide between using a controlled or uncontrolled ".concat(name, " ") + 'element for the lifetime of the component.', "The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
2579
- }
2580
- }, [controlled]);
2581
-
2582
- var _React$useRef2 = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](defaultProp),
2583
- defaultValue = _React$useRef2.current;
2584
-
2585
- __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
2586
- if (!isControlled && defaultValue !== defaultProp) {
2587
- console.error(["Material-UI: A component is changing the default ".concat(state, " state of an uncontrolled ").concat(name, " after being initialized. ") + "To suppress this warning opt to use a controlled ".concat(name, ".")].join('\n'));
2588
- }
2589
- }, [JSON.stringify(defaultProp)]);
2590
- }
2591
-
2592
- var setValueIfUncontrolled = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (newValue) {
2593
- if (!isControlled) {
2594
- setValue(newValue);
2595
- }
2596
- }, []);
2597
- return [value, setValueIfUncontrolled];
2598
- }
2599
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2600
-
2601
- /***/ }),
2602
- /* 47 */
2603
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2604
-
2605
- "use strict";
2606
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__IconButton__ = __webpack_require__(559);
2607
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__IconButton__["a"]; });
2608
-
2609
-
2610
- /***/ }),
2611
- /* 48 */
2612
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2613
-
2614
- "use strict";
2615
- /* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';
2616
- function warning(condition, message) {
2617
- if (!isProduction) {
2618
- if (condition) {
2619
- return;
2620
- }
2621
-
2622
- var text = "Warning: " + message;
2623
-
2624
- if (typeof console !== 'undefined') {
2625
- console.warn(text);
2626
- }
2627
-
2628
- try {
2629
- throw Error(text);
2630
- } catch (x) {}
2631
- }
2632
- }
2633
-
2634
- /* harmony default export */ __webpack_exports__["a"] = (warning);
2635
-
2636
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2637
-
2638
- /***/ }),
2639
- /* 49 */
2640
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2641
-
2642
- "use strict";
2643
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RuleList; });
2644
- /* unused harmony export SheetsManager */
2645
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SheetsRegistry; });
2646
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return create; });
2647
- /* unused harmony export createGenerateId */
2648
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createRule; });
2649
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getDynamicStyles; });
2650
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasCSSTOMSupport; });
2651
- /* unused harmony export sheets */
2652
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return toCssValue; });
2653
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2654
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_is_in_browser__ = __webpack_require__(214);
2655
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_tiny_warning__ = __webpack_require__(48);
2656
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__ = __webpack_require__(45);
2657
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(34);
2658
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(88);
2659
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(43);
2660
-
2661
-
2662
-
2663
-
2664
-
2665
-
2666
-
2667
-
2668
- var plainObjectConstrurctor = {}.constructor;
2669
- function cloneStyle(style) {
2670
- if (style == null || typeof style !== 'object') return style;
2671
- if (Array.isArray(style)) return style.map(cloneStyle);
2672
- if (style.constructor !== plainObjectConstrurctor) return style;
2673
- var newStyle = {};
2674
-
2675
- for (var name in style) {
2676
- newStyle[name] = cloneStyle(style[name]);
2677
- }
2678
-
2679
- return newStyle;
2680
- }
2681
-
2682
- /**
2683
- * Create a rule instance.
2684
- */
2685
-
2686
- function createRule(name, decl, options) {
2687
- if (name === void 0) {
2688
- name = 'unnamed';
2689
- }
2690
-
2691
- var jss = options.jss;
2692
- var declCopy = cloneStyle(decl);
2693
- var rule = jss.plugins.onCreateRule(name, declCopy, options);
2694
- if (rule) return rule; // It is an at-rule and it has no instance.
2695
-
2696
- if (name[0] === '@') {
2697
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown rule " + name) : void 0;
2698
- }
2699
-
2700
- return null;
2701
- }
2702
-
2703
- var join = function join(value, by) {
2704
- var result = '';
2705
-
2706
- for (var i = 0; i < value.length; i++) {
2707
- // Remove !important from the value, it will be readded later.
2708
- if (value[i] === '!important') break;
2709
- if (result) result += by;
2710
- result += value[i];
2711
- }
2712
-
2713
- return result;
2714
- };
2715
-
2716
- /**
2717
- * Converts array values to string.
2718
- *
2719
- * `margin: [['5px', '10px']]` > `margin: 5px 10px;`
2720
- * `border: ['1px', '2px']` > `border: 1px, 2px;`
2721
- * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
2722
- * `color: ['red', !important]` > `color: red !important;`
2723
- */
2724
- var toCssValue = function toCssValue(value, ignoreImportant) {
2725
- if (ignoreImportant === void 0) {
2726
- ignoreImportant = false;
2727
- }
2728
-
2729
- if (!Array.isArray(value)) return value;
2730
- var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.
2731
-
2732
- if (Array.isArray(value[0])) {
2733
- for (var i = 0; i < value.length; i++) {
2734
- if (value[i] === '!important') break;
2735
- if (cssValue) cssValue += ', ';
2736
- cssValue += join(value[i], ' ');
2737
- }
2738
- } else cssValue = join(value, ', '); // Add !important, because it was ignored.
2739
-
2740
-
2741
- if (!ignoreImportant && value[value.length - 1] === '!important') {
2742
- cssValue += ' !important';
2743
- }
2744
-
2745
- return cssValue;
2746
- };
2747
-
2748
- /**
2749
- * Indent a string.
2750
- * http://jsperf.com/array-join-vs-for
2751
- */
2752
- function indentStr(str, indent) {
2753
- var result = '';
2754
-
2755
- for (var index = 0; index < indent; index++) {
2756
- result += ' ';
2757
- }
2758
-
2759
- return result + str;
2760
- }
2761
- /**
2762
- * Converts a Rule to CSS string.
2763
- */
2764
-
2765
-
2766
- function toCss(selector, style, options) {
2767
- if (options === void 0) {
2768
- options = {};
2769
- }
2770
-
2771
- var result = '';
2772
- if (!style) return result;
2773
- var _options = options,
2774
- _options$indent = _options.indent,
2775
- indent = _options$indent === void 0 ? 0 : _options$indent;
2776
- var fallbacks = style.fallbacks;
2777
- if (selector) indent++; // Apply fallbacks first.
2778
-
2779
- if (fallbacks) {
2780
- // Array syntax {fallbacks: [{prop: value}]}
2781
- if (Array.isArray(fallbacks)) {
2782
- for (var index = 0; index < fallbacks.length; index++) {
2783
- var fallback = fallbacks[index];
2784
-
2785
- for (var prop in fallback) {
2786
- var value = fallback[prop];
2787
-
2788
- if (value != null) {
2789
- if (result) result += '\n';
2790
- result += "" + indentStr(prop + ": " + toCssValue(value) + ";", indent);
2791
- }
2792
- }
2793
- }
2794
- } else {
2795
- // Object syntax {fallbacks: {prop: value}}
2796
- for (var _prop in fallbacks) {
2797
- var _value = fallbacks[_prop];
2798
-
2799
- if (_value != null) {
2800
- if (result) result += '\n';
2801
- result += "" + indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
2802
- }
2803
- }
2804
- }
2805
- }
2806
-
2807
- for (var _prop2 in style) {
2808
- var _value2 = style[_prop2];
2809
-
2810
- if (_value2 != null && _prop2 !== 'fallbacks') {
2811
- if (result) result += '\n';
2812
- result += "" + indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
2813
- }
2814
- } // Allow empty style in this case, because properties will be added dynamically.
2815
-
2816
-
2817
- if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.
2818
-
2819
- if (!selector) return result;
2820
- indent--;
2821
- if (result) result = "\n" + result + "\n";
2822
- return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
2823
- }
2824
-
2825
- var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
2826
- var nativeEscape = typeof CSS !== 'undefined' && CSS.escape;
2827
- var escape = (function (str) {
2828
- return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1');
2829
- });
2830
-
2831
- var BaseStyleRule =
2832
- /*#__PURE__*/
2833
- function () {
2834
- function BaseStyleRule(key, style, options) {
2835
- this.type = 'style';
2836
- this.key = void 0;
2837
- this.isProcessed = false;
2838
- this.style = void 0;
2839
- this.renderer = void 0;
2840
- this.renderable = void 0;
2841
- this.options = void 0;
2842
- var sheet = options.sheet,
2843
- Renderer = options.Renderer;
2844
- this.key = key;
2845
- this.options = options;
2846
- this.style = style;
2847
- if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();
2848
- }
2849
- /**
2850
- * Get or set a style property.
2851
- */
2852
-
2853
-
2854
- var _proto = BaseStyleRule.prototype;
2855
-
2856
- _proto.prop = function prop(name, value, options) {
2857
- // It's a getter.
2858
- if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.
2859
-
2860
- var force = options ? options.force : false;
2861
- if (!force && this.style[name] === value) return this;
2862
- var newValue = value;
2863
-
2864
- if (!options || options.process !== false) {
2865
- newValue = this.options.jss.plugins.onChangeValue(value, name, this);
2866
- }
2867
-
2868
- var isEmpty = newValue == null || newValue === false;
2869
- var isDefined = name in this.style; // Value is empty and wasn't defined before.
2870
-
2871
- if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.
2872
-
2873
- var remove = isEmpty && isDefined;
2874
- if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.
2875
-
2876
- if (this.renderable && this.renderer) {
2877
- if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);
2878
- return this;
2879
- }
2880
-
2881
- var sheet = this.options.sheet;
2882
-
2883
- if (sheet && sheet.attached) {
2884
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, '[JSS] Rule is not linked. Missing sheet option "link: true".') : void 0;
2885
- }
2886
-
2887
- return this;
2888
- };
2889
-
2890
- return BaseStyleRule;
2891
- }();
2892
- var StyleRule =
2893
- /*#__PURE__*/
2894
- function (_BaseStyleRule) {
2895
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(StyleRule, _BaseStyleRule);
2896
-
2897
- function StyleRule(key, style, options) {
2898
- var _this;
2899
-
2900
- _this = _BaseStyleRule.call(this, key, style, options) || this;
2901
- _this.selectorText = void 0;
2902
- _this.id = void 0;
2903
- _this.renderable = void 0;
2904
- var selector = options.selector,
2905
- scoped = options.scoped,
2906
- sheet = options.sheet,
2907
- generateId = options.generateId;
2908
-
2909
- if (selector) {
2910
- _this.selectorText = selector;
2911
- } else if (scoped !== false) {
2912
- _this.id = generateId(Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this)), sheet);
2913
- _this.selectorText = "." + escape(_this.id);
2914
- }
2915
-
2916
- return _this;
2917
- }
2918
- /**
2919
- * Set selector string.
2920
- * Attention: use this with caution. Most browsers didn't implement
2921
- * selectorText setter, so this may result in rerendering of entire Style Sheet.
2922
- */
2923
-
2924
-
2925
- var _proto2 = StyleRule.prototype;
2926
-
2927
- /**
2928
- * Apply rule to an element inline.
2929
- */
2930
- _proto2.applyTo = function applyTo(renderable) {
2931
- var renderer = this.renderer;
2932
-
2933
- if (renderer) {
2934
- var json = this.toJSON();
2935
-
2936
- for (var prop in json) {
2937
- renderer.setProperty(renderable, prop, json[prop]);
2938
- }
2939
- }
2940
-
2941
- return this;
2942
- }
2943
- /**
2944
- * Returns JSON representation of the rule.
2945
- * Fallbacks are not supported.
2946
- * Useful for inline styles.
2947
- */
2948
- ;
2949
-
2950
- _proto2.toJSON = function toJSON() {
2951
- var json = {};
2952
-
2953
- for (var prop in this.style) {
2954
- var value = this.style[prop];
2955
- if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);
2956
- }
2957
-
2958
- return json;
2959
- }
2960
- /**
2961
- * Generates a CSS string.
2962
- */
2963
- ;
2964
-
2965
- _proto2.toString = function toString(options) {
2966
- var sheet = this.options.sheet;
2967
- var link = sheet ? sheet.options.link : false;
2968
- var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
2969
- allowEmpty: true
2970
- }) : options;
2971
- return toCss(this.selectorText, this.style, opts);
2972
- };
2973
-
2974
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(StyleRule, [{
2975
- key: "selector",
2976
- set: function set(selector) {
2977
- if (selector === this.selectorText) return;
2978
- this.selectorText = selector;
2979
- var renderer = this.renderer,
2980
- renderable = this.renderable;
2981
- if (!renderable || !renderer) return;
2982
- var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.
2983
-
2984
- if (!hasChanged) {
2985
- renderer.replaceRule(renderable, this);
2986
- }
2987
- }
2988
- /**
2989
- * Get selector string.
2990
- */
2991
- ,
2992
- get: function get() {
2993
- return this.selectorText;
2994
- }
2995
- }]);
2996
-
2997
- return StyleRule;
2998
- }(BaseStyleRule);
2999
- var pluginStyleRule = {
3000
- onCreateRule: function onCreateRule(name, style, options) {
3001
- if (name[0] === '@' || options.parent && options.parent.type === 'keyframes') {
3002
- return null;
3003
- }
3004
-
3005
- return new StyleRule(name, style, options);
3006
- }
3007
- };
3008
-
3009
- var defaultToStringOptions = {
3010
- indent: 1,
3011
- children: true
3012
- };
3013
- var atRegExp = /@([\w-]+)/;
3014
- /**
3015
- * Conditional rule for @media, @supports
3016
- */
3017
-
3018
- var ConditionalRule =
3019
- /*#__PURE__*/
3020
- function () {
3021
- function ConditionalRule(key, styles, options) {
3022
- this.type = 'conditional';
3023
- this.at = void 0;
3024
- this.key = void 0;
3025
- this.query = void 0;
3026
- this.rules = void 0;
3027
- this.options = void 0;
3028
- this.isProcessed = false;
3029
- this.renderable = void 0;
3030
- this.key = key;
3031
- var atMatch = key.match(atRegExp);
3032
- this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.
3033
-
3034
- this.query = options.name || "@" + this.at;
3035
- this.options = options;
3036
- this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3037
- parent: this
3038
- }));
3039
-
3040
- for (var name in styles) {
3041
- this.rules.add(name, styles[name]);
3042
- }
3043
-
3044
- this.rules.process();
3045
- }
3046
- /**
3047
- * Get a rule.
3048
- */
3049
-
3050
-
3051
- var _proto = ConditionalRule.prototype;
3052
-
3053
- _proto.getRule = function getRule(name) {
3054
- return this.rules.get(name);
3055
- }
3056
- /**
3057
- * Get index of a rule.
3058
- */
3059
- ;
3060
-
3061
- _proto.indexOf = function indexOf(rule) {
3062
- return this.rules.indexOf(rule);
3063
- }
3064
- /**
3065
- * Create and register rule, run plugins.
3066
- */
3067
- ;
3068
-
3069
- _proto.addRule = function addRule(name, style, options) {
3070
- var rule = this.rules.add(name, style, options);
3071
- if (!rule) return null;
3072
- this.options.jss.plugins.onProcessRule(rule);
3073
- return rule;
3074
- }
3075
- /**
3076
- * Generates a CSS string.
3077
- */
3078
- ;
3079
-
3080
- _proto.toString = function toString(options) {
3081
- if (options === void 0) {
3082
- options = defaultToStringOptions;
3083
- }
3084
-
3085
- if (options.indent == null) options.indent = defaultToStringOptions.indent;
3086
- if (options.children == null) options.children = defaultToStringOptions.children;
3087
-
3088
- if (options.children === false) {
3089
- return this.query + " {}";
3090
- }
3091
-
3092
- var children = this.rules.toString(options);
3093
- return children ? this.query + " {\n" + children + "\n}" : '';
3094
- };
3095
-
3096
- return ConditionalRule;
3097
- }();
3098
- var keyRegExp = /@media|@supports\s+/;
3099
- var pluginConditionalRule = {
3100
- onCreateRule: function onCreateRule(key, styles, options) {
3101
- return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
3102
- }
3103
- };
3104
-
3105
- var defaultToStringOptions$1 = {
3106
- indent: 1,
3107
- children: true
3108
- };
3109
- var nameRegExp = /@keyframes\s+([\w-]+)/;
3110
- /**
3111
- * Rule for @keyframes
3112
- */
3113
-
3114
- var KeyframesRule =
3115
- /*#__PURE__*/
3116
- function () {
3117
- function KeyframesRule(key, frames, options) {
3118
- this.type = 'keyframes';
3119
- this.at = '@keyframes';
3120
- this.key = void 0;
3121
- this.name = void 0;
3122
- this.id = void 0;
3123
- this.rules = void 0;
3124
- this.options = void 0;
3125
- this.isProcessed = false;
3126
- this.renderable = void 0;
3127
- var nameMatch = key.match(nameRegExp);
3128
-
3129
- if (nameMatch && nameMatch[1]) {
3130
- this.name = nameMatch[1];
3131
- } else {
3132
- this.name = 'noname';
3133
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Bad keyframes name " + key) : void 0;
3134
- }
3135
-
3136
- this.key = this.type + "-" + this.name;
3137
- this.options = options;
3138
- var scoped = options.scoped,
3139
- sheet = options.sheet,
3140
- generateId = options.generateId;
3141
- this.id = scoped === false ? this.name : escape(generateId(this, sheet));
3142
- this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3143
- parent: this
3144
- }));
3145
-
3146
- for (var name in frames) {
3147
- this.rules.add(name, frames[name], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3148
- parent: this
3149
- }));
3150
- }
3151
-
3152
- this.rules.process();
3153
- }
3154
- /**
3155
- * Generates a CSS string.
3156
- */
3157
-
3158
-
3159
- var _proto = KeyframesRule.prototype;
3160
-
3161
- _proto.toString = function toString(options) {
3162
- if (options === void 0) {
3163
- options = defaultToStringOptions$1;
3164
- }
3165
-
3166
- if (options.indent == null) options.indent = defaultToStringOptions$1.indent;
3167
- if (options.children == null) options.children = defaultToStringOptions$1.children;
3168
-
3169
- if (options.children === false) {
3170
- return this.at + " " + this.id + " {}";
3171
- }
3172
-
3173
- var children = this.rules.toString(options);
3174
- if (children) children = "\n" + children + "\n";
3175
- return this.at + " " + this.id + " {" + children + "}";
3176
- };
3177
-
3178
- return KeyframesRule;
3179
- }();
3180
- var keyRegExp$1 = /@keyframes\s+/;
3181
- var refRegExp = /\$([\w-]+)/g;
3182
-
3183
- var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {
3184
- if (typeof val === 'string') {
3185
- return val.replace(refRegExp, function (match, name) {
3186
- if (name in keyframes) {
3187
- return keyframes[name];
3188
- }
3189
-
3190
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Referenced keyframes rule \"" + name + "\" is not defined.") : void 0;
3191
- return match;
3192
- });
3193
- }
3194
-
3195
- return val;
3196
- };
3197
- /**
3198
- * Replace the reference for a animation name.
3199
- */
3200
-
3201
-
3202
- var replaceRef = function replaceRef(style, prop, keyframes) {
3203
- var value = style[prop];
3204
- var refKeyframe = findReferencedKeyframe(value, keyframes);
3205
-
3206
- if (refKeyframe !== value) {
3207
- style[prop] = refKeyframe;
3208
- }
3209
- };
3210
-
3211
- var plugin = {
3212
- onCreateRule: function onCreateRule(key, frames, options) {
3213
- return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;
3214
- },
3215
- // Animation name ref replacer.
3216
- onProcessStyle: function onProcessStyle(style, rule, sheet) {
3217
- if (rule.type !== 'style' || !sheet) return style;
3218
- if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);
3219
- if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);
3220
- return style;
3221
- },
3222
- onChangeValue: function onChangeValue(val, prop, rule) {
3223
- var sheet = rule.options.sheet;
3224
-
3225
- if (!sheet) {
3226
- return val;
3227
- }
3228
-
3229
- switch (prop) {
3230
- case 'animation':
3231
- return findReferencedKeyframe(val, sheet.keyframes);
3232
-
3233
- case 'animation-name':
3234
- return findReferencedKeyframe(val, sheet.keyframes);
3235
-
3236
- default:
3237
- return val;
3238
- }
3239
- }
3240
- };
3241
-
3242
- var KeyframeRule =
3243
- /*#__PURE__*/
3244
- function (_BaseStyleRule) {
3245
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(KeyframeRule, _BaseStyleRule);
3246
-
3247
- function KeyframeRule() {
3248
- var _this;
3249
-
3250
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3251
- args[_key] = arguments[_key];
3252
- }
3253
-
3254
- _this = _BaseStyleRule.call.apply(_BaseStyleRule, [this].concat(args)) || this;
3255
- _this.renderable = void 0;
3256
- return _this;
3257
- }
3258
-
3259
- var _proto = KeyframeRule.prototype;
3260
-
3261
- /**
3262
- * Generates a CSS string.
3263
- */
3264
- _proto.toString = function toString(options) {
3265
- var sheet = this.options.sheet;
3266
- var link = sheet ? sheet.options.link : false;
3267
- var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3268
- allowEmpty: true
3269
- }) : options;
3270
- return toCss(this.key, this.style, opts);
3271
- };
3272
-
3273
- return KeyframeRule;
3274
- }(BaseStyleRule);
3275
- var pluginKeyframeRule = {
3276
- onCreateRule: function onCreateRule(key, style, options) {
3277
- if (options.parent && options.parent.type === 'keyframes') {
3278
- return new KeyframeRule(key, style, options);
3279
- }
3280
-
3281
- return null;
3282
- }
3283
- };
3284
-
3285
- var FontFaceRule =
3286
- /*#__PURE__*/
3287
- function () {
3288
- function FontFaceRule(key, style, options) {
3289
- this.type = 'font-face';
3290
- this.at = '@font-face';
3291
- this.key = void 0;
3292
- this.style = void 0;
3293
- this.options = void 0;
3294
- this.isProcessed = false;
3295
- this.renderable = void 0;
3296
- this.key = key;
3297
- this.style = style;
3298
- this.options = options;
3299
- }
3300
- /**
3301
- * Generates a CSS string.
3302
- */
3303
-
3304
-
3305
- var _proto = FontFaceRule.prototype;
3306
-
3307
- _proto.toString = function toString(options) {
3308
- if (Array.isArray(this.style)) {
3309
- var str = '';
3310
-
3311
- for (var index = 0; index < this.style.length; index++) {
3312
- str += toCss(this.at, this.style[index]);
3313
- if (this.style[index + 1]) str += '\n';
3314
- }
3315
-
3316
- return str;
3317
- }
3318
-
3319
- return toCss(this.at, this.style, options);
3320
- };
3321
-
3322
- return FontFaceRule;
3323
- }();
3324
- var keyRegExp$2 = /@font-face/;
3325
- var pluginFontFaceRule = {
3326
- onCreateRule: function onCreateRule(key, style, options) {
3327
- return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;
3328
- }
3329
- };
3330
-
3331
- var ViewportRule =
3332
- /*#__PURE__*/
3333
- function () {
3334
- function ViewportRule(key, style, options) {
3335
- this.type = 'viewport';
3336
- this.at = '@viewport';
3337
- this.key = void 0;
3338
- this.style = void 0;
3339
- this.options = void 0;
3340
- this.isProcessed = false;
3341
- this.renderable = void 0;
3342
- this.key = key;
3343
- this.style = style;
3344
- this.options = options;
3345
- }
3346
- /**
3347
- * Generates a CSS string.
3348
- */
3349
-
3350
-
3351
- var _proto = ViewportRule.prototype;
3352
-
3353
- _proto.toString = function toString(options) {
3354
- return toCss(this.key, this.style, options);
3355
- };
3356
-
3357
- return ViewportRule;
3358
- }();
3359
- var pluginViewportRule = {
3360
- onCreateRule: function onCreateRule(key, style, options) {
3361
- return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;
3362
- }
3363
- };
3364
-
3365
- var SimpleRule =
3366
- /*#__PURE__*/
3367
- function () {
3368
- function SimpleRule(key, value, options) {
3369
- this.type = 'simple';
3370
- this.key = void 0;
3371
- this.value = void 0;
3372
- this.options = void 0;
3373
- this.isProcessed = false;
3374
- this.renderable = void 0;
3375
- this.key = key;
3376
- this.value = value;
3377
- this.options = options;
3378
- }
3379
- /**
3380
- * Generates a CSS string.
3381
- */
3382
- // eslint-disable-next-line no-unused-vars
3383
-
3384
-
3385
- var _proto = SimpleRule.prototype;
3386
-
3387
- _proto.toString = function toString(options) {
3388
- if (Array.isArray(this.value)) {
3389
- var str = '';
3390
-
3391
- for (var index = 0; index < this.value.length; index++) {
3392
- str += this.key + " " + this.value[index] + ";";
3393
- if (this.value[index + 1]) str += '\n';
3394
- }
3395
-
3396
- return str;
3397
- }
3398
-
3399
- return this.key + " " + this.value + ";";
3400
- };
3401
-
3402
- return SimpleRule;
3403
- }();
3404
- var keysMap = {
3405
- '@charset': true,
3406
- '@import': true,
3407
- '@namespace': true
3408
- };
3409
- var pluginSimpleRule = {
3410
- onCreateRule: function onCreateRule(key, value, options) {
3411
- return key in keysMap ? new SimpleRule(key, value, options) : null;
3412
- }
3413
- };
3414
-
3415
- var plugins = [pluginStyleRule, pluginConditionalRule, plugin, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
3416
-
3417
- var defaultUpdateOptions = {
3418
- process: true
3419
- };
3420
- var forceUpdateOptions = {
3421
- force: true,
3422
- process: true
3423
- /**
3424
- * Contains rules objects and allows adding/removing etc.
3425
- * Is used for e.g. by `StyleSheet` or `ConditionalRule`.
3426
- */
3427
-
3428
- };
3429
-
3430
- var RuleList =
3431
- /*#__PURE__*/
3432
- function () {
3433
- // Rules registry for access by .get() method.
3434
- // It contains the same rule registered by name and by selector.
3435
- // Original styles object.
3436
- // Used to ensure correct rules order.
3437
- function RuleList(options) {
3438
- this.map = {};
3439
- this.raw = {};
3440
- this.index = [];
3441
- this.counter = 0;
3442
- this.options = void 0;
3443
- this.classes = void 0;
3444
- this.keyframes = void 0;
3445
- this.options = options;
3446
- this.classes = options.classes;
3447
- this.keyframes = options.keyframes;
3448
- }
3449
- /**
3450
- * Create and register rule.
3451
- *
3452
- * Will not render after Style Sheet was rendered the first time.
3453
- */
3454
-
3455
-
3456
- var _proto = RuleList.prototype;
3457
-
3458
- _proto.add = function add(name, decl, ruleOptions) {
3459
- var _this$options = this.options,
3460
- parent = _this$options.parent,
3461
- sheet = _this$options.sheet,
3462
- jss = _this$options.jss,
3463
- Renderer = _this$options.Renderer,
3464
- generateId = _this$options.generateId,
3465
- scoped = _this$options.scoped;
3466
-
3467
- var options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
3468
- classes: this.classes,
3469
- parent: parent,
3470
- sheet: sheet,
3471
- jss: jss,
3472
- Renderer: Renderer,
3473
- generateId: generateId,
3474
- scoped: scoped,
3475
- name: name,
3476
- keyframes: this.keyframes,
3477
- selector: undefined
3478
- }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but
3479
- // `sheet.addRule()` opens the door for any duplicate rule name. When this happens
3480
- // we need to make the key unique within this RuleList instance scope.
3481
-
3482
-
3483
- var key = name;
3484
-
3485
- if (name in this.raw) {
3486
- key = name + "-d" + this.counter++;
3487
- } // We need to save the original decl before creating the rule
3488
- // because cache plugin needs to use it as a key to return a cached rule.
3489
-
3490
-
3491
- this.raw[key] = decl;
3492
-
3493
- if (key in this.classes) {
3494
- // E.g. rules inside of @media container
3495
- options.selector = "." + escape(this.classes[key]);
3496
- }
3497
-
3498
- var rule = createRule(key, decl, options);
3499
- if (!rule) return null;
3500
- this.register(rule);
3501
- var index = options.index === undefined ? this.index.length : options.index;
3502
- this.index.splice(index, 0, rule);
3503
- return rule;
3504
- }
3505
- /**
3506
- * Get a rule.
3507
- */
3508
- ;
3509
-
3510
- _proto.get = function get(name) {
3511
- return this.map[name];
3512
- }
3513
- /**
3514
- * Delete a rule.
3515
- */
3516
- ;
3517
-
3518
- _proto.remove = function remove(rule) {
3519
- this.unregister(rule);
3520
- delete this.raw[rule.key];
3521
- this.index.splice(this.index.indexOf(rule), 1);
3522
- }
3523
- /**
3524
- * Get index of a rule.
3525
- */
3526
- ;
3527
-
3528
- _proto.indexOf = function indexOf(rule) {
3529
- return this.index.indexOf(rule);
3530
- }
3531
- /**
3532
- * Run `onProcessRule()` plugins on every rule.
3533
- */
3534
- ;
3535
-
3536
- _proto.process = function process() {
3537
- var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop
3538
- // we end up with very hard-to-track-down side effects.
3539
-
3540
- this.index.slice(0).forEach(plugins.onProcessRule, plugins);
3541
- }
3542
- /**
3543
- * Register a rule in `.map`, `.classes` and `.keyframes` maps.
3544
- */
3545
- ;
3546
-
3547
- _proto.register = function register(rule) {
3548
- this.map[rule.key] = rule;
3549
-
3550
- if (rule instanceof StyleRule) {
3551
- this.map[rule.selector] = rule;
3552
- if (rule.id) this.classes[rule.key] = rule.id;
3553
- } else if (rule instanceof KeyframesRule && this.keyframes) {
3554
- this.keyframes[rule.name] = rule.id;
3555
- }
3556
- }
3557
- /**
3558
- * Unregister a rule.
3559
- */
3560
- ;
3561
-
3562
- _proto.unregister = function unregister(rule) {
3563
- delete this.map[rule.key];
3564
-
3565
- if (rule instanceof StyleRule) {
3566
- delete this.map[rule.selector];
3567
- delete this.classes[rule.key];
3568
- } else if (rule instanceof KeyframesRule) {
3569
- delete this.keyframes[rule.name];
3570
- }
3571
- }
3572
- /**
3573
- * Update the function values with a new data.
3574
- */
3575
- ;
3576
-
3577
- _proto.update = function update() {
3578
- var name;
3579
- var data;
3580
- var options;
3581
-
3582
- if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {
3583
- name = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
3584
-
3585
- data = arguments.length <= 1 ? undefined : arguments[1]; // $FlowFixMe[invalid-tuple-index]
3586
-
3587
- options = arguments.length <= 2 ? undefined : arguments[2];
3588
- } else {
3589
- data = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
3590
-
3591
- options = arguments.length <= 1 ? undefined : arguments[1];
3592
- name = null;
3593
- }
3594
-
3595
- if (name) {
3596
- this.updateOne(this.map[name], data, options);
3597
- } else {
3598
- for (var index = 0; index < this.index.length; index++) {
3599
- this.updateOne(this.index[index], data, options);
3600
- }
3601
- }
3602
- }
3603
- /**
3604
- * Execute plugins, update rule props.
3605
- */
3606
- ;
3607
-
3608
- _proto.updateOne = function updateOne(rule, data, options) {
3609
- if (options === void 0) {
3610
- options = defaultUpdateOptions;
3611
- }
3612
-
3613
- var _this$options2 = this.options,
3614
- plugins = _this$options2.jss.plugins,
3615
- sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.
3616
-
3617
- if (rule.rules instanceof RuleList) {
3618
- rule.rules.update(data, options);
3619
- return;
3620
- }
3621
-
3622
- var styleRule = rule;
3623
- var style = styleRule.style;
3624
- plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.
3625
-
3626
- if (options.process && style && style !== styleRule.style) {
3627
- // We need to run the plugins in case new `style` relies on syntax plugins.
3628
- plugins.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.
3629
-
3630
- for (var prop in styleRule.style) {
3631
- var nextValue = styleRule.style[prop];
3632
- var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
3633
- // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
3634
-
3635
- if (nextValue !== prevValue) {
3636
- styleRule.prop(prop, nextValue, forceUpdateOptions);
3637
- }
3638
- } // Remove props.
3639
-
3640
-
3641
- for (var _prop in style) {
3642
- var _nextValue = styleRule.style[_prop];
3643
- var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
3644
- // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
3645
-
3646
- if (_nextValue == null && _nextValue !== _prevValue) {
3647
- styleRule.prop(_prop, null, forceUpdateOptions);
3648
- }
3649
- }
3650
- }
3651
- }
3652
- /**
3653
- * Convert rules to a CSS string.
3654
- */
3655
- ;
3656
-
3657
- _proto.toString = function toString(options) {
3658
- var str = '';
3659
- var sheet = this.options.sheet;
3660
- var link = sheet ? sheet.options.link : false;
3661
-
3662
- for (var index = 0; index < this.index.length; index++) {
3663
- var rule = this.index[index];
3664
- var css = rule.toString(options); // No need to render an empty rule.
3665
-
3666
- if (!css && !link) continue;
3667
- if (str) str += '\n';
3668
- str += css;
3669
- }
3670
-
3671
- return str;
3672
- };
3673
-
3674
- return RuleList;
3675
- }();
3676
-
3677
- var StyleSheet =
3678
- /*#__PURE__*/
3679
- function () {
3680
- function StyleSheet(styles, options) {
3681
- this.options = void 0;
3682
- this.deployed = void 0;
3683
- this.attached = void 0;
3684
- this.rules = void 0;
3685
- this.renderer = void 0;
3686
- this.classes = void 0;
3687
- this.keyframes = void 0;
3688
- this.queue = void 0;
3689
- this.attached = false;
3690
- this.deployed = false;
3691
- this.classes = {};
3692
- this.keyframes = {};
3693
- this.options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3694
- sheet: this,
3695
- parent: this,
3696
- classes: this.classes,
3697
- keyframes: this.keyframes
3698
- });
3699
-
3700
- if (options.Renderer) {
3701
- this.renderer = new options.Renderer(this);
3702
- }
3703
-
3704
- this.rules = new RuleList(this.options);
3705
-
3706
- for (var name in styles) {
3707
- this.rules.add(name, styles[name]);
3708
- }
3709
-
3710
- this.rules.process();
3711
- }
3712
- /**
3713
- * Attach renderable to the render tree.
3714
- */
3715
-
3716
-
3717
- var _proto = StyleSheet.prototype;
3718
-
3719
- _proto.attach = function attach() {
3720
- if (this.attached) return this;
3721
- if (this.renderer) this.renderer.attach();
3722
- this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.
3723
-
3724
- if (!this.deployed) this.deploy();
3725
- return this;
3726
- }
3727
- /**
3728
- * Remove renderable from render tree.
3729
- */
3730
- ;
3731
-
3732
- _proto.detach = function detach() {
3733
- if (!this.attached) return this;
3734
- if (this.renderer) this.renderer.detach();
3735
- this.attached = false;
3736
- return this;
3737
- }
3738
- /**
3739
- * Add a rule to the current stylesheet.
3740
- * Will insert a rule also after the stylesheet has been rendered first time.
3741
- */
3742
- ;
3743
-
3744
- _proto.addRule = function addRule(name, decl, options) {
3745
- var queue = this.queue; // Plugins can create rules.
3746
- // In order to preserve the right order, we need to queue all `.addRule` calls,
3747
- // which happen after the first `rules.add()` call.
3748
-
3749
- if (this.attached && !queue) this.queue = [];
3750
- var rule = this.rules.add(name, decl, options);
3751
- if (!rule) return null;
3752
- this.options.jss.plugins.onProcessRule(rule);
3753
-
3754
- if (this.attached) {
3755
- if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.
3756
- // It will be inserted all together when .attach is called.
3757
-
3758
- if (queue) queue.push(rule);else {
3759
- this.insertRule(rule);
3760
-
3761
- if (this.queue) {
3762
- this.queue.forEach(this.insertRule, this);
3763
- this.queue = undefined;
3764
- }
3765
- }
3766
- return rule;
3767
- } // We can't add rules to a detached style node.
3768
- // We will redeploy the sheet once user will attach it.
3769
-
3770
-
3771
- this.deployed = false;
3772
- return rule;
3773
- }
3774
- /**
3775
- * Insert rule into the StyleSheet
3776
- */
3777
- ;
3778
-
3779
- _proto.insertRule = function insertRule(rule) {
3780
- if (this.renderer) {
3781
- this.renderer.insertRule(rule);
3782
- }
3783
- }
3784
- /**
3785
- * Create and add rules.
3786
- * Will render also after Style Sheet was rendered the first time.
3787
- */
3788
- ;
3789
-
3790
- _proto.addRules = function addRules(styles, options) {
3791
- var added = [];
3792
-
3793
- for (var name in styles) {
3794
- var rule = this.addRule(name, styles[name], options);
3795
- if (rule) added.push(rule);
3796
- }
3797
-
3798
- return added;
3799
- }
3800
- /**
3801
- * Get a rule by name.
3802
- */
3803
- ;
3804
-
3805
- _proto.getRule = function getRule(name) {
3806
- return this.rules.get(name);
3807
- }
3808
- /**
3809
- * Delete a rule by name.
3810
- * Returns `true`: if rule has been deleted from the DOM.
3811
- */
3812
- ;
3813
-
3814
- _proto.deleteRule = function deleteRule(name) {
3815
- var rule = typeof name === 'object' ? name : this.rules.get(name);
3816
-
3817
- if (!rule || // Style sheet was created without link: true and attached, in this case we
3818
- // won't be able to remove the CSS rule from the DOM.
3819
- this.attached && !rule.renderable) {
3820
- return false;
3821
- }
3822
-
3823
- this.rules.remove(rule);
3824
-
3825
- if (this.attached && rule.renderable && this.renderer) {
3826
- return this.renderer.deleteRule(rule.renderable);
3827
- }
3828
-
3829
- return true;
3830
- }
3831
- /**
3832
- * Get index of a rule.
3833
- */
3834
- ;
3835
-
3836
- _proto.indexOf = function indexOf(rule) {
3837
- return this.rules.indexOf(rule);
3838
- }
3839
- /**
3840
- * Deploy pure CSS string to a renderable.
3841
- */
3842
- ;
3843
-
3844
- _proto.deploy = function deploy() {
3845
- if (this.renderer) this.renderer.deploy();
3846
- this.deployed = true;
3847
- return this;
3848
- }
3849
- /**
3850
- * Update the function values with a new data.
3851
- */
3852
- ;
3853
-
3854
- _proto.update = function update() {
3855
- var _this$rules;
3856
-
3857
- (_this$rules = this.rules).update.apply(_this$rules, arguments);
3858
-
3859
- return this;
3860
- }
3861
- /**
3862
- * Updates a single rule.
3863
- */
3864
- ;
3865
-
3866
- _proto.updateOne = function updateOne(rule, data, options) {
3867
- this.rules.updateOne(rule, data, options);
3868
- return this;
3869
- }
3870
- /**
3871
- * Convert rules to a CSS string.
3872
- */
3873
- ;
3874
-
3875
- _proto.toString = function toString(options) {
3876
- return this.rules.toString(options);
3877
- };
3878
-
3879
- return StyleSheet;
3880
- }();
3881
-
3882
- var PluginsRegistry =
3883
- /*#__PURE__*/
3884
- function () {
3885
- function PluginsRegistry() {
3886
- this.plugins = {
3887
- internal: [],
3888
- external: []
3889
- };
3890
- this.registry = void 0;
3891
- }
3892
-
3893
- var _proto = PluginsRegistry.prototype;
3894
-
3895
- /**
3896
- * Call `onCreateRule` hooks and return an object if returned by a hook.
3897
- */
3898
- _proto.onCreateRule = function onCreateRule(name, decl, options) {
3899
- for (var i = 0; i < this.registry.onCreateRule.length; i++) {
3900
- var rule = this.registry.onCreateRule[i](name, decl, options);
3901
- if (rule) return rule;
3902
- }
3903
-
3904
- return null;
3905
- }
3906
- /**
3907
- * Call `onProcessRule` hooks.
3908
- */
3909
- ;
3910
-
3911
- _proto.onProcessRule = function onProcessRule(rule) {
3912
- if (rule.isProcessed) return;
3913
- var sheet = rule.options.sheet;
3914
-
3915
- for (var i = 0; i < this.registry.onProcessRule.length; i++) {
3916
- this.registry.onProcessRule[i](rule, sheet);
3917
- }
3918
-
3919
- if (rule.style) this.onProcessStyle(rule.style, rule, sheet);
3920
- rule.isProcessed = true;
3921
- }
3922
- /**
3923
- * Call `onProcessStyle` hooks.
3924
- */
3925
- ;
3926
-
3927
- _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {
3928
- for (var i = 0; i < this.registry.onProcessStyle.length; i++) {
3929
- // $FlowFixMe[prop-missing]
3930
- rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);
3931
- }
3932
- }
3933
- /**
3934
- * Call `onProcessSheet` hooks.
3935
- */
3936
- ;
3937
-
3938
- _proto.onProcessSheet = function onProcessSheet(sheet) {
3939
- for (var i = 0; i < this.registry.onProcessSheet.length; i++) {
3940
- this.registry.onProcessSheet[i](sheet);
3941
- }
3942
- }
3943
- /**
3944
- * Call `onUpdate` hooks.
3945
- */
3946
- ;
3947
-
3948
- _proto.onUpdate = function onUpdate(data, rule, sheet, options) {
3949
- for (var i = 0; i < this.registry.onUpdate.length; i++) {
3950
- this.registry.onUpdate[i](data, rule, sheet, options);
3951
- }
3952
- }
3953
- /**
3954
- * Call `onChangeValue` hooks.
3955
- */
3956
- ;
3957
-
3958
- _proto.onChangeValue = function onChangeValue(value, prop, rule) {
3959
- var processedValue = value;
3960
-
3961
- for (var i = 0; i < this.registry.onChangeValue.length; i++) {
3962
- processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);
3963
- }
3964
-
3965
- return processedValue;
3966
- }
3967
- /**
3968
- * Register a plugin.
3969
- */
3970
- ;
3971
-
3972
- _proto.use = function use(newPlugin, options) {
3973
- if (options === void 0) {
3974
- options = {
3975
- queue: 'external'
3976
- };
3977
- }
3978
-
3979
- var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.
3980
-
3981
- if (plugins.indexOf(newPlugin) !== -1) {
3982
- return;
3983
- }
3984
-
3985
- plugins.push(newPlugin);
3986
- this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {
3987
- for (var name in plugin) {
3988
- if (name in registry) {
3989
- registry[name].push(plugin[name]);
3990
- } else {
3991
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown hook \"" + name + "\".") : void 0;
3992
- }
3993
- }
3994
-
3995
- return registry;
3996
- }, {
3997
- onCreateRule: [],
3998
- onProcessRule: [],
3999
- onProcessStyle: [],
4000
- onProcessSheet: [],
4001
- onChangeValue: [],
4002
- onUpdate: []
4003
- });
4004
- };
4005
-
4006
- return PluginsRegistry;
4007
- }();
4008
-
4009
- /**
4010
- * Sheets registry to access them all at one place.
4011
- */
4012
- var SheetsRegistry =
4013
- /*#__PURE__*/
4014
- function () {
4015
- function SheetsRegistry() {
4016
- this.registry = [];
4017
- }
4018
-
4019
- var _proto = SheetsRegistry.prototype;
4020
-
4021
- /**
4022
- * Register a Style Sheet.
4023
- */
4024
- _proto.add = function add(sheet) {
4025
- var registry = this.registry;
4026
- var index = sheet.options.index;
4027
- if (registry.indexOf(sheet) !== -1) return;
4028
-
4029
- if (registry.length === 0 || index >= this.index) {
4030
- registry.push(sheet);
4031
- return;
4032
- } // Find a position.
4033
-
4034
-
4035
- for (var i = 0; i < registry.length; i++) {
4036
- if (registry[i].options.index > index) {
4037
- registry.splice(i, 0, sheet);
4038
- return;
4039
- }
4040
- }
4041
- }
4042
- /**
4043
- * Reset the registry.
4044
- */
4045
- ;
4046
-
4047
- _proto.reset = function reset() {
4048
- this.registry = [];
4049
- }
4050
- /**
4051
- * Remove a Style Sheet.
4052
- */
4053
- ;
4054
-
4055
- _proto.remove = function remove(sheet) {
4056
- var index = this.registry.indexOf(sheet);
4057
- this.registry.splice(index, 1);
4058
- }
4059
- /**
4060
- * Convert all attached sheets to a CSS string.
4061
- */
4062
- ;
4063
-
4064
- _proto.toString = function toString(_temp) {
4065
- var _ref = _temp === void 0 ? {} : _temp,
4066
- attached = _ref.attached,
4067
- options = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["attached"]);
4068
-
4069
- var css = '';
4070
-
4071
- for (var i = 0; i < this.registry.length; i++) {
4072
- var sheet = this.registry[i];
4073
-
4074
- if (attached != null && sheet.attached !== attached) {
4075
- continue;
4076
- }
4077
-
4078
- if (css) css += '\n';
4079
- css += sheet.toString(options);
4080
- }
4081
-
4082
- return css;
4083
- };
4084
-
4085
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsRegistry, [{
4086
- key: "index",
4087
-
4088
- /**
4089
- * Current highest index number.
4090
- */
4091
- get: function get() {
4092
- return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
4093
- }
4094
- }]);
4095
-
4096
- return SheetsRegistry;
4097
- }();
4098
-
4099
- /**
4100
- * This is a global sheets registry. Only DomRenderer will add sheets to it.
4101
- * On the server one should use an own SheetsRegistry instance and add the
4102
- * sheets to it, because you need to make sure to create a new registry for
4103
- * each request in order to not leak sheets across requests.
4104
- */
4105
-
4106
- var registry = new SheetsRegistry();
4107
-
4108
- /* eslint-disable */
4109
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
4110
- var globalThis = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
4111
-
4112
- var ns = '2f1acc6c3a606b082e5eef5e54414ffb';
4113
- if (globalThis[ns] == null) globalThis[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify
4114
- // the current version with just one short number and use it for classes generation
4115
- // we use a counter. Also it is more accurate, because user can manually reevaluate
4116
- // the module.
4117
-
4118
- var moduleId = globalThis[ns]++;
4119
-
4120
- var maxRules = 1e10;
4121
-
4122
- /**
4123
- * Returns a function which generates unique class names based on counters.
4124
- * When new generator function is created, rule counter is reseted.
4125
- * We need to reset the rule counter for SSR for each request.
4126
- */
4127
- var createGenerateId = function createGenerateId(options) {
4128
- if (options === void 0) {
4129
- options = {};
4130
- }
4131
-
4132
- var ruleCounter = 0;
4133
- return function (rule, sheet) {
4134
- ruleCounter += 1;
4135
-
4136
- if (ruleCounter > maxRules) {
4137
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".") : void 0;
4138
- }
4139
-
4140
- var jssId = '';
4141
- var prefix = '';
4142
-
4143
- if (sheet) {
4144
- if (sheet.options.classNamePrefix) {
4145
- prefix = sheet.options.classNamePrefix;
4146
- }
4147
-
4148
- if (sheet.options.jss.id != null) {
4149
- jssId = String(sheet.options.jss.id);
4150
- }
4151
- }
4152
-
4153
- if (options.minify) {
4154
- // Using "c" because a number can't be the first char in a class name.
4155
- return "" + (prefix || 'c') + moduleId + jssId + ruleCounter;
4156
- }
4157
-
4158
- return prefix + rule.key + "-" + moduleId + (jssId ? "-" + jssId : '') + "-" + ruleCounter;
4159
- };
4160
- };
4161
-
4162
- /**
4163
- * Cache the value from the first time a function is called.
4164
- */
4165
- var memoize = function memoize(fn) {
4166
- var value;
4167
- return function () {
4168
- if (!value) value = fn();
4169
- return value;
4170
- };
4171
- };
4172
-
4173
- /**
4174
- * Get a style property value.
4175
- */
4176
- var getPropertyValue = function getPropertyValue(cssRule, prop) {
4177
- try {
4178
- // Support CSSTOM.
4179
- if (cssRule.attributeStyleMap) {
4180
- return cssRule.attributeStyleMap.get(prop);
4181
- }
4182
-
4183
- return cssRule.style.getPropertyValue(prop);
4184
- } catch (err) {
4185
- // IE may throw if property is unknown.
4186
- return '';
4187
- }
4188
- };
4189
-
4190
- /**
4191
- * Set a style property.
4192
- */
4193
- var setProperty = function setProperty(cssRule, prop, value) {
4194
- try {
4195
- var cssValue = value;
4196
-
4197
- if (Array.isArray(value)) {
4198
- cssValue = toCssValue(value, true);
4199
-
4200
- if (value[value.length - 1] === '!important') {
4201
- cssRule.style.setProperty(prop, cssValue, 'important');
4202
- return true;
4203
- }
4204
- } // Support CSSTOM.
4205
-
4206
-
4207
- if (cssRule.attributeStyleMap) {
4208
- cssRule.attributeStyleMap.set(prop, cssValue);
4209
- } else {
4210
- cssRule.style.setProperty(prop, cssValue);
4211
- }
4212
- } catch (err) {
4213
- // IE may throw if property is unknown.
4214
- return false;
4215
- }
4216
-
4217
- return true;
4218
- };
4219
-
4220
- /**
4221
- * Remove a style property.
4222
- */
4223
- var removeProperty = function removeProperty(cssRule, prop) {
4224
- try {
4225
- // Support CSSTOM.
4226
- if (cssRule.attributeStyleMap) {
4227
- cssRule.attributeStyleMap.delete(prop);
4228
- } else {
4229
- cssRule.style.removeProperty(prop);
4230
- }
4231
- } catch (err) {
4232
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] DOMException \"" + err.message + "\" was thrown. Tried to remove property \"" + prop + "\".") : void 0;
4233
- }
4234
- };
4235
-
4236
- /**
4237
- * Set the selector.
4238
- */
4239
- var setSelector = function setSelector(cssRule, selectorText) {
4240
- cssRule.selectorText = selectorText; // Return false if setter was not successful.
4241
- // Currently works in chrome only.
4242
-
4243
- return cssRule.selectorText === selectorText;
4244
- };
4245
- /**
4246
- * Gets the `head` element upon the first call and caches it.
4247
- * We assume it can't be null.
4248
- */
4249
-
4250
-
4251
- var getHead = memoize(function () {
4252
- return document.querySelector('head');
4253
- });
4254
- /**
4255
- * Find attached sheet with an index higher than the passed one.
4256
- */
4257
-
4258
- function findHigherSheet(registry, options) {
4259
- for (var i = 0; i < registry.length; i++) {
4260
- var sheet = registry[i];
4261
-
4262
- if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {
4263
- return sheet;
4264
- }
4265
- }
4266
-
4267
- return null;
4268
- }
4269
- /**
4270
- * Find attached sheet with the highest index.
4271
- */
4272
-
4273
-
4274
- function findHighestSheet(registry, options) {
4275
- for (var i = registry.length - 1; i >= 0; i--) {
4276
- var sheet = registry[i];
4277
-
4278
- if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {
4279
- return sheet;
4280
- }
4281
- }
4282
-
4283
- return null;
4284
- }
4285
- /**
4286
- * Find a comment with "jss" inside.
4287
- */
4288
-
4289
-
4290
- function findCommentNode(text) {
4291
- var head = getHead();
4292
-
4293
- for (var i = 0; i < head.childNodes.length; i++) {
4294
- var node = head.childNodes[i];
4295
-
4296
- if (node.nodeType === 8 && node.nodeValue.trim() === text) {
4297
- return node;
4298
- }
4299
- }
4300
-
4301
- return null;
4302
- }
4303
-
4304
- /**
4305
- * Find a node before which we can insert the sheet.
4306
- */
4307
- function findPrevNode(options) {
4308
- var registry$1 = registry.registry;
4309
-
4310
- if (registry$1.length > 0) {
4311
- // Try to insert before the next higher sheet.
4312
- var sheet = findHigherSheet(registry$1, options);
4313
-
4314
- if (sheet && sheet.renderer) {
4315
- return {
4316
- parent: sheet.renderer.element.parentNode,
4317
- node: sheet.renderer.element
4318
- };
4319
- } // Otherwise insert after the last attached.
4320
-
4321
-
4322
- sheet = findHighestSheet(registry$1, options);
4323
-
4324
- if (sheet && sheet.renderer) {
4325
- return {
4326
- parent: sheet.renderer.element.parentNode,
4327
- node: sheet.renderer.element.nextSibling
4328
- };
4329
- }
4330
- } // Try to find a comment placeholder if registry is empty.
4331
-
4332
-
4333
- var insertionPoint = options.insertionPoint;
4334
-
4335
- if (insertionPoint && typeof insertionPoint === 'string') {
4336
- var comment = findCommentNode(insertionPoint);
4337
-
4338
- if (comment) {
4339
- return {
4340
- parent: comment.parentNode,
4341
- node: comment.nextSibling
4342
- };
4343
- } // If user specifies an insertion point and it can't be found in the document -
4344
- // bad specificity issues may appear.
4345
-
4346
-
4347
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Insertion point \"" + insertionPoint + "\" not found.") : void 0;
4348
- }
4349
-
4350
- return false;
4351
- }
4352
- /**
4353
- * Insert style element into the DOM.
4354
- */
4355
-
4356
-
4357
- function insertStyle(style, options) {
4358
- var insertionPoint = options.insertionPoint;
4359
- var nextNode = findPrevNode(options);
4360
-
4361
- if (nextNode !== false && nextNode.parent) {
4362
- nextNode.parent.insertBefore(style, nextNode.node);
4363
- return;
4364
- } // Works with iframes and any node types.
4365
-
4366
-
4367
- if (insertionPoint && typeof insertionPoint.nodeType === 'number') {
4368
- // https://stackoverflow.com/questions/41328728/force-casting-in-flow
4369
- var insertionPointElement = insertionPoint;
4370
- var parentNode = insertionPointElement.parentNode;
4371
- if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, '[JSS] Insertion point is not in the DOM.') : void 0;
4372
- return;
4373
- }
4374
-
4375
- getHead().appendChild(style);
4376
- }
4377
- /**
4378
- * Read jss nonce setting from the page if the user has set it.
4379
- */
4380
-
4381
-
4382
- var getNonce = memoize(function () {
4383
- var node = document.querySelector('meta[property="csp-nonce"]');
4384
- return node ? node.getAttribute('content') : null;
4385
- });
4386
-
4387
- var _insertRule = function insertRule(container, rule, index) {
4388
- try {
4389
- if ('insertRule' in container) {
4390
- var c = container;
4391
- c.insertRule(rule, index);
4392
- } // Keyframes rule.
4393
- else if ('appendRule' in container) {
4394
- var _c = container;
4395
-
4396
- _c.appendRule(rule);
4397
- }
4398
- } catch (err) {
4399
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] " + err.message) : void 0;
4400
- return false;
4401
- }
4402
-
4403
- return container.cssRules[index];
4404
- };
4405
-
4406
- var getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) {
4407
- var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong
4408
-
4409
- if (index === undefined || index > maxIndex) {
4410
- // eslint-disable-next-line no-param-reassign
4411
- return maxIndex;
4412
- }
4413
-
4414
- return index;
4415
- };
4416
-
4417
- var createStyle = function createStyle() {
4418
- var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we
4419
- // insert rules after we insert the style tag.
4420
- // It seems to kick-off the source order specificity algorithm.
4421
-
4422
- el.textContent = '\n';
4423
- return el;
4424
- };
4425
-
4426
- var DomRenderer =
4427
- /*#__PURE__*/
4428
- function () {
4429
- // HTMLStyleElement needs fixing https://github.com/facebook/flow/issues/2696
4430
- // Will be empty if link: true option is not set, because
4431
- // it is only for use together with insertRule API.
4432
- function DomRenderer(sheet) {
4433
- this.getPropertyValue = getPropertyValue;
4434
- this.setProperty = setProperty;
4435
- this.removeProperty = removeProperty;
4436
- this.setSelector = setSelector;
4437
- this.element = void 0;
4438
- this.sheet = void 0;
4439
- this.hasInsertedRules = false;
4440
- this.cssRules = [];
4441
- // There is no sheet when the renderer is used from a standalone StyleRule.
4442
- if (sheet) registry.add(sheet);
4443
- this.sheet = sheet;
4444
-
4445
- var _ref = this.sheet ? this.sheet.options : {},
4446
- media = _ref.media,
4447
- meta = _ref.meta,
4448
- element = _ref.element;
4449
-
4450
- this.element = element || createStyle();
4451
- this.element.setAttribute('data-jss', '');
4452
- if (media) this.element.setAttribute('media', media);
4453
- if (meta) this.element.setAttribute('data-meta', meta);
4454
- var nonce = getNonce();
4455
- if (nonce) this.element.setAttribute('nonce', nonce);
4456
- }
4457
- /**
4458
- * Insert style element into render tree.
4459
- */
4460
-
4461
-
4462
- var _proto = DomRenderer.prototype;
4463
-
4464
- _proto.attach = function attach() {
4465
- // In the case the element node is external and it is already in the DOM.
4466
- if (this.element.parentNode || !this.sheet) return;
4467
- insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`
4468
- // most browsers create a new CSSStyleSheet, except of all IEs.
4469
-
4470
- var deployed = Boolean(this.sheet && this.sheet.deployed);
4471
-
4472
- if (this.hasInsertedRules && deployed) {
4473
- this.hasInsertedRules = false;
4474
- this.deploy();
4475
- }
4476
- }
4477
- /**
4478
- * Remove style element from render tree.
4479
- */
4480
- ;
4481
-
4482
- _proto.detach = function detach() {
4483
- if (!this.sheet) return;
4484
- var parentNode = this.element.parentNode;
4485
- if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed.
4486
- // Though IE will keep them and we need a consistent behavior.
4487
-
4488
- if (this.sheet.options.link) {
4489
- this.cssRules = [];
4490
- this.element.textContent = '\n';
4491
- }
4492
- }
4493
- /**
4494
- * Inject CSS string into element.
4495
- */
4496
- ;
4497
-
4498
- _proto.deploy = function deploy() {
4499
- var sheet = this.sheet;
4500
- if (!sheet) return;
4501
-
4502
- if (sheet.options.link) {
4503
- this.insertRules(sheet.rules);
4504
- return;
4505
- }
4506
-
4507
- this.element.textContent = "\n" + sheet.toString() + "\n";
4508
- }
4509
- /**
4510
- * Insert RuleList into an element.
4511
- */
4512
- ;
4513
-
4514
- _proto.insertRules = function insertRules(rules, nativeParent) {
4515
- for (var i = 0; i < rules.index.length; i++) {
4516
- this.insertRule(rules.index[i], i, nativeParent);
4517
- }
4518
- }
4519
- /**
4520
- * Insert a rule into element.
4521
- */
4522
- ;
4523
-
4524
- _proto.insertRule = function insertRule(rule, index, nativeParent) {
4525
- if (nativeParent === void 0) {
4526
- nativeParent = this.element.sheet;
4527
- }
4528
-
4529
- if (rule.rules) {
4530
- var parent = rule;
4531
- var latestNativeParent = nativeParent;
4532
-
4533
- if (rule.type === 'conditional' || rule.type === 'keyframes') {
4534
- var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first.
4535
-
4536
-
4537
- latestNativeParent = _insertRule(nativeParent, parent.toString({
4538
- children: false
4539
- }), _insertionIndex);
4540
-
4541
- if (latestNativeParent === false) {
4542
- return false;
4543
- }
4544
-
4545
- this.refCssRule(rule, _insertionIndex, latestNativeParent);
4546
- }
4547
-
4548
- this.insertRules(parent.rules, latestNativeParent);
4549
- return latestNativeParent;
4550
- }
4551
-
4552
- var ruleStr = rule.toString();
4553
- if (!ruleStr) return false;
4554
- var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);
4555
-
4556
- var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);
4557
-
4558
- if (nativeRule === false) {
4559
- return false;
4560
- }
4561
-
4562
- this.hasInsertedRules = true;
4563
- this.refCssRule(rule, insertionIndex, nativeRule);
4564
- return nativeRule;
4565
- };
4566
-
4567
- _proto.refCssRule = function refCssRule(rule, index, cssRule) {
4568
- rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules
4569
- // like rules inside media queries or keyframes
4570
-
4571
- if (rule.options.parent instanceof StyleSheet) {
4572
- this.cssRules[index] = cssRule;
4573
- }
4574
- }
4575
- /**
4576
- * Delete a rule.
4577
- */
4578
- ;
4579
-
4580
- _proto.deleteRule = function deleteRule(cssRule) {
4581
- var sheet = this.element.sheet;
4582
- var index = this.indexOf(cssRule);
4583
- if (index === -1) return false;
4584
- sheet.deleteRule(index);
4585
- this.cssRules.splice(index, 1);
4586
- return true;
4587
- }
4588
- /**
4589
- * Get index of a CSS Rule.
4590
- */
4591
- ;
4592
-
4593
- _proto.indexOf = function indexOf(cssRule) {
4594
- return this.cssRules.indexOf(cssRule);
4595
- }
4596
- /**
4597
- * Generate a new CSS rule and replace the existing one.
4598
- *
4599
- * Only used for some old browsers because they can't set a selector.
4600
- */
4601
- ;
4602
-
4603
- _proto.replaceRule = function replaceRule(cssRule, rule) {
4604
- var index = this.indexOf(cssRule);
4605
- if (index === -1) return false;
4606
- this.element.sheet.deleteRule(index);
4607
- this.cssRules.splice(index, 1);
4608
- return this.insertRule(rule, index);
4609
- }
4610
- /**
4611
- * Get all rules elements.
4612
- */
4613
- ;
4614
-
4615
- _proto.getRules = function getRules() {
4616
- return this.element.sheet.cssRules;
4617
- };
4618
-
4619
- return DomRenderer;
4620
- }();
4621
-
4622
- var instanceCounter = 0;
4623
-
4624
- var Jss =
4625
- /*#__PURE__*/
4626
- function () {
4627
- function Jss(options) {
4628
- this.id = instanceCounter++;
4629
- this.version = "10.5.0";
4630
- this.plugins = new PluginsRegistry();
4631
- this.options = {
4632
- id: {
4633
- minify: false
4634
- },
4635
- createGenerateId: createGenerateId,
4636
- Renderer: __WEBPACK_IMPORTED_MODULE_1_is_in_browser__["a" /* default */] ? DomRenderer : null,
4637
- plugins: []
4638
- };
4639
- this.generateId = createGenerateId({
4640
- minify: false
4641
- });
4642
-
4643
- for (var i = 0; i < plugins.length; i++) {
4644
- this.plugins.use(plugins[i], {
4645
- queue: 'internal'
4646
- });
4647
- }
4648
-
4649
- this.setup(options);
4650
- }
4651
- /**
4652
- * Prepares various options, applies plugins.
4653
- * Should not be used twice on the same instance, because there is no plugins
4654
- * deduplication logic.
4655
- */
4656
-
4657
-
4658
- var _proto = Jss.prototype;
4659
-
4660
- _proto.setup = function setup(options) {
4661
- if (options === void 0) {
4662
- options = {};
4663
- }
4664
-
4665
- if (options.createGenerateId) {
4666
- this.options.createGenerateId = options.createGenerateId;
4667
- }
4668
-
4669
- if (options.id) {
4670
- this.options.id = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, this.options.id, options.id);
4671
- }
4672
-
4673
- if (options.createGenerateId || options.id) {
4674
- this.generateId = this.options.createGenerateId(this.options.id);
4675
- }
4676
-
4677
- if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;
4678
-
4679
- if ('Renderer' in options) {
4680
- this.options.Renderer = options.Renderer;
4681
- } // eslint-disable-next-line prefer-spread
4682
-
4683
-
4684
- if (options.plugins) this.use.apply(this, options.plugins);
4685
- return this;
4686
- }
4687
- /**
4688
- * Create a Style Sheet.
4689
- */
4690
- ;
4691
-
4692
- _proto.createStyleSheet = function createStyleSheet(styles, options) {
4693
- if (options === void 0) {
4694
- options = {};
4695
- }
4696
-
4697
- var _options = options,
4698
- index = _options.index;
4699
-
4700
- if (typeof index !== 'number') {
4701
- index = registry.index === 0 ? 0 : registry.index + 1;
4702
- }
4703
-
4704
- var sheet = new StyleSheet(styles, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
4705
- jss: this,
4706
- generateId: options.generateId || this.generateId,
4707
- insertionPoint: this.options.insertionPoint,
4708
- Renderer: this.options.Renderer,
4709
- index: index
4710
- }));
4711
- this.plugins.onProcessSheet(sheet);
4712
- return sheet;
4713
- }
4714
- /**
4715
- * Detach the Style Sheet and remove it from the registry.
4716
- */
4717
- ;
4718
-
4719
- _proto.removeStyleSheet = function removeStyleSheet(sheet) {
4720
- sheet.detach();
4721
- registry.remove(sheet);
4722
- return this;
4723
- }
4724
- /**
4725
- * Create a rule without a Style Sheet.
4726
- * [Deprecated] will be removed in the next major version.
4727
- */
4728
- ;
4729
-
4730
- _proto.createRule = function createRule$1(name, style, options) {
4731
- if (style === void 0) {
4732
- style = {};
4733
- }
4734
-
4735
- if (options === void 0) {
4736
- options = {};
4737
- }
4738
-
4739
- // Enable rule without name for inline styles.
4740
- if (typeof name === 'object') {
4741
- // $FlowFixMe[incompatible-call]
4742
- return this.createRule(undefined, name, style);
4743
- } // $FlowFixMe[incompatible-type]
4744
-
4745
-
4746
- var ruleOptions = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
4747
- name: name,
4748
- jss: this,
4749
- Renderer: this.options.Renderer
4750
- });
4751
-
4752
- if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;
4753
- if (!ruleOptions.classes) ruleOptions.classes = {};
4754
- if (!ruleOptions.keyframes) ruleOptions.keyframes = {};
4755
-
4756
- var rule = createRule(name, style, ruleOptions);
4757
-
4758
- if (rule) this.plugins.onProcessRule(rule);
4759
- return rule;
4760
- }
4761
- /**
4762
- * Register plugin. Passed function will be invoked with a rule instance.
4763
- */
4764
- ;
4765
-
4766
- _proto.use = function use() {
4767
- var _this = this;
4768
-
4769
- for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
4770
- plugins[_key] = arguments[_key];
4771
- }
4772
-
4773
- plugins.forEach(function (plugin) {
4774
- _this.plugins.use(plugin);
4775
- });
4776
- return this;
4777
- };
4778
-
4779
- return Jss;
4780
- }();
4781
-
4782
- /**
4783
- * Extracts a styles object with only props that contain function values.
4784
- */
4785
- function getDynamicStyles(styles) {
4786
- var to = null;
4787
-
4788
- for (var key in styles) {
4789
- var value = styles[key];
4790
- var type = typeof value;
4791
-
4792
- if (type === 'function') {
4793
- if (!to) to = {};
4794
- to[key] = value;
4795
- } else if (type === 'object' && value !== null && !Array.isArray(value)) {
4796
- var extracted = getDynamicStyles(value);
4797
-
4798
- if (extracted) {
4799
- if (!to) to = {};
4800
- to[key] = extracted;
4801
- }
4802
- }
4803
- }
4804
-
4805
- return to;
4806
- }
4807
-
4808
- /**
4809
- * SheetsManager is like a WeakMap which is designed to count StyleSheet
4810
- * instances and attach/detach automatically.
4811
- */
4812
- var SheetsManager =
4813
- /*#__PURE__*/
4814
- function () {
4815
- function SheetsManager() {
4816
- this.length = 0;
4817
- this.sheets = new WeakMap();
4818
- }
4819
-
4820
- var _proto = SheetsManager.prototype;
4821
-
4822
- _proto.get = function get(key) {
4823
- var entry = this.sheets.get(key);
4824
- return entry && entry.sheet;
4825
- };
4826
-
4827
- _proto.add = function add(key, sheet) {
4828
- if (this.sheets.has(key)) return;
4829
- this.length++;
4830
- this.sheets.set(key, {
4831
- sheet: sheet,
4832
- refs: 0
4833
- });
4834
- };
4835
-
4836
- _proto.manage = function manage(key) {
4837
- var entry = this.sheets.get(key);
4838
-
4839
- if (entry) {
4840
- if (entry.refs === 0) {
4841
- entry.sheet.attach();
4842
- }
4843
-
4844
- entry.refs++;
4845
- return entry.sheet;
4846
- }
4847
-
4848
- Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] SheetsManager: can't find sheet to manage");
4849
- return undefined;
4850
- };
4851
-
4852
- _proto.unmanage = function unmanage(key) {
4853
- var entry = this.sheets.get(key);
4854
-
4855
- if (entry) {
4856
- if (entry.refs > 0) {
4857
- entry.refs--;
4858
- if (entry.refs === 0) entry.sheet.detach();
4859
- }
4860
- } else {
4861
- Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "SheetsManager: can't find sheet to unmanage");
4862
- }
4863
- };
4864
-
4865
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsManager, [{
4866
- key: "size",
4867
- get: function get() {
4868
- return this.length;
4869
- }
4870
- }]);
4871
-
4872
- return SheetsManager;
4873
- }();
4874
-
4875
- /**
4876
- * A better abstraction over CSS.
4877
- *
4878
- * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
4879
- * @website https://github.com/cssinjs/jss
4880
- * @license MIT
4881
- */
4882
-
4883
- /**
4884
- * Export a constant indicating if this browser has CSSTOM support.
4885
- * https://developers.google.com/web/updates/2018/03/cssom
4886
- */
4887
- var hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;
4888
- /**
4889
- * Creates a new instance of Jss.
4890
- */
4891
-
4892
- var create = function create(options) {
4893
- return new Jss(options);
4894
- };
4895
- /**
4896
- * A global Jss instance.
4897
- */
4898
-
4899
- var jss = create();
4900
-
4901
- /* unused harmony default export */ var _unused_webpack_default_export = (jss);
4902
-
4903
-
4904
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
4905
-
4906
- /***/ }),
4907
- /* 50 */
4908
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4909
-
4910
- "use strict";
4911
- /* harmony export (immutable) */ __webpack_exports__["a"] = _classCallCheck;
4912
- function _classCallCheck(instance, Constructor) {
4913
- if (!(instance instanceof Constructor)) {
4914
- throw new TypeError("Cannot call a class as a function");
4915
- }
4916
- }
4917
-
4918
- /***/ }),
4919
- /* 51 */
4920
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4921
-
4922
- "use strict";
4923
- /* harmony export (immutable) */ __webpack_exports__["a"] = debounce;
4924
- // Corresponds to 10 frames at 60 Hz.
4925
- // A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.
4926
- function debounce(func) {
4927
- var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;
4928
- var timeout;
4929
-
4930
- function debounced() {
4931
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4932
- args[_key] = arguments[_key];
4933
- }
4934
-
4935
- // eslint-disable-next-line consistent-this
4936
- var that = this;
4937
-
4938
- var later = function later() {
4939
- func.apply(that, args);
4940
- };
4941
-
4942
- clearTimeout(timeout);
4943
- timeout = setTimeout(later, wait);
4944
- }
4945
-
4946
- debounced.clear = function () {
4947
- clearTimeout(timeout);
4948
- };
4949
-
4950
- return debounced;
4951
- }
4952
-
4953
- /***/ }),
4954
- /* 52 */
4955
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4956
-
4957
- "use strict";
4958
- /* harmony export (immutable) */ __webpack_exports__["a"] = setRef;
4959
- // TODO v5: consider to make it private
4960
- function setRef(ref, value) {
4961
- if (typeof ref === 'function') {
4962
- ref(value);
4963
- } else if (ref) {
4964
- ref.current = value;
4965
- }
4966
- }
4967
-
4968
- /***/ }),
4969
- /* 53 */
4970
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4971
-
4972
- "use strict";
4973
- /* harmony export (immutable) */ __webpack_exports__["a"] = useFormControl;
4974
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
4975
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
4976
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FormControlContext__ = __webpack_require__(99);
4977
-
4978
-
4979
- function useFormControl() {
4980
- return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](__WEBPACK_IMPORTED_MODULE_1__FormControlContext__["a" /* default */]);
4981
- }
4982
-
4983
- /***/ }),
4984
- /* 54 */
4985
- /***/ (function(module, exports, __webpack_require__) {
4986
-
4987
- var Symbol = __webpack_require__(84),
4988
- getRawTag = __webpack_require__(762),
4989
- objectToString = __webpack_require__(763);
4990
-
4991
- /** `Object#toString` result references. */
4992
- var nullTag = '[object Null]',
4993
- undefinedTag = '[object Undefined]';
4994
-
4995
- /** Built-in value references. */
4996
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
4997
-
4998
- /**
4999
- * The base implementation of `getTag` without fallbacks for buggy environments.
5000
- *
5001
- * @private
5002
- * @param {*} value The value to query.
5003
- * @returns {string} Returns the `toStringTag`.
5004
- */
5005
- function baseGetTag(value) {
5006
- if (value == null) {
5007
- return value === undefined ? undefinedTag : nullTag;
5008
- }
5009
- return (symToStringTag && symToStringTag in Object(value))
5010
- ? getRawTag(value)
5011
- : objectToString(value);
5012
- }
5013
-
5014
- module.exports = baseGetTag;
5015
-
5016
-
5017
- /***/ }),
5018
- /* 55 */
5019
- /***/ (function(module, exports, __webpack_require__) {
5020
-
5021
- var baseIsNative = __webpack_require__(788),
5022
- getValue = __webpack_require__(791);
5023
-
5024
- /**
5025
- * Gets the native function at `key` of `object`.
5026
- *
5027
- * @private
5028
- * @param {Object} object The object to query.
5029
- * @param {string} key The key of the method to get.
5030
- * @returns {*} Returns the function if it's native, else `undefined`.
5031
- */
5032
- function getNative(object, key) {
5033
- var value = getValue(object, key);
5034
- return baseIsNative(value) ? value : undefined;
5035
- }
5036
-
5037
- module.exports = getNative;
5038
-
5039
-
5040
- /***/ }),
5041
- /* 56 */
5042
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5043
-
5044
- "use strict";
5045
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsNative_js__ = __webpack_require__(884);
5046
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getValue_js__ = __webpack_require__(889);
5047
-
5048
-
5049
-
5050
- /**
5051
- * Gets the native function at `key` of `object`.
5052
- *
5053
- * @private
5054
- * @param {Object} object The object to query.
5055
- * @param {string} key The key of the method to get.
5056
- * @returns {*} Returns the function if it's native, else `undefined`.
5057
- */
5058
- function getNative(object, key) {
5059
- var value = Object(__WEBPACK_IMPORTED_MODULE_1__getValue_js__["a" /* default */])(object, key);
5060
- return Object(__WEBPACK_IMPORTED_MODULE_0__baseIsNative_js__["a" /* default */])(value) ? value : undefined;
5061
- }
5062
-
5063
- /* harmony default export */ __webpack_exports__["a"] = (getNative);
5064
-
5065
-
5066
- /***/ }),
5067
- /* 57 */
5068
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5069
-
5070
- "use strict";
5071
- /**
5072
- * Checks if `value` is object-like. A value is object-like if it's not `null`
5073
- * and has a `typeof` result of "object".
5074
- *
5075
- * @static
5076
- * @memberOf _
5077
- * @since 4.0.0
5078
- * @category Lang
5079
- * @param {*} value The value to check.
5080
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
5081
- * @example
5082
- *
5083
- * _.isObjectLike({});
5084
- * // => true
5085
- *
5086
- * _.isObjectLike([1, 2, 3]);
5087
- * // => true
5088
- *
5089
- * _.isObjectLike(_.noop);
5090
- * // => false
5091
- *
5092
- * _.isObjectLike(null);
5093
- * // => false
5094
- */
5095
- function isObjectLike(value) {
5096
- return value != null && typeof value == 'object';
5097
- }
5098
-
5099
- /* harmony default export */ __webpack_exports__["a"] = (isObjectLike);
5100
-
5101
-
5102
- /***/ }),
5103
- /* 58 */
5104
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5105
-
5106
- "use strict";
5107
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayMap_js__ = __webpack_require__(415);
5108
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseIteratee_js__ = __webpack_require__(951);
5109
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__baseMap_js__ = __webpack_require__(989);
5110
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isArray_js__ = __webpack_require__(32);
5111
-
5112
-
5113
-
5114
-
5115
-
5116
- /**
5117
- * Creates an array of values by running each element in `collection` thru
5118
- * `iteratee`. The iteratee is invoked with three arguments:
5119
- * (value, index|key, collection).
5120
- *
5121
- * Many lodash methods are guarded to work as iteratees for methods like
5122
- * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
5123
- *
5124
- * The guarded methods are:
5125
- * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
5126
- * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
5127
- * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
5128
- * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
5129
- *
5130
- * @static
5131
- * @memberOf _
5132
- * @since 0.1.0
5133
- * @category Collection
5134
- * @param {Array|Object} collection The collection to iterate over.
5135
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
5136
- * @returns {Array} Returns the new mapped array.
5137
- * @example
5138
- *
5139
- * function square(n) {
5140
- * return n * n;
5141
- * }
5142
- *
5143
- * _.map([4, 8], square);
5144
- * // => [16, 64]
5145
- *
5146
- * _.map({ 'a': 4, 'b': 8 }, square);
5147
- * // => [16, 64] (iteration order is not guaranteed)
5148
- *
5149
- * var users = [
5150
- * { 'user': 'barney' },
5151
- * { 'user': 'fred' }
5152
- * ];
5153
- *
5154
- * // The `_.property` iteratee shorthand.
5155
- * _.map(users, 'user');
5156
- * // => ['barney', 'fred']
5157
- */
5158
- function map(collection, iteratee) {
5159
- var func = Object(__WEBPACK_IMPORTED_MODULE_3__isArray_js__["a" /* default */])(collection) ? __WEBPACK_IMPORTED_MODULE_0__arrayMap_js__["a" /* default */] : __WEBPACK_IMPORTED_MODULE_2__baseMap_js__["a" /* default */];
5160
- return func(collection, Object(__WEBPACK_IMPORTED_MODULE_1__baseIteratee_js__["a" /* default */])(iteratee, 3));
5161
- }
5162
-
5163
- /* harmony default export */ __webpack_exports__["a"] = (map);
5164
-
5165
-
5166
- /***/ }),
5167
- /* 59 */
5168
- /***/ (function(module, exports, __webpack_require__) {
5169
-
5170
- "use strict";
5171
- /*
5172
- object-assign
5173
- (c) Sindre Sorhus
5174
- @license MIT
5175
- */
5176
-
5177
-
5178
- /* eslint-disable no-unused-vars */
5179
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5180
- var hasOwnProperty = Object.prototype.hasOwnProperty;
5181
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
5182
-
5183
- function toObject(val) {
5184
- if (val === null || val === undefined) {
5185
- throw new TypeError('Object.assign cannot be called with null or undefined');
5186
- }
5187
-
5188
- return Object(val);
5189
- }
5190
-
5191
- function shouldUseNative() {
5192
- try {
5193
- if (!Object.assign) {
5194
- return false;
5195
- }
5196
-
5197
- // Detect buggy property enumeration order in older V8 versions.
5198
-
5199
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
5200
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
5201
- test1[5] = 'de';
5202
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
5203
- return false;
5204
- }
5205
-
5206
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5207
- var test2 = {};
5208
- for (var i = 0; i < 10; i++) {
5209
- test2['_' + String.fromCharCode(i)] = i;
5210
- }
5211
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
5212
- return test2[n];
5213
- });
5214
- if (order2.join('') !== '0123456789') {
5215
- return false;
5216
- }
5217
-
5218
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5219
- var test3 = {};
5220
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
5221
- test3[letter] = letter;
5222
- });
5223
- if (Object.keys(Object.assign({}, test3)).join('') !==
5224
- 'abcdefghijklmnopqrst') {
5225
- return false;
5226
- }
5227
-
5228
- return true;
5229
- } catch (err) {
5230
- // We don't expect any of the above to throw, but better to be safe.
5231
- return false;
5232
- }
5233
- }
5234
-
5235
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
5236
- var from;
5237
- var to = toObject(target);
5238
- var symbols;
5239
-
5240
- for (var s = 1; s < arguments.length; s++) {
5241
- from = Object(arguments[s]);
5242
-
5243
- for (var key in from) {
5244
- if (hasOwnProperty.call(from, key)) {
5245
- to[key] = from[key];
5246
- }
5247
- }
5248
-
5249
- if (getOwnPropertySymbols) {
5250
- symbols = getOwnPropertySymbols(from);
5251
- for (var i = 0; i < symbols.length; i++) {
5252
- if (propIsEnumerable.call(from, symbols[i])) {
5253
- to[symbols[i]] = from[symbols[i]];
5254
- }
5255
- }
5256
- }
5257
- }
5258
-
5259
- return to;
5260
- };
5261
-
5262
-
5263
- /***/ }),
5264
- /* 60 */
5265
- /***/ (function(module, exports) {
5266
-
5267
- var g;
5268
-
5269
- // This works in non-strict mode
5270
- g = (function() {
5271
- return this;
5272
- })();
5273
-
5274
- try {
5275
- // This works if eval is allowed (see CSP)
5276
- g = g || Function("return this")() || (1,eval)("this");
5277
- } catch(e) {
5278
- // This works if the window reference is available
5279
- if(typeof window === "object")
5280
- g = window;
5281
- }
5282
-
5283
- // g can still be undefined, but nothing to do about it...
5284
- // We return undefined, instead of nothing here, so it's
5285
- // easier to handle this case. if(!global) { ...}
5286
-
5287
- module.exports = g;
5288
-
5289
-
5290
- /***/ }),
5291
- /* 61 */
5292
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5293
-
5294
- "use strict";
5295
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useTheme__ = __webpack_require__(483);
5296
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useTheme__["a"]; });
5297
-
5298
-
5299
- /***/ }),
5300
- /* 62 */
5301
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5302
-
5303
- "use strict";
5304
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createChainedFunction;
5305
- /**
5306
- * Safe chained function
5307
- *
5308
- * Will only create a new function if needed,
5309
- * otherwise will pass back existing functions or null.
5310
- *
5311
- * @param {function} functions to chain
5312
- * @returns {function|null}
5313
- */
5314
- function createChainedFunction() {
5315
- for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
5316
- funcs[_key] = arguments[_key];
5317
- }
5318
-
5319
- return funcs.reduce(function (acc, func) {
5320
- if (func == null) {
5321
- return acc;
5322
- }
5323
-
5324
- if (process.env.NODE_ENV !== 'production') {
5325
- if (typeof func !== 'function') {
5326
- console.error('Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.');
5327
- }
5328
- }
5329
-
5330
- return function chainedFunction() {
5331
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5332
- args[_key2] = arguments[_key2];
5333
- }
5334
-
5335
- acc.apply(this, args);
5336
- func.apply(this, args);
5337
- };
5338
- }, function () {});
5339
- }
5340
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5341
-
5342
- /***/ }),
5343
- /* 63 */
5344
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5345
-
5346
- "use strict";
5347
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CSSTransition__ = __webpack_require__(562);
5348
- /* unused harmony reexport CSSTransition */
5349
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ReplaceTransition__ = __webpack_require__(566);
5350
- /* unused harmony reexport ReplaceTransition */
5351
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SwitchTransition__ = __webpack_require__(568);
5352
- /* unused harmony reexport SwitchTransition */
5353
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__ = __webpack_require__(264);
5354
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__["a"]; });
5355
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Transition__ = __webpack_require__(140);
5356
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_4__Transition__["d"]; });
5357
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(262);
5358
- /* unused harmony reexport config */
5359
-
5360
-
5361
-
5362
-
5363
-
5364
-
5365
-
5366
- /***/ }),
5367
- /* 64 */
5368
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5369
-
5370
- "use strict";
5371
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Collapse__ = __webpack_require__(586);
5372
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Collapse__["a"]; });
5373
-
5374
-
5375
- /***/ }),
5376
- /* 65 */
5377
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5378
-
5379
- "use strict";
5380
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return reflow; });
5381
- /* harmony export (immutable) */ __webpack_exports__["a"] = getTransitionProps;
5382
- var reflow = function reflow(node) {
5383
- return node.scrollTop;
5384
- };
5385
- function getTransitionProps(props, options) {
5386
- var timeout = props.timeout,
5387
- _props$style = props.style,
5388
- style = _props$style === void 0 ? {} : _props$style;
5389
- return {
5390
- duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
5391
- delay: style.transitionDelay
5392
- };
5393
- }
5394
-
5395
- /***/ }),
5396
- /* 66 */
5397
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5398
-
5399
- "use strict";
5400
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputBase__ = __webpack_require__(638);
5401
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputBase__["a"]; });
5402
-
5403
-
5404
- /***/ }),
5405
- /* 67 */
5406
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5407
-
5408
- "use strict";
5409
- /* harmony export (immutable) */ __webpack_exports__["a"] = formControlState;
5410
- function formControlState(_ref) {
5411
- var props = _ref.props,
5412
- states = _ref.states,
5413
- muiFormControl = _ref.muiFormControl;
5414
- return states.reduce(function (acc, state) {
5415
- acc[state] = props[state];
5416
-
5417
- if (muiFormControl) {
5418
- if (typeof props[state] === 'undefined') {
5419
- acc[state] = muiFormControl[state];
5420
- }
5421
- }
5422
-
5423
- return acc;
5424
- }, {});
5425
- }
5426
-
5427
- /***/ }),
5428
- /* 68 */
5429
- /***/ (function(module, exports) {
5430
-
5431
- /**
5432
- * Checks if `value` is the
5433
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
5434
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
5435
- *
5436
- * @static
5437
- * @memberOf _
5438
- * @since 0.1.0
5439
- * @category Lang
5440
- * @param {*} value The value to check.
5441
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
5442
- * @example
5443
- *
5444
- * _.isObject({});
5445
- * // => true
5446
- *
5447
- * _.isObject([1, 2, 3]);
5448
- * // => true
5449
- *
5450
- * _.isObject(_.noop);
5451
- * // => true
5452
- *
5453
- * _.isObject(null);
5454
- * // => false
5455
- */
5456
- function isObject(value) {
5457
- var type = typeof value;
5458
- return value != null && (type == 'object' || type == 'function');
5459
- }
5460
-
5461
- module.exports = isObject;
5462
-
5463
-
5464
- /***/ }),
5465
- /* 69 */
5466
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5467
-
5468
- "use strict";
5469
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(121);
5470
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getRawTag_js__ = __webpack_require__(885);
5471
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__objectToString_js__ = __webpack_require__(886);
5472
-
5473
-
5474
-
5475
-
5476
- /** `Object#toString` result references. */
5477
- var nullTag = '[object Null]',
5478
- undefinedTag = '[object Undefined]';
5479
-
5480
- /** Built-in value references. */
5481
- var symToStringTag = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */] ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */].toStringTag : undefined;
5482
-
5483
- /**
5484
- * The base implementation of `getTag` without fallbacks for buggy environments.
5485
- *
5486
- * @private
5487
- * @param {*} value The value to query.
5488
- * @returns {string} Returns the `toStringTag`.
5489
- */
5490
- function baseGetTag(value) {
5491
- if (value == null) {
5492
- return value === undefined ? undefinedTag : nullTag;
5493
- }
5494
- return (symToStringTag && symToStringTag in Object(value))
5495
- ? Object(__WEBPACK_IMPORTED_MODULE_1__getRawTag_js__["a" /* default */])(value)
5496
- : Object(__WEBPACK_IMPORTED_MODULE_2__objectToString_js__["a" /* default */])(value);
5497
- }
5498
-
5499
- /* harmony default export */ __webpack_exports__["a"] = (baseGetTag);
5500
-
5501
-
5502
- /***/ }),
5503
- /* 70 */
5504
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5505
-
5506
- "use strict";
5507
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isFunction_js__ = __webpack_require__(196);
5508
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isLength_js__ = __webpack_require__(202);
5509
-
5510
-
5511
-
5512
- /**
5513
- * Checks if `value` is array-like. A value is considered array-like if it's
5514
- * not a function and has a `value.length` that's an integer greater than or
5515
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
5516
- *
5517
- * @static
5518
- * @memberOf _
5519
- * @since 4.0.0
5520
- * @category Lang
5521
- * @param {*} value The value to check.
5522
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
5523
- * @example
5524
- *
5525
- * _.isArrayLike([1, 2, 3]);
5526
- * // => true
5527
- *
5528
- * _.isArrayLike(document.body.children);
5529
- * // => true
5530
- *
5531
- * _.isArrayLike('abc');
5532
- * // => true
5533
- *
5534
- * _.isArrayLike(_.noop);
5535
- * // => false
5536
- */
5537
- function isArrayLike(value) {
5538
- return value != null && Object(__WEBPACK_IMPORTED_MODULE_1__isLength_js__["a" /* default */])(value.length) && !Object(__WEBPACK_IMPORTED_MODULE_0__isFunction_js__["a" /* default */])(value);
5539
- }
5540
-
5541
- /* harmony default export */ __webpack_exports__["a"] = (isArrayLike);
5542
-
5543
-
5544
- /***/ }),
5545
- /* 71 */
5546
- /***/ (function(module, exports, __webpack_require__) {
5547
-
5548
- "use strict";
5549
-
5550
-
5551
- var reactIs = __webpack_require__(16);
5552
-
5553
- /**
5554
- * Copyright 2015, Yahoo! Inc.
5555
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
5556
- */
5557
- var REACT_STATICS = {
5558
- childContextTypes: true,
5559
- contextType: true,
5560
- contextTypes: true,
5561
- defaultProps: true,
5562
- displayName: true,
5563
- getDefaultProps: true,
5564
- getDerivedStateFromError: true,
5565
- getDerivedStateFromProps: true,
5566
- mixins: true,
5567
- propTypes: true,
5568
- type: true
5569
- };
5570
- var KNOWN_STATICS = {
5571
- name: true,
5572
- length: true,
5573
- prototype: true,
5574
- caller: true,
5575
- callee: true,
5576
- arguments: true,
5577
- arity: true
5578
- };
5579
- var FORWARD_REF_STATICS = {
5580
- '$$typeof': true,
5581
- render: true,
5582
- defaultProps: true,
5583
- displayName: true,
5584
- propTypes: true
5585
- };
5586
- var MEMO_STATICS = {
5587
- '$$typeof': true,
5588
- compare: true,
5589
- defaultProps: true,
5590
- displayName: true,
5591
- propTypes: true,
5592
- type: true
5593
- };
5594
- var TYPE_STATICS = {};
5595
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
5596
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
5597
-
5598
- function getStatics(component) {
5599
- // React v16.11 and below
5600
- if (reactIs.isMemo(component)) {
5601
- return MEMO_STATICS;
5602
- } // React v16.12 and above
5603
-
5604
-
5605
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
5606
- }
5607
-
5608
- var defineProperty = Object.defineProperty;
5609
- var getOwnPropertyNames = Object.getOwnPropertyNames;
5610
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5611
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
5612
- var getPrototypeOf = Object.getPrototypeOf;
5613
- var objectPrototype = Object.prototype;
5614
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
5615
- if (typeof sourceComponent !== 'string') {
5616
- // don't hoist over string (html) components
5617
- if (objectPrototype) {
5618
- var inheritedComponent = getPrototypeOf(sourceComponent);
5619
-
5620
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
5621
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
5622
- }
5623
- }
5624
-
5625
- var keys = getOwnPropertyNames(sourceComponent);
5626
-
5627
- if (getOwnPropertySymbols) {
5628
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
5629
- }
5630
-
5631
- var targetStatics = getStatics(targetComponent);
5632
- var sourceStatics = getStatics(sourceComponent);
5633
-
5634
- for (var i = 0; i < keys.length; ++i) {
5635
- var key = keys[i];
5636
-
5637
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
5638
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
5639
-
5640
- try {
5641
- // Avoid failures from read-only properties
5642
- defineProperty(targetComponent, key, descriptor);
5643
- } catch (e) {}
5644
- }
5645
- }
5646
- }
5647
-
5648
- return targetComponent;
5649
- }
5650
-
5651
- module.exports = hoistNonReactStatics;
5652
-
5653
-
5654
- /***/ }),
5655
- /* 72 */
5656
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5657
-
5658
- "use strict";
5659
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createMuiTheme__ = __webpack_require__(135);
5660
-
5661
- var defaultTheme = Object(__WEBPACK_IMPORTED_MODULE_0__createMuiTheme__["a" /* default */])();
5662
- /* harmony default export */ __webpack_exports__["a"] = (defaultTheme);
5663
-
5664
- /***/ }),
5665
- /* 73 */
5666
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5667
-
5668
- "use strict";
5669
- /* harmony export (immutable) */ __webpack_exports__["a"] = _inherits;
5670
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__setPrototypeOf__ = __webpack_require__(515);
5671
-
5672
- function _inherits(subClass, superClass) {
5673
- if (typeof superClass !== "function" && superClass !== null) {
5674
- throw new TypeError("Super expression must either be null or a function");
5675
- }
5676
-
5677
- subClass.prototype = Object.create(superClass && superClass.prototype, {
5678
- constructor: {
5679
- value: subClass,
5680
- writable: true,
5681
- configurable: true
5682
- }
5683
- });
5684
- if (superClass) Object(__WEBPACK_IMPORTED_MODULE_0__setPrototypeOf__["a" /* default */])(subClass, superClass);
5685
- }
5686
-
5687
- /***/ }),
5688
- /* 74 */
5689
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5690
-
5691
- "use strict";
5692
- /* harmony export (immutable) */ __webpack_exports__["a"] = _possibleConstructorReturn;
5693
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__helpers_esm_typeof__ = __webpack_require__(44);
5694
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__assertThisInitialized__ = __webpack_require__(88);
5695
-
5696
-
5697
- function _possibleConstructorReturn(self, call) {
5698
- if (call && (Object(__WEBPACK_IMPORTED_MODULE_0__helpers_esm_typeof__["a" /* default */])(call) === "object" || typeof call === "function")) {
5699
- return call;
5700
- }
5701
-
5702
- return Object(__WEBPACK_IMPORTED_MODULE_1__assertThisInitialized__["a" /* default */])(self);
5703
- }
5704
-
5705
- /***/ }),
5706
- /* 75 */
5707
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5708
-
5709
- "use strict";
5710
- /* harmony export (immutable) */ __webpack_exports__["a"] = _getPrototypeOf;
5711
- function _getPrototypeOf(o) {
5712
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
5713
- return o.__proto__ || Object.getPrototypeOf(o);
5714
- };
5715
- return _getPrototypeOf(o);
5716
- }
5717
-
5718
- /***/ }),
5719
- /* 76 */
5720
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5721
-
5722
- "use strict";
5723
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__ = __webpack_require__(139);
5724
-
5725
-
5726
- function css() {
5727
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5728
- args[_key] = arguments[_key];
5729
- }
5730
-
5731
- return Object(__WEBPACK_IMPORTED_MODULE_0__emotion_serialize__["a" /* serializeStyles */])(args);
5732
- }
5733
-
5734
- /* harmony default export */ __webpack_exports__["a"] = (css);
5735
-
5736
-
5737
- /***/ }),
5738
- /* 77 */
5739
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5740
-
5741
- "use strict";
5742
- /* harmony export (immutable) */ __webpack_exports__["a"] = isMuiElement;
5743
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5744
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5745
-
5746
- function isMuiElement(element, muiNames) {
5747
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["isValidElement"](element) && muiNames.indexOf(element.type.muiName) !== -1;
5748
- }
5749
-
5750
- /***/ }),
5751
- /* 78 */
5752
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5753
-
5754
- "use strict";
5755
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export teardown */
5756
- /* harmony export (immutable) */ __webpack_exports__["a"] = useIsFocusVisible;
5757
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5758
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5759
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(11);
5760
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);
5761
- // based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
5762
-
5763
-
5764
- var hadKeyboardEvent = true;
5765
- var hadFocusVisibleRecently = false;
5766
- var hadFocusVisibleRecentlyTimeout = null;
5767
- var inputTypesWhitelist = {
5768
- text: true,
5769
- search: true,
5770
- url: true,
5771
- tel: true,
5772
- email: true,
5773
- password: true,
5774
- number: true,
5775
- date: true,
5776
- month: true,
5777
- week: true,
5778
- time: true,
5779
- datetime: true,
5780
- 'datetime-local': true
5781
- };
5782
- /**
5783
- * Computes whether the given element should automatically trigger the
5784
- * `focus-visible` class being added, i.e. whether it should always match
5785
- * `:focus-visible` when focused.
5786
- * @param {Element} node
5787
- * @return {boolean}
5788
- */
5789
-
5790
- function focusTriggersKeyboardModality(node) {
5791
- var type = node.type,
5792
- tagName = node.tagName;
5793
-
5794
- if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {
5795
- return true;
5796
- }
5797
-
5798
- if (tagName === 'TEXTAREA' && !node.readOnly) {
5799
- return true;
5800
- }
5801
-
5802
- if (node.isContentEditable) {
5803
- return true;
5804
- }
5805
-
5806
- return false;
5807
- }
5808
- /**
5809
- * Keep track of our keyboard modality state with `hadKeyboardEvent`.
5810
- * If the most recent user interaction was via the keyboard;
5811
- * and the key press did not include a meta, alt/option, or control key;
5812
- * then the modality is keyboard. Otherwise, the modality is not keyboard.
5813
- * @param {KeyboardEvent} event
5814
- */
5815
-
5816
-
5817
- function handleKeyDown(event) {
5818
- if (event.metaKey || event.altKey || event.ctrlKey) {
5819
- return;
5820
- }
5821
-
5822
- hadKeyboardEvent = true;
5823
- }
5824
- /**
5825
- * If at any point a user clicks with a pointing device, ensure that we change
5826
- * the modality away from keyboard.
5827
- * This avoids the situation where a user presses a key on an already focused
5828
- * element, and then clicks on a different element, focusing it with a
5829
- * pointing device, while we still think we're in keyboard modality.
5830
- */
5831
-
5832
-
5833
- function handlePointerDown() {
5834
- hadKeyboardEvent = false;
5835
- }
5836
-
5837
- function handleVisibilityChange() {
5838
- if (this.visibilityState === 'hidden') {
5839
- // If the tab becomes active again, the browser will handle calling focus
5840
- // on the element (Safari actually calls it twice).
5841
- // If this tab change caused a blur on an element with focus-visible,
5842
- // re-apply the class when the user switches back to the tab.
5843
- if (hadFocusVisibleRecently) {
5844
- hadKeyboardEvent = true;
5845
- }
5846
- }
5847
- }
5848
-
5849
- function prepare(doc) {
5850
- doc.addEventListener('keydown', handleKeyDown, true);
5851
- doc.addEventListener('mousedown', handlePointerDown, true);
5852
- doc.addEventListener('pointerdown', handlePointerDown, true);
5853
- doc.addEventListener('touchstart', handlePointerDown, true);
5854
- doc.addEventListener('visibilitychange', handleVisibilityChange, true);
5855
- }
5856
-
5857
- function teardown(doc) {
5858
- doc.removeEventListener('keydown', handleKeyDown, true);
5859
- doc.removeEventListener('mousedown', handlePointerDown, true);
5860
- doc.removeEventListener('pointerdown', handlePointerDown, true);
5861
- doc.removeEventListener('touchstart', handlePointerDown, true);
5862
- doc.removeEventListener('visibilitychange', handleVisibilityChange, true);
5863
- }
5864
-
5865
- function isFocusVisible(event) {
5866
- var target = event.target;
5867
-
5868
- try {
5869
- return target.matches(':focus-visible');
5870
- } catch (error) {} // browsers not implementing :focus-visible will throw a SyntaxError
5871
- // we use our own heuristic for those browsers
5872
- // rethrow might be better if it's not the expected error but do we really
5873
- // want to crash if focus-visible malfunctioned?
5874
- // no need for validFocusTarget check. the user does that by attaching it to
5875
- // focusable events only
5876
-
5877
-
5878
- return hadKeyboardEvent || focusTriggersKeyboardModality(target);
5879
- }
5880
- /**
5881
- * Should be called if a blur event is fired on a focus-visible element
5882
- */
5883
-
5884
-
5885
- function handleBlurVisible() {
5886
- // To detect a tab/window switch, we look for a blur event followed
5887
- // rapidly by a visibility change.
5888
- // If we don't see a visibility change within 100ms, it's probably a
5889
- // regular focus change.
5890
- hadFocusVisibleRecently = true;
5891
- window.clearTimeout(hadFocusVisibleRecentlyTimeout);
5892
- hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {
5893
- hadFocusVisibleRecently = false;
5894
- }, 100);
5895
- }
5896
-
5897
- function useIsFocusVisible() {
5898
- var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (instance) {
5899
- var node = __WEBPACK_IMPORTED_MODULE_1_react_dom__["findDOMNode"](instance);
5900
-
5901
- if (node != null) {
5902
- prepare(node.ownerDocument);
5903
- }
5904
- }, []);
5905
-
5906
- if (process.env.NODE_ENV !== 'production') {
5907
- // eslint-disable-next-line react-hooks/rules-of-hooks
5908
- __WEBPACK_IMPORTED_MODULE_0_react__["useDebugValue"](isFocusVisible);
5909
- }
5910
-
5911
- return {
5912
- isFocusVisible: isFocusVisible,
5913
- onBlurVisible: handleBlurVisible,
5914
- ref: ref
5915
- };
5916
- }
5917
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5918
-
5919
- /***/ }),
5920
- /* 79 */
5921
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5922
-
5923
- "use strict";
5924
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Modal__ = __webpack_require__(622);
5925
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Modal__["a"]; });
5926
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ModalManager__ = __webpack_require__(290);
5927
- /* unused harmony reexport ModalManager */
5928
-
5929
-
5930
-
5931
- /***/ }),
5932
- /* 80 */
5933
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5934
-
5935
- "use strict";
5936
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Grow__ = __webpack_require__(649);
5937
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Grow__["a"]; });
5938
-
5939
-
5940
- /***/ }),
5941
- /* 81 */
5942
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5943
-
5944
- "use strict";
5945
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Input__ = __webpack_require__(654);
5946
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Input__["a"]; });
5947
-
5948
-
5949
- /***/ }),
5950
- /* 82 */
5951
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5952
-
5953
- "use strict";
5954
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5955
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5956
-
5957
- /**
5958
- * @ignore - internal component.
5959
- */
5960
-
5961
- var ListContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
5962
-
5963
- if (process.env.NODE_ENV !== 'production') {
5964
- ListContext.displayName = 'ListContext';
5965
- }
5966
-
5967
- /* harmony default export */ __webpack_exports__["a"] = (ListContext);
5968
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5969
-
5970
- /***/ }),
5971
- /* 83 */
5972
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5973
-
5974
- "use strict";
5975
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5976
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5977
-
5978
- /**
5979
- * @ignore - internal component.
5980
- */
5981
-
5982
- var Tablelvl2Context = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
5983
-
5984
- if (process.env.NODE_ENV !== 'production') {
5985
- Tablelvl2Context.displayName = 'Tablelvl2Context';
5986
- }
5987
-
5988
- /* harmony default export */ __webpack_exports__["a"] = (Tablelvl2Context);
5989
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5990
-
5991
- /***/ }),
5992
- /* 84 */
5993
- /***/ (function(module, exports, __webpack_require__) {
5994
-
5995
- var root = __webpack_require__(38);
5996
-
5997
- /** Built-in value references. */
5998
- var Symbol = root.Symbol;
5999
-
6000
- module.exports = Symbol;
6001
-
6002
-
6003
- /***/ }),
6004
- /* 85 */
6005
- /***/ (function(module, exports, __webpack_require__) {
6006
-
6007
- var arrayLikeKeys = __webpack_require__(378),
6008
- baseKeys = __webpack_require__(770),
6009
- isArrayLike = __webpack_require__(111);
6010
-
6011
- /**
6012
- * Creates an array of the own enumerable property names of `object`.
6013
- *
6014
- * **Note:** Non-object values are coerced to objects. See the
6015
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
6016
- * for more details.
6017
- *
6018
- * @static
6019
- * @since 0.1.0
6020
- * @memberOf _
6021
- * @category Object
6022
- * @param {Object} object The object to query.
6023
- * @returns {Array} Returns the array of property names.
6024
- * @example
6025
- *
6026
- * function Foo() {
6027
- * this.a = 1;
6028
- * this.b = 2;
6029
- * }
6030
- *
6031
- * Foo.prototype.c = 3;
6032
- *
6033
- * _.keys(new Foo);
6034
- * // => ['a', 'b'] (iteration order is not guaranteed)
6035
- *
6036
- * _.keys('hi');
6037
- * // => ['0', '1']
6038
- */
6039
- function keys(object) {
6040
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
6041
- }
6042
-
6043
- module.exports = keys;
6044
-
6045
-
6046
- /***/ }),
6047
- /* 86 */
6048
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6049
-
6050
- "use strict";
6051
- /**
6052
- * Performs a
6053
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
6054
- * comparison between two values to determine if they are equivalent.
6055
- *
6056
- * @static
6057
- * @memberOf _
6058
- * @since 4.0.0
6059
- * @category Lang
6060
- * @param {*} value The value to compare.
6061
- * @param {*} other The other value to compare.
6062
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
6063
- * @example
6064
- *
6065
- * var object = { 'a': 1 };
6066
- * var other = { 'a': 1 };
6067
- *
6068
- * _.eq(object, object);
6069
- * // => true
6070
- *
6071
- * _.eq(object, other);
6072
- * // => false
6073
- *
6074
- * _.eq('a', 'a');
6075
- * // => true
6076
- *
6077
- * _.eq('a', Object('a'));
6078
- * // => false
6079
- *
6080
- * _.eq(NaN, NaN);
6081
- * // => true
6082
- */
6083
- function eq(value, other) {
6084
- return value === other || (value !== value && other !== other);
6085
- }
6086
-
6087
- /* harmony default export */ __webpack_exports__["a"] = (eq);
6088
-
6089
-
6090
- /***/ }),
6091
- /* 87 */
6092
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6093
-
6094
- "use strict";
6095
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__ = __webpack_require__(465);
6096
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__["a"]; });
6097
-
6098
-
6099
- /***/ }),
6100
- /* 88 */
6101
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6102
-
6103
- "use strict";
6104
- /* harmony export (immutable) */ __webpack_exports__["a"] = _assertThisInitialized;
6105
- function _assertThisInitialized(self) {
6106
- if (self === void 0) {
6107
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6108
- }
6109
-
6110
- return self;
6111
- }
6112
-
6113
- /***/ }),
6114
- /* 89 */
6115
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6116
-
6117
- "use strict";
6118
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__makeStyles__ = __webpack_require__(480);
6119
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__makeStyles__["a"]; });
6120
-
6121
-
6122
- /***/ }),
6123
- /* 90 */
6124
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6125
-
6126
- "use strict";
6127
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StylesProvider__ = __webpack_require__(218);
6128
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["b"]; });
6129
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["a"]; });
6130
-
6131
-
6132
-
6133
- /***/ }),
6134
- /* 91 */
6135
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6136
-
6137
- "use strict";
6138
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
6139
-
6140
-
6141
- function merge(acc, item) {
6142
- if (!item) {
6143
- return acc;
6144
- }
6145
-
6146
- return Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["c" /* deepmerge */])(acc, item, {
6147
- clone: false // No need to clone deep, it's way faster.
6148
-
6149
- });
6150
- }
6151
-
6152
- /* harmony default export */ __webpack_exports__["a"] = (merge);
6153
-
6154
- /***/ }),
6155
- /* 92 */
6156
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6157
-
6158
- "use strict";
6159
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6160
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NonceProvider", function() { return NonceProvider; });
6161
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(502);
6162
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__);
6163
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__ = __webpack_require__(504);
6164
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__);
6165
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__ = __webpack_require__(505);
6166
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__);
6167
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__ = __webpack_require__(509);
6168
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__);
6169
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__ = __webpack_require__(513);
6170
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__);
6171
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(50);
6172
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__ = __webpack_require__(45);
6173
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__ = __webpack_require__(514);
6174
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__);
6175
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__ = __webpack_require__(73);
6176
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(74);
6177
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(75);
6178
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(0);
6179
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
6180
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_memoize_one__ = __webpack_require__(250);
6181
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__emotion_core__ = __webpack_require__(137);
6182
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom__ = __webpack_require__(11);
6183
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__);
6184
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__ = __webpack_require__(522);
6185
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__);
6186
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__index_4b37608a_browser_esm_js__ = __webpack_require__(254);
6187
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return __WEBPACK_IMPORTED_MODULE_16__index_4b37608a_browser_esm_js__["f"]; });
6188
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__ = __webpack_require__(256);
6189
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createFilter", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["c"]; });
6190
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "defaultTheme", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["b"]; });
6191
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mergeStyles", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["d"]; });
6192
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__emotion_css__ = __webpack_require__(76);
6193
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__ = __webpack_require__(524);
6194
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__);
6195
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize__ = __webpack_require__(255);
6196
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_20_react_input_autosize__);
6197
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__ = __webpack_require__(525);
6198
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__emotion_cache__ = __webpack_require__(138);
6199
-
6200
-
6201
-
6202
-
6203
-
6204
-
6205
-
6206
-
6207
-
6208
-
6209
-
6210
-
6211
-
6212
-
6213
-
6214
-
6215
-
6216
-
6217
-
6218
-
6219
-
6220
-
6221
-
6222
-
6223
-
6224
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
6225
-
6226
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
6227
-
6228
- var NonceProvider = /*#__PURE__*/function (_Component) {
6229
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(NonceProvider, _Component);
6230
-
6231
- var _super = _createSuper(NonceProvider);
6232
-
6233
- function NonceProvider(props) {
6234
- var _this;
6235
-
6236
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, NonceProvider);
6237
-
6238
- _this = _super.call(this, props);
6239
-
6240
- _this.createEmotionCache = function (nonce) {
6241
- return Object(__WEBPACK_IMPORTED_MODULE_22__emotion_cache__["a" /* default */])({
6242
- nonce: nonce
6243
- });
6244
- };
6245
-
6246
- _this.createEmotionCache = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.createEmotionCache);
6247
- return _this;
6248
- }
6249
-
6250
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(NonceProvider, [{
6251
- key: "render",
6252
- value: function render() {
6253
- var emotionCache = this.createEmotionCache(this.props.nonce);
6254
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["a" /* CacheProvider */], {
6255
- value: emotionCache
6256
- }, this.props.children);
6257
- }
6258
- }]);
6259
-
6260
- return NonceProvider;
6261
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
6262
-
6263
- var index = Object(__WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__["a" /* m */])(__WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["a" /* S */]);
6264
-
6265
- /* harmony default export */ __webpack_exports__["default"] = (index);
6266
-
6267
-
6268
-
6269
- /***/ }),
6270
- /* 93 */
6271
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6272
-
6273
- "use strict";
6274
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SvgIcon__ = __webpack_require__(554);
6275
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SvgIcon__["a"]; });
6276
-
6277
-
6278
- /***/ }),
6279
- /* 94 */
6280
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6281
-
6282
- "use strict";
6283
- /* harmony export (immutable) */ __webpack_exports__["a"] = ownerWindow;
6284
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ownerDocument__ = __webpack_require__(28);
6285
-
6286
- function ownerWindow(node) {
6287
- var doc = Object(__WEBPACK_IMPORTED_MODULE_0__ownerDocument__["a" /* default */])(node);
6288
- return doc.defaultView || window;
6289
- }
6290
-
6291
- /***/ }),
6292
- /* 95 */
6293
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6294
-
6295
- "use strict";
6296
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = unsupportedProp;
6297
- function unsupportedProp(props, propName, componentName, location, propFullName) {
6298
- if (process.env.NODE_ENV === 'production') {
6299
- return null;
6300
- }
6301
-
6302
- var propFullNameSafe = propFullName || propName;
6303
-
6304
- if (typeof props[propName] !== 'undefined') {
6305
- return new Error("The prop `".concat(propFullNameSafe, "` is not supported. Please remove it."));
6306
- }
6307
-
6308
- return null;
6309
- }
6310
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6311
-
6312
- /***/ }),
6313
- /* 96 */
6314
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6315
-
6316
- "use strict";
6317
- /* harmony export (immutable) */ __webpack_exports__["a"] = useId;
6318
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6319
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6320
-
6321
- /**
6322
- * Private module reserved for @material-ui/x packages.
6323
- */
6324
-
6325
- function useId(idOverride) {
6326
- var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](idOverride),
6327
- defaultId = _React$useState[0],
6328
- setDefaultId = _React$useState[1];
6329
-
6330
- var id = idOverride || defaultId;
6331
- __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
6332
- if (defaultId == null) {
6333
- // Fallback to this default id when possible.
6334
- // Use the random value for client-side rendering only.
6335
- // We can't use it server-side.
6336
- setDefaultId("mui-".concat(Math.round(Math.random() * 1e5)));
6337
- }
6338
- }, [defaultId]);
6339
- return id;
6340
- }
6341
-
6342
- /***/ }),
6343
- /* 97 */
6344
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6345
-
6346
- "use strict";
6347
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Backdrop__ = __webpack_require__(593);
6348
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Backdrop__["a"]; });
6349
-
6350
-
6351
- /***/ }),
6352
- /* 98 */
6353
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6354
-
6355
- "use strict";
6356
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fade__ = __webpack_require__(594);
6357
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fade__["a"]; });
6358
-
6359
-
6360
- /***/ }),
6361
- /* 99 */
6362
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6363
-
6364
- "use strict";
6365
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["b"] = useFormControl;
6366
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6367
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6368
-
6369
- /**
6370
- * @ignore - internal component.
6371
- */
6372
-
6373
- var FormControlContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
6374
-
6375
- if (process.env.NODE_ENV !== 'production') {
6376
- FormControlContext.displayName = 'FormControlContext';
6377
- }
6378
-
6379
- function useFormControl() {
6380
- return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](FormControlContext);
6381
- }
6382
- /* harmony default export */ __webpack_exports__["a"] = (FormControlContext);
6383
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6384
-
6385
- /***/ }),
6386
- /* 100 */
6387
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6388
-
6389
- "use strict";
6390
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Portal__ = __webpack_require__(623);
6391
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Portal__["a"]; });
6392
-
6393
-
6394
- /***/ }),
6395
- /* 101 */
6396
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6397
-
6398
- "use strict";
6399
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fab__ = __webpack_require__(636);
6400
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fab__["a"]; });
6401
-
6402
-
6403
- /***/ }),
6404
- /* 102 */
6405
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6406
-
6407
- "use strict";
6408
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FilledInput__ = __webpack_require__(637);
6409
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FilledInput__["a"]; });
6410
-
6411
-
6412
- /***/ }),
6413
- /* 103 */
6414
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6415
-
6416
- "use strict";
6417
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormControl__ = __webpack_require__(640);
6418
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormControl__["a"]; });
6419
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__useFormControl__ = __webpack_require__(53);
6420
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__useFormControl__["a"]; });
6421
-
6422
-
6423
-
6424
- /***/ }),
6425
- /* 104 */
6426
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6427
-
6428
- "use strict";
6429
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withWidth__ = __webpack_require__(309);
6430
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["a"]; });
6431
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["b"]; });
6432
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["c"]; });
6433
-
6434
-
6435
-
6436
- /***/ }),
6437
- /* 105 */
6438
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6439
-
6440
- "use strict";
6441
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__ = __webpack_require__(671);
6442
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__["a"]; });
6443
-
6444
-
6445
- /***/ }),
6446
- /* 106 */
6447
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6448
-
6449
- "use strict";
6450
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popper__ = __webpack_require__(673);
6451
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popper__["a"]; });
6452
-
6453
-
6454
- /***/ }),
6455
- /* 107 */
6456
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6457
-
6458
- "use strict";
6459
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Select__ = __webpack_require__(681);
6460
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Select__["a"]; });
6461
-
6462
-
6463
- /***/ }),
6464
- /* 108 */
6465
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6466
-
6467
- "use strict";
6468
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6469
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tooltip__ = __webpack_require__(719);
6470
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Tooltip__["a"]; });
6471
-
6472
-
6473
- /***/ }),
6474
- /* 109 */
6475
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6476
-
6477
- "use strict";
6478
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabContext__ = __webpack_require__(361);
6479
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["a"]; });
6480
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["b"]; });
6481
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["c"]; });
6482
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["d"]; });
6483
-
6484
-
6485
-
6486
- /***/ }),
6487
- /* 110 */
6488
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6489
-
6490
- "use strict";
6491
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6492
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6493
-
6494
- /**
6495
- * @ignore - internal component.
6496
- */
6497
-
6498
- var TimelineContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
6499
-
6500
- if (process.env.NODE_ENV !== 'production') {
6501
- TimelineContext.displayName = 'TimelineContext';
6502
- }
6503
-
6504
- /* harmony default export */ __webpack_exports__["a"] = (TimelineContext);
6505
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6506
-
6507
- /***/ }),
6508
- /* 111 */
6509
- /***/ (function(module, exports, __webpack_require__) {
6510
-
6511
- var isFunction = __webpack_require__(383),
6512
- isLength = __webpack_require__(179);
6513
-
6514
- /**
6515
- * Checks if `value` is array-like. A value is considered array-like if it's
6516
- * not a function and has a `value.length` that's an integer greater than or
6517
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
6518
- *
6519
- * @static
6520
- * @memberOf _
6521
- * @since 4.0.0
6522
- * @category Lang
6523
- * @param {*} value The value to check.
6524
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6525
- * @example
6526
- *
6527
- * _.isArrayLike([1, 2, 3]);
6528
- * // => true
6529
- *
6530
- * _.isArrayLike(document.body.children);
6531
- * // => true
6532
- *
6533
- * _.isArrayLike('abc');
6534
- * // => true
6535
- *
6536
- * _.isArrayLike(_.noop);
6537
- * // => false
6538
- */
6539
- function isArrayLike(value) {
6540
- return value != null && isLength(value.length) && !isFunction(value);
6541
- }
6542
-
6543
- module.exports = isArrayLike;
6544
-
6545
-
6546
- /***/ }),
6547
- /* 112 */
6548
- /***/ (function(module, exports, __webpack_require__) {
6549
-
6550
- var listCacheClear = __webpack_require__(778),
6551
- listCacheDelete = __webpack_require__(779),
6552
- listCacheGet = __webpack_require__(780),
6553
- listCacheHas = __webpack_require__(781),
6554
- listCacheSet = __webpack_require__(782);
6555
-
6556
- /**
6557
- * Creates an list cache object.
6558
- *
6559
- * @private
6560
- * @constructor
6561
- * @param {Array} [entries] The key-value pairs to cache.
6562
- */
6563
- function ListCache(entries) {
6564
- var index = -1,
6565
- length = entries == null ? 0 : entries.length;
6566
-
6567
- this.clear();
6568
- while (++index < length) {
6569
- var entry = entries[index];
6570
- this.set(entry[0], entry[1]);
6571
- }
6572
- }
6573
-
6574
- // Add methods to `ListCache`.
6575
- ListCache.prototype.clear = listCacheClear;
6576
- ListCache.prototype['delete'] = listCacheDelete;
6577
- ListCache.prototype.get = listCacheGet;
6578
- ListCache.prototype.has = listCacheHas;
6579
- ListCache.prototype.set = listCacheSet;
6580
-
6581
- module.exports = ListCache;
6582
-
6583
-
6584
- /***/ }),
6585
- /* 113 */
6586
- /***/ (function(module, exports, __webpack_require__) {
6587
-
6588
- var eq = __webpack_require__(185);
6589
-
6590
- /**
6591
- * Gets the index at which the `key` is found in `array` of key-value pairs.
6592
- *
6593
- * @private
6594
- * @param {Array} array The array to inspect.
6595
- * @param {*} key The key to search for.
6596
- * @returns {number} Returns the index of the matched value, else `-1`.
6597
- */
6598
- function assocIndexOf(array, key) {
6599
- var length = array.length;
6600
- while (length--) {
6601
- if (eq(array[length][0], key)) {
6602
- return length;
6603
- }
6604
- }
6605
- return -1;
6606
- }
6607
-
6608
- module.exports = assocIndexOf;
6609
-
6610
-
6611
- /***/ }),
6612
- /* 114 */
6613
- /***/ (function(module, exports, __webpack_require__) {
6614
-
6615
- var getNative = __webpack_require__(55);
6616
-
6617
- /* Built-in method references that are verified to be native. */
6618
- var nativeCreate = getNative(Object, 'create');
6619
-
6620
- module.exports = nativeCreate;
6621
-
6622
-
6623
- /***/ }),
6624
- /* 115 */
6625
- /***/ (function(module, exports, __webpack_require__) {
6626
-
6627
- var isKeyable = __webpack_require__(800);
6628
-
6629
- /**
6630
- * Gets the data for `map`.
6631
- *
6632
- * @private
6633
- * @param {Object} map The map to query.
6634
- * @param {string} key The reference key.
6635
- * @returns {*} Returns the map data.
6636
- */
6637
- function getMapData(map, key) {
6638
- var data = map.__data__;
6639
- return isKeyable(key)
6640
- ? data[typeof key == 'string' ? 'string' : 'hash']
6641
- : data.map;
6642
- }
6643
-
6644
- module.exports = getMapData;
6645
-
6646
-
6647
- /***/ }),
6648
- /* 116 */
6649
- /***/ (function(module, exports, __webpack_require__) {
6650
-
6651
- var DataView = __webpack_require__(815),
6652
- Map = __webpack_require__(186),
6653
- Promise = __webpack_require__(816),
6654
- Set = __webpack_require__(817),
6655
- WeakMap = __webpack_require__(818),
6656
- baseGetTag = __webpack_require__(54),
6657
- toSource = __webpack_require__(386);
6658
-
6659
- /** `Object#toString` result references. */
6660
- var mapTag = '[object Map]',
6661
- objectTag = '[object Object]',
6662
- promiseTag = '[object Promise]',
6663
- setTag = '[object Set]',
6664
- weakMapTag = '[object WeakMap]';
6665
-
6666
- var dataViewTag = '[object DataView]';
6667
-
6668
- /** Used to detect maps, sets, and weakmaps. */
6669
- var dataViewCtorString = toSource(DataView),
6670
- mapCtorString = toSource(Map),
6671
- promiseCtorString = toSource(Promise),
6672
- setCtorString = toSource(Set),
6673
- weakMapCtorString = toSource(WeakMap);
6674
-
6675
- /**
6676
- * Gets the `toStringTag` of `value`.
6677
- *
6678
- * @private
6679
- * @param {*} value The value to query.
6680
- * @returns {string} Returns the `toStringTag`.
6681
- */
6682
- var getTag = baseGetTag;
6683
-
6684
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
6685
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
6686
- (Map && getTag(new Map) != mapTag) ||
6687
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
6688
- (Set && getTag(new Set) != setTag) ||
6689
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
6690
- getTag = function(value) {
6691
- var result = baseGetTag(value),
6692
- Ctor = result == objectTag ? value.constructor : undefined,
6693
- ctorString = Ctor ? toSource(Ctor) : '';
6694
-
6695
- if (ctorString) {
6696
- switch (ctorString) {
6697
- case dataViewCtorString: return dataViewTag;
6698
- case mapCtorString: return mapTag;
6699
- case promiseCtorString: return promiseTag;
6700
- case setCtorString: return setTag;
6701
- case weakMapCtorString: return weakMapTag;
6702
- }
6703
- }
6704
- return result;
6705
- };
6706
- }
6707
-
6708
- module.exports = getTag;
6709
-
6710
-
6711
- /***/ }),
6712
- /* 117 */
6713
- /***/ (function(module, exports, __webpack_require__) {
6714
-
6715
- var isSymbol = __webpack_require__(190);
6716
-
6717
- /** Used as references for various `Number` constants. */
6718
- var INFINITY = 1 / 0;
6719
-
6720
- /**
6721
- * Converts `value` to a string key if it's not a string or symbol.
6722
- *
6723
- * @private
6724
- * @param {*} value The value to inspect.
6725
- * @returns {string|symbol} Returns the key.
6726
- */
6727
- function toKey(value) {
6728
- if (typeof value == 'string' || isSymbol(value)) {
6729
- return value;
6730
- }
6731
- var result = (value + '');
6732
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
6733
- }
6734
-
6735
- module.exports = toKey;
6736
-
6737
-
6738
- /***/ }),
6739
- /* 118 */
6740
- /***/ (function(module, exports, __webpack_require__) {
6741
-
6742
- var assignValue = __webpack_require__(398),
6743
- baseAssignValue = __webpack_require__(399);
6744
-
6745
- /**
6746
- * Copies properties of `source` to `object`.
6747
- *
6748
- * @private
6749
- * @param {Object} source The object to copy properties from.
6750
- * @param {Array} props The property identifiers to copy.
6751
- * @param {Object} [object={}] The object to copy properties to.
6752
- * @param {Function} [customizer] The function to customize copied values.
6753
- * @returns {Object} Returns `object`.
6754
- */
6755
- function copyObject(source, props, object, customizer) {
6756
- var isNew = !object;
6757
- object || (object = {});
6758
-
6759
- var index = -1,
6760
- length = props.length;
6761
-
6762
- while (++index < length) {
6763
- var key = props[index];
6764
-
6765
- var newValue = customizer
6766
- ? customizer(object[key], source[key], key, object, source)
6767
- : undefined;
6768
-
6769
- if (newValue === undefined) {
6770
- newValue = source[key];
6771
- }
6772
- if (isNew) {
6773
- baseAssignValue(object, key, newValue);
6774
- } else {
6775
- assignValue(object, key, newValue);
6776
- }
6777
- }
6778
- return object;
6779
- }
6780
-
6781
- module.exports = copyObject;
6782
-
6783
-
6784
- /***/ }),
6785
- /* 119 */
6786
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6787
-
6788
- "use strict";
6789
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__listCacheClear_js__ = __webpack_require__(874);
6790
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__listCacheDelete_js__ = __webpack_require__(875);
6791
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__listCacheGet_js__ = __webpack_require__(876);
6792
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__listCacheHas_js__ = __webpack_require__(877);
6793
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__listCacheSet_js__ = __webpack_require__(878);
6794
-
6795
-
6796
-
6797
-
6798
-
6799
-
6800
- /**
6801
- * Creates an list cache object.
6802
- *
6803
- * @private
6804
- * @constructor
6805
- * @param {Array} [entries] The key-value pairs to cache.
6806
- */
6807
- function ListCache(entries) {
6808
- var index = -1,
6809
- length = entries == null ? 0 : entries.length;
6810
-
6811
- this.clear();
6812
- while (++index < length) {
6813
- var entry = entries[index];
6814
- this.set(entry[0], entry[1]);
6815
- }
6816
- }
6817
-
6818
- // Add methods to `ListCache`.
6819
- ListCache.prototype.clear = __WEBPACK_IMPORTED_MODULE_0__listCacheClear_js__["a" /* default */];
6820
- ListCache.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_1__listCacheDelete_js__["a" /* default */];
6821
- ListCache.prototype.get = __WEBPACK_IMPORTED_MODULE_2__listCacheGet_js__["a" /* default */];
6822
- ListCache.prototype.has = __WEBPACK_IMPORTED_MODULE_3__listCacheHas_js__["a" /* default */];
6823
- ListCache.prototype.set = __WEBPACK_IMPORTED_MODULE_4__listCacheSet_js__["a" /* default */];
6824
-
6825
- /* harmony default export */ __webpack_exports__["a"] = (ListCache);
6826
-
6827
-
6828
- /***/ }),
6829
- /* 120 */
6830
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6831
-
6832
- "use strict";
6833
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__eq_js__ = __webpack_require__(86);
6834
-
6835
-
6836
- /**
6837
- * Gets the index at which the `key` is found in `array` of key-value pairs.
6838
- *
6839
- * @private
6840
- * @param {Array} array The array to inspect.
6841
- * @param {*} key The key to search for.
6842
- * @returns {number} Returns the index of the matched value, else `-1`.
6843
- */
6844
- function assocIndexOf(array, key) {
6845
- var length = array.length;
6846
- while (length--) {
6847
- if (Object(__WEBPACK_IMPORTED_MODULE_0__eq_js__["a" /* default */])(array[length][0], key)) {
6848
- return length;
6849
- }
6850
- }
6851
- return -1;
6852
- }
6853
-
6854
- /* harmony default export */ __webpack_exports__["a"] = (assocIndexOf);
6855
-
6856
-
6857
- /***/ }),
6858
- /* 121 */
6859
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6860
-
6861
- "use strict";
6862
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(30);
6863
-
6864
-
6865
- /** Built-in value references. */
6866
- var Symbol = __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Symbol;
6867
-
6868
- /* harmony default export */ __webpack_exports__["a"] = (Symbol);
6869
-
6870
-
6871
- /***/ }),
6872
- /* 122 */
6873
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6874
-
6875
- "use strict";
6876
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(56);
6877
-
6878
-
6879
- /* Built-in method references that are verified to be native. */
6880
- var nativeCreate = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(Object, 'create');
6881
-
6882
- /* harmony default export */ __webpack_exports__["a"] = (nativeCreate);
6883
-
6884
-
6885
- /***/ }),
6886
- /* 123 */
6887
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6888
-
6889
- "use strict";
6890
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isKeyable_js__ = __webpack_require__(898);
6891
-
6892
-
6893
- /**
6894
- * Gets the data for `map`.
6895
- *
6896
- * @private
6897
- * @param {Object} map The map to query.
6898
- * @param {string} key The reference key.
6899
- * @returns {*} Returns the map data.
6900
- */
6901
- function getMapData(map, key) {
6902
- var data = map.__data__;
6903
- return Object(__WEBPACK_IMPORTED_MODULE_0__isKeyable_js__["a" /* default */])(key)
6904
- ? data[typeof key == 'string' ? 'string' : 'hash']
6905
- : data.map;
6906
- }
6907
-
6908
- /* harmony default export */ __webpack_exports__["a"] = (getMapData);
6909
-
6910
-
6911
- /***/ }),
6912
- /* 124 */
6913
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6914
-
6915
- "use strict";
6916
- /**
6917
- * This method returns the first argument it receives.
6918
- *
6919
- * @static
6920
- * @since 0.1.0
6921
- * @memberOf _
6922
- * @category Util
6923
- * @param {*} value Any value.
6924
- * @returns {*} Returns `value`.
6925
- * @example
6926
- *
6927
- * var object = { 'a': 1 };
6928
- *
6929
- * console.log(_.identity(object) === object);
6930
- * // => true
6931
- */
6932
- function identity(value) {
6933
- return value;
6934
- }
6935
-
6936
- /* harmony default export */ __webpack_exports__["a"] = (identity);
6937
-
6938
-
6939
- /***/ }),
6940
- /* 125 */
6941
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6942
-
6943
- "use strict";
6944
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(69);
6945
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(57);
6946
-
6947
-
6948
-
6949
- /** `Object#toString` result references. */
6950
- var symbolTag = '[object Symbol]';
6951
-
6952
- /**
6953
- * Checks if `value` is classified as a `Symbol` primitive or object.
6954
- *
6955
- * @static
6956
- * @memberOf _
6957
- * @since 4.0.0
6958
- * @category Lang
6959
- * @param {*} value The value to check.
6960
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
6961
- * @example
6962
- *
6963
- * _.isSymbol(Symbol.iterator);
6964
- * // => true
6965
- *
6966
- * _.isSymbol('abc');
6967
- * // => false
6968
- */
6969
- function isSymbol(value) {
6970
- return typeof value == 'symbol' ||
6971
- (Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value) == symbolTag);
6972
- }
6973
-
6974
- /* harmony default export */ __webpack_exports__["a"] = (isSymbol);
6975
-
6976
-
6977
- /***/ }),
6978
- /* 126 */
6979
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6980
-
6981
- "use strict";
6982
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isSymbol_js__ = __webpack_require__(125);
6983
-
6984
-
6985
- /** Used as references for various `Number` constants. */
6986
- var INFINITY = 1 / 0;
6987
-
6988
- /**
6989
- * Converts `value` to a string key if it's not a string or symbol.
6990
- *
6991
- * @private
6992
- * @param {*} value The value to inspect.
6993
- * @returns {string|symbol} Returns the key.
6994
- */
6995
- function toKey(value) {
6996
- if (typeof value == 'string' || Object(__WEBPACK_IMPORTED_MODULE_0__isSymbol_js__["a" /* default */])(value)) {
6997
- return value;
6998
- }
6999
- var result = (value + '');
7000
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
7001
- }
7002
-
7003
- /* harmony default export */ __webpack_exports__["a"] = (toKey);
7004
-
7005
-
7006
- /***/ }),
7007
- /* 127 */
7008
- /***/ (function(module, exports, __webpack_require__) {
7009
-
7010
- "use strict";
7011
- /* WEBPACK VAR INJECTION */(function(process) {/**
7012
- * Copyright (c) 2013-present, Facebook, Inc.
7013
- *
7014
- * This source code is licensed under the MIT license found in the
7015
- * LICENSE file in the root directory of this source tree.
7016
- */
7017
-
7018
-
7019
-
7020
- var printWarning = function() {};
7021
-
7022
- if (process.env.NODE_ENV !== 'production') {
7023
- var ReactPropTypesSecret = __webpack_require__(128);
7024
- var loggedTypeFailures = {};
7025
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
7026
-
7027
- printWarning = function(text) {
7028
- var message = 'Warning: ' + text;
7029
- if (typeof console !== 'undefined') {
7030
- console.error(message);
7031
- }
7032
- try {
7033
- // --- Welcome to debugging React ---
7034
- // This error was thrown as a convenience so that you can use this stack
7035
- // to find the callsite that caused this warning to fire.
7036
- throw new Error(message);
7037
- } catch (x) {}
7038
- };
7039
- }
7040
-
7041
- /**
7042
- * Assert that the values match with the type specs.
7043
- * Error messages are memorized and will only be shown once.
7044
- *
7045
- * @param {object} typeSpecs Map of name to a ReactPropType
7046
- * @param {object} values Runtime values that need to be type-checked
7047
- * @param {string} location e.g. "prop", "context", "child context"
7048
- * @param {string} componentName Name of the component for error messages.
7049
- * @param {?Function} getStack Returns the component stack.
7050
- * @private
7051
- */
7052
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
7053
- if (process.env.NODE_ENV !== 'production') {
7054
- for (var typeSpecName in typeSpecs) {
7055
- if (has(typeSpecs, typeSpecName)) {
7056
- var error;
7057
- // Prop type validation may throw. In case they do, we don't want to
7058
- // fail the render phase where it didn't fail before. So we log it.
7059
- // After these have been cleaned up, we'll let them throw.
7060
- try {
7061
- // This is intentionally an invariant that gets caught. It's the same
7062
- // behavior as without this statement except with a better message.
7063
- if (typeof typeSpecs[typeSpecName] !== 'function') {
7064
- var err = Error(
7065
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
7066
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
7067
- );
7068
- err.name = 'Invariant Violation';
7069
- throw err;
7070
- }
7071
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
7072
- } catch (ex) {
7073
- error = ex;
7074
- }
7075
- if (error && !(error instanceof Error)) {
7076
- printWarning(
7077
- (componentName || 'React class') + ': type specification of ' +
7078
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
7079
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
7080
- 'You may have forgotten to pass an argument to the type checker ' +
7081
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
7082
- 'shape all require an argument).'
7083
- );
7084
- }
7085
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
7086
- // Only monitor this failure once because there tends to be a lot of the
7087
- // same error.
7088
- loggedTypeFailures[error.message] = true;
7089
-
7090
- var stack = getStack ? getStack() : '';
7091
-
7092
- printWarning(
7093
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
7094
- );
7095
- }
7096
- }
7097
- }
7098
- }
7099
- }
7100
-
7101
- /**
7102
- * Resets warning cache when testing.
7103
- *
7104
- * @private
7105
- */
7106
- checkPropTypes.resetWarningCache = function() {
7107
- if (process.env.NODE_ENV !== 'production') {
7108
- loggedTypeFailures = {};
7109
- }
7110
- }
7111
-
7112
- module.exports = checkPropTypes;
7113
-
7114
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
7115
-
7116
- /***/ }),
7117
- /* 128 */
7118
- /***/ (function(module, exports, __webpack_require__) {
7119
-
7120
- "use strict";
7121
- /**
7122
- * Copyright (c) 2013-present, Facebook, Inc.
7123
- *
7124
- * This source code is licensed under the MIT license found in the
7125
- * LICENSE file in the root directory of this source tree.
7126
- */
7127
-
7128
-
7129
-
7130
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
7131
-
7132
- module.exports = ReactPropTypesSecret;
7133
-
7134
-
7135
- /***/ }),
7136
- /* 129 */
7137
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7138
-
7139
- "use strict";
7140
- /* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';
7141
- var prefix = 'Invariant failed';
7142
- function invariant(condition, message) {
7143
- if (condition) {
7144
- return;
7145
- }
7146
- if (isProduction) {
7147
- throw new Error(prefix);
7148
- }
7149
- throw new Error(prefix + ": " + (message || ''));
7150
- }
7151
-
7152
- /* harmony default export */ __webpack_exports__["a"] = (invariant);
7153
-
7154
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7155
-
7156
- /***/ }),
7157
- /* 130 */
7158
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7159
-
7160
- "use strict";
7161
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = chainPropTypes;
7162
- function chainPropTypes(propType1, propType2) {
7163
- if (process.env.NODE_ENV === 'production') {
7164
- return function () {
7165
- return null;
7166
- };
7167
- }
7168
-
7169
- return function validate() {
7170
- return propType1.apply(void 0, arguments) || propType2.apply(void 0, arguments);
7171
- };
7172
- }
7173
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7174
-
7175
- /***/ }),
7176
- /* 131 */
7177
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7178
-
7179
- "use strict";
7180
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getThemeProps__ = __webpack_require__(467);
7181
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__getThemeProps__["a"]; });
7182
-
7183
-
7184
- /***/ }),
7185
- /* 132 */
7186
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7187
-
7188
- "use strict";
7189
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__jssPreset__ = __webpack_require__(468);
7190
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__jssPreset__["a"]; });
7191
-
7192
-
7193
- /***/ }),
7194
- /* 133 */
7195
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7196
-
7197
- "use strict";
7198
- /* harmony export (immutable) */ __webpack_exports__["a"] = _unsupportedIterableToArray;
7199
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__ = __webpack_require__(215);
7200
-
7201
- function _unsupportedIterableToArray(o, minLen) {
7202
- if (!o) return;
7203
- if (typeof o === "string") return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__["a" /* default */])(o, minLen);
7204
- var n = Object.prototype.toString.call(o).slice(8, -1);
7205
- if (n === "Object" && o.constructor) n = o.constructor.name;
7206
- if (n === "Map" || n === "Set") return Array.from(o);
7207
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__["a" /* default */])(o, minLen);
7208
- }
7209
-
7210
- /***/ }),
7211
- /* 134 */
7212
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7213
-
7214
- "use strict";
7215
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeClasses__ = __webpack_require__(481);
7216
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__mergeClasses__["a"]; });
7217
-
7218
-
7219
- /***/ }),
7220
- /* 135 */
7221
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7222
-
7223
- "use strict";
7224
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(15);
7225
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
7226
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_ui_utils__ = __webpack_require__(7);
7227
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createBreakpoints__ = __webpack_require__(226);
7228
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__createMixins__ = __webpack_require__(491);
7229
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__createPalette__ = __webpack_require__(492);
7230
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__createTypography__ = __webpack_require__(493);
7231
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shadows__ = __webpack_require__(494);
7232
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shape__ = __webpack_require__(495);
7233
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__createSpacing__ = __webpack_require__(496);
7234
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__transitions__ = __webpack_require__(37);
7235
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__zIndex__ = __webpack_require__(247);
7236
-
7237
-
7238
-
7239
-
7240
-
7241
-
7242
-
7243
-
7244
-
7245
-
7246
-
7247
-
7248
-
7249
- function createMuiTheme() {
7250
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7251
-
7252
- var _options$breakpoints = options.breakpoints,
7253
- breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,
7254
- _options$mixins = options.mixins,
7255
- mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,
7256
- _options$palette = options.palette,
7257
- paletteInput = _options$palette === void 0 ? {} : _options$palette,
7258
- spacingInput = options.spacing,
7259
- _options$typography = options.typography,
7260
- typographyInput = _options$typography === void 0 ? {} : _options$typography,
7261
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
7262
-
7263
- var palette = Object(__WEBPACK_IMPORTED_MODULE_5__createPalette__["a" /* default */])(paletteInput);
7264
- var breakpoints = Object(__WEBPACK_IMPORTED_MODULE_3__createBreakpoints__["a" /* default */])(breakpointsInput);
7265
- var spacing = Object(__WEBPACK_IMPORTED_MODULE_9__createSpacing__["a" /* default */])(spacingInput);
7266
- var muiTheme = Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["c" /* deepmerge */])({
7267
- breakpoints: breakpoints,
7268
- direction: 'ltr',
7269
- mixins: Object(__WEBPACK_IMPORTED_MODULE_4__createMixins__["a" /* default */])(breakpoints, spacing, mixinsInput),
7270
- overrides: {},
7271
- // Inject custom styles
7272
- palette: palette,
7273
- props: {},
7274
- // Provide default props
7275
- shadows: __WEBPACK_IMPORTED_MODULE_7__shadows__["a" /* default */],
7276
- typography: Object(__WEBPACK_IMPORTED_MODULE_6__createTypography__["a" /* default */])(palette, typographyInput),
7277
- spacing: spacing,
7278
- shape: __WEBPACK_IMPORTED_MODULE_8__shape__["a" /* default */],
7279
- transitions: __WEBPACK_IMPORTED_MODULE_10__transitions__["a" /* default */],
7280
- zIndex: __WEBPACK_IMPORTED_MODULE_11__zIndex__["a" /* default */]
7281
- }, other);
7282
-
7283
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
7284
- args[_key - 1] = arguments[_key];
7285
- }
7286
-
7287
- muiTheme = args.reduce(function (acc, argument) {
7288
- return Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["c" /* deepmerge */])(acc, argument);
7289
- }, muiTheme);
7290
-
7291
- if (process.env.NODE_ENV !== 'production') {
7292
- var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'];
7293
-
7294
- var traverse = function traverse(node, parentKey) {
7295
- var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
7296
- var key; // eslint-disable-next-line guard-for-in, no-restricted-syntax
7297
-
7298
- for (key in node) {
7299
- var child = node[key];
7300
-
7301
- if (depth === 1) {
7302
- if (key.indexOf('Mui') === 0 && child) {
7303
- traverse(child, key, depth + 1);
7304
- }
7305
- } else if (pseudoClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {
7306
- if (process.env.NODE_ENV !== 'production') {
7307
- console.error(["Material-UI: The `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), 'You can not override it like this: ', JSON.stringify(node, null, 2), '', 'Instead, you need to use the $ruleName syntax:', JSON.stringify({
7308
- root: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, "&$".concat(key), child)
7309
- }, null, 2), '', 'https://material-ui.com/r/pseudo-classes-guide'].join('\n'));
7310
- } // Remove the style to prevent global conflicts.
7311
-
7312
-
7313
- node[key] = {};
7314
- }
7315
- }
7316
- };
7317
-
7318
- traverse(muiTheme.overrides);
7319
- }
7320
-
7321
- return muiTheme;
7322
- }
7323
-
7324
- /* harmony default export */ __webpack_exports__["a"] = (createMuiTheme);
7325
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7326
-
7327
- /***/ }),
7328
- /* 136 */
7329
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7330
-
7331
- "use strict";
7332
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = handleBreakpoints;
7333
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(27);
7334
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
7335
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__ = __webpack_require__(44);
7336
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
7337
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
7338
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__merge__ = __webpack_require__(91);
7339
-
7340
-
7341
-
7342
-
7343
- // The breakpoint **start** at this value.
7344
- // For instance with the first breakpoint xs: [xs, sm[.
7345
-
7346
- var values = {
7347
- xs: 0,
7348
- sm: 600,
7349
- md: 960,
7350
- lg: 1280,
7351
- xl: 1920
7352
- };
7353
- var defaultBreakpoints = {
7354
- // Sorted ASC by size. That's important.
7355
- // It can't be configured as it's used statically for propTypes.
7356
- keys: ['xs', 'sm', 'md', 'lg', 'xl'],
7357
- up: function up(key) {
7358
- return "@media (min-width:".concat(values[key], "px)");
7359
- }
7360
- };
7361
- function handleBreakpoints(props, propValue, styleFromPropValue) {
7362
- if (process.env.NODE_ENV !== 'production') {
7363
- if (!props.theme) {
7364
- console.error('Material-UI: You are calling a style function without a theme value.');
7365
- }
7366
- }
7367
-
7368
- if (Array.isArray(propValue)) {
7369
- var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7370
- return propValue.reduce(function (acc, item, index) {
7371
- acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
7372
- return acc;
7373
- }, {});
7374
- }
7375
-
7376
- if (Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__["a" /* default */])(propValue) === 'object') {
7377
- var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7378
-
7379
- return Object.keys(propValue).reduce(function (acc, breakpoint) {
7380
- acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);
7381
- return acc;
7382
- }, {});
7383
- }
7384
-
7385
- var output = styleFromPropValue(propValue);
7386
- return output;
7387
- }
7388
-
7389
- function breakpoints(styleFunction) {
7390
- var newStyleFunction = function newStyleFunction(props) {
7391
- var base = styleFunction(props);
7392
- var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7393
- var extended = themeBreakpoints.keys.reduce(function (acc, key) {
7394
- if (props[key]) {
7395
- acc = acc || {};
7396
- acc[themeBreakpoints.up(key)] = styleFunction(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
7397
- theme: props.theme
7398
- }, props[key]));
7399
- }
7400
-
7401
- return acc;
7402
- }, null);
7403
- return Object(__WEBPACK_IMPORTED_MODULE_4__merge__["a" /* default */])(base, extended);
7404
- };
7405
-
7406
- newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, styleFunction.propTypes, {
7407
- xs: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7408
- sm: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7409
- md: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7410
- lg: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7411
- xl: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
7412
- }) : {};
7413
- newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(styleFunction.filterProps));
7414
- return newStyleFunction;
7415
- }
7416
-
7417
- /* unused harmony default export */ var _unused_webpack_default_export = (breakpoints);
7418
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7419
-
7420
- /***/ }),
7421
- /* 137 */
7422
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7423
-
7424
- "use strict";
7425
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ClassNames; });
7426
- /* unused harmony export Global */
7427
- /* unused harmony export createElement */
7428
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return jsx; });
7429
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return keyframes; });
7430
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(34);
7431
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
7432
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
7433
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(138);
7434
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__ = __webpack_require__(252);
7435
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["a"]; });
7436
- /* unused harmony reexport ThemeContext */
7437
- /* unused harmony reexport withEmotionCache */
7438
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_utils__ = __webpack_require__(253);
7439
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_serialize__ = __webpack_require__(139);
7440
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__ = __webpack_require__(251);
7441
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__emotion_css__ = __webpack_require__(76);
7442
- /* unused harmony reexport css */
7443
-
7444
-
7445
-
7446
-
7447
-
7448
-
7449
-
7450
-
7451
-
7452
-
7453
-
7454
- var jsx = function jsx(type, props) {
7455
- var args = arguments;
7456
-
7457
- if (props == null || !__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["e" /* h */].call(props, 'css')) {
7458
- // $FlowFixMe
7459
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(undefined, args);
7460
- }
7461
-
7462
- var argsLength = args.length;
7463
- var createElementArgArray = new Array(argsLength);
7464
- createElementArgArray[0] = __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["b" /* E */];
7465
- createElementArgArray[1] = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["d" /* c */])(type, props);
7466
-
7467
- for (var i = 2; i < argsLength; i++) {
7468
- createElementArgArray[i] = args[i];
7469
- } // $FlowFixMe
7470
-
7471
-
7472
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(null, createElementArgArray);
7473
- };
7474
-
7475
- var warnedAboutCssPropForGlobal = false;
7476
- var Global = /* #__PURE__ */Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, cache) {
7477
- if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
7478
- // probably using the custom createElement which
7479
- // means it will be turned into a className prop
7480
- // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
7481
- props.className || props.css)) {
7482
- console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
7483
- warnedAboutCssPropForGlobal = true;
7484
- }
7485
-
7486
- var styles = props.styles;
7487
-
7488
- if (typeof styles === 'function') {
7489
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) {
7490
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles(theme)]);
7491
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
7492
- serialized: serialized,
7493
- cache: cache
7494
- });
7495
- });
7496
- }
7497
-
7498
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles]);
7499
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
7500
- serialized: serialized,
7501
- cache: cache
7502
- });
7503
- });
7504
-
7505
- // maintain place over rerenders.
7506
- // initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
7507
- // initial client-side render from SSR, use place of hydrating tag
7508
- var InnerGlobal = /*#__PURE__*/function (_React$Component) {
7509
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(InnerGlobal, _React$Component);
7510
-
7511
- function InnerGlobal(props, context, updater) {
7512
- return _React$Component.call(this, props, context, updater) || this;
7513
- }
7514
-
7515
- var _proto = InnerGlobal.prototype;
7516
-
7517
- _proto.componentDidMount = function componentDidMount() {
7518
- this.sheet = new __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__["a" /* StyleSheet */]({
7519
- key: this.props.cache.key + "-global",
7520
- nonce: this.props.cache.sheet.nonce,
7521
- container: this.props.cache.sheet.container
7522
- }); // $FlowFixMe
7523
-
7524
- var node = document.querySelector("style[data-emotion-" + this.props.cache.key + "=\"" + this.props.serialized.name + "\"]");
7525
-
7526
- if (node !== null) {
7527
- this.sheet.tags.push(node);
7528
- }
7529
-
7530
- if (this.props.cache.sheet.tags.length) {
7531
- this.sheet.before = this.props.cache.sheet.tags[0];
7532
- }
7533
-
7534
- this.insertStyles();
7535
- };
7536
-
7537
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
7538
- if (prevProps.serialized.name !== this.props.serialized.name) {
7539
- this.insertStyles();
7540
- }
7541
- };
7542
-
7543
- _proto.insertStyles = function insertStyles$1() {
7544
- if (this.props.serialized.next !== undefined) {
7545
- // insert keyframes
7546
- Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(this.props.cache, this.props.serialized.next, true);
7547
- }
7548
-
7549
- if (this.sheet.tags.length) {
7550
- // if this doesn't exist then it will be null so the style element will be appended
7551
- var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling;
7552
- this.sheet.before = element;
7553
- this.sheet.flush();
7554
- }
7555
-
7556
- this.props.cache.insert("", this.props.serialized, this.sheet, false);
7557
- };
7558
-
7559
- _proto.componentWillUnmount = function componentWillUnmount() {
7560
- this.sheet.flush();
7561
- };
7562
-
7563
- _proto.render = function render() {
7564
-
7565
- return null;
7566
- };
7567
-
7568
- return InnerGlobal;
7569
- }(__WEBPACK_IMPORTED_MODULE_1_react__["Component"]);
7570
-
7571
- var keyframes = function keyframes() {
7572
- var insertable = __WEBPACK_IMPORTED_MODULE_7__emotion_css__["a" /* default */].apply(void 0, arguments);
7573
- var name = "animation-" + insertable.name; // $FlowFixMe
7574
-
7575
- return {
7576
- name: name,
7577
- styles: "@keyframes " + name + "{" + insertable.styles + "}",
7578
- anim: 1,
7579
- toString: function toString() {
7580
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
7581
- }
7582
- };
7583
- };
7584
-
7585
- var classnames = function classnames(args) {
7586
- var len = args.length;
7587
- var i = 0;
7588
- var cls = '';
7589
-
7590
- for (; i < len; i++) {
7591
- var arg = args[i];
7592
- if (arg == null) continue;
7593
- var toAdd = void 0;
7594
-
7595
- switch (typeof arg) {
7596
- case 'boolean':
7597
- break;
7598
-
7599
- case 'object':
7600
- {
7601
- if (Array.isArray(arg)) {
7602
- toAdd = classnames(arg);
7603
- } else {
7604
- toAdd = '';
7605
-
7606
- for (var k in arg) {
7607
- if (arg[k] && k) {
7608
- toAdd && (toAdd += ' ');
7609
- toAdd += k;
7610
- }
7611
- }
7612
- }
7613
-
7614
- break;
7615
- }
7616
-
7617
- default:
7618
- {
7619
- toAdd = arg;
7620
- }
7621
- }
7622
-
7623
- if (toAdd) {
7624
- cls && (cls += ' ');
7625
- cls += toAdd;
7626
- }
7627
- }
7628
-
7629
- return cls;
7630
- };
7631
-
7632
- function merge(registered, css, className) {
7633
- var registeredStyles = [];
7634
- var rawClassName = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["a" /* getRegisteredStyles */])(registered, registeredStyles, className);
7635
-
7636
- if (registeredStyles.length < 2) {
7637
- return className;
7638
- }
7639
-
7640
- return rawClassName + css(registeredStyles);
7641
- }
7642
-
7643
- var ClassNames = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, context) {
7644
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) {
7645
- var hasRendered = false;
7646
-
7647
- var css = function css() {
7648
- if (hasRendered && process.env.NODE_ENV !== 'production') {
7649
- throw new Error('css can only be used during render');
7650
- }
7651
-
7652
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
7653
- args[_key] = arguments[_key];
7654
- }
7655
-
7656
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])(args, context.registered);
7657
-
7658
- {
7659
- Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(context, serialized, false);
7660
- }
7661
-
7662
- return context.key + "-" + serialized.name;
7663
- };
7664
-
7665
- var cx = function cx() {
7666
- if (hasRendered && process.env.NODE_ENV !== 'production') {
7667
- throw new Error('cx can only be used during render');
7668
- }
7669
-
7670
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
7671
- args[_key2] = arguments[_key2];
7672
- }
7673
-
7674
- return merge(context.registered, css, classnames(args));
7675
- };
7676
-
7677
- var content = {
7678
- css: css,
7679
- cx: cx,
7680
- theme: theme
7681
- };
7682
- var ele = props.children(content);
7683
- hasRendered = true;
7684
-
7685
- return ele;
7686
- });
7687
- });
7688
-
7689
-
7690
-
7691
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7692
-
7693
- /***/ }),
7694
- /* 138 */
7695
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7696
-
7697
- "use strict";
7698
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__ = __webpack_require__(251);
7699
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__ = __webpack_require__(516);
7700
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_weak_memoize__ = __webpack_require__(517);
7701
-
7702
-
7703
-
7704
-
7705
- // https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet
7706
- // inlined to avoid umd wrapper and peerDep warnings/installing stylis
7707
- // since we use stylis after closure compiler
7708
- var delimiter = '/*|*/';
7709
- var needle = delimiter + '}';
7710
-
7711
- function toSheet(block) {
7712
- if (block) {
7713
- Sheet.current.insert(block + '}');
7714
- }
7715
- }
7716
-
7717
- var Sheet = {
7718
- current: null
7719
- };
7720
- var ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
7721
- switch (context) {
7722
- // property
7723
- case 1:
7724
- {
7725
- switch (content.charCodeAt(0)) {
7726
- case 64:
7727
- {
7728
- // @import
7729
- Sheet.current.insert(content + ';');
7730
- return '';
7731
- }
7732
- // charcode for l
7733
-
7734
- case 108:
7735
- {
7736
- // charcode for b
7737
- // this ignores label
7738
- if (content.charCodeAt(2) === 98) {
7739
- return '';
7740
- }
7741
- }
7742
- }
7743
-
7744
- break;
7745
- }
7746
- // selector
7747
-
7748
- case 2:
7749
- {
7750
- if (ns === 0) return content + delimiter;
7751
- break;
7752
- }
7753
- // at-rule
7754
-
7755
- case 3:
7756
- {
7757
- switch (ns) {
7758
- // @font-face, @page
7759
- case 102:
7760
- case 112:
7761
- {
7762
- Sheet.current.insert(selectors[0] + content);
7763
- return '';
7764
- }
7765
-
7766
- default:
7767
- {
7768
- return content + (at === 0 ? delimiter : '');
7769
- }
7770
- }
7771
- }
7772
-
7773
- case -2:
7774
- {
7775
- content.split(needle).forEach(toSheet);
7776
- }
7777
- }
7778
- };
7779
-
7780
- var createCache = function createCache(options) {
7781
- if (options === undefined) options = {};
7782
- var key = options.key || 'css';
7783
- var stylisOptions;
7784
-
7785
- if (options.prefix !== undefined) {
7786
- stylisOptions = {
7787
- prefix: options.prefix
7788
- };
7789
- }
7790
-
7791
- var stylis = new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__["a" /* default */](stylisOptions);
7792
-
7793
- if (process.env.NODE_ENV !== 'production') {
7794
- // $FlowFixMe
7795
- if (/[^a-z-]/.test(key)) {
7796
- throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
7797
- }
7798
- }
7799
-
7800
- var inserted = {}; // $FlowFixMe
7801
-
7802
- var container;
7803
-
7804
- {
7805
- container = options.container || document.head;
7806
- var nodes = document.querySelectorAll("style[data-emotion-" + key + "]");
7807
- Array.prototype.forEach.call(nodes, function (node) {
7808
- var attrib = node.getAttribute("data-emotion-" + key); // $FlowFixMe
7809
-
7810
- attrib.split(' ').forEach(function (id) {
7811
- inserted[id] = true;
7812
- });
7813
-
7814
- if (node.parentNode !== container) {
7815
- container.appendChild(node);
7816
- }
7817
- });
7818
- }
7819
-
7820
- var _insert;
7821
-
7822
- {
7823
- stylis.use(options.stylisPlugins)(ruleSheet);
7824
-
7825
- _insert = function insert(selector, serialized, sheet, shouldCache) {
7826
- var name = serialized.name;
7827
- Sheet.current = sheet;
7828
-
7829
- if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
7830
- var map = serialized.map;
7831
- Sheet.current = {
7832
- insert: function insert(rule) {
7833
- sheet.insert(rule + map);
7834
- }
7835
- };
7836
- }
7837
-
7838
- stylis(selector, serialized.styles);
7839
-
7840
- if (shouldCache) {
7841
- cache.inserted[name] = true;
7842
- }
7843
- };
7844
- }
7845
-
7846
- if (process.env.NODE_ENV !== 'production') {
7847
- // https://esbench.com/bench/5bf7371a4cd7e6009ef61d0a
7848
- var commentStart = /\/\*/g;
7849
- var commentEnd = /\*\//g;
7850
- stylis.use(function (context, content) {
7851
- switch (context) {
7852
- case -1:
7853
- {
7854
- while (commentStart.test(content)) {
7855
- commentEnd.lastIndex = commentStart.lastIndex;
7856
-
7857
- if (commentEnd.test(content)) {
7858
- commentStart.lastIndex = commentEnd.lastIndex;
7859
- continue;
7860
- }
7861
-
7862
- throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');
7863
- }
7864
-
7865
- commentStart.lastIndex = 0;
7866
- break;
7867
- }
7868
- }
7869
- });
7870
- stylis.use(function (context, content, selectors) {
7871
- switch (context) {
7872
- case -1:
7873
- {
7874
- var flag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
7875
- var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g);
7876
-
7877
- if (unsafePseudoClasses && cache.compat !== true) {
7878
- unsafePseudoClasses.forEach(function (unsafePseudoClass) {
7879
- var ignoreRegExp = new RegExp(unsafePseudoClass + ".*\\/\\* " + flag + " \\*\\/");
7880
- var ignore = ignoreRegExp.test(content);
7881
-
7882
- if (unsafePseudoClass && !ignore) {
7883
- console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
7884
- }
7885
- });
7886
- }
7887
-
7888
- break;
7889
- }
7890
- }
7891
- });
7892
- }
7893
-
7894
- var cache = {
7895
- key: key,
7896
- sheet: new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__["a" /* StyleSheet */]({
7897
- key: key,
7898
- container: container,
7899
- nonce: options.nonce,
7900
- speedy: options.speedy
7901
- }),
7902
- nonce: options.nonce,
7903
- inserted: inserted,
7904
- registered: {},
7905
- insert: _insert
7906
- };
7907
- return cache;
7908
- };
7909
-
7910
- /* harmony default export */ __webpack_exports__["a"] = (createCache);
7911
-
7912
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7913
-
7914
- /***/ }),
7915
- /* 139 */
7916
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7917
-
7918
- "use strict";
7919
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return serializeStyles; });
7920
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__ = __webpack_require__(519);
7921
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(520);
7922
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__ = __webpack_require__(521);
7923
-
7924
-
7925
-
7926
-
7927
- var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
7928
- 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).";
7929
- var hyphenateRegex = /[A-Z]|^ms/g;
7930
- var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
7931
-
7932
- var isCustomProperty = function isCustomProperty(property) {
7933
- return property.charCodeAt(1) === 45;
7934
- };
7935
-
7936
- var isProcessableValue = function isProcessableValue(value) {
7937
- return value != null && typeof value !== 'boolean';
7938
- };
7939
-
7940
- var processStyleName = Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__["a" /* default */])(function (styleName) {
7941
- return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
7942
- });
7943
-
7944
- var processStyleValue = function processStyleValue(key, value) {
7945
- switch (key) {
7946
- case 'animation':
7947
- case 'animationName':
7948
- {
7949
- if (typeof value === 'string') {
7950
- return value.replace(animationRegex, function (match, p1, p2) {
7951
- cursor = {
7952
- name: p1,
7953
- styles: p2,
7954
- next: cursor
7955
- };
7956
- return p1;
7957
- });
7958
- }
7959
- }
7960
- }
7961
-
7962
- if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
7963
- return value + 'px';
7964
- }
7965
-
7966
- return value;
7967
- };
7968
-
7969
- if (process.env.NODE_ENV !== 'production') {
7970
- var contentValuePattern = /(attr|calc|counters?|url)\(/;
7971
- var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
7972
- var oldProcessStyleValue = processStyleValue;
7973
- var msPattern = /^-ms-/;
7974
- var hyphenPattern = /-(.)/g;
7975
- var hyphenatedCache = {};
7976
-
7977
- processStyleValue = function processStyleValue(key, value) {
7978
- if (key === 'content') {
7979
- 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) !== "'")) {
7980
- console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
7981
- }
7982
- }
7983
-
7984
- var processed = oldProcessStyleValue(key, value);
7985
-
7986
- if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
7987
- hyphenatedCache[key] = true;
7988
- 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) {
7989
- return _char.toUpperCase();
7990
- }) + "?");
7991
- }
7992
-
7993
- return processed;
7994
- };
7995
- }
7996
-
7997
- var shouldWarnAboutInterpolatingClassNameFromCss = true;
7998
-
7999
- function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) {
8000
- if (interpolation == null) {
8001
- return '';
8002
- }
8003
-
8004
- if (interpolation.__emotion_styles !== undefined) {
8005
- if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
8006
- throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
8007
- }
8008
-
8009
- return interpolation;
8010
- }
8011
-
8012
- switch (typeof interpolation) {
8013
- case 'boolean':
8014
- {
8015
- return '';
8016
- }
8017
-
8018
- case 'object':
8019
- {
8020
- if (interpolation.anim === 1) {
8021
- cursor = {
8022
- name: interpolation.name,
8023
- styles: interpolation.styles,
8024
- next: cursor
8025
- };
8026
- return interpolation.name;
8027
- }
8028
-
8029
- if (interpolation.styles !== undefined) {
8030
- var next = interpolation.next;
8031
-
8032
- if (next !== undefined) {
8033
- // not the most efficient thing ever but this is a pretty rare case
8034
- // and there will be very few iterations of this generally
8035
- while (next !== undefined) {
8036
- cursor = {
8037
- name: next.name,
8038
- styles: next.styles,
8039
- next: cursor
8040
- };
8041
- next = next.next;
8042
- }
8043
- }
8044
-
8045
- var styles = interpolation.styles + ";";
8046
-
8047
- if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
8048
- styles += interpolation.map;
8049
- }
8050
-
8051
- return styles;
8052
- }
8053
-
8054
- return createStringFromObject(mergedProps, registered, interpolation);
8055
- }
8056
-
8057
- case 'function':
8058
- {
8059
- if (mergedProps !== undefined) {
8060
- var previousCursor = cursor;
8061
- var result = interpolation(mergedProps);
8062
- cursor = previousCursor;
8063
- return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation);
8064
- } else if (process.env.NODE_ENV !== 'production') {
8065
- console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
8066
- }
8067
-
8068
- break;
8069
- }
8070
-
8071
- case 'string':
8072
- if (process.env.NODE_ENV !== 'production') {
8073
- var matched = [];
8074
- var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
8075
- var fakeVarName = "animation" + matched.length;
8076
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
8077
- return "${" + fakeVarName + "}";
8078
- });
8079
-
8080
- if (matched.length) {
8081
- console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
8082
- }
8083
- }
8084
-
8085
- break;
8086
- } // finalize string values (regular strings and functions interpolated into css calls)
8087
-
8088
-
8089
- if (registered == null) {
8090
- return interpolation;
8091
- }
8092
-
8093
- var cached = registered[interpolation];
8094
-
8095
- if (process.env.NODE_ENV !== 'production' && couldBeSelectorInterpolation && shouldWarnAboutInterpolatingClassNameFromCss && cached !== undefined) {
8096
- console.error('Interpolating a className from css`` is not recommended and will cause problems with composition.\n' + 'Interpolating a className from css`` will be completely unsupported in a future major version of Emotion');
8097
- shouldWarnAboutInterpolatingClassNameFromCss = false;
8098
- }
8099
-
8100
- return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation;
8101
- }
8102
-
8103
- function createStringFromObject(mergedProps, registered, obj) {
8104
- var string = '';
8105
-
8106
- if (Array.isArray(obj)) {
8107
- for (var i = 0; i < obj.length; i++) {
8108
- string += handleInterpolation(mergedProps, registered, obj[i], false);
8109
- }
8110
- } else {
8111
- for (var _key in obj) {
8112
- var value = obj[_key];
8113
-
8114
- if (typeof value !== 'object') {
8115
- if (registered != null && registered[value] !== undefined) {
8116
- string += _key + "{" + registered[value] + "}";
8117
- } else if (isProcessableValue(value)) {
8118
- string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
8119
- }
8120
- } else {
8121
- if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
8122
- throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
8123
- }
8124
-
8125
- if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
8126
- for (var _i = 0; _i < value.length; _i++) {
8127
- if (isProcessableValue(value[_i])) {
8128
- string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
8129
- }
8130
- }
8131
- } else {
8132
- var interpolated = handleInterpolation(mergedProps, registered, value, false);
8133
-
8134
- switch (_key) {
8135
- case 'animation':
8136
- case 'animationName':
8137
- {
8138
- string += processStyleName(_key) + ":" + interpolated + ";";
8139
- break;
8140
- }
8141
-
8142
- default:
8143
- {
8144
- if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
8145
- console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
8146
- }
8147
-
8148
- string += _key + "{" + interpolated + "}";
8149
- }
8150
- }
8151
- }
8152
- }
8153
- }
8154
- }
8155
-
8156
- return string;
8157
- }
8158
-
8159
- var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g;
8160
- var sourceMapPattern;
8161
-
8162
- if (process.env.NODE_ENV !== 'production') {
8163
- sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//;
8164
- } // this is the cursor for keyframes
8165
- // keyframes are stored on the SerializedStyles object as a linked list
8166
-
8167
-
8168
- var cursor;
8169
- var serializeStyles = function serializeStyles(args, registered, mergedProps) {
8170
- if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
8171
- return args[0];
8172
- }
8173
-
8174
- var stringMode = true;
8175
- var styles = '';
8176
- cursor = undefined;
8177
- var strings = args[0];
8178
-
8179
- if (strings == null || strings.raw === undefined) {
8180
- stringMode = false;
8181
- styles += handleInterpolation(mergedProps, registered, strings, false);
8182
- } else {
8183
- if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {
8184
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
8185
- }
8186
-
8187
- styles += strings[0];
8188
- } // we start at 1 since we've already handled the first arg
8189
-
8190
-
8191
- for (var i = 1; i < args.length; i++) {
8192
- styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46);
8193
-
8194
- if (stringMode) {
8195
- if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {
8196
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
8197
- }
8198
-
8199
- styles += strings[i];
8200
- }
8201
- }
8202
-
8203
- var sourceMap;
8204
-
8205
- if (process.env.NODE_ENV !== 'production') {
8206
- styles = styles.replace(sourceMapPattern, function (match) {
8207
- sourceMap = match;
8208
- return '';
8209
- });
8210
- } // using a global regex with .exec is stateful so lastIndex has to be reset each time
8211
-
8212
-
8213
- labelPattern.lastIndex = 0;
8214
- var identifierName = '';
8215
- var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
8216
-
8217
- while ((match = labelPattern.exec(styles)) !== null) {
8218
- identifierName += '-' + // $FlowFixMe we know it's not null
8219
- match[1];
8220
- }
8221
-
8222
- var name = Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__["a" /* default */])(styles) + identifierName;
8223
-
8224
- if (process.env.NODE_ENV !== 'production') {
8225
- // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
8226
- return {
8227
- name: name,
8228
- styles: styles,
8229
- map: sourceMap,
8230
- next: cursor,
8231
- toString: function toString() {
8232
- 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).";
8233
- }
8234
- };
8235
- }
8236
-
8237
- return {
8238
- name: name,
8239
- styles: styles,
8240
- next: cursor
8241
- };
8242
- };
8243
-
8244
-
8245
-
8246
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8247
-
8248
- /***/ }),
8249
- /* 140 */
8250
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8251
-
8252
- "use strict";
8253
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export UNMOUNTED */
8254
- /* unused harmony export EXITED */
8255
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ENTERING; });
8256
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ENTERED; });
8257
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EXITING; });
8258
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(43);
8259
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(34);
8260
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(2);
8261
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
8262
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
8263
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
8264
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom__ = __webpack_require__(11);
8265
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_dom__);
8266
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(262);
8267
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__ = __webpack_require__(263);
8268
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__ = __webpack_require__(141);
8269
-
8270
-
8271
-
8272
-
8273
-
8274
-
8275
-
8276
-
8277
- var UNMOUNTED = 'unmounted';
8278
- var EXITED = 'exited';
8279
- var ENTERING = 'entering';
8280
- var ENTERED = 'entered';
8281
- var EXITING = 'exiting';
8282
- /**
8283
- * The Transition component lets you describe a transition from one component
8284
- * state to another _over time_ with a simple declarative API. Most commonly
8285
- * it's used to animate the mounting and unmounting of a component, but can also
8286
- * be used to describe in-place transition states as well.
8287
- *
8288
- * ---
8289
- *
8290
- * **Note**: `Transition` is a platform-agnostic base component. If you're using
8291
- * transitions in CSS, you'll probably want to use
8292
- * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
8293
- * instead. It inherits all the features of `Transition`, but contains
8294
- * additional features necessary to play nice with CSS transitions (hence the
8295
- * name of the component).
8296
- *
8297
- * ---
8298
- *
8299
- * By default the `Transition` component does not alter the behavior of the
8300
- * component it renders, it only tracks "enter" and "exit" states for the
8301
- * components. It's up to you to give meaning and effect to those states. For
8302
- * example we can add styles to a component when it enters or exits:
8303
- *
8304
- * ```jsx
8305
- * import { Transition } from 'react-transition-group';
8306
- *
8307
- * const duration = 300;
8308
- *
8309
- * const defaultStyle = {
8310
- * transition: `opacity ${duration}ms ease-in-out`,
8311
- * opacity: 0,
8312
- * }
8313
- *
8314
- * const transitionStyles = {
8315
- * entering: { opacity: 1 },
8316
- * entered: { opacity: 1 },
8317
- * exiting: { opacity: 0 },
8318
- * exited: { opacity: 0 },
8319
- * };
8320
- *
8321
- * const Fade = ({ in: inProp }) => (
8322
- * <Transition in={inProp} timeout={duration}>
8323
- * {state => (
8324
- * <div style={{
8325
- * ...defaultStyle,
8326
- * ...transitionStyles[state]
8327
- * }}>
8328
- * I'm a fade Transition!
8329
- * </div>
8330
- * )}
8331
- * </Transition>
8332
- * );
8333
- * ```
8334
- *
8335
- * There are 4 main states a Transition can be in:
8336
- * - `'entering'`
8337
- * - `'entered'`
8338
- * - `'exiting'`
8339
- * - `'exited'`
8340
- *
8341
- * Transition state is toggled via the `in` prop. When `true` the component
8342
- * begins the "Enter" stage. During this stage, the component will shift from
8343
- * its current transition state, to `'entering'` for the duration of the
8344
- * transition and then to the `'entered'` stage once it's complete. Let's take
8345
- * the following example (we'll use the
8346
- * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
8347
- *
8348
- * ```jsx
8349
- * function App() {
8350
- * const [inProp, setInProp] = useState(false);
8351
- * return (
8352
- * <div>
8353
- * <Transition in={inProp} timeout={500}>
8354
- * {state => (
8355
- * // ...
8356
- * )}
8357
- * </Transition>
8358
- * <button onClick={() => setInProp(true)}>
8359
- * Click to Enter
8360
- * </button>
8361
- * </div>
8362
- * );
8363
- * }
8364
- * ```
8365
- *
8366
- * When the button is clicked the component will shift to the `'entering'` state
8367
- * and stay there for 500ms (the value of `timeout`) before it finally switches
8368
- * to `'entered'`.
8369
- *
8370
- * When `in` is `false` the same thing happens except the state moves from
8371
- * `'exiting'` to `'exited'`.
8372
- */
8373
-
8374
- var Transition = /*#__PURE__*/function (_React$Component) {
8375
- Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Transition, _React$Component);
8376
-
8377
- function Transition(props, context) {
8378
- var _this;
8379
-
8380
- _this = _React$Component.call(this, props, context) || this;
8381
- var parentGroup = context; // In the context of a TransitionGroup all enters are really appears
8382
-
8383
- var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
8384
- var initialStatus;
8385
- _this.appearStatus = null;
8386
-
8387
- if (props.in) {
8388
- if (appear) {
8389
- initialStatus = EXITED;
8390
- _this.appearStatus = ENTERING;
8391
- } else {
8392
- initialStatus = ENTERED;
8393
- }
8394
- } else {
8395
- if (props.unmountOnExit || props.mountOnEnter) {
8396
- initialStatus = UNMOUNTED;
8397
- } else {
8398
- initialStatus = EXITED;
8399
- }
8400
- }
8401
-
8402
- _this.state = {
8403
- status: initialStatus
8404
- };
8405
- _this.nextCallback = null;
8406
- return _this;
8407
- }
8408
-
8409
- Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
8410
- var nextIn = _ref.in;
8411
-
8412
- if (nextIn && prevState.status === UNMOUNTED) {
8413
- return {
8414
- status: EXITED
8415
- };
8416
- }
8417
-
8418
- return null;
8419
- } // getSnapshotBeforeUpdate(prevProps) {
8420
- // let nextStatus = null
8421
- // if (prevProps !== this.props) {
8422
- // const { status } = this.state
8423
- // if (this.props.in) {
8424
- // if (status !== ENTERING && status !== ENTERED) {
8425
- // nextStatus = ENTERING
8426
- // }
8427
- // } else {
8428
- // if (status === ENTERING || status === ENTERED) {
8429
- // nextStatus = EXITING
8430
- // }
8431
- // }
8432
- // }
8433
- // return { nextStatus }
8434
- // }
8435
- ;
8436
-
8437
- var _proto = Transition.prototype;
8438
-
8439
- _proto.componentDidMount = function componentDidMount() {
8440
- this.updateStatus(true, this.appearStatus);
8441
- };
8442
-
8443
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
8444
- var nextStatus = null;
8445
-
8446
- if (prevProps !== this.props) {
8447
- var status = this.state.status;
8448
-
8449
- if (this.props.in) {
8450
- if (status !== ENTERING && status !== ENTERED) {
8451
- nextStatus = ENTERING;
8452
- }
8453
- } else {
8454
- if (status === ENTERING || status === ENTERED) {
8455
- nextStatus = EXITING;
8456
- }
8457
- }
8458
- }
8459
-
8460
- this.updateStatus(false, nextStatus);
8461
- };
8462
-
8463
- _proto.componentWillUnmount = function componentWillUnmount() {
8464
- this.cancelNextCallback();
8465
- };
8466
-
8467
- _proto.getTimeouts = function getTimeouts() {
8468
- var timeout = this.props.timeout;
8469
- var exit, enter, appear;
8470
- exit = enter = appear = timeout;
8471
-
8472
- if (timeout != null && typeof timeout !== 'number') {
8473
- exit = timeout.exit;
8474
- enter = timeout.enter; // TODO: remove fallback for next major
8475
-
8476
- appear = timeout.appear !== undefined ? timeout.appear : enter;
8477
- }
8478
-
8479
- return {
8480
- exit: exit,
8481
- enter: enter,
8482
- appear: appear
8483
- };
8484
- };
8485
-
8486
- _proto.updateStatus = function updateStatus(mounting, nextStatus) {
8487
- if (mounting === void 0) {
8488
- mounting = false;
8489
- }
8490
-
8491
- if (nextStatus !== null) {
8492
- // nextStatus will always be ENTERING or EXITING.
8493
- this.cancelNextCallback();
8494
-
8495
- if (nextStatus === ENTERING) {
8496
- this.performEnter(mounting);
8497
- } else {
8498
- this.performExit();
8499
- }
8500
- } else if (this.props.unmountOnExit && this.state.status === EXITED) {
8501
- this.setState({
8502
- status: UNMOUNTED
8503
- });
8504
- }
8505
- };
8506
-
8507
- _proto.performEnter = function performEnter(mounting) {
8508
- var _this2 = this;
8509
-
8510
- var enter = this.props.enter;
8511
- var appearing = this.context ? this.context.isMounting : mounting;
8512
-
8513
- var _ref2 = this.props.nodeRef ? [appearing] : [__WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this), appearing],
8514
- maybeNode = _ref2[0],
8515
- maybeAppearing = _ref2[1];
8516
-
8517
- var timeouts = this.getTimeouts();
8518
- var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
8519
- // if we are mounting and running this it means appear _must_ be set
8520
-
8521
- if (!mounting && !enter || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
8522
- this.safeSetState({
8523
- status: ENTERED
8524
- }, function () {
8525
- _this2.props.onEntered(maybeNode);
8526
- });
8527
- return;
8528
- }
8529
-
8530
- this.props.onEnter(maybeNode, maybeAppearing);
8531
- this.safeSetState({
8532
- status: ENTERING
8533
- }, function () {
8534
- _this2.props.onEntering(maybeNode, maybeAppearing);
8535
-
8536
- _this2.onTransitionEnd(enterTimeout, function () {
8537
- _this2.safeSetState({
8538
- status: ENTERED
8539
- }, function () {
8540
- _this2.props.onEntered(maybeNode, maybeAppearing);
8541
- });
8542
- });
8543
- });
8544
- };
8545
-
8546
- _proto.performExit = function performExit() {
8547
- var _this3 = this;
8548
-
8549
- var exit = this.props.exit;
8550
- var timeouts = this.getTimeouts();
8551
- var maybeNode = this.props.nodeRef ? undefined : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this); // no exit animation skip right to EXITED
8552
-
8553
- if (!exit || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
8554
- this.safeSetState({
8555
- status: EXITED
8556
- }, function () {
8557
- _this3.props.onExited(maybeNode);
8558
- });
8559
- return;
8560
- }
8561
-
8562
- this.props.onExit(maybeNode);
8563
- this.safeSetState({
8564
- status: EXITING
8565
- }, function () {
8566
- _this3.props.onExiting(maybeNode);
8567
-
8568
- _this3.onTransitionEnd(timeouts.exit, function () {
8569
- _this3.safeSetState({
8570
- status: EXITED
8571
- }, function () {
8572
- _this3.props.onExited(maybeNode);
8573
- });
8574
- });
8575
- });
8576
- };
8577
-
8578
- _proto.cancelNextCallback = function cancelNextCallback() {
8579
- if (this.nextCallback !== null) {
8580
- this.nextCallback.cancel();
8581
- this.nextCallback = null;
8582
- }
8583
- };
8584
-
8585
- _proto.safeSetState = function safeSetState(nextState, callback) {
8586
- // This shouldn't be necessary, but there are weird race conditions with
8587
- // setState callbacks and unmounting in testing, so always make sure that
8588
- // we can cancel any pending setState callbacks after we unmount.
8589
- callback = this.setNextCallback(callback);
8590
- this.setState(nextState, callback);
8591
- };
8592
-
8593
- _proto.setNextCallback = function setNextCallback(callback) {
8594
- var _this4 = this;
8595
-
8596
- var active = true;
8597
-
8598
- this.nextCallback = function (event) {
8599
- if (active) {
8600
- active = false;
8601
- _this4.nextCallback = null;
8602
- callback(event);
8603
- }
8604
- };
8605
-
8606
- this.nextCallback.cancel = function () {
8607
- active = false;
8608
- };
8609
-
8610
- return this.nextCallback;
8611
- };
8612
-
8613
- _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
8614
- this.setNextCallback(handler);
8615
- var node = this.props.nodeRef ? this.props.nodeRef.current : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this);
8616
- var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
8617
-
8618
- if (!node || doesNotHaveTimeoutOrListener) {
8619
- setTimeout(this.nextCallback, 0);
8620
- return;
8621
- }
8622
-
8623
- if (this.props.addEndListener) {
8624
- var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],
8625
- maybeNode = _ref3[0],
8626
- maybeNextCallback = _ref3[1];
8627
-
8628
- this.props.addEndListener(maybeNode, maybeNextCallback);
8629
- }
8630
-
8631
- if (timeout != null) {
8632
- setTimeout(this.nextCallback, timeout);
8633
- }
8634
- };
8635
-
8636
- _proto.render = function render() {
8637
- var status = this.state.status;
8638
-
8639
- if (status === UNMOUNTED) {
8640
- return null;
8641
- }
8642
-
8643
- var _this$props = this.props,
8644
- children = _this$props.children,
8645
- _in = _this$props.in,
8646
- _mountOnEnter = _this$props.mountOnEnter,
8647
- _unmountOnExit = _this$props.unmountOnExit,
8648
- _appear = _this$props.appear,
8649
- _enter = _this$props.enter,
8650
- _exit = _this$props.exit,
8651
- _timeout = _this$props.timeout,
8652
- _addEndListener = _this$props.addEndListener,
8653
- _onEnter = _this$props.onEnter,
8654
- _onEntering = _this$props.onEntering,
8655
- _onEntered = _this$props.onEntered,
8656
- _onExit = _this$props.onExit,
8657
- _onExiting = _this$props.onExiting,
8658
- _onExited = _this$props.onExited,
8659
- _nodeRef = _this$props.nodeRef,
8660
- childProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
8661
-
8662
- return (
8663
- /*#__PURE__*/
8664
- // allows for nested Transitions
8665
- __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */].Provider, {
8666
- value: null
8667
- }, typeof children === 'function' ? children(status, childProps) : __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Children.only(children), childProps))
8668
- );
8669
- };
8670
-
8671
- return Transition;
8672
- }(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Component);
8673
-
8674
- Transition.contextType = __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */];
8675
- Transition.propTypes = process.env.NODE_ENV !== "production" ? {
8676
- /**
8677
- * A React reference to DOM element that need to transition:
8678
- * https://stackoverflow.com/a/51127130/4671932
8679
- *
8680
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
8681
- * (e.g. `onEnter`) because user already has direct access to the node.
8682
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
8683
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
8684
- * (see
8685
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
8686
- */
8687
- nodeRef: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({
8688
- current: typeof Element === 'undefined' ? __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any : __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.instanceOf(Element)
8689
- }),
8690
-
8691
- /**
8692
- * A `function` child can be used instead of a React element. This function is
8693
- * called with the current transition status (`'entering'`, `'entered'`,
8694
- * `'exiting'`, `'exited'`), which can be used to apply context
8695
- * specific props to a component.
8696
- *
8697
- * ```jsx
8698
- * <Transition in={this.state.in} timeout={150}>
8699
- * {state => (
8700
- * <MyComponent className={`fade fade-${state}`} />
8701
- * )}
8702
- * </Transition>
8703
- * ```
8704
- */
8705
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element.isRequired]).isRequired,
8706
-
8707
- /**
8708
- * Show the component; triggers the enter or exit states
8709
- */
8710
- in: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8711
-
8712
- /**
8713
- * By default the child component is mounted immediately along with
8714
- * the parent `Transition` component. If you want to "lazy mount" the component on the
8715
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
8716
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
8717
- */
8718
- mountOnEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8719
-
8720
- /**
8721
- * By default the child component stays mounted after it reaches the `'exited'` state.
8722
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
8723
- */
8724
- unmountOnExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8725
-
8726
- /**
8727
- * By default the child component does not perform the enter transition when
8728
- * it first mounts, regardless of the value of `in`. If you want this
8729
- * behavior, set both `appear` and `in` to `true`.
8730
- *
8731
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
8732
- * > only adds an additional enter transition. However, in the
8733
- * > `<CSSTransition>` component that first enter transition does result in
8734
- * > additional `.appear-*` classes, that way you can choose to style it
8735
- * > differently.
8736
- */
8737
- appear: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8738
-
8739
- /**
8740
- * Enable or disable enter transitions.
8741
- */
8742
- enter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8743
-
8744
- /**
8745
- * Enable or disable exit transitions.
8746
- */
8747
- exit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8748
-
8749
- /**
8750
- * The duration of the transition, in milliseconds.
8751
- * Required unless `addEndListener` is provided.
8752
- *
8753
- * You may specify a single timeout for all transitions:
8754
- *
8755
- * ```jsx
8756
- * timeout={500}
8757
- * ```
8758
- *
8759
- * or individually:
8760
- *
8761
- * ```jsx
8762
- * timeout={{
8763
- * appear: 500,
8764
- * enter: 300,
8765
- * exit: 500,
8766
- * }}
8767
- * ```
8768
- *
8769
- * - `appear` defaults to the value of `enter`
8770
- * - `enter` defaults to `0`
8771
- * - `exit` defaults to `0`
8772
- *
8773
- * @type {number | { enter?: number, exit?: number, appear?: number }}
8774
- */
8775
- timeout: function timeout(props) {
8776
- var pt = __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__["b" /* timeoutsShape */];
8777
- if (!props.addEndListener) pt = pt.isRequired;
8778
-
8779
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
8780
- args[_key - 1] = arguments[_key];
8781
- }
8782
-
8783
- return pt.apply(void 0, [props].concat(args));
8784
- },
8785
-
8786
- /**
8787
- * Add a custom transition end trigger. Called with the transitioning
8788
- * DOM node and a `done` callback. Allows for more fine grained transition end
8789
- * logic. Timeouts are still used as a fallback if provided.
8790
- *
8791
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8792
- *
8793
- * ```jsx
8794
- * addEndListener={(node, done) => {
8795
- * // use the css transitionend event to mark the finish of a transition
8796
- * node.addEventListener('transitionend', done, false);
8797
- * }}
8798
- * ```
8799
- */
8800
- addEndListener: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8801
-
8802
- /**
8803
- * Callback fired before the "entering" status is applied. An extra parameter
8804
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
8805
- *
8806
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8807
- *
8808
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
8809
- */
8810
- onEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8811
-
8812
- /**
8813
- * Callback fired after the "entering" status is applied. An extra parameter
8814
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
8815
- *
8816
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8817
- *
8818
- * @type Function(node: HtmlElement, isAppearing: bool)
8819
- */
8820
- onEntering: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8821
-
8822
- /**
8823
- * Callback fired after the "entered" status is applied. An extra parameter
8824
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
8825
- *
8826
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8827
- *
8828
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
8829
- */
8830
- onEntered: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8831
-
8832
- /**
8833
- * Callback fired before the "exiting" status is applied.
8834
- *
8835
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8836
- *
8837
- * @type Function(node: HtmlElement) -> void
8838
- */
8839
- onExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8840
-
8841
- /**
8842
- * Callback fired after the "exiting" status is applied.
8843
- *
8844
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8845
- *
8846
- * @type Function(node: HtmlElement) -> void
8847
- */
8848
- onExiting: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8849
-
8850
- /**
8851
- * Callback fired after the "exited" status is applied.
8852
- *
8853
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
8854
- *
8855
- * @type Function(node: HtmlElement) -> void
8856
- */
8857
- onExited: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func
8858
- } : {}; // Name the function so it is clearer in the documentation
8859
-
8860
- function noop() {}
8861
-
8862
- Transition.defaultProps = {
8863
- in: false,
8864
- mountOnEnter: false,
8865
- unmountOnExit: false,
8866
- appear: false,
8867
- enter: true,
8868
- exit: true,
8869
- onEnter: noop,
8870
- onEntering: noop,
8871
- onEntered: noop,
8872
- onExit: noop,
8873
- onExiting: noop,
8874
- onExited: noop
8875
- };
8876
- Transition.UNMOUNTED = UNMOUNTED;
8877
- Transition.EXITED = EXITED;
8878
- Transition.ENTERING = ENTERING;
8879
- Transition.ENTERED = ENTERED;
8880
- Transition.EXITING = EXITING;
8881
- /* harmony default export */ __webpack_exports__["d"] = (Transition);
8882
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8883
-
8884
- /***/ }),
8885
- /* 141 */
8886
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8887
-
8888
- "use strict";
8889
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
8890
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
8891
-
8892
- /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null));
8893
-
8894
- /***/ }),
8895
- /* 142 */
8896
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8897
-
8898
- "use strict";
8899
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Avatar__ = __webpack_require__(591);
8900
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Avatar__["a"]; });
8901
-
8902
-
8903
- /***/ }),
8904
- /* 143 */
8905
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8906
-
8907
- "use strict";
8908
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Button__ = __webpack_require__(603);
8909
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Button__["a"]; });
8910
-
8911
-
8912
- /***/ }),
8913
- /* 144 */
8914
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8915
-
8916
- "use strict";
8917
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
8918
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
8919
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(20);
8920
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
8921
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
8922
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
8923
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
8924
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
8925
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_clsx__ = __webpack_require__(5);
8926
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__ = __webpack_require__(7);
8927
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_useControlled__ = __webpack_require__(46);
8928
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__ = __webpack_require__(53);
8929
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__styles_withStyles__ = __webpack_require__(6);
8930
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__IconButton__ = __webpack_require__(47);
8931
-
8932
-
8933
-
8934
-
8935
-
8936
-
8937
-
8938
-
8939
-
8940
-
8941
-
8942
- var styles = {
8943
- root: {
8944
- padding: 9
8945
- },
8946
- checked: {},
8947
- disabled: {},
8948
- input: {
8949
- cursor: 'inherit',
8950
- position: 'absolute',
8951
- opacity: 0,
8952
- width: '100%',
8953
- height: '100%',
8954
- top: 0,
8955
- left: 0,
8956
- margin: 0,
8957
- padding: 0,
8958
- zIndex: 1
8959
- }
8960
- };
8961
- /**
8962
- * @ignore - internal component.
8963
- */
8964
-
8965
- var SwitchBase = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["forwardRef"](function SwitchBase(props, ref) {
8966
- var autoFocus = props.autoFocus,
8967
- checkedProp = props.checked,
8968
- checkedIcon = props.checkedIcon,
8969
- classes = props.classes,
8970
- className = props.className,
8971
- defaultChecked = props.defaultChecked,
8972
- disabledProp = props.disabled,
8973
- icon = props.icon,
8974
- id = props.id,
8975
- inputProps = props.inputProps,
8976
- inputRef = props.inputRef,
8977
- name = props.name,
8978
- onBlur = props.onBlur,
8979
- onChange = props.onChange,
8980
- onFocus = props.onFocus,
8981
- readOnly = props.readOnly,
8982
- required = props.required,
8983
- tabIndex = props.tabIndex,
8984
- type = props.type,
8985
- value = props.value,
8986
- other = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["autoFocus", "checked", "checkedIcon", "classes", "className", "defaultChecked", "disabled", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"]);
8987
-
8988
- var _useControlled = Object(__WEBPACK_IMPORTED_MODULE_7__utils_useControlled__["a" /* default */])({
8989
- controlled: checkedProp,
8990
- default: Boolean(defaultChecked),
8991
- name: 'SwitchBase',
8992
- state: 'checked'
8993
- }),
8994
- _useControlled2 = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_useControlled, 2),
8995
- checked = _useControlled2[0],
8996
- setCheckedState = _useControlled2[1];
8997
-
8998
- var muiFormControl = Object(__WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__["a" /* default */])();
8999
-
9000
- var handleFocus = function handleFocus(event) {
9001
- if (onFocus) {
9002
- onFocus(event);
9003
- }
9004
-
9005
- if (muiFormControl && muiFormControl.onFocus) {
9006
- muiFormControl.onFocus(event);
9007
- }
9008
- };
9009
-
9010
- var handleBlur = function handleBlur(event) {
9011
- if (onBlur) {
9012
- onBlur(event);
9013
- }
9014
-
9015
- if (muiFormControl && muiFormControl.onBlur) {
9016
- muiFormControl.onBlur(event);
9017
- }
9018
- };
9019
-
9020
- var handleInputChange = function handleInputChange(event) {
9021
- var newChecked = event.target.checked;
9022
- setCheckedState(newChecked);
9023
-
9024
- if (onChange) {
9025
- // TODO v5: remove the second argument.
9026
- onChange(event, newChecked);
9027
- }
9028
- };
9029
-
9030
- var disabled = disabledProp;
9031
-
9032
- if (muiFormControl) {
9033
- if (typeof disabled === 'undefined') {
9034
- disabled = muiFormControl.disabled;
9035
- }
9036
- }
9037
-
9038
- var hasLabelFor = type === 'checkbox' || type === 'radio';
9039
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"](__WEBPACK_IMPORTED_MODULE_10__IconButton__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9040
- component: "span",
9041
- className: Object(__WEBPACK_IMPORTED_MODULE_5_clsx__["a" /* default */])(classes.root, className, checked && classes.checked, disabled && classes.disabled),
9042
- disabled: disabled,
9043
- tabIndex: null,
9044
- role: undefined,
9045
- onFocus: handleFocus,
9046
- onBlur: handleBlur,
9047
- ref: ref
9048
- }, other), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"]("input", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9049
- autoFocus: autoFocus,
9050
- checked: checkedProp,
9051
- defaultChecked: defaultChecked,
9052
- className: classes.input,
9053
- disabled: disabled,
9054
- id: hasLabelFor && id,
9055
- name: name,
9056
- onChange: handleInputChange,
9057
- readOnly: readOnly,
9058
- ref: inputRef,
9059
- required: required,
9060
- tabIndex: tabIndex,
9061
- type: type,
9062
- value: value
9063
- }, inputProps)), checked ? checkedIcon : icon);
9064
- }); // NB: If changed, please update Checkbox, Switch and Radio
9065
- // so that the API documentation is updated.
9066
-
9067
- process.env.NODE_ENV !== "production" ? SwitchBase.propTypes = {
9068
- /**
9069
- * If `true`, the `input` element will be focused during the first mount.
9070
- */
9071
- autoFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9072
-
9073
- /**
9074
- * If `true`, the component is checked.
9075
- */
9076
- checked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9077
-
9078
- /**
9079
- * The icon to display when the component is checked.
9080
- */
9081
- checkedIcon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
9082
-
9083
- /**
9084
- * Override or extend the styles applied to the component.
9085
- * See [CSS API](#css) below for more details.
9086
- */
9087
- classes: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object.isRequired,
9088
-
9089
- /**
9090
- * @ignore
9091
- */
9092
- className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9093
-
9094
- /**
9095
- * @ignore
9096
- */
9097
- defaultChecked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9098
-
9099
- /**
9100
- * If `true`, the switch will be disabled.
9101
- */
9102
- disabled: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9103
-
9104
- /**
9105
- * The icon to display when the component is unchecked.
9106
- */
9107
- icon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
9108
-
9109
- /**
9110
- * The id of the `input` element.
9111
- */
9112
- id: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9113
-
9114
- /**
9115
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
9116
- */
9117
- inputProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
9118
-
9119
- /**
9120
- * Pass a ref to the `input` element.
9121
- */
9122
- inputRef: __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__["j" /* refType */],
9123
-
9124
- /*
9125
- * @ignore
9126
- */
9127
- name: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9128
-
9129
- /**
9130
- * @ignore
9131
- */
9132
- onBlur: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9133
-
9134
- /**
9135
- * Callback fired when the state is changed.
9136
- *
9137
- * @param {object} event The event source of the callback.
9138
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
9139
- */
9140
- onChange: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9141
-
9142
- /**
9143
- * @ignore
9144
- */
9145
- onFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9146
-
9147
- /**
9148
- * It prevents the user from changing the value of the field
9149
- * (not from interacting with the field).
9150
- */
9151
- readOnly: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9152
-
9153
- /**
9154
- * If `true`, the `input` element will be required.
9155
- */
9156
- required: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9157
-
9158
- /**
9159
- * @ignore
9160
- */
9161
- tabIndex: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string]),
9162
-
9163
- /**
9164
- * The input component prop `type`.
9165
- */
9166
- type: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string.isRequired,
9167
-
9168
- /**
9169
- * The value of the component.
9170
- */
9171
- value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any
9172
- } : void 0;
9173
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__styles_withStyles__["a" /* default */])(styles, {
9174
- name: 'PrivateSwitchBase'
9175
- })(SwitchBase));
9176
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9177
-
9178
- /***/ }),
9179
- /* 145 */
9180
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9181
-
9182
- "use strict";
9183
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Chip__ = __webpack_require__(615);
9184
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Chip__["a"]; });
9185
-
9186
-
9187
- /***/ }),
9188
- /* 146 */
9189
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9190
-
9191
- "use strict";
9192
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__ = __webpack_require__(618);
9193
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__["a"]; });
9194
-
9195
-
9196
- /***/ }),
9197
- /* 147 */
9198
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9199
-
9200
- "use strict";
9201
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Unstable_TrapFocus__ = __webpack_require__(624);
9202
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Unstable_TrapFocus__["a"]; });
9203
-
9204
-
9205
- /***/ }),
9206
- /* 148 */
9207
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9208
-
9209
- "use strict";
9210
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
9211
- /* harmony export (immutable) */ __webpack_exports__["c"] = isHorizontal;
9212
- /* harmony export (immutable) */ __webpack_exports__["b"] = getAnchor;
9213
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
9214
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
9215
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
9216
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
9217
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
9218
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
9219
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_clsx__ = __webpack_require__(5);
9220
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Modal__ = __webpack_require__(79);
9221
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Backdrop__ = __webpack_require__(97);
9222
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__styles_withStyles__ = __webpack_require__(6);
9223
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Slide__ = __webpack_require__(149);
9224
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Paper__ = __webpack_require__(22);
9225
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_capitalize__ = __webpack_require__(9);
9226
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__styles_transitions__ = __webpack_require__(37);
9227
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__styles_useTheme__ = __webpack_require__(17);
9228
-
9229
-
9230
-
9231
-
9232
-
9233
-
9234
-
9235
-
9236
-
9237
-
9238
-
9239
-
9240
-
9241
- var styles = function styles(theme) {
9242
- return {
9243
- /* Styles applied to the root element. */
9244
- root: {},
9245
-
9246
- /* Styles applied to the root element if `variant="permanent or persistent"`. */
9247
- docked: {
9248
- flex: '0 0 auto'
9249
- },
9250
-
9251
- /* Styles applied to the `Paper` component. */
9252
- paper: {
9253
- overflowY: 'auto',
9254
- display: 'flex',
9255
- flexDirection: 'column',
9256
- height: '100%',
9257
- flex: '1 0 auto',
9258
- zIndex: theme.zIndex.drawer,
9259
- WebkitOverflowScrolling: 'touch',
9260
- // Add iOS momentum scrolling.
9261
- // temporary style
9262
- position: 'fixed',
9263
- top: 0,
9264
- // We disable the focus ring for mouse, touch and keyboard users.
9265
- // At some point, it would be better to keep it for keyboard users.
9266
- // :focus-ring CSS pseudo-class will help.
9267
- outline: 0
9268
- },
9269
-
9270
- /* Styles applied to the `Paper` component if `anchor="left"`. */
9271
- paperAnchorLeft: {
9272
- left: 0,
9273
- right: 'auto'
9274
- },
9275
-
9276
- /* Styles applied to the `Paper` component if `anchor="right"`. */
9277
- paperAnchorRight: {
9278
- left: 'auto',
9279
- right: 0
9280
- },
9281
-
9282
- /* Styles applied to the `Paper` component if `anchor="top"`. */
9283
- paperAnchorTop: {
9284
- top: 0,
9285
- left: 0,
9286
- bottom: 'auto',
9287
- right: 0,
9288
- height: 'auto',
9289
- maxHeight: '100%'
9290
- },
9291
-
9292
- /* Styles applied to the `Paper` component if `anchor="bottom"`. */
9293
- paperAnchorBottom: {
9294
- top: 'auto',
9295
- left: 0,
9296
- bottom: 0,
9297
- right: 0,
9298
- height: 'auto',
9299
- maxHeight: '100%'
9300
- },
9301
-
9302
- /* Styles applied to the `Paper` component if `anchor="left"` and `variant` is not "temporary". */
9303
- paperAnchorDockedLeft: {
9304
- borderRight: "1px solid ".concat(theme.palette.divider)
9305
- },
9306
-
9307
- /* Styles applied to the `Paper` component if `anchor="top"` and `variant` is not "temporary". */
9308
- paperAnchorDockedTop: {
9309
- borderBottom: "1px solid ".concat(theme.palette.divider)
9310
- },
9311
-
9312
- /* Styles applied to the `Paper` component if `anchor="right"` and `variant` is not "temporary". */
9313
- paperAnchorDockedRight: {
9314
- borderLeft: "1px solid ".concat(theme.palette.divider)
9315
- },
9316
-
9317
- /* Styles applied to the `Paper` component if `anchor="bottom"` and `variant` is not "temporary". */
9318
- paperAnchorDockedBottom: {
9319
- borderTop: "1px solid ".concat(theme.palette.divider)
9320
- },
9321
-
9322
- /* Styles applied to the `Modal` component. */
9323
- modal: {}
9324
- };
9325
- };
9326
- var oppositeDirection = {
9327
- left: 'right',
9328
- right: 'left',
9329
- top: 'down',
9330
- bottom: 'up'
9331
- };
9332
- function isHorizontal(anchor) {
9333
- return ['left', 'right'].indexOf(anchor) !== -1;
9334
- }
9335
- function getAnchor(theme, anchor) {
9336
- return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
9337
- }
9338
- var defaultTransitionDuration = {
9339
- enter: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].enteringScreen,
9340
- exit: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].leavingScreen
9341
- };
9342
- /**
9343
- * The props of the [Modal](/api/modal/) component are available
9344
- * when `variant="temporary"` is set.
9345
- */
9346
-
9347
- var Drawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Drawer(props, ref) {
9348
- var _props$anchor = props.anchor,
9349
- anchorProp = _props$anchor === void 0 ? 'left' : _props$anchor,
9350
- BackdropProps = props.BackdropProps,
9351
- children = props.children,
9352
- classes = props.classes,
9353
- className = props.className,
9354
- _props$elevation = props.elevation,
9355
- elevation = _props$elevation === void 0 ? 16 : _props$elevation,
9356
- _props$ModalProps = props.ModalProps;
9357
- _props$ModalProps = _props$ModalProps === void 0 ? {} : _props$ModalProps;
9358
-
9359
- var BackdropPropsProp = _props$ModalProps.BackdropProps,
9360
- ModalProps = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_props$ModalProps, ["BackdropProps"]),
9361
- onClose = props.onClose,
9362
- _props$open = props.open,
9363
- open = _props$open === void 0 ? false : _props$open,
9364
- _props$PaperProps = props.PaperProps,
9365
- PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,
9366
- SlideProps = props.SlideProps,
9367
- _props$TransitionComp = props.TransitionComponent,
9368
- TransitionComponent = _props$TransitionComp === void 0 ? __WEBPACK_IMPORTED_MODULE_8__Slide__["a" /* default */] : _props$TransitionComp,
9369
- _props$transitionDura = props.transitionDuration,
9370
- transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
9371
- _props$variant = props.variant,
9372
- variant = _props$variant === void 0 ? 'temporary' : _props$variant,
9373
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["anchor", "BackdropProps", "children", "classes", "className", "elevation", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"]);
9374
-
9375
- var theme = Object(__WEBPACK_IMPORTED_MODULE_12__styles_useTheme__["a" /* default */])(); // Let's assume that the Drawer will always be rendered on user space.
9376
- // We use this state is order to skip the appear transition during the
9377
- // initial mount of the component.
9378
-
9379
- var mounted = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](false);
9380
- __WEBPACK_IMPORTED_MODULE_2_react__["useEffect"](function () {
9381
- mounted.current = true;
9382
- }, []);
9383
- var anchor = getAnchor(theme, anchorProp);
9384
- var drawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_9__Paper__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9385
- elevation: variant === 'temporary' ? elevation : 0,
9386
- square: true
9387
- }, PaperProps, {
9388
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.paper, classes["paperAnchor".concat(Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(anchor))], PaperProps.className, variant !== 'temporary' && classes["paperAnchorDocked".concat(Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(anchor))])
9389
- }), children);
9390
-
9391
- if (variant === 'permanent') {
9392
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9393
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
9394
- ref: ref
9395
- }, other), drawer);
9396
- }
9397
-
9398
- var slidingDrawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](TransitionComponent, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9399
- in: open,
9400
- direction: oppositeDirection[anchor],
9401
- timeout: transitionDuration,
9402
- appear: mounted.current
9403
- }, SlideProps), drawer);
9404
-
9405
- if (variant === 'persistent') {
9406
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9407
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
9408
- ref: ref
9409
- }, other), slidingDrawer);
9410
- } // variant === temporary
9411
-
9412
-
9413
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_5__Modal__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9414
- BackdropProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, BackdropProps, BackdropPropsProp, {
9415
- transitionDuration: transitionDuration
9416
- }),
9417
- BackdropComponent: __WEBPACK_IMPORTED_MODULE_6__Backdrop__["a" /* default */],
9418
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.modal, className),
9419
- open: open,
9420
- onClose: onClose,
9421
- ref: ref
9422
- }, other, ModalProps), slidingDrawer);
9423
- });
9424
- process.env.NODE_ENV !== "production" ? Drawer.propTypes = {
9425
- // ----------------------------- Warning --------------------------------
9426
- // | These PropTypes are generated from the TypeScript type definitions |
9427
- // | To update them edit the d.ts file and run "yarn proptypes" |
9428
- // ----------------------------------------------------------------------
9429
-
9430
- /**
9431
- * Side from which the drawer will appear.
9432
- */
9433
- anchor: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['bottom', 'left', 'right', 'top']),
9434
-
9435
- /**
9436
- * @ignore
9437
- */
9438
- BackdropProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9439
-
9440
- /**
9441
- * The contents of the drawer.
9442
- */
9443
- children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
9444
-
9445
- /**
9446
- * Override or extend the styles applied to the component.
9447
- * See [CSS API](#css) below for more details.
9448
- */
9449
- classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9450
-
9451
- /**
9452
- * @ignore
9453
- */
9454
- className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
9455
-
9456
- /**
9457
- * The elevation of the drawer.
9458
- */
9459
- elevation: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9460
-
9461
- /**
9462
- * Props applied to the [`Modal`](/api/modal/) element.
9463
- */
9464
- ModalProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9465
-
9466
- /**
9467
- * Callback fired when the component requests to be closed.
9468
- *
9469
- * @param {object} event The event source of the callback.
9470
- */
9471
- onClose: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
9472
-
9473
- /**
9474
- * If `true`, the drawer is open.
9475
- */
9476
- open: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
9477
-
9478
- /**
9479
- * Props applied to the [`Paper`](/api/paper/) element.
9480
- */
9481
- PaperProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9482
-
9483
- /**
9484
- * Props applied to the [`Slide`](/api/slide/) element.
9485
- */
9486
- SlideProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9487
-
9488
- /**
9489
- * The duration for the transition, in milliseconds.
9490
- * You may specify a single timeout for all transitions, or individually with an object.
9491
- */
9492
- transitionDuration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({
9493
- appear: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9494
- enter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9495
- exit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number
9496
- })]),
9497
-
9498
- /**
9499
- * The variant to use.
9500
- */
9501
- variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['permanent', 'persistent', 'temporary'])
9502
- } : void 0;
9503
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__styles_withStyles__["a" /* default */])(styles, {
9504
- name: 'MuiDrawer',
9505
- flip: false
9506
- })(Drawer));
9507
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9508
-
9509
- /***/ }),
9510
- /* 149 */
9511
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9512
-
9513
- "use strict";
9514
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Slide__ = __webpack_require__(631);
9515
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Slide__["a"]; });
9516
-
9517
-
9518
- /***/ }),
9519
- /* 150 */
9520
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9521
-
9522
- "use strict";
9523
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__ = __webpack_require__(639);
9524
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__["a"]; });
9525
-
9526
-
9527
- /***/ }),
9528
- /* 151 */
9529
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9530
-
9531
- "use strict";
9532
- /* unused harmony export hasValue */
9533
- /* harmony export (immutable) */ __webpack_exports__["b"] = isFilled;
9534
- /* harmony export (immutable) */ __webpack_exports__["a"] = isAdornedStart;
9535
- // Supports determination of isControlled().
9536
- // Controlled input accepts its current value as a prop.
9537
- //
9538
- // @see https://facebook.github.io/react/docs/forms.html#controlled-components
9539
- // @param value
9540
- // @returns {boolean} true if string (including '') or number (including zero)
9541
- function hasValue(value) {
9542
- return value != null && !(Array.isArray(value) && value.length === 0);
9543
- } // Determine if field is empty or filled.
9544
- // Response determines if label is presented above field or as placeholder.
9545
- //
9546
- // @param obj
9547
- // @param SSR
9548
- // @returns {boolean} False when not present or empty string.
9549
- // True when any number or string with length.
9550
-
9551
- function isFilled(obj) {
9552
- var SSR = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
9553
- return obj && (hasValue(obj.value) && obj.value !== '' || SSR && hasValue(obj.defaultValue) && obj.defaultValue !== '');
9554
- } // Determine if an Input is adorned on start.
9555
- // It's corresponding to the left with LTR.
9556
- //
9557
- // @param obj
9558
- // @returns {boolean} False when no adornments.
9559
- // True when adorned at the start.
9560
-
9561
- function isAdornedStart(obj) {
9562
- return obj.startAdornment;
9563
- }
9564
-
9565
- /***/ }),
9566
- /* 152 */
9567
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9568
-
9569
- "use strict";
9570
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormGroup__ = __webpack_require__(642);
9571
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormGroup__["a"]; });
9572
-
9573
-
9574
- /***/ }),
9575
- /* 153 */
9576
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9577
-
9578
- "use strict";
9579
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormHelperText__ = __webpack_require__(643);
9580
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormHelperText__["a"]; });
9581
-
9582
-
9583
- /***/ }),
9584
- /* 154 */
9585
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9586
-
9587
- "use strict";
9588
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormLabel__ = __webpack_require__(644);
9589
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormLabel__["a"]; });
9590
-
9591
-
9592
- /***/ }),
9593
- /* 155 */
9594
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9595
-
9596
- "use strict";
9597
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__ = __webpack_require__(652);
9598
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__["a"]; });
9599
-
9600
-
9601
- /***/ }),
9602
- /* 156 */
9603
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9604
-
9605
- "use strict";
9606
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputLabel__ = __webpack_require__(656);
9607
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputLabel__["a"]; });
9608
-
9609
-
9610
- /***/ }),
9611
- /* 157 */
9612
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9613
-
9614
- "use strict";
9615
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__LinearProgress__ = __webpack_require__(657);
9616
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__LinearProgress__["a"]; });
9617
-
9618
-
9619
- /***/ }),
9620
- /* 158 */
9621
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9622
-
9623
- "use strict";
9624
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__List__ = __webpack_require__(659);
9625
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__List__["a"]; });
9626
-
9627
-
9628
- /***/ }),
9629
- /* 159 */
9630
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9631
-
9632
- "use strict";
9633
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItem__ = __webpack_require__(660);
9634
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListItem__["a"]; });
9635
-
9636
-
9637
- /***/ }),
9638
- /* 160 */
9639
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9640
-
9641
- "use strict";
9642
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListSubheader__ = __webpack_require__(665);
9643
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListSubheader__["a"]; });
9644
-
9645
-
9646
- /***/ }),
9647
- /* 161 */
9648
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9649
-
9650
- "use strict";
9651
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popover__ = __webpack_require__(666);
9652
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popover__["a"]; });
9653
-
9654
-
9655
- /***/ }),
9656
- /* 162 */
9657
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9658
-
9659
- "use strict";
9660
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuList__ = __webpack_require__(667);
9661
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuList__["a"]; });
9662
-
9663
-
9664
- /***/ }),
9665
- /* 163 */
9666
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9667
-
9668
- "use strict";
9669
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuItem__ = __webpack_require__(668);
9670
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuItem__["a"]; });
9671
-
9672
-
9673
- /***/ }),
9674
- /* 164 */
9675
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9676
-
9677
- "use strict";
9678
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__NoSsr__ = __webpack_require__(670);
9679
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__NoSsr__["a"]; });
9680
-
9681
-
9682
- /***/ }),
9683
- /* 165 */
9684
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9685
-
9686
- "use strict";
9687
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__ = __webpack_require__(686);
9688
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__["a"]; });
9689
-
9690
-
9691
- /***/ }),
9692
- /* 166 */
9693
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9694
-
9695
- "use strict";
9696
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepLabel__ = __webpack_require__(689);
9697
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepLabel__["a"]; });
9698
-
9699
-
9700
- /***/ }),
9701
- /* 167 */
9702
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9703
-
9704
- "use strict";
9705
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepIcon__ = __webpack_require__(690);
9706
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepIcon__["a"]; });
9707
-
9708
-
9709
- /***/ }),
9710
- /* 168 */
9711
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9712
-
9713
- "use strict";
9714
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepConnector__ = __webpack_require__(693);
9715
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepConnector__["a"]; });
9716
-
9717
-
9718
- /***/ }),
9719
- /* 169 */
9720
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9721
-
9722
- "use strict";
9723
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableCell__ = __webpack_require__(702);
9724
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TableCell__["a"]; });
9725
-
9726
-
9727
- /***/ }),
9728
- /* 170 */
9729
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9730
-
9731
- "use strict";
9732
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Toolbar__ = __webpack_require__(707);
9733
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Toolbar__["a"]; });
9734
-
9735
-
9736
- /***/ }),
9737
- /* 171 */
9738
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9739
-
9740
- "use strict";
9741
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tabs__ = __webpack_require__(712);
9742
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Tabs__["a"]; });
9743
-
9744
-
9745
- /***/ }),
9746
- /* 172 */
9747
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9748
-
9749
- "use strict";
9750
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabScrollButton__ = __webpack_require__(717);
9751
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabScrollButton__["a"]; });
9752
-
9753
-
9754
- /***/ }),
9755
- /* 173 */
9756
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9757
-
9758
- "use strict";
9759
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Zoom__ = __webpack_require__(722);
9760
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Zoom__["a"]; });
9761
-
9762
-
9763
- /***/ }),
9764
- /* 174 */
9765
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9766
-
9767
- "use strict";
9768
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PaginationItem__ = __webpack_require__(728);
9769
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__PaginationItem__["a"]; });
9770
-
9771
-
9772
- /***/ }),
9773
- /* 175 */
9774
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9775
-
9776
- "use strict";
9777
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
9778
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
9779
-
9780
- /**
9781
- * @ignore - internal component.
9782
- */
9783
-
9784
- var TimelineItemContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
9785
-
9786
- if (process.env.NODE_ENV !== 'production') {
9787
- TimelineItemContext.displayName = 'TimelineItemContext';
9788
- }
9789
-
9790
- /* harmony default export */ __webpack_exports__["a"] = (TimelineItemContext);
9791
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9792
-
9793
- /***/ }),
9794
- /* 176 */
9795
- /***/ (function(module, exports, __webpack_require__) {
9796
-
9797
- var baseForOwn = __webpack_require__(377),
9798
- castFunction = __webpack_require__(772);
9799
-
9800
- /**
9801
- * Iterates over own enumerable string keyed properties of an object and
9802
- * invokes `iteratee` for each property. The iteratee is invoked with three
9803
- * arguments: (value, key, object). Iteratee functions may exit iteration
9804
- * early by explicitly returning `false`.
9805
- *
9806
- * @static
9807
- * @memberOf _
9808
- * @since 0.3.0
9809
- * @category Object
9810
- * @param {Object} object The object to iterate over.
9811
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
9812
- * @returns {Object} Returns `object`.
9813
- * @see _.forOwnRight
9814
- * @example
9815
- *
9816
- * function Foo() {
9817
- * this.a = 1;
9818
- * this.b = 2;
9819
- * }
9820
- *
9821
- * Foo.prototype.c = 3;
9822
- *
9823
- * _.forOwn(new Foo, function(value, key) {
9824
- * console.log(key);
9825
- * });
9826
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
9827
- */
9828
- function forOwn(object, iteratee) {
9829
- return object && baseForOwn(object, castFunction(iteratee));
9830
- }
9831
-
9832
- module.exports = forOwn;
9833
-
9834
-
9835
- /***/ }),
9836
- /* 177 */
9837
- /***/ (function(module, exports, __webpack_require__) {
9838
-
9839
- /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(38),
9840
- stubFalse = __webpack_require__(768);
9841
-
9842
- /** Detect free variable `exports`. */
9843
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
9844
-
9845
- /** Detect free variable `module`. */
9846
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
9847
-
9848
- /** Detect the popular CommonJS extension `module.exports`. */
9849
- var moduleExports = freeModule && freeModule.exports === freeExports;
9850
-
9851
- /** Built-in value references. */
9852
- var Buffer = moduleExports ? root.Buffer : undefined;
9853
-
9854
- /* Built-in method references for those with the same name as other `lodash` methods. */
9855
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
9856
-
9857
- /**
9858
- * Checks if `value` is a buffer.
9859
- *
9860
- * @static
9861
- * @memberOf _
9862
- * @since 4.3.0
9863
- * @category Lang
9864
- * @param {*} value The value to check.
9865
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
9866
- * @example
9867
- *
9868
- * _.isBuffer(new Buffer(2));
9869
- * // => true
9870
- *
9871
- * _.isBuffer(new Uint8Array(2));
9872
- * // => false
9873
- */
9874
- var isBuffer = nativeIsBuffer || stubFalse;
9875
-
9876
- module.exports = isBuffer;
9877
-
9878
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(178)(module)))
9879
-
9880
- /***/ }),
9881
- /* 178 */
9882
- /***/ (function(module, exports) {
9883
-
9884
- module.exports = function(module) {
9885
- if(!module.webpackPolyfill) {
9886
- module.deprecate = function() {};
9887
- module.paths = [];
9888
- // module.parent = undefined by default
9889
- if(!module.children) module.children = [];
9890
- Object.defineProperty(module, "loaded", {
9891
- enumerable: true,
9892
- get: function() {
9893
- return module.l;
9894
- }
9895
- });
9896
- Object.defineProperty(module, "id", {
9897
- enumerable: true,
9898
- get: function() {
9899
- return module.i;
9900
- }
9901
- });
9902
- module.webpackPolyfill = 1;
9903
- }
9904
- return module;
9905
- };
9906
-
9907
-
9908
- /***/ }),
9909
- /* 179 */
9910
- /***/ (function(module, exports) {
9911
-
9912
- /** Used as references for various `Number` constants. */
9913
- var MAX_SAFE_INTEGER = 9007199254740991;
9914
-
9915
- /**
9916
- * Checks if `value` is a valid array-like length.
9917
- *
9918
- * **Note:** This method is loosely based on
9919
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
9920
- *
9921
- * @static
9922
- * @memberOf _
9923
- * @since 4.0.0
9924
- * @category Lang
9925
- * @param {*} value The value to check.
9926
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
9927
- * @example
9928
- *
9929
- * _.isLength(3);
9930
- * // => true
9931
- *
9932
- * _.isLength(Number.MIN_VALUE);
9933
- * // => false
9934
- *
9935
- * _.isLength(Infinity);
9936
- * // => false
9937
- *
9938
- * _.isLength('3');
9939
- * // => false
9940
- */
9941
- function isLength(value) {
9942
- return typeof value == 'number' &&
9943
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
9944
- }
9945
-
9946
- module.exports = isLength;
9947
-
9948
-
9949
- /***/ }),
9950
- /* 180 */
9951
- /***/ (function(module, exports) {
9952
-
9953
- /**
9954
- * The base implementation of `_.unary` without support for storing metadata.
9955
- *
9956
- * @private
9957
- * @param {Function} func The function to cap arguments for.
9958
- * @returns {Function} Returns the new capped function.
9959
- */
9960
- function baseUnary(func) {
9961
- return function(value) {
9962
- return func(value);
9963
- };
9964
- }
9965
-
9966
- module.exports = baseUnary;
9967
-
9968
-
9969
- /***/ }),
9970
- /* 181 */
9971
- /***/ (function(module, exports, __webpack_require__) {
9972
-
9973
- /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(376);
9974
-
9975
- /** Detect free variable `exports`. */
9976
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
9977
-
9978
- /** Detect free variable `module`. */
9979
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
9980
-
9981
- /** Detect the popular CommonJS extension `module.exports`. */
9982
- var moduleExports = freeModule && freeModule.exports === freeExports;
9983
-
9984
- /** Detect free variable `process` from Node.js. */
9985
- var freeProcess = moduleExports && freeGlobal.process;
9986
-
9987
- /** Used to access faster Node.js helpers. */
9988
- var nodeUtil = (function() {
9989
- try {
9990
- // Use `util.types` for Node.js 10+.
9991
- var types = freeModule && freeModule.require && freeModule.require('util').types;
9992
-
9993
- if (types) {
9994
- return types;
9995
- }
9996
-
9997
- // Legacy `process.binding('util')` for Node.js < 10.
9998
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
9999
- } catch (e) {}
10000
- }());
10001
-
10002
- module.exports = nodeUtil;
10003
-
10004
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(178)(module)))
10005
-
10006
- /***/ }),
10007
- /* 182 */
10008
- /***/ (function(module, exports) {
10009
-
10010
- /** Used for built-in method references. */
10011
- var objectProto = Object.prototype;
10012
-
10013
- /**
10014
- * Checks if `value` is likely a prototype object.
10015
- *
10016
- * @private
10017
- * @param {*} value The value to check.
10018
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
10019
- */
10020
- function isPrototype(value) {
10021
- var Ctor = value && value.constructor,
10022
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
10023
-
10024
- return value === proto;
10025
- }
10026
-
10027
- module.exports = isPrototype;
10028
-
10029
-
10030
- /***/ }),
10031
- /* 183 */
10032
- /***/ (function(module, exports, __webpack_require__) {
10033
-
10034
- var overArg = __webpack_require__(382);
10035
-
10036
- /** Built-in value references. */
10037
- var getPrototype = overArg(Object.getPrototypeOf, Object);
10038
-
10039
- module.exports = getPrototype;
10040
-
10041
-
10042
- /***/ }),
10043
- /* 184 */
10044
- /***/ (function(module, exports, __webpack_require__) {
10045
-
10046
- var ListCache = __webpack_require__(112),
10047
- stackClear = __webpack_require__(783),
10048
- stackDelete = __webpack_require__(784),
10049
- stackGet = __webpack_require__(785),
10050
- stackHas = __webpack_require__(786),
10051
- stackSet = __webpack_require__(787);
10052
-
10053
- /**
10054
- * Creates a stack cache object to store key-value pairs.
10055
- *
10056
- * @private
10057
- * @constructor
10058
- * @param {Array} [entries] The key-value pairs to cache.
10059
- */
10060
- function Stack(entries) {
10061
- var data = this.__data__ = new ListCache(entries);
10062
- this.size = data.size;
10063
- }
10064
-
10065
- // Add methods to `Stack`.
10066
- Stack.prototype.clear = stackClear;
10067
- Stack.prototype['delete'] = stackDelete;
10068
- Stack.prototype.get = stackGet;
10069
- Stack.prototype.has = stackHas;
10070
- Stack.prototype.set = stackSet;
10071
-
10072
- module.exports = Stack;
10073
-
10074
-
10075
- /***/ }),
10076
- /* 185 */
10077
- /***/ (function(module, exports) {
10078
-
10079
- /**
10080
- * Performs a
10081
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
10082
- * comparison between two values to determine if they are equivalent.
10083
- *
10084
- * @static
10085
- * @memberOf _
10086
- * @since 4.0.0
10087
- * @category Lang
10088
- * @param {*} value The value to compare.
10089
- * @param {*} other The other value to compare.
10090
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
10091
- * @example
10092
- *
10093
- * var object = { 'a': 1 };
10094
- * var other = { 'a': 1 };
10095
- *
10096
- * _.eq(object, object);
10097
- * // => true
10098
- *
10099
- * _.eq(object, other);
10100
- * // => false
10101
- *
10102
- * _.eq('a', 'a');
10103
- * // => true
10104
- *
10105
- * _.eq('a', Object('a'));
10106
- * // => false
10107
- *
10108
- * _.eq(NaN, NaN);
10109
- * // => true
10110
- */
10111
- function eq(value, other) {
10112
- return value === other || (value !== value && other !== other);
10113
- }
10114
-
10115
- module.exports = eq;
10116
-
10117
-
10118
- /***/ }),
10119
- /* 186 */
10120
- /***/ (function(module, exports, __webpack_require__) {
10121
-
10122
- var getNative = __webpack_require__(55),
10123
- root = __webpack_require__(38);
10124
-
10125
- /* Built-in method references that are verified to be native. */
10126
- var Map = getNative(root, 'Map');
10127
-
10128
- module.exports = Map;
10129
-
10130
-
10131
- /***/ }),
10132
- /* 187 */
10133
- /***/ (function(module, exports, __webpack_require__) {
10134
-
10135
- var mapCacheClear = __webpack_require__(792),
10136
- mapCacheDelete = __webpack_require__(799),
10137
- mapCacheGet = __webpack_require__(801),
10138
- mapCacheHas = __webpack_require__(802),
10139
- mapCacheSet = __webpack_require__(803);
10140
-
10141
- /**
10142
- * Creates a map cache object to store key-value pairs.
10143
- *
10144
- * @private
10145
- * @constructor
10146
- * @param {Array} [entries] The key-value pairs to cache.
10147
- */
10148
- function MapCache(entries) {
10149
- var index = -1,
10150
- length = entries == null ? 0 : entries.length;
10151
-
10152
- this.clear();
10153
- while (++index < length) {
10154
- var entry = entries[index];
10155
- this.set(entry[0], entry[1]);
10156
- }
10157
- }
10158
-
10159
- // Add methods to `MapCache`.
10160
- MapCache.prototype.clear = mapCacheClear;
10161
- MapCache.prototype['delete'] = mapCacheDelete;
10162
- MapCache.prototype.get = mapCacheGet;
10163
- MapCache.prototype.has = mapCacheHas;
10164
- MapCache.prototype.set = mapCacheSet;
10165
-
10166
- module.exports = MapCache;
10167
-
10168
-
10169
- /***/ }),
10170
- /* 188 */
10171
- /***/ (function(module, exports, __webpack_require__) {
10172
-
10173
- var arrayFilter = __webpack_require__(814),
10174
- stubArray = __webpack_require__(393);
10175
-
10176
- /** Used for built-in method references. */
10177
- var objectProto = Object.prototype;
10178
-
10179
- /** Built-in value references. */
10180
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
10181
-
10182
- /* Built-in method references for those with the same name as other `lodash` methods. */
10183
- var nativeGetSymbols = Object.getOwnPropertySymbols;
10184
-
10185
- /**
10186
- * Creates an array of the own enumerable symbols of `object`.
10187
- *
10188
- * @private
10189
- * @param {Object} object The object to query.
10190
- * @returns {Array} Returns the array of symbols.
10191
- */
10192
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
10193
- if (object == null) {
10194
- return [];
10195
- }
10196
- object = Object(object);
10197
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
10198
- return propertyIsEnumerable.call(object, symbol);
10199
- });
10200
- };
10201
-
10202
- module.exports = getSymbols;
10203
-
10204
-
10205
- /***/ }),
10206
- /* 189 */
10207
- /***/ (function(module, exports, __webpack_require__) {
10208
-
10209
- var isArray = __webpack_require__(29),
10210
- isSymbol = __webpack_require__(190);
10211
-
10212
- /** Used to match property names within property paths. */
10213
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
10214
- reIsPlainProp = /^\w*$/;
10215
-
10216
- /**
10217
- * Checks if `value` is a property name and not a property path.
10218
- *
10219
- * @private
10220
- * @param {*} value The value to check.
10221
- * @param {Object} [object] The object to query keys on.
10222
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
10223
- */
10224
- function isKey(value, object) {
10225
- if (isArray(value)) {
10226
- return false;
10227
- }
10228
- var type = typeof value;
10229
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
10230
- value == null || isSymbol(value)) {
10231
- return true;
10232
- }
10233
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
10234
- (object != null && value in Object(object));
10235
- }
10236
-
10237
- module.exports = isKey;
10238
-
10239
-
10240
- /***/ }),
10241
- /* 190 */
10242
- /***/ (function(module, exports, __webpack_require__) {
10243
-
10244
- var baseGetTag = __webpack_require__(54),
10245
- isObjectLike = __webpack_require__(41);
10246
-
10247
- /** `Object#toString` result references. */
10248
- var symbolTag = '[object Symbol]';
10249
-
10250
- /**
10251
- * Checks if `value` is classified as a `Symbol` primitive or object.
10252
- *
10253
- * @static
10254
- * @memberOf _
10255
- * @since 4.0.0
10256
- * @category Lang
10257
- * @param {*} value The value to check.
10258
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
10259
- * @example
10260
- *
10261
- * _.isSymbol(Symbol.iterator);
10262
- * // => true
10263
- *
10264
- * _.isSymbol('abc');
10265
- * // => false
10266
- */
10267
- function isSymbol(value) {
10268
- return typeof value == 'symbol' ||
10269
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
10270
- }
10271
-
10272
- module.exports = isSymbol;
10273
-
10274
-
10275
- /***/ }),
10276
- /* 191 */
10277
- /***/ (function(module, exports, __webpack_require__) {
10278
-
10279
- var arrayLikeKeys = __webpack_require__(378),
10280
- baseKeysIn = __webpack_require__(843),
10281
- isArrayLike = __webpack_require__(111);
10282
-
10283
- /**
10284
- * Creates an array of the own and inherited enumerable property names of `object`.
10285
- *
10286
- * **Note:** Non-object values are coerced to objects.
10287
- *
10288
- * @static
10289
- * @memberOf _
10290
- * @since 3.0.0
10291
- * @category Object
10292
- * @param {Object} object The object to query.
10293
- * @returns {Array} Returns the array of property names.
10294
- * @example
10295
- *
10296
- * function Foo() {
10297
- * this.a = 1;
10298
- * this.b = 2;
10299
- * }
10300
- *
10301
- * Foo.prototype.c = 3;
10302
- *
10303
- * _.keysIn(new Foo);
10304
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
10305
- */
10306
- function keysIn(object) {
10307
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
10308
- }
10309
-
10310
- module.exports = keysIn;
10311
-
10312
-
10313
- /***/ }),
10314
- /* 192 */
10315
- /***/ (function(module, exports, __webpack_require__) {
10316
-
10317
- var Uint8Array = __webpack_require__(389);
10318
-
10319
- /**
10320
- * Creates a clone of `arrayBuffer`.
10321
- *
10322
- * @private
10323
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
10324
- * @returns {ArrayBuffer} Returns the cloned array buffer.
10325
- */
10326
- function cloneArrayBuffer(arrayBuffer) {
10327
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
10328
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
10329
- return result;
10330
- }
10331
-
10332
- module.exports = cloneArrayBuffer;
10333
-
10334
-
10335
- /***/ }),
10336
- /* 193 */
10337
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10338
-
10339
- "use strict";
10340
- /* unused harmony export Checkboard */
10341
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
10342
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
10343
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(8);
10344
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
10345
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_checkboard__ = __webpack_require__(868);
10346
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
10347
-
10348
-
10349
-
10350
-
10351
-
10352
- var Checkboard = function Checkboard(_ref) {
10353
- var white = _ref.white,
10354
- grey = _ref.grey,
10355
- size = _ref.size,
10356
- renderers = _ref.renderers,
10357
- borderRadius = _ref.borderRadius,
10358
- boxShadow = _ref.boxShadow,
10359
- children = _ref.children;
10360
-
10361
- var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
10362
- 'default': {
10363
- grid: {
10364
- borderRadius: borderRadius,
10365
- boxShadow: boxShadow,
10366
- absolute: '0px 0px 0px 0px',
10367
- background: 'url(' + __WEBPACK_IMPORTED_MODULE_2__helpers_checkboard__["a" /* get */](white, grey, size, renderers.canvas) + ') center left'
10368
- }
10369
- }
10370
- });
10371
- return Object(__WEBPACK_IMPORTED_MODULE_0_react__["isValidElement"])(children) ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(children, _extends({}, children.props, { style: _extends({}, children.props.style, styles.grid) })) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.grid });
10372
- };
10373
-
10374
- Checkboard.defaultProps = {
10375
- size: 8,
10376
- white: 'transparent',
10377
- grey: 'rgba(0,0,0,.08)',
10378
- renderers: {}
10379
- };
10380
-
10381
- /* harmony default export */ __webpack_exports__["a"] = (Checkboard);
10382
-
10383
- /***/ }),
10384
- /* 194 */
10385
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10386
-
10387
- "use strict";
10388
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListCache_js__ = __webpack_require__(119);
10389
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stackClear_js__ = __webpack_require__(879);
10390
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stackDelete_js__ = __webpack_require__(880);
10391
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__stackGet_js__ = __webpack_require__(881);
10392
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__stackHas_js__ = __webpack_require__(882);
10393
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__stackSet_js__ = __webpack_require__(883);
10394
-
10395
-
10396
-
10397
-
10398
-
10399
-
10400
-
10401
- /**
10402
- * Creates a stack cache object to store key-value pairs.
10403
- *
10404
- * @private
10405
- * @constructor
10406
- * @param {Array} [entries] The key-value pairs to cache.
10407
- */
10408
- function Stack(entries) {
10409
- var data = this.__data__ = new __WEBPACK_IMPORTED_MODULE_0__ListCache_js__["a" /* default */](entries);
10410
- this.size = data.size;
10411
- }
10412
-
10413
- // Add methods to `Stack`.
10414
- Stack.prototype.clear = __WEBPACK_IMPORTED_MODULE_1__stackClear_js__["a" /* default */];
10415
- Stack.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_2__stackDelete_js__["a" /* default */];
10416
- Stack.prototype.get = __WEBPACK_IMPORTED_MODULE_3__stackGet_js__["a" /* default */];
10417
- Stack.prototype.has = __WEBPACK_IMPORTED_MODULE_4__stackHas_js__["a" /* default */];
10418
- Stack.prototype.set = __WEBPACK_IMPORTED_MODULE_5__stackSet_js__["a" /* default */];
10419
-
10420
- /* harmony default export */ __webpack_exports__["a"] = (Stack);
10421
-
10422
-
10423
- /***/ }),
10424
- /* 195 */
10425
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10426
-
10427
- "use strict";
10428
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(56);
10429
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__root_js__ = __webpack_require__(30);
10430
-
10431
-
10432
-
10433
- /* Built-in method references that are verified to be native. */
10434
- var Map = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_1__root_js__["a" /* default */], 'Map');
10435
-
10436
- /* harmony default export */ __webpack_exports__["a"] = (Map);
10437
-
10438
-
10439
- /***/ }),
10440
- /* 196 */
10441
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10442
-
10443
- "use strict";
10444
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(69);
10445
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObject_js__ = __webpack_require__(31);
10446
-
10447
-
10448
-
10449
- /** `Object#toString` result references. */
10450
- var asyncTag = '[object AsyncFunction]',
10451
- funcTag = '[object Function]',
10452
- genTag = '[object GeneratorFunction]',
10453
- proxyTag = '[object Proxy]';
10454
-
10455
- /**
10456
- * Checks if `value` is classified as a `Function` object.
10457
- *
10458
- * @static
10459
- * @memberOf _
10460
- * @since 0.1.0
10461
- * @category Lang
10462
- * @param {*} value The value to check.
10463
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
10464
- * @example
10465
- *
10466
- * _.isFunction(_);
10467
- * // => true
10468
- *
10469
- * _.isFunction(/abc/);
10470
- * // => false
10471
- */
10472
- function isFunction(value) {
10473
- if (!Object(__WEBPACK_IMPORTED_MODULE_1__isObject_js__["a" /* default */])(value)) {
10474
- return false;
10475
- }
10476
- // The use of `Object#toString` avoids issues with the `typeof` operator
10477
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
10478
- var tag = Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value);
10479
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
10480
- }
10481
-
10482
- /* harmony default export */ __webpack_exports__["a"] = (isFunction);
10483
-
10484
-
10485
- /***/ }),
10486
- /* 197 */
10487
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10488
-
10489
- "use strict";
10490
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mapCacheClear_js__ = __webpack_require__(890);
10491
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mapCacheDelete_js__ = __webpack_require__(897);
10492
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mapCacheGet_js__ = __webpack_require__(899);
10493
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mapCacheHas_js__ = __webpack_require__(900);
10494
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mapCacheSet_js__ = __webpack_require__(901);
10495
-
10496
-
10497
-
10498
-
10499
-
10500
-
10501
- /**
10502
- * Creates a map cache object to store key-value pairs.
10503
- *
10504
- * @private
10505
- * @constructor
10506
- * @param {Array} [entries] The key-value pairs to cache.
10507
- */
10508
- function MapCache(entries) {
10509
- var index = -1,
10510
- length = entries == null ? 0 : entries.length;
10511
-
10512
- this.clear();
10513
- while (++index < length) {
10514
- var entry = entries[index];
10515
- this.set(entry[0], entry[1]);
10516
- }
10517
- }
10518
-
10519
- // Add methods to `MapCache`.
10520
- MapCache.prototype.clear = __WEBPACK_IMPORTED_MODULE_0__mapCacheClear_js__["a" /* default */];
10521
- MapCache.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_1__mapCacheDelete_js__["a" /* default */];
10522
- MapCache.prototype.get = __WEBPACK_IMPORTED_MODULE_2__mapCacheGet_js__["a" /* default */];
10523
- MapCache.prototype.has = __WEBPACK_IMPORTED_MODULE_3__mapCacheHas_js__["a" /* default */];
10524
- MapCache.prototype.set = __WEBPACK_IMPORTED_MODULE_4__mapCacheSet_js__["a" /* default */];
10525
-
10526
- /* harmony default export */ __webpack_exports__["a"] = (MapCache);
10527
-
10528
-
10529
- /***/ }),
10530
- /* 198 */
10531
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10532
-
10533
- "use strict";
10534
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__defineProperty_js__ = __webpack_require__(404);
10535
-
10536
-
10537
- /**
10538
- * The base implementation of `assignValue` and `assignMergeValue` without
10539
- * value checks.
10540
- *
10541
- * @private
10542
- * @param {Object} object The object to modify.
10543
- * @param {string} key The key of the property to assign.
10544
- * @param {*} value The value to assign.
10545
- */
10546
- function baseAssignValue(object, key, value) {
10547
- if (key == '__proto__' && __WEBPACK_IMPORTED_MODULE_0__defineProperty_js__["a" /* default */]) {
10548
- Object(__WEBPACK_IMPORTED_MODULE_0__defineProperty_js__["a" /* default */])(object, key, {
10549
- 'configurable': true,
10550
- 'enumerable': true,
10551
- 'value': value,
10552
- 'writable': true
10553
- });
10554
- } else {
10555
- object[key] = value;
10556
- }
10557
- }
10558
-
10559
- /* harmony default export */ __webpack_exports__["a"] = (baseAssignValue);
10560
-
10561
-
10562
- /***/ }),
10563
- /* 199 */
10564
- /***/ (function(module, exports) {
10565
-
10566
- module.exports = function(originalModule) {
10567
- if(!originalModule.webpackPolyfill) {
10568
- var module = Object.create(originalModule);
10569
- // module.parent = undefined by default
10570
- if(!module.children) module.children = [];
10571
- Object.defineProperty(module, "loaded", {
10572
- enumerable: true,
10573
- get: function() {
10574
- return module.l;
10575
- }
10576
- });
10577
- Object.defineProperty(module, "id", {
10578
- enumerable: true,
10579
- get: function() {
10580
- return module.i;
10581
- }
10582
- });
10583
- Object.defineProperty(module, "exports", {
10584
- enumerable: true,
10585
- });
10586
- module.webpackPolyfill = 1;
10587
- }
10588
- return module;
10589
- };
10590
-
10591
-
10592
- /***/ }),
10593
- /* 200 */
10594
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10595
-
10596
- "use strict";
10597
- /** Used for built-in method references. */
10598
- var objectProto = Object.prototype;
10599
-
10600
- /**
10601
- * Checks if `value` is likely a prototype object.
10602
- *
10603
- * @private
10604
- * @param {*} value The value to check.
10605
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
10606
- */
10607
- function isPrototype(value) {
10608
- var Ctor = value && value.constructor,
10609
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
10610
-
10611
- return value === proto;
10612
- }
10613
-
10614
- /* harmony default export */ __webpack_exports__["a"] = (isPrototype);
10615
-
10616
-
10617
- /***/ }),
10618
- /* 201 */
10619
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10620
-
10621
- "use strict";
10622
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__ = __webpack_require__(910);
10623
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(57);
10624
-
10625
-
10626
-
10627
- /** Used for built-in method references. */
10628
- var objectProto = Object.prototype;
10629
-
10630
- /** Used to check objects for own properties. */
10631
- var hasOwnProperty = objectProto.hasOwnProperty;
10632
-
10633
- /** Built-in value references. */
10634
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
10635
-
10636
- /**
10637
- * Checks if `value` is likely an `arguments` object.
10638
- *
10639
- * @static
10640
- * @memberOf _
10641
- * @since 0.1.0
10642
- * @category Lang
10643
- * @param {*} value The value to check.
10644
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
10645
- * else `false`.
10646
- * @example
10647
- *
10648
- * _.isArguments(function() { return arguments; }());
10649
- * // => true
10650
- *
10651
- * _.isArguments([1, 2, 3]);
10652
- * // => false
10653
- */
10654
- var isArguments = Object(__WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__["a" /* default */])(function() { return arguments; }()) ? __WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__["a" /* default */] : function(value) {
10655
- return Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && hasOwnProperty.call(value, 'callee') &&
10656
- !propertyIsEnumerable.call(value, 'callee');
10657
- };
10658
-
10659
- /* harmony default export */ __webpack_exports__["a"] = (isArguments);
10660
-
10661
-
10662
- /***/ }),
10663
- /* 202 */
10664
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10665
-
10666
- "use strict";
10667
- /** Used as references for various `Number` constants. */
10668
- var MAX_SAFE_INTEGER = 9007199254740991;
10669
-
10670
- /**
10671
- * Checks if `value` is a valid array-like length.
10672
- *
10673
- * **Note:** This method is loosely based on
10674
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
10675
- *
10676
- * @static
10677
- * @memberOf _
10678
- * @since 4.0.0
10679
- * @category Lang
10680
- * @param {*} value The value to check.
10681
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
10682
- * @example
10683
- *
10684
- * _.isLength(3);
10685
- * // => true
10686
- *
10687
- * _.isLength(Number.MIN_VALUE);
10688
- * // => false
10689
- *
10690
- * _.isLength(Infinity);
10691
- * // => false
10692
- *
10693
- * _.isLength('3');
10694
- * // => false
10695
- */
10696
- function isLength(value) {
10697
- return typeof value == 'number' &&
10698
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
10699
- }
10700
-
10701
- /* harmony default export */ __webpack_exports__["a"] = (isLength);
10702
-
10703
-
10704
- /***/ }),
10705
- /* 203 */
10706
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10707
-
10708
- "use strict";
10709
- /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(30);
10710
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stubFalse_js__ = __webpack_require__(912);
10711
-
10712
-
10713
-
10714
- /** Detect free variable `exports`. */
10715
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
10716
-
10717
- /** Detect free variable `module`. */
10718
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
10719
-
10720
- /** Detect the popular CommonJS extension `module.exports`. */
10721
- var moduleExports = freeModule && freeModule.exports === freeExports;
10722
-
10723
- /** Built-in value references. */
10724
- var Buffer = moduleExports ? __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Buffer : undefined;
10725
-
10726
- /* Built-in method references for those with the same name as other `lodash` methods. */
10727
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
10728
-
10729
- /**
10730
- * Checks if `value` is a buffer.
10731
- *
10732
- * @static
10733
- * @memberOf _
10734
- * @since 4.3.0
10735
- * @category Lang
10736
- * @param {*} value The value to check.
10737
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
10738
- * @example
10739
- *
10740
- * _.isBuffer(new Buffer(2));
10741
- * // => true
10742
- *
10743
- * _.isBuffer(new Uint8Array(2));
10744
- * // => false
10745
- */
10746
- var isBuffer = nativeIsBuffer || __WEBPACK_IMPORTED_MODULE_1__stubFalse_js__["a" /* default */];
10747
-
10748
- /* harmony default export */ __webpack_exports__["a"] = (isBuffer);
10749
-
10750
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(199)(module)))
10751
-
10752
- /***/ }),
10753
- /* 204 */
10754
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10755
-
10756
- "use strict";
10757
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsTypedArray_js__ = __webpack_require__(914);
10758
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseUnary_js__ = __webpack_require__(915);
10759
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__ = __webpack_require__(916);
10760
-
10761
-
10762
-
10763
-
10764
- /* Node.js helper references. */
10765
- var nodeIsTypedArray = __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__["a" /* default */] && __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__["a" /* default */].isTypedArray;
10766
-
10767
- /**
10768
- * Checks if `value` is classified as a typed array.
10769
- *
10770
- * @static
10771
- * @memberOf _
10772
- * @since 3.0.0
10773
- * @category Lang
10774
- * @param {*} value The value to check.
10775
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
10776
- * @example
10777
- *
10778
- * _.isTypedArray(new Uint8Array);
10779
- * // => true
10780
- *
10781
- * _.isTypedArray([]);
10782
- * // => false
10783
- */
10784
- var isTypedArray = nodeIsTypedArray ? Object(__WEBPACK_IMPORTED_MODULE_1__baseUnary_js__["a" /* default */])(nodeIsTypedArray) : __WEBPACK_IMPORTED_MODULE_0__baseIsTypedArray_js__["a" /* default */];
10785
-
10786
- /* harmony default export */ __webpack_exports__["a"] = (isTypedArray);
10787
-
10788
-
10789
- /***/ }),
10790
- /* 205 */
10791
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10792
-
10793
- "use strict";
10794
- /** Used as references for various `Number` constants. */
10795
- var MAX_SAFE_INTEGER = 9007199254740991;
10796
-
10797
- /** Used to detect unsigned integer values. */
10798
- var reIsUint = /^(?:0|[1-9]\d*)$/;
10799
-
10800
- /**
10801
- * Checks if `value` is a valid array-like index.
10802
- *
10803
- * @private
10804
- * @param {*} value The value to check.
10805
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
10806
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
10807
- */
10808
- function isIndex(value, length) {
10809
- var type = typeof value;
10810
- length = length == null ? MAX_SAFE_INTEGER : length;
10811
-
10812
- return !!length &&
10813
- (type == 'number' ||
10814
- (type != 'symbol' && reIsUint.test(value))) &&
10815
- (value > -1 && value % 1 == 0 && value < length);
10816
- }
10817
-
10818
- /* harmony default export */ __webpack_exports__["a"] = (isIndex);
10819
-
10820
-
10821
- /***/ }),
10822
- /* 206 */
10823
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10824
-
10825
- "use strict";
10826
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__ = __webpack_require__(411);
10827
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseKeys_js__ = __webpack_require__(941);
10828
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__ = __webpack_require__(70);
10829
-
10830
-
10831
-
10832
-
10833
- /**
10834
- * Creates an array of the own enumerable property names of `object`.
10835
- *
10836
- * **Note:** Non-object values are coerced to objects. See the
10837
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
10838
- * for more details.
10839
- *
10840
- * @static
10841
- * @since 0.1.0
10842
- * @memberOf _
10843
- * @category Object
10844
- * @param {Object} object The object to query.
10845
- * @returns {Array} Returns the array of property names.
10846
- * @example
10847
- *
10848
- * function Foo() {
10849
- * this.a = 1;
10850
- * this.b = 2;
10851
- * }
10852
- *
10853
- * Foo.prototype.c = 3;
10854
- *
10855
- * _.keys(new Foo);
10856
- * // => ['a', 'b'] (iteration order is not guaranteed)
10857
- *
10858
- * _.keys('hi');
10859
- * // => ['0', '1']
10860
- */
10861
- function keys(object) {
10862
- return Object(__WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__["a" /* default */])(object) ? Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__["a" /* default */])(object) : Object(__WEBPACK_IMPORTED_MODULE_1__baseKeys_js__["a" /* default */])(object);
10863
- }
10864
-
10865
- /* harmony default export */ __webpack_exports__["a"] = (keys);
10866
-
10867
-
10868
- /***/ }),
10869
- /* 207 */
10870
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10871
-
10872
- "use strict";
10873
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isArray_js__ = __webpack_require__(32);
10874
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isSymbol_js__ = __webpack_require__(125);
10875
-
10876
-
10877
-
10878
- /** Used to match property names within property paths. */
10879
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
10880
- reIsPlainProp = /^\w*$/;
10881
-
10882
- /**
10883
- * Checks if `value` is a property name and not a property path.
10884
- *
10885
- * @private
10886
- * @param {*} value The value to check.
10887
- * @param {Object} [object] The object to query keys on.
10888
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
10889
- */
10890
- function isKey(value, object) {
10891
- if (Object(__WEBPACK_IMPORTED_MODULE_0__isArray_js__["a" /* default */])(value)) {
10892
- return false;
10893
- }
10894
- var type = typeof value;
10895
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
10896
- value == null || Object(__WEBPACK_IMPORTED_MODULE_1__isSymbol_js__["a" /* default */])(value)) {
10897
- return true;
10898
- }
10899
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
10900
- (object != null && value in Object(object));
10901
- }
10902
-
10903
- /* harmony default export */ __webpack_exports__["a"] = (isKey);
10904
-
10905
-
10906
- /***/ }),
10907
- /* 208 */
10908
- /***/ (function(module, exports, __webpack_require__) {
10909
-
10910
- "use strict";
10911
- /* WEBPACK VAR INJECTION */(function(process) {
10912
-
10913
- if (process.env.NODE_ENV === 'production') {
10914
- module.exports = __webpack_require__(429);
10915
- } else {
10916
- module.exports = __webpack_require__(430);
10917
- }
10918
-
10919
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
10920
-
10921
- /***/ }),
10922
- /* 209 */
10923
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10924
-
10925
- "use strict";
10926
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MemoryRouter; });
10927
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Prompt; });
10928
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return Redirect; });
10929
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return Route; });
10930
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return Router; });
10931
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return StaticRouter; });
10932
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return Switch; });
10933
- /* unused harmony export __HistoryContext */
10934
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return context; });
10935
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return generatePath; });
10936
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return matchPath; });
10937
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return useHistory; });
10938
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return useLocation; });
10939
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return useParams; });
10940
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return useRouteMatch; });
10941
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return withRouter; });
10942
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(34);
10943
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
10944
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
10945
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(2);
10946
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
10947
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history__ = __webpack_require__(210);
10948
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_tiny_warning__ = __webpack_require__(48);
10949
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_mini_create_react_context__ = __webpack_require__(441);
10950
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_tiny_invariant__ = __webpack_require__(129);
10951
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
10952
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_path_to_regexp__ = __webpack_require__(442);
10953
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_path_to_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_path_to_regexp__);
10954
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_is__ = __webpack_require__(16);
10955
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react_is__);
10956
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(43);
10957
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics__ = __webpack_require__(71);
10958
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics__);
10959
-
10960
-
10961
-
10962
-
10963
-
10964
-
10965
-
10966
-
10967
-
10968
-
10969
-
10970
-
10971
-
10972
- // TODO: Replace with React.createContext once we can assume React 16+
10973
-
10974
- var createNamedContext = function createNamedContext(name) {
10975
- var context = Object(__WEBPACK_IMPORTED_MODULE_5_mini_create_react_context__["a" /* default */])();
10976
- context.displayName = name;
10977
- return context;
10978
- };
10979
-
10980
- var historyContext =
10981
- /*#__PURE__*/
10982
- createNamedContext("Router-History");
10983
-
10984
- // TODO: Replace with React.createContext once we can assume React 16+
10985
-
10986
- var createNamedContext$1 = function createNamedContext(name) {
10987
- var context = Object(__WEBPACK_IMPORTED_MODULE_5_mini_create_react_context__["a" /* default */])();
10988
- context.displayName = name;
10989
- return context;
10990
- };
10991
-
10992
- var context =
10993
- /*#__PURE__*/
10994
- createNamedContext$1("Router");
10995
-
10996
- /**
10997
- * The public API for putting history on context.
10998
- */
10999
-
11000
- var Router =
11001
- /*#__PURE__*/
11002
- function (_React$Component) {
11003
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Router, _React$Component);
11004
-
11005
- Router.computeRootMatch = function computeRootMatch(pathname) {
11006
- return {
11007
- path: "/",
11008
- url: "/",
11009
- params: {},
11010
- isExact: pathname === "/"
11011
- };
11012
- };
11013
-
11014
- function Router(props) {
11015
- var _this;
11016
-
11017
- _this = _React$Component.call(this, props) || this;
11018
- _this.state = {
11019
- location: props.history.location
11020
- }; // This is a bit of a hack. We have to start listening for location
11021
- // changes here in the constructor in case there are any <Redirect>s
11022
- // on the initial render. If there are, they will replace/push when
11023
- // they mount and since cDM fires in children before parents, we may
11024
- // get a new location before the <Router> is mounted.
11025
-
11026
- _this._isMounted = false;
11027
- _this._pendingLocation = null;
11028
-
11029
- if (!props.staticContext) {
11030
- _this.unlisten = props.history.listen(function (location) {
11031
- if (_this._isMounted) {
11032
- _this.setState({
11033
- location: location
11034
- });
11035
- } else {
11036
- _this._pendingLocation = location;
11037
- }
11038
- });
11039
- }
11040
-
11041
- return _this;
11042
- }
11043
-
11044
- var _proto = Router.prototype;
11045
-
11046
- _proto.componentDidMount = function componentDidMount() {
11047
- this._isMounted = true;
11048
-
11049
- if (this._pendingLocation) {
11050
- this.setState({
11051
- location: this._pendingLocation
11052
- });
11053
- }
11054
- };
11055
-
11056
- _proto.componentWillUnmount = function componentWillUnmount() {
11057
- if (this.unlisten) this.unlisten();
11058
- };
11059
-
11060
- _proto.render = function render() {
11061
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Provider, {
11062
- value: {
11063
- history: this.props.history,
11064
- location: this.state.location,
11065
- match: Router.computeRootMatch(this.state.location.pathname),
11066
- staticContext: this.props.staticContext
11067
- }
11068
- }, __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(historyContext.Provider, {
11069
- children: this.props.children || null,
11070
- value: this.props.history
11071
- }));
11072
- };
11073
-
11074
- return Router;
11075
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11076
-
11077
- if (process.env.NODE_ENV !== "production") {
11078
- Router.propTypes = {
11079
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,
11080
- history: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object.isRequired,
11081
- staticContext: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object
11082
- };
11083
-
11084
- Router.prototype.componentDidUpdate = function (prevProps) {
11085
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(prevProps.history === this.props.history, "You cannot change <Router history>") : void 0;
11086
- };
11087
- }
11088
-
11089
- /**
11090
- * The public API for a <Router> that stores location in memory.
11091
- */
11092
-
11093
- var MemoryRouter =
11094
- /*#__PURE__*/
11095
- function (_React$Component) {
11096
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(MemoryRouter, _React$Component);
11097
-
11098
- function MemoryRouter() {
11099
- var _this;
11100
-
11101
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11102
- args[_key] = arguments[_key];
11103
- }
11104
-
11105
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
11106
- _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["d" /* createMemoryHistory */])(_this.props);
11107
- return _this;
11108
- }
11109
-
11110
- var _proto = MemoryRouter.prototype;
11111
-
11112
- _proto.render = function render() {
11113
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Router, {
11114
- history: this.history,
11115
- children: this.props.children
11116
- });
11117
- };
11118
-
11119
- return MemoryRouter;
11120
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11121
-
11122
- if (process.env.NODE_ENV !== "production") {
11123
- MemoryRouter.propTypes = {
11124
- initialEntries: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array,
11125
- initialIndex: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
11126
- getUserConfirmation: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
11127
- keyLength: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
11128
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node
11129
- };
11130
-
11131
- MemoryRouter.prototype.componentDidMount = function () {
11132
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { MemoryRouter as Router }`.") : void 0;
11133
- };
11134
- }
11135
-
11136
- var Lifecycle =
11137
- /*#__PURE__*/
11138
- function (_React$Component) {
11139
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Lifecycle, _React$Component);
11140
-
11141
- function Lifecycle() {
11142
- return _React$Component.apply(this, arguments) || this;
11143
- }
11144
-
11145
- var _proto = Lifecycle.prototype;
11146
-
11147
- _proto.componentDidMount = function componentDidMount() {
11148
- if (this.props.onMount) this.props.onMount.call(this, this);
11149
- };
11150
-
11151
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
11152
- if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);
11153
- };
11154
-
11155
- _proto.componentWillUnmount = function componentWillUnmount() {
11156
- if (this.props.onUnmount) this.props.onUnmount.call(this, this);
11157
- };
11158
-
11159
- _proto.render = function render() {
11160
- return null;
11161
- };
11162
-
11163
- return Lifecycle;
11164
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11165
-
11166
- /**
11167
- * The public API for prompting the user before navigating away from a screen.
11168
- */
11169
-
11170
- function Prompt(_ref) {
11171
- var message = _ref.message,
11172
- _ref$when = _ref.when,
11173
- when = _ref$when === void 0 ? true : _ref$when;
11174
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
11175
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Prompt> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11176
- if (!when || context.staticContext) return null;
11177
- var method = context.history.block;
11178
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Lifecycle, {
11179
- onMount: function onMount(self) {
11180
- self.release = method(message);
11181
- },
11182
- onUpdate: function onUpdate(self, prevProps) {
11183
- if (prevProps.message !== message) {
11184
- self.release();
11185
- self.release = method(message);
11186
- }
11187
- },
11188
- onUnmount: function onUnmount(self) {
11189
- self.release();
11190
- },
11191
- message: message
11192
- });
11193
- });
11194
- }
11195
-
11196
- if (process.env.NODE_ENV !== "production") {
11197
- var messageType = __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string]);
11198
- Prompt.propTypes = {
11199
- when: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
11200
- message: messageType.isRequired
11201
- };
11202
- }
11203
-
11204
- var cache = {};
11205
- var cacheLimit = 10000;
11206
- var cacheCount = 0;
11207
-
11208
- function compilePath(path) {
11209
- if (cache[path]) return cache[path];
11210
- var generator = __WEBPACK_IMPORTED_MODULE_8_path_to_regexp___default.a.compile(path);
11211
-
11212
- if (cacheCount < cacheLimit) {
11213
- cache[path] = generator;
11214
- cacheCount++;
11215
- }
11216
-
11217
- return generator;
11218
- }
11219
- /**
11220
- * Public API for generating a URL pathname from a path and parameters.
11221
- */
11222
-
11223
-
11224
- function generatePath(path, params) {
11225
- if (path === void 0) {
11226
- path = "/";
11227
- }
11228
-
11229
- if (params === void 0) {
11230
- params = {};
11231
- }
11232
-
11233
- return path === "/" ? path : compilePath(path)(params, {
11234
- pretty: true
11235
- });
11236
- }
11237
-
11238
- /**
11239
- * The public API for navigating programmatically with a component.
11240
- */
11241
-
11242
- function Redirect(_ref) {
11243
- var computedMatch = _ref.computedMatch,
11244
- to = _ref.to,
11245
- _ref$push = _ref.push,
11246
- push = _ref$push === void 0 ? false : _ref$push;
11247
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
11248
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Redirect> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11249
- var history = context.history,
11250
- staticContext = context.staticContext;
11251
- var method = push ? history.push : history.replace;
11252
- var location = Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, to, {
11253
- pathname: generatePath(to.pathname, computedMatch.params)
11254
- }) : to); // When rendering in a static context,
11255
- // set the new location immediately.
11256
-
11257
- if (staticContext) {
11258
- method(location);
11259
- return null;
11260
- }
11261
-
11262
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Lifecycle, {
11263
- onMount: function onMount() {
11264
- method(location);
11265
- },
11266
- onUpdate: function onUpdate(self, prevProps) {
11267
- var prevLocation = Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(prevProps.to);
11268
-
11269
- if (!Object(__WEBPACK_IMPORTED_MODULE_3_history__["f" /* locationsAreEqual */])(prevLocation, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, location, {
11270
- key: prevLocation.key
11271
- }))) {
11272
- method(location);
11273
- }
11274
- },
11275
- to: to
11276
- });
11277
- });
11278
- }
11279
-
11280
- if (process.env.NODE_ENV !== "production") {
11281
- Redirect.propTypes = {
11282
- push: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
11283
- from: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
11284
- to: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object]).isRequired
11285
- };
11286
- }
11287
-
11288
- var cache$1 = {};
11289
- var cacheLimit$1 = 10000;
11290
- var cacheCount$1 = 0;
11291
-
11292
- function compilePath$1(path, options) {
11293
- var cacheKey = "" + options.end + options.strict + options.sensitive;
11294
- var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {});
11295
- if (pathCache[path]) return pathCache[path];
11296
- var keys = [];
11297
- var regexp = __WEBPACK_IMPORTED_MODULE_8_path_to_regexp___default()(path, keys, options);
11298
- var result = {
11299
- regexp: regexp,
11300
- keys: keys
11301
- };
11302
-
11303
- if (cacheCount$1 < cacheLimit$1) {
11304
- pathCache[path] = result;
11305
- cacheCount$1++;
11306
- }
11307
-
11308
- return result;
11309
- }
11310
- /**
11311
- * Public API for matching a URL pathname to a path.
11312
- */
11313
-
11314
-
11315
- function matchPath(pathname, options) {
11316
- if (options === void 0) {
11317
- options = {};
11318
- }
11319
-
11320
- if (typeof options === "string" || Array.isArray(options)) {
11321
- options = {
11322
- path: options
11323
- };
11324
- }
11325
-
11326
- var _options = options,
11327
- path = _options.path,
11328
- _options$exact = _options.exact,
11329
- exact = _options$exact === void 0 ? false : _options$exact,
11330
- _options$strict = _options.strict,
11331
- strict = _options$strict === void 0 ? false : _options$strict,
11332
- _options$sensitive = _options.sensitive,
11333
- sensitive = _options$sensitive === void 0 ? false : _options$sensitive;
11334
- var paths = [].concat(path);
11335
- return paths.reduce(function (matched, path) {
11336
- if (!path && path !== "") return null;
11337
- if (matched) return matched;
11338
-
11339
- var _compilePath = compilePath$1(path, {
11340
- end: exact,
11341
- strict: strict,
11342
- sensitive: sensitive
11343
- }),
11344
- regexp = _compilePath.regexp,
11345
- keys = _compilePath.keys;
11346
-
11347
- var match = regexp.exec(pathname);
11348
- if (!match) return null;
11349
- var url = match[0],
11350
- values = match.slice(1);
11351
- var isExact = pathname === url;
11352
- if (exact && !isExact) return null;
11353
- return {
11354
- path: path,
11355
- // the path used to match
11356
- url: path === "/" && url === "" ? "/" : url,
11357
- // the matched portion of the URL
11358
- isExact: isExact,
11359
- // whether or not we matched exactly
11360
- params: keys.reduce(function (memo, key, index) {
11361
- memo[key.name] = values[index];
11362
- return memo;
11363
- }, {})
11364
- };
11365
- }, null);
11366
- }
11367
-
11368
- function isEmptyChildren(children) {
11369
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.Children.count(children) === 0;
11370
- }
11371
-
11372
- function evalChildrenDev(children, props, path) {
11373
- var value = children(props);
11374
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(value !== undefined, "You returned `undefined` from the `children` function of " + ("<Route" + (path ? " path=\"" + path + "\"" : "") + ">, but you ") + "should have returned a React element or `null`") : void 0;
11375
- return value || null;
11376
- }
11377
- /**
11378
- * The public API for matching a single path and rendering.
11379
- */
11380
-
11381
-
11382
- var Route =
11383
- /*#__PURE__*/
11384
- function (_React$Component) {
11385
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Route, _React$Component);
11386
-
11387
- function Route() {
11388
- return _React$Component.apply(this, arguments) || this;
11389
- }
11390
-
11391
- var _proto = Route.prototype;
11392
-
11393
- _proto.render = function render() {
11394
- var _this = this;
11395
-
11396
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context$1) {
11397
- !context$1 ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Route> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11398
- var location = _this.props.location || context$1.location;
11399
- var match = _this.props.computedMatch ? _this.props.computedMatch // <Switch> already computed the match for us
11400
- : _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;
11401
-
11402
- var props = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, context$1, {
11403
- location: location,
11404
- match: match
11405
- });
11406
-
11407
- var _this$props = _this.props,
11408
- children = _this$props.children,
11409
- component = _this$props.component,
11410
- render = _this$props.render; // Preact uses an empty array as children by
11411
- // default, so use null if that's the case.
11412
-
11413
- if (Array.isArray(children) && children.length === 0) {
11414
- children = null;
11415
- }
11416
-
11417
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Provider, {
11418
- value: props
11419
- }, props.match ? children ? typeof children === "function" ? process.env.NODE_ENV !== "production" ? evalChildrenDev(children, props, _this.props.path) : children(props) : children : component ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(component, props) : render ? render(props) : null : typeof children === "function" ? process.env.NODE_ENV !== "production" ? evalChildrenDev(children, props, _this.props.path) : children(props) : null);
11420
- });
11421
- };
11422
-
11423
- return Route;
11424
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11425
-
11426
- if (process.env.NODE_ENV !== "production") {
11427
- Route.propTypes = {
11428
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node]),
11429
- component: function component(props, propName) {
11430
- if (props[propName] && !Object(__WEBPACK_IMPORTED_MODULE_9_react_is__["isValidElementType"])(props[propName])) {
11431
- return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component");
11432
- }
11433
- },
11434
- exact: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
11435
- location: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object,
11436
- path: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string)]),
11437
- render: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
11438
- sensitive: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
11439
- strict: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool
11440
- };
11441
-
11442
- Route.prototype.componentDidMount = function () {
11443
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.component), "You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored") : void 0;
11444
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.render), "You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored") : void 0;
11445
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.component && this.props.render), "You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored") : void 0;
11446
- };
11447
-
11448
- Route.prototype.componentDidUpdate = function (prevProps) {
11449
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.location && !prevProps.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.') : void 0;
11450
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(!this.props.location && prevProps.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.') : void 0;
11451
- };
11452
- }
11453
-
11454
- function addLeadingSlash(path) {
11455
- return path.charAt(0) === "/" ? path : "/" + path;
11456
- }
11457
-
11458
- function addBasename(basename, location) {
11459
- if (!basename) return location;
11460
- return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, location, {
11461
- pathname: addLeadingSlash(basename) + location.pathname
11462
- });
11463
- }
11464
-
11465
- function stripBasename(basename, location) {
11466
- if (!basename) return location;
11467
- var base = addLeadingSlash(basename);
11468
- if (location.pathname.indexOf(base) !== 0) return location;
11469
- return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, location, {
11470
- pathname: location.pathname.substr(base.length)
11471
- });
11472
- }
11473
-
11474
- function createURL(location) {
11475
- return typeof location === "string" ? location : Object(__WEBPACK_IMPORTED_MODULE_3_history__["e" /* createPath */])(location);
11476
- }
11477
-
11478
- function staticHandler(methodName) {
11479
- return function () {
11480
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You cannot %s with <StaticRouter>", methodName) : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) ;
11481
- };
11482
- }
11483
-
11484
- function noop() {}
11485
- /**
11486
- * The public top-level API for a "static" <Router>, so-called because it
11487
- * can't actually change the current location. Instead, it just records
11488
- * location changes in a context object. Useful mainly in testing and
11489
- * server-rendering scenarios.
11490
- */
11491
-
11492
-
11493
- var StaticRouter =
11494
- /*#__PURE__*/
11495
- function (_React$Component) {
11496
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(StaticRouter, _React$Component);
11497
-
11498
- function StaticRouter() {
11499
- var _this;
11500
-
11501
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11502
- args[_key] = arguments[_key];
11503
- }
11504
-
11505
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
11506
-
11507
- _this.handlePush = function (location) {
11508
- return _this.navigateTo(location, "PUSH");
11509
- };
11510
-
11511
- _this.handleReplace = function (location) {
11512
- return _this.navigateTo(location, "REPLACE");
11513
- };
11514
-
11515
- _this.handleListen = function () {
11516
- return noop;
11517
- };
11518
-
11519
- _this.handleBlock = function () {
11520
- return noop;
11521
- };
11522
-
11523
- return _this;
11524
- }
11525
-
11526
- var _proto = StaticRouter.prototype;
11527
-
11528
- _proto.navigateTo = function navigateTo(location, action) {
11529
- var _this$props = this.props,
11530
- _this$props$basename = _this$props.basename,
11531
- basename = _this$props$basename === void 0 ? "" : _this$props$basename,
11532
- _this$props$context = _this$props.context,
11533
- context = _this$props$context === void 0 ? {} : _this$props$context;
11534
- context.action = action;
11535
- context.location = addBasename(basename, Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(location));
11536
- context.url = createURL(context.location);
11537
- };
11538
-
11539
- _proto.render = function render() {
11540
- var _this$props2 = this.props,
11541
- _this$props2$basename = _this$props2.basename,
11542
- basename = _this$props2$basename === void 0 ? "" : _this$props2$basename,
11543
- _this$props2$context = _this$props2.context,
11544
- context = _this$props2$context === void 0 ? {} : _this$props2$context,
11545
- _this$props2$location = _this$props2.location,
11546
- location = _this$props2$location === void 0 ? "/" : _this$props2$location,
11547
- rest = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props2, ["basename", "context", "location"]);
11548
-
11549
- var history = {
11550
- createHref: function createHref(path) {
11551
- return addLeadingSlash(basename + createURL(path));
11552
- },
11553
- action: "POP",
11554
- location: stripBasename(basename, Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(location)),
11555
- push: this.handlePush,
11556
- replace: this.handleReplace,
11557
- go: staticHandler("go"),
11558
- goBack: staticHandler("goBack"),
11559
- goForward: staticHandler("goForward"),
11560
- listen: this.handleListen,
11561
- block: this.handleBlock
11562
- };
11563
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Router, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
11564
- history: history,
11565
- staticContext: context
11566
- }));
11567
- };
11568
-
11569
- return StaticRouter;
11570
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11571
-
11572
- if (process.env.NODE_ENV !== "production") {
11573
- StaticRouter.propTypes = {
11574
- basename: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
11575
- context: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object,
11576
- location: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object])
11577
- };
11578
-
11579
- StaticRouter.prototype.componentDidMount = function () {
11580
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!this.props.history, "<StaticRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { StaticRouter as Router }`.") : void 0;
11581
- };
11582
- }
11583
-
11584
- /**
11585
- * The public API for rendering the first <Route> that matches.
11586
- */
11587
-
11588
- var Switch =
11589
- /*#__PURE__*/
11590
- function (_React$Component) {
11591
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Switch, _React$Component);
11592
-
11593
- function Switch() {
11594
- return _React$Component.apply(this, arguments) || this;
11595
- }
11596
-
11597
- var _proto = Switch.prototype;
11598
-
11599
- _proto.render = function render() {
11600
- var _this = this;
11601
-
11602
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
11603
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Switch> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11604
- var location = _this.props.location || context.location;
11605
- var element, match; // We use React.Children.forEach instead of React.Children.toArray().find()
11606
- // here because toArray adds keys to all child elements and we do not want
11607
- // to trigger an unmount/remount for two <Route>s that render the same
11608
- // component at different URLs.
11609
-
11610
- __WEBPACK_IMPORTED_MODULE_1_react___default.a.Children.forEach(_this.props.children, function (child) {
11611
- if (match == null && __WEBPACK_IMPORTED_MODULE_1_react___default.a.isValidElement(child)) {
11612
- element = child;
11613
- var path = child.props.path || child.props.from;
11614
- match = path ? matchPath(location.pathname, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, child.props, {
11615
- path: path
11616
- })) : context.match;
11617
- }
11618
- });
11619
- return match ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(element, {
11620
- location: location,
11621
- computedMatch: match
11622
- }) : null;
11623
- });
11624
- };
11625
-
11626
- return Switch;
11627
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11628
-
11629
- if (process.env.NODE_ENV !== "production") {
11630
- Switch.propTypes = {
11631
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,
11632
- location: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object
11633
- };
11634
-
11635
- Switch.prototype.componentDidUpdate = function (prevProps) {
11636
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.location && !prevProps.location), '<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.') : void 0;
11637
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(!this.props.location && prevProps.location), '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.') : void 0;
11638
- };
11639
- }
11640
-
11641
- /**
11642
- * A public higher-order component to access the imperative API
11643
- */
11644
-
11645
- function withRouter(Component) {
11646
- var displayName = "withRouter(" + (Component.displayName || Component.name) + ")";
11647
-
11648
- var C = function C(props) {
11649
- var wrappedComponentRef = props.wrappedComponentRef,
11650
- remainingProps = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(props, ["wrappedComponentRef"]);
11651
-
11652
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
11653
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <" + displayName + " /> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11654
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Component, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, remainingProps, context, {
11655
- ref: wrappedComponentRef
11656
- }));
11657
- });
11658
- };
11659
-
11660
- C.displayName = displayName;
11661
- C.WrappedComponent = Component;
11662
-
11663
- if (process.env.NODE_ENV !== "production") {
11664
- C.propTypes = {
11665
- wrappedComponentRef: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object])
11666
- };
11667
- }
11668
-
11669
- return __WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics___default()(C, Component);
11670
- }
11671
-
11672
- var useContext = __WEBPACK_IMPORTED_MODULE_1_react___default.a.useContext;
11673
- function useHistory() {
11674
- if (process.env.NODE_ENV !== "production") {
11675
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useHistory()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11676
- }
11677
-
11678
- return useContext(historyContext);
11679
- }
11680
- function useLocation() {
11681
- if (process.env.NODE_ENV !== "production") {
11682
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useLocation()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11683
- }
11684
-
11685
- return useContext(context).location;
11686
- }
11687
- function useParams() {
11688
- if (process.env.NODE_ENV !== "production") {
11689
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useParams()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11690
- }
11691
-
11692
- var match = useContext(context).match;
11693
- return match ? match.params : {};
11694
- }
11695
- function useRouteMatch(path) {
11696
- if (process.env.NODE_ENV !== "production") {
11697
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useRouteMatch()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11698
- }
11699
-
11700
- var location = useLocation();
11701
- var match = useContext(context).match;
11702
- return path ? matchPath(location.pathname, path) : match;
11703
- }
11704
-
11705
- if (process.env.NODE_ENV !== "production") {
11706
- if (typeof window !== "undefined") {
11707
- var global = window;
11708
- var key = "__react_router_build__";
11709
- var buildNames = {
11710
- cjs: "CommonJS",
11711
- esm: "ES modules",
11712
- umd: "UMD"
11713
- };
11714
-
11715
- if (global[key] && global[key] !== "esm") {
11716
- var initialBuildName = buildNames[global[key]];
11717
- var secondaryBuildName = buildNames["esm"]; // TODO: Add link to article that explains in detail how to avoid
11718
- // loading 2 different builds.
11719
-
11720
- throw new Error("You are loading the " + secondaryBuildName + " build of React Router " + ("on a page that is already running the " + initialBuildName + " ") + "build, so things won't work right.");
11721
- }
11722
-
11723
- global[key] = "esm";
11724
- }
11725
- }
11726
-
11727
-
11728
- //# sourceMappingURL=react-router.js.map
11729
-
11730
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
11731
-
11732
- /***/ }),
11733
- /* 210 */
11734
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11735
-
11736
- "use strict";
11737
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createBrowserHistory; });
11738
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createHashHistory; });
11739
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createMemoryHistory; });
11740
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createLocation; });
11741
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return locationsAreEqual; });
11742
- /* unused harmony export parsePath */
11743
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return createPath; });
11744
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
11745
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_resolve_pathname__ = __webpack_require__(439);
11746
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_value_equal__ = __webpack_require__(440);
11747
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_tiny_warning__ = __webpack_require__(48);
11748
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_tiny_invariant__ = __webpack_require__(129);
11749
-
11750
-
11751
-
11752
-
11753
-
11754
-
11755
- function addLeadingSlash(path) {
11756
- return path.charAt(0) === '/' ? path : '/' + path;
11757
- }
11758
- function stripLeadingSlash(path) {
11759
- return path.charAt(0) === '/' ? path.substr(1) : path;
11760
- }
11761
- function hasBasename(path, prefix) {
11762
- return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
11763
- }
11764
- function stripBasename(path, prefix) {
11765
- return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
11766
- }
11767
- function stripTrailingSlash(path) {
11768
- return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
11769
- }
11770
- function parsePath(path) {
11771
- var pathname = path || '/';
11772
- var search = '';
11773
- var hash = '';
11774
- var hashIndex = pathname.indexOf('#');
11775
-
11776
- if (hashIndex !== -1) {
11777
- hash = pathname.substr(hashIndex);
11778
- pathname = pathname.substr(0, hashIndex);
11779
- }
11780
-
11781
- var searchIndex = pathname.indexOf('?');
11782
-
11783
- if (searchIndex !== -1) {
11784
- search = pathname.substr(searchIndex);
11785
- pathname = pathname.substr(0, searchIndex);
11786
- }
11787
-
11788
- return {
11789
- pathname: pathname,
11790
- search: search === '?' ? '' : search,
11791
- hash: hash === '#' ? '' : hash
11792
- };
11793
- }
11794
- function createPath(location) {
11795
- var pathname = location.pathname,
11796
- search = location.search,
11797
- hash = location.hash;
11798
- var path = pathname || '/';
11799
- if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
11800
- if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
11801
- return path;
11802
- }
11803
-
11804
- function createLocation(path, state, key, currentLocation) {
11805
- var location;
11806
-
11807
- if (typeof path === 'string') {
11808
- // Two-arg form: push(path, state)
11809
- location = parsePath(path);
11810
- location.state = state;
11811
- } else {
11812
- // One-arg form: push(location)
11813
- location = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, path);
11814
- if (location.pathname === undefined) location.pathname = '';
11815
-
11816
- if (location.search) {
11817
- if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
11818
- } else {
11819
- location.search = '';
11820
- }
11821
-
11822
- if (location.hash) {
11823
- if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
11824
- } else {
11825
- location.hash = '';
11826
- }
11827
-
11828
- if (state !== undefined && location.state === undefined) location.state = state;
11829
- }
11830
-
11831
- try {
11832
- location.pathname = decodeURI(location.pathname);
11833
- } catch (e) {
11834
- if (e instanceof URIError) {
11835
- throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
11836
- } else {
11837
- throw e;
11838
- }
11839
- }
11840
-
11841
- if (key) location.key = key;
11842
-
11843
- if (currentLocation) {
11844
- // Resolve incomplete/relative pathname relative to current location.
11845
- if (!location.pathname) {
11846
- location.pathname = currentLocation.pathname;
11847
- } else if (location.pathname.charAt(0) !== '/') {
11848
- location.pathname = Object(__WEBPACK_IMPORTED_MODULE_1_resolve_pathname__["a" /* default */])(location.pathname, currentLocation.pathname);
11849
- }
11850
- } else {
11851
- // When there is no prior location and pathname is empty, set it to /
11852
- if (!location.pathname) {
11853
- location.pathname = '/';
11854
- }
11855
- }
11856
-
11857
- return location;
11858
- }
11859
- function locationsAreEqual(a, b) {
11860
- return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && Object(__WEBPACK_IMPORTED_MODULE_2_value_equal__["a" /* default */])(a.state, b.state);
11861
- }
11862
-
11863
- function createTransitionManager() {
11864
- var prompt = null;
11865
-
11866
- function setPrompt(nextPrompt) {
11867
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(prompt == null, 'A history supports only one prompt at a time') : void 0;
11868
- prompt = nextPrompt;
11869
- return function () {
11870
- if (prompt === nextPrompt) prompt = null;
11871
- };
11872
- }
11873
-
11874
- function confirmTransitionTo(location, action, getUserConfirmation, callback) {
11875
- // TODO: If another transition starts while we're still confirming
11876
- // the previous one, we may end up in a weird state. Figure out the
11877
- // best way to handle this.
11878
- if (prompt != null) {
11879
- var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
11880
-
11881
- if (typeof result === 'string') {
11882
- if (typeof getUserConfirmation === 'function') {
11883
- getUserConfirmation(result, callback);
11884
- } else {
11885
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(false, 'A history needs a getUserConfirmation function in order to use a prompt message') : void 0;
11886
- callback(true);
11887
- }
11888
- } else {
11889
- // Return false from a transition hook to cancel the transition.
11890
- callback(result !== false);
11891
- }
11892
- } else {
11893
- callback(true);
11894
- }
11895
- }
11896
-
11897
- var listeners = [];
11898
-
11899
- function appendListener(fn) {
11900
- var isActive = true;
11901
-
11902
- function listener() {
11903
- if (isActive) fn.apply(void 0, arguments);
11904
- }
11905
-
11906
- listeners.push(listener);
11907
- return function () {
11908
- isActive = false;
11909
- listeners = listeners.filter(function (item) {
11910
- return item !== listener;
11911
- });
11912
- };
11913
- }
11914
-
11915
- function notifyListeners() {
11916
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11917
- args[_key] = arguments[_key];
11918
- }
11919
-
11920
- listeners.forEach(function (listener) {
11921
- return listener.apply(void 0, args);
11922
- });
11923
- }
11924
-
11925
- return {
11926
- setPrompt: setPrompt,
11927
- confirmTransitionTo: confirmTransitionTo,
11928
- appendListener: appendListener,
11929
- notifyListeners: notifyListeners
11930
- };
11931
- }
11932
-
11933
- var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
11934
- function getConfirmation(message, callback) {
11935
- callback(window.confirm(message)); // eslint-disable-line no-alert
11936
- }
11937
- /**
11938
- * Returns true if the HTML5 history API is supported. Taken from Modernizr.
11939
- *
11940
- * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
11941
- * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
11942
- * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
11943
- */
11944
-
11945
- function supportsHistory() {
11946
- var ua = window.navigator.userAgent;
11947
- if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
11948
- return window.history && 'pushState' in window.history;
11949
- }
11950
- /**
11951
- * Returns true if browser fires popstate on hash change.
11952
- * IE10 and IE11 do not.
11953
- */
11954
-
11955
- function supportsPopStateOnHashChange() {
11956
- return window.navigator.userAgent.indexOf('Trident') === -1;
11957
- }
11958
- /**
11959
- * Returns false if using go(n) with hash history causes a full page reload.
11960
- */
11961
-
11962
- function supportsGoWithoutReloadUsingHash() {
11963
- return window.navigator.userAgent.indexOf('Firefox') === -1;
11964
- }
11965
- /**
11966
- * Returns true if a given popstate event is an extraneous WebKit event.
11967
- * Accounts for the fact that Chrome on iOS fires real popstate events
11968
- * containing undefined state when pressing the back button.
11969
- */
11970
-
11971
- function isExtraneousPopstateEvent(event) {
11972
- return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
11973
- }
11974
-
11975
- var PopStateEvent = 'popstate';
11976
- var HashChangeEvent = 'hashchange';
11977
-
11978
- function getHistoryState() {
11979
- try {
11980
- return window.history.state || {};
11981
- } catch (e) {
11982
- // IE 11 sometimes throws when accessing window.history.state
11983
- // See https://github.com/ReactTraining/history/pull/289
11984
- return {};
11985
- }
11986
- }
11987
- /**
11988
- * Creates a history object that uses the HTML5 history API including
11989
- * pushState, replaceState, and the popstate event.
11990
- */
11991
-
11992
-
11993
- function createBrowserHistory(props) {
11994
- if (props === void 0) {
11995
- props = {};
11996
- }
11997
-
11998
- !canUseDOM ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false, 'Browser history needs a DOM') : Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false) : void 0;
11999
- var globalHistory = window.history;
12000
- var canUseHistory = supportsHistory();
12001
- var needsHashChangeListener = !supportsPopStateOnHashChange();
12002
- var _props = props,
12003
- _props$forceRefresh = _props.forceRefresh,
12004
- forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
12005
- _props$getUserConfirm = _props.getUserConfirmation,
12006
- getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
12007
- _props$keyLength = _props.keyLength,
12008
- keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
12009
- var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
12010
-
12011
- function getDOMLocation(historyState) {
12012
- var _ref = historyState || {},
12013
- key = _ref.key,
12014
- state = _ref.state;
12015
-
12016
- var _window$location = window.location,
12017
- pathname = _window$location.pathname,
12018
- search = _window$location.search,
12019
- hash = _window$location.hash;
12020
- var path = pathname + search + hash;
12021
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
12022
- if (basename) path = stripBasename(path, basename);
12023
- return createLocation(path, state, key);
12024
- }
12025
-
12026
- function createKey() {
12027
- return Math.random().toString(36).substr(2, keyLength);
12028
- }
12029
-
12030
- var transitionManager = createTransitionManager();
12031
-
12032
- function setState(nextState) {
12033
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
12034
-
12035
- history.length = globalHistory.length;
12036
- transitionManager.notifyListeners(history.location, history.action);
12037
- }
12038
-
12039
- function handlePopState(event) {
12040
- // Ignore extraneous popstate events in WebKit.
12041
- if (isExtraneousPopstateEvent(event)) return;
12042
- handlePop(getDOMLocation(event.state));
12043
- }
12044
-
12045
- function handleHashChange() {
12046
- handlePop(getDOMLocation(getHistoryState()));
12047
- }
12048
-
12049
- var forceNextPop = false;
12050
-
12051
- function handlePop(location) {
12052
- if (forceNextPop) {
12053
- forceNextPop = false;
12054
- setState();
12055
- } else {
12056
- var action = 'POP';
12057
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12058
- if (ok) {
12059
- setState({
12060
- action: action,
12061
- location: location
12062
- });
12063
- } else {
12064
- revertPop(location);
12065
- }
12066
- });
12067
- }
12068
- }
12069
-
12070
- function revertPop(fromLocation) {
12071
- var toLocation = history.location; // TODO: We could probably make this more reliable by
12072
- // keeping a list of keys we've seen in sessionStorage.
12073
- // Instead, we just default to 0 for keys we don't know.
12074
-
12075
- var toIndex = allKeys.indexOf(toLocation.key);
12076
- if (toIndex === -1) toIndex = 0;
12077
- var fromIndex = allKeys.indexOf(fromLocation.key);
12078
- if (fromIndex === -1) fromIndex = 0;
12079
- var delta = toIndex - fromIndex;
12080
-
12081
- if (delta) {
12082
- forceNextPop = true;
12083
- go(delta);
12084
- }
12085
- }
12086
-
12087
- var initialLocation = getDOMLocation(getHistoryState());
12088
- var allKeys = [initialLocation.key]; // Public interface
12089
-
12090
- function createHref(location) {
12091
- return basename + createPath(location);
12092
- }
12093
-
12094
- function push(path, state) {
12095
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
12096
- var action = 'PUSH';
12097
- var location = createLocation(path, state, createKey(), history.location);
12098
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12099
- if (!ok) return;
12100
- var href = createHref(location);
12101
- var key = location.key,
12102
- state = location.state;
12103
-
12104
- if (canUseHistory) {
12105
- globalHistory.pushState({
12106
- key: key,
12107
- state: state
12108
- }, null, href);
12109
-
12110
- if (forceRefresh) {
12111
- window.location.href = href;
12112
- } else {
12113
- var prevIndex = allKeys.indexOf(history.location.key);
12114
- var nextKeys = allKeys.slice(0, prevIndex + 1);
12115
- nextKeys.push(location.key);
12116
- allKeys = nextKeys;
12117
- setState({
12118
- action: action,
12119
- location: location
12120
- });
12121
- }
12122
- } else {
12123
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history') : void 0;
12124
- window.location.href = href;
12125
- }
12126
- });
12127
- }
12128
-
12129
- function replace(path, state) {
12130
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
12131
- var action = 'REPLACE';
12132
- var location = createLocation(path, state, createKey(), history.location);
12133
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12134
- if (!ok) return;
12135
- var href = createHref(location);
12136
- var key = location.key,
12137
- state = location.state;
12138
-
12139
- if (canUseHistory) {
12140
- globalHistory.replaceState({
12141
- key: key,
12142
- state: state
12143
- }, null, href);
12144
-
12145
- if (forceRefresh) {
12146
- window.location.replace(href);
12147
- } else {
12148
- var prevIndex = allKeys.indexOf(history.location.key);
12149
- if (prevIndex !== -1) allKeys[prevIndex] = location.key;
12150
- setState({
12151
- action: action,
12152
- location: location
12153
- });
12154
- }
12155
- } else {
12156
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : void 0;
12157
- window.location.replace(href);
12158
- }
12159
- });
12160
- }
12161
-
12162
- function go(n) {
12163
- globalHistory.go(n);
12164
- }
12165
-
12166
- function goBack() {
12167
- go(-1);
12168
- }
12169
-
12170
- function goForward() {
12171
- go(1);
12172
- }
12173
-
12174
- var listenerCount = 0;
12175
-
12176
- function checkDOMListeners(delta) {
12177
- listenerCount += delta;
12178
-
12179
- if (listenerCount === 1 && delta === 1) {
12180
- window.addEventListener(PopStateEvent, handlePopState);
12181
- if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
12182
- } else if (listenerCount === 0) {
12183
- window.removeEventListener(PopStateEvent, handlePopState);
12184
- if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
12185
- }
12186
- }
12187
-
12188
- var isBlocked = false;
12189
-
12190
- function block(prompt) {
12191
- if (prompt === void 0) {
12192
- prompt = false;
12193
- }
12194
-
12195
- var unblock = transitionManager.setPrompt(prompt);
12196
-
12197
- if (!isBlocked) {
12198
- checkDOMListeners(1);
12199
- isBlocked = true;
12200
- }
12201
-
12202
- return function () {
12203
- if (isBlocked) {
12204
- isBlocked = false;
12205
- checkDOMListeners(-1);
12206
- }
12207
-
12208
- return unblock();
12209
- };
12210
- }
12211
-
12212
- function listen(listener) {
12213
- var unlisten = transitionManager.appendListener(listener);
12214
- checkDOMListeners(1);
12215
- return function () {
12216
- checkDOMListeners(-1);
12217
- unlisten();
12218
- };
12219
- }
12220
-
12221
- var history = {
12222
- length: globalHistory.length,
12223
- action: 'POP',
12224
- location: initialLocation,
12225
- createHref: createHref,
12226
- push: push,
12227
- replace: replace,
12228
- go: go,
12229
- goBack: goBack,
12230
- goForward: goForward,
12231
- block: block,
12232
- listen: listen
12233
- };
12234
- return history;
12235
- }
12236
-
12237
- var HashChangeEvent$1 = 'hashchange';
12238
- var HashPathCoders = {
12239
- hashbang: {
12240
- encodePath: function encodePath(path) {
12241
- return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);
12242
- },
12243
- decodePath: function decodePath(path) {
12244
- return path.charAt(0) === '!' ? path.substr(1) : path;
12245
- }
12246
- },
12247
- noslash: {
12248
- encodePath: stripLeadingSlash,
12249
- decodePath: addLeadingSlash
12250
- },
12251
- slash: {
12252
- encodePath: addLeadingSlash,
12253
- decodePath: addLeadingSlash
12254
- }
12255
- };
12256
-
12257
- function stripHash(url) {
12258
- var hashIndex = url.indexOf('#');
12259
- return hashIndex === -1 ? url : url.slice(0, hashIndex);
12260
- }
12261
-
12262
- function getHashPath() {
12263
- // We can't use window.location.hash here because it's not
12264
- // consistent across browsers - Firefox will pre-decode it!
12265
- var href = window.location.href;
12266
- var hashIndex = href.indexOf('#');
12267
- return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
12268
- }
12269
-
12270
- function pushHashPath(path) {
12271
- window.location.hash = path;
12272
- }
12273
-
12274
- function replaceHashPath(path) {
12275
- window.location.replace(stripHash(window.location.href) + '#' + path);
12276
- }
12277
-
12278
- function createHashHistory(props) {
12279
- if (props === void 0) {
12280
- props = {};
12281
- }
12282
-
12283
- !canUseDOM ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false, 'Hash history needs a DOM') : Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false) : void 0;
12284
- var globalHistory = window.history;
12285
- var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
12286
- var _props = props,
12287
- _props$getUserConfirm = _props.getUserConfirmation,
12288
- getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
12289
- _props$hashType = _props.hashType,
12290
- hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;
12291
- var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
12292
- var _HashPathCoders$hashT = HashPathCoders[hashType],
12293
- encodePath = _HashPathCoders$hashT.encodePath,
12294
- decodePath = _HashPathCoders$hashT.decodePath;
12295
-
12296
- function getDOMLocation() {
12297
- var path = decodePath(getHashPath());
12298
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
12299
- if (basename) path = stripBasename(path, basename);
12300
- return createLocation(path);
12301
- }
12302
-
12303
- var transitionManager = createTransitionManager();
12304
-
12305
- function setState(nextState) {
12306
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
12307
-
12308
- history.length = globalHistory.length;
12309
- transitionManager.notifyListeners(history.location, history.action);
12310
- }
12311
-
12312
- var forceNextPop = false;
12313
- var ignorePath = null;
12314
-
12315
- function locationsAreEqual$$1(a, b) {
12316
- return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;
12317
- }
12318
-
12319
- function handleHashChange() {
12320
- var path = getHashPath();
12321
- var encodedPath = encodePath(path);
12322
-
12323
- if (path !== encodedPath) {
12324
- // Ensure we always have a properly-encoded hash.
12325
- replaceHashPath(encodedPath);
12326
- } else {
12327
- var location = getDOMLocation();
12328
- var prevLocation = history.location;
12329
- if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.
12330
-
12331
- if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.
12332
-
12333
- ignorePath = null;
12334
- handlePop(location);
12335
- }
12336
- }
12337
-
12338
- function handlePop(location) {
12339
- if (forceNextPop) {
12340
- forceNextPop = false;
12341
- setState();
12342
- } else {
12343
- var action = 'POP';
12344
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12345
- if (ok) {
12346
- setState({
12347
- action: action,
12348
- location: location
12349
- });
12350
- } else {
12351
- revertPop(location);
12352
- }
12353
- });
12354
- }
12355
- }
12356
-
12357
- function revertPop(fromLocation) {
12358
- var toLocation = history.location; // TODO: We could probably make this more reliable by
12359
- // keeping a list of paths we've seen in sessionStorage.
12360
- // Instead, we just default to 0 for paths we don't know.
12361
-
12362
- var toIndex = allPaths.lastIndexOf(createPath(toLocation));
12363
- if (toIndex === -1) toIndex = 0;
12364
- var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
12365
- if (fromIndex === -1) fromIndex = 0;
12366
- var delta = toIndex - fromIndex;
12367
-
12368
- if (delta) {
12369
- forceNextPop = true;
12370
- go(delta);
12371
- }
12372
- } // Ensure the hash is encoded properly before doing anything else.
12373
-
12374
-
12375
- var path = getHashPath();
12376
- var encodedPath = encodePath(path);
12377
- if (path !== encodedPath) replaceHashPath(encodedPath);
12378
- var initialLocation = getDOMLocation();
12379
- var allPaths = [createPath(initialLocation)]; // Public interface
12380
-
12381
- function createHref(location) {
12382
- var baseTag = document.querySelector('base');
12383
- var href = '';
12384
-
12385
- if (baseTag && baseTag.getAttribute('href')) {
12386
- href = stripHash(window.location.href);
12387
- }
12388
-
12389
- return href + '#' + encodePath(basename + createPath(location));
12390
- }
12391
-
12392
- function push(path, state) {
12393
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Hash history cannot push state; it is ignored') : void 0;
12394
- var action = 'PUSH';
12395
- var location = createLocation(path, undefined, undefined, history.location);
12396
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12397
- if (!ok) return;
12398
- var path = createPath(location);
12399
- var encodedPath = encodePath(basename + path);
12400
- var hashChanged = getHashPath() !== encodedPath;
12401
-
12402
- if (hashChanged) {
12403
- // We cannot tell if a hashchange was caused by a PUSH, so we'd
12404
- // rather setState here and ignore the hashchange. The caveat here
12405
- // is that other hash histories in the page will consider it a POP.
12406
- ignorePath = path;
12407
- pushHashPath(encodedPath);
12408
- var prevIndex = allPaths.lastIndexOf(createPath(history.location));
12409
- var nextPaths = allPaths.slice(0, prevIndex + 1);
12410
- nextPaths.push(path);
12411
- allPaths = nextPaths;
12412
- setState({
12413
- action: action,
12414
- location: location
12415
- });
12416
- } else {
12417
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack') : void 0;
12418
- setState();
12419
- }
12420
- });
12421
- }
12422
-
12423
- function replace(path, state) {
12424
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Hash history cannot replace state; it is ignored') : void 0;
12425
- var action = 'REPLACE';
12426
- var location = createLocation(path, undefined, undefined, history.location);
12427
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12428
- if (!ok) return;
12429
- var path = createPath(location);
12430
- var encodedPath = encodePath(basename + path);
12431
- var hashChanged = getHashPath() !== encodedPath;
12432
-
12433
- if (hashChanged) {
12434
- // We cannot tell if a hashchange was caused by a REPLACE, so we'd
12435
- // rather setState here and ignore the hashchange. The caveat here
12436
- // is that other hash histories in the page will consider it a POP.
12437
- ignorePath = path;
12438
- replaceHashPath(encodedPath);
12439
- }
12440
-
12441
- var prevIndex = allPaths.indexOf(createPath(history.location));
12442
- if (prevIndex !== -1) allPaths[prevIndex] = path;
12443
- setState({
12444
- action: action,
12445
- location: location
12446
- });
12447
- });
12448
- }
12449
-
12450
- function go(n) {
12451
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser') : void 0;
12452
- globalHistory.go(n);
12453
- }
12454
-
12455
- function goBack() {
12456
- go(-1);
12457
- }
12458
-
12459
- function goForward() {
12460
- go(1);
12461
- }
12462
-
12463
- var listenerCount = 0;
12464
-
12465
- function checkDOMListeners(delta) {
12466
- listenerCount += delta;
12467
-
12468
- if (listenerCount === 1 && delta === 1) {
12469
- window.addEventListener(HashChangeEvent$1, handleHashChange);
12470
- } else if (listenerCount === 0) {
12471
- window.removeEventListener(HashChangeEvent$1, handleHashChange);
12472
- }
12473
- }
12474
-
12475
- var isBlocked = false;
12476
-
12477
- function block(prompt) {
12478
- if (prompt === void 0) {
12479
- prompt = false;
12480
- }
12481
-
12482
- var unblock = transitionManager.setPrompt(prompt);
12483
-
12484
- if (!isBlocked) {
12485
- checkDOMListeners(1);
12486
- isBlocked = true;
12487
- }
12488
-
12489
- return function () {
12490
- if (isBlocked) {
12491
- isBlocked = false;
12492
- checkDOMListeners(-1);
12493
- }
12494
-
12495
- return unblock();
12496
- };
12497
- }
12498
-
12499
- function listen(listener) {
12500
- var unlisten = transitionManager.appendListener(listener);
12501
- checkDOMListeners(1);
12502
- return function () {
12503
- checkDOMListeners(-1);
12504
- unlisten();
12505
- };
12506
- }
12507
-
12508
- var history = {
12509
- length: globalHistory.length,
12510
- action: 'POP',
12511
- location: initialLocation,
12512
- createHref: createHref,
12513
- push: push,
12514
- replace: replace,
12515
- go: go,
12516
- goBack: goBack,
12517
- goForward: goForward,
12518
- block: block,
12519
- listen: listen
12520
- };
12521
- return history;
12522
- }
12523
-
12524
- function clamp(n, lowerBound, upperBound) {
12525
- return Math.min(Math.max(n, lowerBound), upperBound);
12526
- }
12527
- /**
12528
- * Creates a history object that stores locations in memory.
12529
- */
12530
-
12531
-
12532
- function createMemoryHistory(props) {
12533
- if (props === void 0) {
12534
- props = {};
12535
- }
12536
-
12537
- var _props = props,
12538
- getUserConfirmation = _props.getUserConfirmation,
12539
- _props$initialEntries = _props.initialEntries,
12540
- initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,
12541
- _props$initialIndex = _props.initialIndex,
12542
- initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,
12543
- _props$keyLength = _props.keyLength,
12544
- keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
12545
- var transitionManager = createTransitionManager();
12546
-
12547
- function setState(nextState) {
12548
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
12549
-
12550
- history.length = history.entries.length;
12551
- transitionManager.notifyListeners(history.location, history.action);
12552
- }
12553
-
12554
- function createKey() {
12555
- return Math.random().toString(36).substr(2, keyLength);
12556
- }
12557
-
12558
- var index = clamp(initialIndex, 0, initialEntries.length - 1);
12559
- var entries = initialEntries.map(function (entry) {
12560
- return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());
12561
- }); // Public interface
12562
-
12563
- var createHref = createPath;
12564
-
12565
- function push(path, state) {
12566
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
12567
- var action = 'PUSH';
12568
- var location = createLocation(path, state, createKey(), history.location);
12569
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12570
- if (!ok) return;
12571
- var prevIndex = history.index;
12572
- var nextIndex = prevIndex + 1;
12573
- var nextEntries = history.entries.slice(0);
12574
-
12575
- if (nextEntries.length > nextIndex) {
12576
- nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
12577
- } else {
12578
- nextEntries.push(location);
12579
- }
12580
-
12581
- setState({
12582
- action: action,
12583
- location: location,
12584
- index: nextIndex,
12585
- entries: nextEntries
12586
- });
12587
- });
12588
- }
12589
-
12590
- function replace(path, state) {
12591
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
12592
- var action = 'REPLACE';
12593
- var location = createLocation(path, state, createKey(), history.location);
12594
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12595
- if (!ok) return;
12596
- history.entries[history.index] = location;
12597
- setState({
12598
- action: action,
12599
- location: location
12600
- });
12601
- });
12602
- }
12603
-
12604
- function go(n) {
12605
- var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);
12606
- var action = 'POP';
12607
- var location = history.entries[nextIndex];
12608
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12609
- if (ok) {
12610
- setState({
12611
- action: action,
12612
- location: location,
12613
- index: nextIndex
12614
- });
12615
- } else {
12616
- // Mimic the behavior of DOM histories by
12617
- // causing a render after a cancelled POP.
12618
- setState();
12619
- }
12620
- });
12621
- }
12622
-
12623
- function goBack() {
12624
- go(-1);
12625
- }
12626
-
12627
- function goForward() {
12628
- go(1);
12629
- }
12630
-
12631
- function canGo(n) {
12632
- var nextIndex = history.index + n;
12633
- return nextIndex >= 0 && nextIndex < history.entries.length;
12634
- }
12635
-
12636
- function block(prompt) {
12637
- if (prompt === void 0) {
12638
- prompt = false;
12639
- }
12640
-
12641
- return transitionManager.setPrompt(prompt);
12642
- }
12643
-
12644
- function listen(listener) {
12645
- return transitionManager.appendListener(listener);
12646
- }
12647
-
12648
- var history = {
12649
- length: entries.length,
12650
- action: 'POP',
12651
- location: entries[index],
12652
- index: index,
12653
- entries: entries,
12654
- createHref: createHref,
12655
- push: push,
12656
- replace: replace,
12657
- go: go,
12658
- goBack: goBack,
12659
- goForward: goForward,
12660
- canGo: canGo,
12661
- block: block,
12662
- listen: listen
12663
- };
12664
- return history;
12665
- }
12666
-
12667
-
12668
-
12669
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
12670
-
12671
- /***/ }),
12672
- /* 211 */
12673
- /***/ (function(module, exports, __webpack_require__) {
12674
-
12675
- "use strict";
12676
-
12677
-
12678
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
12679
-
12680
- Object.defineProperty(exports, "__esModule", {
12681
- value: true
12682
- });
12683
- exports["default"] = void 0;
12684
-
12685
- var _react = _interopRequireWildcard(__webpack_require__(0));
12686
-
12687
- var _reactRouterDom = __webpack_require__(42);
12688
-
12689
- var _reactDom = _interopRequireDefault(__webpack_require__(11));
12690
-
12691
- __webpack_require__(446);
12692
-
12693
- var _QuadsAdConfig = _interopRequireDefault(__webpack_require__(447));
12694
-
12695
- var _QuadsAdTargeting = _interopRequireDefault(__webpack_require__(532));
12696
-
12697
- var _QuadsAdPublish = _interopRequireDefault(__webpack_require__(540));
12698
-
12699
- var _queryString = _interopRequireDefault(__webpack_require__(26));
12700
-
12701
- var _Icon = _interopRequireDefault(__webpack_require__(35));
12702
-
12703
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12704
-
12705
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
12706
-
12707
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12708
-
12709
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
12710
-
12711
- function _readOnlyError(name) { throw new TypeError("\"" + name + "\" is read-only"); }
12712
-
12713
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12714
-
12715
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12716
-
12717
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12718
-
12719
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
12720
-
12721
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
12722
-
12723
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12724
-
12725
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
12726
-
12727
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
12728
-
12729
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12730
-
12731
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
12732
-
12733
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12734
-
12735
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
12736
-
12737
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12738
-
12739
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12740
-
12741
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12742
-
12743
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12744
-
12745
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12746
-
12747
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12748
-
12749
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12750
-
12751
- var QuadsAdCreateRouter = /*#__PURE__*/function (_Component) {
12752
- _inherits(QuadsAdCreateRouter, _Component);
12753
-
12754
- var _super = _createSuper(QuadsAdCreateRouter);
12755
-
12756
- function QuadsAdCreateRouter(props) {
12757
- var _this;
12758
-
12759
- _classCallCheck(this, QuadsAdCreateRouter);
12760
-
12761
- var visibility_include_def_val = [{
12762
- type: {
12763
- label: "Post Type",
12764
- value: "post_type"
12765
- },
12766
- value: {
12767
- label: "post",
12768
- value: "post"
12769
- }
12770
- }];
12771
- _this = _super.call(this, props);
12772
-
12773
- _defineProperty(_assertThisInitialized(_this), "updateVisitorTarget", function (include, exclude) {
12774
- _this.includedVal = include;
12775
- _this.excludedVal = exclude;
12776
- });
12777
-
12778
- _defineProperty(_assertThisInitialized(_this), "updateVisibility", function (include, exclude) {
12779
- _this.includedVisibilityVal = include;
12780
- _this.excludedVisibilityVal = exclude;
12781
- });
12782
-
12783
- _defineProperty(_assertThisInitialized(_this), "updateRandomAds", function (random_ads_list) {
12784
- _this.random_ads_list = random_ads_list;
12785
- });
12786
-
12787
- _defineProperty(_assertThisInitialized(_this), "updateAdsList", function (ads_list) {
12788
- _this.ads_list = ads_list;
12789
- });
12790
-
12791
- _defineProperty(_assertThisInitialized(_this), "getAdDataById", function (ad_id) {
12792
- var url = quads_localize_data.rest_url + 'quads-route/get-ad-by-id?ad-id=' + ad_id;
12793
-
12794
- if (quads_localize_data.rest_url.includes('?')) {
12795
- url = quads_localize_data.rest_url + 'quads-route/get-ad-by-id&ad-id=' + ad_id;
12796
- }
12797
-
12798
- fetch(url, {
12799
- headers: {
12800
- 'X-WP-Nonce': quads_localize_data.nonce
12801
- }
12802
- }).then(function (res) {
12803
- return res.json();
12804
- }).then(function (result) {
12805
- var _this$state = _objectSpread({}, _this.state),
12806
- quads_post_meta = _this$state.quads_post_meta;
12807
-
12808
- Object.entries(result).map(function (_ref) {
12809
- var _ref2 = _slicedToArray(_ref, 2),
12810
- key = _ref2[0],
12811
- value = _ref2[1];
12812
-
12813
- if (key == 'post') {
12814
- _this.setState({
12815
- quads_post: result.post
12816
- });
12817
- } else {
12818
- Object.entries(value).map(function (_ref3) {
12819
- var _ref4 = _slicedToArray(_ref3, 2),
12820
- meta_key = _ref4[0],
12821
- meta_val = _ref4[1];
12822
-
12823
- if (meta_key == 'visibility_include') {
12824
- _this.includedVisibilityVal = meta_val;
12825
- } else if (meta_key == 'visibility_exclude') {
12826
- _this.excludedVisibilityVal = meta_val;
12827
- } else if (meta_key == 'targeting_include') {
12828
- _this.includedVal = meta_val;
12829
- } else if (meta_key == 'targeting_exclude') {
12830
- _this.excludedVal = meta_val;
12831
- }
12832
-
12833
- if (meta_val) {
12834
- quads_post_meta[meta_key] = meta_val;
12835
- }
12836
- });
12837
-
12838
- _this.setState(quads_post_meta);
12839
- }
12840
- });
12841
- }, function (error) {});
12842
- });
12843
-
12844
- _defineProperty(_assertThisInitialized(_this), "removeVisibilityIncludeItem", function (e) {
12845
- e.preventDefault();
12846
- var index = e.currentTarget.dataset.index;
12847
-
12848
- var _this$state2 = _objectSpread({}, _this.state),
12849
- quads_post_meta = _this$state2.quads_post_meta;
12850
-
12851
- quads_post_meta.visibility_include.splice(index, 1);
12852
-
12853
- _this.setState(quads_post_meta);
12854
- });
12855
-
12856
- _defineProperty(_assertThisInitialized(_this), "removeVisibilityExcludeItem", function (e) {
12857
- e.preventDefault();
12858
- var index = e.currentTarget.dataset.index;
12859
-
12860
- var _this$state3 = _objectSpread({}, _this.state),
12861
- quads_post_meta = _this$state3.quads_post_meta;
12862
-
12863
- quads_post_meta.visibility_exclude.splice(index, 1);
12864
-
12865
- _this.setState(quads_post_meta);
12866
- });
12867
-
12868
- _defineProperty(_assertThisInitialized(_this), "onListSearchHover", function () {});
12869
-
12870
- _defineProperty(_assertThisInitialized(_this), "addIncludeFromSearch", function (e) {
12871
- e.preventDefault();
12872
- var id = e.currentTarget.dataset.id;
12873
- var text = e.currentTarget.dataset.text;
12874
-
12875
- _this.setState({
12876
- quads_include_input_id: id,
12877
- quads_include_input_text: text
12878
- });
12879
-
12880
- var _this$state4 = _objectSpread({}, _this.state),
12881
- quads_post_meta = _this$state4.quads_post_meta;
12882
-
12883
- quads_post_meta.include_dropdown = false;
12884
-
12885
- _this.setState(quads_post_meta);
12886
- });
12887
-
12888
- _defineProperty(_assertThisInitialized(_this), "addExcludeFromSearch", function (e) {
12889
- e.preventDefault();
12890
- var id = e.currentTarget.dataset.id;
12891
- var text = e.currentTarget.dataset.text;
12892
-
12893
- _this.setState({
12894
- quads_exclude_input_id: id,
12895
- quads_exclude_input_text: text
12896
- });
12897
-
12898
- var _this$state5 = _objectSpread({}, _this.state),
12899
- quads_post_meta = _this$state5.quads_post_meta;
12900
-
12901
- quads_post_meta.exclude_dropdown = false;
12902
-
12903
- _this.setState(quads_post_meta);
12904
- });
12905
-
12906
- _defineProperty(_assertThisInitialized(_this), "onIncludeFocus", function () {
12907
- var _this$state6 = _objectSpread({}, _this.state),
12908
- quads_post_meta = _this$state6.quads_post_meta;
12909
-
12910
- quads_post_meta.include_dropdown = true;
12911
-
12912
- _this.setState(quads_post_meta);
12913
- });
12914
-
12915
- _defineProperty(_assertThisInitialized(_this), "onExcludeFocus", function () {
12916
- var _this$state7 = _objectSpread({}, _this.state),
12917
- quads_post_meta = _this$state7.quads_post_meta;
12918
-
12919
- quads_post_meta.exclude_dropdown = true;
12920
-
12921
- _this.setState(quads_post_meta);
12922
- });
12923
-
12924
- _defineProperty(_assertThisInitialized(_this), "excludeFormToggle", function () {
12925
- _this.setState({
12926
- quads_exclude_toggle: !_this.state.quads_exclude_toggle
12927
- });
12928
- });
12929
-
12930
- _defineProperty(_assertThisInitialized(_this), "includeFormToggle", function () {
12931
- _this.setState({
12932
- quads_include_toggle: !_this.state.quads_include_toggle
12933
- });
12934
- });
12935
-
12936
- _defineProperty(_assertThisInitialized(_this), "openModal", function () {
12937
- _this.setState({
12938
- quads_modal_open: true
12939
- });
12940
- });
12941
-
12942
- _defineProperty(_assertThisInitialized(_this), "closeModal", function () {
12943
- _this.setState({
12944
- quads_modal_open: false
12945
- });
12946
-
12947
- _this.setState({
12948
- quads_modal_error: ''
12949
- });
12950
- });
12951
-
12952
- _defineProperty(_assertThisInitialized(_this), "modalValue", function (e) {
12953
- _this.setState({
12954
- quads_modal_value: e.target.value
12955
- });
12956
- });
12957
-
12958
- _defineProperty(_assertThisInitialized(_this), "getGoogleAdsenseAttr", function (content, regex) {
12959
- var str = content;
12960
- var m;
12961
- var result = {};
12962
-
12963
- while ((m = regex.exec(str)) !== null) {
12964
- // This is necessary to avoid infinite loops with zero-width matches
12965
- if (m.index === regex.lastIndex) {
12966
- regex.lastIndex++;
12967
- } // The result can be accessed through the `m`-variable.
12968
-
12969
-
12970
- m.forEach(function (match, index) {
12971
- //console.log(`Found match, group ${groupIndex}: ${match}`);
12972
- result = match;
12973
- });
12974
- }
12975
-
12976
- return result;
12977
- });
12978
-
12979
- _defineProperty(_assertThisInitialized(_this), "getAdsenseCode", function () {
12980
- var content = _this.state.quads_modal_value;
12981
-
12982
- _this.setState({
12983
- quads_modal_open: true
12984
- });
12985
-
12986
- if (content) {
12987
- var slot_regex = /google_ad_slot\s*=\s*"(\d*)";/g;
12988
-
12989
- var ad_slot = _this.getGoogleAdsenseAttr(content, slot_regex);
12990
-
12991
- var ad_client_regex = /google_ad_client\s*=\s*"ca-pub-(\d*)";/g;
12992
-
12993
- var ad_client = _this.getGoogleAdsenseAttr(content, ad_client_regex);
12994
-
12995
- var width_regex = /google_ad_width\s*=\s*(\d*);/g;
12996
-
12997
- var ad_width = _this.getGoogleAdsenseAttr(content, width_regex);
12998
-
12999
- var height_regex = /google_ad_height\s*=\s*(\d*);/g;
13000
-
13001
- var ad_height = _this.getGoogleAdsenseAttr(content, height_regex);
13002
-
13003
- var ad_format_regex = /data-ad-format\s*=\s*"(\w*)";/g;
13004
-
13005
- var ad_format = _this.getGoogleAdsenseAttr(content, ad_format_regex);
13006
-
13007
- var adsense_type = 'normal';
13008
-
13009
- if ((!ad_slot || 0 === ad_slot.length) && (!ad_client || 0 === ad_client.length) && (!ad_width || 0 === ad_width.length)) {
13010
- adsense_type = (_readOnlyError("adsense_type"), 'normal');
13011
- }
13012
-
13013
- if (ad_format == 'auto') {
13014
- adsense_type = (_readOnlyError("adsense_type"), 'responsive');
13015
- }
13016
-
13017
- if (ad_slot.length >= 0 && ad_client.length >= 0) {
13018
- var _this$state8 = _objectSpread({}, _this.state),
13019
- quads_post_meta = _this$state8.quads_post_meta;
13020
-
13021
- quads_post_meta.g_data_ad_slot = ad_slot;
13022
- quads_post_meta.g_data_ad_client = 'ca-pub-' + ad_client;
13023
- quads_post_meta.g_data_ad_width = ad_width;
13024
- quads_post_meta.g_data_ad_height = ad_height;
13025
- quads_post_meta.adsense_type = adsense_type;
13026
-
13027
- _this.setState(quads_post_meta);
13028
-
13029
- _this.setState({
13030
- quads_modal_open: false
13031
- });
13032
- } else {
13033
- _this.setState({
13034
- quads_modal_error: 'Can not parse AdSense Code. Is the code valid?'
13035
- });
13036
-
13037
- _this.setState({
13038
- quads_modal_open: true
13039
- });
13040
- }
13041
- } else {
13042
- _this.setState({
13043
- quads_modal_error: 'Please provide adsense code'
13044
- });
13045
- }
13046
- });
13047
-
13048
- _defineProperty(_assertThisInitialized(_this), "saveAdFormData", function (ad_status) {
13049
- _this.setState({
13050
- quads_is_loaded: true
13051
- });
13052
-
13053
- var body_json = _this.state;
13054
- body_json.quads_ad_status = ad_status; //visitor targeting
13055
-
13056
- body_json.quads_post_meta.targeting_include = _this.includedVal;
13057
- body_json.quads_post_meta.targeting_exclude = _this.excludedVal;
13058
- body_json.quads_post_meta.visibility_include = _this.includedVisibilityVal;
13059
- body_json.quads_post_meta.visibility_exclude = _this.excludedVisibilityVal;
13060
- body_json.quads_post_meta.random_ads_list = _this.random_ads_list;
13061
- body_json.quads_post_meta.ads_list = _this.ads_list;
13062
- var url = quads_localize_data.rest_url + 'quads-route/update-ad';
13063
- fetch(url, {
13064
- method: "post",
13065
- headers: {
13066
- 'Accept': 'application/json',
13067
- 'Content-Type': 'application/json',
13068
- 'X-WP-Nonce': quads_localize_data.nonce
13069
- },
13070
- //make sure to serialize your JSON body
13071
- body: JSON.stringify(body_json)
13072
- }).then(function (res) {
13073
- return res.json();
13074
- }).then(function (result) {
13075
- _this.setState({
13076
- quads_is_loaded: false
13077
- });
13078
-
13079
- _this.setState(Object.assign(_this.state.quads_post_meta, {
13080
- ad_id: result.ad_id
13081
- }));
13082
-
13083
- var path = _this.props.location.pathname;
13084
- var search = _this.props.location.search;
13085
-
13086
- var page = _queryString["default"].parse(window.location.search);
13087
-
13088
- var new_url = path + search;
13089
-
13090
- if (page.action != 'edit') {
13091
- new_url = _this.removePartofQueryString(new_url, 'path=wizard_target');
13092
- new_url += 'path=wizard_publish&action=edit&post=' + result.ad_id;
13093
- } else {
13094
- new_url = _this.removePartofQueryString(new_url, 'path=wizard_target');
13095
- new_url += 'path=wizard_publish';
13096
- }
13097
-
13098
- _this.setState({
13099
- quads_is_saved: true
13100
- });
13101
-
13102
- _this.props.history.push(new_url);
13103
- }, function (error) {
13104
- _this.setState({
13105
- quads_is_error: error,
13106
- quads_is_loaded: false
13107
- });
13108
- });
13109
- });
13110
-
13111
- _defineProperty(_assertThisInitialized(_this), "adFormChangeHandler", function (event) {
13112
- var name = event.target.name;
13113
- var value = event.target.type === 'checkbox' ? event.target.checked : event.target.value;
13114
-
13115
- var _this$state9 = _objectSpread({}, _this.state),
13116
- quads_post_meta = _this$state9.quads_post_meta;
13117
-
13118
- var currentState = quads_post_meta;
13119
-
13120
- if (name) {
13121
- currentState[name] = value;
13122
-
13123
- _this.setState({
13124
- quads_post_meta: currentState,
13125
- quads_state_changed: true
13126
- });
13127
- }
13128
-
13129
- var page = _queryString["default"].parse(window.location.search);
13130
-
13131
- if (!_this.state.quads_ad_status) {
13132
- _this.setState({
13133
- quads_ad_status: 'draft'
13134
- });
13135
- }
13136
- });
13137
-
13138
- _defineProperty(_assertThisInitialized(_this), "saveAsDraft", function (event) {
13139
- event.preventDefault();
13140
-
13141
- _this.saveAdFormData('draft');
13142
- });
13143
-
13144
- _defineProperty(_assertThisInitialized(_this), "publish", function (event) {
13145
- event.preventDefault();
13146
- var quads_post_meta = _this.state.quads_post_meta;
13147
- var validation_flag = true;
13148
-
13149
- if (quads_post_meta.position == 'after_the_percentage') {
13150
- if (quads_post_meta.after_the_percentage_value == '' || parseInt(quads_post_meta.after_the_percentage_value) < 10 || parseInt(quads_post_meta.after_the_percentage_value) > 101) {
13151
- validation_flag = false;
13152
- }
13153
- }
13154
-
13155
- switch (quads_post_meta.ad_type) {
13156
- case 'plain_text':
13157
- if (validation_flag && quads_post_meta.code && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13158
- _this.saveAdFormData('publish');
13159
- } else {
13160
- _this.setState({
13161
- show_form_error: true
13162
- });
13163
- }
13164
-
13165
- break;
13166
-
13167
- case 'adsense':
13168
- if (validation_flag && (quads_post_meta.adsense_ad_type == 'adsense_auto_ads' || quads_post_meta.g_data_ad_slot) && quads_post_meta.g_data_ad_client && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13169
- _this.saveAdFormData('publish');
13170
- } else {
13171
- _this.setState({
13172
- show_form_error: true
13173
- });
13174
- }
13175
-
13176
- break;
13177
-
13178
- case 'random_ads':
13179
- if (validation_flag && quads_post_meta.random_ads_list.length > 0 && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13180
- _this.saveAdFormData('publish');
13181
- } else {
13182
- _this.setState({
13183
- show_form_error: true
13184
- });
13185
- }
13186
-
13187
- break;
13188
-
13189
- case 'rotator_ads':
13190
- if (validation_flag && quads_post_meta.ads_list.length > 0 && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13191
- _this.saveAdFormData('publish');
13192
- } else {
13193
- _this.setState({
13194
- show_form_error: true
13195
- });
13196
- }
13197
-
13198
- break;
13199
-
13200
- case 'group_insertion':
13201
- if (validation_flag && quads_post_meta.ads_list.length > 0 && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13202
- _this.saveAdFormData('publish');
13203
- } else {
13204
- _this.setState({
13205
- show_form_error: true
13206
- });
13207
- }
13208
-
13209
- break;
13210
-
13211
- case 'double_click':
13212
- if (validation_flag && quads_post_meta.ad_unit_name && quads_post_meta.network_code && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13213
- _this.saveAdFormData('publish');
13214
- } else {
13215
- _this.setState({
13216
- show_form_error: true
13217
- });
13218
- }
13219
-
13220
- break;
13221
-
13222
- case 'yandex':
13223
- if (validation_flag && quads_post_meta.block_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13224
- _this.saveAdFormData('publish');
13225
- } else {
13226
- _this.setState({
13227
- show_form_error: true
13228
- });
13229
- }
13230
-
13231
- break;
13232
-
13233
- case 'mgid':
13234
- if (validation_flag && quads_post_meta.data_js_src && quads_post_meta.data_container && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13235
- _this.saveAdFormData('publish');
13236
- } else {
13237
- _this.setState({
13238
- show_form_error: true
13239
- });
13240
- }
13241
-
13242
- break;
13243
-
13244
- case 'ad_image':
13245
- if (validation_flag && quads_post_meta.image_src && quads_post_meta.image_redirect_url && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13246
- _this.saveAdFormData('publish');
13247
- } else {
13248
- _this.setState({
13249
- show_form_error: true
13250
- });
13251
- }
13252
-
13253
- break;
13254
-
13255
- case 'taboola':
13256
- if (validation_flag && quads_post_meta.taboola_publisher_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13257
- _this.saveAdFormData('publish');
13258
- } else {
13259
- _this.setState({
13260
- show_form_error: true
13261
- });
13262
- }
13263
-
13264
- break;
13265
-
13266
- case 'media_net':
13267
- if (validation_flag && quads_post_meta.data_cid && quads_post_meta.data_crid && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13268
- _this.saveAdFormData('publish');
13269
- } else {
13270
- _this.setState({
13271
- show_form_error: true
13272
- });
13273
- }
13274
-
13275
- break;
13276
-
13277
- case 'mediavine':
13278
- if (validation_flag && quads_post_meta.mediavine_site_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13279
- _this.saveAdFormData('publish');
13280
- } else {
13281
- _this.setState({
13282
- show_form_error: true
13283
- });
13284
- }
13285
-
13286
- break;
13287
-
13288
- case 'outbrain':
13289
- if (validation_flag && quads_post_meta.outbrain_widget_ids && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13290
- _this.saveAdFormData('publish');
13291
- } else {
13292
- _this.setState({
13293
- show_form_error: true
13294
- });
13295
- }
13296
-
13297
- break;
13298
-
13299
- case 'infolinks':
13300
- if (validation_flag && quads_post_meta.infolinks_wsid && quads_post_meta.infolinks_pid && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13301
- _this.saveAdFormData('publish');
13302
- } else {
13303
- _this.setState({
13304
- show_form_error: true
13305
- });
13306
- }
13307
-
13308
- break;
13309
-
13310
- case 'background_ad':
13311
- if (validation_flag && quads_post_meta.image_src && quads_post_meta.image_redirect_url && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13312
- _this.saveAdFormData('publish');
13313
- } else {
13314
- _this.setState({
13315
- show_form_error: true
13316
- });
13317
- }
13318
-
13319
- break;
13320
-
13321
- default:
13322
- break;
13323
- }
13324
- });
13325
-
13326
- _defineProperty(_assertThisInitialized(_this), "removePartofQueryString", function (q_string, part) {
13327
- var split_arr = q_string.split("&");
13328
- var new_search = '';
13329
-
13330
- for (var i = 0; i < split_arr.length; i++) {
13331
- if (!split_arr[i].includes(part)) {
13332
- new_search += split_arr[i] + '&';
13333
- }
13334
- }
13335
-
13336
- return new_search;
13337
- });
13338
-
13339
- _defineProperty(_assertThisInitialized(_this), "quadsGoBack", function (e) {
13340
- e.preventDefault();
13341
-
13342
- var page = _queryString["default"].parse(window.location.search);
13343
-
13344
- var new_url = _this.props.location.pathname + '?page=quads-settings';
13345
-
13346
- if (_this.state.quads_state_changed && !_this.state.quads_is_saved) {
13347
- var r = confirm("Changes you made may not be saved.");
13348
-
13349
- if (r == true) {
13350
- _this.props.history.push(new_url);
13351
- } else {
13352
- return false;
13353
- }
13354
- } else {
13355
- _this.props.history.push(new_url);
13356
- }
13357
- });
13358
-
13359
- _defineProperty(_assertThisInitialized(_this), "moveNext", function (e) {
13360
- var page = _queryString["default"].parse(window.location.search);
13361
-
13362
- var new_url = _this.props.location.pathname + _this.removePartofQueryString(_this.props.location.search, 'path=wizard');
13363
-
13364
- var quads_post_meta = _this.state.quads_post_meta;
13365
-
13366
- if (page.path == 'wizard') {
13367
- new_url += 'path=wizard_target';
13368
-
13369
- switch (quads_post_meta.ad_type) {
13370
- case 'plain_text':
13371
- if (quads_post_meta.code) {
13372
- _this.props.history.push(new_url);
13373
- } else {
13374
- _this.setState({
13375
- show_form_error: true
13376
- });
13377
- }
13378
-
13379
- break;
13380
-
13381
- case 'adsense':
13382
- if ((quads_post_meta.adsense_ad_type == 'adsense_auto_ads' || quads_post_meta.g_data_ad_slot) && quads_post_meta.g_data_ad_client) {
13383
- _this.props.history.push(new_url);
13384
- } else {
13385
- _this.setState({
13386
- show_form_error: true
13387
- });
13388
- }
13389
-
13390
- break;
13391
-
13392
- case 'random_ads':
13393
- if (quads_post_meta.random_ads_list.length > 0) {
13394
- _this.props.history.push(new_url);
13395
- } else {
13396
- _this.setState({
13397
- show_form_error: true
13398
- });
13399
- }
13400
-
13401
- break;
13402
-
13403
- case 'rotator_ads':
13404
- if (quads_post_meta.ads_list.length > 0) {
13405
- _this.props.history.push(new_url);
13406
- } else {
13407
- _this.setState({
13408
- show_form_error: true
13409
- });
13410
- }
13411
-
13412
- break;
13413
-
13414
- case 'group_insertion':
13415
- if (quads_post_meta.ads_list.length > 0) {
13416
- _this.props.history.push(new_url);
13417
- } else {
13418
- _this.setState({
13419
- show_form_error: true
13420
- });
13421
- }
13422
-
13423
- break;
13424
-
13425
- case 'double_click':
13426
- if (quads_post_meta.ad_unit_name && quads_post_meta.network_code) {
13427
- _this.props.history.push(new_url);
13428
- } else {
13429
- _this.setState({
13430
- show_form_error: true
13431
- });
13432
- }
13433
-
13434
- break;
13435
-
13436
- case 'yandex':
13437
- if (quads_post_meta.block_id) {
13438
- _this.props.history.push(new_url);
13439
- } else {
13440
- _this.setState({
13441
- show_form_error: true
13442
- });
13443
- }
13444
-
13445
- break;
13446
-
13447
- case 'mgid':
13448
- if (quads_post_meta.data_container && quads_post_meta.data_js_src) {
13449
- _this.props.history.push(new_url);
13450
- } else {
13451
- _this.setState({
13452
- show_form_error: true
13453
- });
13454
- }
13455
-
13456
- break;
13457
-
13458
- case 'ad_image':
13459
- if (quads_post_meta.image_src && quads_post_meta.image_redirect_url) {
13460
- _this.props.history.push(new_url);
13461
- } else {
13462
- _this.setState({
13463
- show_form_error: true
13464
- });
13465
- }
13466
-
13467
- break;
13468
-
13469
- case 'taboola':
13470
- if (quads_post_meta.taboola_publisher_id) {
13471
- _this.props.history.push(new_url);
13472
- } else {
13473
- _this.setState({
13474
- show_form_error: true
13475
- });
13476
- }
13477
-
13478
- break;
13479
-
13480
- case 'media_net':
13481
- if (quads_post_meta.data_cid && quads_post_meta.data_crid) {
13482
- _this.props.history.push(new_url);
13483
- } else {
13484
- _this.setState({
13485
- show_form_error: true
13486
- });
13487
- }
13488
-
13489
- break;
13490
-
13491
- case 'mediavine':
13492
- if (quads_post_meta.mediavine_site_id) {
13493
- _this.props.history.push(new_url);
13494
- } else {
13495
- _this.setState({
13496
- show_form_error: true
13497
- });
13498
- }
13499
-
13500
- break;
13501
-
13502
- case 'outbrain':
13503
- if (quads_post_meta.outbrain_widget_ids) {
13504
- _this.props.history.push(new_url);
13505
- } else {
13506
- _this.setState({
13507
- show_form_error: true
13508
- });
13509
- }
13510
-
13511
- break;
13512
-
13513
- case 'infolinks':
13514
- if (quads_post_meta.infolinks_pid && quads_post_meta.infolinks_wsid) {
13515
- _this.props.history.push(new_url);
13516
- } else {
13517
- _this.setState({
13518
- show_form_error: true
13519
- });
13520
- }
13521
-
13522
- break;
13523
-
13524
- case 'background_ad':
13525
- if (quads_post_meta.image_src && quads_post_meta.image_redirect_url) {
13526
- _this.props.history.push(new_url);
13527
- } else {
13528
- _this.setState({
13529
- show_form_error: true
13530
- });
13531
- }
13532
-
13533
- break;
13534
-
13535
- default:
13536
- break;
13537
- }
13538
- } else if (page.path == 'wizard_target') {
13539
- new_url += 'path=wizard_publish';
13540
-
13541
- if (quads_post_meta.position && visibility_include.length > 0) {
13542
- _this.props.history.push(new_url);
13543
- } else {
13544
- _this.setState({
13545
- show_form_error: true
13546
- });
13547
- }
13548
- }
13549
- });
13550
-
13551
- _defineProperty(_assertThisInitialized(_this), "movePrev", function (e) {
13552
- var page = _queryString["default"].parse(window.location.search);
13553
-
13554
- var new_url = _this.props.location.pathname + _this.removePartofQueryString(_this.props.location.search, 'path=wizard');
13555
-
13556
- if (page.path == 'wizard_publish') {
13557
- new_url += 'path=wizard_target';
13558
- } else if (page.path == 'wizard_target') {
13559
- new_url += 'path=wizard';
13560
- }
13561
-
13562
- _this.props.history.push(new_url);
13563
- });
13564
-
13565
- _defineProperty(_assertThisInitialized(_this), "closeNotice", function () {
13566
- _this.setState({
13567
- quads_is_saved: false
13568
- });
13569
- });
13570
-
13571
- _this.state = {
13572
- show_form_error: false,
13573
- quads_include_toggle: false,
13574
- Quads_confirm_box: false,
13575
- quads_exclude_toggle: false,
13576
- quads_include_placeholder: 'Search for post types',
13577
- quads_exclude_placeholder: 'Search for post types',
13578
- quads_include_current_type: 'post_type',
13579
- quads_exclude_current_type: 'post_type',
13580
- quads_include_input_text: '',
13581
- quads_exclude_input_text: '',
13582
- quads_include_input_id: '',
13583
- quads_exclude_input_id: '',
13584
- quads_is_reload: true,
13585
- quads_modal_value: '',
13586
- quads_modal_error: '',
13587
- quads_modal_open: false,
13588
- quads_is_loaded: true,
13589
- quads_is_visibility: true,
13590
- quads_state_changed: false,
13591
- quads_is_saved: false,
13592
- quads_ad_status: '',
13593
- quads_is_error: [],
13594
- quads_post: {},
13595
- quads_include_meta: {},
13596
- quads_exclude_meta: {},
13597
- quads_post_meta: {
13598
- visibility_include: visibility_include_def_val,
13599
- visibility_exclude: [],
13600
- targeting_include: [],
13601
- targeting_exclude: [],
13602
- ad_id: '',
13603
- ad_type: '',
13604
- label: '',
13605
- adsense_ad_type: 'display_ads',
13606
- data_layout_key: '',
13607
- g_data_ad_slot: '',
13608
- g_data_ad_client: '',
13609
- adsense_type: 'normal',
13610
- g_data_ad_width: '',
13611
- g_data_ad_height: '',
13612
- network_code: '',
13613
- ad_unit_name: '',
13614
- code: '',
13615
- align: 3,
13616
- ad_label_check: false,
13617
- adlabel: '',
13618
- ad_label_text: 'Advertisements',
13619
- margin: 0,
13620
- position: 'beginning_of_post',
13621
- paragraph_number: 1,
13622
- count_as_per: 'p_tag',
13623
- word_count_number: 100,
13624
- image_number: 1,
13625
- enabled_on_amp: false,
13626
- enable_on_end_of_post: false,
13627
- repeat_paragraph: false,
13628
- after_the_percentage_value: 50,
13629
- ads_loop_number: 1,
13630
- paragraph_limit: '',
13631
- insert_after: 1,
13632
- image_caption: false,
13633
- include_dropdown: false,
13634
- exclude_dropdown: false,
13635
- random_ads_list: [],
13636
- ads_list: [],
13637
- image_src: '',
13638
- image_src_id: '',
13639
- image_redirect_url: '',
13640
- taboola_publisher_id: '',
13641
- data_cid: '',
13642
- data_crid: '',
13643
- mediavine_site_id: '',
13644
- outbrain_widget_ids: '',
13645
- infolinks_pid: '',
13646
- infolinks_wsid: '',
13647
- data_container: '',
13648
- data_js_src: '',
13649
- refresh_type: 'on_load'
13650
- },
13651
- quads_form_errors: {
13652
- g_data_ad_slot: '',
13653
- g_data_ad_client: '',
13654
- code: '',
13655
- label: '',
13656
- position: '',
13657
- visibility_include: [],
13658
- random_ads_list: [],
13659
- ads_list: []
13660
- }
13661
- };
13662
- _this.include_timer = null;
13663
- _this.exclude_timer = null;
13664
- _this.includedVal = [];
13665
- _this.excludedVal = [];
13666
- _this.includedVisibilityVal = visibility_include_def_val;
13667
- _this.excludedVisibilityVal = [];
13668
- return _this;
13669
- }
13670
-
13671
- _createClass(QuadsAdCreateRouter, [{
13672
- key: "componentDidUpdate",
13673
- value: function componentDidUpdate() {}
13674
- }, {
13675
- key: "componentDidMount",
13676
- value: function componentDidMount() {
13677
- var page = _queryString["default"].parse(window.location.search);
13678
-
13679
- if (this.state.quads_is_reload && page.action == 'edit') {
13680
- document.body.classList.add('quads_editpage');
13681
- this.getAdDataById(page.post);
13682
- this.setState({
13683
- quads_is_reload: false
13684
- });
13685
- } else {
13686
- document.body.classList.add('quads_addpage');
13687
- }
13688
-
13689
- this.setState(Object.assign(this.state.quads_post_meta, {
13690
- ad_type: page.ad_type
13691
- }));
13692
- this.setState({
13693
- quads_is_loaded: false
13694
- });
13695
- }
13696
- }, {
13697
- key: "render",
13698
- value: function render() {
13699
- var _this2 = this;
13700
-
13701
- var location = this.props.location;
13702
-
13703
- var page = _queryString["default"].parse(window.location.search);
13704
-
13705
- var __ = wp.i18n.__;
13706
- var post_meta = this.state.quads_post_meta;
13707
- var show_form_error = this.state.show_form_error;
13708
-
13709
- if (page.path == 'wizard_target' && this.state.quads_post_meta.label == '') {
13710
- var json_data = {
13711
- action: 'quads_ajax_add_ads'
13712
- };
13713
- var url = quads_localize_data.rest_url + "quads-route/get-add-next-id";
13714
- fetch(url, {
13715
- method: "post",
13716
- headers: {
13717
- 'Accept': 'application/json',
13718
- 'Content-Type': 'application/json',
13719
- 'X-WP-Nonce': quads_localize_data.nonce
13720
- },
13721
- body: JSON.stringify(json_data)
13722
- }).then(function (res) {
13723
- return res.json();
13724
- }).then(function (result) {
13725
- var titleName = result.name;
13726
- var quads_ad_old_id = 'ad' + result.id;
13727
-
13728
- if (page.ad_type == 'random_ads') {
13729
- titleName = result.name + " (Random)";
13730
- } else if (page.ad_type == 'rotator_ads') {
13731
- titleName = result.name + " (Rotator)";
13732
- } else if (page.ad_type == 'group_insertion') {
13733
- titleName = result.name + " (Group Insertion)";
13734
- }
13735
-
13736
- _this2.setState(Object.assign(_this2.state.quads_post_meta, {
13737
- label: titleName,
13738
- quads_ad_old_id: quads_ad_old_id
13739
- }));
13740
- }, function (error) {});
13741
- }
13742
-
13743
- return /*#__PURE__*/_react["default"].createElement("div", null, this.state.quads_is_loaded ? /*#__PURE__*/_react["default"].createElement("div", {
13744
- className: "quads-cover-spin"
13745
- }) : '', /*#__PURE__*/_react["default"].createElement("form", {
13746
- id: "quads-ad-form"
13747
- }, /*#__PURE__*/_react["default"].createElement("div", {
13748
- className: "material-icons quads-close-create-page"
13749
- }, /*#__PURE__*/_react["default"].createElement("a", {
13750
- onClick: this.quadsGoBack
13751
- }, "close")), /*#__PURE__*/_react["default"].createElement("div", {
13752
- className: "quads-ad-config-header"
13753
- }, /*#__PURE__*/_react["default"].createElement("div", {
13754
- className: "quads-ad-input"
13755
- }, /*#__PURE__*/_react["default"].createElement("input", {
13756
- value: this.state.quads_post_meta.label,
13757
- type: "text",
13758
- onChange: this.adFormChangeHandler,
13759
- name: "label",
13760
- placeholder: __('Name your ad unit', 'quick-adsense-reloaded')
13761
- }), /*#__PURE__*/_react["default"].createElement("input", {
13762
- type: "hidden",
13763
- name: "ad_id",
13764
- value: this.state.quads_post_meta.ad_id
13765
- }), /*#__PURE__*/_react["default"].createElement("input", {
13766
- type: "hidden",
13767
- name: "ad_type",
13768
- value: this.state.quads_post_meta.ad_type
13769
- })), /*#__PURE__*/_react["default"].createElement("div", {
13770
- className: "quads-ad-config-menu"
13771
- }, /*#__PURE__*/_react["default"].createElement("div", {
13772
- className: "quads-ad-config-tab"
13773
- }, /*#__PURE__*/_react["default"].createElement("ul", null, /*#__PURE__*/_react["default"].createElement("li", {
13774
- className: "".concat(page.path == 'wizard' ? 'quads-selected' : '')
13775
- }, __('Configuration', 'quick-adsense-reloaded')), /*#__PURE__*/_react["default"].createElement("li", {
13776
- className: "".concat(page.path == 'wizard_target' ? 'quads-selected' : '')
13777
- }, __('Targeting', 'quick-adsense-reloaded')), /*#__PURE__*/_react["default"].createElement("li", {
13778
- className: "".concat(page.path == 'wizard_publish' ? 'quads-selected' : '')
13779
- }, __('Publish', 'quick-adsense-reloaded')))))), /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
13780
- render: function render(props) {
13781
- switch (page.path) {
13782
- case "wizard":
13783
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdConfig["default"], _extends({}, props, {
13784
- moveNext: _this2.moveNext,
13785
- parentState: _this2.state,
13786
- adFormChangeHandler: _this2.adFormChangeHandler,
13787
- modalValue: _this2.modalValue,
13788
- getAdsenseCode: _this2.getAdsenseCode,
13789
- openModal: _this2.openModal,
13790
- closeModal: _this2.closeModal,
13791
- updateRandomAds: _this2.updateRandomAds,
13792
- updateAdsList: _this2.updateAdsList
13793
- }));
13794
-
13795
- case "wizard_target":
13796
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdTargeting["default"], _extends({}, props, {
13797
- parentState: _this2.state,
13798
- updateVisitorTarget: _this2.updateVisitorTarget,
13799
- updateVisibility: _this2.updateVisibility,
13800
- adFormChangeHandler: _this2.adFormChangeHandler,
13801
- movePrev: _this2.movePrev,
13802
- publish: _this2.publish,
13803
- onListSearchHover: _this2.onListSearchHover
13804
- }));
13805
-
13806
- case "wizard_publish":
13807
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdPublish["default"], _extends({}, props, {
13808
- parentState: _this2.state,
13809
- adFormChangeHandler: _this2.adFormChangeHandler,
13810
- movePrev: _this2.movePrev
13811
- }));
13812
-
13813
- default:
13814
- return null;
13815
- }
13816
- }
13817
- })));
13818
- }
13819
- }]);
13820
-
13821
- return QuadsAdCreateRouter;
13822
- }(_react.Component);
13823
-
13824
- var _default = QuadsAdCreateRouter;
13825
- exports["default"] = _default;
13826
-
13827
- /***/ }),
13828
- /* 212 */
13829
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13830
-
13831
- "use strict";
13832
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
13833
- /* harmony default export */ __webpack_exports__["a"] = (hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__');
13834
-
13835
- /***/ }),
13836
- /* 213 */
13837
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13838
-
13839
- "use strict";
13840
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createStyles__ = __webpack_require__(466);
13841
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__createStyles__["a"]; });
13842
-
13843
-
13844
- /***/ }),
13845
- /* 214 */
13846
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13847
-
13848
- "use strict";
13849
- /* unused harmony export isBrowser */
13850
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
13851
-
13852
- var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document.nodeType === 9;
13853
-
13854
- /* harmony default export */ __webpack_exports__["a"] = (isBrowser);
13855
-
13856
-
13857
- /***/ }),
13858
- /* 215 */
13859
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13860
-
13861
- "use strict";
13862
- /* harmony export (immutable) */ __webpack_exports__["a"] = _arrayLikeToArray;
13863
- function _arrayLikeToArray(arr, len) {
13864
- if (len == null || len > arr.length) len = arr.length;
13865
-
13866
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
13867
- arr2[i] = arr[i];
13868
- }
13869
-
13870
- return arr2;
13871
- }
13872
-
13873
- /***/ }),
13874
- /* 216 */
13875
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13876
-
13877
- "use strict";
13878
- /* harmony export (immutable) */ __webpack_exports__["a"] = _iterableToArray;
13879
- function _iterableToArray(iter) {
13880
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
13881
- }
13882
-
13883
- /***/ }),
13884
- /* 217 */
13885
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13886
-
13887
- "use strict";
13888
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
13889
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
13890
-
13891
- var ThemeContext = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null);
13892
-
13893
- if (process.env.NODE_ENV !== 'production') {
13894
- ThemeContext.displayName = 'ThemeContext';
13895
- }
13896
-
13897
- /* harmony default export */ __webpack_exports__["a"] = (ThemeContext);
13898
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
13899
-
13900
- /***/ }),
13901
- /* 218 */
13902
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13903
-
13904
- "use strict";
13905
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export sheetsManager */
13906
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StylesContext; });
13907
- /* harmony export (immutable) */ __webpack_exports__["b"] = StylesProvider;
13908
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
13909
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
13910
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
13911
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
13912
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
13913
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
13914
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ui_utils__ = __webpack_require__(7);
13915
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__createGenerateClassName__ = __webpack_require__(87);
13916
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_jss__ = __webpack_require__(49);
13917
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__jssPreset__ = __webpack_require__(132);
13918
-
13919
-
13920
-
13921
-
13922
-
13923
-
13924
-
13925
- // Default JSS instance.
13926
-
13927
- var jss = Object(__WEBPACK_IMPORTED_MODULE_6_jss__["c" /* create */])(Object(__WEBPACK_IMPORTED_MODULE_7__jssPreset__["a" /* default */])()); // Use a singleton or the provided one by the context.
13928
- //
13929
- // The counter-based approach doesn't tolerate any mistake.
13930
- // It's much safer to use the same counter everywhere.
13931
-
13932
- var generateClassName = Object(__WEBPACK_IMPORTED_MODULE_5__createGenerateClassName__["a" /* default */])(); // Exported for test purposes
13933
-
13934
- var sheetsManager = new Map();
13935
- var defaultOptions = {
13936
- disableGeneration: false,
13937
- generateClassName: generateClassName,
13938
- jss: jss,
13939
- sheetsCache: null,
13940
- sheetsManager: sheetsManager,
13941
- sheetsRegistry: null
13942
- };
13943
- var StylesContext = __WEBPACK_IMPORTED_MODULE_2_react___default.a.createContext(defaultOptions);
13944
-
13945
- if (process.env.NODE_ENV !== 'production') {
13946
- StylesContext.displayName = 'StylesContext';
13947
- }
13948
-
13949
- var injectFirstNode;
13950
- function StylesProvider(props) {
13951
- var children = props.children,
13952
- _props$injectFirst = props.injectFirst,
13953
- injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst,
13954
- _props$disableGenerat = props.disableGeneration,
13955
- disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat,
13956
- localOptions = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "injectFirst", "disableGeneration"]);
13957
-
13958
- var outerOptions = __WEBPACK_IMPORTED_MODULE_2_react___default.a.useContext(StylesContext);
13959
-
13960
- var context = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, outerOptions, {
13961
- disableGeneration: disableGeneration
13962
- }, localOptions);
13963
-
13964
- if (process.env.NODE_ENV !== 'production') {
13965
- if (typeof window === 'undefined' && !context.sheetsManager) {
13966
- console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.');
13967
- }
13968
- }
13969
-
13970
- if (process.env.NODE_ENV !== 'production') {
13971
- if (context.jss.options.insertionPoint && injectFirst) {
13972
- console.error('Material-UI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
13973
- }
13974
- }
13975
-
13976
- if (process.env.NODE_ENV !== 'production') {
13977
- if (injectFirst && localOptions.jss) {
13978
- console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.');
13979
- }
13980
- }
13981
-
13982
- if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {
13983
- if (!injectFirstNode) {
13984
- var head = document.head;
13985
- injectFirstNode = document.createComment('mui-inject-first');
13986
- head.insertBefore(injectFirstNode, head.firstChild);
13987
- }
13988
-
13989
- context.jss = Object(__WEBPACK_IMPORTED_MODULE_6_jss__["c" /* create */])({
13990
- plugins: Object(__WEBPACK_IMPORTED_MODULE_7__jssPreset__["a" /* default */])().plugins,
13991
- insertionPoint: injectFirstNode
13992
- });
13993
- }
13994
-
13995
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(StylesContext.Provider, {
13996
- value: context
13997
- }, children);
13998
- }
13999
- process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = {
14000
- /**
14001
- * Your component tree.
14002
- */
14003
- children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node.isRequired,
14004
-
14005
- /**
14006
- * You can disable the generation of the styles with this option.
14007
- * It can be useful when traversing the React tree outside of the HTML
14008
- * rendering step on the server.
14009
- * Let's say you are using react-apollo to extract all
14010
- * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.
14011
- */
14012
- disableGeneration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
14013
-
14014
- /**
14015
- * JSS's class name generator.
14016
- */
14017
- generateClassName: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
14018
-
14019
- /**
14020
- * By default, the styles are injected last in the <head> element of the page.
14021
- * As a result, they gain more specificity than any other style sheet.
14022
- * If you want to override Material-UI's styles, set this prop.
14023
- */
14024
- injectFirst: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
14025
-
14026
- /**
14027
- * JSS's instance.
14028
- */
14029
- jss: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
14030
-
14031
- /**
14032
- * @ignore
14033
- */
14034
- serverGenerateClassName: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
14035
-
14036
- /**
14037
- * @ignore
14038
- *
14039
- * Beta feature.
14040
- *
14041
- * Cache for the sheets.
14042
- */
14043
- sheetsCache: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
14044
-
14045
- /**
14046
- * @ignore
14047
- *
14048
- * The sheetsManager is used to deduplicate style sheet injection in the page.
14049
- * It's deduplicating using the (theme, styles) couple.
14050
- * On the server, you should provide a new instance for each request.
14051
- */
14052
- sheetsManager: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
14053
-
14054
- /**
14055
- * @ignore
14056
- *
14057
- * Collect the sheets.
14058
- */
14059
- sheetsRegistry: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
14060
- } : void 0;
14061
-
14062
- if (process.env.NODE_ENV !== 'production') {
14063
- process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = Object(__WEBPACK_IMPORTED_MODULE_4__material_ui_utils__["f" /* exactProp */])(StylesProvider.propTypes) : void 0;
14064
- }
14065
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
14066
-
14067
- /***/ }),
14068
- /* 219 */
14069
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14070
-
14071
- "use strict";
14072
- // We use the same empty object to ref count the styles that don't need a theme object.
14073
- var noopTheme = {};
14074
- /* harmony default export */ __webpack_exports__["a"] = (noopTheme);
14075
-
14076
- /***/ }),
14077
- /* 220 */
14078
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14079
-
14080
- "use strict";
14081
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ServerStyleSheets__ = __webpack_require__(487);
14082
- /* unused harmony reexport default */
14083
-
14084
-
14085
- /***/ }),
14086
- /* 221 */
14087
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14088
-
14089
- "use strict";
14090
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__styled__ = __webpack_require__(488);
14091
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__styled__["a"]; });
14092
-
14093
-
14094
- /***/ }),
14095
- /* 222 */
14096
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14097
-
14098
- "use strict";
14099
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ThemeProvider__ = __webpack_require__(489);
14100
- /* unused harmony reexport default */
14101
-
14102
-
14103
- /***/ }),
14104
- /* 223 */
14105
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14106
-
14107
- "use strict";
14108
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withStyles__ = __webpack_require__(490);
14109
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withStyles__["a"]; });
14110
-
14111
-
14112
- /***/ }),
14113
- /* 224 */
14114
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14115
-
14116
- "use strict";
14117
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withTheme__ = __webpack_require__(225);
14118
- /* unused harmony reexport default */
14119
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withTheme__["a"]; });
14120
-
14121
-
14122
-
14123
- /***/ }),
14124
- /* 225 */
14125
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14126
-
14127
- "use strict";
14128
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = withThemeCreator;
14129
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
14130
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
14131
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
14132
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
14133
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
14134
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
14135
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__ = __webpack_require__(71);
14136
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__);
14137
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__ = __webpack_require__(7);
14138
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__useTheme__ = __webpack_require__(61);
14139
-
14140
-
14141
-
14142
-
14143
-
14144
-
14145
-
14146
- function withThemeCreator() {
14147
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14148
- var defaultTheme = options.defaultTheme;
14149
-
14150
- var withTheme = function withTheme(Component) {
14151
- if (process.env.NODE_ENV !== 'production') {
14152
- if (Component === undefined) {
14153
- throw new Error(['You are calling withTheme(Component) with an undefined component.', 'You may have forgotten to import it.'].join('\n'));
14154
- }
14155
- }
14156
-
14157
- var WithTheme = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef(function WithTheme(props, ref) {
14158
- var innerRef = props.innerRef,
14159
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["innerRef"]);
14160
-
14161
- var theme = Object(__WEBPACK_IMPORTED_MODULE_6__useTheme__["a" /* default */])() || defaultTheme;
14162
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(Component, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
14163
- theme: theme,
14164
- ref: innerRef || ref
14165
- }, other));
14166
- });
14167
- process.env.NODE_ENV !== "production" ? WithTheme.propTypes = {
14168
- /**
14169
- * Use that prop to pass a ref to the decorated component.
14170
- * @deprecated
14171
- */
14172
- innerRef: Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["b" /* chainPropTypes */])(__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object]), function (props) {
14173
- if (props.innerRef == null) {
14174
- return null;
14175
- }
14176
-
14177
- return new Error('Material-UI: The `innerRef` prop is deprecated and will be removed in v5. ' + 'Refs are now automatically forwarded to the inner component.');
14178
- })
14179
- } : void 0;
14180
-
14181
- if (process.env.NODE_ENV !== 'production') {
14182
- WithTheme.displayName = "WithTheme(".concat(Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["h" /* getDisplayName */])(Component), ")");
14183
- }
14184
-
14185
- __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default()(WithTheme, Component);
14186
-
14187
- if (process.env.NODE_ENV !== 'production') {
14188
- // Exposed for test purposes.
14189
- WithTheme.Naked = Component;
14190
- }
14191
-
14192
- return WithTheme;
14193
- };
14194
-
14195
- return withTheme;
14196
- } // Provide the theme object as a prop to the input component.
14197
- // It's an alternative API to useTheme().
14198
- // We encourage the usage of useTheme() where possible.
14199
-
14200
- var withTheme = withThemeCreator();
14201
- /* unused harmony default export */ var _unused_webpack_default_export = (withTheme);
14202
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
14203
-
14204
- /***/ }),
14205
- /* 226 */
14206
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14207
-
14208
- "use strict";
14209
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return keys; });
14210
- /* harmony export (immutable) */ __webpack_exports__["a"] = createBreakpoints;
14211
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
14212
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
14213
-
14214
-
14215
- // Sorted ASC by size. That's important.
14216
- // It can't be configured as it's used statically for propTypes.
14217
- var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification.
14218
-
14219
- function createBreakpoints(breakpoints) {
14220
- var _breakpoints$values = breakpoints.values,
14221
- values = _breakpoints$values === void 0 ? {
14222
- xs: 0,
14223
- sm: 600,
14224
- md: 960,
14225
- lg: 1280,
14226
- xl: 1920
14227
- } : _breakpoints$values,
14228
- _breakpoints$unit = breakpoints.unit,
14229
- unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,
14230
- _breakpoints$step = breakpoints.step,
14231
- step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,
14232
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(breakpoints, ["values", "unit", "step"]);
14233
-
14234
- function up(key) {
14235
- var value = typeof values[key] === 'number' ? values[key] : key;
14236
- return "@media (min-width:".concat(value).concat(unit, ")");
14237
- }
14238
-
14239
- function down(key) {
14240
- var endIndex = keys.indexOf(key) + 1;
14241
- var upperbound = values[keys[endIndex]];
14242
-
14243
- if (endIndex === keys.length) {
14244
- // xl down applies to all sizes
14245
- return up('xs');
14246
- }
14247
-
14248
- var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;
14249
- return "@media (max-width:".concat(value - step / 100).concat(unit, ")");
14250
- }
14251
-
14252
- function between(start, end) {
14253
- var endIndex = keys.indexOf(end);
14254
-
14255
- if (endIndex === keys.length - 1) {
14256
- return up(start);
14257
- }
14258
-
14259
- return "@media (min-width:".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === 'number' ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, ")");
14260
- }
14261
-
14262
- function only(key) {
14263
- return between(key, key);
14264
- }
14265
-
14266
- function width(key) {
14267
- return values[key];
14268
- }
14269
-
14270
- return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
14271
- keys: keys,
14272
- values: values,
14273
- up: up,
14274
- down: down,
14275
- between: between,
14276
- only: only,
14277
- width: width
14278
- }, other);
14279
- }
14280
-
14281
- /***/ }),
14282
- /* 227 */
14283
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14284
-
14285
- "use strict";
14286
- var common = {
14287
- black: '#000',
14288
- white: '#fff'
14289
- };
14290
- /* harmony default export */ __webpack_exports__["a"] = (common);
14291
-
14292
- /***/ }),
14293
- /* 228 */
14294
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14295
-
14296
- "use strict";
14297
- var grey = {
14298
- 50: '#fafafa',
14299
- 100: '#f5f5f5',
14300
- 200: '#eeeeee',
14301
- 300: '#e0e0e0',
14302
- 400: '#bdbdbd',
14303
- 500: '#9e9e9e',
14304
- 600: '#757575',
14305
- 700: '#616161',
14306
- 800: '#424242',
14307
- 900: '#212121',
14308
- A100: '#d5d5d5',
14309
- A200: '#aaaaaa',
14310
- A400: '#303030',
14311
- A700: '#616161'
14312
- };
14313
- /* harmony default export */ __webpack_exports__["a"] = (grey);
14314
-
14315
- /***/ }),
14316
- /* 229 */
14317
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14318
-
14319
- "use strict";
14320
- var indigo = {
14321
- 50: '#e8eaf6',
14322
- 100: '#c5cae9',
14323
- 200: '#9fa8da',
14324
- 300: '#7986cb',
14325
- 400: '#5c6bc0',
14326
- 500: '#3f51b5',
14327
- 600: '#3949ab',
14328
- 700: '#303f9f',
14329
- 800: '#283593',
14330
- 900: '#1a237e',
14331
- A100: '#8c9eff',
14332
- A200: '#536dfe',
14333
- A400: '#3d5afe',
14334
- A700: '#304ffe'
14335
- };
14336
- /* harmony default export */ __webpack_exports__["a"] = (indigo);
14337
-
14338
- /***/ }),
14339
- /* 230 */
14340
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14341
-
14342
- "use strict";
14343
- var pink = {
14344
- 50: '#fce4ec',
14345
- 100: '#f8bbd0',
14346
- 200: '#f48fb1',
14347
- 300: '#f06292',
14348
- 400: '#ec407a',
14349
- 500: '#e91e63',
14350
- 600: '#d81b60',
14351
- 700: '#c2185b',
14352
- 800: '#ad1457',
14353
- 900: '#880e4f',
14354
- A100: '#ff80ab',
14355
- A200: '#ff4081',
14356
- A400: '#f50057',
14357
- A700: '#c51162'
14358
- };
14359
- /* harmony default export */ __webpack_exports__["a"] = (pink);
14360
-
14361
- /***/ }),
14362
- /* 231 */
14363
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14364
-
14365
- "use strict";
14366
- var red = {
14367
- 50: '#ffebee',
14368
- 100: '#ffcdd2',
14369
- 200: '#ef9a9a',
14370
- 300: '#e57373',
14371
- 400: '#ef5350',
14372
- 500: '#f44336',
14373
- 600: '#e53935',
14374
- 700: '#d32f2f',
14375
- 800: '#c62828',
14376
- 900: '#b71c1c',
14377
- A100: '#ff8a80',
14378
- A200: '#ff5252',
14379
- A400: '#ff1744',
14380
- A700: '#d50000'
14381
- };
14382
- /* harmony default export */ __webpack_exports__["a"] = (red);
14383
-
14384
- /***/ }),
14385
- /* 232 */
14386
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14387
-
14388
- "use strict";
14389
- var orange = {
14390
- 50: '#fff3e0',
14391
- 100: '#ffe0b2',
14392
- 200: '#ffcc80',
14393
- 300: '#ffb74d',
14394
- 400: '#ffa726',
14395
- 500: '#ff9800',
14396
- 600: '#fb8c00',
14397
- 700: '#f57c00',
14398
- 800: '#ef6c00',
14399
- 900: '#e65100',
14400
- A100: '#ffd180',
14401
- A200: '#ffab40',
14402
- A400: '#ff9100',
14403
- A700: '#ff6d00'
14404
- };
14405
- /* harmony default export */ __webpack_exports__["a"] = (orange);
14406
-
14407
- /***/ }),
14408
- /* 233 */
14409
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14410
-
14411
- "use strict";
14412
- var blue = {
14413
- 50: '#e3f2fd',
14414
- 100: '#bbdefb',
14415
- 200: '#90caf9',
14416
- 300: '#64b5f6',
14417
- 400: '#42a5f5',
14418
- 500: '#2196f3',
14419
- 600: '#1e88e5',
14420
- 700: '#1976d2',
14421
- 800: '#1565c0',
14422
- 900: '#0d47a1',
14423
- A100: '#82b1ff',
14424
- A200: '#448aff',
14425
- A400: '#2979ff',
14426
- A700: '#2962ff'
14427
- };
14428
- /* harmony default export */ __webpack_exports__["a"] = (blue);
14429
-
14430
- /***/ }),
14431
- /* 234 */
14432
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14433
-
14434
- "use strict";
14435
- var green = {
14436
- 50: '#e8f5e9',
14437
- 100: '#c8e6c9',
14438
- 200: '#a5d6a7',
14439
- 300: '#81c784',
14440
- 400: '#66bb6a',
14441
- 500: '#4caf50',
14442
- 600: '#43a047',
14443
- 700: '#388e3c',
14444
- 800: '#2e7d32',
14445
- 900: '#1b5e20',
14446
- A100: '#b9f6ca',
14447
- A200: '#69f0ae',
14448
- A400: '#00e676',
14449
- A700: '#00c853'
14450
- };
14451
- /* harmony default export */ __webpack_exports__["a"] = (green);
14452
-
14453
- /***/ }),
14454
- /* 235 */
14455
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14456
-
14457
- "use strict";
14458
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__borders__ = __webpack_require__(236);
14459
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__borders__["a"]; });
14460
- /* unused harmony namespace reexport */
14461
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__breakpoints__ = __webpack_require__(136);
14462
- /* unused harmony reexport breakpoints */
14463
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__compose__ = __webpack_require__(39);
14464
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__compose__["a"]; });
14465
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__css__ = __webpack_require__(497);
14466
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_3__css__["a"]; });
14467
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__display__ = __webpack_require__(498);
14468
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_4__display__["a"]; });
14469
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__flexbox__ = __webpack_require__(238);
14470
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_5__flexbox__["a"]; });
14471
- /* unused harmony namespace reexport */
14472
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__grid__ = __webpack_require__(239);
14473
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_6__grid__["a"]; });
14474
- /* unused harmony namespace reexport */
14475
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__palette__ = __webpack_require__(240);
14476
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__palette__["a"]; });
14477
- /* unused harmony namespace reexport */
14478
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__positions__ = __webpack_require__(241);
14479
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__positions__["a"]; });
14480
- /* unused harmony namespace reexport */
14481
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__shadows__ = __webpack_require__(499);
14482
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_9__shadows__["a"]; });
14483
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__sizing__ = __webpack_require__(242);
14484
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return __WEBPACK_IMPORTED_MODULE_10__sizing__["a"]; });
14485
- /* unused harmony namespace reexport */
14486
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__spacing__ = __webpack_require__(243);
14487
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return __WEBPACK_IMPORTED_MODULE_11__spacing__["b"]; });
14488
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_11__spacing__["a"]; });
14489
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__style__ = __webpack_require__(36);
14490
- /* unused harmony reexport style */
14491
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__typography__ = __webpack_require__(246);
14492
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return __WEBPACK_IMPORTED_MODULE_13__typography__["a"]; });
14493
- /* unused harmony namespace reexport */
14494
- /** @license Material-UI v4.11.2
14495
- *
14496
- * This source code is licensed under the MIT license found in the
14497
- * LICENSE file in the root directory of this source tree.
14498
- */
14499
-
14500
-
14501
-
14502
-
14503
-
14504
-
14505
-
14506
-
14507
-
14508
-
14509
-
14510
-
14511
-
14512
-
14513
-
14514
-
14515
-
14516
-
14517
-
14518
-
14519
-
14520
-
14521
-
14522
- /***/ }),
14523
- /* 236 */
14524
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14525
-
14526
- "use strict";
14527
- /* unused harmony export border */
14528
- /* unused harmony export borderTop */
14529
- /* unused harmony export borderRight */
14530
- /* unused harmony export borderBottom */
14531
- /* unused harmony export borderLeft */
14532
- /* unused harmony export borderColor */
14533
- /* unused harmony export borderRadius */
14534
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14535
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14536
-
14537
-
14538
-
14539
- function getBorder(value) {
14540
- if (typeof value !== 'number') {
14541
- return value;
14542
- }
14543
-
14544
- return "".concat(value, "px solid");
14545
- }
14546
-
14547
- var border = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14548
- prop: 'border',
14549
- themeKey: 'borders',
14550
- transform: getBorder
14551
- });
14552
- var borderTop = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14553
- prop: 'borderTop',
14554
- themeKey: 'borders',
14555
- transform: getBorder
14556
- });
14557
- var borderRight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14558
- prop: 'borderRight',
14559
- themeKey: 'borders',
14560
- transform: getBorder
14561
- });
14562
- var borderBottom = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14563
- prop: 'borderBottom',
14564
- themeKey: 'borders',
14565
- transform: getBorder
14566
- });
14567
- var borderLeft = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14568
- prop: 'borderLeft',
14569
- themeKey: 'borders',
14570
- transform: getBorder
14571
- });
14572
- var borderColor = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14573
- prop: 'borderColor',
14574
- themeKey: 'palette'
14575
- });
14576
- var borderRadius = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14577
- prop: 'borderRadius',
14578
- themeKey: 'shape'
14579
- });
14580
- var borders = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderRadius);
14581
- /* harmony default export */ __webpack_exports__["a"] = (borders);
14582
-
14583
- /***/ }),
14584
- /* 237 */
14585
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14586
-
14587
- "use strict";
14588
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(2);
14589
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
14590
-
14591
- var responsivePropType = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.array]) : {};
14592
- /* harmony default export */ __webpack_exports__["a"] = (responsivePropType);
14593
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
14594
-
14595
- /***/ }),
14596
- /* 238 */
14597
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14598
-
14599
- "use strict";
14600
- /* unused harmony export flexBasis */
14601
- /* unused harmony export flexDirection */
14602
- /* unused harmony export flexWrap */
14603
- /* unused harmony export justifyContent */
14604
- /* unused harmony export alignItems */
14605
- /* unused harmony export alignContent */
14606
- /* unused harmony export order */
14607
- /* unused harmony export flex */
14608
- /* unused harmony export flexGrow */
14609
- /* unused harmony export flexShrink */
14610
- /* unused harmony export alignSelf */
14611
- /* unused harmony export justifyItems */
14612
- /* unused harmony export justifySelf */
14613
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14614
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14615
-
14616
-
14617
- var flexBasis = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14618
- prop: 'flexBasis'
14619
- });
14620
- var flexDirection = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14621
- prop: 'flexDirection'
14622
- });
14623
- var flexWrap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14624
- prop: 'flexWrap'
14625
- });
14626
- var justifyContent = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14627
- prop: 'justifyContent'
14628
- });
14629
- var alignItems = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14630
- prop: 'alignItems'
14631
- });
14632
- var alignContent = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14633
- prop: 'alignContent'
14634
- });
14635
- var order = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14636
- prop: 'order'
14637
- });
14638
- var flex = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14639
- prop: 'flex'
14640
- });
14641
- var flexGrow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14642
- prop: 'flexGrow'
14643
- });
14644
- var flexShrink = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14645
- prop: 'flexShrink'
14646
- });
14647
- var alignSelf = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14648
- prop: 'alignSelf'
14649
- });
14650
- var justifyItems = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14651
- prop: 'justifyItems'
14652
- });
14653
- var justifySelf = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14654
- prop: 'justifySelf'
14655
- });
14656
- var flexbox = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf);
14657
- /* harmony default export */ __webpack_exports__["a"] = (flexbox);
14658
-
14659
- /***/ }),
14660
- /* 239 */
14661
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14662
-
14663
- "use strict";
14664
- /* unused harmony export gridGap */
14665
- /* unused harmony export gridColumnGap */
14666
- /* unused harmony export gridRowGap */
14667
- /* unused harmony export gridColumn */
14668
- /* unused harmony export gridRow */
14669
- /* unused harmony export gridAutoFlow */
14670
- /* unused harmony export gridAutoColumns */
14671
- /* unused harmony export gridAutoRows */
14672
- /* unused harmony export gridTemplateColumns */
14673
- /* unused harmony export gridTemplateRows */
14674
- /* unused harmony export gridTemplateAreas */
14675
- /* unused harmony export gridArea */
14676
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14677
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14678
-
14679
-
14680
- var gridGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14681
- prop: 'gridGap'
14682
- });
14683
- var gridColumnGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14684
- prop: 'gridColumnGap'
14685
- });
14686
- var gridRowGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14687
- prop: 'gridRowGap'
14688
- });
14689
- var gridColumn = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14690
- prop: 'gridColumn'
14691
- });
14692
- var gridRow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14693
- prop: 'gridRow'
14694
- });
14695
- var gridAutoFlow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14696
- prop: 'gridAutoFlow'
14697
- });
14698
- var gridAutoColumns = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14699
- prop: 'gridAutoColumns'
14700
- });
14701
- var gridAutoRows = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14702
- prop: 'gridAutoRows'
14703
- });
14704
- var gridTemplateColumns = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14705
- prop: 'gridTemplateColumns'
14706
- });
14707
- var gridTemplateRows = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14708
- prop: 'gridTemplateRows'
14709
- });
14710
- var gridTemplateAreas = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14711
- prop: 'gridTemplateAreas'
14712
- });
14713
- var gridArea = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14714
- prop: 'gridArea'
14715
- });
14716
- var grid = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
14717
- /* harmony default export */ __webpack_exports__["a"] = (grid);
14718
-
14719
- /***/ }),
14720
- /* 240 */
14721
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14722
-
14723
- "use strict";
14724
- /* unused harmony export color */
14725
- /* unused harmony export bgcolor */
14726
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14727
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14728
-
14729
-
14730
- var color = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14731
- prop: 'color',
14732
- themeKey: 'palette'
14733
- });
14734
- var bgcolor = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14735
- prop: 'bgcolor',
14736
- cssProperty: 'backgroundColor',
14737
- themeKey: 'palette'
14738
- });
14739
- var palette = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(color, bgcolor);
14740
- /* harmony default export */ __webpack_exports__["a"] = (palette);
14741
-
14742
- /***/ }),
14743
- /* 241 */
14744
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14745
-
14746
- "use strict";
14747
- /* unused harmony export position */
14748
- /* unused harmony export zIndex */
14749
- /* unused harmony export top */
14750
- /* unused harmony export right */
14751
- /* unused harmony export bottom */
14752
- /* unused harmony export left */
14753
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14754
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14755
-
14756
-
14757
- var position = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14758
- prop: 'position'
14759
- });
14760
- var zIndex = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14761
- prop: 'zIndex',
14762
- themeKey: 'zIndex'
14763
- });
14764
- var top = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14765
- prop: 'top'
14766
- });
14767
- var right = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14768
- prop: 'right'
14769
- });
14770
- var bottom = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14771
- prop: 'bottom'
14772
- });
14773
- var left = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14774
- prop: 'left'
14775
- });
14776
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(position, zIndex, top, right, bottom, left));
14777
-
14778
- /***/ }),
14779
- /* 242 */
14780
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14781
-
14782
- "use strict";
14783
- /* unused harmony export width */
14784
- /* unused harmony export maxWidth */
14785
- /* unused harmony export minWidth */
14786
- /* unused harmony export height */
14787
- /* unused harmony export maxHeight */
14788
- /* unused harmony export minHeight */
14789
- /* unused harmony export sizeWidth */
14790
- /* unused harmony export sizeHeight */
14791
- /* unused harmony export boxSizing */
14792
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14793
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14794
-
14795
-
14796
-
14797
- function transform(value) {
14798
- return value <= 1 ? "".concat(value * 100, "%") : value;
14799
- }
14800
-
14801
- var width = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14802
- prop: 'width',
14803
- transform: transform
14804
- });
14805
- var maxWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14806
- prop: 'maxWidth',
14807
- transform: transform
14808
- });
14809
- var minWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14810
- prop: 'minWidth',
14811
- transform: transform
14812
- });
14813
- var height = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14814
- prop: 'height',
14815
- transform: transform
14816
- });
14817
- var maxHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14818
- prop: 'maxHeight',
14819
- transform: transform
14820
- });
14821
- var minHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14822
- prop: 'minHeight',
14823
- transform: transform
14824
- });
14825
- var sizeWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14826
- prop: 'size',
14827
- cssProperty: 'width',
14828
- transform: transform
14829
- });
14830
- var sizeHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14831
- prop: 'size',
14832
- cssProperty: 'height',
14833
- transform: transform
14834
- });
14835
- var boxSizing = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14836
- prop: 'boxSizing'
14837
- });
14838
- var sizing = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
14839
- /* harmony default export */ __webpack_exports__["a"] = (sizing);
14840
-
14841
- /***/ }),
14842
- /* 243 */
14843
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14844
-
14845
- "use strict";
14846
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createUnarySpacing;
14847
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(20);
14848
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(237);
14849
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(136);
14850
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__merge__ = __webpack_require__(91);
14851
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__memoize__ = __webpack_require__(501);
14852
-
14853
-
14854
-
14855
-
14856
-
14857
- var properties = {
14858
- m: 'margin',
14859
- p: 'padding'
14860
- };
14861
- var directions = {
14862
- t: 'Top',
14863
- r: 'Right',
14864
- b: 'Bottom',
14865
- l: 'Left',
14866
- x: ['Left', 'Right'],
14867
- y: ['Top', 'Bottom']
14868
- };
14869
- var aliases = {
14870
- marginX: 'mx',
14871
- marginY: 'my',
14872
- paddingX: 'px',
14873
- paddingY: 'py'
14874
- }; // memoize() impact:
14875
- // From 300,000 ops/sec
14876
- // To 350,000 ops/sec
14877
-
14878
- var getCssProperties = Object(__WEBPACK_IMPORTED_MODULE_4__memoize__["a" /* default */])(function (prop) {
14879
- // It's not a shorthand notation.
14880
- if (prop.length > 2) {
14881
- if (aliases[prop]) {
14882
- prop = aliases[prop];
14883
- } else {
14884
- return [prop];
14885
- }
14886
- }
14887
-
14888
- var _prop$split = prop.split(''),
14889
- _prop$split2 = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_prop$split, 2),
14890
- a = _prop$split2[0],
14891
- b = _prop$split2[1];
14892
-
14893
- var property = properties[a];
14894
- var direction = directions[b] || '';
14895
- return Array.isArray(direction) ? direction.map(function (dir) {
14896
- return property + dir;
14897
- }) : [property + direction];
14898
- });
14899
- var spacingKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
14900
- function createUnarySpacing(theme) {
14901
- var themeSpacing = theme.spacing || 8;
14902
-
14903
- if (typeof themeSpacing === 'number') {
14904
- return function (abs) {
14905
- if (process.env.NODE_ENV !== 'production') {
14906
- if (typeof abs !== 'number') {
14907
- console.error("Material-UI: Expected spacing argument to be a number, got ".concat(abs, "."));
14908
- }
14909
- }
14910
-
14911
- return themeSpacing * abs;
14912
- };
14913
- }
14914
-
14915
- if (Array.isArray(themeSpacing)) {
14916
- return function (abs) {
14917
- if (process.env.NODE_ENV !== 'production') {
14918
- if (abs > themeSpacing.length - 1) {
14919
- console.error(["Material-UI: The value provided (".concat(abs, ") overflows."), "The supported values are: ".concat(JSON.stringify(themeSpacing), "."), "".concat(abs, " > ").concat(themeSpacing.length - 1, ", you need to add the missing values.")].join('\n'));
14920
- }
14921
- }
14922
-
14923
- return themeSpacing[abs];
14924
- };
14925
- }
14926
-
14927
- if (typeof themeSpacing === 'function') {
14928
- return themeSpacing;
14929
- }
14930
-
14931
- if (process.env.NODE_ENV !== 'production') {
14932
- console.error(["Material-UI: The `theme.spacing` value (".concat(themeSpacing, ") is invalid."), 'It should be a number, an array or a function.'].join('\n'));
14933
- }
14934
-
14935
- return function () {
14936
- return undefined;
14937
- };
14938
- }
14939
-
14940
- function getValue(transformer, propValue) {
14941
- if (typeof propValue === 'string') {
14942
- return propValue;
14943
- }
14944
-
14945
- var abs = Math.abs(propValue);
14946
- var transformed = transformer(abs);
14947
-
14948
- if (propValue >= 0) {
14949
- return transformed;
14950
- }
14951
-
14952
- if (typeof transformed === 'number') {
14953
- return -transformed;
14954
- }
14955
-
14956
- return "-".concat(transformed);
14957
- }
14958
-
14959
- function getStyleFromPropValue(cssProperties, transformer) {
14960
- return function (propValue) {
14961
- return cssProperties.reduce(function (acc, cssProperty) {
14962
- acc[cssProperty] = getValue(transformer, propValue);
14963
- return acc;
14964
- }, {});
14965
- };
14966
- }
14967
-
14968
- function spacing(props) {
14969
- var theme = props.theme;
14970
- var transformer = createUnarySpacing(theme);
14971
- return Object.keys(props).map(function (prop) {
14972
- // Using a hash computation over an array iteration could be faster, but with only 28 items,
14973
- // it's doesn't worth the bundle size.
14974
- if (spacingKeys.indexOf(prop) === -1) {
14975
- return null;
14976
- }
14977
-
14978
- var cssProperties = getCssProperties(prop);
14979
- var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);
14980
- var propValue = props[prop];
14981
- return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
14982
- }).reduce(__WEBPACK_IMPORTED_MODULE_3__merge__["a" /* default */], {});
14983
- }
14984
-
14985
- spacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce(function (obj, key) {
14986
- obj[key] = __WEBPACK_IMPORTED_MODULE_1__responsivePropType__["a" /* default */];
14987
- return obj;
14988
- }, {}) : {};
14989
- spacing.filterProps = spacingKeys;
14990
- /* harmony default export */ __webpack_exports__["b"] = (spacing);
14991
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
14992
-
14993
- /***/ }),
14994
- /* 244 */
14995
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14996
-
14997
- "use strict";
14998
- /* harmony export (immutable) */ __webpack_exports__["a"] = _arrayWithHoles;
14999
- function _arrayWithHoles(arr) {
15000
- if (Array.isArray(arr)) return arr;
15001
- }
15002
-
15003
- /***/ }),
15004
- /* 245 */
15005
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15006
-
15007
- "use strict";
15008
- /* harmony export (immutable) */ __webpack_exports__["a"] = _nonIterableRest;
15009
- function _nonIterableRest() {
15010
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15011
- }
15012
-
15013
- /***/ }),
15014
- /* 246 */
15015
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15016
-
15017
- "use strict";
15018
- /* unused harmony export fontFamily */
15019
- /* unused harmony export fontSize */
15020
- /* unused harmony export fontStyle */
15021
- /* unused harmony export fontWeight */
15022
- /* unused harmony export letterSpacing */
15023
- /* unused harmony export lineHeight */
15024
- /* unused harmony export textAlign */
15025
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
15026
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
15027
-
15028
-
15029
- var fontFamily = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15030
- prop: 'fontFamily',
15031
- themeKey: 'typography'
15032
- });
15033
- var fontSize = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15034
- prop: 'fontSize',
15035
- themeKey: 'typography'
15036
- });
15037
- var fontStyle = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15038
- prop: 'fontStyle',
15039
- themeKey: 'typography'
15040
- });
15041
- var fontWeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15042
- prop: 'fontWeight',
15043
- themeKey: 'typography'
15044
- });
15045
- var letterSpacing = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15046
- prop: 'letterSpacing'
15047
- });
15048
- var lineHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15049
- prop: 'lineHeight'
15050
- });
15051
- var textAlign = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15052
- prop: 'textAlign'
15053
- });
15054
- var typography = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign);
15055
- /* harmony default export */ __webpack_exports__["a"] = (typography);
15056
-
15057
- /***/ }),
15058
- /* 247 */
15059
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15060
-
15061
- "use strict";
15062
- // We need to centralize the zIndex definitions as they work
15063
- // like global values in the browser.
15064
- var zIndex = {
15065
- mobileStepper: 1000,
15066
- speedDial: 1050,
15067
- appBar: 1100,
15068
- drawer: 1200,
15069
- modal: 1300,
15070
- snackbar: 1400,
15071
- tooltip: 1500
15072
- };
15073
- /* harmony default export */ __webpack_exports__["a"] = (zIndex);
15074
-
15075
- /***/ }),
15076
- /* 248 */
15077
- /***/ (function(module, exports, __webpack_require__) {
15078
-
15079
- var arrayLikeToArray = __webpack_require__(249);
15080
-
15081
- function _unsupportedIterableToArray(o, minLen) {
15082
- if (!o) return;
15083
- if (typeof o === "string") return arrayLikeToArray(o, minLen);
15084
- var n = Object.prototype.toString.call(o).slice(8, -1);
15085
- if (n === "Object" && o.constructor) n = o.constructor.name;
15086
- if (n === "Map" || n === "Set") return Array.from(o);
15087
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
15088
- }
15089
-
15090
- module.exports = _unsupportedIterableToArray;
15091
-
15092
- /***/ }),
15093
- /* 249 */
15094
- /***/ (function(module, exports) {
15095
-
15096
- function _arrayLikeToArray(arr, len) {
15097
- if (len == null || len > arr.length) len = arr.length;
15098
-
15099
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
15100
- arr2[i] = arr[i];
15101
- }
15102
-
15103
- return arr2;
15104
- }
15105
-
15106
- module.exports = _arrayLikeToArray;
15107
-
15108
- /***/ }),
15109
- /* 250 */
15110
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15111
-
15112
- "use strict";
15113
- function areInputsEqual(newInputs, lastInputs) {
15114
- if (newInputs.length !== lastInputs.length) {
15115
- return false;
15116
- }
15117
- for (var i = 0; i < newInputs.length; i++) {
15118
- if (newInputs[i] !== lastInputs[i]) {
15119
- return false;
15120
- }
15121
- }
15122
- return true;
15123
- }
15124
-
15125
- function memoizeOne(resultFn, isEqual) {
15126
- if (isEqual === void 0) { isEqual = areInputsEqual; }
15127
- var lastThis;
15128
- var lastArgs = [];
15129
- var lastResult;
15130
- var calledOnce = false;
15131
- function memoized() {
15132
- var newArgs = [];
15133
- for (var _i = 0; _i < arguments.length; _i++) {
15134
- newArgs[_i] = arguments[_i];
15135
- }
15136
- if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
15137
- return lastResult;
15138
- }
15139
- lastResult = resultFn.apply(this, newArgs);
15140
- calledOnce = true;
15141
- lastThis = this;
15142
- lastArgs = newArgs;
15143
- return lastResult;
15144
- }
15145
- return memoized;
15146
- }
15147
-
15148
- /* harmony default export */ __webpack_exports__["a"] = (memoizeOne);
15149
-
15150
-
15151
- /***/ }),
15152
- /* 251 */
15153
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15154
-
15155
- "use strict";
15156
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StyleSheet; });
15157
- /*
15158
-
15159
- Based off glamor's StyleSheet, thanks Sunil ❤️
15160
-
15161
- high performance StyleSheet for css-in-js systems
15162
-
15163
- - uses multiple style tags behind the scenes for millions of rules
15164
- - uses `insertRule` for appending in production for *much* faster performance
15165
-
15166
- // usage
15167
-
15168
- import { StyleSheet } from '@emotion/sheet'
15169
-
15170
- let styleSheet = new StyleSheet({ key: '', container: document.head })
15171
-
15172
- styleSheet.insert('#box { border: 1px solid red; }')
15173
- - appends a css rule into the stylesheet
15174
-
15175
- styleSheet.flush()
15176
- - empties the stylesheet of all its contents
15177
-
15178
- */
15179
- // $FlowFixMe
15180
- function sheetForTag(tag) {
15181
- if (tag.sheet) {
15182
- // $FlowFixMe
15183
- return tag.sheet;
15184
- } // this weirdness brought to you by firefox
15185
-
15186
- /* istanbul ignore next */
15187
-
15188
-
15189
- for (var i = 0; i < document.styleSheets.length; i++) {
15190
- if (document.styleSheets[i].ownerNode === tag) {
15191
- // $FlowFixMe
15192
- return document.styleSheets[i];
15193
- }
15194
- }
15195
- }
15196
-
15197
- function createStyleElement(options) {
15198
- var tag = document.createElement('style');
15199
- tag.setAttribute('data-emotion', options.key);
15200
-
15201
- if (options.nonce !== undefined) {
15202
- tag.setAttribute('nonce', options.nonce);
15203
- }
15204
-
15205
- tag.appendChild(document.createTextNode(''));
15206
- return tag;
15207
- }
15208
-
15209
- var StyleSheet =
15210
- /*#__PURE__*/
15211
- function () {
15212
- function StyleSheet(options) {
15213
- this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy;
15214
- this.tags = [];
15215
- this.ctr = 0;
15216
- this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
15217
-
15218
- this.key = options.key;
15219
- this.container = options.container;
15220
- this.before = null;
15221
- }
15222
-
15223
- var _proto = StyleSheet.prototype;
15224
-
15225
- _proto.insert = function insert(rule) {
15226
- // the max length is how many rules we have per style tag, it's 65000 in speedy mode
15227
- // it's 1 in dev because we insert source maps that map a single rule to a location
15228
- // and you can only have one source map per style tag
15229
- if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
15230
- var _tag = createStyleElement(this);
15231
-
15232
- var before;
15233
-
15234
- if (this.tags.length === 0) {
15235
- before = this.before;
15236
- } else {
15237
- before = this.tags[this.tags.length - 1].nextSibling;
15238
- }
15239
-
15240
- this.container.insertBefore(_tag, before);
15241
- this.tags.push(_tag);
15242
- }
15243
-
15244
- var tag = this.tags[this.tags.length - 1];
15245
-
15246
- if (this.isSpeedy) {
15247
- var sheet = sheetForTag(tag);
15248
-
15249
- try {
15250
- // this is a really hot path
15251
- // we check the second character first because having "i"
15252
- // as the second character will happen less often than
15253
- // having "@" as the first character
15254
- var isImportRule = rule.charCodeAt(1) === 105 && rule.charCodeAt(0) === 64; // this is the ultrafast version, works across browsers
15255
- // the big drawback is that the css won't be editable in devtools
15256
-
15257
- sheet.insertRule(rule, // we need to insert @import rules before anything else
15258
- // otherwise there will be an error
15259
- // technically this means that the @import rules will
15260
- // _usually_(not always since there could be multiple style tags)
15261
- // be the first ones in prod and generally later in dev
15262
- // this shouldn't really matter in the real world though
15263
- // @import is generally only used for font faces from google fonts and etc.
15264
- // so while this could be technically correct then it would be slower and larger
15265
- // for a tiny bit of correctness that won't matter in the real world
15266
- isImportRule ? 0 : sheet.cssRules.length);
15267
- } catch (e) {
15268
- if (process.env.NODE_ENV !== 'production') {
15269
- console.warn("There was a problem inserting the following rule: \"" + rule + "\"", e);
15270
- }
15271
- }
15272
- } else {
15273
- tag.appendChild(document.createTextNode(rule));
15274
- }
15275
-
15276
- this.ctr++;
15277
- };
15278
-
15279
- _proto.flush = function flush() {
15280
- // $FlowFixMe
15281
- this.tags.forEach(function (tag) {
15282
- return tag.parentNode.removeChild(tag);
15283
- });
15284
- this.tags = [];
15285
- this.ctr = 0;
15286
- };
15287
-
15288
- return StyleSheet;
15289
- }();
15290
-
15291
-
15292
-
15293
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
15294
-
15295
- /***/ }),
15296
- /* 252 */
15297
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15298
-
15299
- "use strict";
15300
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CacheProvider; });
15301
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Emotion; });
15302
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ThemeContext; });
15303
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createEmotionProps; });
15304
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return hasOwnProperty; });
15305
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return withEmotionCache; });
15306
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__ = __webpack_require__(518);
15307
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__);
15308
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
15309
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
15310
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(138);
15311
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_utils__ = __webpack_require__(253);
15312
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__ = __webpack_require__(139);
15313
-
15314
-
15315
-
15316
-
15317
-
15318
-
15319
- var hasOwnProperty = Object.prototype.hasOwnProperty;
15320
-
15321
- var EmotionCacheContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])( // we're doing this to avoid preconstruct's dead code elimination in this one case
15322
- // because this module is primarily intended for the browser and node
15323
- // but it's also required in react native and similar environments sometimes
15324
- // and we could have a special build just for that
15325
- // but this is much easier and the native packages
15326
- // might use a different theme context in the future anyway
15327
- typeof HTMLElement !== 'undefined' ? Object(__WEBPACK_IMPORTED_MODULE_2__emotion_cache__["a" /* default */])() : null);
15328
- var ThemeContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])({});
15329
- var CacheProvider = EmotionCacheContext.Provider;
15330
-
15331
- var withEmotionCache = function withEmotionCache(func) {
15332
- var render = function render(props, ref) {
15333
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(EmotionCacheContext.Consumer, null, function (cache) {
15334
- return func(props, cache, ref);
15335
- });
15336
- }; // $FlowFixMe
15337
-
15338
-
15339
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["forwardRef"])(render);
15340
- };
15341
-
15342
- // thus we only need to replace what is a valid character for JS, but not for CSS
15343
-
15344
- var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
15345
- return identifier.replace(/\$/g, '-');
15346
- };
15347
-
15348
- var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
15349
- var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
15350
- var createEmotionProps = function createEmotionProps(type, props) {
15351
- if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration
15352
- props.css.indexOf(':') !== -1) {
15353
- throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/css' like this: css`" + props.css + "`");
15354
- }
15355
-
15356
- var newProps = {};
15357
-
15358
- for (var key in props) {
15359
- if (hasOwnProperty.call(props, key)) {
15360
- newProps[key] = props[key];
15361
- }
15362
- }
15363
-
15364
- newProps[typePropName] = type; // TODO: check if this still works with all of those different JSX functions
15365
-
15366
- if (process.env.NODE_ENV !== 'production') {
15367
- var error = new Error();
15368
-
15369
- if (error.stack) {
15370
- // chrome
15371
- var match = error.stack.match(/at (?:Object\.|Module\.|)(?:jsx|createEmotionProps).*\n\s+at (?:Object\.|)([A-Z][A-Za-z$]+) /);
15372
-
15373
- if (!match) {
15374
- // safari and firefox
15375
- match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/);
15376
- }
15377
-
15378
- if (match) {
15379
- newProps[labelPropName] = sanitizeIdentifier(match[1]);
15380
- }
15381
- }
15382
- }
15383
-
15384
- return newProps;
15385
- };
15386
-
15387
- var render = function render(cache, props, theme, ref) {
15388
- var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works
15389
- // not passing the registered cache to serializeStyles because it would
15390
- // make certain babel optimisations not possible
15391
-
15392
- if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
15393
- cssProp = cache.registered[cssProp];
15394
- }
15395
-
15396
- var type = props[typePropName];
15397
- var registeredStyles = [cssProp];
15398
- var className = '';
15399
-
15400
- if (typeof props.className === 'string') {
15401
- className = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */])(cache.registered, registeredStyles, props.className);
15402
- } else if (props.className != null) {
15403
- className = props.className + " ";
15404
- }
15405
-
15406
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])(registeredStyles);
15407
-
15408
- if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
15409
- var labelFromStack = props[labelPropName];
15410
-
15411
- if (labelFromStack) {
15412
- serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])([serialized, 'label:' + labelFromStack + ';']);
15413
- }
15414
- }
15415
-
15416
- var rules = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */])(cache, serialized, typeof type === 'string');
15417
- className += cache.key + "-" + serialized.name;
15418
- var newProps = {};
15419
-
15420
- for (var key in props) {
15421
- if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
15422
- newProps[key] = props[key];
15423
- }
15424
- }
15425
-
15426
- newProps.ref = ref;
15427
- newProps.className = className;
15428
- var ele = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(type, newProps);
15429
-
15430
- return ele;
15431
- }; // eslint-disable-next-line no-undef
15432
-
15433
-
15434
- var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
15435
- if (typeof props.css === 'function') {
15436
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(ThemeContext.Consumer, null, function (theme) {
15437
- return render(cache, props, theme, ref);
15438
- });
15439
- }
15440
-
15441
- return render(cache, props, null, ref);
15442
- });
15443
-
15444
- if (process.env.NODE_ENV !== 'production') {
15445
- Emotion.displayName = 'EmotionCssPropInternal';
15446
- }
15447
-
15448
-
15449
-
15450
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
15451
-
15452
- /***/ }),
15453
- /* 253 */
15454
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15455
-
15456
- "use strict";
15457
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getRegisteredStyles; });
15458
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return insertStyles; });
15459
- var isBrowser = "object" !== 'undefined';
15460
- function getRegisteredStyles(registered, registeredStyles, classNames) {
15461
- var rawClassName = '';
15462
- classNames.split(' ').forEach(function (className) {
15463
- if (registered[className] !== undefined) {
15464
- registeredStyles.push(registered[className]);
15465
- } else {
15466
- rawClassName += className + " ";
15467
- }
15468
- });
15469
- return rawClassName;
15470
- }
15471
- var insertStyles = function insertStyles(cache, serialized, isStringTag) {
15472
- var className = cache.key + "-" + serialized.name;
15473
-
15474
- if ( // we only need to add the styles to the registered cache if the
15475
- // class name could be used further down
15476
- // the tree but if it's a string tag, we know it won't
15477
- // so we don't have to add it to registered cache.
15478
- // this improves memory usage since we can avoid storing the whole style string
15479
- (isStringTag === false || // we need to always store it if we're in compat mode and
15480
- // in node since emotion-server relies on whether a style is in
15481
- // the registered cache to know whether a style is global or not
15482
- // also, note that this check will be dead code eliminated in the browser
15483
- isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
15484
- cache.registered[className] = serialized.styles;
15485
- }
15486
-
15487
- if (cache.inserted[serialized.name] === undefined) {
15488
- var current = serialized;
15489
-
15490
- do {
15491
- var maybeStyles = cache.insert("." + className, current, cache.sheet, true);
15492
-
15493
- current = current.next;
15494
- } while (current !== undefined);
15495
- }
15496
- };
15497
-
15498
-
15499
-
15500
-
15501
- /***/ }),
15502
- /* 254 */
15503
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15504
-
15505
- "use strict";
15506
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return exportedEqual; });
15507
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cleanValue; });
15508
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return scrollIntoView; });
15509
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return classNames; });
15510
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return noop; });
15511
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return components; });
15512
- /* unused harmony export G */
15513
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return MenuPlacer; });
15514
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return containerCSS; });
15515
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return css; });
15516
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return clearIndicatorCSS; });
15517
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return dropdownIndicatorCSS; });
15518
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return groupHeadingCSS; });
15519
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return indicatorSeparatorCSS; });
15520
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return groupCSS; });
15521
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return inputCSS; });
15522
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return indicatorsContainerCSS; });
15523
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return loadingMessageCSS; });
15524
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return menuListCSS; });
15525
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return loadingIndicatorCSS; });
15526
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return menuCSS; });
15527
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return menuPortalCSS; });
15528
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return multiValueCSS; });
15529
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return multiValueLabelCSS; });
15530
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return multiValueRemoveCSS; });
15531
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return noOptionsMessageCSS; });
15532
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return optionCSS; });
15533
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return placeholderCSS; });
15534
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return css$1; });
15535
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return valueContainerCSS; });
15536
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isTouchCapable; });
15537
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return isMobileDevice; });
15538
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return defaultComponents; });
15539
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isDocumentElement; });
15540
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
15541
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
15542
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(15);
15543
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(50);
15544
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__ = __webpack_require__(45);
15545
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__ = __webpack_require__(73);
15546
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(74);
15547
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(75);
15548
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(0);
15549
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__);
15550
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__emotion_core__ = __webpack_require__(137);
15551
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom__ = __webpack_require__(11);
15552
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_dom__);
15553
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__ = __webpack_require__(44);
15554
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__emotion_css__ = __webpack_require__(76);
15555
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__babel_runtime_helpers_esm_taggedTemplateLiteral__ = __webpack_require__(523);
15556
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_input_autosize__ = __webpack_require__(255);
15557
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_input_autosize__);
15558
-
15559
-
15560
-
15561
-
15562
-
15563
-
15564
-
15565
-
15566
-
15567
-
15568
-
15569
-
15570
-
15571
-
15572
-
15573
-
15574
- // ==============================
15575
- // NO OP
15576
- // ==============================
15577
- var noop = function noop() {};
15578
- // Class Name Prefixer
15579
- // ==============================
15580
-
15581
- /**
15582
- String representation of component state for styling with class names.
15583
-
15584
- Expects an array of strings OR a string/object pair:
15585
- - className(['comp', 'comp-arg', 'comp-arg-2'])
15586
- @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
15587
- - className('comp', { some: true, state: false })
15588
- @returns 'react-select__comp react-select__comp--some'
15589
- */
15590
-
15591
- function applyPrefixToName(prefix, name) {
15592
- if (!name) {
15593
- return prefix;
15594
- } else if (name[0] === '-') {
15595
- return prefix + name;
15596
- } else {
15597
- return prefix + '__' + name;
15598
- }
15599
- }
15600
-
15601
- function classNames(prefix, state, className) {
15602
- var arr = [className];
15603
-
15604
- if (state && prefix) {
15605
- for (var key in state) {
15606
- if (state.hasOwnProperty(key) && state[key]) {
15607
- arr.push("".concat(applyPrefixToName(prefix, key)));
15608
- }
15609
- }
15610
- }
15611
-
15612
- return arr.filter(function (i) {
15613
- return i;
15614
- }).map(function (i) {
15615
- return String(i).trim();
15616
- }).join(' ');
15617
- } // ==============================
15618
- // Clean Value
15619
- // ==============================
15620
-
15621
- var cleanValue = function cleanValue(value) {
15622
- if (Array.isArray(value)) return value.filter(Boolean);
15623
- if (Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(value) === 'object' && value !== null) return [value];
15624
- return [];
15625
- }; // ==============================
15626
- // Handle Input Change
15627
- // ==============================
15628
-
15629
- function handleInputChange(inputValue, actionMeta, onInputChange) {
15630
- if (onInputChange) {
15631
- var newValue = onInputChange(inputValue, actionMeta);
15632
- if (typeof newValue === 'string') return newValue;
15633
- }
15634
-
15635
- return inputValue;
15636
- } // ==============================
15637
- // Scroll Helpers
15638
- // ==============================
15639
-
15640
- function isDocumentElement(el) {
15641
- return [document.documentElement, document.body, window].indexOf(el) > -1;
15642
- } // Normalized Scroll Top
15643
- // ------------------------------
15644
-
15645
- function getScrollTop(el) {
15646
- if (isDocumentElement(el)) {
15647
- return window.pageYOffset;
15648
- }
15649
-
15650
- return el.scrollTop;
15651
- }
15652
- function scrollTo(el, top) {
15653
- // with a scroll distance, we perform scroll on the element
15654
- if (isDocumentElement(el)) {
15655
- window.scrollTo(0, top);
15656
- return;
15657
- }
15658
-
15659
- el.scrollTop = top;
15660
- } // Get Scroll Parent
15661
- // ------------------------------
15662
-
15663
- function getScrollParent(element) {
15664
- var style = getComputedStyle(element);
15665
- var excludeStaticParent = style.position === 'absolute';
15666
- var overflowRx = /(auto|scroll)/;
15667
- var docEl = document.documentElement; // suck it, flow...
15668
-
15669
- if (style.position === 'fixed') return docEl;
15670
-
15671
- for (var parent = element; parent = parent.parentElement;) {
15672
- style = getComputedStyle(parent);
15673
-
15674
- if (excludeStaticParent && style.position === 'static') {
15675
- continue;
15676
- }
15677
-
15678
- if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {
15679
- return parent;
15680
- }
15681
- }
15682
-
15683
- return docEl;
15684
- } // Animated Scroll To
15685
- // ------------------------------
15686
-
15687
- /**
15688
- @param t: time (elapsed)
15689
- @param b: initial value
15690
- @param c: amount of change
15691
- @param d: duration
15692
- */
15693
-
15694
- function easeOutCubic(t, b, c, d) {
15695
- return c * ((t = t / d - 1) * t * t + 1) + b;
15696
- }
15697
-
15698
- function animatedScrollTo(element, to) {
15699
- var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200;
15700
- var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop;
15701
- var start = getScrollTop(element);
15702
- var change = to - start;
15703
- var increment = 10;
15704
- var currentTime = 0;
15705
-
15706
- function animateScroll() {
15707
- currentTime += increment;
15708
- var val = easeOutCubic(currentTime, start, change, duration);
15709
- scrollTo(element, val);
15710
-
15711
- if (currentTime < duration) {
15712
- window.requestAnimationFrame(animateScroll);
15713
- } else {
15714
- callback(element);
15715
- }
15716
- }
15717
-
15718
- animateScroll();
15719
- } // Scroll Into View
15720
- // ------------------------------
15721
-
15722
- function scrollIntoView(menuEl, focusedEl) {
15723
- var menuRect = menuEl.getBoundingClientRect();
15724
- var focusedRect = focusedEl.getBoundingClientRect();
15725
- var overScroll = focusedEl.offsetHeight / 3;
15726
-
15727
- if (focusedRect.bottom + overScroll > menuRect.bottom) {
15728
- scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
15729
- } else if (focusedRect.top - overScroll < menuRect.top) {
15730
- scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
15731
- }
15732
- } // ==============================
15733
- // Get bounding client object
15734
- // ==============================
15735
- // cannot get keys using array notation with DOMRect
15736
-
15737
- function getBoundingClientObj(element) {
15738
- var rect = element.getBoundingClientRect();
15739
- return {
15740
- bottom: rect.bottom,
15741
- height: rect.height,
15742
- left: rect.left,
15743
- right: rect.right,
15744
- top: rect.top,
15745
- width: rect.width
15746
- };
15747
- }
15748
- // Touch Capability Detector
15749
- // ==============================
15750
-
15751
- function isTouchCapable() {
15752
- try {
15753
- document.createEvent('TouchEvent');
15754
- return true;
15755
- } catch (e) {
15756
- return false;
15757
- }
15758
- } // ==============================
15759
- // Mobile Device Detector
15760
- // ==============================
15761
-
15762
- function isMobileDevice() {
15763
- try {
15764
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
15765
- } catch (e) {
15766
- return false;
15767
- }
15768
- }
15769
-
15770
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
15771
-
15772
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15773
-
15774
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
15775
-
15776
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
15777
- function getMenuPlacement(_ref) {
15778
- var maxHeight = _ref.maxHeight,
15779
- menuEl = _ref.menuEl,
15780
- minHeight = _ref.minHeight,
15781
- placement = _ref.placement,
15782
- shouldScroll = _ref.shouldScroll,
15783
- isFixedPosition = _ref.isFixedPosition,
15784
- theme = _ref.theme;
15785
- var spacing = theme.spacing;
15786
- var scrollParent = getScrollParent(menuEl);
15787
- var defaultState = {
15788
- placement: 'bottom',
15789
- maxHeight: maxHeight
15790
- }; // something went wrong, return default state
15791
-
15792
- if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when
15793
- // the menu is rendered
15794
-
15795
- var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),
15796
- scrollHeight = _scrollParent$getBoun.height;
15797
-
15798
- var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),
15799
- menuBottom = _menuEl$getBoundingCl.bottom,
15800
- menuHeight = _menuEl$getBoundingCl.height,
15801
- menuTop = _menuEl$getBoundingCl.top;
15802
-
15803
- var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),
15804
- containerTop = _menuEl$offsetParent$.top;
15805
-
15806
- var viewHeight = window.innerHeight;
15807
- var scrollTop = getScrollTop(scrollParent);
15808
- var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
15809
- var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
15810
- var viewSpaceAbove = containerTop - marginTop;
15811
- var viewSpaceBelow = viewHeight - menuTop;
15812
- var scrollSpaceAbove = viewSpaceAbove + scrollTop;
15813
- var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
15814
- var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
15815
- var scrollUp = scrollTop + menuTop - marginTop;
15816
- var scrollDuration = 160;
15817
-
15818
- switch (placement) {
15819
- case 'auto':
15820
- case 'bottom':
15821
- // 1: the menu will fit, do nothing
15822
- if (viewSpaceBelow >= menuHeight) {
15823
- return {
15824
- placement: 'bottom',
15825
- maxHeight: maxHeight
15826
- };
15827
- } // 2: the menu will fit, if scrolled
15828
-
15829
-
15830
- if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
15831
- if (shouldScroll) {
15832
- animatedScrollTo(scrollParent, scrollDown, scrollDuration);
15833
- }
15834
-
15835
- return {
15836
- placement: 'bottom',
15837
- maxHeight: maxHeight
15838
- };
15839
- } // 3: the menu will fit, if constrained
15840
-
15841
-
15842
- if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
15843
- if (shouldScroll) {
15844
- animatedScrollTo(scrollParent, scrollDown, scrollDuration);
15845
- } // we want to provide as much of the menu as possible to the user,
15846
- // so give them whatever is available below rather than the minHeight.
15847
-
15848
-
15849
- var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;
15850
- return {
15851
- placement: 'bottom',
15852
- maxHeight: constrainedHeight
15853
- };
15854
- } // 4. Forked beviour when there isn't enough space below
15855
- // AUTO: flip the menu, render above
15856
-
15857
-
15858
- if (placement === 'auto' || isFixedPosition) {
15859
- // may need to be constrained after flipping
15860
- var _constrainedHeight = maxHeight;
15861
- var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;
15862
-
15863
- if (spaceAbove >= minHeight) {
15864
- _constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight);
15865
- }
15866
-
15867
- return {
15868
- placement: 'top',
15869
- maxHeight: _constrainedHeight
15870
- };
15871
- } // BOTTOM: allow browser to increase scrollable area and immediately set scroll
15872
-
15873
-
15874
- if (placement === 'bottom') {
15875
- scrollTo(scrollParent, scrollDown);
15876
- return {
15877
- placement: 'bottom',
15878
- maxHeight: maxHeight
15879
- };
15880
- }
15881
-
15882
- break;
15883
-
15884
- case 'top':
15885
- // 1: the menu will fit, do nothing
15886
- if (viewSpaceAbove >= menuHeight) {
15887
- return {
15888
- placement: 'top',
15889
- maxHeight: maxHeight
15890
- };
15891
- } // 2: the menu will fit, if scrolled
15892
-
15893
-
15894
- if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {
15895
- if (shouldScroll) {
15896
- animatedScrollTo(scrollParent, scrollUp, scrollDuration);
15897
- }
15898
-
15899
- return {
15900
- placement: 'top',
15901
- maxHeight: maxHeight
15902
- };
15903
- } // 3: the menu will fit, if constrained
15904
-
15905
-
15906
- if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
15907
- var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user,
15908
- // so give them whatever is available below rather than the minHeight.
15909
-
15910
- if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
15911
- _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;
15912
- }
15913
-
15914
- if (shouldScroll) {
15915
- animatedScrollTo(scrollParent, scrollUp, scrollDuration);
15916
- }
15917
-
15918
- return {
15919
- placement: 'top',
15920
- maxHeight: _constrainedHeight2
15921
- };
15922
- } // 4. not enough space, the browser WILL NOT increase scrollable area when
15923
- // absolutely positioned element rendered above the viewport (only below).
15924
- // Flip the menu, render below
15925
-
15926
-
15927
- return {
15928
- placement: 'bottom',
15929
- maxHeight: maxHeight
15930
- };
15931
-
15932
- default:
15933
- throw new Error("Invalid placement provided \"".concat(placement, "\"."));
15934
- } // fulfil contract with flow: implicit return value of undefined
15935
-
15936
-
15937
- return defaultState;
15938
- } // Menu Component
15939
- // ------------------------------
15940
-
15941
- function alignToControl(placement) {
15942
- var placementToCSSProp = {
15943
- bottom: 'top',
15944
- top: 'bottom'
15945
- };
15946
- return placement ? placementToCSSProp[placement] : 'bottom';
15947
- }
15948
-
15949
- var coercePlacement = function coercePlacement(p) {
15950
- return p === 'auto' ? 'bottom' : p;
15951
- };
15952
-
15953
- var menuCSS = function menuCSS(_ref2) {
15954
- var _ref3;
15955
-
15956
- var placement = _ref2.placement,
15957
- _ref2$theme = _ref2.theme,
15958
- borderRadius = _ref2$theme.borderRadius,
15959
- spacing = _ref2$theme.spacing,
15960
- colors = _ref2$theme.colors;
15961
- return _ref3 = {
15962
- label: 'menu'
15963
- }, Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, alignToControl(placement), '100%'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "backgroundColor", colors.neutral0), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "borderRadius", borderRadius), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "boxShadow", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "marginBottom", spacing.menuGutter), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "marginTop", spacing.menuGutter), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "position", 'absolute'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "width", '100%'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "zIndex", 1), _ref3;
15964
- };
15965
- var PortalPlacementContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_8_react__["createContext"])({
15966
- getPortalPlacement: null
15967
- }); // NOTE: internal only
15968
-
15969
- var MenuPlacer = /*#__PURE__*/function (_Component) {
15970
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__["a" /* default */])(MenuPlacer, _Component);
15971
-
15972
- var _super = _createSuper(MenuPlacer);
15973
-
15974
- function MenuPlacer() {
15975
- var _this;
15976
-
15977
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, MenuPlacer);
15978
-
15979
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15980
- args[_key] = arguments[_key];
15981
- }
15982
-
15983
- _this = _super.call.apply(_super, [this].concat(args));
15984
- _this.state = {
15985
- maxHeight: _this.props.maxMenuHeight,
15986
- placement: null
15987
- };
15988
-
15989
- _this.getPlacement = function (ref) {
15990
- var _this$props = _this.props,
15991
- minMenuHeight = _this$props.minMenuHeight,
15992
- maxMenuHeight = _this$props.maxMenuHeight,
15993
- menuPlacement = _this$props.menuPlacement,
15994
- menuPosition = _this$props.menuPosition,
15995
- menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView,
15996
- theme = _this$props.theme;
15997
- if (!ref) return; // DO NOT scroll if position is fixed
15998
-
15999
- var isFixedPosition = menuPosition === 'fixed';
16000
- var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;
16001
- var state = getMenuPlacement({
16002
- maxHeight: maxMenuHeight,
16003
- menuEl: ref,
16004
- minHeight: minMenuHeight,
16005
- placement: menuPlacement,
16006
- shouldScroll: shouldScroll,
16007
- isFixedPosition: isFixedPosition,
16008
- theme: theme
16009
- });
16010
- var getPortalPlacement = _this.context.getPortalPlacement;
16011
- if (getPortalPlacement) getPortalPlacement(state);
16012
-
16013
- _this.setState(state);
16014
- };
16015
-
16016
- _this.getUpdatedProps = function () {
16017
- var menuPlacement = _this.props.menuPlacement;
16018
- var placement = _this.state.placement || coercePlacement(menuPlacement);
16019
- return _objectSpread(_objectSpread({}, _this.props), {}, {
16020
- placement: placement,
16021
- maxHeight: _this.state.maxHeight
16022
- });
16023
- };
16024
-
16025
- return _this;
16026
- }
16027
-
16028
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__["a" /* default */])(MenuPlacer, [{
16029
- key: "render",
16030
- value: function render() {
16031
- var children = this.props.children;
16032
- return children({
16033
- ref: this.getPlacement,
16034
- placerProps: this.getUpdatedProps()
16035
- });
16036
- }
16037
- }]);
16038
-
16039
- return MenuPlacer;
16040
- }(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]);
16041
- MenuPlacer.contextType = PortalPlacementContext;
16042
-
16043
- var Menu = function Menu(props) {
16044
- var children = props.children,
16045
- className = props.className,
16046
- cx = props.cx,
16047
- getStyles = props.getStyles,
16048
- innerRef = props.innerRef,
16049
- innerProps = props.innerProps;
16050
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16051
- css: getStyles('menu', props),
16052
- className: cx({
16053
- menu: true
16054
- }, className)
16055
- }, innerProps, {
16056
- ref: innerRef
16057
- }), children);
16058
- };
16059
- // Menu List
16060
- // ==============================
16061
-
16062
- var menuListCSS = function menuListCSS(_ref4) {
16063
- var maxHeight = _ref4.maxHeight,
16064
- baseUnit = _ref4.theme.spacing.baseUnit;
16065
- return {
16066
- maxHeight: maxHeight,
16067
- overflowY: 'auto',
16068
- paddingBottom: baseUnit,
16069
- paddingTop: baseUnit,
16070
- position: 'relative',
16071
- // required for offset[Height, Top] > keyboard scroll
16072
- WebkitOverflowScrolling: 'touch'
16073
- };
16074
- };
16075
- var MenuList = function MenuList(props) {
16076
- var children = props.children,
16077
- className = props.className,
16078
- cx = props.cx,
16079
- getStyles = props.getStyles,
16080
- isMulti = props.isMulti,
16081
- innerRef = props.innerRef;
16082
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16083
- css: getStyles('menuList', props),
16084
- className: cx({
16085
- 'menu-list': true,
16086
- 'menu-list--is-multi': isMulti
16087
- }, className),
16088
- ref: innerRef
16089
- }, children);
16090
- }; // ==============================
16091
- // Menu Notices
16092
- // ==============================
16093
-
16094
- var noticeCSS = function noticeCSS(_ref5) {
16095
- var _ref5$theme = _ref5.theme,
16096
- baseUnit = _ref5$theme.spacing.baseUnit,
16097
- colors = _ref5$theme.colors;
16098
- return {
16099
- color: colors.neutral40,
16100
- padding: "".concat(baseUnit * 2, "px ").concat(baseUnit * 3, "px"),
16101
- textAlign: 'center'
16102
- };
16103
- };
16104
-
16105
- var noOptionsMessageCSS = noticeCSS;
16106
- var loadingMessageCSS = noticeCSS;
16107
- var NoOptionsMessage = function NoOptionsMessage(props) {
16108
- var children = props.children,
16109
- className = props.className,
16110
- cx = props.cx,
16111
- getStyles = props.getStyles,
16112
- innerProps = props.innerProps;
16113
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16114
- css: getStyles('noOptionsMessage', props),
16115
- className: cx({
16116
- 'menu-notice': true,
16117
- 'menu-notice--no-options': true
16118
- }, className)
16119
- }, innerProps), children);
16120
- };
16121
- NoOptionsMessage.defaultProps = {
16122
- children: 'No options'
16123
- };
16124
- var LoadingMessage = function LoadingMessage(props) {
16125
- var children = props.children,
16126
- className = props.className,
16127
- cx = props.cx,
16128
- getStyles = props.getStyles,
16129
- innerProps = props.innerProps;
16130
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16131
- css: getStyles('loadingMessage', props),
16132
- className: cx({
16133
- 'menu-notice': true,
16134
- 'menu-notice--loading': true
16135
- }, className)
16136
- }, innerProps), children);
16137
- };
16138
- LoadingMessage.defaultProps = {
16139
- children: 'Loading...'
16140
- }; // ==============================
16141
- // Menu Portal
16142
- // ==============================
16143
-
16144
- var menuPortalCSS = function menuPortalCSS(_ref6) {
16145
- var rect = _ref6.rect,
16146
- offset = _ref6.offset,
16147
- position = _ref6.position;
16148
- return {
16149
- left: rect.left,
16150
- position: position,
16151
- top: offset,
16152
- width: rect.width,
16153
- zIndex: 1
16154
- };
16155
- };
16156
- var MenuPortal = /*#__PURE__*/function (_Component2) {
16157
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__["a" /* default */])(MenuPortal, _Component2);
16158
-
16159
- var _super2 = _createSuper(MenuPortal);
16160
-
16161
- function MenuPortal() {
16162
- var _this2;
16163
-
16164
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, MenuPortal);
16165
-
16166
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
16167
- args[_key2] = arguments[_key2];
16168
- }
16169
-
16170
- _this2 = _super2.call.apply(_super2, [this].concat(args));
16171
- _this2.state = {
16172
- placement: null
16173
- };
16174
-
16175
- _this2.getPortalPlacement = function (_ref7) {
16176
- var placement = _ref7.placement;
16177
- var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed
16178
-
16179
- if (placement !== initialPlacement) {
16180
- _this2.setState({
16181
- placement: placement
16182
- });
16183
- }
16184
- };
16185
-
16186
- return _this2;
16187
- }
16188
-
16189
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__["a" /* default */])(MenuPortal, [{
16190
- key: "render",
16191
- value: function render() {
16192
- var _this$props2 = this.props,
16193
- appendTo = _this$props2.appendTo,
16194
- children = _this$props2.children,
16195
- controlElement = _this$props2.controlElement,
16196
- menuPlacement = _this$props2.menuPlacement,
16197
- position = _this$props2.menuPosition,
16198
- getStyles = _this$props2.getStyles;
16199
- var isFixed = position === 'fixed'; // bail early if required elements aren't present
16200
-
16201
- if (!appendTo && !isFixed || !controlElement) {
16202
- return null;
16203
- }
16204
-
16205
- var placement = this.state.placement || coercePlacement(menuPlacement);
16206
- var rect = getBoundingClientObj(controlElement);
16207
- var scrollDistance = isFixed ? 0 : window.pageYOffset;
16208
- var offset = rect[placement] + scrollDistance;
16209
- var state = {
16210
- offset: offset,
16211
- position: position,
16212
- rect: rect
16213
- }; // same wrapper element whether fixed or portalled
16214
-
16215
- var menuWrapper = Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16216
- css: getStyles('menuPortal', state)
16217
- }, children);
16218
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(PortalPlacementContext.Provider, {
16219
- value: {
16220
- getPortalPlacement: this.getPortalPlacement
16221
- }
16222
- }, appendTo ? /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_10_react_dom__["createPortal"])(menuWrapper, appendTo) : menuWrapper);
16223
- }
16224
- }]);
16225
-
16226
- return MenuPortal;
16227
- }(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]);
16228
-
16229
- var isArray = Array.isArray;
16230
- var keyList = Object.keys;
16231
- var hasProp = Object.prototype.hasOwnProperty;
16232
-
16233
- function equal(a, b) {
16234
- // fast-deep-equal index.js 2.0.1
16235
- if (a === b) return true;
16236
-
16237
- if (a && b && Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(a) == 'object' && Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(b) == 'object') {
16238
- var arrA = isArray(a),
16239
- arrB = isArray(b),
16240
- i,
16241
- length,
16242
- key;
16243
-
16244
- if (arrA && arrB) {
16245
- length = a.length;
16246
- if (length != b.length) return false;
16247
-
16248
- for (i = length; i-- !== 0;) {
16249
- if (!equal(a[i], b[i])) return false;
16250
- }
16251
-
16252
- return true;
16253
- }
16254
-
16255
- if (arrA != arrB) return false;
16256
- var dateA = a instanceof Date,
16257
- dateB = b instanceof Date;
16258
- if (dateA != dateB) return false;
16259
- if (dateA && dateB) return a.getTime() == b.getTime();
16260
- var regexpA = a instanceof RegExp,
16261
- regexpB = b instanceof RegExp;
16262
- if (regexpA != regexpB) return false;
16263
- if (regexpA && regexpB) return a.toString() == b.toString();
16264
- var keys = keyList(a);
16265
- length = keys.length;
16266
-
16267
- if (length !== keyList(b).length) {
16268
- return false;
16269
- }
16270
-
16271
- for (i = length; i-- !== 0;) {
16272
- if (!hasProp.call(b, keys[i])) return false;
16273
- } // end fast-deep-equal
16274
- // Custom handling for React
16275
-
16276
-
16277
- for (i = length; i-- !== 0;) {
16278
- key = keys[i];
16279
-
16280
- if (key === '_owner' && a.$$typeof) {
16281
- // React-specific: avoid traversing React elements' _owner.
16282
- // _owner contains circular references
16283
- // and is not needed when comparing the actual elements (and not their owners)
16284
- // .$$typeof and ._store on just reasonable markers of a react element
16285
- continue;
16286
- } else {
16287
- // all other properties should be traversed as usual
16288
- if (!equal(a[key], b[key])) return false;
16289
- }
16290
- } // fast-deep-equal index.js 2.0.1
16291
-
16292
-
16293
- return true;
16294
- }
16295
-
16296
- return a !== a && b !== b;
16297
- } // end fast-deep-equal
16298
-
16299
-
16300
- function exportedEqual(a, b) {
16301
- try {
16302
- return equal(a, b);
16303
- } catch (error) {
16304
- if (error.message && error.message.match(/stack|recursion/i)) {
16305
- // warn on circular references, don't crash
16306
- // browsers give this different errors name and messages:
16307
- // chrome/safari: "RangeError", "Maximum call stack size exceeded"
16308
- // firefox: "InternalError", too much recursion"
16309
- // edge: "Error", "Out of stack space"
16310
- console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
16311
- return false;
16312
- } // some other error. we should definitely know about these
16313
-
16314
-
16315
- throw error;
16316
- }
16317
- }
16318
-
16319
- var containerCSS = function containerCSS(_ref) {
16320
- var isDisabled = _ref.isDisabled,
16321
- isRtl = _ref.isRtl;
16322
- return {
16323
- label: 'container',
16324
- direction: isRtl ? 'rtl' : null,
16325
- pointerEvents: isDisabled ? 'none' : null,
16326
- // cancel mouse events when disabled
16327
- position: 'relative'
16328
- };
16329
- };
16330
- var SelectContainer = function SelectContainer(props) {
16331
- var children = props.children,
16332
- className = props.className,
16333
- cx = props.cx,
16334
- getStyles = props.getStyles,
16335
- innerProps = props.innerProps,
16336
- isDisabled = props.isDisabled,
16337
- isRtl = props.isRtl;
16338
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16339
- css: getStyles('container', props),
16340
- className: cx({
16341
- '--is-disabled': isDisabled,
16342
- '--is-rtl': isRtl
16343
- }, className)
16344
- }, innerProps), children);
16345
- }; // ==============================
16346
- // Value Container
16347
- // ==============================
16348
-
16349
- var valueContainerCSS = function valueContainerCSS(_ref2) {
16350
- var spacing = _ref2.theme.spacing;
16351
- return {
16352
- alignItems: 'center',
16353
- display: 'flex',
16354
- flex: 1,
16355
- flexWrap: 'wrap',
16356
- padding: "".concat(spacing.baseUnit / 2, "px ").concat(spacing.baseUnit * 2, "px"),
16357
- WebkitOverflowScrolling: 'touch',
16358
- position: 'relative',
16359
- overflow: 'hidden'
16360
- };
16361
- };
16362
- var ValueContainer = function ValueContainer(props) {
16363
- var children = props.children,
16364
- className = props.className,
16365
- cx = props.cx,
16366
- isMulti = props.isMulti,
16367
- getStyles = props.getStyles,
16368
- hasValue = props.hasValue;
16369
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16370
- css: getStyles('valueContainer', props),
16371
- className: cx({
16372
- 'value-container': true,
16373
- 'value-container--is-multi': isMulti,
16374
- 'value-container--has-value': hasValue
16375
- }, className)
16376
- }, children);
16377
- }; // ==============================
16378
- // Indicator Container
16379
- // ==============================
16380
-
16381
- var indicatorsContainerCSS = function indicatorsContainerCSS() {
16382
- return {
16383
- alignItems: 'center',
16384
- alignSelf: 'stretch',
16385
- display: 'flex',
16386
- flexShrink: 0
16387
- };
16388
- };
16389
- var IndicatorsContainer = function IndicatorsContainer(props) {
16390
- var children = props.children,
16391
- className = props.className,
16392
- cx = props.cx,
16393
- getStyles = props.getStyles;
16394
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16395
- css: getStyles('indicatorsContainer', props),
16396
- className: cx({
16397
- indicators: true
16398
- }, className)
16399
- }, children);
16400
- };
16401
-
16402
- function _templateObject() {
16403
- var data = Object(__WEBPACK_IMPORTED_MODULE_13__babel_runtime_helpers_esm_taggedTemplateLiteral__["a" /* default */])(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);
16404
-
16405
- _templateObject = function _templateObject() {
16406
- return data;
16407
- };
16408
-
16409
- return data;
16410
- }
16411
-
16412
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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)."; }
16413
-
16414
- var _ref2 = process.env.NODE_ENV === "production" ? {
16415
- name: "19bqh2r",
16416
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"
16417
- } : {
16418
- name: "19bqh2r",
16419
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;",
16420
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */",
16421
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
16422
- };
16423
-
16424
- // ==============================
16425
- // Dropdown & Clear Icons
16426
- // ==============================
16427
- var Svg = function Svg(_ref) {
16428
- var size = _ref.size,
16429
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["size"]);
16430
-
16431
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("svg", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16432
- height: size,
16433
- width: size,
16434
- viewBox: "0 0 20 20",
16435
- "aria-hidden": "true",
16436
- focusable: "false",
16437
- css: _ref2
16438
- }, props));
16439
- };
16440
-
16441
- var CrossIcon = function CrossIcon(props) {
16442
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Svg, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16443
- size: 20
16444
- }, props), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("path", {
16445
- 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"
16446
- }));
16447
- };
16448
- var DownChevron = function DownChevron(props) {
16449
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Svg, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16450
- size: 20
16451
- }, props), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("path", {
16452
- 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"
16453
- }));
16454
- }; // ==============================
16455
- // Dropdown & Clear Buttons
16456
- // ==============================
16457
-
16458
- var baseCSS = function baseCSS(_ref3) {
16459
- var isFocused = _ref3.isFocused,
16460
- _ref3$theme = _ref3.theme,
16461
- baseUnit = _ref3$theme.spacing.baseUnit,
16462
- colors = _ref3$theme.colors;
16463
- return {
16464
- label: 'indicatorContainer',
16465
- color: isFocused ? colors.neutral60 : colors.neutral20,
16466
- display: 'flex',
16467
- padding: baseUnit * 2,
16468
- transition: 'color 150ms',
16469
- ':hover': {
16470
- color: isFocused ? colors.neutral80 : colors.neutral40
16471
- }
16472
- };
16473
- };
16474
-
16475
- var dropdownIndicatorCSS = baseCSS;
16476
- var DropdownIndicator = function DropdownIndicator(props) {
16477
- var children = props.children,
16478
- className = props.className,
16479
- cx = props.cx,
16480
- getStyles = props.getStyles,
16481
- innerProps = props.innerProps;
16482
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
16483
- css: getStyles('dropdownIndicator', props),
16484
- className: cx({
16485
- indicator: true,
16486
- 'dropdown-indicator': true
16487
- }, className)
16488
- }), children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(DownChevron, null));
16489
- };
16490
- var clearIndicatorCSS = baseCSS;
16491
- var ClearIndicator = function ClearIndicator(props) {
16492
- var children = props.children,
16493
- className = props.className,
16494
- cx = props.cx,
16495
- getStyles = props.getStyles,
16496
- innerProps = props.innerProps;
16497
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
16498
- css: getStyles('clearIndicator', props),
16499
- className: cx({
16500
- indicator: true,
16501
- 'clear-indicator': true
16502
- }, className)
16503
- }), children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(CrossIcon, null));
16504
- }; // ==============================
16505
- // Separator
16506
- // ==============================
16507
-
16508
- var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4) {
16509
- var isDisabled = _ref4.isDisabled,
16510
- _ref4$theme = _ref4.theme,
16511
- baseUnit = _ref4$theme.spacing.baseUnit,
16512
- colors = _ref4$theme.colors;
16513
- return {
16514
- label: 'indicatorSeparator',
16515
- alignSelf: 'stretch',
16516
- backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,
16517
- marginBottom: baseUnit * 2,
16518
- marginTop: baseUnit * 2,
16519
- width: 1
16520
- };
16521
- };
16522
- var IndicatorSeparator = function IndicatorSeparator(props) {
16523
- var className = props.className,
16524
- cx = props.cx,
16525
- getStyles = props.getStyles,
16526
- innerProps = props.innerProps;
16527
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("span", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
16528
- css: getStyles('indicatorSeparator', props),
16529
- className: cx({
16530
- 'indicator-separator': true
16531
- }, className)
16532
- }));
16533
- }; // ==============================
16534
- // Loading
16535
- // ==============================
16536
-
16537
- var loadingDotAnimations = Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["d" /* keyframes */])(_templateObject());
16538
- var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5) {
16539
- var isFocused = _ref5.isFocused,
16540
- size = _ref5.size,
16541
- _ref5$theme = _ref5.theme,
16542
- colors = _ref5$theme.colors,
16543
- baseUnit = _ref5$theme.spacing.baseUnit;
16544
- return {
16545
- label: 'loadingIndicator',
16546
- color: isFocused ? colors.neutral60 : colors.neutral20,
16547
- display: 'flex',
16548
- padding: baseUnit * 2,
16549
- transition: 'color 150ms',
16550
- alignSelf: 'center',
16551
- fontSize: size,
16552
- lineHeight: 1,
16553
- marginRight: size,
16554
- textAlign: 'center',
16555
- verticalAlign: 'middle'
16556
- };
16557
- };
16558
-
16559
- var LoadingDot = function LoadingDot(_ref6) {
16560
- var delay = _ref6.delay,
16561
- offset = _ref6.offset;
16562
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("span", {
16563
- css: /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_12__emotion_css__["a" /* default */])({
16564
- animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
16565
- backgroundColor: 'currentColor',
16566
- borderRadius: '1em',
16567
- display: 'inline-block',
16568
- marginLeft: offset ? '1em' : null,
16569
- height: '1em',
16570
- verticalAlign: 'top',
16571
- width: '1em'
16572
- }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */")
16573
- });
16574
- };
16575
-
16576
- var LoadingIndicator = function LoadingIndicator(props) {
16577
- var className = props.className,
16578
- cx = props.cx,
16579
- getStyles = props.getStyles,
16580
- innerProps = props.innerProps,
16581
- isRtl = props.isRtl;
16582
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
16583
- css: getStyles('loadingIndicator', props),
16584
- className: cx({
16585
- indicator: true,
16586
- 'loading-indicator': true
16587
- }, className)
16588
- }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
16589
- delay: 0,
16590
- offset: isRtl
16591
- }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
16592
- delay: 160,
16593
- offset: true
16594
- }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
16595
- delay: 320,
16596
- offset: !isRtl
16597
- }));
16598
- };
16599
- LoadingIndicator.defaultProps = {
16600
- size: 4
16601
- };
16602
-
16603
- var css = function css(_ref) {
16604
- var isDisabled = _ref.isDisabled,
16605
- isFocused = _ref.isFocused,
16606
- _ref$theme = _ref.theme,
16607
- colors = _ref$theme.colors,
16608
- borderRadius = _ref$theme.borderRadius,
16609
- spacing = _ref$theme.spacing;
16610
- return {
16611
- label: 'control',
16612
- alignItems: 'center',
16613
- backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,
16614
- borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,
16615
- borderRadius: borderRadius,
16616
- borderStyle: 'solid',
16617
- borderWidth: 1,
16618
- boxShadow: isFocused ? "0 0 0 1px ".concat(colors.primary) : null,
16619
- cursor: 'default',
16620
- display: 'flex',
16621
- flexWrap: 'wrap',
16622
- justifyContent: 'space-between',
16623
- minHeight: spacing.controlHeight,
16624
- outline: '0 !important',
16625
- position: 'relative',
16626
- transition: 'all 100ms',
16627
- '&:hover': {
16628
- borderColor: isFocused ? colors.primary : colors.neutral30
16629
- }
16630
- };
16631
- };
16632
-
16633
- var Control = function Control(props) {
16634
- var children = props.children,
16635
- cx = props.cx,
16636
- getStyles = props.getStyles,
16637
- className = props.className,
16638
- isDisabled = props.isDisabled,
16639
- isFocused = props.isFocused,
16640
- innerRef = props.innerRef,
16641
- innerProps = props.innerProps,
16642
- menuIsOpen = props.menuIsOpen;
16643
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16644
- ref: innerRef,
16645
- css: getStyles('control', props),
16646
- className: cx({
16647
- control: true,
16648
- 'control--is-disabled': isDisabled,
16649
- 'control--is-focused': isFocused,
16650
- 'control--menu-is-open': menuIsOpen
16651
- }, className)
16652
- }, innerProps), children);
16653
- };
16654
-
16655
- function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
16656
-
16657
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16658
- var groupCSS = function groupCSS(_ref) {
16659
- var spacing = _ref.theme.spacing;
16660
- return {
16661
- paddingBottom: spacing.baseUnit * 2,
16662
- paddingTop: spacing.baseUnit * 2
16663
- };
16664
- };
16665
-
16666
- var Group = function Group(props) {
16667
- var children = props.children,
16668
- className = props.className,
16669
- cx = props.cx,
16670
- getStyles = props.getStyles,
16671
- Heading = props.Heading,
16672
- headingProps = props.headingProps,
16673
- label = props.label,
16674
- theme = props.theme,
16675
- selectProps = props.selectProps;
16676
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16677
- css: getStyles('group', props),
16678
- className: cx({
16679
- group: true
16680
- }, className)
16681
- }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Heading, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, headingProps, {
16682
- selectProps: selectProps,
16683
- theme: theme,
16684
- getStyles: getStyles,
16685
- cx: cx
16686
- }), label), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", null, children));
16687
- };
16688
-
16689
- var groupHeadingCSS = function groupHeadingCSS(_ref2) {
16690
- var spacing = _ref2.theme.spacing;
16691
- return {
16692
- label: 'group',
16693
- color: '#999',
16694
- cursor: 'default',
16695
- display: 'block',
16696
- fontSize: '75%',
16697
- fontWeight: '500',
16698
- marginBottom: '0.25em',
16699
- paddingLeft: spacing.baseUnit * 3,
16700
- paddingRight: spacing.baseUnit * 3,
16701
- textTransform: 'uppercase'
16702
- };
16703
- };
16704
- var GroupHeading = function GroupHeading(props) {
16705
- var className = props.className,
16706
- cx = props.cx,
16707
- getStyles = props.getStyles,
16708
- theme = props.theme,
16709
- selectProps = props.selectProps,
16710
- cleanProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["className", "cx", "getStyles", "theme", "selectProps"]);
16711
-
16712
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16713
- css: getStyles('groupHeading', _objectSpread$1({
16714
- theme: theme
16715
- }, cleanProps)),
16716
- className: cx({
16717
- 'group-heading': true
16718
- }, className)
16719
- }, cleanProps));
16720
- };
16721
-
16722
- function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
16723
-
16724
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16725
- var inputCSS = function inputCSS(_ref) {
16726
- var isDisabled = _ref.isDisabled,
16727
- _ref$theme = _ref.theme,
16728
- spacing = _ref$theme.spacing,
16729
- colors = _ref$theme.colors;
16730
- return {
16731
- margin: spacing.baseUnit / 2,
16732
- paddingBottom: spacing.baseUnit / 2,
16733
- paddingTop: spacing.baseUnit / 2,
16734
- visibility: isDisabled ? 'hidden' : 'visible',
16735
- color: colors.neutral80
16736
- };
16737
- };
16738
-
16739
- var inputStyle = function inputStyle(isHidden) {
16740
- return {
16741
- label: 'input',
16742
- background: 0,
16743
- border: 0,
16744
- fontSize: 'inherit',
16745
- opacity: isHidden ? 0 : 1,
16746
- outline: 0,
16747
- padding: 0,
16748
- color: 'inherit'
16749
- };
16750
- };
16751
-
16752
- var Input = function Input(_ref2) {
16753
- var className = _ref2.className,
16754
- cx = _ref2.cx,
16755
- getStyles = _ref2.getStyles,
16756
- innerRef = _ref2.innerRef,
16757
- isHidden = _ref2.isHidden,
16758
- isDisabled = _ref2.isDisabled,
16759
- theme = _ref2.theme,
16760
- selectProps = _ref2.selectProps,
16761
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref2, ["className", "cx", "getStyles", "innerRef", "isHidden", "isDisabled", "theme", "selectProps"]);
16762
-
16763
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16764
- css: getStyles('input', _objectSpread$2({
16765
- theme: theme
16766
- }, props))
16767
- }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_14_react_input_autosize___default.a, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16768
- className: cx({
16769
- input: true
16770
- }, className),
16771
- inputRef: innerRef,
16772
- inputStyle: inputStyle(isHidden),
16773
- disabled: isDisabled
16774
- }, props)));
16775
- };
16776
-
16777
- function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
16778
-
16779
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16780
- var multiValueCSS = function multiValueCSS(_ref) {
16781
- var _ref$theme = _ref.theme,
16782
- spacing = _ref$theme.spacing,
16783
- borderRadius = _ref$theme.borderRadius,
16784
- colors = _ref$theme.colors;
16785
- return {
16786
- label: 'multiValue',
16787
- backgroundColor: colors.neutral10,
16788
- borderRadius: borderRadius / 2,
16789
- display: 'flex',
16790
- margin: spacing.baseUnit / 2,
16791
- minWidth: 0 // resolves flex/text-overflow bug
16792
-
16793
- };
16794
- };
16795
- var multiValueLabelCSS = function multiValueLabelCSS(_ref2) {
16796
- var _ref2$theme = _ref2.theme,
16797
- borderRadius = _ref2$theme.borderRadius,
16798
- colors = _ref2$theme.colors,
16799
- cropWithEllipsis = _ref2.cropWithEllipsis;
16800
- return {
16801
- borderRadius: borderRadius / 2,
16802
- color: colors.neutral80,
16803
- fontSize: '85%',
16804
- overflow: 'hidden',
16805
- padding: 3,
16806
- paddingLeft: 6,
16807
- textOverflow: cropWithEllipsis ? 'ellipsis' : null,
16808
- whiteSpace: 'nowrap'
16809
- };
16810
- };
16811
- var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) {
16812
- var _ref3$theme = _ref3.theme,
16813
- spacing = _ref3$theme.spacing,
16814
- borderRadius = _ref3$theme.borderRadius,
16815
- colors = _ref3$theme.colors,
16816
- isFocused = _ref3.isFocused;
16817
- return {
16818
- alignItems: 'center',
16819
- borderRadius: borderRadius / 2,
16820
- backgroundColor: isFocused && colors.dangerLight,
16821
- display: 'flex',
16822
- paddingLeft: spacing.baseUnit,
16823
- paddingRight: spacing.baseUnit,
16824
- ':hover': {
16825
- backgroundColor: colors.dangerLight,
16826
- color: colors.danger
16827
- }
16828
- };
16829
- };
16830
- var MultiValueGeneric = function MultiValueGeneric(_ref4) {
16831
- var children = _ref4.children,
16832
- innerProps = _ref4.innerProps;
16833
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", innerProps, children);
16834
- };
16835
- var MultiValueContainer = MultiValueGeneric;
16836
- var MultiValueLabel = MultiValueGeneric;
16837
- function MultiValueRemove(_ref5) {
16838
- var children = _ref5.children,
16839
- innerProps = _ref5.innerProps;
16840
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", innerProps, children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(CrossIcon, {
16841
- size: 14
16842
- }));
16843
- }
16844
-
16845
- var MultiValue = function MultiValue(props) {
16846
- var children = props.children,
16847
- className = props.className,
16848
- components = props.components,
16849
- cx = props.cx,
16850
- data = props.data,
16851
- getStyles = props.getStyles,
16852
- innerProps = props.innerProps,
16853
- isDisabled = props.isDisabled,
16854
- removeProps = props.removeProps,
16855
- selectProps = props.selectProps;
16856
- var Container = components.Container,
16857
- Label = components.Label,
16858
- Remove = components.Remove;
16859
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["b" /* ClassNames */], null, function (_ref6) {
16860
- var css = _ref6.css,
16861
- emotionCx = _ref6.cx;
16862
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Container, {
16863
- data: data,
16864
- innerProps: _objectSpread$3(_objectSpread$3({}, innerProps), {}, {
16865
- className: emotionCx(css(getStyles('multiValue', props)), cx({
16866
- 'multi-value': true,
16867
- 'multi-value--is-disabled': isDisabled
16868
- }, className))
16869
- }),
16870
- selectProps: selectProps
16871
- }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Label, {
16872
- data: data,
16873
- innerProps: {
16874
- className: emotionCx(css(getStyles('multiValueLabel', props)), cx({
16875
- 'multi-value__label': true
16876
- }, className))
16877
- },
16878
- selectProps: selectProps
16879
- }, children), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Remove, {
16880
- data: data,
16881
- innerProps: _objectSpread$3({
16882
- className: emotionCx(css(getStyles('multiValueRemove', props)), cx({
16883
- 'multi-value__remove': true
16884
- }, className))
16885
- }, removeProps),
16886
- selectProps: selectProps
16887
- }));
16888
- });
16889
- };
16890
-
16891
- MultiValue.defaultProps = {
16892
- cropWithEllipsis: true
16893
- };
16894
-
16895
- var optionCSS = function optionCSS(_ref) {
16896
- var isDisabled = _ref.isDisabled,
16897
- isFocused = _ref.isFocused,
16898
- isSelected = _ref.isSelected,
16899
- _ref$theme = _ref.theme,
16900
- spacing = _ref$theme.spacing,
16901
- colors = _ref$theme.colors;
16902
- return {
16903
- label: 'option',
16904
- backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent',
16905
- color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit',
16906
- cursor: 'default',
16907
- display: 'block',
16908
- fontSize: 'inherit',
16909
- padding: "".concat(spacing.baseUnit * 2, "px ").concat(spacing.baseUnit * 3, "px"),
16910
- width: '100%',
16911
- userSelect: 'none',
16912
- WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',
16913
- // provide some affordance on touch devices
16914
- ':active': {
16915
- backgroundColor: !isDisabled && (isSelected ? colors.primary : colors.primary50)
16916
- }
16917
- };
16918
- };
16919
-
16920
- var Option = function Option(props) {
16921
- var children = props.children,
16922
- className = props.className,
16923
- cx = props.cx,
16924
- getStyles = props.getStyles,
16925
- isDisabled = props.isDisabled,
16926
- isFocused = props.isFocused,
16927
- isSelected = props.isSelected,
16928
- innerRef = props.innerRef,
16929
- innerProps = props.innerProps;
16930
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16931
- css: getStyles('option', props),
16932
- className: cx({
16933
- option: true,
16934
- 'option--is-disabled': isDisabled,
16935
- 'option--is-focused': isFocused,
16936
- 'option--is-selected': isSelected
16937
- }, className),
16938
- ref: innerRef
16939
- }, innerProps), children);
16940
- };
16941
-
16942
- var placeholderCSS = function placeholderCSS(_ref) {
16943
- var _ref$theme = _ref.theme,
16944
- spacing = _ref$theme.spacing,
16945
- colors = _ref$theme.colors;
16946
- return {
16947
- label: 'placeholder',
16948
- color: colors.neutral50,
16949
- marginLeft: spacing.baseUnit / 2,
16950
- marginRight: spacing.baseUnit / 2,
16951
- position: 'absolute',
16952
- top: '50%',
16953
- transform: 'translateY(-50%)'
16954
- };
16955
- };
16956
-
16957
- var Placeholder = function Placeholder(props) {
16958
- var children = props.children,
16959
- className = props.className,
16960
- cx = props.cx,
16961
- getStyles = props.getStyles,
16962
- innerProps = props.innerProps;
16963
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16964
- css: getStyles('placeholder', props),
16965
- className: cx({
16966
- placeholder: true
16967
- }, className)
16968
- }, innerProps), children);
16969
- };
16970
-
16971
- var css$1 = function css(_ref) {
16972
- var isDisabled = _ref.isDisabled,
16973
- _ref$theme = _ref.theme,
16974
- spacing = _ref$theme.spacing,
16975
- colors = _ref$theme.colors;
16976
- return {
16977
- label: 'singleValue',
16978
- color: isDisabled ? colors.neutral40 : colors.neutral80,
16979
- marginLeft: spacing.baseUnit / 2,
16980
- marginRight: spacing.baseUnit / 2,
16981
- maxWidth: "calc(100% - ".concat(spacing.baseUnit * 2, "px)"),
16982
- overflow: 'hidden',
16983
- position: 'absolute',
16984
- textOverflow: 'ellipsis',
16985
- whiteSpace: 'nowrap',
16986
- top: '50%',
16987
- transform: 'translateY(-50%)'
16988
- };
16989
- };
16990
-
16991
- var SingleValue = function SingleValue(props) {
16992
- var children = props.children,
16993
- className = props.className,
16994
- cx = props.cx,
16995
- getStyles = props.getStyles,
16996
- isDisabled = props.isDisabled,
16997
- innerProps = props.innerProps;
16998
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16999
- css: getStyles('singleValue', props),
17000
- className: cx({
17001
- 'single-value': true,
17002
- 'single-value--is-disabled': isDisabled
17003
- }, className)
17004
- }, innerProps), children);
17005
- };
17006
-
17007
- function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
17008
-
17009
- function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
17010
- var components = {
17011
- ClearIndicator: ClearIndicator,
17012
- Control: Control,
17013
- DropdownIndicator: DropdownIndicator,
17014
- DownChevron: DownChevron,
17015
- CrossIcon: CrossIcon,
17016
- Group: Group,
17017
- GroupHeading: GroupHeading,
17018
- IndicatorsContainer: IndicatorsContainer,
17019
- IndicatorSeparator: IndicatorSeparator,
17020
- Input: Input,
17021
- LoadingIndicator: LoadingIndicator,
17022
- Menu: Menu,
17023
- MenuList: MenuList,
17024
- MenuPortal: MenuPortal,
17025
- LoadingMessage: LoadingMessage,
17026
- NoOptionsMessage: NoOptionsMessage,
17027
- MultiValue: MultiValue,
17028
- MultiValueContainer: MultiValueContainer,
17029
- MultiValueLabel: MultiValueLabel,
17030
- MultiValueRemove: MultiValueRemove,
17031
- Option: Option,
17032
- Placeholder: Placeholder,
17033
- SelectContainer: SelectContainer,
17034
- SingleValue: SingleValue,
17035
- ValueContainer: ValueContainer
17036
- };
17037
- var defaultComponents = function defaultComponents(props) {
17038
- return _objectSpread$4(_objectSpread$4({}, components), props.components);
17039
- };
17040
-
17041
-
17042
-
17043
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
17044
-
17045
- /***/ }),
17046
- /* 255 */
17047
- /***/ (function(module, exports, __webpack_require__) {
17048
-
17049
- "use strict";
17050
-
17051
-
17052
- Object.defineProperty(exports, "__esModule", {
17053
- value: true
17054
- });
17055
-
17056
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
17057
-
17058
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
17059
-
17060
- var _react = __webpack_require__(0);
17061
-
17062
- var _react2 = _interopRequireDefault(_react);
17063
-
17064
- var _propTypes = __webpack_require__(2);
17065
-
17066
- var _propTypes2 = _interopRequireDefault(_propTypes);
17067
-
17068
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17069
-
17070
- function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
17071
-
17072
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17073
-
17074
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
17075
-
17076
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
17077
-
17078
- var sizerStyle = {
17079
- position: 'absolute',
17080
- top: 0,
17081
- left: 0,
17082
- visibility: 'hidden',
17083
- height: 0,
17084
- overflow: 'scroll',
17085
- whiteSpace: 'pre'
17086
- };
17087
-
17088
- var INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth'];
17089
-
17090
- var cleanInputProps = function cleanInputProps(inputProps) {
17091
- INPUT_PROPS_BLACKLIST.forEach(function (field) {
17092
- return delete inputProps[field];
17093
- });
17094
- return inputProps;
17095
- };
17096
-
17097
- var copyStyles = function copyStyles(styles, node) {
17098
- node.style.fontSize = styles.fontSize;
17099
- node.style.fontFamily = styles.fontFamily;
17100
- node.style.fontWeight = styles.fontWeight;
17101
- node.style.fontStyle = styles.fontStyle;
17102
- node.style.letterSpacing = styles.letterSpacing;
17103
- node.style.textTransform = styles.textTransform;
17104
- };
17105
-
17106
- var isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent) : false;
17107
-
17108
- var generateId = function generateId() {
17109
- // we only need an auto-generated ID for stylesheet injection, which is only
17110
- // used for IE. so if the browser is not IE, this should return undefined.
17111
- return isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined;
17112
- };
17113
-
17114
- var AutosizeInput = function (_Component) {
17115
- _inherits(AutosizeInput, _Component);
17116
-
17117
- function AutosizeInput(props) {
17118
- _classCallCheck(this, AutosizeInput);
17119
-
17120
- var _this = _possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props));
17121
-
17122
- _this.inputRef = function (el) {
17123
- _this.input = el;
17124
- if (typeof _this.props.inputRef === 'function') {
17125
- _this.props.inputRef(el);
17126
- }
17127
- };
17128
-
17129
- _this.placeHolderSizerRef = function (el) {
17130
- _this.placeHolderSizer = el;
17131
- };
17132
-
17133
- _this.sizerRef = function (el) {
17134
- _this.sizer = el;
17135
- };
17136
-
17137
- _this.state = {
17138
- inputWidth: props.minWidth,
17139
- inputId: props.id || generateId()
17140
- };
17141
- return _this;
17142
- }
17143
-
17144
- _createClass(AutosizeInput, [{
17145
- key: 'componentDidMount',
17146
- value: function componentDidMount() {
17147
- this.mounted = true;
17148
- this.copyInputStyles();
17149
- this.updateInputWidth();
17150
- }
17151
- }, {
17152
- key: 'UNSAFE_componentWillReceiveProps',
17153
- value: function UNSAFE_componentWillReceiveProps(nextProps) {
17154
- var id = nextProps.id;
17155
-
17156
- if (id !== this.props.id) {
17157
- this.setState({ inputId: id || generateId() });
17158
- }
17159
- }
17160
- }, {
17161
- key: 'componentDidUpdate',
17162
- value: function componentDidUpdate(prevProps, prevState) {
17163
- if (prevState.inputWidth !== this.state.inputWidth) {
17164
- if (typeof this.props.onAutosize === 'function') {
17165
- this.props.onAutosize(this.state.inputWidth);
17166
- }
17167
- }
17168
- this.updateInputWidth();
17169
- }
17170
- }, {
17171
- key: 'componentWillUnmount',
17172
- value: function componentWillUnmount() {
17173
- this.mounted = false;
17174
- }
17175
- }, {
17176
- key: 'copyInputStyles',
17177
- value: function copyInputStyles() {
17178
- if (!this.mounted || !window.getComputedStyle) {
17179
- return;
17180
- }
17181
- var inputStyles = this.input && window.getComputedStyle(this.input);
17182
- if (!inputStyles) {
17183
- return;
17184
- }
17185
- copyStyles(inputStyles, this.sizer);
17186
- if (this.placeHolderSizer) {
17187
- copyStyles(inputStyles, this.placeHolderSizer);
17188
- }
17189
- }
17190
- }, {
17191
- key: 'updateInputWidth',
17192
- value: function updateInputWidth() {
17193
- if (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') {
17194
- return;
17195
- }
17196
- var newInputWidth = void 0;
17197
- if (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) {
17198
- newInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2;
17199
- } else {
17200
- newInputWidth = this.sizer.scrollWidth + 2;
17201
- }
17202
- // add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI
17203
- var extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0;
17204
- newInputWidth += extraWidth;
17205
- if (newInputWidth < this.props.minWidth) {
17206
- newInputWidth = this.props.minWidth;
17207
- }
17208
- if (newInputWidth !== this.state.inputWidth) {
17209
- this.setState({
17210
- inputWidth: newInputWidth
17211
- });
17212
- }
17213
- }
17214
- }, {
17215
- key: 'getInput',
17216
- value: function getInput() {
17217
- return this.input;
17218
- }
17219
- }, {
17220
- key: 'focus',
17221
- value: function focus() {
17222
- this.input.focus();
17223
- }
17224
- }, {
17225
- key: 'blur',
17226
- value: function blur() {
17227
- this.input.blur();
17228
- }
17229
- }, {
17230
- key: 'select',
17231
- value: function select() {
17232
- this.input.select();
17233
- }
17234
- }, {
17235
- key: 'renderStyles',
17236
- value: function renderStyles() {
17237
- // this method injects styles to hide IE's clear indicator, which messes
17238
- // with input size detection. the stylesheet is only injected when the
17239
- // browser is IE, and can also be disabled by the `injectStyles` prop.
17240
- var injectStyles = this.props.injectStyles;
17241
-
17242
- return isIE && injectStyles ? _react2.default.createElement('style', { dangerouslySetInnerHTML: {
17243
- __html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}'
17244
- } }) : null;
17245
- }
17246
- }, {
17247
- key: 'render',
17248
- value: function render() {
17249
- var sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) {
17250
- if (previousValue !== null && previousValue !== undefined) {
17251
- return previousValue;
17252
- }
17253
- return currentValue;
17254
- });
17255
-
17256
- var wrapperStyle = _extends({}, this.props.style);
17257
- if (!wrapperStyle.display) wrapperStyle.display = 'inline-block';
17258
-
17259
- var inputStyle = _extends({
17260
- boxSizing: 'content-box',
17261
- width: this.state.inputWidth + 'px'
17262
- }, this.props.inputStyle);
17263
-
17264
- var inputProps = _objectWithoutProperties(this.props, []);
17265
-
17266
- cleanInputProps(inputProps);
17267
- inputProps.className = this.props.inputClassName;
17268
- inputProps.id = this.state.inputId;
17269
- inputProps.style = inputStyle;
17270
-
17271
- return _react2.default.createElement(
17272
- 'div',
17273
- { className: this.props.className, style: wrapperStyle },
17274
- this.renderStyles(),
17275
- _react2.default.createElement('input', _extends({}, inputProps, { ref: this.inputRef })),
17276
- _react2.default.createElement(
17277
- 'div',
17278
- { ref: this.sizerRef, style: sizerStyle },
17279
- sizerValue
17280
- ),
17281
- this.props.placeholder ? _react2.default.createElement(
17282
- 'div',
17283
- { ref: this.placeHolderSizerRef, style: sizerStyle },
17284
- this.props.placeholder
17285
- ) : null
17286
- );
17287
- }
17288
- }]);
17289
-
17290
- return AutosizeInput;
17291
- }(_react.Component);
17292
-
17293
- AutosizeInput.propTypes = {
17294
- className: _propTypes2.default.string, // className for the outer element
17295
- defaultValue: _propTypes2.default.any, // default field value
17296
- extraWidth: _propTypes2.default.oneOfType([// additional width for input element
17297
- _propTypes2.default.number, _propTypes2.default.string]),
17298
- id: _propTypes2.default.string, // id to use for the input, can be set for consistent snapshots
17299
- injectStyles: _propTypes2.default.bool, // inject the custom stylesheet to hide clear UI, defaults to true
17300
- inputClassName: _propTypes2.default.string, // className for the input element
17301
- inputRef: _propTypes2.default.func, // ref callback for the input element
17302
- inputStyle: _propTypes2.default.object, // css styles for the input element
17303
- minWidth: _propTypes2.default.oneOfType([// minimum width for input element
17304
- _propTypes2.default.number, _propTypes2.default.string]),
17305
- onAutosize: _propTypes2.default.func, // onAutosize handler: function(newWidth) {}
17306
- onChange: _propTypes2.default.func, // onChange handler: function(event) {}
17307
- placeholder: _propTypes2.default.string, // placeholder text
17308
- placeholderIsMinWidth: _propTypes2.default.bool, // don't collapse size to less than the placeholder
17309
- style: _propTypes2.default.object, // css styles for the outer element
17310
- value: _propTypes2.default.any // field value
17311
- };
17312
- AutosizeInput.defaultProps = {
17313
- minWidth: 1,
17314
- injectStyles: true
17315
- };
17316
-
17317
- exports.default = AutosizeInput;
17318
-
17319
- /***/ }),
17320
- /* 256 */
17321
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
17322
-
17323
- "use strict";
17324
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Select; });
17325
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return defaultTheme; });
17326
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createFilter; });
17327
- /* unused harmony export d */
17328
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return mergeStyles; });
17329
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
17330
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
17331
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(20);
17332
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(27);
17333
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(15);
17334
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(50);
17335
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__ = __webpack_require__(45);
17336
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(88);
17337
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__ = __webpack_require__(73);
17338
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(74);
17339
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(75);
17340
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(0);
17341
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
17342
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_memoize_one__ = __webpack_require__(250);
17343
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__emotion_core__ = __webpack_require__(137);
17344
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom__ = __webpack_require__(11);
17345
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__);
17346
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__ = __webpack_require__(254);
17347
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__emotion_css__ = __webpack_require__(76);
17348
-
17349
-
17350
-
17351
-
17352
-
17353
-
17354
-
17355
-
17356
-
17357
-
17358
-
17359
-
17360
-
17361
-
17362
-
17363
-
17364
-
17365
-
17366
- var diacritics = [{
17367
- base: 'A',
17368
- letters: "A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"
17369
- }, {
17370
- base: 'AA',
17371
- letters: "\uA732"
17372
- }, {
17373
- base: 'AE',
17374
- letters: "\xC6\u01FC\u01E2"
17375
- }, {
17376
- base: 'AO',
17377
- letters: "\uA734"
17378
- }, {
17379
- base: 'AU',
17380
- letters: "\uA736"
17381
- }, {
17382
- base: 'AV',
17383
- letters: "\uA738\uA73A"
17384
- }, {
17385
- base: 'AY',
17386
- letters: "\uA73C"
17387
- }, {
17388
- base: 'B',
17389
- letters: "B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"
17390
- }, {
17391
- base: 'C',
17392
- letters: "C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"
17393
- }, {
17394
- base: 'D',
17395
- letters: "D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"
17396
- }, {
17397
- base: 'DZ',
17398
- letters: "\u01F1\u01C4"
17399
- }, {
17400
- base: 'Dz',
17401
- letters: "\u01F2\u01C5"
17402
- }, {
17403
- base: 'E',
17404
- letters: "E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"
17405
- }, {
17406
- base: 'F',
17407
- letters: "F\u24BB\uFF26\u1E1E\u0191\uA77B"
17408
- }, {
17409
- base: 'G',
17410
- letters: "G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"
17411
- }, {
17412
- base: 'H',
17413
- letters: "H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"
17414
- }, {
17415
- base: 'I',
17416
- letters: "I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"
17417
- }, {
17418
- base: 'J',
17419
- letters: "J\u24BF\uFF2A\u0134\u0248"
17420
- }, {
17421
- base: 'K',
17422
- letters: "K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"
17423
- }, {
17424
- base: 'L',
17425
- letters: "L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"
17426
- }, {
17427
- base: 'LJ',
17428
- letters: "\u01C7"
17429
- }, {
17430
- base: 'Lj',
17431
- letters: "\u01C8"
17432
- }, {
17433
- base: 'M',
17434
- letters: "M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"
17435
- }, {
17436
- base: 'N',
17437
- letters: "N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"
17438
- }, {
17439
- base: 'NJ',
17440
- letters: "\u01CA"
17441
- }, {
17442
- base: 'Nj',
17443
- letters: "\u01CB"
17444
- }, {
17445
- base: 'O',
17446
- letters: "O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"
17447
- }, {
17448
- base: 'OI',
17449
- letters: "\u01A2"
17450
- }, {
17451
- base: 'OO',
17452
- letters: "\uA74E"
17453
- }, {
17454
- base: 'OU',
17455
- letters: "\u0222"
17456
- }, {
17457
- base: 'P',
17458
- letters: "P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"
17459
- }, {
17460
- base: 'Q',
17461
- letters: "Q\u24C6\uFF31\uA756\uA758\u024A"
17462
- }, {
17463
- base: 'R',
17464
- letters: "R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"
17465
- }, {
17466
- base: 'S',
17467
- letters: "S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"
17468
- }, {
17469
- base: 'T',
17470
- letters: "T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"
17471
- }, {
17472
- base: 'TZ',
17473
- letters: "\uA728"
17474
- }, {
17475
- base: 'U',
17476
- letters: "U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"
17477
- }, {
17478
- base: 'V',
17479
- letters: "V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"
17480
- }, {
17481
- base: 'VY',
17482
- letters: "\uA760"
17483
- }, {
17484
- base: 'W',
17485
- letters: "W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"
17486
- }, {
17487
- base: 'X',
17488
- letters: "X\u24CD\uFF38\u1E8A\u1E8C"
17489
- }, {
17490
- base: 'Y',
17491
- letters: "Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"
17492
- }, {
17493
- base: 'Z',
17494
- letters: "Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"
17495
- }, {
17496
- base: 'a',
17497
- letters: "a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"
17498
- }, {
17499
- base: 'aa',
17500
- letters: "\uA733"
17501
- }, {
17502
- base: 'ae',
17503
- letters: "\xE6\u01FD\u01E3"
17504
- }, {
17505
- base: 'ao',
17506
- letters: "\uA735"
17507
- }, {
17508
- base: 'au',
17509
- letters: "\uA737"
17510
- }, {
17511
- base: 'av',
17512
- letters: "\uA739\uA73B"
17513
- }, {
17514
- base: 'ay',
17515
- letters: "\uA73D"
17516
- }, {
17517
- base: 'b',
17518
- letters: "b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"
17519
- }, {
17520
- base: 'c',
17521
- letters: "c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"
17522
- }, {
17523
- base: 'd',
17524
- letters: "d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"
17525
- }, {
17526
- base: 'dz',
17527
- letters: "\u01F3\u01C6"
17528
- }, {
17529
- base: 'e',
17530
- letters: "e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"
17531
- }, {
17532
- base: 'f',
17533
- letters: "f\u24D5\uFF46\u1E1F\u0192\uA77C"
17534
- }, {
17535
- base: 'g',
17536
- letters: "g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"
17537
- }, {
17538
- base: 'h',
17539
- letters: "h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"
17540
- }, {
17541
- base: 'hv',
17542
- letters: "\u0195"
17543
- }, {
17544
- base: 'i',
17545
- letters: "i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"
17546
- }, {
17547
- base: 'j',
17548
- letters: "j\u24D9\uFF4A\u0135\u01F0\u0249"
17549
- }, {
17550
- base: 'k',
17551
- letters: "k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"
17552
- }, {
17553
- base: 'l',
17554
- letters: "l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"
17555
- }, {
17556
- base: 'lj',
17557
- letters: "\u01C9"
17558
- }, {
17559
- base: 'm',
17560
- letters: "m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"
17561
- }, {
17562
- base: 'n',
17563
- letters: "n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"
17564
- }, {
17565
- base: 'nj',
17566
- letters: "\u01CC"
17567
- }, {
17568
- base: 'o',
17569
- letters: "o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"
17570
- }, {
17571
- base: 'oi',
17572
- letters: "\u01A3"
17573
- }, {
17574
- base: 'ou',
17575
- letters: "\u0223"
17576
- }, {
17577
- base: 'oo',
17578
- letters: "\uA74F"
17579
- }, {
17580
- base: 'p',
17581
- letters: "p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"
17582
- }, {
17583
- base: 'q',
17584
- letters: "q\u24E0\uFF51\u024B\uA757\uA759"
17585
- }, {
17586
- base: 'r',
17587
- letters: "r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"
17588
- }, {
17589
- base: 's',
17590
- letters: "s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"
17591
- }, {
17592
- base: 't',
17593
- letters: "t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"
17594
- }, {
17595
- base: 'tz',
17596
- letters: "\uA729"
17597
- }, {
17598
- base: 'u',
17599
- letters: "u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"
17600
- }, {
17601
- base: 'v',
17602
- letters: "v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"
17603
- }, {
17604
- base: 'vy',
17605
- letters: "\uA761"
17606
- }, {
17607
- base: 'w',
17608
- letters: "w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"
17609
- }, {
17610
- base: 'x',
17611
- letters: "x\u24E7\uFF58\u1E8B\u1E8D"
17612
- }, {
17613
- base: 'y',
17614
- letters: "y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"
17615
- }, {
17616
- base: 'z',
17617
- letters: "z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"
17618
- }];
17619
- var anyDiacritic = new RegExp('[' + diacritics.map(function (d) {
17620
- return d.letters;
17621
- }).join('') + ']', 'g');
17622
- var diacriticToBase = {};
17623
-
17624
- for (var i = 0; i < diacritics.length; i++) {
17625
- var diacritic = diacritics[i];
17626
-
17627
- for (var j = 0; j < diacritic.letters.length; j++) {
17628
- diacriticToBase[diacritic.letters[j]] = diacritic.base;
17629
- }
17630
- }
17631
-
17632
- var stripDiacritics = function stripDiacritics(str) {
17633
- return str.replace(anyDiacritic, function (match) {
17634
- return diacriticToBase[match];
17635
- });
17636
- };
17637
-
17638
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
17639
-
17640
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
17641
-
17642
- var trimString = function trimString(str) {
17643
- return str.replace(/^\s+|\s+$/g, '');
17644
- };
17645
-
17646
- var defaultStringify = function defaultStringify(option) {
17647
- return "".concat(option.label, " ").concat(option.value);
17648
- };
17649
-
17650
- var createFilter = function createFilter(config) {
17651
- return function (option, rawInput) {
17652
- var _ignoreCase$ignoreAcc = _objectSpread({
17653
- ignoreCase: true,
17654
- ignoreAccents: true,
17655
- stringify: defaultStringify,
17656
- trim: true,
17657
- matchFrom: 'any'
17658
- }, config),
17659
- ignoreCase = _ignoreCase$ignoreAcc.ignoreCase,
17660
- ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents,
17661
- stringify = _ignoreCase$ignoreAcc.stringify,
17662
- trim = _ignoreCase$ignoreAcc.trim,
17663
- matchFrom = _ignoreCase$ignoreAcc.matchFrom;
17664
-
17665
- var input = trim ? trimString(rawInput) : rawInput;
17666
- var candidate = trim ? trimString(stringify(option)) : stringify(option);
17667
-
17668
- if (ignoreCase) {
17669
- input = input.toLowerCase();
17670
- candidate = candidate.toLowerCase();
17671
- }
17672
-
17673
- if (ignoreAccents) {
17674
- input = stripDiacritics(input);
17675
- candidate = stripDiacritics(candidate);
17676
- }
17677
-
17678
- return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1;
17679
- };
17680
- };
17681
-
17682
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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)."; }
17683
-
17684
- var _ref = process.env.NODE_ENV === "production" ? {
17685
- name: "1laao21-a11yText",
17686
- styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"
17687
- } : {
17688
- name: "1laao21-a11yText",
17689
- styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;",
17690
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFNIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICAgIDxzcGFuXG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICAgIHpJbmRleDogOTk5OSxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgICAgaGVpZ2h0OiAxLFxuICAgICAgICB3aWR0aDogMSxcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgICB9fVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */",
17691
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
17692
- };
17693
-
17694
- var A11yText = function A11yText(props) {
17695
- return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("span", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17696
- css: _ref
17697
- }, props));
17698
- };
17699
-
17700
- function DummyInput(_ref) {
17701
- var inProp = _ref.in,
17702
- out = _ref.out,
17703
- onExited = _ref.onExited,
17704
- appear = _ref.appear,
17705
- enter = _ref.enter,
17706
- exit = _ref.exit,
17707
- innerRef = _ref.innerRef,
17708
- emotion = _ref.emotion,
17709
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["in", "out", "onExited", "appear", "enter", "exit", "innerRef", "emotion"]);
17710
-
17711
- return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("input", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17712
- ref: innerRef
17713
- }, props, {
17714
- css: /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_16__emotion_css__["a" /* default */])({
17715
- label: 'dummyInput',
17716
- // get rid of any default styles
17717
- background: 0,
17718
- border: 0,
17719
- fontSize: 'inherit',
17720
- outline: 0,
17721
- padding: 0,
17722
- // important! without `width` browsers won't allow focus
17723
- width: 1,
17724
- // remove cursor on desktop
17725
- color: 'transparent',
17726
- // remove cursor on mobile whilst maintaining "scroll into view" behaviour
17727
- left: -100,
17728
- opacity: 0,
17729
- position: 'relative',
17730
- transform: 'scale(0)'
17731
- }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJNIiwiZmlsZSI6IkR1bW15SW5wdXQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGluOiBpblByb3AsXG4gIG91dCxcbiAgb25FeGl0ZWQsXG4gIGFwcGVhcixcbiAgZW50ZXIsXG4gIGV4aXQsXG4gIGlubmVyUmVmLFxuICBlbW90aW9uLFxuICAuLi5wcm9wc1xufTogYW55KSB7XG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLnByb3BzfVxuICAgICAgY3NzPXt7XG4gICAgICAgIGxhYmVsOiAnZHVtbXlJbnB1dCcsXG4gICAgICAgIC8vIGdldCByaWQgb2YgYW55IGRlZmF1bHQgc3R5bGVzXG4gICAgICAgIGJhY2tncm91bmQ6IDAsXG4gICAgICAgIGJvcmRlcjogMCxcbiAgICAgICAgZm9udFNpemU6ICdpbmhlcml0JyxcbiAgICAgICAgb3V0bGluZTogMCxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgLy8gaW1wb3J0YW50ISB3aXRob3V0IGB3aWR0aGAgYnJvd3NlcnMgd29uJ3QgYWxsb3cgZm9jdXNcbiAgICAgICAgd2lkdGg6IDEsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBkZXNrdG9wXG4gICAgICAgIGNvbG9yOiAndHJhbnNwYXJlbnQnLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gbW9iaWxlIHdoaWxzdCBtYWludGFpbmluZyBcInNjcm9sbCBpbnRvIHZpZXdcIiBiZWhhdmlvdXJcbiAgICAgICAgbGVmdDogLTEwMCxcbiAgICAgICAgb3BhY2l0eTogMCxcbiAgICAgICAgcG9zaXRpb246ICdyZWxhdGl2ZScsXG4gICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDApJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")
17732
- }));
17733
- }
17734
-
17735
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
17736
-
17737
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
17738
-
17739
- var NodeResolver = /*#__PURE__*/function (_Component) {
17740
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(NodeResolver, _Component);
17741
-
17742
- var _super = _createSuper(NodeResolver);
17743
-
17744
- function NodeResolver() {
17745
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, NodeResolver);
17746
-
17747
- return _super.apply(this, arguments);
17748
- }
17749
-
17750
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(NodeResolver, [{
17751
- key: "componentDidMount",
17752
- value: function componentDidMount() {
17753
- this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_14_react_dom__["findDOMNode"])(this));
17754
- }
17755
- }, {
17756
- key: "componentWillUnmount",
17757
- value: function componentWillUnmount() {
17758
- this.props.innerRef(null);
17759
- }
17760
- }, {
17761
- key: "render",
17762
- value: function render() {
17763
- return this.props.children;
17764
- }
17765
- }]);
17766
-
17767
- return NodeResolver;
17768
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
17769
-
17770
- var STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'];
17771
- var LOCK_STYLES = {
17772
- boxSizing: 'border-box',
17773
- // account for possible declaration `width: 100%;` on body
17774
- overflow: 'hidden',
17775
- position: 'relative',
17776
- height: '100%'
17777
- };
17778
-
17779
- function preventTouchMove(e) {
17780
- e.preventDefault();
17781
- }
17782
- function allowTouchMove(e) {
17783
- e.stopPropagation();
17784
- }
17785
- function preventInertiaScroll() {
17786
- var top = this.scrollTop;
17787
- var totalScroll = this.scrollHeight;
17788
- var currentScroll = top + this.offsetHeight;
17789
-
17790
- if (top === 0) {
17791
- this.scrollTop = 1;
17792
- } else if (currentScroll === totalScroll) {
17793
- this.scrollTop = top - 1;
17794
- }
17795
- } // `ontouchstart` check works on most browsers
17796
- // `maxTouchPoints` works on IE10/11 and Surface
17797
-
17798
- function isTouchDevice() {
17799
- return 'ontouchstart' in window || navigator.maxTouchPoints;
17800
- }
17801
-
17802
- function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
17803
-
17804
- function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
17805
- var canUseDOM = !!( window.document && window.document.createElement);
17806
- var activeScrollLocks = 0;
17807
-
17808
- var ScrollLock = /*#__PURE__*/function (_Component) {
17809
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollLock, _Component);
17810
-
17811
- var _super = _createSuper$1(ScrollLock);
17812
-
17813
- function ScrollLock() {
17814
- var _this;
17815
-
17816
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollLock);
17817
-
17818
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17819
- args[_key] = arguments[_key];
17820
- }
17821
-
17822
- _this = _super.call.apply(_super, [this].concat(args));
17823
- _this.originalStyles = {};
17824
- _this.listenerOptions = {
17825
- capture: false,
17826
- passive: false
17827
- };
17828
- return _this;
17829
- }
17830
-
17831
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollLock, [{
17832
- key: "componentDidMount",
17833
- value: function componentDidMount() {
17834
- var _this2 = this;
17835
-
17836
- if (!canUseDOM) return;
17837
- var _this$props = this.props,
17838
- accountForScrollbars = _this$props.accountForScrollbars,
17839
- touchScrollTarget = _this$props.touchScrollTarget;
17840
- var target = document.body;
17841
- var targetStyle = target && target.style;
17842
-
17843
- if (accountForScrollbars) {
17844
- // store any styles already applied to the body
17845
- STYLE_KEYS.forEach(function (key) {
17846
- var val = targetStyle && targetStyle[key];
17847
- _this2.originalStyles[key] = val;
17848
- });
17849
- } // apply the lock styles and padding if this is the first scroll lock
17850
-
17851
-
17852
- if (accountForScrollbars && activeScrollLocks < 1) {
17853
- var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0;
17854
- var clientWidth = document.body ? document.body.clientWidth : 0;
17855
- var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0;
17856
- Object.keys(LOCK_STYLES).forEach(function (key) {
17857
- var val = LOCK_STYLES[key];
17858
-
17859
- if (targetStyle) {
17860
- targetStyle[key] = val;
17861
- }
17862
- });
17863
-
17864
- if (targetStyle) {
17865
- targetStyle.paddingRight = "".concat(adjustedPadding, "px");
17866
- }
17867
- } // account for touch devices
17868
-
17869
-
17870
- if (target && isTouchDevice()) {
17871
- // Mobile Safari ignores { overflow: hidden } declaration on the body.
17872
- target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target
17873
-
17874
- if (touchScrollTarget) {
17875
- touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
17876
- touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions);
17877
- }
17878
- } // increment active scroll locks
17879
-
17880
-
17881
- activeScrollLocks += 1;
17882
- }
17883
- }, {
17884
- key: "componentWillUnmount",
17885
- value: function componentWillUnmount() {
17886
- var _this3 = this;
17887
-
17888
- if (!canUseDOM) return;
17889
- var _this$props2 = this.props,
17890
- accountForScrollbars = _this$props2.accountForScrollbars,
17891
- touchScrollTarget = _this$props2.touchScrollTarget;
17892
- var target = document.body;
17893
- var targetStyle = target && target.style; // safely decrement active scroll locks
17894
-
17895
- activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any
17896
-
17897
- if (accountForScrollbars && activeScrollLocks < 1) {
17898
- STYLE_KEYS.forEach(function (key) {
17899
- var val = _this3.originalStyles[key];
17900
-
17901
- if (targetStyle) {
17902
- targetStyle[key] = val;
17903
- }
17904
- });
17905
- } // remove touch listeners
17906
-
17907
-
17908
- if (target && isTouchDevice()) {
17909
- target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions);
17910
-
17911
- if (touchScrollTarget) {
17912
- touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
17913
- touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions);
17914
- }
17915
- }
17916
- }
17917
- }, {
17918
- key: "render",
17919
- value: function render() {
17920
- return null;
17921
- }
17922
- }]);
17923
-
17924
- return ScrollLock;
17925
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
17926
-
17927
- ScrollLock.defaultProps = {
17928
- accountForScrollbars: true
17929
- };
17930
-
17931
- function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { 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)."; }
17932
-
17933
- function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
17934
-
17935
- function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
17936
-
17937
- var _ref$1 = process.env.NODE_ENV === "production" ? {
17938
- name: "1dsbpcp",
17939
- styles: "position:fixed;left:0;bottom:0;right:0;top:0;"
17940
- } : {
17941
- name: "1dsbpcp",
17942
- styles: "position:fixed;left:0;bottom:0;right:0;top:0;",
17943
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAgaXNFbmFibGVkOiBib29sZWFuLFxufTtcbnR5cGUgU3RhdGUgPSB7XG4gIHRvdWNoU2Nyb2xsVGFyZ2V0OiBIVE1MRWxlbWVudCB8IG51bGwsXG59O1xuXG4vLyBOT1RFOlxuLy8gV2Ugc2hvdWxkbid0IG5lZWQgdGhpcyBhZnRlciB1cGRhdGluZyB0byBSZWFjdCB2MTYuMy4wLCB3aGljaCBpbnRyb2R1Y2VzOlxuLy8gLSBjcmVhdGVSZWYoKSBodHRwczovL3JlYWN0anMub3JnL2RvY3MvcmVhY3QtYXBpLmh0bWwjcmVhY3RjcmVhdGVyZWZcbi8vIC0gZm9yd2FyZFJlZigpIGh0dHBzOi8vcmVhY3Rqcy5vcmcvZG9jcy9yZWFjdC1hcGkuaHRtbCNyZWFjdGZvcndhcmRyZWZcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgU2Nyb2xsQmxvY2sgZXh0ZW5kcyBQdXJlQ29tcG9uZW50PFByb3BzLCBTdGF0ZT4ge1xuICBzdGF0ZSA9IHsgdG91Y2hTY3JvbGxUYXJnZXQ6IG51bGwgfTtcblxuICAvLyBtdXN0IGJlIGluIHN0YXRl
1
+ /******/ (function(modules) { // webpackBootstrap
2
+ /******/ // The module cache
3
+ /******/ var installedModules = {};
4
+ /******/
5
+ /******/ // The require function
6
+ /******/ function __webpack_require__(moduleId) {
7
+ /******/
8
+ /******/ // Check if module is in cache
9
+ /******/ if(installedModules[moduleId]) {
10
+ /******/ return installedModules[moduleId].exports;
11
+ /******/ }
12
+ /******/ // Create a new module (and put it into the cache)
13
+ /******/ var module = installedModules[moduleId] = {
14
+ /******/ i: moduleId,
15
+ /******/ l: false,
16
+ /******/ exports: {}
17
+ /******/ };
18
+ /******/
19
+ /******/ // Execute the module function
20
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
+ /******/
22
+ /******/ // Flag the module as loaded
23
+ /******/ module.l = true;
24
+ /******/
25
+ /******/ // Return the exports of the module
26
+ /******/ return module.exports;
27
+ /******/ }
28
+ /******/
29
+ /******/
30
+ /******/ // expose the modules object (__webpack_modules__)
31
+ /******/ __webpack_require__.m = modules;
32
+ /******/
33
+ /******/ // expose the module cache
34
+ /******/ __webpack_require__.c = installedModules;
35
+ /******/
36
+ /******/ // define getter function for harmony exports
37
+ /******/ __webpack_require__.d = function(exports, name, getter) {
38
+ /******/ if(!__webpack_require__.o(exports, name)) {
39
+ /******/ Object.defineProperty(exports, name, {
40
+ /******/ configurable: false,
41
+ /******/ enumerable: true,
42
+ /******/ get: getter
43
+ /******/ });
44
+ /******/ }
45
+ /******/ };
46
+ /******/
47
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
48
+ /******/ __webpack_require__.n = function(module) {
49
+ /******/ var getter = module && module.__esModule ?
50
+ /******/ function getDefault() { return module['default']; } :
51
+ /******/ function getModuleExports() { return module; };
52
+ /******/ __webpack_require__.d(getter, 'a', getter);
53
+ /******/ return getter;
54
+ /******/ };
55
+ /******/
56
+ /******/ // Object.prototype.hasOwnProperty.call
57
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
58
+ /******/
59
+ /******/ // __webpack_public_path__
60
+ /******/ __webpack_require__.p = "";
61
+ /******/
62
+ /******/ // Load entry module and return exports
63
+ /******/ return __webpack_require__(__webpack_require__.s = 470);
64
+ /******/ })
65
+ /************************************************************************/
66
+ /******/ ([
67
+ /* 0 */
68
+ /***/ (function(module, exports, __webpack_require__) {
69
+
70
+ "use strict";
71
+ /* WEBPACK VAR INJECTION */(function(process) {
72
+
73
+ if (process.env.NODE_ENV === 'production') {
74
+ module.exports = __webpack_require__(471);
75
+ } else {
76
+ module.exports = __webpack_require__(472);
77
+ }
78
+
79
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
80
+
81
+ /***/ }),
82
+ /* 1 */
83
+ /***/ (function(module, exports) {
84
+
85
+ // shim for using process in browser
86
+ var process = module.exports = {};
87
+
88
+ // cached from whatever global is present so that test runners that stub it
89
+ // don't break things. But we need to wrap it in a try catch in case it is
90
+ // wrapped in strict mode code which doesn't define any globals. It's inside a
91
+ // function because try/catches deoptimize in certain engines.
92
+
93
+ var cachedSetTimeout;
94
+ var cachedClearTimeout;
95
+
96
+ function defaultSetTimout() {
97
+ throw new Error('setTimeout has not been defined');
98
+ }
99
+ function defaultClearTimeout () {
100
+ throw new Error('clearTimeout has not been defined');
101
+ }
102
+ (function () {
103
+ try {
104
+ if (typeof setTimeout === 'function') {
105
+ cachedSetTimeout = setTimeout;
106
+ } else {
107
+ cachedSetTimeout = defaultSetTimout;
108
+ }
109
+ } catch (e) {
110
+ cachedSetTimeout = defaultSetTimout;
111
+ }
112
+ try {
113
+ if (typeof clearTimeout === 'function') {
114
+ cachedClearTimeout = clearTimeout;
115
+ } else {
116
+ cachedClearTimeout = defaultClearTimeout;
117
+ }
118
+ } catch (e) {
119
+ cachedClearTimeout = defaultClearTimeout;
120
+ }
121
+ } ())
122
+ function runTimeout(fun) {
123
+ if (cachedSetTimeout === setTimeout) {
124
+ //normal enviroments in sane situations
125
+ return setTimeout(fun, 0);
126
+ }
127
+ // if setTimeout wasn't available but was latter defined
128
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
129
+ cachedSetTimeout = setTimeout;
130
+ return setTimeout(fun, 0);
131
+ }
132
+ try {
133
+ // when when somebody has screwed with setTimeout but no I.E. maddness
134
+ return cachedSetTimeout(fun, 0);
135
+ } catch(e){
136
+ try {
137
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
138
+ return cachedSetTimeout.call(null, fun, 0);
139
+ } catch(e){
140
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
141
+ return cachedSetTimeout.call(this, fun, 0);
142
+ }
143
+ }
144
+
145
+
146
+ }
147
+ function runClearTimeout(marker) {
148
+ if (cachedClearTimeout === clearTimeout) {
149
+ //normal enviroments in sane situations
150
+ return clearTimeout(marker);
151
+ }
152
+ // if clearTimeout wasn't available but was latter defined
153
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
154
+ cachedClearTimeout = clearTimeout;
155
+ return clearTimeout(marker);
156
+ }
157
+ try {
158
+ // when when somebody has screwed with setTimeout but no I.E. maddness
159
+ return cachedClearTimeout(marker);
160
+ } catch (e){
161
+ try {
162
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
163
+ return cachedClearTimeout.call(null, marker);
164
+ } catch (e){
165
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
166
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
167
+ return cachedClearTimeout.call(this, marker);
168
+ }
169
+ }
170
+
171
+
172
+
173
+ }
174
+ var queue = [];
175
+ var draining = false;
176
+ var currentQueue;
177
+ var queueIndex = -1;
178
+
179
+ function cleanUpNextTick() {
180
+ if (!draining || !currentQueue) {
181
+ return;
182
+ }
183
+ draining = false;
184
+ if (currentQueue.length) {
185
+ queue = currentQueue.concat(queue);
186
+ } else {
187
+ queueIndex = -1;
188
+ }
189
+ if (queue.length) {
190
+ drainQueue();
191
+ }
192
+ }
193
+
194
+ function drainQueue() {
195
+ if (draining) {
196
+ return;
197
+ }
198
+ var timeout = runTimeout(cleanUpNextTick);
199
+ draining = true;
200
+
201
+ var len = queue.length;
202
+ while(len) {
203
+ currentQueue = queue;
204
+ queue = [];
205
+ while (++queueIndex < len) {
206
+ if (currentQueue) {
207
+ currentQueue[queueIndex].run();
208
+ }
209
+ }
210
+ queueIndex = -1;
211
+ len = queue.length;
212
+ }
213
+ currentQueue = null;
214
+ draining = false;
215
+ runClearTimeout(timeout);
216
+ }
217
+
218
+ process.nextTick = function (fun) {
219
+ var args = new Array(arguments.length - 1);
220
+ if (arguments.length > 1) {
221
+ for (var i = 1; i < arguments.length; i++) {
222
+ args[i - 1] = arguments[i];
223
+ }
224
+ }
225
+ queue.push(new Item(fun, args));
226
+ if (queue.length === 1 && !draining) {
227
+ runTimeout(drainQueue);
228
+ }
229
+ };
230
+
231
+ // v8 likes predictible objects
232
+ function Item(fun, array) {
233
+ this.fun = fun;
234
+ this.array = array;
235
+ }
236
+ Item.prototype.run = function () {
237
+ this.fun.apply(null, this.array);
238
+ };
239
+ process.title = 'browser';
240
+ process.browser = true;
241
+ process.env = {};
242
+ process.argv = [];
243
+ process.version = ''; // empty string to avoid regexp issues
244
+ process.versions = {};
245
+
246
+ function noop() {}
247
+
248
+ process.on = noop;
249
+ process.addListener = noop;
250
+ process.once = noop;
251
+ process.off = noop;
252
+ process.removeListener = noop;
253
+ process.removeAllListeners = noop;
254
+ process.emit = noop;
255
+ process.prependListener = noop;
256
+ process.prependOnceListener = noop;
257
+
258
+ process.listeners = function (name) { return [] }
259
+
260
+ process.binding = function (name) {
261
+ throw new Error('process.binding is not supported');
262
+ };
263
+
264
+ process.cwd = function () { return '/' };
265
+ process.chdir = function (dir) {
266
+ throw new Error('process.chdir is not supported');
267
+ };
268
+ process.umask = function() { return 0; };
269
+
270
+
271
+ /***/ }),
272
+ /* 2 */
273
+ /***/ (function(module, exports, __webpack_require__) {
274
+
275
+ /* WEBPACK VAR INJECTION */(function(process) {/**
276
+ * Copyright (c) 2013-present, Facebook, Inc.
277
+ *
278
+ * This source code is licensed under the MIT license found in the
279
+ * LICENSE file in the root directory of this source tree.
280
+ */
281
+
282
+ if (process.env.NODE_ENV !== 'production') {
283
+ var ReactIs = __webpack_require__(19);
284
+
285
+ // By explicitly using `prop-types` you are opting into new development behavior.
286
+ // http://fb.me/prop-types-in-prod
287
+ var throwOnDirectAccess = true;
288
+ module.exports = __webpack_require__(482)(ReactIs.isElement, throwOnDirectAccess);
289
+ } else {
290
+ // By explicitly using `prop-types` you are opting into new production behavior.
291
+ // http://fb.me/prop-types-in-prod
292
+ module.exports = __webpack_require__(483)();
293
+ }
294
+
295
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
296
+
297
+ /***/ }),
298
+ /* 3 */
299
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
300
+
301
+ "use strict";
302
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _extends;
303
+ function _extends() {
304
+ _extends = Object.assign || function (target) {
305
+ for (var i = 1; i < arguments.length; i++) {
306
+ var source = arguments[i];
307
+
308
+ for (var key in source) {
309
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
310
+ target[key] = source[key];
311
+ }
312
+ }
313
+ }
314
+
315
+ return target;
316
+ };
317
+
318
+ return _extends.apply(this, arguments);
319
+ }
320
+
321
+ /***/ }),
322
+ /* 4 */
323
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
324
+
325
+ "use strict";
326
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutProperties;
327
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose__ = __webpack_require__(47);
328
+
329
+ function _objectWithoutProperties(source, excluded) {
330
+ if (source == null) return {};
331
+ var target = Object(__WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose__["a" /* default */])(source, excluded);
332
+ var key, i;
333
+
334
+ if (Object.getOwnPropertySymbols) {
335
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
336
+
337
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
338
+ key = sourceSymbolKeys[i];
339
+ if (excluded.indexOf(key) >= 0) continue;
340
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
341
+ target[key] = source[key];
342
+ }
343
+ }
344
+
345
+ return target;
346
+ }
347
+
348
+ /***/ }),
349
+ /* 5 */
350
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
351
+
352
+ "use strict";
353
+ function toVal(mix) {
354
+ var k, y, str='';
355
+
356
+ if (typeof mix === 'string' || typeof mix === 'number') {
357
+ str += mix;
358
+ } else if (typeof mix === 'object') {
359
+ if (Array.isArray(mix)) {
360
+ for (k=0; k < mix.length; k++) {
361
+ if (mix[k]) {
362
+ if (y = toVal(mix[k])) {
363
+ str && (str += ' ');
364
+ str += y;
365
+ }
366
+ }
367
+ }
368
+ } else {
369
+ for (k in mix) {
370
+ if (mix[k]) {
371
+ str && (str += ' ');
372
+ str += k;
373
+ }
374
+ }
375
+ }
376
+ }
377
+
378
+ return str;
379
+ }
380
+
381
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
382
+ var i=0, tmp, x, str='';
383
+ while (i < arguments.length) {
384
+ if (tmp = arguments[i++]) {
385
+ if (x = toVal(tmp)) {
386
+ str && (str += ' ');
387
+ str += x
388
+ }
389
+ }
390
+ }
391
+ return str;
392
+ });
393
+
394
+
395
+ /***/ }),
396
+ /* 6 */
397
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
398
+
399
+ "use strict";
400
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
401
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_styles__ = __webpack_require__(27);
402
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(75);
403
+
404
+
405
+
406
+
407
+ function withStyles(stylesOrCreator, options) {
408
+ return Object(__WEBPACK_IMPORTED_MODULE_1__material_ui_styles__["g" /* withStyles */])(stylesOrCreator, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
409
+ defaultTheme: __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */]
410
+ }, options));
411
+ }
412
+
413
+ /* harmony default export */ __webpack_exports__["a"] = (withStyles);
414
+
415
+ /***/ }),
416
+ /* 7 */
417
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
418
+
419
+ "use strict";
420
+ /* harmony export (immutable) */ __webpack_exports__["a"] = requiredArgs;
421
+ function requiredArgs(required, args) {
422
+ if (args.length < required) {
423
+ throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
424
+ }
425
+ }
426
+
427
+ /***/ }),
428
+ /* 8 */
429
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
430
+
431
+ "use strict";
432
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__ = __webpack_require__(141);
433
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__["a"]; });
434
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__deepmerge__ = __webpack_require__(501);
435
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_1__deepmerge__["a"]; });
436
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__ = __webpack_require__(502);
437
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__["a"]; });
438
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__ = __webpack_require__(503);
439
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__["a"]; });
440
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__exactProp__ = __webpack_require__(504);
441
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_4__exactProp__["a"]; });
442
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__ = __webpack_require__(505);
443
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__["a"]; });
444
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__getDisplayName__ = __webpack_require__(506);
445
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_6__getDisplayName__["a"]; });
446
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__ = __webpack_require__(507);
447
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__["a"]; });
448
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__ = __webpack_require__(508);
449
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__["a"]; });
450
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__refType__ = __webpack_require__(509);
451
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_9__refType__["a"]; });
452
+ /** @license Material-UI v4.11.2
453
+ *
454
+ * This source code is licensed under the MIT license found in the
455
+ * LICENSE file in the root directory of this source tree.
456
+ */
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+ /***/ }),
469
+ /* 9 */
470
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
471
+
472
+ "use strict";
473
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
474
+ /* harmony export (immutable) */ __webpack_exports__["default"] = toDate;
475
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_requiredArgs_index_js__ = __webpack_require__(7);
476
+
477
+ /**
478
+ * @name toDate
479
+ * @category Common Helpers
480
+ * @summary Convert the given argument to an instance of Date.
481
+ *
482
+ * @description
483
+ * Convert the given argument to an instance of Date.
484
+ *
485
+ * If the argument is an instance of Date, the function returns its clone.
486
+ *
487
+ * If the argument is a number, it is treated as a timestamp.
488
+ *
489
+ * If the argument is none of the above, the function returns Invalid Date.
490
+ *
491
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
492
+ *
493
+ * @param {Date|Number} argument - the value to convert
494
+ * @returns {Date} the parsed date in the local time zone
495
+ * @throws {TypeError} 1 argument required
496
+ *
497
+ * @example
498
+ * // Clone the date:
499
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
500
+ * //=> Tue Feb 11 2014 11:30:30
501
+ *
502
+ * @example
503
+ * // Convert the timestamp to date:
504
+ * const result = toDate(1392098430000)
505
+ * //=> Tue Feb 11 2014 11:30:30
506
+ */
507
+
508
+ function toDate(argument) {
509
+ Object(__WEBPACK_IMPORTED_MODULE_0__lib_requiredArgs_index_js__["a" /* default */])(1, arguments);
510
+ var argStr = Object.prototype.toString.call(argument); // Clone the date
511
+
512
+ if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
513
+ // Prevent the date to lose the milliseconds when passed to new Date() in IE10
514
+ return new Date(argument.getTime());
515
+ } else if (typeof argument === 'number' || argStr === '[object Number]') {
516
+ return new Date(argument);
517
+ } else {
518
+ if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
519
+ // eslint-disable-next-line no-console
520
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console
521
+
522
+ console.warn(new Error().stack);
523
+ }
524
+
525
+ return new Date(NaN);
526
+ }
527
+ }
528
+
529
+ /***/ }),
530
+ /* 10 */
531
+ /***/ (function(module, exports, __webpack_require__) {
532
+
533
+ "use strict";
534
+
535
+
536
+ Object.defineProperty(exports, "__esModule", {
537
+ value: true
538
+ });
539
+ exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;
540
+
541
+ var _flattenNames = __webpack_require__(800);
542
+
543
+ var _flattenNames2 = _interopRequireDefault(_flattenNames);
544
+
545
+ var _mergeClasses = __webpack_require__(876);
546
+
547
+ var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
548
+
549
+ var _autoprefix = __webpack_require__(902);
550
+
551
+ var _autoprefix2 = _interopRequireDefault(_autoprefix);
552
+
553
+ var _hover2 = __webpack_require__(903);
554
+
555
+ var _hover3 = _interopRequireDefault(_hover2);
556
+
557
+ var _active = __webpack_require__(904);
558
+
559
+ var _active2 = _interopRequireDefault(_active);
560
+
561
+ var _loop2 = __webpack_require__(905);
562
+
563
+ var _loop3 = _interopRequireDefault(_loop2);
564
+
565
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
566
+
567
+ exports.hover = _hover3.default;
568
+ exports.handleHover = _hover3.default;
569
+ exports.handleActive = _active2.default;
570
+ exports.loop = _loop3.default;
571
+ var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
572
+ for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
573
+ activations[_key - 1] = arguments[_key];
574
+ }
575
+
576
+ var activeNames = (0, _flattenNames2.default)(activations);
577
+ var merged = (0, _mergeClasses2.default)(classes, activeNames);
578
+ return (0, _autoprefix2.default)(merged);
579
+ };
580
+
581
+ exports.default = ReactCSS;
582
+
583
+ /***/ }),
584
+ /* 11 */
585
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
586
+
587
+ "use strict";
588
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = capitalize;
589
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(8);
590
+
591
+ // It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
592
+ //
593
+ // A strict capitalization should uppercase the first letter of each word a the sentence.
594
+ // We only handle the first word.
595
+ function capitalize(string) {
596
+ if (typeof string !== 'string') {
597
+ throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: capitalize(string) expects a string argument." : Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* formatMuiErrorMessage */])(7));
598
+ }
599
+
600
+ return string.charAt(0).toUpperCase() + string.slice(1);
601
+ }
602
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
603
+
604
+ /***/ }),
605
+ /* 12 */
606
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
607
+
608
+ "use strict";
609
+ /* harmony export (immutable) */ __webpack_exports__["a"] = toInteger;
610
+ function toInteger(dirtyNumber) {
611
+ if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
612
+ return NaN;
613
+ }
614
+
615
+ var number = Number(dirtyNumber);
616
+
617
+ if (isNaN(number)) {
618
+ return number;
619
+ }
620
+
621
+ return number < 0 ? Math.ceil(number) : Math.floor(number);
622
+ }
623
+
624
+ /***/ }),
625
+ /* 13 */
626
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
627
+
628
+ "use strict";
629
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__capitalize__ = __webpack_require__(11);
630
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__capitalize__["a"]; });
631
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createChainedFunction__ = __webpack_require__(65);
632
+ /* unused harmony reexport createChainedFunction */
633
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__ = __webpack_require__(24);
634
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__["a"]; });
635
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__debounce__ = __webpack_require__(55);
636
+ /* unused harmony reexport debounce */
637
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__deprecatedPropType__ = __webpack_require__(595);
638
+ /* unused harmony reexport deprecatedPropType */
639
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isMuiElement__ = __webpack_require__(80);
640
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__isMuiElement__["a"]; });
641
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ownerDocument__ = __webpack_require__(31);
642
+ /* unused harmony reexport ownerDocument */
643
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ownerWindow__ = __webpack_require__(102);
644
+ /* unused harmony reexport ownerWindow */
645
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__requirePropFactory__ = __webpack_require__(279);
646
+ /* unused harmony reexport requirePropFactory */
647
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__setRef__ = __webpack_require__(56);
648
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_9__setRef__["a"]; });
649
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__unsupportedProp__ = __webpack_require__(103);
650
+ /* unused harmony reexport unsupportedProp */
651
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useControlled__ = __webpack_require__(50);
652
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useControlled__["a"]; });
653
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__useEventCallback__ = __webpack_require__(44);
654
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__useEventCallback__["a"]; });
655
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__useForkRef__ = __webpack_require__(17);
656
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__useForkRef__["a"]; });
657
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__unstable_useId__ = __webpack_require__(104);
658
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_14__unstable_useId__["a"]; });
659
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__useIsFocusVisible__ = __webpack_require__(81);
660
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_15__useIsFocusVisible__["a"]; });
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+ // eslint-disable-next-line camelcase
675
+
676
+
677
+
678
+
679
+ /***/ }),
680
+ /* 14 */
681
+ /***/ (function(module, exports, __webpack_require__) {
682
+
683
+ "use strict";
684
+ /* WEBPACK VAR INJECTION */(function(process) {
685
+
686
+ function checkDCE() {
687
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
688
+ if (
689
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
690
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
691
+ ) {
692
+ return;
693
+ }
694
+ if (process.env.NODE_ENV !== 'production') {
695
+ // This branch is unreachable because this function is only called
696
+ // in production, but the condition is true only in development.
697
+ // Therefore if the branch is still here, dead code elimination wasn't
698
+ // properly applied.
699
+ // Don't change the message. React DevTools relies on it. Also make sure
700
+ // this message doesn't occur elsewhere in this function, or it will cause
701
+ // a false positive.
702
+ throw new Error('^_^');
703
+ }
704
+ try {
705
+ // Verify that the code above has been dead code eliminated (DCE'd).
706
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
707
+ } catch (err) {
708
+ // DevTools shouldn't crash React, no matter what.
709
+ // We should still report in case we break this code.
710
+ console.error(err);
711
+ }
712
+ }
713
+
714
+ if (process.env.NODE_ENV === 'production') {
715
+ // DCE check should happen before ReactDOM bundle executes so that
716
+ // DevTools can report bad minification during injection.
717
+ checkDCE();
718
+ module.exports = __webpack_require__(473);
719
+ } else {
720
+ module.exports = __webpack_require__(476);
721
+ }
722
+
723
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
724
+
725
+ /***/ }),
726
+ /* 15 */
727
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
728
+
729
+ "use strict";
730
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Alpha__ = __webpack_require__(906);
731
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Alpha__["a"]; });
732
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Checkboard__ = __webpack_require__(205);
733
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__Checkboard__["a"]; });
734
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__EditableInput__ = __webpack_require__(909);
735
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_2__EditableInput__["a"]; });
736
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Hue__ = __webpack_require__(910);
737
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_3__Hue__["a"]; });
738
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Raised__ = __webpack_require__(912);
739
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_4__Raised__["a"]; });
740
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Saturation__ = __webpack_require__(972);
741
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_5__Saturation__["a"]; });
742
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ColorWrap__ = __webpack_require__(432);
743
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_6__ColorWrap__["a"]; });
744
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Swatch__ = __webpack_require__(986);
745
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__Swatch__["a"]; });
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+ /***/ }),
756
+ /* 16 */
757
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
758
+
759
+ "use strict";
760
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__colorManipulator__ = __webpack_require__(22);
761
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["a"]; });
762
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["b"]; });
763
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["c"]; });
764
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["e"]; });
765
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createMuiTheme__ = __webpack_require__(146);
766
+ /* unused harmony reexport createMuiTheme */
767
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createMuiStrictModeTheme__ = __webpack_require__(586);
768
+ /* unused harmony reexport unstable_createMuiStrictModeTheme */
769
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createStyles__ = __webpack_require__(587);
770
+ /* unused harmony reexport createStyles */
771
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__makeStyles__ = __webpack_require__(588);
772
+ /* unused harmony reexport makeStyles */
773
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__responsiveFontSizes__ = __webpack_require__(589);
774
+ /* unused harmony reexport responsiveFontSizes */
775
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__styled__ = __webpack_require__(278);
776
+ /* unused harmony reexport styled */
777
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__transitions__ = __webpack_require__(41);
778
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_7__transitions__["b"]; });
779
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__useTheme__ = __webpack_require__(20);
780
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_8__useTheme__["a"]; });
781
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__withStyles__ = __webpack_require__(6);
782
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_9__withStyles__["a"]; });
783
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__withTheme__ = __webpack_require__(591);
784
+ /* unused harmony reexport withTheme */
785
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__material_ui_styles__ = __webpack_require__(27);
786
+ /* unused harmony reexport createGenerateClassName */
787
+ /* unused harmony reexport jssPreset */
788
+ /* unused harmony reexport ServerStyleSheets */
789
+ /* unused harmony reexport StylesProvider */
790
+ /* unused harmony reexport MuiThemeProvider */
791
+ /* unused harmony reexport ThemeProvider */
792
+
793
+ // eslint-disable-next-line camelcase
794
+
795
+
796
+
797
+
798
+
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+ /***/ }),
807
+ /* 17 */
808
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
809
+
810
+ "use strict";
811
+ /* harmony export (immutable) */ __webpack_exports__["a"] = useForkRef;
812
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
813
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
814
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__setRef__ = __webpack_require__(56);
815
+
816
+
817
+ function useForkRef(refA, refB) {
818
+ /**
819
+ * This will create a new function if the ref props change and are defined.
820
+ * This means react will call the old forkRef with `null` and the new forkRef
821
+ * with the ref. Cleanup naturally emerges from this behavior
822
+ */
823
+ return __WEBPACK_IMPORTED_MODULE_0_react__["useMemo"](function () {
824
+ if (refA == null && refB == null) {
825
+ return null;
826
+ }
827
+
828
+ return function (refValue) {
829
+ Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refA, refValue);
830
+ Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refB, refValue);
831
+ };
832
+ }, [refA, refB]);
833
+ }
834
+
835
+ /***/ }),
836
+ /* 18 */
837
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
838
+
839
+ "use strict";
840
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _defineProperty;
841
+ function _defineProperty(obj, key, value) {
842
+ if (key in obj) {
843
+ Object.defineProperty(obj, key, {
844
+ value: value,
845
+ enumerable: true,
846
+ configurable: true,
847
+ writable: true
848
+ });
849
+ } else {
850
+ obj[key] = value;
851
+ }
852
+
853
+ return obj;
854
+ }
855
+
856
+ /***/ }),
857
+ /* 19 */
858
+ /***/ (function(module, exports, __webpack_require__) {
859
+
860
+ "use strict";
861
+ /* WEBPACK VAR INJECTION */(function(process) {
862
+
863
+ if (process.env.NODE_ENV === 'production') {
864
+ module.exports = __webpack_require__(480);
865
+ } else {
866
+ module.exports = __webpack_require__(481);
867
+ }
868
+
869
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
870
+
871
+ /***/ }),
872
+ /* 20 */
873
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
874
+
875
+ "use strict";
876
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useTheme;
877
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_styles__ = __webpack_require__(27);
878
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
879
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
880
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(75);
881
+
882
+
883
+
884
+ function useTheme() {
885
+ var theme = Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_styles__["f" /* useTheme */])() || __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */];
886
+
887
+ if (process.env.NODE_ENV !== 'production') {
888
+ // eslint-disable-next-line react-hooks/rules-of-hooks
889
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.useDebugValue(theme);
890
+ }
891
+
892
+ return theme;
893
+ }
894
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
895
+
896
+ /***/ }),
897
+ /* 21 */
898
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
899
+
900
+ "use strict";
901
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ButtonBase__ = __webpack_require__(600);
902
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ButtonBase__["a"]; });
903
+
904
+
905
+ /***/ }),
906
+ /* 22 */
907
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
908
+
909
+ "use strict";
910
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export hexToRgb */
911
+ /* unused harmony export rgbToHex */
912
+ /* unused harmony export hslToRgb */
913
+ /* unused harmony export decomposeColor */
914
+ /* unused harmony export recomposeColor */
915
+ /* harmony export (immutable) */ __webpack_exports__["d"] = getContrastRatio;
916
+ /* unused harmony export getLuminance */
917
+ /* harmony export (immutable) */ __webpack_exports__["b"] = emphasize;
918
+ /* harmony export (immutable) */ __webpack_exports__["c"] = fade;
919
+ /* harmony export (immutable) */ __webpack_exports__["a"] = darken;
920
+ /* harmony export (immutable) */ __webpack_exports__["e"] = lighten;
921
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(8);
922
+
923
+
924
+ /* eslint-disable no-use-before-define */
925
+
926
+ /**
927
+ * Returns a number whose value is limited to the given range.
928
+ *
929
+ * @param {number} value The value to be clamped
930
+ * @param {number} min The lower boundary of the output range
931
+ * @param {number} max The upper boundary of the output range
932
+ * @returns {number} A number in the range [min, max]
933
+ */
934
+ function clamp(value) {
935
+ var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
936
+ var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
937
+
938
+ if (process.env.NODE_ENV !== 'production') {
939
+ if (value < min || value > max) {
940
+ console.error("Material-UI: The value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "]."));
941
+ }
942
+ }
943
+
944
+ return Math.min(Math.max(min, value), max);
945
+ }
946
+ /**
947
+ * Converts a color from CSS hex format to CSS rgb format.
948
+ *
949
+ * @param {string} color - Hex color, i.e. #nnn or #nnnnnn
950
+ * @returns {string} A CSS rgb color string
951
+ */
952
+
953
+
954
+ function hexToRgb(color) {
955
+ color = color.substr(1);
956
+ var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g');
957
+ var colors = color.match(re);
958
+
959
+ if (colors && colors[0].length === 1) {
960
+ colors = colors.map(function (n) {
961
+ return n + n;
962
+ });
963
+ }
964
+
965
+ return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) {
966
+ return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
967
+ }).join(', '), ")") : '';
968
+ }
969
+
970
+ function intToHex(int) {
971
+ var hex = int.toString(16);
972
+ return hex.length === 1 ? "0".concat(hex) : hex;
973
+ }
974
+ /**
975
+ * Converts a color from CSS rgb format to CSS hex format.
976
+ *
977
+ * @param {string} color - RGB color, i.e. rgb(n, n, n)
978
+ * @returns {string} A CSS rgb color string, i.e. #nnnnnn
979
+ */
980
+
981
+
982
+ function rgbToHex(color) {
983
+ // Idempotent
984
+ if (color.indexOf('#') === 0) {
985
+ return color;
986
+ }
987
+
988
+ var _decomposeColor = decomposeColor(color),
989
+ values = _decomposeColor.values;
990
+
991
+ return "#".concat(values.map(function (n) {
992
+ return intToHex(n);
993
+ }).join(''));
994
+ }
995
+ /**
996
+ * Converts a color from hsl format to rgb format.
997
+ *
998
+ * @param {string} color - HSL color values
999
+ * @returns {string} rgb color values
1000
+ */
1001
+
1002
+ function hslToRgb(color) {
1003
+ color = decomposeColor(color);
1004
+ var _color = color,
1005
+ values = _color.values;
1006
+ var h = values[0];
1007
+ var s = values[1] / 100;
1008
+ var l = values[2] / 100;
1009
+ var a = s * Math.min(l, 1 - l);
1010
+
1011
+ var f = function f(n) {
1012
+ var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12;
1013
+ return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
1014
+ };
1015
+
1016
+ var type = 'rgb';
1017
+ var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
1018
+
1019
+ if (color.type === 'hsla') {
1020
+ type += 'a';
1021
+ rgb.push(values[3]);
1022
+ }
1023
+
1024
+ return recomposeColor({
1025
+ type: type,
1026
+ values: rgb
1027
+ });
1028
+ }
1029
+ /**
1030
+ * Returns an object with the type and values of a color.
1031
+ *
1032
+ * Note: Does not support rgb % values.
1033
+ *
1034
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1035
+ * @returns {object} - A MUI color object: {type: string, values: number[]}
1036
+ */
1037
+
1038
+ function decomposeColor(color) {
1039
+ // Idempotent
1040
+ if (color.type) {
1041
+ return color;
1042
+ }
1043
+
1044
+ if (color.charAt(0) === '#') {
1045
+ return decomposeColor(hexToRgb(color));
1046
+ }
1047
+
1048
+ var marker = color.indexOf('(');
1049
+ var type = color.substring(0, marker);
1050
+
1051
+ if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {
1052
+ throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: Unsupported `".concat(color, "` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().") : Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* formatMuiErrorMessage */])(3, color));
1053
+ }
1054
+
1055
+ var values = color.substring(marker + 1, color.length - 1).split(',');
1056
+ values = values.map(function (value) {
1057
+ return parseFloat(value);
1058
+ });
1059
+ return {
1060
+ type: type,
1061
+ values: values
1062
+ };
1063
+ }
1064
+ /**
1065
+ * Converts a color object with type and values to a string.
1066
+ *
1067
+ * @param {object} color - Decomposed color
1068
+ * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
1069
+ * @param {array} color.values - [n,n,n] or [n,n,n,n]
1070
+ * @returns {string} A CSS color string
1071
+ */
1072
+
1073
+ function recomposeColor(color) {
1074
+ var type = color.type;
1075
+ var values = color.values;
1076
+
1077
+ if (type.indexOf('rgb') !== -1) {
1078
+ // Only convert the first 3 values to int (i.e. not alpha)
1079
+ values = values.map(function (n, i) {
1080
+ return i < 3 ? parseInt(n, 10) : n;
1081
+ });
1082
+ } else if (type.indexOf('hsl') !== -1) {
1083
+ values[1] = "".concat(values[1], "%");
1084
+ values[2] = "".concat(values[2], "%");
1085
+ }
1086
+
1087
+ return "".concat(type, "(").concat(values.join(', '), ")");
1088
+ }
1089
+ /**
1090
+ * Calculates the contrast ratio between two colors.
1091
+ *
1092
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1093
+ *
1094
+ * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1095
+ * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1096
+ * @returns {number} A contrast ratio value in the range 0 - 21.
1097
+ */
1098
+
1099
+ function getContrastRatio(foreground, background) {
1100
+ var lumA = getLuminance(foreground);
1101
+ var lumB = getLuminance(background);
1102
+ return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
1103
+ }
1104
+ /**
1105
+ * The relative brightness of any point in a color space,
1106
+ * normalized to 0 for darkest black and 1 for lightest white.
1107
+ *
1108
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1109
+ *
1110
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1111
+ * @returns {number} The relative brightness of the color in the range 0 - 1
1112
+ */
1113
+
1114
+ function getLuminance(color) {
1115
+ color = decomposeColor(color);
1116
+ var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values;
1117
+ rgb = rgb.map(function (val) {
1118
+ val /= 255; // normalized
1119
+
1120
+ return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
1121
+ }); // Truncate at 3 digits
1122
+
1123
+ return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
1124
+ }
1125
+ /**
1126
+ * Darken or lighten a color, depending on its luminance.
1127
+ * Light colors are darkened, dark colors are lightened.
1128
+ *
1129
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1130
+ * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
1131
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
1132
+ */
1133
+
1134
+ function emphasize(color) {
1135
+ var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
1136
+ return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
1137
+ }
1138
+ /**
1139
+ * Set the absolute transparency of a color.
1140
+ * Any existing alpha values are overwritten.
1141
+ *
1142
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1143
+ * @param {number} value - value to set the alpha channel to in the range 0 -1
1144
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
1145
+ */
1146
+
1147
+ function fade(color, value) {
1148
+ color = decomposeColor(color);
1149
+ value = clamp(value);
1150
+
1151
+ if (color.type === 'rgb' || color.type === 'hsl') {
1152
+ color.type += 'a';
1153
+ }
1154
+
1155
+ color.values[3] = value;
1156
+ return recomposeColor(color);
1157
+ }
1158
+ /**
1159
+ * Darkens a color.
1160
+ *
1161
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1162
+ * @param {number} coefficient - multiplier in the range 0 - 1
1163
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
1164
+ */
1165
+
1166
+ function darken(color, coefficient) {
1167
+ color = decomposeColor(color);
1168
+ coefficient = clamp(coefficient);
1169
+
1170
+ if (color.type.indexOf('hsl') !== -1) {
1171
+ color.values[2] *= 1 - coefficient;
1172
+ } else if (color.type.indexOf('rgb') !== -1) {
1173
+ for (var i = 0; i < 3; i += 1) {
1174
+ color.values[i] *= 1 - coefficient;
1175
+ }
1176
+ }
1177
+
1178
+ return recomposeColor(color);
1179
+ }
1180
+ /**
1181
+ * Lightens a color.
1182
+ *
1183
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1184
+ * @param {number} coefficient - multiplier in the range 0 - 1
1185
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
1186
+ */
1187
+
1188
+ function lighten(color, coefficient) {
1189
+ color = decomposeColor(color);
1190
+ coefficient = clamp(coefficient);
1191
+
1192
+ if (color.type.indexOf('hsl') !== -1) {
1193
+ color.values[2] += (100 - color.values[2]) * coefficient;
1194
+ } else if (color.type.indexOf('rgb') !== -1) {
1195
+ for (var i = 0; i < 3; i += 1) {
1196
+ color.values[i] += (255 - color.values[i]) * coefficient;
1197
+ }
1198
+ }
1199
+
1200
+ return recomposeColor(color);
1201
+ }
1202
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1203
+
1204
+ /***/ }),
1205
+ /* 23 */
1206
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1207
+
1208
+ "use strict";
1209
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _slicedToArray;
1210
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__ = __webpack_require__(262);
1211
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit__ = __webpack_require__(545);
1212
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(144);
1213
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableRest__ = __webpack_require__(263);
1214
+
1215
+
1216
+
1217
+
1218
+ function _slicedToArray(arr, i) {
1219
+ return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableRest__["a" /* default */])();
1220
+ }
1221
+
1222
+ /***/ }),
1223
+ /* 24 */
1224
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1225
+
1226
+ "use strict";
1227
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createSvgIcon;
1228
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
1229
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
1230
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
1231
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SvgIcon__ = __webpack_require__(101);
1232
+
1233
+
1234
+
1235
+ /**
1236
+ * Private module reserved for @material-ui/x packages.
1237
+ */
1238
+
1239
+ function createSvgIcon(path, displayName) {
1240
+ var Component = function Component(props, ref) {
1241
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__SvgIcon__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
1242
+ ref: ref
1243
+ }, props), path);
1244
+ };
1245
+
1246
+ if (process.env.NODE_ENV !== 'production') {
1247
+ // Need to set `displayName` on the inner component for React.memo.
1248
+ // React prior to 16.14 ignores `displayName` on the wrapper.
1249
+ Component.displayName = "".concat(displayName, "Icon");
1250
+ }
1251
+
1252
+ Component.muiName = __WEBPACK_IMPORTED_MODULE_2__SvgIcon__["a" /* default */].muiName;
1253
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.memo( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.forwardRef(Component));
1254
+ }
1255
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1256
+
1257
+ /***/ }),
1258
+ /* 25 */
1259
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1260
+
1261
+ "use strict";
1262
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Paper__ = __webpack_require__(592);
1263
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Paper__["a"]; });
1264
+
1265
+
1266
+ /***/ }),
1267
+ /* 26 */
1268
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1269
+
1270
+ "use strict";
1271
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseMerge_js__ = __webpack_require__(913);
1272
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createAssigner_js__ = __webpack_require__(963);
1273
+
1274
+
1275
+
1276
+ /**
1277
+ * This method is like `_.assign` except that it recursively merges own and
1278
+ * inherited enumerable string keyed properties of source objects into the
1279
+ * destination object. Source properties that resolve to `undefined` are
1280
+ * skipped if a destination value exists. Array and plain object properties
1281
+ * are merged recursively. Other objects and value types are overridden by
1282
+ * assignment. Source objects are applied from left to right. Subsequent
1283
+ * sources overwrite property assignments of previous sources.
1284
+ *
1285
+ * **Note:** This method mutates `object`.
1286
+ *
1287
+ * @static
1288
+ * @memberOf _
1289
+ * @since 0.5.0
1290
+ * @category Object
1291
+ * @param {Object} object The destination object.
1292
+ * @param {...Object} [sources] The source objects.
1293
+ * @returns {Object} Returns `object`.
1294
+ * @example
1295
+ *
1296
+ * var object = {
1297
+ * 'a': [{ 'b': 2 }, { 'd': 4 }]
1298
+ * };
1299
+ *
1300
+ * var other = {
1301
+ * 'a': [{ 'c': 3 }, { 'e': 5 }]
1302
+ * };
1303
+ *
1304
+ * _.merge(object, other);
1305
+ * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
1306
+ */
1307
+ var merge = Object(__WEBPACK_IMPORTED_MODULE_1__createAssigner_js__["a" /* default */])(function(object, source, srcIndex) {
1308
+ Object(__WEBPACK_IMPORTED_MODULE_0__baseMerge_js__["a" /* default */])(object, source, srcIndex);
1309
+ });
1310
+
1311
+ /* harmony default export */ __webpack_exports__["a"] = (merge);
1312
+
1313
+
1314
+ /***/ }),
1315
+ /* 27 */
1316
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1317
+
1318
+ "use strict";
1319
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(8);
1320
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createGenerateClassName__ = __webpack_require__(92);
1321
+ /* unused harmony reexport createGenerateClassName */
1322
+ /* unused harmony namespace reexport */
1323
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createStyles__ = __webpack_require__(231);
1324
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_2__createStyles__["a"]; });
1325
+ /* unused harmony namespace reexport */
1326
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__getThemeProps__ = __webpack_require__(142);
1327
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__getThemeProps__["a"]; });
1328
+ /* unused harmony namespace reexport */
1329
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__jssPreset__ = __webpack_require__(143);
1330
+ /* unused harmony reexport jssPreset */
1331
+ /* unused harmony namespace reexport */
1332
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__makeStyles__ = __webpack_require__(94);
1333
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__makeStyles__["a"]; });
1334
+ /* unused harmony namespace reexport */
1335
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mergeClasses__ = __webpack_require__(145);
1336
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_6__mergeClasses__["a"]; });
1337
+ /* unused harmony namespace reexport */
1338
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ServerStyleSheets__ = __webpack_require__(238);
1339
+ /* unused harmony reexport ServerStyleSheets */
1340
+ /* unused harmony namespace reexport */
1341
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__styled__ = __webpack_require__(239);
1342
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_8__styled__["a"]; });
1343
+ /* unused harmony namespace reexport */
1344
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StylesProvider__ = __webpack_require__(95);
1345
+ /* unused harmony reexport StylesProvider */
1346
+ /* unused harmony namespace reexport */
1347
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ThemeProvider__ = __webpack_require__(240);
1348
+ /* unused harmony reexport ThemeProvider */
1349
+ /* unused harmony namespace reexport */
1350
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useTheme__ = __webpack_require__(64);
1351
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useTheme__["a"]; });
1352
+ /* unused harmony namespace reexport */
1353
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__withStyles__ = __webpack_require__(241);
1354
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__withStyles__["a"]; });
1355
+ /* unused harmony namespace reexport */
1356
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__withTheme__ = __webpack_require__(242);
1357
+ /* unused harmony reexport withTheme */
1358
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__withTheme__["a"]; });
1359
+ /** @license Material-UI v4.11.2
1360
+ *
1361
+ * This source code is licensed under the MIT license found in the
1362
+ * LICENSE file in the root directory of this source tree.
1363
+ */
1364
+ /* eslint-disable import/export */
1365
+
1366
+ /* Warning if there are several instances of @material-ui/styles */
1367
+
1368
+ if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {
1369
+ __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] = __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] || 0;
1370
+
1371
+ if (__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] === 1) {
1372
+ console.warn(['It looks like there are several instances of `@material-ui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://material-ui.com/r/styles-instance-warning for more info.'].join('\n'));
1373
+ }
1374
+
1375
+ __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] += 1;
1376
+ }
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+
1389
+
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1405
+
1406
+ /***/ }),
1407
+ /* 28 */
1408
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1409
+
1410
+ "use strict";
1411
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Typography__ = __webpack_require__(640);
1412
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Typography__["a"]; });
1413
+
1414
+
1415
+ /***/ }),
1416
+ /* 29 */
1417
+ /***/ (function(module, exports, __webpack_require__) {
1418
+
1419
+ "use strict";
1420
+
1421
+ var strictUriEncode = __webpack_require__(489);
1422
+ var objectAssign = __webpack_require__(63);
1423
+ var decodeComponent = __webpack_require__(490);
1424
+
1425
+ function encoderForArrayFormat(opts) {
1426
+ switch (opts.arrayFormat) {
1427
+ case 'index':
1428
+ return function (key, value, index) {
1429
+ return value === null ? [
1430
+ encode(key, opts),
1431
+ '[',
1432
+ index,
1433
+ ']'
1434
+ ].join('') : [
1435
+ encode(key, opts),
1436
+ '[',
1437
+ encode(index, opts),
1438
+ ']=',
1439
+ encode(value, opts)
1440
+ ].join('');
1441
+ };
1442
+
1443
+ case 'bracket':
1444
+ return function (key, value) {
1445
+ return value === null ? encode(key, opts) : [
1446
+ encode(key, opts),
1447
+ '[]=',
1448
+ encode(value, opts)
1449
+ ].join('');
1450
+ };
1451
+
1452
+ default:
1453
+ return function (key, value) {
1454
+ return value === null ? encode(key, opts) : [
1455
+ encode(key, opts),
1456
+ '=',
1457
+ encode(value, opts)
1458
+ ].join('');
1459
+ };
1460
+ }
1461
+ }
1462
+
1463
+ function parserForArrayFormat(opts) {
1464
+ var result;
1465
+
1466
+ switch (opts.arrayFormat) {
1467
+ case 'index':
1468
+ return function (key, value, accumulator) {
1469
+ result = /\[(\d*)\]$/.exec(key);
1470
+
1471
+ key = key.replace(/\[\d*\]$/, '');
1472
+
1473
+ if (!result) {
1474
+ accumulator[key] = value;
1475
+ return;
1476
+ }
1477
+
1478
+ if (accumulator[key] === undefined) {
1479
+ accumulator[key] = {};
1480
+ }
1481
+
1482
+ accumulator[key][result[1]] = value;
1483
+ };
1484
+
1485
+ case 'bracket':
1486
+ return function (key, value, accumulator) {
1487
+ result = /(\[\])$/.exec(key);
1488
+ key = key.replace(/\[\]$/, '');
1489
+
1490
+ if (!result) {
1491
+ accumulator[key] = value;
1492
+ return;
1493
+ } else if (accumulator[key] === undefined) {
1494
+ accumulator[key] = [value];
1495
+ return;
1496
+ }
1497
+
1498
+ accumulator[key] = [].concat(accumulator[key], value);
1499
+ };
1500
+
1501
+ default:
1502
+ return function (key, value, accumulator) {
1503
+ if (accumulator[key] === undefined) {
1504
+ accumulator[key] = value;
1505
+ return;
1506
+ }
1507
+
1508
+ accumulator[key] = [].concat(accumulator[key], value);
1509
+ };
1510
+ }
1511
+ }
1512
+
1513
+ function encode(value, opts) {
1514
+ if (opts.encode) {
1515
+ return opts.strict ? strictUriEncode(value) : encodeURIComponent(value);
1516
+ }
1517
+
1518
+ return value;
1519
+ }
1520
+
1521
+ function keysSorter(input) {
1522
+ if (Array.isArray(input)) {
1523
+ return input.sort();
1524
+ } else if (typeof input === 'object') {
1525
+ return keysSorter(Object.keys(input)).sort(function (a, b) {
1526
+ return Number(a) - Number(b);
1527
+ }).map(function (key) {
1528
+ return input[key];
1529
+ });
1530
+ }
1531
+
1532
+ return input;
1533
+ }
1534
+
1535
+ function extract(str) {
1536
+ var queryStart = str.indexOf('?');
1537
+ if (queryStart === -1) {
1538
+ return '';
1539
+ }
1540
+ return str.slice(queryStart + 1);
1541
+ }
1542
+
1543
+ function parse(str, opts) {
1544
+ opts = objectAssign({arrayFormat: 'none'}, opts);
1545
+
1546
+ var formatter = parserForArrayFormat(opts);
1547
+
1548
+ // Create an object with no prototype
1549
+ // https://github.com/sindresorhus/query-string/issues/47
1550
+ var ret = Object.create(null);
1551
+
1552
+ if (typeof str !== 'string') {
1553
+ return ret;
1554
+ }
1555
+
1556
+ str = str.trim().replace(/^[?#&]/, '');
1557
+
1558
+ if (!str) {
1559
+ return ret;
1560
+ }
1561
+
1562
+ str.split('&').forEach(function (param) {
1563
+ var parts = param.replace(/\+/g, ' ').split('=');
1564
+ // Firefox (pre 40) decodes `%3D` to `=`
1565
+ // https://github.com/sindresorhus/query-string/pull/37
1566
+ var key = parts.shift();
1567
+ var val = parts.length > 0 ? parts.join('=') : undefined;
1568
+
1569
+ // missing `=` should be `null`:
1570
+ // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters
1571
+ val = val === undefined ? null : decodeComponent(val);
1572
+
1573
+ formatter(decodeComponent(key), val, ret);
1574
+ });
1575
+
1576
+ return Object.keys(ret).sort().reduce(function (result, key) {
1577
+ var val = ret[key];
1578
+ if (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {
1579
+ // Sort object keys, not values
1580
+ result[key] = keysSorter(val);
1581
+ } else {
1582
+ result[key] = val;
1583
+ }
1584
+
1585
+ return result;
1586
+ }, Object.create(null));
1587
+ }
1588
+
1589
+ exports.extract = extract;
1590
+ exports.parse = parse;
1591
+
1592
+ exports.stringify = function (obj, opts) {
1593
+ var defaults = {
1594
+ encode: true,
1595
+ strict: true,
1596
+ arrayFormat: 'none'
1597
+ };
1598
+
1599
+ opts = objectAssign(defaults, opts);
1600
+
1601
+ if (opts.sort === false) {
1602
+ opts.sort = function () {};
1603
+ }
1604
+
1605
+ var formatter = encoderForArrayFormat(opts);
1606
+
1607
+ return obj ? Object.keys(obj).sort(opts.sort).map(function (key) {
1608
+ var val = obj[key];
1609
+
1610
+ if (val === undefined) {
1611
+ return '';
1612
+ }
1613
+
1614
+ if (val === null) {
1615
+ return encode(key, opts);
1616
+ }
1617
+
1618
+ if (Array.isArray(val)) {
1619
+ var result = [];
1620
+
1621
+ val.slice().forEach(function (val2) {
1622
+ if (val2 === undefined) {
1623
+ return;
1624
+ }
1625
+
1626
+ result.push(formatter(key, val2, result.length));
1627
+ });
1628
+
1629
+ return result.join('&');
1630
+ }
1631
+
1632
+ return encode(key, opts) + '=' + encode(val, opts);
1633
+ }).filter(function (x) {
1634
+ return x.length > 0;
1635
+ }).join('&') : '';
1636
+ };
1637
+
1638
+ exports.parseUrl = function (str, opts) {
1639
+ return {
1640
+ url: str.split('?')[0] || '',
1641
+ query: parse(extract(str), opts)
1642
+ };
1643
+ };
1644
+
1645
+
1646
+ /***/ }),
1647
+ /* 30 */
1648
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1649
+
1650
+ "use strict";
1651
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _toConsumableArray;
1652
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__ = __webpack_require__(522);
1653
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArray__ = __webpack_require__(234);
1654
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(144);
1655
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableSpread__ = __webpack_require__(523);
1656
+
1657
+
1658
+
1659
+
1660
+ function _toConsumableArray(arr) {
1661
+ return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableSpread__["a" /* default */])();
1662
+ }
1663
+
1664
+ /***/ }),
1665
+ /* 31 */
1666
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1667
+
1668
+ "use strict";
1669
+ /* harmony export (immutable) */ __webpack_exports__["a"] = ownerDocument;
1670
+ function ownerDocument(node) {
1671
+ return node && node.ownerDocument || document;
1672
+ }
1673
+
1674
+ /***/ }),
1675
+ /* 32 */
1676
+ /***/ (function(module, exports) {
1677
+
1678
+ /**
1679
+ * Checks if `value` is classified as an `Array` object.
1680
+ *
1681
+ * @static
1682
+ * @memberOf _
1683
+ * @since 0.1.0
1684
+ * @category Lang
1685
+ * @param {*} value The value to check.
1686
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1687
+ * @example
1688
+ *
1689
+ * _.isArray([1, 2, 3]);
1690
+ * // => true
1691
+ *
1692
+ * _.isArray(document.body.children);
1693
+ * // => false
1694
+ *
1695
+ * _.isArray('abc');
1696
+ * // => false
1697
+ *
1698
+ * _.isArray(_.noop);
1699
+ * // => false
1700
+ */
1701
+ var isArray = Array.isArray;
1702
+
1703
+ module.exports = isArray;
1704
+
1705
+
1706
+ /***/ }),
1707
+ /* 33 */
1708
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1709
+
1710
+ "use strict";
1711
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__ = __webpack_require__(420);
1712
+
1713
+
1714
+ /** Detect free variable `self`. */
1715
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1716
+
1717
+ /** Used as a reference to the global object. */
1718
+ var root = __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__["a" /* default */] || freeSelf || Function('return this')();
1719
+
1720
+ /* harmony default export */ __webpack_exports__["a"] = (root);
1721
+
1722
+
1723
+ /***/ }),
1724
+ /* 34 */
1725
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1726
+
1727
+ "use strict";
1728
+ /**
1729
+ * Checks if `value` is the
1730
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1731
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1732
+ *
1733
+ * @static
1734
+ * @memberOf _
1735
+ * @since 0.1.0
1736
+ * @category Lang
1737
+ * @param {*} value The value to check.
1738
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1739
+ * @example
1740
+ *
1741
+ * _.isObject({});
1742
+ * // => true
1743
+ *
1744
+ * _.isObject([1, 2, 3]);
1745
+ * // => true
1746
+ *
1747
+ * _.isObject(_.noop);
1748
+ * // => true
1749
+ *
1750
+ * _.isObject(null);
1751
+ * // => false
1752
+ */
1753
+ function isObject(value) {
1754
+ var type = typeof value;
1755
+ return value != null && (type == 'object' || type == 'function');
1756
+ }
1757
+
1758
+ /* harmony default export */ __webpack_exports__["a"] = (isObject);
1759
+
1760
+
1761
+ /***/ }),
1762
+ /* 35 */
1763
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1764
+
1765
+ "use strict";
1766
+ /**
1767
+ * Checks if `value` is classified as an `Array` object.
1768
+ *
1769
+ * @static
1770
+ * @memberOf _
1771
+ * @since 0.1.0
1772
+ * @category Lang
1773
+ * @param {*} value The value to check.
1774
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1775
+ * @example
1776
+ *
1777
+ * _.isArray([1, 2, 3]);
1778
+ * // => true
1779
+ *
1780
+ * _.isArray(document.body.children);
1781
+ * // => false
1782
+ *
1783
+ * _.isArray('abc');
1784
+ * // => false
1785
+ *
1786
+ * _.isArray(_.noop);
1787
+ * // => false
1788
+ */
1789
+ var isArray = Array.isArray;
1790
+
1791
+ /* harmony default export */ __webpack_exports__["a"] = (isArray);
1792
+
1793
+
1794
+ /***/ }),
1795
+ /* 36 */
1796
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1797
+
1798
+ "use strict";
1799
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return simpleCheckForValidColor; });
1800
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return toState; });
1801
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isValidHex; });
1802
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getContrastingColor; });
1803
+ /* unused harmony export red */
1804
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isvalidColorString; });
1805
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_es_each__ = __webpack_require__(977);
1806
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2__ = __webpack_require__(985);
1807
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_tinycolor2__);
1808
+
1809
+
1810
+
1811
+ var simpleCheckForValidColor = function simpleCheckForValidColor(data) {
1812
+ var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];
1813
+ var checked = 0;
1814
+ var passed = 0;
1815
+ Object(__WEBPACK_IMPORTED_MODULE_0_lodash_es_each__["a" /* default */])(keysToCheck, function (letter) {
1816
+ if (data[letter]) {
1817
+ checked += 1;
1818
+ if (!isNaN(data[letter])) {
1819
+ passed += 1;
1820
+ }
1821
+ if (letter === 's' || letter === 'l') {
1822
+ var percentPatt = /^\d+%$/;
1823
+ if (percentPatt.test(data[letter])) {
1824
+ passed += 1;
1825
+ }
1826
+ }
1827
+ }
1828
+ });
1829
+ return checked === passed ? data : false;
1830
+ };
1831
+
1832
+ var toState = function toState(data, oldHue) {
1833
+ var color = data.hex ? __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data.hex) : __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data);
1834
+ var hsl = color.toHsl();
1835
+ var hsv = color.toHsv();
1836
+ var rgb = color.toRgb();
1837
+ var hex = color.toHex();
1838
+ if (hsl.s === 0) {
1839
+ hsl.h = oldHue || 0;
1840
+ hsv.h = oldHue || 0;
1841
+ }
1842
+ var transparent = hex === '000000' && rgb.a === 0;
1843
+
1844
+ return {
1845
+ hsl: hsl,
1846
+ hex: transparent ? 'transparent' : '#' + hex,
1847
+ rgb: rgb,
1848
+ hsv: hsv,
1849
+ oldHue: data.h || oldHue || hsl.h,
1850
+ source: data.source
1851
+ };
1852
+ };
1853
+
1854
+ var isValidHex = function isValidHex(hex) {
1855
+ if (hex === 'transparent') {
1856
+ return true;
1857
+ }
1858
+ // disable hex4 and hex8
1859
+ var lh = String(hex).charAt(0) === '#' ? 1 : 0;
1860
+ return hex.length !== 4 + lh && hex.length < 7 + lh && __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(hex).isValid();
1861
+ };
1862
+
1863
+ var getContrastingColor = function getContrastingColor(data) {
1864
+ if (!data) {
1865
+ return '#fff';
1866
+ }
1867
+ var col = toState(data);
1868
+ if (col.hex === 'transparent') {
1869
+ return 'rgba(0,0,0,0.4)';
1870
+ }
1871
+ var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000;
1872
+ return yiq >= 128 ? '#000' : '#fff';
1873
+ };
1874
+
1875
+ var red = {
1876
+ hsl: { a: 1, h: 0, l: 0.5, s: 1 },
1877
+ hex: '#ff0000',
1878
+ rgb: { r: 255, g: 0, b: 0, a: 1 },
1879
+ hsv: { h: 0, s: 1, v: 1, a: 1 }
1880
+ };
1881
+
1882
+ var isvalidColorString = function isvalidColorString(string, type) {
1883
+ var stringWithoutDegree = string.replace('°', '');
1884
+ return __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(type + ' (' + stringWithoutDegree + ')')._ok;
1885
+ };
1886
+
1887
+ /***/ }),
1888
+ /* 37 */
1889
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1890
+
1891
+ "use strict";
1892
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose;
1893
+ function _inheritsLoose(subClass, superClass) {
1894
+ subClass.prototype = Object.create(superClass.prototype);
1895
+ subClass.prototype.constructor = subClass;
1896
+ subClass.__proto__ = superClass;
1897
+ }
1898
+
1899
+ /***/ }),
1900
+ /* 38 */
1901
+ /***/ (function(module, exports) {
1902
+
1903
+ var g;
1904
 
1905
+ // This works in non-strict mode
1906
+ g = (function() {
1907
+ return this;
1908
+ })();
 
 
 
1909
 
1910
+ try {
1911
+ // This works if eval is allowed (see CSP)
1912
+ g = g || Function("return this")() || (1,eval)("this");
1913
+ } catch(e) {
1914
+ // This works if the window reference is available
1915
+ if(typeof window === "object")
1916
+ g = window;
1917
  }
1918
 
1919
+ // g can still be undefined, but nothing to do about it...
1920
+ // We return undefined, instead of nothing here, so it's
1921
+ // easier to handle this case. if(!global) { ...}
 
 
 
 
1922
 
1923
+ module.exports = g;
1924
+
1925
+
1926
+ /***/ }),
1927
+ /* 39 */
1928
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1929
+
1930
+ "use strict";
1931
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
1932
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Icon__ = __webpack_require__(500);
1933
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Icon__["a"]; });
1934
+
1935
+
1936
+ /***/ }),
1937
+ /* 40 */
1938
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1939
+
1940
+ "use strict";
1941
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(18);
1942
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(255);
1943
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(147);
1944
+
1945
+
1946
+
1947
+
1948
+ function getPath(obj, path) {
1949
+ if (!path || typeof path !== 'string') {
1950
+ return null;
1951
+ }
1952
+
1953
+ return path.split('.').reduce(function (acc, item) {
1954
+ return acc && acc[item] ? acc[item] : null;
1955
+ }, obj);
1956
+ }
1957
+
1958
+ function style(options) {
1959
+ var prop = options.prop,
1960
+ _options$cssProperty = options.cssProperty,
1961
+ cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty,
1962
+ themeKey = options.themeKey,
1963
+ transform = options.transform;
1964
+
1965
+ var fn = function fn(props) {
1966
+ if (props[prop] == null) {
1967
+ return null;
1968
+ }
1969
+
1970
+ var propValue = props[prop];
1971
+ var theme = props.theme;
1972
+ var themeMapping = getPath(theme, themeKey) || {};
1973
+
1974
+ var styleFromPropValue = function styleFromPropValue(propValueFinal) {
1975
+ var value;
1976
+
1977
+ if (typeof themeMapping === 'function') {
1978
+ value = themeMapping(propValueFinal);
1979
+ } else if (Array.isArray(themeMapping)) {
1980
+ value = themeMapping[propValueFinal] || propValueFinal;
1981
+ } else {
1982
+ value = getPath(themeMapping, propValueFinal) || propValueFinal;
1983
+
1984
+ if (transform) {
1985
+ value = transform(value);
1986
+ }
1987
+ }
1988
+
1989
+ if (cssProperty === false) {
1990
+ return value;
1991
+ }
1992
+
1993
+ return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, cssProperty, value);
1994
+ };
1995
+
1996
+ return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
1997
+ };
1998
+
1999
+ fn.propTypes = process.env.NODE_ENV !== 'production' ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, prop, __WEBPACK_IMPORTED_MODULE_1__responsivePropType__["a" /* default */]) : {};
2000
+ fn.filterProps = [prop];
2001
+ return fn;
2002
+ }
2003
+
2004
+ /* harmony default export */ __webpack_exports__["a"] = (style);
2005
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2006
+
2007
+ /***/ }),
2008
+ /* 41 */
2009
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2010
+
2011
+ "use strict";
2012
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export easing */
2013
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return duration; });
2014
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
2015
+
2016
+ // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
2017
+ // to learn the context in which each easing should be used.
2018
+ var easing = {
2019
+ // This is the most common easing curve.
2020
+ easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
2021
+ // Objects enter the screen at full velocity from off-screen and
2022
+ // slowly decelerate to a resting point.
2023
+ easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
2024
+ // Objects leave the screen at full velocity. They do not decelerate when off-screen.
2025
+ easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
2026
+ // The sharp curve is used by objects that may return to the screen at any time.
2027
+ sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
2028
+ }; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
2029
+ // to learn when use what timing
2030
+
2031
+ var duration = {
2032
+ shortest: 150,
2033
+ shorter: 200,
2034
+ short: 250,
2035
+ // most basic recommended timing
2036
+ standard: 300,
2037
+ // this is to be used in complex animations
2038
+ complex: 375,
2039
+ // recommended when something is entering screen
2040
+ enteringScreen: 225,
2041
+ // recommended when something is leaving screen
2042
+ leavingScreen: 195
2043
+ };
2044
+
2045
+ function formatMs(milliseconds) {
2046
+ return "".concat(Math.round(milliseconds), "ms");
2047
+ }
2048
+ /**
2049
+ * @param {string|Array} props
2050
+ * @param {object} param
2051
+ * @param {string} param.prop
2052
+ * @param {number} param.duration
2053
+ * @param {string} param.easing
2054
+ * @param {number} param.delay
2055
+ */
2056
+
2057
+
2058
+ /* harmony default export */ __webpack_exports__["a"] = ({
2059
+ easing: easing,
2060
+ duration: duration,
2061
+ create: function create() {
2062
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];
2063
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2064
+
2065
+ var _options$duration = options.duration,
2066
+ durationOption = _options$duration === void 0 ? duration.standard : _options$duration,
2067
+ _options$easing = options.easing,
2068
+ easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,
2069
+ _options$delay = options.delay,
2070
+ delay = _options$delay === void 0 ? 0 : _options$delay,
2071
+ other = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["duration", "easing", "delay"]);
2072
+
2073
+ if (process.env.NODE_ENV !== 'production') {
2074
+ var isString = function isString(value) {
2075
+ return typeof value === 'string';
2076
+ };
2077
+
2078
+ var isNumber = function isNumber(value) {
2079
+ return !isNaN(parseFloat(value));
2080
+ };
2081
+
2082
+ if (!isString(props) && !Array.isArray(props)) {
2083
+ console.error('Material-UI: Argument "props" must be a string or Array.');
2084
+ }
2085
+
2086
+ if (!isNumber(durationOption) && !isString(durationOption)) {
2087
+ console.error("Material-UI: Argument \"duration\" must be a number or a string but found ".concat(durationOption, "."));
2088
+ }
2089
+
2090
+ if (!isString(easingOption)) {
2091
+ console.error('Material-UI: Argument "easing" must be a string.');
2092
+ }
2093
+
2094
+ if (!isNumber(delay) && !isString(delay)) {
2095
+ console.error('Material-UI: Argument "delay" must be a number or a string.');
2096
+ }
2097
+
2098
+ if (Object.keys(other).length !== 0) {
2099
+ console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(other).join(','), "]."));
2100
+ }
2101
+ }
2102
+
2103
+ return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {
2104
+ return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay));
2105
+ }).join(',');
2106
+ },
2107
+ getAutoHeightDuration: function getAutoHeightDuration(height) {
2108
+ if (!height) {
2109
+ return 0;
2110
+ }
2111
+
2112
+ var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10
2113
+
2114
+ return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
2115
+ }
2116
+ });
2117
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2118
+
2119
+ /***/ }),
2120
+ /* 42 */
2121
+ /***/ (function(module, exports, __webpack_require__) {
2122
+
2123
+ var freeGlobal = __webpack_require__(395);
2124
+
2125
+ /** Detect free variable `self`. */
2126
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
2127
+
2128
+ /** Used as a reference to the global object. */
2129
+ var root = freeGlobal || freeSelf || Function('return this')();
2130
+
2131
+ module.exports = root;
2132
+
2133
+
2134
+ /***/ }),
2135
+ /* 43 */
2136
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2137
+
2138
+ "use strict";
2139
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2140
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__merge__ = __webpack_require__(96);
2141
+
2142
+
2143
+
2144
+ function compose() {
2145
+ for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {
2146
+ styles[_key] = arguments[_key];
2147
+ }
2148
+
2149
+ var fn = function fn(props) {
2150
+ return styles.reduce(function (acc, style) {
2151
+ var output = style(props);
2152
+
2153
+ if (output) {
2154
+ return Object(__WEBPACK_IMPORTED_MODULE_1__merge__["a" /* default */])(acc, output);
2155
+ }
2156
+
2157
+ return acc;
2158
+ }, {});
2159
+ }; // Alternative approach that doesn't yield any performance gain.
2160
+ // const handlers = styles.reduce((acc, style) => {
2161
+ // style.filterProps.forEach(prop => {
2162
+ // acc[prop] = style;
2163
+ // });
2164
+ // return acc;
2165
+ // }, {});
2166
+ // const fn = props => {
2167
+ // return Object.keys(props).reduce((acc, prop) => {
2168
+ // if (handlers[prop]) {
2169
+ // return merge(acc, handlers[prop](props));
2170
+ // }
2171
+ // return acc;
2172
+ // }, {});
2173
+ // };
2174
+
2175
+
2176
+ fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce(function (acc, style) {
2177
+ return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(acc, style.propTypes);
2178
+ }, {}) : {};
2179
+ fn.filterProps = styles.reduce(function (acc, style) {
2180
+ return acc.concat(style.filterProps);
2181
+ }, []);
2182
+ return fn;
2183
+ }
2184
+
2185
+ /* harmony default export */ __webpack_exports__["a"] = (compose);
2186
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2187
+
2188
+ /***/ }),
2189
+ /* 44 */
2190
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2191
+
2192
+ "use strict";
2193
+ /* harmony export (immutable) */ __webpack_exports__["a"] = useEventCallback;
2194
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
2195
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
2196
+
2197
+ var useEnhancedEffect = typeof window !== 'undefined' ? __WEBPACK_IMPORTED_MODULE_0_react__["useLayoutEffect"] : __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"];
2198
+ /**
2199
+ * https://github.com/facebook/react/issues/14099#issuecomment-440013892
2200
+ *
2201
+ * @param {function} fn
2202
+ */
2203
+
2204
+ function useEventCallback(fn) {
2205
+ var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](fn);
2206
+ useEnhancedEffect(function () {
2207
+ ref.current = fn;
2208
+ });
2209
+ return __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function () {
2210
+ return (0, ref.current).apply(void 0, arguments);
2211
+ }, []);
2212
+ }
2213
+
2214
+ /***/ }),
2215
+ /* 45 */
2216
+ /***/ (function(module, exports) {
2217
+
2218
+ /**
2219
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
2220
+ * and has a `typeof` result of "object".
2221
+ *
2222
+ * @static
2223
+ * @memberOf _
2224
+ * @since 4.0.0
2225
+ * @category Lang
2226
+ * @param {*} value The value to check.
2227
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2228
+ * @example
2229
+ *
2230
+ * _.isObjectLike({});
2231
+ * // => true
2232
+ *
2233
+ * _.isObjectLike([1, 2, 3]);
2234
+ * // => true
2235
+ *
2236
+ * _.isObjectLike(_.noop);
2237
+ * // => false
2238
+ *
2239
+ * _.isObjectLike(null);
2240
+ * // => false
2241
+ */
2242
+ function isObjectLike(value) {
2243
+ return value != null && typeof value == 'object';
2244
+ }
2245
+
2246
+ module.exports = isObjectLike;
2247
+
2248
+
2249
+ /***/ }),
2250
+ /* 46 */
2251
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2252
+
2253
+ "use strict";
2254
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
2255
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserRouter", function() { return BrowserRouter; });
2256
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashRouter", function() { return HashRouter; });
2257
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return Link; });
2258
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavLink", function() { return NavLink; });
2259
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router__ = __webpack_require__(227);
2260
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["a"]; });
2261
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Prompt", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["b"]; });
2262
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["c"]; });
2263
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["d"]; });
2264
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["e"]; });
2265
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["f"]; });
2266
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["g"]; });
2267
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "generatePath", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["i"]; });
2268
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matchPath", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["j"]; });
2269
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useHistory", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["k"]; });
2270
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useLocation", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["l"]; });
2271
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useParams", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["m"]; });
2272
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useRouteMatch", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["n"]; });
2273
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["o"]; });
2274
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(37);
2275
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
2276
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
2277
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history__ = __webpack_require__(228);
2278
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
2279
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
2280
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_tiny_warning__ = __webpack_require__(52);
2281
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2282
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(47);
2283
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_tiny_invariant__ = __webpack_require__(140);
2284
+
2285
+
2286
+
2287
+
2288
+
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+ /**
2296
+ * The public API for a <Router> that uses HTML5 history.
2297
+ */
2298
+
2299
+ var BrowserRouter =
2300
+ /*#__PURE__*/
2301
+ function (_React$Component) {
2302
+ Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(BrowserRouter, _React$Component);
2303
+
2304
+ function BrowserRouter() {
2305
+ var _this;
2306
+
2307
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2308
+ args[_key] = arguments[_key];
2309
+ }
2310
+
2311
+ _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
2312
+ _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["a" /* createBrowserHistory */])(_this.props);
2313
+ return _this;
2314
+ }
2315
+
2316
+ var _proto = BrowserRouter.prototype;
2317
+
2318
+ _proto.render = function render() {
2319
+ return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["e" /* Router */], {
2320
+ history: this.history,
2321
+ children: this.props.children
2322
+ });
2323
+ };
2324
+
2325
+ return BrowserRouter;
2326
+ }(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
2327
+
2328
+ if (process.env.NODE_ENV !== "production") {
2329
+ BrowserRouter.propTypes = {
2330
+ basename: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2331
+ children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
2332
+ forceRefresh: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2333
+ getUserConfirmation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2334
+ keyLength: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number
2335
+ };
2336
+
2337
+ BrowserRouter.prototype.componentDidMount = function () {
2338
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_5_tiny_warning__["a" /* default */])(!this.props.history, "<BrowserRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { BrowserRouter as Router }`.") : void 0;
2339
+ };
2340
+ }
2341
+
2342
+ /**
2343
+ * The public API for a <Router> that uses window.location.hash.
2344
+ */
2345
+
2346
+ var HashRouter =
2347
+ /*#__PURE__*/
2348
+ function (_React$Component) {
2349
+ Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(HashRouter, _React$Component);
2350
+
2351
+ function HashRouter() {
2352
+ var _this;
2353
+
2354
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2355
+ args[_key] = arguments[_key];
2356
+ }
2357
+
2358
+ _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
2359
+ _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["b" /* createHashHistory */])(_this.props);
2360
+ return _this;
2361
+ }
2362
+
2363
+ var _proto = HashRouter.prototype;
2364
+
2365
+ _proto.render = function render() {
2366
+ return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["e" /* Router */], {
2367
+ history: this.history,
2368
+ children: this.props.children
2369
+ });
2370
+ };
2371
+
2372
+ return HashRouter;
2373
+ }(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
2374
+
2375
+ if (process.env.NODE_ENV !== "production") {
2376
+ HashRouter.propTypes = {
2377
+ basename: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2378
+ children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
2379
+ getUserConfirmation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2380
+ hashType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(["hashbang", "noslash", "slash"])
2381
+ };
2382
+
2383
+ HashRouter.prototype.componentDidMount = function () {
2384
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_5_tiny_warning__["a" /* default */])(!this.props.history, "<HashRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`.") : void 0;
2385
+ };
2386
+ }
2387
+
2388
+ var resolveToLocation = function resolveToLocation(to, currentLocation) {
2389
+ return typeof to === "function" ? to(currentLocation) : to;
2390
+ };
2391
+ var normalizeToLocation = function normalizeToLocation(to, currentLocation) {
2392
+ return typeof to === "string" ? Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(to, null, null, currentLocation) : to;
2393
+ };
2394
+
2395
+ var forwardRefShim = function forwardRefShim(C) {
2396
+ return C;
2397
+ };
2398
+
2399
+ var forwardRef = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef;
2400
+
2401
+ if (typeof forwardRef === "undefined") {
2402
+ forwardRef = forwardRefShim;
2403
+ }
2404
+
2405
+ function isModifiedEvent(event) {
2406
+ return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
2407
+ }
2408
+
2409
+ var LinkAnchor = forwardRef(function (_ref, forwardedRef) {
2410
+ var innerRef = _ref.innerRef,
2411
+ navigate = _ref.navigate,
2412
+ _onClick = _ref.onClick,
2413
+ rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["innerRef", "navigate", "onClick"]);
2414
+
2415
+ var target = rest.target;
2416
+
2417
+ var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
2418
+ onClick: function onClick(event) {
2419
+ try {
2420
+ if (_onClick) _onClick(event);
2421
+ } catch (ex) {
2422
+ event.preventDefault();
2423
+ throw ex;
2424
+ }
2425
+
2426
+ if (!event.defaultPrevented && // onClick prevented default
2427
+ event.button === 0 && ( // ignore everything but left clicks
2428
+ !target || target === "_self") && // let browser handle "target=_blank" etc.
2429
+ !isModifiedEvent(event) // ignore clicks with modifier keys
2430
+ ) {
2431
+ event.preventDefault();
2432
+ navigate();
2433
+ }
2434
+ }
2435
+ }); // React 15 compat
2436
+
2437
+
2438
+ if (forwardRefShim !== forwardRef) {
2439
+ props.ref = forwardedRef || innerRef;
2440
+ } else {
2441
+ props.ref = innerRef;
2442
+ }
2443
+ /* eslint-disable-next-line jsx-a11y/anchor-has-content */
2444
+
2445
+
2446
+ return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("a", props);
2447
+ });
2448
+
2449
+ if (process.env.NODE_ENV !== "production") {
2450
+ LinkAnchor.displayName = "LinkAnchor";
2451
+ }
2452
+ /**
2453
+ * The public API for rendering a history-aware <a>.
2454
+ */
2455
+
2456
+
2457
+ var Link = forwardRef(function (_ref2, forwardedRef) {
2458
+ var _ref2$component = _ref2.component,
2459
+ component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,
2460
+ replace = _ref2.replace,
2461
+ to = _ref2.to,
2462
+ innerRef = _ref2.innerRef,
2463
+ rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref2, ["component", "replace", "to", "innerRef"]);
2464
+
2465
+ return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["h" /* __RouterContext */].Consumer, null, function (context) {
2466
+ !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false, "You should not use <Link> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false) : void 0;
2467
+ var history = context.history;
2468
+ var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);
2469
+ var href = location ? history.createHref(location) : "";
2470
+
2471
+ var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
2472
+ href: href,
2473
+ navigate: function navigate() {
2474
+ var location = resolveToLocation(to, context.location);
2475
+ var method = replace ? history.replace : history.push;
2476
+ method(location);
2477
+ }
2478
+ }); // React 15 compat
2479
+
2480
+
2481
+ if (forwardRefShim !== forwardRef) {
2482
+ props.ref = forwardedRef || innerRef;
2483
+ } else {
2484
+ props.innerRef = innerRef;
2485
+ }
2486
+
2487
+ return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(component, props);
2488
+ });
2489
+ });
2490
+
2491
+ if (process.env.NODE_ENV !== "production") {
2492
+ var toType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func]);
2493
+ var refType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({
2494
+ current: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any
2495
+ })]);
2496
+ Link.displayName = "Link";
2497
+ Link.propTypes = {
2498
+ innerRef: refType,
2499
+ onClick: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2500
+ replace: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2501
+ target: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2502
+ to: toType.isRequired
2503
+ };
2504
+ }
2505
+
2506
+ var forwardRefShim$1 = function forwardRefShim(C) {
2507
+ return C;
2508
+ };
2509
+
2510
+ var forwardRef$1 = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef;
2511
+
2512
+ if (typeof forwardRef$1 === "undefined") {
2513
+ forwardRef$1 = forwardRefShim$1;
2514
+ }
2515
+
2516
+ function joinClassnames() {
2517
+ for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {
2518
+ classnames[_key] = arguments[_key];
2519
+ }
2520
+
2521
+ return classnames.filter(function (i) {
2522
+ return i;
2523
+ }).join(" ");
2524
+ }
2525
+ /**
2526
+ * A <Link> wrapper that knows if it's "active" or not.
2527
+ */
2528
+
2529
+
2530
+ var NavLink = forwardRef$1(function (_ref, forwardedRef) {
2531
+ var _ref$ariaCurrent = _ref["aria-current"],
2532
+ ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,
2533
+ _ref$activeClassName = _ref.activeClassName,
2534
+ activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName,
2535
+ activeStyle = _ref.activeStyle,
2536
+ classNameProp = _ref.className,
2537
+ exact = _ref.exact,
2538
+ isActiveProp = _ref.isActive,
2539
+ locationProp = _ref.location,
2540
+ sensitive = _ref.sensitive,
2541
+ strict = _ref.strict,
2542
+ styleProp = _ref.style,
2543
+ to = _ref.to,
2544
+ innerRef = _ref.innerRef,
2545
+ rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]);
2546
+
2547
+ return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["h" /* __RouterContext */].Consumer, null, function (context) {
2548
+ !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false, "You should not use <NavLink> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false) : void 0;
2549
+ var currentLocation = locationProp || context.location;
2550
+ var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);
2551
+ var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
2552
+
2553
+ var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
2554
+ var match = escapedPath ? Object(__WEBPACK_IMPORTED_MODULE_0_react_router__["j" /* matchPath */])(currentLocation.pathname, {
2555
+ path: escapedPath,
2556
+ exact: exact,
2557
+ sensitive: sensitive,
2558
+ strict: strict
2559
+ }) : null;
2560
+ var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);
2561
+ var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
2562
+ var style = isActive ? Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, styleProp, {}, activeStyle) : styleProp;
2563
+
2564
+ var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({
2565
+ "aria-current": isActive && ariaCurrent || null,
2566
+ className: className,
2567
+ style: style,
2568
+ to: toLocation
2569
+ }, rest); // React 15 compat
2570
+
2571
+
2572
+ if (forwardRefShim$1 !== forwardRef$1) {
2573
+ props.ref = forwardedRef || innerRef;
2574
+ } else {
2575
+ props.innerRef = innerRef;
2576
+ }
2577
+
2578
+ return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(Link, props);
2579
+ });
2580
+ });
2581
+
2582
+ if (process.env.NODE_ENV !== "production") {
2583
+ NavLink.displayName = "NavLink";
2584
+ var ariaCurrentType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(["page", "step", "location", "date", "time", "true"]);
2585
+ NavLink.propTypes = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, Link.propTypes, {
2586
+ "aria-current": ariaCurrentType,
2587
+ activeClassName: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2588
+ activeStyle: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
2589
+ className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2590
+ exact: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2591
+ isActive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2592
+ location: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
2593
+ sensitive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2594
+ strict: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2595
+ style: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object
2596
+ });
2597
+ }
2598
+
2599
+
2600
+ //# sourceMappingURL=react-router-dom.js.map
2601
+
2602
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2603
+
2604
+ /***/ }),
2605
+ /* 47 */
2606
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2607
+
2608
+ "use strict";
2609
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutPropertiesLoose;
2610
+ function _objectWithoutPropertiesLoose(source, excluded) {
2611
+ if (source == null) return {};
2612
+ var target = {};
2613
+ var sourceKeys = Object.keys(source);
2614
+ var key, i;
2615
+
2616
+ for (i = 0; i < sourceKeys.length; i++) {
2617
+ key = sourceKeys[i];
2618
+ if (excluded.indexOf(key) >= 0) continue;
2619
+ target[key] = source[key];
2620
+ }
2621
+
2622
+ return target;
2623
+ }
2624
+
2625
+ /***/ }),
2626
+ /* 48 */
2627
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2628
+
2629
+ "use strict";
2630
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _typeof;
2631
+ function _typeof(obj) {
2632
+ "@babel/helpers - typeof";
2633
+
2634
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2635
+ _typeof = function _typeof(obj) {
2636
+ return typeof obj;
2637
+ };
2638
+ } else {
2639
+ _typeof = function _typeof(obj) {
2640
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2641
+ };
2642
+ }
2643
+
2644
+ return _typeof(obj);
2645
+ }
2646
+
2647
+ /***/ }),
2648
+ /* 49 */
2649
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2650
+
2651
+ "use strict";
2652
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _createClass;
2653
+ function _defineProperties(target, props) {
2654
+ for (var i = 0; i < props.length; i++) {
2655
+ var descriptor = props[i];
2656
+ descriptor.enumerable = descriptor.enumerable || false;
2657
+ descriptor.configurable = true;
2658
+ if ("value" in descriptor) descriptor.writable = true;
2659
+ Object.defineProperty(target, descriptor.key, descriptor);
2660
+ }
2661
+ }
2662
+
2663
+ function _createClass(Constructor, protoProps, staticProps) {
2664
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2665
+ if (staticProps) _defineProperties(Constructor, staticProps);
2666
+ return Constructor;
2667
+ }
2668
+
2669
+ /***/ }),
2670
+ /* 50 */
2671
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2672
+
2673
+ "use strict";
2674
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useControlled;
2675
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
2676
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
2677
+ /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
2678
+
2679
+ function useControlled(_ref) {
2680
+ var controlled = _ref.controlled,
2681
+ defaultProp = _ref.default,
2682
+ name = _ref.name,
2683
+ _ref$state = _ref.state,
2684
+ state = _ref$state === void 0 ? 'value' : _ref$state;
2685
+
2686
+ var _React$useRef = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](controlled !== undefined),
2687
+ isControlled = _React$useRef.current;
2688
+
2689
+ var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](defaultProp),
2690
+ valueState = _React$useState[0],
2691
+ setValue = _React$useState[1];
2692
+
2693
+ var value = isControlled ? controlled : valueState;
2694
+
2695
+ if (process.env.NODE_ENV !== 'production') {
2696
+ __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
2697
+ if (isControlled !== (controlled !== undefined)) {
2698
+ console.error(["Material-UI: A component is changing the ".concat(isControlled ? '' : 'un', "controlled ").concat(state, " state of ").concat(name, " to be ").concat(isControlled ? 'un' : '', "controlled."), 'Elements should not switch from uncontrolled to controlled (or vice versa).', "Decide between using a controlled or uncontrolled ".concat(name, " ") + 'element for the lifetime of the component.', "The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
2699
+ }
2700
+ }, [controlled]);
2701
+
2702
+ var _React$useRef2 = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](defaultProp),
2703
+ defaultValue = _React$useRef2.current;
2704
+
2705
+ __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
2706
+ if (!isControlled && defaultValue !== defaultProp) {
2707
+ console.error(["Material-UI: A component is changing the default ".concat(state, " state of an uncontrolled ").concat(name, " after being initialized. ") + "To suppress this warning opt to use a controlled ".concat(name, ".")].join('\n'));
2708
+ }
2709
+ }, [JSON.stringify(defaultProp)]);
2710
+ }
2711
+
2712
+ var setValueIfUncontrolled = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (newValue) {
2713
+ if (!isControlled) {
2714
+ setValue(newValue);
2715
+ }
2716
+ }, []);
2717
+ return [value, setValueIfUncontrolled];
2718
+ }
2719
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2720
+
2721
+ /***/ }),
2722
+ /* 51 */
2723
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2724
+
2725
+ "use strict";
2726
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__IconButton__ = __webpack_require__(599);
2727
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__IconButton__["a"]; });
2728
+
2729
+
2730
+ /***/ }),
2731
+ /* 52 */
2732
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2733
+
2734
+ "use strict";
2735
+ /* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';
2736
+ function warning(condition, message) {
2737
+ if (!isProduction) {
2738
+ if (condition) {
2739
+ return;
2740
+ }
2741
+
2742
+ var text = "Warning: " + message;
2743
+
2744
+ if (typeof console !== 'undefined') {
2745
+ console.warn(text);
2746
+ }
2747
+
2748
+ try {
2749
+ throw Error(text);
2750
+ } catch (x) {}
2751
+ }
2752
+ }
2753
+
2754
+ /* harmony default export */ __webpack_exports__["a"] = (warning);
2755
+
2756
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2757
+
2758
+ /***/ }),
2759
+ /* 53 */
2760
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2761
+
2762
+ "use strict";
2763
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RuleList; });
2764
+ /* unused harmony export SheetsManager */
2765
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SheetsRegistry; });
2766
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return create; });
2767
+ /* unused harmony export createGenerateId */
2768
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createRule; });
2769
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getDynamicStyles; });
2770
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasCSSTOMSupport; });
2771
+ /* unused harmony export sheets */
2772
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return toCssValue; });
2773
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2774
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_is_in_browser__ = __webpack_require__(232);
2775
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_tiny_warning__ = __webpack_require__(52);
2776
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__ = __webpack_require__(49);
2777
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(37);
2778
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(93);
2779
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(47);
2780
+
2781
+
2782
+
2783
+
2784
+
2785
+
2786
+
2787
+
2788
+ var plainObjectConstrurctor = {}.constructor;
2789
+ function cloneStyle(style) {
2790
+ if (style == null || typeof style !== 'object') return style;
2791
+ if (Array.isArray(style)) return style.map(cloneStyle);
2792
+ if (style.constructor !== plainObjectConstrurctor) return style;
2793
+ var newStyle = {};
2794
+
2795
+ for (var name in style) {
2796
+ newStyle[name] = cloneStyle(style[name]);
2797
+ }
2798
+
2799
+ return newStyle;
2800
+ }
2801
+
2802
+ /**
2803
+ * Create a rule instance.
2804
+ */
2805
+
2806
+ function createRule(name, decl, options) {
2807
+ if (name === void 0) {
2808
+ name = 'unnamed';
2809
+ }
2810
+
2811
+ var jss = options.jss;
2812
+ var declCopy = cloneStyle(decl);
2813
+ var rule = jss.plugins.onCreateRule(name, declCopy, options);
2814
+ if (rule) return rule; // It is an at-rule and it has no instance.
2815
+
2816
+ if (name[0] === '@') {
2817
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown rule " + name) : void 0;
2818
+ }
2819
+
2820
+ return null;
2821
+ }
2822
+
2823
+ var join = function join(value, by) {
2824
+ var result = '';
2825
+
2826
+ for (var i = 0; i < value.length; i++) {
2827
+ // Remove !important from the value, it will be readded later.
2828
+ if (value[i] === '!important') break;
2829
+ if (result) result += by;
2830
+ result += value[i];
2831
+ }
2832
+
2833
+ return result;
2834
+ };
2835
+
2836
+ /**
2837
+ * Converts array values to string.
2838
+ *
2839
+ * `margin: [['5px', '10px']]` > `margin: 5px 10px;`
2840
+ * `border: ['1px', '2px']` > `border: 1px, 2px;`
2841
+ * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
2842
+ * `color: ['red', !important]` > `color: red !important;`
2843
+ */
2844
+ var toCssValue = function toCssValue(value, ignoreImportant) {
2845
+ if (ignoreImportant === void 0) {
2846
+ ignoreImportant = false;
2847
+ }
2848
+
2849
+ if (!Array.isArray(value)) return value;
2850
+ var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.
2851
+
2852
+ if (Array.isArray(value[0])) {
2853
+ for (var i = 0; i < value.length; i++) {
2854
+ if (value[i] === '!important') break;
2855
+ if (cssValue) cssValue += ', ';
2856
+ cssValue += join(value[i], ' ');
2857
+ }
2858
+ } else cssValue = join(value, ', '); // Add !important, because it was ignored.
2859
+
2860
+
2861
+ if (!ignoreImportant && value[value.length - 1] === '!important') {
2862
+ cssValue += ' !important';
2863
+ }
2864
+
2865
+ return cssValue;
2866
+ };
2867
+
2868
+ /**
2869
+ * Indent a string.
2870
+ * http://jsperf.com/array-join-vs-for
2871
+ */
2872
+ function indentStr(str, indent) {
2873
+ var result = '';
2874
+
2875
+ for (var index = 0; index < indent; index++) {
2876
+ result += ' ';
2877
+ }
2878
+
2879
+ return result + str;
2880
+ }
2881
+ /**
2882
+ * Converts a Rule to CSS string.
2883
+ */
2884
+
2885
+
2886
+ function toCss(selector, style, options) {
2887
+ if (options === void 0) {
2888
+ options = {};
2889
+ }
2890
+
2891
+ var result = '';
2892
+ if (!style) return result;
2893
+ var _options = options,
2894
+ _options$indent = _options.indent,
2895
+ indent = _options$indent === void 0 ? 0 : _options$indent;
2896
+ var fallbacks = style.fallbacks;
2897
+ if (selector) indent++; // Apply fallbacks first.
2898
+
2899
+ if (fallbacks) {
2900
+ // Array syntax {fallbacks: [{prop: value}]}
2901
+ if (Array.isArray(fallbacks)) {
2902
+ for (var index = 0; index < fallbacks.length; index++) {
2903
+ var fallback = fallbacks[index];
2904
+
2905
+ for (var prop in fallback) {
2906
+ var value = fallback[prop];
2907
+
2908
+ if (value != null) {
2909
+ if (result) result += '\n';
2910
+ result += "" + indentStr(prop + ": " + toCssValue(value) + ";", indent);
2911
+ }
2912
+ }
2913
+ }
2914
+ } else {
2915
+ // Object syntax {fallbacks: {prop: value}}
2916
+ for (var _prop in fallbacks) {
2917
+ var _value = fallbacks[_prop];
2918
+
2919
+ if (_value != null) {
2920
+ if (result) result += '\n';
2921
+ result += "" + indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
2922
+ }
2923
+ }
2924
+ }
2925
+ }
2926
+
2927
+ for (var _prop2 in style) {
2928
+ var _value2 = style[_prop2];
2929
+
2930
+ if (_value2 != null && _prop2 !== 'fallbacks') {
2931
+ if (result) result += '\n';
2932
+ result += "" + indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
2933
+ }
2934
+ } // Allow empty style in this case, because properties will be added dynamically.
2935
+
2936
+
2937
+ if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.
2938
+
2939
+ if (!selector) return result;
2940
+ indent--;
2941
+ if (result) result = "\n" + result + "\n";
2942
+ return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
2943
+ }
2944
+
2945
+ var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
2946
+ var nativeEscape = typeof CSS !== 'undefined' && CSS.escape;
2947
+ var escape = (function (str) {
2948
+ return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1');
2949
+ });
2950
+
2951
+ var BaseStyleRule =
2952
+ /*#__PURE__*/
2953
+ function () {
2954
+ function BaseStyleRule(key, style, options) {
2955
+ this.type = 'style';
2956
+ this.key = void 0;
2957
+ this.isProcessed = false;
2958
+ this.style = void 0;
2959
+ this.renderer = void 0;
2960
+ this.renderable = void 0;
2961
+ this.options = void 0;
2962
+ var sheet = options.sheet,
2963
+ Renderer = options.Renderer;
2964
+ this.key = key;
2965
+ this.options = options;
2966
+ this.style = style;
2967
+ if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();
2968
+ }
2969
+ /**
2970
+ * Get or set a style property.
2971
+ */
2972
+
2973
+
2974
+ var _proto = BaseStyleRule.prototype;
2975
+
2976
+ _proto.prop = function prop(name, value, options) {
2977
+ // It's a getter.
2978
+ if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.
2979
+
2980
+ var force = options ? options.force : false;
2981
+ if (!force && this.style[name] === value) return this;
2982
+ var newValue = value;
2983
+
2984
+ if (!options || options.process !== false) {
2985
+ newValue = this.options.jss.plugins.onChangeValue(value, name, this);
2986
+ }
2987
+
2988
+ var isEmpty = newValue == null || newValue === false;
2989
+ var isDefined = name in this.style; // Value is empty and wasn't defined before.
2990
+
2991
+ if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.
2992
+
2993
+ var remove = isEmpty && isDefined;
2994
+ if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.
2995
+
2996
+ if (this.renderable && this.renderer) {
2997
+ if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);
2998
+ return this;
2999
+ }
3000
+
3001
+ var sheet = this.options.sheet;
3002
+
3003
+ if (sheet && sheet.attached) {
3004
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, '[JSS] Rule is not linked. Missing sheet option "link: true".') : void 0;
3005
+ }
3006
+
3007
+ return this;
3008
+ };
3009
+
3010
+ return BaseStyleRule;
3011
+ }();
3012
+ var StyleRule =
3013
+ /*#__PURE__*/
3014
+ function (_BaseStyleRule) {
3015
+ Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(StyleRule, _BaseStyleRule);
3016
+
3017
+ function StyleRule(key, style, options) {
3018
+ var _this;
3019
+
3020
+ _this = _BaseStyleRule.call(this, key, style, options) || this;
3021
+ _this.selectorText = void 0;
3022
+ _this.id = void 0;
3023
+ _this.renderable = void 0;
3024
+ var selector = options.selector,
3025
+ scoped = options.scoped,
3026
+ sheet = options.sheet,
3027
+ generateId = options.generateId;
3028
+
3029
+ if (selector) {
3030
+ _this.selectorText = selector;
3031
+ } else if (scoped !== false) {
3032
+ _this.id = generateId(Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this)), sheet);
3033
+ _this.selectorText = "." + escape(_this.id);
3034
+ }
3035
+
3036
+ return _this;
3037
+ }
3038
+ /**
3039
+ * Set selector string.
3040
+ * Attention: use this with caution. Most browsers didn't implement
3041
+ * selectorText setter, so this may result in rerendering of entire Style Sheet.
3042
+ */
3043
+
3044
+
3045
+ var _proto2 = StyleRule.prototype;
3046
+
3047
+ /**
3048
+ * Apply rule to an element inline.
3049
+ */
3050
+ _proto2.applyTo = function applyTo(renderable) {
3051
+ var renderer = this.renderer;
3052
+
3053
+ if (renderer) {
3054
+ var json = this.toJSON();
3055
+
3056
+ for (var prop in json) {
3057
+ renderer.setProperty(renderable, prop, json[prop]);
3058
+ }
3059
+ }
3060
+
3061
+ return this;
3062
+ }
3063
+ /**
3064
+ * Returns JSON representation of the rule.
3065
+ * Fallbacks are not supported.
3066
+ * Useful for inline styles.
3067
+ */
3068
+ ;
3069
+
3070
+ _proto2.toJSON = function toJSON() {
3071
+ var json = {};
3072
+
3073
+ for (var prop in this.style) {
3074
+ var value = this.style[prop];
3075
+ if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);
3076
+ }
3077
+
3078
+ return json;
3079
+ }
3080
+ /**
3081
+ * Generates a CSS string.
3082
+ */
3083
+ ;
3084
+
3085
+ _proto2.toString = function toString(options) {
3086
+ var sheet = this.options.sheet;
3087
+ var link = sheet ? sheet.options.link : false;
3088
+ var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3089
+ allowEmpty: true
3090
+ }) : options;
3091
+ return toCss(this.selectorText, this.style, opts);
3092
+ };
3093
+
3094
+ Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(StyleRule, [{
3095
+ key: "selector",
3096
+ set: function set(selector) {
3097
+ if (selector === this.selectorText) return;
3098
+ this.selectorText = selector;
3099
+ var renderer = this.renderer,
3100
+ renderable = this.renderable;
3101
+ if (!renderable || !renderer) return;
3102
+ var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.
3103
+
3104
+ if (!hasChanged) {
3105
+ renderer.replaceRule(renderable, this);
3106
+ }
3107
+ }
3108
+ /**
3109
+ * Get selector string.
3110
+ */
3111
+ ,
3112
+ get: function get() {
3113
+ return this.selectorText;
3114
+ }
3115
+ }]);
3116
+
3117
+ return StyleRule;
3118
+ }(BaseStyleRule);
3119
+ var pluginStyleRule = {
3120
+ onCreateRule: function onCreateRule(name, style, options) {
3121
+ if (name[0] === '@' || options.parent && options.parent.type === 'keyframes') {
3122
+ return null;
3123
+ }
3124
+
3125
+ return new StyleRule(name, style, options);
3126
+ }
3127
+ };
3128
+
3129
+ var defaultToStringOptions = {
3130
+ indent: 1,
3131
+ children: true
3132
+ };
3133
+ var atRegExp = /@([\w-]+)/;
3134
+ /**
3135
+ * Conditional rule for @media, @supports
3136
+ */
3137
+
3138
+ var ConditionalRule =
3139
+ /*#__PURE__*/
3140
+ function () {
3141
+ function ConditionalRule(key, styles, options) {
3142
+ this.type = 'conditional';
3143
+ this.at = void 0;
3144
+ this.key = void 0;
3145
+ this.query = void 0;
3146
+ this.rules = void 0;
3147
+ this.options = void 0;
3148
+ this.isProcessed = false;
3149
+ this.renderable = void 0;
3150
+ this.key = key;
3151
+ var atMatch = key.match(atRegExp);
3152
+ this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.
3153
+
3154
+ this.query = options.name || "@" + this.at;
3155
+ this.options = options;
3156
+ this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3157
+ parent: this
3158
+ }));
3159
+
3160
+ for (var name in styles) {
3161
+ this.rules.add(name, styles[name]);
3162
+ }
3163
+
3164
+ this.rules.process();
3165
+ }
3166
+ /**
3167
+ * Get a rule.
3168
+ */
3169
+
3170
+
3171
+ var _proto = ConditionalRule.prototype;
3172
+
3173
+ _proto.getRule = function getRule(name) {
3174
+ return this.rules.get(name);
3175
+ }
3176
+ /**
3177
+ * Get index of a rule.
3178
+ */
3179
+ ;
3180
+
3181
+ _proto.indexOf = function indexOf(rule) {
3182
+ return this.rules.indexOf(rule);
3183
+ }
3184
+ /**
3185
+ * Create and register rule, run plugins.
3186
+ */
3187
+ ;
3188
+
3189
+ _proto.addRule = function addRule(name, style, options) {
3190
+ var rule = this.rules.add(name, style, options);
3191
+ if (!rule) return null;
3192
+ this.options.jss.plugins.onProcessRule(rule);
3193
+ return rule;
3194
+ }
3195
+ /**
3196
+ * Generates a CSS string.
3197
+ */
3198
+ ;
3199
+
3200
+ _proto.toString = function toString(options) {
3201
+ if (options === void 0) {
3202
+ options = defaultToStringOptions;
3203
+ }
3204
+
3205
+ if (options.indent == null) options.indent = defaultToStringOptions.indent;
3206
+ if (options.children == null) options.children = defaultToStringOptions.children;
3207
+
3208
+ if (options.children === false) {
3209
+ return this.query + " {}";
3210
+ }
3211
+
3212
+ var children = this.rules.toString(options);
3213
+ return children ? this.query + " {\n" + children + "\n}" : '';
3214
+ };
3215
+
3216
+ return ConditionalRule;
3217
+ }();
3218
+ var keyRegExp = /@media|@supports\s+/;
3219
+ var pluginConditionalRule = {
3220
+ onCreateRule: function onCreateRule(key, styles, options) {
3221
+ return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
3222
+ }
3223
+ };
3224
+
3225
+ var defaultToStringOptions$1 = {
3226
+ indent: 1,
3227
+ children: true
3228
+ };
3229
+ var nameRegExp = /@keyframes\s+([\w-]+)/;
3230
+ /**
3231
+ * Rule for @keyframes
3232
+ */
3233
+
3234
+ var KeyframesRule =
3235
+ /*#__PURE__*/
3236
+ function () {
3237
+ function KeyframesRule(key, frames, options) {
3238
+ this.type = 'keyframes';
3239
+ this.at = '@keyframes';
3240
+ this.key = void 0;
3241
+ this.name = void 0;
3242
+ this.id = void 0;
3243
+ this.rules = void 0;
3244
+ this.options = void 0;
3245
+ this.isProcessed = false;
3246
+ this.renderable = void 0;
3247
+ var nameMatch = key.match(nameRegExp);
3248
+
3249
+ if (nameMatch && nameMatch[1]) {
3250
+ this.name = nameMatch[1];
3251
+ } else {
3252
+ this.name = 'noname';
3253
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Bad keyframes name " + key) : void 0;
3254
+ }
3255
+
3256
+ this.key = this.type + "-" + this.name;
3257
+ this.options = options;
3258
+ var scoped = options.scoped,
3259
+ sheet = options.sheet,
3260
+ generateId = options.generateId;
3261
+ this.id = scoped === false ? this.name : escape(generateId(this, sheet));
3262
+ this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3263
+ parent: this
3264
+ }));
3265
+
3266
+ for (var name in frames) {
3267
+ this.rules.add(name, frames[name], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3268
+ parent: this
3269
+ }));
3270
+ }
3271
+
3272
+ this.rules.process();
3273
+ }
3274
+ /**
3275
+ * Generates a CSS string.
3276
+ */
3277
+
3278
+
3279
+ var _proto = KeyframesRule.prototype;
3280
+
3281
+ _proto.toString = function toString(options) {
3282
+ if (options === void 0) {
3283
+ options = defaultToStringOptions$1;
3284
+ }
3285
+
3286
+ if (options.indent == null) options.indent = defaultToStringOptions$1.indent;
3287
+ if (options.children == null) options.children = defaultToStringOptions$1.children;
3288
+
3289
+ if (options.children === false) {
3290
+ return this.at + " " + this.id + " {}";
3291
+ }
3292
+
3293
+ var children = this.rules.toString(options);
3294
+ if (children) children = "\n" + children + "\n";
3295
+ return this.at + " " + this.id + " {" + children + "}";
3296
+ };
3297
+
3298
+ return KeyframesRule;
3299
+ }();
3300
+ var keyRegExp$1 = /@keyframes\s+/;
3301
+ var refRegExp = /\$([\w-]+)/g;
3302
+
3303
+ var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {
3304
+ if (typeof val === 'string') {
3305
+ return val.replace(refRegExp, function (match, name) {
3306
+ if (name in keyframes) {
3307
+ return keyframes[name];
3308
+ }
3309
+
3310
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Referenced keyframes rule \"" + name + "\" is not defined.") : void 0;
3311
+ return match;
3312
+ });
3313
+ }
3314
+
3315
+ return val;
3316
+ };
3317
+ /**
3318
+ * Replace the reference for a animation name.
3319
+ */
3320
+
3321
+
3322
+ var replaceRef = function replaceRef(style, prop, keyframes) {
3323
+ var value = style[prop];
3324
+ var refKeyframe = findReferencedKeyframe(value, keyframes);
3325
+
3326
+ if (refKeyframe !== value) {
3327
+ style[prop] = refKeyframe;
3328
+ }
3329
+ };
3330
+
3331
+ var plugin = {
3332
+ onCreateRule: function onCreateRule(key, frames, options) {
3333
+ return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;
3334
+ },
3335
+ // Animation name ref replacer.
3336
+ onProcessStyle: function onProcessStyle(style, rule, sheet) {
3337
+ if (rule.type !== 'style' || !sheet) return style;
3338
+ if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);
3339
+ if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);
3340
+ return style;
3341
+ },
3342
+ onChangeValue: function onChangeValue(val, prop, rule) {
3343
+ var sheet = rule.options.sheet;
3344
+
3345
+ if (!sheet) {
3346
+ return val;
3347
+ }
3348
+
3349
+ switch (prop) {
3350
+ case 'animation':
3351
+ return findReferencedKeyframe(val, sheet.keyframes);
3352
+
3353
+ case 'animation-name':
3354
+ return findReferencedKeyframe(val, sheet.keyframes);
3355
+
3356
+ default:
3357
+ return val;
3358
+ }
3359
+ }
3360
+ };
3361
+
3362
+ var KeyframeRule =
3363
+ /*#__PURE__*/
3364
+ function (_BaseStyleRule) {
3365
+ Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(KeyframeRule, _BaseStyleRule);
3366
+
3367
+ function KeyframeRule() {
3368
+ var _this;
3369
+
3370
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3371
+ args[_key] = arguments[_key];
3372
+ }
3373
+
3374
+ _this = _BaseStyleRule.call.apply(_BaseStyleRule, [this].concat(args)) || this;
3375
+ _this.renderable = void 0;
3376
+ return _this;
3377
+ }
3378
+
3379
+ var _proto = KeyframeRule.prototype;
3380
+
3381
+ /**
3382
+ * Generates a CSS string.
3383
+ */
3384
+ _proto.toString = function toString(options) {
3385
+ var sheet = this.options.sheet;
3386
+ var link = sheet ? sheet.options.link : false;
3387
+ var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3388
+ allowEmpty: true
3389
+ }) : options;
3390
+ return toCss(this.key, this.style, opts);
3391
+ };
3392
+
3393
+ return KeyframeRule;
3394
+ }(BaseStyleRule);
3395
+ var pluginKeyframeRule = {
3396
+ onCreateRule: function onCreateRule(key, style, options) {
3397
+ if (options.parent && options.parent.type === 'keyframes') {
3398
+ return new KeyframeRule(key, style, options);
3399
+ }
3400
+
3401
+ return null;
3402
+ }
3403
+ };
3404
+
3405
+ var FontFaceRule =
3406
+ /*#__PURE__*/
3407
+ function () {
3408
+ function FontFaceRule(key, style, options) {
3409
+ this.type = 'font-face';
3410
+ this.at = '@font-face';
3411
+ this.key = void 0;
3412
+ this.style = void 0;
3413
+ this.options = void 0;
3414
+ this.isProcessed = false;
3415
+ this.renderable = void 0;
3416
+ this.key = key;
3417
+ this.style = style;
3418
+ this.options = options;
3419
+ }
3420
+ /**
3421
+ * Generates a CSS string.
3422
+ */
3423
+
3424
+
3425
+ var _proto = FontFaceRule.prototype;
3426
+
3427
+ _proto.toString = function toString(options) {
3428
+ if (Array.isArray(this.style)) {
3429
+ var str = '';
3430
+
3431
+ for (var index = 0; index < this.style.length; index++) {
3432
+ str += toCss(this.at, this.style[index]);
3433
+ if (this.style[index + 1]) str += '\n';
3434
+ }
3435
+
3436
+ return str;
3437
+ }
3438
+
3439
+ return toCss(this.at, this.style, options);
3440
+ };
3441
+
3442
+ return FontFaceRule;
3443
+ }();
3444
+ var keyRegExp$2 = /@font-face/;
3445
+ var pluginFontFaceRule = {
3446
+ onCreateRule: function onCreateRule(key, style, options) {
3447
+ return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;
3448
+ }
3449
+ };
3450
+
3451
+ var ViewportRule =
3452
+ /*#__PURE__*/
3453
+ function () {
3454
+ function ViewportRule(key, style, options) {
3455
+ this.type = 'viewport';
3456
+ this.at = '@viewport';
3457
+ this.key = void 0;
3458
+ this.style = void 0;
3459
+ this.options = void 0;
3460
+ this.isProcessed = false;
3461
+ this.renderable = void 0;
3462
+ this.key = key;
3463
+ this.style = style;
3464
+ this.options = options;
3465
+ }
3466
+ /**
3467
+ * Generates a CSS string.
3468
+ */
3469
+
3470
+
3471
+ var _proto = ViewportRule.prototype;
3472
+
3473
+ _proto.toString = function toString(options) {
3474
+ return toCss(this.key, this.style, options);
3475
+ };
3476
+
3477
+ return ViewportRule;
3478
+ }();
3479
+ var pluginViewportRule = {
3480
+ onCreateRule: function onCreateRule(key, style, options) {
3481
+ return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;
3482
+ }
3483
+ };
3484
+
3485
+ var SimpleRule =
3486
+ /*#__PURE__*/
3487
+ function () {
3488
+ function SimpleRule(key, value, options) {
3489
+ this.type = 'simple';
3490
+ this.key = void 0;
3491
+ this.value = void 0;
3492
+ this.options = void 0;
3493
+ this.isProcessed = false;
3494
+ this.renderable = void 0;
3495
+ this.key = key;
3496
+ this.value = value;
3497
+ this.options = options;
3498
+ }
3499
+ /**
3500
+ * Generates a CSS string.
3501
+ */
3502
+ // eslint-disable-next-line no-unused-vars
3503
+
3504
+
3505
+ var _proto = SimpleRule.prototype;
3506
+
3507
+ _proto.toString = function toString(options) {
3508
+ if (Array.isArray(this.value)) {
3509
+ var str = '';
3510
+
3511
+ for (var index = 0; index < this.value.length; index++) {
3512
+ str += this.key + " " + this.value[index] + ";";
3513
+ if (this.value[index + 1]) str += '\n';
3514
+ }
3515
+
3516
+ return str;
3517
+ }
3518
+
3519
+ return this.key + " " + this.value + ";";
3520
+ };
3521
+
3522
+ return SimpleRule;
3523
+ }();
3524
+ var keysMap = {
3525
+ '@charset': true,
3526
+ '@import': true,
3527
+ '@namespace': true
3528
+ };
3529
+ var pluginSimpleRule = {
3530
+ onCreateRule: function onCreateRule(key, value, options) {
3531
+ return key in keysMap ? new SimpleRule(key, value, options) : null;
3532
+ }
3533
+ };
3534
+
3535
+ var plugins = [pluginStyleRule, pluginConditionalRule, plugin, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
3536
+
3537
+ var defaultUpdateOptions = {
3538
+ process: true
3539
+ };
3540
+ var forceUpdateOptions = {
3541
+ force: true,
3542
+ process: true
3543
+ /**
3544
+ * Contains rules objects and allows adding/removing etc.
3545
+ * Is used for e.g. by `StyleSheet` or `ConditionalRule`.
3546
+ */
3547
+
3548
+ };
3549
+
3550
+ var RuleList =
3551
+ /*#__PURE__*/
3552
+ function () {
3553
+ // Rules registry for access by .get() method.
3554
+ // It contains the same rule registered by name and by selector.
3555
+ // Original styles object.
3556
+ // Used to ensure correct rules order.
3557
+ function RuleList(options) {
3558
+ this.map = {};
3559
+ this.raw = {};
3560
+ this.index = [];
3561
+ this.counter = 0;
3562
+ this.options = void 0;
3563
+ this.classes = void 0;
3564
+ this.keyframes = void 0;
3565
+ this.options = options;
3566
+ this.classes = options.classes;
3567
+ this.keyframes = options.keyframes;
3568
+ }
3569
+ /**
3570
+ * Create and register rule.
3571
+ *
3572
+ * Will not render after Style Sheet was rendered the first time.
3573
+ */
3574
+
3575
+
3576
+ var _proto = RuleList.prototype;
3577
+
3578
+ _proto.add = function add(name, decl, ruleOptions) {
3579
+ var _this$options = this.options,
3580
+ parent = _this$options.parent,
3581
+ sheet = _this$options.sheet,
3582
+ jss = _this$options.jss,
3583
+ Renderer = _this$options.Renderer,
3584
+ generateId = _this$options.generateId,
3585
+ scoped = _this$options.scoped;
3586
+
3587
+ var options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
3588
+ classes: this.classes,
3589
+ parent: parent,
3590
+ sheet: sheet,
3591
+ jss: jss,
3592
+ Renderer: Renderer,
3593
+ generateId: generateId,
3594
+ scoped: scoped,
3595
+ name: name,
3596
+ keyframes: this.keyframes,
3597
+ selector: undefined
3598
+ }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but
3599
+ // `sheet.addRule()` opens the door for any duplicate rule name. When this happens
3600
+ // we need to make the key unique within this RuleList instance scope.
3601
+
3602
+
3603
+ var key = name;
3604
+
3605
+ if (name in this.raw) {
3606
+ key = name + "-d" + this.counter++;
3607
+ } // We need to save the original decl before creating the rule
3608
+ // because cache plugin needs to use it as a key to return a cached rule.
3609
+
3610
+
3611
+ this.raw[key] = decl;
3612
+
3613
+ if (key in this.classes) {
3614
+ // E.g. rules inside of @media container
3615
+ options.selector = "." + escape(this.classes[key]);
3616
+ }
3617
+
3618
+ var rule = createRule(key, decl, options);
3619
+ if (!rule) return null;
3620
+ this.register(rule);
3621
+ var index = options.index === undefined ? this.index.length : options.index;
3622
+ this.index.splice(index, 0, rule);
3623
+ return rule;
3624
+ }
3625
+ /**
3626
+ * Get a rule.
3627
+ */
3628
+ ;
3629
+
3630
+ _proto.get = function get(name) {
3631
+ return this.map[name];
3632
+ }
3633
+ /**
3634
+ * Delete a rule.
3635
+ */
3636
+ ;
3637
+
3638
+ _proto.remove = function remove(rule) {
3639
+ this.unregister(rule);
3640
+ delete this.raw[rule.key];
3641
+ this.index.splice(this.index.indexOf(rule), 1);
3642
+ }
3643
+ /**
3644
+ * Get index of a rule.
3645
+ */
3646
+ ;
3647
+
3648
+ _proto.indexOf = function indexOf(rule) {
3649
+ return this.index.indexOf(rule);
3650
+ }
3651
+ /**
3652
+ * Run `onProcessRule()` plugins on every rule.
3653
+ */
3654
+ ;
3655
+
3656
+ _proto.process = function process() {
3657
+ var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop
3658
+ // we end up with very hard-to-track-down side effects.
3659
+
3660
+ this.index.slice(0).forEach(plugins.onProcessRule, plugins);
3661
+ }
3662
+ /**
3663
+ * Register a rule in `.map`, `.classes` and `.keyframes` maps.
3664
+ */
3665
+ ;
3666
+
3667
+ _proto.register = function register(rule) {
3668
+ this.map[rule.key] = rule;
3669
+
3670
+ if (rule instanceof StyleRule) {
3671
+ this.map[rule.selector] = rule;
3672
+ if (rule.id) this.classes[rule.key] = rule.id;
3673
+ } else if (rule instanceof KeyframesRule && this.keyframes) {
3674
+ this.keyframes[rule.name] = rule.id;
3675
+ }
3676
+ }
3677
+ /**
3678
+ * Unregister a rule.
3679
+ */
3680
+ ;
3681
+
3682
+ _proto.unregister = function unregister(rule) {
3683
+ delete this.map[rule.key];
3684
+
3685
+ if (rule instanceof StyleRule) {
3686
+ delete this.map[rule.selector];
3687
+ delete this.classes[rule.key];
3688
+ } else if (rule instanceof KeyframesRule) {
3689
+ delete this.keyframes[rule.name];
3690
+ }
3691
+ }
3692
+ /**
3693
+ * Update the function values with a new data.
3694
+ */
3695
+ ;
3696
+
3697
+ _proto.update = function update() {
3698
+ var name;
3699
+ var data;
3700
+ var options;
3701
+
3702
+ if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {
3703
+ name = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
3704
+
3705
+ data = arguments.length <= 1 ? undefined : arguments[1]; // $FlowFixMe[invalid-tuple-index]
3706
+
3707
+ options = arguments.length <= 2 ? undefined : arguments[2];
3708
+ } else {
3709
+ data = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
3710
+
3711
+ options = arguments.length <= 1 ? undefined : arguments[1];
3712
+ name = null;
3713
+ }
3714
+
3715
+ if (name) {
3716
+ this.updateOne(this.map[name], data, options);
3717
+ } else {
3718
+ for (var index = 0; index < this.index.length; index++) {
3719
+ this.updateOne(this.index[index], data, options);
3720
+ }
3721
+ }
3722
+ }
3723
+ /**
3724
+ * Execute plugins, update rule props.
3725
+ */
3726
+ ;
3727
+
3728
+ _proto.updateOne = function updateOne(rule, data, options) {
3729
+ if (options === void 0) {
3730
+ options = defaultUpdateOptions;
3731
+ }
3732
+
3733
+ var _this$options2 = this.options,
3734
+ plugins = _this$options2.jss.plugins,
3735
+ sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.
3736
+
3737
+ if (rule.rules instanceof RuleList) {
3738
+ rule.rules.update(data, options);
3739
+ return;
3740
+ }
3741
+
3742
+ var styleRule = rule;
3743
+ var style = styleRule.style;
3744
+ plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.
3745
+
3746
+ if (options.process && style && style !== styleRule.style) {
3747
+ // We need to run the plugins in case new `style` relies on syntax plugins.
3748
+ plugins.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.
3749
+
3750
+ for (var prop in styleRule.style) {
3751
+ var nextValue = styleRule.style[prop];
3752
+ var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
3753
+ // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
3754
+
3755
+ if (nextValue !== prevValue) {
3756
+ styleRule.prop(prop, nextValue, forceUpdateOptions);
3757
+ }
3758
+ } // Remove props.
3759
+
3760
+
3761
+ for (var _prop in style) {
3762
+ var _nextValue = styleRule.style[_prop];
3763
+ var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
3764
+ // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
3765
+
3766
+ if (_nextValue == null && _nextValue !== _prevValue) {
3767
+ styleRule.prop(_prop, null, forceUpdateOptions);
3768
+ }
3769
+ }
3770
+ }
3771
+ }
3772
+ /**
3773
+ * Convert rules to a CSS string.
3774
+ */
3775
+ ;
3776
+
3777
+ _proto.toString = function toString(options) {
3778
+ var str = '';
3779
+ var sheet = this.options.sheet;
3780
+ var link = sheet ? sheet.options.link : false;
3781
+
3782
+ for (var index = 0; index < this.index.length; index++) {
3783
+ var rule = this.index[index];
3784
+ var css = rule.toString(options); // No need to render an empty rule.
3785
+
3786
+ if (!css && !link) continue;
3787
+ if (str) str += '\n';
3788
+ str += css;
3789
+ }
3790
+
3791
+ return str;
3792
+ };
3793
+
3794
+ return RuleList;
3795
+ }();
3796
+
3797
+ var StyleSheet =
3798
+ /*#__PURE__*/
3799
+ function () {
3800
+ function StyleSheet(styles, options) {
3801
+ this.options = void 0;
3802
+ this.deployed = void 0;
3803
+ this.attached = void 0;
3804
+ this.rules = void 0;
3805
+ this.renderer = void 0;
3806
+ this.classes = void 0;
3807
+ this.keyframes = void 0;
3808
+ this.queue = void 0;
3809
+ this.attached = false;
3810
+ this.deployed = false;
3811
+ this.classes = {};
3812
+ this.keyframes = {};
3813
+ this.options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3814
+ sheet: this,
3815
+ parent: this,
3816
+ classes: this.classes,
3817
+ keyframes: this.keyframes
3818
+ });
3819
+
3820
+ if (options.Renderer) {
3821
+ this.renderer = new options.Renderer(this);
3822
+ }
3823
+
3824
+ this.rules = new RuleList(this.options);
3825
+
3826
+ for (var name in styles) {
3827
+ this.rules.add(name, styles[name]);
3828
+ }
3829
+
3830
+ this.rules.process();
3831
+ }
3832
+ /**
3833
+ * Attach renderable to the render tree.
3834
+ */
3835
+
3836
+
3837
+ var _proto = StyleSheet.prototype;
3838
+
3839
+ _proto.attach = function attach() {
3840
+ if (this.attached) return this;
3841
+ if (this.renderer) this.renderer.attach();
3842
+ this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.
3843
+
3844
+ if (!this.deployed) this.deploy();
3845
+ return this;
3846
+ }
3847
+ /**
3848
+ * Remove renderable from render tree.
3849
+ */
3850
+ ;
3851
+
3852
+ _proto.detach = function detach() {
3853
+ if (!this.attached) return this;
3854
+ if (this.renderer) this.renderer.detach();
3855
+ this.attached = false;
3856
+ return this;
3857
+ }
3858
+ /**
3859
+ * Add a rule to the current stylesheet.
3860
+ * Will insert a rule also after the stylesheet has been rendered first time.
3861
+ */
3862
+ ;
3863
+
3864
+ _proto.addRule = function addRule(name, decl, options) {
3865
+ var queue = this.queue; // Plugins can create rules.
3866
+ // In order to preserve the right order, we need to queue all `.addRule` calls,
3867
+ // which happen after the first `rules.add()` call.
3868
+
3869
+ if (this.attached && !queue) this.queue = [];
3870
+ var rule = this.rules.add(name, decl, options);
3871
+ if (!rule) return null;
3872
+ this.options.jss.plugins.onProcessRule(rule);
3873
+
3874
+ if (this.attached) {
3875
+ if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.
3876
+ // It will be inserted all together when .attach is called.
3877
+
3878
+ if (queue) queue.push(rule);else {
3879
+ this.insertRule(rule);
3880
+
3881
+ if (this.queue) {
3882
+ this.queue.forEach(this.insertRule, this);
3883
+ this.queue = undefined;
3884
+ }
3885
+ }
3886
+ return rule;
3887
+ } // We can't add rules to a detached style node.
3888
+ // We will redeploy the sheet once user will attach it.
3889
+
3890
+
3891
+ this.deployed = false;
3892
+ return rule;
3893
+ }
3894
+ /**
3895
+ * Insert rule into the StyleSheet
3896
+ */
3897
+ ;
3898
+
3899
+ _proto.insertRule = function insertRule(rule) {
3900
+ if (this.renderer) {
3901
+ this.renderer.insertRule(rule);
3902
+ }
3903
+ }
3904
+ /**
3905
+ * Create and add rules.
3906
+ * Will render also after Style Sheet was rendered the first time.
3907
+ */
3908
+ ;
3909
+
3910
+ _proto.addRules = function addRules(styles, options) {
3911
+ var added = [];
3912
+
3913
+ for (var name in styles) {
3914
+ var rule = this.addRule(name, styles[name], options);
3915
+ if (rule) added.push(rule);
3916
+ }
3917
+
3918
+ return added;
3919
+ }
3920
+ /**
3921
+ * Get a rule by name.
3922
+ */
3923
+ ;
3924
+
3925
+ _proto.getRule = function getRule(name) {
3926
+ return this.rules.get(name);
3927
+ }
3928
+ /**
3929
+ * Delete a rule by name.
3930
+ * Returns `true`: if rule has been deleted from the DOM.
3931
+ */
3932
+ ;
3933
+
3934
+ _proto.deleteRule = function deleteRule(name) {
3935
+ var rule = typeof name === 'object' ? name : this.rules.get(name);
3936
+
3937
+ if (!rule || // Style sheet was created without link: true and attached, in this case we
3938
+ // won't be able to remove the CSS rule from the DOM.
3939
+ this.attached && !rule.renderable) {
3940
+ return false;
3941
+ }
3942
+
3943
+ this.rules.remove(rule);
3944
+
3945
+ if (this.attached && rule.renderable && this.renderer) {
3946
+ return this.renderer.deleteRule(rule.renderable);
3947
+ }
3948
+
3949
+ return true;
3950
+ }
3951
+ /**
3952
+ * Get index of a rule.
3953
+ */
3954
+ ;
3955
+
3956
+ _proto.indexOf = function indexOf(rule) {
3957
+ return this.rules.indexOf(rule);
3958
+ }
3959
+ /**
3960
+ * Deploy pure CSS string to a renderable.
3961
+ */
3962
+ ;
3963
+
3964
+ _proto.deploy = function deploy() {
3965
+ if (this.renderer) this.renderer.deploy();
3966
+ this.deployed = true;
3967
+ return this;
3968
+ }
3969
+ /**
3970
+ * Update the function values with a new data.
3971
+ */
3972
+ ;
3973
+
3974
+ _proto.update = function update() {
3975
+ var _this$rules;
3976
+
3977
+ (_this$rules = this.rules).update.apply(_this$rules, arguments);
3978
+
3979
+ return this;
3980
+ }
3981
+ /**
3982
+ * Updates a single rule.
3983
+ */
3984
+ ;
3985
+
3986
+ _proto.updateOne = function updateOne(rule, data, options) {
3987
+ this.rules.updateOne(rule, data, options);
3988
+ return this;
3989
+ }
3990
+ /**
3991
+ * Convert rules to a CSS string.
3992
+ */
3993
+ ;
3994
+
3995
+ _proto.toString = function toString(options) {
3996
+ return this.rules.toString(options);
3997
+ };
3998
+
3999
+ return StyleSheet;
4000
+ }();
4001
+
4002
+ var PluginsRegistry =
4003
+ /*#__PURE__*/
4004
+ function () {
4005
+ function PluginsRegistry() {
4006
+ this.plugins = {
4007
+ internal: [],
4008
+ external: []
4009
+ };
4010
+ this.registry = void 0;
4011
+ }
4012
+
4013
+ var _proto = PluginsRegistry.prototype;
4014
+
4015
+ /**
4016
+ * Call `onCreateRule` hooks and return an object if returned by a hook.
4017
+ */
4018
+ _proto.onCreateRule = function onCreateRule(name, decl, options) {
4019
+ for (var i = 0; i < this.registry.onCreateRule.length; i++) {
4020
+ var rule = this.registry.onCreateRule[i](name, decl, options);
4021
+ if (rule) return rule;
4022
+ }
4023
+
4024
+ return null;
4025
+ }
4026
+ /**
4027
+ * Call `onProcessRule` hooks.
4028
+ */
4029
+ ;
4030
+
4031
+ _proto.onProcessRule = function onProcessRule(rule) {
4032
+ if (rule.isProcessed) return;
4033
+ var sheet = rule.options.sheet;
4034
+
4035
+ for (var i = 0; i < this.registry.onProcessRule.length; i++) {
4036
+ this.registry.onProcessRule[i](rule, sheet);
4037
+ }
4038
+
4039
+ if (rule.style) this.onProcessStyle(rule.style, rule, sheet);
4040
+ rule.isProcessed = true;
4041
+ }
4042
+ /**
4043
+ * Call `onProcessStyle` hooks.
4044
+ */
4045
+ ;
4046
+
4047
+ _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {
4048
+ for (var i = 0; i < this.registry.onProcessStyle.length; i++) {
4049
+ // $FlowFixMe[prop-missing]
4050
+ rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);
4051
+ }
4052
+ }
4053
+ /**
4054
+ * Call `onProcessSheet` hooks.
4055
+ */
4056
+ ;
4057
+
4058
+ _proto.onProcessSheet = function onProcessSheet(sheet) {
4059
+ for (var i = 0; i < this.registry.onProcessSheet.length; i++) {
4060
+ this.registry.onProcessSheet[i](sheet);
4061
+ }
4062
+ }
4063
+ /**
4064
+ * Call `onUpdate` hooks.
4065
+ */
4066
+ ;
4067
+
4068
+ _proto.onUpdate = function onUpdate(data, rule, sheet, options) {
4069
+ for (var i = 0; i < this.registry.onUpdate.length; i++) {
4070
+ this.registry.onUpdate[i](data, rule, sheet, options);
4071
+ }
4072
+ }
4073
+ /**
4074
+ * Call `onChangeValue` hooks.
4075
+ */
4076
+ ;
4077
+
4078
+ _proto.onChangeValue = function onChangeValue(value, prop, rule) {
4079
+ var processedValue = value;
4080
+
4081
+ for (var i = 0; i < this.registry.onChangeValue.length; i++) {
4082
+ processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);
4083
+ }
4084
+
4085
+ return processedValue;
4086
+ }
4087
+ /**
4088
+ * Register a plugin.
4089
+ */
4090
+ ;
4091
+
4092
+ _proto.use = function use(newPlugin, options) {
4093
+ if (options === void 0) {
4094
+ options = {
4095
+ queue: 'external'
4096
+ };
4097
+ }
4098
+
4099
+ var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.
4100
+
4101
+ if (plugins.indexOf(newPlugin) !== -1) {
4102
+ return;
4103
+ }
4104
+
4105
+ plugins.push(newPlugin);
4106
+ this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {
4107
+ for (var name in plugin) {
4108
+ if (name in registry) {
4109
+ registry[name].push(plugin[name]);
4110
+ } else {
4111
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown hook \"" + name + "\".") : void 0;
4112
+ }
4113
+ }
4114
+
4115
+ return registry;
4116
+ }, {
4117
+ onCreateRule: [],
4118
+ onProcessRule: [],
4119
+ onProcessStyle: [],
4120
+ onProcessSheet: [],
4121
+ onChangeValue: [],
4122
+ onUpdate: []
4123
+ });
4124
+ };
4125
+
4126
+ return PluginsRegistry;
4127
+ }();
4128
+
4129
+ /**
4130
+ * Sheets registry to access them all at one place.
4131
+ */
4132
+ var SheetsRegistry =
4133
+ /*#__PURE__*/
4134
+ function () {
4135
+ function SheetsRegistry() {
4136
+ this.registry = [];
4137
+ }
4138
+
4139
+ var _proto = SheetsRegistry.prototype;
4140
+
4141
+ /**
4142
+ * Register a Style Sheet.
4143
+ */
4144
+ _proto.add = function add(sheet) {
4145
+ var registry = this.registry;
4146
+ var index = sheet.options.index;
4147
+ if (registry.indexOf(sheet) !== -1) return;
4148
+
4149
+ if (registry.length === 0 || index >= this.index) {
4150
+ registry.push(sheet);
4151
+ return;
4152
+ } // Find a position.
4153
+
4154
+
4155
+ for (var i = 0; i < registry.length; i++) {
4156
+ if (registry[i].options.index > index) {
4157
+ registry.splice(i, 0, sheet);
4158
+ return;
4159
+ }
4160
+ }
4161
+ }
4162
+ /**
4163
+ * Reset the registry.
4164
+ */
4165
+ ;
4166
+
4167
+ _proto.reset = function reset() {
4168
+ this.registry = [];
4169
+ }
4170
+ /**
4171
+ * Remove a Style Sheet.
4172
+ */
4173
+ ;
4174
+
4175
+ _proto.remove = function remove(sheet) {
4176
+ var index = this.registry.indexOf(sheet);
4177
+ this.registry.splice(index, 1);
4178
+ }
4179
+ /**
4180
+ * Convert all attached sheets to a CSS string.
4181
+ */
4182
+ ;
4183
+
4184
+ _proto.toString = function toString(_temp) {
4185
+ var _ref = _temp === void 0 ? {} : _temp,
4186
+ attached = _ref.attached,
4187
+ options = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["attached"]);
4188
+
4189
+ var css = '';
4190
+
4191
+ for (var i = 0; i < this.registry.length; i++) {
4192
+ var sheet = this.registry[i];
4193
+
4194
+ if (attached != null && sheet.attached !== attached) {
4195
+ continue;
4196
+ }
4197
+
4198
+ if (css) css += '\n';
4199
+ css += sheet.toString(options);
4200
+ }
4201
+
4202
+ return css;
4203
+ };
4204
+
4205
+ Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsRegistry, [{
4206
+ key: "index",
4207
+
4208
+ /**
4209
+ * Current highest index number.
4210
+ */
4211
+ get: function get() {
4212
+ return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
4213
+ }
4214
+ }]);
4215
+
4216
+ return SheetsRegistry;
4217
+ }();
4218
+
4219
+ /**
4220
+ * This is a global sheets registry. Only DomRenderer will add sheets to it.
4221
+ * On the server one should use an own SheetsRegistry instance and add the
4222
+ * sheets to it, because you need to make sure to create a new registry for
4223
+ * each request in order to not leak sheets across requests.
4224
+ */
4225
+
4226
+ var registry = new SheetsRegistry();
4227
+
4228
+ /* eslint-disable */
4229
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
4230
+ var globalThis = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
4231
+
4232
+ var ns = '2f1acc6c3a606b082e5eef5e54414ffb';
4233
+ if (globalThis[ns] == null) globalThis[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify
4234
+ // the current version with just one short number and use it for classes generation
4235
+ // we use a counter. Also it is more accurate, because user can manually reevaluate
4236
+ // the module.
4237
+
4238
+ var moduleId = globalThis[ns]++;
4239
+
4240
+ var maxRules = 1e10;
4241
+
4242
+ /**
4243
+ * Returns a function which generates unique class names based on counters.
4244
+ * When new generator function is created, rule counter is reseted.
4245
+ * We need to reset the rule counter for SSR for each request.
4246
+ */
4247
+ var createGenerateId = function createGenerateId(options) {
4248
+ if (options === void 0) {
4249
+ options = {};
4250
+ }
4251
+
4252
+ var ruleCounter = 0;
4253
+ return function (rule, sheet) {
4254
+ ruleCounter += 1;
4255
+
4256
+ if (ruleCounter > maxRules) {
4257
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".") : void 0;
4258
+ }
4259
+
4260
+ var jssId = '';
4261
+ var prefix = '';
4262
+
4263
+ if (sheet) {
4264
+ if (sheet.options.classNamePrefix) {
4265
+ prefix = sheet.options.classNamePrefix;
4266
+ }
4267
+
4268
+ if (sheet.options.jss.id != null) {
4269
+ jssId = String(sheet.options.jss.id);
4270
+ }
4271
+ }
4272
+
4273
+ if (options.minify) {
4274
+ // Using "c" because a number can't be the first char in a class name.
4275
+ return "" + (prefix || 'c') + moduleId + jssId + ruleCounter;
4276
+ }
4277
+
4278
+ return prefix + rule.key + "-" + moduleId + (jssId ? "-" + jssId : '') + "-" + ruleCounter;
4279
+ };
4280
+ };
4281
+
4282
+ /**
4283
+ * Cache the value from the first time a function is called.
4284
+ */
4285
+ var memoize = function memoize(fn) {
4286
+ var value;
4287
+ return function () {
4288
+ if (!value) value = fn();
4289
+ return value;
4290
+ };
4291
+ };
4292
+
4293
+ /**
4294
+ * Get a style property value.
4295
+ */
4296
+ var getPropertyValue = function getPropertyValue(cssRule, prop) {
4297
+ try {
4298
+ // Support CSSTOM.
4299
+ if (cssRule.attributeStyleMap) {
4300
+ return cssRule.attributeStyleMap.get(prop);
4301
+ }
4302
+
4303
+ return cssRule.style.getPropertyValue(prop);
4304
+ } catch (err) {
4305
+ // IE may throw if property is unknown.
4306
+ return '';
4307
+ }
4308
+ };
4309
+
4310
+ /**
4311
+ * Set a style property.
4312
+ */
4313
+ var setProperty = function setProperty(cssRule, prop, value) {
4314
+ try {
4315
+ var cssValue = value;
4316
+
4317
+ if (Array.isArray(value)) {
4318
+ cssValue = toCssValue(value, true);
4319
+
4320
+ if (value[value.length - 1] === '!important') {
4321
+ cssRule.style.setProperty(prop, cssValue, 'important');
4322
+ return true;
4323
+ }
4324
+ } // Support CSSTOM.
4325
+
4326
+
4327
+ if (cssRule.attributeStyleMap) {
4328
+ cssRule.attributeStyleMap.set(prop, cssValue);
4329
+ } else {
4330
+ cssRule.style.setProperty(prop, cssValue);
4331
+ }
4332
+ } catch (err) {
4333
+ // IE may throw if property is unknown.
4334
+ return false;
4335
+ }
4336
+
4337
+ return true;
4338
+ };
4339
+
4340
+ /**
4341
+ * Remove a style property.
4342
+ */
4343
+ var removeProperty = function removeProperty(cssRule, prop) {
4344
+ try {
4345
+ // Support CSSTOM.
4346
+ if (cssRule.attributeStyleMap) {
4347
+ cssRule.attributeStyleMap.delete(prop);
4348
+ } else {
4349
+ cssRule.style.removeProperty(prop);
4350
+ }
4351
+ } catch (err) {
4352
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] DOMException \"" + err.message + "\" was thrown. Tried to remove property \"" + prop + "\".") : void 0;
4353
+ }
4354
+ };
4355
+
4356
+ /**
4357
+ * Set the selector.
4358
+ */
4359
+ var setSelector = function setSelector(cssRule, selectorText) {
4360
+ cssRule.selectorText = selectorText; // Return false if setter was not successful.
4361
+ // Currently works in chrome only.
4362
+
4363
+ return cssRule.selectorText === selectorText;
4364
+ };
4365
+ /**
4366
+ * Gets the `head` element upon the first call and caches it.
4367
+ * We assume it can't be null.
4368
+ */
4369
+
4370
+
4371
+ var getHead = memoize(function () {
4372
+ return document.querySelector('head');
4373
+ });
4374
+ /**
4375
+ * Find attached sheet with an index higher than the passed one.
4376
+ */
4377
+
4378
+ function findHigherSheet(registry, options) {
4379
+ for (var i = 0; i < registry.length; i++) {
4380
+ var sheet = registry[i];
4381
+
4382
+ if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {
4383
+ return sheet;
4384
+ }
4385
+ }
4386
+
4387
+ return null;
4388
+ }
4389
+ /**
4390
+ * Find attached sheet with the highest index.
4391
+ */
4392
+
4393
+
4394
+ function findHighestSheet(registry, options) {
4395
+ for (var i = registry.length - 1; i >= 0; i--) {
4396
+ var sheet = registry[i];
4397
+
4398
+ if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {
4399
+ return sheet;
4400
+ }
4401
+ }
4402
+
4403
+ return null;
4404
+ }
4405
+ /**
4406
+ * Find a comment with "jss" inside.
4407
+ */
4408
+
4409
+
4410
+ function findCommentNode(text) {
4411
+ var head = getHead();
4412
+
4413
+ for (var i = 0; i < head.childNodes.length; i++) {
4414
+ var node = head.childNodes[i];
4415
+
4416
+ if (node.nodeType === 8 && node.nodeValue.trim() === text) {
4417
+ return node;
4418
+ }
4419
+ }
4420
+
4421
+ return null;
4422
+ }
4423
+
4424
+ /**
4425
+ * Find a node before which we can insert the sheet.
4426
+ */
4427
+ function findPrevNode(options) {
4428
+ var registry$1 = registry.registry;
4429
+
4430
+ if (registry$1.length > 0) {
4431
+ // Try to insert before the next higher sheet.
4432
+ var sheet = findHigherSheet(registry$1, options);
4433
+
4434
+ if (sheet && sheet.renderer) {
4435
+ return {
4436
+ parent: sheet.renderer.element.parentNode,
4437
+ node: sheet.renderer.element
4438
+ };
4439
+ } // Otherwise insert after the last attached.
4440
+
4441
+
4442
+ sheet = findHighestSheet(registry$1, options);
4443
+
4444
+ if (sheet && sheet.renderer) {
4445
+ return {
4446
+ parent: sheet.renderer.element.parentNode,
4447
+ node: sheet.renderer.element.nextSibling
4448
+ };
4449
+ }
4450
+ } // Try to find a comment placeholder if registry is empty.
4451
+
4452
+
4453
+ var insertionPoint = options.insertionPoint;
4454
+
4455
+ if (insertionPoint && typeof insertionPoint === 'string') {
4456
+ var comment = findCommentNode(insertionPoint);
4457
+
4458
+ if (comment) {
4459
+ return {
4460
+ parent: comment.parentNode,
4461
+ node: comment.nextSibling
4462
+ };
4463
+ } // If user specifies an insertion point and it can't be found in the document -
4464
+ // bad specificity issues may appear.
4465
+
4466
+
4467
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Insertion point \"" + insertionPoint + "\" not found.") : void 0;
4468
+ }
4469
+
4470
+ return false;
4471
+ }
4472
+ /**
4473
+ * Insert style element into the DOM.
4474
+ */
4475
+
4476
+
4477
+ function insertStyle(style, options) {
4478
+ var insertionPoint = options.insertionPoint;
4479
+ var nextNode = findPrevNode(options);
4480
+
4481
+ if (nextNode !== false && nextNode.parent) {
4482
+ nextNode.parent.insertBefore(style, nextNode.node);
4483
+ return;
4484
+ } // Works with iframes and any node types.
4485
+
4486
+
4487
+ if (insertionPoint && typeof insertionPoint.nodeType === 'number') {
4488
+ // https://stackoverflow.com/questions/41328728/force-casting-in-flow
4489
+ var insertionPointElement = insertionPoint;
4490
+ var parentNode = insertionPointElement.parentNode;
4491
+ if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, '[JSS] Insertion point is not in the DOM.') : void 0;
4492
+ return;
4493
+ }
4494
+
4495
+ getHead().appendChild(style);
4496
+ }
4497
+ /**
4498
+ * Read jss nonce setting from the page if the user has set it.
4499
+ */
4500
+
4501
+
4502
+ var getNonce = memoize(function () {
4503
+ var node = document.querySelector('meta[property="csp-nonce"]');
4504
+ return node ? node.getAttribute('content') : null;
4505
+ });
4506
+
4507
+ var _insertRule = function insertRule(container, rule, index) {
4508
+ try {
4509
+ if ('insertRule' in container) {
4510
+ var c = container;
4511
+ c.insertRule(rule, index);
4512
+ } // Keyframes rule.
4513
+ else if ('appendRule' in container) {
4514
+ var _c = container;
4515
+
4516
+ _c.appendRule(rule);
4517
+ }
4518
+ } catch (err) {
4519
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] " + err.message) : void 0;
4520
+ return false;
4521
+ }
4522
+
4523
+ return container.cssRules[index];
4524
+ };
4525
+
4526
+ var getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) {
4527
+ var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong
4528
+
4529
+ if (index === undefined || index > maxIndex) {
4530
+ // eslint-disable-next-line no-param-reassign
4531
+ return maxIndex;
4532
+ }
4533
+
4534
+ return index;
4535
+ };
4536
+
4537
+ var createStyle = function createStyle() {
4538
+ var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we
4539
+ // insert rules after we insert the style tag.
4540
+ // It seems to kick-off the source order specificity algorithm.
4541
+
4542
+ el.textContent = '\n';
4543
+ return el;
4544
+ };
4545
+
4546
+ var DomRenderer =
4547
+ /*#__PURE__*/
4548
+ function () {
4549
+ // HTMLStyleElement needs fixing https://github.com/facebook/flow/issues/2696
4550
+ // Will be empty if link: true option is not set, because
4551
+ // it is only for use together with insertRule API.
4552
+ function DomRenderer(sheet) {
4553
+ this.getPropertyValue = getPropertyValue;
4554
+ this.setProperty = setProperty;
4555
+ this.removeProperty = removeProperty;
4556
+ this.setSelector = setSelector;
4557
+ this.element = void 0;
4558
+ this.sheet = void 0;
4559
+ this.hasInsertedRules = false;
4560
+ this.cssRules = [];
4561
+ // There is no sheet when the renderer is used from a standalone StyleRule.
4562
+ if (sheet) registry.add(sheet);
4563
+ this.sheet = sheet;
4564
+
4565
+ var _ref = this.sheet ? this.sheet.options : {},
4566
+ media = _ref.media,
4567
+ meta = _ref.meta,
4568
+ element = _ref.element;
4569
+
4570
+ this.element = element || createStyle();
4571
+ this.element.setAttribute('data-jss', '');
4572
+ if (media) this.element.setAttribute('media', media);
4573
+ if (meta) this.element.setAttribute('data-meta', meta);
4574
+ var nonce = getNonce();
4575
+ if (nonce) this.element.setAttribute('nonce', nonce);
4576
+ }
4577
+ /**
4578
+ * Insert style element into render tree.
4579
+ */
4580
+
4581
+
4582
+ var _proto = DomRenderer.prototype;
4583
+
4584
+ _proto.attach = function attach() {
4585
+ // In the case the element node is external and it is already in the DOM.
4586
+ if (this.element.parentNode || !this.sheet) return;
4587
+ insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`
4588
+ // most browsers create a new CSSStyleSheet, except of all IEs.
4589
+
4590
+ var deployed = Boolean(this.sheet && this.sheet.deployed);
4591
+
4592
+ if (this.hasInsertedRules && deployed) {
4593
+ this.hasInsertedRules = false;
4594
+ this.deploy();
4595
+ }
4596
+ }
4597
+ /**
4598
+ * Remove style element from render tree.
4599
+ */
4600
+ ;
4601
+
4602
+ _proto.detach = function detach() {
4603
+ if (!this.sheet) return;
4604
+ var parentNode = this.element.parentNode;
4605
+ if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed.
4606
+ // Though IE will keep them and we need a consistent behavior.
4607
+
4608
+ if (this.sheet.options.link) {
4609
+ this.cssRules = [];
4610
+ this.element.textContent = '\n';
4611
+ }
4612
+ }
4613
+ /**
4614
+ * Inject CSS string into element.
4615
+ */
4616
+ ;
4617
+
4618
+ _proto.deploy = function deploy() {
4619
+ var sheet = this.sheet;
4620
+ if (!sheet) return;
4621
+
4622
+ if (sheet.options.link) {
4623
+ this.insertRules(sheet.rules);
4624
+ return;
4625
+ }
4626
+
4627
+ this.element.textContent = "\n" + sheet.toString() + "\n";
4628
+ }
4629
+ /**
4630
+ * Insert RuleList into an element.
4631
+ */
4632
+ ;
4633
+
4634
+ _proto.insertRules = function insertRules(rules, nativeParent) {
4635
+ for (var i = 0; i < rules.index.length; i++) {
4636
+ this.insertRule(rules.index[i], i, nativeParent);
4637
+ }
4638
+ }
4639
+ /**
4640
+ * Insert a rule into element.
4641
+ */
4642
+ ;
4643
+
4644
+ _proto.insertRule = function insertRule(rule, index, nativeParent) {
4645
+ if (nativeParent === void 0) {
4646
+ nativeParent = this.element.sheet;
4647
+ }
4648
+
4649
+ if (rule.rules) {
4650
+ var parent = rule;
4651
+ var latestNativeParent = nativeParent;
4652
+
4653
+ if (rule.type === 'conditional' || rule.type === 'keyframes') {
4654
+ var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first.
4655
+
4656
+
4657
+ latestNativeParent = _insertRule(nativeParent, parent.toString({
4658
+ children: false
4659
+ }), _insertionIndex);
4660
+
4661
+ if (latestNativeParent === false) {
4662
+ return false;
4663
+ }
4664
+
4665
+ this.refCssRule(rule, _insertionIndex, latestNativeParent);
4666
+ }
4667
+
4668
+ this.insertRules(parent.rules, latestNativeParent);
4669
+ return latestNativeParent;
4670
+ }
4671
+
4672
+ var ruleStr = rule.toString();
4673
+ if (!ruleStr) return false;
4674
+ var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);
4675
+
4676
+ var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);
4677
+
4678
+ if (nativeRule === false) {
4679
+ return false;
4680
+ }
4681
+
4682
+ this.hasInsertedRules = true;
4683
+ this.refCssRule(rule, insertionIndex, nativeRule);
4684
+ return nativeRule;
4685
+ };
4686
+
4687
+ _proto.refCssRule = function refCssRule(rule, index, cssRule) {
4688
+ rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules
4689
+ // like rules inside media queries or keyframes
4690
+
4691
+ if (rule.options.parent instanceof StyleSheet) {
4692
+ this.cssRules[index] = cssRule;
4693
+ }
4694
+ }
4695
+ /**
4696
+ * Delete a rule.
4697
+ */
4698
+ ;
4699
+
4700
+ _proto.deleteRule = function deleteRule(cssRule) {
4701
+ var sheet = this.element.sheet;
4702
+ var index = this.indexOf(cssRule);
4703
+ if (index === -1) return false;
4704
+ sheet.deleteRule(index);
4705
+ this.cssRules.splice(index, 1);
4706
+ return true;
4707
+ }
4708
+ /**
4709
+ * Get index of a CSS Rule.
4710
+ */
4711
+ ;
4712
+
4713
+ _proto.indexOf = function indexOf(cssRule) {
4714
+ return this.cssRules.indexOf(cssRule);
4715
+ }
4716
+ /**
4717
+ * Generate a new CSS rule and replace the existing one.
4718
+ *
4719
+ * Only used for some old browsers because they can't set a selector.
4720
+ */
4721
+ ;
4722
+
4723
+ _proto.replaceRule = function replaceRule(cssRule, rule) {
4724
+ var index = this.indexOf(cssRule);
4725
+ if (index === -1) return false;
4726
+ this.element.sheet.deleteRule(index);
4727
+ this.cssRules.splice(index, 1);
4728
+ return this.insertRule(rule, index);
4729
+ }
4730
+ /**
4731
+ * Get all rules elements.
4732
+ */
4733
+ ;
4734
+
4735
+ _proto.getRules = function getRules() {
4736
+ return this.element.sheet.cssRules;
4737
+ };
4738
+
4739
+ return DomRenderer;
4740
+ }();
4741
+
4742
+ var instanceCounter = 0;
4743
+
4744
+ var Jss =
4745
+ /*#__PURE__*/
4746
+ function () {
4747
+ function Jss(options) {
4748
+ this.id = instanceCounter++;
4749
+ this.version = "10.5.0";
4750
+ this.plugins = new PluginsRegistry();
4751
+ this.options = {
4752
+ id: {
4753
+ minify: false
4754
+ },
4755
+ createGenerateId: createGenerateId,
4756
+ Renderer: __WEBPACK_IMPORTED_MODULE_1_is_in_browser__["a" /* default */] ? DomRenderer : null,
4757
+ plugins: []
4758
+ };
4759
+ this.generateId = createGenerateId({
4760
+ minify: false
4761
+ });
4762
+
4763
+ for (var i = 0; i < plugins.length; i++) {
4764
+ this.plugins.use(plugins[i], {
4765
+ queue: 'internal'
4766
+ });
4767
+ }
4768
+
4769
+ this.setup(options);
4770
+ }
4771
+ /**
4772
+ * Prepares various options, applies plugins.
4773
+ * Should not be used twice on the same instance, because there is no plugins
4774
+ * deduplication logic.
4775
+ */
4776
+
4777
+
4778
+ var _proto = Jss.prototype;
4779
+
4780
+ _proto.setup = function setup(options) {
4781
+ if (options === void 0) {
4782
+ options = {};
4783
+ }
4784
+
4785
+ if (options.createGenerateId) {
4786
+ this.options.createGenerateId = options.createGenerateId;
4787
+ }
4788
+
4789
+ if (options.id) {
4790
+ this.options.id = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, this.options.id, options.id);
4791
+ }
4792
+
4793
+ if (options.createGenerateId || options.id) {
4794
+ this.generateId = this.options.createGenerateId(this.options.id);
4795
+ }
4796
+
4797
+ if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;
4798
+
4799
+ if ('Renderer' in options) {
4800
+ this.options.Renderer = options.Renderer;
4801
+ } // eslint-disable-next-line prefer-spread
4802
+
4803
+
4804
+ if (options.plugins) this.use.apply(this, options.plugins);
4805
+ return this;
4806
+ }
4807
+ /**
4808
+ * Create a Style Sheet.
4809
+ */
4810
+ ;
4811
+
4812
+ _proto.createStyleSheet = function createStyleSheet(styles, options) {
4813
+ if (options === void 0) {
4814
+ options = {};
4815
+ }
4816
+
4817
+ var _options = options,
4818
+ index = _options.index;
4819
+
4820
+ if (typeof index !== 'number') {
4821
+ index = registry.index === 0 ? 0 : registry.index + 1;
4822
+ }
4823
+
4824
+ var sheet = new StyleSheet(styles, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
4825
+ jss: this,
4826
+ generateId: options.generateId || this.generateId,
4827
+ insertionPoint: this.options.insertionPoint,
4828
+ Renderer: this.options.Renderer,
4829
+ index: index
4830
+ }));
4831
+ this.plugins.onProcessSheet(sheet);
4832
+ return sheet;
4833
+ }
4834
+ /**
4835
+ * Detach the Style Sheet and remove it from the registry.
4836
+ */
4837
+ ;
4838
+
4839
+ _proto.removeStyleSheet = function removeStyleSheet(sheet) {
4840
+ sheet.detach();
4841
+ registry.remove(sheet);
4842
+ return this;
4843
+ }
4844
+ /**
4845
+ * Create a rule without a Style Sheet.
4846
+ * [Deprecated] will be removed in the next major version.
4847
+ */
4848
+ ;
4849
+
4850
+ _proto.createRule = function createRule$1(name, style, options) {
4851
+ if (style === void 0) {
4852
+ style = {};
4853
+ }
4854
+
4855
+ if (options === void 0) {
4856
+ options = {};
4857
+ }
4858
+
4859
+ // Enable rule without name for inline styles.
4860
+ if (typeof name === 'object') {
4861
+ // $FlowFixMe[incompatible-call]
4862
+ return this.createRule(undefined, name, style);
4863
+ } // $FlowFixMe[incompatible-type]
4864
+
4865
+
4866
+ var ruleOptions = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
4867
+ name: name,
4868
+ jss: this,
4869
+ Renderer: this.options.Renderer
4870
+ });
4871
+
4872
+ if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;
4873
+ if (!ruleOptions.classes) ruleOptions.classes = {};
4874
+ if (!ruleOptions.keyframes) ruleOptions.keyframes = {};
4875
+
4876
+ var rule = createRule(name, style, ruleOptions);
4877
+
4878
+ if (rule) this.plugins.onProcessRule(rule);
4879
+ return rule;
4880
+ }
4881
+ /**
4882
+ * Register plugin. Passed function will be invoked with a rule instance.
4883
+ */
4884
+ ;
4885
+
4886
+ _proto.use = function use() {
4887
+ var _this = this;
4888
+
4889
+ for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
4890
+ plugins[_key] = arguments[_key];
4891
+ }
4892
+
4893
+ plugins.forEach(function (plugin) {
4894
+ _this.plugins.use(plugin);
4895
+ });
4896
+ return this;
4897
+ };
4898
+
4899
+ return Jss;
4900
+ }();
4901
+
4902
+ /**
4903
+ * Extracts a styles object with only props that contain function values.
4904
+ */
4905
+ function getDynamicStyles(styles) {
4906
+ var to = null;
4907
+
4908
+ for (var key in styles) {
4909
+ var value = styles[key];
4910
+ var type = typeof value;
4911
+
4912
+ if (type === 'function') {
4913
+ if (!to) to = {};
4914
+ to[key] = value;
4915
+ } else if (type === 'object' && value !== null && !Array.isArray(value)) {
4916
+ var extracted = getDynamicStyles(value);
4917
+
4918
+ if (extracted) {
4919
+ if (!to) to = {};
4920
+ to[key] = extracted;
4921
+ }
4922
+ }
4923
+ }
4924
+
4925
+ return to;
4926
+ }
4927
+
4928
+ /**
4929
+ * SheetsManager is like a WeakMap which is designed to count StyleSheet
4930
+ * instances and attach/detach automatically.
4931
+ */
4932
+ var SheetsManager =
4933
+ /*#__PURE__*/
4934
+ function () {
4935
+ function SheetsManager() {
4936
+ this.length = 0;
4937
+ this.sheets = new WeakMap();
4938
+ }
4939
+
4940
+ var _proto = SheetsManager.prototype;
4941
+
4942
+ _proto.get = function get(key) {
4943
+ var entry = this.sheets.get(key);
4944
+ return entry && entry.sheet;
4945
+ };
4946
+
4947
+ _proto.add = function add(key, sheet) {
4948
+ if (this.sheets.has(key)) return;
4949
+ this.length++;
4950
+ this.sheets.set(key, {
4951
+ sheet: sheet,
4952
+ refs: 0
4953
+ });
4954
+ };
4955
+
4956
+ _proto.manage = function manage(key) {
4957
+ var entry = this.sheets.get(key);
4958
+
4959
+ if (entry) {
4960
+ if (entry.refs === 0) {
4961
+ entry.sheet.attach();
4962
+ }
4963
+
4964
+ entry.refs++;
4965
+ return entry.sheet;
4966
+ }
4967
+
4968
+ Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] SheetsManager: can't find sheet to manage");
4969
+ return undefined;
4970
+ };
4971
+
4972
+ _proto.unmanage = function unmanage(key) {
4973
+ var entry = this.sheets.get(key);
4974
+
4975
+ if (entry) {
4976
+ if (entry.refs > 0) {
4977
+ entry.refs--;
4978
+ if (entry.refs === 0) entry.sheet.detach();
4979
+ }
4980
+ } else {
4981
+ Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "SheetsManager: can't find sheet to unmanage");
4982
+ }
4983
+ };
4984
+
4985
+ Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsManager, [{
4986
+ key: "size",
4987
+ get: function get() {
4988
+ return this.length;
4989
+ }
4990
+ }]);
4991
+
4992
+ return SheetsManager;
4993
+ }();
4994
+
4995
+ /**
4996
+ * A better abstraction over CSS.
4997
+ *
4998
+ * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
4999
+ * @website https://github.com/cssinjs/jss
5000
+ * @license MIT
5001
+ */
5002
+
5003
+ /**
5004
+ * Export a constant indicating if this browser has CSSTOM support.
5005
+ * https://developers.google.com/web/updates/2018/03/cssom
5006
+ */
5007
+ var hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;
5008
+ /**
5009
+ * Creates a new instance of Jss.
5010
+ */
5011
+
5012
+ var create = function create(options) {
5013
+ return new Jss(options);
5014
+ };
5015
+ /**
5016
+ * A global Jss instance.
5017
+ */
5018
+
5019
+ var jss = create();
5020
+
5021
+ /* unused harmony default export */ var _unused_webpack_default_export = (jss);
5022
+
5023
+
5024
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5025
+
5026
+ /***/ }),
5027
+ /* 54 */
5028
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5029
+
5030
+ "use strict";
5031
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _classCallCheck;
5032
+ function _classCallCheck(instance, Constructor) {
5033
+ if (!(instance instanceof Constructor)) {
5034
+ throw new TypeError("Cannot call a class as a function");
5035
+ }
5036
+ }
5037
+
5038
+ /***/ }),
5039
+ /* 55 */
5040
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5041
+
5042
+ "use strict";
5043
+ /* harmony export (immutable) */ __webpack_exports__["a"] = debounce;
5044
+ // Corresponds to 10 frames at 60 Hz.
5045
+ // A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.
5046
+ function debounce(func) {
5047
+ var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;
5048
+ var timeout;
5049
+
5050
+ function debounced() {
5051
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5052
+ args[_key] = arguments[_key];
5053
+ }
5054
+
5055
+ // eslint-disable-next-line consistent-this
5056
+ var that = this;
5057
+
5058
+ var later = function later() {
5059
+ func.apply(that, args);
5060
+ };
5061
+
5062
+ clearTimeout(timeout);
5063
+ timeout = setTimeout(later, wait);
5064
+ }
5065
+
5066
+ debounced.clear = function () {
5067
+ clearTimeout(timeout);
5068
+ };
5069
+
5070
+ return debounced;
5071
+ }
5072
+
5073
+ /***/ }),
5074
+ /* 56 */
5075
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5076
+
5077
+ "use strict";
5078
+ /* harmony export (immutable) */ __webpack_exports__["a"] = setRef;
5079
+ // TODO v5: consider to make it private
5080
+ function setRef(ref, value) {
5081
+ if (typeof ref === 'function') {
5082
+ ref(value);
5083
+ } else if (ref) {
5084
+ ref.current = value;
5085
+ }
5086
+ }
5087
+
5088
+ /***/ }),
5089
+ /* 57 */
5090
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5091
+
5092
+ "use strict";
5093
+ /* harmony export (immutable) */ __webpack_exports__["a"] = useFormControl;
5094
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5095
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5096
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FormControlContext__ = __webpack_require__(107);
5097
+
5098
+
5099
+ function useFormControl() {
5100
+ return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](__WEBPACK_IMPORTED_MODULE_1__FormControlContext__["a" /* default */]);
5101
+ }
5102
+
5103
+ /***/ }),
5104
+ /* 58 */
5105
+ /***/ (function(module, exports, __webpack_require__) {
5106
+
5107
+ var Symbol = __webpack_require__(87),
5108
+ getRawTag = __webpack_require__(802),
5109
+ objectToString = __webpack_require__(803);
5110
+
5111
+ /** `Object#toString` result references. */
5112
+ var nullTag = '[object Null]',
5113
+ undefinedTag = '[object Undefined]';
5114
+
5115
+ /** Built-in value references. */
5116
+ var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
5117
+
5118
+ /**
5119
+ * The base implementation of `getTag` without fallbacks for buggy environments.
5120
+ *
5121
+ * @private
5122
+ * @param {*} value The value to query.
5123
+ * @returns {string} Returns the `toStringTag`.
5124
+ */
5125
+ function baseGetTag(value) {
5126
+ if (value == null) {
5127
+ return value === undefined ? undefinedTag : nullTag;
5128
+ }
5129
+ return (symToStringTag && symToStringTag in Object(value))
5130
+ ? getRawTag(value)
5131
+ : objectToString(value);
5132
+ }
5133
+
5134
+ module.exports = baseGetTag;
5135
+
5136
+
5137
+ /***/ }),
5138
+ /* 59 */
5139
+ /***/ (function(module, exports, __webpack_require__) {
5140
+
5141
+ var baseIsNative = __webpack_require__(828),
5142
+ getValue = __webpack_require__(831);
5143
+
5144
+ /**
5145
+ * Gets the native function at `key` of `object`.
5146
+ *
5147
+ * @private
5148
+ * @param {Object} object The object to query.
5149
+ * @param {string} key The key of the method to get.
5150
+ * @returns {*} Returns the function if it's native, else `undefined`.
5151
+ */
5152
+ function getNative(object, key) {
5153
+ var value = getValue(object, key);
5154
+ return baseIsNative(value) ? value : undefined;
5155
+ }
5156
+
5157
+ module.exports = getNative;
5158
+
5159
+
5160
+ /***/ }),
5161
+ /* 60 */
5162
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5163
+
5164
+ "use strict";
5165
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsNative_js__ = __webpack_require__(924);
5166
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getValue_js__ = __webpack_require__(929);
5167
+
5168
+
5169
+
5170
+ /**
5171
+ * Gets the native function at `key` of `object`.
5172
+ *
5173
+ * @private
5174
+ * @param {Object} object The object to query.
5175
+ * @param {string} key The key of the method to get.
5176
+ * @returns {*} Returns the function if it's native, else `undefined`.
5177
+ */
5178
+ function getNative(object, key) {
5179
+ var value = Object(__WEBPACK_IMPORTED_MODULE_1__getValue_js__["a" /* default */])(object, key);
5180
+ return Object(__WEBPACK_IMPORTED_MODULE_0__baseIsNative_js__["a" /* default */])(value) ? value : undefined;
5181
+ }
5182
+
5183
+ /* harmony default export */ __webpack_exports__["a"] = (getNative);
5184
+
5185
+
5186
+ /***/ }),
5187
+ /* 61 */
5188
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5189
+
5190
+ "use strict";
5191
+ /**
5192
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
5193
+ * and has a `typeof` result of "object".
5194
+ *
5195
+ * @static
5196
+ * @memberOf _
5197
+ * @since 4.0.0
5198
+ * @category Lang
5199
+ * @param {*} value The value to check.
5200
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
5201
+ * @example
5202
+ *
5203
+ * _.isObjectLike({});
5204
+ * // => true
5205
+ *
5206
+ * _.isObjectLike([1, 2, 3]);
5207
+ * // => true
5208
+ *
5209
+ * _.isObjectLike(_.noop);
5210
+ * // => false
5211
+ *
5212
+ * _.isObjectLike(null);
5213
+ * // => false
5214
+ */
5215
+ function isObjectLike(value) {
5216
+ return value != null && typeof value == 'object';
5217
+ }
5218
+
5219
+ /* harmony default export */ __webpack_exports__["a"] = (isObjectLike);
5220
+
5221
+
5222
+ /***/ }),
5223
+ /* 62 */
5224
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5225
+
5226
+ "use strict";
5227
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayMap_js__ = __webpack_require__(434);
5228
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseIteratee_js__ = __webpack_require__(991);
5229
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__baseMap_js__ = __webpack_require__(1029);
5230
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isArray_js__ = __webpack_require__(35);
5231
+
5232
+
5233
+
5234
+
5235
+
5236
+ /**
5237
+ * Creates an array of values by running each element in `collection` thru
5238
+ * `iteratee`. The iteratee is invoked with three arguments:
5239
+ * (value, index|key, collection).
5240
+ *
5241
+ * Many lodash methods are guarded to work as iteratees for methods like
5242
+ * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
5243
+ *
5244
+ * The guarded methods are:
5245
+ * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
5246
+ * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
5247
+ * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
5248
+ * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
5249
+ *
5250
+ * @static
5251
+ * @memberOf _
5252
+ * @since 0.1.0
5253
+ * @category Collection
5254
+ * @param {Array|Object} collection The collection to iterate over.
5255
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
5256
+ * @returns {Array} Returns the new mapped array.
5257
+ * @example
5258
+ *
5259
+ * function square(n) {
5260
+ * return n * n;
5261
+ * }
5262
+ *
5263
+ * _.map([4, 8], square);
5264
+ * // => [16, 64]
5265
+ *
5266
+ * _.map({ 'a': 4, 'b': 8 }, square);
5267
+ * // => [16, 64] (iteration order is not guaranteed)
5268
+ *
5269
+ * var users = [
5270
+ * { 'user': 'barney' },
5271
+ * { 'user': 'fred' }
5272
+ * ];
5273
+ *
5274
+ * // The `_.property` iteratee shorthand.
5275
+ * _.map(users, 'user');
5276
+ * // => ['barney', 'fred']
5277
+ */
5278
+ function map(collection, iteratee) {
5279
+ var func = Object(__WEBPACK_IMPORTED_MODULE_3__isArray_js__["a" /* default */])(collection) ? __WEBPACK_IMPORTED_MODULE_0__arrayMap_js__["a" /* default */] : __WEBPACK_IMPORTED_MODULE_2__baseMap_js__["a" /* default */];
5280
+ return func(collection, Object(__WEBPACK_IMPORTED_MODULE_1__baseIteratee_js__["a" /* default */])(iteratee, 3));
5281
+ }
5282
+
5283
+ /* harmony default export */ __webpack_exports__["a"] = (map);
5284
+
5285
+
5286
+ /***/ }),
5287
+ /* 63 */
5288
+ /***/ (function(module, exports, __webpack_require__) {
5289
+
5290
+ "use strict";
5291
+ /*
5292
+ object-assign
5293
+ (c) Sindre Sorhus
5294
+ @license MIT
5295
+ */
5296
+
5297
+
5298
+ /* eslint-disable no-unused-vars */
5299
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5300
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
5301
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
5302
+
5303
+ function toObject(val) {
5304
+ if (val === null || val === undefined) {
5305
+ throw new TypeError('Object.assign cannot be called with null or undefined');
5306
+ }
5307
+
5308
+ return Object(val);
5309
+ }
5310
+
5311
+ function shouldUseNative() {
5312
+ try {
5313
+ if (!Object.assign) {
5314
+ return false;
5315
+ }
5316
+
5317
+ // Detect buggy property enumeration order in older V8 versions.
5318
+
5319
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
5320
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
5321
+ test1[5] = 'de';
5322
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
5323
+ return false;
5324
+ }
5325
+
5326
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5327
+ var test2 = {};
5328
+ for (var i = 0; i < 10; i++) {
5329
+ test2['_' + String.fromCharCode(i)] = i;
5330
+ }
5331
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
5332
+ return test2[n];
5333
+ });
5334
+ if (order2.join('') !== '0123456789') {
5335
+ return false;
5336
+ }
5337
+
5338
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5339
+ var test3 = {};
5340
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
5341
+ test3[letter] = letter;
5342
+ });
5343
+ if (Object.keys(Object.assign({}, test3)).join('') !==
5344
+ 'abcdefghijklmnopqrst') {
5345
+ return false;
5346
+ }
5347
+
5348
+ return true;
5349
+ } catch (err) {
5350
+ // We don't expect any of the above to throw, but better to be safe.
5351
+ return false;
5352
+ }
5353
+ }
5354
+
5355
+ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
5356
+ var from;
5357
+ var to = toObject(target);
5358
+ var symbols;
5359
+
5360
+ for (var s = 1; s < arguments.length; s++) {
5361
+ from = Object(arguments[s]);
5362
+
5363
+ for (var key in from) {
5364
+ if (hasOwnProperty.call(from, key)) {
5365
+ to[key] = from[key];
5366
+ }
5367
+ }
5368
+
5369
+ if (getOwnPropertySymbols) {
5370
+ symbols = getOwnPropertySymbols(from);
5371
+ for (var i = 0; i < symbols.length; i++) {
5372
+ if (propIsEnumerable.call(from, symbols[i])) {
5373
+ to[symbols[i]] = from[symbols[i]];
5374
+ }
5375
+ }
5376
+ }
5377
+ }
5378
+
5379
+ return to;
5380
+ };
5381
+
5382
+
5383
+ /***/ }),
5384
+ /* 64 */
5385
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5386
+
5387
+ "use strict";
5388
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useTheme__ = __webpack_require__(528);
5389
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useTheme__["a"]; });
5390
+
5391
+
5392
+ /***/ }),
5393
+ /* 65 */
5394
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5395
+
5396
+ "use strict";
5397
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createChainedFunction;
5398
+ /**
5399
+ * Safe chained function
5400
+ *
5401
+ * Will only create a new function if needed,
5402
+ * otherwise will pass back existing functions or null.
5403
+ *
5404
+ * @param {function} functions to chain
5405
+ * @returns {function|null}
5406
+ */
5407
+ function createChainedFunction() {
5408
+ for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
5409
+ funcs[_key] = arguments[_key];
5410
+ }
5411
+
5412
+ return funcs.reduce(function (acc, func) {
5413
+ if (func == null) {
5414
+ return acc;
5415
+ }
5416
+
5417
+ if (process.env.NODE_ENV !== 'production') {
5418
+ if (typeof func !== 'function') {
5419
+ console.error('Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.');
5420
+ }
5421
+ }
5422
+
5423
+ return function chainedFunction() {
5424
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5425
+ args[_key2] = arguments[_key2];
5426
+ }
5427
+
5428
+ acc.apply(this, args);
5429
+ func.apply(this, args);
5430
+ };
5431
+ }, function () {});
5432
+ }
5433
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5434
+
5435
+ /***/ }),
5436
+ /* 66 */
5437
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5438
+
5439
+ "use strict";
5440
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CSSTransition__ = __webpack_require__(602);
5441
+ /* unused harmony reexport CSSTransition */
5442
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ReplaceTransition__ = __webpack_require__(606);
5443
+ /* unused harmony reexport ReplaceTransition */
5444
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SwitchTransition__ = __webpack_require__(608);
5445
+ /* unused harmony reexport SwitchTransition */
5446
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__ = __webpack_require__(283);
5447
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__["a"]; });
5448
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Transition__ = __webpack_require__(152);
5449
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_4__Transition__["d"]; });
5450
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(281);
5451
+ /* unused harmony reexport config */
5452
+
5453
+
5454
+
5455
+
5456
+
5457
+
5458
+
5459
+ /***/ }),
5460
+ /* 67 */
5461
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5462
+
5463
+ "use strict";
5464
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Collapse__ = __webpack_require__(626);
5465
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Collapse__["a"]; });
5466
+
5467
+
5468
+ /***/ }),
5469
+ /* 68 */
5470
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5471
+
5472
+ "use strict";
5473
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return reflow; });
5474
+ /* harmony export (immutable) */ __webpack_exports__["a"] = getTransitionProps;
5475
+ var reflow = function reflow(node) {
5476
+ return node.scrollTop;
5477
+ };
5478
+ function getTransitionProps(props, options) {
5479
+ var timeout = props.timeout,
5480
+ _props$style = props.style,
5481
+ style = _props$style === void 0 ? {} : _props$style;
5482
+ return {
5483
+ duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
5484
+ delay: style.transitionDelay
5485
+ };
5486
+ }
5487
+
5488
+ /***/ }),
5489
+ /* 69 */
5490
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5491
+
5492
+ "use strict";
5493
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputBase__ = __webpack_require__(678);
5494
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputBase__["a"]; });
5495
+
5496
+
5497
+ /***/ }),
5498
+ /* 70 */
5499
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5500
+
5501
+ "use strict";
5502
+ /* harmony export (immutable) */ __webpack_exports__["a"] = formControlState;
5503
+ function formControlState(_ref) {
5504
+ var props = _ref.props,
5505
+ states = _ref.states,
5506
+ muiFormControl = _ref.muiFormControl;
5507
+ return states.reduce(function (acc, state) {
5508
+ acc[state] = props[state];
5509
+
5510
+ if (muiFormControl) {
5511
+ if (typeof props[state] === 'undefined') {
5512
+ acc[state] = muiFormControl[state];
5513
+ }
5514
+ }
5515
+
5516
+ return acc;
5517
+ }, {});
5518
+ }
5519
+
5520
+ /***/ }),
5521
+ /* 71 */
5522
+ /***/ (function(module, exports) {
5523
+
5524
+ /**
5525
+ * Checks if `value` is the
5526
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
5527
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
5528
+ *
5529
+ * @static
5530
+ * @memberOf _
5531
+ * @since 0.1.0
5532
+ * @category Lang
5533
+ * @param {*} value The value to check.
5534
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
5535
+ * @example
5536
+ *
5537
+ * _.isObject({});
5538
+ * // => true
5539
+ *
5540
+ * _.isObject([1, 2, 3]);
5541
+ * // => true
5542
+ *
5543
+ * _.isObject(_.noop);
5544
+ * // => true
5545
+ *
5546
+ * _.isObject(null);
5547
+ * // => false
5548
+ */
5549
+ function isObject(value) {
5550
+ var type = typeof value;
5551
+ return value != null && (type == 'object' || type == 'function');
5552
+ }
5553
+
5554
+ module.exports = isObject;
5555
+
5556
+
5557
+ /***/ }),
5558
+ /* 72 */
5559
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5560
+
5561
+ "use strict";
5562
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(129);
5563
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getRawTag_js__ = __webpack_require__(925);
5564
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__objectToString_js__ = __webpack_require__(926);
5565
+
5566
+
5567
+
5568
+
5569
+ /** `Object#toString` result references. */
5570
+ var nullTag = '[object Null]',
5571
+ undefinedTag = '[object Undefined]';
5572
+
5573
+ /** Built-in value references. */
5574
+ var symToStringTag = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */] ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */].toStringTag : undefined;
5575
+
5576
+ /**
5577
+ * The base implementation of `getTag` without fallbacks for buggy environments.
5578
+ *
5579
+ * @private
5580
+ * @param {*} value The value to query.
5581
+ * @returns {string} Returns the `toStringTag`.
5582
+ */
5583
+ function baseGetTag(value) {
5584
+ if (value == null) {
5585
+ return value === undefined ? undefinedTag : nullTag;
5586
+ }
5587
+ return (symToStringTag && symToStringTag in Object(value))
5588
+ ? Object(__WEBPACK_IMPORTED_MODULE_1__getRawTag_js__["a" /* default */])(value)
5589
+ : Object(__WEBPACK_IMPORTED_MODULE_2__objectToString_js__["a" /* default */])(value);
5590
+ }
5591
+
5592
+ /* harmony default export */ __webpack_exports__["a"] = (baseGetTag);
5593
+
5594
+
5595
+ /***/ }),
5596
+ /* 73 */
5597
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5598
+
5599
+ "use strict";
5600
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isFunction_js__ = __webpack_require__(208);
5601
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isLength_js__ = __webpack_require__(214);
5602
+
5603
+
5604
+
5605
+ /**
5606
+ * Checks if `value` is array-like. A value is considered array-like if it's
5607
+ * not a function and has a `value.length` that's an integer greater than or
5608
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
5609
+ *
5610
+ * @static
5611
+ * @memberOf _
5612
+ * @since 4.0.0
5613
+ * @category Lang
5614
+ * @param {*} value The value to check.
5615
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
5616
+ * @example
5617
+ *
5618
+ * _.isArrayLike([1, 2, 3]);
5619
+ * // => true
5620
+ *
5621
+ * _.isArrayLike(document.body.children);
5622
+ * // => true
5623
+ *
5624
+ * _.isArrayLike('abc');
5625
+ * // => true
5626
+ *
5627
+ * _.isArrayLike(_.noop);
5628
+ * // => false
5629
+ */
5630
+ function isArrayLike(value) {
5631
+ return value != null && Object(__WEBPACK_IMPORTED_MODULE_1__isLength_js__["a" /* default */])(value.length) && !Object(__WEBPACK_IMPORTED_MODULE_0__isFunction_js__["a" /* default */])(value);
5632
+ }
5633
+
5634
+ /* harmony default export */ __webpack_exports__["a"] = (isArrayLike);
5635
+
5636
+
5637
+ /***/ }),
5638
+ /* 74 */
5639
+ /***/ (function(module, exports, __webpack_require__) {
5640
+
5641
+ "use strict";
5642
+
5643
+
5644
+ var reactIs = __webpack_require__(19);
5645
+
5646
+ /**
5647
+ * Copyright 2015, Yahoo! Inc.
5648
+ * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
5649
+ */
5650
+ var REACT_STATICS = {
5651
+ childContextTypes: true,
5652
+ contextType: true,
5653
+ contextTypes: true,
5654
+ defaultProps: true,
5655
+ displayName: true,
5656
+ getDefaultProps: true,
5657
+ getDerivedStateFromError: true,
5658
+ getDerivedStateFromProps: true,
5659
+ mixins: true,
5660
+ propTypes: true,
5661
+ type: true
5662
+ };
5663
+ var KNOWN_STATICS = {
5664
+ name: true,
5665
+ length: true,
5666
+ prototype: true,
5667
+ caller: true,
5668
+ callee: true,
5669
+ arguments: true,
5670
+ arity: true
5671
+ };
5672
+ var FORWARD_REF_STATICS = {
5673
+ '$$typeof': true,
5674
+ render: true,
5675
+ defaultProps: true,
5676
+ displayName: true,
5677
+ propTypes: true
5678
+ };
5679
+ var MEMO_STATICS = {
5680
+ '$$typeof': true,
5681
+ compare: true,
5682
+ defaultProps: true,
5683
+ displayName: true,
5684
+ propTypes: true,
5685
+ type: true
5686
+ };
5687
+ var TYPE_STATICS = {};
5688
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
5689
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
5690
+
5691
+ function getStatics(component) {
5692
+ // React v16.11 and below
5693
+ if (reactIs.isMemo(component)) {
5694
+ return MEMO_STATICS;
5695
+ } // React v16.12 and above
5696
+
5697
+
5698
+ return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
5699
+ }
5700
+
5701
+ var defineProperty = Object.defineProperty;
5702
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
5703
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5704
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
5705
+ var getPrototypeOf = Object.getPrototypeOf;
5706
+ var objectPrototype = Object.prototype;
5707
+ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
5708
+ if (typeof sourceComponent !== 'string') {
5709
+ // don't hoist over string (html) components
5710
+ if (objectPrototype) {
5711
+ var inheritedComponent = getPrototypeOf(sourceComponent);
5712
+
5713
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
5714
+ hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
5715
+ }
5716
+ }
5717
+
5718
+ var keys = getOwnPropertyNames(sourceComponent);
5719
+
5720
+ if (getOwnPropertySymbols) {
5721
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
5722
+ }
5723
+
5724
+ var targetStatics = getStatics(targetComponent);
5725
+ var sourceStatics = getStatics(sourceComponent);
5726
+
5727
+ for (var i = 0; i < keys.length; ++i) {
5728
+ var key = keys[i];
5729
+
5730
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
5731
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
5732
+
5733
+ try {
5734
+ // Avoid failures from read-only properties
5735
+ defineProperty(targetComponent, key, descriptor);
5736
+ } catch (e) {}
5737
+ }
5738
+ }
5739
+ }
5740
+
5741
+ return targetComponent;
5742
+ }
5743
+
5744
+ module.exports = hoistNonReactStatics;
5745
+
5746
+
5747
+ /***/ }),
5748
+ /* 75 */
5749
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5750
+
5751
+ "use strict";
5752
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createMuiTheme__ = __webpack_require__(146);
5753
+
5754
+ var defaultTheme = Object(__WEBPACK_IMPORTED_MODULE_0__createMuiTheme__["a" /* default */])();
5755
+ /* harmony default export */ __webpack_exports__["a"] = (defaultTheme);
5756
+
5757
+ /***/ }),
5758
+ /* 76 */
5759
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5760
+
5761
+ "use strict";
5762
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _inherits;
5763
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__setPrototypeOf__ = __webpack_require__(556);
5764
+
5765
+ function _inherits(subClass, superClass) {
5766
+ if (typeof superClass !== "function" && superClass !== null) {
5767
+ throw new TypeError("Super expression must either be null or a function");
5768
+ }
5769
+
5770
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
5771
+ constructor: {
5772
+ value: subClass,
5773
+ writable: true,
5774
+ configurable: true
5775
+ }
5776
+ });
5777
+ if (superClass) Object(__WEBPACK_IMPORTED_MODULE_0__setPrototypeOf__["a" /* default */])(subClass, superClass);
5778
+ }
5779
+
5780
+ /***/ }),
5781
+ /* 77 */
5782
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5783
+
5784
+ "use strict";
5785
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _possibleConstructorReturn;
5786
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__helpers_esm_typeof__ = __webpack_require__(48);
5787
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__assertThisInitialized__ = __webpack_require__(93);
5788
+
5789
+
5790
+ function _possibleConstructorReturn(self, call) {
5791
+ if (call && (Object(__WEBPACK_IMPORTED_MODULE_0__helpers_esm_typeof__["a" /* default */])(call) === "object" || typeof call === "function")) {
5792
+ return call;
5793
+ }
5794
+
5795
+ return Object(__WEBPACK_IMPORTED_MODULE_1__assertThisInitialized__["a" /* default */])(self);
5796
+ }
5797
+
5798
+ /***/ }),
5799
+ /* 78 */
5800
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5801
+
5802
+ "use strict";
5803
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _getPrototypeOf;
5804
+ function _getPrototypeOf(o) {
5805
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
5806
+ return o.__proto__ || Object.getPrototypeOf(o);
5807
+ };
5808
+ return _getPrototypeOf(o);
5809
+ }
5810
+
5811
+ /***/ }),
5812
+ /* 79 */
5813
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5814
+
5815
+ "use strict";
5816
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__ = __webpack_require__(151);
5817
+
5818
+
5819
+ function css() {
5820
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5821
+ args[_key] = arguments[_key];
5822
+ }
5823
+
5824
+ return Object(__WEBPACK_IMPORTED_MODULE_0__emotion_serialize__["a" /* serializeStyles */])(args);
5825
+ }
5826
+
5827
+ /* harmony default export */ __webpack_exports__["a"] = (css);
5828
+
5829
+
5830
+ /***/ }),
5831
+ /* 80 */
5832
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5833
+
5834
+ "use strict";
5835
+ /* harmony export (immutable) */ __webpack_exports__["a"] = isMuiElement;
5836
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5837
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5838
+
5839
+ function isMuiElement(element, muiNames) {
5840
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["isValidElement"](element) && muiNames.indexOf(element.type.muiName) !== -1;
5841
+ }
5842
+
5843
+ /***/ }),
5844
+ /* 81 */
5845
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5846
+
5847
+ "use strict";
5848
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export teardown */
5849
+ /* harmony export (immutable) */ __webpack_exports__["a"] = useIsFocusVisible;
5850
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5851
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5852
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(14);
5853
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);
5854
+ // based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
5855
+
5856
+
5857
+ var hadKeyboardEvent = true;
5858
+ var hadFocusVisibleRecently = false;
5859
+ var hadFocusVisibleRecentlyTimeout = null;
5860
+ var inputTypesWhitelist = {
5861
+ text: true,
5862
+ search: true,
5863
+ url: true,
5864
+ tel: true,
5865
+ email: true,
5866
+ password: true,
5867
+ number: true,
5868
+ date: true,
5869
+ month: true,
5870
+ week: true,
5871
+ time: true,
5872
+ datetime: true,
5873
+ 'datetime-local': true
5874
+ };
5875
+ /**
5876
+ * Computes whether the given element should automatically trigger the
5877
+ * `focus-visible` class being added, i.e. whether it should always match
5878
+ * `:focus-visible` when focused.
5879
+ * @param {Element} node
5880
+ * @return {boolean}
5881
+ */
5882
+
5883
+ function focusTriggersKeyboardModality(node) {
5884
+ var type = node.type,
5885
+ tagName = node.tagName;
5886
+
5887
+ if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {
5888
+ return true;
5889
+ }
5890
+
5891
+ if (tagName === 'TEXTAREA' && !node.readOnly) {
5892
+ return true;
5893
+ }
5894
+
5895
+ if (node.isContentEditable) {
5896
+ return true;
5897
+ }
5898
+
5899
+ return false;
5900
+ }
5901
+ /**
5902
+ * Keep track of our keyboard modality state with `hadKeyboardEvent`.
5903
+ * If the most recent user interaction was via the keyboard;
5904
+ * and the key press did not include a meta, alt/option, or control key;
5905
+ * then the modality is keyboard. Otherwise, the modality is not keyboard.
5906
+ * @param {KeyboardEvent} event
5907
+ */
5908
+
5909
+
5910
+ function handleKeyDown(event) {
5911
+ if (event.metaKey || event.altKey || event.ctrlKey) {
5912
+ return;
5913
+ }
5914
+
5915
+ hadKeyboardEvent = true;
5916
+ }
5917
+ /**
5918
+ * If at any point a user clicks with a pointing device, ensure that we change
5919
+ * the modality away from keyboard.
5920
+ * This avoids the situation where a user presses a key on an already focused
5921
+ * element, and then clicks on a different element, focusing it with a
5922
+ * pointing device, while we still think we're in keyboard modality.
5923
+ */
5924
+
5925
+
5926
+ function handlePointerDown() {
5927
+ hadKeyboardEvent = false;
5928
+ }
5929
+
5930
+ function handleVisibilityChange() {
5931
+ if (this.visibilityState === 'hidden') {
5932
+ // If the tab becomes active again, the browser will handle calling focus
5933
+ // on the element (Safari actually calls it twice).
5934
+ // If this tab change caused a blur on an element with focus-visible,
5935
+ // re-apply the class when the user switches back to the tab.
5936
+ if (hadFocusVisibleRecently) {
5937
+ hadKeyboardEvent = true;
5938
+ }
5939
+ }
5940
+ }
5941
+
5942
+ function prepare(doc) {
5943
+ doc.addEventListener('keydown', handleKeyDown, true);
5944
+ doc.addEventListener('mousedown', handlePointerDown, true);
5945
+ doc.addEventListener('pointerdown', handlePointerDown, true);
5946
+ doc.addEventListener('touchstart', handlePointerDown, true);
5947
+ doc.addEventListener('visibilitychange', handleVisibilityChange, true);
5948
+ }
5949
+
5950
+ function teardown(doc) {
5951
+ doc.removeEventListener('keydown', handleKeyDown, true);
5952
+ doc.removeEventListener('mousedown', handlePointerDown, true);
5953
+ doc.removeEventListener('pointerdown', handlePointerDown, true);
5954
+ doc.removeEventListener('touchstart', handlePointerDown, true);
5955
+ doc.removeEventListener('visibilitychange', handleVisibilityChange, true);
5956
+ }
5957
+
5958
+ function isFocusVisible(event) {
5959
+ var target = event.target;
5960
+
5961
+ try {
5962
+ return target.matches(':focus-visible');
5963
+ } catch (error) {} // browsers not implementing :focus-visible will throw a SyntaxError
5964
+ // we use our own heuristic for those browsers
5965
+ // rethrow might be better if it's not the expected error but do we really
5966
+ // want to crash if focus-visible malfunctioned?
5967
+ // no need for validFocusTarget check. the user does that by attaching it to
5968
+ // focusable events only
5969
+
5970
+
5971
+ return hadKeyboardEvent || focusTriggersKeyboardModality(target);
5972
+ }
5973
+ /**
5974
+ * Should be called if a blur event is fired on a focus-visible element
5975
+ */
5976
+
5977
+
5978
+ function handleBlurVisible() {
5979
+ // To detect a tab/window switch, we look for a blur event followed
5980
+ // rapidly by a visibility change.
5981
+ // If we don't see a visibility change within 100ms, it's probably a
5982
+ // regular focus change.
5983
+ hadFocusVisibleRecently = true;
5984
+ window.clearTimeout(hadFocusVisibleRecentlyTimeout);
5985
+ hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {
5986
+ hadFocusVisibleRecently = false;
5987
+ }, 100);
5988
+ }
5989
+
5990
+ function useIsFocusVisible() {
5991
+ var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (instance) {
5992
+ var node = __WEBPACK_IMPORTED_MODULE_1_react_dom__["findDOMNode"](instance);
5993
+
5994
+ if (node != null) {
5995
+ prepare(node.ownerDocument);
5996
+ }
5997
+ }, []);
5998
+
5999
+ if (process.env.NODE_ENV !== 'production') {
6000
+ // eslint-disable-next-line react-hooks/rules-of-hooks
6001
+ __WEBPACK_IMPORTED_MODULE_0_react__["useDebugValue"](isFocusVisible);
6002
+ }
6003
+
6004
+ return {
6005
+ isFocusVisible: isFocusVisible,
6006
+ onBlurVisible: handleBlurVisible,
6007
+ ref: ref
6008
+ };
6009
+ }
6010
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6011
+
6012
+ /***/ }),
6013
+ /* 82 */
6014
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6015
+
6016
+ "use strict";
6017
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Modal__ = __webpack_require__(662);
6018
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Modal__["a"]; });
6019
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ModalManager__ = __webpack_require__(309);
6020
+ /* unused harmony reexport ModalManager */
6021
+
6022
+
6023
+
6024
+ /***/ }),
6025
+ /* 83 */
6026
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6027
+
6028
+ "use strict";
6029
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Grow__ = __webpack_require__(689);
6030
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Grow__["a"]; });
6031
+
6032
+
6033
+ /***/ }),
6034
+ /* 84 */
6035
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6036
+
6037
+ "use strict";
6038
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Input__ = __webpack_require__(694);
6039
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Input__["a"]; });
6040
+
6041
+
6042
+ /***/ }),
6043
+ /* 85 */
6044
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6045
+
6046
+ "use strict";
6047
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6048
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6049
+
6050
+ /**
6051
+ * @ignore - internal component.
6052
+ */
6053
+
6054
+ var ListContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
6055
+
6056
+ if (process.env.NODE_ENV !== 'production') {
6057
+ ListContext.displayName = 'ListContext';
6058
+ }
6059
+
6060
+ /* harmony default export */ __webpack_exports__["a"] = (ListContext);
6061
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6062
+
6063
+ /***/ }),
6064
+ /* 86 */
6065
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6066
+
6067
+ "use strict";
6068
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6069
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6070
+
6071
+ /**
6072
+ * @ignore - internal component.
6073
+ */
6074
+
6075
+ var Tablelvl2Context = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
6076
+
6077
+ if (process.env.NODE_ENV !== 'production') {
6078
+ Tablelvl2Context.displayName = 'Tablelvl2Context';
6079
+ }
6080
+
6081
+ /* harmony default export */ __webpack_exports__["a"] = (Tablelvl2Context);
6082
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6083
+
6084
+ /***/ }),
6085
+ /* 87 */
6086
+ /***/ (function(module, exports, __webpack_require__) {
6087
+
6088
+ var root = __webpack_require__(42);
6089
+
6090
+ /** Built-in value references. */
6091
+ var Symbol = root.Symbol;
6092
+
6093
+ module.exports = Symbol;
6094
+
6095
+
6096
+ /***/ }),
6097
+ /* 88 */
6098
+ /***/ (function(module, exports, __webpack_require__) {
6099
+
6100
+ var arrayLikeKeys = __webpack_require__(397),
6101
+ baseKeys = __webpack_require__(810),
6102
+ isArrayLike = __webpack_require__(119);
6103
+
6104
+ /**
6105
+ * Creates an array of the own enumerable property names of `object`.
6106
+ *
6107
+ * **Note:** Non-object values are coerced to objects. See the
6108
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
6109
+ * for more details.
6110
+ *
6111
+ * @static
6112
+ * @since 0.1.0
6113
+ * @memberOf _
6114
+ * @category Object
6115
+ * @param {Object} object The object to query.
6116
+ * @returns {Array} Returns the array of property names.
6117
+ * @example
6118
+ *
6119
+ * function Foo() {
6120
+ * this.a = 1;
6121
+ * this.b = 2;
6122
+ * }
6123
+ *
6124
+ * Foo.prototype.c = 3;
6125
+ *
6126
+ * _.keys(new Foo);
6127
+ * // => ['a', 'b'] (iteration order is not guaranteed)
6128
+ *
6129
+ * _.keys('hi');
6130
+ * // => ['0', '1']
6131
+ */
6132
+ function keys(object) {
6133
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
6134
+ }
6135
+
6136
+ module.exports = keys;
6137
+
6138
+
6139
+ /***/ }),
6140
+ /* 89 */
6141
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6142
+
6143
+ "use strict";
6144
+ /**
6145
+ * Performs a
6146
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
6147
+ * comparison between two values to determine if they are equivalent.
6148
+ *
6149
+ * @static
6150
+ * @memberOf _
6151
+ * @since 4.0.0
6152
+ * @category Lang
6153
+ * @param {*} value The value to compare.
6154
+ * @param {*} other The other value to compare.
6155
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
6156
+ * @example
6157
+ *
6158
+ * var object = { 'a': 1 };
6159
+ * var other = { 'a': 1 };
6160
+ *
6161
+ * _.eq(object, object);
6162
+ * // => true
6163
+ *
6164
+ * _.eq(object, other);
6165
+ * // => false
6166
+ *
6167
+ * _.eq('a', 'a');
6168
+ * // => true
6169
+ *
6170
+ * _.eq('a', Object('a'));
6171
+ * // => false
6172
+ *
6173
+ * _.eq(NaN, NaN);
6174
+ * // => true
6175
+ */
6176
+ function eq(value, other) {
6177
+ return value === other || (value !== value && other !== other);
6178
+ }
6179
+
6180
+ /* harmony default export */ __webpack_exports__["a"] = (eq);
6181
+
6182
+
6183
+ /***/ }),
6184
+ /* 90 */
6185
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6186
+
6187
+ "use strict";
6188
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6189
+ /* harmony export (immutable) */ __webpack_exports__["default"] = startOfWeek;
6190
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(9);
6191
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__ = __webpack_require__(12);
6192
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(7);
6193
+
6194
+
6195
+
6196
+ /**
6197
+ * @name startOfWeek
6198
+ * @category Week Helpers
6199
+ * @summary Return the start of a week for the given date.
6200
+ *
6201
+ * @description
6202
+ * Return the start of a week for the given date.
6203
+ * The result will be in the local timezone.
6204
+ *
6205
+ * ### v2.0.0 breaking changes:
6206
+ *
6207
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
6208
+ *
6209
+ * @param {Date|Number} date - the original date
6210
+ * @param {Object} [options] - an object with options.
6211
+ * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
6212
+ * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
6213
+ * @returns {Date} the start of a week
6214
+ * @throws {TypeError} 1 argument required
6215
+ * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
6216
+ *
6217
+ * @example
6218
+ * // The start of a week for 2 September 2014 11:55:00:
6219
+ * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
6220
+ * //=> Sun Aug 31 2014 00:00:00
6221
+ *
6222
+ * @example
6223
+ * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
6224
+ * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
6225
+ * //=> Mon Sep 01 2014 00:00:00
6226
+ */
6227
+
6228
+ function startOfWeek(dirtyDate, dirtyOptions) {
6229
+ Object(__WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */])(1, arguments);
6230
+ var options = dirtyOptions || {};
6231
+ var locale = options.locale;
6232
+ var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
6233
+ var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(__WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */])(localeWeekStartsOn);
6234
+ var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(__WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
6235
+
6236
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
6237
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
6238
+ }
6239
+
6240
+ var date = Object(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["default"])(dirtyDate);
6241
+ var day = date.getDay();
6242
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
6243
+ date.setDate(date.getDate() - diff);
6244
+ date.setHours(0, 0, 0, 0);
6245
+ return date;
6246
+ }
6247
+
6248
+ /***/ }),
6249
+ /* 91 */
6250
+ /***/ (function(module, exports, __webpack_require__) {
6251
+
6252
+ "use strict";
6253
+
6254
+
6255
+ var keys = __webpack_require__(459);
6256
+ var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
6257
+
6258
+ var toStr = Object.prototype.toString;
6259
+ var concat = Array.prototype.concat;
6260
+ var origDefineProperty = Object.defineProperty;
6261
+
6262
+ var isFunction = function (fn) {
6263
+ return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
6264
+ };
6265
+
6266
+ var arePropertyDescriptorsSupported = function () {
6267
+ var obj = {};
6268
+ try {
6269
+ origDefineProperty(obj, 'x', { enumerable: false, value: obj });
6270
+ // eslint-disable-next-line no-unused-vars, no-restricted-syntax
6271
+ for (var _ in obj) { // jscs:ignore disallowUnusedVariables
6272
+ return false;
6273
+ }
6274
+ return obj.x === obj;
6275
+ } catch (e) { /* this is IE 8. */
6276
+ return false;
6277
+ }
6278
+ };
6279
+ var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported();
6280
+
6281
+ var defineProperty = function (object, name, value, predicate) {
6282
+ if (name in object && (!isFunction(predicate) || !predicate())) {
6283
+ return;
6284
+ }
6285
+ if (supportsDescriptors) {
6286
+ origDefineProperty(object, name, {
6287
+ configurable: true,
6288
+ enumerable: false,
6289
+ value: value,
6290
+ writable: true
6291
+ });
6292
+ } else {
6293
+ object[name] = value;
6294
+ }
6295
+ };
6296
+
6297
+ var defineProperties = function (object, map) {
6298
+ var predicates = arguments.length > 2 ? arguments[2] : {};
6299
+ var props = keys(map);
6300
+ if (hasSymbols) {
6301
+ props = concat.call(props, Object.getOwnPropertySymbols(map));
6302
+ }
6303
+ for (var i = 0; i < props.length; i += 1) {
6304
+ defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
6305
+ }
6306
+ };
6307
+
6308
+ defineProperties.supportsDescriptors = !!supportsDescriptors;
6309
+
6310
+ module.exports = defineProperties;
6311
+
6312
+
6313
+ /***/ }),
6314
+ /* 92 */
6315
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6316
+
6317
+ "use strict";
6318
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__ = __webpack_require__(510);
6319
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__["a"]; });
6320
+
6321
+
6322
+ /***/ }),
6323
+ /* 93 */
6324
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6325
+
6326
+ "use strict";
6327
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _assertThisInitialized;
6328
+ function _assertThisInitialized(self) {
6329
+ if (self === void 0) {
6330
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6331
+ }
6332
+
6333
+ return self;
6334
+ }
6335
+
6336
+ /***/ }),
6337
+ /* 94 */
6338
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6339
+
6340
+ "use strict";
6341
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__makeStyles__ = __webpack_require__(525);
6342
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__makeStyles__["a"]; });
6343
+
6344
+
6345
+ /***/ }),
6346
+ /* 95 */
6347
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6348
+
6349
+ "use strict";
6350
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StylesProvider__ = __webpack_require__(236);
6351
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["b"]; });
6352
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["a"]; });
6353
+
6354
+
6355
+
6356
+ /***/ }),
6357
+ /* 96 */
6358
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6359
+
6360
+ "use strict";
6361
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(8);
6362
+
6363
+
6364
+ function merge(acc, item) {
6365
+ if (!item) {
6366
+ return acc;
6367
+ }
6368
+
6369
+ return Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["c" /* deepmerge */])(acc, item, {
6370
+ clone: false // No need to clone deep, it's way faster.
6371
+
6372
+ });
6373
+ }
6374
+
6375
+ /* harmony default export */ __webpack_exports__["a"] = (merge);
6376
+
6377
+ /***/ }),
6378
+ /* 97 */
6379
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6380
+
6381
+ "use strict";
6382
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6383
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NonceProvider", function() { return NonceProvider; });
6384
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(547);
6385
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__);
6386
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__ = __webpack_require__(148);
6387
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__);
6388
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__ = __webpack_require__(548);
6389
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__);
6390
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__ = __webpack_require__(552);
6391
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__);
6392
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__ = __webpack_require__(98);
6393
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__);
6394
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(54);
6395
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__ = __webpack_require__(49);
6396
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__ = __webpack_require__(99);
6397
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__);
6398
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__ = __webpack_require__(76);
6399
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(77);
6400
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(78);
6401
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(0);
6402
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
6403
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_memoize_one__ = __webpack_require__(269);
6404
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__emotion_core__ = __webpack_require__(149);
6405
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom__ = __webpack_require__(14);
6406
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__);
6407
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__ = __webpack_require__(562);
6408
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__);
6409
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__index_4b37608a_browser_esm_js__ = __webpack_require__(273);
6410
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return __WEBPACK_IMPORTED_MODULE_16__index_4b37608a_browser_esm_js__["f"]; });
6411
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__ = __webpack_require__(275);
6412
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createFilter", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["c"]; });
6413
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "defaultTheme", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["b"]; });
6414
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mergeStyles", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["d"]; });
6415
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__emotion_css__ = __webpack_require__(79);
6416
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__ = __webpack_require__(564);
6417
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__);
6418
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize__ = __webpack_require__(274);
6419
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_20_react_input_autosize__);
6420
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__ = __webpack_require__(565);
6421
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__emotion_cache__ = __webpack_require__(150);
6422
+
6423
+
6424
+
6425
+
6426
+
6427
+
6428
+
6429
+
6430
+
6431
+
6432
+
6433
+
6434
+
6435
+
6436
+
6437
+
6438
+
6439
+
6440
+
6441
+
6442
+
6443
+
6444
+
6445
+
6446
+
6447
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
6448
+
6449
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
6450
+
6451
+ var NonceProvider = /*#__PURE__*/function (_Component) {
6452
+ Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(NonceProvider, _Component);
6453
+
6454
+ var _super = _createSuper(NonceProvider);
6455
+
6456
+ function NonceProvider(props) {
6457
+ var _this;
6458
+
6459
+ Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, NonceProvider);
6460
+
6461
+ _this = _super.call(this, props);
6462
+
6463
+ _this.createEmotionCache = function (nonce) {
6464
+ return Object(__WEBPACK_IMPORTED_MODULE_22__emotion_cache__["a" /* default */])({
6465
+ nonce: nonce
6466
+ });
6467
+ };
6468
+
6469
+ _this.createEmotionCache = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.createEmotionCache);
6470
+ return _this;
6471
+ }
6472
+
6473
+ Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(NonceProvider, [{
6474
+ key: "render",
6475
+ value: function render() {
6476
+ var emotionCache = this.createEmotionCache(this.props.nonce);
6477
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["a" /* CacheProvider */], {
6478
+ value: emotionCache
6479
+ }, this.props.children);
6480
+ }
6481
+ }]);
6482
+
6483
+ return NonceProvider;
6484
+ }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
6485
+
6486
+ var index = Object(__WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__["a" /* m */])(__WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["a" /* S */]);
6487
+
6488
+ /* harmony default export */ __webpack_exports__["default"] = (index);
6489
+
6490
+
6491
+
6492
+ /***/ }),
6493
+ /* 98 */
6494
+ /***/ (function(module, exports) {
6495
+
6496
+ function _defineProperty(obj, key, value) {
6497
+ if (key in obj) {
6498
+ Object.defineProperty(obj, key, {
6499
+ value: value,
6500
+ enumerable: true,
6501
+ configurable: true,
6502
+ writable: true
6503
+ });
6504
+ } else {
6505
+ obj[key] = value;
6506
+ }
6507
+
6508
+ return obj;
6509
+ }
6510
+
6511
+ module.exports = _defineProperty;
6512
+
6513
+ /***/ }),
6514
+ /* 99 */
6515
+ /***/ (function(module, exports) {
6516
+
6517
+ function _assertThisInitialized(self) {
6518
+ if (self === void 0) {
6519
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6520
+ }
6521
+
6522
+ return self;
6523
+ }
6524
+
6525
+ module.exports = _assertThisInitialized;
6526
+
6527
+ /***/ }),
6528
+ /* 100 */
6529
+ /***/ (function(module, exports) {
6530
+
6531
+ function _inheritsLoose(subClass, superClass) {
6532
+ subClass.prototype = Object.create(superClass.prototype);
6533
+ subClass.prototype.constructor = subClass;
6534
+ subClass.__proto__ = superClass;
6535
+ }
6536
+
6537
+ module.exports = _inheritsLoose;
6538
+
6539
+ /***/ }),
6540
+ /* 101 */
6541
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6542
+
6543
+ "use strict";
6544
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SvgIcon__ = __webpack_require__(594);
6545
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SvgIcon__["a"]; });
6546
+
6547
+
6548
+ /***/ }),
6549
+ /* 102 */
6550
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6551
+
6552
+ "use strict";
6553
+ /* harmony export (immutable) */ __webpack_exports__["a"] = ownerWindow;
6554
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ownerDocument__ = __webpack_require__(31);
6555
+
6556
+ function ownerWindow(node) {
6557
+ var doc = Object(__WEBPACK_IMPORTED_MODULE_0__ownerDocument__["a" /* default */])(node);
6558
+ return doc.defaultView || window;
6559
+ }
6560
+
6561
+ /***/ }),
6562
+ /* 103 */
6563
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6564
+
6565
+ "use strict";
6566
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = unsupportedProp;
6567
+ function unsupportedProp(props, propName, componentName, location, propFullName) {
6568
+ if (process.env.NODE_ENV === 'production') {
6569
+ return null;
6570
+ }
6571
+
6572
+ var propFullNameSafe = propFullName || propName;
6573
+
6574
+ if (typeof props[propName] !== 'undefined') {
6575
+ return new Error("The prop `".concat(propFullNameSafe, "` is not supported. Please remove it."));
6576
+ }
6577
+
6578
+ return null;
6579
+ }
6580
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6581
+
6582
+ /***/ }),
6583
+ /* 104 */
6584
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6585
+
6586
+ "use strict";
6587
+ /* harmony export (immutable) */ __webpack_exports__["a"] = useId;
6588
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6589
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6590
+
6591
+ /**
6592
+ * Private module reserved for @material-ui/x packages.
6593
+ */
6594
+
6595
+ function useId(idOverride) {
6596
+ var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](idOverride),
6597
+ defaultId = _React$useState[0],
6598
+ setDefaultId = _React$useState[1];
6599
+
6600
+ var id = idOverride || defaultId;
6601
+ __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
6602
+ if (defaultId == null) {
6603
+ // Fallback to this default id when possible.
6604
+ // Use the random value for client-side rendering only.
6605
+ // We can't use it server-side.
6606
+ setDefaultId("mui-".concat(Math.round(Math.random() * 1e5)));
6607
+ }
6608
+ }, [defaultId]);
6609
+ return id;
6610
+ }
6611
+
6612
+ /***/ }),
6613
+ /* 105 */
6614
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6615
+
6616
+ "use strict";
6617
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Backdrop__ = __webpack_require__(633);
6618
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Backdrop__["a"]; });
6619
+
6620
+
6621
+ /***/ }),
6622
+ /* 106 */
6623
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6624
+
6625
+ "use strict";
6626
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fade__ = __webpack_require__(634);
6627
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fade__["a"]; });
6628
+
6629
+
6630
+ /***/ }),
6631
+ /* 107 */
6632
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6633
+
6634
+ "use strict";
6635
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["b"] = useFormControl;
6636
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6637
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6638
+
6639
+ /**
6640
+ * @ignore - internal component.
6641
+ */
6642
+
6643
+ var FormControlContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
6644
+
6645
+ if (process.env.NODE_ENV !== 'production') {
6646
+ FormControlContext.displayName = 'FormControlContext';
6647
+ }
6648
+
6649
+ function useFormControl() {
6650
+ return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](FormControlContext);
6651
+ }
6652
+ /* harmony default export */ __webpack_exports__["a"] = (FormControlContext);
6653
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6654
+
6655
+ /***/ }),
6656
+ /* 108 */
6657
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6658
+
6659
+ "use strict";
6660
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Portal__ = __webpack_require__(663);
6661
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Portal__["a"]; });
6662
+
6663
+
6664
+ /***/ }),
6665
+ /* 109 */
6666
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6667
+
6668
+ "use strict";
6669
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fab__ = __webpack_require__(676);
6670
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fab__["a"]; });
6671
+
6672
+
6673
+ /***/ }),
6674
+ /* 110 */
6675
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6676
+
6677
+ "use strict";
6678
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FilledInput__ = __webpack_require__(677);
6679
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FilledInput__["a"]; });
6680
+
6681
+
6682
+ /***/ }),
6683
+ /* 111 */
6684
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6685
+
6686
+ "use strict";
6687
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormControl__ = __webpack_require__(680);
6688
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormControl__["a"]; });
6689
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__useFormControl__ = __webpack_require__(57);
6690
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__useFormControl__["a"]; });
6691
+
6692
+
6693
+
6694
+ /***/ }),
6695
+ /* 112 */
6696
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6697
+
6698
+ "use strict";
6699
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withWidth__ = __webpack_require__(328);
6700
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["a"]; });
6701
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["b"]; });
6702
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["c"]; });
6703
+
6704
+
6705
+
6706
+ /***/ }),
6707
+ /* 113 */
6708
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6709
+
6710
+ "use strict";
6711
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__ = __webpack_require__(711);
6712
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__["a"]; });
6713
+
6714
+
6715
+ /***/ }),
6716
+ /* 114 */
6717
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6718
+
6719
+ "use strict";
6720
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popper__ = __webpack_require__(713);
6721
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popper__["a"]; });
6722
+
6723
+
6724
+ /***/ }),
6725
+ /* 115 */
6726
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6727
+
6728
+ "use strict";
6729
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Select__ = __webpack_require__(721);
6730
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Select__["a"]; });
6731
+
6732
+
6733
+ /***/ }),
6734
+ /* 116 */
6735
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6736
+
6737
+ "use strict";
6738
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6739
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tooltip__ = __webpack_require__(759);
6740
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Tooltip__["a"]; });
6741
+
6742
+
6743
+ /***/ }),
6744
+ /* 117 */
6745
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6746
+
6747
+ "use strict";
6748
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabContext__ = __webpack_require__(380);
6749
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["a"]; });
6750
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["b"]; });
6751
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["c"]; });
6752
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["d"]; });
6753
+
6754
+
6755
+
6756
+ /***/ }),
6757
+ /* 118 */
6758
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6759
+
6760
+ "use strict";
6761
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6762
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6763
+
6764
+ /**
6765
+ * @ignore - internal component.
6766
+ */
6767
+
6768
+ var TimelineContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
6769
+
6770
+ if (process.env.NODE_ENV !== 'production') {
6771
+ TimelineContext.displayName = 'TimelineContext';
6772
+ }
6773
+
6774
+ /* harmony default export */ __webpack_exports__["a"] = (TimelineContext);
6775
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6776
+
6777
+ /***/ }),
6778
+ /* 119 */
6779
+ /***/ (function(module, exports, __webpack_require__) {
6780
+
6781
+ var isFunction = __webpack_require__(402),
6782
+ isLength = __webpack_require__(191);
6783
+
6784
+ /**
6785
+ * Checks if `value` is array-like. A value is considered array-like if it's
6786
+ * not a function and has a `value.length` that's an integer greater than or
6787
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
6788
+ *
6789
+ * @static
6790
+ * @memberOf _
6791
+ * @since 4.0.0
6792
+ * @category Lang
6793
+ * @param {*} value The value to check.
6794
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6795
+ * @example
6796
+ *
6797
+ * _.isArrayLike([1, 2, 3]);
6798
+ * // => true
6799
+ *
6800
+ * _.isArrayLike(document.body.children);
6801
+ * // => true
6802
+ *
6803
+ * _.isArrayLike('abc');
6804
+ * // => true
6805
+ *
6806
+ * _.isArrayLike(_.noop);
6807
+ * // => false
6808
+ */
6809
+ function isArrayLike(value) {
6810
+ return value != null && isLength(value.length) && !isFunction(value);
6811
+ }
6812
+
6813
+ module.exports = isArrayLike;
6814
+
6815
+
6816
+ /***/ }),
6817
+ /* 120 */
6818
+ /***/ (function(module, exports, __webpack_require__) {
6819
+
6820
+ var listCacheClear = __webpack_require__(818),
6821
+ listCacheDelete = __webpack_require__(819),
6822
+ listCacheGet = __webpack_require__(820),
6823
+ listCacheHas = __webpack_require__(821),
6824
+ listCacheSet = __webpack_require__(822);
6825
+
6826
+ /**
6827
+ * Creates an list cache object.
6828
+ *
6829
+ * @private
6830
+ * @constructor
6831
+ * @param {Array} [entries] The key-value pairs to cache.
6832
+ */
6833
+ function ListCache(entries) {
6834
+ var index = -1,
6835
+ length = entries == null ? 0 : entries.length;
6836
+
6837
+ this.clear();
6838
+ while (++index < length) {
6839
+ var entry = entries[index];
6840
+ this.set(entry[0], entry[1]);
6841
+ }
6842
+ }
6843
+
6844
+ // Add methods to `ListCache`.
6845
+ ListCache.prototype.clear = listCacheClear;
6846
+ ListCache.prototype['delete'] = listCacheDelete;
6847
+ ListCache.prototype.get = listCacheGet;
6848
+ ListCache.prototype.has = listCacheHas;
6849
+ ListCache.prototype.set = listCacheSet;
6850
+
6851
+ module.exports = ListCache;
6852
+
6853
+
6854
+ /***/ }),
6855
+ /* 121 */
6856
+ /***/ (function(module, exports, __webpack_require__) {
6857
+
6858
+ var eq = __webpack_require__(197);
6859
+
6860
+ /**
6861
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
6862
+ *
6863
+ * @private
6864
+ * @param {Array} array The array to inspect.
6865
+ * @param {*} key The key to search for.
6866
+ * @returns {number} Returns the index of the matched value, else `-1`.
6867
+ */
6868
+ function assocIndexOf(array, key) {
6869
+ var length = array.length;
6870
+ while (length--) {
6871
+ if (eq(array[length][0], key)) {
6872
+ return length;
6873
+ }
6874
+ }
6875
+ return -1;
6876
+ }
6877
+
6878
+ module.exports = assocIndexOf;
6879
+
6880
+
6881
+ /***/ }),
6882
+ /* 122 */
6883
+ /***/ (function(module, exports, __webpack_require__) {
6884
+
6885
+ var getNative = __webpack_require__(59);
6886
+
6887
+ /* Built-in method references that are verified to be native. */
6888
+ var nativeCreate = getNative(Object, 'create');
6889
+
6890
+ module.exports = nativeCreate;
6891
+
6892
+
6893
+ /***/ }),
6894
+ /* 123 */
6895
+ /***/ (function(module, exports, __webpack_require__) {
6896
+
6897
+ var isKeyable = __webpack_require__(840);
6898
+
6899
+ /**
6900
+ * Gets the data for `map`.
6901
+ *
6902
+ * @private
6903
+ * @param {Object} map The map to query.
6904
+ * @param {string} key The reference key.
6905
+ * @returns {*} Returns the map data.
6906
+ */
6907
+ function getMapData(map, key) {
6908
+ var data = map.__data__;
6909
+ return isKeyable(key)
6910
+ ? data[typeof key == 'string' ? 'string' : 'hash']
6911
+ : data.map;
6912
+ }
6913
+
6914
+ module.exports = getMapData;
6915
+
6916
+
6917
+ /***/ }),
6918
+ /* 124 */
6919
+ /***/ (function(module, exports, __webpack_require__) {
6920
+
6921
+ var DataView = __webpack_require__(855),
6922
+ Map = __webpack_require__(198),
6923
+ Promise = __webpack_require__(856),
6924
+ Set = __webpack_require__(857),
6925
+ WeakMap = __webpack_require__(858),
6926
+ baseGetTag = __webpack_require__(58),
6927
+ toSource = __webpack_require__(405);
6928
+
6929
+ /** `Object#toString` result references. */
6930
+ var mapTag = '[object Map]',
6931
+ objectTag = '[object Object]',
6932
+ promiseTag = '[object Promise]',
6933
+ setTag = '[object Set]',
6934
+ weakMapTag = '[object WeakMap]';
6935
+
6936
+ var dataViewTag = '[object DataView]';
6937
+
6938
+ /** Used to detect maps, sets, and weakmaps. */
6939
+ var dataViewCtorString = toSource(DataView),
6940
+ mapCtorString = toSource(Map),
6941
+ promiseCtorString = toSource(Promise),
6942
+ setCtorString = toSource(Set),
6943
+ weakMapCtorString = toSource(WeakMap);
6944
+
6945
+ /**
6946
+ * Gets the `toStringTag` of `value`.
6947
+ *
6948
+ * @private
6949
+ * @param {*} value The value to query.
6950
+ * @returns {string} Returns the `toStringTag`.
6951
+ */
6952
+ var getTag = baseGetTag;
6953
+
6954
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
6955
+ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
6956
+ (Map && getTag(new Map) != mapTag) ||
6957
+ (Promise && getTag(Promise.resolve()) != promiseTag) ||
6958
+ (Set && getTag(new Set) != setTag) ||
6959
+ (WeakMap && getTag(new WeakMap) != weakMapTag)) {
6960
+ getTag = function(value) {
6961
+ var result = baseGetTag(value),
6962
+ Ctor = result == objectTag ? value.constructor : undefined,
6963
+ ctorString = Ctor ? toSource(Ctor) : '';
6964
+
6965
+ if (ctorString) {
6966
+ switch (ctorString) {
6967
+ case dataViewCtorString: return dataViewTag;
6968
+ case mapCtorString: return mapTag;
6969
+ case promiseCtorString: return promiseTag;
6970
+ case setCtorString: return setTag;
6971
+ case weakMapCtorString: return weakMapTag;
6972
+ }
6973
+ }
6974
+ return result;
6975
+ };
6976
+ }
6977
+
6978
+ module.exports = getTag;
6979
+
6980
+
6981
+ /***/ }),
6982
+ /* 125 */
6983
+ /***/ (function(module, exports, __webpack_require__) {
6984
+
6985
+ var isSymbol = __webpack_require__(202);
6986
+
6987
+ /** Used as references for various `Number` constants. */
6988
+ var INFINITY = 1 / 0;
6989
+
6990
+ /**
6991
+ * Converts `value` to a string key if it's not a string or symbol.
6992
+ *
6993
+ * @private
6994
+ * @param {*} value The value to inspect.
6995
+ * @returns {string|symbol} Returns the key.
6996
+ */
6997
+ function toKey(value) {
6998
+ if (typeof value == 'string' || isSymbol(value)) {
6999
+ return value;
7000
+ }
7001
+ var result = (value + '');
7002
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
7003
+ }
7004
+
7005
+ module.exports = toKey;
7006
+
7007
+
7008
+ /***/ }),
7009
+ /* 126 */
7010
+ /***/ (function(module, exports, __webpack_require__) {
7011
+
7012
+ var assignValue = __webpack_require__(417),
7013
+ baseAssignValue = __webpack_require__(418);
7014
+
7015
+ /**
7016
+ * Copies properties of `source` to `object`.
7017
+ *
7018
+ * @private
7019
+ * @param {Object} source The object to copy properties from.
7020
+ * @param {Array} props The property identifiers to copy.
7021
+ * @param {Object} [object={}] The object to copy properties to.
7022
+ * @param {Function} [customizer] The function to customize copied values.
7023
+ * @returns {Object} Returns `object`.
7024
+ */
7025
+ function copyObject(source, props, object, customizer) {
7026
+ var isNew = !object;
7027
+ object || (object = {});
7028
+
7029
+ var index = -1,
7030
+ length = props.length;
7031
+
7032
+ while (++index < length) {
7033
+ var key = props[index];
7034
+
7035
+ var newValue = customizer
7036
+ ? customizer(object[key], source[key], key, object, source)
7037
+ : undefined;
7038
+
7039
+ if (newValue === undefined) {
7040
+ newValue = source[key];
7041
+ }
7042
+ if (isNew) {
7043
+ baseAssignValue(object, key, newValue);
7044
+ } else {
7045
+ assignValue(object, key, newValue);
7046
+ }
7047
+ }
7048
+ return object;
7049
+ }
7050
+
7051
+ module.exports = copyObject;
7052
+
7053
+
7054
+ /***/ }),
7055
+ /* 127 */
7056
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7057
+
7058
+ "use strict";
7059
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__listCacheClear_js__ = __webpack_require__(914);
7060
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__listCacheDelete_js__ = __webpack_require__(915);
7061
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__listCacheGet_js__ = __webpack_require__(916);
7062
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__listCacheHas_js__ = __webpack_require__(917);
7063
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__listCacheSet_js__ = __webpack_require__(918);
7064
+
7065
+
7066
+
7067
+
7068
+
7069
+
7070
+ /**
7071
+ * Creates an list cache object.
7072
+ *
7073
+ * @private
7074
+ * @constructor
7075
+ * @param {Array} [entries] The key-value pairs to cache.
7076
+ */
7077
+ function ListCache(entries) {
7078
+ var index = -1,
7079
+ length = entries == null ? 0 : entries.length;
7080
+
7081
+ this.clear();
7082
+ while (++index < length) {
7083
+ var entry = entries[index];
7084
+ this.set(entry[0], entry[1]);
7085
+ }
7086
+ }
7087
+
7088
+ // Add methods to `ListCache`.
7089
+ ListCache.prototype.clear = __WEBPACK_IMPORTED_MODULE_0__listCacheClear_js__["a" /* default */];
7090
+ ListCache.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_1__listCacheDelete_js__["a" /* default */];
7091
+ ListCache.prototype.get = __WEBPACK_IMPORTED_MODULE_2__listCacheGet_js__["a" /* default */];
7092
+ ListCache.prototype.has = __WEBPACK_IMPORTED_MODULE_3__listCacheHas_js__["a" /* default */];
7093
+ ListCache.prototype.set = __WEBPACK_IMPORTED_MODULE_4__listCacheSet_js__["a" /* default */];
7094
+
7095
+ /* harmony default export */ __webpack_exports__["a"] = (ListCache);
7096
+
7097
+
7098
+ /***/ }),
7099
+ /* 128 */
7100
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7101
+
7102
+ "use strict";
7103
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__eq_js__ = __webpack_require__(89);
7104
+
7105
+
7106
+ /**
7107
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
7108
+ *
7109
+ * @private
7110
+ * @param {Array} array The array to inspect.
7111
+ * @param {*} key The key to search for.
7112
+ * @returns {number} Returns the index of the matched value, else `-1`.
7113
+ */
7114
+ function assocIndexOf(array, key) {
7115
+ var length = array.length;
7116
+ while (length--) {
7117
+ if (Object(__WEBPACK_IMPORTED_MODULE_0__eq_js__["a" /* default */])(array[length][0], key)) {
7118
+ return length;
7119
+ }
7120
+ }
7121
+ return -1;
7122
+ }
7123
+
7124
+ /* harmony default export */ __webpack_exports__["a"] = (assocIndexOf);
7125
+
7126
+
7127
+ /***/ }),
7128
+ /* 129 */
7129
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7130
+
7131
+ "use strict";
7132
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(33);
7133
+
7134
+
7135
+ /** Built-in value references. */
7136
+ var Symbol = __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Symbol;
7137
+
7138
+ /* harmony default export */ __webpack_exports__["a"] = (Symbol);
7139
+
7140
+
7141
+ /***/ }),
7142
+ /* 130 */
7143
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7144
+
7145
+ "use strict";
7146
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(60);
7147
+
7148
+
7149
+ /* Built-in method references that are verified to be native. */
7150
+ var nativeCreate = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(Object, 'create');
7151
+
7152
+ /* harmony default export */ __webpack_exports__["a"] = (nativeCreate);
7153
+
7154
+
7155
+ /***/ }),
7156
+ /* 131 */
7157
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7158
+
7159
+ "use strict";
7160
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isKeyable_js__ = __webpack_require__(938);
7161
+
7162
+
7163
+ /**
7164
+ * Gets the data for `map`.
7165
+ *
7166
+ * @private
7167
+ * @param {Object} map The map to query.
7168
+ * @param {string} key The reference key.
7169
+ * @returns {*} Returns the map data.
7170
+ */
7171
+ function getMapData(map, key) {
7172
+ var data = map.__data__;
7173
+ return Object(__WEBPACK_IMPORTED_MODULE_0__isKeyable_js__["a" /* default */])(key)
7174
+ ? data[typeof key == 'string' ? 'string' : 'hash']
7175
+ : data.map;
7176
+ }
7177
+
7178
+ /* harmony default export */ __webpack_exports__["a"] = (getMapData);
7179
+
7180
+
7181
+ /***/ }),
7182
+ /* 132 */
7183
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7184
+
7185
+ "use strict";
7186
+ /**
7187
+ * This method returns the first argument it receives.
7188
+ *
7189
+ * @static
7190
+ * @since 0.1.0
7191
+ * @memberOf _
7192
+ * @category Util
7193
+ * @param {*} value Any value.
7194
+ * @returns {*} Returns `value`.
7195
+ * @example
7196
+ *
7197
+ * var object = { 'a': 1 };
7198
+ *
7199
+ * console.log(_.identity(object) === object);
7200
+ * // => true
7201
+ */
7202
+ function identity(value) {
7203
+ return value;
7204
+ }
7205
+
7206
+ /* harmony default export */ __webpack_exports__["a"] = (identity);
7207
+
7208
+
7209
+ /***/ }),
7210
+ /* 133 */
7211
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7212
+
7213
+ "use strict";
7214
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(72);
7215
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(61);
7216
+
7217
+
7218
+
7219
+ /** `Object#toString` result references. */
7220
+ var symbolTag = '[object Symbol]';
7221
+
7222
+ /**
7223
+ * Checks if `value` is classified as a `Symbol` primitive or object.
7224
+ *
7225
+ * @static
7226
+ * @memberOf _
7227
+ * @since 4.0.0
7228
+ * @category Lang
7229
+ * @param {*} value The value to check.
7230
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
7231
+ * @example
7232
+ *
7233
+ * _.isSymbol(Symbol.iterator);
7234
+ * // => true
7235
+ *
7236
+ * _.isSymbol('abc');
7237
+ * // => false
7238
+ */
7239
+ function isSymbol(value) {
7240
+ return typeof value == 'symbol' ||
7241
+ (Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value) == symbolTag);
7242
+ }
7243
+
7244
+ /* harmony default export */ __webpack_exports__["a"] = (isSymbol);
7245
+
7246
+
7247
+ /***/ }),
7248
+ /* 134 */
7249
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7250
+
7251
+ "use strict";
7252
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isSymbol_js__ = __webpack_require__(133);
7253
+
7254
+
7255
+ /** Used as references for various `Number` constants. */
7256
+ var INFINITY = 1 / 0;
7257
+
7258
+ /**
7259
+ * Converts `value` to a string key if it's not a string or symbol.
7260
+ *
7261
+ * @private
7262
+ * @param {*} value The value to inspect.
7263
+ * @returns {string|symbol} Returns the key.
7264
+ */
7265
+ function toKey(value) {
7266
+ if (typeof value == 'string' || Object(__WEBPACK_IMPORTED_MODULE_0__isSymbol_js__["a" /* default */])(value)) {
7267
+ return value;
7268
+ }
7269
+ var result = (value + '');
7270
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
7271
+ }
7272
+
7273
+ /* harmony default export */ __webpack_exports__["a"] = (toKey);
7274
+
7275
+
7276
+ /***/ }),
7277
+ /* 135 */
7278
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7279
+
7280
+ "use strict";
7281
+ /* harmony export (immutable) */ __webpack_exports__["a"] = startOfUTCISOWeek;
7282
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(9);
7283
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__requiredArgs_index_js__ = __webpack_require__(7);
7284
+
7285
+ // This function will be a part of public API when UTC function will be implemented.
7286
+ // See issue: https://github.com/date-fns/date-fns/issues/376
7287
+
7288
+ function startOfUTCISOWeek(dirtyDate) {
7289
+ Object(__WEBPACK_IMPORTED_MODULE_1__requiredArgs_index_js__["a" /* default */])(1, arguments);
7290
+ var weekStartsOn = 1;
7291
+ var date = Object(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["default"])(dirtyDate);
7292
+ var day = date.getUTCDay();
7293
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
7294
+ date.setUTCDate(date.getUTCDate() - diff);
7295
+ date.setUTCHours(0, 0, 0, 0);
7296
+ return date;
7297
+ }
7298
+
7299
+ /***/ }),
7300
+ /* 136 */
7301
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7302
+
7303
+ "use strict";
7304
+ /* harmony export (immutable) */ __webpack_exports__["a"] = startOfUTCWeek;
7305
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__ = __webpack_require__(12);
7306
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(9);
7307
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__ = __webpack_require__(7);
7308
+
7309
+
7310
+ // This function will be a part of public API when UTC function will be implemented.
7311
+ // See issue: https://github.com/date-fns/date-fns/issues/376
7312
+
7313
+ function startOfUTCWeek(dirtyDate, dirtyOptions) {
7314
+ Object(__WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__["a" /* default */])(1, arguments);
7315
+ var options = dirtyOptions || {};
7316
+ var locale = options.locale;
7317
+ var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
7318
+ var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(__WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */])(localeWeekStartsOn);
7319
+ var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(__WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
7320
+
7321
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
7322
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
7323
+ }
7324
+
7325
+ var date = Object(__WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["default"])(dirtyDate);
7326
+ var day = date.getUTCDay();
7327
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
7328
+ date.setUTCDate(date.getUTCDate() - diff);
7329
+ date.setUTCHours(0, 0, 0, 0);
7330
+ return date;
7331
+ }
7332
+
7333
+ /***/ }),
7334
+ /* 137 */
7335
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7336
+
7337
+ "use strict";
7338
+ /* harmony export (immutable) */ __webpack_exports__["a"] = getTimezoneOffsetInMilliseconds;
7339
+ var MILLISECONDS_IN_MINUTE = 60000;
7340
+
7341
+ function getDateMillisecondsPart(date) {
7342
+ return date.getTime() % MILLISECONDS_IN_MINUTE;
7343
+ }
7344
+ /**
7345
+ * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
7346
+ * They usually appear for dates that denote time before the timezones were introduced
7347
+ * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
7348
+ * and GMT+01:00:00 after that date)
7349
+ *
7350
+ * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
7351
+ * which would lead to incorrect calculations.
7352
+ *
7353
+ * This function returns the timezone offset in milliseconds that takes seconds in account.
7354
+ */
7355
+
7356
+
7357
+ function getTimezoneOffsetInMilliseconds(dirtyDate) {
7358
+ var date = new Date(dirtyDate.getTime());
7359
+ var baseTimezoneOffset = Math.ceil(date.getTimezoneOffset());
7360
+ date.setSeconds(0, 0);
7361
+ var hasNegativeUTCOffset = baseTimezoneOffset > 0;
7362
+ var millisecondsPartOfTimezoneOffset = hasNegativeUTCOffset ? (MILLISECONDS_IN_MINUTE + getDateMillisecondsPart(date)) % MILLISECONDS_IN_MINUTE : getDateMillisecondsPart(date);
7363
+ return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset;
7364
+ }
7365
+
7366
+ /***/ }),
7367
+ /* 138 */
7368
+ /***/ (function(module, exports, __webpack_require__) {
7369
+
7370
+ "use strict";
7371
+ /* WEBPACK VAR INJECTION */(function(process) {/**
7372
+ * Copyright (c) 2013-present, Facebook, Inc.
7373
+ *
7374
+ * This source code is licensed under the MIT license found in the
7375
+ * LICENSE file in the root directory of this source tree.
7376
+ */
7377
+
7378
+
7379
+
7380
+ var printWarning = function() {};
7381
+
7382
+ if (process.env.NODE_ENV !== 'production') {
7383
+ var ReactPropTypesSecret = __webpack_require__(139);
7384
+ var loggedTypeFailures = {};
7385
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
7386
+
7387
+ printWarning = function(text) {
7388
+ var message = 'Warning: ' + text;
7389
+ if (typeof console !== 'undefined') {
7390
+ console.error(message);
7391
+ }
7392
+ try {
7393
+ // --- Welcome to debugging React ---
7394
+ // This error was thrown as a convenience so that you can use this stack
7395
+ // to find the callsite that caused this warning to fire.
7396
+ throw new Error(message);
7397
+ } catch (x) {}
7398
+ };
7399
+ }
7400
+
7401
+ /**
7402
+ * Assert that the values match with the type specs.
7403
+ * Error messages are memorized and will only be shown once.
7404
+ *
7405
+ * @param {object} typeSpecs Map of name to a ReactPropType
7406
+ * @param {object} values Runtime values that need to be type-checked
7407
+ * @param {string} location e.g. "prop", "context", "child context"
7408
+ * @param {string} componentName Name of the component for error messages.
7409
+ * @param {?Function} getStack Returns the component stack.
7410
+ * @private
7411
+ */
7412
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
7413
+ if (process.env.NODE_ENV !== 'production') {
7414
+ for (var typeSpecName in typeSpecs) {
7415
+ if (has(typeSpecs, typeSpecName)) {
7416
+ var error;
7417
+ // Prop type validation may throw. In case they do, we don't want to
7418
+ // fail the render phase where it didn't fail before. So we log it.
7419
+ // After these have been cleaned up, we'll let them throw.
7420
+ try {
7421
+ // This is intentionally an invariant that gets caught. It's the same
7422
+ // behavior as without this statement except with a better message.
7423
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
7424
+ var err = Error(
7425
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
7426
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
7427
+ );
7428
+ err.name = 'Invariant Violation';
7429
+ throw err;
7430
+ }
7431
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
7432
+ } catch (ex) {
7433
+ error = ex;
7434
+ }
7435
+ if (error && !(error instanceof Error)) {
7436
+ printWarning(
7437
+ (componentName || 'React class') + ': type specification of ' +
7438
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
7439
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
7440
+ 'You may have forgotten to pass an argument to the type checker ' +
7441
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
7442
+ 'shape all require an argument).'
7443
+ );
7444
+ }
7445
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
7446
+ // Only monitor this failure once because there tends to be a lot of the
7447
+ // same error.
7448
+ loggedTypeFailures[error.message] = true;
7449
+
7450
+ var stack = getStack ? getStack() : '';
7451
+
7452
+ printWarning(
7453
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
7454
+ );
7455
+ }
7456
+ }
7457
+ }
7458
+ }
7459
+ }
7460
+
7461
+ /**
7462
+ * Resets warning cache when testing.
7463
+ *
7464
+ * @private
7465
+ */
7466
+ checkPropTypes.resetWarningCache = function() {
7467
+ if (process.env.NODE_ENV !== 'production') {
7468
+ loggedTypeFailures = {};
7469
+ }
7470
+ }
7471
+
7472
+ module.exports = checkPropTypes;
7473
+
7474
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
7475
+
7476
+ /***/ }),
7477
+ /* 139 */
7478
+ /***/ (function(module, exports, __webpack_require__) {
7479
+
7480
+ "use strict";
7481
+ /**
7482
+ * Copyright (c) 2013-present, Facebook, Inc.
7483
+ *
7484
+ * This source code is licensed under the MIT license found in the
7485
+ * LICENSE file in the root directory of this source tree.
7486
+ */
7487
+
7488
+
7489
+
7490
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
7491
+
7492
+ module.exports = ReactPropTypesSecret;
7493
+
7494
+
7495
+ /***/ }),
7496
+ /* 140 */
7497
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7498
+
7499
+ "use strict";
7500
+ /* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';
7501
+ var prefix = 'Invariant failed';
7502
+ function invariant(condition, message) {
7503
+ if (condition) {
7504
+ return;
7505
+ }
7506
+ if (isProduction) {
7507
+ throw new Error(prefix);
7508
+ }
7509
+ throw new Error(prefix + ": " + (message || ''));
7510
+ }
7511
+
7512
+ /* harmony default export */ __webpack_exports__["a"] = (invariant);
7513
+
7514
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7515
+
7516
+ /***/ }),
7517
+ /* 141 */
7518
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7519
+
7520
+ "use strict";
7521
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = chainPropTypes;
7522
+ function chainPropTypes(propType1, propType2) {
7523
+ if (process.env.NODE_ENV === 'production') {
7524
+ return function () {
7525
+ return null;
7526
+ };
7527
+ }
7528
+
7529
+ return function validate() {
7530
+ return propType1.apply(void 0, arguments) || propType2.apply(void 0, arguments);
7531
+ };
7532
+ }
7533
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7534
+
7535
+ /***/ }),
7536
+ /* 142 */
7537
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7538
+
7539
+ "use strict";
7540
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getThemeProps__ = __webpack_require__(512);
7541
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__getThemeProps__["a"]; });
7542
+
7543
+
7544
+ /***/ }),
7545
+ /* 143 */
7546
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7547
+
7548
+ "use strict";
7549
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__jssPreset__ = __webpack_require__(513);
7550
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__jssPreset__["a"]; });
7551
+
7552
+
7553
+ /***/ }),
7554
+ /* 144 */
7555
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7556
+
7557
+ "use strict";
7558
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _unsupportedIterableToArray;
7559
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__ = __webpack_require__(233);
7560
+
7561
+ function _unsupportedIterableToArray(o, minLen) {
7562
+ if (!o) return;
7563
+ if (typeof o === "string") return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__["a" /* default */])(o, minLen);
7564
+ var n = Object.prototype.toString.call(o).slice(8, -1);
7565
+ if (n === "Object" && o.constructor) n = o.constructor.name;
7566
+ if (n === "Map" || n === "Set") return Array.from(o);
7567
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__["a" /* default */])(o, minLen);
7568
+ }
7569
+
7570
+ /***/ }),
7571
+ /* 145 */
7572
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7573
+
7574
+ "use strict";
7575
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeClasses__ = __webpack_require__(526);
7576
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__mergeClasses__["a"]; });
7577
+
7578
+
7579
+ /***/ }),
7580
+ /* 146 */
7581
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7582
+
7583
+ "use strict";
7584
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(18);
7585
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
7586
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_ui_utils__ = __webpack_require__(8);
7587
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createBreakpoints__ = __webpack_require__(244);
7588
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__createMixins__ = __webpack_require__(536);
7589
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__createPalette__ = __webpack_require__(537);
7590
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__createTypography__ = __webpack_require__(538);
7591
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shadows__ = __webpack_require__(539);
7592
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shape__ = __webpack_require__(540);
7593
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__createSpacing__ = __webpack_require__(541);
7594
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__transitions__ = __webpack_require__(41);
7595
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__zIndex__ = __webpack_require__(265);
7596
+
7597
+
7598
+
7599
+
7600
+
7601
+
7602
+
7603
+
7604
+
7605
+
7606
+
7607
+
7608
+
7609
+ function createMuiTheme() {
7610
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7611
+
7612
+ var _options$breakpoints = options.breakpoints,
7613
+ breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,
7614
+ _options$mixins = options.mixins,
7615
+ mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,
7616
+ _options$palette = options.palette,
7617
+ paletteInput = _options$palette === void 0 ? {} : _options$palette,
7618
+ spacingInput = options.spacing,
7619
+ _options$typography = options.typography,
7620
+ typographyInput = _options$typography === void 0 ? {} : _options$typography,
7621
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
7622
+
7623
+ var palette = Object(__WEBPACK_IMPORTED_MODULE_5__createPalette__["a" /* default */])(paletteInput);
7624
+ var breakpoints = Object(__WEBPACK_IMPORTED_MODULE_3__createBreakpoints__["a" /* default */])(breakpointsInput);
7625
+ var spacing = Object(__WEBPACK_IMPORTED_MODULE_9__createSpacing__["a" /* default */])(spacingInput);
7626
+ var muiTheme = Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["c" /* deepmerge */])({
7627
+ breakpoints: breakpoints,
7628
+ direction: 'ltr',
7629
+ mixins: Object(__WEBPACK_IMPORTED_MODULE_4__createMixins__["a" /* default */])(breakpoints, spacing, mixinsInput),
7630
+ overrides: {},
7631
+ // Inject custom styles
7632
+ palette: palette,
7633
+ props: {},
7634
+ // Provide default props
7635
+ shadows: __WEBPACK_IMPORTED_MODULE_7__shadows__["a" /* default */],
7636
+ typography: Object(__WEBPACK_IMPORTED_MODULE_6__createTypography__["a" /* default */])(palette, typographyInput),
7637
+ spacing: spacing,
7638
+ shape: __WEBPACK_IMPORTED_MODULE_8__shape__["a" /* default */],
7639
+ transitions: __WEBPACK_IMPORTED_MODULE_10__transitions__["a" /* default */],
7640
+ zIndex: __WEBPACK_IMPORTED_MODULE_11__zIndex__["a" /* default */]
7641
+ }, other);
7642
+
7643
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
7644
+ args[_key - 1] = arguments[_key];
7645
+ }
7646
+
7647
+ muiTheme = args.reduce(function (acc, argument) {
7648
+ return Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["c" /* deepmerge */])(acc, argument);
7649
+ }, muiTheme);
7650
+
7651
+ if (process.env.NODE_ENV !== 'production') {
7652
+ var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'];
7653
+
7654
+ var traverse = function traverse(node, parentKey) {
7655
+ var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
7656
+ var key; // eslint-disable-next-line guard-for-in, no-restricted-syntax
7657
+
7658
+ for (key in node) {
7659
+ var child = node[key];
7660
+
7661
+ if (depth === 1) {
7662
+ if (key.indexOf('Mui') === 0 && child) {
7663
+ traverse(child, key, depth + 1);
7664
+ }
7665
+ } else if (pseudoClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {
7666
+ if (process.env.NODE_ENV !== 'production') {
7667
+ console.error(["Material-UI: The `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), 'You can not override it like this: ', JSON.stringify(node, null, 2), '', 'Instead, you need to use the $ruleName syntax:', JSON.stringify({
7668
+ root: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, "&$".concat(key), child)
7669
+ }, null, 2), '', 'https://material-ui.com/r/pseudo-classes-guide'].join('\n'));
7670
+ } // Remove the style to prevent global conflicts.
7671
+
7672
+
7673
+ node[key] = {};
7674
+ }
7675
+ }
7676
+ };
7677
+
7678
+ traverse(muiTheme.overrides);
7679
+ }
7680
+
7681
+ return muiTheme;
7682
+ }
7683
+
7684
+ /* harmony default export */ __webpack_exports__["a"] = (createMuiTheme);
7685
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7686
+
7687
+ /***/ }),
7688
+ /* 147 */
7689
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7690
+
7691
+ "use strict";
7692
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = handleBreakpoints;
7693
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(30);
7694
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
7695
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__ = __webpack_require__(48);
7696
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
7697
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
7698
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__merge__ = __webpack_require__(96);
7699
+
7700
+
7701
+
7702
+
7703
+ // The breakpoint **start** at this value.
7704
+ // For instance with the first breakpoint xs: [xs, sm[.
7705
+
7706
+ var values = {
7707
+ xs: 0,
7708
+ sm: 600,
7709
+ md: 960,
7710
+ lg: 1280,
7711
+ xl: 1920
7712
+ };
7713
+ var defaultBreakpoints = {
7714
+ // Sorted ASC by size. That's important.
7715
+ // It can't be configured as it's used statically for propTypes.
7716
+ keys: ['xs', 'sm', 'md', 'lg', 'xl'],
7717
+ up: function up(key) {
7718
+ return "@media (min-width:".concat(values[key], "px)");
7719
+ }
7720
+ };
7721
+ function handleBreakpoints(props, propValue, styleFromPropValue) {
7722
+ if (process.env.NODE_ENV !== 'production') {
7723
+ if (!props.theme) {
7724
+ console.error('Material-UI: You are calling a style function without a theme value.');
7725
+ }
7726
+ }
7727
+
7728
+ if (Array.isArray(propValue)) {
7729
+ var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7730
+ return propValue.reduce(function (acc, item, index) {
7731
+ acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
7732
+ return acc;
7733
+ }, {});
7734
+ }
7735
+
7736
+ if (Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__["a" /* default */])(propValue) === 'object') {
7737
+ var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7738
+
7739
+ return Object.keys(propValue).reduce(function (acc, breakpoint) {
7740
+ acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);
7741
+ return acc;
7742
+ }, {});
7743
+ }
7744
+
7745
+ var output = styleFromPropValue(propValue);
7746
+ return output;
7747
+ }
7748
+
7749
+ function breakpoints(styleFunction) {
7750
+ var newStyleFunction = function newStyleFunction(props) {
7751
+ var base = styleFunction(props);
7752
+ var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7753
+ var extended = themeBreakpoints.keys.reduce(function (acc, key) {
7754
+ if (props[key]) {
7755
+ acc = acc || {};
7756
+ acc[themeBreakpoints.up(key)] = styleFunction(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
7757
+ theme: props.theme
7758
+ }, props[key]));
7759
+ }
7760
+
7761
+ return acc;
7762
+ }, null);
7763
+ return Object(__WEBPACK_IMPORTED_MODULE_4__merge__["a" /* default */])(base, extended);
7764
+ };
7765
+
7766
+ newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, styleFunction.propTypes, {
7767
+ xs: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7768
+ sm: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7769
+ md: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7770
+ lg: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7771
+ xl: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
7772
+ }) : {};
7773
+ newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(styleFunction.filterProps));
7774
+ return newStyleFunction;
7775
+ }
7776
+
7777
+ /* unused harmony default export */ var _unused_webpack_default_export = (breakpoints);
7778
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7779
+
7780
+ /***/ }),
7781
+ /* 148 */
7782
+ /***/ (function(module, exports) {
7783
+
7784
+ function _extends() {
7785
+ module.exports = _extends = Object.assign || function (target) {
7786
+ for (var i = 1; i < arguments.length; i++) {
7787
+ var source = arguments[i];
7788
+
7789
+ for (var key in source) {
7790
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7791
+ target[key] = source[key];
7792
+ }
7793
+ }
7794
+ }
7795
+
7796
+ return target;
7797
+ };
7798
+
7799
+ return _extends.apply(this, arguments);
7800
+ }
7801
+
7802
+ module.exports = _extends;
7803
+
7804
+ /***/ }),
7805
+ /* 149 */
7806
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7807
+
7808
+ "use strict";
7809
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ClassNames; });
7810
+ /* unused harmony export Global */
7811
+ /* unused harmony export createElement */
7812
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return jsx; });
7813
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return keyframes; });
7814
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(37);
7815
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
7816
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
7817
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(150);
7818
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__ = __webpack_require__(271);
7819
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["a"]; });
7820
+ /* unused harmony reexport ThemeContext */
7821
+ /* unused harmony reexport withEmotionCache */
7822
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_utils__ = __webpack_require__(272);
7823
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_serialize__ = __webpack_require__(151);
7824
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__ = __webpack_require__(270);
7825
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__emotion_css__ = __webpack_require__(79);
7826
+ /* unused harmony reexport css */
7827
+
7828
+
7829
+
7830
+
7831
+
7832
+
7833
+
7834
+
7835
+
7836
+
7837
+
7838
+ var jsx = function jsx(type, props) {
7839
+ var args = arguments;
7840
+
7841
+ if (props == null || !__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["e" /* h */].call(props, 'css')) {
7842
+ // $FlowFixMe
7843
+ return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(undefined, args);
7844
+ }
7845
+
7846
+ var argsLength = args.length;
7847
+ var createElementArgArray = new Array(argsLength);
7848
+ createElementArgArray[0] = __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["b" /* E */];
7849
+ createElementArgArray[1] = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["d" /* c */])(type, props);
7850
+
7851
+ for (var i = 2; i < argsLength; i++) {
7852
+ createElementArgArray[i] = args[i];
7853
+ } // $FlowFixMe
7854
+
7855
+
7856
+ return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(null, createElementArgArray);
7857
+ };
7858
+
7859
+ var warnedAboutCssPropForGlobal = false;
7860
+ var Global = /* #__PURE__ */Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, cache) {
7861
+ if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
7862
+ // probably using the custom createElement which
7863
+ // means it will be turned into a className prop
7864
+ // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
7865
+ props.className || props.css)) {
7866
+ console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
7867
+ warnedAboutCssPropForGlobal = true;
7868
+ }
7869
+
7870
+ var styles = props.styles;
7871
+
7872
+ if (typeof styles === 'function') {
7873
+ return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) {
7874
+ var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles(theme)]);
7875
+ return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
7876
+ serialized: serialized,
7877
+ cache: cache
7878
+ });
7879
+ });
7880
+ }
7881
+
7882
+ var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles]);
7883
+ return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
7884
+ serialized: serialized,
7885
+ cache: cache
7886
+ });
7887
+ });
7888
+
7889
+ // maintain place over rerenders.
7890
+ // initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
7891
+ // initial client-side render from SSR, use place of hydrating tag
7892
+ var InnerGlobal = /*#__PURE__*/function (_React$Component) {
7893
+ Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(InnerGlobal, _React$Component);
7894
+
7895
+ function InnerGlobal(props, context, updater) {
7896
+ return _React$Component.call(this, props, context, updater) || this;
7897
+ }
7898
+
7899
+ var _proto = InnerGlobal.prototype;
7900
+
7901
+ _proto.componentDidMount = function componentDidMount() {
7902
+ this.sheet = new __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__["a" /* StyleSheet */]({
7903
+ key: this.props.cache.key + "-global",
7904
+ nonce: this.props.cache.sheet.nonce,
7905
+ container: this.props.cache.sheet.container
7906
+ }); // $FlowFixMe
7907
+
7908
+ var node = document.querySelector("style[data-emotion-" + this.props.cache.key + "=\"" + this.props.serialized.name + "\"]");
7909
+
7910
+ if (node !== null) {
7911
+ this.sheet.tags.push(node);
7912
+ }
7913
+
7914
+ if (this.props.cache.sheet.tags.length) {
7915
+ this.sheet.before = this.props.cache.sheet.tags[0];
7916
+ }
7917
+
7918
+ this.insertStyles();
7919
+ };
7920
+
7921
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
7922
+ if (prevProps.serialized.name !== this.props.serialized.name) {
7923
+ this.insertStyles();
7924
+ }
7925
+ };
7926
+
7927
+ _proto.insertStyles = function insertStyles$1() {
7928
+ if (this.props.serialized.next !== undefined) {
7929
+ // insert keyframes
7930
+ Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(this.props.cache, this.props.serialized.next, true);
7931
+ }
7932
+
7933
+ if (this.sheet.tags.length) {
7934
+ // if this doesn't exist then it will be null so the style element will be appended
7935
+ var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling;
7936
+ this.sheet.before = element;
7937
+ this.sheet.flush();
7938
+ }
7939
+
7940
+ this.props.cache.insert("", this.props.serialized, this.sheet, false);
7941
+ };
7942
+
7943
+ _proto.componentWillUnmount = function componentWillUnmount() {
7944
+ this.sheet.flush();
7945
+ };
7946
+
7947
+ _proto.render = function render() {
7948
+
7949
+ return null;
7950
+ };
7951
+
7952
+ return InnerGlobal;
7953
+ }(__WEBPACK_IMPORTED_MODULE_1_react__["Component"]);
7954
+
7955
+ var keyframes = function keyframes() {
7956
+ var insertable = __WEBPACK_IMPORTED_MODULE_7__emotion_css__["a" /* default */].apply(void 0, arguments);
7957
+ var name = "animation-" + insertable.name; // $FlowFixMe
7958
+
7959
+ return {
7960
+ name: name,
7961
+ styles: "@keyframes " + name + "{" + insertable.styles + "}",
7962
+ anim: 1,
7963
+ toString: function toString() {
7964
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
7965
+ }
7966
+ };
7967
+ };
7968
+
7969
+ var classnames = function classnames(args) {
7970
+ var len = args.length;
7971
+ var i = 0;
7972
+ var cls = '';
7973
+
7974
+ for (; i < len; i++) {
7975
+ var arg = args[i];
7976
+ if (arg == null) continue;
7977
+ var toAdd = void 0;
7978
+
7979
+ switch (typeof arg) {
7980
+ case 'boolean':
7981
+ break;
7982
+
7983
+ case 'object':
7984
+ {
7985
+ if (Array.isArray(arg)) {
7986
+ toAdd = classnames(arg);
7987
+ } else {
7988
+ toAdd = '';
7989
+
7990
+ for (var k in arg) {
7991
+ if (arg[k] && k) {
7992
+ toAdd && (toAdd += ' ');
7993
+ toAdd += k;
7994
+ }
7995
+ }
7996
+ }
7997
+
7998
+ break;
7999
+ }
8000
+
8001
+ default:
8002
+ {
8003
+ toAdd = arg;
8004
+ }
8005
+ }
8006
+
8007
+ if (toAdd) {
8008
+ cls && (cls += ' ');
8009
+ cls += toAdd;
8010
+ }
8011
+ }
8012
+
8013
+ return cls;
8014
+ };
8015
+
8016
+ function merge(registered, css, className) {
8017
+ var registeredStyles = [];
8018
+ var rawClassName = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["a" /* getRegisteredStyles */])(registered, registeredStyles, className);
8019
+
8020
+ if (registeredStyles.length < 2) {
8021
+ return className;
8022
+ }
8023
+
8024
+ return rawClassName + css(registeredStyles);
8025
+ }
8026
+
8027
+ var ClassNames = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, context) {
8028
+ return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) {
8029
+ var hasRendered = false;
8030
+
8031
+ var css = function css() {
8032
+ if (hasRendered && process.env.NODE_ENV !== 'production') {
8033
+ throw new Error('css can only be used during render');
8034
+ }
8035
+
8036
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8037
+ args[_key] = arguments[_key];
8038
+ }
8039
+
8040
+ var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])(args, context.registered);
8041
+
8042
+ {
8043
+ Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(context, serialized, false);
8044
+ }
8045
+
8046
+ return context.key + "-" + serialized.name;
8047
+ };
8048
+
8049
+ var cx = function cx() {
8050
+ if (hasRendered && process.env.NODE_ENV !== 'production') {
8051
+ throw new Error('cx can only be used during render');
8052
+ }
8053
+
8054
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
8055
+ args[_key2] = arguments[_key2];
8056
+ }
8057
+
8058
+ return merge(context.registered, css, classnames(args));
8059
+ };
8060
+
8061
+ var content = {
8062
+ css: css,
8063
+ cx: cx,
8064
+ theme: theme
8065
+ };
8066
+ var ele = props.children(content);
8067
+ hasRendered = true;
8068
+
8069
+ return ele;
8070
+ });
8071
+ });
8072
+
8073
+
8074
+
8075
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8076
+
8077
+ /***/ }),
8078
+ /* 150 */
8079
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8080
+
8081
+ "use strict";
8082
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__ = __webpack_require__(270);
8083
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__ = __webpack_require__(557);
8084
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_weak_memoize__ = __webpack_require__(558);
8085
+
8086
+
8087
+
8088
+
8089
+ // https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet
8090
+ // inlined to avoid umd wrapper and peerDep warnings/installing stylis
8091
+ // since we use stylis after closure compiler
8092
+ var delimiter = '/*|*/';
8093
+ var needle = delimiter + '}';
8094
+
8095
+ function toSheet(block) {
8096
+ if (block) {
8097
+ Sheet.current.insert(block + '}');
8098
+ }
8099
+ }
8100
+
8101
+ var Sheet = {
8102
+ current: null
8103
+ };
8104
+ var ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
8105
+ switch (context) {
8106
+ // property
8107
+ case 1:
8108
+ {
8109
+ switch (content.charCodeAt(0)) {
8110
+ case 64:
8111
+ {
8112
+ // @import
8113
+ Sheet.current.insert(content + ';');
8114
+ return '';
8115
+ }
8116
+ // charcode for l
8117
+
8118
+ case 108:
8119
+ {
8120
+ // charcode for b
8121
+ // this ignores label
8122
+ if (content.charCodeAt(2) === 98) {
8123
+ return '';
8124
+ }
8125
+ }
8126
+ }
8127
+
8128
+ break;
8129
+ }
8130
+ // selector
8131
+
8132
+ case 2:
8133
+ {
8134
+ if (ns === 0) return content + delimiter;
8135
+ break;
8136
+ }
8137
+ // at-rule
8138
+
8139
+ case 3:
8140
+ {
8141
+ switch (ns) {
8142
+ // @font-face, @page
8143
+ case 102:
8144
+ case 112:
8145
+ {
8146
+ Sheet.current.insert(selectors[0] + content);
8147
+ return '';
8148
+ }
8149
+
8150
+ default:
8151
+ {
8152
+ return content + (at === 0 ? delimiter : '');
8153
+ }
8154
+ }
8155
+ }
8156
+
8157
+ case -2:
8158
+ {
8159
+ content.split(needle).forEach(toSheet);
8160
+ }
8161
+ }
8162
+ };
8163
+
8164
+ var createCache = function createCache(options) {
8165
+ if (options === undefined) options = {};
8166
+ var key = options.key || 'css';
8167
+ var stylisOptions;
8168
+
8169
+ if (options.prefix !== undefined) {
8170
+ stylisOptions = {
8171
+ prefix: options.prefix
8172
+ };
8173
+ }
8174
+
8175
+ var stylis = new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__["a" /* default */](stylisOptions);
8176
+
8177
+ if (process.env.NODE_ENV !== 'production') {
8178
+ // $FlowFixMe
8179
+ if (/[^a-z-]/.test(key)) {
8180
+ throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
8181
+ }
8182
+ }
8183
+
8184
+ var inserted = {}; // $FlowFixMe
8185
+
8186
+ var container;
8187
+
8188
+ {
8189
+ container = options.container || document.head;
8190
+ var nodes = document.querySelectorAll("style[data-emotion-" + key + "]");
8191
+ Array.prototype.forEach.call(nodes, function (node) {
8192
+ var attrib = node.getAttribute("data-emotion-" + key); // $FlowFixMe
8193
+
8194
+ attrib.split(' ').forEach(function (id) {
8195
+ inserted[id] = true;
8196
+ });
8197
+
8198
+ if (node.parentNode !== container) {
8199
+ container.appendChild(node);
8200
+ }
8201
+ });
8202
+ }
8203
+
8204
+ var _insert;
8205
+
8206
+ {
8207
+ stylis.use(options.stylisPlugins)(ruleSheet);
8208
+
8209
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
8210
+ var name = serialized.name;
8211
+ Sheet.current = sheet;
8212
+
8213
+ if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
8214
+ var map = serialized.map;
8215
+ Sheet.current = {
8216
+ insert: function insert(rule) {
8217
+ sheet.insert(rule + map);
8218
+ }
8219
+ };
8220
+ }
8221
+
8222
+ stylis(selector, serialized.styles);
8223
+
8224
+ if (shouldCache) {
8225
+ cache.inserted[name] = true;
8226
+ }
8227
+ };
8228
+ }
8229
+
8230
+ if (process.env.NODE_ENV !== 'production') {
8231
+ // https://esbench.com/bench/5bf7371a4cd7e6009ef61d0a
8232
+ var commentStart = /\/\*/g;
8233
+ var commentEnd = /\*\//g;
8234
+ stylis.use(function (context, content) {
8235
+ switch (context) {
8236
+ case -1:
8237
+ {
8238
+ while (commentStart.test(content)) {
8239
+ commentEnd.lastIndex = commentStart.lastIndex;
8240
+
8241
+ if (commentEnd.test(content)) {
8242
+ commentStart.lastIndex = commentEnd.lastIndex;
8243
+ continue;
8244
+ }
8245
+
8246
+ throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');
8247
+ }
8248
+
8249
+ commentStart.lastIndex = 0;
8250
+ break;
8251
+ }
8252
+ }
8253
+ });
8254
+ stylis.use(function (context, content, selectors) {
8255
+ switch (context) {
8256
+ case -1:
8257
+ {
8258
+ var flag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
8259
+ var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g);
8260
+
8261
+ if (unsafePseudoClasses && cache.compat !== true) {
8262
+ unsafePseudoClasses.forEach(function (unsafePseudoClass) {
8263
+ var ignoreRegExp = new RegExp(unsafePseudoClass + ".*\\/\\* " + flag + " \\*\\/");
8264
+ var ignore = ignoreRegExp.test(content);
8265
+
8266
+ if (unsafePseudoClass && !ignore) {
8267
+ console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
8268
+ }
8269
+ });
8270
+ }
8271
+
8272
+ break;
8273
+ }
8274
+ }
8275
+ });
8276
+ }
8277
+
8278
+ var cache = {
8279
+ key: key,
8280
+ sheet: new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__["a" /* StyleSheet */]({
8281
+ key: key,
8282
+ container: container,
8283
+ nonce: options.nonce,
8284
+ speedy: options.speedy
8285
+ }),
8286
+ nonce: options.nonce,
8287
+ inserted: inserted,
8288
+ registered: {},
8289
+ insert: _insert
8290
+ };
8291
+ return cache;
8292
+ };
8293
+
8294
+ /* harmony default export */ __webpack_exports__["a"] = (createCache);
8295
+
8296
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8297
+
8298
+ /***/ }),
8299
+ /* 151 */
8300
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8301
+
8302
+ "use strict";
8303
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return serializeStyles; });
8304
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__ = __webpack_require__(559);
8305
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(560);
8306
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__ = __webpack_require__(561);
8307
+
8308
+
8309
+
8310
+
8311
+ var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
8312
+ 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).";
8313
+ var hyphenateRegex = /[A-Z]|^ms/g;
8314
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
8315
+
8316
+ var isCustomProperty = function isCustomProperty(property) {
8317
+ return property.charCodeAt(1) === 45;
8318
+ };
8319
+
8320
+ var isProcessableValue = function isProcessableValue(value) {
8321
+ return value != null && typeof value !== 'boolean';
8322
+ };
8323
+
8324
+ var processStyleName = Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__["a" /* default */])(function (styleName) {
8325
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
8326
+ });
8327
+
8328
+ var processStyleValue = function processStyleValue(key, value) {
8329
+ switch (key) {
8330
+ case 'animation':
8331
+ case 'animationName':
8332
+ {
8333
+ if (typeof value === 'string') {
8334
+ return value.replace(animationRegex, function (match, p1, p2) {
8335
+ cursor = {
8336
+ name: p1,
8337
+ styles: p2,
8338
+ next: cursor
8339
+ };
8340
+ return p1;
8341
+ });
8342
+ }
8343
+ }
8344
+ }
8345
+
8346
+ if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
8347
+ return value + 'px';
8348
+ }
8349
+
8350
+ return value;
8351
+ };
8352
+
8353
+ if (process.env.NODE_ENV !== 'production') {
8354
+ var contentValuePattern = /(attr|calc|counters?|url)\(/;
8355
+ var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
8356
+ var oldProcessStyleValue = processStyleValue;
8357
+ var msPattern = /^-ms-/;
8358
+ var hyphenPattern = /-(.)/g;
8359
+ var hyphenatedCache = {};
8360
+
8361
+ processStyleValue = function processStyleValue(key, value) {
8362
+ if (key === 'content') {
8363
+ 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) !== "'")) {
8364
+ console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
8365
+ }
8366
+ }
8367
+
8368
+ var processed = oldProcessStyleValue(key, value);
8369
+
8370
+ if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
8371
+ hyphenatedCache[key] = true;
8372
+ 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) {
8373
+ return _char.toUpperCase();
8374
+ }) + "?");
8375
+ }
8376
+
8377
+ return processed;
8378
+ };
8379
+ }
8380
+
8381
+ var shouldWarnAboutInterpolatingClassNameFromCss = true;
8382
+
8383
+ function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) {
8384
+ if (interpolation == null) {
8385
+ return '';
8386
+ }
8387
+
8388
+ if (interpolation.__emotion_styles !== undefined) {
8389
+ if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
8390
+ throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
8391
+ }
8392
+
8393
+ return interpolation;
8394
+ }
8395
+
8396
+ switch (typeof interpolation) {
8397
+ case 'boolean':
8398
+ {
8399
+ return '';
8400
+ }
8401
+
8402
+ case 'object':
8403
+ {
8404
+ if (interpolation.anim === 1) {
8405
+ cursor = {
8406
+ name: interpolation.name,
8407
+ styles: interpolation.styles,
8408
+ next: cursor
8409
+ };
8410
+ return interpolation.name;
8411
+ }
8412
+
8413
+ if (interpolation.styles !== undefined) {
8414
+ var next = interpolation.next;
8415
+
8416
+ if (next !== undefined) {
8417
+ // not the most efficient thing ever but this is a pretty rare case
8418
+ // and there will be very few iterations of this generally
8419
+ while (next !== undefined) {
8420
+ cursor = {
8421
+ name: next.name,
8422
+ styles: next.styles,
8423
+ next: cursor
8424
+ };
8425
+ next = next.next;
8426
+ }
8427
+ }
8428
+
8429
+ var styles = interpolation.styles + ";";
8430
+
8431
+ if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
8432
+ styles += interpolation.map;
8433
+ }
8434
+
8435
+ return styles;
8436
+ }
8437
+
8438
+ return createStringFromObject(mergedProps, registered, interpolation);
8439
+ }
8440
+
8441
+ case 'function':
8442
+ {
8443
+ if (mergedProps !== undefined) {
8444
+ var previousCursor = cursor;
8445
+ var result = interpolation(mergedProps);
8446
+ cursor = previousCursor;
8447
+ return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation);
8448
+ } else if (process.env.NODE_ENV !== 'production') {
8449
+ console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
8450
+ }
8451
+
8452
+ break;
8453
+ }
8454
+
8455
+ case 'string':
8456
+ if (process.env.NODE_ENV !== 'production') {
8457
+ var matched = [];
8458
+ var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
8459
+ var fakeVarName = "animation" + matched.length;
8460
+ matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
8461
+ return "${" + fakeVarName + "}";
8462
+ });
8463
+
8464
+ if (matched.length) {
8465
+ console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
8466
+ }
8467
+ }
8468
+
8469
+ break;
8470
+ } // finalize string values (regular strings and functions interpolated into css calls)
8471
+
8472
+
8473
+ if (registered == null) {
8474
+ return interpolation;
8475
+ }
8476
+
8477
+ var cached = registered[interpolation];
8478
+
8479
+ if (process.env.NODE_ENV !== 'production' && couldBeSelectorInterpolation && shouldWarnAboutInterpolatingClassNameFromCss && cached !== undefined) {
8480
+ console.error('Interpolating a className from css`` is not recommended and will cause problems with composition.\n' + 'Interpolating a className from css`` will be completely unsupported in a future major version of Emotion');
8481
+ shouldWarnAboutInterpolatingClassNameFromCss = false;
8482
+ }
8483
+
8484
+ return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation;
8485
+ }
8486
+
8487
+ function createStringFromObject(mergedProps, registered, obj) {
8488
+ var string = '';
8489
+
8490
+ if (Array.isArray(obj)) {
8491
+ for (var i = 0; i < obj.length; i++) {
8492
+ string += handleInterpolation(mergedProps, registered, obj[i], false);
8493
+ }
8494
+ } else {
8495
+ for (var _key in obj) {
8496
+ var value = obj[_key];
8497
+
8498
+ if (typeof value !== 'object') {
8499
+ if (registered != null && registered[value] !== undefined) {
8500
+ string += _key + "{" + registered[value] + "}";
8501
+ } else if (isProcessableValue(value)) {
8502
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
8503
+ }
8504
+ } else {
8505
+ if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
8506
+ throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
8507
+ }
8508
+
8509
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
8510
+ for (var _i = 0; _i < value.length; _i++) {
8511
+ if (isProcessableValue(value[_i])) {
8512
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
8513
+ }
8514
+ }
8515
+ } else {
8516
+ var interpolated = handleInterpolation(mergedProps, registered, value, false);
8517
+
8518
+ switch (_key) {
8519
+ case 'animation':
8520
+ case 'animationName':
8521
+ {
8522
+ string += processStyleName(_key) + ":" + interpolated + ";";
8523
+ break;
8524
+ }
8525
+
8526
+ default:
8527
+ {
8528
+ if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
8529
+ console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
8530
+ }
8531
+
8532
+ string += _key + "{" + interpolated + "}";
8533
+ }
8534
+ }
8535
+ }
8536
+ }
8537
+ }
8538
+ }
8539
+
8540
+ return string;
8541
+ }
8542
+
8543
+ var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g;
8544
+ var sourceMapPattern;
8545
+
8546
+ if (process.env.NODE_ENV !== 'production') {
8547
+ sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//;
8548
+ } // this is the cursor for keyframes
8549
+ // keyframes are stored on the SerializedStyles object as a linked list
8550
+
8551
+
8552
+ var cursor;
8553
+ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
8554
+ if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
8555
+ return args[0];
8556
+ }
8557
+
8558
+ var stringMode = true;
8559
+ var styles = '';
8560
+ cursor = undefined;
8561
+ var strings = args[0];
8562
+
8563
+ if (strings == null || strings.raw === undefined) {
8564
+ stringMode = false;
8565
+ styles += handleInterpolation(mergedProps, registered, strings, false);
8566
+ } else {
8567
+ if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {
8568
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
8569
+ }
8570
+
8571
+ styles += strings[0];
8572
+ } // we start at 1 since we've already handled the first arg
8573
+
8574
+
8575
+ for (var i = 1; i < args.length; i++) {
8576
+ styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46);
8577
+
8578
+ if (stringMode) {
8579
+ if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {
8580
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
8581
+ }
8582
+
8583
+ styles += strings[i];
8584
+ }
8585
+ }
8586
+
8587
+ var sourceMap;
8588
+
8589
+ if (process.env.NODE_ENV !== 'production') {
8590
+ styles = styles.replace(sourceMapPattern, function (match) {
8591
+ sourceMap = match;
8592
+ return '';
8593
+ });
8594
+ } // using a global regex with .exec is stateful so lastIndex has to be reset each time
8595
+
8596
+
8597
+ labelPattern.lastIndex = 0;
8598
+ var identifierName = '';
8599
+ var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
8600
+
8601
+ while ((match = labelPattern.exec(styles)) !== null) {
8602
+ identifierName += '-' + // $FlowFixMe we know it's not null
8603
+ match[1];
8604
+ }
8605
+
8606
+ var name = Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__["a" /* default */])(styles) + identifierName;
8607
+
8608
+ if (process.env.NODE_ENV !== 'production') {
8609
+ // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
8610
+ return {
8611
+ name: name,
8612
+ styles: styles,
8613
+ map: sourceMap,
8614
+ next: cursor,
8615
+ toString: function toString() {
8616
+ 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).";
8617
+ }
8618
+ };
8619
+ }
8620
+
8621
+ return {
8622
+ name: name,
8623
+ styles: styles,
8624
+ next: cursor
8625
+ };
8626
+ };
8627
+
8628
+
8629
+
8630
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8631
+
8632
+ /***/ }),
8633
+ /* 152 */
8634
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8635
+
8636
+ "use strict";
8637
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export UNMOUNTED */
8638
+ /* unused harmony export EXITED */
8639
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ENTERING; });
8640
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ENTERED; });
8641
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EXITING; });
8642
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(47);
8643
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(37);
8644
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(2);
8645
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
8646
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
8647
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
8648
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom__ = __webpack_require__(14);
8649
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_dom__);
8650
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(281);
8651
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__ = __webpack_require__(282);
8652
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__ = __webpack_require__(153);
8653
+
8654
+
8655
+
8656
+
8657
+
8658
+
8659
+
8660
+
8661
+ var UNMOUNTED = 'unmounted';
8662
+ var EXITED = 'exited';
8663
+ var ENTERING = 'entering';
8664
+ var ENTERED = 'entered';
8665
+ var EXITING = 'exiting';
8666
+ /**
8667
+ * The Transition component lets you describe a transition from one component
8668
+ * state to another _over time_ with a simple declarative API. Most commonly
8669
+ * it's used to animate the mounting and unmounting of a component, but can also
8670
+ * be used to describe in-place transition states as well.
8671
+ *
8672
+ * ---
8673
+ *
8674
+ * **Note**: `Transition` is a platform-agnostic base component. If you're using
8675
+ * transitions in CSS, you'll probably want to use
8676
+ * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
8677
+ * instead. It inherits all the features of `Transition`, but contains
8678
+ * additional features necessary to play nice with CSS transitions (hence the
8679
+ * name of the component).
8680
+ *
8681
+ * ---
8682
+ *
8683
+ * By default the `Transition` component does not alter the behavior of the
8684
+ * component it renders, it only tracks "enter" and "exit" states for the
8685
+ * components. It's up to you to give meaning and effect to those states. For
8686
+ * example we can add styles to a component when it enters or exits:
8687
+ *
8688
+ * ```jsx
8689
+ * import { Transition } from 'react-transition-group';
8690
+ *
8691
+ * const duration = 300;
8692
+ *
8693
+ * const defaultStyle = {
8694
+ * transition: `opacity ${duration}ms ease-in-out`,
8695
+ * opacity: 0,
8696
+ * }
8697
+ *
8698
+ * const transitionStyles = {
8699
+ * entering: { opacity: 1 },
8700
+ * entered: { opacity: 1 },
8701
+ * exiting: { opacity: 0 },
8702
+ * exited: { opacity: 0 },
8703
+ * };
8704
+ *
8705
+ * const Fade = ({ in: inProp }) => (
8706
+ * <Transition in={inProp} timeout={duration}>
8707
+ * {state => (
8708
+ * <div style={{
8709
+ * ...defaultStyle,
8710
+ * ...transitionStyles[state]
8711
+ * }}>
8712
+ * I'm a fade Transition!
8713
+ * </div>
8714
+ * )}
8715
+ * </Transition>
8716
+ * );
8717
+ * ```
8718
+ *
8719
+ * There are 4 main states a Transition can be in:
8720
+ * - `'entering'`
8721
+ * - `'entered'`
8722
+ * - `'exiting'`
8723
+ * - `'exited'`
8724
+ *
8725
+ * Transition state is toggled via the `in` prop. When `true` the component
8726
+ * begins the "Enter" stage. During this stage, the component will shift from
8727
+ * its current transition state, to `'entering'` for the duration of the
8728
+ * transition and then to the `'entered'` stage once it's complete. Let's take
8729
+ * the following example (we'll use the
8730
+ * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
8731
+ *
8732
+ * ```jsx
8733
+ * function App() {
8734
+ * const [inProp, setInProp] = useState(false);
8735
+ * return (
8736
+ * <div>
8737
+ * <Transition in={inProp} timeout={500}>
8738
+ * {state => (
8739
+ * // ...
8740
+ * )}
8741
+ * </Transition>
8742
+ * <button onClick={() => setInProp(true)}>
8743
+ * Click to Enter
8744
+ * </button>
8745
+ * </div>
8746
+ * );
8747
+ * }
8748
+ * ```
8749
+ *
8750
+ * When the button is clicked the component will shift to the `'entering'` state
8751
+ * and stay there for 500ms (the value of `timeout`) before it finally switches
8752
+ * to `'entered'`.
8753
+ *
8754
+ * When `in` is `false` the same thing happens except the state moves from
8755
+ * `'exiting'` to `'exited'`.
8756
+ */
8757
+
8758
+ var Transition = /*#__PURE__*/function (_React$Component) {
8759
+ Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Transition, _React$Component);
8760
+
8761
+ function Transition(props, context) {
8762
+ var _this;
8763
+
8764
+ _this = _React$Component.call(this, props, context) || this;
8765
+ var parentGroup = context; // In the context of a TransitionGroup all enters are really appears
8766
+
8767
+ var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
8768
+ var initialStatus;
8769
+ _this.appearStatus = null;
8770
+
8771
+ if (props.in) {
8772
+ if (appear) {
8773
+ initialStatus = EXITED;
8774
+ _this.appearStatus = ENTERING;
8775
+ } else {
8776
+ initialStatus = ENTERED;
8777
+ }
8778
+ } else {
8779
+ if (props.unmountOnExit || props.mountOnEnter) {
8780
+ initialStatus = UNMOUNTED;
8781
+ } else {
8782
+ initialStatus = EXITED;
8783
+ }
8784
+ }
8785
+
8786
+ _this.state = {
8787
+ status: initialStatus
8788
+ };
8789
+ _this.nextCallback = null;
8790
+ return _this;
8791
+ }
8792
+
8793
+ Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
8794
+ var nextIn = _ref.in;
8795
+
8796
+ if (nextIn && prevState.status === UNMOUNTED) {
8797
+ return {
8798
+ status: EXITED
8799
+ };
8800
+ }
8801
+
8802
+ return null;
8803
+ } // getSnapshotBeforeUpdate(prevProps) {
8804
+ // let nextStatus = null
8805
+ // if (prevProps !== this.props) {
8806
+ // const { status } = this.state
8807
+ // if (this.props.in) {
8808
+ // if (status !== ENTERING && status !== ENTERED) {
8809
+ // nextStatus = ENTERING
8810
+ // }
8811
+ // } else {
8812
+ // if (status === ENTERING || status === ENTERED) {
8813
+ // nextStatus = EXITING
8814
+ // }
8815
+ // }
8816
+ // }
8817
+ // return { nextStatus }
8818
+ // }
8819
+ ;
8820
+
8821
+ var _proto = Transition.prototype;
8822
+
8823
+ _proto.componentDidMount = function componentDidMount() {
8824
+ this.updateStatus(true, this.appearStatus);
8825
+ };
8826
+
8827
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
8828
+ var nextStatus = null;
8829
+
8830
+ if (prevProps !== this.props) {
8831
+ var status = this.state.status;
8832
+
8833
+ if (this.props.in) {
8834
+ if (status !== ENTERING && status !== ENTERED) {
8835
+ nextStatus = ENTERING;
8836
+ }
8837
+ } else {
8838
+ if (status === ENTERING || status === ENTERED) {
8839
+ nextStatus = EXITING;
8840
+ }
8841
+ }
8842
+ }
8843
+
8844
+ this.updateStatus(false, nextStatus);
8845
+ };
8846
+
8847
+ _proto.componentWillUnmount = function componentWillUnmount() {
8848
+ this.cancelNextCallback();
8849
+ };
8850
+
8851
+ _proto.getTimeouts = function getTimeouts() {
8852
+ var timeout = this.props.timeout;
8853
+ var exit, enter, appear;
8854
+ exit = enter = appear = timeout;
8855
+
8856
+ if (timeout != null && typeof timeout !== 'number') {
8857
+ exit = timeout.exit;
8858
+ enter = timeout.enter; // TODO: remove fallback for next major
8859
+
8860
+ appear = timeout.appear !== undefined ? timeout.appear : enter;
8861
+ }
8862
+
8863
+ return {
8864
+ exit: exit,
8865
+ enter: enter,
8866
+ appear: appear
8867
+ };
8868
+ };
8869
+
8870
+ _proto.updateStatus = function updateStatus(mounting, nextStatus) {
8871
+ if (mounting === void 0) {
8872
+ mounting = false;
8873
+ }
8874
+
8875
+ if (nextStatus !== null) {
8876
+ // nextStatus will always be ENTERING or EXITING.
8877
+ this.cancelNextCallback();
8878
+
8879
+ if (nextStatus === ENTERING) {
8880
+ this.performEnter(mounting);
8881
+ } else {
8882
+ this.performExit();
8883
+ }
8884
+ } else if (this.props.unmountOnExit && this.state.status === EXITED) {
8885
+ this.setState({
8886
+ status: UNMOUNTED
8887
+ });
8888
+ }
8889
+ };
8890
+
8891
+ _proto.performEnter = function performEnter(mounting) {
8892
+ var _this2 = this;
8893
+
8894
+ var enter = this.props.enter;
8895
+ var appearing = this.context ? this.context.isMounting : mounting;
8896
+
8897
+ var _ref2 = this.props.nodeRef ? [appearing] : [__WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this), appearing],
8898
+ maybeNode = _ref2[0],
8899
+ maybeAppearing = _ref2[1];
8900
+
8901
+ var timeouts = this.getTimeouts();
8902
+ var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
8903
+ // if we are mounting and running this it means appear _must_ be set
8904
+
8905
+ if (!mounting && !enter || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
8906
+ this.safeSetState({
8907
+ status: ENTERED
8908
+ }, function () {
8909
+ _this2.props.onEntered(maybeNode);
8910
+ });
8911
+ return;
8912
+ }
8913
+
8914
+ this.props.onEnter(maybeNode, maybeAppearing);
8915
+ this.safeSetState({
8916
+ status: ENTERING
8917
+ }, function () {
8918
+ _this2.props.onEntering(maybeNode, maybeAppearing);
8919
+
8920
+ _this2.onTransitionEnd(enterTimeout, function () {
8921
+ _this2.safeSetState({
8922
+ status: ENTERED
8923
+ }, function () {
8924
+ _this2.props.onEntered(maybeNode, maybeAppearing);
8925
+ });
8926
+ });
8927
+ });
8928
+ };
8929
+
8930
+ _proto.performExit = function performExit() {
8931
+ var _this3 = this;
8932
+
8933
+ var exit = this.props.exit;
8934
+ var timeouts = this.getTimeouts();
8935
+ var maybeNode = this.props.nodeRef ? undefined : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this); // no exit animation skip right to EXITED
8936
+
8937
+ if (!exit || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
8938
+ this.safeSetState({
8939
+ status: EXITED
8940
+ }, function () {
8941
+ _this3.props.onExited(maybeNode);
8942
+ });
8943
+ return;
8944
+ }
8945
+
8946
+ this.props.onExit(maybeNode);
8947
+ this.safeSetState({
8948
+ status: EXITING
8949
+ }, function () {
8950
+ _this3.props.onExiting(maybeNode);
8951
+
8952
+ _this3.onTransitionEnd(timeouts.exit, function () {
8953
+ _this3.safeSetState({
8954
+ status: EXITED
8955
+ }, function () {
8956
+ _this3.props.onExited(maybeNode);
8957
+ });
8958
+ });
8959
+ });
8960
+ };
8961
+
8962
+ _proto.cancelNextCallback = function cancelNextCallback() {
8963
+ if (this.nextCallback !== null) {
8964
+ this.nextCallback.cancel();
8965
+ this.nextCallback = null;
8966
+ }
8967
+ };
8968
+
8969
+ _proto.safeSetState = function safeSetState(nextState, callback) {
8970
+ // This shouldn't be necessary, but there are weird race conditions with
8971
+ // setState callbacks and unmounting in testing, so always make sure that
8972
+ // we can cancel any pending setState callbacks after we unmount.
8973
+ callback = this.setNextCallback(callback);
8974
+ this.setState(nextState, callback);
8975
+ };
8976
+
8977
+ _proto.setNextCallback = function setNextCallback(callback) {
8978
+ var _this4 = this;
8979
+
8980
+ var active = true;
8981
+
8982
+ this.nextCallback = function (event) {
8983
+ if (active) {
8984
+ active = false;
8985
+ _this4.nextCallback = null;
8986
+ callback(event);
8987
+ }
8988
+ };
8989
+
8990
+ this.nextCallback.cancel = function () {
8991
+ active = false;
8992
+ };
8993
+
8994
+ return this.nextCallback;
8995
+ };
8996
+
8997
+ _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
8998
+ this.setNextCallback(handler);
8999
+ var node = this.props.nodeRef ? this.props.nodeRef.current : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this);
9000
+ var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
9001
+
9002
+ if (!node || doesNotHaveTimeoutOrListener) {
9003
+ setTimeout(this.nextCallback, 0);
9004
+ return;
9005
+ }
9006
+
9007
+ if (this.props.addEndListener) {
9008
+ var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],
9009
+ maybeNode = _ref3[0],
9010
+ maybeNextCallback = _ref3[1];
9011
+
9012
+ this.props.addEndListener(maybeNode, maybeNextCallback);
9013
+ }
9014
+
9015
+ if (timeout != null) {
9016
+ setTimeout(this.nextCallback, timeout);
9017
+ }
9018
+ };
9019
+
9020
+ _proto.render = function render() {
9021
+ var status = this.state.status;
9022
+
9023
+ if (status === UNMOUNTED) {
9024
+ return null;
9025
+ }
9026
+
9027
+ var _this$props = this.props,
9028
+ children = _this$props.children,
9029
+ _in = _this$props.in,
9030
+ _mountOnEnter = _this$props.mountOnEnter,
9031
+ _unmountOnExit = _this$props.unmountOnExit,
9032
+ _appear = _this$props.appear,
9033
+ _enter = _this$props.enter,
9034
+ _exit = _this$props.exit,
9035
+ _timeout = _this$props.timeout,
9036
+ _addEndListener = _this$props.addEndListener,
9037
+ _onEnter = _this$props.onEnter,
9038
+ _onEntering = _this$props.onEntering,
9039
+ _onEntered = _this$props.onEntered,
9040
+ _onExit = _this$props.onExit,
9041
+ _onExiting = _this$props.onExiting,
9042
+ _onExited = _this$props.onExited,
9043
+ _nodeRef = _this$props.nodeRef,
9044
+ childProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
9045
+
9046
+ return (
9047
+ /*#__PURE__*/
9048
+ // allows for nested Transitions
9049
+ __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */].Provider, {
9050
+ value: null
9051
+ }, typeof children === 'function' ? children(status, childProps) : __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Children.only(children), childProps))
9052
+ );
9053
+ };
9054
+
9055
+ return Transition;
9056
+ }(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Component);
9057
+
9058
+ Transition.contextType = __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */];
9059
+ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
9060
+ /**
9061
+ * A React reference to DOM element that need to transition:
9062
+ * https://stackoverflow.com/a/51127130/4671932
9063
+ *
9064
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
9065
+ * (e.g. `onEnter`) because user already has direct access to the node.
9066
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
9067
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
9068
+ * (see
9069
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
9070
+ */
9071
+ nodeRef: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({
9072
+ current: typeof Element === 'undefined' ? __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any : __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.instanceOf(Element)
9073
+ }),
9074
+
9075
+ /**
9076
+ * A `function` child can be used instead of a React element. This function is
9077
+ * called with the current transition status (`'entering'`, `'entered'`,
9078
+ * `'exiting'`, `'exited'`), which can be used to apply context
9079
+ * specific props to a component.
9080
+ *
9081
+ * ```jsx
9082
+ * <Transition in={this.state.in} timeout={150}>
9083
+ * {state => (
9084
+ * <MyComponent className={`fade fade-${state}`} />
9085
+ * )}
9086
+ * </Transition>
9087
+ * ```
9088
+ */
9089
+ children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element.isRequired]).isRequired,
9090
+
9091
+ /**
9092
+ * Show the component; triggers the enter or exit states
9093
+ */
9094
+ in: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9095
+
9096
+ /**
9097
+ * By default the child component is mounted immediately along with
9098
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
9099
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
9100
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
9101
+ */
9102
+ mountOnEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9103
+
9104
+ /**
9105
+ * By default the child component stays mounted after it reaches the `'exited'` state.
9106
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
9107
+ */
9108
+ unmountOnExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9109
+
9110
+ /**
9111
+ * By default the child component does not perform the enter transition when
9112
+ * it first mounts, regardless of the value of `in`. If you want this
9113
+ * behavior, set both `appear` and `in` to `true`.
9114
+ *
9115
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
9116
+ * > only adds an additional enter transition. However, in the
9117
+ * > `<CSSTransition>` component that first enter transition does result in
9118
+ * > additional `.appear-*` classes, that way you can choose to style it
9119
+ * > differently.
9120
+ */
9121
+ appear: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9122
+
9123
+ /**
9124
+ * Enable or disable enter transitions.
9125
+ */
9126
+ enter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9127
+
9128
+ /**
9129
+ * Enable or disable exit transitions.
9130
+ */
9131
+ exit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9132
+
9133
+ /**
9134
+ * The duration of the transition, in milliseconds.
9135
+ * Required unless `addEndListener` is provided.
9136
+ *
9137
+ * You may specify a single timeout for all transitions:
9138
+ *
9139
+ * ```jsx
9140
+ * timeout={500}
9141
+ * ```
9142
+ *
9143
+ * or individually:
9144
+ *
9145
+ * ```jsx
9146
+ * timeout={{
9147
+ * appear: 500,
9148
+ * enter: 300,
9149
+ * exit: 500,
9150
+ * }}
9151
+ * ```
9152
+ *
9153
+ * - `appear` defaults to the value of `enter`
9154
+ * - `enter` defaults to `0`
9155
+ * - `exit` defaults to `0`
9156
+ *
9157
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
9158
+ */
9159
+ timeout: function timeout(props) {
9160
+ var pt = __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__["b" /* timeoutsShape */];
9161
+ if (!props.addEndListener) pt = pt.isRequired;
9162
+
9163
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
9164
+ args[_key - 1] = arguments[_key];
9165
+ }
9166
+
9167
+ return pt.apply(void 0, [props].concat(args));
9168
+ },
9169
+
9170
+ /**
9171
+ * Add a custom transition end trigger. Called with the transitioning
9172
+ * DOM node and a `done` callback. Allows for more fine grained transition end
9173
+ * logic. Timeouts are still used as a fallback if provided.
9174
+ *
9175
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9176
+ *
9177
+ * ```jsx
9178
+ * addEndListener={(node, done) => {
9179
+ * // use the css transitionend event to mark the finish of a transition
9180
+ * node.addEventListener('transitionend', done, false);
9181
+ * }}
9182
+ * ```
9183
+ */
9184
+ addEndListener: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9185
+
9186
+ /**
9187
+ * Callback fired before the "entering" status is applied. An extra parameter
9188
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
9189
+ *
9190
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9191
+ *
9192
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
9193
+ */
9194
+ onEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9195
+
9196
+ /**
9197
+ * Callback fired after the "entering" status is applied. An extra parameter
9198
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
9199
+ *
9200
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9201
+ *
9202
+ * @type Function(node: HtmlElement, isAppearing: bool)
9203
+ */
9204
+ onEntering: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9205
+
9206
+ /**
9207
+ * Callback fired after the "entered" status is applied. An extra parameter
9208
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
9209
+ *
9210
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9211
+ *
9212
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
9213
+ */
9214
+ onEntered: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9215
+
9216
+ /**
9217
+ * Callback fired before the "exiting" status is applied.
9218
+ *
9219
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9220
+ *
9221
+ * @type Function(node: HtmlElement) -> void
9222
+ */
9223
+ onExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9224
+
9225
+ /**
9226
+ * Callback fired after the "exiting" status is applied.
9227
+ *
9228
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9229
+ *
9230
+ * @type Function(node: HtmlElement) -> void
9231
+ */
9232
+ onExiting: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9233
+
9234
+ /**
9235
+ * Callback fired after the "exited" status is applied.
9236
+ *
9237
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
9238
+ *
9239
+ * @type Function(node: HtmlElement) -> void
9240
+ */
9241
+ onExited: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func
9242
+ } : {}; // Name the function so it is clearer in the documentation
9243
+
9244
+ function noop() {}
9245
+
9246
+ Transition.defaultProps = {
9247
+ in: false,
9248
+ mountOnEnter: false,
9249
+ unmountOnExit: false,
9250
+ appear: false,
9251
+ enter: true,
9252
+ exit: true,
9253
+ onEnter: noop,
9254
+ onEntering: noop,
9255
+ onEntered: noop,
9256
+ onExit: noop,
9257
+ onExiting: noop,
9258
+ onExited: noop
9259
+ };
9260
+ Transition.UNMOUNTED = UNMOUNTED;
9261
+ Transition.EXITED = EXITED;
9262
+ Transition.ENTERING = ENTERING;
9263
+ Transition.ENTERED = ENTERED;
9264
+ Transition.EXITING = EXITING;
9265
+ /* harmony default export */ __webpack_exports__["d"] = (Transition);
9266
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9267
+
9268
+ /***/ }),
9269
+ /* 153 */
9270
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9271
+
9272
+ "use strict";
9273
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
9274
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
9275
+
9276
+ /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null));
9277
+
9278
+ /***/ }),
9279
+ /* 154 */
9280
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9281
+
9282
+ "use strict";
9283
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Avatar__ = __webpack_require__(631);
9284
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Avatar__["a"]; });
9285
+
9286
+
9287
+ /***/ }),
9288
+ /* 155 */
9289
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9290
+
9291
+ "use strict";
9292
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Button__ = __webpack_require__(643);
9293
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Button__["a"]; });
9294
+
9295
+
9296
+ /***/ }),
9297
+ /* 156 */
9298
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9299
+
9300
+ "use strict";
9301
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
9302
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
9303
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(23);
9304
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
9305
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
9306
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
9307
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
9308
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
9309
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_clsx__ = __webpack_require__(5);
9310
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__ = __webpack_require__(8);
9311
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_useControlled__ = __webpack_require__(50);
9312
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__ = __webpack_require__(57);
9313
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__styles_withStyles__ = __webpack_require__(6);
9314
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__IconButton__ = __webpack_require__(51);
9315
+
9316
+
9317
+
9318
+
9319
+
9320
+
9321
+
9322
+
9323
+
9324
+
9325
+
9326
+ var styles = {
9327
+ root: {
9328
+ padding: 9
9329
+ },
9330
+ checked: {},
9331
+ disabled: {},
9332
+ input: {
9333
+ cursor: 'inherit',
9334
+ position: 'absolute',
9335
+ opacity: 0,
9336
+ width: '100%',
9337
+ height: '100%',
9338
+ top: 0,
9339
+ left: 0,
9340
+ margin: 0,
9341
+ padding: 0,
9342
+ zIndex: 1
9343
+ }
9344
+ };
9345
+ /**
9346
+ * @ignore - internal component.
9347
+ */
9348
+
9349
+ var SwitchBase = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["forwardRef"](function SwitchBase(props, ref) {
9350
+ var autoFocus = props.autoFocus,
9351
+ checkedProp = props.checked,
9352
+ checkedIcon = props.checkedIcon,
9353
+ classes = props.classes,
9354
+ className = props.className,
9355
+ defaultChecked = props.defaultChecked,
9356
+ disabledProp = props.disabled,
9357
+ icon = props.icon,
9358
+ id = props.id,
9359
+ inputProps = props.inputProps,
9360
+ inputRef = props.inputRef,
9361
+ name = props.name,
9362
+ onBlur = props.onBlur,
9363
+ onChange = props.onChange,
9364
+ onFocus = props.onFocus,
9365
+ readOnly = props.readOnly,
9366
+ required = props.required,
9367
+ tabIndex = props.tabIndex,
9368
+ type = props.type,
9369
+ value = props.value,
9370
+ other = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["autoFocus", "checked", "checkedIcon", "classes", "className", "defaultChecked", "disabled", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"]);
9371
+
9372
+ var _useControlled = Object(__WEBPACK_IMPORTED_MODULE_7__utils_useControlled__["a" /* default */])({
9373
+ controlled: checkedProp,
9374
+ default: Boolean(defaultChecked),
9375
+ name: 'SwitchBase',
9376
+ state: 'checked'
9377
+ }),
9378
+ _useControlled2 = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_useControlled, 2),
9379
+ checked = _useControlled2[0],
9380
+ setCheckedState = _useControlled2[1];
9381
+
9382
+ var muiFormControl = Object(__WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__["a" /* default */])();
9383
+
9384
+ var handleFocus = function handleFocus(event) {
9385
+ if (onFocus) {
9386
+ onFocus(event);
9387
+ }
9388
+
9389
+ if (muiFormControl && muiFormControl.onFocus) {
9390
+ muiFormControl.onFocus(event);
9391
+ }
9392
+ };
9393
+
9394
+ var handleBlur = function handleBlur(event) {
9395
+ if (onBlur) {
9396
+ onBlur(event);
9397
+ }
9398
+
9399
+ if (muiFormControl && muiFormControl.onBlur) {
9400
+ muiFormControl.onBlur(event);
9401
+ }
9402
+ };
9403
+
9404
+ var handleInputChange = function handleInputChange(event) {
9405
+ var newChecked = event.target.checked;
9406
+ setCheckedState(newChecked);
9407
+
9408
+ if (onChange) {
9409
+ // TODO v5: remove the second argument.
9410
+ onChange(event, newChecked);
9411
+ }
9412
+ };
9413
+
9414
+ var disabled = disabledProp;
9415
+
9416
+ if (muiFormControl) {
9417
+ if (typeof disabled === 'undefined') {
9418
+ disabled = muiFormControl.disabled;
9419
+ }
9420
+ }
9421
+
9422
+ var hasLabelFor = type === 'checkbox' || type === 'radio';
9423
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"](__WEBPACK_IMPORTED_MODULE_10__IconButton__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9424
+ component: "span",
9425
+ className: Object(__WEBPACK_IMPORTED_MODULE_5_clsx__["a" /* default */])(classes.root, className, checked && classes.checked, disabled && classes.disabled),
9426
+ disabled: disabled,
9427
+ tabIndex: null,
9428
+ role: undefined,
9429
+ onFocus: handleFocus,
9430
+ onBlur: handleBlur,
9431
+ ref: ref
9432
+ }, other), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"]("input", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9433
+ autoFocus: autoFocus,
9434
+ checked: checkedProp,
9435
+ defaultChecked: defaultChecked,
9436
+ className: classes.input,
9437
+ disabled: disabled,
9438
+ id: hasLabelFor && id,
9439
+ name: name,
9440
+ onChange: handleInputChange,
9441
+ readOnly: readOnly,
9442
+ ref: inputRef,
9443
+ required: required,
9444
+ tabIndex: tabIndex,
9445
+ type: type,
9446
+ value: value
9447
+ }, inputProps)), checked ? checkedIcon : icon);
9448
+ }); // NB: If changed, please update Checkbox, Switch and Radio
9449
+ // so that the API documentation is updated.
9450
+
9451
+ process.env.NODE_ENV !== "production" ? SwitchBase.propTypes = {
9452
+ /**
9453
+ * If `true`, the `input` element will be focused during the first mount.
9454
+ */
9455
+ autoFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9456
+
9457
+ /**
9458
+ * If `true`, the component is checked.
9459
+ */
9460
+ checked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9461
+
9462
+ /**
9463
+ * The icon to display when the component is checked.
9464
+ */
9465
+ checkedIcon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
9466
+
9467
+ /**
9468
+ * Override or extend the styles applied to the component.
9469
+ * See [CSS API](#css) below for more details.
9470
+ */
9471
+ classes: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object.isRequired,
9472
+
9473
+ /**
9474
+ * @ignore
9475
+ */
9476
+ className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9477
+
9478
+ /**
9479
+ * @ignore
9480
+ */
9481
+ defaultChecked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9482
+
9483
+ /**
9484
+ * If `true`, the switch will be disabled.
9485
+ */
9486
+ disabled: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9487
+
9488
+ /**
9489
+ * The icon to display when the component is unchecked.
9490
+ */
9491
+ icon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
9492
+
9493
+ /**
9494
+ * The id of the `input` element.
9495
+ */
9496
+ id: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9497
+
9498
+ /**
9499
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
9500
+ */
9501
+ inputProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
9502
+
9503
+ /**
9504
+ * Pass a ref to the `input` element.
9505
+ */
9506
+ inputRef: __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__["j" /* refType */],
9507
+
9508
+ /*
9509
+ * @ignore
9510
+ */
9511
+ name: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9512
+
9513
+ /**
9514
+ * @ignore
9515
+ */
9516
+ onBlur: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9517
+
9518
+ /**
9519
+ * Callback fired when the state is changed.
9520
+ *
9521
+ * @param {object} event The event source of the callback.
9522
+ * You can pull out the new checked state by accessing `event.target.checked` (boolean).
9523
+ */
9524
+ onChange: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9525
+
9526
+ /**
9527
+ * @ignore
9528
+ */
9529
+ onFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9530
+
9531
+ /**
9532
+ * It prevents the user from changing the value of the field
9533
+ * (not from interacting with the field).
9534
+ */
9535
+ readOnly: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9536
+
9537
+ /**
9538
+ * If `true`, the `input` element will be required.
9539
+ */
9540
+ required: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9541
+
9542
+ /**
9543
+ * @ignore
9544
+ */
9545
+ tabIndex: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string]),
9546
+
9547
+ /**
9548
+ * The input component prop `type`.
9549
+ */
9550
+ type: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string.isRequired,
9551
+
9552
+ /**
9553
+ * The value of the component.
9554
+ */
9555
+ value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any
9556
+ } : void 0;
9557
+ /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__styles_withStyles__["a" /* default */])(styles, {
9558
+ name: 'PrivateSwitchBase'
9559
+ })(SwitchBase));
9560
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9561
+
9562
+ /***/ }),
9563
+ /* 157 */
9564
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9565
+
9566
+ "use strict";
9567
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Chip__ = __webpack_require__(655);
9568
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Chip__["a"]; });
9569
+
9570
+
9571
+ /***/ }),
9572
+ /* 158 */
9573
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9574
+
9575
+ "use strict";
9576
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__ = __webpack_require__(658);
9577
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__["a"]; });
9578
+
9579
+
9580
+ /***/ }),
9581
+ /* 159 */
9582
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9583
+
9584
+ "use strict";
9585
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Unstable_TrapFocus__ = __webpack_require__(664);
9586
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Unstable_TrapFocus__["a"]; });
9587
+
9588
+
9589
+ /***/ }),
9590
+ /* 160 */
9591
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9592
+
9593
+ "use strict";
9594
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
9595
+ /* harmony export (immutable) */ __webpack_exports__["c"] = isHorizontal;
9596
+ /* harmony export (immutable) */ __webpack_exports__["b"] = getAnchor;
9597
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
9598
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
9599
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
9600
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
9601
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
9602
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
9603
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_clsx__ = __webpack_require__(5);
9604
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Modal__ = __webpack_require__(82);
9605
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Backdrop__ = __webpack_require__(105);
9606
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__styles_withStyles__ = __webpack_require__(6);
9607
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Slide__ = __webpack_require__(161);
9608
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Paper__ = __webpack_require__(25);
9609
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_capitalize__ = __webpack_require__(11);
9610
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__styles_transitions__ = __webpack_require__(41);
9611
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__styles_useTheme__ = __webpack_require__(20);
9612
+
9613
+
9614
+
9615
+
9616
+
9617
+
9618
+
9619
+
9620
+
9621
+
9622
+
9623
+
9624
+
9625
+ var styles = function styles(theme) {
9626
+ return {
9627
+ /* Styles applied to the root element. */
9628
+ root: {},
9629
+
9630
+ /* Styles applied to the root element if `variant="permanent or persistent"`. */
9631
+ docked: {
9632
+ flex: '0 0 auto'
9633
+ },
9634
+
9635
+ /* Styles applied to the `Paper` component. */
9636
+ paper: {
9637
+ overflowY: 'auto',
9638
+ display: 'flex',
9639
+ flexDirection: 'column',
9640
+ height: '100%',
9641
+ flex: '1 0 auto',
9642
+ zIndex: theme.zIndex.drawer,
9643
+ WebkitOverflowScrolling: 'touch',
9644
+ // Add iOS momentum scrolling.
9645
+ // temporary style
9646
+ position: 'fixed',
9647
+ top: 0,
9648
+ // We disable the focus ring for mouse, touch and keyboard users.
9649
+ // At some point, it would be better to keep it for keyboard users.
9650
+ // :focus-ring CSS pseudo-class will help.
9651
+ outline: 0
9652
+ },
9653
+
9654
+ /* Styles applied to the `Paper` component if `anchor="left"`. */
9655
+ paperAnchorLeft: {
9656
+ left: 0,
9657
+ right: 'auto'
9658
+ },
9659
+
9660
+ /* Styles applied to the `Paper` component if `anchor="right"`. */
9661
+ paperAnchorRight: {
9662
+ left: 'auto',
9663
+ right: 0
9664
+ },
9665
+
9666
+ /* Styles applied to the `Paper` component if `anchor="top"`. */
9667
+ paperAnchorTop: {
9668
+ top: 0,
9669
+ left: 0,
9670
+ bottom: 'auto',
9671
+ right: 0,
9672
+ height: 'auto',
9673
+ maxHeight: '100%'
9674
+ },
9675
+
9676
+ /* Styles applied to the `Paper` component if `anchor="bottom"`. */
9677
+ paperAnchorBottom: {
9678
+ top: 'auto',
9679
+ left: 0,
9680
+ bottom: 0,
9681
+ right: 0,
9682
+ height: 'auto',
9683
+ maxHeight: '100%'
9684
+ },
9685
+
9686
+ /* Styles applied to the `Paper` component if `anchor="left"` and `variant` is not "temporary". */
9687
+ paperAnchorDockedLeft: {
9688
+ borderRight: "1px solid ".concat(theme.palette.divider)
9689
+ },
9690
+
9691
+ /* Styles applied to the `Paper` component if `anchor="top"` and `variant` is not "temporary". */
9692
+ paperAnchorDockedTop: {
9693
+ borderBottom: "1px solid ".concat(theme.palette.divider)
9694
+ },
9695
+
9696
+ /* Styles applied to the `Paper` component if `anchor="right"` and `variant` is not "temporary". */
9697
+ paperAnchorDockedRight: {
9698
+ borderLeft: "1px solid ".concat(theme.palette.divider)
9699
+ },
9700
+
9701
+ /* Styles applied to the `Paper` component if `anchor="bottom"` and `variant` is not "temporary". */
9702
+ paperAnchorDockedBottom: {
9703
+ borderTop: "1px solid ".concat(theme.palette.divider)
9704
+ },
9705
+
9706
+ /* Styles applied to the `Modal` component. */
9707
+ modal: {}
9708
+ };
9709
+ };
9710
+ var oppositeDirection = {
9711
+ left: 'right',
9712
+ right: 'left',
9713
+ top: 'down',
9714
+ bottom: 'up'
9715
+ };
9716
+ function isHorizontal(anchor) {
9717
+ return ['left', 'right'].indexOf(anchor) !== -1;
9718
+ }
9719
+ function getAnchor(theme, anchor) {
9720
+ return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
9721
+ }
9722
+ var defaultTransitionDuration = {
9723
+ enter: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].enteringScreen,
9724
+ exit: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].leavingScreen
9725
+ };
9726
+ /**
9727
+ * The props of the [Modal](/api/modal/) component are available
9728
+ * when `variant="temporary"` is set.
9729
+ */
9730
+
9731
+ var Drawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Drawer(props, ref) {
9732
+ var _props$anchor = props.anchor,
9733
+ anchorProp = _props$anchor === void 0 ? 'left' : _props$anchor,
9734
+ BackdropProps = props.BackdropProps,
9735
+ children = props.children,
9736
+ classes = props.classes,
9737
+ className = props.className,
9738
+ _props$elevation = props.elevation,
9739
+ elevation = _props$elevation === void 0 ? 16 : _props$elevation,
9740
+ _props$ModalProps = props.ModalProps;
9741
+ _props$ModalProps = _props$ModalProps === void 0 ? {} : _props$ModalProps;
9742
+
9743
+ var BackdropPropsProp = _props$ModalProps.BackdropProps,
9744
+ ModalProps = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_props$ModalProps, ["BackdropProps"]),
9745
+ onClose = props.onClose,
9746
+ _props$open = props.open,
9747
+ open = _props$open === void 0 ? false : _props$open,
9748
+ _props$PaperProps = props.PaperProps,
9749
+ PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,
9750
+ SlideProps = props.SlideProps,
9751
+ _props$TransitionComp = props.TransitionComponent,
9752
+ TransitionComponent = _props$TransitionComp === void 0 ? __WEBPACK_IMPORTED_MODULE_8__Slide__["a" /* default */] : _props$TransitionComp,
9753
+ _props$transitionDura = props.transitionDuration,
9754
+ transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
9755
+ _props$variant = props.variant,
9756
+ variant = _props$variant === void 0 ? 'temporary' : _props$variant,
9757
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["anchor", "BackdropProps", "children", "classes", "className", "elevation", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"]);
9758
+
9759
+ var theme = Object(__WEBPACK_IMPORTED_MODULE_12__styles_useTheme__["a" /* default */])(); // Let's assume that the Drawer will always be rendered on user space.
9760
+ // We use this state is order to skip the appear transition during the
9761
+ // initial mount of the component.
9762
+
9763
+ var mounted = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](false);
9764
+ __WEBPACK_IMPORTED_MODULE_2_react__["useEffect"](function () {
9765
+ mounted.current = true;
9766
+ }, []);
9767
+ var anchor = getAnchor(theme, anchorProp);
9768
+ var drawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_9__Paper__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9769
+ elevation: variant === 'temporary' ? elevation : 0,
9770
+ square: true
9771
+ }, PaperProps, {
9772
+ className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.paper, classes["paperAnchor".concat(Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(anchor))], PaperProps.className, variant !== 'temporary' && classes["paperAnchorDocked".concat(Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(anchor))])
9773
+ }), children);
9774
+
9775
+ if (variant === 'permanent') {
9776
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9777
+ className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
9778
+ ref: ref
9779
+ }, other), drawer);
9780
+ }
9781
+
9782
+ var slidingDrawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](TransitionComponent, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9783
+ in: open,
9784
+ direction: oppositeDirection[anchor],
9785
+ timeout: transitionDuration,
9786
+ appear: mounted.current
9787
+ }, SlideProps), drawer);
9788
+
9789
+ if (variant === 'persistent') {
9790
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9791
+ className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
9792
+ ref: ref
9793
+ }, other), slidingDrawer);
9794
+ } // variant === temporary
9795
+
9796
+
9797
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_5__Modal__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9798
+ BackdropProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, BackdropProps, BackdropPropsProp, {
9799
+ transitionDuration: transitionDuration
9800
+ }),
9801
+ BackdropComponent: __WEBPACK_IMPORTED_MODULE_6__Backdrop__["a" /* default */],
9802
+ className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.modal, className),
9803
+ open: open,
9804
+ onClose: onClose,
9805
+ ref: ref
9806
+ }, other, ModalProps), slidingDrawer);
9807
+ });
9808
+ process.env.NODE_ENV !== "production" ? Drawer.propTypes = {
9809
+ // ----------------------------- Warning --------------------------------
9810
+ // | These PropTypes are generated from the TypeScript type definitions |
9811
+ // | To update them edit the d.ts file and run "yarn proptypes" |
9812
+ // ----------------------------------------------------------------------
9813
+
9814
+ /**
9815
+ * Side from which the drawer will appear.
9816
+ */
9817
+ anchor: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['bottom', 'left', 'right', 'top']),
9818
+
9819
+ /**
9820
+ * @ignore
9821
+ */
9822
+ BackdropProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9823
+
9824
+ /**
9825
+ * The contents of the drawer.
9826
+ */
9827
+ children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
9828
+
9829
+ /**
9830
+ * Override or extend the styles applied to the component.
9831
+ * See [CSS API](#css) below for more details.
9832
+ */
9833
+ classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9834
+
9835
+ /**
9836
+ * @ignore
9837
+ */
9838
+ className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
9839
+
9840
+ /**
9841
+ * The elevation of the drawer.
9842
+ */
9843
+ elevation: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9844
+
9845
+ /**
9846
+ * Props applied to the [`Modal`](/api/modal/) element.
9847
+ */
9848
+ ModalProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9849
+
9850
+ /**
9851
+ * Callback fired when the component requests to be closed.
9852
+ *
9853
+ * @param {object} event The event source of the callback.
9854
+ */
9855
+ onClose: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
9856
+
9857
+ /**
9858
+ * If `true`, the drawer is open.
9859
+ */
9860
+ open: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
9861
+
9862
+ /**
9863
+ * Props applied to the [`Paper`](/api/paper/) element.
9864
+ */
9865
+ PaperProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9866
+
9867
+ /**
9868
+ * Props applied to the [`Slide`](/api/slide/) element.
9869
+ */
9870
+ SlideProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9871
+
9872
+ /**
9873
+ * The duration for the transition, in milliseconds.
9874
+ * You may specify a single timeout for all transitions, or individually with an object.
9875
+ */
9876
+ transitionDuration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({
9877
+ appear: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9878
+ enter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9879
+ exit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number
9880
+ })]),
9881
+
9882
+ /**
9883
+ * The variant to use.
9884
+ */
9885
+ variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['permanent', 'persistent', 'temporary'])
9886
+ } : void 0;
9887
+ /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__styles_withStyles__["a" /* default */])(styles, {
9888
+ name: 'MuiDrawer',
9889
+ flip: false
9890
+ })(Drawer));
9891
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9892
+
9893
+ /***/ }),
9894
+ /* 161 */
9895
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9896
+
9897
+ "use strict";
9898
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Slide__ = __webpack_require__(671);
9899
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Slide__["a"]; });
9900
+
9901
+
9902
+ /***/ }),
9903
+ /* 162 */
9904
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9905
+
9906
+ "use strict";
9907
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__ = __webpack_require__(679);
9908
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__["a"]; });
9909
+
9910
+
9911
+ /***/ }),
9912
+ /* 163 */
9913
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9914
+
9915
+ "use strict";
9916
+ /* unused harmony export hasValue */
9917
+ /* harmony export (immutable) */ __webpack_exports__["b"] = isFilled;
9918
+ /* harmony export (immutable) */ __webpack_exports__["a"] = isAdornedStart;
9919
+ // Supports determination of isControlled().
9920
+ // Controlled input accepts its current value as a prop.
9921
+ //
9922
+ // @see https://facebook.github.io/react/docs/forms.html#controlled-components
9923
+ // @param value
9924
+ // @returns {boolean} true if string (including '') or number (including zero)
9925
+ function hasValue(value) {
9926
+ return value != null && !(Array.isArray(value) && value.length === 0);
9927
+ } // Determine if field is empty or filled.
9928
+ // Response determines if label is presented above field or as placeholder.
9929
+ //
9930
+ // @param obj
9931
+ // @param SSR
9932
+ // @returns {boolean} False when not present or empty string.
9933
+ // True when any number or string with length.
9934
+
9935
+ function isFilled(obj) {
9936
+ var SSR = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
9937
+ return obj && (hasValue(obj.value) && obj.value !== '' || SSR && hasValue(obj.defaultValue) && obj.defaultValue !== '');
9938
+ } // Determine if an Input is adorned on start.
9939
+ // It's corresponding to the left with LTR.
9940
+ //
9941
+ // @param obj
9942
+ // @returns {boolean} False when no adornments.
9943
+ // True when adorned at the start.
9944
+
9945
+ function isAdornedStart(obj) {
9946
+ return obj.startAdornment;
9947
+ }
9948
+
9949
+ /***/ }),
9950
+ /* 164 */
9951
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9952
+
9953
+ "use strict";
9954
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormGroup__ = __webpack_require__(682);
9955
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormGroup__["a"]; });
9956
+
9957
+
9958
+ /***/ }),
9959
+ /* 165 */
9960
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9961
+
9962
+ "use strict";
9963
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormHelperText__ = __webpack_require__(683);
9964
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormHelperText__["a"]; });
9965
+
9966
+
9967
+ /***/ }),
9968
+ /* 166 */
9969
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9970
+
9971
+ "use strict";
9972
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormLabel__ = __webpack_require__(684);
9973
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormLabel__["a"]; });
9974
+
9975
+
9976
+ /***/ }),
9977
+ /* 167 */
9978
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9979
+
9980
+ "use strict";
9981
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__ = __webpack_require__(692);
9982
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__["a"]; });
9983
+
9984
+
9985
+ /***/ }),
9986
+ /* 168 */
9987
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9988
+
9989
+ "use strict";
9990
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputLabel__ = __webpack_require__(696);
9991
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputLabel__["a"]; });
9992
+
9993
+
9994
+ /***/ }),
9995
+ /* 169 */
9996
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9997
+
9998
+ "use strict";
9999
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__LinearProgress__ = __webpack_require__(697);
10000
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__LinearProgress__["a"]; });
10001
+
10002
+
10003
+ /***/ }),
10004
+ /* 170 */
10005
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10006
+
10007
+ "use strict";
10008
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__List__ = __webpack_require__(699);
10009
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__List__["a"]; });
10010
+
10011
+
10012
+ /***/ }),
10013
+ /* 171 */
10014
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10015
+
10016
+ "use strict";
10017
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItem__ = __webpack_require__(700);
10018
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListItem__["a"]; });
10019
+
10020
+
10021
+ /***/ }),
10022
+ /* 172 */
10023
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10024
+
10025
+ "use strict";
10026
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListSubheader__ = __webpack_require__(705);
10027
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListSubheader__["a"]; });
10028
+
10029
+
10030
+ /***/ }),
10031
+ /* 173 */
10032
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10033
+
10034
+ "use strict";
10035
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popover__ = __webpack_require__(706);
10036
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popover__["a"]; });
10037
+
10038
+
10039
+ /***/ }),
10040
+ /* 174 */
10041
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10042
+
10043
+ "use strict";
10044
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuList__ = __webpack_require__(707);
10045
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuList__["a"]; });
10046
+
10047
+
10048
+ /***/ }),
10049
+ /* 175 */
10050
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10051
+
10052
+ "use strict";
10053
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuItem__ = __webpack_require__(708);
10054
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuItem__["a"]; });
10055
+
10056
+
10057
+ /***/ }),
10058
+ /* 176 */
10059
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10060
+
10061
+ "use strict";
10062
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__NoSsr__ = __webpack_require__(710);
10063
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__NoSsr__["a"]; });
10064
+
10065
+
10066
+ /***/ }),
10067
+ /* 177 */
10068
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10069
+
10070
+ "use strict";
10071
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__ = __webpack_require__(726);
10072
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__["a"]; });
10073
+
10074
+
10075
+ /***/ }),
10076
+ /* 178 */
10077
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10078
+
10079
+ "use strict";
10080
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepLabel__ = __webpack_require__(729);
10081
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepLabel__["a"]; });
10082
+
10083
+
10084
+ /***/ }),
10085
+ /* 179 */
10086
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10087
+
10088
+ "use strict";
10089
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepIcon__ = __webpack_require__(730);
10090
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepIcon__["a"]; });
10091
+
10092
+
10093
+ /***/ }),
10094
+ /* 180 */
10095
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10096
+
10097
+ "use strict";
10098
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepConnector__ = __webpack_require__(733);
10099
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepConnector__["a"]; });
10100
+
10101
+
10102
+ /***/ }),
10103
+ /* 181 */
10104
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10105
+
10106
+ "use strict";
10107
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableCell__ = __webpack_require__(742);
10108
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TableCell__["a"]; });
10109
+
10110
+
10111
+ /***/ }),
10112
+ /* 182 */
10113
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10114
+
10115
+ "use strict";
10116
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Toolbar__ = __webpack_require__(747);
10117
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Toolbar__["a"]; });
10118
+
10119
+
10120
+ /***/ }),
10121
+ /* 183 */
10122
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10123
+
10124
+ "use strict";
10125
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tabs__ = __webpack_require__(752);
10126
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Tabs__["a"]; });
10127
+
10128
+
10129
+ /***/ }),
10130
+ /* 184 */
10131
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10132
+
10133
+ "use strict";
10134
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabScrollButton__ = __webpack_require__(757);
10135
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabScrollButton__["a"]; });
10136
+
10137
+
10138
+ /***/ }),
10139
+ /* 185 */
10140
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10141
+
10142
+ "use strict";
10143
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Zoom__ = __webpack_require__(762);
10144
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Zoom__["a"]; });
10145
+
10146
+
10147
+ /***/ }),
10148
+ /* 186 */
10149
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10150
+
10151
+ "use strict";
10152
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PaginationItem__ = __webpack_require__(768);
10153
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__PaginationItem__["a"]; });
10154
+
10155
+
10156
+ /***/ }),
10157
+ /* 187 */
10158
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10159
+
10160
+ "use strict";
10161
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
10162
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
10163
+
10164
+ /**
10165
+ * @ignore - internal component.
10166
+ */
10167
+
10168
+ var TimelineItemContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
10169
+
10170
+ if (process.env.NODE_ENV !== 'production') {
10171
+ TimelineItemContext.displayName = 'TimelineItemContext';
10172
+ }
10173
+
10174
+ /* harmony default export */ __webpack_exports__["a"] = (TimelineItemContext);
10175
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
10176
+
10177
+ /***/ }),
10178
+ /* 188 */
10179
+ /***/ (function(module, exports, __webpack_require__) {
10180
+
10181
+ var baseForOwn = __webpack_require__(396),
10182
+ castFunction = __webpack_require__(812);
10183
+
10184
+ /**
10185
+ * Iterates over own enumerable string keyed properties of an object and
10186
+ * invokes `iteratee` for each property. The iteratee is invoked with three
10187
+ * arguments: (value, key, object). Iteratee functions may exit iteration
10188
+ * early by explicitly returning `false`.
10189
+ *
10190
+ * @static
10191
+ * @memberOf _
10192
+ * @since 0.3.0
10193
+ * @category Object
10194
+ * @param {Object} object The object to iterate over.
10195
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
10196
+ * @returns {Object} Returns `object`.
10197
+ * @see _.forOwnRight
10198
+ * @example
10199
+ *
10200
+ * function Foo() {
10201
+ * this.a = 1;
10202
+ * this.b = 2;
10203
+ * }
10204
+ *
10205
+ * Foo.prototype.c = 3;
10206
+ *
10207
+ * _.forOwn(new Foo, function(value, key) {
10208
+ * console.log(key);
10209
+ * });
10210
+ * // => Logs 'a' then 'b' (iteration order is not guaranteed).
10211
+ */
10212
+ function forOwn(object, iteratee) {
10213
+ return object && baseForOwn(object, castFunction(iteratee));
10214
+ }
10215
+
10216
+ module.exports = forOwn;
10217
+
10218
+
10219
+ /***/ }),
10220
+ /* 189 */
10221
+ /***/ (function(module, exports, __webpack_require__) {
10222
+
10223
+ /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(42),
10224
+ stubFalse = __webpack_require__(808);
10225
+
10226
+ /** Detect free variable `exports`. */
10227
+ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
10228
+
10229
+ /** Detect free variable `module`. */
10230
+ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
10231
+
10232
+ /** Detect the popular CommonJS extension `module.exports`. */
10233
+ var moduleExports = freeModule && freeModule.exports === freeExports;
10234
+
10235
+ /** Built-in value references. */
10236
+ var Buffer = moduleExports ? root.Buffer : undefined;
10237
+
10238
+ /* Built-in method references for those with the same name as other `lodash` methods. */
10239
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
10240
+
10241
+ /**
10242
+ * Checks if `value` is a buffer.
10243
+ *
10244
+ * @static
10245
+ * @memberOf _
10246
+ * @since 4.3.0
10247
+ * @category Lang
10248
+ * @param {*} value The value to check.
10249
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
10250
+ * @example
10251
+ *
10252
+ * _.isBuffer(new Buffer(2));
10253
+ * // => true
10254
+ *
10255
+ * _.isBuffer(new Uint8Array(2));
10256
+ * // => false
10257
+ */
10258
+ var isBuffer = nativeIsBuffer || stubFalse;
10259
+
10260
+ module.exports = isBuffer;
10261
+
10262
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(190)(module)))
10263
+
10264
+ /***/ }),
10265
+ /* 190 */
10266
+ /***/ (function(module, exports) {
10267
+
10268
+ module.exports = function(module) {
10269
+ if(!module.webpackPolyfill) {
10270
+ module.deprecate = function() {};
10271
+ module.paths = [];
10272
+ // module.parent = undefined by default
10273
+ if(!module.children) module.children = [];
10274
+ Object.defineProperty(module, "loaded", {
10275
+ enumerable: true,
10276
+ get: function() {
10277
+ return module.l;
10278
  }
10279
+ });
10280
+ Object.defineProperty(module, "id", {
10281
+ enumerable: true,
10282
+ get: function() {
10283
+ return module.i;
 
10284
  }
10285
+ });
10286
+ module.webpackPolyfill = 1;
10287
  }
10288
+ return module;
10289
+ };
10290
+
10291
+
10292
+ /***/ }),
10293
+ /* 191 */
10294
+ /***/ (function(module, exports) {
10295
+
10296
+ /** Used as references for various `Number` constants. */
10297
+ var MAX_SAFE_INTEGER = 9007199254740991;
10298
+
10299
+ /**
10300
+ * Checks if `value` is a valid array-like length.
10301
+ *
10302
+ * **Note:** This method is loosely based on
10303
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
10304
+ *
10305
+ * @static
10306
+ * @memberOf _
10307
+ * @since 4.0.0
10308
+ * @category Lang
10309
+ * @param {*} value The value to check.
10310
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
10311
+ * @example
10312
+ *
10313
+ * _.isLength(3);
10314
+ * // => true
10315
+ *
10316
+ * _.isLength(Number.MIN_VALUE);
10317
+ * // => false
10318
+ *
10319
+ * _.isLength(Infinity);
10320
+ * // => false
10321
+ *
10322
+ * _.isLength('3');
10323
+ * // => false
10324
+ */
10325
+ function isLength(value) {
10326
+ return typeof value == 'number' &&
10327
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
10328
+ }
10329
+
10330
+ module.exports = isLength;
10331
+
10332
+
10333
+ /***/ }),
10334
+ /* 192 */
10335
+ /***/ (function(module, exports) {
10336
+
10337
+ /**
10338
+ * The base implementation of `_.unary` without support for storing metadata.
10339
+ *
10340
+ * @private
10341
+ * @param {Function} func The function to cap arguments for.
10342
+ * @returns {Function} Returns the new capped function.
10343
+ */
10344
+ function baseUnary(func) {
10345
+ return function(value) {
10346
+ return func(value);
10347
+ };
10348
+ }
10349
+
10350
+ module.exports = baseUnary;
10351
+
10352
+
10353
+ /***/ }),
10354
+ /* 193 */
10355
+ /***/ (function(module, exports, __webpack_require__) {
10356
+
10357
+ /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(395);
10358
+
10359
+ /** Detect free variable `exports`. */
10360
+ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
10361
+
10362
+ /** Detect free variable `module`. */
10363
+ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
10364
+
10365
+ /** Detect the popular CommonJS extension `module.exports`. */
10366
+ var moduleExports = freeModule && freeModule.exports === freeExports;
10367
+
10368
+ /** Detect free variable `process` from Node.js. */
10369
+ var freeProcess = moduleExports && freeGlobal.process;
10370
+
10371
+ /** Used to access faster Node.js helpers. */
10372
+ var nodeUtil = (function() {
10373
+ try {
10374
+ // Use `util.types` for Node.js 10+.
10375
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
10376
+
10377
+ if (types) {
10378
+ return types;
10379
+ }
10380
+
10381
+ // Legacy `process.binding('util')` for Node.js < 10.
10382
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
10383
+ } catch (e) {}
10384
+ }());
10385
+
10386
+ module.exports = nodeUtil;
10387
+
10388
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(190)(module)))
10389
+
10390
+ /***/ }),
10391
+ /* 194 */
10392
+ /***/ (function(module, exports) {
10393
+
10394
+ /** Used for built-in method references. */
10395
+ var objectProto = Object.prototype;
10396
+
10397
+ /**
10398
+ * Checks if `value` is likely a prototype object.
10399
+ *
10400
+ * @private
10401
+ * @param {*} value The value to check.
10402
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
10403
+ */
10404
+ function isPrototype(value) {
10405
+ var Ctor = value && value.constructor,
10406
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
10407
+
10408
+ return value === proto;
10409
+ }
10410
+
10411
+ module.exports = isPrototype;
10412
+
10413
+
10414
+ /***/ }),
10415
+ /* 195 */
10416
+ /***/ (function(module, exports, __webpack_require__) {
10417
+
10418
+ var overArg = __webpack_require__(401);
10419
+
10420
+ /** Built-in value references. */
10421
+ var getPrototype = overArg(Object.getPrototypeOf, Object);
10422
+
10423
+ module.exports = getPrototype;
10424
+
10425
+
10426
+ /***/ }),
10427
+ /* 196 */
10428
+ /***/ (function(module, exports, __webpack_require__) {
10429
+
10430
+ var ListCache = __webpack_require__(120),
10431
+ stackClear = __webpack_require__(823),
10432
+ stackDelete = __webpack_require__(824),
10433
+ stackGet = __webpack_require__(825),
10434
+ stackHas = __webpack_require__(826),
10435
+ stackSet = __webpack_require__(827);
10436
+
10437
+ /**
10438
+ * Creates a stack cache object to store key-value pairs.
10439
+ *
10440
+ * @private
10441
+ * @constructor
10442
+ * @param {Array} [entries] The key-value pairs to cache.
10443
+ */
10444
+ function Stack(entries) {
10445
+ var data = this.__data__ = new ListCache(entries);
10446
+ this.size = data.size;
10447
+ }
10448
+
10449
+ // Add methods to `Stack`.
10450
+ Stack.prototype.clear = stackClear;
10451
+ Stack.prototype['delete'] = stackDelete;
10452
+ Stack.prototype.get = stackGet;
10453
+ Stack.prototype.has = stackHas;
10454
+ Stack.prototype.set = stackSet;
10455
+
10456
+ module.exports = Stack;
10457
+
10458
+
10459
+ /***/ }),
10460
+ /* 197 */
10461
+ /***/ (function(module, exports) {
10462
+
10463
+ /**
10464
+ * Performs a
10465
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
10466
+ * comparison between two values to determine if they are equivalent.
10467
+ *
10468
+ * @static
10469
+ * @memberOf _
10470
+ * @since 4.0.0
10471
+ * @category Lang
10472
+ * @param {*} value The value to compare.
10473
+ * @param {*} other The other value to compare.
10474
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
10475
+ * @example
10476
+ *
10477
+ * var object = { 'a': 1 };
10478
+ * var other = { 'a': 1 };
10479
+ *
10480
+ * _.eq(object, object);
10481
+ * // => true
10482
+ *
10483
+ * _.eq(object, other);
10484
+ * // => false
10485
+ *
10486
+ * _.eq('a', 'a');
10487
+ * // => true
10488
+ *
10489
+ * _.eq('a', Object('a'));
10490
+ * // => false
10491
+ *
10492
+ * _.eq(NaN, NaN);
10493
+ * // => true
10494
+ */
10495
+ function eq(value, other) {
10496
+ return value === other || (value !== value && other !== other);
10497
+ }
10498
+
10499
+ module.exports = eq;
10500
+
10501
+
10502
+ /***/ }),
10503
+ /* 198 */
10504
+ /***/ (function(module, exports, __webpack_require__) {
10505
+
10506
+ var getNative = __webpack_require__(59),
10507
+ root = __webpack_require__(42);
10508
+
10509
+ /* Built-in method references that are verified to be native. */
10510
+ var Map = getNative(root, 'Map');
10511
+
10512
+ module.exports = Map;
10513
+
10514
+
10515
+ /***/ }),
10516
+ /* 199 */
10517
+ /***/ (function(module, exports, __webpack_require__) {
10518
+
10519
+ var mapCacheClear = __webpack_require__(832),
10520
+ mapCacheDelete = __webpack_require__(839),
10521
+ mapCacheGet = __webpack_require__(841),
10522
+ mapCacheHas = __webpack_require__(842),
10523
+ mapCacheSet = __webpack_require__(843);
10524
+
10525
+ /**
10526
+ * Creates a map cache object to store key-value pairs.
10527
+ *
10528
+ * @private
10529
+ * @constructor
10530
+ * @param {Array} [entries] The key-value pairs to cache.
10531
+ */
10532
+ function MapCache(entries) {
10533
+ var index = -1,
10534
+ length = entries == null ? 0 : entries.length;
10535
+
10536
+ this.clear();
10537
+ while (++index < length) {
10538
+ var entry = entries[index];
10539
+ this.set(entry[0], entry[1]);
10540
+ }
10541
+ }
10542
+
10543
+ // Add methods to `MapCache`.
10544
+ MapCache.prototype.clear = mapCacheClear;
10545
+ MapCache.prototype['delete'] = mapCacheDelete;
10546
+ MapCache.prototype.get = mapCacheGet;
10547
+ MapCache.prototype.has = mapCacheHas;
10548
+ MapCache.prototype.set = mapCacheSet;
10549
+
10550
+ module.exports = MapCache;
10551
+
10552
+
10553
+ /***/ }),
10554
+ /* 200 */
10555
+ /***/ (function(module, exports, __webpack_require__) {
10556
+
10557
+ var arrayFilter = __webpack_require__(854),
10558
+ stubArray = __webpack_require__(412);
10559
+
10560
+ /** Used for built-in method references. */
10561
+ var objectProto = Object.prototype;
10562
+
10563
+ /** Built-in value references. */
10564
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
10565
+
10566
+ /* Built-in method references for those with the same name as other `lodash` methods. */
10567
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
10568
+
10569
+ /**
10570
+ * Creates an array of the own enumerable symbols of `object`.
10571
+ *
10572
+ * @private
10573
+ * @param {Object} object The object to query.
10574
+ * @returns {Array} Returns the array of symbols.
10575
+ */
10576
+ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
10577
+ if (object == null) {
10578
+ return [];
10579
+ }
10580
+ object = Object(object);
10581
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
10582
+ return propertyIsEnumerable.call(object, symbol);
10583
+ });
10584
+ };
10585
+
10586
+ module.exports = getSymbols;
10587
+
10588
+
10589
+ /***/ }),
10590
+ /* 201 */
10591
+ /***/ (function(module, exports, __webpack_require__) {
10592
+
10593
+ var isArray = __webpack_require__(32),
10594
+ isSymbol = __webpack_require__(202);
10595
+
10596
+ /** Used to match property names within property paths. */
10597
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
10598
+ reIsPlainProp = /^\w*$/;
10599
+
10600
+ /**
10601
+ * Checks if `value` is a property name and not a property path.
10602
+ *
10603
+ * @private
10604
+ * @param {*} value The value to check.
10605
+ * @param {Object} [object] The object to query keys on.
10606
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
10607
+ */
10608
+ function isKey(value, object) {
10609
+ if (isArray(value)) {
10610
+ return false;
10611
+ }
10612
+ var type = typeof value;
10613
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
10614
+ value == null || isSymbol(value)) {
10615
+ return true;
10616
+ }
10617
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
10618
+ (object != null && value in Object(object));
10619
+ }
10620
+
10621
+ module.exports = isKey;
10622
+
10623
+
10624
+ /***/ }),
10625
+ /* 202 */
10626
+ /***/ (function(module, exports, __webpack_require__) {
10627
+
10628
+ var baseGetTag = __webpack_require__(58),
10629
+ isObjectLike = __webpack_require__(45);
10630
+
10631
+ /** `Object#toString` result references. */
10632
+ var symbolTag = '[object Symbol]';
10633
+
10634
+ /**
10635
+ * Checks if `value` is classified as a `Symbol` primitive or object.
10636
+ *
10637
+ * @static
10638
+ * @memberOf _
10639
+ * @since 4.0.0
10640
+ * @category Lang
10641
+ * @param {*} value The value to check.
10642
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
10643
+ * @example
10644
+ *
10645
+ * _.isSymbol(Symbol.iterator);
10646
+ * // => true
10647
+ *
10648
+ * _.isSymbol('abc');
10649
+ * // => false
10650
+ */
10651
+ function isSymbol(value) {
10652
+ return typeof value == 'symbol' ||
10653
+ (isObjectLike(value) && baseGetTag(value) == symbolTag);
10654
+ }
10655
+
10656
+ module.exports = isSymbol;
10657
+
10658
+
10659
+ /***/ }),
10660
+ /* 203 */
10661
+ /***/ (function(module, exports, __webpack_require__) {
10662
+
10663
+ var arrayLikeKeys = __webpack_require__(397),
10664
+ baseKeysIn = __webpack_require__(883),
10665
+ isArrayLike = __webpack_require__(119);
10666
+
10667
+ /**
10668
+ * Creates an array of the own and inherited enumerable property names of `object`.
10669
+ *
10670
+ * **Note:** Non-object values are coerced to objects.
10671
+ *
10672
+ * @static
10673
+ * @memberOf _
10674
+ * @since 3.0.0
10675
+ * @category Object
10676
+ * @param {Object} object The object to query.
10677
+ * @returns {Array} Returns the array of property names.
10678
+ * @example
10679
+ *
10680
+ * function Foo() {
10681
+ * this.a = 1;
10682
+ * this.b = 2;
10683
+ * }
10684
+ *
10685
+ * Foo.prototype.c = 3;
10686
+ *
10687
+ * _.keysIn(new Foo);
10688
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
10689
+ */
10690
+ function keysIn(object) {
10691
+ return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
10692
+ }
10693
+
10694
+ module.exports = keysIn;
10695
+
10696
+
10697
+ /***/ }),
10698
+ /* 204 */
10699
+ /***/ (function(module, exports, __webpack_require__) {
10700
+
10701
+ var Uint8Array = __webpack_require__(408);
10702
+
10703
+ /**
10704
+ * Creates a clone of `arrayBuffer`.
10705
+ *
10706
+ * @private
10707
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
10708
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
10709
+ */
10710
+ function cloneArrayBuffer(arrayBuffer) {
10711
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
10712
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
10713
+ return result;
10714
+ }
10715
+
10716
+ module.exports = cloneArrayBuffer;
10717
+
10718
+
10719
+ /***/ }),
10720
+ /* 205 */
10721
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10722
+
10723
+ "use strict";
10724
+ /* unused harmony export Checkboard */
10725
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
10726
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
10727
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(10);
10728
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
10729
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_checkboard__ = __webpack_require__(908);
10730
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
10731
+
10732
+
10733
+
10734
+
10735
+
10736
+ var Checkboard = function Checkboard(_ref) {
10737
+ var white = _ref.white,
10738
+ grey = _ref.grey,
10739
+ size = _ref.size,
10740
+ renderers = _ref.renderers,
10741
+ borderRadius = _ref.borderRadius,
10742
+ boxShadow = _ref.boxShadow,
10743
+ children = _ref.children;
10744
+
10745
+ var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
10746
+ 'default': {
10747
+ grid: {
10748
+ borderRadius: borderRadius,
10749
+ boxShadow: boxShadow,
10750
+ absolute: '0px 0px 0px 0px',
10751
+ background: 'url(' + __WEBPACK_IMPORTED_MODULE_2__helpers_checkboard__["a" /* get */](white, grey, size, renderers.canvas) + ') center left'
10752
+ }
10753
+ }
10754
+ });
10755
+ return Object(__WEBPACK_IMPORTED_MODULE_0_react__["isValidElement"])(children) ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(children, _extends({}, children.props, { style: _extends({}, children.props.style, styles.grid) })) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.grid });
10756
+ };
10757
+
10758
+ Checkboard.defaultProps = {
10759
+ size: 8,
10760
+ white: 'transparent',
10761
+ grey: 'rgba(0,0,0,.08)',
10762
+ renderers: {}
10763
+ };
10764
+
10765
+ /* harmony default export */ __webpack_exports__["a"] = (Checkboard);
10766
+
10767
+ /***/ }),
10768
+ /* 206 */
10769
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10770
+
10771
+ "use strict";
10772
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListCache_js__ = __webpack_require__(127);
10773
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stackClear_js__ = __webpack_require__(919);
10774
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stackDelete_js__ = __webpack_require__(920);
10775
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__stackGet_js__ = __webpack_require__(921);
10776
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__stackHas_js__ = __webpack_require__(922);
10777
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__stackSet_js__ = __webpack_require__(923);
10778
+
10779
+
10780
+
10781
+
10782
+
10783
+
10784
+
10785
+ /**
10786
+ * Creates a stack cache object to store key-value pairs.
10787
+ *
10788
+ * @private
10789
+ * @constructor
10790
+ * @param {Array} [entries] The key-value pairs to cache.
10791
+ */
10792
+ function Stack(entries) {
10793
+ var data = this.__data__ = new __WEBPACK_IMPORTED_MODULE_0__ListCache_js__["a" /* default */](entries);
10794
+ this.size = data.size;
10795
+ }
10796
+
10797
+ // Add methods to `Stack`.
10798
+ Stack.prototype.clear = __WEBPACK_IMPORTED_MODULE_1__stackClear_js__["a" /* default */];
10799
+ Stack.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_2__stackDelete_js__["a" /* default */];
10800
+ Stack.prototype.get = __WEBPACK_IMPORTED_MODULE_3__stackGet_js__["a" /* default */];
10801
+ Stack.prototype.has = __WEBPACK_IMPORTED_MODULE_4__stackHas_js__["a" /* default */];
10802
+ Stack.prototype.set = __WEBPACK_IMPORTED_MODULE_5__stackSet_js__["a" /* default */];
10803
+
10804
+ /* harmony default export */ __webpack_exports__["a"] = (Stack);
10805
+
10806
+
10807
+ /***/ }),
10808
+ /* 207 */
10809
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10810
+
10811
+ "use strict";
10812
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(60);
10813
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__root_js__ = __webpack_require__(33);
10814
+
10815
+
10816
+
10817
+ /* Built-in method references that are verified to be native. */
10818
+ var Map = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_1__root_js__["a" /* default */], 'Map');
10819
+
10820
+ /* harmony default export */ __webpack_exports__["a"] = (Map);
10821
+
10822
+
10823
+ /***/ }),
10824
+ /* 208 */
10825
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10826
+
10827
+ "use strict";
10828
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(72);
10829
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObject_js__ = __webpack_require__(34);
10830
+
10831
+
10832
+
10833
+ /** `Object#toString` result references. */
10834
+ var asyncTag = '[object AsyncFunction]',
10835
+ funcTag = '[object Function]',
10836
+ genTag = '[object GeneratorFunction]',
10837
+ proxyTag = '[object Proxy]';
10838
+
10839
+ /**
10840
+ * Checks if `value` is classified as a `Function` object.
10841
+ *
10842
+ * @static
10843
+ * @memberOf _
10844
+ * @since 0.1.0
10845
+ * @category Lang
10846
+ * @param {*} value The value to check.
10847
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
10848
+ * @example
10849
+ *
10850
+ * _.isFunction(_);
10851
+ * // => true
10852
+ *
10853
+ * _.isFunction(/abc/);
10854
+ * // => false
10855
+ */
10856
+ function isFunction(value) {
10857
+ if (!Object(__WEBPACK_IMPORTED_MODULE_1__isObject_js__["a" /* default */])(value)) {
10858
+ return false;
10859
+ }
10860
+ // The use of `Object#toString` avoids issues with the `typeof` operator
10861
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
10862
+ var tag = Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value);
10863
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
10864
+ }
10865
+
10866
+ /* harmony default export */ __webpack_exports__["a"] = (isFunction);
10867
+
10868
+
10869
+ /***/ }),
10870
+ /* 209 */
10871
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10872
+
10873
+ "use strict";
10874
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mapCacheClear_js__ = __webpack_require__(930);
10875
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mapCacheDelete_js__ = __webpack_require__(937);
10876
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mapCacheGet_js__ = __webpack_require__(939);
10877
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mapCacheHas_js__ = __webpack_require__(940);
10878
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mapCacheSet_js__ = __webpack_require__(941);
10879
+
10880
+
10881
+
10882
+
10883
+
10884
+
10885
+ /**
10886
+ * Creates a map cache object to store key-value pairs.
10887
+ *
10888
+ * @private
10889
+ * @constructor
10890
+ * @param {Array} [entries] The key-value pairs to cache.
10891
+ */
10892
+ function MapCache(entries) {
10893
+ var index = -1,
10894
+ length = entries == null ? 0 : entries.length;
10895
+
10896
+ this.clear();
10897
+ while (++index < length) {
10898
+ var entry = entries[index];
10899
+ this.set(entry[0], entry[1]);
10900
+ }
10901
+ }
10902
+
10903
+ // Add methods to `MapCache`.
10904
+ MapCache.prototype.clear = __WEBPACK_IMPORTED_MODULE_0__mapCacheClear_js__["a" /* default */];
10905
+ MapCache.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_1__mapCacheDelete_js__["a" /* default */];
10906
+ MapCache.prototype.get = __WEBPACK_IMPORTED_MODULE_2__mapCacheGet_js__["a" /* default */];
10907
+ MapCache.prototype.has = __WEBPACK_IMPORTED_MODULE_3__mapCacheHas_js__["a" /* default */];
10908
+ MapCache.prototype.set = __WEBPACK_IMPORTED_MODULE_4__mapCacheSet_js__["a" /* default */];
10909
+
10910
+ /* harmony default export */ __webpack_exports__["a"] = (MapCache);
10911
+
10912
+
10913
+ /***/ }),
10914
+ /* 210 */
10915
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10916
+
10917
+ "use strict";
10918
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__defineProperty_js__ = __webpack_require__(423);
10919
+
10920
+
10921
+ /**
10922
+ * The base implementation of `assignValue` and `assignMergeValue` without
10923
+ * value checks.
10924
+ *
10925
+ * @private
10926
+ * @param {Object} object The object to modify.
10927
+ * @param {string} key The key of the property to assign.
10928
+ * @param {*} value The value to assign.
10929
+ */
10930
+ function baseAssignValue(object, key, value) {
10931
+ if (key == '__proto__' && __WEBPACK_IMPORTED_MODULE_0__defineProperty_js__["a" /* default */]) {
10932
+ Object(__WEBPACK_IMPORTED_MODULE_0__defineProperty_js__["a" /* default */])(object, key, {
10933
+ 'configurable': true,
10934
+ 'enumerable': true,
10935
+ 'value': value,
10936
+ 'writable': true
10937
+ });
10938
+ } else {
10939
+ object[key] = value;
10940
+ }
10941
+ }
10942
+
10943
+ /* harmony default export */ __webpack_exports__["a"] = (baseAssignValue);
10944
+
10945
+
10946
+ /***/ }),
10947
+ /* 211 */
10948
+ /***/ (function(module, exports) {
10949
+
10950
+ module.exports = function(originalModule) {
10951
+ if(!originalModule.webpackPolyfill) {
10952
+ var module = Object.create(originalModule);
10953
+ // module.parent = undefined by default
10954
+ if(!module.children) module.children = [];
10955
+ Object.defineProperty(module, "loaded", {
10956
+ enumerable: true,
10957
+ get: function() {
10958
+ return module.l;
10959
+ }
10960
+ });
10961
+ Object.defineProperty(module, "id", {
10962
+ enumerable: true,
10963
+ get: function() {
10964
+ return module.i;
10965
  }
10966
+ });
10967
+ Object.defineProperty(module, "exports", {
10968
+ enumerable: true,
10969
+ });
10970
+ module.webpackPolyfill = 1;
10971
  }
10972
+ return module;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10973
  };