AdSense Plugin WP QUADS - Version 2.0.19

Version Description

(21th January 2020) = * New: New Group Insertion #297 * Fix: Exclude targeting is not working. #286 * Fix: Random Ads shortcode does not work. #278 * Fix: Rotator Ads shortcode does not work. #278 * Fix: Rotator Ads work flow. #274

Download this release

Release Info

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

Code changes from version 2.0.18.1 to 2.0.19

Files changed (1) hide show
  1. admin/assets/js/dist/adminscript.js +495 -27119
admin/assets/js/dist/adminscript.js CHANGED
@@ -1,131217 +1,131356 @@
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