Simple Sitemap – Automatically Generate a Responsive Sitemap - Version 3.5

Version Description

  • February 25, 2020 =

  • FIX: Nofollow links were always enabled. These are now OFF by default and can optionally be enabled if required.

Download this release

Release Info

Developer dgwyer
Plugin Icon Simple Sitemap – Automatically Generate a Responsive Sitemap
Version 3.5
Comparing to
See all releases

Code changes from version 3.4 to 3.5

assets/images/info.png DELETED
Binary file
block_assets/js/blocks.editor.js DELETED
@@ -1,12999 +0,0 @@
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 = 93);
64
- /******/ })
65
- /************************************************************************/
66
- /******/ ([
67
- /* 0 */
68
- /***/ (function(module, exports) {
69
-
70
- // shim for using process in browser
71
- var process = module.exports = {};
72
-
73
- // cached from whatever global is present so that test runners that stub it
74
- // don't break things. But we need to wrap it in a try catch in case it is
75
- // wrapped in strict mode code which doesn't define any globals. It's inside a
76
- // function because try/catches deoptimize in certain engines.
77
-
78
- var cachedSetTimeout;
79
- var cachedClearTimeout;
80
-
81
- function defaultSetTimout() {
82
- throw new Error('setTimeout has not been defined');
83
- }
84
- function defaultClearTimeout () {
85
- throw new Error('clearTimeout has not been defined');
86
- }
87
- (function () {
88
- try {
89
- if (typeof setTimeout === 'function') {
90
- cachedSetTimeout = setTimeout;
91
- } else {
92
- cachedSetTimeout = defaultSetTimout;
93
- }
94
- } catch (e) {
95
- cachedSetTimeout = defaultSetTimout;
96
- }
97
- try {
98
- if (typeof clearTimeout === 'function') {
99
- cachedClearTimeout = clearTimeout;
100
- } else {
101
- cachedClearTimeout = defaultClearTimeout;
102
- }
103
- } catch (e) {
104
- cachedClearTimeout = defaultClearTimeout;
105
- }
106
- } ())
107
- function runTimeout(fun) {
108
- if (cachedSetTimeout === setTimeout) {
109
- //normal enviroments in sane situations
110
- return setTimeout(fun, 0);
111
- }
112
- // if setTimeout wasn't available but was latter defined
113
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
114
- cachedSetTimeout = setTimeout;
115
- return setTimeout(fun, 0);
116
- }
117
- try {
118
- // when when somebody has screwed with setTimeout but no I.E. maddness
119
- return cachedSetTimeout(fun, 0);
120
- } catch(e){
121
- try {
122
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
123
- return cachedSetTimeout.call(null, fun, 0);
124
- } catch(e){
125
- // 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
126
- return cachedSetTimeout.call(this, fun, 0);
127
- }
128
- }
129
-
130
-
131
- }
132
- function runClearTimeout(marker) {
133
- if (cachedClearTimeout === clearTimeout) {
134
- //normal enviroments in sane situations
135
- return clearTimeout(marker);
136
- }
137
- // if clearTimeout wasn't available but was latter defined
138
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
139
- cachedClearTimeout = clearTimeout;
140
- return clearTimeout(marker);
141
- }
142
- try {
143
- // when when somebody has screwed with setTimeout but no I.E. maddness
144
- return cachedClearTimeout(marker);
145
- } catch (e){
146
- try {
147
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
148
- return cachedClearTimeout.call(null, marker);
149
- } catch (e){
150
- // 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.
151
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
152
- return cachedClearTimeout.call(this, marker);
153
- }
154
- }
155
-
156
-
157
-
158
- }
159
- var queue = [];
160
- var draining = false;
161
- var currentQueue;
162
- var queueIndex = -1;
163
-
164
- function cleanUpNextTick() {
165
- if (!draining || !currentQueue) {
166
- return;
167
- }
168
- draining = false;
169
- if (currentQueue.length) {
170
- queue = currentQueue.concat(queue);
171
- } else {
172
- queueIndex = -1;
173
- }
174
- if (queue.length) {
175
- drainQueue();
176
- }
177
- }
178
-
179
- function drainQueue() {
180
- if (draining) {
181
- return;
182
- }
183
- var timeout = runTimeout(cleanUpNextTick);
184
- draining = true;
185
-
186
- var len = queue.length;
187
- while(len) {
188
- currentQueue = queue;
189
- queue = [];
190
- while (++queueIndex < len) {
191
- if (currentQueue) {
192
- currentQueue[queueIndex].run();
193
- }
194
- }
195
- queueIndex = -1;
196
- len = queue.length;
197
- }
198
- currentQueue = null;
199
- draining = false;
200
- runClearTimeout(timeout);
201
- }
202
-
203
- process.nextTick = function (fun) {
204
- var args = new Array(arguments.length - 1);
205
- if (arguments.length > 1) {
206
- for (var i = 1; i < arguments.length; i++) {
207
- args[i - 1] = arguments[i];
208
- }
209
- }
210
- queue.push(new Item(fun, args));
211
- if (queue.length === 1 && !draining) {
212
- runTimeout(drainQueue);
213
- }
214
- };
215
-
216
- // v8 likes predictible objects
217
- function Item(fun, array) {
218
- this.fun = fun;
219
- this.array = array;
220
- }
221
- Item.prototype.run = function () {
222
- this.fun.apply(null, this.array);
223
- };
224
- process.title = 'browser';
225
- process.browser = true;
226
- process.env = {};
227
- process.argv = [];
228
- process.version = ''; // empty string to avoid regexp issues
229
- process.versions = {};
230
-
231
- function noop() {}
232
-
233
- process.on = noop;
234
- process.addListener = noop;
235
- process.once = noop;
236
- process.off = noop;
237
- process.removeListener = noop;
238
- process.removeAllListeners = noop;
239
- process.emit = noop;
240
- process.prependListener = noop;
241
- process.prependOnceListener = noop;
242
-
243
- process.listeners = function (name) { return [] }
244
-
245
- process.binding = function (name) {
246
- throw new Error('process.binding is not supported');
247
- };
248
-
249
- process.cwd = function () { return '/' };
250
- process.chdir = function (dir) {
251
- throw new Error('process.chdir is not supported');
252
- };
253
- process.umask = function() { return 0; };
254
-
255
-
256
- /***/ }),
257
- /* 1 */
258
- /***/ (function(module, exports) {
259
-
260
- var core = module.exports = { version: '2.6.5' };
261
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
262
-
263
-
264
- /***/ }),
265
- /* 2 */
266
- /***/ (function(module, exports) {
267
-
268
- module.exports = React;
269
-
270
- /***/ }),
271
- /* 3 */
272
- /***/ (function(module, exports, __webpack_require__) {
273
-
274
- /* WEBPACK VAR INJECTION */(function(process) {/**
275
- * Copyright (c) 2013-present, Facebook, Inc.
276
- *
277
- * This source code is licensed under the MIT license found in the
278
- * LICENSE file in the root directory of this source tree.
279
- */
280
-
281
- if (process.env.NODE_ENV !== 'production') {
282
- var ReactIs = __webpack_require__(18);
283
-
284
- // By explicitly using `prop-types` you are opting into new development behavior.
285
- // http://fb.me/prop-types-in-prod
286
- var throwOnDirectAccess = true;
287
- module.exports = __webpack_require__(42)(ReactIs.isElement, throwOnDirectAccess);
288
- } else {
289
- // By explicitly using `prop-types` you are opting into new production behavior.
290
- // http://fb.me/prop-types-in-prod
291
- module.exports = __webpack_require__(45)();
292
- }
293
-
294
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
295
-
296
- /***/ }),
297
- /* 4 */
298
- /***/ (function(module, exports, __webpack_require__) {
299
-
300
- var store = __webpack_require__(65)('wks');
301
- var uid = __webpack_require__(28);
302
- var Symbol = __webpack_require__(5).Symbol;
303
- var USE_SYMBOL = typeof Symbol == 'function';
304
-
305
- var $exports = module.exports = function (name) {
306
- return store[name] || (store[name] =
307
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
308
- };
309
-
310
- $exports.store = store;
311
-
312
-
313
- /***/ }),
314
- /* 5 */
315
- /***/ (function(module, exports) {
316
-
317
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
318
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
319
- ? window : typeof self != 'undefined' && self.Math == Math ? self
320
- // eslint-disable-next-line no-new-func
321
- : Function('return this')();
322
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
323
-
324
-
325
- /***/ }),
326
- /* 6 */
327
- /***/ (function(module, exports) {
328
-
329
- module.exports = ReactDOM;
330
-
331
- /***/ }),
332
- /* 7 */
333
- /***/ (function(module, exports, __webpack_require__) {
334
-
335
- "use strict";
336
- /**
337
- * Copyright (c) 2013-present, Facebook, Inc.
338
- *
339
- * This source code is licensed under the MIT license found in the
340
- * LICENSE file in the root directory of this source tree.
341
- */
342
-
343
-
344
-
345
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
346
-
347
- module.exports = ReactPropTypesSecret;
348
-
349
-
350
- /***/ }),
351
- /* 8 */
352
- /***/ (function(module, exports, __webpack_require__) {
353
-
354
- // to indexed object, toObject with fallback for non-array-like ES3 strings
355
- var IObject = __webpack_require__(104);
356
- var defined = __webpack_require__(60);
357
- module.exports = function (it) {
358
- return IObject(defined(it));
359
- };
360
-
361
-
362
- /***/ }),
363
- /* 9 */
364
- /***/ (function(module, exports, __webpack_require__) {
365
-
366
- var global = __webpack_require__(5);
367
- var core = __webpack_require__(1);
368
- var ctx = __webpack_require__(72);
369
- var hide = __webpack_require__(13);
370
- var has = __webpack_require__(12);
371
- var PROTOTYPE = 'prototype';
372
-
373
- var $export = function (type, name, source) {
374
- var IS_FORCED = type & $export.F;
375
- var IS_GLOBAL = type & $export.G;
376
- var IS_STATIC = type & $export.S;
377
- var IS_PROTO = type & $export.P;
378
- var IS_BIND = type & $export.B;
379
- var IS_WRAP = type & $export.W;
380
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
381
- var expProto = exports[PROTOTYPE];
382
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
383
- var key, own, out;
384
- if (IS_GLOBAL) source = name;
385
- for (key in source) {
386
- // contains in native
387
- own = !IS_FORCED && target && target[key] !== undefined;
388
- if (own && has(exports, key)) continue;
389
- // export native or passed
390
- out = own ? target[key] : source[key];
391
- // prevent global pollution for namespaces
392
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
393
- // bind timers to global for call from export context
394
- : IS_BIND && own ? ctx(out, global)
395
- // wrap global constructors for prevent change them in library
396
- : IS_WRAP && target[key] == out ? (function (C) {
397
- var F = function (a, b, c) {
398
- if (this instanceof C) {
399
- switch (arguments.length) {
400
- case 0: return new C();
401
- case 1: return new C(a);
402
- case 2: return new C(a, b);
403
- } return new C(a, b, c);
404
- } return C.apply(this, arguments);
405
- };
406
- F[PROTOTYPE] = C[PROTOTYPE];
407
- return F;
408
- // make static versions for prototype methods
409
- })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
410
- // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
411
- if (IS_PROTO) {
412
- (exports.virtual || (exports.virtual = {}))[key] = out;
413
- // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
414
- if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
415
- }
416
- }
417
- };
418
- // type bitmap
419
- $export.F = 1; // forced
420
- $export.G = 2; // global
421
- $export.S = 4; // static
422
- $export.P = 8; // proto
423
- $export.B = 16; // bind
424
- $export.W = 32; // wrap
425
- $export.U = 64; // safe
426
- $export.R = 128; // real proto method for `library`
427
- module.exports = $export;
428
-
429
-
430
- /***/ }),
431
- /* 10 */
432
- /***/ (function(module, exports, __webpack_require__) {
433
-
434
- var anObject = __webpack_require__(14);
435
- var IE8_DOM_DEFINE = __webpack_require__(73);
436
- var toPrimitive = __webpack_require__(61);
437
- var dP = Object.defineProperty;
438
-
439
- exports.f = __webpack_require__(11) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
440
- anObject(O);
441
- P = toPrimitive(P, true);
442
- anObject(Attributes);
443
- if (IE8_DOM_DEFINE) try {
444
- return dP(O, P, Attributes);
445
- } catch (e) { /* empty */ }
446
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
447
- if ('value' in Attributes) O[P] = Attributes.value;
448
- return O;
449
- };
450
-
451
-
452
- /***/ }),
453
- /* 11 */
454
- /***/ (function(module, exports, __webpack_require__) {
455
-
456
- // Thank's IE8 for his funny defineProperty
457
- module.exports = !__webpack_require__(24)(function () {
458
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
459
- });
460
-
461
-
462
- /***/ }),
463
- /* 12 */
464
- /***/ (function(module, exports) {
465
-
466
- var hasOwnProperty = {}.hasOwnProperty;
467
- module.exports = function (it, key) {
468
- return hasOwnProperty.call(it, key);
469
- };
470
-
471
-
472
- /***/ }),
473
- /* 13 */
474
- /***/ (function(module, exports, __webpack_require__) {
475
-
476
- var dP = __webpack_require__(10);
477
- var createDesc = __webpack_require__(26);
478
- module.exports = __webpack_require__(11) ? function (object, key, value) {
479
- return dP.f(object, key, createDesc(1, value));
480
- } : function (object, key, value) {
481
- object[key] = value;
482
- return object;
483
- };
484
-
485
-
486
- /***/ }),
487
- /* 14 */
488
- /***/ (function(module, exports, __webpack_require__) {
489
-
490
- var isObject = __webpack_require__(15);
491
- module.exports = function (it) {
492
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
493
- return it;
494
- };
495
-
496
-
497
- /***/ }),
498
- /* 15 */
499
- /***/ (function(module, exports) {
500
-
501
- module.exports = function (it) {
502
- return typeof it === 'object' ? it !== null : typeof it === 'function';
503
- };
504
-
505
-
506
- /***/ }),
507
- /* 16 */
508
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
509
-
510
- "use strict";
511
- /* unused harmony export SelectBase */
512
- /* unused harmony export Async */
513
- /* unused harmony export makeAsyncSelect */
514
- /* unused harmony export AsyncCreatable */
515
- /* unused harmony export Creatable */
516
- /* unused harmony export makeCreatableSelect */
517
- /* unused harmony export createFilter */
518
- /* unused harmony export makeAnimated */
519
- /* unused harmony export components */
520
- /* unused harmony export mergeStyles */
521
- /* unused harmony export defaultTheme */
522
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(2);
523
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
524
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_memoize_one__ = __webpack_require__(32);
525
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_emotion__ = __webpack_require__(33);
526
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom__ = __webpack_require__(6);
527
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_dom__);
528
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(3);
529
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
530
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_raf__ = __webpack_require__(46);
531
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_raf__);
532
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize__ = __webpack_require__(48);
533
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_input_autosize__);
534
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_transition_group__ = __webpack_require__(49);
535
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_transition_group___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_transition_group__);
536
-
537
-
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
- function _typeof(obj) {
546
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
547
- _typeof = function (obj) {
548
- return typeof obj;
549
- };
550
- } else {
551
- _typeof = function (obj) {
552
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
553
- };
554
- }
555
-
556
- return _typeof(obj);
557
- }
558
-
559
- function _classCallCheck(instance, Constructor) {
560
- if (!(instance instanceof Constructor)) {
561
- throw new TypeError("Cannot call a class as a function");
562
- }
563
- }
564
-
565
- function _defineProperties(target, props) {
566
- for (var i = 0; i < props.length; i++) {
567
- var descriptor = props[i];
568
- descriptor.enumerable = descriptor.enumerable || false;
569
- descriptor.configurable = true;
570
- if ("value" in descriptor) descriptor.writable = true;
571
- Object.defineProperty(target, descriptor.key, descriptor);
572
- }
573
- }
574
-
575
- function _createClass(Constructor, protoProps, staticProps) {
576
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
577
- if (staticProps) _defineProperties(Constructor, staticProps);
578
- return Constructor;
579
- }
580
-
581
- function _defineProperty(obj, key, value) {
582
- if (key in obj) {
583
- Object.defineProperty(obj, key, {
584
- value: value,
585
- enumerable: true,
586
- configurable: true,
587
- writable: true
588
- });
589
- } else {
590
- obj[key] = value;
591
- }
592
-
593
- return obj;
594
- }
595
-
596
- function _extends() {
597
- _extends = Object.assign || function (target) {
598
- for (var i = 1; i < arguments.length; i++) {
599
- var source = arguments[i];
600
-
601
- for (var key in source) {
602
- if (Object.prototype.hasOwnProperty.call(source, key)) {
603
- target[key] = source[key];
604
- }
605
- }
606
- }
607
-
608
- return target;
609
- };
610
-
611
- return _extends.apply(this, arguments);
612
- }
613
-
614
- function _objectSpread(target) {
615
- for (var i = 1; i < arguments.length; i++) {
616
- var source = arguments[i] != null ? arguments[i] : {};
617
- var ownKeys = Object.keys(source);
618
-
619
- if (typeof Object.getOwnPropertySymbols === 'function') {
620
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
621
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
622
- }));
623
- }
624
-
625
- ownKeys.forEach(function (key) {
626
- _defineProperty(target, key, source[key]);
627
- });
628
- }
629
-
630
- return target;
631
- }
632
-
633
- function _inherits(subClass, superClass) {
634
- if (typeof superClass !== "function" && superClass !== null) {
635
- throw new TypeError("Super expression must either be null or a function");
636
- }
637
-
638
- subClass.prototype = Object.create(superClass && superClass.prototype, {
639
- constructor: {
640
- value: subClass,
641
- writable: true,
642
- configurable: true
643
- }
644
- });
645
- if (superClass) _setPrototypeOf(subClass, superClass);
646
- }
647
-
648
- function _getPrototypeOf(o) {
649
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
650
- return o.__proto__ || Object.getPrototypeOf(o);
651
- };
652
- return _getPrototypeOf(o);
653
- }
654
-
655
- function _setPrototypeOf(o, p) {
656
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
657
- o.__proto__ = p;
658
- return o;
659
- };
660
-
661
- return _setPrototypeOf(o, p);
662
- }
663
-
664
- function _objectWithoutPropertiesLoose(source, excluded) {
665
- if (source == null) return {};
666
- var target = {};
667
- var sourceKeys = Object.keys(source);
668
- var key, i;
669
-
670
- for (i = 0; i < sourceKeys.length; i++) {
671
- key = sourceKeys[i];
672
- if (excluded.indexOf(key) >= 0) continue;
673
- target[key] = source[key];
674
- }
675
-
676
- return target;
677
- }
678
-
679
- function _objectWithoutProperties(source, excluded) {
680
- if (source == null) return {};
681
-
682
- var target = _objectWithoutPropertiesLoose(source, excluded);
683
-
684
- var key, i;
685
-
686
- if (Object.getOwnPropertySymbols) {
687
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
688
-
689
- for (i = 0; i < sourceSymbolKeys.length; i++) {
690
- key = sourceSymbolKeys[i];
691
- if (excluded.indexOf(key) >= 0) continue;
692
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
693
- target[key] = source[key];
694
- }
695
- }
696
-
697
- return target;
698
- }
699
-
700
- function _assertThisInitialized(self) {
701
- if (self === void 0) {
702
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
703
- }
704
-
705
- return self;
706
- }
707
-
708
- function _possibleConstructorReturn(self, call) {
709
- if (call && (typeof call === "object" || typeof call === "function")) {
710
- return call;
711
- }
712
-
713
- return _assertThisInitialized(self);
714
- }
715
-
716
- function _toConsumableArray(arr) {
717
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
718
- }
719
-
720
- function _arrayWithoutHoles(arr) {
721
- if (Array.isArray(arr)) {
722
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
723
-
724
- return arr2;
725
- }
726
- }
727
-
728
- function _iterableToArray(iter) {
729
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
730
- }
731
-
732
- function _nonIterableSpread() {
733
- throw new TypeError("Invalid attempt to spread non-iterable instance");
734
- }
735
-
736
- // ==============================
737
- // NO OP
738
- // ==============================
739
- var noop = function noop() {};
740
- // Class Name Prefixer
741
- // ==============================
742
-
743
- /**
744
- String representation of component state for styling with class names.
745
-
746
- Expects an array of strings OR a string/object pair:
747
- - className(['comp', 'comp-arg', 'comp-arg-2'])
748
- @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
749
- - className('comp', { some: true, state: false })
750
- @returns 'react-select__comp react-select__comp--some'
751
- */
752
-
753
- function applyPrefixToName(prefix, name) {
754
- if (!name) {
755
- return prefix;
756
- } else if (name[0] === '-') {
757
- return prefix + name;
758
- } else {
759
- return prefix + '__' + name;
760
- }
761
- }
762
-
763
- function classNames(prefix, cssKey, state, className) {
764
- var arr = [cssKey, className];
765
-
766
- if (state && prefix) {
767
- for (var key in state) {
768
- if (state.hasOwnProperty(key) && state[key]) {
769
- arr.push("".concat(applyPrefixToName(prefix, key)));
770
- }
771
- }
772
- }
773
-
774
- return arr.filter(function (i) {
775
- return i;
776
- }).map(function (i) {
777
- return String(i).trim();
778
- }).join(' ');
779
- } // ==============================
780
- // Clean Value
781
- // ==============================
782
-
783
- var cleanValue = function cleanValue(value) {
784
- if (Array.isArray(value)) return value.filter(Boolean);
785
- if (_typeof(value) === 'object' && value !== null) return [value];
786
- return [];
787
- }; // ==============================
788
- // Handle Input Change
789
- // ==============================
790
-
791
- function handleInputChange(inputValue, actionMeta, onInputChange) {
792
- if (onInputChange) {
793
- var newValue = onInputChange(inputValue, actionMeta);
794
- if (typeof newValue === 'string') return newValue;
795
- }
796
-
797
- return inputValue;
798
- } // ==============================
799
- // Scroll Helpers
800
- // ==============================
801
-
802
- function isDocumentElement(el) {
803
- return [document.documentElement, document.body, window].indexOf(el) > -1;
804
- } // Normalized Scroll Top
805
- // ------------------------------
806
-
807
- function getScrollTop(el) {
808
- if (isDocumentElement(el)) {
809
- return window.pageYOffset;
810
- }
811
-
812
- return el.scrollTop;
813
- }
814
- function scrollTo(el, top) {
815
- // with a scroll distance, we perform scroll on the element
816
- if (isDocumentElement(el)) {
817
- window.scrollTo(0, top);
818
- return;
819
- }
820
-
821
- el.scrollTop = top;
822
- } // Get Scroll Parent
823
- // ------------------------------
824
-
825
- function getScrollParent(element) {
826
- var style = getComputedStyle(element);
827
- var excludeStaticParent = style.position === 'absolute';
828
- var overflowRx = /(auto|scroll)/;
829
- var docEl = document.documentElement; // suck it, flow...
830
-
831
- if (style.position === 'fixed') return docEl;
832
-
833
- for (var parent = element; parent = parent.parentElement;) {
834
- style = getComputedStyle(parent);
835
-
836
- if (excludeStaticParent && style.position === 'static') {
837
- continue;
838
- }
839
-
840
- if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {
841
- return parent;
842
- }
843
- }
844
-
845
- return docEl;
846
- } // Animated Scroll To
847
- // ------------------------------
848
-
849
- /**
850
- @param t: time (elapsed)
851
- @param b: initial value
852
- @param c: amount of change
853
- @param d: duration
854
- */
855
-
856
- function easeOutCubic(t, b, c, d) {
857
- return c * ((t = t / d - 1) * t * t + 1) + b;
858
- }
859
-
860
- function animatedScrollTo(element, to) {
861
- var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200;
862
- var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop;
863
- var start = getScrollTop(element);
864
- var change = to - start;
865
- var increment = 10;
866
- var currentTime = 0;
867
-
868
- function animateScroll() {
869
- currentTime += increment;
870
- var val = easeOutCubic(currentTime, start, change, duration);
871
- scrollTo(element, val);
872
-
873
- if (currentTime < duration) {
874
- __WEBPACK_IMPORTED_MODULE_5_raf___default()(animateScroll);
875
- } else {
876
- callback(element);
877
- }
878
- }
879
-
880
- animateScroll();
881
- } // Scroll Into View
882
- // ------------------------------
883
-
884
- function scrollIntoView(menuEl, focusedEl) {
885
- var menuRect = menuEl.getBoundingClientRect();
886
- var focusedRect = focusedEl.getBoundingClientRect();
887
- var overScroll = focusedEl.offsetHeight / 3;
888
-
889
- if (focusedRect.bottom + overScroll > menuRect.bottom) {
890
- scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
891
- } else if (focusedRect.top - overScroll < menuRect.top) {
892
- scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
893
- }
894
- } // ==============================
895
- // Get bounding client object
896
- // ==============================
897
- // cannot get keys using array notation with DOMRect
898
-
899
- function getBoundingClientObj(element) {
900
- var rect = element.getBoundingClientRect();
901
- return {
902
- bottom: rect.bottom,
903
- height: rect.height,
904
- left: rect.left,
905
- right: rect.right,
906
- top: rect.top,
907
- width: rect.width
908
- };
909
- }
910
- // Touch Capability Detector
911
- // ==============================
912
-
913
- function isTouchCapable() {
914
- try {
915
- document.createEvent('TouchEvent');
916
- return true;
917
- } catch (e) {
918
- return false;
919
- }
920
- } // ==============================
921
- // Mobile Device Detector
922
- // ==============================
923
-
924
- function isMobileDevice() {
925
- try {
926
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
927
- } catch (e) {
928
- return false;
929
- }
930
- }
931
-
932
- function getMenuPlacement(_ref) {
933
- var maxHeight = _ref.maxHeight,
934
- menuEl = _ref.menuEl,
935
- minHeight = _ref.minHeight,
936
- placement = _ref.placement,
937
- shouldScroll = _ref.shouldScroll,
938
- isFixedPosition = _ref.isFixedPosition,
939
- theme = _ref.theme;
940
- var spacing = theme.spacing;
941
- var scrollParent = getScrollParent(menuEl);
942
- var defaultState = {
943
- placement: 'bottom',
944
- maxHeight: maxHeight
945
- }; // something went wrong, return default state
946
-
947
- if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when
948
- // the menu is rendered
949
-
950
- var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),
951
- scrollHeight = _scrollParent$getBoun.height;
952
-
953
- var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),
954
- menuBottom = _menuEl$getBoundingCl.bottom,
955
- menuHeight = _menuEl$getBoundingCl.height,
956
- menuTop = _menuEl$getBoundingCl.top;
957
-
958
- var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),
959
- containerTop = _menuEl$offsetParent$.top;
960
-
961
- var viewHeight = window.innerHeight;
962
- var scrollTop = getScrollTop(scrollParent);
963
- var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
964
- var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
965
- var viewSpaceAbove = containerTop - marginTop;
966
- var viewSpaceBelow = viewHeight - menuTop;
967
- var scrollSpaceAbove = viewSpaceAbove + scrollTop;
968
- var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
969
- var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
970
- var scrollUp = scrollTop + menuTop - marginTop;
971
- var scrollDuration = 160;
972
-
973
- switch (placement) {
974
- case 'auto':
975
- case 'bottom':
976
- // 1: the menu will fit, do nothing
977
- if (viewSpaceBelow >= menuHeight) {
978
- return {
979
- placement: 'bottom',
980
- maxHeight: maxHeight
981
- };
982
- } // 2: the menu will fit, if scrolled
983
-
984
-
985
- if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
986
- if (shouldScroll) {
987
- animatedScrollTo(scrollParent, scrollDown, scrollDuration);
988
- }
989
-
990
- return {
991
- placement: 'bottom',
992
- maxHeight: maxHeight
993
- };
994
- } // 3: the menu will fit, if constrained
995
-
996
-
997
- if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
998
- if (shouldScroll) {
999
- animatedScrollTo(scrollParent, scrollDown, scrollDuration);
1000
- } // we want to provide as much of the menu as possible to the user,
1001
- // so give them whatever is available below rather than the minHeight.
1002
-
1003
-
1004
- var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;
1005
- return {
1006
- placement: 'bottom',
1007
- maxHeight: constrainedHeight
1008
- };
1009
- } // 4. Forked beviour when there isn't enough space below
1010
- // AUTO: flip the menu, render above
1011
-
1012
-
1013
- if (placement === 'auto' || isFixedPosition) {
1014
- // may need to be constrained after flipping
1015
- var _constrainedHeight = maxHeight;
1016
- var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;
1017
-
1018
- if (spaceAbove >= minHeight) {
1019
- _constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight);
1020
- }
1021
-
1022
- return {
1023
- placement: 'top',
1024
- maxHeight: _constrainedHeight
1025
- };
1026
- } // BOTTOM: allow browser to increase scrollable area and immediately set scroll
1027
-
1028
-
1029
- if (placement === 'bottom') {
1030
- scrollTo(scrollParent, scrollDown);
1031
- return {
1032
- placement: 'bottom',
1033
- maxHeight: maxHeight
1034
- };
1035
- }
1036
-
1037
- break;
1038
-
1039
- case 'top':
1040
- // 1: the menu will fit, do nothing
1041
- if (viewSpaceAbove >= menuHeight) {
1042
- return {
1043
- placement: 'top',
1044
- maxHeight: maxHeight
1045
- };
1046
- } // 2: the menu will fit, if scrolled
1047
-
1048
-
1049
- if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {
1050
- if (shouldScroll) {
1051
- animatedScrollTo(scrollParent, scrollUp, scrollDuration);
1052
- }
1053
-
1054
- return {
1055
- placement: 'top',
1056
- maxHeight: maxHeight
1057
- };
1058
- } // 3: the menu will fit, if constrained
1059
-
1060
-
1061
- if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
1062
- var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user,
1063
- // so give them whatever is available below rather than the minHeight.
1064
-
1065
- if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
1066
- _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;
1067
- }
1068
-
1069
- if (shouldScroll) {
1070
- animatedScrollTo(scrollParent, scrollUp, scrollDuration);
1071
- }
1072
-
1073
- return {
1074
- placement: 'top',
1075
- maxHeight: _constrainedHeight2
1076
- };
1077
- } // 4. not enough space, the browser WILL NOT increase scrollable area when
1078
- // absolutely positioned element rendered above the viewport (only below).
1079
- // Flip the menu, render below
1080
-
1081
-
1082
- return {
1083
- placement: 'bottom',
1084
- maxHeight: maxHeight
1085
- };
1086
-
1087
- default:
1088
- throw new Error("Invalid placement provided \"".concat(placement, "\"."));
1089
- } // fulfil contract with flow: implicit return value of undefined
1090
-
1091
-
1092
- return defaultState;
1093
- } // Menu Component
1094
- // ------------------------------
1095
-
1096
- function alignToControl(placement) {
1097
- var placementToCSSProp = {
1098
- bottom: 'top',
1099
- top: 'bottom'
1100
- };
1101
- return placement ? placementToCSSProp[placement] : 'bottom';
1102
- }
1103
-
1104
- var coercePlacement = function coercePlacement(p) {
1105
- return p === 'auto' ? 'bottom' : p;
1106
- };
1107
-
1108
- var menuCSS = function menuCSS(_ref2) {
1109
- var _ref3;
1110
-
1111
- var placement = _ref2.placement,
1112
- _ref2$theme = _ref2.theme,
1113
- borderRadius = _ref2$theme.borderRadius,
1114
- spacing = _ref2$theme.spacing,
1115
- colors = _ref2$theme.colors;
1116
- return _ref3 = {
1117
- label: 'menu'
1118
- }, _defineProperty(_ref3, alignToControl(placement), '100%'), _defineProperty(_ref3, "backgroundColor", colors.neutral0), _defineProperty(_ref3, "borderRadius", borderRadius), _defineProperty(_ref3, "boxShadow", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), _defineProperty(_ref3, "marginBottom", spacing.menuGutter), _defineProperty(_ref3, "marginTop", spacing.menuGutter), _defineProperty(_ref3, "position", 'absolute'), _defineProperty(_ref3, "width", '100%'), _defineProperty(_ref3, "zIndex", 1), _ref3;
1119
- }; // NOTE: internal only
1120
-
1121
- var MenuPlacer =
1122
- /*#__PURE__*/
1123
- function (_Component) {
1124
- _inherits(MenuPlacer, _Component);
1125
-
1126
- function MenuPlacer() {
1127
- var _getPrototypeOf2;
1128
-
1129
- var _this;
1130
-
1131
- _classCallCheck(this, MenuPlacer);
1132
-
1133
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1134
- args[_key] = arguments[_key];
1135
- }
1136
-
1137
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MenuPlacer)).call.apply(_getPrototypeOf2, [this].concat(args)));
1138
-
1139
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
1140
- maxHeight: _this.props.maxMenuHeight,
1141
- placement: null
1142
- });
1143
-
1144
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getPlacement", function (ref) {
1145
- var _this$props = _this.props,
1146
- minMenuHeight = _this$props.minMenuHeight,
1147
- maxMenuHeight = _this$props.maxMenuHeight,
1148
- menuPlacement = _this$props.menuPlacement,
1149
- menuPosition = _this$props.menuPosition,
1150
- menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView,
1151
- theme = _this$props.theme;
1152
- var getPortalPlacement = _this.context.getPortalPlacement;
1153
- if (!ref) return; // DO NOT scroll if position is fixed
1154
-
1155
- var isFixedPosition = menuPosition === 'fixed';
1156
- var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;
1157
- var state = getMenuPlacement({
1158
- maxHeight: maxMenuHeight,
1159
- menuEl: ref,
1160
- minHeight: minMenuHeight,
1161
- placement: menuPlacement,
1162
- shouldScroll: shouldScroll,
1163
- isFixedPosition: isFixedPosition,
1164
- theme: theme
1165
- });
1166
- if (getPortalPlacement) getPortalPlacement(state);
1167
-
1168
- _this.setState(state);
1169
- });
1170
-
1171
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getUpdatedProps", function () {
1172
- var menuPlacement = _this.props.menuPlacement;
1173
- var placement = _this.state.placement || coercePlacement(menuPlacement);
1174
- return _objectSpread({}, _this.props, {
1175
- placement: placement,
1176
- maxHeight: _this.state.maxHeight
1177
- });
1178
- });
1179
-
1180
- return _this;
1181
- }
1182
-
1183
- _createClass(MenuPlacer, [{
1184
- key: "render",
1185
- value: function render() {
1186
- var children = this.props.children;
1187
- return children({
1188
- ref: this.getPlacement,
1189
- placerProps: this.getUpdatedProps()
1190
- });
1191
- }
1192
- }]);
1193
-
1194
- return MenuPlacer;
1195
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
1196
-
1197
- _defineProperty(MenuPlacer, "contextTypes", {
1198
- getPortalPlacement: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func
1199
- });
1200
-
1201
- var Menu = function Menu(props) {
1202
- var children = props.children,
1203
- className = props.className,
1204
- cx = props.cx,
1205
- getStyles = props.getStyles,
1206
- innerRef = props.innerRef,
1207
- innerProps = props.innerProps;
1208
- var cn = cx(
1209
- /*#__PURE__*/
1210
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('menu', props)), {
1211
- menu: true
1212
- }, className);
1213
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
1214
- className: cn
1215
- }, innerProps, {
1216
- ref: innerRef
1217
- }), children);
1218
- };
1219
- // Menu List
1220
- // ==============================
1221
-
1222
- var menuListCSS = function menuListCSS(_ref4) {
1223
- var maxHeight = _ref4.maxHeight,
1224
- baseUnit = _ref4.theme.spacing.baseUnit;
1225
- return {
1226
- maxHeight: maxHeight,
1227
- overflowY: 'auto',
1228
- paddingBottom: baseUnit,
1229
- paddingTop: baseUnit,
1230
- position: 'relative',
1231
- // required for offset[Height, Top] > keyboard scroll
1232
- WebkitOverflowScrolling: 'touch'
1233
- };
1234
- };
1235
- var MenuList = function MenuList(props) {
1236
- var children = props.children,
1237
- className = props.className,
1238
- cx = props.cx,
1239
- getStyles = props.getStyles,
1240
- isMulti = props.isMulti,
1241
- innerRef = props.innerRef;
1242
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
1243
- className: cx(
1244
- /*#__PURE__*/
1245
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('menuList', props)), {
1246
- 'menu-list': true,
1247
- 'menu-list--is-multi': isMulti
1248
- }, className),
1249
- ref: innerRef
1250
- }, children);
1251
- }; // ==============================
1252
- // Menu Notices
1253
- // ==============================
1254
-
1255
- var noticeCSS = function noticeCSS(_ref5) {
1256
- var _ref5$theme = _ref5.theme,
1257
- baseUnit = _ref5$theme.spacing.baseUnit,
1258
- colors = _ref5$theme.colors;
1259
- return {
1260
- color: colors.neutral40,
1261
- padding: "".concat(baseUnit * 2, "px ").concat(baseUnit * 3, "px"),
1262
- textAlign: 'center'
1263
- };
1264
- };
1265
-
1266
- var noOptionsMessageCSS = noticeCSS;
1267
- var loadingMessageCSS = noticeCSS;
1268
- var NoOptionsMessage = function NoOptionsMessage(props) {
1269
- var children = props.children,
1270
- className = props.className,
1271
- cx = props.cx,
1272
- getStyles = props.getStyles,
1273
- innerProps = props.innerProps;
1274
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
1275
- className: cx(
1276
- /*#__PURE__*/
1277
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('noOptionsMessage', props)), {
1278
- 'menu-notice': true,
1279
- 'menu-notice--no-options': true
1280
- }, className)
1281
- }, innerProps), children);
1282
- };
1283
- NoOptionsMessage.defaultProps = {
1284
- children: 'No options'
1285
- };
1286
- var LoadingMessage = function LoadingMessage(props) {
1287
- var children = props.children,
1288
- className = props.className,
1289
- cx = props.cx,
1290
- getStyles = props.getStyles,
1291
- innerProps = props.innerProps;
1292
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
1293
- className: cx(
1294
- /*#__PURE__*/
1295
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('loadingMessage', props)), {
1296
- 'menu-notice': true,
1297
- 'menu-notice--loading': true
1298
- }, className)
1299
- }, innerProps), children);
1300
- };
1301
- LoadingMessage.defaultProps = {
1302
- children: 'Loading...'
1303
- }; // ==============================
1304
- // Menu Portal
1305
- // ==============================
1306
-
1307
- var menuPortalCSS = function menuPortalCSS(_ref6) {
1308
- var rect = _ref6.rect,
1309
- offset = _ref6.offset,
1310
- position = _ref6.position;
1311
- return {
1312
- left: rect.left,
1313
- position: position,
1314
- top: offset,
1315
- width: rect.width,
1316
- zIndex: 1
1317
- };
1318
- };
1319
- var MenuPortal =
1320
- /*#__PURE__*/
1321
- function (_Component2) {
1322
- _inherits(MenuPortal, _Component2);
1323
-
1324
- function MenuPortal() {
1325
- var _getPrototypeOf3;
1326
-
1327
- var _this2;
1328
-
1329
- _classCallCheck(this, MenuPortal);
1330
-
1331
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1332
- args[_key2] = arguments[_key2];
1333
- }
1334
-
1335
- _this2 = _possibleConstructorReturn(this, (_getPrototypeOf3 = _getPrototypeOf(MenuPortal)).call.apply(_getPrototypeOf3, [this].concat(args)));
1336
-
1337
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this2)), "state", {
1338
- placement: null
1339
- });
1340
-
1341
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this2)), "getPortalPlacement", function (_ref7) {
1342
- var placement = _ref7.placement;
1343
- var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed
1344
-
1345
- if (placement !== initialPlacement) {
1346
- _this2.setState({
1347
- placement: placement
1348
- });
1349
- }
1350
- });
1351
-
1352
- return _this2;
1353
- }
1354
-
1355
- _createClass(MenuPortal, [{
1356
- key: "getChildContext",
1357
- value: function getChildContext() {
1358
- return {
1359
- getPortalPlacement: this.getPortalPlacement
1360
- };
1361
- } // callback for occassions where the menu must "flip"
1362
-
1363
- }, {
1364
- key: "render",
1365
- value: function render() {
1366
- var _this$props2 = this.props,
1367
- appendTo = _this$props2.appendTo,
1368
- children = _this$props2.children,
1369
- controlElement = _this$props2.controlElement,
1370
- menuPlacement = _this$props2.menuPlacement,
1371
- position = _this$props2.menuPosition,
1372
- getStyles = _this$props2.getStyles;
1373
- var isFixed = position === 'fixed'; // bail early if required elements aren't present
1374
-
1375
- if (!appendTo && !isFixed || !controlElement) {
1376
- return null;
1377
- }
1378
-
1379
- var placement = this.state.placement || coercePlacement(menuPlacement);
1380
- var rect = getBoundingClientObj(controlElement);
1381
- var scrollDistance = isFixed ? 0 : window.pageYOffset;
1382
- var offset = rect[placement] + scrollDistance;
1383
- var state = {
1384
- offset: offset,
1385
- position: position,
1386
- rect: rect
1387
- }; // same wrapper element whether fixed or portalled
1388
-
1389
- var menuWrapper = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
1390
- className:
1391
- /*#__PURE__*/
1392
-
1393
- /*#__PURE__*/
1394
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('menuPortal', state))
1395
- }, children);
1396
- return appendTo ? Object(__WEBPACK_IMPORTED_MODULE_3_react_dom__["createPortal"])(menuWrapper, appendTo) : menuWrapper;
1397
- }
1398
- }]);
1399
-
1400
- return MenuPortal;
1401
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
1402
-
1403
- _defineProperty(MenuPortal, "childContextTypes", {
1404
- getPortalPlacement: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func
1405
- });
1406
-
1407
- var isArray = Array.isArray;
1408
- var keyList = Object.keys;
1409
- var hasProp = Object.prototype.hasOwnProperty;
1410
-
1411
- function equal(a, b) {
1412
- // fast-deep-equal index.js 2.0.1
1413
- if (a === b) return true;
1414
-
1415
- if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
1416
- var arrA = isArray(a),
1417
- arrB = isArray(b),
1418
- i,
1419
- length,
1420
- key;
1421
-
1422
- if (arrA && arrB) {
1423
- length = a.length;
1424
- if (length != b.length) return false;
1425
-
1426
- for (i = length; i-- !== 0;) {
1427
- if (!equal(a[i], b[i])) return false;
1428
- }
1429
-
1430
- return true;
1431
- }
1432
-
1433
- if (arrA != arrB) return false;
1434
- var dateA = a instanceof Date,
1435
- dateB = b instanceof Date;
1436
- if (dateA != dateB) return false;
1437
- if (dateA && dateB) return a.getTime() == b.getTime();
1438
- var regexpA = a instanceof RegExp,
1439
- regexpB = b instanceof RegExp;
1440
- if (regexpA != regexpB) return false;
1441
- if (regexpA && regexpB) return a.toString() == b.toString();
1442
- var keys = keyList(a);
1443
- length = keys.length;
1444
-
1445
- if (length !== keyList(b).length) {
1446
- return false;
1447
- }
1448
-
1449
- for (i = length; i-- !== 0;) {
1450
- if (!hasProp.call(b, keys[i])) return false;
1451
- } // end fast-deep-equal
1452
- // Custom handling for React
1453
-
1454
-
1455
- for (i = length; i-- !== 0;) {
1456
- key = keys[i];
1457
-
1458
- if (key === '_owner' && a.$$typeof) {
1459
- // React-specific: avoid traversing React elements' _owner.
1460
- // _owner contains circular references
1461
- // and is not needed when comparing the actual elements (and not their owners)
1462
- // .$$typeof and ._store on just reasonable markers of a react element
1463
- continue;
1464
- } else {
1465
- // all other properties should be traversed as usual
1466
- if (!equal(a[key], b[key])) return false;
1467
- }
1468
- } // fast-deep-equal index.js 2.0.1
1469
-
1470
-
1471
- return true;
1472
- }
1473
-
1474
- return a !== a && b !== b;
1475
- } // end fast-deep-equal
1476
-
1477
-
1478
- function exportedEqual(a, b) {
1479
- try {
1480
- return equal(a, b);
1481
- } catch (error) {
1482
- if (error.message && error.message.match(/stack|recursion/i)) {
1483
- // warn on circular references, don't crash
1484
- // browsers give this different errors name and messages:
1485
- // chrome/safari: "RangeError", "Maximum call stack size exceeded"
1486
- // firefox: "InternalError", too much recursion"
1487
- // edge: "Error", "Out of stack space"
1488
- console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
1489
- return false;
1490
- } // some other error. we should definitely know about these
1491
-
1492
-
1493
- throw error;
1494
- }
1495
- }
1496
-
1497
- var diacritics = [{
1498
- base: 'A',
1499
- letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g
1500
- }, {
1501
- base: 'AA',
1502
- letters: /[\uA732]/g
1503
- }, {
1504
- base: 'AE',
1505
- letters: /[\u00C6\u01FC\u01E2]/g
1506
- }, {
1507
- base: 'AO',
1508
- letters: /[\uA734]/g
1509
- }, {
1510
- base: 'AU',
1511
- letters: /[\uA736]/g
1512
- }, {
1513
- base: 'AV',
1514
- letters: /[\uA738\uA73A]/g
1515
- }, {
1516
- base: 'AY',
1517
- letters: /[\uA73C]/g
1518
- }, {
1519
- base: 'B',
1520
- letters: /[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g
1521
- }, {
1522
- base: 'C',
1523
- letters: /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g
1524
- }, {
1525
- base: 'D',
1526
- letters: /[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g
1527
- }, {
1528
- base: 'DZ',
1529
- letters: /[\u01F1\u01C4]/g
1530
- }, {
1531
- base: 'Dz',
1532
- letters: /[\u01F2\u01C5]/g
1533
- }, {
1534
- base: 'E',
1535
- letters: /[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g
1536
- }, {
1537
- base: 'F',
1538
- letters: /[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g
1539
- }, {
1540
- base: 'G',
1541
- letters: /[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g
1542
- }, {
1543
- base: 'H',
1544
- letters: /[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g
1545
- }, {
1546
- base: 'I',
1547
- letters: /[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g
1548
- }, {
1549
- base: 'J',
1550
- letters: /[\u004A\u24BF\uFF2A\u0134\u0248]/g
1551
- }, {
1552
- base: 'K',
1553
- letters: /[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g
1554
- }, {
1555
- base: 'L',
1556
- letters: /[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g
1557
- }, {
1558
- base: 'LJ',
1559
- letters: /[\u01C7]/g
1560
- }, {
1561
- base: 'Lj',
1562
- letters: /[\u01C8]/g
1563
- }, {
1564
- base: 'M',
1565
- letters: /[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g
1566
- }, {
1567
- base: 'N',
1568
- letters: /[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g
1569
- }, {
1570
- base: 'NJ',
1571
- letters: /[\u01CA]/g
1572
- }, {
1573
- base: 'Nj',
1574
- letters: /[\u01CB]/g
1575
- }, {
1576
- base: 'O',
1577
- letters: /[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g
1578
- }, {
1579
- base: 'OI',
1580
- letters: /[\u01A2]/g
1581
- }, {
1582
- base: 'OO',
1583
- letters: /[\uA74E]/g
1584
- }, {
1585
- base: 'OU',
1586
- letters: /[\u0222]/g
1587
- }, {
1588
- base: 'P',
1589
- letters: /[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g
1590
- }, {
1591
- base: 'Q',
1592
- letters: /[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g
1593
- }, {
1594
- base: 'R',
1595
- letters: /[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g
1596
- }, {
1597
- base: 'S',
1598
- letters: /[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g
1599
- }, {
1600
- base: 'T',
1601
- letters: /[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g
1602
- }, {
1603
- base: 'TZ',
1604
- letters: /[\uA728]/g
1605
- }, {
1606
- base: 'U',
1607
- letters: /[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g
1608
- }, {
1609
- base: 'V',
1610
- letters: /[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g
1611
- }, {
1612
- base: 'VY',
1613
- letters: /[\uA760]/g
1614
- }, {
1615
- base: 'W',
1616
- letters: /[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g
1617
- }, {
1618
- base: 'X',
1619
- letters: /[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g
1620
- }, {
1621
- base: 'Y',
1622
- letters: /[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g
1623
- }, {
1624
- base: 'Z',
1625
- letters: /[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g
1626
- }, {
1627
- base: 'a',
1628
- letters: /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g
1629
- }, {
1630
- base: 'aa',
1631
- letters: /[\uA733]/g
1632
- }, {
1633
- base: 'ae',
1634
- letters: /[\u00E6\u01FD\u01E3]/g
1635
- }, {
1636
- base: 'ao',
1637
- letters: /[\uA735]/g
1638
- }, {
1639
- base: 'au',
1640
- letters: /[\uA737]/g
1641
- }, {
1642
- base: 'av',
1643
- letters: /[\uA739\uA73B]/g
1644
- }, {
1645
- base: 'ay',
1646
- letters: /[\uA73D]/g
1647
- }, {
1648
- base: 'b',
1649
- letters: /[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g
1650
- }, {
1651
- base: 'c',
1652
- letters: /[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g
1653
- }, {
1654
- base: 'd',
1655
- letters: /[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g
1656
- }, {
1657
- base: 'dz',
1658
- letters: /[\u01F3\u01C6]/g
1659
- }, {
1660
- base: 'e',
1661
- letters: /[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g
1662
- }, {
1663
- base: 'f',
1664
- letters: /[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g
1665
- }, {
1666
- base: 'g',
1667
- letters: /[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g
1668
- }, {
1669
- base: 'h',
1670
- letters: /[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g
1671
- }, {
1672
- base: 'hv',
1673
- letters: /[\u0195]/g
1674
- }, {
1675
- base: 'i',
1676
- letters: /[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g
1677
- }, {
1678
- base: 'j',
1679
- letters: /[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g
1680
- }, {
1681
- base: 'k',
1682
- letters: /[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g
1683
- }, {
1684
- base: 'l',
1685
- letters: /[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g
1686
- }, {
1687
- base: 'lj',
1688
- letters: /[\u01C9]/g
1689
- }, {
1690
- base: 'm',
1691
- letters: /[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g
1692
- }, {
1693
- base: 'n',
1694
- letters: /[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g
1695
- }, {
1696
- base: 'nj',
1697
- letters: /[\u01CC]/g
1698
- }, {
1699
- base: 'o',
1700
- letters: /[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g
1701
- }, {
1702
- base: 'oi',
1703
- letters: /[\u01A3]/g
1704
- }, {
1705
- base: 'ou',
1706
- letters: /[\u0223]/g
1707
- }, {
1708
- base: 'oo',
1709
- letters: /[\uA74F]/g
1710
- }, {
1711
- base: 'p',
1712
- letters: /[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g
1713
- }, {
1714
- base: 'q',
1715
- letters: /[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g
1716
- }, {
1717
- base: 'r',
1718
- letters: /[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g
1719
- }, {
1720
- base: 's',
1721
- letters: /[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g
1722
- }, {
1723
- base: 't',
1724
- letters: /[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g
1725
- }, {
1726
- base: 'tz',
1727
- letters: /[\uA729]/g
1728
- }, {
1729
- base: 'u',
1730
- letters: /[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g
1731
- }, {
1732
- base: 'v',
1733
- letters: /[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g
1734
- }, {
1735
- base: 'vy',
1736
- letters: /[\uA761]/g
1737
- }, {
1738
- base: 'w',
1739
- letters: /[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g
1740
- }, {
1741
- base: 'x',
1742
- letters: /[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g
1743
- }, {
1744
- base: 'y',
1745
- letters: /[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g
1746
- }, {
1747
- base: 'z',
1748
- letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g
1749
- }];
1750
- var stripDiacritics = function stripDiacritics(str) {
1751
- for (var i = 0; i < diacritics.length; i++) {
1752
- str = str.replace(diacritics[i].letters, diacritics[i].base);
1753
- }
1754
-
1755
- return str;
1756
- };
1757
-
1758
- var trimString = function trimString(str) {
1759
- return str.replace(/^\s+|\s+$/g, '');
1760
- };
1761
-
1762
- var defaultStringify = function defaultStringify(option) {
1763
- return "".concat(option.label, " ").concat(option.value);
1764
- };
1765
-
1766
- var createFilter = function createFilter(config) {
1767
- return function (option, rawInput) {
1768
- var _ignoreCase$ignoreAcc = _objectSpread({
1769
- ignoreCase: true,
1770
- ignoreAccents: true,
1771
- stringify: defaultStringify,
1772
- trim: true,
1773
- matchFrom: 'any'
1774
- }, config),
1775
- ignoreCase = _ignoreCase$ignoreAcc.ignoreCase,
1776
- ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents,
1777
- stringify = _ignoreCase$ignoreAcc.stringify,
1778
- trim = _ignoreCase$ignoreAcc.trim,
1779
- matchFrom = _ignoreCase$ignoreAcc.matchFrom;
1780
-
1781
- var input = trim ? trimString(rawInput) : rawInput;
1782
- var candidate = trim ? trimString(stringify(option)) : stringify(option);
1783
-
1784
- if (ignoreCase) {
1785
- input = input.toLowerCase();
1786
- candidate = candidate.toLowerCase();
1787
- }
1788
-
1789
- if (ignoreAccents) {
1790
- input = stripDiacritics(input);
1791
- candidate = stripDiacritics(candidate);
1792
- }
1793
-
1794
- return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1;
1795
- };
1796
- };
1797
-
1798
- var A11yText = function A11yText(props) {
1799
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", _extends({
1800
- className:
1801
- /*#__PURE__*/
1802
-
1803
- /*#__PURE__*/
1804
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])({
1805
- label: 'a11yText',
1806
- zIndex: 9999,
1807
- border: 0,
1808
- clip: 'rect(1px, 1px, 1px, 1px)',
1809
- height: 1,
1810
- width: 1,
1811
- position: 'absolute',
1812
- overflow: 'hidden',
1813
- padding: 0,
1814
- whiteSpace: 'nowrap',
1815
- backgroundColor: 'red',
1816
- color: 'blue'
1817
- })
1818
- }, props));
1819
- };
1820
-
1821
- var DummyInput =
1822
- /*#__PURE__*/
1823
- function (_Component) {
1824
- _inherits(DummyInput, _Component);
1825
-
1826
- function DummyInput() {
1827
- _classCallCheck(this, DummyInput);
1828
-
1829
- return _possibleConstructorReturn(this, _getPrototypeOf(DummyInput).apply(this, arguments));
1830
- }
1831
-
1832
- _createClass(DummyInput, [{
1833
- key: "render",
1834
- value: function render() {
1835
- var _this$props = this.props,
1836
- inProp = _this$props.in,
1837
- out = _this$props.out,
1838
- onExited = _this$props.onExited,
1839
- appear = _this$props.appear,
1840
- enter = _this$props.enter,
1841
- exit = _this$props.exit,
1842
- innerRef = _this$props.innerRef,
1843
- emotion = _this$props.emotion,
1844
- props = _objectWithoutProperties(_this$props, ["in", "out", "onExited", "appear", "enter", "exit", "innerRef", "emotion"]);
1845
-
1846
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", _extends({
1847
- ref: innerRef
1848
- }, props, {
1849
- className:
1850
- /*#__PURE__*/
1851
-
1852
- /*#__PURE__*/
1853
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])({
1854
- label: 'dummyInput',
1855
- // get rid of any default styles
1856
- background: 0,
1857
- border: 0,
1858
- fontSize: 'inherit',
1859
- outline: 0,
1860
- padding: 0,
1861
- // important! without `width` browsers won't allow focus
1862
- width: 1,
1863
- // remove cursor on desktop
1864
- color: 'transparent',
1865
- // remove cursor on mobile whilst maintaining "scroll into view" behaviour
1866
- left: -100,
1867
- opacity: 0,
1868
- position: 'relative',
1869
- transform: 'scale(0)'
1870
- })
1871
- }));
1872
- }
1873
- }]);
1874
-
1875
- return DummyInput;
1876
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
1877
-
1878
- var NodeResolver =
1879
- /*#__PURE__*/
1880
- function (_Component) {
1881
- _inherits(NodeResolver, _Component);
1882
-
1883
- function NodeResolver() {
1884
- _classCallCheck(this, NodeResolver);
1885
-
1886
- return _possibleConstructorReturn(this, _getPrototypeOf(NodeResolver).apply(this, arguments));
1887
- }
1888
-
1889
- _createClass(NodeResolver, [{
1890
- key: "componentDidMount",
1891
- value: function componentDidMount() {
1892
- this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_3_react_dom__["findDOMNode"])(this));
1893
- }
1894
- }, {
1895
- key: "componentWillUnmount",
1896
- value: function componentWillUnmount() {
1897
- this.props.innerRef(null);
1898
- }
1899
- }, {
1900
- key: "render",
1901
- value: function render() {
1902
- return this.props.children;
1903
- }
1904
- }]);
1905
-
1906
- return NodeResolver;
1907
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
1908
-
1909
- var STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'];
1910
- var LOCK_STYLES = {
1911
- boxSizing: 'border-box',
1912
- // account for possible declaration `width: 100%;` on body
1913
- overflow: 'hidden',
1914
- position: 'relative',
1915
- height: '100%'
1916
- };
1917
-
1918
- function preventTouchMove(e) {
1919
- e.preventDefault();
1920
- }
1921
- function allowTouchMove(e) {
1922
- e.stopPropagation();
1923
- }
1924
- function preventInertiaScroll() {
1925
- var top = this.scrollTop;
1926
- var totalScroll = this.scrollHeight;
1927
- var currentScroll = top + this.offsetHeight;
1928
-
1929
- if (top === 0) {
1930
- this.scrollTop = 1;
1931
- } else if (currentScroll === totalScroll) {
1932
- this.scrollTop = top - 1;
1933
- }
1934
- } // `ontouchstart` check works on most browsers
1935
- // `maxTouchPoints` works on IE10/11 and Surface
1936
-
1937
- function isTouchDevice() {
1938
- return 'ontouchstart' in window || navigator.maxTouchPoints;
1939
- }
1940
-
1941
- var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
1942
- var activeScrollLocks = 0;
1943
-
1944
- var ScrollLock =
1945
- /*#__PURE__*/
1946
- function (_Component) {
1947
- _inherits(ScrollLock, _Component);
1948
-
1949
- function ScrollLock() {
1950
- var _getPrototypeOf2;
1951
-
1952
- var _this;
1953
-
1954
- _classCallCheck(this, ScrollLock);
1955
-
1956
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1957
- args[_key] = arguments[_key];
1958
- }
1959
-
1960
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollLock)).call.apply(_getPrototypeOf2, [this].concat(args)));
1961
-
1962
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "originalStyles", {});
1963
-
1964
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "listenerOptions", {
1965
- capture: false,
1966
- passive: false
1967
- });
1968
-
1969
- return _this;
1970
- }
1971
-
1972
- _createClass(ScrollLock, [{
1973
- key: "componentDidMount",
1974
- value: function componentDidMount() {
1975
- var _this2 = this;
1976
-
1977
- if (!canUseDOM) return;
1978
- var _this$props = this.props,
1979
- accountForScrollbars = _this$props.accountForScrollbars,
1980
- touchScrollTarget = _this$props.touchScrollTarget;
1981
- var target = document.body;
1982
- var targetStyle = target && target.style;
1983
-
1984
- if (accountForScrollbars) {
1985
- // store any styles already applied to the body
1986
- STYLE_KEYS.forEach(function (key) {
1987
- var val = targetStyle && targetStyle[key];
1988
- _this2.originalStyles[key] = val;
1989
- });
1990
- } // apply the lock styles and padding if this is the first scroll lock
1991
-
1992
-
1993
- if (accountForScrollbars && activeScrollLocks < 1) {
1994
- var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0;
1995
- var clientWidth = document.body ? document.body.clientWidth : 0;
1996
- var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0;
1997
- Object.keys(LOCK_STYLES).forEach(function (key) {
1998
- var val = LOCK_STYLES[key];
1999
-
2000
- if (targetStyle) {
2001
- targetStyle[key] = val;
2002
- }
2003
- });
2004
-
2005
- if (targetStyle) {
2006
- targetStyle.paddingRight = "".concat(adjustedPadding, "px");
2007
- }
2008
- } // account for touch devices
2009
-
2010
-
2011
- if (target && isTouchDevice()) {
2012
- // Mobile Safari ignores { overflow: hidden } declaration on the body.
2013
- target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target
2014
-
2015
- if (touchScrollTarget) {
2016
- touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
2017
- touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions);
2018
- }
2019
- } // increment active scroll locks
2020
-
2021
-
2022
- activeScrollLocks += 1;
2023
- }
2024
- }, {
2025
- key: "componentWillUnmount",
2026
- value: function componentWillUnmount() {
2027
- var _this3 = this;
2028
-
2029
- if (!canUseDOM) return;
2030
- var _this$props2 = this.props,
2031
- accountForScrollbars = _this$props2.accountForScrollbars,
2032
- touchScrollTarget = _this$props2.touchScrollTarget;
2033
- var target = document.body;
2034
- var targetStyle = target && target.style; // safely decrement active scroll locks
2035
-
2036
- activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any
2037
-
2038
- if (accountForScrollbars && activeScrollLocks < 1) {
2039
- STYLE_KEYS.forEach(function (key) {
2040
- var val = _this3.originalStyles[key];
2041
-
2042
- if (targetStyle) {
2043
- targetStyle[key] = val;
2044
- }
2045
- });
2046
- } // remove touch listeners
2047
-
2048
-
2049
- if (target && isTouchDevice()) {
2050
- target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions);
2051
-
2052
- if (touchScrollTarget) {
2053
- touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
2054
- touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions);
2055
- }
2056
- }
2057
- }
2058
- }, {
2059
- key: "render",
2060
- value: function render() {
2061
- return null;
2062
- }
2063
- }]);
2064
-
2065
- return ScrollLock;
2066
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
2067
-
2068
- _defineProperty(ScrollLock, "defaultProps", {
2069
- accountForScrollbars: true
2070
- });
2071
-
2072
- // NOTE:
2073
- // We shouldn't need this after updating to React v16.3.0, which introduces:
2074
- // - createRef() https://reactjs.org/docs/react-api.html#reactcreateref
2075
- // - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref
2076
- var ScrollBlock =
2077
- /*#__PURE__*/
2078
- function (_PureComponent) {
2079
- _inherits(ScrollBlock, _PureComponent);
2080
-
2081
- function ScrollBlock() {
2082
- var _getPrototypeOf2;
2083
-
2084
- var _this;
2085
-
2086
- _classCallCheck(this, ScrollBlock);
2087
-
2088
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2089
- args[_key] = arguments[_key];
2090
- }
2091
-
2092
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollBlock)).call.apply(_getPrototypeOf2, [this].concat(args)));
2093
-
2094
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
2095
- touchScrollTarget: null
2096
- });
2097
-
2098
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getScrollTarget", function (ref) {
2099
- if (ref === _this.state.touchScrollTarget) return;
2100
-
2101
- _this.setState({
2102
- touchScrollTarget: ref
2103
- });
2104
- });
2105
-
2106
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blurSelectInput", function () {
2107
- if (document.activeElement) {
2108
- document.activeElement.blur();
2109
- }
2110
- });
2111
-
2112
- return _this;
2113
- }
2114
-
2115
- _createClass(ScrollBlock, [{
2116
- key: "render",
2117
- value: function render() {
2118
- var _this$props = this.props,
2119
- children = _this$props.children,
2120
- isEnabled = _this$props.isEnabled;
2121
- var touchScrollTarget = this.state.touchScrollTarget; // bail early if not enabled
2122
-
2123
- if (!isEnabled) return children;
2124
- /*
2125
- * Div
2126
- * ------------------------------
2127
- * blocks scrolling on non-body elements behind the menu
2128
- * NodeResolver
2129
- * ------------------------------
2130
- * we need a reference to the scrollable element to "unlock" scroll on
2131
- * mobile devices
2132
- * ScrollLock
2133
- * ------------------------------
2134
- * actually does the scroll locking
2135
- */
2136
-
2137
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", null, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
2138
- onClick: this.blurSelectInput,
2139
- className:
2140
- /*#__PURE__*/
2141
-
2142
- /*#__PURE__*/
2143
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])({
2144
- position: 'fixed',
2145
- left: 0,
2146
- bottom: 0,
2147
- right: 0,
2148
- top: 0
2149
- })
2150
- }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NodeResolver, {
2151
- innerRef: this.getScrollTarget
2152
- }, children), touchScrollTarget ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollLock, {
2153
- touchScrollTarget: touchScrollTarget
2154
- }) : null);
2155
- }
2156
- }]);
2157
-
2158
- return ScrollBlock;
2159
- }(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"]);
2160
-
2161
- var ScrollCaptor =
2162
- /*#__PURE__*/
2163
- function (_Component) {
2164
- _inherits(ScrollCaptor, _Component);
2165
-
2166
- function ScrollCaptor() {
2167
- var _getPrototypeOf2;
2168
-
2169
- var _this;
2170
-
2171
- _classCallCheck(this, ScrollCaptor);
2172
-
2173
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2174
- args[_key] = arguments[_key];
2175
- }
2176
-
2177
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollCaptor)).call.apply(_getPrototypeOf2, [this].concat(args)));
2178
-
2179
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isBottom", false);
2180
-
2181
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isTop", false);
2182
-
2183
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "scrollTarget", void 0);
2184
-
2185
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "touchStart", void 0);
2186
-
2187
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cancelScroll", function (event) {
2188
- event.preventDefault();
2189
- event.stopPropagation();
2190
- });
2191
-
2192
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleEventDelta", function (event, delta) {
2193
- var _this$props = _this.props,
2194
- onBottomArrive = _this$props.onBottomArrive,
2195
- onBottomLeave = _this$props.onBottomLeave,
2196
- onTopArrive = _this$props.onTopArrive,
2197
- onTopLeave = _this$props.onTopLeave;
2198
- var _this$scrollTarget = _this.scrollTarget,
2199
- scrollTop = _this$scrollTarget.scrollTop,
2200
- scrollHeight = _this$scrollTarget.scrollHeight,
2201
- clientHeight = _this$scrollTarget.clientHeight;
2202
- var target = _this.scrollTarget;
2203
- var isDeltaPositive = delta > 0;
2204
- var availableScroll = scrollHeight - clientHeight - scrollTop;
2205
- var shouldCancelScroll = false; // reset bottom/top flags
2206
-
2207
- if (availableScroll > delta && _this.isBottom) {
2208
- if (onBottomLeave) onBottomLeave(event);
2209
- _this.isBottom = false;
2210
- }
2211
-
2212
- if (isDeltaPositive && _this.isTop) {
2213
- if (onTopLeave) onTopLeave(event);
2214
- _this.isTop = false;
2215
- } // bottom limit
2216
-
2217
-
2218
- if (isDeltaPositive && delta > availableScroll) {
2219
- if (onBottomArrive && !_this.isBottom) {
2220
- onBottomArrive(event);
2221
- }
2222
-
2223
- target.scrollTop = scrollHeight;
2224
- shouldCancelScroll = true;
2225
- _this.isBottom = true; // top limit
2226
- } else if (!isDeltaPositive && -delta > scrollTop) {
2227
- if (onTopArrive && !_this.isTop) {
2228
- onTopArrive(event);
2229
- }
2230
-
2231
- target.scrollTop = 0;
2232
- shouldCancelScroll = true;
2233
- _this.isTop = true;
2234
- } // cancel scroll
2235
-
2236
-
2237
- if (shouldCancelScroll) {
2238
- _this.cancelScroll(event);
2239
- }
2240
- });
2241
-
2242
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onWheel", function (event) {
2243
- _this.handleEventDelta(event, event.deltaY);
2244
- });
2245
-
2246
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchStart", function (event) {
2247
- // set touch start so we can calculate touchmove delta
2248
- _this.touchStart = event.changedTouches[0].clientY;
2249
- });
2250
-
2251
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchMove", function (event) {
2252
- var deltaY = _this.touchStart - event.changedTouches[0].clientY;
2253
-
2254
- _this.handleEventDelta(event, deltaY);
2255
- });
2256
-
2257
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getScrollTarget", function (ref) {
2258
- _this.scrollTarget = ref;
2259
- });
2260
-
2261
- return _this;
2262
- }
2263
-
2264
- _createClass(ScrollCaptor, [{
2265
- key: "componentDidMount",
2266
- value: function componentDidMount() {
2267
- this.startListening(this.scrollTarget);
2268
- }
2269
- }, {
2270
- key: "componentWillUnmount",
2271
- value: function componentWillUnmount() {
2272
- this.stopListening(this.scrollTarget);
2273
- }
2274
- }, {
2275
- key: "startListening",
2276
- value: function startListening(el) {
2277
- // bail early if no scroll available
2278
- if (!el) return;
2279
- if (el.scrollHeight <= el.clientHeight) return; // all the if statements are to appease Flow 😢
2280
-
2281
- if (typeof el.addEventListener === 'function') {
2282
- el.addEventListener('wheel', this.onWheel, false);
2283
- }
2284
-
2285
- if (typeof el.addEventListener === 'function') {
2286
- el.addEventListener('touchstart', this.onTouchStart, false);
2287
- }
2288
-
2289
- if (typeof el.addEventListener === 'function') {
2290
- el.addEventListener('touchmove', this.onTouchMove, false);
2291
- }
2292
- }
2293
- }, {
2294
- key: "stopListening",
2295
- value: function stopListening(el) {
2296
- // bail early if no scroll available
2297
- if (el.scrollHeight <= el.clientHeight) return; // all the if statements are to appease Flow 😢
2298
-
2299
- if (typeof el.removeEventListener === 'function') {
2300
- el.removeEventListener('wheel', this.onWheel, false);
2301
- }
2302
-
2303
- if (typeof el.removeEventListener === 'function') {
2304
- el.removeEventListener('touchstart', this.onTouchStart, false);
2305
- }
2306
-
2307
- if (typeof el.removeEventListener === 'function') {
2308
- el.removeEventListener('touchmove', this.onTouchMove, false);
2309
- }
2310
- }
2311
- }, {
2312
- key: "render",
2313
- value: function render() {
2314
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NodeResolver, {
2315
- innerRef: this.getScrollTarget
2316
- }, this.props.children);
2317
- }
2318
- }]);
2319
-
2320
- return ScrollCaptor;
2321
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
2322
-
2323
- var ScrollCaptorSwitch =
2324
- /*#__PURE__*/
2325
- function (_Component2) {
2326
- _inherits(ScrollCaptorSwitch, _Component2);
2327
-
2328
- function ScrollCaptorSwitch() {
2329
- _classCallCheck(this, ScrollCaptorSwitch);
2330
-
2331
- return _possibleConstructorReturn(this, _getPrototypeOf(ScrollCaptorSwitch).apply(this, arguments));
2332
- }
2333
-
2334
- _createClass(ScrollCaptorSwitch, [{
2335
- key: "render",
2336
- value: function render() {
2337
- var _this$props2 = this.props,
2338
- isEnabled = _this$props2.isEnabled,
2339
- props = _objectWithoutProperties(_this$props2, ["isEnabled"]);
2340
-
2341
- return isEnabled ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollCaptor, props) : this.props.children;
2342
- }
2343
- }]);
2344
-
2345
- return ScrollCaptorSwitch;
2346
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
2347
-
2348
- _defineProperty(ScrollCaptorSwitch, "defaultProps", {
2349
- isEnabled: true
2350
- });
2351
-
2352
- var instructionsAriaMessage = function instructionsAriaMessage(event) {
2353
- var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2354
- var isSearchable = context.isSearchable,
2355
- isMulti = context.isMulti,
2356
- label = context.label,
2357
- isDisabled = context.isDisabled;
2358
-
2359
- switch (event) {
2360
- case 'menu':
2361
- return "Use Up and Down to choose options".concat(isDisabled ? '' : ', press Enter to select the currently focused option', ", press Escape to exit the menu, press Tab to select the option and exit the menu.");
2362
-
2363
- case 'input':
2364
- return "".concat(label ? label : 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '');
2365
-
2366
- case 'value':
2367
- return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';
2368
- }
2369
- };
2370
- var valueEventAriaMessage = function valueEventAriaMessage(event, context) {
2371
- var value = context.value,
2372
- isDisabled = context.isDisabled;
2373
- if (!value) return;
2374
-
2375
- switch (event) {
2376
- case 'deselect-option':
2377
- case 'pop-value':
2378
- case 'remove-value':
2379
- return "option ".concat(value, ", deselected.");
2380
-
2381
- case 'select-option':
2382
- return isDisabled ? "option ".concat(value, " is disabled. Select another option.") : "option ".concat(value, ", selected.");
2383
- }
2384
- };
2385
- var valueFocusAriaMessage = function valueFocusAriaMessage(_ref) {
2386
- var focusedValue = _ref.focusedValue,
2387
- getOptionLabel = _ref.getOptionLabel,
2388
- selectValue = _ref.selectValue;
2389
- return "value ".concat(getOptionLabel(focusedValue), " focused, ").concat(selectValue.indexOf(focusedValue) + 1, " of ").concat(selectValue.length, ".");
2390
- };
2391
- var optionFocusAriaMessage = function optionFocusAriaMessage(_ref2) {
2392
- var focusedOption = _ref2.focusedOption,
2393
- getOptionLabel = _ref2.getOptionLabel,
2394
- options = _ref2.options;
2395
- return "option ".concat(getOptionLabel(focusedOption), " focused").concat(focusedOption.isDisabled ? ' disabled' : '', ", ").concat(options.indexOf(focusedOption) + 1, " of ").concat(options.length, ".");
2396
- };
2397
- var resultsAriaMessage = function resultsAriaMessage(_ref3) {
2398
- var inputValue = _ref3.inputValue,
2399
- screenReaderMessage = _ref3.screenReaderMessage;
2400
- return "".concat(screenReaderMessage).concat(inputValue ? ' for search term ' + inputValue : '', ".");
2401
- };
2402
-
2403
- var formatGroupLabel = function formatGroupLabel(group) {
2404
- return group.label;
2405
- };
2406
- var getOptionLabel = function getOptionLabel(option) {
2407
- return option.label;
2408
- };
2409
- var getOptionValue = function getOptionValue(option) {
2410
- return option.value;
2411
- };
2412
- var isOptionDisabled = function isOptionDisabled(option) {
2413
- return !!option.isDisabled;
2414
- };
2415
-
2416
- var containerCSS = function containerCSS(_ref) {
2417
- var isDisabled = _ref.isDisabled,
2418
- isRtl = _ref.isRtl;
2419
- return {
2420
- label: 'container',
2421
- direction: isRtl ? 'rtl' : null,
2422
- pointerEvents: isDisabled ? 'none' : null,
2423
- // cancel mouse events when disabled
2424
- position: 'relative'
2425
- };
2426
- };
2427
- var SelectContainer = function SelectContainer(props) {
2428
- var children = props.children,
2429
- className = props.className,
2430
- cx = props.cx,
2431
- getStyles = props.getStyles,
2432
- innerProps = props.innerProps,
2433
- isDisabled = props.isDisabled,
2434
- isRtl = props.isRtl;
2435
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
2436
- className: cx(
2437
- /*#__PURE__*/
2438
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('container', props)), {
2439
- '--is-disabled': isDisabled,
2440
- '--is-rtl': isRtl
2441
- }, className)
2442
- }, innerProps), children);
2443
- }; // ==============================
2444
- // Value Container
2445
- // ==============================
2446
-
2447
- var valueContainerCSS = function valueContainerCSS(_ref2) {
2448
- var spacing = _ref2.theme.spacing;
2449
- return {
2450
- alignItems: 'center',
2451
- display: 'flex',
2452
- flex: 1,
2453
- flexWrap: 'wrap',
2454
- padding: "".concat(spacing.baseUnit / 2, "px ").concat(spacing.baseUnit * 2, "px"),
2455
- WebkitOverflowScrolling: 'touch',
2456
- position: 'relative',
2457
- overflow: 'hidden'
2458
- };
2459
- };
2460
- var ValueContainer =
2461
- /*#__PURE__*/
2462
- function (_Component) {
2463
- _inherits(ValueContainer, _Component);
2464
-
2465
- function ValueContainer() {
2466
- _classCallCheck(this, ValueContainer);
2467
-
2468
- return _possibleConstructorReturn(this, _getPrototypeOf(ValueContainer).apply(this, arguments));
2469
- }
2470
-
2471
- _createClass(ValueContainer, [{
2472
- key: "render",
2473
- value: function render() {
2474
- var _this$props = this.props,
2475
- children = _this$props.children,
2476
- className = _this$props.className,
2477
- cx = _this$props.cx,
2478
- isMulti = _this$props.isMulti,
2479
- getStyles = _this$props.getStyles,
2480
- hasValue = _this$props.hasValue;
2481
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
2482
- className: cx(
2483
- /*#__PURE__*/
2484
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('valueContainer', this.props)), {
2485
- 'value-container': true,
2486
- 'value-container--is-multi': isMulti,
2487
- 'value-container--has-value': hasValue
2488
- }, className)
2489
- }, children);
2490
- }
2491
- }]);
2492
-
2493
- return ValueContainer;
2494
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); // ==============================
2495
- // Indicator Container
2496
- // ==============================
2497
-
2498
- var indicatorsContainerCSS = function indicatorsContainerCSS() {
2499
- return {
2500
- alignItems: 'center',
2501
- alignSelf: 'stretch',
2502
- display: 'flex',
2503
- flexShrink: 0
2504
- };
2505
- };
2506
- var IndicatorsContainer = function IndicatorsContainer(props) {
2507
- var children = props.children,
2508
- className = props.className,
2509
- cx = props.cx,
2510
- getStyles = props.getStyles;
2511
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
2512
- className: cx(
2513
- /*#__PURE__*/
2514
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('indicatorsContainer', props)), {
2515
- 'indicators': true
2516
- }, className)
2517
- }, children);
2518
- };
2519
-
2520
- // ==============================
2521
- // Dropdown & Clear Icons
2522
- // ==============================
2523
- var Svg = function Svg(_ref) {
2524
- var size = _ref.size,
2525
- props = _objectWithoutProperties(_ref, ["size"]);
2526
-
2527
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("svg", _extends({
2528
- height: size,
2529
- width: size,
2530
- viewBox: "0 0 20 20",
2531
- "aria-hidden": "true",
2532
- focusable: "false",
2533
- className:
2534
- /*#__PURE__*/
2535
-
2536
- /*#__PURE__*/
2537
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])({
2538
- display: 'inline-block',
2539
- fill: 'currentColor',
2540
- lineHeight: 1,
2541
- stroke: 'currentColor',
2542
- strokeWidth: 0
2543
- })
2544
- }, props));
2545
- };
2546
-
2547
- var CrossIcon = function CrossIcon(props) {
2548
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Svg, _extends({
2549
- size: 20
2550
- }, props), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", {
2551
- d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
2552
- }));
2553
- };
2554
- var DownChevron = function DownChevron(props) {
2555
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Svg, _extends({
2556
- size: 20
2557
- }, props), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", {
2558
- d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
2559
- }));
2560
- }; // ==============================
2561
- // Dropdown & Clear Buttons
2562
- // ==============================
2563
-
2564
- var baseCSS = function baseCSS(_ref2) {
2565
- var isFocused = _ref2.isFocused,
2566
- _ref2$theme = _ref2.theme,
2567
- baseUnit = _ref2$theme.spacing.baseUnit,
2568
- colors = _ref2$theme.colors;
2569
- return {
2570
- label: 'indicatorContainer',
2571
- color: isFocused ? colors.neutral60 : colors.neutral20,
2572
- display: 'flex',
2573
- padding: baseUnit * 2,
2574
- transition: 'color 150ms',
2575
- ':hover': {
2576
- color: isFocused ? colors.neutral80 : colors.neutral40
2577
- }
2578
- };
2579
- };
2580
-
2581
- var dropdownIndicatorCSS = baseCSS;
2582
- var DropdownIndicator = function DropdownIndicator(props) {
2583
- var children = props.children,
2584
- className = props.className,
2585
- cx = props.cx,
2586
- getStyles = props.getStyles,
2587
- innerProps = props.innerProps;
2588
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({}, innerProps, {
2589
- className: cx(
2590
- /*#__PURE__*/
2591
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('dropdownIndicator', props)), {
2592
- 'indicator': true,
2593
- 'dropdown-indicator': true
2594
- }, className)
2595
- }), children || __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DownChevron, null));
2596
- };
2597
- var clearIndicatorCSS = baseCSS;
2598
- var ClearIndicator = function ClearIndicator(props) {
2599
- var children = props.children,
2600
- className = props.className,
2601
- cx = props.cx,
2602
- getStyles = props.getStyles,
2603
- innerProps = props.innerProps;
2604
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({}, innerProps, {
2605
- className: cx(
2606
- /*#__PURE__*/
2607
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('clearIndicator', props)), {
2608
- 'indicator': true,
2609
- 'clear-indicator': true
2610
- }, className)
2611
- }), children || __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(CrossIcon, null));
2612
- }; // ==============================
2613
- // Separator
2614
- // ==============================
2615
-
2616
- var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref3) {
2617
- var isDisabled = _ref3.isDisabled,
2618
- _ref3$theme = _ref3.theme,
2619
- baseUnit = _ref3$theme.spacing.baseUnit,
2620
- colors = _ref3$theme.colors;
2621
- return {
2622
- label: 'indicatorSeparator',
2623
- alignSelf: 'stretch',
2624
- backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,
2625
- marginBottom: baseUnit * 2,
2626
- marginTop: baseUnit * 2,
2627
- width: 1
2628
- };
2629
- };
2630
- var IndicatorSeparator = function IndicatorSeparator(props) {
2631
- var className = props.className,
2632
- cx = props.cx,
2633
- getStyles = props.getStyles,
2634
- innerProps = props.innerProps;
2635
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", _extends({}, innerProps, {
2636
- className: cx(
2637
- /*#__PURE__*/
2638
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('indicatorSeparator', props)), {
2639
- 'indicator-separator': true
2640
- }, className)
2641
- }));
2642
- }; // ==============================
2643
- // Loading
2644
- // ==============================
2645
-
2646
- var keyframesName = 'react-select-loading-indicator';
2647
- var keyframesInjected = false;
2648
- var loadingIndicatorCSS = function loadingIndicatorCSS(_ref4) {
2649
- var isFocused = _ref4.isFocused,
2650
- size = _ref4.size,
2651
- _ref4$theme = _ref4.theme,
2652
- colors = _ref4$theme.colors,
2653
- baseUnit = _ref4$theme.spacing.baseUnit;
2654
- return {
2655
- label: 'loadingIndicator',
2656
- color: isFocused ? colors.neutral60 : colors.neutral20,
2657
- display: 'flex',
2658
- padding: baseUnit * 2,
2659
- transition: 'color 150ms',
2660
- alignSelf: 'center',
2661
- fontSize: size,
2662
- lineHeight: 1,
2663
- marginRight: size,
2664
- textAlign: 'center',
2665
- verticalAlign: 'middle'
2666
- };
2667
- };
2668
-
2669
- var LoadingDot = function LoadingDot(_ref5) {
2670
- var color = _ref5.color,
2671
- delay = _ref5.delay,
2672
- offset = _ref5.offset;
2673
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", {
2674
- className:
2675
- /*#__PURE__*/
2676
-
2677
- /*#__PURE__*/
2678
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])({
2679
- animationDuration: '1s',
2680
- animationDelay: "".concat(delay, "ms"),
2681
- animationIterationCount: 'infinite',
2682
- animationName: keyframesName,
2683
- animationTimingFunction: 'ease-in-out',
2684
- backgroundColor: color,
2685
- borderRadius: '1em',
2686
- display: 'inline-block',
2687
- marginLeft: offset ? '1em' : null,
2688
- height: '1em',
2689
- verticalAlign: 'top',
2690
- width: '1em'
2691
- })
2692
- });
2693
- };
2694
-
2695
- var LoadingIndicator = function LoadingIndicator(props) {
2696
- var className = props.className,
2697
- cx = props.cx,
2698
- getStyles = props.getStyles,
2699
- innerProps = props.innerProps,
2700
- isFocused = props.isFocused,
2701
- isRtl = props.isRtl,
2702
- colors = props.theme.colors;
2703
- var color = isFocused ? colors.neutral80 : colors.neutral20;
2704
-
2705
- if (!keyframesInjected) {
2706
- // eslint-disable-next-line no-unused-expressions
2707
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["b" /* injectGlobal */])("@keyframes ", keyframesName, "{0%,80%,100%{opacity:0;}40%{opacity:1;}};");
2708
- keyframesInjected = true;
2709
- }
2710
-
2711
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({}, innerProps, {
2712
- className: cx(
2713
- /*#__PURE__*/
2714
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('loadingIndicator', props)), {
2715
- 'indicator': true,
2716
- 'loading-indicator': true
2717
- }, className)
2718
- }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingDot, {
2719
- color: color,
2720
- delay: 0,
2721
- offset: isRtl
2722
- }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingDot, {
2723
- color: color,
2724
- delay: 160,
2725
- offset: true
2726
- }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingDot, {
2727
- color: color,
2728
- delay: 320,
2729
- offset: !isRtl
2730
- }));
2731
- };
2732
- LoadingIndicator.defaultProps = {
2733
- size: 4
2734
- };
2735
-
2736
- var css$1 = function css$$1(_ref) {
2737
- var isDisabled = _ref.isDisabled,
2738
- isFocused = _ref.isFocused,
2739
- _ref$theme = _ref.theme,
2740
- colors = _ref$theme.colors,
2741
- borderRadius = _ref$theme.borderRadius,
2742
- spacing = _ref$theme.spacing;
2743
- return {
2744
- label: 'control',
2745
- alignItems: 'center',
2746
- backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,
2747
- borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,
2748
- borderRadius: borderRadius,
2749
- borderStyle: 'solid',
2750
- borderWidth: 1,
2751
- boxShadow: isFocused ? "0 0 0 1px ".concat(colors.primary) : null,
2752
- cursor: 'default',
2753
- display: 'flex',
2754
- flexWrap: 'wrap',
2755
- justifyContent: 'space-between',
2756
- minHeight: spacing.controlHeight,
2757
- outline: '0 !important',
2758
- position: 'relative',
2759
- transition: 'all 100ms',
2760
- '&:hover': {
2761
- borderColor: isFocused ? colors.primary : colors.neutral30
2762
- }
2763
- };
2764
- };
2765
-
2766
- var Control = function Control(props) {
2767
- var children = props.children,
2768
- cx = props.cx,
2769
- getStyles = props.getStyles,
2770
- className = props.className,
2771
- isDisabled = props.isDisabled,
2772
- isFocused = props.isFocused,
2773
- innerRef = props.innerRef,
2774
- innerProps = props.innerProps,
2775
- menuIsOpen = props.menuIsOpen;
2776
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
2777
- ref: innerRef,
2778
- className: cx(
2779
- /*#__PURE__*/
2780
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('control', props)), {
2781
- 'control': true,
2782
- 'control--is-disabled': isDisabled,
2783
- 'control--is-focused': isFocused,
2784
- 'control--menu-is-open': menuIsOpen
2785
- }, className)
2786
- }, innerProps), children);
2787
- };
2788
-
2789
- var groupCSS = function groupCSS(_ref) {
2790
- var spacing = _ref.theme.spacing;
2791
- return {
2792
- paddingBottom: spacing.baseUnit * 2,
2793
- paddingTop: spacing.baseUnit * 2
2794
- };
2795
- };
2796
-
2797
- var Group = function Group(props) {
2798
- var children = props.children,
2799
- className = props.className,
2800
- cx = props.cx,
2801
- getStyles = props.getStyles,
2802
- Heading = props.Heading,
2803
- headingProps = props.headingProps,
2804
- label = props.label,
2805
- theme = props.theme,
2806
- selectProps = props.selectProps;
2807
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
2808
- className: cx(
2809
- /*#__PURE__*/
2810
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('group', props)), {
2811
- 'group': true
2812
- }, className)
2813
- }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Heading, _extends({}, headingProps, {
2814
- selectProps: selectProps,
2815
- theme: theme,
2816
- getStyles: getStyles,
2817
- cx: cx
2818
- }), label), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", null, children));
2819
- };
2820
-
2821
- var groupHeadingCSS = function groupHeadingCSS(_ref2) {
2822
- var spacing = _ref2.theme.spacing;
2823
- return {
2824
- label: 'group',
2825
- color: '#999',
2826
- cursor: 'default',
2827
- display: 'block',
2828
- fontSize: '75%',
2829
- fontWeight: '500',
2830
- marginBottom: '0.25em',
2831
- paddingLeft: spacing.baseUnit * 3,
2832
- paddingRight: spacing.baseUnit * 3,
2833
- textTransform: 'uppercase'
2834
- };
2835
- };
2836
- var GroupHeading = function GroupHeading(props) {
2837
- var className = props.className,
2838
- cx = props.cx,
2839
- getStyles = props.getStyles,
2840
- theme = props.theme,
2841
- selectProps = props.selectProps,
2842
- cleanProps = _objectWithoutProperties(props, ["className", "cx", "getStyles", "theme", "selectProps"]);
2843
-
2844
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
2845
- className: cx(
2846
- /*#__PURE__*/
2847
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('groupHeading', _objectSpread({
2848
- theme: theme
2849
- }, cleanProps))), {
2850
- 'group-heading': true
2851
- }, className)
2852
- }, cleanProps));
2853
- };
2854
-
2855
- var inputCSS = function inputCSS(_ref) {
2856
- var isDisabled = _ref.isDisabled,
2857
- _ref$theme = _ref.theme,
2858
- spacing = _ref$theme.spacing,
2859
- colors = _ref$theme.colors;
2860
- return {
2861
- margin: spacing.baseUnit / 2,
2862
- paddingBottom: spacing.baseUnit / 2,
2863
- paddingTop: spacing.baseUnit / 2,
2864
- visibility: isDisabled ? 'hidden' : 'visible',
2865
- color: colors.neutral80
2866
- };
2867
- };
2868
-
2869
- var inputStyle = function inputStyle(isHidden) {
2870
- return {
2871
- label: 'input',
2872
- background: 0,
2873
- border: 0,
2874
- fontSize: 'inherit',
2875
- opacity: isHidden ? 0 : 1,
2876
- outline: 0,
2877
- padding: 0,
2878
- color: 'inherit'
2879
- };
2880
- };
2881
-
2882
- var Input = function Input(_ref2) {
2883
- var className = _ref2.className,
2884
- cx = _ref2.cx,
2885
- getStyles = _ref2.getStyles,
2886
- innerRef = _ref2.innerRef,
2887
- isHidden = _ref2.isHidden,
2888
- isDisabled = _ref2.isDisabled,
2889
- theme = _ref2.theme,
2890
- selectProps = _ref2.selectProps,
2891
- props = _objectWithoutProperties(_ref2, ["className", "cx", "getStyles", "innerRef", "isHidden", "isDisabled", "theme", "selectProps"]);
2892
-
2893
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
2894
- className:
2895
- /*#__PURE__*/
2896
-
2897
- /*#__PURE__*/
2898
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('input', _objectSpread({
2899
- theme: theme
2900
- }, props)))
2901
- }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default.a, _extends({
2902
- className: cx(null, {
2903
- 'input': true
2904
- }, className),
2905
- inputRef: innerRef,
2906
- inputStyle: inputStyle(isHidden),
2907
- disabled: isDisabled
2908
- }, props)));
2909
- };
2910
-
2911
- var multiValueCSS = function multiValueCSS(_ref) {
2912
- var _ref$theme = _ref.theme,
2913
- spacing = _ref$theme.spacing,
2914
- borderRadius = _ref$theme.borderRadius,
2915
- colors = _ref$theme.colors;
2916
- return {
2917
- label: 'multiValue',
2918
- backgroundColor: colors.neutral10,
2919
- borderRadius: borderRadius / 2,
2920
- display: 'flex',
2921
- margin: spacing.baseUnit / 2,
2922
- minWidth: 0 // resolves flex/text-overflow bug
2923
-
2924
- };
2925
- };
2926
- var multiValueLabelCSS = function multiValueLabelCSS(_ref2) {
2927
- var _ref2$theme = _ref2.theme,
2928
- borderRadius = _ref2$theme.borderRadius,
2929
- colors = _ref2$theme.colors,
2930
- cropWithEllipsis = _ref2.cropWithEllipsis;
2931
- return {
2932
- borderRadius: borderRadius / 2,
2933
- color: colors.neutral80,
2934
- fontSize: '85%',
2935
- overflow: 'hidden',
2936
- padding: 3,
2937
- paddingLeft: 6,
2938
- textOverflow: cropWithEllipsis ? 'ellipsis' : null,
2939
- whiteSpace: 'nowrap'
2940
- };
2941
- };
2942
- var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) {
2943
- var _ref3$theme = _ref3.theme,
2944
- spacing = _ref3$theme.spacing,
2945
- borderRadius = _ref3$theme.borderRadius,
2946
- colors = _ref3$theme.colors,
2947
- isFocused = _ref3.isFocused;
2948
- return {
2949
- alignItems: 'center',
2950
- borderRadius: borderRadius / 2,
2951
- backgroundColor: isFocused && colors.dangerLight,
2952
- display: 'flex',
2953
- paddingLeft: spacing.baseUnit,
2954
- paddingRight: spacing.baseUnit,
2955
- ':hover': {
2956
- backgroundColor: colors.dangerLight,
2957
- color: colors.danger
2958
- }
2959
- };
2960
- };
2961
- var MultiValueGeneric = function MultiValueGeneric(_ref4) {
2962
- var children = _ref4.children,
2963
- innerProps = _ref4.innerProps;
2964
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", innerProps, children);
2965
- };
2966
- var MultiValueContainer = MultiValueGeneric;
2967
- var MultiValueLabel = MultiValueGeneric;
2968
- var MultiValueRemove =
2969
- /*#__PURE__*/
2970
- function (_Component) {
2971
- _inherits(MultiValueRemove, _Component);
2972
-
2973
- function MultiValueRemove() {
2974
- _classCallCheck(this, MultiValueRemove);
2975
-
2976
- return _possibleConstructorReturn(this, _getPrototypeOf(MultiValueRemove).apply(this, arguments));
2977
- }
2978
-
2979
- _createClass(MultiValueRemove, [{
2980
- key: "render",
2981
- value: function render() {
2982
- var _this$props = this.props,
2983
- children = _this$props.children,
2984
- innerProps = _this$props.innerProps;
2985
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", innerProps, children || __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(CrossIcon, {
2986
- size: 14
2987
- }));
2988
- }
2989
- }]);
2990
-
2991
- return MultiValueRemove;
2992
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
2993
-
2994
- var MultiValue =
2995
- /*#__PURE__*/
2996
- function (_Component2) {
2997
- _inherits(MultiValue, _Component2);
2998
-
2999
- function MultiValue() {
3000
- _classCallCheck(this, MultiValue);
3001
-
3002
- return _possibleConstructorReturn(this, _getPrototypeOf(MultiValue).apply(this, arguments));
3003
- }
3004
-
3005
- _createClass(MultiValue, [{
3006
- key: "render",
3007
- value: function render() {
3008
- var _this$props2 = this.props,
3009
- children = _this$props2.children,
3010
- className = _this$props2.className,
3011
- components = _this$props2.components,
3012
- cx = _this$props2.cx,
3013
- data = _this$props2.data,
3014
- getStyles = _this$props2.getStyles,
3015
- innerProps = _this$props2.innerProps,
3016
- isDisabled = _this$props2.isDisabled,
3017
- removeProps = _this$props2.removeProps,
3018
- selectProps = _this$props2.selectProps;
3019
- var Container = components.Container,
3020
- Label = components.Label,
3021
- Remove = components.Remove;
3022
-
3023
- var containerInnerProps = _objectSpread({
3024
- className: cx(
3025
- /*#__PURE__*/
3026
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('multiValue', this.props)), {
3027
- 'multi-value': true,
3028
- 'multi-value--is-disabled': isDisabled
3029
- }, className)
3030
- }, innerProps);
3031
-
3032
- var labelInnerProps = {
3033
- className: cx(
3034
- /*#__PURE__*/
3035
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('multiValueLabel', this.props)), {
3036
- 'multi-value__label': true
3037
- }, className)
3038
- };
3039
-
3040
- var removeInnerProps = _objectSpread({
3041
- className: cx(
3042
- /*#__PURE__*/
3043
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('multiValueRemove', this.props)), {
3044
- 'multi-value__remove': true
3045
- }, className)
3046
- }, removeProps);
3047
-
3048
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Container, {
3049
- data: data,
3050
- innerProps: containerInnerProps,
3051
- selectProps: selectProps
3052
- }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Label, {
3053
- data: data,
3054
- innerProps: labelInnerProps,
3055
- selectProps: selectProps
3056
- }, children), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Remove, {
3057
- data: data,
3058
- innerProps: removeInnerProps,
3059
- selectProps: selectProps
3060
- }));
3061
- }
3062
- }]);
3063
-
3064
- return MultiValue;
3065
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
3066
-
3067
- _defineProperty(MultiValue, "defaultProps", {
3068
- cropWithEllipsis: true
3069
- });
3070
-
3071
- var optionCSS = function optionCSS(_ref) {
3072
- var isDisabled = _ref.isDisabled,
3073
- isFocused = _ref.isFocused,
3074
- isSelected = _ref.isSelected,
3075
- _ref$theme = _ref.theme,
3076
- spacing = _ref$theme.spacing,
3077
- colors = _ref$theme.colors;
3078
- return {
3079
- label: 'option',
3080
- backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent',
3081
- color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit',
3082
- cursor: 'default',
3083
- display: 'block',
3084
- fontSize: 'inherit',
3085
- padding: "".concat(spacing.baseUnit * 2, "px ").concat(spacing.baseUnit * 3, "px"),
3086
- width: '100%',
3087
- userSelect: 'none',
3088
- WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',
3089
- // provide some affordance on touch devices
3090
- ':active': {
3091
- backgroundColor: !isDisabled && (isSelected ? colors.primary : colors.primary50)
3092
- }
3093
- };
3094
- };
3095
-
3096
- var Option = function Option(props) {
3097
- var children = props.children,
3098
- className = props.className,
3099
- cx = props.cx,
3100
- getStyles = props.getStyles,
3101
- isDisabled = props.isDisabled,
3102
- isFocused = props.isFocused,
3103
- isSelected = props.isSelected,
3104
- innerRef = props.innerRef,
3105
- innerProps = props.innerProps;
3106
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
3107
- ref: innerRef,
3108
- className: cx(
3109
- /*#__PURE__*/
3110
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('option', props)), {
3111
- 'option': true,
3112
- 'option--is-disabled': isDisabled,
3113
- 'option--is-focused': isFocused,
3114
- 'option--is-selected': isSelected
3115
- }, className)
3116
- }, innerProps), children);
3117
- };
3118
-
3119
- var placeholderCSS = function placeholderCSS(_ref) {
3120
- var _ref$theme = _ref.theme,
3121
- spacing = _ref$theme.spacing,
3122
- colors = _ref$theme.colors;
3123
- return {
3124
- label: 'placeholder',
3125
- color: colors.neutral50,
3126
- marginLeft: spacing.baseUnit / 2,
3127
- marginRight: spacing.baseUnit / 2,
3128
- position: 'absolute',
3129
- top: '50%',
3130
- transform: 'translateY(-50%)'
3131
- };
3132
- };
3133
-
3134
- var Placeholder = function Placeholder(props) {
3135
- var children = props.children,
3136
- className = props.className,
3137
- cx = props.cx,
3138
- getStyles = props.getStyles,
3139
- innerProps = props.innerProps;
3140
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
3141
- className: cx(
3142
- /*#__PURE__*/
3143
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('placeholder', props)), {
3144
- 'placeholder': true
3145
- }, className)
3146
- }, innerProps), children);
3147
- };
3148
-
3149
- var css$2 = function css$$1(_ref) {
3150
- var isDisabled = _ref.isDisabled,
3151
- _ref$theme = _ref.theme,
3152
- spacing = _ref$theme.spacing,
3153
- colors = _ref$theme.colors;
3154
- return {
3155
- label: 'singleValue',
3156
- color: isDisabled ? colors.neutral40 : colors.neutral80,
3157
- marginLeft: spacing.baseUnit / 2,
3158
- marginRight: spacing.baseUnit / 2,
3159
- maxWidth: "calc(100% - ".concat(spacing.baseUnit * 2, "px)"),
3160
- overflow: 'hidden',
3161
- position: 'absolute',
3162
- textOverflow: 'ellipsis',
3163
- whiteSpace: 'nowrap',
3164
- top: '50%',
3165
- transform: 'translateY(-50%)'
3166
- };
3167
- };
3168
-
3169
- var SingleValue = function SingleValue(props) {
3170
- var children = props.children,
3171
- className = props.className,
3172
- cx = props.cx,
3173
- getStyles = props.getStyles,
3174
- isDisabled = props.isDisabled,
3175
- innerProps = props.innerProps;
3176
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
3177
- className: cx(
3178
- /*#__PURE__*/
3179
- Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('singleValue', props)), {
3180
- 'single-value': true,
3181
- 'single-value--is-disabled': isDisabled
3182
- }, className)
3183
- }, innerProps), children);
3184
- };
3185
-
3186
- var components = {
3187
- ClearIndicator: ClearIndicator,
3188
- Control: Control,
3189
- DropdownIndicator: DropdownIndicator,
3190
- DownChevron: DownChevron,
3191
- CrossIcon: CrossIcon,
3192
- Group: Group,
3193
- GroupHeading: GroupHeading,
3194
- IndicatorsContainer: IndicatorsContainer,
3195
- IndicatorSeparator: IndicatorSeparator,
3196
- Input: Input,
3197
- LoadingIndicator: LoadingIndicator,
3198
- Menu: Menu,
3199
- MenuList: MenuList,
3200
- MenuPortal: MenuPortal,
3201
- LoadingMessage: LoadingMessage,
3202
- NoOptionsMessage: NoOptionsMessage,
3203
- MultiValue: MultiValue,
3204
- MultiValueContainer: MultiValueContainer,
3205
- MultiValueLabel: MultiValueLabel,
3206
- MultiValueRemove: MultiValueRemove,
3207
- Option: Option,
3208
- Placeholder: Placeholder,
3209
- SelectContainer: SelectContainer,
3210
- SingleValue: SingleValue,
3211
- ValueContainer: ValueContainer
3212
- };
3213
- var defaultComponents = function defaultComponents(props) {
3214
- return _objectSpread({}, components, props.components);
3215
- };
3216
-
3217
- var defaultStyles = {
3218
- clearIndicator: clearIndicatorCSS,
3219
- container: containerCSS,
3220
- control: css$1,
3221
- dropdownIndicator: dropdownIndicatorCSS,
3222
- group: groupCSS,
3223
- groupHeading: groupHeadingCSS,
3224
- indicatorsContainer: indicatorsContainerCSS,
3225
- indicatorSeparator: indicatorSeparatorCSS,
3226
- input: inputCSS,
3227
- loadingIndicator: loadingIndicatorCSS,
3228
- loadingMessage: loadingMessageCSS,
3229
- menu: menuCSS,
3230
- menuList: menuListCSS,
3231
- menuPortal: menuPortalCSS,
3232
- multiValue: multiValueCSS,
3233
- multiValueLabel: multiValueLabelCSS,
3234
- multiValueRemove: multiValueRemoveCSS,
3235
- noOptionsMessage: noOptionsMessageCSS,
3236
- option: optionCSS,
3237
- placeholder: placeholderCSS,
3238
- singleValue: css$2,
3239
- valueContainer: valueContainerCSS
3240
- }; // Merge Utility
3241
- // Allows consumers to extend a base Select with additional styles
3242
-
3243
- function mergeStyles(source) {
3244
- var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3245
-
3246
- // initialize with source styles
3247
- var styles = _objectSpread({}, source); // massage in target styles
3248
-
3249
-
3250
- Object.keys(target).forEach(function (key) {
3251
- if (source[key]) {
3252
- styles[key] = function (rsCss, props) {
3253
- return target[key](source[key](rsCss, props), props);
3254
- };
3255
- } else {
3256
- styles[key] = target[key];
3257
- }
3258
- });
3259
- return styles;
3260
- }
3261
-
3262
- var colors = {
3263
- primary: '#2684FF',
3264
- primary75: '#4C9AFF',
3265
- primary50: '#B2D4FF',
3266
- primary25: '#DEEBFF',
3267
- danger: '#DE350B',
3268
- dangerLight: '#FFBDAD',
3269
- neutral0: 'hsl(0, 0%, 100%)',
3270
- neutral5: 'hsl(0, 0%, 95%)',
3271
- neutral10: 'hsl(0, 0%, 90%)',
3272
- neutral20: 'hsl(0, 0%, 80%)',
3273
- neutral30: 'hsl(0, 0%, 70%)',
3274
- neutral40: 'hsl(0, 0%, 60%)',
3275
- neutral50: 'hsl(0, 0%, 50%)',
3276
- neutral60: 'hsl(0, 0%, 40%)',
3277
- neutral70: 'hsl(0, 0%, 30%)',
3278
- neutral80: 'hsl(0, 0%, 20%)',
3279
- neutral90: 'hsl(0, 0%, 10%)'
3280
- };
3281
- var borderRadius = 4;
3282
- var baseUnit = 4;
3283
- /* Used to calculate consistent margin/padding on elements */
3284
-
3285
- var controlHeight = 38;
3286
- /* The minimum height of the control */
3287
-
3288
- var menuGutter = baseUnit * 2;
3289
- /* The amount of space between the control and menu */
3290
-
3291
- var spacing = {
3292
- baseUnit: baseUnit,
3293
- controlHeight: controlHeight,
3294
- menuGutter: menuGutter
3295
- };
3296
- var defaultTheme = {
3297
- borderRadius: borderRadius,
3298
- colors: colors,
3299
- spacing: spacing
3300
- };
3301
-
3302
- var defaultProps = {
3303
- backspaceRemovesValue: true,
3304
- blurInputOnSelect: isTouchCapable(),
3305
- captureMenuScroll: !isTouchCapable(),
3306
- closeMenuOnSelect: true,
3307
- closeMenuOnScroll: false,
3308
- components: {},
3309
- controlShouldRenderValue: true,
3310
- escapeClearsValue: false,
3311
- filterOption: createFilter(),
3312
- formatGroupLabel: formatGroupLabel,
3313
- getOptionLabel: getOptionLabel,
3314
- getOptionValue: getOptionValue,
3315
- isDisabled: false,
3316
- isLoading: false,
3317
- isMulti: false,
3318
- isRtl: false,
3319
- isSearchable: true,
3320
- isOptionDisabled: isOptionDisabled,
3321
- loadingMessage: function loadingMessage() {
3322
- return 'Loading...';
3323
- },
3324
- maxMenuHeight: 300,
3325
- minMenuHeight: 140,
3326
- menuIsOpen: false,
3327
- menuPlacement: 'bottom',
3328
- menuPosition: 'absolute',
3329
- menuShouldBlockScroll: false,
3330
- menuShouldScrollIntoView: !isMobileDevice(),
3331
- noOptionsMessage: function noOptionsMessage() {
3332
- return 'No options';
3333
- },
3334
- openMenuOnFocus: false,
3335
- openMenuOnClick: true,
3336
- options: [],
3337
- pageSize: 5,
3338
- placeholder: 'Select...',
3339
- screenReaderStatus: function screenReaderStatus(_ref) {
3340
- var count = _ref.count;
3341
- return "".concat(count, " result").concat(count !== 1 ? 's' : '', " available");
3342
- },
3343
- styles: {},
3344
- tabIndex: '0',
3345
- tabSelectsValue: true
3346
- };
3347
- var instanceId = 1;
3348
-
3349
- var Select =
3350
- /*#__PURE__*/
3351
- function (_Component) {
3352
- _inherits(Select, _Component);
3353
-
3354
- // Misc. Instance Properties
3355
- // ------------------------------
3356
- // TODO
3357
- // Refs
3358
- // ------------------------------
3359
- // Lifecycle
3360
- // ------------------------------
3361
- function Select(_props) {
3362
- var _this;
3363
-
3364
- _classCallCheck(this, Select);
3365
-
3366
- _this = _possibleConstructorReturn(this, _getPrototypeOf(Select).call(this, _props));
3367
-
3368
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
3369
- ariaLiveSelection: '',
3370
- ariaLiveContext: '',
3371
- focusedOption: null,
3372
- focusedValue: null,
3373
- inputIsHidden: false,
3374
- isFocused: false,
3375
- menuOptions: {
3376
- render: [],
3377
- focusable: []
3378
- },
3379
- selectValue: []
3380
- });
3381
-
3382
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blockOptionHover", false);
3383
-
3384
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isComposing", false);
3385
-
3386
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "clearFocusValueOnUpdate", false);
3387
-
3388
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "commonProps", void 0);
3389
-
3390
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "components", void 0);
3391
-
3392
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "hasGroups", false);
3393
-
3394
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "initialTouchX", 0);
3395
-
3396
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "initialTouchY", 0);
3397
-
3398
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "inputIsHiddenAfterUpdate", void 0);
3399
-
3400
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "instancePrefix", '');
3401
-
3402
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "openAfterFocus", false);
3403
-
3404
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "scrollToFocusedOptionOnUpdate", false);
3405
-
3406
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "userIsDragging", void 0);
3407
-
3408
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "controlRef", null);
3409
-
3410
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getControlRef", function (ref) {
3411
- _this.controlRef = ref;
3412
- });
3413
-
3414
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focusedOptionRef", null);
3415
-
3416
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getFocusedOptionRef", function (ref) {
3417
- _this.focusedOptionRef = ref;
3418
- });
3419
-
3420
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "menuListRef", null);
3421
-
3422
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getMenuListRef", function (ref) {
3423
- _this.menuListRef = ref;
3424
- });
3425
-
3426
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "inputRef", null);
3427
-
3428
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getInputRef", function (ref) {
3429
- _this.inputRef = ref;
3430
- });
3431
-
3432
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cacheComponents", function (components$$1) {
3433
- _this.components = defaultComponents({
3434
- components: components$$1
3435
- });
3436
- });
3437
-
3438
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focus", _this.focusInput);
3439
-
3440
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blur", _this.blurInput);
3441
-
3442
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onChange", function (newValue, actionMeta) {
3443
- var _this$props = _this.props,
3444
- onChange = _this$props.onChange,
3445
- name = _this$props.name;
3446
- onChange(newValue, _objectSpread({}, actionMeta, {
3447
- name: name
3448
- }));
3449
- });
3450
-
3451
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setValue", function (newValue) {
3452
- var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'set-value';
3453
- var option = arguments.length > 2 ? arguments[2] : undefined;
3454
- var _this$props2 = _this.props,
3455
- closeMenuOnSelect = _this$props2.closeMenuOnSelect,
3456
- isMulti = _this$props2.isMulti;
3457
-
3458
- _this.onInputChange('', {
3459
- action: 'set-value'
3460
- });
3461
-
3462
- if (closeMenuOnSelect) {
3463
- _this.inputIsHiddenAfterUpdate = !isMulti;
3464
-
3465
- _this.onMenuClose();
3466
- } // when the select value should change, we should reset focusedValue
3467
-
3468
-
3469
- _this.clearFocusValueOnUpdate = true;
3470
-
3471
- _this.onChange(newValue, {
3472
- action: action,
3473
- option: option
3474
- });
3475
- });
3476
-
3477
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "selectOption", function (newValue) {
3478
- var _this$props3 = _this.props,
3479
- blurInputOnSelect = _this$props3.blurInputOnSelect,
3480
- isMulti = _this$props3.isMulti;
3481
- var selectValue = _this.state.selectValue;
3482
-
3483
- if (isMulti) {
3484
- if (_this.isOptionSelected(newValue, selectValue)) {
3485
- var candidate = _this.getOptionValue(newValue);
3486
-
3487
- _this.setValue(selectValue.filter(function (i) {
3488
- return _this.getOptionValue(i) !== candidate;
3489
- }), 'deselect-option', newValue);
3490
-
3491
- _this.announceAriaLiveSelection({
3492
- event: 'deselect-option',
3493
- context: {
3494
- value: _this.getOptionLabel(newValue)
3495
- }
3496
- });
3497
- } else {
3498
- if (!_this.isOptionDisabled(newValue, selectValue)) {
3499
- _this.setValue([].concat(_toConsumableArray(selectValue), [newValue]), 'select-option', newValue);
3500
-
3501
- _this.announceAriaLiveSelection({
3502
- event: 'select-option',
3503
- context: {
3504
- value: _this.getOptionLabel(newValue)
3505
- }
3506
- });
3507
- } else {
3508
- // announce that option is disabled
3509
- _this.announceAriaLiveSelection({
3510
- event: 'select-option',
3511
- context: {
3512
- value: _this.getOptionLabel(newValue),
3513
- isDisabled: true
3514
- }
3515
- });
3516
- }
3517
- }
3518
- } else {
3519
- if (!_this.isOptionDisabled(newValue, selectValue)) {
3520
- _this.setValue(newValue, 'select-option');
3521
-
3522
- _this.announceAriaLiveSelection({
3523
- event: 'select-option',
3524
- context: {
3525
- value: _this.getOptionLabel(newValue)
3526
- }
3527
- });
3528
- } else {
3529
- // announce that option is disabled
3530
- _this.announceAriaLiveSelection({
3531
- event: 'select-option',
3532
- context: {
3533
- value: _this.getOptionLabel(newValue),
3534
- isDisabled: true
3535
- }
3536
- });
3537
- }
3538
- }
3539
-
3540
- if (blurInputOnSelect) {
3541
- _this.blurInput();
3542
- }
3543
- });
3544
-
3545
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "removeValue", function (removedValue) {
3546
- var selectValue = _this.state.selectValue;
3547
-
3548
- var candidate = _this.getOptionValue(removedValue);
3549
-
3550
- _this.onChange(selectValue.filter(function (i) {
3551
- return _this.getOptionValue(i) !== candidate;
3552
- }), {
3553
- action: 'remove-value',
3554
- removedValue: removedValue
3555
- });
3556
-
3557
- _this.announceAriaLiveSelection({
3558
- event: 'remove-value',
3559
- context: {
3560
- value: removedValue ? _this.getOptionLabel(removedValue) : ''
3561
- }
3562
- });
3563
-
3564
- _this.focusInput();
3565
- });
3566
-
3567
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "clearValue", function () {
3568
- var isMulti = _this.props.isMulti;
3569
-
3570
- _this.onChange(isMulti ? [] : null, {
3571
- action: 'clear'
3572
- });
3573
- });
3574
-
3575
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "popValue", function () {
3576
- var selectValue = _this.state.selectValue;
3577
- var lastSelectedValue = selectValue[selectValue.length - 1];
3578
-
3579
- _this.announceAriaLiveSelection({
3580
- event: 'pop-value',
3581
- context: {
3582
- value: lastSelectedValue ? _this.getOptionLabel(lastSelectedValue) : ''
3583
- }
3584
- });
3585
-
3586
- _this.onChange(selectValue.slice(0, selectValue.length - 1), {
3587
- action: 'pop-value',
3588
- removedValue: lastSelectedValue
3589
- });
3590
- });
3591
-
3592
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getOptionLabel", function (data) {
3593
- return _this.props.getOptionLabel(data);
3594
- });
3595
-
3596
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getOptionValue", function (data) {
3597
- return _this.props.getOptionValue(data);
3598
- });
3599
-
3600
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getStyles", function (key, props) {
3601
- var base = defaultStyles[key](props);
3602
- base.boxSizing = 'border-box';
3603
- var custom = _this.props.styles[key];
3604
- return custom ? custom(base, props) : base;
3605
- });
3606
-
3607
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getElementId", function (element) {
3608
- return "".concat(_this.instancePrefix, "-").concat(element);
3609
- });
3610
-
3611
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getActiveDescendentId", function () {
3612
- var menuIsOpen = _this.props.menuIsOpen;
3613
- var _this$state = _this.state,
3614
- menuOptions = _this$state.menuOptions,
3615
- focusedOption = _this$state.focusedOption;
3616
- if (!focusedOption || !menuIsOpen) return undefined;
3617
- var index = menuOptions.focusable.indexOf(focusedOption);
3618
- var option = menuOptions.render[index];
3619
- return option && option.key;
3620
- });
3621
-
3622
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "announceAriaLiveSelection", function (_ref2) {
3623
- var event = _ref2.event,
3624
- context = _ref2.context;
3625
-
3626
- _this.setState({
3627
- ariaLiveSelection: valueEventAriaMessage(event, context)
3628
- });
3629
- });
3630
-
3631
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "announceAriaLiveContext", function (_ref3) {
3632
- var event = _ref3.event,
3633
- context = _ref3.context;
3634
-
3635
- _this.setState({
3636
- ariaLiveContext: instructionsAriaMessage(event, _objectSpread({}, context, {
3637
- label: _this.props['aria-label']
3638
- }))
3639
- });
3640
- });
3641
-
3642
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMenuMouseDown", function (event) {
3643
- if (event.button !== 0) {
3644
- return;
3645
- }
3646
-
3647
- event.stopPropagation();
3648
- event.preventDefault();
3649
-
3650
- _this.focusInput();
3651
- });
3652
-
3653
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMenuMouseMove", function (event) {
3654
- _this.blockOptionHover = false;
3655
- });
3656
-
3657
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onControlMouseDown", function (event) {
3658
- var openMenuOnClick = _this.props.openMenuOnClick;
3659
-
3660
- if (!_this.state.isFocused) {
3661
- if (openMenuOnClick) {
3662
- _this.openAfterFocus = true;
3663
- }
3664
-
3665
- _this.focusInput();
3666
- } else if (!_this.props.menuIsOpen) {
3667
- if (openMenuOnClick) {
3668
- _this.openMenu('first');
3669
- }
3670
- } else {
3671
- //$FlowFixMe
3672
- if (event.target.tagName !== 'INPUT') {
3673
- _this.onMenuClose();
3674
- }
3675
- } //$FlowFixMe
3676
-
3677
-
3678
- if (event.target.tagName !== 'INPUT') {
3679
- event.preventDefault();
3680
- }
3681
- });
3682
-
3683
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onDropdownIndicatorMouseDown", function (event) {
3684
- // ignore mouse events that weren't triggered by the primary button
3685
- if (event && event.type === 'mousedown' && event.button !== 0) {
3686
- return;
3687
- }
3688
-
3689
- if (_this.props.isDisabled) return;
3690
- var _this$props4 = _this.props,
3691
- isMulti = _this$props4.isMulti,
3692
- menuIsOpen = _this$props4.menuIsOpen;
3693
-
3694
- _this.focusInput();
3695
-
3696
- if (menuIsOpen) {
3697
- _this.inputIsHiddenAfterUpdate = !isMulti;
3698
-
3699
- _this.onMenuClose();
3700
- } else {
3701
- _this.openMenu('first');
3702
- }
3703
-
3704
- event.preventDefault();
3705
- event.stopPropagation();
3706
- });
3707
-
3708
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onClearIndicatorMouseDown", function (event) {
3709
- // ignore mouse events that weren't triggered by the primary button
3710
- if (event && event.type === 'mousedown' && event.button !== 0) {
3711
- return;
3712
- }
3713
-
3714
- _this.clearValue();
3715
-
3716
- event.stopPropagation();
3717
- _this.openAfterFocus = false;
3718
- setTimeout(function () {
3719
- return _this.focusInput();
3720
- });
3721
- });
3722
-
3723
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onScroll", function (event) {
3724
- if (typeof _this.props.closeMenuOnScroll === 'boolean') {
3725
- if (event.target instanceof HTMLElement && isDocumentElement(event.target)) {
3726
- _this.props.onMenuClose();
3727
- }
3728
- } else if (typeof _this.props.closeMenuOnScroll === 'function') {
3729
- if (_this.props.closeMenuOnScroll(event)) {
3730
- _this.props.onMenuClose();
3731
- }
3732
- }
3733
- });
3734
-
3735
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onCompositionStart", function () {
3736
- _this.isComposing = true;
3737
- });
3738
-
3739
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onCompositionEnd", function () {
3740
- _this.isComposing = false;
3741
- });
3742
-
3743
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchStart", function (_ref4) {
3744
- var touches = _ref4.touches;
3745
- var touch = touches.item(0);
3746
-
3747
- if (!touch) {
3748
- return;
3749
- }
3750
-
3751
- _this.initialTouchX = touch.clientX;
3752
- _this.initialTouchY = touch.clientY;
3753
- _this.userIsDragging = false;
3754
- });
3755
-
3756
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchMove", function (_ref5) {
3757
- var touches = _ref5.touches;
3758
- var touch = touches.item(0);
3759
-
3760
- if (!touch) {
3761
- return;
3762
- }
3763
-
3764
- var deltaX = Math.abs(touch.clientX - _this.initialTouchX);
3765
- var deltaY = Math.abs(touch.clientY - _this.initialTouchY);
3766
- var moveThreshold = 5;
3767
- _this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold;
3768
- });
3769
-
3770
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchEnd", function (event) {
3771
- if (_this.userIsDragging) return; // close the menu if the user taps outside
3772
- // we're checking on event.target here instead of event.currentTarget, because we want to assert information
3773
- // on events on child elements, not the document (which we've attached this handler to).
3774
-
3775
- if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) {
3776
- _this.blurInput();
3777
- } // reset move vars
3778
-
3779
-
3780
- _this.initialTouchX = 0;
3781
- _this.initialTouchY = 0;
3782
- });
3783
-
3784
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onControlTouchEnd", function (event) {
3785
- if (_this.userIsDragging) return;
3786
-
3787
- _this.onControlMouseDown(event);
3788
- });
3789
-
3790
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onClearIndicatorTouchEnd", function (event) {
3791
- if (_this.userIsDragging) return;
3792
-
3793
- _this.onClearIndicatorMouseDown(event);
3794
- });
3795
-
3796
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onDropdownIndicatorTouchEnd", function (event) {
3797
- if (_this.userIsDragging) return;
3798
-
3799
- _this.onDropdownIndicatorMouseDown(event);
3800
- });
3801
-
3802
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleInputChange", function (event) {
3803
- var inputValue = event.currentTarget.value;
3804
- _this.inputIsHiddenAfterUpdate = false;
3805
-
3806
- _this.onInputChange(inputValue, {
3807
- action: 'input-change'
3808
- });
3809
-
3810
- _this.onMenuOpen();
3811
- });
3812
-
3813
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onInputFocus", function (event) {
3814
- var _this$props5 = _this.props,
3815
- isSearchable = _this$props5.isSearchable,
3816
- isMulti = _this$props5.isMulti;
3817
-
3818
- if (_this.props.onFocus) {
3819
- _this.props.onFocus(event);
3820
- }
3821
-
3822
- _this.inputIsHiddenAfterUpdate = false;
3823
-
3824
- _this.announceAriaLiveContext({
3825
- event: 'input',
3826
- context: {
3827
- isSearchable: isSearchable,
3828
- isMulti: isMulti
3829
- }
3830
- });
3831
-
3832
- _this.setState({
3833
- isFocused: true
3834
- });
3835
-
3836
- if (_this.openAfterFocus || _this.props.openMenuOnFocus) {
3837
- _this.openMenu('first');
3838
- }
3839
-
3840
- _this.openAfterFocus = false;
3841
- });
3842
-
3843
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onInputBlur", function (event) {
3844
- if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) {
3845
- _this.inputRef.focus();
3846
-
3847
- return;
3848
- }
3849
-
3850
- if (_this.props.onBlur) {
3851
- _this.props.onBlur(event);
3852
- }
3853
-
3854
- _this.onInputChange('', {
3855
- action: 'input-blur'
3856
- });
3857
-
3858
- _this.onMenuClose();
3859
-
3860
- _this.setState({
3861
- focusedValue: null,
3862
- isFocused: false
3863
- });
3864
- });
3865
-
3866
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onOptionHover", function (focusedOption) {
3867
- if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {
3868
- return;
3869
- }
3870
-
3871
- _this.setState({
3872
- focusedOption: focusedOption
3873
- });
3874
- });
3875
-
3876
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "shouldHideSelectedOptions", function () {
3877
- var _this$props6 = _this.props,
3878
- hideSelectedOptions = _this$props6.hideSelectedOptions,
3879
- isMulti = _this$props6.isMulti;
3880
- if (hideSelectedOptions === undefined) return isMulti;
3881
- return hideSelectedOptions;
3882
- });
3883
-
3884
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onKeyDown", function (event) {
3885
- var _this$props7 = _this.props,
3886
- isMulti = _this$props7.isMulti,
3887
- backspaceRemovesValue = _this$props7.backspaceRemovesValue,
3888
- escapeClearsValue = _this$props7.escapeClearsValue,
3889
- inputValue = _this$props7.inputValue,
3890
- isClearable = _this$props7.isClearable,
3891
- isDisabled = _this$props7.isDisabled,
3892
- menuIsOpen = _this$props7.menuIsOpen,
3893
- onKeyDown = _this$props7.onKeyDown,
3894
- tabSelectsValue = _this$props7.tabSelectsValue,
3895
- openMenuOnFocus = _this$props7.openMenuOnFocus;
3896
- var _this$state2 = _this.state,
3897
- focusedOption = _this$state2.focusedOption,
3898
- focusedValue = _this$state2.focusedValue,
3899
- selectValue = _this$state2.selectValue;
3900
- if (isDisabled) return;
3901
-
3902
- if (typeof onKeyDown === 'function') {
3903
- onKeyDown(event);
3904
-
3905
- if (event.defaultPrevented) {
3906
- return;
3907
- }
3908
- } // Block option hover events when the user has just pressed a key
3909
-
3910
-
3911
- _this.blockOptionHover = true;
3912
-
3913
- switch (event.key) {
3914
- case 'ArrowLeft':
3915
- if (!isMulti || inputValue) return;
3916
-
3917
- _this.focusValue('previous');
3918
-
3919
- break;
3920
-
3921
- case 'ArrowRight':
3922
- if (!isMulti || inputValue) return;
3923
-
3924
- _this.focusValue('next');
3925
-
3926
- break;
3927
-
3928
- case 'Delete':
3929
- case 'Backspace':
3930
- if (inputValue) return;
3931
-
3932
- if (focusedValue) {
3933
- _this.removeValue(focusedValue);
3934
- } else {
3935
- if (!backspaceRemovesValue) return;
3936
-
3937
- if (isMulti) {
3938
- _this.popValue();
3939
- } else if (isClearable) {
3940
- _this.clearValue();
3941
- }
3942
- }
3943
-
3944
- break;
3945
-
3946
- case 'Tab':
3947
- if (_this.isComposing) return;
3948
-
3949
- if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || // don't capture the event if the menu opens on focus and the focused
3950
- // option is already selected; it breaks the flow of navigation
3951
- openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) {
3952
- return;
3953
- }
3954
-
3955
- _this.selectOption(focusedOption);
3956
-
3957
- break;
3958
-
3959
- case 'Enter':
3960
- if (event.keyCode === 229) {
3961
- // ignore the keydown event from an Input Method Editor(IME)
3962
- // ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode
3963
- break;
3964
- }
3965
-
3966
- if (menuIsOpen) {
3967
- if (!focusedOption) return;
3968
- if (_this.isComposing) return;
3969
-
3970
- _this.selectOption(focusedOption);
3971
-
3972
- break;
3973
- }
3974
-
3975
- return;
3976
-
3977
- case 'Escape':
3978
- if (menuIsOpen) {
3979
- _this.inputIsHiddenAfterUpdate = false;
3980
-
3981
- _this.onInputChange('', {
3982
- action: 'menu-close'
3983
- });
3984
-
3985
- _this.onMenuClose();
3986
- } else if (isClearable && escapeClearsValue) {
3987
- _this.clearValue();
3988
- }
3989
-
3990
- break;
3991
-
3992
- case ' ':
3993
- // space
3994
- if (inputValue) {
3995
- return;
3996
- }
3997
-
3998
- if (!menuIsOpen) {
3999
- _this.openMenu('first');
4000
-
4001
- break;
4002
- }
4003
-
4004
- if (!focusedOption) return;
4005
-
4006
- _this.selectOption(focusedOption);
4007
-
4008
- break;
4009
-
4010
- case 'ArrowUp':
4011
- if (menuIsOpen) {
4012
- _this.focusOption('up');
4013
- } else {
4014
- _this.openMenu('last');
4015
- }
4016
-
4017
- break;
4018
-
4019
- case 'ArrowDown':
4020
- if (menuIsOpen) {
4021
- _this.focusOption('down');
4022
- } else {
4023
- _this.openMenu('first');
4024
- }
4025
-
4026
- break;
4027
-
4028
- case 'PageUp':
4029
- if (!menuIsOpen) return;
4030
-
4031
- _this.focusOption('pageup');
4032
-
4033
- break;
4034
-
4035
- case 'PageDown':
4036
- if (!menuIsOpen) return;
4037
-
4038
- _this.focusOption('pagedown');
4039
-
4040
- break;
4041
-
4042
- case 'Home':
4043
- if (!menuIsOpen) return;
4044
-
4045
- _this.focusOption('first');
4046
-
4047
- break;
4048
-
4049
- case 'End':
4050
- if (!menuIsOpen) return;
4051
-
4052
- _this.focusOption('last');
4053
-
4054
- break;
4055
-
4056
- default:
4057
- return;
4058
- }
4059
-
4060
- event.preventDefault();
4061
- });
4062
-
4063
- var value = _props.value;
4064
- _this.cacheComponents = Object(__WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */])(_this.cacheComponents, exportedEqual).bind(_assertThisInitialized(_assertThisInitialized(_this)));
4065
-
4066
- _this.cacheComponents(_props.components);
4067
-
4068
- _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
4069
-
4070
- var _selectValue = cleanValue(value);
4071
-
4072
- var _menuOptions = _this.buildMenuOptions(_props, _selectValue);
4073
-
4074
- _this.state.menuOptions = _menuOptions;
4075
- _this.state.selectValue = _selectValue;
4076
- return _this;
4077
- }
4078
-
4079
- _createClass(Select, [{
4080
- key: "componentDidMount",
4081
- value: function componentDidMount() {
4082
- this.startListeningComposition();
4083
- this.startListeningToTouch();
4084
-
4085
- if (this.props.closeMenuOnScroll && document && document.addEventListener) {
4086
- // Listen to all scroll events, and filter them out inside of 'onScroll'
4087
- document.addEventListener('scroll', this.onScroll, true);
4088
- }
4089
-
4090
- if (this.props.autoFocus) {
4091
- this.focusInput();
4092
- }
4093
- }
4094
- }, {
4095
- key: "componentWillReceiveProps",
4096
- value: function componentWillReceiveProps(nextProps) {
4097
- var _this$props8 = this.props,
4098
- options = _this$props8.options,
4099
- value = _this$props8.value,
4100
- inputValue = _this$props8.inputValue; // re-cache custom components
4101
-
4102
- this.cacheComponents(nextProps.components); // rebuild the menu options
4103
-
4104
- if (nextProps.value !== value || nextProps.options !== options || nextProps.inputValue !== inputValue) {
4105
- var selectValue = cleanValue(nextProps.value);
4106
- var menuOptions = this.buildMenuOptions(nextProps, selectValue);
4107
- var focusedValue = this.getNextFocusedValue(selectValue);
4108
- var focusedOption = this.getNextFocusedOption(menuOptions.focusable);
4109
- this.setState({
4110
- menuOptions: menuOptions,
4111
- selectValue: selectValue,
4112
- focusedOption: focusedOption,
4113
- focusedValue: focusedValue
4114
- });
4115
- } // some updates should toggle the state of the input visibility
4116
-
4117
-
4118
- if (this.inputIsHiddenAfterUpdate != null) {
4119
- this.setState({
4120
- inputIsHidden: this.inputIsHiddenAfterUpdate
4121
- });
4122
- delete this.inputIsHiddenAfterUpdate;
4123
- }
4124
- }
4125
- }, {
4126
- key: "componentDidUpdate",
4127
- value: function componentDidUpdate(prevProps) {
4128
- var _this$props9 = this.props,
4129
- isDisabled = _this$props9.isDisabled,
4130
- menuIsOpen = _this$props9.menuIsOpen;
4131
- var isFocused = this.state.isFocused;
4132
-
4133
- if ( // ensure focus is restored correctly when the control becomes enabled
4134
- isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens
4135
- isFocused && menuIsOpen && !prevProps.menuIsOpen) {
4136
- this.focusInput();
4137
- } // scroll the focused option into view if necessary
4138
-
4139
-
4140
- if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) {
4141
- scrollIntoView(this.menuListRef, this.focusedOptionRef);
4142
- }
4143
-
4144
- this.scrollToFocusedOptionOnUpdate = false;
4145
- }
4146
- }, {
4147
- key: "componentWillUnmount",
4148
- value: function componentWillUnmount() {
4149
- this.stopListeningComposition();
4150
- this.stopListeningToTouch();
4151
- document.removeEventListener('scroll', this.onScroll, true);
4152
- }
4153
- }, {
4154
- key: "onMenuOpen",
4155
- // ==============================
4156
- // Consumer Handlers
4157
- // ==============================
4158
- value: function onMenuOpen() {
4159
- this.props.onMenuOpen();
4160
- }
4161
- }, {
4162
- key: "onMenuClose",
4163
- value: function onMenuClose() {
4164
- var _this$props10 = this.props,
4165
- isSearchable = _this$props10.isSearchable,
4166
- isMulti = _this$props10.isMulti;
4167
- this.announceAriaLiveContext({
4168
- event: 'input',
4169
- context: {
4170
- isSearchable: isSearchable,
4171
- isMulti: isMulti
4172
- }
4173
- });
4174
- this.onInputChange('', {
4175
- action: 'menu-close'
4176
- });
4177
- this.props.onMenuClose();
4178
- }
4179
- }, {
4180
- key: "onInputChange",
4181
- value: function onInputChange(newValue, actionMeta) {
4182
- this.props.onInputChange(newValue, actionMeta);
4183
- } // ==============================
4184
- // Methods
4185
- // ==============================
4186
-
4187
- }, {
4188
- key: "focusInput",
4189
- value: function focusInput() {
4190
- if (!this.inputRef) return;
4191
- this.inputRef.focus();
4192
- }
4193
- }, {
4194
- key: "blurInput",
4195
- value: function blurInput() {
4196
- if (!this.inputRef) return;
4197
- this.inputRef.blur();
4198
- } // aliased for consumers
4199
-
4200
- }, {
4201
- key: "openMenu",
4202
- value: function openMenu(focusOption) {
4203
- var _this$state3 = this.state,
4204
- menuOptions = _this$state3.menuOptions,
4205
- selectValue = _this$state3.selectValue,
4206
- isFocused = _this$state3.isFocused;
4207
- var isMulti = this.props.isMulti;
4208
- var openAtIndex = focusOption === 'first' ? 0 : menuOptions.focusable.length - 1;
4209
-
4210
- if (!isMulti) {
4211
- var selectedIndex = menuOptions.focusable.indexOf(selectValue[0]);
4212
-
4213
- if (selectedIndex > -1) {
4214
- openAtIndex = selectedIndex;
4215
- }
4216
- } // only scroll if the menu isn't already open
4217
-
4218
-
4219
- this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef);
4220
- this.inputIsHiddenAfterUpdate = false;
4221
- this.onMenuOpen();
4222
- this.setState({
4223
- focusedValue: null,
4224
- focusedOption: menuOptions.focusable[openAtIndex]
4225
- });
4226
- this.announceAriaLiveContext({
4227
- event: 'menu'
4228
- });
4229
- }
4230
- }, {
4231
- key: "focusValue",
4232
- value: function focusValue(direction) {
4233
- var _this$props11 = this.props,
4234
- isMulti = _this$props11.isMulti,
4235
- isSearchable = _this$props11.isSearchable;
4236
- var _this$state4 = this.state,
4237
- selectValue = _this$state4.selectValue,
4238
- focusedValue = _this$state4.focusedValue; // Only multiselects support value focusing
4239
-
4240
- if (!isMulti) return;
4241
- this.setState({
4242
- focusedOption: null
4243
- });
4244
- var focusedIndex = selectValue.indexOf(focusedValue);
4245
-
4246
- if (!focusedValue) {
4247
- focusedIndex = -1;
4248
- this.announceAriaLiveContext({
4249
- event: 'value'
4250
- });
4251
- }
4252
-
4253
- var lastIndex = selectValue.length - 1;
4254
- var nextFocus = -1;
4255
- if (!selectValue.length) return;
4256
-
4257
- switch (direction) {
4258
- case 'previous':
4259
- if (focusedIndex === 0) {
4260
- // don't cycle from the start to the end
4261
- nextFocus = 0;
4262
- } else if (focusedIndex === -1) {
4263
- // if nothing is focused, focus the last value first
4264
- nextFocus = lastIndex;
4265
- } else {
4266
- nextFocus = focusedIndex - 1;
4267
- }
4268
-
4269
- break;
4270
-
4271
- case 'next':
4272
- if (focusedIndex > -1 && focusedIndex < lastIndex) {
4273
- nextFocus = focusedIndex + 1;
4274
- }
4275
-
4276
- break;
4277
- }
4278
-
4279
- if (nextFocus === -1) {
4280
- this.announceAriaLiveContext({
4281
- event: 'input',
4282
- context: {
4283
- isSearchable: isSearchable,
4284
- isMulti: isMulti
4285
- }
4286
- });
4287
- }
4288
-
4289
- this.setState({
4290
- inputIsHidden: nextFocus === -1 ? false : true,
4291
- focusedValue: selectValue[nextFocus]
4292
- });
4293
- }
4294
- }, {
4295
- key: "focusOption",
4296
- value: function focusOption() {
4297
- var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'first';
4298
- var pageSize = this.props.pageSize;
4299
- var _this$state5 = this.state,
4300
- focusedOption = _this$state5.focusedOption,
4301
- menuOptions = _this$state5.menuOptions;
4302
- var options = menuOptions.focusable;
4303
- if (!options.length) return;
4304
- var nextFocus = 0; // handles 'first'
4305
-
4306
- var focusedIndex = options.indexOf(focusedOption);
4307
-
4308
- if (!focusedOption) {
4309
- focusedIndex = -1;
4310
- this.announceAriaLiveContext({
4311
- event: 'menu'
4312
- });
4313
- }
4314
-
4315
- if (direction === 'up') {
4316
- nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1;
4317
- } else if (direction === 'down') {
4318
- nextFocus = (focusedIndex + 1) % options.length;
4319
- } else if (direction === 'pageup') {
4320
- nextFocus = focusedIndex - pageSize;
4321
- if (nextFocus < 0) nextFocus = 0;
4322
- } else if (direction === 'pagedown') {
4323
- nextFocus = focusedIndex + pageSize;
4324
- if (nextFocus > options.length - 1) nextFocus = options.length - 1;
4325
- } else if (direction === 'last') {
4326
- nextFocus = options.length - 1;
4327
- }
4328
-
4329
- this.scrollToFocusedOptionOnUpdate = true;
4330
- this.setState({
4331
- focusedOption: options[nextFocus],
4332
- focusedValue: null
4333
- });
4334
- this.announceAriaLiveContext({
4335
- event: 'menu',
4336
- context: {
4337
- isDisabled: isOptionDisabled(options[nextFocus])
4338
- }
4339
- });
4340
- }
4341
- }, {
4342
- key: "getTheme",
4343
- // ==============================
4344
- // Getters
4345
- // ==============================
4346
- value: function getTheme() {
4347
- // Use the default theme if there are no customizations.
4348
- if (!this.props.theme) {
4349
- return defaultTheme;
4350
- } // If the theme prop is a function, assume the function
4351
- // knows how to merge the passed-in default theme with
4352
- // its own modifications.
4353
-
4354
-
4355
- if (typeof this.props.theme === 'function') {
4356
- return this.props.theme(defaultTheme);
4357
- } // Otherwise, if a plain theme object was passed in,
4358
- // overlay it with the default theme.
4359
-
4360
-
4361
- return _objectSpread({}, defaultTheme, this.props.theme);
4362
- }
4363
- }, {
4364
- key: "getCommonProps",
4365
- value: function getCommonProps() {
4366
- var clearValue = this.clearValue,
4367
- getStyles = this.getStyles,
4368
- setValue = this.setValue,
4369
- selectOption = this.selectOption,
4370
- props = this.props;
4371
- var classNamePrefix = props.classNamePrefix,
4372
- isMulti = props.isMulti,
4373
- isRtl = props.isRtl,
4374
- options = props.options;
4375
- var selectValue = this.state.selectValue;
4376
- var hasValue = this.hasValue();
4377
-
4378
- var getValue = function getValue() {
4379
- return selectValue;
4380
- };
4381
-
4382
- var cx = classNames.bind(null, classNamePrefix);
4383
- return {
4384
- cx: cx,
4385
- clearValue: clearValue,
4386
- getStyles: getStyles,
4387
- getValue: getValue,
4388
- hasValue: hasValue,
4389
- isMulti: isMulti,
4390
- isRtl: isRtl,
4391
- options: options,
4392
- selectOption: selectOption,
4393
- setValue: setValue,
4394
- selectProps: props,
4395
- theme: this.getTheme()
4396
- };
4397
- }
4398
- }, {
4399
- key: "getNextFocusedValue",
4400
- value: function getNextFocusedValue(nextSelectValue) {
4401
- if (this.clearFocusValueOnUpdate) {
4402
- this.clearFocusValueOnUpdate = false;
4403
- return null;
4404
- }
4405
-
4406
- var _this$state6 = this.state,
4407
- focusedValue = _this$state6.focusedValue,
4408
- lastSelectValue = _this$state6.selectValue;
4409
- var lastFocusedIndex = lastSelectValue.indexOf(focusedValue);
4410
-
4411
- if (lastFocusedIndex > -1) {
4412
- var nextFocusedIndex = nextSelectValue.indexOf(focusedValue);
4413
-
4414
- if (nextFocusedIndex > -1) {
4415
- // the focused value is still in the selectValue, return it
4416
- return focusedValue;
4417
- } else if (lastFocusedIndex < nextSelectValue.length) {
4418
- // the focusedValue is not present in the next selectValue array by
4419
- // reference, so return the new value at the same index
4420
- return nextSelectValue[lastFocusedIndex];
4421
- }
4422
- }
4423
-
4424
- return null;
4425
- }
4426
- }, {
4427
- key: "getNextFocusedOption",
4428
- value: function getNextFocusedOption(options) {
4429
- var lastFocusedOption = this.state.focusedOption;
4430
- return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];
4431
- }
4432
- }, {
4433
- key: "hasValue",
4434
- value: function hasValue() {
4435
- var selectValue = this.state.selectValue;
4436
- return selectValue.length > 0;
4437
- }
4438
- }, {
4439
- key: "hasOptions",
4440
- value: function hasOptions() {
4441
- return !!this.state.menuOptions.render.length;
4442
- }
4443
- }, {
4444
- key: "countOptions",
4445
- value: function countOptions() {
4446
- return this.state.menuOptions.focusable.length;
4447
- }
4448
- }, {
4449
- key: "isClearable",
4450
- value: function isClearable() {
4451
- var _this$props12 = this.props,
4452
- isClearable = _this$props12.isClearable,
4453
- isMulti = _this$props12.isMulti; // single select, by default, IS NOT clearable
4454
- // multi select, by default, IS clearable
4455
-
4456
- if (isClearable === undefined) return isMulti;
4457
- return isClearable;
4458
- }
4459
- }, {
4460
- key: "isOptionDisabled",
4461
- value: function isOptionDisabled$$1(option, selectValue) {
4462
- return typeof this.props.isOptionDisabled === 'function' ? this.props.isOptionDisabled(option, selectValue) : false;
4463
- }
4464
- }, {
4465
- key: "isOptionSelected",
4466
- value: function isOptionSelected(option, selectValue) {
4467
- var _this2 = this;
4468
-
4469
- if (selectValue.indexOf(option) > -1) return true;
4470
-
4471
- if (typeof this.props.isOptionSelected === 'function') {
4472
- return this.props.isOptionSelected(option, selectValue);
4473
- }
4474
-
4475
- var candidate = this.getOptionValue(option);
4476
- return selectValue.some(function (i) {
4477
- return _this2.getOptionValue(i) === candidate;
4478
- });
4479
- }
4480
- }, {
4481
- key: "filterOption",
4482
- value: function filterOption(option, inputValue) {
4483
- return this.props.filterOption ? this.props.filterOption(option, inputValue) : true;
4484
- }
4485
- }, {
4486
- key: "formatOptionLabel",
4487
- value: function formatOptionLabel(data, context) {
4488
- if (typeof this.props.formatOptionLabel === 'function') {
4489
- var inputValue = this.props.inputValue;
4490
- var selectValue = this.state.selectValue;
4491
- return this.props.formatOptionLabel(data, {
4492
- context: context,
4493
- inputValue: inputValue,
4494
- selectValue: selectValue
4495
- });
4496
- } else {
4497
- return this.getOptionLabel(data);
4498
- }
4499
- }
4500
- }, {
4501
- key: "formatGroupLabel",
4502
- value: function formatGroupLabel$$1(data) {
4503
- return this.props.formatGroupLabel(data);
4504
- } // ==============================
4505
- // Mouse Handlers
4506
- // ==============================
4507
-
4508
- }, {
4509
- key: "startListeningComposition",
4510
- // ==============================
4511
- // Composition Handlers
4512
- // ==============================
4513
- value: function startListeningComposition() {
4514
- if (document && document.addEventListener) {
4515
- document.addEventListener('compositionstart', this.onCompositionStart, false);
4516
- document.addEventListener('compositionend', this.onCompositionEnd, false);
4517
- }
4518
- }
4519
- }, {
4520
- key: "stopListeningComposition",
4521
- value: function stopListeningComposition() {
4522
- if (document && document.removeEventListener) {
4523
- document.removeEventListener('compositionstart', this.onCompositionStart);
4524
- document.removeEventListener('compositionend', this.onCompositionEnd);
4525
- }
4526
- }
4527
- }, {
4528
- key: "startListeningToTouch",
4529
- // ==============================
4530
- // Touch Handlers
4531
- // ==============================
4532
- value: function startListeningToTouch() {
4533
- if (document && document.addEventListener) {
4534
- document.addEventListener('touchstart', this.onTouchStart, false);
4535
- document.addEventListener('touchmove', this.onTouchMove, false);
4536
- document.addEventListener('touchend', this.onTouchEnd, false);
4537
- }
4538
- }
4539
- }, {
4540
- key: "stopListeningToTouch",
4541
- value: function stopListeningToTouch() {
4542
- if (document && document.removeEventListener) {
4543
- document.removeEventListener('touchstart', this.onTouchStart);
4544
- document.removeEventListener('touchmove', this.onTouchMove);
4545
- document.removeEventListener('touchend', this.onTouchEnd);
4546
- }
4547
- }
4548
- }, {
4549
- key: "buildMenuOptions",
4550
- // ==============================
4551
- // Menu Options
4552
- // ==============================
4553
- value: function buildMenuOptions(props, selectValue) {
4554
- var _this3 = this;
4555
-
4556
- var _props$inputValue = props.inputValue,
4557
- inputValue = _props$inputValue === void 0 ? '' : _props$inputValue,
4558
- options = props.options;
4559
-
4560
- var toOption = function toOption(option, id) {
4561
- var isDisabled = _this3.isOptionDisabled(option, selectValue);
4562
-
4563
- var isSelected = _this3.isOptionSelected(option, selectValue);
4564
-
4565
- var label = _this3.getOptionLabel(option);
4566
-
4567
- var value = _this3.getOptionValue(option);
4568
-
4569
- if (_this3.shouldHideSelectedOptions() && isSelected || !_this3.filterOption({
4570
- label: label,
4571
- value: value,
4572
- data: option
4573
- }, inputValue)) {
4574
- return;
4575
- }
4576
-
4577
- var onHover = isDisabled ? undefined : function () {
4578
- return _this3.onOptionHover(option);
4579
- };
4580
- var onSelect = isDisabled ? undefined : function () {
4581
- return _this3.selectOption(option);
4582
- };
4583
- var optionId = "".concat(_this3.getElementId('option'), "-").concat(id);
4584
- return {
4585
- innerProps: {
4586
- id: optionId,
4587
- onClick: onSelect,
4588
- onMouseMove: onHover,
4589
- onMouseOver: onHover,
4590
- tabIndex: -1
4591
- },
4592
- data: option,
4593
- isDisabled: isDisabled,
4594
- isSelected: isSelected,
4595
- key: optionId,
4596
- label: label,
4597
- type: 'option',
4598
- value: value
4599
- };
4600
- };
4601
-
4602
- return options.reduce(function (acc, item, itemIndex) {
4603
- if (item.options) {
4604
- // TODO needs a tidier implementation
4605
- if (!_this3.hasGroups) _this3.hasGroups = true;
4606
- var items = item.options;
4607
- var children = items.map(function (child, i) {
4608
- var option = toOption(child, "".concat(itemIndex, "-").concat(i));
4609
- if (option) acc.focusable.push(child);
4610
- return option;
4611
- }).filter(Boolean);
4612
-
4613
- if (children.length) {
4614
- var groupId = "".concat(_this3.getElementId('group'), "-").concat(itemIndex);
4615
- acc.render.push({
4616
- type: 'group',
4617
- key: groupId,
4618
- data: item,
4619
- options: children
4620
- });
4621
- }
4622
- } else {
4623
- var option = toOption(item, "".concat(itemIndex));
4624
-
4625
- if (option) {
4626
- acc.render.push(option);
4627
- acc.focusable.push(item);
4628
- }
4629
- }
4630
-
4631
- return acc;
4632
- }, {
4633
- render: [],
4634
- focusable: []
4635
- });
4636
- } // ==============================
4637
- // Renderers
4638
- // ==============================
4639
-
4640
- }, {
4641
- key: "constructAriaLiveMessage",
4642
- value: function constructAriaLiveMessage() {
4643
- var _this$state7 = this.state,
4644
- ariaLiveContext = _this$state7.ariaLiveContext,
4645
- selectValue = _this$state7.selectValue,
4646
- focusedValue = _this$state7.focusedValue,
4647
- focusedOption = _this$state7.focusedOption;
4648
- var _this$props13 = this.props,
4649
- options = _this$props13.options,
4650
- menuIsOpen = _this$props13.menuIsOpen,
4651
- inputValue = _this$props13.inputValue,
4652
- screenReaderStatus = _this$props13.screenReaderStatus; // An aria live message representing the currently focused value in the select.
4653
-
4654
- var focusedValueMsg = focusedValue ? valueFocusAriaMessage({
4655
- focusedValue: focusedValue,
4656
- getOptionLabel: this.getOptionLabel,
4657
- selectValue: selectValue
4658
- }) : ''; // An aria live message representing the currently focused option in the select.
4659
-
4660
- var focusedOptionMsg = focusedOption && menuIsOpen ? optionFocusAriaMessage({
4661
- focusedOption: focusedOption,
4662
- getOptionLabel: this.getOptionLabel,
4663
- options: options
4664
- }) : ''; // An aria live message representing the set of focusable results and current searchterm/inputvalue.
4665
-
4666
- var resultsMsg = resultsAriaMessage({
4667
- inputValue: inputValue,
4668
- screenReaderMessage: screenReaderStatus({
4669
- count: this.countOptions()
4670
- })
4671
- });
4672
- return "".concat(focusedValueMsg, " ").concat(focusedOptionMsg, " ").concat(resultsMsg, " ").concat(ariaLiveContext);
4673
- }
4674
- }, {
4675
- key: "renderInput",
4676
- value: function renderInput() {
4677
- var _this$props14 = this.props,
4678
- isDisabled = _this$props14.isDisabled,
4679
- isSearchable = _this$props14.isSearchable,
4680
- inputId = _this$props14.inputId,
4681
- inputValue = _this$props14.inputValue,
4682
- tabIndex = _this$props14.tabIndex;
4683
- var Input = this.components.Input;
4684
- var inputIsHidden = this.state.inputIsHidden;
4685
- var id = inputId || this.getElementId('input');
4686
-
4687
- if (!isSearchable) {
4688
- // use a dummy input to maintain focus/blur functionality
4689
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DummyInput, {
4690
- id: id,
4691
- innerRef: this.getInputRef,
4692
- onBlur: this.onInputBlur,
4693
- onChange: noop,
4694
- onFocus: this.onInputFocus,
4695
- readOnly: true,
4696
- disabled: isDisabled,
4697
- tabIndex: tabIndex,
4698
- value: ""
4699
- });
4700
- } // aria attributes makes the JSX "noisy", separated for clarity
4701
-
4702
-
4703
- var ariaAttributes = {
4704
- 'aria-autocomplete': 'list',
4705
- 'aria-label': this.props['aria-label'],
4706
- 'aria-labelledby': this.props['aria-labelledby']
4707
- };
4708
- var _this$commonProps = this.commonProps,
4709
- cx = _this$commonProps.cx,
4710
- theme = _this$commonProps.theme,
4711
- selectProps = _this$commonProps.selectProps;
4712
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Input, _extends({
4713
- autoCapitalize: "none",
4714
- autoComplete: "off",
4715
- autoCorrect: "off",
4716
- cx: cx,
4717
- getStyles: this.getStyles,
4718
- id: id,
4719
- innerRef: this.getInputRef,
4720
- isDisabled: isDisabled,
4721
- isHidden: inputIsHidden,
4722
- onBlur: this.onInputBlur,
4723
- onChange: this.handleInputChange,
4724
- onFocus: this.onInputFocus,
4725
- selectProps: selectProps,
4726
- spellCheck: "false",
4727
- tabIndex: tabIndex,
4728
- theme: theme,
4729
- type: "text",
4730
- value: inputValue
4731
- }, ariaAttributes));
4732
- }
4733
- }, {
4734
- key: "renderPlaceholderOrValue",
4735
- value: function renderPlaceholderOrValue() {
4736
- var _this4 = this;
4737
-
4738
- var _this$components = this.components,
4739
- MultiValue = _this$components.MultiValue,
4740
- MultiValueContainer = _this$components.MultiValueContainer,
4741
- MultiValueLabel = _this$components.MultiValueLabel,
4742
- MultiValueRemove = _this$components.MultiValueRemove,
4743
- SingleValue = _this$components.SingleValue,
4744
- Placeholder = _this$components.Placeholder;
4745
- var commonProps = this.commonProps;
4746
- var _this$props15 = this.props,
4747
- controlShouldRenderValue = _this$props15.controlShouldRenderValue,
4748
- isDisabled = _this$props15.isDisabled,
4749
- isMulti = _this$props15.isMulti,
4750
- inputValue = _this$props15.inputValue,
4751
- placeholder = _this$props15.placeholder;
4752
- var _this$state8 = this.state,
4753
- selectValue = _this$state8.selectValue,
4754
- focusedValue = _this$state8.focusedValue,
4755
- isFocused = _this$state8.isFocused;
4756
-
4757
- if (!this.hasValue() || !controlShouldRenderValue) {
4758
- return inputValue ? null : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Placeholder, _extends({}, commonProps, {
4759
- key: "placeholder",
4760
- isDisabled: isDisabled,
4761
- isFocused: isFocused
4762
- }), placeholder);
4763
- }
4764
-
4765
- if (isMulti) {
4766
- var selectValues = selectValue.map(function (opt) {
4767
- var isOptionFocused = opt === focusedValue;
4768
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MultiValue, _extends({}, commonProps, {
4769
- components: {
4770
- Container: MultiValueContainer,
4771
- Label: MultiValueLabel,
4772
- Remove: MultiValueRemove
4773
- },
4774
- isFocused: isOptionFocused,
4775
- isDisabled: isDisabled,
4776
- key: _this4.getOptionValue(opt),
4777
- removeProps: {
4778
- onClick: function onClick() {
4779
- return _this4.removeValue(opt);
4780
- },
4781
- onTouchEnd: function onTouchEnd() {
4782
- return _this4.removeValue(opt);
4783
- },
4784
- onMouseDown: function onMouseDown(e) {
4785
- e.preventDefault();
4786
- e.stopPropagation();
4787
- }
4788
- },
4789
- data: opt
4790
- }), _this4.formatOptionLabel(opt, 'value'));
4791
- });
4792
- return selectValues;
4793
- }
4794
-
4795
- if (inputValue) {
4796
- return null;
4797
- }
4798
-
4799
- var singleValue = selectValue[0];
4800
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SingleValue, _extends({}, commonProps, {
4801
- data: singleValue,
4802
- isDisabled: isDisabled
4803
- }), this.formatOptionLabel(singleValue, 'value'));
4804
- }
4805
- }, {
4806
- key: "renderClearIndicator",
4807
- value: function renderClearIndicator() {
4808
- var ClearIndicator = this.components.ClearIndicator;
4809
- var commonProps = this.commonProps;
4810
- var _this$props16 = this.props,
4811
- isDisabled = _this$props16.isDisabled,
4812
- isLoading = _this$props16.isLoading;
4813
- var isFocused = this.state.isFocused;
4814
-
4815
- if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) {
4816
- return null;
4817
- }
4818
-
4819
- var innerProps = {
4820
- onMouseDown: this.onClearIndicatorMouseDown,
4821
- onTouchEnd: this.onClearIndicatorTouchEnd,
4822
- 'aria-hidden': 'true'
4823
- };
4824
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ClearIndicator, _extends({}, commonProps, {
4825
- innerProps: innerProps,
4826
- isFocused: isFocused
4827
- }));
4828
- }
4829
- }, {
4830
- key: "renderLoadingIndicator",
4831
- value: function renderLoadingIndicator() {
4832
- var LoadingIndicator = this.components.LoadingIndicator;
4833
- var commonProps = this.commonProps;
4834
- var _this$props17 = this.props,
4835
- isDisabled = _this$props17.isDisabled,
4836
- isLoading = _this$props17.isLoading;
4837
- var isFocused = this.state.isFocused;
4838
- if (!LoadingIndicator || !isLoading) return null;
4839
- var innerProps = {
4840
- 'aria-hidden': 'true'
4841
- };
4842
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingIndicator, _extends({}, commonProps, {
4843
- innerProps: innerProps,
4844
- isDisabled: isDisabled,
4845
- isFocused: isFocused
4846
- }));
4847
- }
4848
- }, {
4849
- key: "renderIndicatorSeparator",
4850
- value: function renderIndicatorSeparator() {
4851
- var _this$components2 = this.components,
4852
- DropdownIndicator = _this$components2.DropdownIndicator,
4853
- IndicatorSeparator = _this$components2.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator
4854
-
4855
- if (!DropdownIndicator || !IndicatorSeparator) return null;
4856
- var commonProps = this.commonProps;
4857
- var isDisabled = this.props.isDisabled;
4858
- var isFocused = this.state.isFocused;
4859
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(IndicatorSeparator, _extends({}, commonProps, {
4860
- isDisabled: isDisabled,
4861
- isFocused: isFocused
4862
- }));
4863
- }
4864
- }, {
4865
- key: "renderDropdownIndicator",
4866
- value: function renderDropdownIndicator() {
4867
- var DropdownIndicator = this.components.DropdownIndicator;
4868
- if (!DropdownIndicator) return null;
4869
- var commonProps = this.commonProps;
4870
- var isDisabled = this.props.isDisabled;
4871
- var isFocused = this.state.isFocused;
4872
- var innerProps = {
4873
- onMouseDown: this.onDropdownIndicatorMouseDown,
4874
- onTouchEnd: this.onDropdownIndicatorTouchEnd,
4875
- 'aria-hidden': 'true'
4876
- };
4877
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DropdownIndicator, _extends({}, commonProps, {
4878
- innerProps: innerProps,
4879
- isDisabled: isDisabled,
4880
- isFocused: isFocused
4881
- }));
4882
- }
4883
- }, {
4884
- key: "renderMenu",
4885
- value: function renderMenu() {
4886
- var _this5 = this;
4887
-
4888
- var _this$components3 = this.components,
4889
- Group = _this$components3.Group,
4890
- GroupHeading = _this$components3.GroupHeading,
4891
- Menu$$1 = _this$components3.Menu,
4892
- MenuList$$1 = _this$components3.MenuList,
4893
- MenuPortal$$1 = _this$components3.MenuPortal,
4894
- LoadingMessage$$1 = _this$components3.LoadingMessage,
4895
- NoOptionsMessage$$1 = _this$components3.NoOptionsMessage,
4896
- Option = _this$components3.Option;
4897
- var commonProps = this.commonProps;
4898
- var _this$state9 = this.state,
4899
- focusedOption = _this$state9.focusedOption,
4900
- menuOptions = _this$state9.menuOptions;
4901
- var _this$props18 = this.props,
4902
- captureMenuScroll = _this$props18.captureMenuScroll,
4903
- inputValue = _this$props18.inputValue,
4904
- isLoading = _this$props18.isLoading,
4905
- loadingMessage = _this$props18.loadingMessage,
4906
- minMenuHeight = _this$props18.minMenuHeight,
4907
- maxMenuHeight = _this$props18.maxMenuHeight,
4908
- menuIsOpen = _this$props18.menuIsOpen,
4909
- menuPlacement = _this$props18.menuPlacement,
4910
- menuPosition = _this$props18.menuPosition,
4911
- menuPortalTarget = _this$props18.menuPortalTarget,
4912
- menuShouldBlockScroll = _this$props18.menuShouldBlockScroll,
4913
- menuShouldScrollIntoView = _this$props18.menuShouldScrollIntoView,
4914
- noOptionsMessage = _this$props18.noOptionsMessage,
4915
- onMenuScrollToTop = _this$props18.onMenuScrollToTop,
4916
- onMenuScrollToBottom = _this$props18.onMenuScrollToBottom;
4917
- if (!menuIsOpen) return null; // TODO: Internal Option Type here
4918
-
4919
- var render = function render(props) {
4920
- // for performance, the menu options in state aren't changed when the
4921
- // focused option changes so we calculate additional props based on that
4922
- var isFocused = focusedOption === props.data;
4923
- props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined;
4924
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Option, _extends({}, commonProps, props, {
4925
- isFocused: isFocused
4926
- }), _this5.formatOptionLabel(props.data, 'menu'));
4927
- };
4928
-
4929
- var menuUI;
4930
-
4931
- if (this.hasOptions()) {
4932
- menuUI = menuOptions.render.map(function (item) {
4933
- if (item.type === 'group') {
4934
- var type = item.type,
4935
- group = _objectWithoutProperties(item, ["type"]);
4936
-
4937
- var headingId = "".concat(item.key, "-heading");
4938
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Group, _extends({}, commonProps, group, {
4939
- Heading: GroupHeading,
4940
- headingProps: {
4941
- id: headingId
4942
- },
4943
- label: _this5.formatGroupLabel(item.data)
4944
- }), item.options.map(function (option) {
4945
- return render(option);
4946
- }));
4947
- } else if (item.type === 'option') {
4948
- return render(item);
4949
- }
4950
- });
4951
- } else if (isLoading) {
4952
- var message = loadingMessage({
4953
- inputValue: inputValue
4954
- });
4955
- if (message === null) return null;
4956
- menuUI = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingMessage$$1, commonProps, message);
4957
- } else {
4958
- var _message = noOptionsMessage({
4959
- inputValue: inputValue
4960
- });
4961
-
4962
- if (_message === null) return null;
4963
- menuUI = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NoOptionsMessage$$1, commonProps, _message);
4964
- }
4965
-
4966
- var menuPlacementProps = {
4967
- minMenuHeight: minMenuHeight,
4968
- maxMenuHeight: maxMenuHeight,
4969
- menuPlacement: menuPlacement,
4970
- menuPosition: menuPosition,
4971
- menuShouldScrollIntoView: menuShouldScrollIntoView
4972
- };
4973
- var menuElement = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function (_ref6) {
4974
- var ref = _ref6.ref,
4975
- _ref6$placerProps = _ref6.placerProps,
4976
- placement = _ref6$placerProps.placement,
4977
- maxHeight = _ref6$placerProps.maxHeight;
4978
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Menu$$1, _extends({}, commonProps, menuPlacementProps, {
4979
- innerRef: ref,
4980
- innerProps: {
4981
- onMouseDown: _this5.onMenuMouseDown,
4982
- onMouseMove: _this5.onMenuMouseMove
4983
- },
4984
- isLoading: isLoading,
4985
- placement: placement
4986
- }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollCaptorSwitch, {
4987
- isEnabled: captureMenuScroll,
4988
- onTopArrive: onMenuScrollToTop,
4989
- onBottomArrive: onMenuScrollToBottom
4990
- }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollBlock, {
4991
- isEnabled: menuShouldBlockScroll
4992
- }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuList$$1, _extends({}, commonProps, {
4993
- innerRef: _this5.getMenuListRef,
4994
- isLoading: isLoading,
4995
- maxHeight: maxHeight
4996
- }), menuUI))));
4997
- }); // positioning behaviour is almost identical for portalled and fixed,
4998
- // so we use the same component. the actual portalling logic is forked
4999
- // within the component based on `menuPosition`
5000
-
5001
- return menuPortalTarget || menuPosition === 'fixed' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuPortal$$1, _extends({}, commonProps, {
5002
- appendTo: menuPortalTarget,
5003
- controlElement: this.controlRef,
5004
- menuPlacement: menuPlacement,
5005
- menuPosition: menuPosition
5006
- }), menuElement) : menuElement;
5007
- }
5008
- }, {
5009
- key: "renderFormField",
5010
- value: function renderFormField() {
5011
- var _this6 = this;
5012
-
5013
- var _this$props19 = this.props,
5014
- delimiter = _this$props19.delimiter,
5015
- isDisabled = _this$props19.isDisabled,
5016
- isMulti = _this$props19.isMulti,
5017
- name = _this$props19.name;
5018
- var selectValue = this.state.selectValue;
5019
- if (!name || isDisabled) return;
5020
-
5021
- if (isMulti) {
5022
- if (delimiter) {
5023
- var value = selectValue.map(function (opt) {
5024
- return _this6.getOptionValue(opt);
5025
- }).join(delimiter);
5026
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
5027
- name: name,
5028
- type: "hidden",
5029
- value: value
5030
- });
5031
- } else {
5032
- var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {
5033
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
5034
- key: "i-".concat(i),
5035
- name: name,
5036
- type: "hidden",
5037
- value: _this6.getOptionValue(opt)
5038
- });
5039
- }) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
5040
- name: name,
5041
- type: "hidden"
5042
- });
5043
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", null, input);
5044
- }
5045
- } else {
5046
- var _value = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';
5047
-
5048
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
5049
- name: name,
5050
- type: "hidden",
5051
- value: _value
5052
- });
5053
- }
5054
- }
5055
- }, {
5056
- key: "renderLiveRegion",
5057
- value: function renderLiveRegion() {
5058
- if (!this.state.isFocused) return null;
5059
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(A11yText, {
5060
- "aria-live": "assertive"
5061
- }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("p", {
5062
- id: "aria-selection-event"
5063
- }, "\xA0", this.state.ariaLiveSelection), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("p", {
5064
- id: "aria-context"
5065
- }, "\xA0", this.constructAriaLiveMessage()));
5066
- }
5067
- }, {
5068
- key: "render",
5069
- value: function render() {
5070
- var _this$components4 = this.components,
5071
- Control = _this$components4.Control,
5072
- IndicatorsContainer = _this$components4.IndicatorsContainer,
5073
- SelectContainer = _this$components4.SelectContainer,
5074
- ValueContainer = _this$components4.ValueContainer;
5075
- var _this$props20 = this.props,
5076
- className = _this$props20.className,
5077
- id = _this$props20.id,
5078
- isDisabled = _this$props20.isDisabled,
5079
- menuIsOpen = _this$props20.menuIsOpen;
5080
- var isFocused = this.state.isFocused;
5081
- var commonProps = this.commonProps = this.getCommonProps();
5082
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SelectContainer, _extends({}, commonProps, {
5083
- className: className,
5084
- innerProps: {
5085
- id: id,
5086
- onKeyDown: this.onKeyDown
5087
- },
5088
- isDisabled: isDisabled,
5089
- isFocused: isFocused
5090
- }), this.renderLiveRegion(), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Control, _extends({}, commonProps, {
5091
- innerRef: this.getControlRef,
5092
- innerProps: {
5093
- onMouseDown: this.onControlMouseDown,
5094
- onTouchEnd: this.onControlTouchEnd
5095
- },
5096
- isDisabled: isDisabled,
5097
- isFocused: isFocused,
5098
- menuIsOpen: menuIsOpen
5099
- }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ValueContainer, _extends({}, commonProps, {
5100
- isDisabled: isDisabled
5101
- }), this.renderPlaceholderOrValue(), this.renderInput()), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(IndicatorsContainer, _extends({}, commonProps, {
5102
- isDisabled: isDisabled
5103
- }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
5104
- }
5105
- }]);
5106
-
5107
- return Select;
5108
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
5109
-
5110
- _defineProperty(Select, "defaultProps", defaultProps);
5111
-
5112
- var defaultProps$1 = {
5113
- defaultInputValue: '',
5114
- defaultMenuIsOpen: false,
5115
- defaultValue: null
5116
- };
5117
-
5118
- var manageState = function manageState(SelectComponent) {
5119
- var _class, _temp;
5120
-
5121
- return _temp = _class =
5122
- /*#__PURE__*/
5123
- function (_Component) {
5124
- _inherits(StateManager, _Component);
5125
-
5126
- function StateManager() {
5127
- var _getPrototypeOf2;
5128
-
5129
- var _this;
5130
-
5131
- _classCallCheck(this, StateManager);
5132
-
5133
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5134
- args[_key] = arguments[_key];
5135
- }
5136
-
5137
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(StateManager)).call.apply(_getPrototypeOf2, [this].concat(args)));
5138
-
5139
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "select", void 0);
5140
-
5141
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
5142
- inputValue: _this.props.inputValue !== undefined ? _this.props.inputValue : _this.props.defaultInputValue,
5143
- menuIsOpen: _this.props.menuIsOpen !== undefined ? _this.props.menuIsOpen : _this.props.defaultMenuIsOpen,
5144
- value: _this.props.value !== undefined ? _this.props.value : _this.props.defaultValue
5145
- });
5146
-
5147
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onChange", function (value, actionMeta) {
5148
- _this.callProp('onChange', value, actionMeta);
5149
-
5150
- _this.setState({
5151
- value: value
5152
- });
5153
- });
5154
-
5155
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onInputChange", function (value, actionMeta) {
5156
- // TODO: for backwards compatibility, we allow the prop to return a new
5157
- // value, but now inputValue is a controllable prop we probably shouldn't
5158
- var newValue = _this.callProp('onInputChange', value, actionMeta);
5159
-
5160
- _this.setState({
5161
- inputValue: newValue !== undefined ? newValue : value
5162
- });
5163
- });
5164
-
5165
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMenuOpen", function () {
5166
- _this.callProp('onMenuOpen');
5167
-
5168
- _this.setState({
5169
- menuIsOpen: true
5170
- });
5171
- });
5172
-
5173
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMenuClose", function () {
5174
- _this.callProp('onMenuClose');
5175
-
5176
- _this.setState({
5177
- menuIsOpen: false
5178
- });
5179
- });
5180
-
5181
- return _this;
5182
- }
5183
-
5184
- _createClass(StateManager, [{
5185
- key: "focus",
5186
- value: function focus() {
5187
- this.select.focus();
5188
- }
5189
- }, {
5190
- key: "blur",
5191
- value: function blur() {
5192
- this.select.blur();
5193
- } // FIXME: untyped flow code, return any
5194
-
5195
- }, {
5196
- key: "getProp",
5197
- value: function getProp(key) {
5198
- return this.props[key] !== undefined ? this.props[key] : this.state[key];
5199
- } // FIXME: untyped flow code, return any
5200
-
5201
- }, {
5202
- key: "callProp",
5203
- value: function callProp(name) {
5204
- if (typeof this.props[name] === 'function') {
5205
- var _this$props;
5206
-
5207
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
5208
- args[_key2 - 1] = arguments[_key2];
5209
- }
5210
-
5211
- return (_this$props = this.props)[name].apply(_this$props, args);
5212
- }
5213
- }
5214
- }, {
5215
- key: "render",
5216
- value: function render() {
5217
- var _this2 = this;
5218
-
5219
- var _this$props2 = this.props,
5220
- defaultInputValue = _this$props2.defaultInputValue,
5221
- defaultMenuIsOpen = _this$props2.defaultMenuIsOpen,
5222
- defaultValue = _this$props2.defaultValue,
5223
- props = _objectWithoutProperties(_this$props2, ["defaultInputValue", "defaultMenuIsOpen", "defaultValue"]);
5224
-
5225
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SelectComponent, _extends({}, props, {
5226
- ref: function ref(_ref) {
5227
- _this2.select = _ref;
5228
- },
5229
- inputValue: this.getProp('inputValue'),
5230
- menuIsOpen: this.getProp('menuIsOpen'),
5231
- onChange: this.onChange,
5232
- onInputChange: this.onInputChange,
5233
- onMenuClose: this.onMenuClose,
5234
- onMenuOpen: this.onMenuOpen,
5235
- value: this.getProp('value')
5236
- }));
5237
- }
5238
- }]);
5239
-
5240
- return StateManager;
5241
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]), _defineProperty(_class, "defaultProps", defaultProps$1), _temp;
5242
- };
5243
-
5244
- var defaultProps$2 = {
5245
- cacheOptions: false,
5246
- defaultOptions: false,
5247
- filterOption: null
5248
- };
5249
- var makeAsyncSelect = function makeAsyncSelect(SelectComponent) {
5250
- var _class, _temp;
5251
-
5252
- return _temp = _class =
5253
- /*#__PURE__*/
5254
- function (_Component) {
5255
- _inherits(Async, _Component);
5256
-
5257
- function Async(props) {
5258
- var _this;
5259
-
5260
- _classCallCheck(this, Async);
5261
-
5262
- _this = _possibleConstructorReturn(this, _getPrototypeOf(Async).call(this));
5263
-
5264
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "select", void 0);
5265
-
5266
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastRequest", void 0);
5267
-
5268
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "mounted", false);
5269
-
5270
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "optionsCache", {});
5271
-
5272
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleInputChange", function (newValue, actionMeta) {
5273
- var _this$props = _this.props,
5274
- cacheOptions = _this$props.cacheOptions,
5275
- onInputChange = _this$props.onInputChange; // TODO
5276
-
5277
- var inputValue = handleInputChange(newValue, actionMeta, onInputChange);
5278
-
5279
- if (!inputValue) {
5280
- delete _this.lastRequest;
5281
-
5282
- _this.setState({
5283
- inputValue: '',
5284
- loadedInputValue: '',
5285
- loadedOptions: [],
5286
- isLoading: false,
5287
- passEmptyOptions: false
5288
- });
5289
-
5290
- return;
5291
- }
5292
-
5293
- if (cacheOptions && _this.optionsCache[inputValue]) {
5294
- _this.setState({
5295
- inputValue: inputValue,
5296
- loadedInputValue: inputValue,
5297
- loadedOptions: _this.optionsCache[inputValue],
5298
- isLoading: false,
5299
- passEmptyOptions: false
5300
- });
5301
- } else {
5302
- var request = _this.lastRequest = {};
5303
-
5304
- _this.setState({
5305
- inputValue: inputValue,
5306
- isLoading: true,
5307
- passEmptyOptions: !_this.state.loadedInputValue
5308
- }, function () {
5309
- _this.loadOptions(inputValue, function (options) {
5310
- if (!_this.mounted) return;
5311
-
5312
- if (options) {
5313
- _this.optionsCache[inputValue] = options;
5314
- }
5315
-
5316
- if (request !== _this.lastRequest) return;
5317
- delete _this.lastRequest;
5318
-
5319
- _this.setState({
5320
- isLoading: false,
5321
- loadedInputValue: inputValue,
5322
- loadedOptions: options || [],
5323
- passEmptyOptions: false
5324
- });
5325
- });
5326
- });
5327
- }
5328
-
5329
- return inputValue;
5330
- });
5331
-
5332
- _this.state = {
5333
- defaultOptions: Array.isArray(props.defaultOptions) ? props.defaultOptions : undefined,
5334
- inputValue: typeof props.inputValue !== 'undefined' ? props.inputValue : '',
5335
- isLoading: props.defaultOptions === true ? true : false,
5336
- loadedOptions: [],
5337
- passEmptyOptions: false
5338
- };
5339
- return _this;
5340
- }
5341
-
5342
- _createClass(Async, [{
5343
- key: "componentDidMount",
5344
- value: function componentDidMount() {
5345
- var _this2 = this;
5346
-
5347
- this.mounted = true;
5348
- var defaultOptions = this.props.defaultOptions;
5349
- var inputValue = this.state.inputValue;
5350
-
5351
- if (defaultOptions === true) {
5352
- this.loadOptions(inputValue, function (options) {
5353
- if (!_this2.mounted) return;
5354
- var isLoading = !!_this2.lastRequest;
5355
-
5356
- _this2.setState({
5357
- defaultOptions: options || [],
5358
- isLoading: isLoading
5359
- });
5360
- });
5361
- }
5362
- }
5363
- }, {
5364
- key: "componentWillReceiveProps",
5365
- value: function componentWillReceiveProps(nextProps) {
5366
- // if the cacheOptions prop changes, clear the cache
5367
- if (nextProps.cacheOptions !== this.props.cacheOptions) {
5368
- this.optionsCache = {};
5369
- }
5370
-
5371
- if (nextProps.defaultOptions !== this.props.defaultOptions) {
5372
- this.setState({
5373
- defaultOptions: Array.isArray(nextProps.defaultOptions) ? nextProps.defaultOptions : undefined
5374
- });
5375
- }
5376
- }
5377
- }, {
5378
- key: "componentWillUnmount",
5379
- value: function componentWillUnmount() {
5380
- this.mounted = false;
5381
- }
5382
- }, {
5383
- key: "focus",
5384
- value: function focus() {
5385
- this.select.focus();
5386
- }
5387
- }, {
5388
- key: "blur",
5389
- value: function blur() {
5390
- this.select.blur();
5391
- }
5392
- }, {
5393
- key: "loadOptions",
5394
- value: function loadOptions(inputValue, callback) {
5395
- var loadOptions = this.props.loadOptions;
5396
- if (!loadOptions) return callback();
5397
- var loader = loadOptions(inputValue, callback);
5398
-
5399
- if (loader && typeof loader.then === 'function') {
5400
- loader.then(callback, function () {
5401
- return callback();
5402
- });
5403
- }
5404
- }
5405
- }, {
5406
- key: "render",
5407
- value: function render() {
5408
- var _this3 = this;
5409
-
5410
- var _this$props2 = this.props,
5411
- loadOptions = _this$props2.loadOptions,
5412
- props = _objectWithoutProperties(_this$props2, ["loadOptions"]);
5413
-
5414
- var _this$state = this.state,
5415
- defaultOptions = _this$state.defaultOptions,
5416
- inputValue = _this$state.inputValue,
5417
- isLoading = _this$state.isLoading,
5418
- loadedInputValue = _this$state.loadedInputValue,
5419
- loadedOptions = _this$state.loadedOptions,
5420
- passEmptyOptions = _this$state.passEmptyOptions;
5421
- var options = passEmptyOptions ? [] : inputValue && loadedInputValue ? loadedOptions : defaultOptions || [];
5422
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SelectComponent, _extends({}, props, {
5423
- ref: function ref(_ref) {
5424
- _this3.select = _ref;
5425
- },
5426
- options: options,
5427
- isLoading: isLoading,
5428
- onInputChange: this.handleInputChange
5429
- }));
5430
- }
5431
- }]);
5432
-
5433
- return Async;
5434
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]), _defineProperty(_class, "defaultProps", defaultProps$2), _temp;
5435
- };
5436
- var SelectState = manageState(Select);
5437
- var Async = makeAsyncSelect(SelectState);
5438
-
5439
- var compareOption = function compareOption() {
5440
- var inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
5441
- var option = arguments.length > 1 ? arguments[1] : undefined;
5442
- var candidate = String(inputValue).toLowerCase();
5443
- var optionValue = String(option.value).toLowerCase();
5444
- var optionLabel = String(option.label).toLowerCase();
5445
- return optionValue === candidate || optionLabel === candidate;
5446
- };
5447
-
5448
- var builtins = {
5449
- formatCreateLabel: function formatCreateLabel(inputValue) {
5450
- return "Create \"".concat(inputValue, "\"");
5451
- },
5452
- isValidNewOption: function isValidNewOption(inputValue, selectValue, selectOptions) {
5453
- return !(!inputValue || selectValue.some(function (option) {
5454
- return compareOption(inputValue, option);
5455
- }) || selectOptions.some(function (option) {
5456
- return compareOption(inputValue, option);
5457
- }));
5458
- },
5459
- getNewOptionData: function getNewOptionData(inputValue, optionLabel) {
5460
- return {
5461
- label: optionLabel,
5462
- value: inputValue,
5463
- __isNew__: true
5464
- };
5465
- }
5466
- };
5467
- var defaultProps$3 = _objectSpread({
5468
- allowCreateWhileLoading: false,
5469
- createOptionPosition: 'last'
5470
- }, builtins);
5471
- var makeCreatableSelect = function makeCreatableSelect(SelectComponent) {
5472
- var _class, _temp;
5473
-
5474
- return _temp = _class =
5475
- /*#__PURE__*/
5476
- function (_Component) {
5477
- _inherits(Creatable, _Component);
5478
-
5479
- function Creatable(props) {
5480
- var _this;
5481
-
5482
- _classCallCheck(this, Creatable);
5483
-
5484
- _this = _possibleConstructorReturn(this, _getPrototypeOf(Creatable).call(this, props));
5485
-
5486
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "select", void 0);
5487
-
5488
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onChange", function (newValue, actionMeta) {
5489
- var _this$props = _this.props,
5490
- getNewOptionData = _this$props.getNewOptionData,
5491
- inputValue = _this$props.inputValue,
5492
- isMulti = _this$props.isMulti,
5493
- onChange = _this$props.onChange,
5494
- onCreateOption = _this$props.onCreateOption,
5495
- value = _this$props.value;
5496
-
5497
- if (actionMeta.action !== 'select-option') {
5498
- return onChange(newValue, actionMeta);
5499
- }
5500
-
5501
- var newOption = _this.state.newOption;
5502
- var valueArray = Array.isArray(newValue) ? newValue : [newValue];
5503
-
5504
- if (valueArray[valueArray.length - 1] === newOption) {
5505
- if (onCreateOption) onCreateOption(inputValue);else {
5506
- var newOptionData = getNewOptionData(inputValue, inputValue);
5507
- var newActionMeta = {
5508
- action: 'create-option'
5509
- };
5510
-
5511
- if (isMulti) {
5512
- onChange([].concat(_toConsumableArray(cleanValue(value)), [newOptionData]), newActionMeta);
5513
- } else {
5514
- onChange(newOptionData, newActionMeta);
5515
- }
5516
- }
5517
- return;
5518
- }
5519
-
5520
- onChange(newValue, actionMeta);
5521
- });
5522
-
5523
- var options = props.options || [];
5524
- _this.state = {
5525
- newOption: undefined,
5526
- options: options
5527
- };
5528
- return _this;
5529
- }
5530
-
5531
- _createClass(Creatable, [{
5532
- key: "componentWillReceiveProps",
5533
- value: function componentWillReceiveProps(nextProps) {
5534
- var allowCreateWhileLoading = nextProps.allowCreateWhileLoading,
5535
- createOptionPosition = nextProps.createOptionPosition,
5536
- formatCreateLabel = nextProps.formatCreateLabel,
5537
- getNewOptionData = nextProps.getNewOptionData,
5538
- inputValue = nextProps.inputValue,
5539
- isLoading = nextProps.isLoading,
5540
- isValidNewOption = nextProps.isValidNewOption,
5541
- value = nextProps.value;
5542
- var options = nextProps.options || [];
5543
- var newOption = this.state.newOption;
5544
-
5545
- if (isValidNewOption(inputValue, cleanValue(value), options)) {
5546
- newOption = getNewOptionData(inputValue, formatCreateLabel(inputValue));
5547
- } else {
5548
- newOption = undefined;
5549
- }
5550
-
5551
- this.setState({
5552
- newOption: newOption,
5553
- options: (allowCreateWhileLoading || !isLoading) && newOption ? createOptionPosition === 'first' ? [newOption].concat(_toConsumableArray(options)) : [].concat(_toConsumableArray(options), [newOption]) : options
5554
- });
5555
- }
5556
- }, {
5557
- key: "focus",
5558
- value: function focus() {
5559
- this.select.focus();
5560
- }
5561
- }, {
5562
- key: "blur",
5563
- value: function blur() {
5564
- this.select.blur();
5565
- }
5566
- }, {
5567
- key: "render",
5568
- value: function render() {
5569
- var _this2 = this;
5570
-
5571
- var props = _extends({}, this.props);
5572
-
5573
- var options = this.state.options;
5574
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SelectComponent, _extends({}, props, {
5575
- ref: function ref(_ref) {
5576
- _this2.select = _ref;
5577
- },
5578
- options: options,
5579
- onChange: this.onChange
5580
- }));
5581
- }
5582
- }]);
5583
-
5584
- return Creatable;
5585
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]), _defineProperty(_class, "defaultProps", defaultProps$3), _temp;
5586
- }; // TODO: do this in package entrypoint
5587
-
5588
- var SelectCreatable = makeCreatableSelect(Select);
5589
- var Creatable = manageState(SelectCreatable);
5590
-
5591
- var SelectCreatable$1 = makeCreatableSelect(Select);
5592
- var SelectCreatableState = manageState(SelectCreatable$1);
5593
- var AsyncCreatable = makeAsyncSelect(SelectCreatableState);
5594
-
5595
- // strip transition props off before spreading onto select component
5596
- // note we need to be explicit about innerRef for flow
5597
- var AnimatedInput = function AnimatedInput(WrappedComponent) {
5598
- return function (_ref) {
5599
- var inProp = _ref.in,
5600
- onExited = _ref.onExited,
5601
- appear = _ref.appear,
5602
- enter = _ref.enter,
5603
- exit = _ref.exit,
5604
- props = _objectWithoutProperties(_ref, ["in", "onExited", "appear", "enter", "exit"]);
5605
-
5606
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(WrappedComponent, props);
5607
- };
5608
- };
5609
-
5610
- var Fade = function Fade(_ref) {
5611
- var Tag = _ref.component,
5612
- _ref$duration = _ref.duration,
5613
- duration = _ref$duration === void 0 ? 1 : _ref$duration,
5614
- inProp = _ref.in,
5615
- onExited = _ref.onExited,
5616
- props = _objectWithoutProperties(_ref, ["component", "duration", "in", "onExited"]);
5617
-
5618
- var transition = {
5619
- entering: {
5620
- opacity: 0
5621
- },
5622
- entered: {
5623
- opacity: 1,
5624
- transition: "opacity ".concat(duration, "ms")
5625
- },
5626
- exiting: {
5627
- opacity: 0
5628
- },
5629
- exited: {
5630
- opacity: 0
5631
- }
5632
- };
5633
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_react_transition_group__["Transition"], {
5634
- mountOnEnter: true,
5635
- unmountOnExit: true,
5636
- in: inProp,
5637
- timeout: duration
5638
- }, function (state) {
5639
- var innerProps = {
5640
- style: _objectSpread({}, transition[state])
5641
- };
5642
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Tag, _extends({
5643
- innerProps: innerProps
5644
- }, props));
5645
- });
5646
- }; // ==============================
5647
- // Collapse Transition
5648
- // ==============================
5649
-
5650
- var collapseDuration = 260;
5651
- // wrap each MultiValue with a collapse transition; decreases width until
5652
- // finally removing from DOM
5653
- var Collapse =
5654
- /*#__PURE__*/
5655
- function (_Component) {
5656
- _inherits(Collapse, _Component);
5657
-
5658
- function Collapse() {
5659
- var _getPrototypeOf2;
5660
-
5661
- var _this;
5662
-
5663
- _classCallCheck(this, Collapse);
5664
-
5665
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5666
- args[_key] = arguments[_key];
5667
- }
5668
-
5669
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Collapse)).call.apply(_getPrototypeOf2, [this].concat(args)));
5670
-
5671
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "duration", collapseDuration);
5672
-
5673
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "rafID", void 0);
5674
-
5675
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
5676
- width: 'auto'
5677
- });
5678
-
5679
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "transition", {
5680
- exiting: {
5681
- width: 0,
5682
- transition: "width ".concat(_this.duration, "ms ease-out")
5683
- },
5684
- exited: {
5685
- width: 0
5686
- }
5687
- });
5688
-
5689
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getWidth", function (ref) {
5690
- if (ref && isNaN(_this.state.width)) {
5691
- /*
5692
- Here we're invoking requestAnimationFrame with a callback invoking our
5693
- call to getBoundingClientRect and setState in order to resolve an edge case
5694
- around portalling. Certain portalling solutions briefly remove children from the DOM
5695
- before appending them to the target node. This is to avoid us trying to call getBoundingClientrect
5696
- while the Select component is in this state.
5697
- */
5698
- // cannot use `offsetWidth` because it is rounded
5699
- _this.rafID = window.requestAnimationFrame(function () {
5700
- var _ref$getBoundingClien = ref.getBoundingClientRect(),
5701
- width = _ref$getBoundingClien.width;
5702
-
5703
- _this.setState({
5704
- width: width
5705
- });
5706
- });
5707
- }
5708
- });
5709
-
5710
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getStyle", function (width) {
5711
- return {
5712
- overflow: 'hidden',
5713
- whiteSpace: 'nowrap',
5714
- width: width
5715
- };
5716
- });
5717
-
5718
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getTransition", function (state) {
5719
- return _this.transition[state];
5720
- });
5721
-
5722
- return _this;
5723
- }
5724
-
5725
- _createClass(Collapse, [{
5726
- key: "componentWillUnmount",
5727
- value: function componentWillUnmount() {
5728
- if (this.rafID) {
5729
- window.cancelAnimationFrame(this.rafID);
5730
- }
5731
- } // width must be calculated; cannot transition from `undefined` to `number`
5732
-
5733
- }, {
5734
- key: "render",
5735
- value: function render() {
5736
- var _this2 = this;
5737
-
5738
- var _this$props = this.props,
5739
- children = _this$props.children,
5740
- inProp = _this$props.in;
5741
- var width = this.state.width;
5742
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_react_transition_group__["Transition"], {
5743
- enter: false,
5744
- mountOnEnter: true,
5745
- unmountOnExit: true,
5746
- in: inProp,
5747
- timeout: this.duration
5748
- }, function (state) {
5749
- var style = _objectSpread({}, _this2.getStyle(width), _this2.getTransition(state));
5750
-
5751
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
5752
- ref: _this2.getWidth,
5753
- style: style
5754
- }, children);
5755
- });
5756
- }
5757
- }]);
5758
-
5759
- return Collapse;
5760
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
5761
-
5762
- var AnimatedMultiValue = function AnimatedMultiValue(WrappedComponent) {
5763
- return function (_ref) {
5764
- var inProp = _ref.in,
5765
- onExited = _ref.onExited,
5766
- props = _objectWithoutProperties(_ref, ["in", "onExited"]);
5767
-
5768
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Collapse, {
5769
- in: inProp,
5770
- onExited: onExited
5771
- }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(WrappedComponent, _extends({
5772
- cropWithEllipsis: inProp
5773
- }, props)));
5774
- };
5775
- };
5776
-
5777
- var AnimatedPlaceholder = function AnimatedPlaceholder(WrappedComponent) {
5778
- return function (props) {
5779
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Fade, _extends({
5780
- component: WrappedComponent,
5781
- duration: props.isMulti ? collapseDuration : 1
5782
- }, props));
5783
- };
5784
- };
5785
-
5786
- var AnimatedSingleValue = function AnimatedSingleValue(WrappedComponent) {
5787
- return function (props) {
5788
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Fade, _extends({
5789
- component: WrappedComponent
5790
- }, props));
5791
- };
5792
- };
5793
-
5794
- // make ValueContainer a transition group
5795
- var AnimatedValueContainer = function AnimatedValueContainer(WrappedComponent) {
5796
- return function (props) {
5797
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_react_transition_group__["TransitionGroup"], _extends({
5798
- component: WrappedComponent
5799
- }, props));
5800
- };
5801
- };
5802
-
5803
- var makeAnimated = function makeAnimated() {
5804
- var externalComponents = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
5805
- var components$$1 = defaultComponents({
5806
- components: externalComponents
5807
- });
5808
-
5809
- var Input = components$$1.Input,
5810
- MultiValue = components$$1.MultiValue,
5811
- Placeholder = components$$1.Placeholder,
5812
- SingleValue = components$$1.SingleValue,
5813
- ValueContainer = components$$1.ValueContainer,
5814
- rest = _objectWithoutProperties(components$$1, ["Input", "MultiValue", "Placeholder", "SingleValue", "ValueContainer"]);
5815
-
5816
- return _objectSpread({
5817
- Input: AnimatedInput(Input),
5818
- MultiValue: AnimatedMultiValue(MultiValue),
5819
- Placeholder: AnimatedPlaceholder(Placeholder),
5820
- SingleValue: AnimatedSingleValue(SingleValue),
5821
- ValueContainer: AnimatedValueContainer(ValueContainer)
5822
- }, rest);
5823
- };
5824
-
5825
- var AnimatedComponents = makeAnimated();
5826
- var Input$1 = AnimatedComponents.Input;
5827
- var MultiValue$1 = AnimatedComponents.MultiValue;
5828
- var Placeholder$1 = AnimatedComponents.Placeholder;
5829
- var SingleValue$1 = AnimatedComponents.SingleValue;
5830
- var ValueContainer$1 = AnimatedComponents.ValueContainer;
5831
- var index = Object(__WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */])(makeAnimated, exportedEqual);
5832
-
5833
- var index$1 = manageState(Select);
5834
-
5835
- /* harmony default export */ __webpack_exports__["a"] = (index$1);
5836
-
5837
-
5838
-
5839
- /***/ }),
5840
- /* 17 */
5841
- /***/ (function(module, exports) {
5842
-
5843
- var g;
5844
-
5845
- // This works in non-strict mode
5846
- g = (function() {
5847
- return this;
5848
- })();
5849
-
5850
- try {
5851
- // This works if eval is allowed (see CSP)
5852
- g = g || Function("return this")() || (1,eval)("this");
5853
- } catch(e) {
5854
- // This works if the window reference is available
5855
- if(typeof window === "object")
5856
- g = window;
5857
- }
5858
-
5859
- // g can still be undefined, but nothing to do about it...
5860
- // We return undefined, instead of nothing here, so it's
5861
- // easier to handle this case. if(!global) { ...}
5862
-
5863
- module.exports = g;
5864
-
5865
-
5866
- /***/ }),
5867
- /* 18 */
5868
- /***/ (function(module, exports, __webpack_require__) {
5869
-
5870
- "use strict";
5871
- /* WEBPACK VAR INJECTION */(function(process) {
5872
-
5873
- if (process.env.NODE_ENV === 'production') {
5874
- module.exports = __webpack_require__(40);
5875
- } else {
5876
- module.exports = __webpack_require__(41);
5877
- }
5878
-
5879
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
5880
-
5881
- /***/ }),
5882
- /* 19 */
5883
- /***/ (function(module, exports, __webpack_require__) {
5884
-
5885
- "use strict";
5886
- /* WEBPACK VAR INJECTION */(function(process) {
5887
-
5888
- exports.__esModule = true;
5889
- exports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;
5890
-
5891
- var PropTypes = _interopRequireWildcard(__webpack_require__(3));
5892
-
5893
- var _react = _interopRequireDefault(__webpack_require__(2));
5894
-
5895
- var _reactDom = _interopRequireDefault(__webpack_require__(6));
5896
-
5897
- var _reactLifecyclesCompat = __webpack_require__(20);
5898
-
5899
- var _PropTypes = __webpack_require__(21);
5900
-
5901
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5902
-
5903
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
5904
-
5905
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5906
-
5907
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
5908
-
5909
- var UNMOUNTED = 'unmounted';
5910
- exports.UNMOUNTED = UNMOUNTED;
5911
- var EXITED = 'exited';
5912
- exports.EXITED = EXITED;
5913
- var ENTERING = 'entering';
5914
- exports.ENTERING = ENTERING;
5915
- var ENTERED = 'entered';
5916
- exports.ENTERED = ENTERED;
5917
- var EXITING = 'exiting';
5918
- /**
5919
- * The Transition component lets you describe a transition from one component
5920
- * state to another _over time_ with a simple declarative API. Most commonly
5921
- * it's used to animate the mounting and unmounting of a component, but can also
5922
- * be used to describe in-place transition states as well.
5923
- *
5924
- * ---
5925
- *
5926
- * **Note**: `Transition` is a platform-agnostic base component. If you're using
5927
- * transitions in CSS, you'll probably want to use
5928
- * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
5929
- * instead. It inherits all the features of `Transition`, but contains
5930
- * additional features necessary to play nice with CSS transitions (hence the
5931
- * name of the component).
5932
- *
5933
- * ---
5934
- *
5935
- * By default the `Transition` component does not alter the behavior of the
5936
- * component it renders, it only tracks "enter" and "exit" states for the
5937
- * components. It's up to you to give meaning and effect to those states. For
5938
- * example we can add styles to a component when it enters or exits:
5939
- *
5940
- * ```jsx
5941
- * import { Transition } from 'react-transition-group';
5942
- *
5943
- * const duration = 300;
5944
- *
5945
- * const defaultStyle = {
5946
- * transition: `opacity ${duration}ms ease-in-out`,
5947
- * opacity: 0,
5948
- * }
5949
- *
5950
- * const transitionStyles = {
5951
- * entering: { opacity: 0 },
5952
- * entered: { opacity: 1 },
5953
- * };
5954
- *
5955
- * const Fade = ({ in: inProp }) => (
5956
- * <Transition in={inProp} timeout={duration}>
5957
- * {state => (
5958
- * <div style={{
5959
- * ...defaultStyle,
5960
- * ...transitionStyles[state]
5961
- * }}>
5962
- * I'm a fade Transition!
5963
- * </div>
5964
- * )}
5965
- * </Transition>
5966
- * );
5967
- * ```
5968
- *
5969
- * There are 4 main states a Transition can be in:
5970
- * - `'entering'`
5971
- * - `'entered'`
5972
- * - `'exiting'`
5973
- * - `'exited'`
5974
- *
5975
- * Transition state is toggled via the `in` prop. When `true` the component
5976
- * begins the "Enter" stage. During this stage, the component will shift from
5977
- * its current transition state, to `'entering'` for the duration of the
5978
- * transition and then to the `'entered'` stage once it's complete. Let's take
5979
- * the following example (we'll use the
5980
- * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
5981
- *
5982
- * ```jsx
5983
- * function App() {
5984
- * const [inProp, setInProp] = useState(false);
5985
- * return (
5986
- * <div>
5987
- * <Transition in={inProp} timeout={500}>
5988
- * {state => (
5989
- * // ...
5990
- * )}
5991
- * </Transition>
5992
- * <button onClick={() => setInProp(true)}>
5993
- * Click to Enter
5994
- * </button>
5995
- * </div>
5996
- * );
5997
- * }
5998
- * ```
5999
- *
6000
- * When the button is clicked the component will shift to the `'entering'` state
6001
- * and stay there for 500ms (the value of `timeout`) before it finally switches
6002
- * to `'entered'`.
6003
- *
6004
- * When `in` is `false` the same thing happens except the state moves from
6005
- * `'exiting'` to `'exited'`.
6006
- */
6007
-
6008
- exports.EXITING = EXITING;
6009
-
6010
- var Transition =
6011
- /*#__PURE__*/
6012
- function (_React$Component) {
6013
- _inheritsLoose(Transition, _React$Component);
6014
-
6015
- function Transition(props, context) {
6016
- var _this;
6017
-
6018
- _this = _React$Component.call(this, props, context) || this;
6019
- var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears
6020
-
6021
- var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
6022
- var initialStatus;
6023
- _this.appearStatus = null;
6024
-
6025
- if (props.in) {
6026
- if (appear) {
6027
- initialStatus = EXITED;
6028
- _this.appearStatus = ENTERING;
6029
- } else {
6030
- initialStatus = ENTERED;
6031
- }
6032
- } else {
6033
- if (props.unmountOnExit || props.mountOnEnter) {
6034
- initialStatus = UNMOUNTED;
6035
- } else {
6036
- initialStatus = EXITED;
6037
- }
6038
- }
6039
-
6040
- _this.state = {
6041
- status: initialStatus
6042
- };
6043
- _this.nextCallback = null;
6044
- return _this;
6045
- }
6046
-
6047
- var _proto = Transition.prototype;
6048
-
6049
- _proto.getChildContext = function getChildContext() {
6050
- return {
6051
- transitionGroup: null // allows for nested Transitions
6052
-
6053
- };
6054
- };
6055
-
6056
- Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
6057
- var nextIn = _ref.in;
6058
-
6059
- if (nextIn && prevState.status === UNMOUNTED) {
6060
- return {
6061
- status: EXITED
6062
- };
6063
- }
6064
-
6065
- return null;
6066
- }; // getSnapshotBeforeUpdate(prevProps) {
6067
- // let nextStatus = null
6068
- // if (prevProps !== this.props) {
6069
- // const { status } = this.state
6070
- // if (this.props.in) {
6071
- // if (status !== ENTERING && status !== ENTERED) {
6072
- // nextStatus = ENTERING
6073
- // }
6074
- // } else {
6075
- // if (status === ENTERING || status === ENTERED) {
6076
- // nextStatus = EXITING
6077
- // }
6078
- // }
6079
- // }
6080
- // return { nextStatus }
6081
- // }
6082
-
6083
-
6084
- _proto.componentDidMount = function componentDidMount() {
6085
- this.updateStatus(true, this.appearStatus);
6086
- };
6087
-
6088
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
6089
- var nextStatus = null;
6090
-
6091
- if (prevProps !== this.props) {
6092
- var status = this.state.status;
6093
-
6094
- if (this.props.in) {
6095
- if (status !== ENTERING && status !== ENTERED) {
6096
- nextStatus = ENTERING;
6097
- }
6098
- } else {
6099
- if (status === ENTERING || status === ENTERED) {
6100
- nextStatus = EXITING;
6101
- }
6102
- }
6103
- }
6104
-
6105
- this.updateStatus(false, nextStatus);
6106
- };
6107
-
6108
- _proto.componentWillUnmount = function componentWillUnmount() {
6109
- this.cancelNextCallback();
6110
- };
6111
-
6112
- _proto.getTimeouts = function getTimeouts() {
6113
- var timeout = this.props.timeout;
6114
- var exit, enter, appear;
6115
- exit = enter = appear = timeout;
6116
-
6117
- if (timeout != null && typeof timeout !== 'number') {
6118
- exit = timeout.exit;
6119
- enter = timeout.enter; // TODO: remove fallback for next major
6120
-
6121
- appear = timeout.appear !== undefined ? timeout.appear : enter;
6122
- }
6123
-
6124
- return {
6125
- exit: exit,
6126
- enter: enter,
6127
- appear: appear
6128
- };
6129
- };
6130
-
6131
- _proto.updateStatus = function updateStatus(mounting, nextStatus) {
6132
- if (mounting === void 0) {
6133
- mounting = false;
6134
- }
6135
-
6136
- if (nextStatus !== null) {
6137
- // nextStatus will always be ENTERING or EXITING.
6138
- this.cancelNextCallback();
6139
-
6140
- var node = _reactDom.default.findDOMNode(this);
6141
-
6142
- if (nextStatus === ENTERING) {
6143
- this.performEnter(node, mounting);
6144
- } else {
6145
- this.performExit(node);
6146
- }
6147
- } else if (this.props.unmountOnExit && this.state.status === EXITED) {
6148
- this.setState({
6149
- status: UNMOUNTED
6150
- });
6151
- }
6152
- };
6153
-
6154
- _proto.performEnter = function performEnter(node, mounting) {
6155
- var _this2 = this;
6156
-
6157
- var enter = this.props.enter;
6158
- var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;
6159
- var timeouts = this.getTimeouts();
6160
- var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
6161
- // if we are mounting and running this it means appear _must_ be set
6162
-
6163
- if (!mounting && !enter) {
6164
- this.safeSetState({
6165
- status: ENTERED
6166
- }, function () {
6167
- _this2.props.onEntered(node);
6168
- });
6169
- return;
6170
- }
6171
-
6172
- this.props.onEnter(node, appearing);
6173
- this.safeSetState({
6174
- status: ENTERING
6175
- }, function () {
6176
- _this2.props.onEntering(node, appearing);
6177
-
6178
- _this2.onTransitionEnd(node, enterTimeout, function () {
6179
- _this2.safeSetState({
6180
- status: ENTERED
6181
- }, function () {
6182
- _this2.props.onEntered(node, appearing);
6183
- });
6184
- });
6185
- });
6186
- };
6187
-
6188
- _proto.performExit = function performExit(node) {
6189
- var _this3 = this;
6190
-
6191
- var exit = this.props.exit;
6192
- var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED
6193
-
6194
- if (!exit) {
6195
- this.safeSetState({
6196
- status: EXITED
6197
- }, function () {
6198
- _this3.props.onExited(node);
6199
- });
6200
- return;
6201
- }
6202
-
6203
- this.props.onExit(node);
6204
- this.safeSetState({
6205
- status: EXITING
6206
- }, function () {
6207
- _this3.props.onExiting(node);
6208
-
6209
- _this3.onTransitionEnd(node, timeouts.exit, function () {
6210
- _this3.safeSetState({
6211
- status: EXITED
6212
- }, function () {
6213
- _this3.props.onExited(node);
6214
- });
6215
- });
6216
- });
6217
- };
6218
-
6219
- _proto.cancelNextCallback = function cancelNextCallback() {
6220
- if (this.nextCallback !== null) {
6221
- this.nextCallback.cancel();
6222
- this.nextCallback = null;
6223
- }
6224
- };
6225
-
6226
- _proto.safeSetState = function safeSetState(nextState, callback) {
6227
- // This shouldn't be necessary, but there are weird race conditions with
6228
- // setState callbacks and unmounting in testing, so always make sure that
6229
- // we can cancel any pending setState callbacks after we unmount.
6230
- callback = this.setNextCallback(callback);
6231
- this.setState(nextState, callback);
6232
- };
6233
-
6234
- _proto.setNextCallback = function setNextCallback(callback) {
6235
- var _this4 = this;
6236
-
6237
- var active = true;
6238
-
6239
- this.nextCallback = function (event) {
6240
- if (active) {
6241
- active = false;
6242
- _this4.nextCallback = null;
6243
- callback(event);
6244
- }
6245
- };
6246
-
6247
- this.nextCallback.cancel = function () {
6248
- active = false;
6249
- };
6250
-
6251
- return this.nextCallback;
6252
- };
6253
-
6254
- _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
6255
- this.setNextCallback(handler);
6256
- var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
6257
-
6258
- if (!node || doesNotHaveTimeoutOrListener) {
6259
- setTimeout(this.nextCallback, 0);
6260
- return;
6261
- }
6262
-
6263
- if (this.props.addEndListener) {
6264
- this.props.addEndListener(node, this.nextCallback);
6265
- }
6266
-
6267
- if (timeout != null) {
6268
- setTimeout(this.nextCallback, timeout);
6269
- }
6270
- };
6271
-
6272
- _proto.render = function render() {
6273
- var status = this.state.status;
6274
-
6275
- if (status === UNMOUNTED) {
6276
- return null;
6277
- }
6278
-
6279
- var _this$props = this.props,
6280
- children = _this$props.children,
6281
- childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]); // filter props for Transtition
6282
-
6283
-
6284
- delete childProps.in;
6285
- delete childProps.mountOnEnter;
6286
- delete childProps.unmountOnExit;
6287
- delete childProps.appear;
6288
- delete childProps.enter;
6289
- delete childProps.exit;
6290
- delete childProps.timeout;
6291
- delete childProps.addEndListener;
6292
- delete childProps.onEnter;
6293
- delete childProps.onEntering;
6294
- delete childProps.onEntered;
6295
- delete childProps.onExit;
6296
- delete childProps.onExiting;
6297
- delete childProps.onExited;
6298
-
6299
- if (typeof children === 'function') {
6300
- return children(status, childProps);
6301
- }
6302
-
6303
- var child = _react.default.Children.only(children);
6304
-
6305
- return _react.default.cloneElement(child, childProps);
6306
- };
6307
-
6308
- return Transition;
6309
- }(_react.default.Component);
6310
-
6311
- Transition.contextTypes = {
6312
- transitionGroup: PropTypes.object
6313
- };
6314
- Transition.childContextTypes = {
6315
- transitionGroup: function transitionGroup() {}
6316
- };
6317
- Transition.propTypes = process.env.NODE_ENV !== "production" ? {
6318
- /**
6319
- * A `function` child can be used instead of a React element. This function is
6320
- * called with the current transition status (`'entering'`, `'entered'`,
6321
- * `'exiting'`, `'exited'`, `'unmounted'`), which can be used to apply context
6322
- * specific props to a component.
6323
- *
6324
- * ```jsx
6325
- * <Transition in={this.state.in} timeout={150}>
6326
- * {state => (
6327
- * <MyComponent className={`fade fade-${state}`} />
6328
- * )}
6329
- * </Transition>
6330
- * ```
6331
- */
6332
- children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
6333
-
6334
- /**
6335
- * Show the component; triggers the enter or exit states
6336
- */
6337
- in: PropTypes.bool,
6338
-
6339
- /**
6340
- * By default the child component is mounted immediately along with
6341
- * the parent `Transition` component. If you want to "lazy mount" the component on the
6342
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
6343
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
6344
- */
6345
- mountOnEnter: PropTypes.bool,
6346
-
6347
- /**
6348
- * By default the child component stays mounted after it reaches the `'exited'` state.
6349
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
6350
- */
6351
- unmountOnExit: PropTypes.bool,
6352
-
6353
- /**
6354
- * Normally a component is not transitioned if it is shown when the `<Transition>` component mounts.
6355
- * If you want to transition on the first mount set `appear` to `true`, and the
6356
- * component will transition in as soon as the `<Transition>` mounts.
6357
- *
6358
- * > Note: there are no specific "appear" states. `appear` only adds an additional `enter` transition.
6359
- */
6360
- appear: PropTypes.bool,
6361
-
6362
- /**
6363
- * Enable or disable enter transitions.
6364
- */
6365
- enter: PropTypes.bool,
6366
-
6367
- /**
6368
- * Enable or disable exit transitions.
6369
- */
6370
- exit: PropTypes.bool,
6371
-
6372
- /**
6373
- * The duration of the transition, in milliseconds.
6374
- * Required unless `addEndListener` is provided.
6375
- *
6376
- * You may specify a single timeout for all transitions:
6377
- *
6378
- * ```jsx
6379
- * timeout={500}
6380
- * ```
6381
- *
6382
- * or individually:
6383
- *
6384
- * ```jsx
6385
- * timeout={{
6386
- * appear: 500,
6387
- * enter: 300,
6388
- * exit: 500,
6389
- * }}
6390
- * ```
6391
- *
6392
- * - `appear` defaults to the value of `enter`
6393
- * - `enter` defaults to `0`
6394
- * - `exit` defaults to `0`
6395
- *
6396
- * @type {number | { enter?: number, exit?: number, appear?: number }}
6397
- */
6398
- timeout: function timeout(props) {
6399
- var pt = _PropTypes.timeoutsShape;
6400
- if (!props.addEndListener) pt = pt.isRequired;
6401
-
6402
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
6403
- args[_key - 1] = arguments[_key];
6404
- }
6405
-
6406
- return pt.apply(void 0, [props].concat(args));
6407
- },
6408
-
6409
- /**
6410
- * Add a custom transition end trigger. Called with the transitioning
6411
- * DOM node and a `done` callback. Allows for more fine grained transition end
6412
- * logic. **Note:** Timeouts are still used as a fallback if provided.
6413
- *
6414
- * ```jsx
6415
- * addEndListener={(node, done) => {
6416
- * // use the css transitionend event to mark the finish of a transition
6417
- * node.addEventListener('transitionend', done, false);
6418
- * }}
6419
- * ```
6420
- */
6421
- addEndListener: PropTypes.func,
6422
-
6423
- /**
6424
- * Callback fired before the "entering" status is applied. An extra parameter
6425
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
6426
- *
6427
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
6428
- */
6429
- onEnter: PropTypes.func,
6430
-
6431
- /**
6432
- * Callback fired after the "entering" status is applied. An extra parameter
6433
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
6434
- *
6435
- * @type Function(node: HtmlElement, isAppearing: bool)
6436
- */
6437
- onEntering: PropTypes.func,
6438
-
6439
- /**
6440
- * Callback fired after the "entered" status is applied. An extra parameter
6441
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
6442
- *
6443
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
6444
- */
6445
- onEntered: PropTypes.func,
6446
-
6447
- /**
6448
- * Callback fired before the "exiting" status is applied.
6449
- *
6450
- * @type Function(node: HtmlElement) -> void
6451
- */
6452
- onExit: PropTypes.func,
6453
-
6454
- /**
6455
- * Callback fired after the "exiting" status is applied.
6456
- *
6457
- * @type Function(node: HtmlElement) -> void
6458
- */
6459
- onExiting: PropTypes.func,
6460
-
6461
- /**
6462
- * Callback fired after the "exited" status is applied.
6463
- *
6464
- * @type Function(node: HtmlElement) -> void
6465
- */
6466
- onExited: PropTypes.func // Name the function so it is clearer in the documentation
6467
-
6468
- } : {};
6469
-
6470
- function noop() {}
6471
-
6472
- Transition.defaultProps = {
6473
- in: false,
6474
- mountOnEnter: false,
6475
- unmountOnExit: false,
6476
- appear: false,
6477
- enter: true,
6478
- exit: true,
6479
- onEnter: noop,
6480
- onEntering: noop,
6481
- onEntered: noop,
6482
- onExit: noop,
6483
- onExiting: noop,
6484
- onExited: noop
6485
- };
6486
- Transition.UNMOUNTED = 0;
6487
- Transition.EXITED = 1;
6488
- Transition.ENTERING = 2;
6489
- Transition.ENTERED = 3;
6490
- Transition.EXITING = 4;
6491
-
6492
- var _default = (0, _reactLifecyclesCompat.polyfill)(Transition);
6493
-
6494
- exports.default = _default;
6495
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
6496
-
6497
- /***/ }),
6498
- /* 20 */
6499
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6500
-
6501
- "use strict";
6502
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6503
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfill", function() { return polyfill; });
6504
- /**
6505
- * Copyright (c) 2013-present, Facebook, Inc.
6506
- *
6507
- * This source code is licensed under the MIT license found in the
6508
- * LICENSE file in the root directory of this source tree.
6509
- */
6510
-
6511
- function componentWillMount() {
6512
- // Call this.constructor.gDSFP to support sub-classes.
6513
- var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
6514
- if (state !== null && state !== undefined) {
6515
- this.setState(state);
6516
- }
6517
- }
6518
-
6519
- function componentWillReceiveProps(nextProps) {
6520
- // Call this.constructor.gDSFP to support sub-classes.
6521
- // Use the setState() updater to ensure state isn't stale in certain edge cases.
6522
- function updater(prevState) {
6523
- var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
6524
- return state !== null && state !== undefined ? state : null;
6525
- }
6526
- // Binding "this" is important for shallow renderer support.
6527
- this.setState(updater.bind(this));
6528
- }
6529
-
6530
- function componentWillUpdate(nextProps, nextState) {
6531
- try {
6532
- var prevProps = this.props;
6533
- var prevState = this.state;
6534
- this.props = nextProps;
6535
- this.state = nextState;
6536
- this.__reactInternalSnapshotFlag = true;
6537
- this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
6538
- prevProps,
6539
- prevState
6540
- );
6541
- } finally {
6542
- this.props = prevProps;
6543
- this.state = prevState;
6544
- }
6545
- }
6546
-
6547
- // React may warn about cWM/cWRP/cWU methods being deprecated.
6548
- // Add a flag to suppress these warnings for this special case.
6549
- componentWillMount.__suppressDeprecationWarning = true;
6550
- componentWillReceiveProps.__suppressDeprecationWarning = true;
6551
- componentWillUpdate.__suppressDeprecationWarning = true;
6552
-
6553
- function polyfill(Component) {
6554
- var prototype = Component.prototype;
6555
-
6556
- if (!prototype || !prototype.isReactComponent) {
6557
- throw new Error('Can only polyfill class components');
6558
- }
6559
-
6560
- if (
6561
- typeof Component.getDerivedStateFromProps !== 'function' &&
6562
- typeof prototype.getSnapshotBeforeUpdate !== 'function'
6563
- ) {
6564
- return Component;
6565
- }
6566
-
6567
- // If new component APIs are defined, "unsafe" lifecycles won't be called.
6568
- // Error if any of these lifecycles are present,
6569
- // Because they would work differently between older and newer (16.3+) versions of React.
6570
- var foundWillMountName = null;
6571
- var foundWillReceivePropsName = null;
6572
- var foundWillUpdateName = null;
6573
- if (typeof prototype.componentWillMount === 'function') {
6574
- foundWillMountName = 'componentWillMount';
6575
- } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
6576
- foundWillMountName = 'UNSAFE_componentWillMount';
6577
- }
6578
- if (typeof prototype.componentWillReceiveProps === 'function') {
6579
- foundWillReceivePropsName = 'componentWillReceiveProps';
6580
- } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {
6581
- foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
6582
- }
6583
- if (typeof prototype.componentWillUpdate === 'function') {
6584
- foundWillUpdateName = 'componentWillUpdate';
6585
- } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {
6586
- foundWillUpdateName = 'UNSAFE_componentWillUpdate';
6587
- }
6588
- if (
6589
- foundWillMountName !== null ||
6590
- foundWillReceivePropsName !== null ||
6591
- foundWillUpdateName !== null
6592
- ) {
6593
- var componentName = Component.displayName || Component.name;
6594
- var newApiName =
6595
- typeof Component.getDerivedStateFromProps === 'function'
6596
- ? 'getDerivedStateFromProps()'
6597
- : 'getSnapshotBeforeUpdate()';
6598
-
6599
- throw Error(
6600
- 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' +
6601
- componentName +
6602
- ' uses ' +
6603
- newApiName +
6604
- ' but also contains the following legacy lifecycles:' +
6605
- (foundWillMountName !== null ? '\n ' + foundWillMountName : '') +
6606
- (foundWillReceivePropsName !== null
6607
- ? '\n ' + foundWillReceivePropsName
6608
- : '') +
6609
- (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') +
6610
- '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' +
6611
- 'https://fb.me/react-async-component-lifecycle-hooks'
6612
- );
6613
- }
6614
-
6615
- // React <= 16.2 does not support static getDerivedStateFromProps.
6616
- // As a workaround, use cWM and cWRP to invoke the new static lifecycle.
6617
- // Newer versions of React will ignore these lifecycles if gDSFP exists.
6618
- if (typeof Component.getDerivedStateFromProps === 'function') {
6619
- prototype.componentWillMount = componentWillMount;
6620
- prototype.componentWillReceiveProps = componentWillReceiveProps;
6621
- }
6622
-
6623
- // React <= 16.2 does not support getSnapshotBeforeUpdate.
6624
- // As a workaround, use cWU to invoke the new lifecycle.
6625
- // Newer versions of React will ignore that lifecycle if gSBU exists.
6626
- if (typeof prototype.getSnapshotBeforeUpdate === 'function') {
6627
- if (typeof prototype.componentDidUpdate !== 'function') {
6628
- throw new Error(
6629
- 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'
6630
- );
6631
- }
6632
-
6633
- prototype.componentWillUpdate = componentWillUpdate;
6634
-
6635
- var componentDidUpdate = prototype.componentDidUpdate;
6636
-
6637
- prototype.componentDidUpdate = function componentDidUpdatePolyfill(
6638
- prevProps,
6639
- prevState,
6640
- maybeSnapshot
6641
- ) {
6642
- // 16.3+ will not execute our will-update method;
6643
- // It will pass a snapshot value to did-update though.
6644
- // Older versions will require our polyfilled will-update value.
6645
- // We need to handle both cases, but can't just check for the presence of "maybeSnapshot",
6646
- // Because for <= 15.x versions this might be a "prevContext" object.
6647
- // We also can't just check "__reactInternalSnapshot",
6648
- // Because get-snapshot might return a falsy value.
6649
- // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.
6650
- var snapshot = this.__reactInternalSnapshotFlag
6651
- ? this.__reactInternalSnapshot
6652
- : maybeSnapshot;
6653
-
6654
- componentDidUpdate.call(this, prevProps, prevState, snapshot);
6655
- };
6656
- }
6657
-
6658
- return Component;
6659
- }
6660
-
6661
-
6662
-
6663
-
6664
- /***/ }),
6665
- /* 21 */
6666
- /***/ (function(module, exports, __webpack_require__) {
6667
-
6668
- "use strict";
6669
- /* WEBPACK VAR INJECTION */(function(process) {
6670
-
6671
- exports.__esModule = true;
6672
- exports.classNamesShape = exports.timeoutsShape = void 0;
6673
-
6674
- var _propTypes = _interopRequireDefault(__webpack_require__(3));
6675
-
6676
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6677
-
6678
- var timeoutsShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
6679
- enter: _propTypes.default.number,
6680
- exit: _propTypes.default.number,
6681
- appear: _propTypes.default.number
6682
- }).isRequired]) : null;
6683
- exports.timeoutsShape = timeoutsShape;
6684
- var classNamesShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
6685
- enter: _propTypes.default.string,
6686
- exit: _propTypes.default.string,
6687
- active: _propTypes.default.string
6688
- }), _propTypes.default.shape({
6689
- enter: _propTypes.default.string,
6690
- enterDone: _propTypes.default.string,
6691
- enterActive: _propTypes.default.string,
6692
- exit: _propTypes.default.string,
6693
- exitDone: _propTypes.default.string,
6694
- exitActive: _propTypes.default.string
6695
- })]) : null;
6696
- exports.classNamesShape = classNamesShape;
6697
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
6698
-
6699
- /***/ }),
6700
- /* 22 */
6701
- /***/ (function(module, exports, __webpack_require__) {
6702
-
6703
- "use strict";
6704
- /* WEBPACK VAR INJECTION */(function(process) {
6705
-
6706
- exports.__esModule = true;
6707
- exports.default = void 0;
6708
-
6709
- var _propTypes = _interopRequireDefault(__webpack_require__(3));
6710
-
6711
- var _react = _interopRequireDefault(__webpack_require__(2));
6712
-
6713
- var _reactLifecyclesCompat = __webpack_require__(20);
6714
-
6715
- var _ChildMapping = __webpack_require__(56);
6716
-
6717
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6718
-
6719
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6720
-
6721
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6722
-
6723
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
6724
-
6725
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6726
-
6727
- var values = Object.values || function (obj) {
6728
- return Object.keys(obj).map(function (k) {
6729
- return obj[k];
6730
- });
6731
- };
6732
-
6733
- var defaultProps = {
6734
- component: 'div',
6735
- childFactory: function childFactory(child) {
6736
- return child;
6737
- }
6738
- /**
6739
- * The `<TransitionGroup>` component manages a set of transition components
6740
- * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition
6741
- * components, `<TransitionGroup>` is a state machine for managing the mounting
6742
- * and unmounting of components over time.
6743
- *
6744
- * Consider the example below. As items are removed or added to the TodoList the
6745
- * `in` prop is toggled automatically by the `<TransitionGroup>`.
6746
- *
6747
- * Note that `<TransitionGroup>` does not define any animation behavior!
6748
- * Exactly _how_ a list item animates is up to the individual transition
6749
- * component. This means you can mix and match animations across different list
6750
- * items.
6751
- */
6752
-
6753
- };
6754
-
6755
- var TransitionGroup =
6756
- /*#__PURE__*/
6757
- function (_React$Component) {
6758
- _inheritsLoose(TransitionGroup, _React$Component);
6759
-
6760
- function TransitionGroup(props, context) {
6761
- var _this;
6762
-
6763
- _this = _React$Component.call(this, props, context) || this;
6764
-
6765
- var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Initial children should all be entering, dependent on appear
6766
-
6767
-
6768
- _this.state = {
6769
- handleExited: handleExited,
6770
- firstRender: true
6771
- };
6772
- return _this;
6773
- }
6774
-
6775
- var _proto = TransitionGroup.prototype;
6776
-
6777
- _proto.getChildContext = function getChildContext() {
6778
- return {
6779
- transitionGroup: {
6780
- isMounting: !this.appeared
6781
- }
6782
- };
6783
- };
6784
-
6785
- _proto.componentDidMount = function componentDidMount() {
6786
- this.appeared = true;
6787
- this.mounted = true;
6788
- };
6789
-
6790
- _proto.componentWillUnmount = function componentWillUnmount() {
6791
- this.mounted = false;
6792
- };
6793
-
6794
- TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
6795
- var prevChildMapping = _ref.children,
6796
- handleExited = _ref.handleExited,
6797
- firstRender = _ref.firstRender;
6798
- return {
6799
- children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited),
6800
- firstRender: false
6801
- };
6802
- };
6803
-
6804
- _proto.handleExited = function handleExited(child, node) {
6805
- var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children);
6806
- if (child.key in currentChildMapping) return;
6807
-
6808
- if (child.props.onExited) {
6809
- child.props.onExited(node);
6810
- }
6811
-
6812
- if (this.mounted) {
6813
- this.setState(function (state) {
6814
- var children = _extends({}, state.children);
6815
-
6816
- delete children[child.key];
6817
- return {
6818
- children: children
6819
- };
6820
- });
6821
- }
6822
- };
6823
-
6824
- _proto.render = function render() {
6825
- var _this$props = this.props,
6826
- Component = _this$props.component,
6827
- childFactory = _this$props.childFactory,
6828
- props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
6829
-
6830
- var children = values(this.state.children).map(childFactory);
6831
- delete props.appear;
6832
- delete props.enter;
6833
- delete props.exit;
6834
-
6835
- if (Component === null) {
6836
- return children;
6837
- }
6838
-
6839
- return _react.default.createElement(Component, props, children);
6840
- };
6841
-
6842
- return TransitionGroup;
6843
- }(_react.default.Component);
6844
-
6845
- TransitionGroup.childContextTypes = {
6846
- transitionGroup: _propTypes.default.object.isRequired
6847
- };
6848
- TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
6849
- /**
6850
- * `<TransitionGroup>` renders a `<div>` by default. You can change this
6851
- * behavior by providing a `component` prop.
6852
- * If you use React v16+ and would like to avoid a wrapping `<div>` element
6853
- * you can pass in `component={null}`. This is useful if the wrapping div
6854
- * borks your css styles.
6855
- */
6856
- component: _propTypes.default.any,
6857
-
6858
- /**
6859
- * A set of `<Transition>` components, that are toggled `in` and out as they
6860
- * leave. the `<TransitionGroup>` will inject specific transition props, so
6861
- * remember to spread them through if you are wrapping the `<Transition>` as
6862
- * with our `<Fade>` example.
6863
- *
6864
- * While this component is meant for multiple `Transition` or `CSSTransition`
6865
- * children, sometimes you may want to have a single transition child with
6866
- * content that you want to be transitioned out and in when you change it
6867
- * (e.g. routes, images etc.) In that case you can change the `key` prop of
6868
- * the transition child as you change its content, this will cause
6869
- * `TransitionGroup` to transition the child out and back in.
6870
- */
6871
- children: _propTypes.default.node,
6872
-
6873
- /**
6874
- * A convenience prop that enables or disables appear animations
6875
- * for all children. Note that specifying this will override any defaults set
6876
- * on individual children Transitions.
6877
- */
6878
- appear: _propTypes.default.bool,
6879
-
6880
- /**
6881
- * A convenience prop that enables or disables enter animations
6882
- * for all children. Note that specifying this will override any defaults set
6883
- * on individual children Transitions.
6884
- */
6885
- enter: _propTypes.default.bool,
6886
-
6887
- /**
6888
- * A convenience prop that enables or disables exit animations
6889
- * for all children. Note that specifying this will override any defaults set
6890
- * on individual children Transitions.
6891
- */
6892
- exit: _propTypes.default.bool,
6893
-
6894
- /**
6895
- * You may need to apply reactive updates to a child as it is exiting.
6896
- * This is generally done by using `cloneElement` however in the case of an exiting
6897
- * child the element has already been removed and not accessible to the consumer.
6898
- *
6899
- * If you do need to update a child as it leaves you can provide a `childFactory`
6900
- * to wrap every child, even the ones that are leaving.
6901
- *
6902
- * @type Function(child: ReactElement) -> ReactElement
6903
- */
6904
- childFactory: _propTypes.default.func
6905
- } : {};
6906
- TransitionGroup.defaultProps = defaultProps;
6907
-
6908
- var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup);
6909
-
6910
- exports.default = _default;
6911
- module.exports = exports["default"];
6912
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
6913
-
6914
- /***/ }),
6915
- /* 23 */
6916
- /***/ (function(module, exports) {
6917
-
6918
- module.exports = {};
6919
-
6920
-
6921
- /***/ }),
6922
- /* 24 */
6923
- /***/ (function(module, exports) {
6924
-
6925
- module.exports = function (exec) {
6926
- try {
6927
- return !!exec();
6928
- } catch (e) {
6929
- return true;
6930
- }
6931
- };
6932
-
6933
-
6934
- /***/ }),
6935
- /* 25 */
6936
- /***/ (function(module, exports) {
6937
-
6938
- module.exports = true;
6939
-
6940
-
6941
- /***/ }),
6942
- /* 26 */
6943
- /***/ (function(module, exports) {
6944
-
6945
- module.exports = function (bitmap, value) {
6946
- return {
6947
- enumerable: !(bitmap & 1),
6948
- configurable: !(bitmap & 2),
6949
- writable: !(bitmap & 4),
6950
- value: value
6951
- };
6952
- };
6953
-
6954
-
6955
- /***/ }),
6956
- /* 27 */
6957
- /***/ (function(module, exports, __webpack_require__) {
6958
-
6959
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
6960
- var $keys = __webpack_require__(76);
6961
- var enumBugKeys = __webpack_require__(66);
6962
-
6963
- module.exports = Object.keys || function keys(O) {
6964
- return $keys(O, enumBugKeys);
6965
- };
6966
-
6967
-
6968
- /***/ }),
6969
- /* 28 */
6970
- /***/ (function(module, exports) {
6971
-
6972
- var id = 0;
6973
- var px = Math.random();
6974
- module.exports = function (key) {
6975
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
6976
- };
6977
-
6978
-
6979
- /***/ }),
6980
- /* 29 */
6981
- /***/ (function(module, exports) {
6982
-
6983
- exports.f = {}.propertyIsEnumerable;
6984
-
6985
-
6986
- /***/ }),
6987
- /* 30 */
6988
- /***/ (function(module, exports, __webpack_require__) {
6989
-
6990
- module.exports = { "default": __webpack_require__(31), __esModule: true };
6991
-
6992
- /***/ }),
6993
- /* 31 */
6994
- /***/ (function(module, exports, __webpack_require__) {
6995
-
6996
- var core = __webpack_require__(1);
6997
- var $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify });
6998
- module.exports = function stringify(it) { // eslint-disable-line no-unused-vars
6999
- return $JSON.stringify.apply($JSON, arguments);
7000
- };
7001
-
7002
-
7003
- /***/ }),
7004
- /* 32 */
7005
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7006
-
7007
- "use strict";
7008
- function areInputsEqual(newInputs, lastInputs) {
7009
- if (newInputs.length !== lastInputs.length) {
7010
- return false;
7011
- }
7012
-
7013
- for (var i = 0; i < newInputs.length; i++) {
7014
- if (newInputs[i] !== lastInputs[i]) {
7015
- return false;
7016
- }
7017
- }
7018
-
7019
- return true;
7020
- }
7021
-
7022
- function index (resultFn, isEqual) {
7023
- if (isEqual === void 0) {
7024
- isEqual = areInputsEqual;
7025
- }
7026
-
7027
- var lastThis;
7028
- var lastArgs = [];
7029
- var lastResult;
7030
- var calledOnce = false;
7031
-
7032
- var result = function result() {
7033
- for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
7034
- newArgs[_key] = arguments[_key];
7035
- }
7036
-
7037
- if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
7038
- return lastResult;
7039
- }
7040
-
7041
- lastResult = resultFn.apply(this, newArgs);
7042
- calledOnce = true;
7043
- lastThis = this;
7044
- lastArgs = newArgs;
7045
- return lastResult;
7046
- };
7047
-
7048
- return result;
7049
- }
7050
-
7051
- /* harmony default export */ __webpack_exports__["a"] = (index);
7052
-
7053
-
7054
- /***/ }),
7055
- /* 33 */
7056
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7057
-
7058
- "use strict";
7059
- /* WEBPACK VAR INJECTION */(function(global) {/* unused harmony export flush */
7060
- /* unused harmony export hydrate */
7061
- /* unused harmony export cx */
7062
- /* unused harmony export merge */
7063
- /* unused harmony export getRegisteredStyles */
7064
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return injectGlobal; });
7065
- /* unused harmony export keyframes */
7066
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return css; });
7067
- /* unused harmony export sheet */
7068
- /* unused harmony export caches */
7069
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_create_emotion__ = __webpack_require__(34);
7070
-
7071
-
7072
- var context = typeof global !== 'undefined' ? global : {};
7073
-
7074
- var _createEmotion = Object(__WEBPACK_IMPORTED_MODULE_0_create_emotion__["a" /* default */])(context),
7075
- flush = _createEmotion.flush,
7076
- hydrate = _createEmotion.hydrate,
7077
- cx = _createEmotion.cx,
7078
- merge = _createEmotion.merge,
7079
- getRegisteredStyles = _createEmotion.getRegisteredStyles,
7080
- injectGlobal = _createEmotion.injectGlobal,
7081
- keyframes = _createEmotion.keyframes,
7082
- css = _createEmotion.css,
7083
- sheet = _createEmotion.sheet,
7084
- caches = _createEmotion.caches;
7085
-
7086
-
7087
-
7088
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(17)))
7089
-
7090
- /***/ }),
7091
- /* 34 */
7092
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7093
-
7094
- "use strict";
7095
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_memoize__ = __webpack_require__(35);
7096
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(36);
7097
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_hash__ = __webpack_require__(37);
7098
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_stylis__ = __webpack_require__(38);
7099
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_stylis_rule_sheet__ = __webpack_require__(39);
7100
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_stylis_rule_sheet___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_stylis_rule_sheet__);
7101
-
7102
-
7103
-
7104
-
7105
-
7106
-
7107
- var hyphenateRegex = /[A-Z]|^ms/g;
7108
- var processStyleName = Object(__WEBPACK_IMPORTED_MODULE_0__emotion_memoize__["a" /* default */])(function (styleName) {
7109
- return styleName.replace(hyphenateRegex, '-$&').toLowerCase();
7110
- });
7111
- var processStyleValue = function processStyleValue(key, value) {
7112
- if (value == null || typeof value === 'boolean') {
7113
- return '';
7114
- }
7115
-
7116
- if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && key.charCodeAt(1) !== 45 && // custom properties
7117
- !isNaN(value) && value !== 0) {
7118
- return value + 'px';
7119
- }
7120
-
7121
- return value;
7122
- };
7123
-
7124
- if (process.env.NODE_ENV !== 'production') {
7125
- var contentValuePattern = /(attr|calc|counters?|url)\(/;
7126
- var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
7127
- var oldProcessStyleValue = processStyleValue;
7128
-
7129
- processStyleValue = function processStyleValue(key, value) {
7130
- if (key === 'content') {
7131
- if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
7132
- console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
7133
- }
7134
- }
7135
-
7136
- return oldProcessStyleValue(key, value);
7137
- };
7138
- }
7139
-
7140
- var classnames = function classnames(args) {
7141
- var len = args.length;
7142
- var i = 0;
7143
- var cls = '';
7144
-
7145
- for (; i < len; i++) {
7146
- var arg = args[i];
7147
- if (arg == null) continue;
7148
- var toAdd = void 0;
7149
-
7150
- switch (typeof arg) {
7151
- case 'boolean':
7152
- break;
7153
-
7154
- case 'function':
7155
- if (process.env.NODE_ENV !== 'production') {
7156
- console.error('Passing functions to cx is deprecated and will be removed in the next major version of Emotion.\n' + 'Please call the function before passing it to cx.');
7157
- }
7158
-
7159
- toAdd = classnames([arg()]);
7160
- break;
7161
-
7162
- case 'object':
7163
- {
7164
- if (Array.isArray(arg)) {
7165
- toAdd = classnames(arg);
7166
- } else {
7167
- toAdd = '';
7168
-
7169
- for (var k in arg) {
7170
- if (arg[k] && k) {
7171
- toAdd && (toAdd += ' ');
7172
- toAdd += k;
7173
- }
7174
- }
7175
- }
7176
-
7177
- break;
7178
- }
7179
-
7180
- default:
7181
- {
7182
- toAdd = arg;
7183
- }
7184
- }
7185
-
7186
- if (toAdd) {
7187
- cls && (cls += ' ');
7188
- cls += toAdd;
7189
- }
7190
- }
7191
-
7192
- return cls;
7193
- };
7194
- var isBrowser = typeof document !== 'undefined';
7195
-
7196
- /*
7197
-
7198
- high performance StyleSheet for css-in-js systems
7199
-
7200
- - uses multiple style tags behind the scenes for millions of rules
7201
- - uses `insertRule` for appending in production for *much* faster performance
7202
- - 'polyfills' on server side
7203
-
7204
- // usage
7205
-
7206
- import StyleSheet from 'glamor/lib/sheet'
7207
- let styleSheet = new StyleSheet()
7208
-
7209
- styleSheet.inject()
7210
- - 'injects' the stylesheet into the page (or into memory if on server)
7211
-
7212
- styleSheet.insert('#box { border: 1px solid red; }')
7213
- - appends a css rule into the stylesheet
7214
-
7215
- styleSheet.flush()
7216
- - empties the stylesheet of all its contents
7217
-
7218
- */
7219
- // $FlowFixMe
7220
- function sheetForTag(tag) {
7221
- if (tag.sheet) {
7222
- // $FlowFixMe
7223
- return tag.sheet;
7224
- } // this weirdness brought to you by firefox
7225
-
7226
-
7227
- for (var i = 0; i < document.styleSheets.length; i++) {
7228
- if (document.styleSheets[i].ownerNode === tag) {
7229
- // $FlowFixMe
7230
- return document.styleSheets[i];
7231
- }
7232
- }
7233
- }
7234
-
7235
- function makeStyleTag(opts) {
7236
- var tag = document.createElement('style');
7237
- tag.setAttribute('data-emotion', opts.key || '');
7238
-
7239
- if (opts.nonce !== undefined) {
7240
- tag.setAttribute('nonce', opts.nonce);
7241
- }
7242
-
7243
- tag.appendChild(document.createTextNode('')) // $FlowFixMe
7244
- ;
7245
- (opts.container !== undefined ? opts.container : document.head).appendChild(tag);
7246
- return tag;
7247
- }
7248
-
7249
- var StyleSheet =
7250
- /*#__PURE__*/
7251
- function () {
7252
- function StyleSheet(options) {
7253
- this.isSpeedy = process.env.NODE_ENV === 'production'; // the big drawback here is that the css won't be editable in devtools
7254
-
7255
- this.tags = [];
7256
- this.ctr = 0;
7257
- this.opts = options;
7258
- }
7259
-
7260
- var _proto = StyleSheet.prototype;
7261
-
7262
- _proto.inject = function inject() {
7263
- if (this.injected) {
7264
- throw new Error('already injected!');
7265
- }
7266
-
7267
- this.tags[0] = makeStyleTag(this.opts);
7268
- this.injected = true;
7269
- };
7270
-
7271
- _proto.speedy = function speedy(bool) {
7272
- if (this.ctr !== 0) {
7273
- // cannot change speedy mode after inserting any rule to sheet. Either call speedy(${bool}) earlier in your app, or call flush() before speedy(${bool})
7274
- throw new Error("cannot change speedy now");
7275
- }
7276
-
7277
- this.isSpeedy = !!bool;
7278
- };
7279
-
7280
- _proto.insert = function insert(rule, sourceMap) {
7281
- // this is the ultrafast version, works across browsers
7282
- if (this.isSpeedy) {
7283
- var tag = this.tags[this.tags.length - 1];
7284
- var sheet = sheetForTag(tag);
7285
-
7286
- try {
7287
- sheet.insertRule(rule, sheet.cssRules.length);
7288
- } catch (e) {
7289
- if (process.env.NODE_ENV !== 'production') {
7290
- console.warn('illegal rule', rule); // eslint-disable-line no-console
7291
- }
7292
- }
7293
- } else {
7294
- var _tag = makeStyleTag(this.opts);
7295
-
7296
- this.tags.push(_tag);
7297
-
7298
- _tag.appendChild(document.createTextNode(rule + (sourceMap || '')));
7299
- }
7300
-
7301
- this.ctr++;
7302
-
7303
- if (this.ctr % 65000 === 0) {
7304
- this.tags.push(makeStyleTag(this.opts));
7305
- }
7306
- };
7307
-
7308
- _proto.flush = function flush() {
7309
- // $FlowFixMe
7310
- this.tags.forEach(function (tag) {
7311
- return tag.parentNode.removeChild(tag);
7312
- });
7313
- this.tags = [];
7314
- this.ctr = 0; // todo - look for remnants in document.styleSheets
7315
-
7316
- this.injected = false;
7317
- };
7318
-
7319
- return StyleSheet;
7320
- }();
7321
-
7322
- function createEmotion(context, options) {
7323
- if (context.__SECRET_EMOTION__ !== undefined) {
7324
- return context.__SECRET_EMOTION__;
7325
- }
7326
-
7327
- if (options === undefined) options = {};
7328
- var key = options.key || 'css';
7329
-
7330
- if (process.env.NODE_ENV !== 'production') {
7331
- if (/[^a-z-]/.test(key)) {
7332
- throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
7333
- }
7334
- }
7335
-
7336
- var current;
7337
-
7338
- function insertRule(rule) {
7339
- current += rule;
7340
-
7341
- if (isBrowser) {
7342
- sheet.insert(rule, currentSourceMap);
7343
- }
7344
- }
7345
-
7346
- var insertionPlugin = __WEBPACK_IMPORTED_MODULE_4_stylis_rule_sheet___default()(insertRule);
7347
- var stylisOptions;
7348
-
7349
- if (options.prefix !== undefined) {
7350
- stylisOptions = {
7351
- prefix: options.prefix
7352
- };
7353
- }
7354
-
7355
- var caches = {
7356
- registered: {},
7357
- inserted: {},
7358
- nonce: options.nonce,
7359
- key: key
7360
- };
7361
- var sheet = new StyleSheet(options);
7362
-
7363
- if (isBrowser) {
7364
- // 🚀
7365
- sheet.inject();
7366
- }
7367
-
7368
- var stylis = new __WEBPACK_IMPORTED_MODULE_3__emotion_stylis__["a" /* default */](stylisOptions);
7369
- stylis.use(options.stylisPlugins)(insertionPlugin);
7370
- var currentSourceMap = '';
7371
-
7372
- function handleInterpolation(interpolation, couldBeSelectorInterpolation) {
7373
- if (interpolation == null) {
7374
- return '';
7375
- }
7376
-
7377
- switch (typeof interpolation) {
7378
- case 'boolean':
7379
- return '';
7380
-
7381
- case 'function':
7382
- if (interpolation.__emotion_styles !== undefined) {
7383
- var selector = interpolation.toString();
7384
-
7385
- if (selector === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
7386
- throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
7387
- }
7388
-
7389
- return selector;
7390
- }
7391
-
7392
- if (this === undefined && process.env.NODE_ENV !== 'production') {
7393
- console.error('Interpolating functions in css calls is deprecated and will be removed in the next major version of Emotion.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
7394
- }
7395
-
7396
- return handleInterpolation.call(this, this === undefined ? interpolation() : // $FlowFixMe
7397
- interpolation(this.mergedProps, this.context), couldBeSelectorInterpolation);
7398
-
7399
- case 'object':
7400
- return createStringFromObject.call(this, interpolation);
7401
-
7402
- default:
7403
- var cached = caches.registered[interpolation];
7404
- return couldBeSelectorInterpolation === false && cached !== undefined ? cached : interpolation;
7405
- }
7406
- }
7407
-
7408
- var objectToStringCache = new WeakMap();
7409
-
7410
- function createStringFromObject(obj) {
7411
- if (objectToStringCache.has(obj)) {
7412
- // $FlowFixMe
7413
- return objectToStringCache.get(obj);
7414
- }
7415
-
7416
- var string = '';
7417
-
7418
- if (Array.isArray(obj)) {
7419
- obj.forEach(function (interpolation) {
7420
- string += handleInterpolation.call(this, interpolation, false);
7421
- }, this);
7422
- } else {
7423
- Object.keys(obj).forEach(function (key) {
7424
- if (typeof obj[key] !== 'object') {
7425
- if (caches.registered[obj[key]] !== undefined) {
7426
- string += key + "{" + caches.registered[obj[key]] + "}";
7427
- } else {
7428
- string += processStyleName(key) + ":" + processStyleValue(key, obj[key]) + ";";
7429
- }
7430
- } else {
7431
- if (key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
7432
- throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
7433
- }
7434
-
7435
- if (Array.isArray(obj[key]) && typeof obj[key][0] === 'string' && caches.registered[obj[key][0]] === undefined) {
7436
- obj[key].forEach(function (value) {
7437
- string += processStyleName(key) + ":" + processStyleValue(key, value) + ";";
7438
- });
7439
- } else {
7440
- string += key + "{" + handleInterpolation.call(this, obj[key], false) + "}";
7441
- }
7442
- }
7443
- }, this);
7444
- }
7445
-
7446
- objectToStringCache.set(obj, string);
7447
- return string;
7448
- }
7449
-
7450
- var name;
7451
- var stylesWithLabel;
7452
- var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g;
7453
-
7454
- var createClassName = function createClassName(styles, identifierName) {
7455
- return Object(__WEBPACK_IMPORTED_MODULE_2__emotion_hash__["a" /* default */])(styles + identifierName) + identifierName;
7456
- };
7457
-
7458
- if (process.env.NODE_ENV !== 'production') {
7459
- var oldCreateClassName = createClassName;
7460
- var sourceMappingUrlPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
7461
-
7462
- createClassName = function createClassName(styles, identifierName) {
7463
- return oldCreateClassName(styles.replace(sourceMappingUrlPattern, function (sourceMap) {
7464
- currentSourceMap = sourceMap;
7465
- return '';
7466
- }), identifierName);
7467
- };
7468
- }
7469
-
7470
- var createStyles = function createStyles(strings) {
7471
- var stringMode = true;
7472
- var styles = '';
7473
- var identifierName = '';
7474
-
7475
- if (strings == null || strings.raw === undefined) {
7476
- stringMode = false;
7477
- styles += handleInterpolation.call(this, strings, false);
7478
- } else {
7479
- styles += strings[0];
7480
- }
7481
-
7482
- for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
7483
- interpolations[_key - 1] = arguments[_key];
7484
- }
7485
-
7486
- interpolations.forEach(function (interpolation, i) {
7487
- styles += handleInterpolation.call(this, interpolation, styles.charCodeAt(styles.length - 1) === 46 // .
7488
- );
7489
-
7490
- if (stringMode === true && strings[i + 1] !== undefined) {
7491
- styles += strings[i + 1];
7492
- }
7493
- }, this);
7494
- stylesWithLabel = styles;
7495
- styles = styles.replace(labelPattern, function (match, p1) {
7496
- identifierName += "-" + p1;
7497
- return '';
7498
- });
7499
- name = createClassName(styles, identifierName);
7500
- return styles;
7501
- };
7502
-
7503
- if (process.env.NODE_ENV !== 'production') {
7504
- var oldStylis = stylis;
7505
-
7506
- stylis = function stylis(selector, styles) {
7507
- oldStylis(selector, styles);
7508
- currentSourceMap = '';
7509
- };
7510
- }
7511
-
7512
- function insert(scope, styles) {
7513
- if (caches.inserted[name] === undefined) {
7514
- current = '';
7515
- stylis(scope, styles);
7516
- caches.inserted[name] = current;
7517
- }
7518
- }
7519
-
7520
- var css = function css() {
7521
- var styles = createStyles.apply(this, arguments);
7522
- var selector = key + "-" + name;
7523
-
7524
- if (caches.registered[selector] === undefined) {
7525
- caches.registered[selector] = stylesWithLabel;
7526
- }
7527
-
7528
- insert("." + selector, styles);
7529
- return selector;
7530
- };
7531
-
7532
- var keyframes = function keyframes() {
7533
- var styles = createStyles.apply(this, arguments);
7534
- var animation = "animation-" + name;
7535
- insert('', "@keyframes " + animation + "{" + styles + "}");
7536
- return animation;
7537
- };
7538
-
7539
- var injectGlobal = function injectGlobal() {
7540
- var styles = createStyles.apply(this, arguments);
7541
- insert('', styles);
7542
- };
7543
-
7544
- function getRegisteredStyles(registeredStyles, classNames) {
7545
- var rawClassName = '';
7546
- classNames.split(' ').forEach(function (className) {
7547
- if (caches.registered[className] !== undefined) {
7548
- registeredStyles.push(className);
7549
- } else {
7550
- rawClassName += className + " ";
7551
- }
7552
- });
7553
- return rawClassName;
7554
- }
7555
-
7556
- function merge(className, sourceMap) {
7557
- var registeredStyles = [];
7558
- var rawClassName = getRegisteredStyles(registeredStyles, className);
7559
-
7560
- if (registeredStyles.length < 2) {
7561
- return className;
7562
- }
7563
-
7564
- return rawClassName + css(registeredStyles, sourceMap);
7565
- }
7566
-
7567
- function cx() {
7568
- for (var _len2 = arguments.length, classNames = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
7569
- classNames[_key2] = arguments[_key2];
7570
- }
7571
-
7572
- return merge(classnames(classNames));
7573
- }
7574
-
7575
- function hydrateSingleId(id) {
7576
- caches.inserted[id] = true;
7577
- }
7578
-
7579
- function hydrate(ids) {
7580
- ids.forEach(hydrateSingleId);
7581
- }
7582
-
7583
- function flush() {
7584
- if (isBrowser) {
7585
- sheet.flush();
7586
- sheet.inject();
7587
- }
7588
-
7589
- caches.inserted = {};
7590
- caches.registered = {};
7591
- }
7592
-
7593
- if (isBrowser) {
7594
- var chunks = document.querySelectorAll("[data-emotion-" + key + "]");
7595
- Array.prototype.forEach.call(chunks, function (node) {
7596
- // $FlowFixMe
7597
- sheet.tags[0].parentNode.insertBefore(node, sheet.tags[0]); // $FlowFixMe
7598
-
7599
- node.getAttribute("data-emotion-" + key).split(' ').forEach(hydrateSingleId);
7600
- });
7601
- }
7602
-
7603
- var emotion = {
7604
- flush: flush,
7605
- hydrate: hydrate,
7606
- cx: cx,
7607
- merge: merge,
7608
- getRegisteredStyles: getRegisteredStyles,
7609
- injectGlobal: injectGlobal,
7610
- keyframes: keyframes,
7611
- css: css,
7612
- sheet: sheet,
7613
- caches: caches
7614
- };
7615
- context.__SECRET_EMOTION__ = emotion;
7616
- return emotion;
7617
- }
7618
-
7619
- /* harmony default export */ __webpack_exports__["a"] = (createEmotion);
7620
-
7621
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(0)))
7622
-
7623
- /***/ }),
7624
- /* 35 */
7625
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7626
-
7627
- "use strict";
7628
- function memoize(fn) {
7629
- var cache = {};
7630
- return function (arg) {
7631
- if (cache[arg] === undefined) cache[arg] = fn(arg);
7632
- return cache[arg];
7633
- };
7634
- }
7635
-
7636
- /* harmony default export */ __webpack_exports__["a"] = (memoize);
7637
-
7638
-
7639
- /***/ }),
7640
- /* 36 */
7641
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7642
-
7643
- "use strict";
7644
- var unitlessKeys = {
7645
- animationIterationCount: 1,
7646
- borderImageOutset: 1,
7647
- borderImageSlice: 1,
7648
- borderImageWidth: 1,
7649
- boxFlex: 1,
7650
- boxFlexGroup: 1,
7651
- boxOrdinalGroup: 1,
7652
- columnCount: 1,
7653
- columns: 1,
7654
- flex: 1,
7655
- flexGrow: 1,
7656
- flexPositive: 1,
7657
- flexShrink: 1,
7658
- flexNegative: 1,
7659
- flexOrder: 1,
7660
- gridRow: 1,
7661
- gridRowEnd: 1,
7662
- gridRowSpan: 1,
7663
- gridRowStart: 1,
7664
- gridColumn: 1,
7665
- gridColumnEnd: 1,
7666
- gridColumnSpan: 1,
7667
- gridColumnStart: 1,
7668
- fontWeight: 1,
7669
- lineHeight: 1,
7670
- opacity: 1,
7671
- order: 1,
7672
- orphans: 1,
7673
- tabSize: 1,
7674
- widows: 1,
7675
- zIndex: 1,
7676
- zoom: 1,
7677
- WebkitLineClamp: 1,
7678
- // SVG-related properties
7679
- fillOpacity: 1,
7680
- floodOpacity: 1,
7681
- stopOpacity: 1,
7682
- strokeDasharray: 1,
7683
- strokeDashoffset: 1,
7684
- strokeMiterlimit: 1,
7685
- strokeOpacity: 1,
7686
- strokeWidth: 1
7687
- };
7688
-
7689
- /* harmony default export */ __webpack_exports__["a"] = (unitlessKeys);
7690
-
7691
-
7692
- /***/ }),
7693
- /* 37 */
7694
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7695
-
7696
- "use strict";
7697
- /* eslint-disable */
7698
- // murmurhash2 via https://github.com/garycourt/murmurhash-js/blob/master/murmurhash2_gc.js
7699
- function murmurhash2_32_gc(str) {
7700
- var l = str.length,
7701
- h = l ^ l,
7702
- i = 0,
7703
- k;
7704
-
7705
- while (l >= 4) {
7706
- k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
7707
- k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);
7708
- k ^= k >>> 24;
7709
- k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);
7710
- h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16) ^ k;
7711
- l -= 4;
7712
- ++i;
7713
- }
7714
-
7715
- switch (l) {
7716
- case 3:
7717
- h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
7718
-
7719
- case 2:
7720
- h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
7721
-
7722
- case 1:
7723
- h ^= str.charCodeAt(i) & 0xff;
7724
- h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);
7725
- }
7726
-
7727
- h ^= h >>> 13;
7728
- h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);
7729
- h ^= h >>> 15;
7730
- return (h >>> 0).toString(36);
7731
- }
7732
-
7733
- /* harmony default export */ __webpack_exports__["a"] = (murmurhash2_32_gc);
7734
-
7735
-
7736
- /***/ }),
7737
- /* 38 */
7738
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7739
-
7740
- "use strict";
7741
- function stylis_min (W) {
7742
- function M(d, c, e, h, a) {
7743
- for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
7744
- g = e.charCodeAt(l);
7745
- l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
7746
-
7747
- if (0 === b + n + v + m) {
7748
- if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
7749
- switch (g) {
7750
- case 32:
7751
- case 9:
7752
- case 59:
7753
- case 13:
7754
- case 10:
7755
- break;
7756
-
7757
- default:
7758
- f += e.charAt(l);
7759
- }
7760
-
7761
- g = 59;
7762
- }
7763
-
7764
- switch (g) {
7765
- case 123:
7766
- f = f.trim();
7767
- q = f.charCodeAt(0);
7768
- k = 1;
7769
-
7770
- for (t = ++l; l < B;) {
7771
- switch (g = e.charCodeAt(l)) {
7772
- case 123:
7773
- k++;
7774
- break;
7775
-
7776
- case 125:
7777
- k--;
7778
- break;
7779
-
7780
- case 47:
7781
- switch (g = e.charCodeAt(l + 1)) {
7782
- case 42:
7783
- case 47:
7784
- a: {
7785
- for (u = l + 1; u < J; ++u) {
7786
- switch (e.charCodeAt(u)) {
7787
- case 47:
7788
- if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
7789
- l = u + 1;
7790
- break a;
7791
- }
7792
-
7793
- break;
7794
-
7795
- case 10:
7796
- if (47 === g) {
7797
- l = u + 1;
7798
- break a;
7799
- }
7800
-
7801
- }
7802
- }
7803
-
7804
- l = u;
7805
- }
7806
-
7807
- }
7808
-
7809
- break;
7810
-
7811
- case 91:
7812
- g++;
7813
-
7814
- case 40:
7815
- g++;
7816
-
7817
- case 34:
7818
- case 39:
7819
- for (; l++ < J && e.charCodeAt(l) !== g;) {
7820
- }
7821
-
7822
- }
7823
-
7824
- if (0 === k) break;
7825
- l++;
7826
- }
7827
-
7828
- k = e.substring(t, l);
7829
- 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
7830
-
7831
- switch (q) {
7832
- case 64:
7833
- 0 < r && (f = f.replace(N, ''));
7834
- g = f.charCodeAt(1);
7835
-
7836
- switch (g) {
7837
- case 100:
7838
- case 109:
7839
- case 115:
7840
- case 45:
7841
- r = c;
7842
- break;
7843
-
7844
- default:
7845
- r = O;
7846
- }
7847
-
7848
- k = M(c, r, k, g, a + 1);
7849
- t = k.length;
7850
- 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
7851
- if (0 < t) switch (g) {
7852
- case 115:
7853
- f = f.replace(da, ea);
7854
-
7855
- case 100:
7856
- case 109:
7857
- case 45:
7858
- k = f + '{' + k + '}';
7859
- break;
7860
-
7861
- case 107:
7862
- f = f.replace(fa, '$1 $2');
7863
- k = f + '{' + k + '}';
7864
- k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
7865
- break;
7866
-
7867
- default:
7868
- k = f + k, 112 === h && (k = (p += k, ''));
7869
- } else k = '';
7870
- break;
7871
-
7872
- default:
7873
- k = M(c, X(c, f, I), k, h, a + 1);
7874
- }
7875
-
7876
- F += k;
7877
- k = I = r = u = q = 0;
7878
- f = '';
7879
- g = e.charCodeAt(++l);
7880
- break;
7881
-
7882
- case 125:
7883
- case 59:
7884
- f = (0 < r ? f.replace(N, '') : f).trim();
7885
- if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
7886
- case 0:
7887
- break;
7888
-
7889
- case 64:
7890
- if (105 === g || 99 === g) {
7891
- G += f + e.charAt(l);
7892
- break;
7893
- }
7894
-
7895
- default:
7896
- 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
7897
- }
7898
- I = r = u = q = 0;
7899
- f = '';
7900
- g = e.charCodeAt(++l);
7901
- }
7902
- }
7903
-
7904
- switch (g) {
7905
- case 13:
7906
- case 10:
7907
- 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
7908
- 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
7909
- z = 1;
7910
- D++;
7911
- break;
7912
-
7913
- case 59:
7914
- case 125:
7915
- if (0 === b + n + v + m) {
7916
- z++;
7917
- break;
7918
- }
7919
-
7920
- default:
7921
- z++;
7922
- y = e.charAt(l);
7923
-
7924
- switch (g) {
7925
- case 9:
7926
- case 32:
7927
- if (0 === n + m + b) switch (x) {
7928
- case 44:
7929
- case 58:
7930
- case 9:
7931
- case 32:
7932
- y = '';
7933
- break;
7934
-
7935
- default:
7936
- 32 !== g && (y = ' ');
7937
- }
7938
- break;
7939
-
7940
- case 0:
7941
- y = '\\0';
7942
- break;
7943
-
7944
- case 12:
7945
- y = '\\f';
7946
- break;
7947
-
7948
- case 11:
7949
- y = '\\v';
7950
- break;
7951
-
7952
- case 38:
7953
- 0 === n + b + m && (r = I = 1, y = '\f' + y);
7954
- break;
7955
-
7956
- case 108:
7957
- if (0 === n + b + m + E && 0 < u) switch (l - u) {
7958
- case 2:
7959
- 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
7960
-
7961
- case 8:
7962
- 111 === K && (E = K);
7963
- }
7964
- break;
7965
-
7966
- case 58:
7967
- 0 === n + b + m && (u = l);
7968
- break;
7969
-
7970
- case 44:
7971
- 0 === b + v + n + m && (r = 1, y += '\r');
7972
- break;
7973
-
7974
- case 34:
7975
- case 39:
7976
- 0 === b && (n = n === g ? 0 : 0 === n ? g : n);
7977
- break;
7978
-
7979
- case 91:
7980
- 0 === n + b + v && m++;
7981
- break;
7982
-
7983
- case 93:
7984
- 0 === n + b + v && m--;
7985
- break;
7986
-
7987
- case 41:
7988
- 0 === n + b + m && v--;
7989
- break;
7990
-
7991
- case 40:
7992
- if (0 === n + b + m) {
7993
- if (0 === q) switch (2 * x + 3 * K) {
7994
- case 533:
7995
- break;
7996
-
7997
- default:
7998
- q = 1;
7999
- }
8000
- v++;
8001
- }
8002
-
8003
- break;
8004
-
8005
- case 64:
8006
- 0 === b + v + n + m + u + k && (k = 1);
8007
- break;
8008
-
8009
- case 42:
8010
- case 47:
8011
- if (!(0 < n + m + v)) switch (b) {
8012
- case 0:
8013
- switch (2 * g + 3 * e.charCodeAt(l + 1)) {
8014
- case 235:
8015
- b = 47;
8016
- break;
8017
-
8018
- case 220:
8019
- t = l, b = 42;
8020
- }
8021
-
8022
- break;
8023
-
8024
- case 42:
8025
- 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
8026
- }
8027
- }
8028
-
8029
- 0 === b && (f += y);
8030
- }
8031
-
8032
- K = x;
8033
- x = g;
8034
- l++;
8035
- }
8036
-
8037
- t = p.length;
8038
-
8039
- if (0 < t) {
8040
- r = c;
8041
- if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
8042
- p = r.join(',') + '{' + p + '}';
8043
-
8044
- if (0 !== w * E) {
8045
- 2 !== w || L(p, 2) || (E = 0);
8046
-
8047
- switch (E) {
8048
- case 111:
8049
- p = p.replace(ha, ':-moz-$1') + p;
8050
- break;
8051
-
8052
- case 112:
8053
- p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
8054
- }
8055
-
8056
- E = 0;
8057
- }
8058
- }
8059
-
8060
- return G + p + F;
8061
- }
8062
-
8063
- function X(d, c, e) {
8064
- var h = c.trim().split(ia);
8065
- c = h;
8066
- var a = h.length,
8067
- m = d.length;
8068
-
8069
- switch (m) {
8070
- case 0:
8071
- case 1:
8072
- var b = 0;
8073
-
8074
- for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
8075
- c[b] = Z(d, c[b], e, m).trim();
8076
- }
8077
-
8078
- break;
8079
-
8080
- default:
8081
- var v = b = 0;
8082
-
8083
- for (c = []; b < a; ++b) {
8084
- for (var n = 0; n < m; ++n) {
8085
- c[v++] = Z(d[n] + ' ', h[b], e, m).trim();
8086
- }
8087
- }
8088
-
8089
- }
8090
-
8091
- return c;
8092
- }
8093
-
8094
- function Z(d, c, e) {
8095
- var h = c.charCodeAt(0);
8096
- 33 > h && (h = (c = c.trim()).charCodeAt(0));
8097
-
8098
- switch (h) {
8099
- case 38:
8100
- return c.replace(F, '$1' + d.trim());
8101
-
8102
- case 58:
8103
- return d.trim() + c.replace(F, '$1' + d.trim());
8104
-
8105
- default:
8106
- if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
8107
- }
8108
-
8109
- return d + c;
8110
- }
8111
-
8112
- function P(d, c, e, h) {
8113
- var a = d + ';',
8114
- m = 2 * c + 3 * e + 4 * h;
8115
-
8116
- if (944 === m) {
8117
- d = a.indexOf(':', 9) + 1;
8118
- var b = a.substring(d, a.length - 1).trim();
8119
- b = a.substring(0, d).trim() + b + ';';
8120
- return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
8121
- }
8122
-
8123
- if (0 === w || 2 === w && !L(a, 1)) return a;
8124
-
8125
- switch (m) {
8126
- case 1015:
8127
- return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
8128
-
8129
- case 951:
8130
- return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
8131
-
8132
- case 963:
8133
- return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
8134
-
8135
- case 1009:
8136
- if (100 !== a.charCodeAt(4)) break;
8137
-
8138
- case 969:
8139
- case 942:
8140
- return '-webkit-' + a + a;
8141
-
8142
- case 978:
8143
- return '-webkit-' + a + '-moz-' + a + a;
8144
-
8145
- case 1019:
8146
- case 983:
8147
- return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
8148
-
8149
- case 883:
8150
- if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
8151
- if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
8152
- break;
8153
-
8154
- case 932:
8155
- if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
8156
- case 103:
8157
- return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
8158
-
8159
- case 115:
8160
- return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
8161
-
8162
- case 98:
8163
- return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
8164
- }
8165
- return '-webkit-' + a + '-ms-' + a + a;
8166
-
8167
- case 964:
8168
- return '-webkit-' + a + '-ms-flex-' + a + a;
8169
-
8170
- case 1023:
8171
- if (99 !== a.charCodeAt(8)) break;
8172
- b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
8173
- return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
8174
-
8175
- case 1005:
8176
- return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
8177
-
8178
- case 1e3:
8179
- b = a.substring(13).trim();
8180
- c = b.indexOf('-') + 1;
8181
-
8182
- switch (b.charCodeAt(0) + b.charCodeAt(c)) {
8183
- case 226:
8184
- b = a.replace(G, 'tb');
8185
- break;
8186
-
8187
- case 232:
8188
- b = a.replace(G, 'tb-rl');
8189
- break;
8190
-
8191
- case 220:
8192
- b = a.replace(G, 'lr');
8193
- break;
8194
-
8195
- default:
8196
- return a;
8197
- }
8198
-
8199
- return '-webkit-' + a + '-ms-' + b + a;
8200
-
8201
- case 1017:
8202
- if (-1 === a.indexOf('sticky', 9)) break;
8203
-
8204
- case 975:
8205
- c = (a = d).length - 10;
8206
- b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
8207
-
8208
- switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
8209
- case 203:
8210
- if (111 > b.charCodeAt(8)) break;
8211
-
8212
- case 115:
8213
- a = a.replace(b, '-webkit-' + b) + ';' + a;
8214
- break;
8215
-
8216
- case 207:
8217
- case 102:
8218
- a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
8219
- }
8220
-
8221
- return a + ';';
8222
-
8223
- case 938:
8224
- if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
8225
- case 105:
8226
- return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
8227
-
8228
- case 115:
8229
- return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
8230
-
8231
- default:
8232
- return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
8233
- }
8234
- break;
8235
-
8236
- case 973:
8237
- case 989:
8238
- if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
8239
-
8240
- case 931:
8241
- case 953:
8242
- if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
8243
- break;
8244
-
8245
- case 962:
8246
- if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
8247
- }
8248
-
8249
- return a;
8250
- }
8251
-
8252
- function L(d, c) {
8253
- var e = d.indexOf(1 === c ? ':' : '{'),
8254
- h = d.substring(0, 3 !== c ? e : 10);
8255
- e = d.substring(e + 1, d.length - 1);
8256
- return R(2 !== c ? h : h.replace(na, '$1'), e, c);
8257
- }
8258
-
8259
- function ea(d, c) {
8260
- var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
8261
- return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
8262
- }
8263
-
8264
- function H(d, c, e, h, a, m, b, v, n, q) {
8265
- for (var g = 0, x = c, w; g < A; ++g) {
8266
- switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
8267
- case void 0:
8268
- case !1:
8269
- case !0:
8270
- case null:
8271
- break;
8272
-
8273
- default:
8274
- x = w;
8275
- }
8276
- }
8277
-
8278
- if (x !== c) return x;
8279
- }
8280
-
8281
- function T(d) {
8282
- switch (d) {
8283
- case void 0:
8284
- case null:
8285
- A = S.length = 0;
8286
- break;
8287
-
8288
- default:
8289
- switch (d.constructor) {
8290
- case Array:
8291
- for (var c = 0, e = d.length; c < e; ++c) {
8292
- T(d[c]);
8293
- }
8294
-
8295
- break;
8296
-
8297
- case Function:
8298
- S[A++] = d;
8299
- break;
8300
-
8301
- case Boolean:
8302
- Y = !!d | 0;
8303
- }
8304
-
8305
- }
8306
-
8307
- return T;
8308
- }
8309
-
8310
- function U(d) {
8311
- d = d.prefix;
8312
- void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
8313
- return U;
8314
- }
8315
-
8316
- function B(d, c) {
8317
- var e = d;
8318
- 33 > e.charCodeAt(0) && (e = e.trim());
8319
- V = e;
8320
- e = [V];
8321
-
8322
- if (0 < A) {
8323
- var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
8324
- void 0 !== h && 'string' === typeof h && (c = h);
8325
- }
8326
-
8327
- var a = M(O, e, c, 0, 0);
8328
- 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
8329
- V = '';
8330
- E = 0;
8331
- z = D = 1;
8332
- return a;
8333
- }
8334
-
8335
- var ca = /^\0+/g,
8336
- N = /[\0\r\f]/g,
8337
- aa = /: */g,
8338
- ka = /zoo|gra/,
8339
- ma = /([,: ])(transform)/g,
8340
- ia = /,\r+?/g,
8341
- F = /([\t\r\n ])*\f?&/g,
8342
- fa = /@(k\w+)\s*(\S*)\s*/,
8343
- Q = /::(place)/g,
8344
- ha = /:(read-only)/g,
8345
- G = /[svh]\w+-[tblr]{2}/,
8346
- da = /\(\s*(.*)\s*\)/g,
8347
- oa = /([\s\S]*?);/g,
8348
- ba = /-self|flex-/g,
8349
- na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
8350
- la = /stretch|:\s*\w+\-(?:conte|avail)/,
8351
- ja = /([^-])(image-set\()/,
8352
- z = 1,
8353
- D = 1,
8354
- E = 0,
8355
- w = 1,
8356
- O = [],
8357
- S = [],
8358
- A = 0,
8359
- R = null,
8360
- Y = 0,
8361
- V = '';
8362
- B.use = T;
8363
- B.set = U;
8364
- void 0 !== W && U(W);
8365
- return B;
8366
- }
8367
-
8368
- /* harmony default export */ __webpack_exports__["a"] = (stylis_min);
8369
-
8370
-
8371
- /***/ }),
8372
- /* 39 */
8373
- /***/ (function(module, exports, __webpack_require__) {
8374
-
8375
- (function (factory) {
8376
- true ? (module['exports'] = factory()) :
8377
- typeof define === 'function' && define['amd'] ? define(factory()) :
8378
- (window['stylisRuleSheet'] = factory())
8379
- }(function () {
8380
-
8381
- 'use strict'
8382
-
8383
- return function (insertRule) {
8384
- var delimiter = '/*|*/'
8385
- var needle = delimiter+'}'
8386
-
8387
- function toSheet (block) {
8388
- if (block)
8389
- try {
8390
- insertRule(block + '}')
8391
- } catch (e) {}
8392
- }
8393
-
8394
- return function ruleSheet (context, content, selectors, parents, line, column, length, ns, depth, at) {
8395
- switch (context) {
8396
- // property
8397
- case 1:
8398
- // @import
8399
- if (depth === 0 && content.charCodeAt(0) === 64)
8400
- return insertRule(content+';'), ''
8401
- break
8402
- // selector
8403
- case 2:
8404
- if (ns === 0)
8405
- return content + delimiter
8406
- break
8407
- // at-rule
8408
- case 3:
8409
- switch (ns) {
8410
- // @font-face, @page
8411
- case 102:
8412
- case 112:
8413
- return insertRule(selectors[0]+content), ''
8414
- default:
8415
- return content + (at === 0 ? delimiter : '')
8416
- }
8417
- case -2:
8418
- content.split(needle).forEach(toSheet)
8419
- }
8420
- }
8421
- }
8422
- }))
8423
-
8424
-
8425
- /***/ }),
8426
- /* 40 */
8427
- /***/ (function(module, exports, __webpack_require__) {
8428
-
8429
- "use strict";
8430
- /** @license React v16.8.6
8431
- * react-is.production.min.js
8432
- *
8433
- * Copyright (c) Facebook, Inc. and its affiliates.
8434
- *
8435
- * This source code is licensed under the MIT license found in the
8436
- * LICENSE file in the root directory of this source tree.
8437
- */
8438
-
8439
- Object.defineProperty(exports,"__esModule",{value:!0});
8440
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.memo"):
8441
- 60115,r=b?Symbol.for("react.lazy"):60116;function t(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}exports.typeOf=t;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;
8442
- exports.Fragment=e;exports.Lazy=r;exports.Memo=q;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||"object"===typeof a&&null!==a&&(a.$$typeof===r||a.$$typeof===q||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n)};exports.isAsyncMode=function(a){return v(a)||t(a)===l};exports.isConcurrentMode=v;exports.isContextConsumer=function(a){return t(a)===k};
8443
- exports.isContextProvider=function(a){return t(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return t(a)===n};exports.isFragment=function(a){return t(a)===e};exports.isLazy=function(a){return t(a)===r};exports.isMemo=function(a){return t(a)===q};exports.isPortal=function(a){return t(a)===d};exports.isProfiler=function(a){return t(a)===g};exports.isStrictMode=function(a){return t(a)===f};
8444
- exports.isSuspense=function(a){return t(a)===p};
8445
-
8446
-
8447
- /***/ }),
8448
- /* 41 */
8449
- /***/ (function(module, exports, __webpack_require__) {
8450
-
8451
- "use strict";
8452
- /* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.8.6
8453
- * react-is.development.js
8454
- *
8455
- * Copyright (c) Facebook, Inc. and its affiliates.
8456
- *
8457
- * This source code is licensed under the MIT license found in the
8458
- * LICENSE file in the root directory of this source tree.
8459
- */
8460
-
8461
-
8462
-
8463
-
8464
-
8465
- if (process.env.NODE_ENV !== "production") {
8466
- (function() {
8467
- 'use strict';
8468
-
8469
- Object.defineProperty(exports, '__esModule', { value: true });
8470
-
8471
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
8472
- // nor polyfill, then a plain number is used for performance.
8473
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
8474
-
8475
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
8476
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
8477
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
8478
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
8479
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
8480
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
8481
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
8482
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
8483
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
8484
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
8485
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
8486
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
8487
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
8488
-
8489
- function isValidElementType(type) {
8490
- return typeof type === 'string' || typeof type === 'function' ||
8491
- // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
8492
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
8493
- }
8494
-
8495
- /**
8496
- * Forked from fbjs/warning:
8497
- * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
8498
- *
8499
- * Only change is we use console.warn instead of console.error,
8500
- * and do nothing when 'console' is not supported.
8501
- * This really simplifies the code.
8502
- * ---
8503
- * Similar to invariant but only logs a warning if the condition is not met.
8504
- * This can be used to log issues in development environments in critical
8505
- * paths. Removing the logging code for production environments will keep the
8506
- * same logic and follow the same code paths.
8507
- */
8508
-
8509
- var lowPriorityWarning = function () {};
8510
-
8511
- {
8512
- var printWarning = function (format) {
8513
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
8514
- args[_key - 1] = arguments[_key];
8515
- }
8516
-
8517
- var argIndex = 0;
8518
- var message = 'Warning: ' + format.replace(/%s/g, function () {
8519
- return args[argIndex++];
8520
- });
8521
- if (typeof console !== 'undefined') {
8522
- console.warn(message);
8523
- }
8524
- try {
8525
- // --- Welcome to debugging React ---
8526
- // This error was thrown as a convenience so that you can use this stack
8527
- // to find the callsite that caused this warning to fire.
8528
- throw new Error(message);
8529
- } catch (x) {}
8530
- };
8531
-
8532
- lowPriorityWarning = function (condition, format) {
8533
- if (format === undefined) {
8534
- throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
8535
- }
8536
- if (!condition) {
8537
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
8538
- args[_key2 - 2] = arguments[_key2];
8539
- }
8540
-
8541
- printWarning.apply(undefined, [format].concat(args));
8542
- }
8543
- };
8544
- }
8545
-
8546
- var lowPriorityWarning$1 = lowPriorityWarning;
8547
-
8548
- function typeOf(object) {
8549
- if (typeof object === 'object' && object !== null) {
8550
- var $$typeof = object.$$typeof;
8551
- switch ($$typeof) {
8552
- case REACT_ELEMENT_TYPE:
8553
- var type = object.type;
8554
-
8555
- switch (type) {
8556
- case REACT_ASYNC_MODE_TYPE:
8557
- case REACT_CONCURRENT_MODE_TYPE:
8558
- case REACT_FRAGMENT_TYPE:
8559
- case REACT_PROFILER_TYPE:
8560
- case REACT_STRICT_MODE_TYPE:
8561
- case REACT_SUSPENSE_TYPE:
8562
- return type;
8563
- default:
8564
- var $$typeofType = type && type.$$typeof;
8565
-
8566
- switch ($$typeofType) {
8567
- case REACT_CONTEXT_TYPE:
8568
- case REACT_FORWARD_REF_TYPE:
8569
- case REACT_PROVIDER_TYPE:
8570
- return $$typeofType;
8571
- default:
8572
- return $$typeof;
8573
- }
8574
- }
8575
- case REACT_LAZY_TYPE:
8576
- case REACT_MEMO_TYPE:
8577
- case REACT_PORTAL_TYPE:
8578
- return $$typeof;
8579
- }
8580
- }
8581
-
8582
- return undefined;
8583
- }
8584
-
8585
- // AsyncMode is deprecated along with isAsyncMode
8586
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
8587
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
8588
- var ContextConsumer = REACT_CONTEXT_TYPE;
8589
- var ContextProvider = REACT_PROVIDER_TYPE;
8590
- var Element = REACT_ELEMENT_TYPE;
8591
- var ForwardRef = REACT_FORWARD_REF_TYPE;
8592
- var Fragment = REACT_FRAGMENT_TYPE;
8593
- var Lazy = REACT_LAZY_TYPE;
8594
- var Memo = REACT_MEMO_TYPE;
8595
- var Portal = REACT_PORTAL_TYPE;
8596
- var Profiler = REACT_PROFILER_TYPE;
8597
- var StrictMode = REACT_STRICT_MODE_TYPE;
8598
- var Suspense = REACT_SUSPENSE_TYPE;
8599
-
8600
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
8601
-
8602
- // AsyncMode should be deprecated
8603
- function isAsyncMode(object) {
8604
- {
8605
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
8606
- hasWarnedAboutDeprecatedIsAsyncMode = true;
8607
- lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
8608
- }
8609
- }
8610
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
8611
- }
8612
- function isConcurrentMode(object) {
8613
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
8614
- }
8615
- function isContextConsumer(object) {
8616
- return typeOf(object) === REACT_CONTEXT_TYPE;
8617
- }
8618
- function isContextProvider(object) {
8619
- return typeOf(object) === REACT_PROVIDER_TYPE;
8620
- }
8621
- function isElement(object) {
8622
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
8623
- }
8624
- function isForwardRef(object) {
8625
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
8626
- }
8627
- function isFragment(object) {
8628
- return typeOf(object) === REACT_FRAGMENT_TYPE;
8629
- }
8630
- function isLazy(object) {
8631
- return typeOf(object) === REACT_LAZY_TYPE;
8632
- }
8633
- function isMemo(object) {
8634
- return typeOf(object) === REACT_MEMO_TYPE;
8635
- }
8636
- function isPortal(object) {
8637
- return typeOf(object) === REACT_PORTAL_TYPE;
8638
- }
8639
- function isProfiler(object) {
8640
- return typeOf(object) === REACT_PROFILER_TYPE;
8641
- }
8642
- function isStrictMode(object) {
8643
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
8644
- }
8645
- function isSuspense(object) {
8646
- return typeOf(object) === REACT_SUSPENSE_TYPE;
8647
- }
8648
-
8649
- exports.typeOf = typeOf;
8650
- exports.AsyncMode = AsyncMode;
8651
- exports.ConcurrentMode = ConcurrentMode;
8652
- exports.ContextConsumer = ContextConsumer;
8653
- exports.ContextProvider = ContextProvider;
8654
- exports.Element = Element;
8655
- exports.ForwardRef = ForwardRef;
8656
- exports.Fragment = Fragment;
8657
- exports.Lazy = Lazy;
8658
- exports.Memo = Memo;
8659
- exports.Portal = Portal;
8660
- exports.Profiler = Profiler;
8661
- exports.StrictMode = StrictMode;
8662
- exports.Suspense = Suspense;
8663
- exports.isValidElementType = isValidElementType;
8664
- exports.isAsyncMode = isAsyncMode;
8665
- exports.isConcurrentMode = isConcurrentMode;
8666
- exports.isContextConsumer = isContextConsumer;
8667
- exports.isContextProvider = isContextProvider;
8668
- exports.isElement = isElement;
8669
- exports.isForwardRef = isForwardRef;
8670
- exports.isFragment = isFragment;
8671
- exports.isLazy = isLazy;
8672
- exports.isMemo = isMemo;
8673
- exports.isPortal = isPortal;
8674
- exports.isProfiler = isProfiler;
8675
- exports.isStrictMode = isStrictMode;
8676
- exports.isSuspense = isSuspense;
8677
- })();
8678
- }
8679
-
8680
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
8681
-
8682
- /***/ }),
8683
- /* 42 */
8684
- /***/ (function(module, exports, __webpack_require__) {
8685
-
8686
- "use strict";
8687
- /* WEBPACK VAR INJECTION */(function(process) {/**
8688
- * Copyright (c) 2013-present, Facebook, Inc.
8689
- *
8690
- * This source code is licensed under the MIT license found in the
8691
- * LICENSE file in the root directory of this source tree.
8692
- */
8693
-
8694
-
8695
-
8696
- var ReactIs = __webpack_require__(18);
8697
- var assign = __webpack_require__(43);
8698
-
8699
- var ReactPropTypesSecret = __webpack_require__(7);
8700
- var checkPropTypes = __webpack_require__(44);
8701
-
8702
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
8703
- var printWarning = function() {};
8704
-
8705
- if (process.env.NODE_ENV !== 'production') {
8706
- printWarning = function(text) {
8707
- var message = 'Warning: ' + text;
8708
- if (typeof console !== 'undefined') {
8709
- console.error(message);
8710
- }
8711
- try {
8712
- // --- Welcome to debugging React ---
8713
- // This error was thrown as a convenience so that you can use this stack
8714
- // to find the callsite that caused this warning to fire.
8715
- throw new Error(message);
8716
- } catch (x) {}
8717
- };
8718
- }
8719
-
8720
- function emptyFunctionThatReturnsNull() {
8721
- return null;
8722
- }
8723
-
8724
- module.exports = function(isValidElement, throwOnDirectAccess) {
8725
- /* global Symbol */
8726
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
8727
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
8728
-
8729
- /**
8730
- * Returns the iterator method function contained on the iterable object.
8731
- *
8732
- * Be sure to invoke the function with the iterable as context:
8733
- *
8734
- * var iteratorFn = getIteratorFn(myIterable);
8735
- * if (iteratorFn) {
8736
- * var iterator = iteratorFn.call(myIterable);
8737
- * ...
8738
- * }
8739
- *
8740
- * @param {?object} maybeIterable
8741
- * @return {?function}
8742
- */
8743
- function getIteratorFn(maybeIterable) {
8744
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
8745
- if (typeof iteratorFn === 'function') {
8746
- return iteratorFn;
8747
- }
8748
- }
8749
-
8750
- /**
8751
- * Collection of methods that allow declaration and validation of props that are
8752
- * supplied to React components. Example usage:
8753
- *
8754
- * var Props = require('ReactPropTypes');
8755
- * var MyArticle = React.createClass({
8756
- * propTypes: {
8757
- * // An optional string prop named "description".
8758
- * description: Props.string,
8759
- *
8760
- * // A required enum prop named "category".
8761
- * category: Props.oneOf(['News','Photos']).isRequired,
8762
- *
8763
- * // A prop named "dialog" that requires an instance of Dialog.
8764
- * dialog: Props.instanceOf(Dialog).isRequired
8765
- * },
8766
- * render: function() { ... }
8767
- * });
8768
- *
8769
- * A more formal specification of how these methods are used:
8770
- *
8771
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
8772
- * decl := ReactPropTypes.{type}(.isRequired)?
8773
- *
8774
- * Each and every declaration produces a function with the same signature. This
8775
- * allows the creation of custom validation functions. For example:
8776
- *
8777
- * var MyLink = React.createClass({
8778
- * propTypes: {
8779
- * // An optional string or URI prop named "href".
8780
- * href: function(props, propName, componentName) {
8781
- * var propValue = props[propName];
8782
- * if (propValue != null && typeof propValue !== 'string' &&
8783
- * !(propValue instanceof URI)) {
8784
- * return new Error(
8785
- * 'Expected a string or an URI for ' + propName + ' in ' +
8786
- * componentName
8787
- * );
8788
- * }
8789
- * }
8790
- * },
8791
- * render: function() {...}
8792
- * });
8793
- *
8794
- * @internal
8795
- */
8796
-
8797
- var ANONYMOUS = '<<anonymous>>';
8798
-
8799
- // Important!
8800
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
8801
- var ReactPropTypes = {
8802
- array: createPrimitiveTypeChecker('array'),
8803
- bool: createPrimitiveTypeChecker('boolean'),
8804
- func: createPrimitiveTypeChecker('function'),
8805
- number: createPrimitiveTypeChecker('number'),
8806
- object: createPrimitiveTypeChecker('object'),
8807
- string: createPrimitiveTypeChecker('string'),
8808
- symbol: createPrimitiveTypeChecker('symbol'),
8809
-
8810
- any: createAnyTypeChecker(),
8811
- arrayOf: createArrayOfTypeChecker,
8812
- element: createElementTypeChecker(),
8813
- elementType: createElementTypeTypeChecker(),
8814
- instanceOf: createInstanceTypeChecker,
8815
- node: createNodeChecker(),
8816
- objectOf: createObjectOfTypeChecker,
8817
- oneOf: createEnumTypeChecker,
8818
- oneOfType: createUnionTypeChecker,
8819
- shape: createShapeTypeChecker,
8820
- exact: createStrictShapeTypeChecker,
8821
- };
8822
-
8823
- /**
8824
- * inlined Object.is polyfill to avoid requiring consumers ship their own
8825
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
8826
- */
8827
- /*eslint-disable no-self-compare*/
8828
- function is(x, y) {
8829
- // SameValue algorithm
8830
- if (x === y) {
8831
- // Steps 1-5, 7-10
8832
- // Steps 6.b-6.e: +0 != -0
8833
- return x !== 0 || 1 / x === 1 / y;
8834
- } else {
8835
- // Step 6.a: NaN == NaN
8836
- return x !== x && y !== y;
8837
- }
8838
- }
8839
- /*eslint-enable no-self-compare*/
8840
-
8841
- /**
8842
- * We use an Error-like object for backward compatibility as people may call
8843
- * PropTypes directly and inspect their output. However, we don't use real
8844
- * Errors anymore. We don't inspect their stack anyway, and creating them
8845
- * is prohibitively expensive if they are created too often, such as what
8846
- * happens in oneOfType() for any type before the one that matched.
8847
- */
8848
- function PropTypeError(message) {
8849
- this.message = message;
8850
- this.stack = '';
8851
- }
8852
- // Make `instanceof Error` still work for returned errors.
8853
- PropTypeError.prototype = Error.prototype;
8854
-
8855
- function createChainableTypeChecker(validate) {
8856
- if (process.env.NODE_ENV !== 'production') {
8857
- var manualPropTypeCallCache = {};
8858
- var manualPropTypeWarningCount = 0;
8859
- }
8860
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
8861
- componentName = componentName || ANONYMOUS;
8862
- propFullName = propFullName || propName;
8863
-
8864
- if (secret !== ReactPropTypesSecret) {
8865
- if (throwOnDirectAccess) {
8866
- // New behavior only for users of `prop-types` package
8867
- var err = new Error(
8868
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
8869
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
8870
- 'Read more at http://fb.me/use-check-prop-types'
8871
- );
8872
- err.name = 'Invariant Violation';
8873
- throw err;
8874
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
8875
- // Old behavior for people using React.PropTypes
8876
- var cacheKey = componentName + ':' + propName;
8877
- if (
8878
- !manualPropTypeCallCache[cacheKey] &&
8879
- // Avoid spamming the console because they are often not actionable except for lib authors
8880
- manualPropTypeWarningCount < 3
8881
- ) {
8882
- printWarning(
8883
- 'You are manually calling a React.PropTypes validation ' +
8884
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
8885
- 'and will throw in the standalone `prop-types` package. ' +
8886
- 'You may be seeing this warning due to a third-party PropTypes ' +
8887
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
8888
- );
8889
- manualPropTypeCallCache[cacheKey] = true;
8890
- manualPropTypeWarningCount++;
8891
- }
8892
- }
8893
- }
8894
- if (props[propName] == null) {
8895
- if (isRequired) {
8896
- if (props[propName] === null) {
8897
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
8898
- }
8899
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
8900
- }
8901
- return null;
8902
- } else {
8903
- return validate(props, propName, componentName, location, propFullName);
8904
- }
8905
- }
8906
-
8907
- var chainedCheckType = checkType.bind(null, false);
8908
- chainedCheckType.isRequired = checkType.bind(null, true);
8909
-
8910
- return chainedCheckType;
8911
- }
8912
-
8913
- function createPrimitiveTypeChecker(expectedType) {
8914
- function validate(props, propName, componentName, location, propFullName, secret) {
8915
- var propValue = props[propName];
8916
- var propType = getPropType(propValue);
8917
- if (propType !== expectedType) {
8918
- // `propValue` being instance of, say, date/regexp, pass the 'object'
8919
- // check, but we can offer a more precise error message here rather than
8920
- // 'of type `object`'.
8921
- var preciseType = getPreciseType(propValue);
8922
-
8923
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
8924
- }
8925
- return null;
8926
- }
8927
- return createChainableTypeChecker(validate);
8928
- }
8929
-
8930
- function createAnyTypeChecker() {
8931
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
8932
- }
8933
-
8934
- function createArrayOfTypeChecker(typeChecker) {
8935
- function validate(props, propName, componentName, location, propFullName) {
8936
- if (typeof typeChecker !== 'function') {
8937
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
8938
- }
8939
- var propValue = props[propName];
8940
- if (!Array.isArray(propValue)) {
8941
- var propType = getPropType(propValue);
8942
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
8943
- }
8944
- for (var i = 0; i < propValue.length; i++) {
8945
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
8946
- if (error instanceof Error) {
8947
- return error;
8948
- }
8949
- }
8950
- return null;
8951
- }
8952
- return createChainableTypeChecker(validate);
8953
- }
8954
-
8955
- function createElementTypeChecker() {
8956
- function validate(props, propName, componentName, location, propFullName) {
8957
- var propValue = props[propName];
8958
- if (!isValidElement(propValue)) {
8959
- var propType = getPropType(propValue);
8960
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
8961
- }
8962
- return null;
8963
- }
8964
- return createChainableTypeChecker(validate);
8965
- }
8966
-
8967
- function createElementTypeTypeChecker() {
8968
- function validate(props, propName, componentName, location, propFullName) {
8969
- var propValue = props[propName];
8970
- if (!ReactIs.isValidElementType(propValue)) {
8971
- var propType = getPropType(propValue);
8972
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
8973
- }
8974
- return null;
8975
- }
8976
- return createChainableTypeChecker(validate);
8977
- }
8978
-
8979
- function createInstanceTypeChecker(expectedClass) {
8980
- function validate(props, propName, componentName, location, propFullName) {
8981
- if (!(props[propName] instanceof expectedClass)) {
8982
- var expectedClassName = expectedClass.name || ANONYMOUS;
8983
- var actualClassName = getClassName(props[propName]);
8984
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
8985
- }
8986
- return null;
8987
- }
8988
- return createChainableTypeChecker(validate);
8989
- }
8990
-
8991
- function createEnumTypeChecker(expectedValues) {
8992
- if (!Array.isArray(expectedValues)) {
8993
- if (process.env.NODE_ENV !== 'production') {
8994
- if (arguments.length > 1) {
8995
- printWarning(
8996
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
8997
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
8998
- );
8999
- } else {
9000
- printWarning('Invalid argument supplied to oneOf, expected an array.');
9001
- }
9002
- }
9003
- return emptyFunctionThatReturnsNull;
9004
- }
9005
-
9006
- function validate(props, propName, componentName, location, propFullName) {
9007
- var propValue = props[propName];
9008
- for (var i = 0; i < expectedValues.length; i++) {
9009
- if (is(propValue, expectedValues[i])) {
9010
- return null;
9011
- }
9012
- }
9013
-
9014
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
9015
- var type = getPreciseType(value);
9016
- if (type === 'symbol') {
9017
- return String(value);
9018
- }
9019
- return value;
9020
- });
9021
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
9022
- }
9023
- return createChainableTypeChecker(validate);
9024
- }
9025
-
9026
- function createObjectOfTypeChecker(typeChecker) {
9027
- function validate(props, propName, componentName, location, propFullName) {
9028
- if (typeof typeChecker !== 'function') {
9029
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
9030
- }
9031
- var propValue = props[propName];
9032
- var propType = getPropType(propValue);
9033
- if (propType !== 'object') {
9034
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
9035
- }
9036
- for (var key in propValue) {
9037
- if (has(propValue, key)) {
9038
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
9039
- if (error instanceof Error) {
9040
- return error;
9041
- }
9042
- }
9043
- }
9044
- return null;
9045
- }
9046
- return createChainableTypeChecker(validate);
9047
- }
9048
-
9049
- function createUnionTypeChecker(arrayOfTypeCheckers) {
9050
- if (!Array.isArray(arrayOfTypeCheckers)) {
9051
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
9052
- return emptyFunctionThatReturnsNull;
9053
- }
9054
-
9055
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
9056
- var checker = arrayOfTypeCheckers[i];
9057
- if (typeof checker !== 'function') {
9058
- printWarning(
9059
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
9060
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
9061
- );
9062
- return emptyFunctionThatReturnsNull;
9063
- }
9064
- }
9065
-
9066
- function validate(props, propName, componentName, location, propFullName) {
9067
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
9068
- var checker = arrayOfTypeCheckers[i];
9069
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
9070
- return null;
9071
- }
9072
- }
9073
-
9074
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
9075
- }
9076
- return createChainableTypeChecker(validate);
9077
- }
9078
-
9079
- function createNodeChecker() {
9080
- function validate(props, propName, componentName, location, propFullName) {
9081
- if (!isNode(props[propName])) {
9082
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
9083
- }
9084
- return null;
9085
- }
9086
- return createChainableTypeChecker(validate);
9087
- }
9088
-
9089
- function createShapeTypeChecker(shapeTypes) {
9090
- function validate(props, propName, componentName, location, propFullName) {
9091
- var propValue = props[propName];
9092
- var propType = getPropType(propValue);
9093
- if (propType !== 'object') {
9094
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
9095
- }
9096
- for (var key in shapeTypes) {
9097
- var checker = shapeTypes[key];
9098
- if (!checker) {
9099
- continue;
9100
- }
9101
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
9102
- if (error) {
9103
- return error;
9104
- }
9105
- }
9106
- return null;
9107
- }
9108
- return createChainableTypeChecker(validate);
9109
- }
9110
-
9111
- function createStrictShapeTypeChecker(shapeTypes) {
9112
- function validate(props, propName, componentName, location, propFullName) {
9113
- var propValue = props[propName];
9114
- var propType = getPropType(propValue);
9115
- if (propType !== 'object') {
9116
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
9117
- }
9118
- // We need to check all keys in case some are required but missing from
9119
- // props.
9120
- var allKeys = assign({}, props[propName], shapeTypes);
9121
- for (var key in allKeys) {
9122
- var checker = shapeTypes[key];
9123
- if (!checker) {
9124
- return new PropTypeError(
9125
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
9126
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
9127
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
9128
- );
9129
- }
9130
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
9131
- if (error) {
9132
- return error;
9133
- }
9134
- }
9135
- return null;
9136
- }
9137
-
9138
- return createChainableTypeChecker(validate);
9139
- }
9140
-
9141
- function isNode(propValue) {
9142
- switch (typeof propValue) {
9143
- case 'number':
9144
- case 'string':
9145
- case 'undefined':
9146
- return true;
9147
- case 'boolean':
9148
- return !propValue;
9149
- case 'object':
9150
- if (Array.isArray(propValue)) {
9151
- return propValue.every(isNode);
9152
- }
9153
- if (propValue === null || isValidElement(propValue)) {
9154
- return true;
9155
- }
9156
-
9157
- var iteratorFn = getIteratorFn(propValue);
9158
- if (iteratorFn) {
9159
- var iterator = iteratorFn.call(propValue);
9160
- var step;
9161
- if (iteratorFn !== propValue.entries) {
9162
- while (!(step = iterator.next()).done) {
9163
- if (!isNode(step.value)) {
9164
- return false;
9165
- }
9166
- }
9167
- } else {
9168
- // Iterator will provide entry [k,v] tuples rather than values.
9169
- while (!(step = iterator.next()).done) {
9170
- var entry = step.value;
9171
- if (entry) {
9172
- if (!isNode(entry[1])) {
9173
- return false;
9174
- }
9175
- }
9176
- }
9177
- }
9178
- } else {
9179
- return false;
9180
- }
9181
-
9182
- return true;
9183
- default:
9184
- return false;
9185
- }
9186
- }
9187
-
9188
- function isSymbol(propType, propValue) {
9189
- // Native Symbol.
9190
- if (propType === 'symbol') {
9191
- return true;
9192
- }
9193
-
9194
- // falsy value can't be a Symbol
9195
- if (!propValue) {
9196
- return false;
9197
- }
9198
-
9199
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
9200
- if (propValue['@@toStringTag'] === 'Symbol') {
9201
- return true;
9202
- }
9203
-
9204
- // Fallback for non-spec compliant Symbols which are polyfilled.
9205
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
9206
- return true;
9207
- }
9208
-
9209
- return false;
9210
- }
9211
-
9212
- // Equivalent of `typeof` but with special handling for array and regexp.
9213
- function getPropType(propValue) {
9214
- var propType = typeof propValue;
9215
- if (Array.isArray(propValue)) {
9216
- return 'array';
9217
- }
9218
- if (propValue instanceof RegExp) {
9219
- // Old webkits (at least until Android 4.0) return 'function' rather than
9220
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
9221
- // passes PropTypes.object.
9222
- return 'object';
9223
- }
9224
- if (isSymbol(propType, propValue)) {
9225
- return 'symbol';
9226
- }
9227
- return propType;
9228
- }
9229
-
9230
- // This handles more types than `getPropType`. Only used for error messages.
9231
- // See `createPrimitiveTypeChecker`.
9232
- function getPreciseType(propValue) {
9233
- if (typeof propValue === 'undefined' || propValue === null) {
9234
- return '' + propValue;
9235
- }
9236
- var propType = getPropType(propValue);
9237
- if (propType === 'object') {
9238
- if (propValue instanceof Date) {
9239
- return 'date';
9240
- } else if (propValue instanceof RegExp) {
9241
- return 'regexp';
9242
- }
9243
- }
9244
- return propType;
9245
- }
9246
-
9247
- // Returns a string that is postfixed to a warning about an invalid type.
9248
- // For example, "undefined" or "of type array"
9249
- function getPostfixForTypeWarning(value) {
9250
- var type = getPreciseType(value);
9251
- switch (type) {
9252
- case 'array':
9253
- case 'object':
9254
- return 'an ' + type;
9255
- case 'boolean':
9256
- case 'date':
9257
- case 'regexp':
9258
- return 'a ' + type;
9259
- default:
9260
- return type;
9261
- }
9262
- }
9263
-
9264
- // Returns class name of the object, if any.
9265
- function getClassName(propValue) {
9266
- if (!propValue.constructor || !propValue.constructor.name) {
9267
- return ANONYMOUS;
9268
- }
9269
- return propValue.constructor.name;
9270
- }
9271
-
9272
- ReactPropTypes.checkPropTypes = checkPropTypes;
9273
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
9274
- ReactPropTypes.PropTypes = ReactPropTypes;
9275
-
9276
- return ReactPropTypes;
9277
- };
9278
-
9279
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
9280
-
9281
- /***/ }),
9282
- /* 43 */
9283
- /***/ (function(module, exports, __webpack_require__) {
9284
-
9285
- "use strict";
9286
- /*
9287
- object-assign
9288
- (c) Sindre Sorhus
9289
- @license MIT
9290
- */
9291
-
9292
-
9293
- /* eslint-disable no-unused-vars */
9294
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
9295
- var hasOwnProperty = Object.prototype.hasOwnProperty;
9296
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
9297
-
9298
- function toObject(val) {
9299
- if (val === null || val === undefined) {
9300
- throw new TypeError('Object.assign cannot be called with null or undefined');
9301
- }
9302
-
9303
- return Object(val);
9304
- }
9305
-
9306
- function shouldUseNative() {
9307
- try {
9308
- if (!Object.assign) {
9309
- return false;
9310
- }
9311
-
9312
- // Detect buggy property enumeration order in older V8 versions.
9313
-
9314
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
9315
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
9316
- test1[5] = 'de';
9317
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
9318
- return false;
9319
- }
9320
-
9321
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
9322
- var test2 = {};
9323
- for (var i = 0; i < 10; i++) {
9324
- test2['_' + String.fromCharCode(i)] = i;
9325
- }
9326
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
9327
- return test2[n];
9328
- });
9329
- if (order2.join('') !== '0123456789') {
9330
- return false;
9331
- }
9332
-
9333
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
9334
- var test3 = {};
9335
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
9336
- test3[letter] = letter;
9337
- });
9338
- if (Object.keys(Object.assign({}, test3)).join('') !==
9339
- 'abcdefghijklmnopqrst') {
9340
- return false;
9341
- }
9342
-
9343
- return true;
9344
- } catch (err) {
9345
- // We don't expect any of the above to throw, but better to be safe.
9346
- return false;
9347
- }
9348
- }
9349
-
9350
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
9351
- var from;
9352
- var to = toObject(target);
9353
- var symbols;
9354
-
9355
- for (var s = 1; s < arguments.length; s++) {
9356
- from = Object(arguments[s]);
9357
-
9358
- for (var key in from) {
9359
- if (hasOwnProperty.call(from, key)) {
9360
- to[key] = from[key];
9361
- }
9362
- }
9363
-
9364
- if (getOwnPropertySymbols) {
9365
- symbols = getOwnPropertySymbols(from);
9366
- for (var i = 0; i < symbols.length; i++) {
9367
- if (propIsEnumerable.call(from, symbols[i])) {
9368
- to[symbols[i]] = from[symbols[i]];
9369
- }
9370
- }
9371
- }
9372
- }
9373
-
9374
- return to;
9375
- };
9376
-
9377
-
9378
- /***/ }),
9379
- /* 44 */
9380
- /***/ (function(module, exports, __webpack_require__) {
9381
-
9382
- "use strict";
9383
- /* WEBPACK VAR INJECTION */(function(process) {/**
9384
- * Copyright (c) 2013-present, Facebook, Inc.
9385
- *
9386
- * This source code is licensed under the MIT license found in the
9387
- * LICENSE file in the root directory of this source tree.
9388
- */
9389
-
9390
-
9391
-
9392
- var printWarning = function() {};
9393
-
9394
- if (process.env.NODE_ENV !== 'production') {
9395
- var ReactPropTypesSecret = __webpack_require__(7);
9396
- var loggedTypeFailures = {};
9397
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
9398
-
9399
- printWarning = function(text) {
9400
- var message = 'Warning: ' + text;
9401
- if (typeof console !== 'undefined') {
9402
- console.error(message);
9403
- }
9404
- try {
9405
- // --- Welcome to debugging React ---
9406
- // This error was thrown as a convenience so that you can use this stack
9407
- // to find the callsite that caused this warning to fire.
9408
- throw new Error(message);
9409
- } catch (x) {}
9410
- };
9411
- }
9412
-
9413
- /**
9414
- * Assert that the values match with the type specs.
9415
- * Error messages are memorized and will only be shown once.
9416
- *
9417
- * @param {object} typeSpecs Map of name to a ReactPropType
9418
- * @param {object} values Runtime values that need to be type-checked
9419
- * @param {string} location e.g. "prop", "context", "child context"
9420
- * @param {string} componentName Name of the component for error messages.
9421
- * @param {?Function} getStack Returns the component stack.
9422
- * @private
9423
- */
9424
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
9425
- if (process.env.NODE_ENV !== 'production') {
9426
- for (var typeSpecName in typeSpecs) {
9427
- if (has(typeSpecs, typeSpecName)) {
9428
- var error;
9429
- // Prop type validation may throw. In case they do, we don't want to
9430
- // fail the render phase where it didn't fail before. So we log it.
9431
- // After these have been cleaned up, we'll let them throw.
9432
- try {
9433
- // This is intentionally an invariant that gets caught. It's the same
9434
- // behavior as without this statement except with a better message.
9435
- if (typeof typeSpecs[typeSpecName] !== 'function') {
9436
- var err = Error(
9437
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
9438
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
9439
- );
9440
- err.name = 'Invariant Violation';
9441
- throw err;
9442
- }
9443
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
9444
- } catch (ex) {
9445
- error = ex;
9446
- }
9447
- if (error && !(error instanceof Error)) {
9448
- printWarning(
9449
- (componentName || 'React class') + ': type specification of ' +
9450
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
9451
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
9452
- 'You may have forgotten to pass an argument to the type checker ' +
9453
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
9454
- 'shape all require an argument).'
9455
- );
9456
- }
9457
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
9458
- // Only monitor this failure once because there tends to be a lot of the
9459
- // same error.
9460
- loggedTypeFailures[error.message] = true;
9461
-
9462
- var stack = getStack ? getStack() : '';
9463
-
9464
- printWarning(
9465
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
9466
- );
9467
- }
9468
- }
9469
- }
9470
- }
9471
- }
9472
-
9473
- /**
9474
- * Resets warning cache when testing.
9475
- *
9476
- * @private
9477
- */
9478
- checkPropTypes.resetWarningCache = function() {
9479
- if (process.env.NODE_ENV !== 'production') {
9480
- loggedTypeFailures = {};
9481
- }
9482
- }
9483
-
9484
- module.exports = checkPropTypes;
9485
-
9486
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
9487
-
9488
- /***/ }),
9489
- /* 45 */
9490
- /***/ (function(module, exports, __webpack_require__) {
9491
-
9492
- "use strict";
9493
- /**
9494
- * Copyright (c) 2013-present, Facebook, Inc.
9495
- *
9496
- * This source code is licensed under the MIT license found in the
9497
- * LICENSE file in the root directory of this source tree.
9498
- */
9499
-
9500
-
9501
-
9502
- var ReactPropTypesSecret = __webpack_require__(7);
9503
-
9504
- function emptyFunction() {}
9505
- function emptyFunctionWithReset() {}
9506
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
9507
-
9508
- module.exports = function() {
9509
- function shim(props, propName, componentName, location, propFullName, secret) {
9510
- if (secret === ReactPropTypesSecret) {
9511
- // It is still safe when called from React.
9512
- return;
9513
- }
9514
- var err = new Error(
9515
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
9516
- 'Use PropTypes.checkPropTypes() to call them. ' +
9517
- 'Read more at http://fb.me/use-check-prop-types'
9518
- );
9519
- err.name = 'Invariant Violation';
9520
- throw err;
9521
- };
9522
- shim.isRequired = shim;
9523
- function getShim() {
9524
- return shim;
9525
- };
9526
- // Important!
9527
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
9528
- var ReactPropTypes = {
9529
- array: shim,
9530
- bool: shim,
9531
- func: shim,
9532
- number: shim,
9533
- object: shim,
9534
- string: shim,
9535
- symbol: shim,
9536
-
9537
- any: shim,
9538
- arrayOf: getShim,
9539
- element: shim,
9540
- elementType: shim,
9541
- instanceOf: getShim,
9542
- node: shim,
9543
- objectOf: getShim,
9544
- oneOf: getShim,
9545
- oneOfType: getShim,
9546
- shape: getShim,
9547
- exact: getShim,
9548
-
9549
- checkPropTypes: emptyFunctionWithReset,
9550
- resetWarningCache: emptyFunction
9551
- };
9552
-
9553
- ReactPropTypes.PropTypes = ReactPropTypes;
9554
-
9555
- return ReactPropTypes;
9556
- };
9557
-
9558
-
9559
- /***/ }),
9560
- /* 46 */
9561
- /***/ (function(module, exports, __webpack_require__) {
9562
-
9563
- /* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(47)
9564
- , root = typeof window === 'undefined' ? global : window
9565
- , vendors = ['moz', 'webkit']
9566
- , suffix = 'AnimationFrame'
9567
- , raf = root['request' + suffix]
9568
- , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]
9569
-
9570
- for(var i = 0; !raf && i < vendors.length; i++) {
9571
- raf = root[vendors[i] + 'Request' + suffix]
9572
- caf = root[vendors[i] + 'Cancel' + suffix]
9573
- || root[vendors[i] + 'CancelRequest' + suffix]
9574
- }
9575
-
9576
- // Some versions of FF have rAF but not cAF
9577
- if(!raf || !caf) {
9578
- var last = 0
9579
- , id = 0
9580
- , queue = []
9581
- , frameDuration = 1000 / 60
9582
-
9583
- raf = function(callback) {
9584
- if(queue.length === 0) {
9585
- var _now = now()
9586
- , next = Math.max(0, frameDuration - (_now - last))
9587
- last = next + _now
9588
- setTimeout(function() {
9589
- var cp = queue.slice(0)
9590
- // Clear queue here to prevent
9591
- // callbacks from appending listeners
9592
- // to the current frame's queue
9593
- queue.length = 0
9594
- for(var i = 0; i < cp.length; i++) {
9595
- if(!cp[i].cancelled) {
9596
- try{
9597
- cp[i].callback(last)
9598
- } catch(e) {
9599
- setTimeout(function() { throw e }, 0)
9600
- }
9601
- }
9602
- }
9603
- }, Math.round(next))
9604
- }
9605
- queue.push({
9606
- handle: ++id,
9607
- callback: callback,
9608
- cancelled: false
9609
- })
9610
- return id
9611
- }
9612
-
9613
- caf = function(handle) {
9614
- for(var i = 0; i < queue.length; i++) {
9615
- if(queue[i].handle === handle) {
9616
- queue[i].cancelled = true
9617
- }
9618
- }
9619
- }
9620
- }
9621
-
9622
- module.exports = function(fn) {
9623
- // Wrap in a new function to prevent
9624
- // `cancel` potentially being assigned
9625
- // to the native rAF function
9626
- return raf.call(root, fn)
9627
- }
9628
- module.exports.cancel = function() {
9629
- caf.apply(root, arguments)
9630
- }
9631
- module.exports.polyfill = function(object) {
9632
- if (!object) {
9633
- object = root;
9634
- }
9635
- object.requestAnimationFrame = raf
9636
- object.cancelAnimationFrame = caf
9637
- }
9638
-
9639
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17)))
9640
-
9641
- /***/ }),
9642
- /* 47 */
9643
- /***/ (function(module, exports, __webpack_require__) {
9644
-
9645
- /* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
9646
- (function() {
9647
- var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
9648
-
9649
- if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
9650
- module.exports = function() {
9651
- return performance.now();
9652
- };
9653
- } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
9654
- module.exports = function() {
9655
- return (getNanoSeconds() - nodeLoadTime) / 1e6;
9656
- };
9657
- hrtime = process.hrtime;
9658
- getNanoSeconds = function() {
9659
- var hr;
9660
- hr = hrtime();
9661
- return hr[0] * 1e9 + hr[1];
9662
- };
9663
- moduleLoadTime = getNanoSeconds();
9664
- upTime = process.uptime() * 1e9;
9665
- nodeLoadTime = moduleLoadTime - upTime;
9666
- } else if (Date.now) {
9667
- module.exports = function() {
9668
- return Date.now() - loadTime;
9669
- };
9670
- loadTime = Date.now();
9671
- } else {
9672
- module.exports = function() {
9673
- return new Date().getTime() - loadTime;
9674
- };
9675
- loadTime = new Date().getTime();
9676
- }
9677
-
9678
- }).call(this);
9679
-
9680
- //# sourceMappingURL=performance-now.js.map
9681
-
9682
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
9683
-
9684
- /***/ }),
9685
- /* 48 */
9686
- /***/ (function(module, exports, __webpack_require__) {
9687
-
9688
- "use strict";
9689
-
9690
-
9691
- Object.defineProperty(exports, "__esModule", {
9692
- value: true
9693
- });
9694
-
9695
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
9696
-
9697
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
9698
-
9699
- var _react = __webpack_require__(2);
9700
-
9701
- var _react2 = _interopRequireDefault(_react);
9702
-
9703
- var _propTypes = __webpack_require__(3);
9704
-
9705
- var _propTypes2 = _interopRequireDefault(_propTypes);
9706
-
9707
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9708
-
9709
- function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
9710
-
9711
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9712
-
9713
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
9714
-
9715
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
9716
-
9717
- var sizerStyle = {
9718
- position: 'absolute',
9719
- top: 0,
9720
- left: 0,
9721
- visibility: 'hidden',
9722
- height: 0,
9723
- overflow: 'scroll',
9724
- whiteSpace: 'pre'
9725
- };
9726
-
9727
- var INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth'];
9728
-
9729
- var cleanInputProps = function cleanInputProps(inputProps) {
9730
- INPUT_PROPS_BLACKLIST.forEach(function (field) {
9731
- return delete inputProps[field];
9732
- });
9733
- return inputProps;
9734
- };
9735
-
9736
- var copyStyles = function copyStyles(styles, node) {
9737
- node.style.fontSize = styles.fontSize;
9738
- node.style.fontFamily = styles.fontFamily;
9739
- node.style.fontWeight = styles.fontWeight;
9740
- node.style.fontStyle = styles.fontStyle;
9741
- node.style.letterSpacing = styles.letterSpacing;
9742
- node.style.textTransform = styles.textTransform;
9743
- };
9744
-
9745
- var isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent) : false;
9746
-
9747
- var generateId = function generateId() {
9748
- // we only need an auto-generated ID for stylesheet injection, which is only
9749
- // used for IE. so if the browser is not IE, this should return undefined.
9750
- return isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined;
9751
- };
9752
-
9753
- var AutosizeInput = function (_Component) {
9754
- _inherits(AutosizeInput, _Component);
9755
-
9756
- function AutosizeInput(props) {
9757
- _classCallCheck(this, AutosizeInput);
9758
-
9759
- var _this = _possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props));
9760
-
9761
- _this.inputRef = function (el) {
9762
- _this.input = el;
9763
- if (typeof _this.props.inputRef === 'function') {
9764
- _this.props.inputRef(el);
9765
- }
9766
- };
9767
-
9768
- _this.placeHolderSizerRef = function (el) {
9769
- _this.placeHolderSizer = el;
9770
- };
9771
-
9772
- _this.sizerRef = function (el) {
9773
- _this.sizer = el;
9774
- };
9775
-
9776
- _this.state = {
9777
- inputWidth: props.minWidth,
9778
- inputId: props.id || generateId()
9779
- };
9780
- return _this;
9781
- }
9782
-
9783
- _createClass(AutosizeInput, [{
9784
- key: 'componentDidMount',
9785
- value: function componentDidMount() {
9786
- this.mounted = true;
9787
- this.copyInputStyles();
9788
- this.updateInputWidth();
9789
- }
9790
- }, {
9791
- key: 'componentWillReceiveProps',
9792
- value: function componentWillReceiveProps(nextProps) {
9793
- var id = nextProps.id;
9794
-
9795
- if (id !== this.props.id) {
9796
- this.setState({ inputId: id || generateId() });
9797
- }
9798
- }
9799
- }, {
9800
- key: 'componentDidUpdate',
9801
- value: function componentDidUpdate(prevProps, prevState) {
9802
- if (prevState.inputWidth !== this.state.inputWidth) {
9803
- if (typeof this.props.onAutosize === 'function') {
9804
- this.props.onAutosize(this.state.inputWidth);
9805
- }
9806
- }
9807
- this.updateInputWidth();
9808
- }
9809
- }, {
9810
- key: 'componentWillUnmount',
9811
- value: function componentWillUnmount() {
9812
- this.mounted = false;
9813
- }
9814
- }, {
9815
- key: 'copyInputStyles',
9816
- value: function copyInputStyles() {
9817
- if (!this.mounted || !window.getComputedStyle) {
9818
- return;
9819
- }
9820
- var inputStyles = this.input && window.getComputedStyle(this.input);
9821
- if (!inputStyles) {
9822
- return;
9823
- }
9824
- copyStyles(inputStyles, this.sizer);
9825
- if (this.placeHolderSizer) {
9826
- copyStyles(inputStyles, this.placeHolderSizer);
9827
- }
9828
- }
9829
- }, {
9830
- key: 'updateInputWidth',
9831
- value: function updateInputWidth() {
9832
- if (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') {
9833
- return;
9834
- }
9835
- var newInputWidth = void 0;
9836
- if (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) {
9837
- newInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2;
9838
- } else {
9839
- newInputWidth = this.sizer.scrollWidth + 2;
9840
- }
9841
- // add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI
9842
- var extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0;
9843
- newInputWidth += extraWidth;
9844
- if (newInputWidth < this.props.minWidth) {
9845
- newInputWidth = this.props.minWidth;
9846
- }
9847
- if (newInputWidth !== this.state.inputWidth) {
9848
- this.setState({
9849
- inputWidth: newInputWidth
9850
- });
9851
- }
9852
- }
9853
- }, {
9854
- key: 'getInput',
9855
- value: function getInput() {
9856
- return this.input;
9857
- }
9858
- }, {
9859
- key: 'focus',
9860
- value: function focus() {
9861
- this.input.focus();
9862
- }
9863
- }, {
9864
- key: 'blur',
9865
- value: function blur() {
9866
- this.input.blur();
9867
- }
9868
- }, {
9869
- key: 'select',
9870
- value: function select() {
9871
- this.input.select();
9872
- }
9873
- }, {
9874
- key: 'renderStyles',
9875
- value: function renderStyles() {
9876
- // this method injects styles to hide IE's clear indicator, which messes
9877
- // with input size detection. the stylesheet is only injected when the
9878
- // browser is IE, and can also be disabled by the `injectStyles` prop.
9879
- var injectStyles = this.props.injectStyles;
9880
-
9881
- return isIE && injectStyles ? _react2.default.createElement('style', { dangerouslySetInnerHTML: {
9882
- __html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}'
9883
- } }) : null;
9884
- }
9885
- }, {
9886
- key: 'render',
9887
- value: function render() {
9888
- var sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) {
9889
- if (previousValue !== null && previousValue !== undefined) {
9890
- return previousValue;
9891
- }
9892
- return currentValue;
9893
- });
9894
-
9895
- var wrapperStyle = _extends({}, this.props.style);
9896
- if (!wrapperStyle.display) wrapperStyle.display = 'inline-block';
9897
-
9898
- var inputStyle = _extends({
9899
- boxSizing: 'content-box',
9900
- width: this.state.inputWidth + 'px'
9901
- }, this.props.inputStyle);
9902
-
9903
- var inputProps = _objectWithoutProperties(this.props, []);
9904
-
9905
- cleanInputProps(inputProps);
9906
- inputProps.className = this.props.inputClassName;
9907
- inputProps.id = this.state.inputId;
9908
- inputProps.style = inputStyle;
9909
-
9910
- return _react2.default.createElement(
9911
- 'div',
9912
- { className: this.props.className, style: wrapperStyle },
9913
- this.renderStyles(),
9914
- _react2.default.createElement('input', _extends({}, inputProps, { ref: this.inputRef })),
9915
- _react2.default.createElement(
9916
- 'div',
9917
- { ref: this.sizerRef, style: sizerStyle },
9918
- sizerValue
9919
- ),
9920
- this.props.placeholder ? _react2.default.createElement(
9921
- 'div',
9922
- { ref: this.placeHolderSizerRef, style: sizerStyle },
9923
- this.props.placeholder
9924
- ) : null
9925
- );
9926
- }
9927
- }]);
9928
-
9929
- return AutosizeInput;
9930
- }(_react.Component);
9931
-
9932
- AutosizeInput.propTypes = {
9933
- className: _propTypes2.default.string, // className for the outer element
9934
- defaultValue: _propTypes2.default.any, // default field value
9935
- extraWidth: _propTypes2.default.oneOfType([// additional width for input element
9936
- _propTypes2.default.number, _propTypes2.default.string]),
9937
- id: _propTypes2.default.string, // id to use for the input, can be set for consistent snapshots
9938
- injectStyles: _propTypes2.default.bool, // inject the custom stylesheet to hide clear UI, defaults to true
9939
- inputClassName: _propTypes2.default.string, // className for the input element
9940
- inputRef: _propTypes2.default.func, // ref callback for the input element
9941
- inputStyle: _propTypes2.default.object, // css styles for the input element
9942
- minWidth: _propTypes2.default.oneOfType([// minimum width for input element
9943
- _propTypes2.default.number, _propTypes2.default.string]),
9944
- onAutosize: _propTypes2.default.func, // onAutosize handler: function(newWidth) {}
9945
- onChange: _propTypes2.default.func, // onChange handler: function(event) {}
9946
- placeholder: _propTypes2.default.string, // placeholder text
9947
- placeholderIsMinWidth: _propTypes2.default.bool, // don't collapse size to less than the placeholder
9948
- style: _propTypes2.default.object, // css styles for the outer element
9949
- value: _propTypes2.default.any // field value
9950
- };
9951
- AutosizeInput.defaultProps = {
9952
- minWidth: 1,
9953
- injectStyles: true
9954
- };
9955
-
9956
- exports.default = AutosizeInput;
9957
-
9958
- /***/ }),
9959
- /* 49 */
9960
- /***/ (function(module, exports, __webpack_require__) {
9961
-
9962
- "use strict";
9963
-
9964
-
9965
- var _CSSTransition = _interopRequireDefault(__webpack_require__(50));
9966
-
9967
- var _ReplaceTransition = _interopRequireDefault(__webpack_require__(55));
9968
-
9969
- var _TransitionGroup = _interopRequireDefault(__webpack_require__(22));
9970
-
9971
- var _Transition = _interopRequireDefault(__webpack_require__(19));
9972
-
9973
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9974
-
9975
- module.exports = {
9976
- Transition: _Transition.default,
9977
- TransitionGroup: _TransitionGroup.default,
9978
- ReplaceTransition: _ReplaceTransition.default,
9979
- CSSTransition: _CSSTransition.default
9980
- };
9981
-
9982
- /***/ }),
9983
- /* 50 */
9984
- /***/ (function(module, exports, __webpack_require__) {
9985
-
9986
- "use strict";
9987
- /* WEBPACK VAR INJECTION */(function(process) {
9988
-
9989
- exports.__esModule = true;
9990
- exports.default = void 0;
9991
-
9992
- var PropTypes = _interopRequireWildcard(__webpack_require__(3));
9993
-
9994
- var _addClass = _interopRequireDefault(__webpack_require__(51));
9995
-
9996
- var _removeClass = _interopRequireDefault(__webpack_require__(54));
9997
-
9998
- var _react = _interopRequireDefault(__webpack_require__(2));
9999
-
10000
- var _Transition = _interopRequireDefault(__webpack_require__(19));
10001
-
10002
- var _PropTypes = __webpack_require__(21);
10003
-
10004
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10005
-
10006
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
10007
-
10008
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
10009
-
10010
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
10011
-
10012
- var addClass = function addClass(node, classes) {
10013
- return node && classes && classes.split(' ').forEach(function (c) {
10014
- return (0, _addClass.default)(node, c);
10015
- });
10016
- };
10017
-
10018
- var removeClass = function removeClass(node, classes) {
10019
- return node && classes && classes.split(' ').forEach(function (c) {
10020
- return (0, _removeClass.default)(node, c);
10021
- });
10022
- };
10023
- /**
10024
- * A transition component inspired by the excellent
10025
- * [ng-animate](http://www.nganimate.org/) library, you should use it if you're
10026
- * using CSS transitions or animations. It's built upon the
10027
- * [`Transition`](https://reactcommunity.org/react-transition-group/transition)
10028
- * component, so it inherits all of its props.
10029
- *
10030
- * `CSSTransition` applies a pair of class names during the `appear`, `enter`,
10031
- * and `exit` states of the transition. The first class is applied and then a
10032
- * second `*-active` class in order to activate the CSSS transition. After the
10033
- * transition, matching `*-done` class names are applied to persist the
10034
- * transition state.
10035
- *
10036
- * ```jsx
10037
- * function App() {
10038
- * const [inProp, setInProp] = useState(false);
10039
- * return (
10040
- * <div>
10041
- * <CSSTransition in={inProp} timeout={200} classNames="my-node">
10042
- * <div>
10043
- * {"I'll receive my-node-* classes"}
10044
- * </div>
10045
- * </CSSTransition>
10046
- * <button type="button" onClick={() => setInProp(true)}>
10047
- * Click to Enter
10048
- * </button>
10049
- * </div>
10050
- * );
10051
- * }
10052
- * ```
10053
- *
10054
- * When the `in` prop is set to `true`, the child component will first receive
10055
- * the class `example-enter`, then the `example-enter-active` will be added in
10056
- * the next tick. `CSSTransition` [forces a
10057
- * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)
10058
- * between before adding the `example-enter-active`. This is an important trick
10059
- * because it allows us to transition between `example-enter` and
10060
- * `example-enter-active` even though they were added immediately one after
10061
- * another. Most notably, this is what makes it possible for us to animate
10062
- * _appearance_.
10063
- *
10064
- * ```css
10065
- * .my-node-enter {
10066
- * opacity: 0;
10067
- * }
10068
- * .my-node-enter-active {
10069
- * opacity: 1;
10070
- * transition: opacity 200ms;
10071
- * }
10072
- * .my-node-exit {
10073
- * opacity: 1;
10074
- * }
10075
- * .my-node-exit-active {
10076
- * opacity: 0;
10077
- * transition: opacity: 200ms;
10078
- * }
10079
- * ```
10080
- *
10081
- * `*-active` classes represent which styles you want to animate **to**.
10082
- */
10083
-
10084
-
10085
- var CSSTransition =
10086
- /*#__PURE__*/
10087
- function (_React$Component) {
10088
- _inheritsLoose(CSSTransition, _React$Component);
10089
-
10090
- function CSSTransition() {
10091
- var _this;
10092
-
10093
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10094
- args[_key] = arguments[_key];
10095
- }
10096
-
10097
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
10098
-
10099
- _this.onEnter = function (node, appearing) {
10100
- var _this$getClassNames = _this.getClassNames(appearing ? 'appear' : 'enter'),
10101
- className = _this$getClassNames.className;
10102
-
10103
- _this.removeClasses(node, 'exit');
10104
-
10105
- addClass(node, className);
10106
-
10107
- if (_this.props.onEnter) {
10108
- _this.props.onEnter(node, appearing);
10109
- }
10110
- };
10111
-
10112
- _this.onEntering = function (node, appearing) {
10113
- var _this$getClassNames2 = _this.getClassNames(appearing ? 'appear' : 'enter'),
10114
- activeClassName = _this$getClassNames2.activeClassName;
10115
-
10116
- _this.reflowAndAddClass(node, activeClassName);
10117
-
10118
- if (_this.props.onEntering) {
10119
- _this.props.onEntering(node, appearing);
10120
- }
10121
- };
10122
-
10123
- _this.onEntered = function (node, appearing) {
10124
- var appearClassName = _this.getClassNames('appear').doneClassName;
10125
-
10126
- var enterClassName = _this.getClassNames('enter').doneClassName;
10127
-
10128
- var doneClassName = appearing ? appearClassName + " " + enterClassName : enterClassName;
10129
-
10130
- _this.removeClasses(node, appearing ? 'appear' : 'enter');
10131
-
10132
- addClass(node, doneClassName);
10133
-
10134
- if (_this.props.onEntered) {
10135
- _this.props.onEntered(node, appearing);
10136
- }
10137
- };
10138
-
10139
- _this.onExit = function (node) {
10140
- var _this$getClassNames3 = _this.getClassNames('exit'),
10141
- className = _this$getClassNames3.className;
10142
-
10143
- _this.removeClasses(node, 'appear');
10144
-
10145
- _this.removeClasses(node, 'enter');
10146
-
10147
- addClass(node, className);
10148
-
10149
- if (_this.props.onExit) {
10150
- _this.props.onExit(node);
10151
- }
10152
- };
10153
-
10154
- _this.onExiting = function (node) {
10155
- var _this$getClassNames4 = _this.getClassNames('exit'),
10156
- activeClassName = _this$getClassNames4.activeClassName;
10157
-
10158
- _this.reflowAndAddClass(node, activeClassName);
10159
-
10160
- if (_this.props.onExiting) {
10161
- _this.props.onExiting(node);
10162
- }
10163
- };
10164
-
10165
- _this.onExited = function (node) {
10166
- var _this$getClassNames5 = _this.getClassNames('exit'),
10167
- doneClassName = _this$getClassNames5.doneClassName;
10168
-
10169
- _this.removeClasses(node, 'exit');
10170
-
10171
- addClass(node, doneClassName);
10172
-
10173
- if (_this.props.onExited) {
10174
- _this.props.onExited(node);
10175
- }
10176
- };
10177
-
10178
- _this.getClassNames = function (type) {
10179
- var classNames = _this.props.classNames;
10180
- var isStringClassNames = typeof classNames === 'string';
10181
- var prefix = isStringClassNames && classNames ? classNames + '-' : '';
10182
- var className = isStringClassNames ? prefix + type : classNames[type];
10183
- var activeClassName = isStringClassNames ? className + '-active' : classNames[type + 'Active'];
10184
- var doneClassName = isStringClassNames ? className + '-done' : classNames[type + 'Done'];
10185
- return {
10186
- className: className,
10187
- activeClassName: activeClassName,
10188
- doneClassName: doneClassName
10189
- };
10190
- };
10191
-
10192
- return _this;
10193
- }
10194
-
10195
- var _proto = CSSTransition.prototype;
10196
-
10197
- _proto.removeClasses = function removeClasses(node, type) {
10198
- var _this$getClassNames6 = this.getClassNames(type),
10199
- className = _this$getClassNames6.className,
10200
- activeClassName = _this$getClassNames6.activeClassName,
10201
- doneClassName = _this$getClassNames6.doneClassName;
10202
-
10203
- className && removeClass(node, className);
10204
- activeClassName && removeClass(node, activeClassName);
10205
- doneClassName && removeClass(node, doneClassName);
10206
- };
10207
-
10208
- _proto.reflowAndAddClass = function reflowAndAddClass(node, className) {
10209
- // This is for to force a repaint,
10210
- // which is necessary in order to transition styles when adding a class name.
10211
- if (className) {
10212
- /* eslint-disable no-unused-expressions */
10213
- node && node.scrollTop;
10214
- /* eslint-enable no-unused-expressions */
10215
-
10216
- addClass(node, className);
10217
- }
10218
- };
10219
-
10220
- _proto.render = function render() {
10221
- var props = _extends({}, this.props);
10222
-
10223
- delete props.classNames;
10224
- return _react.default.createElement(_Transition.default, _extends({}, props, {
10225
- onEnter: this.onEnter,
10226
- onEntered: this.onEntered,
10227
- onEntering: this.onEntering,
10228
- onExit: this.onExit,
10229
- onExiting: this.onExiting,
10230
- onExited: this.onExited
10231
- }));
10232
- };
10233
-
10234
- return CSSTransition;
10235
- }(_react.default.Component);
10236
-
10237
- CSSTransition.defaultProps = {
10238
- classNames: ''
10239
- };
10240
- CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, _Transition.default.propTypes, {
10241
- /**
10242
- * The animation classNames applied to the component as it enters, exits or
10243
- * has finished the transition. A single name can be provided and it will be
10244
- * suffixed for each stage: e.g.
10245
- *
10246
- * `classNames="fade"` applies `fade-enter`, `fade-enter-active`,
10247
- * `fade-enter-done`, `fade-exit`, `fade-exit-active`, `fade-exit-done`,
10248
- * `fade-appear`, `fade-appear-active`, and `fade-appear-done`.
10249
- *
10250
- * **Note**: `fade-appear-done` and `fade-enter-done` will _both_ be applied.
10251
- * This allows you to define different behavior for when appearing is done and
10252
- * when regular entering is done, using selectors like
10253
- * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply an
10254
- * epic entrance animation when element first appears in the DOM using
10255
- * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
10256
- * simply use `fade-enter-done` for defining both cases.
10257
- *
10258
- * Each individual classNames can also be specified independently like:
10259
- *
10260
- * ```js
10261
- * classNames={{
10262
- * appear: 'my-appear',
10263
- * appearActive: 'my-active-appear',
10264
- * appearDone: 'my-done-appear',
10265
- * enter: 'my-enter',
10266
- * enterActive: 'my-active-enter',
10267
- * enterDone: 'my-done-enter',
10268
- * exit: 'my-exit',
10269
- * exitActive: 'my-active-exit',
10270
- * exitDone: 'my-done-exit',
10271
- * }}
10272
- * ```
10273
- *
10274
- * If you want to set these classes using CSS Modules:
10275
- *
10276
- * ```js
10277
- * import styles from './styles.css';
10278
- * ```
10279
- *
10280
- * you might want to use camelCase in your CSS file, that way could simply
10281
- * spread them instead of listing them one by one:
10282
- *
10283
- * ```js
10284
- * classNames={{ ...styles }}
10285
- * ```
10286
- *
10287
- * @type {string | {
10288
- * appear?: string,
10289
- * appearActive?: string,
10290
- * appearDone?: string,
10291
- * enter?: string,
10292
- * enterActive?: string,
10293
- * enterDone?: string,
10294
- * exit?: string,
10295
- * exitActive?: string,
10296
- * exitDone?: string,
10297
- * }}
10298
- */
10299
- classNames: _PropTypes.classNamesShape,
10300
-
10301
- /**
10302
- * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
10303
- * applied.
10304
- *
10305
- * @type Function(node: HtmlElement, isAppearing: bool)
10306
- */
10307
- onEnter: PropTypes.func,
10308
-
10309
- /**
10310
- * A `<Transition>` callback fired immediately after the 'enter-active' or
10311
- * 'appear-active' class is applied.
10312
- *
10313
- * @type Function(node: HtmlElement, isAppearing: bool)
10314
- */
10315
- onEntering: PropTypes.func,
10316
-
10317
- /**
10318
- * A `<Transition>` callback fired immediately after the 'enter' or
10319
- * 'appear' classes are **removed** and the `done` class is added to the DOM node.
10320
- *
10321
- * @type Function(node: HtmlElement, isAppearing: bool)
10322
- */
10323
- onEntered: PropTypes.func,
10324
-
10325
- /**
10326
- * A `<Transition>` callback fired immediately after the 'exit' class is
10327
- * applied.
10328
- *
10329
- * @type Function(node: HtmlElement)
10330
- */
10331
- onExit: PropTypes.func,
10332
-
10333
- /**
10334
- * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
10335
- *
10336
- * @type Function(node: HtmlElement)
10337
- */
10338
- onExiting: PropTypes.func,
10339
-
10340
- /**
10341
- * A `<Transition>` callback fired immediately after the 'exit' classes
10342
- * are **removed** and the `exit-done` class is added to the DOM node.
10343
- *
10344
- * @type Function(node: HtmlElement)
10345
- */
10346
- onExited: PropTypes.func
10347
- }) : {};
10348
- var _default = CSSTransition;
10349
- exports.default = _default;
10350
- module.exports = exports["default"];
10351
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
10352
-
10353
- /***/ }),
10354
- /* 51 */
10355
- /***/ (function(module, exports, __webpack_require__) {
10356
-
10357
- "use strict";
10358
-
10359
-
10360
- var _interopRequireDefault = __webpack_require__(52);
10361
-
10362
- exports.__esModule = true;
10363
- exports.default = addClass;
10364
-
10365
- var _hasClass = _interopRequireDefault(__webpack_require__(53));
10366
-
10367
- function addClass(element, className) {
10368
- if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);
10369
- }
10370
-
10371
- module.exports = exports["default"];
10372
-
10373
- /***/ }),
10374
- /* 52 */
10375
- /***/ (function(module, exports) {
10376
-
10377
- function _interopRequireDefault(obj) {
10378
- return obj && obj.__esModule ? obj : {
10379
- "default": obj
10380
- };
10381
- }
10382
-
10383
- module.exports = _interopRequireDefault;
10384
-
10385
- /***/ }),
10386
- /* 53 */
10387
- /***/ (function(module, exports, __webpack_require__) {
10388
-
10389
- "use strict";
10390
-
10391
-
10392
- exports.__esModule = true;
10393
- exports.default = hasClass;
10394
-
10395
- function hasClass(element, className) {
10396
- if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
10397
- }
10398
-
10399
- module.exports = exports["default"];
10400
-
10401
- /***/ }),
10402
- /* 54 */
10403
- /***/ (function(module, exports, __webpack_require__) {
10404
-
10405
- "use strict";
10406
-
10407
-
10408
- function replaceClassName(origClass, classToRemove) {
10409
- return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
10410
- }
10411
-
10412
- module.exports = function removeClass(element, className) {
10413
- if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));
10414
- };
10415
-
10416
- /***/ }),
10417
- /* 55 */
10418
- /***/ (function(module, exports, __webpack_require__) {
10419
-
10420
- "use strict";
10421
- /* WEBPACK VAR INJECTION */(function(process) {
10422
-
10423
- exports.__esModule = true;
10424
- exports.default = void 0;
10425
-
10426
- var _propTypes = _interopRequireDefault(__webpack_require__(3));
10427
-
10428
- var _react = _interopRequireDefault(__webpack_require__(2));
10429
-
10430
- var _reactDom = __webpack_require__(6);
10431
-
10432
- var _TransitionGroup = _interopRequireDefault(__webpack_require__(22));
10433
-
10434
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10435
-
10436
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10437
-
10438
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
10439
-
10440
- /**
10441
- * The `<ReplaceTransition>` component is a specialized `Transition` component
10442
- * that animates between two children.
10443
- *
10444
- * ```jsx
10445
- * <ReplaceTransition in>
10446
- * <Fade><div>I appear first</div></Fade>
10447
- * <Fade><div>I replace the above</div></Fade>
10448
- * </ReplaceTransition>
10449
- * ```
10450
- */
10451
- var ReplaceTransition =
10452
- /*#__PURE__*/
10453
- function (_React$Component) {
10454
- _inheritsLoose(ReplaceTransition, _React$Component);
10455
-
10456
- function ReplaceTransition() {
10457
- var _this;
10458
-
10459
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10460
- _args[_key] = arguments[_key];
10461
- }
10462
-
10463
- _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;
10464
-
10465
- _this.handleEnter = function () {
10466
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
10467
- args[_key2] = arguments[_key2];
10468
- }
10469
-
10470
- return _this.handleLifecycle('onEnter', 0, args);
10471
- };
10472
-
10473
- _this.handleEntering = function () {
10474
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
10475
- args[_key3] = arguments[_key3];
10476
- }
10477
-
10478
- return _this.handleLifecycle('onEntering', 0, args);
10479
- };
10480
-
10481
- _this.handleEntered = function () {
10482
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
10483
- args[_key4] = arguments[_key4];
10484
- }
10485
-
10486
- return _this.handleLifecycle('onEntered', 0, args);
10487
- };
10488
-
10489
- _this.handleExit = function () {
10490
- for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
10491
- args[_key5] = arguments[_key5];
10492
- }
10493
-
10494
- return _this.handleLifecycle('onExit', 1, args);
10495
- };
10496
-
10497
- _this.handleExiting = function () {
10498
- for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
10499
- args[_key6] = arguments[_key6];
10500
- }
10501
-
10502
- return _this.handleLifecycle('onExiting', 1, args);
10503
- };
10504
-
10505
- _this.handleExited = function () {
10506
- for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
10507
- args[_key7] = arguments[_key7];
10508
- }
10509
-
10510
- return _this.handleLifecycle('onExited', 1, args);
10511
- };
10512
-
10513
- return _this;
10514
- }
10515
-
10516
- var _proto = ReplaceTransition.prototype;
10517
-
10518
- _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {
10519
- var _child$props;
10520
-
10521
- var children = this.props.children;
10522
-
10523
- var child = _react.default.Children.toArray(children)[idx];
10524
-
10525
- if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);
10526
- if (this.props[handler]) this.props[handler]((0, _reactDom.findDOMNode)(this));
10527
- };
10528
-
10529
- _proto.render = function render() {
10530
- var _this$props = this.props,
10531
- children = _this$props.children,
10532
- inProp = _this$props.in,
10533
- props = _objectWithoutPropertiesLoose(_this$props, ["children", "in"]);
10534
-
10535
- var _React$Children$toArr = _react.default.Children.toArray(children),
10536
- first = _React$Children$toArr[0],
10537
- second = _React$Children$toArr[1];
10538
-
10539
- delete props.onEnter;
10540
- delete props.onEntering;
10541
- delete props.onEntered;
10542
- delete props.onExit;
10543
- delete props.onExiting;
10544
- delete props.onExited;
10545
- return _react.default.createElement(_TransitionGroup.default, props, inProp ? _react.default.cloneElement(first, {
10546
- key: 'first',
10547
- onEnter: this.handleEnter,
10548
- onEntering: this.handleEntering,
10549
- onEntered: this.handleEntered
10550
- }) : _react.default.cloneElement(second, {
10551
- key: 'second',
10552
- onEnter: this.handleExit,
10553
- onEntering: this.handleExiting,
10554
- onEntered: this.handleExited
10555
- }));
10556
- };
10557
-
10558
- return ReplaceTransition;
10559
- }(_react.default.Component);
10560
-
10561
- ReplaceTransition.propTypes = process.env.NODE_ENV !== "production" ? {
10562
- in: _propTypes.default.bool.isRequired,
10563
- children: function children(props, propName) {
10564
- if (_react.default.Children.count(props[propName]) !== 2) return new Error("\"" + propName + "\" must be exactly two transition components.");
10565
- return null;
10566
- }
10567
- } : {};
10568
- var _default = ReplaceTransition;
10569
- exports.default = _default;
10570
- module.exports = exports["default"];
10571
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
10572
-
10573
- /***/ }),
10574
- /* 56 */
10575
- /***/ (function(module, exports, __webpack_require__) {
10576
-
10577
- "use strict";
10578
-
10579
-
10580
- exports.__esModule = true;
10581
- exports.getChildMapping = getChildMapping;
10582
- exports.mergeChildMappings = mergeChildMappings;
10583
- exports.getInitialChildMapping = getInitialChildMapping;
10584
- exports.getNextChildMapping = getNextChildMapping;
10585
-
10586
- var _react = __webpack_require__(2);
10587
-
10588
- /**
10589
- * Given `this.props.children`, return an object mapping key to child.
10590
- *
10591
- * @param {*} children `this.props.children`
10592
- * @return {object} Mapping of key to child
10593
- */
10594
- function getChildMapping(children, mapFn) {
10595
- var mapper = function mapper(child) {
10596
- return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child;
10597
- };
10598
-
10599
- var result = Object.create(null);
10600
- if (children) _react.Children.map(children, function (c) {
10601
- return c;
10602
- }).forEach(function (child) {
10603
- // run the map function here instead so that the key is the computed one
10604
- result[child.key] = mapper(child);
10605
- });
10606
- return result;
10607
- }
10608
- /**
10609
- * When you're adding or removing children some may be added or removed in the
10610
- * same render pass. We want to show *both* since we want to simultaneously
10611
- * animate elements in and out. This function takes a previous set of keys
10612
- * and a new set of keys and merges them with its best guess of the correct
10613
- * ordering. In the future we may expose some of the utilities in
10614
- * ReactMultiChild to make this easy, but for now React itself does not
10615
- * directly have this concept of the union of prevChildren and nextChildren
10616
- * so we implement it here.
10617
- *
10618
- * @param {object} prev prev children as returned from
10619
- * `ReactTransitionChildMapping.getChildMapping()`.
10620
- * @param {object} next next children as returned from
10621
- * `ReactTransitionChildMapping.getChildMapping()`.
10622
- * @return {object} a key set that contains all keys in `prev` and all keys
10623
- * in `next` in a reasonable order.
10624
- */
10625
-
10626
-
10627
- function mergeChildMappings(prev, next) {
10628
- prev = prev || {};
10629
- next = next || {};
10630
-
10631
- function getValueForKey(key) {
10632
- return key in next ? next[key] : prev[key];
10633
- } // For each key of `next`, the list of keys to insert before that key in
10634
- // the combined list
10635
-
10636
-
10637
- var nextKeysPending = Object.create(null);
10638
- var pendingKeys = [];
10639
-
10640
- for (var prevKey in prev) {
10641
- if (prevKey in next) {
10642
- if (pendingKeys.length) {
10643
- nextKeysPending[prevKey] = pendingKeys;
10644
- pendingKeys = [];
10645
- }
10646
- } else {
10647
- pendingKeys.push(prevKey);
10648
- }
10649
- }
10650
-
10651
- var i;
10652
- var childMapping = {};
10653
-
10654
- for (var nextKey in next) {
10655
- if (nextKeysPending[nextKey]) {
10656
- for (i = 0; i < nextKeysPending[nextKey].length; i++) {
10657
- var pendingNextKey = nextKeysPending[nextKey][i];
10658
- childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
10659
- }
10660
- }
10661
-
10662
- childMapping[nextKey] = getValueForKey(nextKey);
10663
- } // Finally, add the keys which didn't appear before any key in `next`
10664
-
10665
-
10666
- for (i = 0; i < pendingKeys.length; i++) {
10667
- childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
10668
- }
10669
-
10670
- return childMapping;
10671
- }
10672
-
10673
- function getProp(child, prop, props) {
10674
- return props[prop] != null ? props[prop] : child.props[prop];
10675
- }
10676
-
10677
- function getInitialChildMapping(props, onExited) {
10678
- return getChildMapping(props.children, function (child) {
10679
- return (0, _react.cloneElement)(child, {
10680
- onExited: onExited.bind(null, child),
10681
- in: true,
10682
- appear: getProp(child, 'appear', props),
10683
- enter: getProp(child, 'enter', props),
10684
- exit: getProp(child, 'exit', props)
10685
- });
10686
- });
10687
- }
10688
-
10689
- function getNextChildMapping(nextProps, prevChildMapping, onExited) {
10690
- var nextChildMapping = getChildMapping(nextProps.children);
10691
- var children = mergeChildMappings(prevChildMapping, nextChildMapping);
10692
- Object.keys(children).forEach(function (key) {
10693
- var child = children[key];
10694
- if (!(0, _react.isValidElement)(child)) return;
10695
- var hasPrev = key in prevChildMapping;
10696
- var hasNext = key in nextChildMapping;
10697
- var prevChild = prevChildMapping[key];
10698
- var isLeaving = (0, _react.isValidElement)(prevChild) && !prevChild.props.in; // item is new (entering)
10699
-
10700
- if (hasNext && (!hasPrev || isLeaving)) {
10701
- // console.log('entering', key)
10702
- children[key] = (0, _react.cloneElement)(child, {
10703
- onExited: onExited.bind(null, child),
10704
- in: true,
10705
- exit: getProp(child, 'exit', nextProps),
10706
- enter: getProp(child, 'enter', nextProps)
10707
- });
10708
- } else if (!hasNext && hasPrev && !isLeaving) {
10709
- // item is old (exiting)
10710
- // console.log('leaving', key)
10711
- children[key] = (0, _react.cloneElement)(child, {
10712
- in: false
10713
- });
10714
- } else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) {
10715
- // item hasn't changed transition states
10716
- // copy over the last transition props;
10717
- // console.log('unchanged', key)
10718
- children[key] = (0, _react.cloneElement)(child, {
10719
- onExited: onExited.bind(null, child),
10720
- in: prevChild.props.in,
10721
- exit: getProp(child, 'exit', nextProps),
10722
- enter: getProp(child, 'enter', nextProps)
10723
- });
10724
- }
10725
- });
10726
- return children;
10727
- }
10728
-
10729
- /***/ }),
10730
- /* 57 */
10731
- /***/ (function(module, exports, __webpack_require__) {
10732
-
10733
- module.exports = { "default": __webpack_require__(100), __esModule: true };
10734
-
10735
- /***/ }),
10736
- /* 58 */
10737
- /***/ (function(module, exports, __webpack_require__) {
10738
-
10739
- __webpack_require__(101);
10740
- var global = __webpack_require__(5);
10741
- var hide = __webpack_require__(13);
10742
- var Iterators = __webpack_require__(23);
10743
- var TO_STRING_TAG = __webpack_require__(4)('toStringTag');
10744
-
10745
- var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
10746
- 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
10747
- 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
10748
- 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
10749
- 'TextTrackList,TouchList').split(',');
10750
-
10751
- for (var i = 0; i < DOMIterables.length; i++) {
10752
- var NAME = DOMIterables[i];
10753
- var Collection = global[NAME];
10754
- var proto = Collection && Collection.prototype;
10755
- if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
10756
- Iterators[NAME] = Iterators.Array;
10757
- }
10758
-
10759
-
10760
- /***/ }),
10761
- /* 59 */
10762
- /***/ (function(module, exports) {
10763
-
10764
- var toString = {}.toString;
10765
-
10766
- module.exports = function (it) {
10767
- return toString.call(it).slice(8, -1);
10768
- };
10769
-
10770
-
10771
- /***/ }),
10772
- /* 60 */
10773
- /***/ (function(module, exports) {
10774
-
10775
- // 7.2.1 RequireObjectCoercible(argument)
10776
- module.exports = function (it) {
10777
- if (it == undefined) throw TypeError("Can't call method on " + it);
10778
- return it;
10779
- };
10780
-
10781
-
10782
- /***/ }),
10783
- /* 61 */
10784
- /***/ (function(module, exports, __webpack_require__) {
10785
-
10786
- // 7.1.1 ToPrimitive(input [, PreferredType])
10787
- var isObject = __webpack_require__(15);
10788
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
10789
- // and the second argument - flag - preferred type is a string
10790
- module.exports = function (it, S) {
10791
- if (!isObject(it)) return it;
10792
- var fn, val;
10793
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
10794
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
10795
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
10796
- throw TypeError("Can't convert object to primitive value");
10797
- };
10798
-
10799
-
10800
- /***/ }),
10801
- /* 62 */
10802
- /***/ (function(module, exports, __webpack_require__) {
10803
-
10804
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
10805
- var anObject = __webpack_require__(14);
10806
- var dPs = __webpack_require__(107);
10807
- var enumBugKeys = __webpack_require__(66);
10808
- var IE_PROTO = __webpack_require__(64)('IE_PROTO');
10809
- var Empty = function () { /* empty */ };
10810
- var PROTOTYPE = 'prototype';
10811
-
10812
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
10813
- var createDict = function () {
10814
- // Thrash, waste and sodomy: IE GC bug
10815
- var iframe = __webpack_require__(74)('iframe');
10816
- var i = enumBugKeys.length;
10817
- var lt = '<';
10818
- var gt = '>';
10819
- var iframeDocument;
10820
- iframe.style.display = 'none';
10821
- __webpack_require__(111).appendChild(iframe);
10822
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
10823
- // createDict = iframe.contentWindow.Object;
10824
- // html.removeChild(iframe);
10825
- iframeDocument = iframe.contentWindow.document;
10826
- iframeDocument.open();
10827
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
10828
- iframeDocument.close();
10829
- createDict = iframeDocument.F;
10830
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
10831
- return createDict();
10832
- };
10833
-
10834
- module.exports = Object.create || function create(O, Properties) {
10835
- var result;
10836
- if (O !== null) {
10837
- Empty[PROTOTYPE] = anObject(O);
10838
- result = new Empty();
10839
- Empty[PROTOTYPE] = null;
10840
- // add "__proto__" for Object.getPrototypeOf polyfill
10841
- result[IE_PROTO] = O;
10842
- } else result = createDict();
10843
- return Properties === undefined ? result : dPs(result, Properties);
10844
- };
10845
-
10846
-
10847
- /***/ }),
10848
- /* 63 */
10849
- /***/ (function(module, exports) {
10850
-
10851
- // 7.1.4 ToInteger
10852
- var ceil = Math.ceil;
10853
- var floor = Math.floor;
10854
- module.exports = function (it) {
10855
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
10856
- };
10857
-
10858
-
10859
- /***/ }),
10860
- /* 64 */
10861
- /***/ (function(module, exports, __webpack_require__) {
10862
-
10863
- var shared = __webpack_require__(65)('keys');
10864
- var uid = __webpack_require__(28);
10865
- module.exports = function (key) {
10866
- return shared[key] || (shared[key] = uid(key));
10867
- };
10868
-
10869
-
10870
- /***/ }),
10871
- /* 65 */
10872
- /***/ (function(module, exports, __webpack_require__) {
10873
-
10874
- var core = __webpack_require__(1);
10875
- var global = __webpack_require__(5);
10876
- var SHARED = '__core-js_shared__';
10877
- var store = global[SHARED] || (global[SHARED] = {});
10878
-
10879
- (module.exports = function (key, value) {
10880
- return store[key] || (store[key] = value !== undefined ? value : {});
10881
- })('versions', []).push({
10882
- version: core.version,
10883
- mode: __webpack_require__(25) ? 'pure' : 'global',
10884
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
10885
- });
10886
-
10887
-
10888
- /***/ }),
10889
- /* 66 */
10890
- /***/ (function(module, exports) {
10891
-
10892
- // IE 8- don't enum bug keys
10893
- module.exports = (
10894
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
10895
- ).split(',');
10896
-
10897
-
10898
- /***/ }),
10899
- /* 67 */
10900
- /***/ (function(module, exports, __webpack_require__) {
10901
-
10902
- var def = __webpack_require__(10).f;
10903
- var has = __webpack_require__(12);
10904
- var TAG = __webpack_require__(4)('toStringTag');
10905
-
10906
- module.exports = function (it, tag, stat) {
10907
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
10908
- };
10909
-
10910
-
10911
- /***/ }),
10912
- /* 68 */
10913
- /***/ (function(module, exports, __webpack_require__) {
10914
-
10915
- "use strict";
10916
-
10917
- var $at = __webpack_require__(112)(true);
10918
-
10919
- // 21.1.3.27 String.prototype[@@iterator]()
10920
- __webpack_require__(71)(String, 'String', function (iterated) {
10921
- this._t = String(iterated); // target
10922
- this._i = 0; // next index
10923
- // 21.1.5.2.1 %StringIteratorPrototype%.next()
10924
- }, function () {
10925
- var O = this._t;
10926
- var index = this._i;
10927
- var point;
10928
- if (index >= O.length) return { value: undefined, done: true };
10929
- point = $at(O, index);
10930
- this._i += point.length;
10931
- return { value: point, done: false };
10932
- });
10933
-
10934
-
10935
- /***/ }),
10936
- /* 69 */
10937
- /***/ (function(module, exports, __webpack_require__) {
10938
-
10939
- exports.f = __webpack_require__(4);
10940
-
10941
-
10942
- /***/ }),
10943
- /* 70 */
10944
- /***/ (function(module, exports, __webpack_require__) {
10945
-
10946
- var global = __webpack_require__(5);
10947
- var core = __webpack_require__(1);
10948
- var LIBRARY = __webpack_require__(25);
10949
- var wksExt = __webpack_require__(69);
10950
- var defineProperty = __webpack_require__(10).f;
10951
- module.exports = function (name) {
10952
- var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
10953
- if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
10954
- };
10955
-
10956
-
10957
- /***/ }),
10958
- /* 71 */
10959
- /***/ (function(module, exports, __webpack_require__) {
10960
-
10961
- "use strict";
10962
-
10963
- var LIBRARY = __webpack_require__(25);
10964
- var $export = __webpack_require__(9);
10965
- var redefine = __webpack_require__(75);
10966
- var hide = __webpack_require__(13);
10967
- var Iterators = __webpack_require__(23);
10968
- var $iterCreate = __webpack_require__(106);
10969
- var setToStringTag = __webpack_require__(67);
10970
- var getPrototypeOf = __webpack_require__(77);
10971
- var ITERATOR = __webpack_require__(4)('iterator');
10972
- var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
10973
- var FF_ITERATOR = '@@iterator';
10974
- var KEYS = 'keys';
10975
- var VALUES = 'values';
10976
-
10977
- var returnThis = function () { return this; };
10978
-
10979
- module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
10980
- $iterCreate(Constructor, NAME, next);
10981
- var getMethod = function (kind) {
10982
- if (!BUGGY && kind in proto) return proto[kind];
10983
- switch (kind) {
10984
- case KEYS: return function keys() { return new Constructor(this, kind); };
10985
- case VALUES: return function values() { return new Constructor(this, kind); };
10986
- } return function entries() { return new Constructor(this, kind); };
10987
- };
10988
- var TAG = NAME + ' Iterator';
10989
- var DEF_VALUES = DEFAULT == VALUES;
10990
- var VALUES_BUG = false;
10991
- var proto = Base.prototype;
10992
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
10993
- var $default = $native || getMethod(DEFAULT);
10994
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
10995
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
10996
- var methods, key, IteratorPrototype;
10997
- // Fix native
10998
- if ($anyNative) {
10999
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
11000
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
11001
- // Set @@toStringTag to native iterators
11002
- setToStringTag(IteratorPrototype, TAG, true);
11003
- // fix for some old engines
11004
- if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
11005
- }
11006
- }
11007
- // fix Array#{values, @@iterator}.name in V8 / FF
11008
- if (DEF_VALUES && $native && $native.name !== VALUES) {
11009
- VALUES_BUG = true;
11010
- $default = function values() { return $native.call(this); };
11011
- }
11012
- // Define iterator
11013
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
11014
- hide(proto, ITERATOR, $default);
11015
- }
11016
- // Plug for library
11017
- Iterators[NAME] = $default;
11018
- Iterators[TAG] = returnThis;
11019
- if (DEFAULT) {
11020
- methods = {
11021
- values: DEF_VALUES ? $default : getMethod(VALUES),
11022
- keys: IS_SET ? $default : getMethod(KEYS),
11023
- entries: $entries
11024
- };
11025
- if (FORCED) for (key in methods) {
11026
- if (!(key in proto)) redefine(proto, key, methods[key]);
11027
- } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
11028
- }
11029
- return methods;
11030
- };
11031
-
11032
-
11033
- /***/ }),
11034
- /* 72 */
11035
- /***/ (function(module, exports, __webpack_require__) {
11036
-
11037
- // optional / simple context binding
11038
- var aFunction = __webpack_require__(105);
11039
- module.exports = function (fn, that, length) {
11040
- aFunction(fn);
11041
- if (that === undefined) return fn;
11042
- switch (length) {
11043
- case 1: return function (a) {
11044
- return fn.call(that, a);
11045
- };
11046
- case 2: return function (a, b) {
11047
- return fn.call(that, a, b);
11048
- };
11049
- case 3: return function (a, b, c) {
11050
- return fn.call(that, a, b, c);
11051
- };
11052
- }
11053
- return function (/* ...args */) {
11054
- return fn.apply(that, arguments);
11055
- };
11056
- };
11057
-
11058
-
11059
- /***/ }),
11060
- /* 73 */
11061
- /***/ (function(module, exports, __webpack_require__) {
11062
-
11063
- module.exports = !__webpack_require__(11) && !__webpack_require__(24)(function () {
11064
- return Object.defineProperty(__webpack_require__(74)('div'), 'a', { get: function () { return 7; } }).a != 7;
11065
- });
11066
-
11067
-
11068
- /***/ }),
11069
- /* 74 */
11070
- /***/ (function(module, exports, __webpack_require__) {
11071
-
11072
- var isObject = __webpack_require__(15);
11073
- var document = __webpack_require__(5).document;
11074
- // typeof document.createElement is 'object' in old IE
11075
- var is = isObject(document) && isObject(document.createElement);
11076
- module.exports = function (it) {
11077
- return is ? document.createElement(it) : {};
11078
- };
11079
-
11080
-
11081
- /***/ }),
11082
- /* 75 */
11083
- /***/ (function(module, exports, __webpack_require__) {
11084
-
11085
- module.exports = __webpack_require__(13);
11086
-
11087
-
11088
- /***/ }),
11089
- /* 76 */
11090
- /***/ (function(module, exports, __webpack_require__) {
11091
-
11092
- var has = __webpack_require__(12);
11093
- var toIObject = __webpack_require__(8);
11094
- var arrayIndexOf = __webpack_require__(108)(false);
11095
- var IE_PROTO = __webpack_require__(64)('IE_PROTO');
11096
-
11097
- module.exports = function (object, names) {
11098
- var O = toIObject(object);
11099
- var i = 0;
11100
- var result = [];
11101
- var key;
11102
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
11103
- // Don't enum bug & hidden keys
11104
- while (names.length > i) if (has(O, key = names[i++])) {
11105
- ~arrayIndexOf(result, key) || result.push(key);
11106
- }
11107
- return result;
11108
- };
11109
-
11110
-
11111
- /***/ }),
11112
- /* 77 */
11113
- /***/ (function(module, exports, __webpack_require__) {
11114
-
11115
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
11116
- var has = __webpack_require__(12);
11117
- var toObject = __webpack_require__(78);
11118
- var IE_PROTO = __webpack_require__(64)('IE_PROTO');
11119
- var ObjectProto = Object.prototype;
11120
-
11121
- module.exports = Object.getPrototypeOf || function (O) {
11122
- O = toObject(O);
11123
- if (has(O, IE_PROTO)) return O[IE_PROTO];
11124
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
11125
- return O.constructor.prototype;
11126
- } return O instanceof Object ? ObjectProto : null;
11127
- };
11128
-
11129
-
11130
- /***/ }),
11131
- /* 78 */
11132
- /***/ (function(module, exports, __webpack_require__) {
11133
-
11134
- // 7.1.13 ToObject(argument)
11135
- var defined = __webpack_require__(60);
11136
- module.exports = function (it) {
11137
- return Object(defined(it));
11138
- };
11139
-
11140
-
11141
- /***/ }),
11142
- /* 79 */
11143
- /***/ (function(module, exports, __webpack_require__) {
11144
-
11145
- // getting tag from 19.1.3.6 Object.prototype.toString()
11146
- var cof = __webpack_require__(59);
11147
- var TAG = __webpack_require__(4)('toStringTag');
11148
- // ES3 wrong here
11149
- var ARG = cof(function () { return arguments; }()) == 'Arguments';
11150
-
11151
- // fallback for IE11 Script Access Denied error
11152
- var tryGet = function (it, key) {
11153
- try {
11154
- return it[key];
11155
- } catch (e) { /* empty */ }
11156
- };
11157
-
11158
- module.exports = function (it) {
11159
- var O, T, B;
11160
- return it === undefined ? 'Undefined' : it === null ? 'Null'
11161
- // @@toStringTag case
11162
- : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
11163
- // builtinTag case
11164
- : ARG ? cof(O)
11165
- // ES3 arguments fallback
11166
- : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
11167
- };
11168
-
11169
-
11170
- /***/ }),
11171
- /* 80 */
11172
- /***/ (function(module, exports, __webpack_require__) {
11173
-
11174
- "use strict";
11175
-
11176
-
11177
- exports.__esModule = true;
11178
-
11179
- var _isIterable2 = __webpack_require__(115);
11180
-
11181
- var _isIterable3 = _interopRequireDefault(_isIterable2);
11182
-
11183
- var _getIterator2 = __webpack_require__(57);
11184
-
11185
- var _getIterator3 = _interopRequireDefault(_getIterator2);
11186
-
11187
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11188
-
11189
- exports.default = function () {
11190
- function sliceIterator(arr, i) {
11191
- var _arr = [];
11192
- var _n = true;
11193
- var _d = false;
11194
- var _e = undefined;
11195
-
11196
- try {
11197
- for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
11198
- _arr.push(_s.value);
11199
-
11200
- if (i && _arr.length === i) break;
11201
- }
11202
- } catch (err) {
11203
- _d = true;
11204
- _e = err;
11205
- } finally {
11206
- try {
11207
- if (!_n && _i["return"]) _i["return"]();
11208
- } finally {
11209
- if (_d) throw _e;
11210
- }
11211
- }
11212
-
11213
- return _arr;
11214
- }
11215
-
11216
- return function (arr, i) {
11217
- if (Array.isArray(arr)) {
11218
- return arr;
11219
- } else if ((0, _isIterable3.default)(Object(arr))) {
11220
- return sliceIterator(arr, i);
11221
- } else {
11222
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
11223
- }
11224
- };
11225
- }();
11226
-
11227
- /***/ }),
11228
- /* 81 */
11229
- /***/ (function(module, exports, __webpack_require__) {
11230
-
11231
- module.exports = { "default": __webpack_require__(118), __esModule: true };
11232
-
11233
- /***/ }),
11234
- /* 82 */
11235
- /***/ (function(module, exports, __webpack_require__) {
11236
-
11237
- module.exports = { "default": __webpack_require__(121), __esModule: true };
11238
-
11239
- /***/ }),
11240
- /* 83 */
11241
- /***/ (function(module, exports, __webpack_require__) {
11242
-
11243
- "use strict";
11244
-
11245
-
11246
- exports.__esModule = true;
11247
-
11248
- exports.default = function (instance, Constructor) {
11249
- if (!(instance instanceof Constructor)) {
11250
- throw new TypeError("Cannot call a class as a function");
11251
- }
11252
- };
11253
-
11254
- /***/ }),
11255
- /* 84 */
11256
- /***/ (function(module, exports, __webpack_require__) {
11257
-
11258
- "use strict";
11259
-
11260
-
11261
- exports.__esModule = true;
11262
-
11263
- var _defineProperty = __webpack_require__(124);
11264
-
11265
- var _defineProperty2 = _interopRequireDefault(_defineProperty);
11266
-
11267
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11268
-
11269
- exports.default = function () {
11270
- function defineProperties(target, props) {
11271
- for (var i = 0; i < props.length; i++) {
11272
- var descriptor = props[i];
11273
- descriptor.enumerable = descriptor.enumerable || false;
11274
- descriptor.configurable = true;
11275
- if ("value" in descriptor) descriptor.writable = true;
11276
- (0, _defineProperty2.default)(target, descriptor.key, descriptor);
11277
- }
11278
- }
11279
-
11280
- return function (Constructor, protoProps, staticProps) {
11281
- if (protoProps) defineProperties(Constructor.prototype, protoProps);
11282
- if (staticProps) defineProperties(Constructor, staticProps);
11283
- return Constructor;
11284
- };
11285
- }();
11286
-
11287
- /***/ }),
11288
- /* 85 */
11289
- /***/ (function(module, exports, __webpack_require__) {
11290
-
11291
- "use strict";
11292
-
11293
-
11294
- exports.__esModule = true;
11295
-
11296
- var _typeof2 = __webpack_require__(86);
11297
-
11298
- var _typeof3 = _interopRequireDefault(_typeof2);
11299
-
11300
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11301
-
11302
- exports.default = function (self, call) {
11303
- if (!self) {
11304
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
11305
- }
11306
-
11307
- return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self;
11308
- };
11309
-
11310
- /***/ }),
11311
- /* 86 */
11312
- /***/ (function(module, exports, __webpack_require__) {
11313
-
11314
- "use strict";
11315
-
11316
-
11317
- exports.__esModule = true;
11318
-
11319
- var _iterator = __webpack_require__(127);
11320
-
11321
- var _iterator2 = _interopRequireDefault(_iterator);
11322
-
11323
- var _symbol = __webpack_require__(129);
11324
-
11325
- var _symbol2 = _interopRequireDefault(_symbol);
11326
-
11327
- var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
11328
-
11329
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11330
-
11331
- exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
11332
- return typeof obj === "undefined" ? "undefined" : _typeof(obj);
11333
- } : function (obj) {
11334
- return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
11335
- };
11336
-
11337
- /***/ }),
11338
- /* 87 */
11339
- /***/ (function(module, exports) {
11340
-
11341
- exports.f = Object.getOwnPropertySymbols;
11342
-
11343
-
11344
- /***/ }),
11345
- /* 88 */
11346
- /***/ (function(module, exports, __webpack_require__) {
11347
-
11348
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
11349
- var $keys = __webpack_require__(76);
11350
- var hiddenKeys = __webpack_require__(66).concat('length', 'prototype');
11351
-
11352
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
11353
- return $keys(O, hiddenKeys);
11354
- };
11355
-
11356
-
11357
- /***/ }),
11358
- /* 89 */
11359
- /***/ (function(module, exports, __webpack_require__) {
11360
-
11361
- var pIE = __webpack_require__(29);
11362
- var createDesc = __webpack_require__(26);
11363
- var toIObject = __webpack_require__(8);
11364
- var toPrimitive = __webpack_require__(61);
11365
- var has = __webpack_require__(12);
11366
- var IE8_DOM_DEFINE = __webpack_require__(73);
11367
- var gOPD = Object.getOwnPropertyDescriptor;
11368
-
11369
- exports.f = __webpack_require__(11) ? gOPD : function getOwnPropertyDescriptor(O, P) {
11370
- O = toIObject(O);
11371
- P = toPrimitive(P, true);
11372
- if (IE8_DOM_DEFINE) try {
11373
- return gOPD(O, P);
11374
- } catch (e) { /* empty */ }
11375
- if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
11376
- };
11377
-
11378
-
11379
- /***/ }),
11380
- /* 90 */
11381
- /***/ (function(module, exports, __webpack_require__) {
11382
-
11383
- "use strict";
11384
-
11385
-
11386
- exports.__esModule = true;
11387
-
11388
- var _setPrototypeOf = __webpack_require__(139);
11389
-
11390
- var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
11391
-
11392
- var _create = __webpack_require__(143);
11393
-
11394
- var _create2 = _interopRequireDefault(_create);
11395
-
11396
- var _typeof2 = __webpack_require__(86);
11397
-
11398
- var _typeof3 = _interopRequireDefault(_typeof2);
11399
-
11400
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11401
-
11402
- exports.default = function (subClass, superClass) {
11403
- if (typeof superClass !== "function" && superClass !== null) {
11404
- throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass)));
11405
- }
11406
-
11407
- subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
11408
- constructor: {
11409
- value: subClass,
11410
- enumerable: false,
11411
- writable: true,
11412
- configurable: true
11413
- }
11414
- });
11415
- if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
11416
- };
11417
-
11418
- /***/ }),
11419
- /* 91 */,
11420
- /* 92 */,
11421
- /* 93 */
11422
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11423
-
11424
- "use strict";
11425
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
11426
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__simple_sitemap__ = __webpack_require__(94);
11427
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__simple_sitemap_group__ = __webpack_require__(96);
11428
- /**
11429
- * Import blocks
11430
- */
11431
-
11432
-
11433
-
11434
-
11435
- /***/ }),
11436
- /* 94 */
11437
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11438
-
11439
- "use strict";
11440
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__ = __webpack_require__(30);
11441
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__);
11442
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_select__ = __webpack_require__(16);
11443
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_checkbox__ = __webpack_require__(95);
11444
-
11445
- // BLOCK DEPENDENCIES
11446
-
11447
- // Import chart components/objects
11448
- //import attributes from './components/attributes';
11449
- //import BarChart from './components/bar-chart';
11450
- //import InspectorPanel from './components/inspector-panel';
11451
- //import IsSelected from './components/is-selected';
11452
- //import BlockAlignToolbar from '../_shared-components/block-align-toolbar';
11453
-
11454
- // Import libraries and functionality
11455
- //import classnames from 'classnames';
11456
-
11457
- // Import styles and media assets
11458
- //import customIcon from './components/icon';
11459
- //import './styles/style.scss';
11460
- //import './styles/editor.scss';
11461
-
11462
-
11463
-
11464
-
11465
- // Import core block libraries
11466
- var __ = wp.i18n.__;
11467
- var InspectorControls = wp.blockEditor.InspectorControls;
11468
- var _wp$components = wp.components,
11469
- PanelBody = _wp$components.PanelBody,
11470
- PanelRow = _wp$components.PanelRow,
11471
- ServerSideRender = _wp$components.ServerSideRender,
11472
- TextControl = _wp$components.TextControl,
11473
- RadioControl = _wp$components.RadioControl,
11474
- SelectControl = _wp$components.SelectControl;
11475
- var registerBlockType = wp.blocks.registerBlockType;
11476
- var Fragment = wp.element.Fragment;
11477
-
11478
- /**
11479
- * Register block
11480
- */
11481
-
11482
- /* unused harmony default export */ var _unused_webpack_default_export = (registerBlockType('wpgoplugins/simple-sitemap-block', {
11483
- title: 'Simple Sitemap',
11484
- icon: 'editor-ul',
11485
- category: 'simple-sitemap',
11486
- attributes: {
11487
- render_tab: {
11488
- type: 'boolean',
11489
- default: false
11490
- },
11491
- gutenberg_block: {
11492
- type: 'boolean',
11493
- default: true
11494
- },
11495
- orderby: {
11496
- type: 'string',
11497
- default: 'title'
11498
- },
11499
- order: {
11500
- type: 'string',
11501
- default: 'asc'
11502
- },
11503
- block_post_types: {
11504
- type: 'string',
11505
- default: '[{ "value": "page", "label": "Page" }]'
11506
- },
11507
- page_depth: {
11508
- type: 'number',
11509
- default: 0
11510
- },
11511
- show_excerpt: {
11512
- type: 'boolean',
11513
- default: false
11514
- },
11515
- show_label: {
11516
- type: 'boolean',
11517
- default: true
11518
- },
11519
- links: {
11520
- type: 'boolean',
11521
- default: true
11522
- }
11523
- },
11524
- edit: function edit(props) {
11525
- var _props$attributes = props.attributes,
11526
- show_excerpt = _props$attributes.show_excerpt,
11527
- show_label = _props$attributes.show_label,
11528
- links = _props$attributes.links,
11529
- page_depth = _props$attributes.page_depth,
11530
- nofollow = _props$attributes.nofollow,
11531
- image = _props$attributes.image,
11532
- list_icon = _props$attributes.list_icon,
11533
- max_width = _props$attributes.max_width,
11534
- responsive_breakpoint = _props$attributes.responsive_breakpoint,
11535
- sitemap_container_margin = _props$attributes.sitemap_container_margin,
11536
- sitemap_item_line_height = _props$attributes.sitemap_item_line_height,
11537
- tab_color = _props$attributes.tab_color,
11538
- tab_header_bg = _props$attributes.tab_header_bg,
11539
- post_type_label_padding = _props$attributes.post_type_label_padding,
11540
- post_type_label_font_size = _props$attributes.post_type_label_font_size,
11541
- render_tab = _props$attributes.render_tab,
11542
- block_post_types = _props$attributes.block_post_types,
11543
- exclude = _props$attributes.exclude,
11544
- include = _props$attributes.include,
11545
- order = _props$attributes.order,
11546
- orderby = _props$attributes.orderby,
11547
- className = props.className,
11548
- setAttributes = props.setAttributes,
11549
- isSelected = props.isSelected,
11550
- attributes = props.attributes;
11551
-
11552
- //const defaultValue = JSON.parse(props.attributes.block_post_types);
11553
- //console.log(defaultValue);
11554
- //console.log(typeof props.attributes.block_post_types, props.attributes.block_post_types);
11555
- //console.log(JSON.parse(props.attributes.block_post_types));
11556
-
11557
- function updateToggleTabs(isChecked) {
11558
- setAttributes({ render_tab: isChecked });
11559
- }
11560
-
11561
- function updateExcerpt(isChecked) {
11562
- setAttributes({ show_excerpt: isChecked });
11563
- }
11564
-
11565
- function updateShowLabel(isChecked) {
11566
- setAttributes({ show_label: isChecked });
11567
- }
11568
-
11569
- function updateLinks(isChecked) {
11570
- setAttributes({ links: isChecked });
11571
- }
11572
-
11573
- return [wp.element.createElement(
11574
- InspectorControls,
11575
- null,
11576
- wp.element.createElement(
11577
- PanelBody,
11578
- { title: __('General Settings', 'simple-sitemap') },
11579
- wp.element.createElement(
11580
- PanelRow,
11581
- null,
11582
- wp.element.createElement(
11583
- 'label',
11584
- { style: { marginBottom: '-14px' }, 'class': 'components-base-control__label' },
11585
- 'Select post types to display'
11586
- )
11587
- ),
11588
- wp.element.createElement(
11589
- PanelRow,
11590
- null,
11591
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1_react_select__["a" /* default */], {
11592
- label: 'Title',
11593
- defaultValue: JSON.parse(props.attributes.block_post_types),
11594
- isMulti: true,
11595
- onChange: function onChange(value) {
11596
- return props.setAttributes({ block_post_types: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default()(value) });
11597
- },
11598
- options: [{ value: 'post', label: 'Post' }, { value: 'page', label: 'Page' }]
11599
- })
11600
- ),
11601
- wp.element.createElement(
11602
- PanelRow,
11603
- null,
11604
- wp.element.createElement(
11605
- 'p',
11606
- { style: { marginTop: '-20px', fontSize: '13px', fontStyle: 'italic', marginLeft: '2px' } },
11607
- 'List ',
11608
- wp.element.createElement(
11609
- 'a',
11610
- { href: 'https://wpgoplugins.com/plugins/simple-sitemap-pro/#post-types', target: '_blank' },
11611
- 'more'
11612
- ),
11613
- ' post types'
11614
- )
11615
- ),
11616
- wp.element.createElement(
11617
- PanelRow,
11618
- { className: 'simple-sitemap order mb20' },
11619
- wp.element.createElement(SelectControl, {
11620
- label: 'Orderby',
11621
- value: props.attributes.orderby,
11622
- options: [{ label: 'Title', value: 'title' }, { label: 'Date', value: 'date' }, { label: 'ID', value: 'ID' }, { label: 'Author', value: 'author' }, { label: 'Name', value: 'name' }, { label: 'Modified', value: 'modified' }],
11623
- onChange: function onChange(value) {
11624
- props.setAttributes({ orderby: value });
11625
- }
11626
- }),
11627
- wp.element.createElement(SelectControl, {
11628
- label: 'Order',
11629
- value: props.attributes.order,
11630
- options: [{ label: 'Ascending', value: 'asc' }, { label: 'Descending', value: 'desc' }],
11631
- onChange: function onChange(value) {
11632
- props.setAttributes({ order: value });
11633
- }
11634
- })
11635
- ),
11636
- wp.element.createElement(
11637
- PanelRow,
11638
- { className: 'simple-sitemap general-chk' },
11639
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_checkbox__["a" /* SitemapCheckboxControl */], { value: show_excerpt, label: 'Show excerpt', updateCheckbox: updateExcerpt })
11640
- ),
11641
- wp.element.createElement(
11642
- PanelRow,
11643
- { className: 'simple-sitemap general-chk' },
11644
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_checkbox__["a" /* SitemapCheckboxControl */], { value: show_label, label: 'Show post type label', updateCheckbox: updateShowLabel })
11645
- ),
11646
- wp.element.createElement(
11647
- PanelRow,
11648
- { className: 'simple-sitemap general-chk' },
11649
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_checkbox__["a" /* SitemapCheckboxControl */], { value: links, label: 'Enable sitemap links', updateCheckbox: updateLinks })
11650
- )
11651
- ),
11652
- wp.element.createElement(
11653
- PanelBody,
11654
- { title: __('Tab Settings', 'simple-sitemap'), initialOpen: false },
11655
- wp.element.createElement(
11656
- PanelRow,
11657
- { className: 'simple-sitemap' },
11658
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_checkbox__["a" /* SitemapCheckboxControl */], { value: render_tab, label: 'Enable tabs', updateCheckbox: updateToggleTabs })
11659
- )
11660
- ),
11661
- wp.element.createElement(
11662
- PanelBody,
11663
- { title: __('Page Settings', 'simple-sitemap'), initialOpen: false },
11664
- wp.element.createElement(
11665
- PanelRow,
11666
- { className: 'simple-sitemap' },
11667
- wp.element.createElement(
11668
- 'p',
11669
- null,
11670
- 'Affects sitemap pages only.'
11671
- )
11672
- ),
11673
- wp.element.createElement(
11674
- PanelRow,
11675
- { className: 'simple-sitemap' },
11676
- wp.element.createElement(TextControl, {
11677
- type: 'number',
11678
- label: 'Page indentation',
11679
- min: '0',
11680
- max: '5',
11681
- help: 'Leave at zero for auto-depth',
11682
- value: page_depth,
11683
- onChange: function onChange(value) {
11684
- setAttributes({ page_depth: value });
11685
- }
11686
- })
11687
- )
11688
- )
11689
- ), wp.element.createElement(ServerSideRender, {
11690
- block: 'wpgoplugins/simple-sitemap-block',
11691
- attributes: props.attributes
11692
- })];
11693
- },
11694
- save: function save() {
11695
- return null;
11696
- }
11697
- }));
11698
-
11699
- /***/ }),
11700
- /* 95 */
11701
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11702
-
11703
- "use strict";
11704
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SitemapCheckboxControl; });
11705
- var CheckboxControl = wp.components.CheckboxControl;
11706
-
11707
-
11708
- var SitemapCheckboxControl = function SitemapCheckboxControl(props) {
11709
- var help = props.help,
11710
- disabled = props.disabled,
11711
- label = props.label,
11712
- updateCheckbox = props.updateCheckbox,
11713
- value = props.value;
11714
-
11715
-
11716
- return wp.element.createElement(CheckboxControl, {
11717
- help: help,
11718
- disabled: disabled,
11719
- label: label,
11720
- checked: value,
11721
- onChange: function onChange(isChecked) {
11722
- return updateCheckbox(isChecked);
11723
- }
11724
- });
11725
- };
11726
-
11727
- /***/ }),
11728
- /* 96 */
11729
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11730
-
11731
- "use strict";
11732
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_select_cpt_taxonomy__ = __webpack_require__(149);
11733
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_checkbox__ = __webpack_require__(95);
11734
- // BLOCK DEPENDENCIES
11735
-
11736
- // Import chart components/objects
11737
- //import attributes from './components/attributes';
11738
- //import BarChart from './components/bar-chart';
11739
- //import InspectorPanel from './components/inspector-panel';
11740
- //import IsSelected from './components/is-selected';
11741
- //import BlockAlignToolbar from '../_shared-components/block-align-toolbar';
11742
-
11743
- // Import libraries and functionality
11744
- //import classnames from 'classnames';
11745
-
11746
- // Import styles and media assets
11747
- //import customIcon from './components/icon';
11748
- //import './styles/style.scss';
11749
- //import './styles/editor.scss';
11750
-
11751
-
11752
-
11753
-
11754
- //import Select from 'react-select';
11755
-
11756
- // Import core block libraries
11757
- var __ = wp.i18n.__;
11758
- var InspectorControls = wp.blockEditor.InspectorControls;
11759
- var _wp$components = wp.components,
11760
- PanelBody = _wp$components.PanelBody,
11761
- PanelRow = _wp$components.PanelRow,
11762
- ServerSideRender = _wp$components.ServerSideRender,
11763
- TextControl = _wp$components.TextControl,
11764
- RadioControl = _wp$components.RadioControl,
11765
- SelectControl = _wp$components.SelectControl,
11766
- ColorPicker = _wp$components.ColorPicker;
11767
- var registerBlockType = wp.blocks.registerBlockType;
11768
- var Fragment = wp.element.Fragment;
11769
-
11770
- /**
11771
- * Register block
11772
- */
11773
-
11774
- /* unused harmony default export */ var _unused_webpack_default_export = (registerBlockType('wpgoplugins/simple-sitemap-group-block', {
11775
- title: 'Simple Sitemap Group',
11776
- icon: 'networking',
11777
- category: 'simple-sitemap',
11778
- attributes: {
11779
- show_excerpt: {
11780
- type: 'boolean',
11781
- default: false
11782
- },
11783
- show_label: {
11784
- type: 'boolean',
11785
- default: true
11786
- },
11787
- links: {
11788
- type: 'boolean',
11789
- default: true
11790
- },
11791
- orderby: {
11792
- type: 'string',
11793
- default: 'title'
11794
- },
11795
- order: {
11796
- type: 'string',
11797
- default: 'asc'
11798
- },
11799
- block_taxonomy: {
11800
- type: 'string',
11801
- default: 'category'
11802
- },
11803
- gutenberg_block: {
11804
- type: 'boolean',
11805
- default: true
11806
- }
11807
- },
11808
- edit: function edit(props) {
11809
- var _props$attributes = props.attributes,
11810
- show_excerpt = _props$attributes.show_excerpt,
11811
- show_label = _props$attributes.show_label,
11812
- links = _props$attributes.links,
11813
- block_taxonomy = _props$attributes.block_taxonomy,
11814
- order = _props$attributes.order,
11815
- orderby = _props$attributes.orderby,
11816
- className = props.className,
11817
- setAttributes = props.setAttributes,
11818
- isSelected = props.isSelected,
11819
- attributes = props.attributes;
11820
-
11821
-
11822
- function updateShowExcerpt(isChecked) {
11823
- setAttributes({ show_excerpt: isChecked });
11824
- }
11825
-
11826
- function updateShowLabel(isChecked) {
11827
- setAttributes({ show_label: isChecked });
11828
- }
11829
-
11830
- function updateLinks(isChecked) {
11831
- setAttributes({ links: isChecked });
11832
- }
11833
-
11834
- return [wp.element.createElement(
11835
- InspectorControls,
11836
- null,
11837
- wp.element.createElement(
11838
- PanelBody,
11839
- { title: __('General Settings', 'simple-sitemap') },
11840
- wp.element.createElement(
11841
- PanelRow,
11842
- { className: 'simple-sitemap' },
11843
- wp.element.createElement(
11844
- 'label',
11845
- { style: { marginBottom: '-12px', maxWidth: '100%' }, 'class': 'components-base-control__label' },
11846
- 'Select post taxonomy'
11847
- )
11848
- ),
11849
- wp.element.createElement(
11850
- PanelRow,
11851
- { className: 'simple-sitemap' },
11852
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__components_select_cpt_taxonomy__["a" /* SelectCptTaxonomy */], { setAttributes: setAttributes, multi: false, block_taxonomy: block_taxonomy })
11853
- ),
11854
- wp.element.createElement(
11855
- PanelRow,
11856
- null,
11857
- wp.element.createElement(
11858
- 'p',
11859
- { style: { marginTop: '-24px', fontSize: '13px', fontStyle: 'italic', marginLeft: '2px' } },
11860
- 'List ',
11861
- wp.element.createElement(
11862
- 'a',
11863
- { href: 'https://wpgoplugins.com/plugins/simple-sitemap-pro/#taxonomies-for-any-post-type', target: '_blank' },
11864
- 'taxonomies'
11865
- ),
11866
- ' for any post type'
11867
- )
11868
- ),
11869
- wp.element.createElement(
11870
- PanelRow,
11871
- { className: 'simple-sitemap order-label' },
11872
- wp.element.createElement(
11873
- 'label',
11874
- { style: { marginBottom: '-12px', maxWidth: '100%' }, 'class': 'components-base-control__label' },
11875
- 'Post ordering'
11876
- )
11877
- ),
11878
- wp.element.createElement(
11879
- PanelRow,
11880
- { className: 'simple-sitemap order mb20' },
11881
- wp.element.createElement(SelectControl, {
11882
- label: 'Orderby',
11883
- value: orderby,
11884
- options: [{ label: 'Title', value: 'title' }, { label: 'Date', value: 'date' }, { label: 'ID', value: 'ID' }, { label: 'Author', value: 'author' }, { label: 'Name', value: 'name' }, { label: 'Modified', value: 'modified' }],
11885
- onChange: function onChange(value) {
11886
- setAttributes({ orderby: value });
11887
- }
11888
- }),
11889
- wp.element.createElement(SelectControl, {
11890
- label: 'Order',
11891
- value: order,
11892
- options: [{ label: 'Ascending', value: 'asc' }, { label: 'Descending', value: 'desc' }],
11893
- onChange: function onChange(value) {
11894
- setAttributes({ order: value });
11895
- }
11896
- })
11897
- ),
11898
- wp.element.createElement(
11899
- PanelRow,
11900
- { className: 'simple-sitemap general-chk' },
11901
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__components_checkbox__["a" /* SitemapCheckboxControl */], { value: show_excerpt, label: 'Display post excerpt', updateCheckbox: updateShowExcerpt })
11902
- ),
11903
- wp.element.createElement(
11904
- PanelRow,
11905
- { className: 'simple-sitemap general-chk' },
11906
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__components_checkbox__["a" /* SitemapCheckboxControl */], { value: show_label, label: 'Display post type label', updateCheckbox: updateShowLabel })
11907
- ),
11908
- wp.element.createElement(
11909
- PanelRow,
11910
- { className: 'simple-sitemap general-chk' },
11911
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__components_checkbox__["a" /* SitemapCheckboxControl */], { value: links, label: 'Display sitemap links', updateCheckbox: updateLinks })
11912
- )
11913
- )
11914
- ), wp.element.createElement(ServerSideRender, {
11915
- block: 'wpgoplugins/simple-sitemap-group-block',
11916
- attributes: attributes
11917
- })];
11918
- },
11919
- save: function save() {
11920
- return null;
11921
- }
11922
- }));
11923
-
11924
- /***/ }),
11925
- /* 97 */,
11926
- /* 98 */,
11927
- /* 99 */,
11928
- /* 100 */
11929
- /***/ (function(module, exports, __webpack_require__) {
11930
-
11931
- __webpack_require__(58);
11932
- __webpack_require__(68);
11933
- module.exports = __webpack_require__(113);
11934
-
11935
-
11936
- /***/ }),
11937
- /* 101 */
11938
- /***/ (function(module, exports, __webpack_require__) {
11939
-
11940
- "use strict";
11941
-
11942
- var addToUnscopables = __webpack_require__(102);
11943
- var step = __webpack_require__(103);
11944
- var Iterators = __webpack_require__(23);
11945
- var toIObject = __webpack_require__(8);
11946
-
11947
- // 22.1.3.4 Array.prototype.entries()
11948
- // 22.1.3.13 Array.prototype.keys()
11949
- // 22.1.3.29 Array.prototype.values()
11950
- // 22.1.3.30 Array.prototype[@@iterator]()
11951
- module.exports = __webpack_require__(71)(Array, 'Array', function (iterated, kind) {
11952
- this._t = toIObject(iterated); // target
11953
- this._i = 0; // next index
11954
- this._k = kind; // kind
11955
- // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
11956
- }, function () {
11957
- var O = this._t;
11958
- var kind = this._k;
11959
- var index = this._i++;
11960
- if (!O || index >= O.length) {
11961
- this._t = undefined;
11962
- return step(1);
11963
- }
11964
- if (kind == 'keys') return step(0, index);
11965
- if (kind == 'values') return step(0, O[index]);
11966
- return step(0, [index, O[index]]);
11967
- }, 'values');
11968
-
11969
- // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
11970
- Iterators.Arguments = Iterators.Array;
11971
-
11972
- addToUnscopables('keys');
11973
- addToUnscopables('values');
11974
- addToUnscopables('entries');
11975
-
11976
-
11977
- /***/ }),
11978
- /* 102 */
11979
- /***/ (function(module, exports) {
11980
-
11981
- module.exports = function () { /* empty */ };
11982
-
11983
-
11984
- /***/ }),
11985
- /* 103 */
11986
- /***/ (function(module, exports) {
11987
-
11988
- module.exports = function (done, value) {
11989
- return { value: value, done: !!done };
11990
- };
11991
-
11992
-
11993
- /***/ }),
11994
- /* 104 */
11995
- /***/ (function(module, exports, __webpack_require__) {
11996
-
11997
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
11998
- var cof = __webpack_require__(59);
11999
- // eslint-disable-next-line no-prototype-builtins
12000
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
12001
- return cof(it) == 'String' ? it.split('') : Object(it);
12002
- };
12003
-
12004
-
12005
- /***/ }),
12006
- /* 105 */
12007
- /***/ (function(module, exports) {
12008
-
12009
- module.exports = function (it) {
12010
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
12011
- return it;
12012
- };
12013
-
12014
-
12015
- /***/ }),
12016
- /* 106 */
12017
- /***/ (function(module, exports, __webpack_require__) {
12018
-
12019
- "use strict";
12020
-
12021
- var create = __webpack_require__(62);
12022
- var descriptor = __webpack_require__(26);
12023
- var setToStringTag = __webpack_require__(67);
12024
- var IteratorPrototype = {};
12025
-
12026
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
12027
- __webpack_require__(13)(IteratorPrototype, __webpack_require__(4)('iterator'), function () { return this; });
12028
-
12029
- module.exports = function (Constructor, NAME, next) {
12030
- Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
12031
- setToStringTag(Constructor, NAME + ' Iterator');
12032
- };
12033
-
12034
-
12035
- /***/ }),
12036
- /* 107 */
12037
- /***/ (function(module, exports, __webpack_require__) {
12038
-
12039
- var dP = __webpack_require__(10);
12040
- var anObject = __webpack_require__(14);
12041
- var getKeys = __webpack_require__(27);
12042
-
12043
- module.exports = __webpack_require__(11) ? Object.defineProperties : function defineProperties(O, Properties) {
12044
- anObject(O);
12045
- var keys = getKeys(Properties);
12046
- var length = keys.length;
12047
- var i = 0;
12048
- var P;
12049
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
12050
- return O;
12051
- };
12052
-
12053
-
12054
- /***/ }),
12055
- /* 108 */
12056
- /***/ (function(module, exports, __webpack_require__) {
12057
-
12058
- // false -> Array#indexOf
12059
- // true -> Array#includes
12060
- var toIObject = __webpack_require__(8);
12061
- var toLength = __webpack_require__(109);
12062
- var toAbsoluteIndex = __webpack_require__(110);
12063
- module.exports = function (IS_INCLUDES) {
12064
- return function ($this, el, fromIndex) {
12065
- var O = toIObject($this);
12066
- var length = toLength(O.length);
12067
- var index = toAbsoluteIndex(fromIndex, length);
12068
- var value;
12069
- // Array#includes uses SameValueZero equality algorithm
12070
- // eslint-disable-next-line no-self-compare
12071
- if (IS_INCLUDES && el != el) while (length > index) {
12072
- value = O[index++];
12073
- // eslint-disable-next-line no-self-compare
12074
- if (value != value) return true;
12075
- // Array#indexOf ignores holes, Array#includes - not
12076
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
12077
- if (O[index] === el) return IS_INCLUDES || index || 0;
12078
- } return !IS_INCLUDES && -1;
12079
- };
12080
- };
12081
-
12082
-
12083
- /***/ }),
12084
- /* 109 */
12085
- /***/ (function(module, exports, __webpack_require__) {
12086
-
12087
- // 7.1.15 ToLength
12088
- var toInteger = __webpack_require__(63);
12089
- var min = Math.min;
12090
- module.exports = function (it) {
12091
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
12092
- };
12093
-
12094
-
12095
- /***/ }),
12096
- /* 110 */
12097
- /***/ (function(module, exports, __webpack_require__) {
12098
-
12099
- var toInteger = __webpack_require__(63);
12100
- var max = Math.max;
12101
- var min = Math.min;
12102
- module.exports = function (index, length) {
12103
- index = toInteger(index);
12104
- return index < 0 ? max(index + length, 0) : min(index, length);
12105
- };
12106
-
12107
-
12108
- /***/ }),
12109
- /* 111 */
12110
- /***/ (function(module, exports, __webpack_require__) {
12111
-
12112
- var document = __webpack_require__(5).document;
12113
- module.exports = document && document.documentElement;
12114
-
12115
-
12116
- /***/ }),
12117
- /* 112 */
12118
- /***/ (function(module, exports, __webpack_require__) {
12119
-
12120
- var toInteger = __webpack_require__(63);
12121
- var defined = __webpack_require__(60);
12122
- // true -> String#at
12123
- // false -> String#codePointAt
12124
- module.exports = function (TO_STRING) {
12125
- return function (that, pos) {
12126
- var s = String(defined(that));
12127
- var i = toInteger(pos);
12128
- var l = s.length;
12129
- var a, b;
12130
- if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
12131
- a = s.charCodeAt(i);
12132
- return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
12133
- ? TO_STRING ? s.charAt(i) : a
12134
- : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
12135
- };
12136
- };
12137
-
12138
-
12139
- /***/ }),
12140
- /* 113 */
12141
- /***/ (function(module, exports, __webpack_require__) {
12142
-
12143
- var anObject = __webpack_require__(14);
12144
- var get = __webpack_require__(114);
12145
- module.exports = __webpack_require__(1).getIterator = function (it) {
12146
- var iterFn = get(it);
12147
- if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
12148
- return anObject(iterFn.call(it));
12149
- };
12150
-
12151
-
12152
- /***/ }),
12153
- /* 114 */
12154
- /***/ (function(module, exports, __webpack_require__) {
12155
-
12156
- var classof = __webpack_require__(79);
12157
- var ITERATOR = __webpack_require__(4)('iterator');
12158
- var Iterators = __webpack_require__(23);
12159
- module.exports = __webpack_require__(1).getIteratorMethod = function (it) {
12160
- if (it != undefined) return it[ITERATOR]
12161
- || it['@@iterator']
12162
- || Iterators[classof(it)];
12163
- };
12164
-
12165
-
12166
- /***/ }),
12167
- /* 115 */
12168
- /***/ (function(module, exports, __webpack_require__) {
12169
-
12170
- module.exports = { "default": __webpack_require__(116), __esModule: true };
12171
-
12172
- /***/ }),
12173
- /* 116 */
12174
- /***/ (function(module, exports, __webpack_require__) {
12175
-
12176
- __webpack_require__(58);
12177
- __webpack_require__(68);
12178
- module.exports = __webpack_require__(117);
12179
-
12180
-
12181
- /***/ }),
12182
- /* 117 */
12183
- /***/ (function(module, exports, __webpack_require__) {
12184
-
12185
- var classof = __webpack_require__(79);
12186
- var ITERATOR = __webpack_require__(4)('iterator');
12187
- var Iterators = __webpack_require__(23);
12188
- module.exports = __webpack_require__(1).isIterable = function (it) {
12189
- var O = Object(it);
12190
- return O[ITERATOR] !== undefined
12191
- || '@@iterator' in O
12192
- // eslint-disable-next-line no-prototype-builtins
12193
- || Iterators.hasOwnProperty(classof(O));
12194
- };
12195
-
12196
-
12197
- /***/ }),
12198
- /* 118 */
12199
- /***/ (function(module, exports, __webpack_require__) {
12200
-
12201
- __webpack_require__(119);
12202
- module.exports = __webpack_require__(1).Object.entries;
12203
-
12204
-
12205
- /***/ }),
12206
- /* 119 */
12207
- /***/ (function(module, exports, __webpack_require__) {
12208
-
12209
- // https://github.com/tc39/proposal-object-values-entries
12210
- var $export = __webpack_require__(9);
12211
- var $entries = __webpack_require__(120)(true);
12212
-
12213
- $export($export.S, 'Object', {
12214
- entries: function entries(it) {
12215
- return $entries(it);
12216
- }
12217
- });
12218
-
12219
-
12220
- /***/ }),
12221
- /* 120 */
12222
- /***/ (function(module, exports, __webpack_require__) {
12223
-
12224
- var getKeys = __webpack_require__(27);
12225
- var toIObject = __webpack_require__(8);
12226
- var isEnum = __webpack_require__(29).f;
12227
- module.exports = function (isEntries) {
12228
- return function (it) {
12229
- var O = toIObject(it);
12230
- var keys = getKeys(O);
12231
- var length = keys.length;
12232
- var i = 0;
12233
- var result = [];
12234
- var key;
12235
- while (length > i) if (isEnum.call(O, key = keys[i++])) {
12236
- result.push(isEntries ? [key, O[key]] : O[key]);
12237
- } return result;
12238
- };
12239
- };
12240
-
12241
-
12242
- /***/ }),
12243
- /* 121 */
12244
- /***/ (function(module, exports, __webpack_require__) {
12245
-
12246
- __webpack_require__(122);
12247
- module.exports = __webpack_require__(1).Object.getPrototypeOf;
12248
-
12249
-
12250
- /***/ }),
12251
- /* 122 */
12252
- /***/ (function(module, exports, __webpack_require__) {
12253
-
12254
- // 19.1.2.9 Object.getPrototypeOf(O)
12255
- var toObject = __webpack_require__(78);
12256
- var $getPrototypeOf = __webpack_require__(77);
12257
-
12258
- __webpack_require__(123)('getPrototypeOf', function () {
12259
- return function getPrototypeOf(it) {
12260
- return $getPrototypeOf(toObject(it));
12261
- };
12262
- });
12263
-
12264
-
12265
- /***/ }),
12266
- /* 123 */
12267
- /***/ (function(module, exports, __webpack_require__) {
12268
-
12269
- // most Object methods by ES6 should accept primitives
12270
- var $export = __webpack_require__(9);
12271
- var core = __webpack_require__(1);
12272
- var fails = __webpack_require__(24);
12273
- module.exports = function (KEY, exec) {
12274
- var fn = (core.Object || {})[KEY] || Object[KEY];
12275
- var exp = {};
12276
- exp[KEY] = exec(fn);
12277
- $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
12278
- };
12279
-
12280
-
12281
- /***/ }),
12282
- /* 124 */
12283
- /***/ (function(module, exports, __webpack_require__) {
12284
-
12285
- module.exports = { "default": __webpack_require__(125), __esModule: true };
12286
-
12287
- /***/ }),
12288
- /* 125 */
12289
- /***/ (function(module, exports, __webpack_require__) {
12290
-
12291
- __webpack_require__(126);
12292
- var $Object = __webpack_require__(1).Object;
12293
- module.exports = function defineProperty(it, key, desc) {
12294
- return $Object.defineProperty(it, key, desc);
12295
- };
12296
-
12297
-
12298
- /***/ }),
12299
- /* 126 */
12300
- /***/ (function(module, exports, __webpack_require__) {
12301
-
12302
- var $export = __webpack_require__(9);
12303
- // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
12304
- $export($export.S + $export.F * !__webpack_require__(11), 'Object', { defineProperty: __webpack_require__(10).f });
12305
-
12306
-
12307
- /***/ }),
12308
- /* 127 */
12309
- /***/ (function(module, exports, __webpack_require__) {
12310
-
12311
- module.exports = { "default": __webpack_require__(128), __esModule: true };
12312
-
12313
- /***/ }),
12314
- /* 128 */
12315
- /***/ (function(module, exports, __webpack_require__) {
12316
-
12317
- __webpack_require__(68);
12318
- __webpack_require__(58);
12319
- module.exports = __webpack_require__(69).f('iterator');
12320
-
12321
-
12322
- /***/ }),
12323
- /* 129 */
12324
- /***/ (function(module, exports, __webpack_require__) {
12325
-
12326
- module.exports = { "default": __webpack_require__(130), __esModule: true };
12327
-
12328
- /***/ }),
12329
- /* 130 */
12330
- /***/ (function(module, exports, __webpack_require__) {
12331
-
12332
- __webpack_require__(131);
12333
- __webpack_require__(136);
12334
- __webpack_require__(137);
12335
- __webpack_require__(138);
12336
- module.exports = __webpack_require__(1).Symbol;
12337
-
12338
-
12339
- /***/ }),
12340
- /* 131 */
12341
- /***/ (function(module, exports, __webpack_require__) {
12342
-
12343
- "use strict";
12344
-
12345
- // ECMAScript 6 symbols shim
12346
- var global = __webpack_require__(5);
12347
- var has = __webpack_require__(12);
12348
- var DESCRIPTORS = __webpack_require__(11);
12349
- var $export = __webpack_require__(9);
12350
- var redefine = __webpack_require__(75);
12351
- var META = __webpack_require__(132).KEY;
12352
- var $fails = __webpack_require__(24);
12353
- var shared = __webpack_require__(65);
12354
- var setToStringTag = __webpack_require__(67);
12355
- var uid = __webpack_require__(28);
12356
- var wks = __webpack_require__(4);
12357
- var wksExt = __webpack_require__(69);
12358
- var wksDefine = __webpack_require__(70);
12359
- var enumKeys = __webpack_require__(133);
12360
- var isArray = __webpack_require__(134);
12361
- var anObject = __webpack_require__(14);
12362
- var isObject = __webpack_require__(15);
12363
- var toIObject = __webpack_require__(8);
12364
- var toPrimitive = __webpack_require__(61);
12365
- var createDesc = __webpack_require__(26);
12366
- var _create = __webpack_require__(62);
12367
- var gOPNExt = __webpack_require__(135);
12368
- var $GOPD = __webpack_require__(89);
12369
- var $DP = __webpack_require__(10);
12370
- var $keys = __webpack_require__(27);
12371
- var gOPD = $GOPD.f;
12372
- var dP = $DP.f;
12373
- var gOPN = gOPNExt.f;
12374
- var $Symbol = global.Symbol;
12375
- var $JSON = global.JSON;
12376
- var _stringify = $JSON && $JSON.stringify;
12377
- var PROTOTYPE = 'prototype';
12378
- var HIDDEN = wks('_hidden');
12379
- var TO_PRIMITIVE = wks('toPrimitive');
12380
- var isEnum = {}.propertyIsEnumerable;
12381
- var SymbolRegistry = shared('symbol-registry');
12382
- var AllSymbols = shared('symbols');
12383
- var OPSymbols = shared('op-symbols');
12384
- var ObjectProto = Object[PROTOTYPE];
12385
- var USE_NATIVE = typeof $Symbol == 'function';
12386
- var QObject = global.QObject;
12387
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
12388
- var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
12389
-
12390
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
12391
- var setSymbolDesc = DESCRIPTORS && $fails(function () {
12392
- return _create(dP({}, 'a', {
12393
- get: function () { return dP(this, 'a', { value: 7 }).a; }
12394
- })).a != 7;
12395
- }) ? function (it, key, D) {
12396
- var protoDesc = gOPD(ObjectProto, key);
12397
- if (protoDesc) delete ObjectProto[key];
12398
- dP(it, key, D);
12399
- if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
12400
- } : dP;
12401
-
12402
- var wrap = function (tag) {
12403
- var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
12404
- sym._k = tag;
12405
- return sym;
12406
- };
12407
-
12408
- var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
12409
- return typeof it == 'symbol';
12410
- } : function (it) {
12411
- return it instanceof $Symbol;
12412
- };
12413
-
12414
- var $defineProperty = function defineProperty(it, key, D) {
12415
- if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
12416
- anObject(it);
12417
- key = toPrimitive(key, true);
12418
- anObject(D);
12419
- if (has(AllSymbols, key)) {
12420
- if (!D.enumerable) {
12421
- if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
12422
- it[HIDDEN][key] = true;
12423
- } else {
12424
- if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
12425
- D = _create(D, { enumerable: createDesc(0, false) });
12426
- } return setSymbolDesc(it, key, D);
12427
- } return dP(it, key, D);
12428
- };
12429
- var $defineProperties = function defineProperties(it, P) {
12430
- anObject(it);
12431
- var keys = enumKeys(P = toIObject(P));
12432
- var i = 0;
12433
- var l = keys.length;
12434
- var key;
12435
- while (l > i) $defineProperty(it, key = keys[i++], P[key]);
12436
- return it;
12437
- };
12438
- var $create = function create(it, P) {
12439
- return P === undefined ? _create(it) : $defineProperties(_create(it), P);
12440
- };
12441
- var $propertyIsEnumerable = function propertyIsEnumerable(key) {
12442
- var E = isEnum.call(this, key = toPrimitive(key, true));
12443
- if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
12444
- return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
12445
- };
12446
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
12447
- it = toIObject(it);
12448
- key = toPrimitive(key, true);
12449
- if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
12450
- var D = gOPD(it, key);
12451
- if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
12452
- return D;
12453
- };
12454
- var $getOwnPropertyNames = function getOwnPropertyNames(it) {
12455
- var names = gOPN(toIObject(it));
12456
- var result = [];
12457
- var i = 0;
12458
- var key;
12459
- while (names.length > i) {
12460
- if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
12461
- } return result;
12462
- };
12463
- var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
12464
- var IS_OP = it === ObjectProto;
12465
- var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
12466
- var result = [];
12467
- var i = 0;
12468
- var key;
12469
- while (names.length > i) {
12470
- if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
12471
- } return result;
12472
- };
12473
-
12474
- // 19.4.1.1 Symbol([description])
12475
- if (!USE_NATIVE) {
12476
- $Symbol = function Symbol() {
12477
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
12478
- var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
12479
- var $set = function (value) {
12480
- if (this === ObjectProto) $set.call(OPSymbols, value);
12481
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
12482
- setSymbolDesc(this, tag, createDesc(1, value));
12483
- };
12484
- if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
12485
- return wrap(tag);
12486
- };
12487
- redefine($Symbol[PROTOTYPE], 'toString', function toString() {
12488
- return this._k;
12489
- });
12490
-
12491
- $GOPD.f = $getOwnPropertyDescriptor;
12492
- $DP.f = $defineProperty;
12493
- __webpack_require__(88).f = gOPNExt.f = $getOwnPropertyNames;
12494
- __webpack_require__(29).f = $propertyIsEnumerable;
12495
- __webpack_require__(87).f = $getOwnPropertySymbols;
12496
-
12497
- if (DESCRIPTORS && !__webpack_require__(25)) {
12498
- redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
12499
- }
12500
-
12501
- wksExt.f = function (name) {
12502
- return wrap(wks(name));
12503
- };
12504
- }
12505
-
12506
- $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
12507
-
12508
- for (var es6Symbols = (
12509
- // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
12510
- 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
12511
- ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
12512
-
12513
- for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
12514
-
12515
- $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
12516
- // 19.4.2.1 Symbol.for(key)
12517
- 'for': function (key) {
12518
- return has(SymbolRegistry, key += '')
12519
- ? SymbolRegistry[key]
12520
- : SymbolRegistry[key] = $Symbol(key);
12521
- },
12522
- // 19.4.2.5 Symbol.keyFor(sym)
12523
- keyFor: function keyFor(sym) {
12524
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
12525
- for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
12526
- },
12527
- useSetter: function () { setter = true; },
12528
- useSimple: function () { setter = false; }
12529
- });
12530
-
12531
- $export($export.S + $export.F * !USE_NATIVE, 'Object', {
12532
- // 19.1.2.2 Object.create(O [, Properties])
12533
- create: $create,
12534
- // 19.1.2.4 Object.defineProperty(O, P, Attributes)
12535
- defineProperty: $defineProperty,
12536
- // 19.1.2.3 Object.defineProperties(O, Properties)
12537
- defineProperties: $defineProperties,
12538
- // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
12539
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
12540
- // 19.1.2.7 Object.getOwnPropertyNames(O)
12541
- getOwnPropertyNames: $getOwnPropertyNames,
12542
- // 19.1.2.8 Object.getOwnPropertySymbols(O)
12543
- getOwnPropertySymbols: $getOwnPropertySymbols
12544
- });
12545
-
12546
- // 24.3.2 JSON.stringify(value [, replacer [, space]])
12547
- $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
12548
- var S = $Symbol();
12549
- // MS Edge converts symbol values to JSON as {}
12550
- // WebKit converts symbol values to JSON as null
12551
- // V8 throws on boxed symbols
12552
- return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
12553
- })), 'JSON', {
12554
- stringify: function stringify(it) {
12555
- var args = [it];
12556
- var i = 1;
12557
- var replacer, $replacer;
12558
- while (arguments.length > i) args.push(arguments[i++]);
12559
- $replacer = replacer = args[1];
12560
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
12561
- if (!isArray(replacer)) replacer = function (key, value) {
12562
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
12563
- if (!isSymbol(value)) return value;
12564
- };
12565
- args[1] = replacer;
12566
- return _stringify.apply($JSON, args);
12567
- }
12568
- });
12569
-
12570
- // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
12571
- $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(13)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
12572
- // 19.4.3.5 Symbol.prototype[@@toStringTag]
12573
- setToStringTag($Symbol, 'Symbol');
12574
- // 20.2.1.9 Math[@@toStringTag]
12575
- setToStringTag(Math, 'Math', true);
12576
- // 24.3.3 JSON[@@toStringTag]
12577
- setToStringTag(global.JSON, 'JSON', true);
12578
-
12579
-
12580
- /***/ }),
12581
- /* 132 */
12582
- /***/ (function(module, exports, __webpack_require__) {
12583
-
12584
- var META = __webpack_require__(28)('meta');
12585
- var isObject = __webpack_require__(15);
12586
- var has = __webpack_require__(12);
12587
- var setDesc = __webpack_require__(10).f;
12588
- var id = 0;
12589
- var isExtensible = Object.isExtensible || function () {
12590
- return true;
12591
- };
12592
- var FREEZE = !__webpack_require__(24)(function () {
12593
- return isExtensible(Object.preventExtensions({}));
12594
- });
12595
- var setMeta = function (it) {
12596
- setDesc(it, META, { value: {
12597
- i: 'O' + ++id, // object ID
12598
- w: {} // weak collections IDs
12599
- } });
12600
- };
12601
- var fastKey = function (it, create) {
12602
- // return primitive with prefix
12603
- if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
12604
- if (!has(it, META)) {
12605
- // can't set metadata to uncaught frozen object
12606
- if (!isExtensible(it)) return 'F';
12607
- // not necessary to add metadata
12608
- if (!create) return 'E';
12609
- // add missing metadata
12610
- setMeta(it);
12611
- // return object ID
12612
- } return it[META].i;
12613
- };
12614
- var getWeak = function (it, create) {
12615
- if (!has(it, META)) {
12616
- // can't set metadata to uncaught frozen object
12617
- if (!isExtensible(it)) return true;
12618
- // not necessary to add metadata
12619
- if (!create) return false;
12620
- // add missing metadata
12621
- setMeta(it);
12622
- // return hash weak collections IDs
12623
- } return it[META].w;
12624
- };
12625
- // add metadata on freeze-family methods calling
12626
- var onFreeze = function (it) {
12627
- if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
12628
- return it;
12629
- };
12630
- var meta = module.exports = {
12631
- KEY: META,
12632
- NEED: false,
12633
- fastKey: fastKey,
12634
- getWeak: getWeak,
12635
- onFreeze: onFreeze
12636
- };
12637
-
12638
-
12639
- /***/ }),
12640
- /* 133 */
12641
- /***/ (function(module, exports, __webpack_require__) {
12642
-
12643
- // all enumerable object keys, includes symbols
12644
- var getKeys = __webpack_require__(27);
12645
- var gOPS = __webpack_require__(87);
12646
- var pIE = __webpack_require__(29);
12647
- module.exports = function (it) {
12648
- var result = getKeys(it);
12649
- var getSymbols = gOPS.f;
12650
- if (getSymbols) {
12651
- var symbols = getSymbols(it);
12652
- var isEnum = pIE.f;
12653
- var i = 0;
12654
- var key;
12655
- while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
12656
- } return result;
12657
- };
12658
-
12659
-
12660
- /***/ }),
12661
- /* 134 */
12662
- /***/ (function(module, exports, __webpack_require__) {
12663
-
12664
- // 7.2.2 IsArray(argument)
12665
- var cof = __webpack_require__(59);
12666
- module.exports = Array.isArray || function isArray(arg) {
12667
- return cof(arg) == 'Array';
12668
- };
12669
-
12670
-
12671
- /***/ }),
12672
- /* 135 */
12673
- /***/ (function(module, exports, __webpack_require__) {
12674
-
12675
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
12676
- var toIObject = __webpack_require__(8);
12677
- var gOPN = __webpack_require__(88).f;
12678
- var toString = {}.toString;
12679
-
12680
- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
12681
- ? Object.getOwnPropertyNames(window) : [];
12682
-
12683
- var getWindowNames = function (it) {
12684
- try {
12685
- return gOPN(it);
12686
- } catch (e) {
12687
- return windowNames.slice();
12688
- }
12689
- };
12690
-
12691
- module.exports.f = function getOwnPropertyNames(it) {
12692
- return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
12693
- };
12694
-
12695
-
12696
- /***/ }),
12697
- /* 136 */
12698
- /***/ (function(module, exports) {
12699
-
12700
-
12701
-
12702
- /***/ }),
12703
- /* 137 */
12704
- /***/ (function(module, exports, __webpack_require__) {
12705
-
12706
- __webpack_require__(70)('asyncIterator');
12707
-
12708
-
12709
- /***/ }),
12710
- /* 138 */
12711
- /***/ (function(module, exports, __webpack_require__) {
12712
-
12713
- __webpack_require__(70)('observable');
12714
-
12715
-
12716
- /***/ }),
12717
- /* 139 */
12718
- /***/ (function(module, exports, __webpack_require__) {
12719
-
12720
- module.exports = { "default": __webpack_require__(140), __esModule: true };
12721
-
12722
- /***/ }),
12723
- /* 140 */
12724
- /***/ (function(module, exports, __webpack_require__) {
12725
-
12726
- __webpack_require__(141);
12727
- module.exports = __webpack_require__(1).Object.setPrototypeOf;
12728
-
12729
-
12730
- /***/ }),
12731
- /* 141 */
12732
- /***/ (function(module, exports, __webpack_require__) {
12733
-
12734
- // 19.1.3.19 Object.setPrototypeOf(O, proto)
12735
- var $export = __webpack_require__(9);
12736
- $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(142).set });
12737
-
12738
-
12739
- /***/ }),
12740
- /* 142 */
12741
- /***/ (function(module, exports, __webpack_require__) {
12742
-
12743
- // Works with __proto__ only. Old v8 can't work with null proto objects.
12744
- /* eslint-disable no-proto */
12745
- var isObject = __webpack_require__(15);
12746
- var anObject = __webpack_require__(14);
12747
- var check = function (O, proto) {
12748
- anObject(O);
12749
- if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
12750
- };
12751
- module.exports = {
12752
- set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
12753
- function (test, buggy, set) {
12754
- try {
12755
- set = __webpack_require__(72)(Function.call, __webpack_require__(89).f(Object.prototype, '__proto__').set, 2);
12756
- set(test, []);
12757
- buggy = !(test instanceof Array);
12758
- } catch (e) { buggy = true; }
12759
- return function setPrototypeOf(O, proto) {
12760
- check(O, proto);
12761
- if (buggy) O.__proto__ = proto;
12762
- else set(O, proto);
12763
- return O;
12764
- };
12765
- }({}, false) : undefined),
12766
- check: check
12767
- };
12768
-
12769
-
12770
- /***/ }),
12771
- /* 143 */
12772
- /***/ (function(module, exports, __webpack_require__) {
12773
-
12774
- module.exports = { "default": __webpack_require__(144), __esModule: true };
12775
-
12776
- /***/ }),
12777
- /* 144 */
12778
- /***/ (function(module, exports, __webpack_require__) {
12779
-
12780
- __webpack_require__(145);
12781
- var $Object = __webpack_require__(1).Object;
12782
- module.exports = function create(P, D) {
12783
- return $Object.create(P, D);
12784
- };
12785
-
12786
-
12787
- /***/ }),
12788
- /* 145 */
12789
- /***/ (function(module, exports, __webpack_require__) {
12790
-
12791
- var $export = __webpack_require__(9);
12792
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
12793
- $export($export.S, 'Object', { create: __webpack_require__(62) });
12794
-
12795
-
12796
- /***/ }),
12797
- /* 146 */,
12798
- /* 147 */,
12799
- /* 148 */,
12800
- /* 149 */
12801
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
12802
-
12803
- "use strict";
12804
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SelectCptTaxonomy; });
12805
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator__ = __webpack_require__(57);
12806
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator__);
12807
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray__ = __webpack_require__(80);
12808
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray__);
12809
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_entries__ = __webpack_require__(81);
12810
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_entries___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_entries__);
12811
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_prototype_of__ = __webpack_require__(82);
12812
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_prototype_of___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_prototype_of__);
12813
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_classCallCheck__ = __webpack_require__(83);
12814
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_classCallCheck__);
12815
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_createClass__ = __webpack_require__(84);
12816
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_createClass__);
12817
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(85);
12818
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_babel_runtime_helpers_possibleConstructorReturn__);
12819
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_babel_runtime_helpers_inherits__ = __webpack_require__(90);
12820
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_babel_runtime_helpers_inherits__);
12821
-
12822
-
12823
-
12824
-
12825
-
12826
-
12827
-
12828
-
12829
- // Import core block libraries
12830
- var __ = wp.i18n.__;
12831
- var InspectorControls = wp.blockEditor.InspectorControls;
12832
- var _wp$components = wp.components,
12833
- PanelBody = _wp$components.PanelBody,
12834
- PanelRow = _wp$components.PanelRow,
12835
- ServerSideRender = _wp$components.ServerSideRender,
12836
- TextControl = _wp$components.TextControl,
12837
- RadioControl = _wp$components.RadioControl,
12838
- SelectControl = _wp$components.SelectControl;
12839
- var registerBlockType = wp.blocks.registerBlockType;
12840
- var _wp$element = wp.element,
12841
- Component = _wp$element.Component,
12842
- Fragment = _wp$element.Fragment;
12843
-
12844
-
12845
- var SelectCptTaxonomy = function (_Component) {
12846
- __WEBPACK_IMPORTED_MODULE_7_babel_runtime_helpers_inherits___default()(SelectCptTaxonomy, _Component);
12847
-
12848
- function SelectCptTaxonomy(props) {
12849
- __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_classCallCheck___default()(this, SelectCptTaxonomy);
12850
-
12851
- // or super(props); ??
12852
-
12853
- var _this = __WEBPACK_IMPORTED_MODULE_6_babel_runtime_helpers_possibleConstructorReturn___default()(this, (SelectCptTaxonomy.__proto__ || __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_prototype_of___default()(SelectCptTaxonomy)).call(this));
12854
-
12855
- _this.state = {
12856
- types: [],
12857
- taxonomies: [],
12858
- taxonomy_select_disabled_status: true,
12859
- taxonomy_select_disabled_help: '',
12860
- wrapperClass: ''
12861
- };
12862
- _this.props = props;
12863
- return _this;
12864
- }
12865
-
12866
- // get post types to populate select box
12867
-
12868
-
12869
- __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_createClass___default()(SelectCptTaxonomy, [{
12870
- key: 'componentDidMount',
12871
- value: function componentDidMount() {
12872
-
12873
- // render dropdowns
12874
- this.fetchTaxonomies(null); // null is important here
12875
- }
12876
-
12877
- // set the taxonomy dropdown options
12878
-
12879
- }, {
12880
- key: 'fetchTaxonomies',
12881
- value: function fetchTaxonomies(newCPT) {
12882
- var _this2 = this;
12883
-
12884
- var _props = this.props,
12885
- setAttributes = _props.setAttributes,
12886
- block_post_type = _props.block_post_type,
12887
- block_taxonomy = _props.block_taxonomy;
12888
-
12889
- var taxonomy_url = 'simple-sitemap/v1/post-type-taxonomies/post';
12890
-
12891
- wp.apiFetch({ path: taxonomy_url, method: 'GET' }).then(function (data) {
12892
-
12893
- var msg = '';
12894
- var disabled_status = false;
12895
- var wrapperClass = '';
12896
- var taxonomies = [];
12897
- var tax_flag = true;
12898
-
12899
- if (data.length === 0) {
12900
- msg = 'No taxonomies found for this post type';
12901
- disabled_status = true;
12902
- wrapperClass = 'disabled';
12903
- setAttributes({ block_taxonomy: '' });
12904
- } else {
12905
- var entries = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_entries___default()(data);
12906
- var _iteratorNormalCompletion = true;
12907
- var _didIteratorError = false;
12908
- var _iteratorError = undefined;
12909
-
12910
- try {
12911
- for (var _iterator = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default()(entries), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12912
- var _ref = _step.value;
12913
-
12914
- var _ref2 = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray___default()(_ref, 2);
12915
-
12916
- var key = _ref2[0];
12917
- var value = _ref2[1];
12918
-
12919
- var tmp = {
12920
- value: key,
12921
- label: value
12922
- };
12923
- taxonomies.push(tmp);
12924
-
12925
- // use attribute value?
12926
- if (tmp.value === block_taxonomy) {
12927
- tax_flag = false;
12928
- }
12929
- }
12930
- // update attribute with first found taxonomy unless current taxonomy attr. is found in taxonomy array
12931
-
12932
- // only update tax attr. if current value not found in updated taxonomies array in which case just set to first taxonomy in array
12933
- } catch (err) {
12934
- _didIteratorError = true;
12935
- _iteratorError = err;
12936
- } finally {
12937
- try {
12938
- if (!_iteratorNormalCompletion && _iterator.return) {
12939
- _iterator.return();
12940
- }
12941
- } finally {
12942
- if (_didIteratorError) {
12943
- throw _iteratorError;
12944
- }
12945
- }
12946
- }
12947
-
12948
- if (tax_flag) {
12949
- setAttributes({ block_taxonomy: taxonomies[0].value });
12950
- }
12951
- }
12952
-
12953
- _this2.setState({
12954
- taxonomy_select_disabled_status: disabled_status,
12955
- taxonomy_select_disabled_help: msg,
12956
- taxonomies: taxonomies,
12957
- wrapperClass: wrapperClass
12958
- });
12959
- return data;
12960
- }, function (err) {
12961
- return err;
12962
- });
12963
- }
12964
- }, {
12965
- key: 'updateTaxonomyValues',
12966
- value: function updateTaxonomyValues(val) {
12967
- var setAttributes = this.props.setAttributes;
12968
-
12969
- setAttributes({ block_taxonomy: val });
12970
- }
12971
- }, {
12972
- key: 'render',
12973
- value: function render() {
12974
- var _this3 = this;
12975
-
12976
- var block_taxonomy = this.props.block_taxonomy;
12977
-
12978
-
12979
- return wp.element.createElement(
12980
- 'div',
12981
- { className: this.state.wrapperClass },
12982
- wp.element.createElement(SelectControl, {
12983
- value: block_taxonomy,
12984
- options: this.state.taxonomies,
12985
- onChange: function onChange(val) {
12986
- return _this3.updateTaxonomyValues(val);
12987
- },
12988
- disabled: this.state.taxonomy_select_disabled_status
12989
- })
12990
- );
12991
- }
12992
- }]);
12993
-
12994
- return SelectCptTaxonomy;
12995
- }(Component);
12996
-
12997
- /***/ })
12998
- /******/ ]);
12999
- //# sourceMappingURL=blocks.editor.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
block_assets/js/blocks.editor.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"./block_assets/js/blocks.editor.js","sources":["webpack:///webpack/bootstrap 9590f9cef20a30f460c2","webpack:///./node_modules/process/browser.js","webpack:///./node_modules/core-js/library/modules/_core.js","webpack:///external \"React\"","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/core-js/library/modules/_wks.js","webpack:///./node_modules/core-js/library/modules/_global.js","webpack:///external \"ReactDOM\"","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/core-js/library/modules/_to-iobject.js","webpack:///./node_modules/core-js/library/modules/_export.js","webpack:///./node_modules/core-js/library/modules/_object-dp.js","webpack:///./node_modules/core-js/library/modules/_descriptors.js","webpack:///./node_modules/core-js/library/modules/_has.js","webpack:///./node_modules/core-js/library/modules/_hide.js","webpack:///./node_modules/core-js/library/modules/_an-object.js","webpack:///./node_modules/core-js/library/modules/_is-object.js","webpack:///./node_modules/react-select/dist/react-select.esm.js","webpack:///(webpack)/buildin/global.js","webpack:///./node_modules/react-is/index.js","webpack:///./node_modules/react-transition-group/Transition.js","webpack:///./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js","webpack:///./node_modules/react-transition-group/utils/PropTypes.js","webpack:///./node_modules/react-transition-group/TransitionGroup.js","webpack:///./node_modules/core-js/library/modules/_iterators.js","webpack:///./node_modules/core-js/library/modules/_fails.js","webpack:///./node_modules/core-js/library/modules/_library.js","webpack:///./node_modules/core-js/library/modules/_property-desc.js","webpack:///./node_modules/core-js/library/modules/_object-keys.js","webpack:///./node_modules/core-js/library/modules/_uid.js","webpack:///./node_modules/core-js/library/modules/_object-pie.js","webpack:///./node_modules/babel-runtime/core-js/json/stringify.js","webpack:///./node_modules/core-js/library/fn/json/stringify.js","webpack:///./node_modules/memoize-one/dist/memoize-one.esm.js","webpack:///./node_modules/emotion/dist/index.esm.js","webpack:///./node_modules/create-emotion/dist/index.esm.js","webpack:///./node_modules/@emotion/memoize/dist/memoize.esm.js","webpack:///./node_modules/@emotion/unitless/dist/unitless.esm.js","webpack:///./node_modules/@emotion/hash/dist/hash.esm.js","webpack:///./node_modules/@emotion/stylis/dist/stylis.esm.js","webpack:///./node_modules/stylis-rule-sheet/index.js","webpack:///./node_modules/react-is/cjs/react-is.production.min.js","webpack:///./node_modules/react-is/cjs/react-is.development.js","webpack:///./node_modules/prop-types/factoryWithTypeCheckers.js","webpack:///./node_modules/object-assign/index.js","webpack:///./node_modules/prop-types/checkPropTypes.js","webpack:///./node_modules/prop-types/factoryWithThrowingShims.js","webpack:///./node_modules/raf/index.js","webpack:///./node_modules/performance-now/lib/performance-now.js","webpack:///./node_modules/react-input-autosize/lib/AutosizeInput.js","webpack:///./node_modules/react-transition-group/index.js","webpack:///./node_modules/react-transition-group/CSSTransition.js","webpack:///./node_modules/dom-helpers/class/addClass.js","webpack:///./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///./node_modules/dom-helpers/class/hasClass.js","webpack:///./node_modules/dom-helpers/class/removeClass.js","webpack:///./node_modules/react-transition-group/ReplaceTransition.js","webpack:///./node_modules/react-transition-group/utils/ChildMapping.js","webpack:///./node_modules/babel-runtime/core-js/get-iterator.js","webpack:///./node_modules/core-js/library/modules/web.dom.iterable.js","webpack:///./node_modules/core-js/library/modules/_cof.js","webpack:///./node_modules/core-js/library/modules/_defined.js","webpack:///./node_modules/core-js/library/modules/_to-primitive.js","webpack:///./node_modules/core-js/library/modules/_object-create.js","webpack:///./node_modules/core-js/library/modules/_to-integer.js","webpack:///./node_modules/core-js/library/modules/_shared-key.js","webpack:///./node_modules/core-js/library/modules/_shared.js","webpack:///./node_modules/core-js/library/modules/_enum-bug-keys.js","webpack:///./node_modules/core-js/library/modules/_set-to-string-tag.js","webpack:///./node_modules/core-js/library/modules/es6.string.iterator.js","webpack:///./node_modules/core-js/library/modules/_wks-ext.js","webpack:///./node_modules/core-js/library/modules/_wks-define.js","webpack:///./node_modules/core-js/library/modules/_iter-define.js","webpack:///./node_modules/core-js/library/modules/_ctx.js","webpack:///./node_modules/core-js/library/modules/_ie8-dom-define.js","webpack:///./node_modules/core-js/library/modules/_dom-create.js","webpack:///./node_modules/core-js/library/modules/_redefine.js","webpack:///./node_modules/core-js/library/modules/_object-keys-internal.js","webpack:///./node_modules/core-js/library/modules/_object-gpo.js","webpack:///./node_modules/core-js/library/modules/_to-object.js","webpack:///./node_modules/core-js/library/modules/_classof.js","webpack:///./node_modules/babel-runtime/helpers/slicedToArray.js","webpack:///./node_modules/babel-runtime/core-js/object/entries.js","webpack:///./node_modules/babel-runtime/core-js/object/get-prototype-of.js","webpack:///./node_modules/babel-runtime/helpers/classCallCheck.js","webpack:///./node_modules/babel-runtime/helpers/createClass.js","webpack:///./node_modules/babel-runtime/helpers/possibleConstructorReturn.js","webpack:///./node_modules/babel-runtime/helpers/typeof.js","webpack:///./node_modules/core-js/library/modules/_object-gops.js","webpack:///./node_modules/core-js/library/modules/_object-gopn.js","webpack:///./node_modules/core-js/library/modules/_object-gopd.js","webpack:///./node_modules/babel-runtime/helpers/inherits.js","webpack:///src/blocks/index.js","webpack:///src/blocks/simple-sitemap/index.js","webpack:///src/blocks/_components/checkbox.js","webpack:///src/blocks/simple-sitemap-group/index.js","webpack:///./node_modules/core-js/library/fn/get-iterator.js","webpack:///./node_modules/core-js/library/modules/es6.array.iterator.js","webpack:///./node_modules/core-js/library/modules/_add-to-unscopables.js","webpack:///./node_modules/core-js/library/modules/_iter-step.js","webpack:///./node_modules/core-js/library/modules/_iobject.js","webpack:///./node_modules/core-js/library/modules/_a-function.js","webpack:///./node_modules/core-js/library/modules/_iter-create.js","webpack:///./node_modules/core-js/library/modules/_object-dps.js","webpack:///./node_modules/core-js/library/modules/_array-includes.js","webpack:///./node_modules/core-js/library/modules/_to-length.js","webpack:///./node_modules/core-js/library/modules/_to-absolute-index.js","webpack:///./node_modules/core-js/library/modules/_html.js","webpack:///./node_modules/core-js/library/modules/_string-at.js","webpack:///./node_modules/core-js/library/modules/core.get-iterator.js","webpack:///./node_modules/core-js/library/modules/core.get-iterator-method.js","webpack:///./node_modules/babel-runtime/core-js/is-iterable.js","webpack:///./node_modules/core-js/library/fn/is-iterable.js","webpack:///./node_modules/core-js/library/modules/core.is-iterable.js","webpack:///./node_modules/core-js/library/fn/object/entries.js","webpack:///./node_modules/core-js/library/modules/es7.object.entries.js","webpack:///./node_modules/core-js/library/modules/_object-to-array.js","webpack:///./node_modules/core-js/library/fn/object/get-prototype-of.js","webpack:///./node_modules/core-js/library/modules/es6.object.get-prototype-of.js","webpack:///./node_modules/core-js/library/modules/_object-sap.js","webpack:///./node_modules/babel-runtime/core-js/object/define-property.js","webpack:///./node_modules/core-js/library/fn/object/define-property.js","webpack:///./node_modules/core-js/library/modules/es6.object.define-property.js","webpack:///./node_modules/babel-runtime/core-js/symbol/iterator.js","webpack:///./node_modules/core-js/library/fn/symbol/iterator.js","webpack:///./node_modules/babel-runtime/core-js/symbol.js","webpack:///./node_modules/core-js/library/fn/symbol/index.js","webpack:///./node_modules/core-js/library/modules/es6.symbol.js","webpack:///./node_modules/core-js/library/modules/_meta.js","webpack:///./node_modules/core-js/library/modules/_enum-keys.js","webpack:///./node_modules/core-js/library/modules/_is-array.js","webpack:///./node_modules/core-js/library/modules/_object-gopn-ext.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.async-iterator.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.observable.js","webpack:///./node_modules/babel-runtime/core-js/object/set-prototype-of.js","webpack:///./node_modules/core-js/library/fn/object/set-prototype-of.js","webpack:///./node_modules/core-js/library/modules/es6.object.set-prototype-of.js","webpack:///./node_modules/core-js/library/modules/_set-proto.js","webpack:///./node_modules/babel-runtime/core-js/object/create.js","webpack:///./node_modules/core-js/library/fn/object/create.js","webpack:///./node_modules/core-js/library/modules/es6.object.create.js","webpack:///src/blocks/_components/select-cpt-taxonomy.js"],"sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 93);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 9590f9cef20a30f460c2","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // 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\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // 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.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/process/browser.js\n// module id = 0\n// module chunks = 0 1","var core = module.exports = { version: '2.6.5' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_core.js\n// module id = 1\n// module chunks = 0 1","module.exports = React;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"React\"\n// module id = 2\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/index.js\n// module id = 3\n// module chunks = 0 1","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks.js\n// module id = 4\n// module chunks = 0 1","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_global.js\n// module id = 5\n// module chunks = 0 1","module.exports = ReactDOM;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"ReactDOM\"\n// module id = 6\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/lib/ReactPropTypesSecret.js\n// module id = 7\n// module chunks = 0 1","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-iobject.js\n// module id = 8\n// module chunks = 0 1","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && has(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_export.js\n// module id = 9\n// module chunks = 0 1","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dp.js\n// module id = 10\n// module chunks = 0 1","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_descriptors.js\n// module id = 11\n// module chunks = 0 1","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_has.js\n// module id = 12\n// module chunks = 0 1","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_hide.js\n// module id = 13\n// module chunks = 0 1","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_an-object.js\n// module id = 14\n// module chunks = 0 1","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-object.js\n// module id = 15\n// module chunks = 0 1","import React, { Component, PureComponent } from 'react';\nimport memoizeOne from 'memoize-one';\nimport { css, injectGlobal } from 'emotion';\nimport { createPortal, findDOMNode } from 'react-dom';\nimport PropTypes from 'prop-types';\nimport raf from 'raf';\nimport AutosizeInput from 'react-input-autosize';\nimport { Transition, TransitionGroup } from 'react-transition-group';\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\n// ==============================\n// NO OP\n// ==============================\nvar noop = function noop() {};\n// Class Name Prefixer\n// ==============================\n\n/**\n String representation of component state for styling with class names.\n\n Expects an array of strings OR a string/object pair:\n - className(['comp', 'comp-arg', 'comp-arg-2'])\n @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'\n - className('comp', { some: true, state: false })\n @returns 'react-select__comp react-select__comp--some'\n*/\n\nfunction applyPrefixToName(prefix, name) {\n if (!name) {\n return prefix;\n } else if (name[0] === '-') {\n return prefix + name;\n } else {\n return prefix + '__' + name;\n }\n}\n\nfunction classNames(prefix, cssKey, state, className) {\n var arr = [cssKey, className];\n\n if (state && prefix) {\n for (var key in state) {\n if (state.hasOwnProperty(key) && state[key]) {\n arr.push(\"\".concat(applyPrefixToName(prefix, key)));\n }\n }\n }\n\n return arr.filter(function (i) {\n return i;\n }).map(function (i) {\n return String(i).trim();\n }).join(' ');\n} // ==============================\n// Clean Value\n// ==============================\n\nvar cleanValue = function cleanValue(value) {\n if (Array.isArray(value)) return value.filter(Boolean);\n if (_typeof(value) === 'object' && value !== null) return [value];\n return [];\n}; // ==============================\n// Handle Input Change\n// ==============================\n\nfunction handleInputChange(inputValue, actionMeta, onInputChange) {\n if (onInputChange) {\n var newValue = onInputChange(inputValue, actionMeta);\n if (typeof newValue === 'string') return newValue;\n }\n\n return inputValue;\n} // ==============================\n// Scroll Helpers\n// ==============================\n\nfunction isDocumentElement(el) {\n return [document.documentElement, document.body, window].indexOf(el) > -1;\n} // Normalized Scroll Top\n// ------------------------------\n\nfunction getScrollTop(el) {\n if (isDocumentElement(el)) {\n return window.pageYOffset;\n }\n\n return el.scrollTop;\n}\nfunction scrollTo(el, top) {\n // with a scroll distance, we perform scroll on the element\n if (isDocumentElement(el)) {\n window.scrollTo(0, top);\n return;\n }\n\n el.scrollTop = top;\n} // Get Scroll Parent\n// ------------------------------\n\nfunction getScrollParent(element) {\n var style = getComputedStyle(element);\n var excludeStaticParent = style.position === 'absolute';\n var overflowRx = /(auto|scroll)/;\n var docEl = document.documentElement; // suck it, flow...\n\n if (style.position === 'fixed') return docEl;\n\n for (var parent = element; parent = parent.parentElement;) {\n style = getComputedStyle(parent);\n\n if (excludeStaticParent && style.position === 'static') {\n continue;\n }\n\n if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {\n return parent;\n }\n }\n\n return docEl;\n} // Animated Scroll To\n// ------------------------------\n\n/**\n @param t: time (elapsed)\n @param b: initial value\n @param c: amount of change\n @param d: duration\n*/\n\nfunction easeOutCubic(t, b, c, d) {\n return c * ((t = t / d - 1) * t * t + 1) + b;\n}\n\nfunction animatedScrollTo(element, to) {\n var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200;\n var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop;\n var start = getScrollTop(element);\n var change = to - start;\n var increment = 10;\n var currentTime = 0;\n\n function animateScroll() {\n currentTime += increment;\n var val = easeOutCubic(currentTime, start, change, duration);\n scrollTo(element, val);\n\n if (currentTime < duration) {\n raf(animateScroll);\n } else {\n callback(element);\n }\n }\n\n animateScroll();\n} // Scroll Into View\n// ------------------------------\n\nfunction scrollIntoView(menuEl, focusedEl) {\n var menuRect = menuEl.getBoundingClientRect();\n var focusedRect = focusedEl.getBoundingClientRect();\n var overScroll = focusedEl.offsetHeight / 3;\n\n if (focusedRect.bottom + overScroll > menuRect.bottom) {\n scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));\n } else if (focusedRect.top - overScroll < menuRect.top) {\n scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));\n }\n} // ==============================\n// Get bounding client object\n// ==============================\n// cannot get keys using array notation with DOMRect\n\nfunction getBoundingClientObj(element) {\n var rect = element.getBoundingClientRect();\n return {\n bottom: rect.bottom,\n height: rect.height,\n left: rect.left,\n right: rect.right,\n top: rect.top,\n width: rect.width\n };\n}\n// Touch Capability Detector\n// ==============================\n\nfunction isTouchCapable() {\n try {\n document.createEvent('TouchEvent');\n return true;\n } catch (e) {\n return false;\n }\n} // ==============================\n// Mobile Device Detector\n// ==============================\n\nfunction isMobileDevice() {\n try {\n return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n } catch (e) {\n return false;\n }\n}\n\nfunction getMenuPlacement(_ref) {\n var maxHeight = _ref.maxHeight,\n menuEl = _ref.menuEl,\n minHeight = _ref.minHeight,\n placement = _ref.placement,\n shouldScroll = _ref.shouldScroll,\n isFixedPosition = _ref.isFixedPosition,\n theme = _ref.theme;\n var spacing = theme.spacing;\n var scrollParent = getScrollParent(menuEl);\n var defaultState = {\n placement: 'bottom',\n maxHeight: maxHeight\n }; // something went wrong, return default state\n\n if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when\n // the menu is rendered\n\n var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),\n scrollHeight = _scrollParent$getBoun.height;\n\n var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),\n menuBottom = _menuEl$getBoundingCl.bottom,\n menuHeight = _menuEl$getBoundingCl.height,\n menuTop = _menuEl$getBoundingCl.top;\n\n var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),\n containerTop = _menuEl$offsetParent$.top;\n\n var viewHeight = window.innerHeight;\n var scrollTop = getScrollTop(scrollParent);\n var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);\n var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);\n var viewSpaceAbove = containerTop - marginTop;\n var viewSpaceBelow = viewHeight - menuTop;\n var scrollSpaceAbove = viewSpaceAbove + scrollTop;\n var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;\n var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;\n var scrollUp = scrollTop + menuTop - marginTop;\n var scrollDuration = 160;\n\n switch (placement) {\n case 'auto':\n case 'bottom':\n // 1: the menu will fit, do nothing\n if (viewSpaceBelow >= menuHeight) {\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n } // 2: the menu will fit, if scrolled\n\n\n if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollDown, scrollDuration);\n }\n\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n } // 3: the menu will fit, if constrained\n\n\n if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollDown, scrollDuration);\n } // we want to provide as much of the menu as possible to the user,\n // so give them whatever is available below rather than the minHeight.\n\n\n var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;\n return {\n placement: 'bottom',\n maxHeight: constrainedHeight\n };\n } // 4. Forked beviour when there isn't enough space below\n // AUTO: flip the menu, render above\n\n\n if (placement === 'auto' || isFixedPosition) {\n // may need to be constrained after flipping\n var _constrainedHeight = maxHeight;\n var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;\n\n if (spaceAbove >= minHeight) {\n _constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight);\n }\n\n return {\n placement: 'top',\n maxHeight: _constrainedHeight\n };\n } // BOTTOM: allow browser to increase scrollable area and immediately set scroll\n\n\n if (placement === 'bottom') {\n scrollTo(scrollParent, scrollDown);\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n }\n\n break;\n\n case 'top':\n // 1: the menu will fit, do nothing\n if (viewSpaceAbove >= menuHeight) {\n return {\n placement: 'top',\n maxHeight: maxHeight\n };\n } // 2: the menu will fit, if scrolled\n\n\n if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollUp, scrollDuration);\n }\n\n return {\n placement: 'top',\n maxHeight: maxHeight\n };\n } // 3: the menu will fit, if constrained\n\n\n if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {\n var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user,\n // so give them whatever is available below rather than the minHeight.\n\n if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {\n _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;\n }\n\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollUp, scrollDuration);\n }\n\n return {\n placement: 'top',\n maxHeight: _constrainedHeight2\n };\n } // 4. not enough space, the browser WILL NOT increase scrollable area when\n // absolutely positioned element rendered above the viewport (only below).\n // Flip the menu, render below\n\n\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n\n default:\n throw new Error(\"Invalid placement provided \\\"\".concat(placement, \"\\\".\"));\n } // fulfil contract with flow: implicit return value of undefined\n\n\n return defaultState;\n} // Menu Component\n// ------------------------------\n\nfunction alignToControl(placement) {\n var placementToCSSProp = {\n bottom: 'top',\n top: 'bottom'\n };\n return placement ? placementToCSSProp[placement] : 'bottom';\n}\n\nvar coercePlacement = function coercePlacement(p) {\n return p === 'auto' ? 'bottom' : p;\n};\n\nvar menuCSS = function menuCSS(_ref2) {\n var _ref3;\n\n var placement = _ref2.placement,\n _ref2$theme = _ref2.theme,\n borderRadius = _ref2$theme.borderRadius,\n spacing = _ref2$theme.spacing,\n colors = _ref2$theme.colors;\n return _ref3 = {\n label: 'menu'\n }, _defineProperty(_ref3, alignToControl(placement), '100%'), _defineProperty(_ref3, \"backgroundColor\", colors.neutral0), _defineProperty(_ref3, \"borderRadius\", borderRadius), _defineProperty(_ref3, \"boxShadow\", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), _defineProperty(_ref3, \"marginBottom\", spacing.menuGutter), _defineProperty(_ref3, \"marginTop\", spacing.menuGutter), _defineProperty(_ref3, \"position\", 'absolute'), _defineProperty(_ref3, \"width\", '100%'), _defineProperty(_ref3, \"zIndex\", 1), _ref3;\n}; // NOTE: internal only\n\nvar MenuPlacer =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(MenuPlacer, _Component);\n\n function MenuPlacer() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, MenuPlacer);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MenuPlacer)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n maxHeight: _this.props.maxMenuHeight,\n placement: null\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getPlacement\", function (ref) {\n var _this$props = _this.props,\n minMenuHeight = _this$props.minMenuHeight,\n maxMenuHeight = _this$props.maxMenuHeight,\n menuPlacement = _this$props.menuPlacement,\n menuPosition = _this$props.menuPosition,\n menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView,\n theme = _this$props.theme;\n var getPortalPlacement = _this.context.getPortalPlacement;\n if (!ref) return; // DO NOT scroll if position is fixed\n\n var isFixedPosition = menuPosition === 'fixed';\n var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;\n var state = getMenuPlacement({\n maxHeight: maxMenuHeight,\n menuEl: ref,\n minHeight: minMenuHeight,\n placement: menuPlacement,\n shouldScroll: shouldScroll,\n isFixedPosition: isFixedPosition,\n theme: theme\n });\n if (getPortalPlacement) getPortalPlacement(state);\n\n _this.setState(state);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getUpdatedProps\", function () {\n var menuPlacement = _this.props.menuPlacement;\n var placement = _this.state.placement || coercePlacement(menuPlacement);\n return _objectSpread({}, _this.props, {\n placement: placement,\n maxHeight: _this.state.maxHeight\n });\n });\n\n return _this;\n }\n\n _createClass(MenuPlacer, [{\n key: \"render\",\n value: function render() {\n var children = this.props.children;\n return children({\n ref: this.getPlacement,\n placerProps: this.getUpdatedProps()\n });\n }\n }]);\n\n return MenuPlacer;\n}(Component);\n\n_defineProperty(MenuPlacer, \"contextTypes\", {\n getPortalPlacement: PropTypes.func\n});\n\nvar Menu = function Menu(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerRef = props.innerRef,\n innerProps = props.innerProps;\n var cn = cx(\n /*#__PURE__*/\n css(getStyles('menu', props)), {\n menu: true\n }, className);\n return React.createElement(\"div\", _extends({\n className: cn\n }, innerProps, {\n ref: innerRef\n }), children);\n};\n// Menu List\n// ==============================\n\nvar menuListCSS = function menuListCSS(_ref4) {\n var maxHeight = _ref4.maxHeight,\n baseUnit = _ref4.theme.spacing.baseUnit;\n return {\n maxHeight: maxHeight,\n overflowY: 'auto',\n paddingBottom: baseUnit,\n paddingTop: baseUnit,\n position: 'relative',\n // required for offset[Height, Top] > keyboard scroll\n WebkitOverflowScrolling: 'touch'\n };\n};\nvar MenuList = function MenuList(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n isMulti = props.isMulti,\n innerRef = props.innerRef;\n return React.createElement(\"div\", {\n className: cx(\n /*#__PURE__*/\n css(getStyles('menuList', props)), {\n 'menu-list': true,\n 'menu-list--is-multi': isMulti\n }, className),\n ref: innerRef\n }, children);\n}; // ==============================\n// Menu Notices\n// ==============================\n\nvar noticeCSS = function noticeCSS(_ref5) {\n var _ref5$theme = _ref5.theme,\n baseUnit = _ref5$theme.spacing.baseUnit,\n colors = _ref5$theme.colors;\n return {\n color: colors.neutral40,\n padding: \"\".concat(baseUnit * 2, \"px \").concat(baseUnit * 3, \"px\"),\n textAlign: 'center'\n };\n};\n\nvar noOptionsMessageCSS = noticeCSS;\nvar loadingMessageCSS = noticeCSS;\nvar NoOptionsMessage = function NoOptionsMessage(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('noOptionsMessage', props)), {\n 'menu-notice': true,\n 'menu-notice--no-options': true\n }, className)\n }, innerProps), children);\n};\nNoOptionsMessage.defaultProps = {\n children: 'No options'\n};\nvar LoadingMessage = function LoadingMessage(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('loadingMessage', props)), {\n 'menu-notice': true,\n 'menu-notice--loading': true\n }, className)\n }, innerProps), children);\n};\nLoadingMessage.defaultProps = {\n children: 'Loading...'\n}; // ==============================\n// Menu Portal\n// ==============================\n\nvar menuPortalCSS = function menuPortalCSS(_ref6) {\n var rect = _ref6.rect,\n offset = _ref6.offset,\n position = _ref6.position;\n return {\n left: rect.left,\n position: position,\n top: offset,\n width: rect.width,\n zIndex: 1\n };\n};\nvar MenuPortal =\n/*#__PURE__*/\nfunction (_Component2) {\n _inherits(MenuPortal, _Component2);\n\n function MenuPortal() {\n var _getPrototypeOf3;\n\n var _this2;\n\n _classCallCheck(this, MenuPortal);\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _this2 = _possibleConstructorReturn(this, (_getPrototypeOf3 = _getPrototypeOf(MenuPortal)).call.apply(_getPrototypeOf3, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this2)), \"state\", {\n placement: null\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this2)), \"getPortalPlacement\", function (_ref7) {\n var placement = _ref7.placement;\n var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed\n\n if (placement !== initialPlacement) {\n _this2.setState({\n placement: placement\n });\n }\n });\n\n return _this2;\n }\n\n _createClass(MenuPortal, [{\n key: \"getChildContext\",\n value: function getChildContext() {\n return {\n getPortalPlacement: this.getPortalPlacement\n };\n } // callback for occassions where the menu must \"flip\"\n\n }, {\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n appendTo = _this$props2.appendTo,\n children = _this$props2.children,\n controlElement = _this$props2.controlElement,\n menuPlacement = _this$props2.menuPlacement,\n position = _this$props2.menuPosition,\n getStyles = _this$props2.getStyles;\n var isFixed = position === 'fixed'; // bail early if required elements aren't present\n\n if (!appendTo && !isFixed || !controlElement) {\n return null;\n }\n\n var placement = this.state.placement || coercePlacement(menuPlacement);\n var rect = getBoundingClientObj(controlElement);\n var scrollDistance = isFixed ? 0 : window.pageYOffset;\n var offset = rect[placement] + scrollDistance;\n var state = {\n offset: offset,\n position: position,\n rect: rect\n }; // same wrapper element whether fixed or portalled\n\n var menuWrapper = React.createElement(\"div\", {\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css(getStyles('menuPortal', state))\n }, children);\n return appendTo ? createPortal(menuWrapper, appendTo) : menuWrapper;\n }\n }]);\n\n return MenuPortal;\n}(Component);\n\n_defineProperty(MenuPortal, \"childContextTypes\", {\n getPortalPlacement: PropTypes.func\n});\n\nvar isArray = Array.isArray;\nvar keyList = Object.keys;\nvar hasProp = Object.prototype.hasOwnProperty;\n\nfunction equal(a, b) {\n // fast-deep-equal index.js 2.0.1\n if (a === b) return true;\n\n if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {\n var arrA = isArray(a),\n arrB = isArray(b),\n i,\n length,\n key;\n\n if (arrA && arrB) {\n length = a.length;\n if (length != b.length) return false;\n\n for (i = length; i-- !== 0;) {\n if (!equal(a[i], b[i])) return false;\n }\n\n return true;\n }\n\n if (arrA != arrB) return false;\n var dateA = a instanceof Date,\n dateB = b instanceof Date;\n if (dateA != dateB) return false;\n if (dateA && dateB) return a.getTime() == b.getTime();\n var regexpA = a instanceof RegExp,\n regexpB = b instanceof RegExp;\n if (regexpA != regexpB) return false;\n if (regexpA && regexpB) return a.toString() == b.toString();\n var keys = keyList(a);\n length = keys.length;\n\n if (length !== keyList(b).length) {\n return false;\n }\n\n for (i = length; i-- !== 0;) {\n if (!hasProp.call(b, keys[i])) return false;\n } // end fast-deep-equal\n // Custom handling for React\n\n\n for (i = length; i-- !== 0;) {\n key = keys[i];\n\n if (key === '_owner' && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner.\n // _owner contains circular references\n // and is not needed when comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of a react element\n continue;\n } else {\n // all other properties should be traversed as usual\n if (!equal(a[key], b[key])) return false;\n }\n } // fast-deep-equal index.js 2.0.1\n\n\n return true;\n }\n\n return a !== a && b !== b;\n} // end fast-deep-equal\n\n\nfunction exportedEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if (error.message && error.message.match(/stack|recursion/i)) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);\n return false;\n } // some other error. we should definitely know about these\n\n\n throw error;\n }\n}\n\nvar diacritics = [{\n base: 'A',\n letters: /[\\u0041\\u24B6\\uFF21\\u00C0\\u00C1\\u00C2\\u1EA6\\u1EA4\\u1EAA\\u1EA8\\u00C3\\u0100\\u0102\\u1EB0\\u1EAE\\u1EB4\\u1EB2\\u0226\\u01E0\\u00C4\\u01DE\\u1EA2\\u00C5\\u01FA\\u01CD\\u0200\\u0202\\u1EA0\\u1EAC\\u1EB6\\u1E00\\u0104\\u023A\\u2C6F]/g\n}, {\n base: 'AA',\n letters: /[\\uA732]/g\n}, {\n base: 'AE',\n letters: /[\\u00C6\\u01FC\\u01E2]/g\n}, {\n base: 'AO',\n letters: /[\\uA734]/g\n}, {\n base: 'AU',\n letters: /[\\uA736]/g\n}, {\n base: 'AV',\n letters: /[\\uA738\\uA73A]/g\n}, {\n base: 'AY',\n letters: /[\\uA73C]/g\n}, {\n base: 'B',\n letters: /[\\u0042\\u24B7\\uFF22\\u1E02\\u1E04\\u1E06\\u0243\\u0182\\u0181]/g\n}, {\n base: 'C',\n letters: /[\\u0043\\u24B8\\uFF23\\u0106\\u0108\\u010A\\u010C\\u00C7\\u1E08\\u0187\\u023B\\uA73E]/g\n}, {\n base: 'D',\n letters: /[\\u0044\\u24B9\\uFF24\\u1E0A\\u010E\\u1E0C\\u1E10\\u1E12\\u1E0E\\u0110\\u018B\\u018A\\u0189\\uA779]/g\n}, {\n base: 'DZ',\n letters: /[\\u01F1\\u01C4]/g\n}, {\n base: 'Dz',\n letters: /[\\u01F2\\u01C5]/g\n}, {\n base: 'E',\n letters: /[\\u0045\\u24BA\\uFF25\\u00C8\\u00C9\\u00CA\\u1EC0\\u1EBE\\u1EC4\\u1EC2\\u1EBC\\u0112\\u1E14\\u1E16\\u0114\\u0116\\u00CB\\u1EBA\\u011A\\u0204\\u0206\\u1EB8\\u1EC6\\u0228\\u1E1C\\u0118\\u1E18\\u1E1A\\u0190\\u018E]/g\n}, {\n base: 'F',\n letters: /[\\u0046\\u24BB\\uFF26\\u1E1E\\u0191\\uA77B]/g\n}, {\n base: 'G',\n letters: /[\\u0047\\u24BC\\uFF27\\u01F4\\u011C\\u1E20\\u011E\\u0120\\u01E6\\u0122\\u01E4\\u0193\\uA7A0\\uA77D\\uA77E]/g\n}, {\n base: 'H',\n letters: /[\\u0048\\u24BD\\uFF28\\u0124\\u1E22\\u1E26\\u021E\\u1E24\\u1E28\\u1E2A\\u0126\\u2C67\\u2C75\\uA78D]/g\n}, {\n base: 'I',\n letters: /[\\u0049\\u24BE\\uFF29\\u00CC\\u00CD\\u00CE\\u0128\\u012A\\u012C\\u0130\\u00CF\\u1E2E\\u1EC8\\u01CF\\u0208\\u020A\\u1ECA\\u012E\\u1E2C\\u0197]/g\n}, {\n base: 'J',\n letters: /[\\u004A\\u24BF\\uFF2A\\u0134\\u0248]/g\n}, {\n base: 'K',\n letters: /[\\u004B\\u24C0\\uFF2B\\u1E30\\u01E8\\u1E32\\u0136\\u1E34\\u0198\\u2C69\\uA740\\uA742\\uA744\\uA7A2]/g\n}, {\n base: 'L',\n letters: /[\\u004C\\u24C1\\uFF2C\\u013F\\u0139\\u013D\\u1E36\\u1E38\\u013B\\u1E3C\\u1E3A\\u0141\\u023D\\u2C62\\u2C60\\uA748\\uA746\\uA780]/g\n}, {\n base: 'LJ',\n letters: /[\\u01C7]/g\n}, {\n base: 'Lj',\n letters: /[\\u01C8]/g\n}, {\n base: 'M',\n letters: /[\\u004D\\u24C2\\uFF2D\\u1E3E\\u1E40\\u1E42\\u2C6E\\u019C]/g\n}, {\n base: 'N',\n letters: /[\\u004E\\u24C3\\uFF2E\\u01F8\\u0143\\u00D1\\u1E44\\u0147\\u1E46\\u0145\\u1E4A\\u1E48\\u0220\\u019D\\uA790\\uA7A4]/g\n}, {\n base: 'NJ',\n letters: /[\\u01CA]/g\n}, {\n base: 'Nj',\n letters: /[\\u01CB]/g\n}, {\n base: 'O',\n letters: /[\\u004F\\u24C4\\uFF2F\\u00D2\\u00D3\\u00D4\\u1ED2\\u1ED0\\u1ED6\\u1ED4\\u00D5\\u1E4C\\u022C\\u1E4E\\u014C\\u1E50\\u1E52\\u014E\\u022E\\u0230\\u00D6\\u022A\\u1ECE\\u0150\\u01D1\\u020C\\u020E\\u01A0\\u1EDC\\u1EDA\\u1EE0\\u1EDE\\u1EE2\\u1ECC\\u1ED8\\u01EA\\u01EC\\u00D8\\u01FE\\u0186\\u019F\\uA74A\\uA74C]/g\n}, {\n base: 'OI',\n letters: /[\\u01A2]/g\n}, {\n base: 'OO',\n letters: /[\\uA74E]/g\n}, {\n base: 'OU',\n letters: /[\\u0222]/g\n}, {\n base: 'P',\n letters: /[\\u0050\\u24C5\\uFF30\\u1E54\\u1E56\\u01A4\\u2C63\\uA750\\uA752\\uA754]/g\n}, {\n base: 'Q',\n letters: /[\\u0051\\u24C6\\uFF31\\uA756\\uA758\\u024A]/g\n}, {\n base: 'R',\n letters: /[\\u0052\\u24C7\\uFF32\\u0154\\u1E58\\u0158\\u0210\\u0212\\u1E5A\\u1E5C\\u0156\\u1E5E\\u024C\\u2C64\\uA75A\\uA7A6\\uA782]/g\n}, {\n base: 'S',\n letters: /[\\u0053\\u24C8\\uFF33\\u1E9E\\u015A\\u1E64\\u015C\\u1E60\\u0160\\u1E66\\u1E62\\u1E68\\u0218\\u015E\\u2C7E\\uA7A8\\uA784]/g\n}, {\n base: 'T',\n letters: /[\\u0054\\u24C9\\uFF34\\u1E6A\\u0164\\u1E6C\\u021A\\u0162\\u1E70\\u1E6E\\u0166\\u01AC\\u01AE\\u023E\\uA786]/g\n}, {\n base: 'TZ',\n letters: /[\\uA728]/g\n}, {\n base: 'U',\n letters: /[\\u0055\\u24CA\\uFF35\\u00D9\\u00DA\\u00DB\\u0168\\u1E78\\u016A\\u1E7A\\u016C\\u00DC\\u01DB\\u01D7\\u01D5\\u01D9\\u1EE6\\u016E\\u0170\\u01D3\\u0214\\u0216\\u01AF\\u1EEA\\u1EE8\\u1EEE\\u1EEC\\u1EF0\\u1EE4\\u1E72\\u0172\\u1E76\\u1E74\\u0244]/g\n}, {\n base: 'V',\n letters: /[\\u0056\\u24CB\\uFF36\\u1E7C\\u1E7E\\u01B2\\uA75E\\u0245]/g\n}, {\n base: 'VY',\n letters: /[\\uA760]/g\n}, {\n base: 'W',\n letters: /[\\u0057\\u24CC\\uFF37\\u1E80\\u1E82\\u0174\\u1E86\\u1E84\\u1E88\\u2C72]/g\n}, {\n base: 'X',\n letters: /[\\u0058\\u24CD\\uFF38\\u1E8A\\u1E8C]/g\n}, {\n base: 'Y',\n letters: /[\\u0059\\u24CE\\uFF39\\u1EF2\\u00DD\\u0176\\u1EF8\\u0232\\u1E8E\\u0178\\u1EF6\\u1EF4\\u01B3\\u024E\\u1EFE]/g\n}, {\n base: 'Z',\n letters: /[\\u005A\\u24CF\\uFF3A\\u0179\\u1E90\\u017B\\u017D\\u1E92\\u1E94\\u01B5\\u0224\\u2C7F\\u2C6B\\uA762]/g\n}, {\n base: 'a',\n letters: /[\\u0061\\u24D0\\uFF41\\u1E9A\\u00E0\\u00E1\\u00E2\\u1EA7\\u1EA5\\u1EAB\\u1EA9\\u00E3\\u0101\\u0103\\u1EB1\\u1EAF\\u1EB5\\u1EB3\\u0227\\u01E1\\u00E4\\u01DF\\u1EA3\\u00E5\\u01FB\\u01CE\\u0201\\u0203\\u1EA1\\u1EAD\\u1EB7\\u1E01\\u0105\\u2C65\\u0250]/g\n}, {\n base: 'aa',\n letters: /[\\uA733]/g\n}, {\n base: 'ae',\n letters: /[\\u00E6\\u01FD\\u01E3]/g\n}, {\n base: 'ao',\n letters: /[\\uA735]/g\n}, {\n base: 'au',\n letters: /[\\uA737]/g\n}, {\n base: 'av',\n letters: /[\\uA739\\uA73B]/g\n}, {\n base: 'ay',\n letters: /[\\uA73D]/g\n}, {\n base: 'b',\n letters: /[\\u0062\\u24D1\\uFF42\\u1E03\\u1E05\\u1E07\\u0180\\u0183\\u0253]/g\n}, {\n base: 'c',\n letters: /[\\u0063\\u24D2\\uFF43\\u0107\\u0109\\u010B\\u010D\\u00E7\\u1E09\\u0188\\u023C\\uA73F\\u2184]/g\n}, {\n base: 'd',\n letters: /[\\u0064\\u24D3\\uFF44\\u1E0B\\u010F\\u1E0D\\u1E11\\u1E13\\u1E0F\\u0111\\u018C\\u0256\\u0257\\uA77A]/g\n}, {\n base: 'dz',\n letters: /[\\u01F3\\u01C6]/g\n}, {\n base: 'e',\n letters: /[\\u0065\\u24D4\\uFF45\\u00E8\\u00E9\\u00EA\\u1EC1\\u1EBF\\u1EC5\\u1EC3\\u1EBD\\u0113\\u1E15\\u1E17\\u0115\\u0117\\u00EB\\u1EBB\\u011B\\u0205\\u0207\\u1EB9\\u1EC7\\u0229\\u1E1D\\u0119\\u1E19\\u1E1B\\u0247\\u025B\\u01DD]/g\n}, {\n base: 'f',\n letters: /[\\u0066\\u24D5\\uFF46\\u1E1F\\u0192\\uA77C]/g\n}, {\n base: 'g',\n letters: /[\\u0067\\u24D6\\uFF47\\u01F5\\u011D\\u1E21\\u011F\\u0121\\u01E7\\u0123\\u01E5\\u0260\\uA7A1\\u1D79\\uA77F]/g\n}, {\n base: 'h',\n letters: /[\\u0068\\u24D7\\uFF48\\u0125\\u1E23\\u1E27\\u021F\\u1E25\\u1E29\\u1E2B\\u1E96\\u0127\\u2C68\\u2C76\\u0265]/g\n}, {\n base: 'hv',\n letters: /[\\u0195]/g\n}, {\n base: 'i',\n letters: /[\\u0069\\u24D8\\uFF49\\u00EC\\u00ED\\u00EE\\u0129\\u012B\\u012D\\u00EF\\u1E2F\\u1EC9\\u01D0\\u0209\\u020B\\u1ECB\\u012F\\u1E2D\\u0268\\u0131]/g\n}, {\n base: 'j',\n letters: /[\\u006A\\u24D9\\uFF4A\\u0135\\u01F0\\u0249]/g\n}, {\n base: 'k',\n letters: /[\\u006B\\u24DA\\uFF4B\\u1E31\\u01E9\\u1E33\\u0137\\u1E35\\u0199\\u2C6A\\uA741\\uA743\\uA745\\uA7A3]/g\n}, {\n base: 'l',\n letters: /[\\u006C\\u24DB\\uFF4C\\u0140\\u013A\\u013E\\u1E37\\u1E39\\u013C\\u1E3D\\u1E3B\\u017F\\u0142\\u019A\\u026B\\u2C61\\uA749\\uA781\\uA747]/g\n}, {\n base: 'lj',\n letters: /[\\u01C9]/g\n}, {\n base: 'm',\n letters: /[\\u006D\\u24DC\\uFF4D\\u1E3F\\u1E41\\u1E43\\u0271\\u026F]/g\n}, {\n base: 'n',\n letters: /[\\u006E\\u24DD\\uFF4E\\u01F9\\u0144\\u00F1\\u1E45\\u0148\\u1E47\\u0146\\u1E4B\\u1E49\\u019E\\u0272\\u0149\\uA791\\uA7A5]/g\n}, {\n base: 'nj',\n letters: /[\\u01CC]/g\n}, {\n base: 'o',\n letters: /[\\u006F\\u24DE\\uFF4F\\u00F2\\u00F3\\u00F4\\u1ED3\\u1ED1\\u1ED7\\u1ED5\\u00F5\\u1E4D\\u022D\\u1E4F\\u014D\\u1E51\\u1E53\\u014F\\u022F\\u0231\\u00F6\\u022B\\u1ECF\\u0151\\u01D2\\u020D\\u020F\\u01A1\\u1EDD\\u1EDB\\u1EE1\\u1EDF\\u1EE3\\u1ECD\\u1ED9\\u01EB\\u01ED\\u00F8\\u01FF\\u0254\\uA74B\\uA74D\\u0275]/g\n}, {\n base: 'oi',\n letters: /[\\u01A3]/g\n}, {\n base: 'ou',\n letters: /[\\u0223]/g\n}, {\n base: 'oo',\n letters: /[\\uA74F]/g\n}, {\n base: 'p',\n letters: /[\\u0070\\u24DF\\uFF50\\u1E55\\u1E57\\u01A5\\u1D7D\\uA751\\uA753\\uA755]/g\n}, {\n base: 'q',\n letters: /[\\u0071\\u24E0\\uFF51\\u024B\\uA757\\uA759]/g\n}, {\n base: 'r',\n letters: /[\\u0072\\u24E1\\uFF52\\u0155\\u1E59\\u0159\\u0211\\u0213\\u1E5B\\u1E5D\\u0157\\u1E5F\\u024D\\u027D\\uA75B\\uA7A7\\uA783]/g\n}, {\n base: 's',\n letters: /[\\u0073\\u24E2\\uFF53\\u00DF\\u015B\\u1E65\\u015D\\u1E61\\u0161\\u1E67\\u1E63\\u1E69\\u0219\\u015F\\u023F\\uA7A9\\uA785\\u1E9B]/g\n}, {\n base: 't',\n letters: /[\\u0074\\u24E3\\uFF54\\u1E6B\\u1E97\\u0165\\u1E6D\\u021B\\u0163\\u1E71\\u1E6F\\u0167\\u01AD\\u0288\\u2C66\\uA787]/g\n}, {\n base: 'tz',\n letters: /[\\uA729]/g\n}, {\n base: 'u',\n letters: /[\\u0075\\u24E4\\uFF55\\u00F9\\u00FA\\u00FB\\u0169\\u1E79\\u016B\\u1E7B\\u016D\\u00FC\\u01DC\\u01D8\\u01D6\\u01DA\\u1EE7\\u016F\\u0171\\u01D4\\u0215\\u0217\\u01B0\\u1EEB\\u1EE9\\u1EEF\\u1EED\\u1EF1\\u1EE5\\u1E73\\u0173\\u1E77\\u1E75\\u0289]/g\n}, {\n base: 'v',\n letters: /[\\u0076\\u24E5\\uFF56\\u1E7D\\u1E7F\\u028B\\uA75F\\u028C]/g\n}, {\n base: 'vy',\n letters: /[\\uA761]/g\n}, {\n base: 'w',\n letters: /[\\u0077\\u24E6\\uFF57\\u1E81\\u1E83\\u0175\\u1E87\\u1E85\\u1E98\\u1E89\\u2C73]/g\n}, {\n base: 'x',\n letters: /[\\u0078\\u24E7\\uFF58\\u1E8B\\u1E8D]/g\n}, {\n base: 'y',\n letters: /[\\u0079\\u24E8\\uFF59\\u1EF3\\u00FD\\u0177\\u1EF9\\u0233\\u1E8F\\u00FF\\u1EF7\\u1E99\\u1EF5\\u01B4\\u024F\\u1EFF]/g\n}, {\n base: 'z',\n letters: /[\\u007A\\u24E9\\uFF5A\\u017A\\u1E91\\u017C\\u017E\\u1E93\\u1E95\\u01B6\\u0225\\u0240\\u2C6C\\uA763]/g\n}];\nvar stripDiacritics = function stripDiacritics(str) {\n for (var i = 0; i < diacritics.length; i++) {\n str = str.replace(diacritics[i].letters, diacritics[i].base);\n }\n\n return str;\n};\n\nvar trimString = function trimString(str) {\n return str.replace(/^\\s+|\\s+$/g, '');\n};\n\nvar defaultStringify = function defaultStringify(option) {\n return \"\".concat(option.label, \" \").concat(option.value);\n};\n\nvar createFilter = function createFilter(config) {\n return function (option, rawInput) {\n var _ignoreCase$ignoreAcc = _objectSpread({\n ignoreCase: true,\n ignoreAccents: true,\n stringify: defaultStringify,\n trim: true,\n matchFrom: 'any'\n }, config),\n ignoreCase = _ignoreCase$ignoreAcc.ignoreCase,\n ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents,\n stringify = _ignoreCase$ignoreAcc.stringify,\n trim = _ignoreCase$ignoreAcc.trim,\n matchFrom = _ignoreCase$ignoreAcc.matchFrom;\n\n var input = trim ? trimString(rawInput) : rawInput;\n var candidate = trim ? trimString(stringify(option)) : stringify(option);\n\n if (ignoreCase) {\n input = input.toLowerCase();\n candidate = candidate.toLowerCase();\n }\n\n if (ignoreAccents) {\n input = stripDiacritics(input);\n candidate = stripDiacritics(candidate);\n }\n\n return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1;\n };\n};\n\nvar A11yText = function A11yText(props) {\n return React.createElement(\"span\", _extends({\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css({\n label: 'a11yText',\n zIndex: 9999,\n border: 0,\n clip: 'rect(1px, 1px, 1px, 1px)',\n height: 1,\n width: 1,\n position: 'absolute',\n overflow: 'hidden',\n padding: 0,\n whiteSpace: 'nowrap',\n backgroundColor: 'red',\n color: 'blue'\n })\n }, props));\n};\n\nvar DummyInput =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(DummyInput, _Component);\n\n function DummyInput() {\n _classCallCheck(this, DummyInput);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(DummyInput).apply(this, arguments));\n }\n\n _createClass(DummyInput, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n inProp = _this$props.in,\n out = _this$props.out,\n onExited = _this$props.onExited,\n appear = _this$props.appear,\n enter = _this$props.enter,\n exit = _this$props.exit,\n innerRef = _this$props.innerRef,\n emotion = _this$props.emotion,\n props = _objectWithoutProperties(_this$props, [\"in\", \"out\", \"onExited\", \"appear\", \"enter\", \"exit\", \"innerRef\", \"emotion\"]);\n\n return React.createElement(\"input\", _extends({\n ref: innerRef\n }, props, {\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css({\n label: 'dummyInput',\n // get rid of any default styles\n background: 0,\n border: 0,\n fontSize: 'inherit',\n outline: 0,\n padding: 0,\n // important! without `width` browsers won't allow focus\n width: 1,\n // remove cursor on desktop\n color: 'transparent',\n // remove cursor on mobile whilst maintaining \"scroll into view\" behaviour\n left: -100,\n opacity: 0,\n position: 'relative',\n transform: 'scale(0)'\n })\n }));\n }\n }]);\n\n return DummyInput;\n}(Component);\n\nvar NodeResolver =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(NodeResolver, _Component);\n\n function NodeResolver() {\n _classCallCheck(this, NodeResolver);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(NodeResolver).apply(this, arguments));\n }\n\n _createClass(NodeResolver, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.props.innerRef(findDOMNode(this));\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.props.innerRef(null);\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.props.children;\n }\n }]);\n\n return NodeResolver;\n}(Component);\n\nvar STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'];\nvar LOCK_STYLES = {\n boxSizing: 'border-box',\n // account for possible declaration `width: 100%;` on body\n overflow: 'hidden',\n position: 'relative',\n height: '100%'\n};\n\nfunction preventTouchMove(e) {\n e.preventDefault();\n}\nfunction allowTouchMove(e) {\n e.stopPropagation();\n}\nfunction preventInertiaScroll() {\n var top = this.scrollTop;\n var totalScroll = this.scrollHeight;\n var currentScroll = top + this.offsetHeight;\n\n if (top === 0) {\n this.scrollTop = 1;\n } else if (currentScroll === totalScroll) {\n this.scrollTop = top - 1;\n }\n} // `ontouchstart` check works on most browsers\n// `maxTouchPoints` works on IE10/11 and Surface\n\nfunction isTouchDevice() {\n return 'ontouchstart' in window || navigator.maxTouchPoints;\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nvar activeScrollLocks = 0;\n\nvar ScrollLock =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(ScrollLock, _Component);\n\n function ScrollLock() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, ScrollLock);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollLock)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"originalStyles\", {});\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"listenerOptions\", {\n capture: false,\n passive: false\n });\n\n return _this;\n }\n\n _createClass(ScrollLock, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n if (!canUseDOM) return;\n var _this$props = this.props,\n accountForScrollbars = _this$props.accountForScrollbars,\n touchScrollTarget = _this$props.touchScrollTarget;\n var target = document.body;\n var targetStyle = target && target.style;\n\n if (accountForScrollbars) {\n // store any styles already applied to the body\n STYLE_KEYS.forEach(function (key) {\n var val = targetStyle && targetStyle[key];\n _this2.originalStyles[key] = val;\n });\n } // apply the lock styles and padding if this is the first scroll lock\n\n\n if (accountForScrollbars && activeScrollLocks < 1) {\n var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0;\n var clientWidth = document.body ? document.body.clientWidth : 0;\n var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0;\n Object.keys(LOCK_STYLES).forEach(function (key) {\n var val = LOCK_STYLES[key];\n\n if (targetStyle) {\n targetStyle[key] = val;\n }\n });\n\n if (targetStyle) {\n targetStyle.paddingRight = \"\".concat(adjustedPadding, \"px\");\n }\n } // account for touch devices\n\n\n if (target && isTouchDevice()) {\n // Mobile Safari ignores { overflow: hidden } declaration on the body.\n target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target\n\n if (touchScrollTarget) {\n touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions);\n touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions);\n }\n } // increment active scroll locks\n\n\n activeScrollLocks += 1;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var _this3 = this;\n\n if (!canUseDOM) return;\n var _this$props2 = this.props,\n accountForScrollbars = _this$props2.accountForScrollbars,\n touchScrollTarget = _this$props2.touchScrollTarget;\n var target = document.body;\n var targetStyle = target && target.style; // safely decrement active scroll locks\n\n activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any\n\n if (accountForScrollbars && activeScrollLocks < 1) {\n STYLE_KEYS.forEach(function (key) {\n var val = _this3.originalStyles[key];\n\n if (targetStyle) {\n targetStyle[key] = val;\n }\n });\n } // remove touch listeners\n\n\n if (target && isTouchDevice()) {\n target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions);\n\n if (touchScrollTarget) {\n touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions);\n touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions);\n }\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return null;\n }\n }]);\n\n return ScrollLock;\n}(Component);\n\n_defineProperty(ScrollLock, \"defaultProps\", {\n accountForScrollbars: true\n});\n\n// NOTE:\n// We shouldn't need this after updating to React v16.3.0, which introduces:\n// - createRef() https://reactjs.org/docs/react-api.html#reactcreateref\n// - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref\nvar ScrollBlock =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(ScrollBlock, _PureComponent);\n\n function ScrollBlock() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, ScrollBlock);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollBlock)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n touchScrollTarget: null\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getScrollTarget\", function (ref) {\n if (ref === _this.state.touchScrollTarget) return;\n\n _this.setState({\n touchScrollTarget: ref\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"blurSelectInput\", function () {\n if (document.activeElement) {\n document.activeElement.blur();\n }\n });\n\n return _this;\n }\n\n _createClass(ScrollBlock, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n children = _this$props.children,\n isEnabled = _this$props.isEnabled;\n var touchScrollTarget = this.state.touchScrollTarget; // bail early if not enabled\n\n if (!isEnabled) return children;\n /*\n * Div\n * ------------------------------\n * blocks scrolling on non-body elements behind the menu\n * NodeResolver\n * ------------------------------\n * we need a reference to the scrollable element to \"unlock\" scroll on\n * mobile devices\n * ScrollLock\n * ------------------------------\n * actually does the scroll locking\n */\n\n return React.createElement(\"div\", null, React.createElement(\"div\", {\n onClick: this.blurSelectInput,\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css({\n position: 'fixed',\n left: 0,\n bottom: 0,\n right: 0,\n top: 0\n })\n }), React.createElement(NodeResolver, {\n innerRef: this.getScrollTarget\n }, children), touchScrollTarget ? React.createElement(ScrollLock, {\n touchScrollTarget: touchScrollTarget\n }) : null);\n }\n }]);\n\n return ScrollBlock;\n}(PureComponent);\n\nvar ScrollCaptor =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(ScrollCaptor, _Component);\n\n function ScrollCaptor() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, ScrollCaptor);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollCaptor)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"isBottom\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"isTop\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"scrollTarget\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"touchStart\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"cancelScroll\", function (event) {\n event.preventDefault();\n event.stopPropagation();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleEventDelta\", function (event, delta) {\n var _this$props = _this.props,\n onBottomArrive = _this$props.onBottomArrive,\n onBottomLeave = _this$props.onBottomLeave,\n onTopArrive = _this$props.onTopArrive,\n onTopLeave = _this$props.onTopLeave;\n var _this$scrollTarget = _this.scrollTarget,\n scrollTop = _this$scrollTarget.scrollTop,\n scrollHeight = _this$scrollTarget.scrollHeight,\n clientHeight = _this$scrollTarget.clientHeight;\n var target = _this.scrollTarget;\n var isDeltaPositive = delta > 0;\n var availableScroll = scrollHeight - clientHeight - scrollTop;\n var shouldCancelScroll = false; // reset bottom/top flags\n\n if (availableScroll > delta && _this.isBottom) {\n if (onBottomLeave) onBottomLeave(event);\n _this.isBottom = false;\n }\n\n if (isDeltaPositive && _this.isTop) {\n if (onTopLeave) onTopLeave(event);\n _this.isTop = false;\n } // bottom limit\n\n\n if (isDeltaPositive && delta > availableScroll) {\n if (onBottomArrive && !_this.isBottom) {\n onBottomArrive(event);\n }\n\n target.scrollTop = scrollHeight;\n shouldCancelScroll = true;\n _this.isBottom = true; // top limit\n } else if (!isDeltaPositive && -delta > scrollTop) {\n if (onTopArrive && !_this.isTop) {\n onTopArrive(event);\n }\n\n target.scrollTop = 0;\n shouldCancelScroll = true;\n _this.isTop = true;\n } // cancel scroll\n\n\n if (shouldCancelScroll) {\n _this.cancelScroll(event);\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onWheel\", function (event) {\n _this.handleEventDelta(event, event.deltaY);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTouchStart\", function (event) {\n // set touch start so we can calculate touchmove delta\n _this.touchStart = event.changedTouches[0].clientY;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTouchMove\", function (event) {\n var deltaY = _this.touchStart - event.changedTouches[0].clientY;\n\n _this.handleEventDelta(event, deltaY);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getScrollTarget\", function (ref) {\n _this.scrollTarget = ref;\n });\n\n return _this;\n }\n\n _createClass(ScrollCaptor, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.startListening(this.scrollTarget);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.stopListening(this.scrollTarget);\n }\n }, {\n key: \"startListening\",\n value: function startListening(el) {\n // bail early if no scroll available\n if (!el) return;\n if (el.scrollHeight <= el.clientHeight) return; // all the if statements are to appease Flow 😢\n\n if (typeof el.addEventListener === 'function') {\n el.addEventListener('wheel', this.onWheel, false);\n }\n\n if (typeof el.addEventListener === 'function') {\n el.addEventListener('touchstart', this.onTouchStart, false);\n }\n\n if (typeof el.addEventListener === 'function') {\n el.addEventListener('touchmove', this.onTouchMove, false);\n }\n }\n }, {\n key: \"stopListening\",\n value: function stopListening(el) {\n // bail early if no scroll available\n if (el.scrollHeight <= el.clientHeight) return; // all the if statements are to appease Flow 😢\n\n if (typeof el.removeEventListener === 'function') {\n el.removeEventListener('wheel', this.onWheel, false);\n }\n\n if (typeof el.removeEventListener === 'function') {\n el.removeEventListener('touchstart', this.onTouchStart, false);\n }\n\n if (typeof el.removeEventListener === 'function') {\n el.removeEventListener('touchmove', this.onTouchMove, false);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return React.createElement(NodeResolver, {\n innerRef: this.getScrollTarget\n }, this.props.children);\n }\n }]);\n\n return ScrollCaptor;\n}(Component);\n\nvar ScrollCaptorSwitch =\n/*#__PURE__*/\nfunction (_Component2) {\n _inherits(ScrollCaptorSwitch, _Component2);\n\n function ScrollCaptorSwitch() {\n _classCallCheck(this, ScrollCaptorSwitch);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(ScrollCaptorSwitch).apply(this, arguments));\n }\n\n _createClass(ScrollCaptorSwitch, [{\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n isEnabled = _this$props2.isEnabled,\n props = _objectWithoutProperties(_this$props2, [\"isEnabled\"]);\n\n return isEnabled ? React.createElement(ScrollCaptor, props) : this.props.children;\n }\n }]);\n\n return ScrollCaptorSwitch;\n}(Component);\n\n_defineProperty(ScrollCaptorSwitch, \"defaultProps\", {\n isEnabled: true\n});\n\nvar instructionsAriaMessage = function instructionsAriaMessage(event) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var isSearchable = context.isSearchable,\n isMulti = context.isMulti,\n label = context.label,\n isDisabled = context.isDisabled;\n\n switch (event) {\n case 'menu':\n return \"Use Up and Down to choose options\".concat(isDisabled ? '' : ', press Enter to select the currently focused option', \", press Escape to exit the menu, press Tab to select the option and exit the menu.\");\n\n case 'input':\n return \"\".concat(label ? label : 'Select', \" is focused \").concat(isSearchable ? ',type to refine list' : '', \", press Down to open the menu, \").concat(isMulti ? ' press left to focus selected values' : '');\n\n case 'value':\n return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';\n }\n};\nvar valueEventAriaMessage = function valueEventAriaMessage(event, context) {\n var value = context.value,\n isDisabled = context.isDisabled;\n if (!value) return;\n\n switch (event) {\n case 'deselect-option':\n case 'pop-value':\n case 'remove-value':\n return \"option \".concat(value, \", deselected.\");\n\n case 'select-option':\n return isDisabled ? \"option \".concat(value, \" is disabled. Select another option.\") : \"option \".concat(value, \", selected.\");\n }\n};\nvar valueFocusAriaMessage = function valueFocusAriaMessage(_ref) {\n var focusedValue = _ref.focusedValue,\n getOptionLabel = _ref.getOptionLabel,\n selectValue = _ref.selectValue;\n return \"value \".concat(getOptionLabel(focusedValue), \" focused, \").concat(selectValue.indexOf(focusedValue) + 1, \" of \").concat(selectValue.length, \".\");\n};\nvar optionFocusAriaMessage = function optionFocusAriaMessage(_ref2) {\n var focusedOption = _ref2.focusedOption,\n getOptionLabel = _ref2.getOptionLabel,\n options = _ref2.options;\n return \"option \".concat(getOptionLabel(focusedOption), \" focused\").concat(focusedOption.isDisabled ? ' disabled' : '', \", \").concat(options.indexOf(focusedOption) + 1, \" of \").concat(options.length, \".\");\n};\nvar resultsAriaMessage = function resultsAriaMessage(_ref3) {\n var inputValue = _ref3.inputValue,\n screenReaderMessage = _ref3.screenReaderMessage;\n return \"\".concat(screenReaderMessage).concat(inputValue ? ' for search term ' + inputValue : '', \".\");\n};\n\nvar formatGroupLabel = function formatGroupLabel(group) {\n return group.label;\n};\nvar getOptionLabel = function getOptionLabel(option) {\n return option.label;\n};\nvar getOptionValue = function getOptionValue(option) {\n return option.value;\n};\nvar isOptionDisabled = function isOptionDisabled(option) {\n return !!option.isDisabled;\n};\n\nvar containerCSS = function containerCSS(_ref) {\n var isDisabled = _ref.isDisabled,\n isRtl = _ref.isRtl;\n return {\n label: 'container',\n direction: isRtl ? 'rtl' : null,\n pointerEvents: isDisabled ? 'none' : null,\n // cancel mouse events when disabled\n position: 'relative'\n };\n};\nvar SelectContainer = function SelectContainer(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps,\n isDisabled = props.isDisabled,\n isRtl = props.isRtl;\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('container', props)), {\n '--is-disabled': isDisabled,\n '--is-rtl': isRtl\n }, className)\n }, innerProps), children);\n}; // ==============================\n// Value Container\n// ==============================\n\nvar valueContainerCSS = function valueContainerCSS(_ref2) {\n var spacing = _ref2.theme.spacing;\n return {\n alignItems: 'center',\n display: 'flex',\n flex: 1,\n flexWrap: 'wrap',\n padding: \"\".concat(spacing.baseUnit / 2, \"px \").concat(spacing.baseUnit * 2, \"px\"),\n WebkitOverflowScrolling: 'touch',\n position: 'relative',\n overflow: 'hidden'\n };\n};\nvar ValueContainer =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(ValueContainer, _Component);\n\n function ValueContainer() {\n _classCallCheck(this, ValueContainer);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(ValueContainer).apply(this, arguments));\n }\n\n _createClass(ValueContainer, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n children = _this$props.children,\n className = _this$props.className,\n cx = _this$props.cx,\n isMulti = _this$props.isMulti,\n getStyles = _this$props.getStyles,\n hasValue = _this$props.hasValue;\n return React.createElement(\"div\", {\n className: cx(\n /*#__PURE__*/\n css(getStyles('valueContainer', this.props)), {\n 'value-container': true,\n 'value-container--is-multi': isMulti,\n 'value-container--has-value': hasValue\n }, className)\n }, children);\n }\n }]);\n\n return ValueContainer;\n}(Component); // ==============================\n// Indicator Container\n// ==============================\n\nvar indicatorsContainerCSS = function indicatorsContainerCSS() {\n return {\n alignItems: 'center',\n alignSelf: 'stretch',\n display: 'flex',\n flexShrink: 0\n };\n};\nvar IndicatorsContainer = function IndicatorsContainer(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles;\n return React.createElement(\"div\", {\n className: cx(\n /*#__PURE__*/\n css(getStyles('indicatorsContainer', props)), {\n 'indicators': true\n }, className)\n }, children);\n};\n\n// ==============================\n// Dropdown & Clear Icons\n// ==============================\nvar Svg = function Svg(_ref) {\n var size = _ref.size,\n props = _objectWithoutProperties(_ref, [\"size\"]);\n\n return React.createElement(\"svg\", _extends({\n height: size,\n width: size,\n viewBox: \"0 0 20 20\",\n \"aria-hidden\": \"true\",\n focusable: \"false\",\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css({\n display: 'inline-block',\n fill: 'currentColor',\n lineHeight: 1,\n stroke: 'currentColor',\n strokeWidth: 0\n })\n }, props));\n};\n\nvar CrossIcon = function CrossIcon(props) {\n return React.createElement(Svg, _extends({\n size: 20\n }, props), React.createElement(\"path\", {\n d: \"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z\"\n }));\n};\nvar DownChevron = function DownChevron(props) {\n return React.createElement(Svg, _extends({\n size: 20\n }, props), React.createElement(\"path\", {\n d: \"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z\"\n }));\n}; // ==============================\n// Dropdown & Clear Buttons\n// ==============================\n\nvar baseCSS = function baseCSS(_ref2) {\n var isFocused = _ref2.isFocused,\n _ref2$theme = _ref2.theme,\n baseUnit = _ref2$theme.spacing.baseUnit,\n colors = _ref2$theme.colors;\n return {\n label: 'indicatorContainer',\n color: isFocused ? colors.neutral60 : colors.neutral20,\n display: 'flex',\n padding: baseUnit * 2,\n transition: 'color 150ms',\n ':hover': {\n color: isFocused ? colors.neutral80 : colors.neutral40\n }\n };\n};\n\nvar dropdownIndicatorCSS = baseCSS;\nvar DropdownIndicator = function DropdownIndicator(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({}, innerProps, {\n className: cx(\n /*#__PURE__*/\n css(getStyles('dropdownIndicator', props)), {\n 'indicator': true,\n 'dropdown-indicator': true\n }, className)\n }), children || React.createElement(DownChevron, null));\n};\nvar clearIndicatorCSS = baseCSS;\nvar ClearIndicator = function ClearIndicator(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({}, innerProps, {\n className: cx(\n /*#__PURE__*/\n css(getStyles('clearIndicator', props)), {\n 'indicator': true,\n 'clear-indicator': true\n }, className)\n }), children || React.createElement(CrossIcon, null));\n}; // ==============================\n// Separator\n// ==============================\n\nvar indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref3) {\n var isDisabled = _ref3.isDisabled,\n _ref3$theme = _ref3.theme,\n baseUnit = _ref3$theme.spacing.baseUnit,\n colors = _ref3$theme.colors;\n return {\n label: 'indicatorSeparator',\n alignSelf: 'stretch',\n backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,\n marginBottom: baseUnit * 2,\n marginTop: baseUnit * 2,\n width: 1\n };\n};\nvar IndicatorSeparator = function IndicatorSeparator(props) {\n var className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"span\", _extends({}, innerProps, {\n className: cx(\n /*#__PURE__*/\n css(getStyles('indicatorSeparator', props)), {\n 'indicator-separator': true\n }, className)\n }));\n}; // ==============================\n// Loading\n// ==============================\n\nvar keyframesName = 'react-select-loading-indicator';\nvar keyframesInjected = false;\nvar loadingIndicatorCSS = function loadingIndicatorCSS(_ref4) {\n var isFocused = _ref4.isFocused,\n size = _ref4.size,\n _ref4$theme = _ref4.theme,\n colors = _ref4$theme.colors,\n baseUnit = _ref4$theme.spacing.baseUnit;\n return {\n label: 'loadingIndicator',\n color: isFocused ? colors.neutral60 : colors.neutral20,\n display: 'flex',\n padding: baseUnit * 2,\n transition: 'color 150ms',\n alignSelf: 'center',\n fontSize: size,\n lineHeight: 1,\n marginRight: size,\n textAlign: 'center',\n verticalAlign: 'middle'\n };\n};\n\nvar LoadingDot = function LoadingDot(_ref5) {\n var color = _ref5.color,\n delay = _ref5.delay,\n offset = _ref5.offset;\n return React.createElement(\"span\", {\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css({\n animationDuration: '1s',\n animationDelay: \"\".concat(delay, \"ms\"),\n animationIterationCount: 'infinite',\n animationName: keyframesName,\n animationTimingFunction: 'ease-in-out',\n backgroundColor: color,\n borderRadius: '1em',\n display: 'inline-block',\n marginLeft: offset ? '1em' : null,\n height: '1em',\n verticalAlign: 'top',\n width: '1em'\n })\n });\n};\n\nvar LoadingIndicator = function LoadingIndicator(props) {\n var className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps,\n isFocused = props.isFocused,\n isRtl = props.isRtl,\n colors = props.theme.colors;\n var color = isFocused ? colors.neutral80 : colors.neutral20;\n\n if (!keyframesInjected) {\n // eslint-disable-next-line no-unused-expressions\n injectGlobal(\"@keyframes \", keyframesName, \"{0%,80%,100%{opacity:0;}40%{opacity:1;}};\");\n keyframesInjected = true;\n }\n\n return React.createElement(\"div\", _extends({}, innerProps, {\n className: cx(\n /*#__PURE__*/\n css(getStyles('loadingIndicator', props)), {\n 'indicator': true,\n 'loading-indicator': true\n }, className)\n }), React.createElement(LoadingDot, {\n color: color,\n delay: 0,\n offset: isRtl\n }), React.createElement(LoadingDot, {\n color: color,\n delay: 160,\n offset: true\n }), React.createElement(LoadingDot, {\n color: color,\n delay: 320,\n offset: !isRtl\n }));\n};\nLoadingIndicator.defaultProps = {\n size: 4\n};\n\nvar css$1 = function css$$1(_ref) {\n var isDisabled = _ref.isDisabled,\n isFocused = _ref.isFocused,\n _ref$theme = _ref.theme,\n colors = _ref$theme.colors,\n borderRadius = _ref$theme.borderRadius,\n spacing = _ref$theme.spacing;\n return {\n label: 'control',\n alignItems: 'center',\n backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,\n borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,\n borderRadius: borderRadius,\n borderStyle: 'solid',\n borderWidth: 1,\n boxShadow: isFocused ? \"0 0 0 1px \".concat(colors.primary) : null,\n cursor: 'default',\n display: 'flex',\n flexWrap: 'wrap',\n justifyContent: 'space-between',\n minHeight: spacing.controlHeight,\n outline: '0 !important',\n position: 'relative',\n transition: 'all 100ms',\n '&:hover': {\n borderColor: isFocused ? colors.primary : colors.neutral30\n }\n };\n};\n\nvar Control = function Control(props) {\n var children = props.children,\n cx = props.cx,\n getStyles = props.getStyles,\n className = props.className,\n isDisabled = props.isDisabled,\n isFocused = props.isFocused,\n innerRef = props.innerRef,\n innerProps = props.innerProps,\n menuIsOpen = props.menuIsOpen;\n return React.createElement(\"div\", _extends({\n ref: innerRef,\n className: cx(\n /*#__PURE__*/\n css(getStyles('control', props)), {\n 'control': true,\n 'control--is-disabled': isDisabled,\n 'control--is-focused': isFocused,\n 'control--menu-is-open': menuIsOpen\n }, className)\n }, innerProps), children);\n};\n\nvar groupCSS = function groupCSS(_ref) {\n var spacing = _ref.theme.spacing;\n return {\n paddingBottom: spacing.baseUnit * 2,\n paddingTop: spacing.baseUnit * 2\n };\n};\n\nvar Group = function Group(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n Heading = props.Heading,\n headingProps = props.headingProps,\n label = props.label,\n theme = props.theme,\n selectProps = props.selectProps;\n return React.createElement(\"div\", {\n className: cx(\n /*#__PURE__*/\n css(getStyles('group', props)), {\n 'group': true\n }, className)\n }, React.createElement(Heading, _extends({}, headingProps, {\n selectProps: selectProps,\n theme: theme,\n getStyles: getStyles,\n cx: cx\n }), label), React.createElement(\"div\", null, children));\n};\n\nvar groupHeadingCSS = function groupHeadingCSS(_ref2) {\n var spacing = _ref2.theme.spacing;\n return {\n label: 'group',\n color: '#999',\n cursor: 'default',\n display: 'block',\n fontSize: '75%',\n fontWeight: '500',\n marginBottom: '0.25em',\n paddingLeft: spacing.baseUnit * 3,\n paddingRight: spacing.baseUnit * 3,\n textTransform: 'uppercase'\n };\n};\nvar GroupHeading = function GroupHeading(props) {\n var className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n theme = props.theme,\n selectProps = props.selectProps,\n cleanProps = _objectWithoutProperties(props, [\"className\", \"cx\", \"getStyles\", \"theme\", \"selectProps\"]);\n\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('groupHeading', _objectSpread({\n theme: theme\n }, cleanProps))), {\n 'group-heading': true\n }, className)\n }, cleanProps));\n};\n\nvar inputCSS = function inputCSS(_ref) {\n var isDisabled = _ref.isDisabled,\n _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return {\n margin: spacing.baseUnit / 2,\n paddingBottom: spacing.baseUnit / 2,\n paddingTop: spacing.baseUnit / 2,\n visibility: isDisabled ? 'hidden' : 'visible',\n color: colors.neutral80\n };\n};\n\nvar inputStyle = function inputStyle(isHidden) {\n return {\n label: 'input',\n background: 0,\n border: 0,\n fontSize: 'inherit',\n opacity: isHidden ? 0 : 1,\n outline: 0,\n padding: 0,\n color: 'inherit'\n };\n};\n\nvar Input = function Input(_ref2) {\n var className = _ref2.className,\n cx = _ref2.cx,\n getStyles = _ref2.getStyles,\n innerRef = _ref2.innerRef,\n isHidden = _ref2.isHidden,\n isDisabled = _ref2.isDisabled,\n theme = _ref2.theme,\n selectProps = _ref2.selectProps,\n props = _objectWithoutProperties(_ref2, [\"className\", \"cx\", \"getStyles\", \"innerRef\", \"isHidden\", \"isDisabled\", \"theme\", \"selectProps\"]);\n\n return React.createElement(\"div\", {\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css(getStyles('input', _objectSpread({\n theme: theme\n }, props)))\n }, React.createElement(AutosizeInput, _extends({\n className: cx(null, {\n 'input': true\n }, className),\n inputRef: innerRef,\n inputStyle: inputStyle(isHidden),\n disabled: isDisabled\n }, props)));\n};\n\nvar multiValueCSS = function multiValueCSS(_ref) {\n var _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n borderRadius = _ref$theme.borderRadius,\n colors = _ref$theme.colors;\n return {\n label: 'multiValue',\n backgroundColor: colors.neutral10,\n borderRadius: borderRadius / 2,\n display: 'flex',\n margin: spacing.baseUnit / 2,\n minWidth: 0 // resolves flex/text-overflow bug\n\n };\n};\nvar multiValueLabelCSS = function multiValueLabelCSS(_ref2) {\n var _ref2$theme = _ref2.theme,\n borderRadius = _ref2$theme.borderRadius,\n colors = _ref2$theme.colors,\n cropWithEllipsis = _ref2.cropWithEllipsis;\n return {\n borderRadius: borderRadius / 2,\n color: colors.neutral80,\n fontSize: '85%',\n overflow: 'hidden',\n padding: 3,\n paddingLeft: 6,\n textOverflow: cropWithEllipsis ? 'ellipsis' : null,\n whiteSpace: 'nowrap'\n };\n};\nvar multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) {\n var _ref3$theme = _ref3.theme,\n spacing = _ref3$theme.spacing,\n borderRadius = _ref3$theme.borderRadius,\n colors = _ref3$theme.colors,\n isFocused = _ref3.isFocused;\n return {\n alignItems: 'center',\n borderRadius: borderRadius / 2,\n backgroundColor: isFocused && colors.dangerLight,\n display: 'flex',\n paddingLeft: spacing.baseUnit,\n paddingRight: spacing.baseUnit,\n ':hover': {\n backgroundColor: colors.dangerLight,\n color: colors.danger\n }\n };\n};\nvar MultiValueGeneric = function MultiValueGeneric(_ref4) {\n var children = _ref4.children,\n innerProps = _ref4.innerProps;\n return React.createElement(\"div\", innerProps, children);\n};\nvar MultiValueContainer = MultiValueGeneric;\nvar MultiValueLabel = MultiValueGeneric;\nvar MultiValueRemove =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(MultiValueRemove, _Component);\n\n function MultiValueRemove() {\n _classCallCheck(this, MultiValueRemove);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(MultiValueRemove).apply(this, arguments));\n }\n\n _createClass(MultiValueRemove, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n children = _this$props.children,\n innerProps = _this$props.innerProps;\n return React.createElement(\"div\", innerProps, children || React.createElement(CrossIcon, {\n size: 14\n }));\n }\n }]);\n\n return MultiValueRemove;\n}(Component);\n\nvar MultiValue =\n/*#__PURE__*/\nfunction (_Component2) {\n _inherits(MultiValue, _Component2);\n\n function MultiValue() {\n _classCallCheck(this, MultiValue);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(MultiValue).apply(this, arguments));\n }\n\n _createClass(MultiValue, [{\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n children = _this$props2.children,\n className = _this$props2.className,\n components = _this$props2.components,\n cx = _this$props2.cx,\n data = _this$props2.data,\n getStyles = _this$props2.getStyles,\n innerProps = _this$props2.innerProps,\n isDisabled = _this$props2.isDisabled,\n removeProps = _this$props2.removeProps,\n selectProps = _this$props2.selectProps;\n var Container = components.Container,\n Label = components.Label,\n Remove = components.Remove;\n\n var containerInnerProps = _objectSpread({\n className: cx(\n /*#__PURE__*/\n css(getStyles('multiValue', this.props)), {\n 'multi-value': true,\n 'multi-value--is-disabled': isDisabled\n }, className)\n }, innerProps);\n\n var labelInnerProps = {\n className: cx(\n /*#__PURE__*/\n css(getStyles('multiValueLabel', this.props)), {\n 'multi-value__label': true\n }, className)\n };\n\n var removeInnerProps = _objectSpread({\n className: cx(\n /*#__PURE__*/\n css(getStyles('multiValueRemove', this.props)), {\n 'multi-value__remove': true\n }, className)\n }, removeProps);\n\n return React.createElement(Container, {\n data: data,\n innerProps: containerInnerProps,\n selectProps: selectProps\n }, React.createElement(Label, {\n data: data,\n innerProps: labelInnerProps,\n selectProps: selectProps\n }, children), React.createElement(Remove, {\n data: data,\n innerProps: removeInnerProps,\n selectProps: selectProps\n }));\n }\n }]);\n\n return MultiValue;\n}(Component);\n\n_defineProperty(MultiValue, \"defaultProps\", {\n cropWithEllipsis: true\n});\n\nvar optionCSS = function optionCSS(_ref) {\n var isDisabled = _ref.isDisabled,\n isFocused = _ref.isFocused,\n isSelected = _ref.isSelected,\n _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return {\n label: 'option',\n backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent',\n color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit',\n cursor: 'default',\n display: 'block',\n fontSize: 'inherit',\n padding: \"\".concat(spacing.baseUnit * 2, \"px \").concat(spacing.baseUnit * 3, \"px\"),\n width: '100%',\n userSelect: 'none',\n WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',\n // provide some affordance on touch devices\n ':active': {\n backgroundColor: !isDisabled && (isSelected ? colors.primary : colors.primary50)\n }\n };\n};\n\nvar Option = function Option(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n isDisabled = props.isDisabled,\n isFocused = props.isFocused,\n isSelected = props.isSelected,\n innerRef = props.innerRef,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({\n ref: innerRef,\n className: cx(\n /*#__PURE__*/\n css(getStyles('option', props)), {\n 'option': true,\n 'option--is-disabled': isDisabled,\n 'option--is-focused': isFocused,\n 'option--is-selected': isSelected\n }, className)\n }, innerProps), children);\n};\n\nvar placeholderCSS = function placeholderCSS(_ref) {\n var _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return {\n label: 'placeholder',\n color: colors.neutral50,\n marginLeft: spacing.baseUnit / 2,\n marginRight: spacing.baseUnit / 2,\n position: 'absolute',\n top: '50%',\n transform: 'translateY(-50%)'\n };\n};\n\nvar Placeholder = function Placeholder(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('placeholder', props)), {\n 'placeholder': true\n }, className)\n }, innerProps), children);\n};\n\nvar css$2 = function css$$1(_ref) {\n var isDisabled = _ref.isDisabled,\n _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return {\n label: 'singleValue',\n color: isDisabled ? colors.neutral40 : colors.neutral80,\n marginLeft: spacing.baseUnit / 2,\n marginRight: spacing.baseUnit / 2,\n maxWidth: \"calc(100% - \".concat(spacing.baseUnit * 2, \"px)\"),\n overflow: 'hidden',\n position: 'absolute',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n top: '50%',\n transform: 'translateY(-50%)'\n };\n};\n\nvar SingleValue = function SingleValue(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n isDisabled = props.isDisabled,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('singleValue', props)), {\n 'single-value': true,\n 'single-value--is-disabled': isDisabled\n }, className)\n }, innerProps), children);\n};\n\nvar components = {\n ClearIndicator: ClearIndicator,\n Control: Control,\n DropdownIndicator: DropdownIndicator,\n DownChevron: DownChevron,\n CrossIcon: CrossIcon,\n Group: Group,\n GroupHeading: GroupHeading,\n IndicatorsContainer: IndicatorsContainer,\n IndicatorSeparator: IndicatorSeparator,\n Input: Input,\n LoadingIndicator: LoadingIndicator,\n Menu: Menu,\n MenuList: MenuList,\n MenuPortal: MenuPortal,\n LoadingMessage: LoadingMessage,\n NoOptionsMessage: NoOptionsMessage,\n MultiValue: MultiValue,\n MultiValueContainer: MultiValueContainer,\n MultiValueLabel: MultiValueLabel,\n MultiValueRemove: MultiValueRemove,\n Option: Option,\n Placeholder: Placeholder,\n SelectContainer: SelectContainer,\n SingleValue: SingleValue,\n ValueContainer: ValueContainer\n};\nvar defaultComponents = function defaultComponents(props) {\n return _objectSpread({}, components, props.components);\n};\n\nvar defaultStyles = {\n clearIndicator: clearIndicatorCSS,\n container: containerCSS,\n control: css$1,\n dropdownIndicator: dropdownIndicatorCSS,\n group: groupCSS,\n groupHeading: groupHeadingCSS,\n indicatorsContainer: indicatorsContainerCSS,\n indicatorSeparator: indicatorSeparatorCSS,\n input: inputCSS,\n loadingIndicator: loadingIndicatorCSS,\n loadingMessage: loadingMessageCSS,\n menu: menuCSS,\n menuList: menuListCSS,\n menuPortal: menuPortalCSS,\n multiValue: multiValueCSS,\n multiValueLabel: multiValueLabelCSS,\n multiValueRemove: multiValueRemoveCSS,\n noOptionsMessage: noOptionsMessageCSS,\n option: optionCSS,\n placeholder: placeholderCSS,\n singleValue: css$2,\n valueContainer: valueContainerCSS\n}; // Merge Utility\n// Allows consumers to extend a base Select with additional styles\n\nfunction mergeStyles(source) {\n var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n // initialize with source styles\n var styles = _objectSpread({}, source); // massage in target styles\n\n\n Object.keys(target).forEach(function (key) {\n if (source[key]) {\n styles[key] = function (rsCss, props) {\n return target[key](source[key](rsCss, props), props);\n };\n } else {\n styles[key] = target[key];\n }\n });\n return styles;\n}\n\nvar colors = {\n primary: '#2684FF',\n primary75: '#4C9AFF',\n primary50: '#B2D4FF',\n primary25: '#DEEBFF',\n danger: '#DE350B',\n dangerLight: '#FFBDAD',\n neutral0: 'hsl(0, 0%, 100%)',\n neutral5: 'hsl(0, 0%, 95%)',\n neutral10: 'hsl(0, 0%, 90%)',\n neutral20: 'hsl(0, 0%, 80%)',\n neutral30: 'hsl(0, 0%, 70%)',\n neutral40: 'hsl(0, 0%, 60%)',\n neutral50: 'hsl(0, 0%, 50%)',\n neutral60: 'hsl(0, 0%, 40%)',\n neutral70: 'hsl(0, 0%, 30%)',\n neutral80: 'hsl(0, 0%, 20%)',\n neutral90: 'hsl(0, 0%, 10%)'\n};\nvar borderRadius = 4;\nvar baseUnit = 4;\n/* Used to calculate consistent margin/padding on elements */\n\nvar controlHeight = 38;\n/* The minimum height of the control */\n\nvar menuGutter = baseUnit * 2;\n/* The amount of space between the control and menu */\n\nvar spacing = {\n baseUnit: baseUnit,\n controlHeight: controlHeight,\n menuGutter: menuGutter\n};\nvar defaultTheme = {\n borderRadius: borderRadius,\n colors: colors,\n spacing: spacing\n};\n\nvar defaultProps = {\n backspaceRemovesValue: true,\n blurInputOnSelect: isTouchCapable(),\n captureMenuScroll: !isTouchCapable(),\n closeMenuOnSelect: true,\n closeMenuOnScroll: false,\n components: {},\n controlShouldRenderValue: true,\n escapeClearsValue: false,\n filterOption: createFilter(),\n formatGroupLabel: formatGroupLabel,\n getOptionLabel: getOptionLabel,\n getOptionValue: getOptionValue,\n isDisabled: false,\n isLoading: false,\n isMulti: false,\n isRtl: false,\n isSearchable: true,\n isOptionDisabled: isOptionDisabled,\n loadingMessage: function loadingMessage() {\n return 'Loading...';\n },\n maxMenuHeight: 300,\n minMenuHeight: 140,\n menuIsOpen: false,\n menuPlacement: 'bottom',\n menuPosition: 'absolute',\n menuShouldBlockScroll: false,\n menuShouldScrollIntoView: !isMobileDevice(),\n noOptionsMessage: function noOptionsMessage() {\n return 'No options';\n },\n openMenuOnFocus: false,\n openMenuOnClick: true,\n options: [],\n pageSize: 5,\n placeholder: 'Select...',\n screenReaderStatus: function screenReaderStatus(_ref) {\n var count = _ref.count;\n return \"\".concat(count, \" result\").concat(count !== 1 ? 's' : '', \" available\");\n },\n styles: {},\n tabIndex: '0',\n tabSelectsValue: true\n};\nvar instanceId = 1;\n\nvar Select =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Select, _Component);\n\n // Misc. Instance Properties\n // ------------------------------\n // TODO\n // Refs\n // ------------------------------\n // Lifecycle\n // ------------------------------\n function Select(_props) {\n var _this;\n\n _classCallCheck(this, Select);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Select).call(this, _props));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n ariaLiveSelection: '',\n ariaLiveContext: '',\n focusedOption: null,\n focusedValue: null,\n inputIsHidden: false,\n isFocused: false,\n menuOptions: {\n render: [],\n focusable: []\n },\n selectValue: []\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"blockOptionHover\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"isComposing\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"clearFocusValueOnUpdate\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"commonProps\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"components\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"hasGroups\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"initialTouchX\", 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"initialTouchY\", 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"inputIsHiddenAfterUpdate\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"instancePrefix\", '');\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"openAfterFocus\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"scrollToFocusedOptionOnUpdate\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"userIsDragging\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"controlRef\", null);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getControlRef\", function (ref) {\n _this.controlRef = ref;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"focusedOptionRef\", null);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getFocusedOptionRef\", function (ref) {\n _this.focusedOptionRef = ref;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"menuListRef\", null);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getMenuListRef\", function (ref) {\n _this.menuListRef = ref;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"inputRef\", null);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getInputRef\", function (ref) {\n _this.inputRef = ref;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"cacheComponents\", function (components$$1) {\n _this.components = defaultComponents({\n components: components$$1\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"focus\", _this.focusInput);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"blur\", _this.blurInput);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onChange\", function (newValue, actionMeta) {\n var _this$props = _this.props,\n onChange = _this$props.onChange,\n name = _this$props.name;\n onChange(newValue, _objectSpread({}, actionMeta, {\n name: name\n }));\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"setValue\", function (newValue) {\n var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'set-value';\n var option = arguments.length > 2 ? arguments[2] : undefined;\n var _this$props2 = _this.props,\n closeMenuOnSelect = _this$props2.closeMenuOnSelect,\n isMulti = _this$props2.isMulti;\n\n _this.onInputChange('', {\n action: 'set-value'\n });\n\n if (closeMenuOnSelect) {\n _this.inputIsHiddenAfterUpdate = !isMulti;\n\n _this.onMenuClose();\n } // when the select value should change, we should reset focusedValue\n\n\n _this.clearFocusValueOnUpdate = true;\n\n _this.onChange(newValue, {\n action: action,\n option: option\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"selectOption\", function (newValue) {\n var _this$props3 = _this.props,\n blurInputOnSelect = _this$props3.blurInputOnSelect,\n isMulti = _this$props3.isMulti;\n var selectValue = _this.state.selectValue;\n\n if (isMulti) {\n if (_this.isOptionSelected(newValue, selectValue)) {\n var candidate = _this.getOptionValue(newValue);\n\n _this.setValue(selectValue.filter(function (i) {\n return _this.getOptionValue(i) !== candidate;\n }), 'deselect-option', newValue);\n\n _this.announceAriaLiveSelection({\n event: 'deselect-option',\n context: {\n value: _this.getOptionLabel(newValue)\n }\n });\n } else {\n if (!_this.isOptionDisabled(newValue, selectValue)) {\n _this.setValue([].concat(_toConsumableArray(selectValue), [newValue]), 'select-option', newValue);\n\n _this.announceAriaLiveSelection({\n event: 'select-option',\n context: {\n value: _this.getOptionLabel(newValue)\n }\n });\n } else {\n // announce that option is disabled\n _this.announceAriaLiveSelection({\n event: 'select-option',\n context: {\n value: _this.getOptionLabel(newValue),\n isDisabled: true\n }\n });\n }\n }\n } else {\n if (!_this.isOptionDisabled(newValue, selectValue)) {\n _this.setValue(newValue, 'select-option');\n\n _this.announceAriaLiveSelection({\n event: 'select-option',\n context: {\n value: _this.getOptionLabel(newValue)\n }\n });\n } else {\n // announce that option is disabled\n _this.announceAriaLiveSelection({\n event: 'select-option',\n context: {\n value: _this.getOptionLabel(newValue),\n isDisabled: true\n }\n });\n }\n }\n\n if (blurInputOnSelect) {\n _this.blurInput();\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"removeValue\", function (removedValue) {\n var selectValue = _this.state.selectValue;\n\n var candidate = _this.getOptionValue(removedValue);\n\n _this.onChange(selectValue.filter(function (i) {\n return _this.getOptionValue(i) !== candidate;\n }), {\n action: 'remove-value',\n removedValue: removedValue\n });\n\n _this.announceAriaLiveSelection({\n event: 'remove-value',\n context: {\n value: removedValue ? _this.getOptionLabel(removedValue) : ''\n }\n });\n\n _this.focusInput();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"clearValue\", function () {\n var isMulti = _this.props.isMulti;\n\n _this.onChange(isMulti ? [] : null, {\n action: 'clear'\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"popValue\", function () {\n var selectValue = _this.state.selectValue;\n var lastSelectedValue = selectValue[selectValue.length - 1];\n\n _this.announceAriaLiveSelection({\n event: 'pop-value',\n context: {\n value: lastSelectedValue ? _this.getOptionLabel(lastSelectedValue) : ''\n }\n });\n\n _this.onChange(selectValue.slice(0, selectValue.length - 1), {\n action: 'pop-value',\n removedValue: lastSelectedValue\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getOptionLabel\", function (data) {\n return _this.props.getOptionLabel(data);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getOptionValue\", function (data) {\n return _this.props.getOptionValue(data);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getStyles\", function (key, props) {\n var base = defaultStyles[key](props);\n base.boxSizing = 'border-box';\n var custom = _this.props.styles[key];\n return custom ? custom(base, props) : base;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getElementId\", function (element) {\n return \"\".concat(_this.instancePrefix, \"-\").concat(element);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getActiveDescendentId\", function () {\n var menuIsOpen = _this.props.menuIsOpen;\n var _this$state = _this.state,\n menuOptions = _this$state.menuOptions,\n focusedOption = _this$state.focusedOption;\n if (!focusedOption || !menuIsOpen) return undefined;\n var index = menuOptions.focusable.indexOf(focusedOption);\n var option = menuOptions.render[index];\n return option && option.key;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"announceAriaLiveSelection\", function (_ref2) {\n var event = _ref2.event,\n context = _ref2.context;\n\n _this.setState({\n ariaLiveSelection: valueEventAriaMessage(event, context)\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"announceAriaLiveContext\", function (_ref3) {\n var event = _ref3.event,\n context = _ref3.context;\n\n _this.setState({\n ariaLiveContext: instructionsAriaMessage(event, _objectSpread({}, context, {\n label: _this.props['aria-label']\n }))\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onMenuMouseDown\", function (event) {\n if (event.button !== 0) {\n return;\n }\n\n event.stopPropagation();\n event.preventDefault();\n\n _this.focusInput();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onMenuMouseMove\", function (event) {\n _this.blockOptionHover = false;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onControlMouseDown\", function (event) {\n var openMenuOnClick = _this.props.openMenuOnClick;\n\n if (!_this.state.isFocused) {\n if (openMenuOnClick) {\n _this.openAfterFocus = true;\n }\n\n _this.focusInput();\n } else if (!_this.props.menuIsOpen) {\n if (openMenuOnClick) {\n _this.openMenu('first');\n }\n } else {\n //$FlowFixMe\n if (event.target.tagName !== 'INPUT') {\n _this.onMenuClose();\n }\n } //$FlowFixMe\n\n\n if (event.target.tagName !== 'INPUT') {\n event.preventDefault();\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onDropdownIndicatorMouseDown\", function (event) {\n // ignore mouse events that weren't triggered by the primary button\n if (event && event.type === 'mousedown' && event.button !== 0) {\n return;\n }\n\n if (_this.props.isDisabled) return;\n var _this$props4 = _this.props,\n isMulti = _this$props4.isMulti,\n menuIsOpen = _this$props4.menuIsOpen;\n\n _this.focusInput();\n\n if (menuIsOpen) {\n _this.inputIsHiddenAfterUpdate = !isMulti;\n\n _this.onMenuClose();\n } else {\n _this.openMenu('first');\n }\n\n event.preventDefault();\n event.stopPropagation();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onClearIndicatorMouseDown\", function (event) {\n // ignore mouse events that weren't triggered by the primary button\n if (event && event.type === 'mousedown' && event.button !== 0) {\n return;\n }\n\n _this.clearValue();\n\n event.stopPropagation();\n _this.openAfterFocus = false;\n setTimeout(function () {\n return _this.focusInput();\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onScroll\", function (event) {\n if (typeof _this.props.closeMenuOnScroll === 'boolean') {\n if (event.target instanceof HTMLElement && isDocumentElement(event.target)) {\n _this.props.onMenuClose();\n }\n } else if (typeof _this.props.closeMenuOnScroll === 'function') {\n if (_this.props.closeMenuOnScroll(event)) {\n _this.props.onMenuClose();\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onCompositionStart\", function () {\n _this.isComposing = true;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onCompositionEnd\", function () {\n _this.isComposing = false;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTouchStart\", function (_ref4) {\n var touches = _ref4.touches;\n var touch = touches.item(0);\n\n if (!touch) {\n return;\n }\n\n _this.initialTouchX = touch.clientX;\n _this.initialTouchY = touch.clientY;\n _this.userIsDragging = false;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTouchMove\", function (_ref5) {\n var touches = _ref5.touches;\n var touch = touches.item(0);\n\n if (!touch) {\n return;\n }\n\n var deltaX = Math.abs(touch.clientX - _this.initialTouchX);\n var deltaY = Math.abs(touch.clientY - _this.initialTouchY);\n var moveThreshold = 5;\n _this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTouchEnd\", function (event) {\n if (_this.userIsDragging) return; // close the menu if the user taps outside\n // we're checking on event.target here instead of event.currentTarget, because we want to assert information\n // on events on child elements, not the document (which we've attached this handler to).\n\n if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) {\n _this.blurInput();\n } // reset move vars\n\n\n _this.initialTouchX = 0;\n _this.initialTouchY = 0;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onControlTouchEnd\", function (event) {\n if (_this.userIsDragging) return;\n\n _this.onControlMouseDown(event);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onClearIndicatorTouchEnd\", function (event) {\n if (_this.userIsDragging) return;\n\n _this.onClearIndicatorMouseDown(event);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onDropdownIndicatorTouchEnd\", function (event) {\n if (_this.userIsDragging) return;\n\n _this.onDropdownIndicatorMouseDown(event);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleInputChange\", function (event) {\n var inputValue = event.currentTarget.value;\n _this.inputIsHiddenAfterUpdate = false;\n\n _this.onInputChange(inputValue, {\n action: 'input-change'\n });\n\n _this.onMenuOpen();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onInputFocus\", function (event) {\n var _this$props5 = _this.props,\n isSearchable = _this$props5.isSearchable,\n isMulti = _this$props5.isMulti;\n\n if (_this.props.onFocus) {\n _this.props.onFocus(event);\n }\n\n _this.inputIsHiddenAfterUpdate = false;\n\n _this.announceAriaLiveContext({\n event: 'input',\n context: {\n isSearchable: isSearchable,\n isMulti: isMulti\n }\n });\n\n _this.setState({\n isFocused: true\n });\n\n if (_this.openAfterFocus || _this.props.openMenuOnFocus) {\n _this.openMenu('first');\n }\n\n _this.openAfterFocus = false;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onInputBlur\", function (event) {\n if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) {\n _this.inputRef.focus();\n\n return;\n }\n\n if (_this.props.onBlur) {\n _this.props.onBlur(event);\n }\n\n _this.onInputChange('', {\n action: 'input-blur'\n });\n\n _this.onMenuClose();\n\n _this.setState({\n focusedValue: null,\n isFocused: false\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onOptionHover\", function (focusedOption) {\n if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {\n return;\n }\n\n _this.setState({\n focusedOption: focusedOption\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"shouldHideSelectedOptions\", function () {\n var _this$props6 = _this.props,\n hideSelectedOptions = _this$props6.hideSelectedOptions,\n isMulti = _this$props6.isMulti;\n if (hideSelectedOptions === undefined) return isMulti;\n return hideSelectedOptions;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onKeyDown\", function (event) {\n var _this$props7 = _this.props,\n isMulti = _this$props7.isMulti,\n backspaceRemovesValue = _this$props7.backspaceRemovesValue,\n escapeClearsValue = _this$props7.escapeClearsValue,\n inputValue = _this$props7.inputValue,\n isClearable = _this$props7.isClearable,\n isDisabled = _this$props7.isDisabled,\n menuIsOpen = _this$props7.menuIsOpen,\n onKeyDown = _this$props7.onKeyDown,\n tabSelectsValue = _this$props7.tabSelectsValue,\n openMenuOnFocus = _this$props7.openMenuOnFocus;\n var _this$state2 = _this.state,\n focusedOption = _this$state2.focusedOption,\n focusedValue = _this$state2.focusedValue,\n selectValue = _this$state2.selectValue;\n if (isDisabled) return;\n\n if (typeof onKeyDown === 'function') {\n onKeyDown(event);\n\n if (event.defaultPrevented) {\n return;\n }\n } // Block option hover events when the user has just pressed a key\n\n\n _this.blockOptionHover = true;\n\n switch (event.key) {\n case 'ArrowLeft':\n if (!isMulti || inputValue) return;\n\n _this.focusValue('previous');\n\n break;\n\n case 'ArrowRight':\n if (!isMulti || inputValue) return;\n\n _this.focusValue('next');\n\n break;\n\n case 'Delete':\n case 'Backspace':\n if (inputValue) return;\n\n if (focusedValue) {\n _this.removeValue(focusedValue);\n } else {\n if (!backspaceRemovesValue) return;\n\n if (isMulti) {\n _this.popValue();\n } else if (isClearable) {\n _this.clearValue();\n }\n }\n\n break;\n\n case 'Tab':\n if (_this.isComposing) return;\n\n if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || // don't capture the event if the menu opens on focus and the focused\n // option is already selected; it breaks the flow of navigation\n openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) {\n return;\n }\n\n _this.selectOption(focusedOption);\n\n break;\n\n case 'Enter':\n if (event.keyCode === 229) {\n // ignore the keydown event from an Input Method Editor(IME)\n // ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode\n break;\n }\n\n if (menuIsOpen) {\n if (!focusedOption) return;\n if (_this.isComposing) return;\n\n _this.selectOption(focusedOption);\n\n break;\n }\n\n return;\n\n case 'Escape':\n if (menuIsOpen) {\n _this.inputIsHiddenAfterUpdate = false;\n\n _this.onInputChange('', {\n action: 'menu-close'\n });\n\n _this.onMenuClose();\n } else if (isClearable && escapeClearsValue) {\n _this.clearValue();\n }\n\n break;\n\n case ' ':\n // space\n if (inputValue) {\n return;\n }\n\n if (!menuIsOpen) {\n _this.openMenu('first');\n\n break;\n }\n\n if (!focusedOption) return;\n\n _this.selectOption(focusedOption);\n\n break;\n\n case 'ArrowUp':\n if (menuIsOpen) {\n _this.focusOption('up');\n } else {\n _this.openMenu('last');\n }\n\n break;\n\n case 'ArrowDown':\n if (menuIsOpen) {\n _this.focusOption('down');\n } else {\n _this.openMenu('first');\n }\n\n break;\n\n case 'PageUp':\n if (!menuIsOpen) return;\n\n _this.focusOption('pageup');\n\n break;\n\n case 'PageDown':\n if (!menuIsOpen) return;\n\n _this.focusOption('pagedown');\n\n break;\n\n case 'Home':\n if (!menuIsOpen) return;\n\n _this.focusOption('first');\n\n break;\n\n case 'End':\n if (!menuIsOpen) return;\n\n _this.focusOption('last');\n\n break;\n\n default:\n return;\n }\n\n event.preventDefault();\n });\n\n var value = _props.value;\n _this.cacheComponents = memoizeOne(_this.cacheComponents, exportedEqual).bind(_assertThisInitialized(_assertThisInitialized(_this)));\n\n _this.cacheComponents(_props.components);\n\n _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);\n\n var _selectValue = cleanValue(value);\n\n var _menuOptions = _this.buildMenuOptions(_props, _selectValue);\n\n _this.state.menuOptions = _menuOptions;\n _this.state.selectValue = _selectValue;\n return _this;\n }\n\n _createClass(Select, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.startListeningComposition();\n this.startListeningToTouch();\n\n if (this.props.closeMenuOnScroll && document && document.addEventListener) {\n // Listen to all scroll events, and filter them out inside of 'onScroll'\n document.addEventListener('scroll', this.onScroll, true);\n }\n\n if (this.props.autoFocus) {\n this.focusInput();\n }\n }\n }, {\n key: \"componentWillReceiveProps\",\n value: function componentWillReceiveProps(nextProps) {\n var _this$props8 = this.props,\n options = _this$props8.options,\n value = _this$props8.value,\n inputValue = _this$props8.inputValue; // re-cache custom components\n\n this.cacheComponents(nextProps.components); // rebuild the menu options\n\n if (nextProps.value !== value || nextProps.options !== options || nextProps.inputValue !== inputValue) {\n var selectValue = cleanValue(nextProps.value);\n var menuOptions = this.buildMenuOptions(nextProps, selectValue);\n var focusedValue = this.getNextFocusedValue(selectValue);\n var focusedOption = this.getNextFocusedOption(menuOptions.focusable);\n this.setState({\n menuOptions: menuOptions,\n selectValue: selectValue,\n focusedOption: focusedOption,\n focusedValue: focusedValue\n });\n } // some updates should toggle the state of the input visibility\n\n\n if (this.inputIsHiddenAfterUpdate != null) {\n this.setState({\n inputIsHidden: this.inputIsHiddenAfterUpdate\n });\n delete this.inputIsHiddenAfterUpdate;\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this$props9 = this.props,\n isDisabled = _this$props9.isDisabled,\n menuIsOpen = _this$props9.menuIsOpen;\n var isFocused = this.state.isFocused;\n\n if ( // ensure focus is restored correctly when the control becomes enabled\n isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens\n isFocused && menuIsOpen && !prevProps.menuIsOpen) {\n this.focusInput();\n } // scroll the focused option into view if necessary\n\n\n if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) {\n scrollIntoView(this.menuListRef, this.focusedOptionRef);\n }\n\n this.scrollToFocusedOptionOnUpdate = false;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.stopListeningComposition();\n this.stopListeningToTouch();\n document.removeEventListener('scroll', this.onScroll, true);\n }\n }, {\n key: \"onMenuOpen\",\n // ==============================\n // Consumer Handlers\n // ==============================\n value: function onMenuOpen() {\n this.props.onMenuOpen();\n }\n }, {\n key: \"onMenuClose\",\n value: function onMenuClose() {\n var _this$props10 = this.props,\n isSearchable = _this$props10.isSearchable,\n isMulti = _this$props10.isMulti;\n this.announceAriaLiveContext({\n event: 'input',\n context: {\n isSearchable: isSearchable,\n isMulti: isMulti\n }\n });\n this.onInputChange('', {\n action: 'menu-close'\n });\n this.props.onMenuClose();\n }\n }, {\n key: \"onInputChange\",\n value: function onInputChange(newValue, actionMeta) {\n this.props.onInputChange(newValue, actionMeta);\n } // ==============================\n // Methods\n // ==============================\n\n }, {\n key: \"focusInput\",\n value: function focusInput() {\n if (!this.inputRef) return;\n this.inputRef.focus();\n }\n }, {\n key: \"blurInput\",\n value: function blurInput() {\n if (!this.inputRef) return;\n this.inputRef.blur();\n } // aliased for consumers\n\n }, {\n key: \"openMenu\",\n value: function openMenu(focusOption) {\n var _this$state3 = this.state,\n menuOptions = _this$state3.menuOptions,\n selectValue = _this$state3.selectValue,\n isFocused = _this$state3.isFocused;\n var isMulti = this.props.isMulti;\n var openAtIndex = focusOption === 'first' ? 0 : menuOptions.focusable.length - 1;\n\n if (!isMulti) {\n var selectedIndex = menuOptions.focusable.indexOf(selectValue[0]);\n\n if (selectedIndex > -1) {\n openAtIndex = selectedIndex;\n }\n } // only scroll if the menu isn't already open\n\n\n this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef);\n this.inputIsHiddenAfterUpdate = false;\n this.onMenuOpen();\n this.setState({\n focusedValue: null,\n focusedOption: menuOptions.focusable[openAtIndex]\n });\n this.announceAriaLiveContext({\n event: 'menu'\n });\n }\n }, {\n key: \"focusValue\",\n value: function focusValue(direction) {\n var _this$props11 = this.props,\n isMulti = _this$props11.isMulti,\n isSearchable = _this$props11.isSearchable;\n var _this$state4 = this.state,\n selectValue = _this$state4.selectValue,\n focusedValue = _this$state4.focusedValue; // Only multiselects support value focusing\n\n if (!isMulti) return;\n this.setState({\n focusedOption: null\n });\n var focusedIndex = selectValue.indexOf(focusedValue);\n\n if (!focusedValue) {\n focusedIndex = -1;\n this.announceAriaLiveContext({\n event: 'value'\n });\n }\n\n var lastIndex = selectValue.length - 1;\n var nextFocus = -1;\n if (!selectValue.length) return;\n\n switch (direction) {\n case 'previous':\n if (focusedIndex === 0) {\n // don't cycle from the start to the end\n nextFocus = 0;\n } else if (focusedIndex === -1) {\n // if nothing is focused, focus the last value first\n nextFocus = lastIndex;\n } else {\n nextFocus = focusedIndex - 1;\n }\n\n break;\n\n case 'next':\n if (focusedIndex > -1 && focusedIndex < lastIndex) {\n nextFocus = focusedIndex + 1;\n }\n\n break;\n }\n\n if (nextFocus === -1) {\n this.announceAriaLiveContext({\n event: 'input',\n context: {\n isSearchable: isSearchable,\n isMulti: isMulti\n }\n });\n }\n\n this.setState({\n inputIsHidden: nextFocus === -1 ? false : true,\n focusedValue: selectValue[nextFocus]\n });\n }\n }, {\n key: \"focusOption\",\n value: function focusOption() {\n var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'first';\n var pageSize = this.props.pageSize;\n var _this$state5 = this.state,\n focusedOption = _this$state5.focusedOption,\n menuOptions = _this$state5.menuOptions;\n var options = menuOptions.focusable;\n if (!options.length) return;\n var nextFocus = 0; // handles 'first'\n\n var focusedIndex = options.indexOf(focusedOption);\n\n if (!focusedOption) {\n focusedIndex = -1;\n this.announceAriaLiveContext({\n event: 'menu'\n });\n }\n\n if (direction === 'up') {\n nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1;\n } else if (direction === 'down') {\n nextFocus = (focusedIndex + 1) % options.length;\n } else if (direction === 'pageup') {\n nextFocus = focusedIndex - pageSize;\n if (nextFocus < 0) nextFocus = 0;\n } else if (direction === 'pagedown') {\n nextFocus = focusedIndex + pageSize;\n if (nextFocus > options.length - 1) nextFocus = options.length - 1;\n } else if (direction === 'last') {\n nextFocus = options.length - 1;\n }\n\n this.scrollToFocusedOptionOnUpdate = true;\n this.setState({\n focusedOption: options[nextFocus],\n focusedValue: null\n });\n this.announceAriaLiveContext({\n event: 'menu',\n context: {\n isDisabled: isOptionDisabled(options[nextFocus])\n }\n });\n }\n }, {\n key: \"getTheme\",\n // ==============================\n // Getters\n // ==============================\n value: function getTheme() {\n // Use the default theme if there are no customizations.\n if (!this.props.theme) {\n return defaultTheme;\n } // If the theme prop is a function, assume the function\n // knows how to merge the passed-in default theme with\n // its own modifications.\n\n\n if (typeof this.props.theme === 'function') {\n return this.props.theme(defaultTheme);\n } // Otherwise, if a plain theme object was passed in,\n // overlay it with the default theme.\n\n\n return _objectSpread({}, defaultTheme, this.props.theme);\n }\n }, {\n key: \"getCommonProps\",\n value: function getCommonProps() {\n var clearValue = this.clearValue,\n getStyles = this.getStyles,\n setValue = this.setValue,\n selectOption = this.selectOption,\n props = this.props;\n var classNamePrefix = props.classNamePrefix,\n isMulti = props.isMulti,\n isRtl = props.isRtl,\n options = props.options;\n var selectValue = this.state.selectValue;\n var hasValue = this.hasValue();\n\n var getValue = function getValue() {\n return selectValue;\n };\n\n var cx = classNames.bind(null, classNamePrefix);\n return {\n cx: cx,\n clearValue: clearValue,\n getStyles: getStyles,\n getValue: getValue,\n hasValue: hasValue,\n isMulti: isMulti,\n isRtl: isRtl,\n options: options,\n selectOption: selectOption,\n setValue: setValue,\n selectProps: props,\n theme: this.getTheme()\n };\n }\n }, {\n key: \"getNextFocusedValue\",\n value: function getNextFocusedValue(nextSelectValue) {\n if (this.clearFocusValueOnUpdate) {\n this.clearFocusValueOnUpdate = false;\n return null;\n }\n\n var _this$state6 = this.state,\n focusedValue = _this$state6.focusedValue,\n lastSelectValue = _this$state6.selectValue;\n var lastFocusedIndex = lastSelectValue.indexOf(focusedValue);\n\n if (lastFocusedIndex > -1) {\n var nextFocusedIndex = nextSelectValue.indexOf(focusedValue);\n\n if (nextFocusedIndex > -1) {\n // the focused value is still in the selectValue, return it\n return focusedValue;\n } else if (lastFocusedIndex < nextSelectValue.length) {\n // the focusedValue is not present in the next selectValue array by\n // reference, so return the new value at the same index\n return nextSelectValue[lastFocusedIndex];\n }\n }\n\n return null;\n }\n }, {\n key: \"getNextFocusedOption\",\n value: function getNextFocusedOption(options) {\n var lastFocusedOption = this.state.focusedOption;\n return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];\n }\n }, {\n key: \"hasValue\",\n value: function hasValue() {\n var selectValue = this.state.selectValue;\n return selectValue.length > 0;\n }\n }, {\n key: \"hasOptions\",\n value: function hasOptions() {\n return !!this.state.menuOptions.render.length;\n }\n }, {\n key: \"countOptions\",\n value: function countOptions() {\n return this.state.menuOptions.focusable.length;\n }\n }, {\n key: \"isClearable\",\n value: function isClearable() {\n var _this$props12 = this.props,\n isClearable = _this$props12.isClearable,\n isMulti = _this$props12.isMulti; // single select, by default, IS NOT clearable\n // multi select, by default, IS clearable\n\n if (isClearable === undefined) return isMulti;\n return isClearable;\n }\n }, {\n key: \"isOptionDisabled\",\n value: function isOptionDisabled$$1(option, selectValue) {\n return typeof this.props.isOptionDisabled === 'function' ? this.props.isOptionDisabled(option, selectValue) : false;\n }\n }, {\n key: \"isOptionSelected\",\n value: function isOptionSelected(option, selectValue) {\n var _this2 = this;\n\n if (selectValue.indexOf(option) > -1) return true;\n\n if (typeof this.props.isOptionSelected === 'function') {\n return this.props.isOptionSelected(option, selectValue);\n }\n\n var candidate = this.getOptionValue(option);\n return selectValue.some(function (i) {\n return _this2.getOptionValue(i) === candidate;\n });\n }\n }, {\n key: \"filterOption\",\n value: function filterOption(option, inputValue) {\n return this.props.filterOption ? this.props.filterOption(option, inputValue) : true;\n }\n }, {\n key: \"formatOptionLabel\",\n value: function formatOptionLabel(data, context) {\n if (typeof this.props.formatOptionLabel === 'function') {\n var inputValue = this.props.inputValue;\n var selectValue = this.state.selectValue;\n return this.props.formatOptionLabel(data, {\n context: context,\n inputValue: inputValue,\n selectValue: selectValue\n });\n } else {\n return this.getOptionLabel(data);\n }\n }\n }, {\n key: \"formatGroupLabel\",\n value: function formatGroupLabel$$1(data) {\n return this.props.formatGroupLabel(data);\n } // ==============================\n // Mouse Handlers\n // ==============================\n\n }, {\n key: \"startListeningComposition\",\n // ==============================\n // Composition Handlers\n // ==============================\n value: function startListeningComposition() {\n if (document && document.addEventListener) {\n document.addEventListener('compositionstart', this.onCompositionStart, false);\n document.addEventListener('compositionend', this.onCompositionEnd, false);\n }\n }\n }, {\n key: \"stopListeningComposition\",\n value: function stopListeningComposition() {\n if (document && document.removeEventListener) {\n document.removeEventListener('compositionstart', this.onCompositionStart);\n document.removeEventListener('compositionend', this.onCompositionEnd);\n }\n }\n }, {\n key: \"startListeningToTouch\",\n // ==============================\n // Touch Handlers\n // ==============================\n value: function startListeningToTouch() {\n if (document && document.addEventListener) {\n document.addEventListener('touchstart', this.onTouchStart, false);\n document.addEventListener('touchmove', this.onTouchMove, false);\n document.addEventListener('touchend', this.onTouchEnd, false);\n }\n }\n }, {\n key: \"stopListeningToTouch\",\n value: function stopListeningToTouch() {\n if (document && document.removeEventListener) {\n document.removeEventListener('touchstart', this.onTouchStart);\n document.removeEventListener('touchmove', this.onTouchMove);\n document.removeEventListener('touchend', this.onTouchEnd);\n }\n }\n }, {\n key: \"buildMenuOptions\",\n // ==============================\n // Menu Options\n // ==============================\n value: function buildMenuOptions(props, selectValue) {\n var _this3 = this;\n\n var _props$inputValue = props.inputValue,\n inputValue = _props$inputValue === void 0 ? '' : _props$inputValue,\n options = props.options;\n\n var toOption = function toOption(option, id) {\n var isDisabled = _this3.isOptionDisabled(option, selectValue);\n\n var isSelected = _this3.isOptionSelected(option, selectValue);\n\n var label = _this3.getOptionLabel(option);\n\n var value = _this3.getOptionValue(option);\n\n if (_this3.shouldHideSelectedOptions() && isSelected || !_this3.filterOption({\n label: label,\n value: value,\n data: option\n }, inputValue)) {\n return;\n }\n\n var onHover = isDisabled ? undefined : function () {\n return _this3.onOptionHover(option);\n };\n var onSelect = isDisabled ? undefined : function () {\n return _this3.selectOption(option);\n };\n var optionId = \"\".concat(_this3.getElementId('option'), \"-\").concat(id);\n return {\n innerProps: {\n id: optionId,\n onClick: onSelect,\n onMouseMove: onHover,\n onMouseOver: onHover,\n tabIndex: -1\n },\n data: option,\n isDisabled: isDisabled,\n isSelected: isSelected,\n key: optionId,\n label: label,\n type: 'option',\n value: value\n };\n };\n\n return options.reduce(function (acc, item, itemIndex) {\n if (item.options) {\n // TODO needs a tidier implementation\n if (!_this3.hasGroups) _this3.hasGroups = true;\n var items = item.options;\n var children = items.map(function (child, i) {\n var option = toOption(child, \"\".concat(itemIndex, \"-\").concat(i));\n if (option) acc.focusable.push(child);\n return option;\n }).filter(Boolean);\n\n if (children.length) {\n var groupId = \"\".concat(_this3.getElementId('group'), \"-\").concat(itemIndex);\n acc.render.push({\n type: 'group',\n key: groupId,\n data: item,\n options: children\n });\n }\n } else {\n var option = toOption(item, \"\".concat(itemIndex));\n\n if (option) {\n acc.render.push(option);\n acc.focusable.push(item);\n }\n }\n\n return acc;\n }, {\n render: [],\n focusable: []\n });\n } // ==============================\n // Renderers\n // ==============================\n\n }, {\n key: \"constructAriaLiveMessage\",\n value: function constructAriaLiveMessage() {\n var _this$state7 = this.state,\n ariaLiveContext = _this$state7.ariaLiveContext,\n selectValue = _this$state7.selectValue,\n focusedValue = _this$state7.focusedValue,\n focusedOption = _this$state7.focusedOption;\n var _this$props13 = this.props,\n options = _this$props13.options,\n menuIsOpen = _this$props13.menuIsOpen,\n inputValue = _this$props13.inputValue,\n screenReaderStatus = _this$props13.screenReaderStatus; // An aria live message representing the currently focused value in the select.\n\n var focusedValueMsg = focusedValue ? valueFocusAriaMessage({\n focusedValue: focusedValue,\n getOptionLabel: this.getOptionLabel,\n selectValue: selectValue\n }) : ''; // An aria live message representing the currently focused option in the select.\n\n var focusedOptionMsg = focusedOption && menuIsOpen ? optionFocusAriaMessage({\n focusedOption: focusedOption,\n getOptionLabel: this.getOptionLabel,\n options: options\n }) : ''; // An aria live message representing the set of focusable results and current searchterm/inputvalue.\n\n var resultsMsg = resultsAriaMessage({\n inputValue: inputValue,\n screenReaderMessage: screenReaderStatus({\n count: this.countOptions()\n })\n });\n return \"\".concat(focusedValueMsg, \" \").concat(focusedOptionMsg, \" \").concat(resultsMsg, \" \").concat(ariaLiveContext);\n }\n }, {\n key: \"renderInput\",\n value: function renderInput() {\n var _this$props14 = this.props,\n isDisabled = _this$props14.isDisabled,\n isSearchable = _this$props14.isSearchable,\n inputId = _this$props14.inputId,\n inputValue = _this$props14.inputValue,\n tabIndex = _this$props14.tabIndex;\n var Input = this.components.Input;\n var inputIsHidden = this.state.inputIsHidden;\n var id = inputId || this.getElementId('input');\n\n if (!isSearchable) {\n // use a dummy input to maintain focus/blur functionality\n return React.createElement(DummyInput, {\n id: id,\n innerRef: this.getInputRef,\n onBlur: this.onInputBlur,\n onChange: noop,\n onFocus: this.onInputFocus,\n readOnly: true,\n disabled: isDisabled,\n tabIndex: tabIndex,\n value: \"\"\n });\n } // aria attributes makes the JSX \"noisy\", separated for clarity\n\n\n var ariaAttributes = {\n 'aria-autocomplete': 'list',\n 'aria-label': this.props['aria-label'],\n 'aria-labelledby': this.props['aria-labelledby']\n };\n var _this$commonProps = this.commonProps,\n cx = _this$commonProps.cx,\n theme = _this$commonProps.theme,\n selectProps = _this$commonProps.selectProps;\n return React.createElement(Input, _extends({\n autoCapitalize: \"none\",\n autoComplete: \"off\",\n autoCorrect: \"off\",\n cx: cx,\n getStyles: this.getStyles,\n id: id,\n innerRef: this.getInputRef,\n isDisabled: isDisabled,\n isHidden: inputIsHidden,\n onBlur: this.onInputBlur,\n onChange: this.handleInputChange,\n onFocus: this.onInputFocus,\n selectProps: selectProps,\n spellCheck: \"false\",\n tabIndex: tabIndex,\n theme: theme,\n type: \"text\",\n value: inputValue\n }, ariaAttributes));\n }\n }, {\n key: \"renderPlaceholderOrValue\",\n value: function renderPlaceholderOrValue() {\n var _this4 = this;\n\n var _this$components = this.components,\n MultiValue = _this$components.MultiValue,\n MultiValueContainer = _this$components.MultiValueContainer,\n MultiValueLabel = _this$components.MultiValueLabel,\n MultiValueRemove = _this$components.MultiValueRemove,\n SingleValue = _this$components.SingleValue,\n Placeholder = _this$components.Placeholder;\n var commonProps = this.commonProps;\n var _this$props15 = this.props,\n controlShouldRenderValue = _this$props15.controlShouldRenderValue,\n isDisabled = _this$props15.isDisabled,\n isMulti = _this$props15.isMulti,\n inputValue = _this$props15.inputValue,\n placeholder = _this$props15.placeholder;\n var _this$state8 = this.state,\n selectValue = _this$state8.selectValue,\n focusedValue = _this$state8.focusedValue,\n isFocused = _this$state8.isFocused;\n\n if (!this.hasValue() || !controlShouldRenderValue) {\n return inputValue ? null : React.createElement(Placeholder, _extends({}, commonProps, {\n key: \"placeholder\",\n isDisabled: isDisabled,\n isFocused: isFocused\n }), placeholder);\n }\n\n if (isMulti) {\n var selectValues = selectValue.map(function (opt) {\n var isOptionFocused = opt === focusedValue;\n return React.createElement(MultiValue, _extends({}, commonProps, {\n components: {\n Container: MultiValueContainer,\n Label: MultiValueLabel,\n Remove: MultiValueRemove\n },\n isFocused: isOptionFocused,\n isDisabled: isDisabled,\n key: _this4.getOptionValue(opt),\n removeProps: {\n onClick: function onClick() {\n return _this4.removeValue(opt);\n },\n onTouchEnd: function onTouchEnd() {\n return _this4.removeValue(opt);\n },\n onMouseDown: function onMouseDown(e) {\n e.preventDefault();\n e.stopPropagation();\n }\n },\n data: opt\n }), _this4.formatOptionLabel(opt, 'value'));\n });\n return selectValues;\n }\n\n if (inputValue) {\n return null;\n }\n\n var singleValue = selectValue[0];\n return React.createElement(SingleValue, _extends({}, commonProps, {\n data: singleValue,\n isDisabled: isDisabled\n }), this.formatOptionLabel(singleValue, 'value'));\n }\n }, {\n key: \"renderClearIndicator\",\n value: function renderClearIndicator() {\n var ClearIndicator = this.components.ClearIndicator;\n var commonProps = this.commonProps;\n var _this$props16 = this.props,\n isDisabled = _this$props16.isDisabled,\n isLoading = _this$props16.isLoading;\n var isFocused = this.state.isFocused;\n\n if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) {\n return null;\n }\n\n var innerProps = {\n onMouseDown: this.onClearIndicatorMouseDown,\n onTouchEnd: this.onClearIndicatorTouchEnd,\n 'aria-hidden': 'true'\n };\n return React.createElement(ClearIndicator, _extends({}, commonProps, {\n innerProps: innerProps,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderLoadingIndicator\",\n value: function renderLoadingIndicator() {\n var LoadingIndicator = this.components.LoadingIndicator;\n var commonProps = this.commonProps;\n var _this$props17 = this.props,\n isDisabled = _this$props17.isDisabled,\n isLoading = _this$props17.isLoading;\n var isFocused = this.state.isFocused;\n if (!LoadingIndicator || !isLoading) return null;\n var innerProps = {\n 'aria-hidden': 'true'\n };\n return React.createElement(LoadingIndicator, _extends({}, commonProps, {\n innerProps: innerProps,\n isDisabled: isDisabled,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderIndicatorSeparator\",\n value: function renderIndicatorSeparator() {\n var _this$components2 = this.components,\n DropdownIndicator = _this$components2.DropdownIndicator,\n IndicatorSeparator = _this$components2.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator\n\n if (!DropdownIndicator || !IndicatorSeparator) return null;\n var commonProps = this.commonProps;\n var isDisabled = this.props.isDisabled;\n var isFocused = this.state.isFocused;\n return React.createElement(IndicatorSeparator, _extends({}, commonProps, {\n isDisabled: isDisabled,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderDropdownIndicator\",\n value: function renderDropdownIndicator() {\n var DropdownIndicator = this.components.DropdownIndicator;\n if (!DropdownIndicator) return null;\n var commonProps = this.commonProps;\n var isDisabled = this.props.isDisabled;\n var isFocused = this.state.isFocused;\n var innerProps = {\n onMouseDown: this.onDropdownIndicatorMouseDown,\n onTouchEnd: this.onDropdownIndicatorTouchEnd,\n 'aria-hidden': 'true'\n };\n return React.createElement(DropdownIndicator, _extends({}, commonProps, {\n innerProps: innerProps,\n isDisabled: isDisabled,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderMenu\",\n value: function renderMenu() {\n var _this5 = this;\n\n var _this$components3 = this.components,\n Group = _this$components3.Group,\n GroupHeading = _this$components3.GroupHeading,\n Menu$$1 = _this$components3.Menu,\n MenuList$$1 = _this$components3.MenuList,\n MenuPortal$$1 = _this$components3.MenuPortal,\n LoadingMessage$$1 = _this$components3.LoadingMessage,\n NoOptionsMessage$$1 = _this$components3.NoOptionsMessage,\n Option = _this$components3.Option;\n var commonProps = this.commonProps;\n var _this$state9 = this.state,\n focusedOption = _this$state9.focusedOption,\n menuOptions = _this$state9.menuOptions;\n var _this$props18 = this.props,\n captureMenuScroll = _this$props18.captureMenuScroll,\n inputValue = _this$props18.inputValue,\n isLoading = _this$props18.isLoading,\n loadingMessage = _this$props18.loadingMessage,\n minMenuHeight = _this$props18.minMenuHeight,\n maxMenuHeight = _this$props18.maxMenuHeight,\n menuIsOpen = _this$props18.menuIsOpen,\n menuPlacement = _this$props18.menuPlacement,\n menuPosition = _this$props18.menuPosition,\n menuPortalTarget = _this$props18.menuPortalTarget,\n menuShouldBlockScroll = _this$props18.menuShouldBlockScroll,\n menuShouldScrollIntoView = _this$props18.menuShouldScrollIntoView,\n noOptionsMessage = _this$props18.noOptionsMessage,\n onMenuScrollToTop = _this$props18.onMenuScrollToTop,\n onMenuScrollToBottom = _this$props18.onMenuScrollToBottom;\n if (!menuIsOpen) return null; // TODO: Internal Option Type here\n\n var render = function render(props) {\n // for performance, the menu options in state aren't changed when the\n // focused option changes so we calculate additional props based on that\n var isFocused = focusedOption === props.data;\n props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined;\n return React.createElement(Option, _extends({}, commonProps, props, {\n isFocused: isFocused\n }), _this5.formatOptionLabel(props.data, 'menu'));\n };\n\n var menuUI;\n\n if (this.hasOptions()) {\n menuUI = menuOptions.render.map(function (item) {\n if (item.type === 'group') {\n var type = item.type,\n group = _objectWithoutProperties(item, [\"type\"]);\n\n var headingId = \"\".concat(item.key, \"-heading\");\n return React.createElement(Group, _extends({}, commonProps, group, {\n Heading: GroupHeading,\n headingProps: {\n id: headingId\n },\n label: _this5.formatGroupLabel(item.data)\n }), item.options.map(function (option) {\n return render(option);\n }));\n } else if (item.type === 'option') {\n return render(item);\n }\n });\n } else if (isLoading) {\n var message = loadingMessage({\n inputValue: inputValue\n });\n if (message === null) return null;\n menuUI = React.createElement(LoadingMessage$$1, commonProps, message);\n } else {\n var _message = noOptionsMessage({\n inputValue: inputValue\n });\n\n if (_message === null) return null;\n menuUI = React.createElement(NoOptionsMessage$$1, commonProps, _message);\n }\n\n var menuPlacementProps = {\n minMenuHeight: minMenuHeight,\n maxMenuHeight: maxMenuHeight,\n menuPlacement: menuPlacement,\n menuPosition: menuPosition,\n menuShouldScrollIntoView: menuShouldScrollIntoView\n };\n var menuElement = React.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function (_ref6) {\n var ref = _ref6.ref,\n _ref6$placerProps = _ref6.placerProps,\n placement = _ref6$placerProps.placement,\n maxHeight = _ref6$placerProps.maxHeight;\n return React.createElement(Menu$$1, _extends({}, commonProps, menuPlacementProps, {\n innerRef: ref,\n innerProps: {\n onMouseDown: _this5.onMenuMouseDown,\n onMouseMove: _this5.onMenuMouseMove\n },\n isLoading: isLoading,\n placement: placement\n }), React.createElement(ScrollCaptorSwitch, {\n isEnabled: captureMenuScroll,\n onTopArrive: onMenuScrollToTop,\n onBottomArrive: onMenuScrollToBottom\n }, React.createElement(ScrollBlock, {\n isEnabled: menuShouldBlockScroll\n }, React.createElement(MenuList$$1, _extends({}, commonProps, {\n innerRef: _this5.getMenuListRef,\n isLoading: isLoading,\n maxHeight: maxHeight\n }), menuUI))));\n }); // positioning behaviour is almost identical for portalled and fixed,\n // so we use the same component. the actual portalling logic is forked\n // within the component based on `menuPosition`\n\n return menuPortalTarget || menuPosition === 'fixed' ? React.createElement(MenuPortal$$1, _extends({}, commonProps, {\n appendTo: menuPortalTarget,\n controlElement: this.controlRef,\n menuPlacement: menuPlacement,\n menuPosition: menuPosition\n }), menuElement) : menuElement;\n }\n }, {\n key: \"renderFormField\",\n value: function renderFormField() {\n var _this6 = this;\n\n var _this$props19 = this.props,\n delimiter = _this$props19.delimiter,\n isDisabled = _this$props19.isDisabled,\n isMulti = _this$props19.isMulti,\n name = _this$props19.name;\n var selectValue = this.state.selectValue;\n if (!name || isDisabled) return;\n\n if (isMulti) {\n if (delimiter) {\n var value = selectValue.map(function (opt) {\n return _this6.getOptionValue(opt);\n }).join(delimiter);\n return React.createElement(\"input\", {\n name: name,\n type: \"hidden\",\n value: value\n });\n } else {\n var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {\n return React.createElement(\"input\", {\n key: \"i-\".concat(i),\n name: name,\n type: \"hidden\",\n value: _this6.getOptionValue(opt)\n });\n }) : React.createElement(\"input\", {\n name: name,\n type: \"hidden\"\n });\n return React.createElement(\"div\", null, input);\n }\n } else {\n var _value = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';\n\n return React.createElement(\"input\", {\n name: name,\n type: \"hidden\",\n value: _value\n });\n }\n }\n }, {\n key: \"renderLiveRegion\",\n value: function renderLiveRegion() {\n if (!this.state.isFocused) return null;\n return React.createElement(A11yText, {\n \"aria-live\": \"assertive\"\n }, React.createElement(\"p\", {\n id: \"aria-selection-event\"\n }, \"\\xA0\", this.state.ariaLiveSelection), React.createElement(\"p\", {\n id: \"aria-context\"\n }, \"\\xA0\", this.constructAriaLiveMessage()));\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$components4 = this.components,\n Control = _this$components4.Control,\n IndicatorsContainer = _this$components4.IndicatorsContainer,\n SelectContainer = _this$components4.SelectContainer,\n ValueContainer = _this$components4.ValueContainer;\n var _this$props20 = this.props,\n className = _this$props20.className,\n id = _this$props20.id,\n isDisabled = _this$props20.isDisabled,\n menuIsOpen = _this$props20.menuIsOpen;\n var isFocused = this.state.isFocused;\n var commonProps = this.commonProps = this.getCommonProps();\n return React.createElement(SelectContainer, _extends({}, commonProps, {\n className: className,\n innerProps: {\n id: id,\n onKeyDown: this.onKeyDown\n },\n isDisabled: isDisabled,\n isFocused: isFocused\n }), this.renderLiveRegion(), React.createElement(Control, _extends({}, commonProps, {\n innerRef: this.getControlRef,\n innerProps: {\n onMouseDown: this.onControlMouseDown,\n onTouchEnd: this.onControlTouchEnd\n },\n isDisabled: isDisabled,\n isFocused: isFocused,\n menuIsOpen: menuIsOpen\n }), React.createElement(ValueContainer, _extends({}, commonProps, {\n isDisabled: isDisabled\n }), this.renderPlaceholderOrValue(), this.renderInput()), React.createElement(IndicatorsContainer, _extends({}, commonProps, {\n isDisabled: isDisabled\n }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());\n }\n }]);\n\n return Select;\n}(Component);\n\n_defineProperty(Select, \"defaultProps\", defaultProps);\n\nvar defaultProps$1 = {\n defaultInputValue: '',\n defaultMenuIsOpen: false,\n defaultValue: null\n};\n\nvar manageState = function manageState(SelectComponent) {\n var _class, _temp;\n\n return _temp = _class =\n /*#__PURE__*/\n function (_Component) {\n _inherits(StateManager, _Component);\n\n function StateManager() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, StateManager);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(StateManager)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"select\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n inputValue: _this.props.inputValue !== undefined ? _this.props.inputValue : _this.props.defaultInputValue,\n menuIsOpen: _this.props.menuIsOpen !== undefined ? _this.props.menuIsOpen : _this.props.defaultMenuIsOpen,\n value: _this.props.value !== undefined ? _this.props.value : _this.props.defaultValue\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onChange\", function (value, actionMeta) {\n _this.callProp('onChange', value, actionMeta);\n\n _this.setState({\n value: value\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onInputChange\", function (value, actionMeta) {\n // TODO: for backwards compatibility, we allow the prop to return a new\n // value, but now inputValue is a controllable prop we probably shouldn't\n var newValue = _this.callProp('onInputChange', value, actionMeta);\n\n _this.setState({\n inputValue: newValue !== undefined ? newValue : value\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onMenuOpen\", function () {\n _this.callProp('onMenuOpen');\n\n _this.setState({\n menuIsOpen: true\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onMenuClose\", function () {\n _this.callProp('onMenuClose');\n\n _this.setState({\n menuIsOpen: false\n });\n });\n\n return _this;\n }\n\n _createClass(StateManager, [{\n key: \"focus\",\n value: function focus() {\n this.select.focus();\n }\n }, {\n key: \"blur\",\n value: function blur() {\n this.select.blur();\n } // FIXME: untyped flow code, return any\n\n }, {\n key: \"getProp\",\n value: function getProp(key) {\n return this.props[key] !== undefined ? this.props[key] : this.state[key];\n } // FIXME: untyped flow code, return any\n\n }, {\n key: \"callProp\",\n value: function callProp(name) {\n if (typeof this.props[name] === 'function') {\n var _this$props;\n\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n return (_this$props = this.props)[name].apply(_this$props, args);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _this$props2 = this.props,\n defaultInputValue = _this$props2.defaultInputValue,\n defaultMenuIsOpen = _this$props2.defaultMenuIsOpen,\n defaultValue = _this$props2.defaultValue,\n props = _objectWithoutProperties(_this$props2, [\"defaultInputValue\", \"defaultMenuIsOpen\", \"defaultValue\"]);\n\n return React.createElement(SelectComponent, _extends({}, props, {\n ref: function ref(_ref) {\n _this2.select = _ref;\n },\n inputValue: this.getProp('inputValue'),\n menuIsOpen: this.getProp('menuIsOpen'),\n onChange: this.onChange,\n onInputChange: this.onInputChange,\n onMenuClose: this.onMenuClose,\n onMenuOpen: this.onMenuOpen,\n value: this.getProp('value')\n }));\n }\n }]);\n\n return StateManager;\n }(Component), _defineProperty(_class, \"defaultProps\", defaultProps$1), _temp;\n};\n\nvar defaultProps$2 = {\n cacheOptions: false,\n defaultOptions: false,\n filterOption: null\n};\nvar makeAsyncSelect = function makeAsyncSelect(SelectComponent) {\n var _class, _temp;\n\n return _temp = _class =\n /*#__PURE__*/\n function (_Component) {\n _inherits(Async, _Component);\n\n function Async(props) {\n var _this;\n\n _classCallCheck(this, Async);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Async).call(this));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"select\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"lastRequest\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"mounted\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"optionsCache\", {});\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleInputChange\", function (newValue, actionMeta) {\n var _this$props = _this.props,\n cacheOptions = _this$props.cacheOptions,\n onInputChange = _this$props.onInputChange; // TODO\n\n var inputValue = handleInputChange(newValue, actionMeta, onInputChange);\n\n if (!inputValue) {\n delete _this.lastRequest;\n\n _this.setState({\n inputValue: '',\n loadedInputValue: '',\n loadedOptions: [],\n isLoading: false,\n passEmptyOptions: false\n });\n\n return;\n }\n\n if (cacheOptions && _this.optionsCache[inputValue]) {\n _this.setState({\n inputValue: inputValue,\n loadedInputValue: inputValue,\n loadedOptions: _this.optionsCache[inputValue],\n isLoading: false,\n passEmptyOptions: false\n });\n } else {\n var request = _this.lastRequest = {};\n\n _this.setState({\n inputValue: inputValue,\n isLoading: true,\n passEmptyOptions: !_this.state.loadedInputValue\n }, function () {\n _this.loadOptions(inputValue, function (options) {\n if (!_this.mounted) return;\n\n if (options) {\n _this.optionsCache[inputValue] = options;\n }\n\n if (request !== _this.lastRequest) return;\n delete _this.lastRequest;\n\n _this.setState({\n isLoading: false,\n loadedInputValue: inputValue,\n loadedOptions: options || [],\n passEmptyOptions: false\n });\n });\n });\n }\n\n return inputValue;\n });\n\n _this.state = {\n defaultOptions: Array.isArray(props.defaultOptions) ? props.defaultOptions : undefined,\n inputValue: typeof props.inputValue !== 'undefined' ? props.inputValue : '',\n isLoading: props.defaultOptions === true ? true : false,\n loadedOptions: [],\n passEmptyOptions: false\n };\n return _this;\n }\n\n _createClass(Async, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n this.mounted = true;\n var defaultOptions = this.props.defaultOptions;\n var inputValue = this.state.inputValue;\n\n if (defaultOptions === true) {\n this.loadOptions(inputValue, function (options) {\n if (!_this2.mounted) return;\n var isLoading = !!_this2.lastRequest;\n\n _this2.setState({\n defaultOptions: options || [],\n isLoading: isLoading\n });\n });\n }\n }\n }, {\n key: \"componentWillReceiveProps\",\n value: function componentWillReceiveProps(nextProps) {\n // if the cacheOptions prop changes, clear the cache\n if (nextProps.cacheOptions !== this.props.cacheOptions) {\n this.optionsCache = {};\n }\n\n if (nextProps.defaultOptions !== this.props.defaultOptions) {\n this.setState({\n defaultOptions: Array.isArray(nextProps.defaultOptions) ? nextProps.defaultOptions : undefined\n });\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.mounted = false;\n }\n }, {\n key: \"focus\",\n value: function focus() {\n this.select.focus();\n }\n }, {\n key: \"blur\",\n value: function blur() {\n this.select.blur();\n }\n }, {\n key: \"loadOptions\",\n value: function loadOptions(inputValue, callback) {\n var loadOptions = this.props.loadOptions;\n if (!loadOptions) return callback();\n var loader = loadOptions(inputValue, callback);\n\n if (loader && typeof loader.then === 'function') {\n loader.then(callback, function () {\n return callback();\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var _this$props2 = this.props,\n loadOptions = _this$props2.loadOptions,\n props = _objectWithoutProperties(_this$props2, [\"loadOptions\"]);\n\n var _this$state = this.state,\n defaultOptions = _this$state.defaultOptions,\n inputValue = _this$state.inputValue,\n isLoading = _this$state.isLoading,\n loadedInputValue = _this$state.loadedInputValue,\n loadedOptions = _this$state.loadedOptions,\n passEmptyOptions = _this$state.passEmptyOptions;\n var options = passEmptyOptions ? [] : inputValue && loadedInputValue ? loadedOptions : defaultOptions || [];\n return React.createElement(SelectComponent, _extends({}, props, {\n ref: function ref(_ref) {\n _this3.select = _ref;\n },\n options: options,\n isLoading: isLoading,\n onInputChange: this.handleInputChange\n }));\n }\n }]);\n\n return Async;\n }(Component), _defineProperty(_class, \"defaultProps\", defaultProps$2), _temp;\n};\nvar SelectState = manageState(Select);\nvar Async = makeAsyncSelect(SelectState);\n\nvar compareOption = function compareOption() {\n var inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var option = arguments.length > 1 ? arguments[1] : undefined;\n var candidate = String(inputValue).toLowerCase();\n var optionValue = String(option.value).toLowerCase();\n var optionLabel = String(option.label).toLowerCase();\n return optionValue === candidate || optionLabel === candidate;\n};\n\nvar builtins = {\n formatCreateLabel: function formatCreateLabel(inputValue) {\n return \"Create \\\"\".concat(inputValue, \"\\\"\");\n },\n isValidNewOption: function isValidNewOption(inputValue, selectValue, selectOptions) {\n return !(!inputValue || selectValue.some(function (option) {\n return compareOption(inputValue, option);\n }) || selectOptions.some(function (option) {\n return compareOption(inputValue, option);\n }));\n },\n getNewOptionData: function getNewOptionData(inputValue, optionLabel) {\n return {\n label: optionLabel,\n value: inputValue,\n __isNew__: true\n };\n }\n};\nvar defaultProps$3 = _objectSpread({\n allowCreateWhileLoading: false,\n createOptionPosition: 'last'\n}, builtins);\nvar makeCreatableSelect = function makeCreatableSelect(SelectComponent) {\n var _class, _temp;\n\n return _temp = _class =\n /*#__PURE__*/\n function (_Component) {\n _inherits(Creatable, _Component);\n\n function Creatable(props) {\n var _this;\n\n _classCallCheck(this, Creatable);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Creatable).call(this, props));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"select\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onChange\", function (newValue, actionMeta) {\n var _this$props = _this.props,\n getNewOptionData = _this$props.getNewOptionData,\n inputValue = _this$props.inputValue,\n isMulti = _this$props.isMulti,\n onChange = _this$props.onChange,\n onCreateOption = _this$props.onCreateOption,\n value = _this$props.value;\n\n if (actionMeta.action !== 'select-option') {\n return onChange(newValue, actionMeta);\n }\n\n var newOption = _this.state.newOption;\n var valueArray = Array.isArray(newValue) ? newValue : [newValue];\n\n if (valueArray[valueArray.length - 1] === newOption) {\n if (onCreateOption) onCreateOption(inputValue);else {\n var newOptionData = getNewOptionData(inputValue, inputValue);\n var newActionMeta = {\n action: 'create-option'\n };\n\n if (isMulti) {\n onChange([].concat(_toConsumableArray(cleanValue(value)), [newOptionData]), newActionMeta);\n } else {\n onChange(newOptionData, newActionMeta);\n }\n }\n return;\n }\n\n onChange(newValue, actionMeta);\n });\n\n var options = props.options || [];\n _this.state = {\n newOption: undefined,\n options: options\n };\n return _this;\n }\n\n _createClass(Creatable, [{\n key: \"componentWillReceiveProps\",\n value: function componentWillReceiveProps(nextProps) {\n var allowCreateWhileLoading = nextProps.allowCreateWhileLoading,\n createOptionPosition = nextProps.createOptionPosition,\n formatCreateLabel = nextProps.formatCreateLabel,\n getNewOptionData = nextProps.getNewOptionData,\n inputValue = nextProps.inputValue,\n isLoading = nextProps.isLoading,\n isValidNewOption = nextProps.isValidNewOption,\n value = nextProps.value;\n var options = nextProps.options || [];\n var newOption = this.state.newOption;\n\n if (isValidNewOption(inputValue, cleanValue(value), options)) {\n newOption = getNewOptionData(inputValue, formatCreateLabel(inputValue));\n } else {\n newOption = undefined;\n }\n\n this.setState({\n newOption: newOption,\n options: (allowCreateWhileLoading || !isLoading) && newOption ? createOptionPosition === 'first' ? [newOption].concat(_toConsumableArray(options)) : [].concat(_toConsumableArray(options), [newOption]) : options\n });\n }\n }, {\n key: \"focus\",\n value: function focus() {\n this.select.focus();\n }\n }, {\n key: \"blur\",\n value: function blur() {\n this.select.blur();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var props = _extends({}, this.props);\n\n var options = this.state.options;\n return React.createElement(SelectComponent, _extends({}, props, {\n ref: function ref(_ref) {\n _this2.select = _ref;\n },\n options: options,\n onChange: this.onChange\n }));\n }\n }]);\n\n return Creatable;\n }(Component), _defineProperty(_class, \"defaultProps\", defaultProps$3), _temp;\n}; // TODO: do this in package entrypoint\n\nvar SelectCreatable = makeCreatableSelect(Select);\nvar Creatable = manageState(SelectCreatable);\n\nvar SelectCreatable$1 = makeCreatableSelect(Select);\nvar SelectCreatableState = manageState(SelectCreatable$1);\nvar AsyncCreatable = makeAsyncSelect(SelectCreatableState);\n\n// strip transition props off before spreading onto select component\n// note we need to be explicit about innerRef for flow\nvar AnimatedInput = function AnimatedInput(WrappedComponent) {\n return function (_ref) {\n var inProp = _ref.in,\n onExited = _ref.onExited,\n appear = _ref.appear,\n enter = _ref.enter,\n exit = _ref.exit,\n props = _objectWithoutProperties(_ref, [\"in\", \"onExited\", \"appear\", \"enter\", \"exit\"]);\n\n return React.createElement(WrappedComponent, props);\n };\n};\n\nvar Fade = function Fade(_ref) {\n var Tag = _ref.component,\n _ref$duration = _ref.duration,\n duration = _ref$duration === void 0 ? 1 : _ref$duration,\n inProp = _ref.in,\n onExited = _ref.onExited,\n props = _objectWithoutProperties(_ref, [\"component\", \"duration\", \"in\", \"onExited\"]);\n\n var transition = {\n entering: {\n opacity: 0\n },\n entered: {\n opacity: 1,\n transition: \"opacity \".concat(duration, \"ms\")\n },\n exiting: {\n opacity: 0\n },\n exited: {\n opacity: 0\n }\n };\n return React.createElement(Transition, {\n mountOnEnter: true,\n unmountOnExit: true,\n in: inProp,\n timeout: duration\n }, function (state) {\n var innerProps = {\n style: _objectSpread({}, transition[state])\n };\n return React.createElement(Tag, _extends({\n innerProps: innerProps\n }, props));\n });\n}; // ==============================\n// Collapse Transition\n// ==============================\n\nvar collapseDuration = 260;\n// wrap each MultiValue with a collapse transition; decreases width until\n// finally removing from DOM\nvar Collapse =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Collapse, _Component);\n\n function Collapse() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Collapse);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Collapse)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"duration\", collapseDuration);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"rafID\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n width: 'auto'\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"transition\", {\n exiting: {\n width: 0,\n transition: \"width \".concat(_this.duration, \"ms ease-out\")\n },\n exited: {\n width: 0\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getWidth\", function (ref) {\n if (ref && isNaN(_this.state.width)) {\n /*\n Here we're invoking requestAnimationFrame with a callback invoking our\n call to getBoundingClientRect and setState in order to resolve an edge case\n around portalling. Certain portalling solutions briefly remove children from the DOM\n before appending them to the target node. This is to avoid us trying to call getBoundingClientrect\n while the Select component is in this state.\n */\n // cannot use `offsetWidth` because it is rounded\n _this.rafID = window.requestAnimationFrame(function () {\n var _ref$getBoundingClien = ref.getBoundingClientRect(),\n width = _ref$getBoundingClien.width;\n\n _this.setState({\n width: width\n });\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getStyle\", function (width) {\n return {\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n width: width\n };\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getTransition\", function (state) {\n return _this.transition[state];\n });\n\n return _this;\n }\n\n _createClass(Collapse, [{\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.rafID) {\n window.cancelAnimationFrame(this.rafID);\n }\n } // width must be calculated; cannot transition from `undefined` to `number`\n\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _this$props = this.props,\n children = _this$props.children,\n inProp = _this$props.in;\n var width = this.state.width;\n return React.createElement(Transition, {\n enter: false,\n mountOnEnter: true,\n unmountOnExit: true,\n in: inProp,\n timeout: this.duration\n }, function (state) {\n var style = _objectSpread({}, _this2.getStyle(width), _this2.getTransition(state));\n\n return React.createElement(\"div\", {\n ref: _this2.getWidth,\n style: style\n }, children);\n });\n }\n }]);\n\n return Collapse;\n}(Component);\n\nvar AnimatedMultiValue = function AnimatedMultiValue(WrappedComponent) {\n return function (_ref) {\n var inProp = _ref.in,\n onExited = _ref.onExited,\n props = _objectWithoutProperties(_ref, [\"in\", \"onExited\"]);\n\n return React.createElement(Collapse, {\n in: inProp,\n onExited: onExited\n }, React.createElement(WrappedComponent, _extends({\n cropWithEllipsis: inProp\n }, props)));\n };\n};\n\nvar AnimatedPlaceholder = function AnimatedPlaceholder(WrappedComponent) {\n return function (props) {\n return React.createElement(Fade, _extends({\n component: WrappedComponent,\n duration: props.isMulti ? collapseDuration : 1\n }, props));\n };\n};\n\nvar AnimatedSingleValue = function AnimatedSingleValue(WrappedComponent) {\n return function (props) {\n return React.createElement(Fade, _extends({\n component: WrappedComponent\n }, props));\n };\n};\n\n// make ValueContainer a transition group\nvar AnimatedValueContainer = function AnimatedValueContainer(WrappedComponent) {\n return function (props) {\n return React.createElement(TransitionGroup, _extends({\n component: WrappedComponent\n }, props));\n };\n};\n\nvar makeAnimated = function makeAnimated() {\n var externalComponents = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var components$$1 = defaultComponents({\n components: externalComponents\n });\n\n var Input = components$$1.Input,\n MultiValue = components$$1.MultiValue,\n Placeholder = components$$1.Placeholder,\n SingleValue = components$$1.SingleValue,\n ValueContainer = components$$1.ValueContainer,\n rest = _objectWithoutProperties(components$$1, [\"Input\", \"MultiValue\", \"Placeholder\", \"SingleValue\", \"ValueContainer\"]);\n\n return _objectSpread({\n Input: AnimatedInput(Input),\n MultiValue: AnimatedMultiValue(MultiValue),\n Placeholder: AnimatedPlaceholder(Placeholder),\n SingleValue: AnimatedSingleValue(SingleValue),\n ValueContainer: AnimatedValueContainer(ValueContainer)\n }, rest);\n};\n\nvar AnimatedComponents = makeAnimated();\nvar Input$1 = AnimatedComponents.Input;\nvar MultiValue$1 = AnimatedComponents.MultiValue;\nvar Placeholder$1 = AnimatedComponents.Placeholder;\nvar SingleValue$1 = AnimatedComponents.SingleValue;\nvar ValueContainer$1 = AnimatedComponents.ValueContainer;\nvar index = memoizeOne(makeAnimated, exportedEqual);\n\nvar index$1 = manageState(Select);\n\nexport default index$1;\nexport { Select as SelectBase, Async, makeAsyncSelect, AsyncCreatable, Creatable, makeCreatableSelect, createFilter, index as makeAnimated, components, mergeStyles, defaultTheme };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-select/dist/react-select.esm.js\n// module id = 16\n// module chunks = 0 1","var g;\r\n\r\n// This works in non-strict mode\r\ng = (function() {\r\n\treturn this;\r\n})();\r\n\r\ntry {\r\n\t// This works if eval is allowed (see CSP)\r\n\tg = g || Function(\"return this\")() || (1,eval)(\"this\");\r\n} catch(e) {\r\n\t// This works if the window reference is available\r\n\tif(typeof window === \"object\")\r\n\t\tg = window;\r\n}\r\n\r\n// g can still be undefined, but nothing to do about it...\r\n// We return undefined, instead of nothing here, so it's\r\n// easier to handle this case. if(!global) { ...}\r\n\r\nmodule.exports = g;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/global.js\n// module id = 17\n// module chunks = 0 1","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-is/index.js\n// module id = 18\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;\n\nvar PropTypes = _interopRequireWildcard(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\n\nvar _reactLifecyclesCompat = require(\"react-lifecycles-compat\");\n\nvar _PropTypes = require(\"./utils/PropTypes\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar UNMOUNTED = 'unmounted';\nexports.UNMOUNTED = UNMOUNTED;\nvar EXITED = 'exited';\nexports.EXITED = EXITED;\nvar ENTERING = 'entering';\nexports.ENTERING = ENTERING;\nvar ENTERED = 'entered';\nexports.ENTERED = ENTERED;\nvar EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 0 },\n * entered: { opacity: 1 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * <Transition in={inProp} timeout={duration}>\n * {state => (\n * <div style={{\n * ...defaultStyle,\n * ...transitionStyles[state]\n * }}>\n * I'm a fade Transition!\n * </div>\n * )}\n * </Transition>\n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <Transition in={inProp} timeout={500}>\n * {state => (\n * // ...\n * )}\n * </Transition>\n * <button onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nexports.EXITING = EXITING;\n\nvar Transition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n var _proto = Transition.prototype;\n\n _proto.getChildContext = function getChildContext() {\n return {\n transitionGroup: null // allows for nested Transitions\n\n };\n };\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n }; // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n var node = _reactDom.default.findDOMNode(this);\n\n if (nextStatus === ENTERING) {\n this.performEnter(node, mounting);\n } else {\n this.performExit(node);\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(node, mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node);\n });\n return;\n }\n\n this.props.onEnter(node, appearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(node, appearing);\n\n _this2.onTransitionEnd(node, enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node, appearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit(node) {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED\n\n if (!exit) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n return;\n }\n\n this.props.onExit(node);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {\n this.setNextCallback(handler);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n this.props.addEndListener(node, this.nextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\"]); // filter props for Transtition\n\n\n delete childProps.in;\n delete childProps.mountOnEnter;\n delete childProps.unmountOnExit;\n delete childProps.appear;\n delete childProps.enter;\n delete childProps.exit;\n delete childProps.timeout;\n delete childProps.addEndListener;\n delete childProps.onEnter;\n delete childProps.onEntering;\n delete childProps.onEntered;\n delete childProps.onExit;\n delete childProps.onExiting;\n delete childProps.onExited;\n\n if (typeof children === 'function') {\n return children(status, childProps);\n }\n\n var child = _react.default.Children.only(children);\n\n return _react.default.cloneElement(child, childProps);\n };\n\n return Transition;\n}(_react.default.Component);\n\nTransition.contextTypes = {\n transitionGroup: PropTypes.object\n};\nTransition.childContextTypes = {\n transitionGroup: function transitionGroup() {}\n};\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`, `'unmounted'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * <Transition in={this.state.in} timeout={150}>\n * {state => (\n * <MyComponent className={`fade fade-${state}`} />\n * )}\n * </Transition>\n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * Normally a component is not transitioned if it is shown when the `<Transition>` component mounts.\n * If you want to transition on the first mount set `appear` to `true`, and the\n * component will transition in as soon as the `<Transition>` mounts.\n *\n * > Note: there are no specific \"appear\" states. `appear` only adds an additional `enter` transition.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = _PropTypes.timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. **Note:** Timeouts are still used as a fallback if provided.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func // Name the function so it is clearer in the documentation\n\n} : {};\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = 0;\nTransition.EXITED = 1;\nTransition.ENTERING = 2;\nTransition.ENTERED = 3;\nTransition.EXITING = 4;\n\nvar _default = (0, _reactLifecyclesCompat.polyfill)(Transition);\n\nexports.default = _default;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/Transition.js\n// module id = 19\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js\n// module id = 20\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.classNamesShape = exports.timeoutsShape = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar timeoutsShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({\n enter: _propTypes.default.number,\n exit: _propTypes.default.number,\n appear: _propTypes.default.number\n}).isRequired]) : null;\nexports.timeoutsShape = timeoutsShape;\nvar classNamesShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({\n enter: _propTypes.default.string,\n exit: _propTypes.default.string,\n active: _propTypes.default.string\n}), _propTypes.default.shape({\n enter: _propTypes.default.string,\n enterDone: _propTypes.default.string,\n enterActive: _propTypes.default.string,\n exit: _propTypes.default.string,\n exitDone: _propTypes.default.string,\n exitActive: _propTypes.default.string\n})]) : null;\nexports.classNamesShape = classNamesShape;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/utils/PropTypes.js\n// module id = 21\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactLifecyclesCompat = require(\"react-lifecycles-compat\");\n\nvar _ChildMapping = require(\"./utils/ChildMapping\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nvar values = Object.values || function (obj) {\n return Object.keys(obj).map(function (k) {\n return obj[k];\n });\n};\n\nvar defaultProps = {\n component: 'div',\n childFactory: function childFactory(child) {\n return child;\n }\n /**\n * The `<TransitionGroup>` component manages a set of transition components\n * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition\n * components, `<TransitionGroup>` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the `<TransitionGroup>`.\n *\n * Note that `<TransitionGroup>` does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\n};\n\nvar TransitionGroup =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(TransitionGroup, _React$Component);\n\n function TransitionGroup(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n\n var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Initial children should all be entering, dependent on appear\n\n\n _this.state = {\n handleExited: handleExited,\n firstRender: true\n };\n return _this;\n }\n\n var _proto = TransitionGroup.prototype;\n\n _proto.getChildContext = function getChildContext() {\n return {\n transitionGroup: {\n isMounting: !this.appeared\n }\n };\n };\n\n _proto.componentDidMount = function componentDidMount() {\n this.appeared = true;\n this.mounted = true;\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n };\n\n TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n var prevChildMapping = _ref.children,\n handleExited = _ref.handleExited,\n firstRender = _ref.firstRender;\n return {\n children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited),\n firstRender: false\n };\n };\n\n _proto.handleExited = function handleExited(child, node) {\n var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children);\n if (child.key in currentChildMapping) return;\n\n if (child.props.onExited) {\n child.props.onExited(node);\n }\n\n if (this.mounted) {\n this.setState(function (state) {\n var children = _extends({}, state.children);\n\n delete children[child.key];\n return {\n children: children\n };\n });\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n Component = _this$props.component,\n childFactory = _this$props.childFactory,\n props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n\n var children = values(this.state.children).map(childFactory);\n delete props.appear;\n delete props.enter;\n delete props.exit;\n\n if (Component === null) {\n return children;\n }\n\n return _react.default.createElement(Component, props, children);\n };\n\n return TransitionGroup;\n}(_react.default.Component);\n\nTransitionGroup.childContextTypes = {\n transitionGroup: _propTypes.default.object.isRequired\n};\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * `<TransitionGroup>` renders a `<div>` by default. You can change this\n * behavior by providing a `component` prop.\n * If you use React v16+ and would like to avoid a wrapping `<div>` element\n * you can pass in `component={null}`. This is useful if the wrapping div\n * borks your css styles.\n */\n component: _propTypes.default.any,\n\n /**\n * A set of `<Transition>` components, that are toggled `in` and out as they\n * leave. the `<TransitionGroup>` will inject specific transition props, so\n * remember to spread them through if you are wrapping the `<Transition>` as\n * with our `<Fade>` example.\n *\n * While this component is meant for multiple `Transition` or `CSSTransition`\n * children, sometimes you may want to have a single transition child with\n * content that you want to be transitioned out and in when you change it\n * (e.g. routes, images etc.) In that case you can change the `key` prop of\n * the transition child as you change its content, this will cause\n * `TransitionGroup` to transition the child out and back in.\n */\n children: _propTypes.default.node,\n\n /**\n * A convenience prop that enables or disables appear animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n appear: _propTypes.default.bool,\n\n /**\n * A convenience prop that enables or disables enter animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n enter: _propTypes.default.bool,\n\n /**\n * A convenience prop that enables or disables exit animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n exit: _propTypes.default.bool,\n\n /**\n * You may need to apply reactive updates to a child as it is exiting.\n * This is generally done by using `cloneElement` however in the case of an exiting\n * child the element has already been removed and not accessible to the consumer.\n *\n * If you do need to update a child as it leaves you can provide a `childFactory`\n * to wrap every child, even the ones that are leaving.\n *\n * @type Function(child: ReactElement) -> ReactElement\n */\n childFactory: _propTypes.default.func\n} : {};\nTransitionGroup.defaultProps = defaultProps;\n\nvar _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup);\n\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/TransitionGroup.js\n// module id = 22\n// module chunks = 0 1","module.exports = {};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iterators.js\n// module id = 23\n// module chunks = 0 1","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_fails.js\n// module id = 24\n// module chunks = 0 1","module.exports = true;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_library.js\n// module id = 25\n// module chunks = 0 1","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_property-desc.js\n// module id = 26\n// module chunks = 0 1","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys.js\n// module id = 27\n// module chunks = 0 1","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_uid.js\n// module id = 28\n// module chunks = 0 1","exports.f = {}.propertyIsEnumerable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-pie.js\n// module id = 29\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/json/stringify\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/json/stringify.js\n// module id = 30\n// module chunks = 0 1","var core = require('../../modules/_core');\nvar $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify });\nmodule.exports = function stringify(it) { // eslint-disable-line no-unused-vars\n return $JSON.stringify.apply($JSON, arguments);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/json/stringify.js\n// module id = 31\n// module chunks = 0 1","function areInputsEqual(newInputs, lastInputs) {\n if (newInputs.length !== lastInputs.length) {\n return false;\n }\n\n for (var i = 0; i < newInputs.length; i++) {\n if (newInputs[i] !== lastInputs[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction index (resultFn, isEqual) {\n if (isEqual === void 0) {\n isEqual = areInputsEqual;\n }\n\n var lastThis;\n var lastArgs = [];\n var lastResult;\n var calledOnce = false;\n\n var result = function result() {\n for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {\n newArgs[_key] = arguments[_key];\n }\n\n if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {\n return lastResult;\n }\n\n lastResult = resultFn.apply(this, newArgs);\n calledOnce = true;\n lastThis = this;\n lastArgs = newArgs;\n return lastResult;\n };\n\n return result;\n}\n\nexport default index;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/memoize-one/dist/memoize-one.esm.js\n// module id = 32\n// module chunks = 0 1","import createEmotion from 'create-emotion';\n\nvar context = typeof global !== 'undefined' ? global : {};\n\nvar _createEmotion = createEmotion(context),\n flush = _createEmotion.flush,\n hydrate = _createEmotion.hydrate,\n cx = _createEmotion.cx,\n merge = _createEmotion.merge,\n getRegisteredStyles = _createEmotion.getRegisteredStyles,\n injectGlobal = _createEmotion.injectGlobal,\n keyframes = _createEmotion.keyframes,\n css = _createEmotion.css,\n sheet = _createEmotion.sheet,\n caches = _createEmotion.caches;\n\nexport { flush, hydrate, cx, merge, getRegisteredStyles, injectGlobal, keyframes, css, sheet, caches };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/emotion/dist/index.esm.js\n// module id = 33\n// module chunks = 0 1","import memoize from '@emotion/memoize';\nimport unitless from '@emotion/unitless';\nimport hashString from '@emotion/hash';\nimport Stylis from '@emotion/stylis';\nimport stylisRuleSheet from 'stylis-rule-sheet';\n\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar processStyleName = memoize(function (styleName) {\n return styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\nvar processStyleValue = function processStyleValue(key, value) {\n if (value == null || typeof value === 'boolean') {\n return '';\n }\n\n if (unitless[key] !== 1 && key.charCodeAt(1) !== 45 && // custom properties\n !isNaN(value) && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\nif (process.env.NODE_ENV !== 'production') {\n var contentValuePattern = /(attr|calc|counters?|url)\\(/;\n var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];\n var oldProcessStyleValue = processStyleValue;\n\n processStyleValue = function processStyleValue(key, value) {\n if (key === 'content') {\n if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '\"' && value.charAt(0) !== \"'\")) {\n console.error(\"You seem to be using a value for 'content' without quotes, try replacing it with `content: '\\\"\" + value + \"\\\"'`\");\n }\n }\n\n return oldProcessStyleValue(key, value);\n };\n}\n\nvar classnames = function classnames(args) {\n var len = args.length;\n var i = 0;\n var cls = '';\n\n for (; i < len; i++) {\n var arg = args[i];\n if (arg == null) continue;\n var toAdd = void 0;\n\n switch (typeof arg) {\n case 'boolean':\n break;\n\n case 'function':\n if (process.env.NODE_ENV !== 'production') {\n console.error('Passing functions to cx is deprecated and will be removed in the next major version of Emotion.\\n' + 'Please call the function before passing it to cx.');\n }\n\n toAdd = classnames([arg()]);\n break;\n\n case 'object':\n {\n if (Array.isArray(arg)) {\n toAdd = classnames(arg);\n } else {\n toAdd = '';\n\n for (var k in arg) {\n if (arg[k] && k) {\n toAdd && (toAdd += ' ');\n toAdd += k;\n }\n }\n }\n\n break;\n }\n\n default:\n {\n toAdd = arg;\n }\n }\n\n if (toAdd) {\n cls && (cls += ' ');\n cls += toAdd;\n }\n }\n\n return cls;\n};\nvar isBrowser = typeof document !== 'undefined';\n\n/*\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n- 'polyfills' on server side\n\n// usage\n\nimport StyleSheet from 'glamor/lib/sheet'\nlet styleSheet = new StyleSheet()\n\nstyleSheet.inject()\n- 'injects' the stylesheet into the page (or into memory if on server)\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n// $FlowFixMe\nfunction sheetForTag(tag) {\n if (tag.sheet) {\n // $FlowFixMe\n return tag.sheet;\n } // this weirdness brought to you by firefox\n\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n if (document.styleSheets[i].ownerNode === tag) {\n // $FlowFixMe\n return document.styleSheets[i];\n }\n }\n}\n\nfunction makeStyleTag(opts) {\n var tag = document.createElement('style');\n tag.setAttribute('data-emotion', opts.key || '');\n\n if (opts.nonce !== undefined) {\n tag.setAttribute('nonce', opts.nonce);\n }\n\n tag.appendChild(document.createTextNode('')) // $FlowFixMe\n ;\n (opts.container !== undefined ? opts.container : document.head).appendChild(tag);\n return tag;\n}\n\nvar StyleSheet =\n/*#__PURE__*/\nfunction () {\n function StyleSheet(options) {\n this.isSpeedy = process.env.NODE_ENV === 'production'; // the big drawback here is that the css won't be editable in devtools\n\n this.tags = [];\n this.ctr = 0;\n this.opts = options;\n }\n\n var _proto = StyleSheet.prototype;\n\n _proto.inject = function inject() {\n if (this.injected) {\n throw new Error('already injected!');\n }\n\n this.tags[0] = makeStyleTag(this.opts);\n this.injected = true;\n };\n\n _proto.speedy = function speedy(bool) {\n if (this.ctr !== 0) {\n // cannot change speedy mode after inserting any rule to sheet. Either call speedy(${bool}) earlier in your app, or call flush() before speedy(${bool})\n throw new Error(\"cannot change speedy now\");\n }\n\n this.isSpeedy = !!bool;\n };\n\n _proto.insert = function insert(rule, sourceMap) {\n // this is the ultrafast version, works across browsers\n if (this.isSpeedy) {\n var tag = this.tags[this.tags.length - 1];\n var sheet = sheetForTag(tag);\n\n try {\n sheet.insertRule(rule, sheet.cssRules.length);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('illegal rule', rule); // eslint-disable-line no-console\n }\n }\n } else {\n var _tag = makeStyleTag(this.opts);\n\n this.tags.push(_tag);\n\n _tag.appendChild(document.createTextNode(rule + (sourceMap || '')));\n }\n\n this.ctr++;\n\n if (this.ctr % 65000 === 0) {\n this.tags.push(makeStyleTag(this.opts));\n }\n };\n\n _proto.flush = function flush() {\n // $FlowFixMe\n this.tags.forEach(function (tag) {\n return tag.parentNode.removeChild(tag);\n });\n this.tags = [];\n this.ctr = 0; // todo - look for remnants in document.styleSheets\n\n this.injected = false;\n };\n\n return StyleSheet;\n}();\n\nfunction createEmotion(context, options) {\n if (context.__SECRET_EMOTION__ !== undefined) {\n return context.__SECRET_EMOTION__;\n }\n\n if (options === undefined) options = {};\n var key = options.key || 'css';\n\n if (process.env.NODE_ENV !== 'production') {\n if (/[^a-z-]/.test(key)) {\n throw new Error(\"Emotion key must only contain lower case alphabetical characters and - but \\\"\" + key + \"\\\" was passed\");\n }\n }\n\n var current;\n\n function insertRule(rule) {\n current += rule;\n\n if (isBrowser) {\n sheet.insert(rule, currentSourceMap);\n }\n }\n\n var insertionPlugin = stylisRuleSheet(insertRule);\n var stylisOptions;\n\n if (options.prefix !== undefined) {\n stylisOptions = {\n prefix: options.prefix\n };\n }\n\n var caches = {\n registered: {},\n inserted: {},\n nonce: options.nonce,\n key: key\n };\n var sheet = new StyleSheet(options);\n\n if (isBrowser) {\n // 🚀\n sheet.inject();\n }\n\n var stylis = new Stylis(stylisOptions);\n stylis.use(options.stylisPlugins)(insertionPlugin);\n var currentSourceMap = '';\n\n function handleInterpolation(interpolation, couldBeSelectorInterpolation) {\n if (interpolation == null) {\n return '';\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n return '';\n\n case 'function':\n if (interpolation.__emotion_styles !== undefined) {\n var selector = interpolation.toString();\n\n if (selector === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {\n throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');\n }\n\n return selector;\n }\n\n if (this === undefined && process.env.NODE_ENV !== 'production') {\n console.error('Interpolating functions in css calls is deprecated and will be removed in the next major version of Emotion.\\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\\n' + 'It can be called directly with props or interpolated in a styled call like this\\n' + \"let SomeComponent = styled('div')`${dynamicStyle}`\");\n }\n\n return handleInterpolation.call(this, this === undefined ? interpolation() : // $FlowFixMe\n interpolation(this.mergedProps, this.context), couldBeSelectorInterpolation);\n\n case 'object':\n return createStringFromObject.call(this, interpolation);\n\n default:\n var cached = caches.registered[interpolation];\n return couldBeSelectorInterpolation === false && cached !== undefined ? cached : interpolation;\n }\n }\n\n var objectToStringCache = new WeakMap();\n\n function createStringFromObject(obj) {\n if (objectToStringCache.has(obj)) {\n // $FlowFixMe\n return objectToStringCache.get(obj);\n }\n\n var string = '';\n\n if (Array.isArray(obj)) {\n obj.forEach(function (interpolation) {\n string += handleInterpolation.call(this, interpolation, false);\n }, this);\n } else {\n Object.keys(obj).forEach(function (key) {\n if (typeof obj[key] !== 'object') {\n if (caches.registered[obj[key]] !== undefined) {\n string += key + \"{\" + caches.registered[obj[key]] + \"}\";\n } else {\n string += processStyleName(key) + \":\" + processStyleValue(key, obj[key]) + \";\";\n }\n } else {\n if (key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {\n throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');\n }\n\n if (Array.isArray(obj[key]) && typeof obj[key][0] === 'string' && caches.registered[obj[key][0]] === undefined) {\n obj[key].forEach(function (value) {\n string += processStyleName(key) + \":\" + processStyleValue(key, value) + \";\";\n });\n } else {\n string += key + \"{\" + handleInterpolation.call(this, obj[key], false) + \"}\";\n }\n }\n }, this);\n }\n\n objectToStringCache.set(obj, string);\n return string;\n }\n\n var name;\n var stylesWithLabel;\n var labelPattern = /label:\\s*([^\\s;\\n{]+)\\s*;/g;\n\n var createClassName = function createClassName(styles, identifierName) {\n return hashString(styles + identifierName) + identifierName;\n };\n\n if (process.env.NODE_ENV !== 'production') {\n var oldCreateClassName = createClassName;\n var sourceMappingUrlPattern = /\\/\\*#\\ssourceMappingURL=data:application\\/json;\\S+\\s+\\*\\//g;\n\n createClassName = function createClassName(styles, identifierName) {\n return oldCreateClassName(styles.replace(sourceMappingUrlPattern, function (sourceMap) {\n currentSourceMap = sourceMap;\n return '';\n }), identifierName);\n };\n }\n\n var createStyles = function createStyles(strings) {\n var stringMode = true;\n var styles = '';\n var identifierName = '';\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation.call(this, strings, false);\n } else {\n styles += strings[0];\n }\n\n for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n interpolations[_key - 1] = arguments[_key];\n }\n\n interpolations.forEach(function (interpolation, i) {\n styles += handleInterpolation.call(this, interpolation, styles.charCodeAt(styles.length - 1) === 46 // .\n );\n\n if (stringMode === true && strings[i + 1] !== undefined) {\n styles += strings[i + 1];\n }\n }, this);\n stylesWithLabel = styles;\n styles = styles.replace(labelPattern, function (match, p1) {\n identifierName += \"-\" + p1;\n return '';\n });\n name = createClassName(styles, identifierName);\n return styles;\n };\n\n if (process.env.NODE_ENV !== 'production') {\n var oldStylis = stylis;\n\n stylis = function stylis(selector, styles) {\n oldStylis(selector, styles);\n currentSourceMap = '';\n };\n }\n\n function insert(scope, styles) {\n if (caches.inserted[name] === undefined) {\n current = '';\n stylis(scope, styles);\n caches.inserted[name] = current;\n }\n }\n\n var css = function css() {\n var styles = createStyles.apply(this, arguments);\n var selector = key + \"-\" + name;\n\n if (caches.registered[selector] === undefined) {\n caches.registered[selector] = stylesWithLabel;\n }\n\n insert(\".\" + selector, styles);\n return selector;\n };\n\n var keyframes = function keyframes() {\n var styles = createStyles.apply(this, arguments);\n var animation = \"animation-\" + name;\n insert('', \"@keyframes \" + animation + \"{\" + styles + \"}\");\n return animation;\n };\n\n var injectGlobal = function injectGlobal() {\n var styles = createStyles.apply(this, arguments);\n insert('', styles);\n };\n\n function getRegisteredStyles(registeredStyles, classNames) {\n var rawClassName = '';\n classNames.split(' ').forEach(function (className) {\n if (caches.registered[className] !== undefined) {\n registeredStyles.push(className);\n } else {\n rawClassName += className + \" \";\n }\n });\n return rawClassName;\n }\n\n function merge(className, sourceMap) {\n var registeredStyles = [];\n var rawClassName = getRegisteredStyles(registeredStyles, className);\n\n if (registeredStyles.length < 2) {\n return className;\n }\n\n return rawClassName + css(registeredStyles, sourceMap);\n }\n\n function cx() {\n for (var _len2 = arguments.length, classNames = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n classNames[_key2] = arguments[_key2];\n }\n\n return merge(classnames(classNames));\n }\n\n function hydrateSingleId(id) {\n caches.inserted[id] = true;\n }\n\n function hydrate(ids) {\n ids.forEach(hydrateSingleId);\n }\n\n function flush() {\n if (isBrowser) {\n sheet.flush();\n sheet.inject();\n }\n\n caches.inserted = {};\n caches.registered = {};\n }\n\n if (isBrowser) {\n var chunks = document.querySelectorAll(\"[data-emotion-\" + key + \"]\");\n Array.prototype.forEach.call(chunks, function (node) {\n // $FlowFixMe\n sheet.tags[0].parentNode.insertBefore(node, sheet.tags[0]); // $FlowFixMe\n\n node.getAttribute(\"data-emotion-\" + key).split(' ').forEach(hydrateSingleId);\n });\n }\n\n var emotion = {\n flush: flush,\n hydrate: hydrate,\n cx: cx,\n merge: merge,\n getRegisteredStyles: getRegisteredStyles,\n injectGlobal: injectGlobal,\n keyframes: keyframes,\n css: css,\n sheet: sheet,\n caches: caches\n };\n context.__SECRET_EMOTION__ = emotion;\n return emotion;\n}\n\nexport default createEmotion;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/create-emotion/dist/index.esm.js\n// module id = 34\n// module chunks = 0 1","function memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport default memoize;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@emotion/memoize/dist/memoize.esm.js\n// module id = 35\n// module chunks = 0 1","var unitlessKeys = {\n animationIterationCount: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport default unitlessKeys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@emotion/unitless/dist/unitless.esm.js\n// module id = 36\n// module chunks = 0 1","/* eslint-disable */\n// murmurhash2 via https://github.com/garycourt/murmurhash-js/blob/master/murmurhash2_gc.js\nfunction murmurhash2_32_gc(str) {\n var l = str.length,\n h = l ^ l,\n i = 0,\n k;\n\n while (l >= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n k ^= k >>> 24;\n k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16) ^ k;\n l -= 4;\n ++i;\n }\n\n switch (l) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n }\n\n h ^= h >>> 13;\n h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n h ^= h >>> 15;\n return (h >>> 0).toString(36);\n}\n\nexport default murmurhash2_32_gc;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@emotion/hash/dist/hash.esm.js\n// module id = 37\n// module chunks = 0 1","function stylis_min (W) {\n function M(d, c, e, h, a) {\n for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {\n g = e.charCodeAt(l);\n l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);\n\n if (0 === b + n + v + m) {\n if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {\n switch (g) {\n case 32:\n case 9:\n case 59:\n case 13:\n case 10:\n break;\n\n default:\n f += e.charAt(l);\n }\n\n g = 59;\n }\n\n switch (g) {\n case 123:\n f = f.trim();\n q = f.charCodeAt(0);\n k = 1;\n\n for (t = ++l; l < B;) {\n switch (g = e.charCodeAt(l)) {\n case 123:\n k++;\n break;\n\n case 125:\n k--;\n break;\n\n case 47:\n switch (g = e.charCodeAt(l + 1)) {\n case 42:\n case 47:\n a: {\n for (u = l + 1; u < J; ++u) {\n switch (e.charCodeAt(u)) {\n case 47:\n if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {\n l = u + 1;\n break a;\n }\n\n break;\n\n case 10:\n if (47 === g) {\n l = u + 1;\n break a;\n }\n\n }\n }\n\n l = u;\n }\n\n }\n\n break;\n\n case 91:\n g++;\n\n case 40:\n g++;\n\n case 34:\n case 39:\n for (; l++ < J && e.charCodeAt(l) !== g;) {\n }\n\n }\n\n if (0 === k) break;\n l++;\n }\n\n k = e.substring(t, l);\n 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));\n\n switch (q) {\n case 64:\n 0 < r && (f = f.replace(N, ''));\n g = f.charCodeAt(1);\n\n switch (g) {\n case 100:\n case 109:\n case 115:\n case 45:\n r = c;\n break;\n\n default:\n r = O;\n }\n\n k = M(c, r, k, g, a + 1);\n t = k.length;\n 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));\n if (0 < t) switch (g) {\n case 115:\n f = f.replace(da, ea);\n\n case 100:\n case 109:\n case 45:\n k = f + '{' + k + '}';\n break;\n\n case 107:\n f = f.replace(fa, '$1 $2');\n k = f + '{' + k + '}';\n k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;\n break;\n\n default:\n k = f + k, 112 === h && (k = (p += k, ''));\n } else k = '';\n break;\n\n default:\n k = M(c, X(c, f, I), k, h, a + 1);\n }\n\n F += k;\n k = I = r = u = q = 0;\n f = '';\n g = e.charCodeAt(++l);\n break;\n\n case 125:\n case 59:\n f = (0 < r ? f.replace(N, '') : f).trim();\n if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\\x00\\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {\n case 0:\n break;\n\n case 64:\n if (105 === g || 99 === g) {\n G += f + e.charAt(l);\n break;\n }\n\n default:\n 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));\n }\n I = r = u = q = 0;\n f = '';\n g = e.charCodeAt(++l);\n }\n }\n\n switch (g) {\n case 13:\n case 10:\n 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\\x00');\n 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);\n z = 1;\n D++;\n break;\n\n case 59:\n case 125:\n if (0 === b + n + v + m) {\n z++;\n break;\n }\n\n default:\n z++;\n y = e.charAt(l);\n\n switch (g) {\n case 9:\n case 32:\n if (0 === n + m + b) switch (x) {\n case 44:\n case 58:\n case 9:\n case 32:\n y = '';\n break;\n\n default:\n 32 !== g && (y = ' ');\n }\n break;\n\n case 0:\n y = '\\\\0';\n break;\n\n case 12:\n y = '\\\\f';\n break;\n\n case 11:\n y = '\\\\v';\n break;\n\n case 38:\n 0 === n + b + m && (r = I = 1, y = '\\f' + y);\n break;\n\n case 108:\n if (0 === n + b + m + E && 0 < u) switch (l - u) {\n case 2:\n 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);\n\n case 8:\n 111 === K && (E = K);\n }\n break;\n\n case 58:\n 0 === n + b + m && (u = l);\n break;\n\n case 44:\n 0 === b + v + n + m && (r = 1, y += '\\r');\n break;\n\n case 34:\n case 39:\n 0 === b && (n = n === g ? 0 : 0 === n ? g : n);\n break;\n\n case 91:\n 0 === n + b + v && m++;\n break;\n\n case 93:\n 0 === n + b + v && m--;\n break;\n\n case 41:\n 0 === n + b + m && v--;\n break;\n\n case 40:\n if (0 === n + b + m) {\n if (0 === q) switch (2 * x + 3 * K) {\n case 533:\n break;\n\n default:\n q = 1;\n }\n v++;\n }\n\n break;\n\n case 64:\n 0 === b + v + n + m + u + k && (k = 1);\n break;\n\n case 42:\n case 47:\n if (!(0 < n + m + v)) switch (b) {\n case 0:\n switch (2 * g + 3 * e.charCodeAt(l + 1)) {\n case 235:\n b = 47;\n break;\n\n case 220:\n t = l, b = 42;\n }\n\n break;\n\n case 42:\n 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);\n }\n }\n\n 0 === b && (f += y);\n }\n\n K = x;\n x = g;\n l++;\n }\n\n t = p.length;\n\n if (0 < t) {\n r = c;\n if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;\n p = r.join(',') + '{' + p + '}';\n\n if (0 !== w * E) {\n 2 !== w || L(p, 2) || (E = 0);\n\n switch (E) {\n case 111:\n p = p.replace(ha, ':-moz-$1') + p;\n break;\n\n case 112:\n p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;\n }\n\n E = 0;\n }\n }\n\n return G + p + F;\n }\n\n function X(d, c, e) {\n var h = c.trim().split(ia);\n c = h;\n var a = h.length,\n m = d.length;\n\n switch (m) {\n case 0:\n case 1:\n var b = 0;\n\n for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {\n c[b] = Z(d, c[b], e, m).trim();\n }\n\n break;\n\n default:\n var v = b = 0;\n\n for (c = []; b < a; ++b) {\n for (var n = 0; n < m; ++n) {\n c[v++] = Z(d[n] + ' ', h[b], e, m).trim();\n }\n }\n\n }\n\n return c;\n }\n\n function Z(d, c, e) {\n var h = c.charCodeAt(0);\n 33 > h && (h = (c = c.trim()).charCodeAt(0));\n\n switch (h) {\n case 38:\n return c.replace(F, '$1' + d.trim());\n\n case 58:\n return d.trim() + c.replace(F, '$1' + d.trim());\n\n default:\n if (0 < 1 * e && 0 < c.indexOf('\\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());\n }\n\n return d + c;\n }\n\n function P(d, c, e, h) {\n var a = d + ';',\n m = 2 * c + 3 * e + 4 * h;\n\n if (944 === m) {\n d = a.indexOf(':', 9) + 1;\n var b = a.substring(d, a.length - 1).trim();\n b = a.substring(0, d).trim() + b + ';';\n return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;\n }\n\n if (0 === w || 2 === w && !L(a, 1)) return a;\n\n switch (m) {\n case 1015:\n return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;\n\n case 951:\n return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;\n\n case 963:\n return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;\n\n case 1009:\n if (100 !== a.charCodeAt(4)) break;\n\n case 969:\n case 942:\n return '-webkit-' + a + a;\n\n case 978:\n return '-webkit-' + a + '-moz-' + a + a;\n\n case 1019:\n case 983:\n return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;\n\n case 883:\n if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;\n if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;\n break;\n\n case 932:\n if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {\n case 103:\n return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;\n\n case 115:\n return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;\n\n case 98:\n return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;\n }\n return '-webkit-' + a + '-ms-' + a + a;\n\n case 964:\n return '-webkit-' + a + '-ms-flex-' + a + a;\n\n case 1023:\n if (99 !== a.charCodeAt(8)) break;\n b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');\n return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;\n\n case 1005:\n return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;\n\n case 1e3:\n b = a.substring(13).trim();\n c = b.indexOf('-') + 1;\n\n switch (b.charCodeAt(0) + b.charCodeAt(c)) {\n case 226:\n b = a.replace(G, 'tb');\n break;\n\n case 232:\n b = a.replace(G, 'tb-rl');\n break;\n\n case 220:\n b = a.replace(G, 'lr');\n break;\n\n default:\n return a;\n }\n\n return '-webkit-' + a + '-ms-' + b + a;\n\n case 1017:\n if (-1 === a.indexOf('sticky', 9)) break;\n\n case 975:\n c = (a = d).length - 10;\n b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();\n\n switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {\n case 203:\n if (111 > b.charCodeAt(8)) break;\n\n case 115:\n a = a.replace(b, '-webkit-' + b) + ';' + a;\n break;\n\n case 207:\n case 102:\n a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;\n }\n\n return a + ';';\n\n case 938:\n if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {\n case 105:\n return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;\n\n case 115:\n return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;\n\n default:\n return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;\n }\n break;\n\n case 973:\n case 989:\n if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;\n\n case 931:\n case 953:\n if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;\n break;\n\n case 962:\n if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;\n }\n\n return a;\n }\n\n function L(d, c) {\n var e = d.indexOf(1 === c ? ':' : '{'),\n h = d.substring(0, 3 !== c ? e : 10);\n e = d.substring(e + 1, d.length - 1);\n return R(2 !== c ? h : h.replace(na, '$1'), e, c);\n }\n\n function ea(d, c) {\n var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));\n return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';\n }\n\n function H(d, c, e, h, a, m, b, v, n, q) {\n for (var g = 0, x = c, w; g < A; ++g) {\n switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {\n case void 0:\n case !1:\n case !0:\n case null:\n break;\n\n default:\n x = w;\n }\n }\n\n if (x !== c) return x;\n }\n\n function T(d) {\n switch (d) {\n case void 0:\n case null:\n A = S.length = 0;\n break;\n\n default:\n switch (d.constructor) {\n case Array:\n for (var c = 0, e = d.length; c < e; ++c) {\n T(d[c]);\n }\n\n break;\n\n case Function:\n S[A++] = d;\n break;\n\n case Boolean:\n Y = !!d | 0;\n }\n\n }\n\n return T;\n }\n\n function U(d) {\n d = d.prefix;\n void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);\n return U;\n }\n\n function B(d, c) {\n var e = d;\n 33 > e.charCodeAt(0) && (e = e.trim());\n V = e;\n e = [V];\n\n if (0 < A) {\n var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);\n void 0 !== h && 'string' === typeof h && (c = h);\n }\n\n var a = M(O, e, c, 0, 0);\n 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));\n V = '';\n E = 0;\n z = D = 1;\n return a;\n }\n\n var ca = /^\\0+/g,\n N = /[\\0\\r\\f]/g,\n aa = /: */g,\n ka = /zoo|gra/,\n ma = /([,: ])(transform)/g,\n ia = /,\\r+?/g,\n F = /([\\t\\r\\n ])*\\f?&/g,\n fa = /@(k\\w+)\\s*(\\S*)\\s*/,\n Q = /::(place)/g,\n ha = /:(read-only)/g,\n G = /[svh]\\w+-[tblr]{2}/,\n da = /\\(\\s*(.*)\\s*\\)/g,\n oa = /([\\s\\S]*?);/g,\n ba = /-self|flex-/g,\n na = /[^]*?(:[rp][el]a[\\w-]+)[^]*/,\n la = /stretch|:\\s*\\w+\\-(?:conte|avail)/,\n ja = /([^-])(image-set\\()/,\n z = 1,\n D = 1,\n E = 0,\n w = 1,\n O = [],\n S = [],\n A = 0,\n R = null,\n Y = 0,\n V = '';\n B.use = T;\n B.set = U;\n void 0 !== W && U(W);\n return B;\n}\n\nexport default stylis_min;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@emotion/stylis/dist/stylis.esm.js\n// module id = 38\n// module chunks = 0 1","(function (factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? (module['exports'] = factory()) :\n\t\ttypeof define === 'function' && define['amd'] ? define(factory()) :\n\t\t\t(window['stylisRuleSheet'] = factory())\n}(function () {\n\n\t'use strict'\n\n\treturn function (insertRule) {\n\t\tvar delimiter = '/*|*/'\n\t\tvar needle = delimiter+'}'\n\n\t\tfunction toSheet (block) {\n\t\t\tif (block)\n\t\t\t\ttry {\n\t\t\t\t\tinsertRule(block + '}')\n\t\t\t\t} catch (e) {}\n\t\t}\n\n\t\treturn function ruleSheet (context, content, selectors, parents, line, column, length, ns, depth, at) {\n\t\t\tswitch (context) {\n\t\t\t\t// property\n\t\t\t\tcase 1:\n\t\t\t\t\t// @import\n\t\t\t\t\tif (depth === 0 && content.charCodeAt(0) === 64)\n\t\t\t\t\t\treturn insertRule(content+';'), ''\n\t\t\t\t\tbreak\n\t\t\t\t// selector\n\t\t\t\tcase 2:\n\t\t\t\t\tif (ns === 0)\n\t\t\t\t\t\treturn content + delimiter\n\t\t\t\t\tbreak\n\t\t\t\t// at-rule\n\t\t\t\tcase 3:\n\t\t\t\t\tswitch (ns) {\n\t\t\t\t\t\t// @font-face, @page\n\t\t\t\t\t\tcase 102:\n\t\t\t\t\t\tcase 112:\n\t\t\t\t\t\t\treturn insertRule(selectors[0]+content), ''\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\treturn content + (at === 0 ? delimiter : '')\n\t\t\t\t\t}\n\t\t\t\tcase -2:\n\t\t\t\t\tcontent.split(needle).forEach(toSheet)\n\t\t\t}\n\t\t}\n\t}\n}))\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/stylis-rule-sheet/index.js\n// module id = 39\n// module chunks = 0 1","/** @license React v16.8.6\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';Object.defineProperty(exports,\"__esModule\",{value:!0});\nvar b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?Symbol.for(\"react.memo\"):\n60115,r=b?Symbol.for(\"react.lazy\"):60116;function t(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}exports.typeOf=t;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;\nexports.Fragment=e;exports.Lazy=r;exports.Memo=q;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||\"object\"===typeof a&&null!==a&&(a.$$typeof===r||a.$$typeof===q||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n)};exports.isAsyncMode=function(a){return v(a)||t(a)===l};exports.isConcurrentMode=v;exports.isContextConsumer=function(a){return t(a)===k};\nexports.isContextProvider=function(a){return t(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return t(a)===n};exports.isFragment=function(a){return t(a)===e};exports.isLazy=function(a){return t(a)===r};exports.isMemo=function(a){return t(a)===q};exports.isPortal=function(a){return t(a)===d};exports.isProfiler=function(a){return t(a)===g};exports.isStrictMode=function(a){return t(a)===f};\nexports.isSuspense=function(a){return t(a)===p};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-is/cjs/react-is.production.min.js\n// module id = 40\n// module chunks = 0 1","/** @license React v16.8.6\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\n\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' ||\n // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);\n}\n\n/**\n * Forked from fbjs/warning:\n * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js\n *\n * Only change is we use console.warn instead of console.error,\n * and do nothing when 'console' is not supported.\n * This really simplifies the code.\n * ---\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar lowPriorityWarning = function () {};\n\n{\n var printWarning = function (format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.warn(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n lowPriorityWarning = function (condition, format) {\n if (format === undefined) {\n throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nvar lowPriorityWarning$1 = lowPriorityWarning;\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n default:\n return $$typeof;\n }\n }\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\n\n// AsyncMode is deprecated along with isAsyncMode\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\n\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\n\n// AsyncMode should be deprecated\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true;\n lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.typeOf = typeOf;\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isValidElementType = isValidElementType;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\n })();\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-is/cjs/react-is.development.js\n// module id = 41\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar has = Function.call.bind(Object.prototype.hasOwnProperty);\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/factoryWithTypeCheckers.js\n// module id = 42\n// module chunks = 0 1","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/object-assign/index.js\n// module id = 43\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/checkPropTypes.js\n// module id = 44\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/factoryWithThrowingShims.js\n// module id = 45\n// module chunks = 0 1","var now = require('performance-now')\n , root = typeof window === 'undefined' ? global : window\n , vendors = ['moz', 'webkit']\n , suffix = 'AnimationFrame'\n , raf = root['request' + suffix]\n , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]\n\nfor(var i = 0; !raf && i < vendors.length; i++) {\n raf = root[vendors[i] + 'Request' + suffix]\n caf = root[vendors[i] + 'Cancel' + suffix]\n || root[vendors[i] + 'CancelRequest' + suffix]\n}\n\n// Some versions of FF have rAF but not cAF\nif(!raf || !caf) {\n var last = 0\n , id = 0\n , queue = []\n , frameDuration = 1000 / 60\n\n raf = function(callback) {\n if(queue.length === 0) {\n var _now = now()\n , next = Math.max(0, frameDuration - (_now - last))\n last = next + _now\n setTimeout(function() {\n var cp = queue.slice(0)\n // Clear queue here to prevent\n // callbacks from appending listeners\n // to the current frame's queue\n queue.length = 0\n for(var i = 0; i < cp.length; i++) {\n if(!cp[i].cancelled) {\n try{\n cp[i].callback(last)\n } catch(e) {\n setTimeout(function() { throw e }, 0)\n }\n }\n }\n }, Math.round(next))\n }\n queue.push({\n handle: ++id,\n callback: callback,\n cancelled: false\n })\n return id\n }\n\n caf = function(handle) {\n for(var i = 0; i < queue.length; i++) {\n if(queue[i].handle === handle) {\n queue[i].cancelled = true\n }\n }\n }\n}\n\nmodule.exports = function(fn) {\n // Wrap in a new function to prevent\n // `cancel` potentially being assigned\n // to the native rAF function\n return raf.call(root, fn)\n}\nmodule.exports.cancel = function() {\n caf.apply(root, arguments)\n}\nmodule.exports.polyfill = function(object) {\n if (!object) {\n object = root;\n }\n object.requestAnimationFrame = raf\n object.cancelAnimationFrame = caf\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/raf/index.js\n// module id = 46\n// module chunks = 0 1","// Generated by CoffeeScript 1.12.2\n(function() {\n var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;\n\n if ((typeof performance !== \"undefined\" && performance !== null) && performance.now) {\n module.exports = function() {\n return performance.now();\n };\n } else if ((typeof process !== \"undefined\" && process !== null) && process.hrtime) {\n module.exports = function() {\n return (getNanoSeconds() - nodeLoadTime) / 1e6;\n };\n hrtime = process.hrtime;\n getNanoSeconds = function() {\n var hr;\n hr = hrtime();\n return hr[0] * 1e9 + hr[1];\n };\n moduleLoadTime = getNanoSeconds();\n upTime = process.uptime() * 1e9;\n nodeLoadTime = moduleLoadTime - upTime;\n } else if (Date.now) {\n module.exports = function() {\n return Date.now() - loadTime;\n };\n loadTime = Date.now();\n } else {\n module.exports = function() {\n return new Date().getTime() - loadTime;\n };\n loadTime = new Date().getTime();\n }\n\n}).call(this);\n\n//# sourceMappingURL=performance-now.js.map\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/performance-now/lib/performance-now.js\n// module id = 47\n// module chunks = 0 1","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar sizerStyle = {\n\tposition: 'absolute',\n\ttop: 0,\n\tleft: 0,\n\tvisibility: 'hidden',\n\theight: 0,\n\toverflow: 'scroll',\n\twhiteSpace: 'pre'\n};\n\nvar INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth'];\n\nvar cleanInputProps = function cleanInputProps(inputProps) {\n\tINPUT_PROPS_BLACKLIST.forEach(function (field) {\n\t\treturn delete inputProps[field];\n\t});\n\treturn inputProps;\n};\n\nvar copyStyles = function copyStyles(styles, node) {\n\tnode.style.fontSize = styles.fontSize;\n\tnode.style.fontFamily = styles.fontFamily;\n\tnode.style.fontWeight = styles.fontWeight;\n\tnode.style.fontStyle = styles.fontStyle;\n\tnode.style.letterSpacing = styles.letterSpacing;\n\tnode.style.textTransform = styles.textTransform;\n};\n\nvar isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\\/|Edge\\//.test(window.navigator.userAgent) : false;\n\nvar generateId = function generateId() {\n\t// we only need an auto-generated ID for stylesheet injection, which is only\n\t// used for IE. so if the browser is not IE, this should return undefined.\n\treturn isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined;\n};\n\nvar AutosizeInput = function (_Component) {\n\t_inherits(AutosizeInput, _Component);\n\n\tfunction AutosizeInput(props) {\n\t\t_classCallCheck(this, AutosizeInput);\n\n\t\tvar _this = _possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props));\n\n\t\t_this.inputRef = function (el) {\n\t\t\t_this.input = el;\n\t\t\tif (typeof _this.props.inputRef === 'function') {\n\t\t\t\t_this.props.inputRef(el);\n\t\t\t}\n\t\t};\n\n\t\t_this.placeHolderSizerRef = function (el) {\n\t\t\t_this.placeHolderSizer = el;\n\t\t};\n\n\t\t_this.sizerRef = function (el) {\n\t\t\t_this.sizer = el;\n\t\t};\n\n\t\t_this.state = {\n\t\t\tinputWidth: props.minWidth,\n\t\t\tinputId: props.id || generateId()\n\t\t};\n\t\treturn _this;\n\t}\n\n\t_createClass(AutosizeInput, [{\n\t\tkey: 'componentDidMount',\n\t\tvalue: function componentDidMount() {\n\t\t\tthis.mounted = true;\n\t\t\tthis.copyInputStyles();\n\t\t\tthis.updateInputWidth();\n\t\t}\n\t}, {\n\t\tkey: 'componentWillReceiveProps',\n\t\tvalue: function componentWillReceiveProps(nextProps) {\n\t\t\tvar id = nextProps.id;\n\n\t\t\tif (id !== this.props.id) {\n\t\t\t\tthis.setState({ inputId: id || generateId() });\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: 'componentDidUpdate',\n\t\tvalue: function componentDidUpdate(prevProps, prevState) {\n\t\t\tif (prevState.inputWidth !== this.state.inputWidth) {\n\t\t\t\tif (typeof this.props.onAutosize === 'function') {\n\t\t\t\t\tthis.props.onAutosize(this.state.inputWidth);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.updateInputWidth();\n\t\t}\n\t}, {\n\t\tkey: 'componentWillUnmount',\n\t\tvalue: function componentWillUnmount() {\n\t\t\tthis.mounted = false;\n\t\t}\n\t}, {\n\t\tkey: 'copyInputStyles',\n\t\tvalue: function copyInputStyles() {\n\t\t\tif (!this.mounted || !window.getComputedStyle) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar inputStyles = this.input && window.getComputedStyle(this.input);\n\t\t\tif (!inputStyles) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcopyStyles(inputStyles, this.sizer);\n\t\t\tif (this.placeHolderSizer) {\n\t\t\t\tcopyStyles(inputStyles, this.placeHolderSizer);\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: 'updateInputWidth',\n\t\tvalue: function updateInputWidth() {\n\t\t\tif (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar newInputWidth = void 0;\n\t\t\tif (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) {\n\t\t\t\tnewInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2;\n\t\t\t} else {\n\t\t\t\tnewInputWidth = this.sizer.scrollWidth + 2;\n\t\t\t}\n\t\t\t// add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI\n\t\t\tvar extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0;\n\t\t\tnewInputWidth += extraWidth;\n\t\t\tif (newInputWidth < this.props.minWidth) {\n\t\t\t\tnewInputWidth = this.props.minWidth;\n\t\t\t}\n\t\t\tif (newInputWidth !== this.state.inputWidth) {\n\t\t\t\tthis.setState({\n\t\t\t\t\tinputWidth: newInputWidth\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: 'getInput',\n\t\tvalue: function getInput() {\n\t\t\treturn this.input;\n\t\t}\n\t}, {\n\t\tkey: 'focus',\n\t\tvalue: function focus() {\n\t\t\tthis.input.focus();\n\t\t}\n\t}, {\n\t\tkey: 'blur',\n\t\tvalue: function blur() {\n\t\t\tthis.input.blur();\n\t\t}\n\t}, {\n\t\tkey: 'select',\n\t\tvalue: function select() {\n\t\t\tthis.input.select();\n\t\t}\n\t}, {\n\t\tkey: 'renderStyles',\n\t\tvalue: function renderStyles() {\n\t\t\t// this method injects styles to hide IE's clear indicator, which messes\n\t\t\t// with input size detection. the stylesheet is only injected when the\n\t\t\t// browser is IE, and can also be disabled by the `injectStyles` prop.\n\t\t\tvar injectStyles = this.props.injectStyles;\n\n\t\t\treturn isIE && injectStyles ? _react2.default.createElement('style', { dangerouslySetInnerHTML: {\n\t\t\t\t\t__html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}'\n\t\t\t\t} }) : null;\n\t\t}\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\tvar sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) {\n\t\t\t\tif (previousValue !== null && previousValue !== undefined) {\n\t\t\t\t\treturn previousValue;\n\t\t\t\t}\n\t\t\t\treturn currentValue;\n\t\t\t});\n\n\t\t\tvar wrapperStyle = _extends({}, this.props.style);\n\t\t\tif (!wrapperStyle.display) wrapperStyle.display = 'inline-block';\n\n\t\t\tvar inputStyle = _extends({\n\t\t\t\tboxSizing: 'content-box',\n\t\t\t\twidth: this.state.inputWidth + 'px'\n\t\t\t}, this.props.inputStyle);\n\n\t\t\tvar inputProps = _objectWithoutProperties(this.props, []);\n\n\t\t\tcleanInputProps(inputProps);\n\t\t\tinputProps.className = this.props.inputClassName;\n\t\t\tinputProps.id = this.state.inputId;\n\t\t\tinputProps.style = inputStyle;\n\n\t\t\treturn _react2.default.createElement(\n\t\t\t\t'div',\n\t\t\t\t{ className: this.props.className, style: wrapperStyle },\n\t\t\t\tthis.renderStyles(),\n\t\t\t\t_react2.default.createElement('input', _extends({}, inputProps, { ref: this.inputRef })),\n\t\t\t\t_react2.default.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ ref: this.sizerRef, style: sizerStyle },\n\t\t\t\t\tsizerValue\n\t\t\t\t),\n\t\t\t\tthis.props.placeholder ? _react2.default.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ ref: this.placeHolderSizerRef, style: sizerStyle },\n\t\t\t\t\tthis.props.placeholder\n\t\t\t\t) : null\n\t\t\t);\n\t\t}\n\t}]);\n\n\treturn AutosizeInput;\n}(_react.Component);\n\nAutosizeInput.propTypes = {\n\tclassName: _propTypes2.default.string, // className for the outer element\n\tdefaultValue: _propTypes2.default.any, // default field value\n\textraWidth: _propTypes2.default.oneOfType([// additional width for input element\n\t_propTypes2.default.number, _propTypes2.default.string]),\n\tid: _propTypes2.default.string, // id to use for the input, can be set for consistent snapshots\n\tinjectStyles: _propTypes2.default.bool, // inject the custom stylesheet to hide clear UI, defaults to true\n\tinputClassName: _propTypes2.default.string, // className for the input element\n\tinputRef: _propTypes2.default.func, // ref callback for the input element\n\tinputStyle: _propTypes2.default.object, // css styles for the input element\n\tminWidth: _propTypes2.default.oneOfType([// minimum width for input element\n\t_propTypes2.default.number, _propTypes2.default.string]),\n\tonAutosize: _propTypes2.default.func, // onAutosize handler: function(newWidth) {}\n\tonChange: _propTypes2.default.func, // onChange handler: function(event) {}\n\tplaceholder: _propTypes2.default.string, // placeholder text\n\tplaceholderIsMinWidth: _propTypes2.default.bool, // don't collapse size to less than the placeholder\n\tstyle: _propTypes2.default.object, // css styles for the outer element\n\tvalue: _propTypes2.default.any // field value\n};\nAutosizeInput.defaultProps = {\n\tminWidth: 1,\n\tinjectStyles: true\n};\n\nexports.default = AutosizeInput;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-input-autosize/lib/AutosizeInput.js\n// module id = 48\n// module chunks = 0 1","\"use strict\";\n\nvar _CSSTransition = _interopRequireDefault(require(\"./CSSTransition\"));\n\nvar _ReplaceTransition = _interopRequireDefault(require(\"./ReplaceTransition\"));\n\nvar _TransitionGroup = _interopRequireDefault(require(\"./TransitionGroup\"));\n\nvar _Transition = _interopRequireDefault(require(\"./Transition\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = {\n Transition: _Transition.default,\n TransitionGroup: _TransitionGroup.default,\n ReplaceTransition: _ReplaceTransition.default,\n CSSTransition: _CSSTransition.default\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/index.js\n// module id = 49\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar PropTypes = _interopRequireWildcard(require(\"prop-types\"));\n\nvar _addClass = _interopRequireDefault(require(\"dom-helpers/class/addClass\"));\n\nvar _removeClass = _interopRequireDefault(require(\"dom-helpers/class/removeClass\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _Transition = _interopRequireDefault(require(\"./Transition\"));\n\nvar _PropTypes = require(\"./utils/PropTypes\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return (0, _addClass.default)(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return (0, _removeClass.default)(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](http://www.nganimate.org/) library, you should use it if you're\n * using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <CSSTransition in={inProp} timeout={200} classNames=\"my-node\">\n * <div>\n * {\"I'll receive my-node-* classes\"}\n * </div>\n * </CSSTransition>\n * <button type=\"button\" onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity: 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**.\n */\n\n\nvar CSSTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _this.onEnter = function (node, appearing) {\n var _this$getClassNames = _this.getClassNames(appearing ? 'appear' : 'enter'),\n className = _this$getClassNames.className;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, className);\n\n if (_this.props.onEnter) {\n _this.props.onEnter(node, appearing);\n }\n };\n\n _this.onEntering = function (node, appearing) {\n var _this$getClassNames2 = _this.getClassNames(appearing ? 'appear' : 'enter'),\n activeClassName = _this$getClassNames2.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onEntering) {\n _this.props.onEntering(node, appearing);\n }\n };\n\n _this.onEntered = function (node, appearing) {\n var appearClassName = _this.getClassNames('appear').doneClassName;\n\n var enterClassName = _this.getClassNames('enter').doneClassName;\n\n var doneClassName = appearing ? appearClassName + \" \" + enterClassName : enterClassName;\n\n _this.removeClasses(node, appearing ? 'appear' : 'enter');\n\n addClass(node, doneClassName);\n\n if (_this.props.onEntered) {\n _this.props.onEntered(node, appearing);\n }\n };\n\n _this.onExit = function (node) {\n var _this$getClassNames3 = _this.getClassNames('exit'),\n className = _this$getClassNames3.className;\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n addClass(node, className);\n\n if (_this.props.onExit) {\n _this.props.onExit(node);\n }\n };\n\n _this.onExiting = function (node) {\n var _this$getClassNames4 = _this.getClassNames('exit'),\n activeClassName = _this$getClassNames4.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onExiting) {\n _this.props.onExiting(node);\n }\n };\n\n _this.onExited = function (node) {\n var _this$getClassNames5 = _this.getClassNames('exit'),\n doneClassName = _this$getClassNames5.doneClassName;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, doneClassName);\n\n if (_this.props.onExited) {\n _this.props.onExited(node);\n }\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + '-' : '';\n var className = isStringClassNames ? prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? className + '-active' : classNames[type + 'Active'];\n var doneClassName = isStringClassNames ? className + '-done' : classNames[type + 'Done'];\n return {\n className: className,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$getClassNames6 = this.getClassNames(type),\n className = _this$getClassNames6.className,\n activeClassName = _this$getClassNames6.activeClassName,\n doneClassName = _this$getClassNames6.doneClassName;\n\n className && removeClass(node, className);\n activeClassName && removeClass(node, activeClassName);\n doneClassName && removeClass(node, doneClassName);\n };\n\n _proto.reflowAndAddClass = function reflowAndAddClass(node, className) {\n // This is for to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n if (className) {\n /* eslint-disable no-unused-expressions */\n node && node.scrollTop;\n /* eslint-enable no-unused-expressions */\n\n addClass(node, className);\n }\n };\n\n _proto.render = function render() {\n var props = _extends({}, this.props);\n\n delete props.classNames;\n return _react.default.createElement(_Transition.default, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(_react.default.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, _Transition.default.propTypes, {\n /**\n * The animation classNames applied to the component as it enters, exits or\n * has finished the transition. A single name can be provided and it will be\n * suffixed for each stage: e.g.\n *\n * `classNames=\"fade\"` applies `fade-enter`, `fade-enter-active`,\n * `fade-enter-done`, `fade-exit`, `fade-exit-active`, `fade-exit-done`,\n * `fade-appear`, `fade-appear-active`, and `fade-appear-done`.\n *\n * **Note**: `fade-appear-done` and `fade-enter-done` will _both_ be applied.\n * This allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply an\n * epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: _PropTypes.classNamesShape,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' class is\n * applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit-active' is applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nvar _default = CSSTransition;\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/CSSTransition.js\n// module id = 50\n// module chunks = 0 1","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = addClass;\n\nvar _hasClass = _interopRequireDefault(require(\"./hasClass\"));\n\nfunction addClass(element, className) {\n if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);\n}\n\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/dom-helpers/class/addClass.js\n// module id = 51\n// module chunks = 0 1","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@babel/runtime/helpers/interopRequireDefault.js\n// module id = 52\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.default = hasClass;\n\nfunction hasClass(element, className) {\n if (element.classList) return !!className && element.classList.contains(className);else return (\" \" + (element.className.baseVal || element.className) + \" \").indexOf(\" \" + className + \" \") !== -1;\n}\n\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/dom-helpers/class/hasClass.js\n// module id = 53\n// module chunks = 0 1","'use strict';\n\nfunction replaceClassName(origClass, classToRemove) {\n return origClass.replace(new RegExp('(^|\\\\s)' + classToRemove + '(?:\\\\s|$)', 'g'), '$1').replace(/\\s+/g, ' ').replace(/^\\s*|\\s*$/g, '');\n}\n\nmodule.exports = function removeClass(element, className) {\n if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/dom-helpers/class/removeClass.js\n// module id = 54\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = require(\"react-dom\");\n\nvar _TransitionGroup = _interopRequireDefault(require(\"./TransitionGroup\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\n/**\n * The `<ReplaceTransition>` component is a specialized `Transition` component\n * that animates between two children.\n *\n * ```jsx\n * <ReplaceTransition in>\n * <Fade><div>I appear first</div></Fade>\n * <Fade><div>I replace the above</div></Fade>\n * </ReplaceTransition>\n * ```\n */\nvar ReplaceTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(ReplaceTransition, _React$Component);\n\n function ReplaceTransition() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;\n\n _this.handleEnter = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _this.handleLifecycle('onEnter', 0, args);\n };\n\n _this.handleEntering = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n return _this.handleLifecycle('onEntering', 0, args);\n };\n\n _this.handleEntered = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n return _this.handleLifecycle('onEntered', 0, args);\n };\n\n _this.handleExit = function () {\n for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n return _this.handleLifecycle('onExit', 1, args);\n };\n\n _this.handleExiting = function () {\n for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n\n return _this.handleLifecycle('onExiting', 1, args);\n };\n\n _this.handleExited = function () {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n return _this.handleLifecycle('onExited', 1, args);\n };\n\n return _this;\n }\n\n var _proto = ReplaceTransition.prototype;\n\n _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {\n var _child$props;\n\n var children = this.props.children;\n\n var child = _react.default.Children.toArray(children)[idx];\n\n if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);\n if (this.props[handler]) this.props[handler]((0, _reactDom.findDOMNode)(this));\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n inProp = _this$props.in,\n props = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\"]);\n\n var _React$Children$toArr = _react.default.Children.toArray(children),\n first = _React$Children$toArr[0],\n second = _React$Children$toArr[1];\n\n delete props.onEnter;\n delete props.onEntering;\n delete props.onEntered;\n delete props.onExit;\n delete props.onExiting;\n delete props.onExited;\n return _react.default.createElement(_TransitionGroup.default, props, inProp ? _react.default.cloneElement(first, {\n key: 'first',\n onEnter: this.handleEnter,\n onEntering: this.handleEntering,\n onEntered: this.handleEntered\n }) : _react.default.cloneElement(second, {\n key: 'second',\n onEnter: this.handleExit,\n onEntering: this.handleExiting,\n onEntered: this.handleExited\n }));\n };\n\n return ReplaceTransition;\n}(_react.default.Component);\n\nReplaceTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n in: _propTypes.default.bool.isRequired,\n children: function children(props, propName) {\n if (_react.default.Children.count(props[propName]) !== 2) return new Error(\"\\\"\" + propName + \"\\\" must be exactly two transition components.\");\n return null;\n }\n} : {};\nvar _default = ReplaceTransition;\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/ReplaceTransition.js\n// module id = 55\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.getChildMapping = getChildMapping;\nexports.mergeChildMappings = mergeChildMappings;\nexports.getInitialChildMapping = getInitialChildMapping;\nexports.getNextChildMapping = getNextChildMapping;\n\nvar _react = require(\"react\");\n\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\nfunction getChildMapping(children, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child;\n };\n\n var result = Object.create(null);\n if (children) _react.Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\n\nfunction mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i;\n var childMapping = {};\n\n for (var nextKey in next) {\n if (nextKeysPending[nextKey]) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nfunction getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\n\nfunction getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!(0, _react.isValidElement)(child)) return;\n var hasPrev = key in prevChildMapping;\n var hasNext = key in nextChildMapping;\n var prevChild = prevChildMapping[key];\n var isLeaving = (0, _react.isValidElement)(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = (0, _react.cloneElement)(child, {\n in: false\n });\n } else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/utils/ChildMapping.js\n// module id = 56\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/get-iterator.js\n// module id = 57\n// module chunks = 0 1","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/web.dom.iterable.js\n// module id = 58\n// module chunks = 0 1","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_cof.js\n// module id = 59\n// module chunks = 0 1","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_defined.js\n// module id = 60\n// module chunks = 0 1","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-primitive.js\n// module id = 61\n// module chunks = 0 1","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-create.js\n// module id = 62\n// module chunks = 0 1","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-integer.js\n// module id = 63\n// module chunks = 0 1","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared-key.js\n// module id = 64\n// module chunks = 0 1","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared.js\n// module id = 65\n// module chunks = 0 1","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-bug-keys.js\n// module id = 66\n// module chunks = 0 1","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-to-string-tag.js\n// module id = 67\n// module chunks = 0 1","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.string.iterator.js\n// module id = 68\n// module chunks = 0 1","exports.f = require('./_wks');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-ext.js\n// module id = 69\n// module chunks = 0 1","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-define.js\n// module id = 70\n// module chunks = 0 1","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-define.js\n// module id = 71\n// module chunks = 0 1","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ctx.js\n// module id = 72\n// module chunks = 0 1","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ie8-dom-define.js\n// module id = 73\n// module chunks = 0 1","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_dom-create.js\n// module id = 74\n// module chunks = 0 1","module.exports = require('./_hide');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_redefine.js\n// module id = 75\n// module chunks = 0 1","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys-internal.js\n// module id = 76\n// module chunks = 0 1","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gpo.js\n// module id = 77\n// module chunks = 0 1","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-object.js\n// module id = 78\n// module chunks = 0 1","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_classof.js\n// module id = 79\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/slicedToArray.js\n// module id = 80\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/object/entries\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/entries.js\n// module id = 81\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/get-prototype-of.js\n// module id = 82\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/classCallCheck.js\n// module id = 83\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/createClass.js\n// module id = 84\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/possibleConstructorReturn.js\n// module id = 85\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/typeof.js\n// module id = 86\n// module chunks = 0 1","exports.f = Object.getOwnPropertySymbols;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gops.js\n// module id = 87\n// module chunks = 0 1","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn.js\n// module id = 88\n// module chunks = 0 1","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopd.js\n// module id = 89\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/inherits.js\n// module id = 90\n// module chunks = 0 1","/**\n * Import blocks\n */\n\nimport \"./simple-sitemap\";\nimport \"./simple-sitemap-group\";\n\n\n// WEBPACK FOOTER //\n// src/blocks/index.js","// BLOCK DEPENDENCIES\r\n\r\n// Import chart components/objects\r\n//import attributes from './components/attributes';\r\n//import BarChart from './components/bar-chart';\r\n//import InspectorPanel from './components/inspector-panel';\r\n//import IsSelected from './components/is-selected';\r\n//import BlockAlignToolbar from '../_shared-components/block-align-toolbar';\r\n\r\n// Import libraries and functionality\r\n//import classnames from 'classnames';\r\n\r\n// Import styles and media assets\r\n//import customIcon from './components/icon';\r\n//import './styles/style.scss';\r\n//import './styles/editor.scss';\r\n\r\nimport Select from 'react-select';\r\nimport { SitemapCheckboxControl } from '../_components/checkbox';\r\n\r\n// Import core block libraries\r\nconst { __ } = wp.i18n;\r\nconst { InspectorControls } = wp.blockEditor;\r\nconst {\r\n\tPanelBody,\r\n\tPanelRow,\r\n\tServerSideRender,\r\n\tTextControl,\r\n\tRadioControl,\r\n\tSelectControl\r\n} = wp.components;\r\nconst { registerBlockType } = wp.blocks;\r\nconst { Fragment } = wp.element;\r\n\r\n/**\r\n * Register block\r\n */\r\nexport default registerBlockType(\r\n\t'wpgoplugins/simple-sitemap-block',\r\n\t{\r\n\t\ttitle: 'Simple Sitemap',\r\n\t\ticon: 'editor-ul',\r\n\t\tcategory: 'simple-sitemap',\r\n\t\tattributes: {\r\n\t\t\trender_tab: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: false,\r\n\t\t\t},\r\n\t\t\tgutenberg_block: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true,\r\n\t\t\t},\r\n\t\t\torderby: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: 'title'\r\n\t\t\t},\r\n\t\t\torder: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: 'asc'\r\n\t\t\t},\r\n\t\t\tblock_post_types: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: '[{ \"value\": \"page\", \"label\": \"Page\" }]',\r\n\t\t\t},\r\n\t\t\tpage_depth: {\r\n\t\t\t\ttype: 'number',\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\tshow_excerpt: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tshow_label: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\tlinks: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true\r\n\t\t\t}\r\n\t\t},\r\n\t\tedit: props => {\r\n\t\t\tconst { attributes: { show_excerpt, show_label, links, page_depth, nofollow, image, list_icon, max_width, responsive_breakpoint, sitemap_container_margin, sitemap_item_line_height, tab_color, tab_header_bg, post_type_label_padding, post_type_label_font_size, render_tab, block_post_types, exclude, include, order, orderby }, className, setAttributes, isSelected, attributes } = props;\r\n\r\n\t\t\t//const defaultValue = JSON.parse(props.attributes.block_post_types);\r\n\t\t\t//console.log(defaultValue);\r\n\t\t\t//console.log(typeof props.attributes.block_post_types, props.attributes.block_post_types);\r\n\t\t\t//console.log(JSON.parse(props.attributes.block_post_types));\r\n\r\n\t\t\tfunction updateToggleTabs(isChecked) {\r\n\t\t\t\tsetAttributes({ render_tab: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\tfunction updateExcerpt(isChecked) {\r\n\t\t\t\tsetAttributes({ show_excerpt: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\tfunction updateShowLabel(isChecked) {\r\n\t\t\t\tsetAttributes({ show_label: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\tfunction updateLinks(isChecked) {\r\n\t\t\t\tsetAttributes({ links: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\treturn [\r\n\t\t\t\t<InspectorControls>\r\n\t\t\t\t\t<PanelBody title={__('General Settings', 'simple-sitemap')}>\r\n\t\t\t\t\t\t<PanelRow>\r\n\t\t\t\t\t\t\t<label style={{ marginBottom: '-14px' }} class=\"components-base-control__label\" >Select post types to display</label>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow>\r\n\t\t\t\t\t\t\t<Select\r\n\t\t\t\t\t\t\t\tlabel=\"Title\"\r\n\t\t\t\t\t\t\t\tdefaultValue={JSON.parse(props.attributes.block_post_types)}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tonChange={(value) => {\r\n\t\t\t\t\t\t\t\t\treturn props.setAttributes({ block_post_types: JSON.stringify(value) });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\toptions={[\r\n\t\t\t\t\t\t\t\t\t{ value: 'post', label: 'Post' },\r\n\t\t\t\t\t\t\t\t\t{ value: 'page', label: 'Page' }\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow>\r\n\t\t\t\t\t\t\t<p style={{ marginTop: '-20px', fontSize: '13px', fontStyle: 'italic', marginLeft: '2px' }}>List <a href=\"https://wpgoplugins.com/plugins/simple-sitemap-pro/#post-types\" target=\"_blank\">more</a> post types</p>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap order mb20\">\r\n\t\t\t\t\t\t\t<SelectControl\r\n\t\t\t\t\t\t\t\tlabel=\"Orderby\"\r\n\t\t\t\t\t\t\t\tvalue={props.attributes.orderby}\r\n\t\t\t\t\t\t\t\toptions={[\r\n\t\t\t\t\t\t\t\t\t{ label: 'Title', value: 'title' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Date', value: 'date' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'ID', value: 'ID' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Author', value: 'author' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Name', value: 'name' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Modified', value: 'modified' }\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\tonChange={(value) => { props.setAttributes({ orderby: value }) }}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<SelectControl\r\n\t\t\t\t\t\t\t\tlabel=\"Order\"\r\n\t\t\t\t\t\t\t\tvalue={props.attributes.order}\r\n\t\t\t\t\t\t\t\toptions={[\r\n\t\t\t\t\t\t\t\t\t{ label: 'Ascending', value: 'asc' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Descending', value: 'desc' }\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\tonChange={(value) => { props.setAttributes({ order: value }) }}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={show_excerpt} label=\"Show excerpt\" updateCheckbox={updateExcerpt} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={show_label} label=\"Show post type label\" updateCheckbox={updateShowLabel} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={links} label=\"Enable sitemap links\" updateCheckbox={updateLinks} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t</PanelBody>\r\n\t\t\t\t\t<PanelBody title={__('Tab Settings', 'simple-sitemap')} initialOpen={false}>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={render_tab} label=\"Enable tabs\" updateCheckbox={updateToggleTabs} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t</PanelBody>\r\n\t\t\t\t\t<PanelBody title={__('Page Settings', 'simple-sitemap')} initialOpen={false}>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap\">\r\n\t\t\t\t\t\t\t<p>Affects sitemap pages only.</p>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap\">\r\n\t\t\t\t\t\t\t<TextControl\r\n\t\t\t\t\t\t\t\ttype=\"number\"\r\n\t\t\t\t\t\t\t\tlabel=\"Page indentation\"\r\n\t\t\t\t\t\t\t\tmin=\"0\"\r\n\t\t\t\t\t\t\t\tmax=\"5\"\r\n\t\t\t\t\t\t\t\thelp=\"Leave at zero for auto-depth\"\r\n\t\t\t\t\t\t\t\tvalue={page_depth}\r\n\t\t\t\t\t\t\t\tonChange={(value) => { setAttributes({ page_depth: value }); }}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t</PanelBody>\r\n\t\t\t\t</InspectorControls>,\r\n\t\t\t\t<ServerSideRender\r\n\t\t\t\t\tblock=\"wpgoplugins/simple-sitemap-block\"\r\n\t\t\t\t\tattributes={props.attributes}\r\n\t\t\t\t/>\r\n\t\t\t];\r\n\t\t},\r\n\t\tsave: function () {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}\r\n);\n\n\n// WEBPACK FOOTER //\n// src/blocks/simple-sitemap/index.js","const {\r\n CheckboxControl\r\n} = wp.components;\r\n\r\nexport const SitemapCheckboxControl = (props) => {\r\n\r\n const { help, disabled, label, updateCheckbox, value } = props;\r\n\r\n return (\r\n <CheckboxControl\r\n help={help}\r\n disabled={disabled}\r\n label={label}\r\n checked={value}\r\n onChange={isChecked => updateCheckbox(isChecked)}\r\n />\r\n )\r\n};\n\n\n// WEBPACK FOOTER //\n// src/blocks/_components/checkbox.js","// BLOCK DEPENDENCIES\r\n\r\n// Import chart components/objects\r\n//import attributes from './components/attributes';\r\n//import BarChart from './components/bar-chart';\r\n//import InspectorPanel from './components/inspector-panel';\r\n//import IsSelected from './components/is-selected';\r\n//import BlockAlignToolbar from '../_shared-components/block-align-toolbar';\r\n\r\n// Import libraries and functionality\r\n//import classnames from 'classnames';\r\n\r\n// Import styles and media assets\r\n//import customIcon from './components/icon';\r\n//import './styles/style.scss';\r\n//import './styles/editor.scss';\r\n\r\nimport { SelectCptTaxonomy } from '../_components/select-cpt-taxonomy';\r\nimport { SitemapCheckboxControl } from '../_components/checkbox';\r\n\r\n//import Select from 'react-select';\r\n\r\n// Import core block libraries\r\nconst { __ } = wp.i18n;\r\nconst { InspectorControls } = wp.blockEditor;\r\nconst {\r\n\tPanelBody,\r\n\tPanelRow,\r\n\tServerSideRender,\r\n\tTextControl,\r\n\tRadioControl,\r\n\tSelectControl,\r\n\tColorPicker\r\n} = wp.components;\r\nconst { registerBlockType } = wp.blocks;\r\nconst { Fragment } = wp.element;\r\n\r\n/**\r\n * Register block\r\n */\r\nexport default registerBlockType(\r\n\t'wpgoplugins/simple-sitemap-group-block',\r\n\t{\r\n\t\ttitle: 'Simple Sitemap Group',\r\n\t\ticon: 'networking',\r\n\t\tcategory: 'simple-sitemap',\r\n\t\tattributes: {\r\n\t\t\tshow_excerpt: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: false,\r\n\t\t\t},\r\n\t\t\tshow_label: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true,\r\n\t\t\t},\r\n\t\t\tlinks: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true,\r\n\t\t\t},\r\n\t\t\torderby: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: 'title'\r\n\t\t\t},\r\n\t\t\torder: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: 'asc'\r\n\t\t\t},\r\n\t\t\tblock_taxonomy: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: 'category',\r\n\t\t\t},\r\n\t\t\tgutenberg_block: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true,\r\n\t\t\t}\r\n\t\t},\r\n\t\tedit: props => {\r\n\r\n\t\t\tconst { attributes: { show_excerpt, show_label, links, block_taxonomy, order, orderby }, className, setAttributes, isSelected, attributes } = props;\r\n\r\n\t\t\tfunction updateShowExcerpt(isChecked) {\r\n\t\t\t\tsetAttributes({ show_excerpt: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\tfunction updateShowLabel(isChecked) {\r\n\t\t\t\tsetAttributes({ show_label: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\tfunction updateLinks(isChecked) {\r\n\t\t\t\tsetAttributes({ links: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\treturn [\r\n\t\t\t\t<InspectorControls>\r\n\t\t\t\t\t<PanelBody title={__('General Settings', 'simple-sitemap')}>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap\">\r\n\t\t\t\t\t\t\t<label style={{ marginBottom: '-12px', maxWidth: '100%' }} class=\"components-base-control__label\" >Select post taxonomy</label>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap\">\r\n\t\t\t\t\t\t\t<SelectCptTaxonomy setAttributes={setAttributes} multi={false} block_taxonomy={block_taxonomy} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow>\r\n\t\t\t\t\t\t\t<p style={{ marginTop: '-24px', fontSize: '13px', fontStyle: 'italic', marginLeft: '2px' }}>List <a href=\"https://wpgoplugins.com/plugins/simple-sitemap-pro/#taxonomies-for-any-post-type\" target=\"_blank\">taxonomies</a> for any post type</p>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap order-label\">\r\n\t\t\t\t\t\t\t<label style={{ marginBottom: '-12px', maxWidth: '100%' }} class=\"components-base-control__label\" >Post ordering</label>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap order mb20\">\r\n\t\t\t\t\t\t\t<SelectControl\r\n\t\t\t\t\t\t\t\tlabel=\"Orderby\"\r\n\t\t\t\t\t\t\t\tvalue={orderby}\r\n\t\t\t\t\t\t\t\toptions={[\r\n\t\t\t\t\t\t\t\t\t{ label: 'Title', value: 'title' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Date', value: 'date' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'ID', value: 'ID' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Author', value: 'author' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Name', value: 'name' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Modified', value: 'modified' }\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\tonChange={(value) => { setAttributes({ orderby: value }) }}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<SelectControl\r\n\t\t\t\t\t\t\t\tlabel=\"Order\"\r\n\t\t\t\t\t\t\t\tvalue={order}\r\n\t\t\t\t\t\t\t\toptions={[\r\n\t\t\t\t\t\t\t\t\t{ label: 'Ascending', value: 'asc' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Descending', value: 'desc' }\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\tonChange={(value) => { setAttributes({ order: value }) }}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={show_excerpt} label=\"Display post excerpt\" updateCheckbox={updateShowExcerpt} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={show_label} label=\"Display post type label\" updateCheckbox={updateShowLabel} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={links} label=\"Display sitemap links\" updateCheckbox={updateLinks} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t</PanelBody>\r\n\t\t\t\t</InspectorControls>,\r\n\t\t\t\t<ServerSideRender\r\n\t\t\t\t\tblock=\"wpgoplugins/simple-sitemap-group-block\"\r\n\t\t\t\t\tattributes={attributes}\r\n\t\t\t\t/>\r\n\t\t\t];\r\n\t\t},\r\n\t\tsave: function () {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}\r\n);\n\n\n// WEBPACK FOOTER //\n// src/blocks/simple-sitemap-group/index.js","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/get-iterator.js\n// module id = 100\n// module chunks = 0 1","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.array.iterator.js\n// module id = 101\n// module chunks = 0 1","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_add-to-unscopables.js\n// module id = 102\n// module chunks = 0 1","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-step.js\n// module id = 103\n// module chunks = 0 1","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iobject.js\n// module id = 104\n// module chunks = 0 1","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_a-function.js\n// module id = 105\n// module chunks = 0 1","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-create.js\n// module id = 106\n// module chunks = 0 1","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dps.js\n// module id = 107\n// module chunks = 0 1","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_array-includes.js\n// module id = 108\n// module chunks = 0 1","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-length.js\n// module id = 109\n// module chunks = 0 1","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-absolute-index.js\n// module id = 110\n// module chunks = 0 1","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_html.js\n// module id = 111\n// module chunks = 0 1","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_string-at.js\n// module id = 112\n// module chunks = 0 1","var anObject = require('./_an-object');\nvar get = require('./core.get-iterator-method');\nmodule.exports = require('./_core').getIterator = function (it) {\n var iterFn = get(it);\n if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.get-iterator.js\n// module id = 113\n// module chunks = 0 1","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.get-iterator-method.js\n// module id = 114\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/is-iterable.js\n// module id = 115\n// module chunks = 0 1","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/is-iterable.js\n// module id = 116\n// module chunks = 0 1","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').isIterable = function (it) {\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n // eslint-disable-next-line no-prototype-builtins\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.is-iterable.js\n// module id = 117\n// module chunks = 0 1","require('../../modules/es7.object.entries');\nmodule.exports = require('../../modules/_core').Object.entries;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/entries.js\n// module id = 118\n// module chunks = 0 1","// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export');\nvar $entries = require('./_object-to-array')(true);\n\n$export($export.S, 'Object', {\n entries: function entries(it) {\n return $entries(it);\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.object.entries.js\n// module id = 119\n// module chunks = 0 1","var getKeys = require('./_object-keys');\nvar toIObject = require('./_to-iobject');\nvar isEnum = require('./_object-pie').f;\nmodule.exports = function (isEntries) {\n return function (it) {\n var O = toIObject(it);\n var keys = getKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) if (isEnum.call(O, key = keys[i++])) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n } return result;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-to-array.js\n// module id = 120\n// module chunks = 0 1","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/_core').Object.getPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/get-prototype-of.js\n// module id = 121\n// module chunks = 0 1","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./_to-object');\nvar $getPrototypeOf = require('./_object-gpo');\n\nrequire('./_object-sap')('getPrototypeOf', function () {\n return function getPrototypeOf(it) {\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.get-prototype-of.js\n// module id = 122\n// module chunks = 0 1","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-sap.js\n// module id = 123\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/define-property.js\n// module id = 124\n// module chunks = 0 1","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/define-property.js\n// module id = 125\n// module chunks = 0 1","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.define-property.js\n// module id = 126\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol/iterator.js\n// module id = 127\n// module chunks = 0 1","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/iterator.js\n// module id = 128\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol.js\n// module id = 129\n// module chunks = 0 1","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/index.js\n// module id = 130\n// module chunks = 0 1","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function';\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n require('./_object-gops').f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.symbol.js\n// module id = 131\n// module chunks = 0 1","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_meta.js\n// module id = 132\n// module chunks = 0 1","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-keys.js\n// module id = 133\n// module chunks = 0 1","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-array.js\n// module id = 134\n// module chunks = 0 1","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn-ext.js\n// module id = 135\n// module chunks = 0 1","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module id = 137\n// module chunks = 0 1","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.observable.js\n// module id = 138\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/set-prototype-of.js\n// module id = 139\n// module chunks = 0 1","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/set-prototype-of.js\n// module id = 140\n// module chunks = 0 1","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.set-prototype-of.js\n// module id = 141\n// module chunks = 0 1","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-proto.js\n// module id = 142\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/create.js\n// module id = 143\n// module chunks = 0 1","require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/create.js\n// module id = 144\n// module chunks = 0 1","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.create.js\n// module id = 145\n// module chunks = 0 1","// Import core block libraries\r\nconst { __ } = wp.i18n;\r\nconst { InspectorControls } = wp.blockEditor;\r\nconst {\r\n PanelBody,\r\n PanelRow,\r\n ServerSideRender,\r\n TextControl,\r\n RadioControl,\r\n SelectControl\r\n} = wp.components;\r\nconst { registerBlockType } = wp.blocks;\r\nconst { Component, Fragment } = wp.element;\r\n\r\nexport class SelectCptTaxonomy extends Component {\r\n\r\n constructor(props) {\r\n super(); // or super(props); ??\r\n\r\n this.state = {\r\n types: [],\r\n taxonomies: [],\r\n taxonomy_select_disabled_status: true,\r\n taxonomy_select_disabled_help: '',\r\n wrapperClass: ''\r\n };\r\n this.props = props;\r\n }\r\n\r\n // get post types to populate select box\r\n componentDidMount() {\r\n\r\n // render dropdowns\r\n this.fetchTaxonomies(null); // null is important here\r\n }\r\n\r\n // set the taxonomy dropdown options\r\n fetchTaxonomies(newCPT) {\r\n\r\n const { setAttributes, block_post_type, block_taxonomy } = this.props;\r\n const taxonomy_url = 'simple-sitemap/v1/post-type-taxonomies/post';\r\n\r\n wp.apiFetch({ path: taxonomy_url, method: 'GET' }).then(\r\n (data) => {\r\n\r\n let msg = '';\r\n let disabled_status = false;\r\n let wrapperClass = '';\r\n var taxonomies = [];\r\n let tax_flag = true;\r\n\r\n if (data.length === 0) {\r\n msg = 'No taxonomies found for this post type';\r\n disabled_status = true;\r\n wrapperClass = 'disabled';\r\n setAttributes({ block_taxonomy: '' });\r\n } else {\r\n const entries = Object.entries(data);\r\n for (const [key, value] of entries) {\r\n const tmp = {\r\n value: key,\r\n label: value\r\n };\r\n taxonomies.push(tmp);\r\n\r\n // use attribute value?\r\n if(tmp.value === block_taxonomy) {\r\n tax_flag = false;\r\n }\r\n }\r\n // update attribute with first found taxonomy unless current taxonomy attr. is found in taxonomy array\r\n\r\n // only update tax attr. if current value not found in updated taxonomies array in which case just set to first taxonomy in array\r\n if(tax_flag) {\r\n setAttributes({ block_taxonomy: taxonomies[0].value });\r\n }\r\n }\r\n\r\n this.setState({\r\n taxonomy_select_disabled_status: disabled_status,\r\n taxonomy_select_disabled_help: msg,\r\n taxonomies: taxonomies,\r\n wrapperClass: wrapperClass\r\n });\r\n return data;\r\n },\r\n (err) => {\r\n return err;\r\n }\r\n );\r\n }\r\n\r\n updateTaxonomyValues(val) {\r\n const { setAttributes } = this.props;\r\n setAttributes({ block_taxonomy: val });\r\n }\r\n\r\n render() {\r\n const { block_taxonomy } = this.props;\r\n\r\n return (\r\n <div className={this.state.wrapperClass}>\r\n <SelectControl\r\n value={block_taxonomy}\r\n options={this.state.taxonomies}\r\n onChange={(val) => this.updateTaxonomyValues(val)}\r\n disabled={this.state.taxonomy_select_disabled_status}\r\n />\r\n </div>\r\n );\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// src/blocks/_components/select-cpt-taxonomy.js"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvLA;AACA;;;;;;;ACDA;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACfA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACPA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;;;;;;;;ACFA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACprKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChmBA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/MA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;;;;;;;ACJA;;;;;;;ACAA;;;;;;ACAA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACtgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AClOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC9kBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3WA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrJA;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClBA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChBA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnBA;AACA;AACA;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACZA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AClDA;;;;;;ACAA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACpBA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChCA;AAAA;AAAA;AAAA;;;;AAIA;;;;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AANA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;;;;AAGA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAjCA;AAsCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AADA;AAcA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAQA;AAAA;AAAA;AAXA;AAaA;AACA;AACA;AACA;AAIA;AAAA;AAAA;AAPA;AAdA;AAwBA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAnDA;AAuDA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AADA;AADA;AAKA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAPA;AADA;AAJA;AA7DA;AA+EA;AACA;AAFA;AAKA;AACA;AACA;AACA;AAzJA;;;;;;;ACtCA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AALA;AAQA;;;;;;;ACjBA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AASA;AAPA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;;;;AAGA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAzBA;AA8BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAQA;AAAA;AAAA;AAXA;AAaA;AACA;AACA;AACA;AAIA;AAAA;AAAA;AAPA;AAdA;AAwBA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AA3CA;AADA;AAkDA;AACA;AAFA;AAKA;AACA;AACA;AACA;AA5GA;;;;;;;;;AC1CA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjCA;;;;;;;ACAA;AACA;AACA;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACPA;;;;;;ACAA;AACA;AACA;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACTA;AACA;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACfA;AACA;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACTA;;;;;;ACAA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;;;;;;;ACFA;;;;;;ACAA;AACA;AACA;;;;;;;ACFA;;;;;;ACAA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACdA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AClBA;;;;;;;ACAA;;;;;;;ACAA;;;;;;ACAA;AACA;;;;;;;ACDA;AACA;AACA;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxBA;;;;;;ACAA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AAQA;AANA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAFA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AAVA;AAWA;AACA;AACA;AACA;AACA;AAjBA;AAAA;AAAA;AACA;AAiBA;AACA;AACA;AACA;AACA;AACA;AAvBA;AAAA;AAAA;AAuBA;AACA;AADA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AACA;AAAA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AAEA;AACA;AAEA;AA5EA;AAAA;AAAA;AA8EA;AACA;AACA;AACA;AAjFA;AAAA;AAAA;AAmFA;AACA;AADA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAJA;AADA;AASA;AAhGA;AACA;AADA;AAAA;;;A","sourceRoot":""}
 
languages/simple-sitemap-gb.pot DELETED
@@ -1,103 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Content-Type: text/plain; charset=utf-8\n"
4
- "X-Generator: babel-plugin-makepot\n"
5
-
6
- #: modules/src/blocks/simple-sitemap-group/index.js:155
7
- #: modules/src/blocks/simple-sitemap-group/index.js:147
8
- #: modules/src/blocks/simple-sitemap-group/index.js:139
9
- #: modules/src/blocks/simple-sitemap-group/index.js:140
10
- #: modules/src/blocks/simple-sitemap/index.js:193
11
- #: src/blocks/simple-sitemap-group/index.js:95
12
- #: modules/src/blocks/simple-sitemap/index.js:186
13
- #: modules/src/blocks/simple-sitemap/index.js:185
14
- #: modules/src/blocks/simple-sitemap/index.js:177
15
- #: src/blocks/simple-sitemap/index.js:108
16
- msgid "General Settings"
17
- msgstr ""
18
-
19
- #: modules/src/blocks/simple-sitemap-group/index.js:218
20
- #: modules/src/blocks/simple-sitemap-group/index.js:215
21
- #: modules/src/blocks/simple-sitemap-group/index.js:219
22
- #: modules/src/blocks/simple-sitemap-group/index.js:213
23
- #: modules/src/blocks/simple-sitemap-group/index.js:212
24
- #: modules/src/blocks/simple-sitemap-group/index.js:204
25
- #: modules/src/blocks/simple-sitemap-group/index.js:196
26
- #: modules/src/blocks/simple-sitemap-group/index.js:197
27
- #: modules/src/blocks/simple-sitemap/index.js:256
28
- msgid "Heading Settings"
29
- msgstr ""
30
-
31
- #: modules/src/blocks/simple-sitemap-group/index.js:229
32
- #: modules/src/blocks/simple-sitemap-group/index.js:226
33
- #: modules/src/blocks/simple-sitemap-group/index.js:230
34
- #: modules/src/blocks/simple-sitemap-group/index.js:224
35
- #: modules/src/blocks/simple-sitemap-group/index.js:223
36
- #: modules/src/blocks/simple-sitemap-group/index.js:215
37
- #: modules/src/blocks/simple-sitemap-group/index.js:207
38
- #: modules/src/blocks/simple-sitemap-group/index.js:208
39
- #: modules/src/blocks/simple-sitemap/index.js:267
40
- msgid "Container Settings"
41
- msgstr ""
42
-
43
- #: modules/src/blocks/simple-sitemap-group/index.js:240
44
- #: modules/src/blocks/simple-sitemap-group/index.js:237
45
- #: modules/src/blocks/simple-sitemap-group/index.js:241
46
- #: modules/src/blocks/simple-sitemap-group/index.js:235
47
- #: modules/src/blocks/simple-sitemap-group/index.js:234
48
- #: modules/src/blocks/simple-sitemap-group/index.js:226
49
- #: modules/src/blocks/simple-sitemap-group/index.js:218
50
- #: modules/src/blocks/simple-sitemap-group/index.js:219
51
- #: modules/src/blocks/simple-sitemap/index.js:278
52
- msgid "Sitemap Item Settings"
53
- msgstr ""
54
-
55
- #: modules/src/blocks/simple-sitemap-group/index.js:254
56
- #: modules/src/blocks/simple-sitemap-group/index.js:251
57
- #: modules/src/blocks/simple-sitemap-group/index.js:255
58
- #: modules/src/blocks/simple-sitemap-group/index.js:249
59
- #: modules/src/blocks/simple-sitemap-group/index.js:248
60
- #: modules/src/blocks/simple-sitemap-group/index.js:240
61
- #: modules/src/blocks/simple-sitemap-group/index.js:232
62
- #: modules/src/blocks/simple-sitemap-group/index.js:233
63
- #: modules/src/blocks/simple-sitemap/index.js:292
64
- msgid "Excerpt Settings"
65
- msgstr ""
66
-
67
- #: modules/src/blocks/simple-sitemap-group/index.js:259
68
- #: modules/src/blocks/simple-sitemap-group/index.js:256
69
- #: modules/src/blocks/simple-sitemap-group/index.js:260
70
- #: modules/src/blocks/simple-sitemap-group/index.js:254
71
- #: modules/src/blocks/simple-sitemap-group/index.js:253
72
- #: modules/src/blocks/simple-sitemap-group/index.js:245
73
- #: modules/src/blocks/simple-sitemap-group/index.js:237
74
- #: modules/src/blocks/simple-sitemap-group/index.js:238
75
- #: modules/src/blocks/simple-sitemap/index.js:297
76
- msgid "Featured Image Settings"
77
- msgstr ""
78
-
79
- #: modules/src/blocks/simple-sitemap/index.js:302
80
- #: modules/src/blocks/simple-sitemap/index.js:299
81
- #: modules/src/blocks/simple-sitemap/index.js:303
82
- #: modules/src/blocks/simple-sitemap/index.js:300
83
- #: modules/src/blocks/simple-sitemap/index.js:297
84
- #: modules/src/blocks/simple-sitemap/index.js:296
85
- #: modules/src/blocks/simple-sitemap/index.js:289
86
- #: modules/src/blocks/simple-sitemap/index.js:288
87
- #: modules/src/blocks/simple-sitemap/index.js:280
88
- #: src/blocks/simple-sitemap/index.js:163
89
- msgid "Tab Settings"
90
- msgstr ""
91
-
92
- #: modules/src/blocks/simple-sitemap/index.js:342
93
- #: modules/src/blocks/simple-sitemap/index.js:339
94
- #: modules/src/blocks/simple-sitemap/index.js:343
95
- #: modules/src/blocks/simple-sitemap/index.js:340
96
- #: modules/src/blocks/simple-sitemap/index.js:337
97
- #: modules/src/blocks/simple-sitemap/index.js:336
98
- #: modules/src/blocks/simple-sitemap/index.js:329
99
- #: modules/src/blocks/simple-sitemap/index.js:328
100
- #: modules/src/blocks/simple-sitemap/index.js:320
101
- #: src/blocks/simple-sitemap/index.js:168
102
- msgid "Page Settings"
103
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{assets → lib/assets}/css/simple-sitemap-admin.css RENAMED
File without changes
{assets → lib/assets}/css/simple-sitemap.css RENAMED
File without changes
{assets → lib/assets}/images/david.png RENAMED
File without changes
{assets → lib/assets}/js/simple-sitemap-admin.js RENAMED
File without changes
lib/block_assets/js/blocks.editor.js ADDED
@@ -0,0 +1,2 @@
 
1
+ !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=134)}([function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(28)("wks"),o=n(18),i=n(2).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=React},function(e,t,n){e.exports=n(71)()},function(e,t,n){var r=n(89),o=n(23);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(2),o=n(0),i=n(42),a=n(10),u=n(9),s=function(e,t,n){var l,c,p,f=e&s.F,d=e&s.G,h=e&s.S,m=e&s.P,v=e&s.B,g=e&s.W,b=d?o:o[t]||(o[t]={}),y=b.prototype,E=d?r:h?r[t]:(r[t]||{}).prototype;d&&(n=t);for(l in n)(c=!f&&E&&void 0!==E[l])&&u(b,l)||(p=c?E[l]:n[l],b[l]=d&&"function"!=typeof E[l]?n[l]:v&&c?i(p,r):g&&E[l]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):m&&"function"==typeof p?i(Function.call,p):p,m&&((b.virtual||(b.virtual={}))[l]=p,e&s.R&&y&&!y[l]&&a(y,l,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(11),o=n(43),i=n(24),a=Object.defineProperty;t.f=n(8)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(7),o=n(16);e.exports=n(8)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(12);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(46),o=n(29);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=ReactDOM},function(e,t,n){n(86);for(var r=n(2),o=n(10),i=n(13),a=n(1)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var l=u[s],c=r[l],p=c&&c.prototype;p&&!p[a]&&o(p,a,l),i[l]=i.Array}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(12);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(11),o=n(92),i=n(29),a=n(27)("IE_PROTO"),u=function(){},s=function(){var e,t=n(44)("iframe"),r=i.length;for(t.style.display="none",n(96).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[a]=e):n=s(),void 0===t?n:o(n,t)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(28)("keys"),o=n(18);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(0),o=n(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(15)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(7).f,o=n(9),i=n(1)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(97)(!0);n(41)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){t.f=n(1)},function(e,t,n){var r=n(2),o=n(0),i=n(15),a=n(32),u=n(7).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:a.f(e)})}},function(e,t,n){e.exports={default:n(85),__esModule:!0}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){u(e,t,n[t])})}return e}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function h(e,t){if(null==e)return{};var n,r,o=d(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?m(e):t}function g(e){return b(e)||y(e)||E()}function b(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function y(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function E(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function O(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function C(e,t,n,r){var o=[t,r];if(n&&e)for(var i in n)n.hasOwnProperty(i)&&n[i]&&o.push("".concat(O(e,i)));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}function x(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}function w(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function S(e){return w(e)?window.pageYOffset:e.scrollTop}function A(e,t){if(w(e))return void window.scrollTo(0,t);e.scrollTop=t}function k(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}function F(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function _(e,t){function n(){s+=u;var t=F(s,i,a,r);A(e,t),s<r?X()(n):o(e)}var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Q,i=S(e),a=t-i,u=10,s=0;n()}function D(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?A(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&A(e,Math.max(t.offsetTop-o,0))}function M(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function P(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function T(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,u=e.theme,s=u.spacing,l=k(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var p=l.getBoundingClientRect(),f=p.height,d=n.getBoundingClientRect(),h=d.bottom,m=d.height,v=d.top,g=n.offsetParent.getBoundingClientRect(),b=g.top,y=window.innerHeight,E=S(l),O=parseInt(getComputedStyle(n).marginBottom,10),C=parseInt(getComputedStyle(n).marginTop,10),x=b-C,w=y-v,F=x+E,D=f-E-v,M=h-y+E+O,P=E+v-C;switch(o){case"auto":case"bottom":if(w>=m)return{placement:"bottom",maxHeight:t};if(D>=m&&!a)return i&&_(l,M,160),{placement:"bottom",maxHeight:t};if(!a&&D>=r||a&&w>=r){i&&_(l,M,160);return{placement:"bottom",maxHeight:a?w-O:D-O}}if("auto"===o||a){var T=t,I=a?x:F;return I>=r&&(T=Math.min(I-O-s.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return A(l,M),{placement:"bottom",maxHeight:t};break;case"top":if(x>=m)return{placement:"top",maxHeight:t};if(F>=m&&!a)return i&&_(l,P,160),{placement:"top",maxHeight:t};if(!a&&F>=r||a&&x>=r){var L=t;return(!a&&F>=r||a&&x>=r)&&(L=a?x-C:F-C),i&&_(l,P,160),{placement:"top",maxHeight:L}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function I(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}function L(e,t){if(e===t)return!0;if(e&&t&&"object"==r(e)&&"object"==r(t)){var n,o,i,a=he(e),u=he(t);if(a&&u){if((o=e.length)!=t.length)return!1;for(n=o;0!=n--;)if(!L(e[n],t[n]))return!1;return!0}if(a!=u)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,p=t instanceof RegExp;if(c!=p)return!1;if(c&&p)return e.toString()==t.toString();var f=me(e);if((o=f.length)!==me(t).length)return!1;for(n=o;0!=n--;)if(!ve.call(t,f[n]))return!1;for(n=o;0!=n--;)if(!("_owner"===(i=f[n])&&e.$$typeof||L(e[i],t[i])))return!1;return!0}return e!==e&&t!==t}function N(e,t){try{return L(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function V(e){e.preventDefault()}function j(e){e.stopPropagation()}function R(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function B(){return"ontouchstart"in window||navigator.maxTouchPoints}var W=n(3),U=n.n(W),H=n(63),z=n(64),G=n(20),$=(n.n(G),n(4)),Y=n.n($),q=n(73),X=n.n(q),J=n(76),K=n.n(J),Z=n(77),Q=(n.n(Z),function(){}),ee=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===r(e)&&null!==e?[e]:[]},te=function(e){return"auto"===e?"bottom":e},ne=function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},u(t,I(n),"100%"),u(t,"backgroundColor",a.neutral0),u(t,"borderRadius",o),u(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),u(t,"marginBottom",i.menuGutter),u(t,"marginTop",i.menuGutter),u(t,"position","absolute"),u(t,"width","100%"),u(t,"zIndex",1),t},re=function(e){function t(){var e,n;o(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=v(this,(e=p(t)).call.apply(e,[this].concat(i))),u(m(m(n)),"state",{maxHeight:n.props.maxMenuHeight,placement:null}),u(m(m(n)),"getPlacement",function(e){var t=n.props,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,u=t.menuShouldScrollIntoView,s=t.theme,l=n.context.getPortalPlacement;if(e){var c="fixed"===a,p=u&&!c,f=T({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:p,isFixedPosition:c,theme:s});l&&l(f),n.setState(f)}}),u(m(m(n)),"getUpdatedProps",function(){var e=n.props.menuPlacement,t=n.state.placement||te(e);return l({},n.props,{placement:t,maxHeight:n.state.maxHeight})}),n}return c(t,e),a(t,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),t}(W.Component);u(re,"contextTypes",{getPortalPlacement:Y.a.func});var oe=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps,u=r(Object(z.a)(o("menu",e)),{menu:!0},n);return U.a.createElement("div",s({className:u},a,{ref:i}),t)},ie=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},ae=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isMulti,a=e.innerRef;return U.a.createElement("div",{className:r(Object(z.a)(o("menuList",e)),{"menu-list":!0,"menu-list--is-multi":i},n),ref:a},t)},ue=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},se=ue,le=ue,ce=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return U.a.createElement("div",s({className:r(Object(z.a)(o("noOptionsMessage",e)),{"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};ce.defaultProps={children:"No options"};var pe=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return U.a.createElement("div",s({className:r(Object(z.a)(o("loadingMessage",e)),{"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};pe.defaultProps={children:"Loading..."};var fe=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},de=function(e){function t(){var e,n;o(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=v(this,(e=p(t)).call.apply(e,[this].concat(i))),u(m(m(n)),"state",{placement:null}),u(m(m(n)),"getPortalPlacement",function(e){var t=e.placement;t!==te(n.props.menuPlacement)&&n.setState({placement:t})}),n}return c(t,e),a(t,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,i=e.menuPosition,a=e.getStyles,u="fixed"===i;if(!t&&!u||!r)return null;var s=this.state.placement||te(o),l=M(r),c=u?0:window.pageYOffset,p=l[s]+c,f={offset:p,position:i,rect:l},d=U.a.createElement("div",{className:Object(z.a)(a("menuPortal",f))},n);return t?Object(G.createPortal)(d,t):d}}]),t}(W.Component);u(de,"childContextTypes",{getPortalPlacement:Y.a.func});var he=Array.isArray,me=Object.keys,ve=Object.prototype.hasOwnProperty,ge=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],be=function(e){for(var t=0;t<ge.length;t++)e=e.replace(ge[t].letters,ge[t].base);return e},ye=function(e){return e.replace(/^\s+|\s+$/g,"")},Ee=function(e){return"".concat(e.label," ").concat(e.value)},Oe=function(e){return U.a.createElement("span",s({className:Object(z.a)({label:"a11yText",zIndex:9999,border:0,clip:"rect(1px, 1px, 1px, 1px)",height:1,width:1,position:"absolute",overflow:"hidden",padding:0,whiteSpace:"nowrap",backgroundColor:"red",color:"blue"})},e))},Ce=function(e){function t(){return o(this,t),v(this,p(t).apply(this,arguments))}return c(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=(e.in,e.out,e.onExited,e.appear,e.enter,e.exit,e.innerRef),n=(e.emotion,h(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return U.a.createElement("input",s({ref:t},n,{className:Object(z.a)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"})}))}}]),t}(W.Component),xe=function(e){function t(){return o(this,t),v(this,p(t).apply(this,arguments))}return c(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(G.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),t}(W.Component),we=["boxSizing","height","overflow","paddingRight","position"],Se={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"},Ae=!("undefined"==typeof window||!window.document||!window.document.createElement),ke=0,Fe=function(e){function t(){var e,n;o(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=v(this,(e=p(t)).call.apply(e,[this].concat(i))),u(m(m(n)),"originalStyles",{}),u(m(m(n)),"listenerOptions",{capture:!1,passive:!1}),n}return c(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this;if(Ae){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;if(n&&we.forEach(function(t){var n=i&&i[t];e.originalStyles[t]=n}),n&&ke<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,u=document.body?document.body.clientWidth:0,s=window.innerWidth-u+a||0;Object.keys(Se).forEach(function(e){var t=Se[e];i&&(i[e]=t)}),i&&(i.paddingRight="".concat(s,"px"))}o&&B()&&(o.addEventListener("touchmove",V,this.listenerOptions),r&&(r.addEventListener("touchstart",R,this.listenerOptions),r.addEventListener("touchmove",j,this.listenerOptions))),ke+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Ae){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;ke=Math.max(ke-1,0),n&&ke<1&&we.forEach(function(t){var n=e.originalStyles[t];i&&(i[t]=n)}),o&&B()&&(o.removeEventListener("touchmove",V,this.listenerOptions),r&&(r.removeEventListener("touchstart",R,this.listenerOptions),r.removeEventListener("touchmove",j,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),t}(W.Component);u(Fe,"defaultProps",{accountForScrollbars:!0});var _e=function(e){function t(){var e,n;o(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=v(this,(e=p(t)).call.apply(e,[this].concat(i))),u(m(m(n)),"state",{touchScrollTarget:null}),u(m(m(n)),"getScrollTarget",function(e){e!==n.state.touchScrollTarget&&n.setState({touchScrollTarget:e})}),u(m(m(n)),"blurSelectInput",function(){document.activeElement&&document.activeElement.blur()}),n}return c(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?U.a.createElement("div",null,U.a.createElement("div",{onClick:this.blurSelectInput,className:Object(z.a)({position:"fixed",left:0,bottom:0,right:0,top:0})}),U.a.createElement(xe,{innerRef:this.getScrollTarget},t),r?U.a.createElement(Fe,{touchScrollTarget:r}):null):t}}]),t}(W.PureComponent),De=function(e){function t(){var e,n;o(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=v(this,(e=p(t)).call.apply(e,[this].concat(i))),u(m(m(n)),"isBottom",!1),u(m(m(n)),"isTop",!1),u(m(m(n)),"scrollTarget",void 0),u(m(m(n)),"touchStart",void 0),u(m(m(n)),"cancelScroll",function(e){e.preventDefault(),e.stopPropagation()}),u(m(m(n)),"handleEventDelta",function(e,t){var r=n.props,o=r.onBottomArrive,i=r.onBottomLeave,a=r.onTopArrive,u=r.onTopLeave,s=n.scrollTarget,l=s.scrollTop,c=s.scrollHeight,p=s.clientHeight,f=n.scrollTarget,d=t>0,h=c-p-l,m=!1;h>t&&n.isBottom&&(i&&i(e),n.isBottom=!1),d&&n.isTop&&(u&&u(e),n.isTop=!1),d&&t>h?(o&&!n.isBottom&&o(e),f.scrollTop=c,m=!0,n.isBottom=!0):!d&&-t>l&&(a&&!n.isTop&&a(e),f.scrollTop=0,m=!0,n.isTop=!0),m&&n.cancelScroll(e)}),u(m(m(n)),"onWheel",function(e){n.handleEventDelta(e,e.deltaY)}),u(m(m(n)),"onTouchStart",function(e){n.touchStart=e.changedTouches[0].clientY}),u(m(m(n)),"onTouchMove",function(e){var t=n.touchStart-e.changedTouches[0].clientY;n.handleEventDelta(e,t)}),u(m(m(n)),"getScrollTarget",function(e){n.scrollTarget=e}),n}return c(t,e),a(t,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&(e.scrollHeight<=e.clientHeight||("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1)))}},{key:"stopListening",value:function(e){e.scrollHeight<=e.clientHeight||("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return U.a.createElement(xe,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(W.Component),Me=function(e){function t(){return o(this,t),v(this,p(t).apply(this,arguments))}return c(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=h(e,["isEnabled"]);return t?U.a.createElement(De,n):this.props.children}}]),t}(W.Component);u(Me,"defaultProps",{isEnabled:!0});var Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,i=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Te=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return r?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.")}},Ie=function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")},Le=function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")},Ne=function(e){var t=e.inputValue;return"".concat(e.screenReaderMessage).concat(t?" for search term "+t:"",".")},Ve=function(e){return e.label},je=function(e){return e.label},Re=function(e){return e.value},Be=function(e){return!!e.isDisabled},We=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},Ue=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,u=e.isRtl;return U.a.createElement("div",s({className:r(Object(z.a)(o("container",e)),{"--is-disabled":a,"--is-rtl":u},n)},i),t)},He=function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ze=function(e){function t(){return o(this,t),v(this,p(t).apply(this,arguments))}return c(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.cx,o=e.isMulti,i=e.getStyles,a=e.hasValue;return U.a.createElement("div",{className:r(Object(z.a)(i("valueContainer",this.props)),{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},t)}}]),t}(W.Component),Ge=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},$e=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return U.a.createElement("div",{className:r(Object(z.a)(o("indicatorsContainer",e)),{indicators:!0},n)},t)},Ye=function(e){var t=e.size,n=h(e,["size"]);return U.a.createElement("svg",s({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:Object(z.a)({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},n))},qe=function(e){return U.a.createElement(Ye,s({size:20},e),U.a.createElement("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Xe=function(e){return U.a.createElement(Ye,s({size:20},e),U.a.createElement("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Je=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Ke=Je,Ze=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return U.a.createElement("div",s({},i,{className:r(Object(z.a)(o("dropdownIndicator",e)),{indicator:!0,"dropdown-indicator":!0},n)}),t||U.a.createElement(Xe,null))},Qe=Je,et=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return U.a.createElement("div",s({},i,{className:r(Object(z.a)(o("clearIndicator",e)),{indicator:!0,"clear-indicator":!0},n)}),t||U.a.createElement(qe,null))},tt=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},nt=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return U.a.createElement("span",s({},o,{className:n(Object(z.a)(r("indicatorSeparator",e)),{"indicator-separator":!0},t)}))},rt=!1,ot=function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},it=function(e){var t=e.color,n=e.delay,r=e.offset;return U.a.createElement("span",{className:Object(z.a)({animationDuration:"1s",animationDelay:"".concat(n,"ms"),animationIterationCount:"infinite",animationName:"react-select-loading-indicator",animationTimingFunction:"ease-in-out",backgroundColor:t,borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})},at=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isFocused,a=e.isRtl,u=e.theme.colors,l=i?u.neutral80:u.neutral20;return rt||(Object(z.b)("@keyframes ","react-select-loading-indicator","{0%,80%,100%{opacity:0;}40%{opacity:1;}};"),rt=!0),U.a.createElement("div",s({},o,{className:n(Object(z.a)(r("loadingIndicator",e)),{indicator:!0,"loading-indicator":!0},t)}),U.a.createElement(it,{color:l,delay:0,offset:a}),U.a.createElement(it,{color:l,delay:160,offset:!0}),U.a.createElement(it,{color:l,delay:320,offset:!a}))};at.defaultProps={size:4};var ut=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},st=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,u=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return U.a.createElement("div",s({ref:u,className:n(Object(z.a)(r("control",e)),{control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":c},o)},l),t)},lt=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},ct=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,u=e.label,l=e.theme,c=e.selectProps;return U.a.createElement("div",{className:r(Object(z.a)(o("group",e)),{group:!0},n)},U.a.createElement(i,s({},a,{selectProps:c,theme:l,getStyles:o,cx:r}),u),U.a.createElement("div",null,t))},pt=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},ft=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,i=(e.selectProps,h(e,["className","cx","getStyles","theme","selectProps"]));return U.a.createElement("div",s({className:n(Object(z.a)(r("groupHeading",l({theme:o},i))),{"group-heading":!0},t)},i))},dt=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},ht=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},mt=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,i=e.isHidden,a=e.isDisabled,u=e.theme,c=(e.selectProps,h(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return U.a.createElement("div",{className:Object(z.a)(r("input",l({theme:u},c)))},U.a.createElement(K.a,s({className:n(null,{input:!0},t),inputRef:o,inputStyle:ht(i),disabled:a},c)))},vt=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},gt=function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},bt=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},yt=function(e){var t=e.children,n=e.innerProps;return U.a.createElement("div",n,t)},Et=yt,Ot=yt,Ct=function(e){function t(){return o(this,t),v(this,p(t).apply(this,arguments))}return c(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.innerProps;return U.a.createElement("div",n,t||U.a.createElement(qe,{size:14}))}}]),t}(W.Component),xt=function(e){function t(){return o(this,t),v(this,p(t).apply(this,arguments))}return c(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,u=e.innerProps,s=e.isDisabled,c=e.removeProps,p=e.selectProps,f=r.Container,d=r.Label,h=r.Remove,m=l({className:o(Object(z.a)(a("multiValue",this.props)),{"multi-value":!0,"multi-value--is-disabled":s},n)},u),v={className:o(Object(z.a)(a("multiValueLabel",this.props)),{"multi-value__label":!0},n)},g=l({className:o(Object(z.a)(a("multiValueRemove",this.props)),{"multi-value__remove":!0},n)},c);return U.a.createElement(f,{data:i,innerProps:m,selectProps:p},U.a.createElement(d,{data:i,innerProps:v,selectProps:p},t),U.a.createElement(h,{data:i,innerProps:g,selectProps:p}))}}]),t}(W.Component);u(xt,"defaultProps",{cropWithEllipsis:!0});var wt=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},St=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,u=e.isSelected,l=e.innerRef,c=e.innerProps;return U.a.createElement("div",s({ref:l,className:r(Object(z.a)(o("option",e)),{option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":u},n)},c),t)},At=function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},kt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return U.a.createElement("div",s({className:r(Object(z.a)(o("placeholder",e)),{placeholder:!0},n)},i),t)},Ft=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},_t=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return U.a.createElement("div",s({className:r(Object(z.a)(o("singleValue",e)),{"single-value":!0,"single-value--is-disabled":i},n)},a),t)},Dt={ClearIndicator:et,Control:st,DropdownIndicator:Ze,DownChevron:Xe,CrossIcon:qe,Group:ct,GroupHeading:ft,IndicatorsContainer:$e,IndicatorSeparator:nt,Input:mt,LoadingIndicator:at,Menu:oe,MenuList:ae,MenuPortal:de,LoadingMessage:pe,NoOptionsMessage:ce,MultiValue:xt,MultiValueContainer:Et,MultiValueLabel:Ot,MultiValueRemove:Ct,Option:St,Placeholder:kt,SelectContainer:Ue,SingleValue:_t,ValueContainer:ze},Mt=function(e){return l({},Dt,e.components)},Pt={clearIndicator:Qe,container:We,control:ut,dropdownIndicator:Ke,group:lt,groupHeading:pt,indicatorsContainer:Ge,indicatorSeparator:tt,input:dt,loadingIndicator:ot,loadingMessage:le,menu:ne,menuList:ie,menuPortal:fe,multiValue:vt,multiValueLabel:gt,multiValueRemove:bt,noOptionsMessage:se,option:wt,placeholder:At,singleValue:Ft,valueContainer:He},Tt={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},It={baseUnit:4,controlHeight:38,menuGutter:8},Lt={borderRadius:4,colors:Tt,spacing:It},Nt={backspaceRemovesValue:!0,blurInputOnSelect:P(),captureMenuScroll:!P(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){var r=l({ignoreCase:!0,ignoreAccents:!0,stringify:Ee,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,u=r.trim,s=r.matchFrom,c=u?ye(n):n,p=u?ye(a(t)):a(t);return o&&(c=c.toLowerCase(),p=p.toLowerCase()),i&&(c=be(c),p=be(p)),"start"===s?p.substr(0,c.length)===c:p.indexOf(c)>-1}}(),formatGroupLabel:Ve,getOptionLabel:je,getOptionValue:Re,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Be,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},Vt=1,jt=function(e){function t(e){var n;o(this,t),n=v(this,p(t).call(this,e)),u(m(m(n)),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),u(m(m(n)),"blockOptionHover",!1),u(m(m(n)),"isComposing",!1),u(m(m(n)),"clearFocusValueOnUpdate",!1),u(m(m(n)),"commonProps",void 0),u(m(m(n)),"components",void 0),u(m(m(n)),"hasGroups",!1),u(m(m(n)),"initialTouchX",0),u(m(m(n)),"initialTouchY",0),u(m(m(n)),"inputIsHiddenAfterUpdate",void 0),u(m(m(n)),"instancePrefix",""),u(m(m(n)),"openAfterFocus",!1),u(m(m(n)),"scrollToFocusedOptionOnUpdate",!1),u(m(m(n)),"userIsDragging",void 0),u(m(m(n)),"controlRef",null),u(m(m(n)),"getControlRef",function(e){n.controlRef=e}),u(m(m(n)),"focusedOptionRef",null),u(m(m(n)),"getFocusedOptionRef",function(e){n.focusedOptionRef=e}),u(m(m(n)),"menuListRef",null),u(m(m(n)),"getMenuListRef",function(e){n.menuListRef=e}),u(m(m(n)),"inputRef",null),u(m(m(n)),"getInputRef",function(e){n.inputRef=e}),u(m(m(n)),"cacheComponents",function(e){n.components=Mt({components:e})}),u(m(m(n)),"focus",n.focusInput),u(m(m(n)),"blur",n.blurInput),u(m(m(n)),"onChange",function(e,t){var r=n.props;(0,r.onChange)(e,l({},t,{name:r.name}))}),u(m(m(n)),"setValue",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,o=n.props,i=o.closeMenuOnSelect,a=o.isMulti;n.onInputChange("",{action:"set-value"}),i&&(n.inputIsHiddenAfterUpdate=!a,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})}),u(m(m(n)),"selectOption",function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,i=n.state.selectValue;if(o)if(n.isOptionSelected(e,i)){var a=n.getOptionValue(e);n.setValue(i.filter(function(e){return n.getOptionValue(e)!==a}),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,i)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(g(i),[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,i)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()}),u(m(m(n)),"removeValue",function(e){var t=n.state.selectValue,r=n.getOptionValue(e);n.onChange(t.filter(function(e){return n.getOptionValue(e)!==r}),{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()}),u(m(m(n)),"clearValue",function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})}),u(m(m(n)),"popValue",function(){var e=n.state.selectValue,t=e[e.length-1];n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(e.slice(0,e.length-1),{action:"pop-value",removedValue:t})}),u(m(m(n)),"getOptionLabel",function(e){return n.props.getOptionLabel(e)}),u(m(m(n)),"getOptionValue",function(e){return n.props.getOptionValue(e)}),u(m(m(n)),"getStyles",function(e,t){var r=Pt[e](t);r.boxSizing="border-box";var o=n.props.styles[e];return o?o(r,t):r}),u(m(m(n)),"getElementId",function(e){return"".concat(n.instancePrefix,"-").concat(e)}),u(m(m(n)),"getActiveDescendentId",function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,o=t.focusedOption;if(o&&e){var i=r.focusable.indexOf(o),a=r.render[i];return a&&a.key}}),u(m(m(n)),"announceAriaLiveSelection",function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:Te(t,r)})}),u(m(m(n)),"announceAriaLiveContext",function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:Pe(t,l({},r,{label:n.props["aria-label"]}))})}),u(m(m(n)),"onMenuMouseDown",function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())}),u(m(m(n)),"onMenuMouseMove",function(e){n.blockOptionHover=!1}),u(m(m(n)),"onControlMouseDown",function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&e.preventDefault()}),u(m(m(n)),"onDropdownIndicatorMouseDown",function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}}),u(m(m(n)),"onClearIndicatorMouseDown",function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,setTimeout(function(){return n.focusInput()}))}),u(m(m(n)),"onScroll",function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&w(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()}),u(m(m(n)),"onCompositionStart",function(){n.isComposing=!0}),u(m(m(n)),"onCompositionEnd",function(){n.isComposing=!1}),u(m(m(n)),"onTouchStart",function(e){var t=e.touches,r=t.item(0);r&&(n.initialTouchX=r.clientX,n.initialTouchY=r.clientY,n.userIsDragging=!1)}),u(m(m(n)),"onTouchMove",function(e){var t=e.touches,r=t.item(0);if(r){var o=Math.abs(r.clientX-n.initialTouchX),i=Math.abs(r.clientY-n.initialTouchY);n.userIsDragging=o>5||i>5}}),u(m(m(n)),"onTouchEnd",function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)}),u(m(m(n)),"onControlTouchEnd",function(e){n.userIsDragging||n.onControlMouseDown(e)}),u(m(m(n)),"onClearIndicatorTouchEnd",function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)}),u(m(m(n)),"onDropdownIndicatorTouchEnd",function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)}),u(m(m(n)),"handleInputChange",function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()}),u(m(m(n)),"onInputFocus",function(e){var t=n.props,r=t.isSearchable,o=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1}),u(m(m(n)),"onInputBlur",function(e){if(n.menuListRef&&n.menuListRef.contains(document.activeElement))return void n.inputRef.focus();n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})}),u(m(m(n)),"onOptionHover",function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})}),u(m(m(n)),"shouldHideSelectedOptions",function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t}),u(m(m(n)),"onKeyDown",function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,s=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=n.state,h=d.focusedOption,m=d.focusedValue,v=d.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;n.focusValue("previous");break;case"ArrowRight":if(!r||a)return;n.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)n.removeValue(m);else{if(!o)return;r?n.popValue():u&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!l||!p||!h||f&&n.isOptionSelected(h,v))return;n.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(n.isComposing)return;n.selectOption(h);break}return;case"Escape":l?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):u&&i&&n.clearValue();break;case" ":if(a)return;if(!l){n.openMenu("first");break}if(!h)return;n.selectOption(h);break;case"ArrowUp":l?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":l?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!l)return;n.focusOption("pageup");break;case"PageDown":if(!l)return;n.focusOption("pagedown");break;case"Home":if(!l)return;n.focusOption("first");break;case"End":if(!l)return;n.focusOption("last");break;default:return}e.preventDefault()}});var r=e.value;n.cacheComponents=Object(H.a)(n.cacheComponents,N).bind(m(m(n))),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Vt);var i=ee(r),a=n.buildMenuOptions(e,i);return n.state.menuOptions=a,n.state.selectValue=i,n}return c(t,e),a(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.inputValue!==o){var i=ee(e.value),a=this.buildMenuOptions(e,i),u=this.getNextFocusedValue(i),s=this.getNextFocusedOption(a.focusable);this.setState({menuOptions:a,selectValue:i,focusedOption:s,focusedValue:u})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&D(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this.state,n=t.menuOptions,r=t.selectValue,o=t.isFocused,i=this.props.isMulti,a="first"===e?0:n.focusable.length-1;if(!i){var u=n.focusable.indexOf(r[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[a]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var u=i.indexOf(a);a||(u=-1,this.announceAriaLiveContext({event:"value"}));var s=i.length-1,l=-1;if(i.length){switch(e){case"previous":l=0===u?0:-1===u?s:u-1;break;case"next":u>-1&&u<s&&(l=u+1)}-1===l&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==l,focusedValue:i[l]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions,i=o.focusable;if(i.length){var a=0,u=i.indexOf(r);r||(u=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?a=u>0?u-1:i.length-1:"down"===e?a=(u+1)%i.length:"pageup"===e?(a=u-t)<0&&(a=0):"pagedown"===e?(a=u+t)>i.length-1&&(a=i.length-1):"last"===e&&(a=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Be(i[a])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Lt):l({},Lt,this.props.theme):Lt}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,i=o.classNamePrefix,a=o.isMulti,u=o.isRtl,s=o.options,l=this.state.selectValue,c=this.hasValue(),p=function(){return l};return{cx:C.bind(null,i),clearValue:e,getStyles:t,getValue:p,hasValue:c,isMulti:a,isRtl:u,options:s,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue,o=r.indexOf(n);if(o>-1){if(e.indexOf(n)>-1)return n;if(o<e.length)return e[o]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some(function(e){return n.getOptionValue(e)===r})}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(e,t){var n=this,r=e.inputValue,o=void 0===r?"":r,i=e.options,a=function(e,r){var i=n.isOptionDisabled(e,t),a=n.isOptionSelected(e,t),u=n.getOptionLabel(e),s=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&a||!n.filterOption({label:u,value:s,data:e},o))){var l=i?void 0:function(){return n.onOptionHover(e)},c=i?void 0:function(){return n.selectOption(e)},p="".concat(n.getElementId("option"),"-").concat(r);return{innerProps:{id:p,onClick:c,onMouseMove:l,onMouseOver:l,tabIndex:-1},data:e,isDisabled:i,isSelected:a,key:p,label:u,type:"option",value:s}}};return i.reduce(function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.options,i=o.map(function(t,n){var o=a(t,"".concat(r,"-").concat(n));return o&&e.focusable.push(t),o}).filter(Boolean);if(i.length){var u="".concat(n.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:u,data:t,options:i})}}else{var s=a(t,"".concat(r));s&&(e.render.push(s),e.focusable.push(t))}return e},{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,i=this.props,a=i.options,u=i.menuIsOpen,s=i.inputValue,l=i.screenReaderStatus,c=r?Ie({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",p=o&&u?Le({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"",f=Ne({inputValue:s,screenReaderMessage:l({count:this.countOptions()})});return"".concat(c," ").concat(p," ").concat(f," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=this.components.Input,u=this.state.inputIsHidden,l=r||this.getElementId("input");if(!n)return U.a.createElement(Ce,{id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Q,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,value:""});var c={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},p=this.commonProps,f=p.cx,d=p.theme,h=p.selectProps;return U.a.createElement(a,s({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:f,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:i,theme:d,type:"text",value:o},c))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,l=this.commonProps,c=this.props,p=c.controlShouldRenderValue,f=c.isDisabled,d=c.isMulti,h=c.inputValue,m=c.placeholder,v=this.state,g=v.selectValue,b=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!p)return h?null:U.a.createElement(u,s({},l,{key:"placeholder",isDisabled:f,isFocused:y}),m);if(d){return g.map(function(t){var a=t===b;return U.a.createElement(n,s({},l,{components:{Container:r,Label:o,Remove:i},isFocused:a,isDisabled:f,key:e.getOptionValue(t),removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))})}if(h)return null;var E=g[0];return U.a.createElement(a,s({},l,{data:E,isDisabled:f}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return U.a.createElement(e,s({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;var a={"aria-hidden":"true"};return U.a.createElement(e,s({},t,{innerProps:a,isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return U.a.createElement(n,s({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return U.a.createElement(e,s({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,u=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,p=this.commonProps,f=this.state,d=f.focusedOption,m=f.menuOptions,v=this.props,g=v.captureMenuScroll,b=v.inputValue,y=v.isLoading,E=v.loadingMessage,O=v.minMenuHeight,C=v.maxMenuHeight,x=v.menuIsOpen,w=v.menuPlacement,S=v.menuPosition,A=v.menuPortalTarget,k=v.menuShouldBlockScroll,F=v.menuShouldScrollIntoView,_=v.noOptionsMessage,D=v.onMenuScrollToTop,M=v.onMenuScrollToBottom;if(!x)return null;var P,T=function(t){var n=d===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,U.a.createElement(c,s({},p,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=m.render.map(function(t){if("group"===t.type){var o=(t.type,h(t,["type"])),i="".concat(t.key,"-heading");return U.a.createElement(n,s({},p,o,{Heading:r,headingProps:{id:i},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return T(e)}))}if("option"===t.type)return T(t)});else if(y){var I=E({inputValue:b});if(null===I)return null;P=U.a.createElement(u,p,I)}else{var L=_({inputValue:b});if(null===L)return null;P=U.a.createElement(l,p,L)}var N={minMenuHeight:O,maxMenuHeight:C,menuPlacement:w,menuPosition:S,menuShouldScrollIntoView:F},V=U.a.createElement(re,s({},p,N),function(t){var n=t.ref,r=t.placerProps,a=r.placement,u=r.maxHeight;return U.a.createElement(o,s({},p,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:a}),U.a.createElement(Me,{isEnabled:g,onTopArrive:D,onBottomArrive:M},U.a.createElement(_e,{isEnabled:k},U.a.createElement(i,s({},p,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:u}),P))))});return A||"fixed"===S?U.a.createElement(a,s({},p,{appendTo:A,controlElement:this.controlRef,menuPlacement:w,menuPosition:S}),V):V}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var u=a.map(function(t){return e.getOptionValue(t)}).join(n);return U.a.createElement("input",{name:i,type:"hidden",value:u})}var s=a.length>0?a.map(function(t,n){return U.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):U.a.createElement("input",{name:i,type:"hidden"});return U.a.createElement("div",null,s)}var l=a[0]?this.getOptionValue(a[0]):"";return U.a.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?U.a.createElement(Oe,{"aria-live":"assertive"},U.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),U.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,u=i.id,l=i.isDisabled,c=i.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return U.a.createElement(r,s({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),U.a.createElement(t,s({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:c}),U.a.createElement(o,s({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),U.a.createElement(n,s({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}(W.Component);u(jt,"defaultProps",Nt);var Rt={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Bt=function(e){var t,n;return n=t=function(t){function n(){var e,t;o(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=v(this,(e=p(n)).call.apply(e,[this].concat(i))),u(m(m(t)),"select",void 0),u(m(m(t)),"state",{inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue}),u(m(m(t)),"onChange",function(e,n){t.callProp("onChange",e,n),t.setState({value:e})}),u(m(m(t)),"onInputChange",function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})}),u(m(m(t)),"onMenuOpen",function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})}),u(m(m(t)),"onMenuClose",function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})}),t}return c(n,t),a(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,h(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return U.a.createElement(e,s({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(W.Component),u(t,"defaultProps",Rt),n},Wt={cacheOptions:!1,defaultOptions:!1,filterOption:null},Ut=function(e){var t,n;return n=t=function(t){function n(e){var t;return o(this,n),t=v(this,p(n).call(this)),u(m(m(t)),"select",void 0),u(m(m(t)),"lastRequest",void 0),u(m(m(t)),"mounted",!1),u(m(m(t)),"optionsCache",{}),u(m(m(t)),"handleInputChange",function(e,n){var r=t.props,o=r.cacheOptions,i=r.onInputChange,a=x(e,n,i);if(!a)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&t.optionsCache[a])t.setState({inputValue:a,loadedInputValue:a,loadedOptions:t.optionsCache[a],isLoading:!1,passEmptyOptions:!1});else{var u=t.lastRequest={};t.setState({inputValue:a,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},function(){t.loadOptions(a,function(e){t.mounted&&(e&&(t.optionsCache[a]=e),u===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:a,loadedOptions:e||[],passEmptyOptions:!1})))})})}return a}),t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return c(n,t),a(n,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}})}},{key:"componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,function(){return t()})}},{key:"render",value:function(){var t=this,n=this.props,r=(n.loadOptions,h(n,["loadOptions"])),o=this.state,i=o.defaultOptions,a=o.inputValue,u=o.isLoading,l=o.loadedInputValue,c=o.loadedOptions,p=o.passEmptyOptions,f=p?[]:a&&l?c:i||[];return U.a.createElement(e,s({},r,{ref:function(e){t.select=e},options:f,isLoading:u,onInputChange:this.handleInputChange}))}}]),n}(W.Component),u(t,"defaultProps",Wt),n},Ht=Bt(jt),zt=(Ut(Ht),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=String(e).toLowerCase(),r=String(t.value).toLowerCase(),o=String(t.label).toLowerCase();return r===n||o===n}),Gt={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n){return!(!e||t.some(function(t){return zt(e,t)})||n.some(function(t){return zt(e,t)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},$t=l({allowCreateWhileLoading:!1,createOptionPosition:"last"},Gt),Yt=function(e){var t,n;return n=t=function(t){function n(e){var t;o(this,n),t=v(this,p(n).call(this,e)),u(m(m(t)),"select",void 0),u(m(m(t)),"onChange",function(e,n){var r=t.props,o=r.getNewOptionData,i=r.inputValue,a=r.isMulti,u=r.onChange,s=r.onCreateOption,l=r.value;if("select-option"!==n.action)return u(e,n);var c=t.state.newOption,p=Array.isArray(e)?e:[e];if(p[p.length-1]!==c)u(e,n);else if(s)s(i);else{var f=o(i,i),d={action:"create-option"};a?u([].concat(g(ee(l)),[f]),d):u(f,d)}});var r=e.options||[];return t.state={newOption:void 0,options:r},t}return c(n,t),a(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowCreateWhileLoading,n=e.createOptionPosition,r=e.formatCreateLabel,o=e.getNewOptionData,i=e.inputValue,a=e.isLoading,u=e.isValidNewOption,s=e.value,l=e.options||[],c=this.state.newOption;c=u(i,ee(s),l)?o(i,r(i)):void 0,this.setState({newOption:c,options:!t&&a||!c?l:"first"===n?[c].concat(g(l)):[].concat(g(l),[c])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,n=s({},this.props),r=this.state.options;return U.a.createElement(e,s({},n,{ref:function(e){t.select=e},options:r,onChange:this.onChange}))}}]),n}(W.Component),u(t,"defaultProps",$t),n},qt=Yt(jt),Xt=(Bt(qt),Yt(jt)),Jt=Bt(Xt),Kt=(Ut(Jt),function(e){return function(t){var n=(t.in,t.onExited,t.appear,t.enter,t.exit,h(t,["in","onExited","appear","enter","exit"]));return U.a.createElement(e,n)}}),Zt=function(e){var t=e.component,n=e.duration,r=void 0===n?1:n,o=e.in,i=(e.onExited,h(e,["component","duration","in","onExited"])),a={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(r,"ms")},exiting:{opacity:0},exited:{opacity:0}};return U.a.createElement(Z.Transition,{mountOnEnter:!0,unmountOnExit:!0,in:o,timeout:r},function(e){var n={style:l({},a[e])};return U.a.createElement(t,s({innerProps:n},i))})},Qt=260,en=function(e){function t(){var e,n;o(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=v(this,(e=p(t)).call.apply(e,[this].concat(i))),u(m(m(n)),"duration",Qt),u(m(m(n)),"rafID",void 0),u(m(m(n)),"state",{width:"auto"}),u(m(m(n)),"transition",{exiting:{width:0,transition:"width ".concat(n.duration,"ms ease-out")},exited:{width:0}}),u(m(m(n)),"getWidth",function(e){e&&isNaN(n.state.width)&&(n.rafID=window.requestAnimationFrame(function(){var t=e.getBoundingClientRect(),r=t.width;n.setState({width:r})}))}),u(m(m(n)),"getStyle",function(e){return{overflow:"hidden",whiteSpace:"nowrap",width:e}}),u(m(m(n)),"getTransition",function(e){return n.transition[e]}),n}return c(t,e),a(t,[{key:"componentWillUnmount",value:function(){this.rafID&&window.cancelAnimationFrame(this.rafID)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.in,o=this.state.width;return U.a.createElement(Z.Transition,{enter:!1,mountOnEnter:!0,unmountOnExit:!0,in:r,timeout:this.duration},function(t){var r=l({},e.getStyle(o),e.getTransition(t));return U.a.createElement("div",{ref:e.getWidth,style:r},n)})}}]),t}(W.Component),tn=function(e){return function(t){var n=t.in,r=t.onExited,o=h(t,["in","onExited"]);return U.a.createElement(en,{in:n,onExited:r},U.a.createElement(e,s({cropWithEllipsis:n},o)))}},nn=function(e){return function(t){return U.a.createElement(Zt,s({component:e,duration:t.isMulti?Qt:1},t))}},rn=function(e){return function(t){return U.a.createElement(Zt,s({component:e},t))}},on=function(e){return function(t){return U.a.createElement(Z.TransitionGroup,s({component:e},t))}},an=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Mt({components:e}),n=t.Input,r=t.MultiValue,o=t.Placeholder,i=t.SingleValue,a=t.ValueContainer,u=h(t,["Input","MultiValue","Placeholder","SingleValue","ValueContainer"]);return l({Input:Kt(n),MultiValue:tn(r),Placeholder:nn(o),SingleValue:rn(i),ValueContainer:on(a)},u)},un=an(),sn=(un.Input,un.MultiValue,un.Placeholder,un.SingleValue,un.ValueContainer,Object(H.a)(an,N),Bt(jt));t.a=sn},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(){}t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(4)),s=r(n(3)),l=r(n(20)),c=n(38),p=(n(39),"unmounted");t.UNMOUNTED=p;var f="exited";t.EXITED=f;var d="entering";t.ENTERING=d;var h="entered";t.ENTERED=h;t.EXITING="exiting";var m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=f,r.appearStatus=d):o=h:o=t.unmountOnExit||t.mountOnEnter?p:f,r.state={status:o},r.nextCallback=null,r}i(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===p?{status:f}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==h&&(t=d):n!==d&&n!==h||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=l.default.findDOMNode(this);t===d?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:p})},n.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;if(!t&&!r)return void this.safeSetState({status:h},function(){n.props.onEntered(e)});this.props.onEnter(e,o),this.safeSetState({status:d},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,function(){n.safeSetState({status:h},function(){n.props.onEntered(e,o)})})})},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:f},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:f},function(){t.props.onExited(e)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;if(!e||r)return void setTimeout(this.nextCallback,0);this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var e=this.state.status;if(e===p)return null;var t=this.props,n=t.children,r=o(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var i=s.default.Children.only(n);return s.default.cloneElement(i,r)},t}(s.default.Component);m.contextTypes={transitionGroup:u.object},m.childContextTypes={transitionGroup:function(){}},m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:a,onEntering:a,onEntered:a,onExit:a,onExiting:a,onExited:a},m.UNMOUNTED=0,m.EXITED=1,m.ENTERING=2,m.ENTERED=3,m.EXITING=4;var v=(0,c.polyfill)(m);t.default=v},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,u=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?u="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==u){var s=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;!function(e){e&&e.__esModule}(n(4));t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.__esModule=!0,t.default=void 0;var s=r(n(4)),l=r(n(3)),c=n(38),p=n(84),f=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d={component:"div",childFactory:function(e){return e}},h=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o=r.handleExited.bind(u(u(r)));return r.state={handleExited:o,firstRender:!0},r}a(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},n.componentDidMount=function(){this.appeared=!0,this.mounted=!0},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,p.getInitialChildMapping)(e,r):(0,p.getNextChildMapping)(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=(0,p.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=i({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=o(e,["component","childFactory"]),i=f(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:l.default.createElement(t,r,i)},t}(l.default.Component);h.childContextTypes={transitionGroup:s.default.object.isRequired},h.propTypes={},h.defaultProps=d;var m=(0,c.polyfill)(h);t.default=m,e.exports=t.default},function(e,t,n){"use strict";var r=n(15),o=n(6),i=n(45),a=n(10),u=n(13),s=n(91),l=n(30),c=n(47),p=n(1)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,m,v,g){s(n,t,h);var b,y,E,O=function(e){if(!f&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",x="values"==m,w=!1,S=e.prototype,A=S[p]||S["@@iterator"]||m&&S[m],k=A||O(m),F=m?x?O("entries"):k:void 0,_="Array"==t?S.entries||A:A;if(_&&(E=c(_.call(new e)))!==Object.prototype&&E.next&&(l(E,C,!0),r||"function"==typeof E[p]||a(E,p,d)),x&&A&&"values"!==A.name&&(w=!0,k=function(){return A.call(this)}),r&&!g||!f&&!w&&S[p]||a(S,p,k),u[t]=k,u[C]=d,m)if(b={values:x?k:O("values"),keys:v?k:O("keys"),entries:F},g)for(y in b)y in S||i(S,y,b[y]);else o(o.P+o.F*(f||w),t,b);return b}},function(e,t,n){var r=n(90);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){e.exports=!n(8)&&!n(14)(function(){return 7!=Object.defineProperty(n(44)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(12),o=n(2).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){e.exports=n(10)},function(e,t,n){var r=n(9),o=n(5),i=n(93)(!1),a=n(27)("IE_PROTO");e.exports=function(e,t){var n,u=o(e),s=0,l=[];for(n in u)n!=a&&r(u,n)&&l.push(n);for(;t.length>s;)r(u,n=t[s++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(9),o=n(48),i=n(27)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(23);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(22),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(u=r(t))&&"function"==typeof t.callee?"Arguments":u}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(112),i=r(o),a=n(114),u=r(a),s="function"==typeof u.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof u.default&&e.constructor===u.default&&e!==u.default.prototype?"symbol":typeof e};t.default="function"==typeof u.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof u.default&&e.constructor===u.default&&e!==u.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(46),o=n(29).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(19),o=n(16),i=n(5),a=n(24),u=n(9),s=n(43),l=Object.getOwnPropertyDescriptor;t.f=n(8)?l:function(e,t){if(e=i(e),t=a(t,!0),s)try{return l(e,t)}catch(e){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(100),i=r(o),a=n(34),u=r(a);t.default=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=(0,u.default)(e);!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,i.default)(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){e.exports={default:n(103),__esModule:!0}},function(e,t,n){e.exports={default:n(106),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(109),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";t.__esModule=!0;var r=n(50),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(124),i=r(o),a=n(128),u=r(a),s=n(50),l=r(s);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,l.default)(t)));e.prototype=(0,u.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(62),__esModule:!0}},function(e,t,n){var r=n(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function o(e,t){void 0===t&&(t=r);var n,o,i=[],a=!1;return function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return a&&n===this&&t(u,i)?o:(o=e.apply(this,u),a=!0,n=this,i=u,o)}}t.a=o},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return a}),n.d(t,"a",function(){return u});var r=n(65),o=void 0!==e?e:{},i=Object(r.a)(o),a=(i.flush,i.hydrate,i.cx,i.merge,i.getRegisteredStyles,i.injectGlobal),u=(i.keyframes,i.css);i.sheet,i.caches}).call(t,n(36))},function(e,t,n){"use strict";function r(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function o(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}function i(e,t){function n(e){E+=e,v&&S.insert(e,_)}function r(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var n=e.toString();return n}return r.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return o.call(this,e);default:var i=w.registered[e];return!1===t&&void 0!==i?i:e}}function o(e){if(D.has(e))return D.get(e);var t="";return Array.isArray(e)?e.forEach(function(e){t+=r.call(this,e,!1)},this):Object.keys(e).forEach(function(n){"object"!=typeof e[n]?void 0!==w.registered[e[n]]?t+=n+"{"+w.registered[e[n]]+"}":t+=d(n)+":"+h(n,e[n])+";":Array.isArray(e[n])&&"string"==typeof e[n][0]&&void 0===w.registered[e[n][0]]?e[n].forEach(function(e){t+=d(n)+":"+h(n,e)+";"}):t+=n+"{"+r.call(this,e[n],!1)+"}"},this),D.set(e,t),t}function i(e,t){void 0===w.inserted[k]&&(E="",A(e,t),w.inserted[k]=E)}function a(e,t){var n="";return t.split(" ").forEach(function(t){void 0!==w.registered[t]?e.push(t):n+=t+" "}),n}function u(e,t){var n=[],r=a(n,e);return n.length<2?e:r+I(n,t)}function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(m(t))}function f(e){w.inserted[e]=!0}function b(e){e.forEach(f)}function y(){v&&(S.flush(),S.inject()),w.inserted={},w.registered={}}if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var E,O,C=t.key||"css",x=p()(n);void 0!==t.prefix&&(O={prefix:t.prefix});var w={registered:{},inserted:{},nonce:t.nonce,key:C},S=new g(t);v&&S.inject();var A=new l.a(O);A.use(t.stylisPlugins)(x);var k,F,_="",D=new WeakMap,M=/label:\s*([^\s;\n{]+)\s*;/g,P=function(e,t){return Object(s.a)(e+t)+t},T=function(e){var t=!0,n="",o="";null==e||void 0===e.raw?(t=!1,n+=r.call(this,e,!1)):n+=e[0];for(var i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];return a.forEach(function(o,i){n+=r.call(this,o,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[i+1]&&(n+=e[i+1])},this),F=n,n=n.replace(M,function(e,t){return o+="-"+t,""}),k=P(n,o),n},I=function(){var e=T.apply(this,arguments),t=C+"-"+k;return void 0===w.registered[t]&&(w.registered[t]=F),i("."+t,e),t},L=function(){var e=T.apply(this,arguments),t="animation-"+k;return i("","@keyframes "+t+"{"+e+"}"),t},N=function(){i("",T.apply(this,arguments))};if(v){var V=document.querySelectorAll("[data-emotion-"+C+"]");Array.prototype.forEach.call(V,function(e){S.tags[0].parentNode.insertBefore(e,S.tags[0]),e.getAttribute("data-emotion-"+C).split(" ").forEach(f)})}var j={flush:y,hydrate:b,cx:c,merge:u,getRegisteredStyles:a,injectGlobal:N,keyframes:L,css:I,sheet:S,caches:w};return e.__SECRET_EMOTION__=j,j}var a=n(66),u=n(67),s=n(68),l=n(69),c=n(70),p=n.n(c),f=/[A-Z]|^ms/g,d=Object(a.a)(function(e){return e.replace(f,"-$&").toLowerCase()}),h=function(e,t){return null==t||"boolean"==typeof t?"":1===u.a[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},m=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"function":a=e([i()]);break;case"object":if(Array.isArray(i))a=e(i);else{a="";for(var u in i)i[u]&&u&&(a&&(a+=" "),a+=u)}break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o},v="undefined"!=typeof document,g=function(){function e(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=o(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var n=this.tags[this.tags.length-1],i=r(n);try{i.insertRule(e,i.cssRules.length)}catch(e){}}else{var a=o(this.opts);this.tags.push(a),a.appendChild(document.createTextNode(e+(t||"")))}++this.ctr%65e3==0&&this.tags.push(o(this.opts))},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,this.injected=!1},e}();t.a=i},function(e,t,n){"use strict";function r(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}t.a=r},function(e,t,n){"use strict";var r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};t.a=r},function(e,t,n){"use strict";function r(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),t^=t>>>24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^t,n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r^=255&e.charCodeAt(o),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)}return r^=r>>>13,r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16),r^=r>>>15,(r>>>0).toString(36)}t.a=r},function(e,t,n){"use strict";function r(e){function t(e,r,s,l,c){for(var d,h,m,v,g,O=0,x=0,w=0,S=0,A=0,k=0,T=m=d=0,L=0,V=0,j=0,R=0,B=s.length,W=B-1,U="",H="",z="",G="";L<B;){if(h=s.charCodeAt(L),L===W&&0!==x+S+w+O&&(0!==x&&(h=47===x?10:47),S=w=O=0,B++,W++),0===x+S+w+O){if(L===W&&(0<V&&(U=U.replace(f,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=s.charAt(L)}h=59}switch(h){case 123:for(U=U.trim(),d=U.charCodeAt(0),m=1,R=++L;L<B;){switch(h=s.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=s.charCodeAt(L+1)){case 42:case 47:e:{for(T=L+1;T<W;++T)switch(s.charCodeAt(T)){case 47:if(42===h&&42===s.charCodeAt(T-1)&&L+2!==T){L=T+1;break e}break;case 10:if(47===h){L=T+1;break e}}L=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<W&&s.charCodeAt(L)!==h;);}if(0===m)break;L++}switch(m=s.substring(R,L),0===d&&(d=(U=U.replace(p,"").trim()).charCodeAt(0)),d){case 64:switch(0<V&&(U=U.replace(f,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:V=r;break;default:V=P}if(m=t(r,V,m,h,c+1),R=m.length,0<I&&(V=n(P,U,j),g=u(3,m,V,r,_,F,R,h,c,l),U=V.join(""),void 0!==g&&0===(R=(m=g.trim()).length)&&(h=0,m="")),0<R)switch(h){case 115:U=U.replace(C,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:U=U.replace(b,"$1 $2"),m=U+"{"+m+"}",m=1===M||2===M&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===l&&(H+=m,m="")}else m="";break;default:m=t(r,n(r,U,j),m,l,c+1)}z+=m,m=j=V=T=d=0,U="",h=s.charCodeAt(++L);break;case 125:case 59:if(U=(0<V?U.replace(f,""):U).trim(),1<(R=U.length))switch(0===T&&(45===(d=U.charCodeAt(0))||96<d&&123>d)&&(R=(U=U.replace(" ",":")).length),0<I&&void 0!==(g=u(1,U,r,e,_,F,H.length,l,c,l))&&0===(R=(U=g.trim()).length)&&(U="\0\0"),d=U.charCodeAt(0),h=U.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){G+=U+s.charAt(L);break}default:58!==U.charCodeAt(R-1)&&(H+=o(U,d,h,U.charCodeAt(2)))}j=V=T=d=0,U="",h=s.charCodeAt(++L)}}switch(h){case 13:case 10:47===x?x=0:0===1+d&&107!==l&&0<U.length&&(V=1,U+="\0"),0<I*N&&u(0,U,r,e,_,F,H.length,l,c,l),F=1,_++;break;case 59:case 125:if(0===x+S+w+O){F++;break}default:switch(F++,v=s.charAt(L),h){case 9:case 32:if(0===S+O+x)switch(A){case 44:case 58:case 9:case 32:v="";break;default:32!==h&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===S+x+O&&(V=j=1,v="\f"+v);break;case 108:if(0===S+x+O+D&&0<T)switch(L-T){case 2:112===A&&58===s.charCodeAt(L-3)&&(D=A);case 8:111===k&&(D=k)}break;case 58:0===S+x+O&&(T=L);break;case 44:0===x+w+S+O&&(V=1,v+="\r");break;case 34:case 39:0===x&&(S=S===h?0:0===S?h:S);break;case 91:0===S+x+w&&O++;break;case 93:0===S+x+w&&O--;break;case 41:0===S+x+O&&w--;break;case 40:if(0===S+x+O){if(0===d)switch(2*A+3*k){case 533:break;default:d=1}w++}break;case 64:0===x+w+S+O+T+m&&(m=1);break;case 42:case 47:if(!(0<S+O+w))switch(x){case 0:switch(2*h+3*s.charCodeAt(L+1)){case 235:x=47;break;case 220:R=L,x=42}break;case 42:47===h&&42===A&&R+2!==L&&(33===s.charCodeAt(R+2)&&(H+=s.substring(R,L+1)),v="",x=0)}}0===x&&(U+=v)}k=A,A=h,L++}if(0<(R=H.length)){if(V=r,0<I&&void 0!==(g=u(2,H,V,e,_,F,R,l,c,l))&&0===(H=g).length)return G+H+z;if(H=V.join(",")+"{"+H+"}",0!=M*D){switch(2!==M||i(H,2)||(D=0),D){case 111:H=H.replace(E,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}D=0}}return G+H+z}function n(e,t,n){var o=t.trim().split(v);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var u=0;for(e=0===a?"":e[0]+" ";u<i;++u)t[u]=r(e,t[u],n).trim();break;default:var s=u=0;for(t=[];u<i;++u)for(var l=0;l<a;++l)t[s++]=r(e[l]+" ",o[u],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",u=2*t+3*n+4*r;if(944===u){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===M||2===M&&i(s,1)?"-webkit-"+s+s:s}if(0===M||2===M&&!i(a,1))return a;switch(u){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return h.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(s=a.substring(13).trim(),t=s.indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(O,"tb");break;case 232:s=a.replace(O,"tb-rl");break;case 220:s=a.replace(O,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim(),u=s.charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<u?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),L(2!==t?r:r.replace(S,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function u(e,t,n,r,o,i,a,u,s,l){for(var p,f=0,d=t;f<I;++f)switch(p=T[f].call(c,e,d,n,r,o,i,a,u,s,l)){case void 0:case!1:case!0:case null:break;default:d=p}if(d!==t)return d}function s(e){switch(e){case void 0:case null:I=T.length=0;break;default:switch(e.constructor){case Array:for(var t=0,n=e.length;t<n;++t)s(e[t]);break;case Function:T[I++]=e;break;case Boolean:N=0|!!e}}return s}function l(e){return e=e.prefix,void 0!==e&&(L=null,e?"function"!=typeof e?M=1:(M=2,L=e):M=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),V=r,r=[V],0<I){var o=u(-1,n,r,r,_,F,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(P,r,n,0,0);return 0<I&&void 0!==(o=u(-2,i,r,r,_,F,i.length,0,0,0))&&(i=o),V="",D=0,F=_=1,i}var p=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,m=/([,: ])(transform)/g,v=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,E=/:(read-only)/g,O=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,w=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,F=1,_=1,D=0,M=1,P=[],T=[],I=0,L=null,N=0,V="";return c.use=s,c.set=l,void 0!==e&&l(e),c}t.a=r},function(e,t,n){!function(t){e.exports=t()}(function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,u,s,l,c,p){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}})},function(e,t,n){"use strict";function r(){}function o(){}var i=n(72);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){for(var r=n(74),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",u=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],l=0;!u&&l<i.length;l++)u=o[i[l]+"Request"+a],s=o[i[l]+"Cancel"+a]||o[i[l]+"CancelRequest"+a];if(!u||!s){var c=0,p=0,f=[];u=function(e){if(0===f.length){var t=r(),n=Math.max(0,1e3/60-(t-c));c=n+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return f.push({handle:++p,callback:e,cancelled:!1}),p},s=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return u.call(o,e)},e.exports.cancel=function(){s.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=u,e.cancelAnimationFrame=s}}).call(t,n(36))},function(e,t,n){(function(t){(function(){var n,r,o,i,a,u;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},i=n(),u=1e9*t.uptime(),a=i-u):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(t,n(75))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){m&&d&&(m=!1,d.length?h=d.concat(h):v=-1,h.length&&u())}function u(){if(!m){var e=o(a);m=!0;for(var t=h.length;t;){for(d=h,h=[];++v<t;)d&&d[v].run();v=-1,t=h.length}d=null,m=!1,i(e)}}function s(e,t){this.fun=e,this.array=t}function l(){}var c,p,f=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var d,h=[],m=!1,v=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new s(e,t)),1!==h.length||m||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.prependListener=l,f.prependOnceListener=l,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(3),p=r(c),f=n(4),d=r(f),h={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},m=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],v=function(e){return m.forEach(function(t){return delete e[t]}),e},g=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},b=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),y=function(){return b?"_"+Math.random().toString(36).substr(2,12):void 0},E=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||y()},n}return u(t,e),l(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||y()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(g(e,this.sizer),this.placeHolderSizer&&g(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2;e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0,e<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return b&&e?p.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!==e&&void 0!==e?e:t}),t=s({},this.props.style);t.display||(t.display="inline-block");var n=s({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),r=o(this.props,[]);return v(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,p.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),p.default.createElement("input",s({},r,{ref:this.inputRef})),p.default.createElement("div",{ref:this.sizerRef,style:h},e),this.props.placeholder?p.default.createElement("div",{ref:this.placeHolderSizerRef,style:h},this.props.placeholder):null)}}]),t}(c.Component);E.propTypes={className:d.default.string,defaultValue:d.default.any,extraWidth:d.default.oneOfType([d.default.number,d.default.string]),id:d.default.string,injectStyles:d.default.bool,inputClassName:d.default.string,inputRef:d.default.func,inputStyle:d.default.object,minWidth:d.default.oneOfType([d.default.number,d.default.string]),onAutosize:d.default.func,onChange:d.default.func,placeholder:d.default.string,placeholderIsMinWidth:d.default.bool,style:d.default.object,value:d.default.any},E.defaultProps={minWidth:1,injectStyles:!0},t.default=E},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=r(n(78)),i=r(n(83)),a=r(n(40)),u=r(n(37));e.exports={Transition:u.default,TransitionGroup:a.default,ReplaceTransition:i.default,CSSTransition:o.default}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}t.__esModule=!0,t.default=void 0;var a=(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(4)),r(n(79))),u=r(n(82)),s=r(n(3)),l=r(n(37)),c=(n(39),function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,a.default)(e,t)})}),p=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,u.default)(e,t)})},f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,t.onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter"),o=r.className;t.removeClasses(e,"exit"),c(e,o),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter"),o=r.activeClassName;t.reflowAndAddClass(e,o),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,i=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),c(e,i),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit"),r=n.className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),c(e,r),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit"),r=n.activeClassName;t.reflowAndAddClass(e,r),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit"),r=n.doneClassName;t.removeClasses(e,"exit"),c(e,r),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r&&n?n+"-":"",i=r?o+e:n[e];return{className:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}i(t,e);var n=t.prototype;return n.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&p(e,r),o&&p(e,o),i&&p(e,i)},n.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,c(e,t))},n.render=function(){var e=o({},this.props);return delete e.classNames,s.default.createElement(l.default,o({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.default.Component);f.defaultProps={classNames:""},f.propTypes={};var d=f;t.default=d,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var o=n(80);t.__esModule=!0,t.default=r;var i=o(n(81));e.exports=t.default},function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}t.__esModule=!0,t.default=void 0;var a=(r(n(4)),r(n(3))),u=n(20),s=r(n(40)),l=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,t.handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}i(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=a.default.Children.toArray(o)[t];i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]&&this.props[e]((0,u.findDOMNode)(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,r=o(e,["children","in"]),i=a.default.Children.toArray(t),u=i[0],l=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,a.default.createElement(s.default,r,n?a.default.cloneElement(u,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):a.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(a.default.Component);l.propTypes={};var c=l;t.default=c,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n=function(e){return t&&(0,s.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&s.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,u={};for(var s in t){if(r[s])for(a=0;a<r[s].length;a++){var l=r[s][a];u[r[s][a]]=n(l)}u[s]=n(s)}for(a=0;a<o.length;a++)u[o[a]]=n(o[a]);return u}function i(e,t,n){return null!=n[t]?n[t]:e.props[t]}function a(e,t){return r(e.children,function(n){return(0,s.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})})}function u(e,t,n){var a=r(e.children),u=o(t,a);return Object.keys(u).forEach(function(r){var o=u[r];if((0,s.isValidElement)(o)){var l=r in t,c=r in a,p=t[r],f=(0,s.isValidElement)(p)&&!p.props.in;!c||l&&!f?c||!l||f?c&&l&&(0,s.isValidElement)(p)&&(u[r]=(0,s.cloneElement)(o,{onExited:n.bind(null,o),in:p.props.in,exit:i(o,"exit",e),enter:i(o,"enter",e)})):u[r]=(0,s.cloneElement)(o,{in:!1}):u[r]=(0,s.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:i(o,"exit",e),enter:i(o,"enter",e)})}}),u}t.__esModule=!0,t.getChildMapping=r,t.mergeChildMappings=o,t.getInitialChildMapping=a,t.getNextChildMapping=u;var s=n(3)},function(e,t,n){n(21),n(31),e.exports=n(98)},function(e,t,n){"use strict";var r=n(87),o=n(88),i=n(13),a=n(5);e.exports=n(41)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(25),o=n(16),i=n(30),a={};n(10)(a,n(1)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(7),o=n(11),i=n(17);e.exports=n(8)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),u=a.length,s=0;u>s;)r.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var r=n(5),o=n(94),i=n(95);e.exports=function(e){return function(t,n,a){var u,s=r(t),l=o(s.length),c=i(a,l);if(e&&n!=n){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(26),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(26),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(26),o=n(23);e.exports=function(e){return function(t,n){var i,a,u=String(o(t)),s=r(n),l=u.length;return s<0||s>=l?e?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===l||(a=u.charCodeAt(s+1))<56320||a>57343?e?u.charAt(s):i:e?u.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var r=n(11),o=n(99);e.exports=n(0).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){var r=n(49),o=n(1)("iterator"),i=n(13);e.exports=n(0).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){e.exports={default:n(101),__esModule:!0}},function(e,t,n){n(21),n(31),e.exports=n(102)},function(e,t,n){var r=n(49),o=n(1)("iterator"),i=n(13);e.exports=n(0).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t,n){n(104),e.exports=n(0).Object.entries},function(e,t,n){var r=n(6),o=n(105)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){var r=n(17),o=n(5),i=n(19).f;e.exports=function(e){return function(t){for(var n,a=o(t),u=r(a),s=u.length,l=0,c=[];s>l;)i.call(a,n=u[l++])&&c.push(e?[n,a[n]]:a[n]);return c}}},function(e,t,n){n(107),e.exports=n(0).Object.getPrototypeOf},function(e,t,n){var r=n(48),o=n(47);n(108)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(6),o=n(0),i=n(14);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){e.exports={default:n(110),__esModule:!0}},function(e,t,n){n(111);var r=n(0).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(6);r(r.S+r.F*!n(8),"Object",{defineProperty:n(7).f})},function(e,t,n){e.exports={default:n(113),__esModule:!0}},function(e,t,n){n(31),n(21),e.exports=n(32).f("iterator")},function(e,t,n){e.exports={default:n(115),__esModule:!0}},function(e,t,n){n(116),n(121),n(122),n(123),e.exports=n(0).Symbol},function(e,t,n){"use strict";var r=n(2),o=n(9),i=n(8),a=n(6),u=n(45),s=n(117).KEY,l=n(14),c=n(28),p=n(30),f=n(18),d=n(1),h=n(32),m=n(33),v=n(118),g=n(119),b=n(11),y=n(12),E=n(5),O=n(24),C=n(16),x=n(25),w=n(120),S=n(53),A=n(7),k=n(17),F=S.f,_=A.f,D=w.f,M=r.Symbol,P=r.JSON,T=P&&P.stringify,I=d("_hidden"),L=d("toPrimitive"),N={}.propertyIsEnumerable,V=c("symbol-registry"),j=c("symbols"),R=c("op-symbols"),B=Object.prototype,W="function"==typeof M,U=r.QObject,H=!U||!U.prototype||!U.prototype.findChild,z=i&&l(function(){return 7!=x(_({},"a",{get:function(){return _(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=F(B,t);r&&delete B[t],_(e,t,n),r&&e!==B&&_(B,t,r)}:_,G=function(e){var t=j[e]=x(M.prototype);return t._k=e,t},$=W&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},Y=function(e,t,n){return e===B&&Y(R,t,n),b(e),t=O(t,!0),b(n),o(j,t)?(n.enumerable?(o(e,I)&&e[I][t]&&(e[I][t]=!1),n=x(n,{enumerable:C(0,!1)})):(o(e,I)||_(e,I,C(1,{})),e[I][t]=!0),z(e,t,n)):_(e,t,n)},q=function(e,t){b(e);for(var n,r=v(t=E(t)),o=0,i=r.length;i>o;)Y(e,n=r[o++],t[n]);return e},X=function(e,t){return void 0===t?x(e):q(x(e),t)},J=function(e){var t=N.call(this,e=O(e,!0));return!(this===B&&o(j,e)&&!o(R,e))&&(!(t||!o(this,e)||!o(j,e)||o(this,I)&&this[I][e])||t)},K=function(e,t){if(e=E(e),t=O(t,!0),e!==B||!o(j,t)||o(R,t)){var n=F(e,t);return!n||!o(j,t)||o(e,I)&&e[I][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=D(E(e)),r=[],i=0;n.length>i;)o(j,t=n[i++])||t==I||t==s||r.push(t);return r},Q=function(e){for(var t,n=e===B,r=D(n?R:E(e)),i=[],a=0;r.length>a;)!o(j,t=r[a++])||n&&!o(B,t)||i.push(j[t]);return i};W||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(R,n),o(this,I)&&o(this[I],e)&&(this[I][e]=!1),z(this,e,C(1,n))};return i&&H&&z(B,e,{configurable:!0,set:t}),G(e)},u(M.prototype,"toString",function(){return this._k}),S.f=K,A.f=Y,n(52).f=w.f=Z,n(19).f=J,n(51).f=Q,i&&!n(15)&&u(B,"propertyIsEnumerable",J,!0),h.f=function(e){return G(d(e))}),a(a.G+a.W+a.F*!W,{Symbol:M});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)d(ee[te++]);for(var ne=k(d.store),re=0;ne.length>re;)m(ne[re++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return o(V,e+="")?V[e]:V[e]=M(e)},keyFor:function(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in V)if(V[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!W,"Object",{create:X,defineProperty:Y,defineProperties:q,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:Q}),P&&a(a.S+a.F*(!W||l(function(){var e=M();return"[null]"!=T([e])||"{}"!=T({a:e})||"{}"!=T(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(y(t)||void 0!==e)&&!$(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,T.apply(P,r)}}),M.prototype[L]||n(10)(M.prototype,L,M.prototype.valueOf),p(M,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(e,t,n){var r=n(18)("meta"),o=n(12),i=n(9),a=n(7).f,u=0,s=Object.isExtensible||function(){return!0},l=!n(14)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},p=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[r].i},f=function(e,t){if(!i(e,r)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[r].w},d=function(e){return l&&h.NEED&&s(e)&&!i(e,r)&&c(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:p,getWeak:f,onFreeze:d}},function(e,t,n){var r=n(17),o=n(51),i=n(19);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,u=n(e),s=i.f,l=0;u.length>l;)s.call(e,a=u[l++])&&t.push(a);return t}},function(e,t,n){var r=n(22);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(5),o=n(52).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?u(e):o(r(e))}},function(e,t){},function(e,t,n){n(33)("asyncIterator")},function(e,t,n){n(33)("observable")},function(e,t,n){e.exports={default:n(125),__esModule:!0}},function(e,t,n){n(126),e.exports=n(0).Object.setPrototypeOf},function(e,t,n){var r=n(6);r(r.S,"Object",{setPrototypeOf:n(127).set})},function(e,t,n){var r=n(12),o=n(11),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(42)(Function.call,n(53).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(129),__esModule:!0}},function(e,t,n){n(130);var r=n(0).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(6);r(r.S,"Object",{create:n(25)})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=wp.components.CheckboxControl,o=function(e){var t=e.help,n=e.disabled,o=e.label,i=e.updateCheckbox,a=e.value;return wp.element.createElement(r,{help:t,disabled:n,label:o,checked:a,onChange:function(e){return i(e)}})}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(135),n(136)},function(e,t,n){"use strict";var r=n(61),o=n.n(r),i=n(35),a=n(131),u=wp.i18n.__,s=wp.blockEditor.InspectorControls,l=wp.components,c=l.PanelBody,p=l.PanelRow,f=l.ServerSideRender,d=l.TextControl,h=(l.RadioControl,l.SelectControl),m=wp.blocks.registerBlockType;wp.element.Fragment,m("wpgoplugins/simple-sitemap-block",{title:"Simple Sitemap",icon:"editor-ul",category:"simple-sitemap",attributes:{render_tab:{type:"boolean",default:!1},gutenberg_block:{type:"boolean",default:!0},orderby:{type:"string",default:"title"},order:{type:"string",default:"asc"},block_post_types:{type:"string",default:'[{ "value": "page", "label": "Page" }]'},page_depth:{type:"number",default:0},show_excerpt:{type:"boolean",default:!1},show_label:{type:"boolean",default:!0},links:{type:"boolean",default:!0}},edit:function(e){function t(e){O({render_tab:e})}function n(e){O({show_excerpt:e})}function r(e){O({show_label:e})}function l(e){O({links:e})}var m=e.attributes,v=m.show_excerpt,g=m.show_label,b=m.links,y=m.page_depth,E=(m.nofollow,m.image,m.list_icon,m.max_width,m.responsive_breakpoint,m.sitemap_container_margin,m.sitemap_item_line_height,m.tab_color,m.tab_header_bg,m.post_type_label_padding,m.post_type_label_font_size,m.render_tab),O=(m.block_post_types,m.exclude,m.include,m.order,m.orderby,e.className,e.setAttributes);e.isSelected,e.attributes;return[wp.element.createElement(s,null,wp.element.createElement(c,{title:u("General Settings","simple-sitemap")},wp.element.createElement(p,null,wp.element.createElement("label",{style:{marginBottom:"-14px"},class:"components-base-control__label"},"Select post types to display")),wp.element.createElement(p,null,wp.element.createElement(i.a,{label:"Title",defaultValue:JSON.parse(e.attributes.block_post_types),isMulti:!0,onChange:function(t){return e.setAttributes({block_post_types:o()(t)})},options:[{value:"post",label:"Post"},{value:"page",label:"Page"}]})),wp.element.createElement(p,null,wp.element.createElement("p",{style:{marginTop:"-20px",fontSize:"13px",fontStyle:"italic",marginLeft:"2px"}},"List ",wp.element.createElement("a",{href:"https://wpgoplugins.com/plugins/simple-sitemap-pro/#post-types",target:"_blank"},"more")," post types")),wp.element.createElement(p,{className:"simple-sitemap order mb20"},wp.element.createElement(h,{label:"Orderby",value:e.attributes.orderby,options:[{label:"Title",value:"title"},{label:"Date",value:"date"},{label:"ID",value:"ID"},{label:"Author",value:"author"},{label:"Name",value:"name"},{label:"Modified",value:"modified"}],onChange:function(t){e.setAttributes({orderby:t})}}),wp.element.createElement(h,{label:"Order",value:e.attributes.order,options:[{label:"Ascending",value:"asc"},{label:"Descending",value:"desc"}],onChange:function(t){e.setAttributes({order:t})}})),wp.element.createElement(p,{className:"simple-sitemap general-chk"},wp.element.createElement(a.a,{value:v,label:"Show excerpt",updateCheckbox:n})),wp.element.createElement(p,{className:"simple-sitemap general-chk"},wp.element.createElement(a.a,{value:g,label:"Show post type label",updateCheckbox:r})),wp.element.createElement(p,{className:"simple-sitemap general-chk"},wp.element.createElement(a.a,{value:b,label:"Enable sitemap links",updateCheckbox:l}))),wp.element.createElement(c,{title:u("Tab Settings","simple-sitemap"),initialOpen:!1},wp.element.createElement(p,{className:"simple-sitemap"},wp.element.createElement(a.a,{value:E,label:"Enable tabs",updateCheckbox:t}))),wp.element.createElement(c,{title:u("Page Settings","simple-sitemap"),initialOpen:!1},wp.element.createElement(p,{className:"simple-sitemap"},wp.element.createElement("p",null,"Affects sitemap pages only.")),wp.element.createElement(p,{className:"simple-sitemap"},wp.element.createElement(d,{type:"number",label:"Page indentation",min:"0",max:"5",help:"Leave at zero for auto-depth",value:y,onChange:function(e){O({page_depth:parseInt(e)})}})))),wp.element.createElement(f,{block:"wpgoplugins/simple-sitemap-block",attributes:e.attributes})]},save:function(){return null}})},function(e,t,n){"use strict";var r=n(137),o=n(131),i=wp.i18n.__,a=wp.blockEditor.InspectorControls,u=wp.components,s=u.PanelBody,l=u.PanelRow,c=u.ServerSideRender,p=(u.TextControl,u.RadioControl,u.SelectControl),f=(u.ColorPicker,wp.blocks.registerBlockType);wp.element.Fragment,f("wpgoplugins/simple-sitemap-group-block",{title:"Simple Sitemap Group",icon:"networking",category:"simple-sitemap",attributes:{show_excerpt:{type:"boolean",default:!1},show_label:{type:"boolean",default:!0},links:{type:"boolean",default:!0},orderby:{type:"string",default:"title"},order:{type:"string",default:"asc"},block_taxonomy:{type:"string",default:"category"},gutenberg_block:{type:"boolean",default:!0}},edit:function(e){function t(e){y({show_excerpt:e})}function n(e){y({show_label:e})}function u(e){y({links:e})}var f=e.attributes,d=f.show_excerpt,h=f.show_label,m=f.links,v=f.block_taxonomy,g=f.order,b=f.orderby,y=(e.className,e.setAttributes),E=(e.isSelected,e.attributes);return[wp.element.createElement(a,null,wp.element.createElement(s,{title:i("General Settings","simple-sitemap")},wp.element.createElement(l,{className:"simple-sitemap"},wp.element.createElement("label",{style:{marginBottom:"-12px",maxWidth:"100%"},class:"components-base-control__label"},"Select post taxonomy")),wp.element.createElement(l,{className:"simple-sitemap"},wp.element.createElement(r.a,{setAttributes:y,multi:!1,block_taxonomy:v})),wp.element.createElement(l,null,wp.element.createElement("p",{style:{marginTop:"-24px",fontSize:"13px",fontStyle:"italic",marginLeft:"2px"}},"List ",wp.element.createElement("a",{href:"https://wpgoplugins.com/plugins/simple-sitemap-pro/#taxonomies-for-any-post-type",target:"_blank"},"taxonomies")," for any post type")),wp.element.createElement(l,{className:"simple-sitemap order-label"},wp.element.createElement("label",{style:{marginBottom:"-12px",maxWidth:"100%"},class:"components-base-control__label"},"Post ordering")),wp.element.createElement(l,{className:"simple-sitemap order mb20"},wp.element.createElement(p,{label:"Orderby",value:b,options:[{label:"Title",value:"title"},{label:"Date",value:"date"},{label:"ID",value:"ID"},{label:"Author",value:"author"},{label:"Name",value:"name"},{label:"Modified",value:"modified"}],onChange:function(e){y({orderby:e})}}),wp.element.createElement(p,{label:"Order",value:g,options:[{label:"Ascending",value:"asc"},{label:"Descending",value:"desc"}],onChange:function(e){y({order:e})}})),wp.element.createElement(l,{className:"simple-sitemap general-chk"},wp.element.createElement(o.a,{value:d,label:"Display post excerpt",updateCheckbox:t})),wp.element.createElement(l,{className:"simple-sitemap general-chk"},wp.element.createElement(o.a,{value:h,label:"Display post type label",updateCheckbox:n})),wp.element.createElement(l,{className:"simple-sitemap general-chk"},wp.element.createElement(o.a,{value:m,label:"Display sitemap links",updateCheckbox:u})))),wp.element.createElement(c,{block:"wpgoplugins/simple-sitemap-group-block",attributes:E})]},save:function(){return null}})},function(e,t,n){"use strict";n.d(t,"a",function(){return x});var r=n(34),o=n.n(r),i=n(54),a=n.n(i),u=n(55),s=n.n(u),l=n(56),c=n.n(l),p=n(57),f=n.n(p),d=n(58),h=n.n(d),m=n(59),v=n.n(m),g=n(60),b=n.n(g),y=(wp.i18n.__,wp.blockEditor.InspectorControls,wp.components),E=(y.PanelBody,y.PanelRow,y.ServerSideRender,y.TextControl,y.RadioControl,y.SelectControl),O=(wp.blocks.registerBlockType,wp.element),C=O.Component,x=(O.Fragment,function(e){function t(e){f()(this,t);var n=v()(this,(t.__proto__||c()(t)).call(this));return n.state={types:[],taxonomies:[],taxonomy_select_disabled_status:!0,taxonomy_select_disabled_help:"",wrapperClass:""},n.props=e,n}return b()(t,e),h()(t,[{key:"componentDidMount",value:function(){this.fetchTaxonomies(null)}},{key:"fetchTaxonomies",value:function(e){var t=this,n=this.props,r=n.setAttributes,i=(n.block_post_type,n.block_taxonomy);wp.apiFetch({path:"simple-sitemap/v1/post-ty